@abtnode/webapp 1.16.49 → 1.16.50-beta-20250902-043619-201bcaed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-DimT2cks.js → AdapterDayjs-DPswIgNd.js} +1 -1
- package/dist/assets/{Add-B2ZDVqat.js → Add-CTkKWsbA.js} +1 -1
- package/dist/assets/ArrowDropDown-CPMzkOwU.js +1 -0
- package/dist/assets/{Autocomplete-B6hdnAbf.js → Autocomplete-BnpjHbVI.js} +1 -1
- package/dist/assets/{Breadcrumbs-C0NyAgW3.js → Breadcrumbs-BcwyHALS.js} +1 -1
- package/dist/assets/{ButtonGroup-BxZjrpDd.js → ButtonGroup-B8CEk0Fm.js} +1 -1
- package/dist/assets/{CSSTransition-D9w1WbTD.js → CSSTransition-CgU-qJG1.js} +1 -1
- package/dist/assets/{CallMerge-CT9kGdYw.js → CallMerge-DG9UCIML.js} +1 -1
- package/dist/assets/{CardContent-DZQbbzze.js → CardContent-DUT0SHjO.js} +1 -1
- package/dist/assets/{ChevronLeft-C1WpAw9J.js → ChevronLeft-Mrf8wNcO.js} +1 -1
- package/dist/assets/{ChevronRight-BHex1y5g.js → ChevronRight-CgNj8oK3.js} +1 -1
- package/dist/assets/{Clear-CY2XI9UL.js → Clear-D0eiF7LM.js} +1 -1
- package/dist/assets/{DeleteOutline-DCwd4zu5.js → DeleteOutline-BXGUPwfv.js} +1 -1
- package/dist/assets/{Done-DvjnHsf4.js → Done-B-4ttL5E.js} +1 -1
- package/dist/assets/{Edit-CQvdC-gs.js → Edit-BDZJlnuz.js} +1 -1
- package/dist/assets/{ErrorOutline-3x65gte5.js → ErrorOutline-DM8Q-uGO.js} +1 -1
- package/dist/assets/{FilterList-C7CgIPm8.js → FilterList-BnK3OcNB.js} +1 -1
- package/dist/assets/{Google-Bli8mQj2.js → Google-BnsccEt-.js} +1 -1
- package/dist/assets/{HelpOutline-DK_qkp2M.js → HelpOutline-95P320TL.js} +1 -1
- package/dist/assets/{Launch-Cazur-Fl.js → Launch-C31ynKKh.js} +1 -1
- package/dist/assets/{Link-B32ARgrh.js → Link-DKdN2Z0q.js} +1 -1
- package/dist/assets/{ListItemButton-BOWa6EsK.js → ListItemButton-wejxtEoj.js} +1 -1
- package/dist/assets/{ListSubheader-59vUoVIT.js → ListSubheader-B_qXJClL.js} +1 -1
- package/dist/assets/{LoadingButton-ClNP4uj0.js → LoadingButton-Zo_5FEH-.js} +1 -1
- package/dist/assets/{MoreVert-Dnv5meLi.js → MoreVert-Bg7SRP_I.js} +1 -1
- package/dist/assets/{OpenInNew-CVZ7jhVw.js → OpenInNew-C4rxt70p.js} +1 -1
- package/dist/assets/{Refresh-BU7QWHYu.js → Refresh-L5IK_LF1.js} +1 -1
- package/dist/assets/{Search-CviyP5PC.js → Search-2a28Zd0Q.js} +1 -1
- package/dist/assets/{Slider-DEcPJiVm.js → Slider-DfrL_KUv.js} +1 -1
- package/dist/assets/{Stepper-BXOkpPZl.js → Stepper-B6f7_MVS.js} +1 -1
- package/dist/assets/{Switch-C_vix7qp.js → Switch-iXfQHCNE.js} +1 -1
- package/dist/assets/{TableSearch-Dsfp_XUr.js → TableSearch-BfqBG8KC.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BRuEkEDq.js → ToggleButtonGroup-CAU8g76h.js} +1 -1
- package/dist/assets/{Verified-C1OHOKpp.js → Verified-DFAnifny.js} +1 -1
- package/dist/assets/{VerifiedUser-C0M9SrH7.js → VerifiedUser-BFvcT9A-.js} +1 -1
- package/dist/assets/{ViewList-_seGVlfH.js → ViewList-BF_nxJjM.js} +1 -1
- package/dist/assets/{_createAggregator-s6UGbWKk.js → _createAggregator-DTDqEyEr.js} +1 -1
- package/dist/assets/{actions-DaFcSF4Q.js → actions-BfeIbo_G.js} +1 -1
- package/dist/assets/{actions-BTM30cO2.js → actions-DcrS1GhL.js} +1 -1
- package/dist/assets/{agreement-DSL1Z9Z4.js → agreement-8NAAXeTA.js} +1 -1
- package/dist/assets/api-DHdVnqwS.js +1 -0
- package/dist/assets/{appearance-B5Fxj0pt.js → appearance-BiJ6lD1T.js} +1 -1
- package/dist/assets/{audit-logs-DfhTX_zm.js → audit-logs-xPU-sDla.js} +1 -1
- package/dist/assets/{base-chart-CUBovNRp.js → base-chart-CPd4vePQ.js} +1 -1
- package/dist/assets/{blocklet-Clk0KDdY.js → blocklet-BwXw89V1.js} +1 -1
- package/dist/assets/{chain-Bpi260c_.js → chain-d11c9jLj.js} +1 -1
- package/dist/assets/{click-to-copy-BZWirPDQ.js → click-to-copy-mqyEDC5n.js} +1 -1
- package/dist/assets/client-CSeQ4CUw.js +1 -0
- package/dist/assets/cloneDeep-DrWSOVhF.js +1 -0
- package/dist/assets/{collapse-BOYOLC_4.js → collapse-Co_76D-y.js} +1 -1
- package/dist/assets/{config-navigation-BEIEFUiN.js → config-navigation-Bxan73e2.js} +3 -3
- package/dist/assets/{connect-to-CKfgySWf.js → connect-to-dgAF9yLc.js} +5 -5
- package/dist/assets/{cssMode-B5RVclx-.js → cssMode-C31W-e3q.js} +1 -1
- package/dist/assets/{delete-confirm-BrhseXop.js → delete-confirm-BBlDevSj.js} +1 -1
- package/dist/assets/{depsEqual-msOq5b5x.js → depsEqual-BxsaWGVI.js} +1 -1
- package/dist/assets/{detail-BlLW7YjN.js → detail-DAPMqeRx.js} +3 -3
- package/dist/assets/{domains-C_4AnOp5.js → domains-24jfdV6n.js} +1 -1
- package/dist/assets/{download-DY09iblB.js → download-3kRJTAFI.js} +1 -1
- package/dist/assets/{edit.svg-D-BTMQSd.js → edit.svg-BHgQlE3X.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-DKCrrwkN.js +1 -0
- package/dist/assets/engine-Cere5Eel.js +1 -0
- package/dist/assets/{freemarker2-qOqeJDqa.js → freemarker2-JmP3cv2S.js} +1 -1
- package/dist/assets/{get-safe-url-0GDhhKMb.js → get-safe-url-DG3hbVuw.js} +1 -1
- package/dist/assets/getValidReactChildren-UBZRExQI.js +1 -0
- package/dist/assets/{graphqlMode-K6gJ3gBf.js → graphqlMode-C78Ld2Eu.js} +2 -2
- package/dist/assets/{handlebars-CpCfM6TO.js → handlebars-CKF2hLML.js} +1 -1
- package/dist/assets/{html-fUKduY5C.js → html-CBskQMFu.js} +1 -1
- package/dist/assets/{html-title-HtPlSvGf.js → html-title-F0NEfYXw.js} +1 -1
- package/dist/assets/{htmlMode-B-5GmxUH.js → htmlMode-DsG66HOr.js} +1 -1
- package/dist/assets/{iframe-CiaMOw3l.js → iframe-B5DJ8-Ji.js} +1 -1
- package/dist/assets/{index-BniP3-Ka.js → index-0496i8uI.js} +2 -2
- package/dist/assets/{index-B58pv6JK.js → index-2hrGtHmX.js} +1 -1
- package/dist/assets/{index-BcVAgGLo.js → index-4ozQpL9g.js} +1 -1
- package/dist/assets/{index--IDE3zqS.js → index-B3FIRHqC.js} +1 -1
- package/dist/assets/{index-B09qWXEi.js → index-BLMobR0e.js} +1 -1
- package/dist/assets/index-BMcGNp8z.js +602 -0
- package/dist/assets/{index-De5Caszn.js → index-BShBVqEp.js} +1 -1
- package/dist/assets/{index-QEEYyfjs.js → index-BTOhdwnt.js} +1 -1
- package/dist/assets/{index-BQl82i43.js → index-BUw2Zomp.js} +1 -1
- package/dist/assets/{index-n4_kY89C.js → index-BWyeLBJr.js} +1 -1
- package/dist/assets/index-B_D_eWlx.js +1 -0
- package/dist/assets/{index-Rr_K0vXu.js → index-BeVhpCa2.js} +1 -1
- package/dist/assets/{index-C_Fk7Rzr.js → index-Bj_Te32l.js} +1 -1
- package/dist/assets/{index-D1AKo-x3.js → index-C-fYS2zX.js} +1 -1
- package/dist/assets/{index-CwANiKOk.js → index-C1YX-486.js} +1 -1
- package/dist/assets/{index-BcMFt6jn.js → index-C3erfPAZ.js} +3 -3
- package/dist/assets/{index-sz3uFV7b.js → index-CIOQij4h.js} +1 -1
- package/dist/assets/{index-DMSf9VmZ.js → index-CN-8L-fW.js} +1 -1
- package/dist/assets/{index-DiVM7PAR.js → index-COFGt098.js} +1 -1
- package/dist/assets/{index-CB6io54J.js → index-COql_jsK.js} +1 -1
- package/dist/assets/{index-C0cmjlmK.js → index-CPewySJ_.js} +1 -1
- package/dist/assets/{index-nbCQMVdu.js → index-CTpUEnRG.js} +1 -1
- package/dist/assets/{index-N8fONOxR.js → index-ChZ3ki2X.js} +9 -9
- package/dist/assets/{index-BCDhEJAj.js → index-ClLVAMtr.js} +1 -1
- package/dist/assets/{index-C_i8vZPM.js → index-Cx9xeHC7.js} +1 -1
- package/dist/assets/{index-CB3gF2be.js → index-D-LfiN9o.js} +1 -1
- package/dist/assets/{index-wdj0FEUp.js → index-D9XGO23S.js} +3 -3
- package/dist/assets/{index-daIR3ecn.js → index-D9nLQXCy.js} +1 -1
- package/dist/assets/{index-tE5HA0JS.js → index-DAw4DSiR.js} +1 -1
- package/dist/assets/{index-NeEbDyYj.js → index-DCkFWlji.js} +1 -1
- package/dist/assets/{index-BVwfeTfE.js → index-DDIG3-mk.js} +1 -1
- package/dist/assets/{index-DCr9iA79.js → index-DGDUIal5.js} +1 -1
- package/dist/assets/{index-Cs7boeoz.js → index-DKPVTl-I.js} +1 -1
- package/dist/assets/{index-BMlarUaU.js → index-DPKaJazb.js} +1 -1
- package/dist/assets/{index-Bz1WmE2z.js → index-DocroCwn.js} +1 -1
- package/dist/assets/{index-BhIGrRjA.js → index-DpRx2tZw.js} +1 -1
- package/dist/assets/{index-DGDwJTNO.js → index-Dsvvy8_K.js} +1 -1
- package/dist/assets/{index-Dm676q-V.js → index-H1nowJu-.js} +1 -1
- package/dist/assets/{index-k6Jydhg7.js → index-Mg5Ud6gu.js} +1 -1
- package/dist/assets/{index-C21lcN-6.js → index-OGdXuzH7.js} +3 -3
- package/dist/assets/{index-Cp668Jsm.js → index-OdvXHPqT.js} +112 -112
- package/dist/assets/{index-DNBJ_q-W.js → index-R68RI5nS.js} +1 -1
- package/dist/assets/{index-DLs4lvkb.js → index-Y2ocg0We.js} +1 -1
- package/dist/assets/{index-BuNutR9F.js → index-g2Hjwa9j.js} +1 -1
- package/dist/assets/{index-CEcRkbK_.js → index-x8ZFxnS7.js} +1 -1
- package/dist/assets/{index.esm-BWXMXe80.js → index.esm-Dt7UO6Gw.js} +1 -1
- package/dist/assets/{install-from-url-CvXm7zrQ.js → install-from-url-DP36MlN0.js} +1 -1
- package/dist/assets/{invitation-Bbd0EUPN.js → invitation-Iv5T__li.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-9dPZdPqq.js → is-path-prefix-equal-DVbPRsdH.js} +1 -1
- package/dist/assets/{item-Czk-LxVv.js → item-D5nrOHxx.js} +1 -1
- package/dist/assets/{javascript-Df4-_tCH.js → javascript-DwMwjVUG.js} +1 -1
- package/dist/assets/{jsonMode-lPvmVuEc.js → jsonMode-Dw4fMRhD.js} +1 -1
- package/dist/assets/{liquid-iErrkmsS.js → liquid-9EaYCIu3.js} +1 -1
- package/dist/assets/{list-header-D9Jtipco.js → list-header-DofW2Ftc.js} +1 -1
- package/dist/assets/{log-D_Iy4G-2.js → log-DaGgK84T.js} +1 -1
- package/dist/assets/{lottie-react.esm-CLF_w70g.js → lottie-react.esm-tNmLlP7P.js} +1 -1
- package/dist/assets/{mdx-CpiXAgeN.js → mdx-WQ_--1yL.js} +1 -1
- package/dist/assets/{memory-0tMnFTeS.js → memory-BPr31Oys.js} +1 -1
- package/dist/assets/{metric-Blz-YEnp.js → metric-D2ucAHiH.js} +1 -1
- package/dist/assets/omit-BPHBFoDu.js +1 -0
- package/dist/assets/{overview-DQoppCkb.js → overview-CCPEnAHB.js} +1 -1
- package/dist/assets/{permission-Dq4G1Nhn.js → permission-CUvNs2Zv.js} +1 -1
- package/dist/assets/{preference-5drfcglD.js → preference-BN0Jy77b.js} +3 -3
- package/dist/assets/{python-DXxIcyYN.js → python-C_uQOER7.js} +1 -1
- package/dist/assets/{raf-schd.esm-le4x5qzb.js → raf-schd.esm-DUMXV33K.js} +1 -1
- package/dist/assets/{razor-DEo7ceFX.js → razor-Bf6ygvvd.js} +1 -1
- package/dist/assets/{rotate-session-key-omld1AuK.js → rotate-session-key-BdVsr217.js} +1 -1
- package/dist/assets/{runtime-myPRlwBo.js → runtime-B54DBemf.js} +1 -1
- package/dist/assets/schema-C8eqaAts.js +1 -0
- package/dist/assets/sdk-B2QHgBcr.js +1 -0
- package/dist/assets/{service-M1mmil55.js → service-CcQaRfy1.js} +1 -1
- package/dist/assets/{shorten-label-Dwsld825.js → shorten-label-CPrM7klu.js} +1 -1
- package/dist/assets/{simple-select-C7PnNUpe.js → simple-select-Y6nLlyX-.js} +1 -1
- package/dist/assets/{spaces-Dz6osU8D.js → spaces-DfU2dhr-.js} +1 -1
- package/dist/assets/{status-Dk7whVRe.js → status-DjEtZNUr.js} +1 -1
- package/dist/assets/{status-DC_uFdhU.js → status-tQggAyS9.js} +1 -1
- package/dist/assets/{switch-control-Dg5zSUdo.js → switch-control-LS_NeTom.js} +1 -1
- package/dist/assets/{table-icons-jOs3s3dQ.js → table-icons-LUDdTh3T.js} +1 -1
- package/dist/assets/{team-D3LeaCxJ.js → team-Dyq5wP2P.js} +1 -1
- package/dist/assets/{toLower-D7KlZyXh.js → toLower-B8SBWvWe.js} +1 -1
- package/dist/assets/toUpper-z0GOUGgF.js +1 -0
- package/dist/assets/{traffic-Dh32_ebe.js → traffic-DgBk3o2N.js} +1 -1
- package/dist/assets/{tsMode-BXE5NTFR.js → tsMode-_qFiyVuf.js} +1 -1
- package/dist/assets/{typescript-Cyw-SWET.js → typescript-BClkULc3.js} +1 -1
- package/dist/assets/{url-evaluation-ZlHZwvb8.js → url-evaluation-DgbmtLnr.js} +1 -1
- package/dist/assets/{url-join-BaK21hdG.js → url-join-CTs-nsh5.js} +1 -1
- package/dist/assets/{use-mobile-fb1R4sTD.js → use-mobile-BeKGXAC7.js} +1 -1
- package/dist/assets/{use-mobile-DmPwZVyR.js → use-mobile-Yz2bScih.js} +1 -1
- package/dist/assets/{useAsync-mK5hkfXk.js → useAsync-DkpPqR2N.js} +1 -1
- package/dist/assets/{useAsyncRetry-Bz9aJRiB.js → useAsyncRetry-Xbq1Vu1J.js} +1 -1
- package/dist/assets/{useLocalStorage-D39oHiv_.js → useLocalStorage-BRX7xEeE.js} +1 -1
- package/dist/assets/{useThemeProps-CEesX7e5.js → useThemeProps-B8kKGfuj.js} +1 -1
- package/dist/assets/{util-B3o9CH5x.js → util-Cw9ZhkhZ.js} +1 -1
- package/dist/assets/{wait-container-Cq-OhUMI.js → wait-container-CESBMuDe.js} +1 -1
- package/dist/assets/{without-wallet-BK9y4GG-.js → without-wallet-DfzBh9gC.js} +1 -1
- package/dist/assets/{wrap-locale-BDWmzfGR.js → wrap-locale-Bz8sQEwG.js} +1 -1
- package/dist/assets/{xml-C7AOEa-o.js → xml-DgLvDwTZ.js} +1 -1
- package/dist/assets/{yaml-D87QX20d.js → yaml-CBYpsbMl.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-DTUdke6O.js +0 -1
- package/dist/assets/api-BDClPnhH.js +0 -1
- package/dist/assets/client-BeAJe0yS.js +0 -1
- package/dist/assets/cloneDeep-BPw0K7hq.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-B-0g7s2E.js +0 -1
- package/dist/assets/engine-CjGipQ8H.js +0 -1
- package/dist/assets/getValidReactChildren-CS8vN0Dc.js +0 -1
- package/dist/assets/index-31DGwfk5.js +0 -602
- package/dist/assets/index-DWCHUGMU.js +0 -1
- package/dist/assets/omit-kqOgzbK4.js +0 -1
- package/dist/assets/schema-B6D_WZyG.js +0 -1
- package/dist/assets/sdk-BbOdEeFV.js +0 -1
- package/dist/assets/toUpper-j7Or1KIp.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,j as t,N as o,dd as c,o as n}from"./index-
|
|
1
|
+
import{r as i,j as t,N as o,dd as c,o as n}from"./index-OdvXHPqT.js";const h=e=>i.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.36096 2.3999C7.04725 2.3999 6.76249 2.58326 6.63267 2.86886L0.872671 15.5409C0.825415 15.6448 0.800964 15.7577 0.800964 15.8719V15.9999V27.3919C0.800964 27.8337 1.15914 28.1919 1.60096 28.1919H30.401C30.8428 28.1919 31.201 27.8337 31.201 27.3919V15.8719C31.201 15.7577 31.1765 15.6448 31.1293 15.5409L25.3693 2.86886C25.2394 2.58326 24.9547 2.3999 24.641 2.3999H7.36096ZM2.40096 16.7999V26.5919H29.601V16.7932C29.5669 16.7976 29.5321 16.7999 29.4968 16.7999H22.3993L20.3328 19.8997C20.1845 20.1222 19.9347 20.2559 19.6672 20.2559H11.6032C11.3357 20.2559 11.0859 20.1222 10.9375 19.8997L8.87104 16.7999H2.40096ZM29.2167 15.1999H21.9712C21.7037 15.1999 21.4539 15.3336 21.3056 15.5561L19.239 18.6559H12.0313L9.96483 15.5561C9.81645 15.3336 9.56667 15.1999 9.29919 15.1999H2.78519L7.8761 3.9999H24.1258L29.2167 15.1999Z",fill:"currentColor"})),a=c(o)`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,N as g,_ as ue,s as R,a0 as K,m as U,r as f,a1 as fe,y as v,a2 as Me,a3 as ze,o as E,a4 as oe,a5 as We,H as I,Y as Q,T as $,a6 as He,v as B,$ as qe,D as Ve,t as Ye,X as xe,C as ge,a7 as Ke,a8 as Qe,a9 as Xe,u as N,g as Je,aa as M,n as se,B as Ze,ab as re,A as ye,q as ae,ac as et,W as ne,L as X,w as we,x as J,ad as tt,ae as ke,af as st,b as P,ag as le,ah as ot,K as rt,ai as at,aj as nt,O as it,f as lt,ak as ct,al as be,am as Se,an as ve,ao as L,ap as je,aq as Re,ar as Ce,as as Pe,at as Te,au as dt,av as ce}from"./index-
|
|
1
|
+
import{j as e,N as g,_ as ue,s as R,a0 as K,m as U,r as f,a1 as fe,y as v,a2 as Me,a3 as ze,o as E,a4 as oe,a5 as We,H as I,Y as Q,T as $,a6 as He,v as B,$ as qe,D as Ve,t as Ye,X as xe,C as ge,a7 as Ke,a8 as Qe,a9 as Xe,u as N,g as Je,aa as M,n as se,B as Ze,ab as re,A as ye,q as ae,ac as et,W as ne,L as X,w as we,x as J,ad as tt,ae as ke,af as st,b as P,ag as le,ah as ot,K as rt,ai as at,aj as nt,O as it,f as lt,ak as ct,al as be,am as Se,an as ve,ao as L,ap as je,aq as Re,ar as Ce,as as Pe,at as Te,au as dt,av as ce}from"./index-OdvXHPqT.js";import{t as pt}from"./toLower-B8SBWvWe.js";import{a as W,u as mt,W as ht,P as Ee,L as Be}from"./index-DGDUIal5.js";import{A as ut,D as ie,u as ft,W as xt,P as gt,a as De,L as Ue}from"./wait-container-CESBMuDe.js";import{g as Z}from"./get-safe-url-DG3hbVuw.js";import{u as de}from"./useLocalStorage-BRX7xEeE.js";import{L as yt}from"./Launch-C31ynKKh.js";import{D as wt}from"./DeleteOutline-BXGUPwfv.js";import{g as kt,i as bt}from"./spaces-DfU2dhr-.js";import{I as St}from"./MoreVert-Bg7SRP_I.js";import{y as vt}from"./index-BShBVqEp.js";import"./url-join-CTs-nsh5.js";import"./use-mobile-Yz2bScih.js";import"./api-DHdVnqwS.js";function Oe({children:s,selected:n=!1}){return e.jsxs(jt,{children:[s,e.jsx(g,{className:`selected-container ${n?"selected":""}`,children:e.jsx(ue,{className:"selected-icon"})})]})}const jt=R(g)`
|
|
2
2
|
position: relative;
|
|
3
3
|
|
|
4
4
|
.selected-container {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as xe,j as e,r as R,aV as he,cw as Xt,T as H,az as ye,o as S,m as F,be as et,b8 as Pt,N as j,P as Qe,W as Ie,eN as Et,fH as Ot,by as pi,bq as mi,br as fi,bs as hi,aO as Zt,aP as xi,$ as le,s as ce,bn as N,cq as tt,C as J,X as ks,au as gi,dk as bi,bf as Rs,bg as wi,E as me,H as M,bz as Oe,gi as vi,gj as yi,J as ji,v as V,b as Ci,a3 as Ae,t as te,U as st,a4 as ae,aS as Ke,Y as Ve,I as Is,ad as _t,bd as As,gk as Si,q as Ti,fl as ki,R as Ds,fd as Ps,bi as Es,p as Ri,D as Ii,c4 as Os,aU as Ai,V as Di,F as Pi,dH as Ei,gl as Jt,fF as Oi,gm as _i,S as zi}from"./index-Cp668Jsm.js";import{H as zt,g as Li}from"./index-DLs4lvkb.js";import{T as Mi}from"./html-title-HtPlSvGf.js";import{u as X}from"./team-D3LeaCxJ.js";import{u as Ni}from"./use-mobile-DmPwZVyR.js";import{v as ze}from"./index-DMSf9VmZ.js";import{w as ge,P as _s}from"./permission-Dq4G1Nhn.js";import{C as Fi,a as Bi}from"./Google-Bli8mQj2.js";import{u as Hi}from"./blocklet-Clk0KDdY.js";import{A as Lt}from"./Add-B2ZDVqat.js";import{y as Mt}from"./index-De5Caszn.js";import{e as at}from"./edit.svg-D-BTMQSd.js";import{M as zs}from"./TableSearch-Dsfp_XUr.js";import{L as Ls}from"./list-header-D9Jtipco.js";import{g as Ui}from"./chain-Bpi260c_.js";import{T as Ms,a as We}from"./ToggleButtonGroup-BRuEkEDq.js";const qi=xe(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),Qt=xe(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),Ns=xe(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),dt=xe(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),$i=xe(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),Wi=xe(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),Vi=xe(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),ut=xe(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),nt=t=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},R.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));var Gi="2.0.3",Rt=500,es="user-agent",De="",ts="?",it="function",fe="undefined",Pe="object",It="string",q="browser",ie="cpu",ee="device",Z="engine",K="os",ke="result",w="name",f="type",b="vendor",y="version",$="architecture",Ge="major",g="model",qe="console",D="mobile",E="tablet",z="smarttv",Q="wearable",pt="xr",$e="embedded",Le="inapp",Nt="brands",ve="formFactors",Ft="fullVersionList",Re="platform",Bt="platformVersion",lt="bitness",be="sec-ch-ua",Yi=be+"-full-version-list",Ki=be+"-arch",Xi=be+"-"+lt,Zi=be+"-form-factors",Ji=be+"-"+D,Qi=be+"-"+g,Fs=be+"-"+Re,er=Fs+"-version",Bs=[Nt,Ft,D,g,Re,Bt,$,ve,lt],Xe="Amazon",Se="Apple",ss="ASUS",is="BlackBerry",we="Google",rs="Huawei",os="Lenovo",as="Honor",Ze="LG",mt="Microsoft",ft="Motorola",ht="Nvidia",ns="OnePlus",xt="OPPO",Me="Samsung",ls="Sharp",Ne="Sony",gt="Xiaomi",bt="Zebra",cs="Chrome",ds="Chromium",de="Chromecast",tr="Edge",Fe="Firefox",Be="Opera",wt="Facebook",us="Sogou",Te="Mobile ",He=" Browser",At="Windows",sr=typeof window!==fe,W=sr&&window.navigator?window.navigator:void 0,ue=W&&W.userAgentData?W.userAgentData:void 0,ir=function(t,s){var i={},u=s;if(!rt(s)){u={};for(var n in s)for(var p in s[n])u[p]=s[n][p].concat(u[p]?u[p]:[])}for(var m in t)i[m]=u[m]&&u[m].length%2===0?u[m].concat(t[m]):t[m];return i},ct=function(t){for(var s={},i=0;i<t.length;i++)s[t[i].toUpperCase()]=t[i];return s},Dt=function(t,s){if(typeof t===Pe&&t.length>0){for(var i in t)if(re(t[i])==re(s))return!0;return!1}return _e(t)?re(s).indexOf(re(t))!==-1:!1},rt=function(t,s){for(var i in t)return/^(browser|cpu|device|engine|os)$/.test(i)||(s?rt(t[i]):!1)},_e=function(t){return typeof t===It},vt=function(t){if(t){for(var s=[],i=Ee(/\\?\"/g,t).split(","),u=0;u<i.length;u++)if(i[u].indexOf(";")>-1){var n=Ye(i[u]).split(";v=");s[u]={brand:n[0],version:n[1]}}else s[u]=Ye(i[u]);return s}},re=function(t){return _e(t)?t.toLowerCase():t},yt=function(t){return _e(t)?Ee(/[^\d\.]/g,t).split(".")[0]:void 0},oe=function(t){for(var s in t){var i=t[s];typeof i==Pe&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Ee=function(t,s){return _e(s)?s.replace(t,De):s},Ue=function(t){return Ee(/\\?\"/g,t)},Ye=function(t,s){if(_e(t))return t=Ee(/^\s\s*/,t),typeof s===fe?t:t.substring(0,Rt)},jt=function(t,s){if(!(!t||!s))for(var i=0,u,n,p,m,o,d;i<s.length&&!o;){var r=s[i],l=s[i+1];for(u=n=0;u<r.length&&!o&&r[u];)if(o=r[u++].exec(t),o)for(p=0;p<l.length;p++)d=o[++n],m=l[p],typeof m===Pe&&m.length>0?m.length===2?typeof m[1]==it?this[m[0]]=m[1].call(this,d):this[m[0]]=m[1]:m.length===3?typeof m[1]===it&&!(m[1].exec&&m[1].test)?this[m[0]]=d?m[1].call(this,d,m[2]):void 0:this[m[0]]=d?d.replace(m[1],m[2]):void 0:m.length===4&&(this[m[0]]=d?m[3].call(this,d.replace(m[1],m[2])):void 0):this[m]=d||void 0;i+=2}},pe=function(t,s){for(var i in s)if(typeof s[i]===Pe&&s[i].length>0){for(var u=0;u<s[i].length;u++)if(Dt(s[i][u],t))return i===ts?void 0:i}else if(Dt(s[i],t))return i===ts?void 0:i;return s.hasOwnProperty("*")?s["*"]:t},ps={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ms={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},fs={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[w,Te+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,y],[/opios[\/ ]+([\w\.]+)/i],[y,[w,Be+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[w,Be+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[w,Be]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[w,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[y,[w,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[w,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[w,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[w,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[w,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[w,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[w,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[w,"Smart "+os+He]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure"+He],y],[/\bfocus\/([\w\.]+)/i],[y,[w,Fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[w,Be+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[w,Be+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[w,"MIUI"+He]],[/fxios\/([\w\.-]+)/i],[y,[w,Te+Fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[y,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+He],y],[/samsungbrowser\/([\w\.]+)/i],[y,[w,Me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[y,[w,us+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[w,us+" Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[w,y],[/(lbbrowser|rekonq)/i],[w],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[y,w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,wt],y,[f,Le]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[w,y,[f,Le]],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[w,"GSA"],[f,Le]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[w,"TikTok"],[f,Le]],[/\[(linkedin)app\]/i],[w,[f,Le]],[/(chromium)[\/ ]([-\w\.]+)/i],[w,y],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[w,cs+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,cs+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[w,"Android"+He]],[/chrome\/([\w\.]+) mobile/i],[y,[w,Te+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,y],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[y,[w,Te+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[w,Te+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[y,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[y,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[w,y],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[w,Te+Fe],y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],y],[/(wolvic|librewolf)\/([\w\.]+)/i],[w,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[w,Fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[w,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[w,[y,/[^\d\.]+./,De]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[$,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[$,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[$,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[$,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[$,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[$,/ower/,De,re]],[/ sun4\w[;\)]/i],[[$,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[$,re]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[b,Me],[f,E]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[g,[b,Me],[f,D]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[b,Se],[f,D]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[b,Se],[f,E]],[/(macintosh);/i],[g,[b,Se]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[b,ls],[f,D]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[g,[b,as],[f,E]],[/honor([-\w ]+)[;\)]/i],[g,[b,as],[f,D]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[g,[b,rs],[f,E]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[b,rs],[f,D]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[g,/_/g," "],[b,gt],[f,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[g,/_/g," "],[b,gt],[f,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[b,xt],[f,D]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[g,[b,pe,{OnePlus:["304","403","203"],"*":xt}],[f,E]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[g,[b,"BLU"],[f,D]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[b,"Vivo"],[f,D]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[b,"Realme"],[f,D]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[b,ft],[f,D]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[b,ft],[f,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[b,Ze],[f,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[b,Ze],[f,D]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[g,[b,os],[f,E]],[/(nokia) (t[12][01])/i],[b,g,[f,E]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[g,/_/g," "],[f,D],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[g,[b,we],[f,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[b,we],[f,D]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[b,Ne],[f,D]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[b,Ne],[f,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[b,ns],[f,D]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[b,Xe],[f,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[b,Xe],[f,D]],[/(playbook);[-\w\),; ]+(rim)/i],[g,b,[f,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[b,is],[f,D]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[b,ss],[f,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[b,ss],[f,D]],[/(nexus 9)/i],[g,[b,"HTC"],[f,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[g,/_/g," "],[f,D]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[g,[b,"TCL"],[f,E]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[g,[b,"TCL"],[f,D]],[/(itel) ((\w+))/i],[[b,re],g,[f,pe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[b,"Acer"],[f,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[b,"Meizu"],[f,D]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[b,"Ulefone"],[f,D]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[g,[b,"Energizer"],[f,D]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[g,[b,"Cat"],[f,D]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[g,[b,"Smartfren"],[f,D]],[/droid.+; (a(?:015|06[35]|142p?))/i],[g,[b,"Nothing"],[f,D]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[g,[b,"Archos"],[f,E]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[g,[b,"Archos"],[f,D]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,g,[f,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[b,g,[f,D]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[b,g,[f,E]],[/(surface duo)/i],[g,[b,mt],[f,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[b,"Fairphone"],[f,D]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[g,[b,ht],[f,E]],[/(sprint) (\w+)/i],[b,g,[f,D]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[b,mt],[f,D]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[b,bt],[f,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[b,bt],[f,D]],[/smart-tv.+(samsung)/i],[b,[f,z]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[b,Me],[f,z]],[/tcast.+(lg)e?. ([-\w]+)/i],[b,g,[f,z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,Ze],[f,z]],[/(apple) ?tv/i],[b,[g,Se+" TV"],[f,z]],[/crkey.*devicetype\/chromecast/i],[[g,de+" Third Generation"],[b,we],[f,z]],[/crkey.*devicetype\/([^/]*)/i],[[g,/^/,"Chromecast "],[b,we],[f,z]],[/fuchsia.*crkey/i],[[g,de+" Nest Hub"],[b,we],[f,z]],[/crkey/i],[[g,de],[b,we],[f,z]],[/(portaltv)/i],[g,[b,wt],[f,z]],[/droid.+aft(\w+)( bui|\))/i],[g,[b,Xe],[f,z]],[/(shield \w+ tv)/i],[g,[b,ht],[f,z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[b,ls],[f,z]],[/(bravia[\w ]+)( bui|\))/i],[g,[b,Ne],[f,z]],[/(mi(tv|box)-?\w+) bui/i],[g,[b,gt],[f,z]],[/Hbbtv.*(technisat) (.*);/i],[b,g,[f,z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Ye],[g,Ye],[f,z]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[g,[f,z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,z]],[/(ouya)/i,/(nintendo) (\w+)/i],[b,g,[f,qe]],[/droid.+; (shield)( bui|\))/i],[g,[b,ht],[f,qe]],[/(playstation \w+)/i],[g,[b,Ne],[f,qe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[b,mt],[f,qe]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[g,[b,Me],[f,Q]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,g,[f,Q]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[g,[b,xt],[f,Q]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[b,Se],[f,Q]],[/(opwwe\d{3})/i],[g,[b,ns],[f,Q]],[/(moto 360)/i],[g,[b,ft],[f,Q]],[/(smartwatch 3)/i],[g,[b,Ne],[f,Q]],[/(g watch r)/i],[g,[b,Ze],[f,Q]],[/droid.+; (wt63?0{2,3})\)/i],[g,[b,bt],[f,Q]],[/droid.+; (glass) \d/i],[g,[b,we],[f,pt]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,g,[f,pt]],[/(quest( \d| pro)?s?).+vr/i],[g,[b,wt],[f,pt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,$e]],[/(aeobc)\b/i],[g,[b,Xe],[f,$e]],[/(homepod).+mac os/i],[g,[b,Se],[f,$e]],[/windows iot/i],[[f,$e]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[g,[f,pe,{mobile:"Mobile",xr:"VR","*":E}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,D]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[g,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[w,tr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[w,y],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[w,y],[/ladybird\//i],[[w,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,y],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[w,[y,pe,ps]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,pe,ps],[w,At]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,"macOS"],[y,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[y,[w,de+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[y,[w,de+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[y,[w,de+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[y,[w,de+" Linux"]],[/crkey\/([\d\.]+)/i],[y,[w,de]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,w],[/(ubuntu) ([\w\.]+) like android/i],[[w,/(.+)/,"$1 Touch"],y],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[w,y],[/\(bb(10);/i],[y,[w,is]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[y,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[w,Fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[w,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[w,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[w,"Chrome OS"],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,y],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[w,y]]},Je=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return oe.call(t.init,[[q,[w,y,Ge,f]],[ie,[$]],[ee,[f,g,b]],[Z,[w,y]],[K,[w,y]]]),oe.call(t.isIgnore,[[q,[y,Ge]],[Z,[y]],[K,[y]]]),oe.call(t.isIgnoreRgx,[[q,/ ?browser$/i],[K,/ ?os$/i]]),oe.call(t.toString,[[q,[w,y]],[ie,[$]],[ee,[b,g]],[Z,[w,y]],[K,[w,y]]]),t}(),rr=function(t,s){var i=Je.init[s],u=Je.isIgnore[s]||0,n=Je.isIgnoreRgx[s]||0,p=Je.toString[s]||0;function m(){oe.call(this,i)}return m.prototype.getItem=function(){return t},m.prototype.withClientHints=function(){return ue?ue.getHighEntropyValues(Bs).then(function(o){return t.setCH(new Hs(o,!1)).parseCH().get()}):t.parseCH().get()},m.prototype.withFeatureCheck=function(){return t.detectFeature().get()},s!=ke&&(m.prototype.is=function(o){var d=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Dt(u,r)&&re(n?Ee(n,this[r]):this[r])==re(n?Ee(n,o):o)){if(d=!0,o!=fe)break}else if(o==fe&&d){d=!d;break}return d},m.prototype.toString=function(){var o=De;for(var d in p)typeof this[p[d]]!==fe&&(o+=(o?" ":De)+this[p[d]]);return o||fe}),ue||(m.prototype.then=function(o){var d=this,r=function(){for(var a in d)d.hasOwnProperty(a)&&(this[a]=d[a])};r.prototype={is:m.prototype.is,toString:m.prototype.toString};var l=new r;return o(l),l}),new m};function Hs(t,s){if(t=t||{},oe.call(this,Bs),s)oe.call(this,[[Nt,vt(t[be])],[Ft,vt(t[Yi])],[D,/\?1/.test(t[Ji])],[g,Ue(t[Qi])],[Re,Ue(t[Fs])],[Bt,Ue(t[er])],[$,Ue(t[Ki])],[ve,vt(t[Zi])],[lt,Ue(t[Xi])]]);else for(var i in t)this.hasOwnProperty(i)&&typeof t[i]!==fe&&(this[i]=t[i])}function hs(t,s,i,u){return this.get=function(n){return n?this.data.hasOwnProperty(n)?this.data[n]:void 0:this.data},this.set=function(n,p){return this.data[n]=p,this},this.setCH=function(n){return this.uaCH=n,this},this.detectFeature=function(){if(W&&W.userAgent==this.ua)switch(this.itemType){case q:W.brave&&typeof W.brave.isBrave==it&&this.set(w,"Brave");break;case ee:!this.get(f)&&ue&&ue[D]&&this.set(f,D),this.get(g)=="Macintosh"&&W&&typeof W.standalone!==fe&&W.maxTouchPoints&&W.maxTouchPoints>2&&this.set(g,"iPad").set(f,E);break;case K:!this.get(w)&&ue&&ue[Re]&&this.set(w,ue[Re]);break;case ke:var n=this.data,p=function(m){return n[m].getItem().detectFeature().get()};this.set(q,p(q)).set(ie,p(ie)).set(ee,p(ee)).set(Z,p(Z)).set(K,p(K))}return this},this.parseUA=function(){return this.itemType!=ke&&jt.call(this.data,this.ua,this.rgxMap),this.itemType==q&&this.set(Ge,yt(this.get(y))),this},this.parseCH=function(){var n=this.uaCH,p=this.rgxMap;switch(this.itemType){case q:case Z:var m=n[Ft]||n[Nt],o;if(m)for(var d in m){var r=m[d].brand||m[d],l=m[d].version;this.itemType==q&&!/not.a.brand/i.test(r)&&(!o||/chrom/i.test(o)&&r!=ds)&&(r=pe(r,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(w,r).set(y,l).set(Ge,yt(l)),o=r),this.itemType==Z&&r==ds&&this.set(y,l)}break;case ie:var a=n[$];a&&(a&&n[lt]=="64"&&(a+="64"),jt.call(this.data,a+";",p));break;case ee:if(n[D]&&this.set(f,D),n[g]&&(this.set(g,n[g]),!this.get(f)||!this.get(b))){var c={};jt.call(c,"droid 9; "+n[g]+")",p),!this.get(f)&&c.type&&this.set(f,c.type),!this.get(b)&&c.vendor&&this.set(b,c.vendor)}if(n[ve]){var h;if(typeof n[ve]!="string")for(var C=0;!h&&C<n[ve].length;)h=pe(n[ve][C++],ms);else h=pe(n[ve],ms);this.set(f,h)}break;case K:var v=n[Re];if(v){var x=n[Bt];v==At&&(x=parseInt(yt(x),10)>=13?"11":"10"),this.set(w,v).set(y,x)}this.get(w)==At&&n[g]=="Xbox"&&this.set(w,"Xbox").set(y,void 0);break;case ke:var T=this.data,I=function(P){return T[P].getItem().setCH(n).parseCH().get()};this.set(q,I(q)).set(ie,I(ie)).set(ee,I(ee)).set(Z,I(Z)).set(K,I(K))}return this},oe.call(this,[["itemType",t],["ua",s],["uaCH",u],["rgxMap",i],["data",rr(this,t)]]),this}function ne(t,s,i){if(typeof t===Pe?(rt(t,!0)?(typeof s===Pe&&(i=s),s=t):(i=t,s=void 0),t=void 0):typeof t===It&&!rt(s,!0)&&(i=s,s=void 0),i&&typeof i.append===it){var u={};i.forEach(function(d,r){u[r]=d}),i=u}if(!(this instanceof ne))return new ne(t,s,i).getResult();var n=typeof t===It?t:i&&i[es]?i[es]:W&&W.userAgent?W.userAgent:De,p=new Hs(i,!0),m=s?ir(fs,s):fs,o=function(d){return d==ke?function(){return new hs(d,n,m,p).set("ua",n).set(q,this.getBrowser()).set(ie,this.getCPU()).set(ee,this.getDevice()).set(Z,this.getEngine()).set(K,this.getOS()).get()}:function(){return new hs(d,n,m[d],p).parseUA().get()}};return oe.call(this,[["getBrowser",o(q)],["getCPU",o(ie)],["getDevice",o(ee)],["getEngine",o(Z)],["getOS",o(K)],["getResult",o(ke)],["getUA",function(){return n}],["setUA",function(d){return _e(d)&&(n=d.length>Rt?Ye(d,Rt):d),this}]]).setUA(n),this}ne.VERSION=Gi;ne.BROWSER=ct([w,y,Ge,f]);ne.CPU=ct([$]);ne.DEVICE=ct([g,b,f,qe,D,z,E,Q,$e]);ne.ENGINE=ne.OS=ct([w,y]);function or(t){return!t||typeof t!="string"?"break-all":t.includes(" ")?"break-word":"break-all"}function Us({logo:t="",name:s="",description:i="",size:u=40,variant:n="rounded",sx:p={},className:m="",logoName:o="",tooltip:d=null}){const r={width:u,height:u,...p},l=typeof s=="string"?s:t,a=e.jsxs(he,{direction:"row",spacing:1,className:`info-card-wrapper ${m}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[t?e.jsx(Xt,{src:t,alt:o??l,variant:n,sx:r}):e.jsx(Xt,{variant:n,sx:r,children:l?.slice(0,1)}),e.jsxs(he,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:or(s),minWidth:{xs:100,sm:140}},children:[e.jsx(H,{variant:"body1",component:"div",sx:{color:"text.primary"},children:s}),i&&e.jsx(H,{variant:"subtitle1",sx:{color:"text.secondary"},children:i})]})]});return d?e.jsx(ye,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff",color:c=>c.palette.mode==="dark"?"#ffffff":c.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:a}):a}Us.propTypes={logo:S.string,name:S.oneOfType([S.string,S.node]).isRequired,description:S.oneOfType([S.string,S.node]),size:S.oneOfType([S.number,S.string]),variant:S.oneOf(["square","rounded","circular"]),sx:S.object,className:S.string,logoName:S.string,tooltip:S.oneOfType([S.string,S.node])};function ar(t){try{if(!t.trim())return{device:{icon:e.jsx(dt,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Browser"}};const i=new ne(t).getResult();let u="";const n=t.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(n){const d=n.split("/");d.length>1&&Zt.coerce(d[1])&&(u=Zt.coerce(d[1]).version)}const p=(()=>{const{type:d="",model:r=""}=i.device;return d==="mobile"?{icon:e.jsx(Wi,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(Vi,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx($i,{fontSize:"small"}),text:r||"Desktop"}})(),m=(()=>{const{name:d="",version:r=""}=i.os;return d.toLowerCase().includes("mac")?{icon:e.jsx(Qt,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx(Qt,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(qi,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(dt,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),o=(()=>{const{name:d="",version:r=""}=i.browser;return{icon:e.jsx(ut,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:p,os:m,browser:o,...u?{walletVersion:{icon:null,text:u}}:{}}}catch(s){return console.error("Error parsing user agent:",s),{device:{icon:e.jsx(dt,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Browser"}}}}function qs({ua:t}){const s=ar(t);return e.jsx(he,{spacing:1,children:Object.entries(s).map(([i,{icon:u,text:n}])=>e.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(j,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:u}),e.jsx(H,{variant:"body2",sx:{display:"flex"},children:n})]},i))})}qs.propTypes={ua:S.string.isRequired};const $s=()=>{const{t}=F(),s={$all:t("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:s,formatRoleName:u=>{const n=(u||"").toLowerCase();return n.startsWith("$")?s[n]||n.slice(1):s[n]||n}}},nr=(t,s=!1)=>{const i=s?1:.6;switch(t){case"owner":return`rgba(232, 222, 255, ${i})`;case"admin":return`rgba(227, 242, 253, ${i})`;case"member":return`rgba(232, 245, 233, ${i})`;case"guest":return`rgba(245, 245, 245, ${i})`;default:return`rgba(245, 245, 245, ${i})`}},lr=Pt(Et)(({role:t})=>({backgroundColor:nr(t.toLowerCase()),color:"#000000"})),cr=t=>{switch(t){case"valid":return s=>s.palette.success.light;case"expired":return s=>s.palette.text.disabled;case"revoked":return s=>s.palette.error.light;default:return s=>s.palette.warning.light}},dr=Pt(Et)(({theme:t,status:s})=>({backgroundColor:cr(s)(t),color:"#FFFFFF"}));function Ws({did:t}){return e.jsx(Ie,{size:14,responsive:!1,compact:!0,copyable:!1,did:t})}Ws.propTypes={did:S.string.isRequired};function Vs({timestamp:t,locale:s}){return e.jsx(j,{sx:{minWidth:"100px"},children:e.jsx(Qe,{value:t,locale:s})})}Vs.propTypes={timestamp:S.number.isRequired,locale:S.string.isRequired};function Gs({name:t="",role:s}){const{formatRoleName:i}=$s();return e.jsx(lr,{label:i(t||s),size:"small",role:t||s,sx:{borderRadius:1}})}Gs.propTypes={role:S.string.isRequired,name:S.string};function Ys({status:t}){const{t:s}=F();return e.jsx(dr,{label:s(`team.passport.statusMap.${t}`),size:"small",status:t,sx:{borderRadius:1}})}Ys.propTypes={status:S.string.isRequired};function Ks({source:t}){const{t:s}=F();return t?s(`team.passport.sourceMaps.${t}`):"-"}Ks.propTypes={source:S.string.isRequired};function Xs({user:t,size:s="default",tooltip:i=!1,inService:u=!1}){const{teamDid:n}=X(),p=et.useMemo(()=>Ot(t.avatar,n,u),[t.avatar,n,u]),m=et.useMemo(()=>e.jsx(Ie,{did:t?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[t?.did]),o=pi(()=>({...t,avatar:p}),[t,p]);return s==="small"?e.jsx(Us,{variant:"circular",logo:p,name:e.jsx(H,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:t.fullName||t.email}),...s==="small"?{tooltip:i?e.jsx(Ie,{did:t?.did}):!1,size:24}:{description:m,size:36}}):e.jsx(mi,{user:o,avatarSize:s==="small"?24:36,cardType:hi.Detailed,infoType:fi.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}Xs.propTypes={user:S.object.isRequired,size:S.string,tooltip:S.bool,inService:S.bool};const ur=et.memo(Xs),pr=t=>e.jsx(Ws,{did:t}),Ht=(t,s)=>e.jsx(Gs,{name:t,role:s}),Ut=t=>e.jsx(Ys,{status:t}),Zs=(t,s)=>e.jsx(Vs,{timestamp:t,locale:s}),ot=t=>e.jsx(Ks,{source:t}),qt=(t,s=!1)=>e.jsx(ur,{user:t,inService:s}),mr=t=>e.jsx(qs,{ua:t}),xs="info";function Js({createPassportSvg:t,passport:s,onCancel:i,onSwitchPassport:u=()=>{}}){const{t:n}=F(),p=xi({tab:xs}),m={info:{label:n("common.basicInfo"),value:xs,component:()=>e.jsx(Qs,{passport:s,createPassportSvg:t})},logs:{label:n("common.logs"),value:"logs",component:()=>e.jsx(si,{passport:s})},related:{label:n("team.passport.related"),value:"related",component:()=>e.jsx(ii,{passport:s,onSwitchPassport:u})}},o=Object.values(m).map(({label:l,value:a})=>({label:l,value:a})).filter(l=>l.value==="related"?s.parentDid:!0),d=m[p.tab]||m.info,r=l=>{p.tab=l};return e.jsx(le,{title:n("common.passport"),onClose:i,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(fr,{children:[e.jsx(j,{className:"tabs",children:e.jsx(Mi,{tabs:o,current:p.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(j,{className:"body",children:e.jsx(d.component,{})})]})})}Js.propTypes={createPassportSvg:S.func.isRequired,passport:S.object.isRequired,onCancel:S.func.isRequired,onSwitchPassport:S.func};const fr=ce(j)`
|
|
1
|
+
import{aG as xe,j as e,r as R,aV as he,cw as Xt,T as H,az as ye,o as S,m as F,be as et,b8 as Pt,N as j,P as Qe,W as Ie,eN as Et,fH as Ot,by as pi,bq as mi,br as fi,bs as hi,aO as Zt,aP as xi,$ as le,s as ce,bn as N,cq as tt,C as J,X as ks,au as gi,dk as bi,bf as Rs,bg as wi,E as me,H as M,bz as Oe,gi as vi,gj as yi,J as ji,v as V,b as Ci,a3 as Ae,t as te,U as st,a4 as ae,aS as Ke,Y as Ve,I as Is,ad as _t,bd as As,gk as Si,q as Ti,fl as ki,R as Ds,fd as Ps,bi as Es,p as Ri,D as Ii,c4 as Os,aU as Ai,V as Di,F as Pi,dH as Ei,gl as Jt,fF as Oi,gm as _i,S as zi}from"./index-OdvXHPqT.js";import{H as zt,g as Li}from"./index-Y2ocg0We.js";import{T as Mi}from"./html-title-F0NEfYXw.js";import{u as X}from"./team-Dyq5wP2P.js";import{u as Ni}from"./use-mobile-Yz2bScih.js";import{v as ze}from"./index-CN-8L-fW.js";import{w as ge,P as _s}from"./permission-CUvNs2Zv.js";import{C as Fi,a as Bi}from"./Google-BnsccEt-.js";import{u as Hi}from"./blocklet-BwXw89V1.js";import{A as Lt}from"./Add-CTkKWsbA.js";import{y as Mt}from"./index-BShBVqEp.js";import{e as at}from"./edit.svg-BHgQlE3X.js";import{M as zs}from"./TableSearch-BfqBG8KC.js";import{L as Ls}from"./list-header-DofW2Ftc.js";import{g as Ui}from"./chain-d11c9jLj.js";import{T as Ms,a as We}from"./ToggleButtonGroup-CAU8g76h.js";const qi=xe(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),Qt=xe(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),Ns=xe(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),dt=xe(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),$i=xe(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),Wi=xe(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),Vi=xe(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),ut=xe(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),nt=t=>R.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},R.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));var Gi="2.0.3",Rt=500,es="user-agent",De="",ts="?",it="function",fe="undefined",Pe="object",It="string",q="browser",ie="cpu",ee="device",Z="engine",K="os",ke="result",w="name",f="type",b="vendor",y="version",$="architecture",Ge="major",g="model",qe="console",D="mobile",E="tablet",z="smarttv",Q="wearable",pt="xr",$e="embedded",Le="inapp",Nt="brands",ve="formFactors",Ft="fullVersionList",Re="platform",Bt="platformVersion",lt="bitness",be="sec-ch-ua",Yi=be+"-full-version-list",Ki=be+"-arch",Xi=be+"-"+lt,Zi=be+"-form-factors",Ji=be+"-"+D,Qi=be+"-"+g,Fs=be+"-"+Re,er=Fs+"-version",Bs=[Nt,Ft,D,g,Re,Bt,$,ve,lt],Xe="Amazon",Se="Apple",ss="ASUS",is="BlackBerry",we="Google",rs="Huawei",os="Lenovo",as="Honor",Ze="LG",mt="Microsoft",ft="Motorola",ht="Nvidia",ns="OnePlus",xt="OPPO",Me="Samsung",ls="Sharp",Ne="Sony",gt="Xiaomi",bt="Zebra",cs="Chrome",ds="Chromium",de="Chromecast",tr="Edge",Fe="Firefox",Be="Opera",wt="Facebook",us="Sogou",Te="Mobile ",He=" Browser",At="Windows",sr=typeof window!==fe,W=sr&&window.navigator?window.navigator:void 0,ue=W&&W.userAgentData?W.userAgentData:void 0,ir=function(t,s){var i={},u=s;if(!rt(s)){u={};for(var n in s)for(var p in s[n])u[p]=s[n][p].concat(u[p]?u[p]:[])}for(var m in t)i[m]=u[m]&&u[m].length%2===0?u[m].concat(t[m]):t[m];return i},ct=function(t){for(var s={},i=0;i<t.length;i++)s[t[i].toUpperCase()]=t[i];return s},Dt=function(t,s){if(typeof t===Pe&&t.length>0){for(var i in t)if(re(t[i])==re(s))return!0;return!1}return _e(t)?re(s).indexOf(re(t))!==-1:!1},rt=function(t,s){for(var i in t)return/^(browser|cpu|device|engine|os)$/.test(i)||(s?rt(t[i]):!1)},_e=function(t){return typeof t===It},vt=function(t){if(t){for(var s=[],i=Ee(/\\?\"/g,t).split(","),u=0;u<i.length;u++)if(i[u].indexOf(";")>-1){var n=Ye(i[u]).split(";v=");s[u]={brand:n[0],version:n[1]}}else s[u]=Ye(i[u]);return s}},re=function(t){return _e(t)?t.toLowerCase():t},yt=function(t){return _e(t)?Ee(/[^\d\.]/g,t).split(".")[0]:void 0},oe=function(t){for(var s in t){var i=t[s];typeof i==Pe&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},Ee=function(t,s){return _e(s)?s.replace(t,De):s},Ue=function(t){return Ee(/\\?\"/g,t)},Ye=function(t,s){if(_e(t))return t=Ee(/^\s\s*/,t),typeof s===fe?t:t.substring(0,Rt)},jt=function(t,s){if(!(!t||!s))for(var i=0,u,n,p,m,o,d;i<s.length&&!o;){var r=s[i],l=s[i+1];for(u=n=0;u<r.length&&!o&&r[u];)if(o=r[u++].exec(t),o)for(p=0;p<l.length;p++)d=o[++n],m=l[p],typeof m===Pe&&m.length>0?m.length===2?typeof m[1]==it?this[m[0]]=m[1].call(this,d):this[m[0]]=m[1]:m.length===3?typeof m[1]===it&&!(m[1].exec&&m[1].test)?this[m[0]]=d?m[1].call(this,d,m[2]):void 0:this[m[0]]=d?d.replace(m[1],m[2]):void 0:m.length===4&&(this[m[0]]=d?m[3].call(this,d.replace(m[1],m[2])):void 0):this[m]=d||void 0;i+=2}},pe=function(t,s){for(var i in s)if(typeof s[i]===Pe&&s[i].length>0){for(var u=0;u<s[i].length;u++)if(Dt(s[i][u],t))return i===ts?void 0:i}else if(Dt(s[i],t))return i===ts?void 0:i;return s.hasOwnProperty("*")?s["*"]:t},ps={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ms={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},fs={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[w,Te+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[w,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[w,y],[/opios[\/ ]+([\w\.]+)/i],[y,[w,Be+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[w,Be+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[w,Be]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[w,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[y,[w,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[w,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[w,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[w,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[w,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[w,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[w,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[w,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[w,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[w,"Smart "+os+He]],[/(avast|avg)\/([\w\.]+)/i],[[w,/(.+)/,"$1 Secure"+He],y],[/\bfocus\/([\w\.]+)/i],[y,[w,Fe+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[w,Be+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[w,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[w,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[w,Be+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[w,"MIUI"+He]],[/fxios\/([\w\.-]+)/i],[y,[w,Te+Fe]],[/\bqihoobrowser\/?([\w\.]*)/i],[y,[w,"360"]],[/\b(qq)\/([\w\.]+)/i],[[w,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[w,/(.+)/,"$1"+He],y],[/samsungbrowser\/([\w\.]+)/i],[y,[w,Me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[y,[w,us+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[w,us+" Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[w,y],[/(lbbrowser|rekonq)/i],[w],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[y,w],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[w,wt],y,[f,Le]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[w,y,[f,Le]],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[w,"GSA"],[f,Le]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[w,"TikTok"],[f,Le]],[/\[(linkedin)app\]/i],[w,[f,Le]],[/(chromium)[\/ ]([-\w\.]+)/i],[w,y],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[w,cs+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[w,cs+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[w,"Android"+He]],[/chrome\/([\w\.]+) mobile/i],[y,[w,Te+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[w,y],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[y,[w,Te+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[w,Te+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[y,w],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[w,[y,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[w,y],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[w,Te+Fe],y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[w,"Netscape"],y],[/(wolvic|librewolf)\/([\w\.]+)/i],[w,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[w,Fe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[w,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[w,[y,/[^\d\.]+./,De]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[$,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[$,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[$,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[$,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[$,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[$,/ower/,De,re]],[/ sun4\w[;\)]/i],[[$,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[$,re]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[g,[b,Me],[f,E]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[g,[b,Me],[f,D]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[g,[b,Se],[f,D]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[g,[b,Se],[f,E]],[/(macintosh);/i],[g,[b,Se]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[g,[b,ls],[f,D]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[g,[b,as],[f,E]],[/honor([-\w ]+)[;\)]/i],[g,[b,as],[f,D]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[g,[b,rs],[f,E]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[g,[b,rs],[f,D]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[g,/_/g," "],[b,gt],[f,E]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[g,/_/g," "],[b,gt],[f,D]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[g,[b,xt],[f,D]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[g,[b,pe,{OnePlus:["304","403","203"],"*":xt}],[f,E]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[g,[b,"BLU"],[f,D]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[g,[b,"Vivo"],[f,D]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[g,[b,"Realme"],[f,D]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[g,[b,ft],[f,D]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[g,[b,ft],[f,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[g,[b,Ze],[f,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[g,[b,Ze],[f,D]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[g,[b,os],[f,E]],[/(nokia) (t[12][01])/i],[b,g,[f,E]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[g,/_/g," "],[f,D],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[g,[b,we],[f,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[g,[b,we],[f,D]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[g,[b,Ne],[f,D]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[g,"Xperia Tablet"],[b,Ne],[f,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[g,[b,ns],[f,D]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[g,[b,Xe],[f,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[g,/(.+)/g,"Fire Phone $1"],[b,Xe],[f,D]],[/(playbook);[-\w\),; ]+(rim)/i],[g,b,[f,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[g,[b,is],[f,D]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[g,[b,ss],[f,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[g,[b,ss],[f,D]],[/(nexus 9)/i],[g,[b,"HTC"],[f,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[g,/_/g," "],[f,D]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[g,[b,"TCL"],[f,E]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[g,[b,"TCL"],[f,D]],[/(itel) ((\w+))/i],[[b,re],g,[f,pe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[g,[b,"Acer"],[f,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[g,[b,"Meizu"],[f,D]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[g,[b,"Ulefone"],[f,D]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[g,[b,"Energizer"],[f,D]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[g,[b,"Cat"],[f,D]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[g,[b,"Smartfren"],[f,D]],[/droid.+; (a(?:015|06[35]|142p?))/i],[g,[b,"Nothing"],[f,D]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[g,[b,"Archos"],[f,E]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[g,[b,"Archos"],[f,D]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,g,[f,E]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[b,g,[f,D]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[b,g,[f,E]],[/(surface duo)/i],[g,[b,mt],[f,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[g,[b,"Fairphone"],[f,D]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[g,[b,ht],[f,E]],[/(sprint) (\w+)/i],[b,g,[f,D]],[/(kin\.[onetw]{3})/i],[[g,/\./g," "],[b,mt],[f,D]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[g,[b,bt],[f,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[g,[b,bt],[f,D]],[/smart-tv.+(samsung)/i],[b,[f,z]],[/hbbtv.+maple;(\d+)/i],[[g,/^/,"SmartTV"],[b,Me],[f,z]],[/tcast.+(lg)e?. ([-\w]+)/i],[b,g,[f,z]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,Ze],[f,z]],[/(apple) ?tv/i],[b,[g,Se+" TV"],[f,z]],[/crkey.*devicetype\/chromecast/i],[[g,de+" Third Generation"],[b,we],[f,z]],[/crkey.*devicetype\/([^/]*)/i],[[g,/^/,"Chromecast "],[b,we],[f,z]],[/fuchsia.*crkey/i],[[g,de+" Nest Hub"],[b,we],[f,z]],[/crkey/i],[[g,de],[b,we],[f,z]],[/(portaltv)/i],[g,[b,wt],[f,z]],[/droid.+aft(\w+)( bui|\))/i],[g,[b,Xe],[f,z]],[/(shield \w+ tv)/i],[g,[b,ht],[f,z]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[g,[b,ls],[f,z]],[/(bravia[\w ]+)( bui|\))/i],[g,[b,Ne],[f,z]],[/(mi(tv|box)-?\w+) bui/i],[g,[b,gt],[f,z]],[/Hbbtv.*(technisat) (.*);/i],[b,g,[f,z]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Ye],[g,Ye],[f,z]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[g,[f,z]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,z]],[/(ouya)/i,/(nintendo) (\w+)/i],[b,g,[f,qe]],[/droid.+; (shield)( bui|\))/i],[g,[b,ht],[f,qe]],[/(playstation \w+)/i],[g,[b,Ne],[f,qe]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[g,[b,mt],[f,qe]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[g,[b,Me],[f,Q]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,g,[f,Q]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[g,[b,xt],[f,Q]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[g,[b,Se],[f,Q]],[/(opwwe\d{3})/i],[g,[b,ns],[f,Q]],[/(moto 360)/i],[g,[b,ft],[f,Q]],[/(smartwatch 3)/i],[g,[b,Ne],[f,Q]],[/(g watch r)/i],[g,[b,Ze],[f,Q]],[/droid.+; (wt63?0{2,3})\)/i],[g,[b,bt],[f,Q]],[/droid.+; (glass) \d/i],[g,[b,we],[f,pt]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,g,[f,pt]],[/(quest( \d| pro)?s?).+vr/i],[g,[b,wt],[f,pt]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[f,$e]],[/(aeobc)\b/i],[g,[b,Xe],[f,$e]],[/(homepod).+mac os/i],[g,[b,Se],[f,$e]],[/windows iot/i],[[f,$e]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[g,[f,pe,{mobile:"Mobile",xr:"VR","*":E}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,D]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[g,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[w,tr+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[w,y],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[w,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[w,y],[/ladybird\//i],[[w,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,w]],os:[[/microsoft (windows) (vista|xp)/i],[w,y],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[w,[y,pe,ps]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,pe,ps],[w,At]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[w,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[w,"macOS"],[y,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[y,[w,de+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[y,[w,de+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[y,[w,de+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[y,[w,de+" Linux"]],[/crkey\/([\d\.]+)/i],[y,[w,de]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,w],[/(ubuntu) ([\w\.]+) like android/i],[[w,/(.+)/,"$1 Touch"],y],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[w,y],[/\(bb(10);/i],[y,[w,is]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[y,[w,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[w,Fe+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[w,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[w,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[w,"Chrome OS"],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[w,y],[/(sunos) ?([\w\.\d]*)/i],[[w,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[w,y]]},Je=function(){var t={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return oe.call(t.init,[[q,[w,y,Ge,f]],[ie,[$]],[ee,[f,g,b]],[Z,[w,y]],[K,[w,y]]]),oe.call(t.isIgnore,[[q,[y,Ge]],[Z,[y]],[K,[y]]]),oe.call(t.isIgnoreRgx,[[q,/ ?browser$/i],[K,/ ?os$/i]]),oe.call(t.toString,[[q,[w,y]],[ie,[$]],[ee,[b,g]],[Z,[w,y]],[K,[w,y]]]),t}(),rr=function(t,s){var i=Je.init[s],u=Je.isIgnore[s]||0,n=Je.isIgnoreRgx[s]||0,p=Je.toString[s]||0;function m(){oe.call(this,i)}return m.prototype.getItem=function(){return t},m.prototype.withClientHints=function(){return ue?ue.getHighEntropyValues(Bs).then(function(o){return t.setCH(new Hs(o,!1)).parseCH().get()}):t.parseCH().get()},m.prototype.withFeatureCheck=function(){return t.detectFeature().get()},s!=ke&&(m.prototype.is=function(o){var d=!1;for(var r in this)if(this.hasOwnProperty(r)&&!Dt(u,r)&&re(n?Ee(n,this[r]):this[r])==re(n?Ee(n,o):o)){if(d=!0,o!=fe)break}else if(o==fe&&d){d=!d;break}return d},m.prototype.toString=function(){var o=De;for(var d in p)typeof this[p[d]]!==fe&&(o+=(o?" ":De)+this[p[d]]);return o||fe}),ue||(m.prototype.then=function(o){var d=this,r=function(){for(var a in d)d.hasOwnProperty(a)&&(this[a]=d[a])};r.prototype={is:m.prototype.is,toString:m.prototype.toString};var l=new r;return o(l),l}),new m};function Hs(t,s){if(t=t||{},oe.call(this,Bs),s)oe.call(this,[[Nt,vt(t[be])],[Ft,vt(t[Yi])],[D,/\?1/.test(t[Ji])],[g,Ue(t[Qi])],[Re,Ue(t[Fs])],[Bt,Ue(t[er])],[$,Ue(t[Ki])],[ve,vt(t[Zi])],[lt,Ue(t[Xi])]]);else for(var i in t)this.hasOwnProperty(i)&&typeof t[i]!==fe&&(this[i]=t[i])}function hs(t,s,i,u){return this.get=function(n){return n?this.data.hasOwnProperty(n)?this.data[n]:void 0:this.data},this.set=function(n,p){return this.data[n]=p,this},this.setCH=function(n){return this.uaCH=n,this},this.detectFeature=function(){if(W&&W.userAgent==this.ua)switch(this.itemType){case q:W.brave&&typeof W.brave.isBrave==it&&this.set(w,"Brave");break;case ee:!this.get(f)&&ue&&ue[D]&&this.set(f,D),this.get(g)=="Macintosh"&&W&&typeof W.standalone!==fe&&W.maxTouchPoints&&W.maxTouchPoints>2&&this.set(g,"iPad").set(f,E);break;case K:!this.get(w)&&ue&&ue[Re]&&this.set(w,ue[Re]);break;case ke:var n=this.data,p=function(m){return n[m].getItem().detectFeature().get()};this.set(q,p(q)).set(ie,p(ie)).set(ee,p(ee)).set(Z,p(Z)).set(K,p(K))}return this},this.parseUA=function(){return this.itemType!=ke&&jt.call(this.data,this.ua,this.rgxMap),this.itemType==q&&this.set(Ge,yt(this.get(y))),this},this.parseCH=function(){var n=this.uaCH,p=this.rgxMap;switch(this.itemType){case q:case Z:var m=n[Ft]||n[Nt],o;if(m)for(var d in m){var r=m[d].brand||m[d],l=m[d].version;this.itemType==q&&!/not.a.brand/i.test(r)&&(!o||/chrom/i.test(o)&&r!=ds)&&(r=pe(r,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(w,r).set(y,l).set(Ge,yt(l)),o=r),this.itemType==Z&&r==ds&&this.set(y,l)}break;case ie:var a=n[$];a&&(a&&n[lt]=="64"&&(a+="64"),jt.call(this.data,a+";",p));break;case ee:if(n[D]&&this.set(f,D),n[g]&&(this.set(g,n[g]),!this.get(f)||!this.get(b))){var c={};jt.call(c,"droid 9; "+n[g]+")",p),!this.get(f)&&c.type&&this.set(f,c.type),!this.get(b)&&c.vendor&&this.set(b,c.vendor)}if(n[ve]){var h;if(typeof n[ve]!="string")for(var C=0;!h&&C<n[ve].length;)h=pe(n[ve][C++],ms);else h=pe(n[ve],ms);this.set(f,h)}break;case K:var v=n[Re];if(v){var x=n[Bt];v==At&&(x=parseInt(yt(x),10)>=13?"11":"10"),this.set(w,v).set(y,x)}this.get(w)==At&&n[g]=="Xbox"&&this.set(w,"Xbox").set(y,void 0);break;case ke:var T=this.data,I=function(P){return T[P].getItem().setCH(n).parseCH().get()};this.set(q,I(q)).set(ie,I(ie)).set(ee,I(ee)).set(Z,I(Z)).set(K,I(K))}return this},oe.call(this,[["itemType",t],["ua",s],["uaCH",u],["rgxMap",i],["data",rr(this,t)]]),this}function ne(t,s,i){if(typeof t===Pe?(rt(t,!0)?(typeof s===Pe&&(i=s),s=t):(i=t,s=void 0),t=void 0):typeof t===It&&!rt(s,!0)&&(i=s,s=void 0),i&&typeof i.append===it){var u={};i.forEach(function(d,r){u[r]=d}),i=u}if(!(this instanceof ne))return new ne(t,s,i).getResult();var n=typeof t===It?t:i&&i[es]?i[es]:W&&W.userAgent?W.userAgent:De,p=new Hs(i,!0),m=s?ir(fs,s):fs,o=function(d){return d==ke?function(){return new hs(d,n,m,p).set("ua",n).set(q,this.getBrowser()).set(ie,this.getCPU()).set(ee,this.getDevice()).set(Z,this.getEngine()).set(K,this.getOS()).get()}:function(){return new hs(d,n,m[d],p).parseUA().get()}};return oe.call(this,[["getBrowser",o(q)],["getCPU",o(ie)],["getDevice",o(ee)],["getEngine",o(Z)],["getOS",o(K)],["getResult",o(ke)],["getUA",function(){return n}],["setUA",function(d){return _e(d)&&(n=d.length>Rt?Ye(d,Rt):d),this}]]).setUA(n),this}ne.VERSION=Gi;ne.BROWSER=ct([w,y,Ge,f]);ne.CPU=ct([$]);ne.DEVICE=ct([g,b,f,qe,D,z,E,Q,$e]);ne.ENGINE=ne.OS=ct([w,y]);function or(t){return!t||typeof t!="string"?"break-all":t.includes(" ")?"break-word":"break-all"}function Us({logo:t="",name:s="",description:i="",size:u=40,variant:n="rounded",sx:p={},className:m="",logoName:o="",tooltip:d=null}){const r={width:u,height:u,...p},l=typeof s=="string"?s:t,a=e.jsxs(he,{direction:"row",spacing:1,className:`info-card-wrapper ${m}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[t?e.jsx(Xt,{src:t,alt:o??l,variant:n,sx:r}):e.jsx(Xt,{variant:n,sx:r,children:l?.slice(0,1)}),e.jsxs(he,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:or(s),minWidth:{xs:100,sm:140}},children:[e.jsx(H,{variant:"body1",component:"div",sx:{color:"text.primary"},children:s}),i&&e.jsx(H,{variant:"subtitle1",sx:{color:"text.secondary"},children:i})]})]});return d?e.jsx(ye,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff",color:c=>c.palette.mode==="dark"?"#ffffff":c.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:c=>c.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:c=>c.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:a}):a}Us.propTypes={logo:S.string,name:S.oneOfType([S.string,S.node]).isRequired,description:S.oneOfType([S.string,S.node]),size:S.oneOfType([S.number,S.string]),variant:S.oneOf(["square","rounded","circular"]),sx:S.object,className:S.string,logoName:S.string,tooltip:S.oneOfType([S.string,S.node])};function ar(t){try{if(!t.trim())return{device:{icon:e.jsx(dt,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Browser"}};const i=new ne(t).getResult();let u="";const n=t.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(n){const d=n.split("/");d.length>1&&Zt.coerce(d[1])&&(u=Zt.coerce(d[1]).version)}const p=(()=>{const{type:d="",model:r=""}=i.device;return d==="mobile"?{icon:e.jsx(Wi,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(Vi,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx($i,{fontSize:"small"}),text:r||"Desktop"}})(),m=(()=>{const{name:d="",version:r=""}=i.os;return d.toLowerCase().includes("mac")?{icon:e.jsx(Qt,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx(Qt,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(qi,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(dt,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),o=(()=>{const{name:d="",version:r=""}=i.browser;return{icon:e.jsx(ut,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:p,os:m,browser:o,...u?{walletVersion:{icon:null,text:u}}:{}}}catch(s){return console.error("Error parsing user agent:",s),{device:{icon:e.jsx(dt,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(ut,{fontSize:"small"}),text:"Unknown Browser"}}}}function qs({ua:t}){const s=ar(t);return e.jsx(he,{spacing:1,children:Object.entries(s).map(([i,{icon:u,text:n}])=>e.jsxs(j,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(j,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:u}),e.jsx(H,{variant:"body2",sx:{display:"flex"},children:n})]},i))})}qs.propTypes={ua:S.string.isRequired};const $s=()=>{const{t}=F(),s={$all:t("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:s,formatRoleName:u=>{const n=(u||"").toLowerCase();return n.startsWith("$")?s[n]||n.slice(1):s[n]||n}}},nr=(t,s=!1)=>{const i=s?1:.6;switch(t){case"owner":return`rgba(232, 222, 255, ${i})`;case"admin":return`rgba(227, 242, 253, ${i})`;case"member":return`rgba(232, 245, 233, ${i})`;case"guest":return`rgba(245, 245, 245, ${i})`;default:return`rgba(245, 245, 245, ${i})`}},lr=Pt(Et)(({role:t})=>({backgroundColor:nr(t.toLowerCase()),color:"#000000"})),cr=t=>{switch(t){case"valid":return s=>s.palette.success.light;case"expired":return s=>s.palette.text.disabled;case"revoked":return s=>s.palette.error.light;default:return s=>s.palette.warning.light}},dr=Pt(Et)(({theme:t,status:s})=>({backgroundColor:cr(s)(t),color:"#FFFFFF"}));function Ws({did:t}){return e.jsx(Ie,{size:14,responsive:!1,compact:!0,copyable:!1,did:t})}Ws.propTypes={did:S.string.isRequired};function Vs({timestamp:t,locale:s}){return e.jsx(j,{sx:{minWidth:"100px"},children:e.jsx(Qe,{value:t,locale:s})})}Vs.propTypes={timestamp:S.number.isRequired,locale:S.string.isRequired};function Gs({name:t="",role:s}){const{formatRoleName:i}=$s();return e.jsx(lr,{label:i(t||s),size:"small",role:t||s,sx:{borderRadius:1}})}Gs.propTypes={role:S.string.isRequired,name:S.string};function Ys({status:t}){const{t:s}=F();return e.jsx(dr,{label:s(`team.passport.statusMap.${t}`),size:"small",status:t,sx:{borderRadius:1}})}Ys.propTypes={status:S.string.isRequired};function Ks({source:t}){const{t:s}=F();return t?s(`team.passport.sourceMaps.${t}`):"-"}Ks.propTypes={source:S.string.isRequired};function Xs({user:t,size:s="default",tooltip:i=!1,inService:u=!1}){const{teamDid:n}=X(),p=et.useMemo(()=>Ot(t.avatar,n,u),[t.avatar,n,u]),m=et.useMemo(()=>e.jsx(Ie,{did:t?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[t?.did]),o=pi(()=>({...t,avatar:p}),[t,p]);return s==="small"?e.jsx(Us,{variant:"circular",logo:p,name:e.jsx(H,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:t.fullName||t.email}),...s==="small"?{tooltip:i?e.jsx(Ie,{did:t?.did}):!1,size:24}:{description:m,size:36}}):e.jsx(mi,{user:o,avatarSize:s==="small"?24:36,cardType:hi.Detailed,infoType:fi.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}Xs.propTypes={user:S.object.isRequired,size:S.string,tooltip:S.bool,inService:S.bool};const ur=et.memo(Xs),pr=t=>e.jsx(Ws,{did:t}),Ht=(t,s)=>e.jsx(Gs,{name:t,role:s}),Ut=t=>e.jsx(Ys,{status:t}),Zs=(t,s)=>e.jsx(Vs,{timestamp:t,locale:s}),ot=t=>e.jsx(Ks,{source:t}),qt=(t,s=!1)=>e.jsx(ur,{user:t,inService:s}),mr=t=>e.jsx(qs,{ua:t}),xs="info";function Js({createPassportSvg:t,passport:s,onCancel:i,onSwitchPassport:u=()=>{}}){const{t:n}=F(),p=xi({tab:xs}),m={info:{label:n("common.basicInfo"),value:xs,component:()=>e.jsx(Qs,{passport:s,createPassportSvg:t})},logs:{label:n("common.logs"),value:"logs",component:()=>e.jsx(si,{passport:s})},related:{label:n("team.passport.related"),value:"related",component:()=>e.jsx(ii,{passport:s,onSwitchPassport:u})}},o=Object.values(m).map(({label:l,value:a})=>({label:l,value:a})).filter(l=>l.value==="related"?s.parentDid:!0),d=m[p.tab]||m.info,r=l=>{p.tab=l};return e.jsx(le,{title:n("common.passport"),onClose:i,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(fr,{children:[e.jsx(j,{className:"tabs",children:e.jsx(Mi,{tabs:o,current:p.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(j,{className:"body",children:e.jsx(d.component,{})})]})})}Js.propTypes={createPassportSvg:S.func.isRequired,passport:S.object.isRequired,onCancel:S.func.isRequired,onSwitchPassport:S.func};const fr=ce(j)`
|
|
2
2
|
margin-top: -16px;
|
|
3
3
|
|
|
4
4
|
.tabs {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ey as k}from"./index-
|
|
1
|
+
import{ey as k}from"./index-OdvXHPqT.js";var m,C;function S(){if(C)return m;C=1;function v(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,f=-1,t=0,n,l=0;l<=o.length;++l){if(l<o.length)n=o.charCodeAt(l);else{if(n===47)break;n=47}if(n===47){if(!(f===l-1||t===1))if(f!==l-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),f=l,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,f=l,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(f+1,l):r=o.slice(f+1,l),i=l-f-1;f=l,t=0}else n===46&&t!==-1?++t:t=-1}return r}function b(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,f=arguments.length-1;f>=-1&&!r;f--){var t;f>=0?t=arguments[f]:(i===void 0&&(i=k.cwd()),t=i),v(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(v(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return v(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];v(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(v(e),v(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var f=e.length,t=f-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var l=r.length,s=l-n,c=t<s?t:s,u=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>c&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var h=e.charCodeAt(i+a),y=r.charCodeAt(n+a);if(h!==y)break;h===47&&(u=a)}var d="";for(a=i+u+1;a<=f;++a)(a===f||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(v(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,f=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){f=n;break}}else t=!1;return f===-1?i?"/":".":i&&f===1?"//":e.slice(0,f)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');v(e);var i=0,f=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),l>=0&&(c===r.charCodeAt(l)?--l===-1&&(f=n):(l=-1,f=s))}return i===f?f=s:f===-1&&(f=e.length),e.slice(i,f)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else f===-1&&(t=!1,f=n+1);return f===-1?"":e.slice(i,f)}},extname:function(e){v(e);for(var r=-1,i=0,f=-1,t=!0,n=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(s===47){if(!t){i=l+1;break}continue}f===-1&&(t=!1,f=l+1),s===46?r===-1?r=l:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||f===-1||n===0||n===1&&r===f-1&&r===i+1?"":e.slice(r,f)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return b("/",e)},parse:function(e){v(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),f=i===47,t;f?(r.root="/",t=1):t=0;for(var n=-1,l=0,s=-1,c=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!c){l=u+1;break}continue}s===-1&&(c=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===l+1?s!==-1&&(l===0&&f?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(l,s)):(l===0&&f?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(l,n),r.base=e.slice(l,s)),r.ext=e.slice(n,s)),l>0?r.dir=e.slice(0,l-1):f&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return g.posix=g,m=g,m}export{S as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c0 as c,r as _,cr as f,h0 as S,cR as r}from"./index-OdvXHPqT.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],o=a[1],i=f(function(t){o(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,i]};export{d as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as O,u as W,r as i,a as R,b as D,j as e,o as y,d as H,e as Q,g as Y,f as F,W as U,L as X,p as j,h as J,i as k,T as h,G as v,k as K,l as z,s as q,C as Z}from"./index-
|
|
1
|
+
import{c as O,u as W,r as i,a as R,b as D,j as e,o as y,d as H,e as Q,g as Y,f as F,W as U,L as X,p as j,h as J,i as k,T as h,G as v,k as K,l as z,s as q,C as Z}from"./index-OdvXHPqT.js";import{f as ee}from"./index-BojVbZw0.js";import{v as $}from"./index-C1YX-486.js";import{M as V}from"./metric-D2ucAHiH.js";import{C as M}from"./click-to-copy-mqyEDC5n.js";var ne=O(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const B=i.createContext({}),{Provider:se,Consumer:xe}=B;function ae({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R(D.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R(D.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R(D.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(se,{value:{users:b},children:a})}function te(){const{users:a}=i.useContext(B);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},re=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const oe=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function ie(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=H(),{users:c}=te(),t=Q(()=>oe(d)),{t:s,locale:p}=i.useContext(Y),_=F(),f=re(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:z(p)};return K(o,m)});let b=null;if(r)b=e.jsx(Z,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(U,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(U,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(U,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(X,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(J(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const L=c.length,A=c.filter(n=>n.approved).length;let P=L;A&&(P+=`<small><strong>${ne(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>n.status==="running").length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>n.status==="running").length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const G=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ee(new Date(a.createdAt).getTime(),z(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:G.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx($,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx($,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx($,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(le,{children:b})}const le=q.main`
|
|
2
2
|
.page-header {
|
|
3
3
|
display: flex;
|
|
4
4
|
justify-content: space-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ak as ee,A as T,r as f,a as te,b as se,m as S,u as j,x as oe,aw as A,J as F,j as t,w as q,ax as re,T as R,y as k,$,o as m,ay as ne,az as ae,v as _,C as N,aA as ie,H as O,Y as W,aB as le,aC as ce,N as B,aD as ue,E as de,L as pe,aE as he,aa as fe,s as M,a7 as me,a8 as ge,aF as xe,a9 as be}from"./index-
|
|
1
|
+
import{ak as ee,A as T,r as f,a as te,b as se,m as S,u as j,x as oe,aw as A,J as F,j as t,w as q,ax as re,T as R,y as k,$,o as m,ay as ne,az as ae,v as _,C as N,aA as ie,H as O,Y as W,aB as le,aC as ce,N as B,aD as ue,E as de,L as pe,aE as he,aa as fe,s as M,a7 as me,a8 as ge,aF as xe,a9 as be}from"./index-OdvXHPqT.js";import{u as L}from"./useLocalStorage-BRX7xEeE.js";import{C as ke,c as ye,e as Se,_ as je,a as we,d as ve,s as Pe,S as z,b as Re,A as Ce}from"./item-D5nrOHxx.js";import{e as D}from"./engine-Cere5Eel.js";import{g as U}from"./get-safe-url-DG3hbVuw.js";import{P as V}from"./permission-CUvNs2Zv.js";import{A as Le}from"./ArrowDropDown-CPMzkOwU.js";import{B as Ee}from"./Breadcrumbs-BcwyHALS.js";import"./Verified-DFAnifny.js";import"./ChevronLeft-Mrf8wNcO.js";import"./ChevronRight-CgNj8oK3.js";import"./Search-2a28Zd0Q.js";import"./index-BShBVqEp.js";import"./blocklet-BwXw89V1.js";import"./Autocomplete-BnpjHbVI.js";import"./ListSubheader-B_qXJClL.js";import"./VerifiedUser-BFvcT9A-.js";import"./Add-CTkKWsbA.js";import"./Launch-C31ynKKh.js";import"./Done-B-4ttL5E.js";import"./DeleteOutline-BXGUPwfv.js";import"./delete-confirm-BBlDevSj.js";import"./click-to-copy-mqyEDC5n.js";import"./MoreVert-Bg7SRP_I.js";import"./ButtonGroup-B8CEk0Fm.js";import"./getValidReactChildren-UBZRExQI.js";function De(e){const n=ee(),l=T(),[s,r]=L(`sid:blocklet:purchase:${e}`),[i,c]=f.useState(!1),[u,a]=f.useState(null),d=()=>{const{pathname:o,searchParams:g}=new URL(window.location.href),x=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";g.get("sid")&&(r(""),l(o.replace(x,"/"),{replace:!0}))},p=!!(n.get("assetDid")&&s&&n.get("sid")===s);return te(se.BlockletEvents.purchaseChange,o=>{o.did===e&&(a(o.session),["declined","confirmed","error"].includes(o.session.status)&&(c(!0),setTimeout(d,2e3)))}),f.useEffect(()=>{u&&u.id!==s&&r(u.id)},[u]),{hasCompleted:i,hasPurchased:p,session:u,setSession:a,doRedirect:d}}function Be(e){setTimeout(()=>{window.location.href=U(e,{allowDomains:null})},1e3)}function H({meta:e,onCancel:n,handlePaySuccess:l=Be,storeUrl:s}){const{t:r}=S(),{info:i}=j(),[c,u]=f.useState("both"),[a,d]=f.useState(1),p=oe(i),o=A(e,i,s),g=P=>{P!==c&&u(P)},x=()=>{c&&(d(2),c==="verify"&&(window.location.href=U(o)))},w=(P,E)=>{E!=="backdropClick"&&n()},b=()=>{l(o)},h=F.getDisplayName({meta:e});if(c==="purchase"&&a===2)return t.jsx(q,{open:!0,popup:!0,baseUrl:s,action:"acquire-asset",checkFn:re.create({baseURL:k(s,"/store")}).get,onSuccess:b,onClose:n,checkTimeout:60*5e3,extraParams:{factory:e.nftFactory},webWalletUrl:p,disableClose:!0,saveConnect:!1,showDownload:!1,messages:{title:r("store.purchase.auth.title",{name:h}),scan:r("store.purchase.auth.scan"),confirm:r("store.purchase.auth.confirm"),success:t.jsxs(t.Fragment,{children:[t.jsx(R,{gutterBottom:!0,children:r("store.purchase.auth.success")}),t.jsxs(R,{variant:"subtitle2",children:[" ",r("store.purchase.autoLaunch",{name:h})]})]})}});const v=$;return t.jsx(v,{title:r("store.purchase.title",{name:h}),disableEscapeKeyDown:!0,open:!0,fullWidth:!0,onClose:w,children:t.jsx("div",{style:{marginBottom:16},children:t.jsx(ke,{action:c,onNext:x,onSelect:g})})})}H.propTypes={...ye,storeUrl:m.string.isRequired,handlePaySuccess:m.func};function K({meta:e,buttonText:n,storeUrl:l,isResource:s=!1}){const{t:r}=S(),i=T(),{info:c}=j(),{api:u}=ne(),a=F.isFreeBlocklet(e)===!1,[d,p]=f.useState(!1),{hasPurchased:o}=De(e.did),[g,x]=f.useState(!1),[w]=L("instant-blocklet-install",!1),[b,h]=f.useState(!1),v=f.useMemo(()=>d?r(a?"blocklet.status.purchasing":"blocklet.status.waiting"):"",[d,r,a]),P=f.useMemo(()=>s?r("blocklet.status.resource"):a?n.purchase:n.launch,[a,n,s]),E=y=>{y.preventDefault(),y.stopPropagation();try{if(p(!0),a){x(!0);return}if(w){h(!0);return}if(!a){const C=A(e,c,l);window.location.href=U(C)}}catch(C){O.error(W(C),{autoHideDuration:5e3}),console.error("Blocklet installed failed",C)}finally{p(!1)}},Q=()=>{p(!1),x(!1)},X=y=>{p(!1),h(!1),i(`/blocklets/${y.appDid}/components`)},Z=()=>{p(!1),h(!1)};return t.jsxs(t.Fragment,{children:[t.jsx(Se,{children:t.jsx(V,{permission:"mutate_blocklets",children:y=>t.jsx(ae,{title:s?r("launchBlocklet.error.resourceBlocklet"):"",children:t.jsx(_,{onClick:E,size:"small",sx:{cursor:s?"not-allowed":"pointer",overflow:"hidden"},disabled:!!(v||!y),variant:"outlined",color:"primary","data-cy":"install-blocklet",children:v?t.jsxs(t.Fragment,{children:[t.jsx(N,{size:16,style:{marginRight:3}}),v]}):P},e.did)})})}),(o||g)&&t.jsx(H,{method:"launch",meta:e,mode:"both",onCancel:Q,storeUrl:l}),b&&t.jsx(q,{popup:!0,open:!0,forceConnected:!1,className:"launch-from-url-auth",action:"launch-free-blocklet-by-session",checkFn:u.get,checkTimeout:5*60*1e3,onSuccess:X,extraParams:{title:e.title,blockletMetaUrl:decodeURIComponent(ie(l,e.did).trim())},messages:{title:r("setup.keyPair.title"),scan:r("setup.keyPair.scan"),confirm:r("setup.keyPair.confirm"),success:r("setup.keyPair.success")},onClose:Z})]})}K.propTypes={isResource:m.bool,meta:m.object.isRequired,buttonText:m.shape({purchase:m.string.isRequired,launch:m.string.isRequired}).isRequired,storeUrl:m.string.isRequired};const Ue=(e,n,l)=>{const s=fe(n);return k(l,`/blocklets/${e.did}/?server-url=${s}`)},I=({meta:e,attribute:n,value:l})=>e._formatted?e._formatted[n]:l,Ie=(e,n)=>{if(!e||!n)return"";try{return k(n,e)}catch(l){return console.warn("Failed to construct avatar URL:",l),""}};function G({blocklet:e,endpoint:n="",serverVersion:l=""}){const{t:s}=S(),r=j();let i=k(r.imgPrefix,"blocklet.png");const c=n;if(c.startsWith("http")&&e.logo)i=k(c,ue(e.did,e.logo,e.version));else{let g=(window.env.apiPrefix||"/").replace(/^\/+/,"").replace(/\/+$/,"");g&&(g=`/${g}`),i=k(g,`/blocklet/logo/${e.did}`)}try{const o=new URL(i);o.searchParams.set("v",e.version||+new Date),i=o.href}catch{}const u=r?.info.mode!==de.NODE_MODES.SERVERLESS,a=o=>o.currentTarget.contains(o.target)?!0:(o.preventDefault(),!1),d={meta:e,buttonText:{purchase:s("common.purchase"),launch:s("common.launch")},storeUrl:c};let p=null;return u&&(p=t.jsx("div",{style:{display:"flex",alignItems:"center"},children:t.jsx(we,{serverVersion:l,requirementVersion:e.requirements?.server,size:"small",children:t.jsx(K,{isResource:!(D.hasStartEngine(e)||D.isGatewayBlocklet(e)||D.isPackBlocklet(e)),...d})})})),t.jsx(pe,{href:Ue(e,r.info,n),style:{color:"initial",textDecoration:"none"},onClick:a,target:"_blank",children:t.jsx(Te,{title:I({meta:e,attribute:"title",value:e.title||e.name}),did:e.did,description:I({meta:e,attribute:"description",value:e.description}),cover:e.logo?i:"",version:e.version,onButtonClick:null,icons:e.docker?.image?[{key:"docker",icon:t.jsx(B,{sx:{display:"flex",color:"primary.main"},children:t.jsx(he,{icon:ve})}),title:s("blocklet.dockerImage")}]:[],official:e.isOfficial?{tooltip:s("blocklet.component.isOfficial")}:void 0,author:e.owner.fullName,avatar:Ie(e.owner.avatar,n),download:e.stats.downloads,button:p})})}G.propTypes={blocklet:m.object.isRequired,serverVersion:m.string,endpoint:m.string};function Y({storeUrl:e,handleSearchSelect:n=null,extraFilter:l=void 0,...s}){const{locale:r}=S(),i=j(),[c,u]=f.useState({}),a=o=>{u(o)},d=e,p=i?.info?.version;return f.useEffect(()=>{u({})},[d]),t.jsx(le,{FallbackComponent:ce,resetKeys:[d],children:t.jsx(B,{...s,sx:{"& .title-bar":{pt:0},".blocklet-list":{mt:0},"& h2":{display:"none"}},children:t.jsx(je,{layout:{showExplore:!1,showTitle:!0},blockletRender:o=>t.jsx(G,{...o,endpoint:d}),baseSearch:!0,endpoint:d,locale:r,onFilterChange:a,onSearchSelect:n,filters:c,extraFilter:l,serverVersion:p})})})}Y.propTypes={storeUrl:m.string.isRequired,handleSearchSelect:m.func,extraFilter:m.func};const Te=M(Pe)`
|
|
2
2
|
.ms-highlight {
|
|
3
3
|
color: ${e=>e.theme.palette.primary.main};
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eG as D}from"./index-Cp668Jsm.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
|
|
1
|
+
import{eG as D}from"./index-OdvXHPqT.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o,T as i,dl as d,dm as x,dd as f}from"./index-
|
|
1
|
+
import{j as o,T as i,dl as d,dm as x,dd as f}from"./index-OdvXHPqT.js";function w({name:t,nameFormatter:r=e=>typeof e=="string"?e.split(" ").map(c=>d(x(c))).join(" "):e,layout:n="horizontal",children:a,valueComponent:l="div",nameWidth:m=90,...s}){return o.jsxs(p,{layout:n,width:m,...s,children:[o.jsx(i,{color:"textSecondary",className:"info-row__name",children:r(t)}),a&&o.jsx(i,{color:"textPrimary",component:l,className:"info-row__value",children:a})]})}const p=f("div")`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: ${t=>t.layout==="vertical"?"column":"row"};
|
|
4
4
|
justify-content: flex-start;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-
|
|
2
|
-
import{c0 as V,r as b,ct as U,aG as N,j as e,hi as H,aP as O,fb as q,N as n,G as g,T as S,t as J,aU as W,dH as A,s as z,dn as E,a4 as X,dp as K,bE as C,f as Y,aQ as Q,f4 as Z,jf as ee}from"./index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-tNmLlP7P.js","./index-OdvXHPqT.js","./index-DGkT7afN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c0 as V,r as b,ct as U,aG as N,j as e,hi as H,aP as O,fb as q,N as n,G as g,T as S,t as J,aU as W,dH as A,s as z,dn as E,a4 as X,dp as K,bE as C,f as Y,aQ as Q,f4 as Z,jf as ee}from"./index-OdvXHPqT.js";import{R as te,a as oe,D as re}from"./url-evaluation-DgbmtLnr.js";import{S as B}from"./Slider-DfrL_KUv.js";import{k as se,g as ie}from"./index-D9XGO23S.js";import"./visuallyHidden-Dan1xhjv.js";import"./url-join-CTs-nsh5.js";import"./index-BWyeLBJr.js";import"./_createAggregator-DTDqEyEr.js";import"./depsEqual-BxsaWGVI.js";import"./index-DpRx2tZw.js";import"./index-DRYJ0xIl.js";import"./toUpper-z0GOUGgF.js";function ae(o){var c=V(b.useState(o),2),i=c[0],r=c[1],a=U(i),h=b.useCallback(function(){return a.current},[]);return[i,r,h]}const ne=N([e.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")]),le=N(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),de=N(e.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"})),T=b.createContext({}),D=()=>b.useContext(T);function ce({children:o,restrictions:c,i18n:i,theme:r}){const[a,h]=ae({loading:!1}),p=s=>h(j=>({...j,loading:s})),u=b.useMemo(()=>({...a,onLoading:p,restrictions:c,i18n:i}),[a]);return e.jsx(H,{theme:r,children:e.jsx(T.Provider,{value:u,children:o})})}const pe=["1024x1024","1024x1792","1792x1024"],xe=["256x256","512x512","1024x1024"],ue=[{label:"DALL·E 3",value:"dall-e-3"},{label:"DALL·E 2",value:"dall-e-2"}];function me({onSubmit:o}){const{loading:c,i18n:i}=D(),r=O({model:"dall-e-3",prompt:"",size:"1024x1024",number:1}),a=()=>{const s=JSON.parse(JSON.stringify(r));Object.values(r).every(y=>!!y)&&o(s)},{run:h}=q(a,{wait:500}),p={width:"100%",pl:1,pr:1},u=r.model==="dall-e-2"?xe:pe;return e.jsxs(he,{onSubmit:s=>s.preventDefault(),children:[e.jsx(n,{sx:{flex:1,overflowY:"auto",overflowX:"hidden",m:2,mb:0},children:e.jsxs(g,{container:!0,sx:{gap:2.5},children:[e.jsxs(g,{size:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:i("aiImagePrompt")}),e.jsx(J,{sx:{width:1,mt:1},size:"small",type:"text",required:!0,placeholder:i("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:r.prompt??"",onChange:s=>{s.stopPropagation(),r.prompt=s.target.value},slotProps:{htmlInput:{maxLength:1e3}}})]}),e.jsxs(g,{size:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:`${i("aiImageModel")}`}),e.jsx(te,{row:!0,sx:{".MuiFormControlLabel-label":{fontSize:"12px",color:"text.primary"}},value:r.model,onChange:s=>{r.number=1,r.size="1024x1024",r.model=s.target.value},children:ue.map(s=>e.jsx(W,{value:s.value,control:e.jsx(oe,{size:"small"}),label:s.label},s.label))})]}),e.jsxs(g,{size:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:`${i("aiImageSize")}: ${r.size}`}),e.jsx(g,{container:!0,sx:{gap:2.5,pt:1},children:e.jsx(n,{sx:{flex:1},children:e.jsx(n,{...p,children:e.jsx(B,{size:"small",min:0,max:u.length-1,step:1,value:u.findIndex(s=>s==r.size),onChange:(s,j)=>{r.size=u[j]}})})})})]}),r.model==="dall-e-2"&&e.jsxs(g,{size:12,children:[e.jsx(S,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:`${i("aiImageNumber")}: ${r.number}`}),e.jsx(n,{...p,children:e.jsx(B,{size:"small",defaultValue:1,valueLabelDisplay:"auto",step:1,min:1,max:10,value:r.number,onChange:(s,j)=>{s.stopPropagation(),r.number=Number(j)}})})]})]})}),e.jsx(A,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:h,disabled:c,children:i(c?"aiImageGenerating":"aiImageGenerate")},c?"loading-submit":"submit")]})}const he=z(n)`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100%;
|
|
@@ -93,7 +93,7 @@ import{c0 as V,r as b,ct as U,aG as N,j as e,hi as H,aP as O,fb as q,N as n,G as
|
|
|
93
93
|
& path:last-child {
|
|
94
94
|
fill: white;
|
|
95
95
|
}
|
|
96
|
-
`,ye=b.lazy(()=>C(()=>import("./lottie-react.esm-
|
|
96
|
+
`,ye=b.lazy(()=>C(()=>import("./lottie-react.esm-tNmLlP7P.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(o=>({default:o.Player})));function R({src:o}){return e.jsx(ye,{src:o,loop:!0,autoplay:!0})}function we({options:o,handleApi:c,onSelect:i,onFinish:r,onClose:a,isMobile:h}){const{loading:p,onLoading:u,restrictions:s,i18n:j}=D(),[l,y]=b.useState([]),[f,I]=b.useState(),L=Y(),k=s?.maxNumberOfFiles,[x,_]=b.useState({}),m=O({}),P=Object.keys(m).filter(t=>m[t]);b.useEffect(()=>{f&&!x.error&&C(()=>import("./lottie-error-DeJ4jU66.js"),[],import.meta.url).then(t=>{_(d=>({...d,error:t.default}))}),o&&!l.length&&!x.loading&&C(()=>import("./lottie-loading-Npqo86wA.js"),[],import.meta.url).then(t=>{_(d=>({...d,loading:t.default}))}),!o&&!x.welcome&&C(()=>import("./lottie-welcome-oyMgXGo-.js"),[],import.meta.url).then(t=>{_(d=>({...d,welcome:t.default}))})},[f,o,l.length,x]),Q(async()=>{if(o){I(void 0),u(!0);try{const t=await c({...o,responseFormat:"b64_json"});if(t.data){const w=(t.data||[]).map(v=>({src:`data:image/png;base64,${v.b64Json||v.b64_json}`,width:o.size?Number((o.size||"").split("x")[0]):1024,alt:o.prompt}));y(l?[...w,...l]:w)}else I(t)}catch(t){console.error("AIImage generate error: ",t),I(t?.response?.data||t)}finally{u(!1),r()}}},[o?.number,o?.prompt,o?.size]);const F=t=>{const d=Object.keys(m).filter(v=>m[v]);if(k?d.length<k:!0)m[t]?m[t]=!1:m[t]=!0;else{const v=d.pop();v!==t&&(m[v]=!1),m[t]=!m[t]}},M=t=>{if(l){const d=l.findIndex(w=>w.src===t);d>-1&&(m[t]=!1,l.splice(d,1),y([...l]))}},$=()=>{const t={width:document.querySelector(".photo-item img")?.offsetWidth||0,height:document.querySelector(".photo-item img")?.offsetHeight||0};return e.jsx(e.Fragment,{children:Array.from({length:o?.number||1}).map((d,w)=>e.jsx(g,{children:e.jsx(E,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{borderRadius:"12px",...t}})},w))})},G=()=>f?e.jsxs(n,{sx:{width:300,height:300,m:"auto"},children:[x.error&&e.jsx(R,{src:x.error},"error"),e.jsx(n,{sx:{textAlign:"center",color:"#25292F",wordBreak:"break-all"},children:f?.message})]}):l&&Array.isArray(l)&&l.length>0?e.jsxs(e.Fragment,{children:[e.jsx(n,{sx:{flexGrow:1,height:0,overflowX:"hidden",overflowY:"auto"},children:e.jsx(ze,{sx:h?{p:0,border:"none !important"}:{p:2},children:e.jsxs(g,{spacing:2,container:!0,className:"photo-wrapper",children:[p&&e.jsx($,{}),l.map((t,d)=>e.jsx(g,{className:"photo-item",children:e.jsx(fe,{...t,selected:m[t.src],style:{objectFit:"cover",cursor:"pointer",transition:"all 0.3s",border:m[t.src]?`2px solid ${L.palette.primary.main}`:"2px solid transparent",WebkitUserDrag:"none",width:"100%",height:"100%"},onClick:()=>{F(t.src)},onDelete:()=>{M(t.src)}})},t.src))]})})}),e.jsxs(n,{sx:{mt:2,display:"flex",justifyContent:a?"space-between":"flex-end",button:{borderRadius:"30px",height:40,textTransform:"none"}},children:[a&&typeof a=="function"&&e.jsx(A,{color:"primary",variant:"outlined",onClick:a,children:e.jsx(Z,{})}),e.jsx(A,{color:"primary",variant:"contained",disabled:!P.length||p,onClick:()=>{const t=se(l,"src");i(P.map(d=>t[d]))},children:P.length?j("aiImageSelectedUse"):j("aiImageSelectedTip")})]})]}):o?e.jsx(n,{sx:{width:220,height:220,m:"auto"},children:x.loading&&e.jsx(R,{src:x.loading},"loading")}):e.jsx(n,{sx:{width:300,height:300,m:"auto"},children:x.welcome&&e.jsx(R,{src:x.welcome},"welcome")});return e.jsx(ve,{children:G()})}const ve=z(n)`
|
|
97
97
|
min-height: 100%;
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as v,j as n,N as a,dd as w,m as z,f as p,dk as k}from"./index-
|
|
1
|
+
import{aG as v,j as n,N as a,dd as w,m as z,f as p,dk as k}from"./index-OdvXHPqT.js";const E=v(n.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m4.3 14.3c-.39.39-1.02.39-1.41 0L12 13.41 9.11 16.3c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 7.7 9.11a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l2.89-2.89c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.41 12l2.89 2.89c.38.38.38 1.02 0 1.41"}));function r({icon:e=null,title:t="",description:o="",extra:y=null,...b}){return n.jsxs(F,{...b,children:[e,typeof t=="string"?n.jsx(a,{sx:{mt:3,fontSize:22,fontWeight:400,color:"text.primary",textAlign:"center"},children:t}):t,typeof o=="string"?n.jsx(a,{sx:{mt:1,fontSize:14,color:"text.secondary",textAlign:"center"},children:o}):o,n.jsx(a,{sx:{mt:3},children:y})]})}const F=w("div")`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dG as C,r as o,U as d,j as e,dH as c,b5 as b,dI as I,bu as E,dJ as z,dd as u,dK as A}from"./index-
|
|
1
|
+
import{dG as C,r as o,U as d,j as e,dH as c,b5 as b,dI as I,bu as E,dJ as z,dd as u,dK as A}from"./index-OdvXHPqT.js";import{B as L}from"./ButtonGroup-B8CEk0Fm.js";function P({...r}){const{size:p="medium",color:i="primary",menu:a=[],children:s=null,variant:m="contained",onClick:x=C,menuButtonProps:f={},...h}=r,[j,l]=o.useState(!1),n=o.useRef(null),g=Array.isArray(a)?a.map((t,B)=>o.isValidElement(t)?t:o.createElement(d,{...t,key:B})):a,y=()=>{l(t=>!t)},k=t=>{n.current&&n.current.contains(t.target)||l(!1)},M=t=>{t.target.closest(".MuiMenuItem-root")&&l(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:m,size:p,color:i,ref:n,...h,children:[typeof s=="function"?s():e.jsx(c,{onClick:x,color:i,children:s}),e.jsx(c,{onClick:y,color:i,...f,"aria-label":"more functions",children:e.jsx(b,{})})]}),e.jsx(w,{open:j,anchorEl:n.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(I,{children:e.jsx(E,{onClickAway:k,children:e.jsx(z,{onClick:M,children:g})})})})]})}P.Item=d;const v=u(L)`
|
|
2
2
|
> .MuiButtonBase-root:last-of-type {
|
|
3
3
|
min-width: 2em;
|
|
4
4
|
padding-left: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,cB as j,N as v,A as P,r as a,g as S,ay as w,u as k,x as b,f as E,aP as K,dh as W,cr as i,b7 as _,w as N,Z as U,C as B,di as R,dj as z}from"./index-
|
|
1
|
+
import{j as e,cB as j,N as v,A as P,r as a,g as S,ay as w,u as k,x as b,f as E,aP as K,dh as W,cr as i,b7 as _,w as N,Z as U,C as B,di as R,dj as z}from"./index-OdvXHPqT.js";import{p as c}from"./index-CIOQij4h.js";function o({children:r,...s}){return e.jsx(j,{...s,did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(v,{sx:{maxWidth:"100%",height:"100%"},children:r})})}function L(){const r=P(),{t:s,locale:d}=a.useContext(S),{api:l}=w(),{info:u}=k(),p=b(u),f=E(),n=K({ready:!1,success:!1,error:null,invalidSession:!1}),h=W(),m=()=>{try{const t=new URL(window.location.href);if(t.hash.includes("invalid")){n.invalidSession=!0;return}const g=t.searchParams.get("__connect_url__"),y=R(g);if(!z(y))throw new Error;n.ready=!0}catch{n.invalidSession=!0,r("#invalid",{replace:!0})}};a.useLayoutEffect(()=>m(),[]);const x=i(t=>{n.error=t.message,r("#invalid",{replace:!0})}),C=i(()=>{n.success=!0});if(n.invalidSession)return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.invalidSession"),description:s("didConnect.common.invalidSessionDesc")})});if(n.error){const t=n.error;return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.connectionError"),description:t})})}return n.success?e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"info",icon:e.jsx(_,{style:{color:f.palette.success.main,fontSize:72}}),title:s("didConnect.genKeyPair.success"),description:s("didConnect.genKeyPair.successDesc")})}):n.ready?e.jsx(o,{children:e.jsx(N,{className:"connect",action:"gen-key-pair",checkFn:l.get,checkTimeout:10*60*1e3,extraParams:{sourceAppPid:h?.appPid,forceSwitch:!0},saveConnect:!1,forceConnected:!1,webWalletUrl:p,onSuccess:C,onError:x,locale:d,messages:{title:s("didConnect.genKeyPair.title"),scan:s("didConnect.genKeyPair.scan"),confirm:s("auth.confirm"),success:s("didConnect.genKeyPair.success")},popup:!0,open:!0,hideCloseButton:!0})},"ready"):e.jsx(U,{children:e.jsx(B,{})})}export{L as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as je,j as e,u as Q,r as h,e as Fe,aH as $r,E as k,aI as Ur,aJ as an,aK as Hn,aL as sn,aM as et,m as z,ad as le,s as ne,aN as ln,o as p,aO as zr,aP as cn,aQ as Br,H as re,O as dn,T as A,t as q,az as fe,aR as _e,C as K,X as be,v as V,aS as Gn,Y as pe,N as W,g as Mt,P as tt,aT as Mr,d as Wt,aU as Ie,aV as me,aa as Wr,aW as qr,aX as Hr,y as Gr,A as Kn,W as un,p as mn,h as te,aY as qt,a as Et,U as X,b as ct,aZ as Yn,a_ as Vn,V as Xn,a4 as Pt,a$ as Kr,b0 as Yr,b1 as Vr,b2 as Xr,b3 as nt,J as Qr,b4 as Zr,aF as Ge,b5 as Jr,a9 as jt,a6 as wt,b6 as ei,a7 as _t,L as Ht,K as ti,b7 as ni,b8 as Qn,a8 as ri,b9 as Zn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as Jn,D as At,f as er,bf as ai,bg as fn,ak as si,bh as li,bi as ee,bj as ci,S as pn,k as gn,l as hn,bk as di,bl as ui,bm as mi}from"./index-
|
|
1
|
+
import{aG as je,j as e,u as Q,r as h,e as Fe,aH as $r,E as k,aI as Ur,aJ as an,aK as Hn,aL as sn,aM as et,m as z,ad as le,s as ne,aN as ln,o as p,aO as zr,aP as cn,aQ as Br,H as re,O as dn,T as A,t as q,az as fe,aR as _e,C as K,X as be,v as V,aS as Gn,Y as pe,N as W,g as Mt,P as tt,aT as Mr,d as Wt,aU as Ie,aV as me,aa as Wr,aW as qr,aX as Hr,y as Gr,A as Kn,W as un,p as mn,h as te,aY as qt,a as Et,U as X,b as ct,aZ as Yn,a_ as Vn,V as Xn,a4 as Pt,a$ as Kr,b0 as Yr,b1 as Vr,b2 as Xr,b3 as nt,J as Qr,b4 as Zr,aF as Ge,b5 as Jr,a9 as jt,a6 as wt,b6 as ei,a7 as _t,L as Ht,K as ti,b7 as ni,b8 as Qn,a8 as ri,b9 as Zn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as Jn,D as At,f as er,bf as ai,bg as fn,ak as si,bh as li,bi as ee,bj as ci,S as pn,k as gn,l as hn,bk as di,bl as ui,bm as mi}from"./index-OdvXHPqT.js";import{u as fi,T as pi}from"./html-title-F0NEfYXw.js";import{A as gi}from"./ArrowDropDown-CPMzkOwU.js";import{u as Kt,C as B,a as xn}from"./index.esm-Dt7UO6Gw.js";import{S as ae}from"./switch-control-LS_NeTom.js";import{P as ie}from"./permission-CUvNs2Zv.js";import{H as tr,g as hi}from"./index-Y2ocg0We.js";import{A as nr}from"./Link-DKdN2Z0q.js";import{D as ve,R as rr,a as It,b as xi,W as Ke}from"./url-evaluation-DgbmtLnr.js";import{D as dt}from"./delete-confirm-BBlDevSj.js";import{v as rt}from"./index-C1YX-486.js";import{s as yi}from"./logo-BKA11TRi.js";import{u as bi}from"./useLocalStorage-BRX7xEeE.js";import{R as vi}from"./Refresh-L5IK_LF1.js";import{L as ji}from"./LoadingButton-Zo_5FEH-.js";import{C as wi,R as Ci,P as ir}from"./rotate-session-key-BdVsr217.js";import{A as Le}from"./Add-CTkKWsbA.js";import{B as or,D as yn}from"./status-tQggAyS9.js";import{i as Si}from"./is-path-prefix-equal-DVbPRsdH.js";import{N as Di}from"./ChevronRight-CgNj8oK3.js";import{I as ki}from"./MoreVert-Bg7SRP_I.js";import{E as ar}from"./Edit-BDZJlnuz.js";import{A as Ri}from"./CallMerge-DG9UCIML.js";import{C as Ti}from"./CardContent-DUT0SHjO.js";import{S as Ei}from"./Slider-DfrL_KUv.js";import"./Switch-iXfQHCNE.js";import"./FilterList-BnK3OcNB.js";import"./CSSTransition-CgU-qJG1.js";import"./emotion-cache.browser.esm-DKCrrwkN.js";import"./index-2hrGtHmX.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BxsaWGVI.js";import"./index-BShBVqEp.js";import"./TableSearch-BfqBG8KC.js";import"./Search-2a28Zd0Q.js";import"./Clear-D0eiF7LM.js";import"./click-to-copy-mqyEDC5n.js";import"./visuallyHidden-Dan1xhjv.js";const Pi=je(e.jsx("path",{d:"m7 14 5-5 5 5z"})),_i=je(e.jsx("path",{d:"M12 3 2 21h20zm1 5.92L18.6 19H13zm-2 0V19H5.4z"})),Ai=je(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),sr=je(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Ii=je(e.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),Li=je(e.jsx("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"})),Oi=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",lr=h.createContext({}),{Provider:Fi,Consumer:ss}=lr,bn=[ye,k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP],Ni=(t,r)=>{if(t.name===k.DOMAIN_FOR_DEFAULT_SITE)return-1;if(r.name===k.DOMAIN_FOR_DEFAULT_SITE)return 1;const n=bn.includes(t.name),i=bn.includes(r.name);return n&&i?sn(t.name,r.name):n?-1:i?1:sn(t.name,r.name)},$i=({sites:t,nodePort:r})=>{const n=window.location.hostname,a=(t||[]).map(o=>{const{id:s,rules:u=[],corsAllowedOrigins:m=[]}=o;let{domain:d,domainAliases:c}=o;c=c||[],[k.DOMAIN_FOR_IP_SITE,k.DOMAIN_FOR_IP_SITE_REGEXP].includes(d)&&(d=ye,c.find(y=>y.value===n)||c.unshift({protected:!1,value:n}));const w={id:s,name:d,type:"domain",items:[],domainAliases:c,isProtected:o.isProtected,corsAllowedOrigins:m};return(u||[]).forEach(y=>{const{id:C,isProtected:E,from:{pathPrefix:j},to:D}=y;if(D.type===k.ROUTING_RULE_TYPES.BLOCKLET){let S="";Number.parseInt(D.port,10)===Number.parseInt(r,10)?(S="Blocklet Server Dashboard",D.type=k.ROUTING_RULE_TYPES.DAEMON):S=D.did,w.items.push({id:C,name:an(j||"/"),title:S,type:"rule",isProtected:E,pathPrefix:j,to:D})}else w.items.push({id:C,pathPrefix:j,name:an(j||"/"),title:"Blocklet Server Dashboard",type:"rule",isProtected:E,to:D})}),w.items=Hn(w.items,y=>y.name),w}).sort(Ni),l=a.reduce((o,s)=>{let{name:u}=s;return u.endsWith(k.BLOCKLET_SITE_GROUP_SUFFIX)&&([u]=u.split(".")),o[u]={...s,rules:s.items},o},{});return{sites:a,siteMap:l}},Ui=({did:t,domain:r,mountPoint:n,siteMap:i,params:a}={})=>{if(!i)return null;const l=i[t];if(!l)return null;const o=r||(l.domainAliases||[])[0];if(!o)return null;let s=n;if(!s){const u=l.rules.filter(m=>!m.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];s=u?u.name:"/"}return et(o.value,s,a)},zi=({did:t,mountPoint:r,siteMap:n,params:i}={})=>{if(!n)return[];const a=n[t];if(!a)return[];const l=a.domainAliases||[];if(!l.length)return[];let o=r;if(!o){const s=a.rules.filter(u=>!u.name.startsWith(k.WELLKNOWN_PATH_PREFIX))[0];o=s?s.name:"/"}return l.map(s=>et(s.value,o,i))},Bi=t=>{const r=t.map(i=>i.domain).filter(i=>![k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE].includes(i));let n=[];return t.forEach(i=>n.push(...i.domainAliases||[])),n=n.map(i=>typeof i=="string"?{value:i,isProtected:!1}:i),{domains:r,domainsAliases:n}};function vn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Fe(async()=>{const{sites:P}=await r.getRoutingSites({input:{snapshotHash:""}}),v=P||[];await Promise.all(v.map(async g=>(g.domainAliases=await $r(g.domainAliases,{getIP:Ur}),g)));const f=Bi(v);a(v),o(f.domains),u([window.location.hostname,...f.domains,...f.domainsAliases.map(g=>g.value)])},[n]),d=(P,v)=>{a(f=>f.map(g=>g.id===P?v.domain?v:{...v,domain:g.domain}:g))},c=P=>r.takeRoutingSnapshot({input:{dryRun:!1,message:encodeURIComponent(P)}}),w=async P=>{const v=await r.addRoutingSite({input:P});a(i.concat(v.site))},y=async(P,v)=>{const f=await r.updateRoutingSite({input:{id:P,...v}});if(f.site&&f.site.id){const g=i.findIndex(R=>R.id===f.site.id);g!==-1&&(i.splice(g,1,f.site),a([].concat(i)))}},C=async P=>{await r.deleteRoutingSite({input:{id:P}}),a(i.filter(v=>v.id!==P))},E=async(P,v,f)=>{const g=await r.addDomainAlias({input:{id:P,domainAlias:v,force:f}});d(P,g.site)},j=async(P,v)=>{const f=await r.deleteDomainAlias({input:{id:P,domainAlias:v}});d(P,f.site)},D=async(P,v)=>{const{site:f}=await r.addRoutingRule({input:{id:P,rule:v}});d(P,f)},S=async(P,v)=>{const{site:f}=await r.updateRoutingRule({input:{id:P,rule:v}});d(P,f)},b=async(P,v)=>{const{site:f}=await r.deleteRoutingRule({input:{id:P,ruleId:v}});d(P,f)},x={loading:m.loading,error:m.error,refresh:m.retry,api:r,actions:{addSite:w,updateSite:y,deleteSite:C,addDomainAlias:E,deleteDomainAlias:j,takeSnapshot:c,addRule:D,updateRule:S,deleteRule:b}},{sites:L,siteMap:F}=$i({sites:i,nodePort:n.port});return x.sites=L,x.siteMap=F,x.domains=l,x.allDomains=s,x.getBlockletUrl=({did:P,domain:v,mountPoint:f,params:g})=>Ui({did:P,domain:v,mountPoint:f,siteMap:x.siteMap,params:g}),x.getBlockletUrls=({did:P,mountPoint:v,params:f})=>zi({did:P,mountPoint:v,siteMap:x.siteMap,params:f}),e.jsx(Fi,{value:{routing:x},children:t})}function de(){const{routing:t}=h.useContext(lr);return t}function Yt(t){const r=[k.DOMAIN_FOR_IP_SITE_REGEXP,k.DOMAIN_FOR_DEFAULT_SITE,k.DOMAIN_FOR_IP_SITE];return typeof window<"u"&&typeof window.location<"u"&&r.push(window.location.hostname),r.includes(t)}function Mi(){return null}function cr({confirm:t=null}){const[r,n]=h.useState(null),{t:i}=z(),a=()=>{n(null)},l=async s=>{if(s){let u=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";u==="/"?ln.push(`${s.pathname}`):(u.endsWith("/")&&(u=u.substring(0,u.length-1)),ln.push(`${u}${s.pathname}`)),window.location.reload()}},o=(s,...u)=>{let m=typeof t=="function"?t(s,...u):t;return m?(typeof m=="string"&&(m={description:m}),n({title:i("common.noticeTitle"),description:i("common.leavePageTip"),confirm:i("common.confirm"),cancel:i("common.cancel"),onConfirm:()=>l(s),onCancel:()=>a(),...m}),!1):!0};return e.jsxs(Wi,{children:[e.jsx(Mi,{message:o}),r&&e.jsx(le,{title:r.title,description:r.description,confirm:r.confirm,cancel:r.cancel,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}cr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Wi=ne.div`
|
|
2
2
|
margin-bottom: 24px;
|
|
3
3
|
.top-btns-alert {
|
|
4
4
|
@media (max-width: ${t=>t.theme.breakpoints.values.sm}px) {
|