@abtnode/webapp 1.17.0 → 1.17.1

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.
Files changed (190) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CIesv5zf.js → AdapterDayjs-DFBxeUaR.js} +7 -7
  4. package/dist/assets/{Add-L4d2JZXR.js → Add-mLqDJ8LI.js} +1 -1
  5. package/dist/assets/ArrowDropDown-OAaai_hD.js +1 -0
  6. package/dist/assets/{Autocomplete-DaPuGlnI.js → Autocomplete-ClklZJ4u.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-XhgCVD7u.js → Breadcrumbs-WK-vnY0P.js} +1 -1
  8. package/dist/assets/{ButtonGroup-B_P6ZZZ4.js → ButtonGroup-CMBmZNOl.js} +1 -1
  9. package/dist/assets/{CSSTransition-BqlR62pg.js → CSSTransition-BUs0PeOT.js} +1 -1
  10. package/dist/assets/{CallMerge-QoO05uTN.js → CallMerge-Ccy0-f-p.js} +1 -1
  11. package/dist/assets/{CardContent-D6T4mb6B.js → CardContent-Dt2MkEx5.js} +1 -1
  12. package/dist/assets/{ChevronLeft-Czwf-z4J.js → ChevronLeft-CK0ZKGMb.js} +1 -1
  13. package/dist/assets/{ChevronRight-Cx4VKEff.js → ChevronRight-DZLCO-zv.js} +1 -1
  14. package/dist/assets/{Clear-CPlMJ3VR.js → Clear-CZYOhyRd.js} +1 -1
  15. package/dist/assets/{DeleteOutline-CDNvFcfW.js → DeleteOutline-B-dACVWx.js} +1 -1
  16. package/dist/assets/{Done-Cf4FmWLE.js → Done-CDE0letj.js} +1 -1
  17. package/dist/assets/{Edit-yQLD6nby.js → Edit-D8ZbFXVI.js} +1 -1
  18. package/dist/assets/{ErrorOutline-6nm7fp-q.js → ErrorOutline-BJGb9kj2.js} +1 -1
  19. package/dist/assets/{FilterList-D2W01s0y.js → FilterList-CuIuGg48.js} +1 -1
  20. package/dist/assets/{Google-CoSaBoSQ.js → Google-DfP9X7Qz.js} +1 -1
  21. package/dist/assets/{HelpOutline-BuWMsMpl.js → HelpOutline-q3orkcNe.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-CYLIdlXV.js → KeyboardArrowDown-Be7iWuOW.js} +1 -1
  23. package/dist/assets/{Launch-CL_DBWI6.js → Launch-Gm7JKzLz.js} +1 -1
  24. package/dist/assets/{Link-CatXU5ME.js → Link-Bag45Nmm.js} +1 -1
  25. package/dist/assets/{ListItemButton-fh4fKwhr.js → ListItemButton-_WjpNqWO.js} +1 -1
  26. package/dist/assets/{ListSubheader-Dt6wbgew.js → ListSubheader-8DfWQIce.js} +1 -1
  27. package/dist/assets/{LoadingButton-DPchWuCI.js → LoadingButton-DXPIa7vL.js} +1 -1
  28. package/dist/assets/{MoreVert-DVzkIKa5.js → MoreVert-DE8AiFjI.js} +1 -1
  29. package/dist/assets/{OpenInNew-DJWzmNWd.js → OpenInNew-BIpr-3_I.js} +1 -1
  30. package/dist/assets/{Refresh-B5U6uEx9.js → Refresh-RgR-j7H4.js} +1 -1
  31. package/dist/assets/{Search--1V2WQVn.js → Search-D6oiU39H.js} +1 -1
  32. package/dist/assets/{Stepper-BEW_7ZGp.js → Stepper-qJguYqak.js} +1 -1
  33. package/dist/assets/{Switch-BYpwkINu.js → Switch-vCG6Rhuh.js} +1 -1
  34. package/dist/assets/{TableSearch-DOitWCIk.js → TableSearch-B9RjpEHI.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-Z7ULO3Ae.js → ToggleButtonGroup-DXi7DrUh.js} +1 -1
  36. package/dist/assets/{UnfoldMore-D47PgaQc.js → UnfoldMore-qrx_0HRu.js} +1 -1
  37. package/dist/assets/{Verified-BoILBhWS.js → Verified-DdhxsAzr.js} +1 -1
  38. package/dist/assets/{VerifiedUser-DpVMiyJe.js → VerifiedUser-BHeVvCeR.js} +1 -1
  39. package/dist/assets/{ViewList-3zzlu_wY.js → ViewList-C89zW3h-.js} +1 -1
  40. package/dist/assets/{_createAggregator-DHzdxLTK.js → _createAggregator-BOClgXtp.js} +1 -1
  41. package/dist/assets/{actions-Di8ZxeUv.js → actions-CPISYK5O.js} +1 -1
  42. package/dist/assets/actions-DtgzhVPu.js +1 -0
  43. package/dist/assets/{agreement-trvO9udI.js → agreement-BDhX2ibc.js} +1 -1
  44. package/dist/assets/api-DQs1mKD0.js +1 -0
  45. package/dist/assets/{appearance-BxpERvbE.js → appearance-DN9vRsth.js} +1 -1
  46. package/dist/assets/{audit-logs-2jMqf5hx.js → audit-logs-CkkVykec.js} +1 -1
  47. package/dist/assets/{base-chart-1KMt61fm.js → base-chart-0UpZBjB1.js} +1 -1
  48. package/dist/assets/{blocklet-BgOSOFk8.js → blocklet-VzchUeTl.js} +1 -1
  49. package/dist/assets/{chain-BAIZGz9Q.js → chain-CFWKzhms.js} +1 -1
  50. package/dist/assets/{click-to-copy-Mww6U2O2.js → click-to-copy-DIP6-GlN.js} +1 -1
  51. package/dist/assets/cloneDeep-BJ1sWYVb.js +1 -0
  52. package/dist/assets/{collapse-Dkho70aO.js → collapse-NkPXU5Zt.js} +1 -1
  53. package/dist/assets/{config-navigation-CPbVLFUr.js → config-navigation-DvT2sacY.js} +3 -3
  54. package/dist/assets/{connect-to-Csl5lNaA.js → connect-to-dKWvV6V1.js} +1 -1
  55. package/dist/assets/{cssMode-DPwGt7Ip.js → cssMode-CRa3fC-T.js} +1 -1
  56. package/dist/assets/{delete-confirm-DVcd_1B0.js → delete-confirm-DrHD02tU.js} +1 -1
  57. package/dist/assets/{depsEqual-BuPlTjct.js → depsEqual-DmupZl6g.js} +1 -1
  58. package/dist/assets/{detail-P2gwj9OJ.js → detail-2C5oOOsq.js} +3 -3
  59. package/dist/assets/{domains-C84ikKCb.js → domains-5NbGN7b1.js} +2 -2
  60. package/dist/assets/{download-RPFAmtCT.js → download-DIcZVzlu.js} +1 -1
  61. package/dist/assets/{edit.svg-B6Dpe-Rf.js → edit.svg-Ds5gcSU5.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-Cv8nFFJn.js +1 -0
  63. package/dist/assets/engine-C1SqzQqx.js +1 -0
  64. package/dist/assets/{freemarker2-Jekitzo-.js → freemarker2-DNl5QT0f.js} +1 -1
  65. package/dist/assets/{get-safe-url-Dq2_VEWx.js → get-safe-url-HWq-Oak5.js} +1 -1
  66. package/dist/assets/getValidReactChildren-CZQOwkpM.js +1 -0
  67. package/dist/assets/{graphqlMode-yKBKghX1.js → graphqlMode-Br-X2O9V.js} +2 -2
  68. package/dist/assets/{handlebars-DALegy4-.js → handlebars-CwBj6-fd.js} +1 -1
  69. package/dist/assets/{html-eDv-OIPV.js → html-D-nq4Xjw.js} +1 -1
  70. package/dist/assets/{html-title-BlprY12T.js → html-title-DqkAZK1J.js} +1 -1
  71. package/dist/assets/{htmlMode-BZEB-mmR.js → htmlMode-C9URfibM.js} +1 -1
  72. package/dist/assets/{iframe-mlrH5a9B.js → iframe-DkQL2XEZ.js} +1 -1
  73. package/dist/assets/{index-CFoc8aiV.js → index-0rKT_Rue.js} +1 -1
  74. package/dist/assets/{index-BXt_mIyN.js → index-1J76zhve.js} +3 -3
  75. package/dist/assets/{index-WMHREIQl.js → index-86jXITjw.js} +1 -1
  76. package/dist/assets/{index-7IBr_VNb.js → index-A1MOnEag.js} +31 -27
  77. package/dist/assets/{index-VNX5NFbI.js → index-B5PREDjw.js} +1 -1
  78. package/dist/assets/{index-D-cAeMqp.js → index-BF7-dbpK.js} +1 -1
  79. package/dist/assets/index-BGUcx9Di.js +1 -0
  80. package/dist/assets/{index-Br0tbkRw.js → index-BHj2SGOW.js} +1 -1
  81. package/dist/assets/{index-DH4NOQmC.js → index-BJkqb5Nl.js} +1 -1
  82. package/dist/assets/{index-CDyzduuq.js → index-BK5gMrki.js} +1 -1
  83. package/dist/assets/{index-Cj-fw8Is.js → index-BRWG_hHb.js} +1 -1
  84. package/dist/assets/{index-D0UheAPn.js → index-BdiX4005.js} +1 -1
  85. package/dist/assets/{index-CVNQ07mK.js → index-Be_P7bFl.js} +1 -1
  86. package/dist/assets/{index-M3J_PkrJ.js → index-Bjb7mplU.js} +3 -3
  87. package/dist/assets/{index-UcPEVOQN.js → index-Bomu1pSL.js} +1 -1
  88. package/dist/assets/{index-3tnyKwBY.js → index-Bq6pTCY2.js} +1 -1
  89. package/dist/assets/{index-C0WIM-Vz.js → index-BvbFbG0L.js} +1 -1
  90. package/dist/assets/{index-BcbepXI-.js → index-C-BqHBMK.js} +4 -4
  91. package/dist/assets/{index-DOseyRNP.js → index-C-g_2H57.js} +1 -1
  92. package/dist/assets/{index-BELVF5yq.js → index-C60_rVUw.js} +9 -9
  93. package/dist/assets/{index-dCfrxOmL.js → index-C7-meaY1.js} +1 -1
  94. package/dist/assets/index-CAWu-mmR.js +376 -0
  95. package/dist/assets/{index-BrmUJguV.js → index-CEz8uxV0.js} +129 -127
  96. package/dist/assets/{index-Cn4Cs0v8.js → index-CHHDhSWA.js} +1 -1
  97. package/dist/assets/{index-BmH4k6cQ.js → index-CRgNQ1lV.js} +2 -2
  98. package/dist/assets/{index-DL4v1WVV.js → index-CqI5FNRR.js} +1 -1
  99. package/dist/assets/{index-Ftkky04w.js → index-Cwp4Qsa8.js} +1 -1
  100. package/dist/assets/{index-BjBRGPzY.js → index-D4zq3Dt5.js} +1 -1
  101. package/dist/assets/{index-Tz-RjzsL.js → index-DPt0BH8X.js} +1 -1
  102. package/dist/assets/{index-CTBTcudy.js → index-DUXWweJB.js} +1 -1
  103. package/dist/assets/{index-steG33vS.js → index-DZZV6bQv.js} +1 -1
  104. package/dist/assets/{index-ZD-Gh2O6.js → index-DeJNKYaM.js} +1 -1
  105. package/dist/assets/{index-Cn2R2jBC.js → index-Dl9JeaR8.js} +1 -1
  106. package/dist/assets/{index-BrgrYbMQ.js → index-DmDAGw_3.js} +2 -2
  107. package/dist/assets/{index-D7Dokw2V.js → index-DrXQDInk.js} +1 -1
  108. package/dist/assets/{index-Dr5nxDjS.js → index-HULeNGPa.js} +1 -1
  109. package/dist/assets/{index-Csg14teI.js → index-KjOI7Lrl.js} +1 -1
  110. package/dist/assets/{index-D3o1Xd_h.js → index-MctHnzlE.js} +1 -1
  111. package/dist/assets/{index-RPrys1R8.js → index-PT65Iyhd.js} +1 -1
  112. package/dist/assets/{index-Dak42aFg.js → index-YtRjVFv6.js} +3 -3
  113. package/dist/assets/{index-1kXNbJd1.js → index-dXNWda9h.js} +1 -1
  114. package/dist/assets/{index-CEDIdKXe.js → index-eMkLqV2U.js} +1 -1
  115. package/dist/assets/{index-BbaIpunj.js → index-kz4od6fL.js} +1 -1
  116. package/dist/assets/{index-CbAJUnfn.js → index-xEgN1uLu.js} +1 -1
  117. package/dist/assets/{index-BHUuXHCx.js → index-xGtC2yXK.js} +1 -1
  118. package/dist/assets/{index-BAPzLDmE.js → index-zrPeUDCF.js} +1 -1
  119. package/dist/assets/{index.esm-Dhbg504r.js → index.esm-D2OxNJ9M.js} +1 -1
  120. package/dist/assets/{install-from-url-pl2ifjP1.js → install-from-url-BPzsmy3X.js} +1 -1
  121. package/dist/assets/{invitation-XFKsIMJU.js → invitation-a_kpf-F2.js} +1 -1
  122. package/dist/assets/{is-path-prefix-equal-CfyvEYyh.js → is-path-prefix-equal-CGna6TSf.js} +1 -1
  123. package/dist/assets/{item-O__B-QK7.js → item-DrGBW8bL.js} +1 -1
  124. package/dist/assets/{javascript-aM0WQ_ao.js → javascript-t_t4NAAt.js} +1 -1
  125. package/dist/assets/{jsonMode-C4YrSLLv.js → jsonMode-C3L-B4Yp.js} +1 -1
  126. package/dist/assets/{liquid-D_rhDNWt.js → liquid-C0eGHEa1.js} +1 -1
  127. package/dist/assets/{list-header-b3IL_I5L.js → list-header-gr5aFkIY.js} +1 -1
  128. package/dist/assets/{lock.svg-bfTh_6AS.js → lock.svg-HxrlXX6z.js} +1 -1
  129. package/dist/assets/{log-B9FdJi22.js → log-CpDKFVBw.js} +1 -1
  130. package/dist/assets/{lottie-react.esm-Cg_Sv7zz.js → lottie-react.esm-BEkH145L.js} +1 -1
  131. package/dist/assets/{mdx-DU5ezyiX.js → mdx-D6wWuy-g.js} +1 -1
  132. package/dist/assets/{memory-DJvhnk1Q.js → memory-OMwAmVIf.js} +1 -1
  133. package/dist/assets/{metric-D7sR5FhW.js → metric-8OUJLbIG.js} +1 -1
  134. package/dist/assets/omit-CzTAhPDm.js +1 -0
  135. package/dist/assets/{overview-dJNiedWN.js → overview-AZ1lmbKj.js} +1 -1
  136. package/dist/assets/{permission-bCEiJP2a.js → permission-DT5OpofS.js} +1 -1
  137. package/dist/assets/{preference-CXMkcNMd.js → preference-BkYqshJp.js} +4 -4
  138. package/dist/assets/{python-DbV_sHWO.js → python-DNL9kUGf.js} +1 -1
  139. package/dist/assets/{raf-schd.esm-BVXbAgsG.js → raf-schd.esm-Fik6Olb4.js} +1 -1
  140. package/dist/assets/{razor-CQjGQnW6.js → razor-CuWC4j4G.js} +1 -1
  141. package/dist/assets/{rotate-session-key-OwV6DBvd.js → rotate-session-key-BMUCkqUv.js} +1 -1
  142. package/dist/assets/{runtime-DdByz-fF.js → runtime-DIifoTnh.js} +1 -1
  143. package/dist/assets/schema-DLP5qafk.js +1 -0
  144. package/dist/assets/sdk-Ba4Oxcv8.js +1 -0
  145. package/dist/assets/{service-DHQglA08.js → service-BiTGgoni.js} +1 -1
  146. package/dist/assets/{shorten-label-BOm4Z1bA.js → shorten-label-ekW_2gPe.js} +1 -1
  147. package/dist/assets/{simple-select-CW6Fjvwz.js → simple-select-C92Ah9-P.js} +1 -1
  148. package/dist/assets/{spaces-62XG2gQV.js → spaces-Bp-q5eSI.js} +1 -1
  149. package/dist/assets/{status-DWBbl5qZ.js → status-C0bImW42.js} +1 -1
  150. package/dist/assets/{status-BVaU-H7r.js → status-DkrRfk0B.js} +1 -1
  151. package/dist/assets/{switch-control-DMl-PeE3.js → switch-control-6fnNFCSf.js} +1 -1
  152. package/dist/assets/{table-icons-DwdxV0fl.js → table-icons-Dk6N7tf2.js} +1 -1
  153. package/dist/assets/{team-93DobpI4.js → team-hXrV5_3J.js} +1 -1
  154. package/dist/assets/{toLower-DWfQt-VS.js → toLower-C3Vv0nJs.js} +1 -1
  155. package/dist/assets/toUpper-BA_1QmXv.js +1 -0
  156. package/dist/assets/{traffic-h7HyzROl.js → traffic-yxJiUmHD.js} +1 -1
  157. package/dist/assets/{tsMode-7pxa7wSL.js → tsMode-CMLFyKkc.js} +1 -1
  158. package/dist/assets/{typescript-CXMvlXQ8.js → typescript-ChsL_qhx.js} +1 -1
  159. package/dist/assets/{url-evaluation-DhmHBren.js → url-evaluation-Dez2t2Dn.js} +1 -1
  160. package/dist/assets/{url-join-hpgPax_3.js → url-join-D4N_BY6M.js} +1 -1
  161. package/dist/assets/{use-mobile-NtnsxRwK.js → use-mobile-DfTH0u3I.js} +1 -1
  162. package/dist/assets/{use-mobile-DbyCxVnw.js → use-mobile-NIsLTlyM.js} +1 -1
  163. package/dist/assets/{useAsync-D2t9nlPY.js → useAsync-DtphY6Zp.js} +1 -1
  164. package/dist/assets/{useAsyncRetry-CMr3x1C3.js → useAsyncRetry-Dsb2N_WV.js} +1 -1
  165. package/dist/assets/{useLocalStorage-WwZ4k9_O.js → useLocalStorage-Pga2d3Q5.js} +1 -1
  166. package/dist/assets/useThemeProps-BjIObq-D.js +1 -0
  167. package/dist/assets/{util-CrOAUthw.js → util-BHw1AnwZ.js} +1 -1
  168. package/dist/assets/{wait-container-sZo9ImHf.js → wait-container-HUF_V5Wk.js} +1 -1
  169. package/dist/assets/{without-wallet-C3Yj9Mru.js → without-wallet-Dpl0lfi-.js} +1 -1
  170. package/dist/assets/wrap-locale-ChZSYdOH.js +1 -0
  171. package/dist/assets/{xml-BXK6EpeV.js → xml-BwCA4eHX.js} +1 -1
  172. package/dist/assets/{yaml-4XJpZ9ba.js → yaml-BfofWF78.js} +1 -1
  173. package/dist/index.html +1 -1
  174. package/dist/service-worker.js +1 -1
  175. package/package.json +1 -1
  176. package/dist/assets/ArrowDropDown-BEtLpAqy.js +0 -1
  177. package/dist/assets/actions-Bi9I3Lkb.js +0 -1
  178. package/dist/assets/api-D2aETd4a.js +0 -1
  179. package/dist/assets/cloneDeep-CLl3dXVV.js +0 -1
  180. package/dist/assets/emotion-cache.browser.esm-r_Iqcnsj.js +0 -1
  181. package/dist/assets/engine-D0Jqm-AD.js +0 -1
  182. package/dist/assets/getValidReactChildren-B9Wc-4VY.js +0 -1
  183. package/dist/assets/index-6nmiCyZ8.js +0 -375
  184. package/dist/assets/index-VJGuG7fG.js +0 -1
  185. package/dist/assets/omit-DoGyY1LH.js +0 -1
  186. package/dist/assets/schema-sOSNlloQ.js +0 -1
  187. package/dist/assets/sdk-CeiuAlH4.js +0 -1
  188. package/dist/assets/toUpper-B1-2A13a.js +0 -1
  189. package/dist/assets/useThemeProps-nx2SX4I_.js +0 -1
  190. package/dist/assets/wrap-locale-CHT3wx1u.js +0 -1
@@ -1,4 +1,4 @@
1
- import{aF as ks,j as t,aH as on,bn as Oe,bo as Ds,V as ye,N as Fe,r as Y,O as Bn,P as $n,S as Pn,Q as Un,K as $,bp as Nt,o as j,n as Bs,v as vn,C as $s,ac as yt,aV as Fn,t as Mn,bd as Ps,s as ve,Z as Us,bq as Be,br as Fs,bs as js,p as Ks,y as ze,$ as xt,aU as Hs,R as zs,at as Gs,H as Ws,m as Zs,bt as Sn,W as Ys,bu as At,bv as St,bw as Tt,bx as qs,i as Xs,T as Ue,by as Vs,ay as dt,a3 as gt,aR as pt,bk as Js,bz as Qs,U as ea,X as na,A as ta,u as sa,bm as aa,d as ia,bA as oa}from"./index-BrmUJguV.js";import{u as ra,T as ca}from"./html-title-BlprY12T.js";import la from"./audit-logs-2jMqf5hx.js";import{T as Rt,M as ua}from"./index-6nmiCyZ8.js";import{r as Ct,P as da}from"./index-Dr5nxDjS.js";import{u as Ge,T as ga}from"./team-93DobpI4.js";import{g as pa,H as ba}from"./index-dCfrxOmL.js";import{D as fa}from"./url-evaluation-DhmHBren.js";import{E as ma}from"./Edit-yQLD6nby.js";import{y as Ea}from"./index-CVNQ07mK.js";import{A as ha}from"./Add-L4d2JZXR.js";import{C as Ln}from"./click-to-copy-Mww6U2O2.js";import{f as _a}from"./index-BojVbZw0.js";import{D as Na}from"./delete-confirm-DVcd_1B0.js";import{P as ya}from"./permission-bCEiJP2a.js";import{u as xa}from"./blocklet-BgOSOFk8.js";import{u as jn}from"./use-mobile-NtnsxRwK.js";import{A as Aa}from"./actions-Bi9I3Lkb.js";import{u as Sa}from"./useAsyncRetry-CMr3x1C3.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./useLocalStorage-WwZ4k9_O.js";import"./index-BHUuXHCx.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-D47PgaQc.js";import"./shorten-label-BOm4Z1bA.js";import"./ViewList-3zzlu_wY.js";import"./index-DL4v1WVV.js";import"./ButtonGroup-B_P6ZZZ4.js";import"./getValidReactChildren-B9Wc-4VY.js";import"./index.esm-Dhbg504r.js";import"./Google-CoSaBoSQ.js";import"./cloneDeep-CLl3dXVV.js";import"./Autocomplete-DaPuGlnI.js";import"./ListSubheader-Dt6wbgew.js";import"./AdapterDayjs-CIesv5zf.js";import"./useThemeProps-nx2SX4I_.js";import"./CSSTransition-BqlR62pg.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-CEDIdKXe.js";import"./Verified-BoILBhWS.js";import"./DeleteOutline-CDNvFcfW.js";import"./ErrorOutline-6nm7fp-q.js";import"./index-BcbepXI-.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./sdk-CeiuAlH4.js";import"./index-C0WIM-Vz.js";import"./ua-parser-DP5omx3I.js";import"./edit.svg-B6Dpe-Rf.js";import"./list-header-b3IL_I5L.js";import"./chain-BAIZGz9Q.js";import"./ToggleButtonGroup-Z7ULO3Ae.js";import"./lock.svg-bfTh_6AS.js";import"./FilterList-D2W01s0y.js";import"./index-CbAJUnfn.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BuPlTjct.js";import"./MoreVert-DVzkIKa5.js";import"./useAsync-D2t9nlPY.js";const Ta=ks(t.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}));function Kn({value:e}){const{t:s,locale:a}=ye(),i=new Date;return new Date(e)<i?t.jsxs("span",{style:{color:"red"},children:[t.jsx(Fe,{value:e,locale:a}),`${s("setting.accessKey.expired",{time:""})}`]}):t.jsx(Fe,{mode:"daysLeft",value:e,locale:a,type:"all"})}Kn.propTypes={value:j.string.isRequired};function Hn({value:e,onChange:s,...a}){const{t:i}=ye(),g=Y.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",...a,children:[t.jsx($n,{children:i("setting.accessKey.authType")}),t.jsx(Pn,{value:e,onChange:s,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:E=>t.jsx(Nt,{...E,width:20,height:20}),children:g.map(E=>t.jsx(Un,{value:E.value,children:t.jsxs($,{children:[t.jsx("span",{children:E.title}),t.jsx($,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:E.description})]})},E.value))})]})}Hn.propTypes={value:j.string.isRequired,onChange:j.func.isRequired};const zn=()=>{const e=on.RBAC_CONFIG.roles.filter(g=>g.passport),{inService:s}=Oe(),{roles:a}=Ge(),i=[...e,...s?a:[]];return Ds(i,"name").filter(g=>g.name!==on.ROLES.OWNER)};function wt(){const{session:e}=Bs(),s=zn();return Y.useMemo(()=>{if(!e?.user?.role)return[];if(["owner","admin"].includes(e.user.role))return s;const i=s.filter(E=>E.name==="guest");return[...s.filter(E=>E.name!=="guest").filter(E=>e.user.passports.find(_=>_.role===E.name)),...i]},[s,e?.user?.passports,e?.user?.role])}function It({onCreate:e=()=>{},remark:s=""}){const{api:a}=Oe(),{teamDid:i}=Ge(),{t:g}=ye(),[E,_]=Y.useState(!1),[l,h]=Y.useState(null),u=wt(),y=()=>{_(!1),h(null)},T=async f=>{const{remark:v,passport:A,authType:b}=f;_(!0);const C=await a.createAccessKey({input:{teamDid:i,remark:v.trim(),passport:A,expireAt:f.expireAt?new Date(f.expireAt).getTime():null,authType:b}}),{data:B}=C;e(B),h(null),_(!1)},c={title:`${g("common.create")} ${g("accessKey")}`,description:(f,v,A)=>t.jsxs(Fn,{sx:{gap:3},children:[t.jsx(Mn,{label:g("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:f.remark,onChange:b=>{v({...f,remark:b.target.value,__disableConfirm:!f.passport||!b.target.value.trim()}),b.target.value.trim()?A(""):A(g("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",children:[t.jsx($n,{sx:{width:"calc(100% - 46px)"},children:g("setting.accessKey.passport")}),t.jsx(Pn,{"data-cy":"create-access-key-select-passport",value:f.passport,onChange:b=>{const C=b.target.value;A(null),v({...f,passport:C,__disableConfirm:!f.remark||!C})},fullWidth:!0,label:g("setting.accessKey.passport"),disabled:E,IconComponent:b=>t.jsx(Nt,{...b,width:20,height:20}),children:u.map(b=>t.jsx(Un,{value:b.name,"data-cy":`create-access-key-passport-option-${b.name}`,children:t.jsxs($,{children:[t.jsx("span",{children:b.title||b.name}),t.jsx($,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:b.description})]})},b.name))})]}),t.jsx(Hn,{value:f.authType,onChange:b=>{v({...f,authType:b.target.value})}}),t.jsx(Rt,{placeholder:g("setting.accessKey.expireTime"),value:f.expireAt,onChange:b=>{v({...f,expireAt:b,__disableConfirm:!f.passport||!f.remark||!b})}})]}),confirm:g("common.confirm"),cancel:g("common.cancel"),color:"primary",params:{remark:s,authType:"signature",__disableConfirm:!s.trim()},onConfirm:T,onCancel:y};return t.jsxs(t.Fragment,{children:[t.jsxs(vn,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>h(c),className:"rule-action",children:[E?t.jsx($s,{size:16}):t.jsx(ha,{style:{fontSize:16}}),g("common.create")]}),l&&t.jsx(yt,{title:l.title,description:l.description,confirm:l.confirm,color:l.color,cancel:l.cancel,params:l.params,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}It.propTypes={remark:j.string,onCreate:j.func};var Tn,bt;function Ra(){if(bt)return Tn;bt=1;function e(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(o=>{const d=n[o],w=typeof d;(w==="object"||w==="function")&&!Object.isFrozen(d)&&e(d)}),n}class s{constructor(o){o.data===void 0&&(o.data={}),this.data=o.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(n,...o){const d=Object.create(null);for(const w in n)d[w]=n[w];return o.forEach(function(w){for(const J in w)d[J]=w[J]}),d}const g="</span>",E=n=>!!n.scope,_=(n,{prefix:o})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const d=n.split(".");return[`${o}${d.shift()}`,...d.map((w,J)=>`${w}${"_".repeat(J+1)}`)].join(" ")}return`${o}${n}`};class l{constructor(o,d){this.buffer="",this.classPrefix=d.classPrefix,o.walk(this)}addText(o){this.buffer+=a(o)}openNode(o){if(!E(o))return;const d=_(o.scope,{prefix:this.classPrefix});this.span(d)}closeNode(o){E(o)&&(this.buffer+=g)}value(){return this.buffer}span(o){this.buffer+=`<span class="${o}">`}}const h=(n={})=>{const o={children:[]};return Object.assign(o,n),o};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(o){this.top.children.push(o)}openNode(o){const d=h({scope:o});this.add(d),this.stack.push(d)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(o){return this.constructor._walk(o,this.rootNode)}static _walk(o,d){return typeof d=="string"?o.addText(d):d.children&&(o.openNode(d),d.children.forEach(w=>this._walk(o,w)),o.closeNode(d)),o}static _collapse(o){typeof o!="string"&&o.children&&(o.children.every(d=>typeof d=="string")?o.children=[o.children.join("")]:o.children.forEach(d=>{u._collapse(d)}))}}class y extends u{constructor(o){super(),this.options=o}addText(o){o!==""&&this.add(o)}startScope(o){this.openNode(o)}endScope(){this.closeNode()}__addSublanguage(o,d){const w=o.root;d&&(w.scope=`language:${d}`),this.add(w)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T(n){return n?typeof n=="string"?n:n.source:null}function c(n){return A("(?=",n,")")}function f(n){return A("(?:",n,")*")}function v(n){return A("(?:",n,")?")}function A(...n){return n.map(d=>T(d)).join("")}function b(n){const o=n[n.length-1];return typeof o=="object"&&o.constructor===Object?(n.splice(n.length-1,1),o):{}}function C(...n){return"("+(b(n).capture?"":"?:")+n.map(w=>T(w)).join("|")+")"}function B(n){return new RegExp(n.toString()+"|").exec("").length-1}function M(n,o){const d=n&&n.exec(o);return d&&d.index===0}const P=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(n,{joinWith:o}){let d=0;return n.map(w=>{d+=1;const J=d;let Q=T(w),N="";for(;Q.length>0;){const m=P.exec(Q);if(!m){N+=Q;break}N+=Q.substring(0,m.index),Q=Q.substring(m.index+m[0].length),m[0][0]==="\\"&&m[1]?N+="\\"+String(Number(m[1])+J):(N+=m[0],m[0]==="("&&d++)}return N}).map(w=>`(${w})`).join(o)}const X=/\b\B/,ge="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",ne="\\b\\d+(\\.\\d+)?",be="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",I=(n={})=>{const o=/^#![ ]*\//;return n.binary&&(n.begin=A(o,/.*\b/,n.binary,/\b.*/)),i({scope:"meta",begin:o,end:/$/,relevance:0,"on:begin":(d,w)=>{d.index!==0&&w.ignoreMatch()}},n)},G={begin:"\\\\[\\s\\S]",relevance:0},V={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[G]},q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[G]},xe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},U=function(n,o,d={}){const w=i({scope:"comment",begin:n,end:o,contains:[]},d);w.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const J=C("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return w.contains.push({begin:A(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),w},ie=U("//","$"),ue=U("/\\*","\\*/"),ce=U("#","$"),oe={scope:"number",begin:ne,relevance:0},Ae={scope:"number",begin:be,relevance:0},ln={scope:"number",begin:Ee,relevance:0},We={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[G,{begin:/\[/,end:/\]/,relevance:0,contains:[G]}]},je={scope:"title",begin:ge,relevance:0},un={scope:"title",begin:ae,relevance:0},Ze={begin:"\\.\\s*"+ae,relevance:0};var Me=Object.freeze({__proto__:null,APOS_STRING_MODE:V,BACKSLASH_ESCAPE:G,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:Ee,COMMENT:U,C_BLOCK_COMMENT_MODE:ue,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:Ae,C_NUMBER_RE:be,END_SAME_AS_BEGIN:function(n){return Object.assign(n,{"on:begin":(o,d)=>{d.data._beginMatch=o[1]},"on:end":(o,d)=>{d.data._beginMatch!==o[1]&&d.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:ge,MATCH_NOTHING_RE:X,METHOD_GUARD:Ze,NUMBER_MODE:oe,NUMBER_RE:ne,PHRASAL_WORDS_MODE:xe,QUOTE_STRING_MODE:q,REGEXP_MODE:We,RE_STARTERS_RE:fe,SHEBANG:I,TITLE_MODE:je,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:un});function dn(n,o){n.input[n.index-1]==="."&&o.ignoreMatch()}function gn(n,o){n.className!==void 0&&(n.scope=n.className,delete n.className)}function pn(n,o){o&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=dn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function bn(n,o){Array.isArray(n.illegal)&&(n.illegal=C(...n.illegal))}function fn(n,o){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function K(n,o){n.relevance===void 0&&(n.relevance=1)}const Le=(n,o)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const d=Object.assign({},n);Object.keys(n).forEach(w=>{delete n[w]}),n.keywords=d.keywords,n.begin=A(d.beforeMatch,c(d.begin)),n.starts={relevance:0,contains:[Object.assign(d,{endsParent:!0})]},n.relevance=0,delete d.beforeMatch},Ce=["of","and","for","in","not","or","if","then","parent","list","value"],mn="keyword";function qn(n,o,d=mn){const w=Object.create(null);return typeof n=="string"?J(d,n.split(" ")):Array.isArray(n)?J(d,n):Object.keys(n).forEach(function(Q){Object.assign(w,qn(n[Q],o,Q))}),w;function J(Q,N){o&&(N=N.map(m=>m.toLowerCase())),N.forEach(function(m){const R=m.split("|");w[R[0]]=[Q,is(R[0],R[1])]})}}function is(n,o){return o?Number(o):os(n)?0:1}function os(n){return Ce.includes(n.toLowerCase())}const Xn={},we=n=>{console.error(n)},Vn=(n,...o)=>{console.log(`WARN: ${n}`,...o)},ke=(n,o)=>{Xn[`${n}/${o}`]||(console.log(`Deprecated as of ${n}. ${o}`),Xn[`${n}/${o}`]=!0)},Ye=new Error;function Jn(n,o,{key:d}){let w=0;const J=n[d],Q={},N={};for(let m=1;m<=o.length;m++)N[m+w]=J[m],Q[m+w]=!0,w+=B(o[m-1]);n[d]=N,n[d]._emit=Q,n[d]._multi=!0}function rs(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ye;if(typeof n.beginScope!="object"||n.beginScope===null)throw we("beginScope must be object"),Ye;Jn(n,n.begin,{key:"beginScope"}),n.begin=k(n.begin,{joinWith:""})}}function cs(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ye;if(typeof n.endScope!="object"||n.endScope===null)throw we("endScope must be object"),Ye;Jn(n,n.end,{key:"endScope"}),n.end=k(n.end,{joinWith:""})}}function ls(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function us(n){ls(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),rs(n),cs(n)}function ds(n){function o(N,m){return new RegExp(T(N),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(m?"g":""))}class d{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(m,R){R.position=this.position++,this.matchIndexes[this.matchAt]=R,this.regexes.push([R,m]),this.matchAt+=B(m)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const m=this.regexes.map(R=>R[1]);this.matcherRe=o(k(m,{joinWith:"|"}),!0),this.lastIndex=0}exec(m){this.matcherRe.lastIndex=this.lastIndex;const R=this.matcherRe.exec(m);if(!R)return null;const se=R.findIndex((Ke,hn)=>hn>0&&Ke!==void 0),ee=this.matchIndexes[se];return R.splice(0,se),Object.assign(R,ee)}}class w{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(m){if(this.multiRegexes[m])return this.multiRegexes[m];const R=new d;return this.rules.slice(m).forEach(([se,ee])=>R.addRule(se,ee)),R.compile(),this.multiRegexes[m]=R,R}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(m,R){this.rules.push([m,R]),R.type==="begin"&&this.count++}exec(m){const R=this.getMatcher(this.regexIndex);R.lastIndex=this.lastIndex;let se=R.exec(m);if(this.resumingScanAtSamePosition()&&!(se&&se.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,se=ee.exec(m)}return se&&(this.regexIndex+=se.position+1,this.regexIndex===this.count&&this.considerAll()),se}}function J(N){const m=new w;return N.contains.forEach(R=>m.addRule(R.begin,{rule:R,type:"begin"})),N.terminatorEnd&&m.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&m.addRule(N.illegal,{type:"illegal"}),m}function Q(N,m){const R=N;if(N.isCompiled)return R;[gn,fn,us,Le].forEach(ee=>ee(N,m)),n.compilerExtensions.forEach(ee=>ee(N,m)),N.__beforeBegin=null,[pn,bn,K].forEach(ee=>ee(N,m)),N.isCompiled=!0;let se=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),se=N.keywords.$pattern,delete N.keywords.$pattern),se=se||/\w+/,N.keywords&&(N.keywords=qn(N.keywords,n.case_insensitive)),R.keywordPatternRe=o(se,!0),m&&(N.begin||(N.begin=/\B|\b/),R.beginRe=o(R.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(R.endRe=o(R.end)),R.terminatorEnd=T(R.end)||"",N.endsWithParent&&m.terminatorEnd&&(R.terminatorEnd+=(N.end?"|":"")+m.terminatorEnd)),N.illegal&&(R.illegalRe=o(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(ee){return gs(ee==="self"?N:ee)})),N.contains.forEach(function(ee){Q(ee,R)}),N.starts&&Q(N.starts,m),R.matcher=J(R),R}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=i(n.classNameAliases||{}),Q(n)}function Qn(n){return n?n.endsWithParent||Qn(n.starts):!1}function gs(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(o){return i(n,{variants:null},o)})),n.cachedVariants?n.cachedVariants:Qn(n)?i(n,{starts:n.starts?i(n.starts):null}):Object.isFrozen(n)?i(n):n}var ps="11.11.1";class bs extends Error{constructor(o,d){super(o),this.name="HTMLInjectionError",this.html=d}}const En=a,et=i,nt=Symbol("nomatch"),fs=7,tt=function(n){const o=Object.create(null),d=Object.create(null),w=[];let J=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let m={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function R(r){return m.noHighlightRe.test(r)}function se(r){let S=r.className+" ";S+=r.parentNode?r.parentNode.className:"";const D=m.languageDetectRe.exec(S);if(D){const W=Te(D[1]);return W||(Vn(Q.replace("{}",D[1])),Vn("Falling back to no-highlight mode for this block.",r)),W?D[1]:"no-highlight"}return S.split(/\s+/).find(W=>R(W)||Te(W))}function ee(r,S,D){let W="",te="";typeof S=="object"?(W=r,D=S.ignoreIllegals,te=S.language):(ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),ke("10.7.0",`Please use highlight(code, options) instead.
1
+ import{aF as ks,j as t,aH as on,bn as Oe,bo as Ds,V as ye,N as Fe,r as Y,O as Bn,P as $n,S as Pn,Q as Un,K as $,bp as Nt,o as j,n as Bs,v as vn,C as $s,ac as yt,aV as Fn,t as Mn,bd as Ps,s as ve,Z as Us,bq as Be,br as Fs,bs as js,p as Ks,y as ze,$ as xt,aU as Hs,R as zs,at as Gs,H as Ws,m as Zs,bt as Sn,W as Ys,bu as At,bv as St,bw as Tt,bx as qs,i as Xs,T as Ue,by as Vs,ay as dt,a3 as gt,aR as pt,bk as Js,bz as Qs,U as ea,X as na,A as ta,u as sa,bm as aa,d as ia,bA as oa}from"./index-CEz8uxV0.js";import{u as ra,T as ca}from"./html-title-DqkAZK1J.js";import la from"./audit-logs-CkkVykec.js";import{T as Rt,M as ua}from"./index-CAWu-mmR.js";import{r as Ct,P as da}from"./index-HULeNGPa.js";import{u as Ge,T as ga}from"./team-hXrV5_3J.js";import{g as pa,H as ba}from"./index-C7-meaY1.js";import{D as fa}from"./url-evaluation-Dez2t2Dn.js";import{E as ma}from"./Edit-D8ZbFXVI.js";import{y as Ea}from"./index-Be_P7bFl.js";import{A as ha}from"./Add-mLqDJ8LI.js";import{C as Ln}from"./click-to-copy-DIP6-GlN.js";import{f as _a}from"./index-BojVbZw0.js";import{D as Na}from"./delete-confirm-DrHD02tU.js";import{P as ya}from"./permission-DT5OpofS.js";import{u as xa}from"./blocklet-VzchUeTl.js";import{u as jn}from"./use-mobile-DfTH0u3I.js";import{A as Aa}from"./actions-DtgzhVPu.js";import{u as Sa}from"./useAsyncRetry-Dsb2N_WV.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./useLocalStorage-Pga2d3Q5.js";import"./index-xGtC2yXK.js";import"./decode-DPztD6kB.js";import"./UnfoldMore-qrx_0HRu.js";import"./shorten-label-ekW_2gPe.js";import"./ViewList-C89zW3h-.js";import"./index-CqI5FNRR.js";import"./ButtonGroup-CMBmZNOl.js";import"./getValidReactChildren-CZQOwkpM.js";import"./index.esm-D2OxNJ9M.js";import"./Google-DfP9X7Qz.js";import"./cloneDeep-BJ1sWYVb.js";import"./Autocomplete-ClklZJ4u.js";import"./ListSubheader-8DfWQIce.js";import"./AdapterDayjs-DFBxeUaR.js";import"./useThemeProps-BjIObq-D.js";import"./CSSTransition-BUs0PeOT.js";import"./visuallyHidden-Dan1xhjv.js";import"./index-eMkLqV2U.js";import"./Verified-DdhxsAzr.js";import"./DeleteOutline-B-dACVWx.js";import"./ErrorOutline-BJGb9kj2.js";import"./index-C-BqHBMK.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./sdk-Ba4Oxcv8.js";import"./index-BvbFbG0L.js";import"./ua-parser-DP5omx3I.js";import"./edit.svg-Ds5gcSU5.js";import"./list-header-gr5aFkIY.js";import"./chain-CFWKzhms.js";import"./ToggleButtonGroup-DXi7DrUh.js";import"./lock.svg-HxrlXX6z.js";import"./FilterList-CuIuGg48.js";import"./index-xEgN1uLu.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DmupZl6g.js";import"./MoreVert-DE8AiFjI.js";import"./useAsync-DtphY6Zp.js";const Ta=ks(t.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2zm-1 7h5.5L14 6.5z"}));function Kn({value:e}){const{t:s,locale:a}=ye(),i=new Date;return new Date(e)<i?t.jsxs("span",{style:{color:"red"},children:[t.jsx(Fe,{value:e,locale:a}),`${s("setting.accessKey.expired",{time:""})}`]}):t.jsx(Fe,{mode:"daysLeft",value:e,locale:a,type:"all"})}Kn.propTypes={value:j.string.isRequired};function Hn({value:e,onChange:s,...a}){const{t:i}=ye(),g=Y.useMemo(()=>[{value:"signature",title:i("setting.accessKey.signature"),description:i("setting.accessKey.signatureDesc")},{value:"simple",title:i("setting.accessKey.simple"),description:i("setting.accessKey.simpleDesc")}],[i]);return t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",...a,children:[t.jsx($n,{children:i("setting.accessKey.authType")}),t.jsx(Pn,{value:e,onChange:s,fullWidth:!0,label:i("setting.accessKey.authType"),IconComponent:E=>t.jsx(Nt,{...E,width:20,height:20}),children:g.map(E=>t.jsx(Un,{value:E.value,children:t.jsxs($,{children:[t.jsx("span",{children:E.title}),t.jsx($,{sx:{maxWidth:510,fontSize:12,color:"#999",whiteSpace:"normal"},children:E.description})]})},E.value))})]})}Hn.propTypes={value:j.string.isRequired,onChange:j.func.isRequired};const zn=()=>{const e=on.RBAC_CONFIG.roles.filter(g=>g.passport),{inService:s}=Oe(),{roles:a}=Ge(),i=[...e,...s?a:[]];return Ds(i,"name").filter(g=>g.name!==on.ROLES.OWNER)};function wt(){const{session:e}=Bs(),s=zn();return Y.useMemo(()=>{if(!e?.user?.role)return[];if(["owner","admin"].includes(e.user.role))return s;const i=s.filter(E=>E.name==="guest");return[...s.filter(E=>E.name!=="guest").filter(E=>e.user.passports.find(_=>_.role===E.name)),...i]},[s,e?.user?.passports,e?.user?.role])}function It({onCreate:e=()=>{},remark:s=""}){const{api:a}=Oe(),{teamDid:i}=Ge(),{t:g}=ye(),[E,_]=Y.useState(!1),[l,h]=Y.useState(null),u=wt(),y=()=>{_(!1),h(null)},T=async f=>{const{remark:v,passport:A,authType:b}=f;_(!0);const C=await a.createAccessKey({input:{teamDid:i,remark:v.trim(),passport:A,expireAt:f.expireAt?new Date(f.expireAt).getTime():null,authType:b}}),{data:B}=C;e(B),h(null),_(!1)},c={title:`${g("common.create")} ${g("accessKey")}`,description:(f,v,A)=>t.jsxs(Fn,{sx:{gap:3},children:[t.jsx(Mn,{label:g("setting.accessKey.tip"),autoComplete:"off",variant:"outlined",name:"remark",fullWidth:!0,autoFocus:!0,margin:"dense",value:f.remark,onChange:b=>{v({...f,remark:b.target.value,__disableConfirm:!f.passport||!b.target.value.trim()}),b.target.value.trim()?A(""):A(g("setting.accessKey.remarkInvalid"))},slotProps:{htmlInput:{"data-cy":"remark-input"}}}),t.jsxs(Bn,{style:{width:"100%"},variant:"outlined",children:[t.jsx($n,{sx:{width:"calc(100% - 46px)"},children:g("setting.accessKey.passport")}),t.jsx(Pn,{"data-cy":"create-access-key-select-passport",value:f.passport,onChange:b=>{const C=b.target.value;A(null),v({...f,passport:C,__disableConfirm:!f.remark||!C})},fullWidth:!0,label:g("setting.accessKey.passport"),disabled:E,IconComponent:b=>t.jsx(Nt,{...b,width:20,height:20}),children:u.map(b=>t.jsx(Un,{value:b.name,"data-cy":`create-access-key-passport-option-${b.name}`,children:t.jsxs($,{children:[t.jsx("span",{children:b.title||b.name}),t.jsx($,{sx:{maxWidth:440,fontSize:12,color:"#999",whiteSpace:"normal",textAlign:"justify"},children:b.description})]})},b.name))})]}),t.jsx(Hn,{value:f.authType,onChange:b=>{v({...f,authType:b.target.value})}}),t.jsx(Rt,{placeholder:g("setting.accessKey.expireTime"),value:f.expireAt,onChange:b=>{v({...f,expireAt:b,__disableConfirm:!f.passport||!f.remark||!b})}})]}),confirm:g("common.confirm"),cancel:g("common.cancel"),color:"primary",params:{remark:s,authType:"signature",__disableConfirm:!s.trim()},onConfirm:T,onCancel:y};return t.jsxs(t.Fragment,{children:[t.jsxs(vn,{sx:{color:"common.white"},edge:"end",variant:"contained",color:"primary","data-cy":"add-access-key-btn",onClick:()=>h(c),className:"rule-action",children:[E?t.jsx($s,{size:16}):t.jsx(ha,{style:{fontSize:16}}),g("common.create")]}),l&&t.jsx(yt,{title:l.title,description:l.description,confirm:l.confirm,color:l.color,cancel:l.cancel,params:l.params,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}It.propTypes={remark:j.string,onCreate:j.func};var Tn,bt;function Ra(){if(bt)return Tn;bt=1;function e(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(o=>{const d=n[o],w=typeof d;(w==="object"||w==="function")&&!Object.isFrozen(d)&&e(d)}),n}class s{constructor(o){o.data===void 0&&(o.data={}),this.data=o.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function a(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(n,...o){const d=Object.create(null);for(const w in n)d[w]=n[w];return o.forEach(function(w){for(const J in w)d[J]=w[J]}),d}const g="</span>",E=n=>!!n.scope,_=(n,{prefix:o})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const d=n.split(".");return[`${o}${d.shift()}`,...d.map((w,J)=>`${w}${"_".repeat(J+1)}`)].join(" ")}return`${o}${n}`};class l{constructor(o,d){this.buffer="",this.classPrefix=d.classPrefix,o.walk(this)}addText(o){this.buffer+=a(o)}openNode(o){if(!E(o))return;const d=_(o.scope,{prefix:this.classPrefix});this.span(d)}closeNode(o){E(o)&&(this.buffer+=g)}value(){return this.buffer}span(o){this.buffer+=`<span class="${o}">`}}const h=(n={})=>{const o={children:[]};return Object.assign(o,n),o};class u{constructor(){this.rootNode=h(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(o){this.top.children.push(o)}openNode(o){const d=h({scope:o});this.add(d),this.stack.push(d)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(o){return this.constructor._walk(o,this.rootNode)}static _walk(o,d){return typeof d=="string"?o.addText(d):d.children&&(o.openNode(d),d.children.forEach(w=>this._walk(o,w)),o.closeNode(d)),o}static _collapse(o){typeof o!="string"&&o.children&&(o.children.every(d=>typeof d=="string")?o.children=[o.children.join("")]:o.children.forEach(d=>{u._collapse(d)}))}}class y extends u{constructor(o){super(),this.options=o}addText(o){o!==""&&this.add(o)}startScope(o){this.openNode(o)}endScope(){this.closeNode()}__addSublanguage(o,d){const w=o.root;d&&(w.scope=`language:${d}`),this.add(w)}toHTML(){return new l(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function T(n){return n?typeof n=="string"?n:n.source:null}function c(n){return A("(?=",n,")")}function f(n){return A("(?:",n,")*")}function v(n){return A("(?:",n,")?")}function A(...n){return n.map(d=>T(d)).join("")}function b(n){const o=n[n.length-1];return typeof o=="object"&&o.constructor===Object?(n.splice(n.length-1,1),o):{}}function C(...n){return"("+(b(n).capture?"":"?:")+n.map(w=>T(w)).join("|")+")"}function B(n){return new RegExp(n.toString()+"|").exec("").length-1}function M(n,o){const d=n&&n.exec(o);return d&&d.index===0}const P=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function k(n,{joinWith:o}){let d=0;return n.map(w=>{d+=1;const J=d;let Q=T(w),N="";for(;Q.length>0;){const m=P.exec(Q);if(!m){N+=Q;break}N+=Q.substring(0,m.index),Q=Q.substring(m.index+m[0].length),m[0][0]==="\\"&&m[1]?N+="\\"+String(Number(m[1])+J):(N+=m[0],m[0]==="("&&d++)}return N}).map(w=>`(${w})`).join(o)}const X=/\b\B/,ge="[a-zA-Z]\\w*",ae="[a-zA-Z_]\\w*",ne="\\b\\d+(\\.\\d+)?",be="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Ee="\\b(0b[01]+)",fe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",I=(n={})=>{const o=/^#![ ]*\//;return n.binary&&(n.begin=A(o,/.*\b/,n.binary,/\b.*/)),i({scope:"meta",begin:o,end:/$/,relevance:0,"on:begin":(d,w)=>{d.index!==0&&w.ignoreMatch()}},n)},G={begin:"\\\\[\\s\\S]",relevance:0},V={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[G]},q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[G]},xe={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},U=function(n,o,d={}){const w=i({scope:"comment",begin:n,end:o,contains:[]},d);w.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const J=C("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return w.contains.push({begin:A(/[ ]+/,"(",J,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),w},ie=U("//","$"),ue=U("/\\*","\\*/"),ce=U("#","$"),oe={scope:"number",begin:ne,relevance:0},Ae={scope:"number",begin:be,relevance:0},ln={scope:"number",begin:Ee,relevance:0},We={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[G,{begin:/\[/,end:/\]/,relevance:0,contains:[G]}]},je={scope:"title",begin:ge,relevance:0},un={scope:"title",begin:ae,relevance:0},Ze={begin:"\\.\\s*"+ae,relevance:0};var Me=Object.freeze({__proto__:null,APOS_STRING_MODE:V,BACKSLASH_ESCAPE:G,BINARY_NUMBER_MODE:ln,BINARY_NUMBER_RE:Ee,COMMENT:U,C_BLOCK_COMMENT_MODE:ue,C_LINE_COMMENT_MODE:ie,C_NUMBER_MODE:Ae,C_NUMBER_RE:be,END_SAME_AS_BEGIN:function(n){return Object.assign(n,{"on:begin":(o,d)=>{d.data._beginMatch=o[1]},"on:end":(o,d)=>{d.data._beginMatch!==o[1]&&d.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:ge,MATCH_NOTHING_RE:X,METHOD_GUARD:Ze,NUMBER_MODE:oe,NUMBER_RE:ne,PHRASAL_WORDS_MODE:xe,QUOTE_STRING_MODE:q,REGEXP_MODE:We,RE_STARTERS_RE:fe,SHEBANG:I,TITLE_MODE:je,UNDERSCORE_IDENT_RE:ae,UNDERSCORE_TITLE_MODE:un});function dn(n,o){n.input[n.index-1]==="."&&o.ignoreMatch()}function gn(n,o){n.className!==void 0&&(n.scope=n.className,delete n.className)}function pn(n,o){o&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=dn,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function bn(n,o){Array.isArray(n.illegal)&&(n.illegal=C(...n.illegal))}function fn(n,o){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function K(n,o){n.relevance===void 0&&(n.relevance=1)}const Le=(n,o)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const d=Object.assign({},n);Object.keys(n).forEach(w=>{delete n[w]}),n.keywords=d.keywords,n.begin=A(d.beforeMatch,c(d.begin)),n.starts={relevance:0,contains:[Object.assign(d,{endsParent:!0})]},n.relevance=0,delete d.beforeMatch},Ce=["of","and","for","in","not","or","if","then","parent","list","value"],mn="keyword";function qn(n,o,d=mn){const w=Object.create(null);return typeof n=="string"?J(d,n.split(" ")):Array.isArray(n)?J(d,n):Object.keys(n).forEach(function(Q){Object.assign(w,qn(n[Q],o,Q))}),w;function J(Q,N){o&&(N=N.map(m=>m.toLowerCase())),N.forEach(function(m){const R=m.split("|");w[R[0]]=[Q,is(R[0],R[1])]})}}function is(n,o){return o?Number(o):os(n)?0:1}function os(n){return Ce.includes(n.toLowerCase())}const Xn={},we=n=>{console.error(n)},Vn=(n,...o)=>{console.log(`WARN: ${n}`,...o)},ke=(n,o)=>{Xn[`${n}/${o}`]||(console.log(`Deprecated as of ${n}. ${o}`),Xn[`${n}/${o}`]=!0)},Ye=new Error;function Jn(n,o,{key:d}){let w=0;const J=n[d],Q={},N={};for(let m=1;m<=o.length;m++)N[m+w]=J[m],Q[m+w]=!0,w+=B(o[m-1]);n[d]=N,n[d]._emit=Q,n[d]._multi=!0}function rs(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw we("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ye;if(typeof n.beginScope!="object"||n.beginScope===null)throw we("beginScope must be object"),Ye;Jn(n,n.begin,{key:"beginScope"}),n.begin=k(n.begin,{joinWith:""})}}function cs(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw we("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ye;if(typeof n.endScope!="object"||n.endScope===null)throw we("endScope must be object"),Ye;Jn(n,n.end,{key:"endScope"}),n.end=k(n.end,{joinWith:""})}}function ls(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function us(n){ls(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),rs(n),cs(n)}function ds(n){function o(N,m){return new RegExp(T(N),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(m?"g":""))}class d{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(m,R){R.position=this.position++,this.matchIndexes[this.matchAt]=R,this.regexes.push([R,m]),this.matchAt+=B(m)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const m=this.regexes.map(R=>R[1]);this.matcherRe=o(k(m,{joinWith:"|"}),!0),this.lastIndex=0}exec(m){this.matcherRe.lastIndex=this.lastIndex;const R=this.matcherRe.exec(m);if(!R)return null;const se=R.findIndex((Ke,hn)=>hn>0&&Ke!==void 0),ee=this.matchIndexes[se];return R.splice(0,se),Object.assign(R,ee)}}class w{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(m){if(this.multiRegexes[m])return this.multiRegexes[m];const R=new d;return this.rules.slice(m).forEach(([se,ee])=>R.addRule(se,ee)),R.compile(),this.multiRegexes[m]=R,R}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(m,R){this.rules.push([m,R]),R.type==="begin"&&this.count++}exec(m){const R=this.getMatcher(this.regexIndex);R.lastIndex=this.lastIndex;let se=R.exec(m);if(this.resumingScanAtSamePosition()&&!(se&&se.index===this.lastIndex)){const ee=this.getMatcher(0);ee.lastIndex=this.lastIndex+1,se=ee.exec(m)}return se&&(this.regexIndex+=se.position+1,this.regexIndex===this.count&&this.considerAll()),se}}function J(N){const m=new w;return N.contains.forEach(R=>m.addRule(R.begin,{rule:R,type:"begin"})),N.terminatorEnd&&m.addRule(N.terminatorEnd,{type:"end"}),N.illegal&&m.addRule(N.illegal,{type:"illegal"}),m}function Q(N,m){const R=N;if(N.isCompiled)return R;[gn,fn,us,Le].forEach(ee=>ee(N,m)),n.compilerExtensions.forEach(ee=>ee(N,m)),N.__beforeBegin=null,[pn,bn,K].forEach(ee=>ee(N,m)),N.isCompiled=!0;let se=null;return typeof N.keywords=="object"&&N.keywords.$pattern&&(N.keywords=Object.assign({},N.keywords),se=N.keywords.$pattern,delete N.keywords.$pattern),se=se||/\w+/,N.keywords&&(N.keywords=qn(N.keywords,n.case_insensitive)),R.keywordPatternRe=o(se,!0),m&&(N.begin||(N.begin=/\B|\b/),R.beginRe=o(R.begin),!N.end&&!N.endsWithParent&&(N.end=/\B|\b/),N.end&&(R.endRe=o(R.end)),R.terminatorEnd=T(R.end)||"",N.endsWithParent&&m.terminatorEnd&&(R.terminatorEnd+=(N.end?"|":"")+m.terminatorEnd)),N.illegal&&(R.illegalRe=o(N.illegal)),N.contains||(N.contains=[]),N.contains=[].concat(...N.contains.map(function(ee){return gs(ee==="self"?N:ee)})),N.contains.forEach(function(ee){Q(ee,R)}),N.starts&&Q(N.starts,m),R.matcher=J(R),R}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=i(n.classNameAliases||{}),Q(n)}function Qn(n){return n?n.endsWithParent||Qn(n.starts):!1}function gs(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(o){return i(n,{variants:null},o)})),n.cachedVariants?n.cachedVariants:Qn(n)?i(n,{starts:n.starts?i(n.starts):null}):Object.isFrozen(n)?i(n):n}var ps="11.11.1";class bs extends Error{constructor(o,d){super(o),this.name="HTMLInjectionError",this.html=d}}const En=a,et=i,nt=Symbol("nomatch"),fs=7,tt=function(n){const o=Object.create(null),d=Object.create(null),w=[];let J=!0;const Q="Could not find the language '{}', did you forget to load/include a language module?",N={disableAutodetect:!0,name:"Plain text",contains:[]};let m={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:y};function R(r){return m.noHighlightRe.test(r)}function se(r){let S=r.className+" ";S+=r.parentNode?r.parentNode.className:"";const D=m.languageDetectRe.exec(S);if(D){const W=Te(D[1]);return W||(Vn(Q.replace("{}",D[1])),Vn("Falling back to no-highlight mode for this block.",r)),W?D[1]:"no-highlight"}return S.split(/\s+/).find(W=>R(W)||Te(W))}function ee(r,S,D){let W="",te="";typeof S=="object"?(W=r,D=S.ignoreIllegals,te=S.language):(ke("10.7.0","highlight(lang, code, ...args) has been deprecated."),ke("10.7.0",`Please use highlight(code, options) instead.
2
2
  https://github.com/highlightjs/highlight.js/issues/2277`),te=r,W=S),D===void 0&&(D=!0);const me={code:W,language:te};Xe("before:highlight",me);const Re=me.result?me.result:Ke(me.language,me.code,D);return Re.code=me.code,Xe("after:highlight",Re),Re}function Ke(r,S,D,W){const te=Object.create(null);function me(p,x){return p.keywords[x]}function Re(){if(!O.keywords){re.addText(Z);return}let p=0;O.keywordPatternRe.lastIndex=0;let x=O.keywordPatternRe.exec(Z),L="";for(;x;){L+=Z.substring(p,x.index);const F=_e.case_insensitive?x[0].toLowerCase():x[0],le=me(O,F);if(le){const[Se,Ms]=le;if(re.addText(L),L="",te[F]=(te[F]||0)+1,te[F]<=fs&&(Qe+=Ms),Se.startsWith("_"))L+=x[0];else{const Ls=_e.classNameAliases[Se]||Se;he(x[0],Ls)}}else L+=x[0];p=O.keywordPatternRe.lastIndex,x=O.keywordPatternRe.exec(Z)}L+=Z.substring(p),re.addText(L)}function Ve(){if(Z==="")return;let p=null;if(typeof O.subLanguage=="string"){if(!o[O.subLanguage]){re.addText(Z);return}p=Ke(O.subLanguage,Z,!0,ut[O.subLanguage]),ut[O.subLanguage]=p._top}else p=_n(Z,O.subLanguage.length?O.subLanguage:null);O.relevance>0&&(Qe+=p.relevance),re.__addSublanguage(p._emitter,p.language)}function pe(){O.subLanguage!=null?Ve():Re(),Z=""}function he(p,x){p!==""&&(re.startScope(x),re.addText(p),re.endScope())}function ot(p,x){let L=1;const F=x.length-1;for(;L<=F;){if(!p._emit[L]){L++;continue}const le=_e.classNameAliases[p[L]]||p[L],Se=x[L];le?he(Se,le):(Z=Se,Re(),Z=""),L++}}function rt(p,x){return p.scope&&typeof p.scope=="string"&&re.openNode(_e.classNameAliases[p.scope]||p.scope),p.beginScope&&(p.beginScope._wrap?(he(Z,_e.classNameAliases[p.beginScope._wrap]||p.beginScope._wrap),Z=""):p.beginScope._multi&&(ot(p.beginScope,x),Z="")),O=Object.create(p,{parent:{value:O}}),O}function ct(p,x,L){let F=M(p.endRe,L);if(F){if(p["on:end"]){const le=new s(p);p["on:end"](x,le),le.isMatchIgnored&&(F=!1)}if(F){for(;p.endsParent&&p.parent;)p=p.parent;return p}}if(p.endsWithParent)return ct(p.parent,x,L)}function Cs(p){return O.matcher.regexIndex===0?(Z+=p[0],1):(An=!0,0)}function ws(p){const x=p[0],L=p.rule,F=new s(L),le=[L.__beforeBegin,L["on:begin"]];for(const Se of le)if(Se&&(Se(p,F),F.isMatchIgnored))return Cs(x);return L.skip?Z+=x:(L.excludeBegin&&(Z+=x),pe(),!L.returnBegin&&!L.excludeBegin&&(Z=x)),rt(L,p),L.returnBegin?0:x.length}function Is(p){const x=p[0],L=S.substring(p.index),F=ct(O,p,L);if(!F)return nt;const le=O;O.endScope&&O.endScope._wrap?(pe(),he(x,O.endScope._wrap)):O.endScope&&O.endScope._multi?(pe(),ot(O.endScope,p)):le.skip?Z+=x:(le.returnEnd||le.excludeEnd||(Z+=x),pe(),le.excludeEnd&&(Z=x));do O.scope&&re.closeNode(),!O.skip&&!O.subLanguage&&(Qe+=O.relevance),O=O.parent;while(O!==F.parent);return F.starts&&rt(F.starts,p),le.returnEnd?0:x.length}function Os(){const p=[];for(let x=O;x!==_e;x=x.parent)x.scope&&p.unshift(x.scope);p.forEach(x=>re.openNode(x))}let Je={};function lt(p,x){const L=x&&x[0];if(Z+=p,L==null)return pe(),0;if(Je.type==="begin"&&x.type==="end"&&Je.index===x.index&&L===""){if(Z+=S.slice(x.index,x.index+1),!J){const F=new Error(`0 width match regex (${r})`);throw F.languageName=r,F.badRule=Je.rule,F}return 1}if(Je=x,x.type==="begin")return ws(x);if(x.type==="illegal"&&!D){const F=new Error('Illegal lexeme "'+L+'" for mode "'+(O.scope||"<unnamed>")+'"');throw F.mode=O,F}else if(x.type==="end"){const F=Is(x);if(F!==nt)return F}if(x.type==="illegal"&&L==="")return Z+=`
3
3
  `,1;if(xn>1e5&&xn>x.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=L,L.length}const _e=Te(r);if(!_e)throw we(Q.replace("{}",r)),new Error('Unknown language: "'+r+'"');const vs=ds(_e);let yn="",O=W||vs;const ut={},re=new m.__emitter(m);Os();let Z="",Qe=0,Ie=0,xn=0,An=!1;try{if(_e.__emitTokens)_e.__emitTokens(S,re);else{for(O.matcher.considerAll();;){xn++,An?An=!1:O.matcher.considerAll(),O.matcher.lastIndex=Ie;const p=O.matcher.exec(S);if(!p)break;const x=S.substring(Ie,p.index),L=lt(x,p);Ie=p.index+L}lt(S.substring(Ie))}return re.finalize(),yn=re.toHTML(),{language:r,value:yn,relevance:Qe,illegal:!1,_emitter:re,_top:O}}catch(p){if(p.message&&p.message.includes("Illegal"))return{language:r,value:En(S),illegal:!0,relevance:0,_illegalBy:{message:p.message,index:Ie,context:S.slice(Ie-100,Ie+100),mode:p.mode,resultSoFar:yn},_emitter:re};if(J)return{language:r,value:En(S),illegal:!1,relevance:0,errorRaised:p,_emitter:re,_top:O};throw p}}function hn(r){const S={value:En(r),illegal:!1,relevance:0,_top:N,_emitter:new m.__emitter(m)};return S._emitter.addText(r),S}function _n(r,S){S=S||m.languages||Object.keys(o);const D=hn(r),W=S.filter(Te).filter(it).map(pe=>Ke(pe,r,!1));W.unshift(D);const te=W.sort((pe,he)=>{if(pe.relevance!==he.relevance)return he.relevance-pe.relevance;if(pe.language&&he.language){if(Te(pe.language).supersetOf===he.language)return 1;if(Te(he.language).supersetOf===pe.language)return-1}return 0}),[me,Re]=te,Ve=me;return Ve.secondBest=Re,Ve}function ms(r,S,D){const W=S&&d[S]||D;r.classList.add("hljs"),r.classList.add(`language-${W}`)}function Nn(r){let S=null;const D=se(r);if(R(D))return;if(Xe("before:highlightElement",{el:r,language:D}),r.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",r);return}if(r.children.length>0&&(m.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(r)),m.throwUnescapedHTML))throw new bs("One of your code blocks includes unescaped HTML.",r.innerHTML);S=r;const W=S.textContent,te=D?ee(W,{language:D,ignoreIllegals:!0}):_n(W);r.innerHTML=te.value,r.dataset.highlighted="yes",ms(r,D,te.language),r.result={language:te.language,re:te.relevance,relevance:te.relevance},te.secondBest&&(r.secondBest={language:te.secondBest.language,relevance:te.secondBest.relevance}),Xe("after:highlightElement",{el:r,result:te,text:W})}function Es(r){m=et(m,r)}const hs=()=>{qe(),ke("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function _s(){qe(),ke("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let st=!1;function qe(){function r(){qe()}if(document.readyState==="loading"){st||window.addEventListener("DOMContentLoaded",r,!1),st=!0;return}document.querySelectorAll(m.cssSelector).forEach(Nn)}function Ns(r,S){let D=null;try{D=S(n)}catch(W){if(we("Language definition for '{}' could not be registered.".replace("{}",r)),J)we(W);else throw W;D=N}D.name||(D.name=r),o[r]=D,D.rawDefinition=S.bind(null,n),D.aliases&&at(D.aliases,{languageName:r})}function ys(r){delete o[r];for(const S of Object.keys(d))d[S]===r&&delete d[S]}function xs(){return Object.keys(o)}function Te(r){return r=(r||"").toLowerCase(),o[r]||o[d[r]]}function at(r,{languageName:S}){typeof r=="string"&&(r=[r]),r.forEach(D=>{d[D.toLowerCase()]=S})}function it(r){const S=Te(r);return S&&!S.disableAutodetect}function As(r){r["before:highlightBlock"]&&!r["before:highlightElement"]&&(r["before:highlightElement"]=S=>{r["before:highlightBlock"](Object.assign({block:S.el},S))}),r["after:highlightBlock"]&&!r["after:highlightElement"]&&(r["after:highlightElement"]=S=>{r["after:highlightBlock"](Object.assign({block:S.el},S))})}function Ss(r){As(r),w.push(r)}function Ts(r){const S=w.indexOf(r);S!==-1&&w.splice(S,1)}function Xe(r,S){const D=r;w.forEach(function(W){W[D]&&W[D](S)})}function Rs(r){return ke("10.7.0","highlightBlock will be removed entirely in v12.0"),ke("10.7.0","Please use highlightElement now."),Nn(r)}Object.assign(n,{highlight:ee,highlightAuto:_n,highlightAll:qe,highlightElement:Nn,highlightBlock:Rs,configure:Es,initHighlighting:hs,initHighlightingOnLoad:_s,registerLanguage:Ns,unregisterLanguage:ys,listLanguages:xs,getLanguage:Te,registerAliases:at,autoDetection:it,inherit:et,addPlugin:Ss,removePlugin:Ts}),n.debugMode=function(){J=!1},n.safeMode=function(){J=!0},n.versionString=ps,n.regex={concat:A,lookahead:c,either:C,optional:v,anyNumberOfTimes:f};for(const r in Me)typeof Me[r]=="object"&&e(Me[r]);return Object.assign(n,Me),n},De=tt({});return De.newInstance=()=>tt({}),Tn=De,De.HighlightJS=De,De.default=De,Tn}var Ca=Ra();const z=Ps(Ca),ft="[A-Za-z$_][0-9A-Za-z$_]*",wa=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Ia=["true","false","null","undefined","NaN","Infinity"],Ot=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],vt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mt=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Oa=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],va=[].concat(Mt,Ot,vt);function Gn(e){const s=e.regex,a=(U,{after:ie})=>{const ue="</"+U[0].slice(1);return U.input.indexOf(ue,ie)!==-1},i=ft,g={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,ie)=>{const ue=U[0].length+U.index,ce=U.input[ue];if(ce==="<"||ce===","){ie.ignoreMatch();return}ce===">"&&(a(U,{after:ue})||ie.ignoreMatch());let oe;const Ae=U.input.substring(ue);if(oe=Ae.match(/^\s*=/)){ie.ignoreMatch();return}if((oe=Ae.match(/^\s+extends\s+/))&&oe.index===0){ie.ignoreMatch();return}}},l={$pattern:ft,keyword:wa,literal:Ia,built_in:va,"variable.language":Oa},h="[0-9](_?[0-9])*",u=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${y})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},B={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,{match:/\$\d+/},T];c.contains=M.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(M)});const P=[].concat(B,c.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(P)}]),X={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k},ge={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,s.concat(i,"(",s.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:s.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ot,...vt]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[X],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function fe(U){return s.concat("(?!",U.join("|"),")")}const I={match:s.concat(/\b/,fe([...Mt,"super","import"].map(U=>`${U}\\s*\\(`)),i,s.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:s.concat(/\./,s.lookahead(s.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},X]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,s.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[X]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,B,{match:/\$\d+/},T,ae,{scope:"attr",match:i+s.lookahead(":"),relevance:0},xe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,e.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:E},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[X,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[X]},I,Ee,ge,V,{match:/\$[(.]/}]}}const rn="[A-Za-z$_][0-9A-Za-z$_]*",Lt=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],kt=["true","false","null","undefined","NaN","Infinity"],Dt=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Bt=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],$t=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Pt=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Ut=[].concat($t,Dt,Bt);function Ma(e){const s=e.regex,a=(U,{after:ie})=>{const ue="</"+U[0].slice(1);return U.input.indexOf(ue,ie)!==-1},i=rn,g={begin:"<>",end:"</>"},E=/<[A-Za-z0-9\\._:-]+\s*\/>/,_={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(U,ie)=>{const ue=U[0].length+U.index,ce=U.input[ue];if(ce==="<"||ce===","){ie.ignoreMatch();return}ce===">"&&(a(U,{after:ue})||ie.ignoreMatch());let oe;const Ae=U.input.substring(ue);if(oe=Ae.match(/^\s*=/)){ie.ignoreMatch();return}if((oe=Ae.match(/^\s+extends\s+/))&&oe.index===0){ie.ignoreMatch();return}}},l={$pattern:rn,keyword:Lt,literal:kt,built_in:Ut,"variable.language":Pt},h="[0-9](_?[0-9])*",u=`\\.(${h})`,y="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",T={className:"number",variants:[{begin:`(\\b(${y})((${u})|\\.)?|(${u}))[eE][+-]?(${h})\\b`},{begin:`\\b(${y})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},c={className:"subst",begin:"\\$\\{",end:"\\}",keywords:l,contains:[]},f={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"xml"}},v={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"css"}},A={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,c],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,c]},B={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},M=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,{match:/\$\d+/},T];c.contains=M.concat({begin:/\{/,end:/\}/,keywords:l,contains:["self"].concat(M)});const P=[].concat(B,c.contains),k=P.concat([{begin:/(\s*)\(/,end:/\)/,keywords:l,contains:["self"].concat(P)}]),X={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k},ge={variants:[{match:[/class/,/\s+/,i,/\s+/,/extends/,/\s+/,s.concat(i,"(",s.concat(/\./,i),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,i],scope:{1:"keyword",3:"title.class"}}]},ae={relevance:0,match:s.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Dt,...Bt]}},ne={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},be={variants:[{match:[/function/,/\s+/,i,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[X],illegal:/%/},Ee={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function fe(U){return s.concat("(?!",U.join("|"),")")}const I={match:s.concat(/\b/,fe([...$t,"super","import"].map(U=>`${U}\\s*\\(`)),i,s.lookahead(/\s*\(/)),className:"title.function",relevance:0},G={begin:s.concat(/\./,s.lookahead(s.concat(i,/(?![0-9A-Za-z$_(])/))),end:i,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,i,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},X]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",xe={match:[/const|var|let/,/\s+/,i,/\s*/,/=\s*/,/(async\s*)?/,s.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[X]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:l,exports:{PARAMS_CONTAINS:k,CLASS_REFERENCE:ae},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),ne,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,f,v,A,b,B,{match:/\$\d+/},T,ae,{scope:"attr",match:i+s.lookahead(":"),relevance:0},xe,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,e.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:k}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:g.begin,end:g.end},{match:E},{begin:_.begin,"on:begin":_.isTrulyOpeningTag,end:_.end}],subLanguage:"xml",contains:[{begin:_.begin,end:_.end,skip:!0,contains:["self"]}]}]},be,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[X,e.inherit(e.TITLE_MODE,{begin:i,className:"title.function"})]},{match:/\.\.\./,relevance:0},G,{match:"\\$"+i,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[X]},I,Ee,ge,V,{match:/\$[(.]/}]}}function Wn(e){const s=e.regex,a=Ma(e),i=rn,g=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],E={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},_={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:g},contains:[a.exports.CLASS_REFERENCE]},l={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},h=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:rn,keyword:Lt.concat(h),literal:kt,built_in:Ut.concat(g),"variable.language":Pt},y={className:"meta",begin:"@"+i},T=(A,b,C)=>{const B=A.contains.findIndex(M=>M.label===b);if(B===-1)throw new Error("can not find mode to replace");A.contains.splice(B,1,C)};Object.assign(a.keywords,u),a.exports.PARAMS_CONTAINS.push(y);const c=a.contains.find(A=>A.scope==="attr"),f=Object.assign({},c,{match:s.concat(i,s.lookahead(/\s*\?:/))});a.exports.PARAMS_CONTAINS.push([a.exports.CLASS_REFERENCE,c,f]),a.contains=a.contains.concat([y,E,_,f]),T(a,"shebang",e.SHEBANG()),T(a,"use_strict",l);const v=a.contains.find(A=>A.label==="func.def");return v.relevance=0,Object.assign(a,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),a}function La(e){const s={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},a={match:/[{}[\],:]/,className:"punctuation",relevance:0},i=["true","false","null"],g={scope:"literal",beginKeywords:i.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:i},contains:[s,a,e.QUOTE_STRING_MODE,g,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function ka(e){const s=e.regex,a="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",i="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",_={$pattern:a,keyword:["after","alias","and","case","catch","cond","defstruct","defguard","do","else","end","fn","for","if","import","in","not","or","quote","raise","receive","require","reraise","rescue","try","unless","unquote","unquote_splicing","use","when","with|0"],literal:["false","nil","true"]},l={className:"subst",begin:/#\{/,end:/\}/,keywords:_},h={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[0-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},y={match:/\\[\s\S]/,scope:"char.escape",relevance:0},T=`[/|([{<"']`,c=[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}],f=k=>({scope:"char.escape",begin:s.concat(/\\/,k),relevance:0}),v={className:"string",begin:"~[a-z](?="+T+")",contains:c.map(k=>e.inherit(k,{contains:[f(k.end),y,l]}))},A={className:"string",begin:"~[A-Z](?="+T+")",contains:c.map(k=>e.inherit(k,{contains:[f(k.end)]}))},b={className:"regex",variants:[{begin:"~r(?="+T+")",contains:c.map(k=>e.inherit(k,{end:s.concat(k.end,/[uismxfU]{0,7}/),contains:[f(k.end),y,l]}))},{begin:"~R(?="+T+")",contains:c.map(k=>e.inherit(k,{end:s.concat(k.end,/[uismxfU]{0,7}/),contains:[f(k.end)]}))}]},C={className:"string",contains:[e.BACKSLASH_ESCAPE,l],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},B={className:"function",beginKeywords:"def defp defmacro defmacrop",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:a,endsParent:!0})]},M=e.inherit(B,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),P=[C,b,A,v,e.HASH_COMMENT_MODE,M,B,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[C,{begin:i}],relevance:0},{className:"symbol",begin:a+":(?!:)",relevance:0},{className:"title.class",begin:/(\b[A-Z][a-zA-Z0-9_]+)/,relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"}];return l.contains=P,{name:"Elixir",aliases:["ex","exs"],keywords:_,contains:P}}var $e="[0-9](_*[0-9])*",en=`\\.(${$e})`,nn="[0-9a-fA-F](_*[0-9a-fA-F])*",mt={className:"number",variants:[{begin:`(\\b(${$e})((${en})|\\.)?|(${en}))[eE][+-]?(${$e})[fFdD]?\\b`},{begin:`\\b(${$e})((${en})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${en})[fFdD]?\\b`},{begin:`\\b(${$e})[fFdD]\\b`},{begin:`\\b0[xX]((${nn})\\.?|(${nn})?\\.(${nn}))[pP][+-]?(${$e})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${nn})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ft(e,s,a){return a===-1?"":e.replace(s,i=>Ft(e,s,a-1))}function Da(e){const s=e.regex,a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",i=a+Ft("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),h={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+a,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},y={className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:h,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,a],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[s.concat(/(?!else)/,a),/\s+/,a,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,a],className:{1:"keyword",3:"title.class"},contains:[y,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+i+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:h,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:h,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,mt,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},mt,u]}}function jt(e){return e?typeof e=="string"?e:e.source:null}function He(e){return H("(?=",e,")")}function H(...e){return e.map(a=>jt(a)).join("")}function Ba(e){const s=e[e.length-1];return typeof s=="object"&&s.constructor===Object?(e.splice(e.length-1,1),s):{}}function de(...e){return"("+(Ba(e).capture?"":"?:")+e.map(i=>jt(i)).join("|")+")"}const Zn=e=>H(/\b/,e,/\w$/.test(e)?/\b/:/\B/),$a=["Protocol","Type"].map(Zn),Et=["init","self"].map(Zn),Pa=["Any","Self"],Rn=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],ht=["false","nil","true"],Ua=["assignment","associativity","higherThan","left","lowerThan","none","right"],Fa=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],_t=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Kt=de(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Ht=de(Kt,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Cn=H(Kt,Ht,"*"),zt=de(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),cn=de(zt,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Ne=H(zt,cn,"*"),tn=H(/[A-Z]/,cn,"*"),ja=["attached","autoclosure",H(/convention\(/,de("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",H(/objc\(/,Ne,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Ka=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Ha(e){const s={match:/\s+/,relevance:0},a=e.COMMENT("/\\*","\\*/",{contains:["self"]}),i=[e.C_LINE_COMMENT_MODE,a],g={match:[/\./,de(...$a,...Et)],className:{2:"keyword"}},E={match:H(/\./,de(...Rn)),relevance:0},_=Rn.filter(K=>typeof K=="string").concat(["_|0"]),l=Rn.filter(K=>typeof K!="string").concat(Pa).map(Zn),h={variants:[{className:"keyword",match:de(...l,...Et)}]},u={$pattern:de(/\b\w+/,/#\w+/),keyword:_.concat(Fa),literal:ht},y=[g,E,h],T={match:H(/\./,de(..._t)),relevance:0},c={className:"built_in",match:H(/\b/,de(..._t),/(?=\()/)},f=[T,c],v={match:/->/,relevance:0},A={className:"operator",relevance:0,variants:[{match:Cn},{match:`\\.(\\.|${Ht})+`}]},b=[v,A],C="([0-9]_*)+",B="([0-9a-fA-F]_*)+",M={className:"number",relevance:0,variants:[{match:`\\b(${C})(\\.(${C}))?([eE][+-]?(${C}))?\\b`},{match:`\\b0x(${B})(\\.(${B}))?([pP][+-]?(${C}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},P=(K="")=>({className:"subst",variants:[{match:H(/\\/,K,/[0\\tnr"']/)},{match:H(/\\/,K,/u\{[0-9a-fA-F]{1,8}\}/)}]}),k=(K="")=>({className:"subst",match:H(/\\/,K,/[\t ]*(?:[\r\n]|\r\n)/)}),X=(K="")=>({className:"subst",label:"interpol",begin:H(/\\/,K,/\(/),end:/\)/}),ge=(K="")=>({begin:H(K,/"""/),end:H(/"""/,K),contains:[P(K),k(K),X(K)]}),ae=(K="")=>({begin:H(K,/"/),end:H(/"/,K),contains:[P(K),X(K)]}),ne={className:"string",variants:[ge(),ge("#"),ge("##"),ge("###"),ae(),ae("#"),ae("##"),ae("###")]},be=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],Ee={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:be},fe=K=>{const Le=H(K,/\//),Ce=H(/\//,K);return{begin:Le,end:Ce,contains:[...be,{scope:"comment",begin:`#(?!.*${Ce})`,end:/$/}]}},I={scope:"regexp",variants:[fe("###"),fe("##"),fe("#"),Ee]},G={match:H(/`/,Ne,/`/)},V={className:"variable",match:/\$\d+/},q={className:"variable",match:`\\$${cn}+`},xe=[G,V,q],U={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Ka,contains:[...b,M,ne]}]}},ie={scope:"keyword",match:H(/@/,de(...ja),He(de(/\(/,/\s+/)))},ue={scope:"meta",match:H(/@/,Ne)},ce=[U,ie,ue],oe={match:He(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:H(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,cn,"+")},{className:"type",match:tn,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:H(/\s+&\s+/,He(tn)),relevance:0}]},Ae={begin:/</,end:/>/,keywords:u,contains:[...i,...y,...ce,v,oe]};oe.contains.push(Ae);const ln={match:H(Ne,/\s*:/),keywords:"_|0",relevance:0},We={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",ln,...i,I,...y,...f,...b,M,ne,...xe,...ce,oe]},je={begin:/</,end:/>/,keywords:"repeat each",contains:[...i,oe]},un={begin:de(He(H(Ne,/\s*:/)),He(H(Ne,/\s+/,Ne,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Ne}]},Ze={begin:/\(/,end:/\)/,keywords:u,contains:[un,...i,...y,...b,M,ne,...ce,oe,We],endsParent:!0,illegal:/["']/},Yn={match:[/(func|macro)/,/\s+/,de(G.match,Ne,Cn)],className:{1:"keyword",3:"title.function"},contains:[je,Ze,s],illegal:[/\[/,/%/]},Me={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[je,Ze,s],illegal:/\[|%/},dn={match:[/operator/,/\s+/,Cn],className:{1:"keyword",3:"title"}},gn={begin:[/precedencegroup/,/\s+/,tn],className:{1:"keyword",3:"title"},contains:[oe],keywords:[...Ua,...ht],end:/}/},pn={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},bn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},fn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Ne,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[je,...y,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:tn},...y],relevance:0}]};for(const K of ne.variants){const Le=K.contains.find(mn=>mn.label==="interpol");Le.keywords=u;const Ce=[...y,...f,...b,M,ne,...xe];Le.contains=[...Ce,{begin:/\(/,end:/\)/,contains:["self",...Ce]}]}return{name:"Swift",keywords:u,contains:[...i,Yn,Me,pn,bn,fn,dn,gn,{beginKeywords:"import",end:/$/,contains:[...i],relevance:0},I,...y,...f,...b,M,ne,...xe,...ce,oe,We]}}function Gt(e){const s={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},a=/[a-zA-Z@][a-zA-Z0-9_]*/,l={"variable.language":["this","super"],$pattern:a,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},h={$pattern:a,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:l,illegal:"</",contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+h.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:h,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}var Pe="[0-9](_*[0-9])*",sn=`\\.(${Pe})`,an="[0-9a-fA-F](_*[0-9a-fA-F])*",za={className:"number",variants:[{begin:`(\\b(${Pe})((${sn})|\\.)?|(${sn}))[eE][+-]?(${Pe})[fFdD]?\\b`},{begin:`\\b(${Pe})((${sn})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${sn})[fFdD]?\\b`},{begin:`\\b(${Pe})[fFdD]\\b`},{begin:`\\b0[xX]((${an})\\.?|(${an})?\\.(${an}))[pP][+-]?(${Pe})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${an})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Wt(e){const s={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},i={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},g={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},E={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},_={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[E,g]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,E,g]}]};g.contains.push(_);const l={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},h={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(_,{className:"string"}),"self"]}]},u=za,y=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),T={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},c=T;return c.variants[1].contains=[T],T.variants[1].contains=[c],{name:"Kotlin",aliases:["kt","kts"],keywords:s,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,y,a,i,l,h,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:s,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:s,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[T,e.C_LINE_COMMENT_MODE,y],relevance:0},e.C_LINE_COMMENT_MODE,y,l,h,_,e.C_NUMBER_MODE]},y]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},l,h]},_,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
4
4
  `},u]}}function Zt(e){const s=["package","import","option","optional","required","repeated","group","oneof"],a=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],i={match:[/(message|enum|service)\s+/,e.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",aliases:["proto"],keywords:{keyword:s,type:a,literal:["true","false"]},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function Yt(e){const s=e.regex,a=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),i=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],l={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:i,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},h={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:l,illegal:/#/},y={begin:/\{\{/,relevance:0},T={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,h,y,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,h,y,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,y,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,y,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",f=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,v=`\\b|${i.join("|")}`,A={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${f}))[eE][+-]?(${c})[jJ]?(?=${v})`},{begin:`(${f})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${v})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${v})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${v})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${v})`},{begin:`\\b(${c})[jJ](?=${v})`}]},b={className:"comment",begin:s.lookahead(/# type:/),end:/$/,keywords:l,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},C={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",h,A,T,e.HASH_COMMENT_MODE]}]};return u.contains=[T,A,h],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:l,illegal:/(<\/|\?)|=>/,contains:[h,A,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},T,b,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,a],scope:{1:"keyword",3:"title.function"},contains:[C]},{variants:[{match:[/\bclass/,/\s+/,a,/\s*/,/\(\s*/,a,/\s*\)/]},{match:[/\bclass/,/\s+/,a]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[A,C,T]}]}}function qt(e){const s="true false yes no null",a="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},g={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},E={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},_={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,g]},l=e.inherit(_,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),c={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},f={end:",",endsWithParent:!0,excludeEnd:!0,keywords:s,relevance:0},v={begin:/\{/,end:/\}/,contains:[f],illegal:"\\n",relevance:0},A={begin:"\\[",end:"\\]",contains:[f],illegal:"\\n",relevance:0},b=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:s,keywords:{literal:s}},c,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},v,A,E,_],C=[...b];return C.pop(),C.push(l),f.contains=C,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:b}}function Xt(e){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function Vt(e){const s=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:s.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:s.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}function Jt(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function Ga(e){const s=e.regex,a={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},i={begin:"^[-\\*]{3,}",end:"$"},g={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},E={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},_={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,h={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:s.concat(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},y={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},T=e.inherit(u,{contains:[]}),c=e.inherit(y,{contains:[]});u.contains.push(c),y.contains.push(T);let f=[a,h];return[u,y,T,c].forEach(C=>{C.contains=C.contains.concat(f)}),f=f.concat(u,y),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:f},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:f}]}]},a,E,u,y,{className:"quote",begin:"^>\\s+",contains:f,end:"$"},g,i,h,_,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}const Wa=ve("div")`
@@ -1,4 +1,4 @@
1
- import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-BrmUJguV.js";import{u as fe,T as xe}from"./html-title-BlprY12T.js";import{T as ge}from"./traffic-h7HyzROl.js";import{H as he}from"./index-dCfrxOmL.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-DJvhnk1Q.js";import{C as ve}from"./CardContent-D6T4mb6B.js";import{u as Ce}from"./useLocalStorage-WwZ4k9_O.js";import{T as je,a as Ie}from"./ToggleButtonGroup-Z7ULO3Ae.js";import"./iframe-mlrH5a9B.js";import"./ChevronLeft-Czwf-z4J.js";import"./ChevronRight-Cx4VKEff.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-1KMt61fm.js";import"./index-CFoc8aiV.js";import"./AdapterDayjs-CIesv5zf.js";import"./useThemeProps-nx2SX4I_.js";import"./CSSTransition-BqlR62pg.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-D2W01s0y.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./index-CbAJUnfn.js";import"./redux-DfszZyTl.js";import"./depsEqual-BuPlTjct.js";import"./index-CVNQ07mK.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./MoreVert-DVzkIKa5.js";import"./getValidReactChildren-B9Wc-4VY.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Y.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
1
+ import{r as a,u as D,j as e,T as k,be as Y,K as i,s as U,b2 as Q,o as l,p as P,k as M,d4 as X,bk as ee,d as te,Y as re,C as ne,V as se,i as v,a as h,aH as T,b,d5 as oe,J as ie,bx as ae,aD as le,d6 as me,G as C,H as R,l as ce,m as ue,A as de,bm as pe}from"./index-CEz8uxV0.js";import{u as fe,T as xe}from"./html-title-DqkAZK1J.js";import{T as ge}from"./traffic-yxJiUmHD.js";import{H as he}from"./index-C7-meaY1.js";import{x as V}from"./index-DRYJ0xIl.js";import{C as ye,M as L}from"./memory-OMwAmVIf.js";import{C as ve}from"./CardContent-Dt2MkEx5.js";import{u as Ce}from"./useLocalStorage-Pga2d3Q5.js";import{T as je,a as Ie}from"./ToggleButtonGroup-DXi7DrUh.js";import"./iframe-DkQL2XEZ.js";import"./ChevronLeft-CK0ZKGMb.js";import"./ChevronRight-DZLCO-zv.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./base-chart-0UpZBjB1.js";import"./index-0rKT_Rue.js";import"./AdapterDayjs-DFBxeUaR.js";import"./useThemeProps-BjIObq-D.js";import"./CSSTransition-BUs0PeOT.js";import"./visuallyHidden-Dan1xhjv.js";import"./FilterList-CuIuGg48.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./index-xEgN1uLu.js";import"./redux-DfszZyTl.js";import"./depsEqual-DmupZl6g.js";import"./index-Be_P7bFl.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./MoreVert-DE8AiFjI.js";import"./getValidReactChildren-CZQOwkpM.js";const be=o=>a.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...o},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.08295 3.2C2.08295 2.58144 2.58439 2.08 3.20295 2.08H28.8029C29.4215 2.08 29.9229 2.58144 29.9229 3.2V13.44C29.9229 14.0586 29.4215 14.56 28.8029 14.56H3.20295C2.58439 14.56 2.08295 14.0586 2.08295 13.44V3.2ZM4.32295 4.32V12.32H27.6829V4.32H4.32295ZM2.08295 18.56C2.08295 17.9414 2.58439 17.44 3.20295 17.44H28.8029C29.4215 17.44 29.9229 17.9414 29.9229 18.56V28.8C29.9229 29.4186 29.4215 29.92 28.8029 29.92H3.20295C2.58439 29.92 2.08295 29.4186 2.08295 28.8V18.56ZM4.32295 19.68V27.68H27.6829V19.68H4.32295Z",fill:"currentColor"}),a.createElement("path",{d:"M8.96297 7.04001H7.68297C7.51323 7.04001 7.35044 7.10744 7.23042 7.22746C7.1104 7.34748 7.04297 7.51027 7.04297 7.68001V8.96001C7.04297 9.12975 7.1104 9.29253 7.23042 9.41256C7.35044 9.53258 7.51323 9.60001 7.68297 9.60001H8.96297C9.13271 9.60001 9.29549 9.53258 9.41552 9.41256C9.53554 9.29253 9.60297 9.12975 9.60297 8.96001V7.68001C9.60297 7.51027 9.53554 7.34748 9.41552 7.22746C9.29549 7.10744 9.13271 7.04001 8.96297 7.04001ZM8.96297 22.4H7.68297C7.51323 22.4 7.35044 22.4674 7.23042 22.5875C7.1104 22.7075 7.04297 22.8703 7.04297 23.04V24.32C7.04297 24.4897 7.1104 24.6525 7.23042 24.7726C7.35044 24.8926 7.51323 24.96 7.68297 24.96H8.96297C9.13271 24.96 9.29549 24.8926 9.41552 24.7726C9.53554 24.6525 9.60297 24.4897 9.60297 24.32V23.04C9.60297 22.8703 9.53554 22.7075 9.41552 22.5875C9.29549 22.4674 9.13271 22.4 8.96297 22.4ZM14.083 7.04001H12.803C12.6332 7.04001 12.4704 7.10744 12.3504 7.22746C12.2304 7.34748 12.163 7.51027 12.163 7.68001V8.96001C12.163 9.12975 12.2304 9.29253 12.3504 9.41256C12.4704 9.53258 12.6332 9.60001 12.803 9.60001H14.083C14.2527 9.60001 14.4155 9.53258 14.5355 9.41256C14.6555 9.29253 14.723 9.12975 14.723 8.96001V7.68001C14.723 7.51027 14.6555 7.34748 14.5355 7.22746C14.4155 7.10744 14.2527 7.04001 14.083 7.04001ZM14.083 22.4H12.803C12.6332 22.4 12.4704 22.4674 12.3504 22.5875C12.2304 22.7075 12.163 22.8703 12.163 23.04V24.32C12.163 24.4897 12.2304 24.6525 12.3504 24.7726C12.4704 24.8926 12.6332 24.96 12.803 24.96H14.083C14.2527 24.96 14.4155 24.8926 14.5355 24.7726C14.6555 24.6525 14.723 24.4897 14.723 24.32V23.04C14.723 22.8703 14.6555 22.7075 14.5355 22.5875C14.4155 22.4674 14.2527 22.4 14.083 22.4Z",fill:"currentColor"}));function Me(){const{api:o,info:s}=D();return e.jsx(ge,{client:o,did:s.did})}function $({style:o={},title:s=null,value:m=null,graph:c=null,description:p=null,empty:f=null}){return e.jsx(ke,{children:e.jsxs(ve,{style:{...o},children:[e.jsx(k,{sx:{color:"text.secondary",fontSize:14},children:s}),f&&Y.isValidElement(f)?e.jsx(i,{style:{height:150},sx:{color:"text.secondary",display:"flex",justifyContent:"center",alignItems:"center"},children:f}):e.jsxs(e.Fragment,{children:[e.jsx(k,{variant:"h5",component:"div",sx:{mt:1},children:m}),c,!!p&&e.jsx(i,{sx:{display:"flex",color:"text.secondary",fontSize:12,marginTop:3},children:p})]})]})})}$.propTypes={style:l.object,title:l.node,value:l.node,graph:l.node,description:l.any,empty:l.node};const ke=U(Q)`
2
2
  .card-content {
3
3
  height: 150px;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{aF as de,j as e,hh as Es,hi as Is,bP as Ds,r as q,s as xe,K as $,f5 as kt,t as U,eO as ft,a3 as ae,C as Ee,bi as Bt,dL as Ls,o as T,hj as qs,b2 as Ht,cA as Ms,cT as zs,dp as Bs,T as Y,dG as it,bn as ne,bD as mt,p as ue,hk as Hs,bE as pt,b as W,bg as G,dI as ee,H as Z,aV as ie,V as oe,n as Nt,q as Ns,w as Ft,ac as Fs,i as Zt,gd as Zs,hl as Vs,at as Us,aU as X,R as Te,$ as ke,D as Ws,U as Js,v as re,X as at,hm as Ks,hn as Gs,eA as Ys,eC as Xs,F as je,aH as J,g2 as Qs,c$ as St,W as er,fn as Vt,ay as te,aR as Ct,ho as tr,f9 as Re,cv as E,bC as ge,aD as se,O as Q,aP as ye,hp as qe,a1 as sr,hq as Je,c6 as Ce,eD as rr,hr as nr,dH as ce,f as Oe,y as Ut,bz as ot,M as ir,cH as Wt,bs as ar,gj as Ze,hs as or,b9 as lr,L as cr,cu as ze,aK as He,ht as dr,Q as ur,bp as hr,af as Rt,a2 as Jt,bj as Ne,hu as Kt,b6 as fr,gD as we,fa as Gt,cZ as Yt,B as mr,b5 as Ot,fc as pr,fh as gr,G as Ke,J as yr,bx as xr}from"./index-BrmUJguV.js";import{F as vr,a as lt,s as br,L as _e,S as jr,B as _r}from"./preference-CXMkcNMd.js";import{N as $t}from"./ChevronRight-Cx4VKEff.js";import{T as Fe}from"./html-title-BlprY12T.js";import{w as Ie,P as wr}from"./permission-bCEiJP2a.js";import{u as gt}from"./index-VJGuG7fG.js";import{D as kr}from"./Done-Cf4FmWLE.js";import{R as Sr,S as M}from"./collapse-Dkho70aO.js";import{A as Cr,a as At}from"./Autocomplete-DaPuGlnI.js";import{C as Rr,R as Or,S as $r,P as Ar}from"./rotate-session-key-OwV6DBvd.js";import{u as le}from"./blocklet-BgOSOFk8.js";import{C as Xt}from"./click-to-copy-Mww6U2O2.js";import{u as Ve}from"./team-93DobpI4.js";import{v as Qt}from"./index-CEDIdKXe.js";import{g as Pr}from"./chain-BAIZGz9Q.js";import{V as Tr,d as Er}from"./status-BVaU-H7r.js";import{S as pe}from"./Switch-BYpwkINu.js";import{B as Ir}from"./index-WMHREIQl.js";import{y as Dr}from"./index-CVNQ07mK.js";import{I as Lr,J as qr,K as Mr,L as zr}from"./index-CbAJUnfn.js";import{u as ve,C as H,b as Pt}from"./index.esm-Dhbg504r.js";import{S as Be,u as Br}from"./switch-control-DMl-PeE3.js";import{D as Tt,R as es,a as ts}from"./url-evaluation-DhmHBren.js";import{A as Et}from"./Add-L4d2JZXR.js";import{H as Ue}from"./index-dCfrxOmL.js";import{u as ss}from"./use-mobile-NtnsxRwK.js";import{S as Ge}from"./simple-select-CW6Fjvwz.js";import{G as Hr}from"./actions-Di8ZxeUv.js";import{C as Nr}from"./CardContent-D6T4mb6B.js";import"./omit-DoGyY1LH.js";import"./index-Csg14teI.js";import"./edit.svg-B6Dpe-Rf.js";import"./ArrowDropDown-BEtLpAqy.js";import"./ButtonGroup-B_P6ZZZ4.js";import"./getValidReactChildren-B9Wc-4VY.js";import"./index-BAPzLDmE.js";import"./iframe-mlrH5a9B.js";import"./ListSubheader-Dt6wbgew.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-6nm7fp-q.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-D2W01s0y.js";import"./CSSTransition-BqlR62pg.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./depsEqual-BuPlTjct.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./MoreVert-DVzkIKa5.js";import"./useLocalStorage-WwZ4k9_O.js";import"./get-safe-url-Dq2_VEWx.js";const rs=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(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"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),ns=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Is,j=-1,p=R.length,i=v;for(v===R&&(R=Es(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(i,h,m))>-1;)i!==v&&It.call(i,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Ds(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function is({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,a]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),a(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),a(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(Cr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(vr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(Sr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ae,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(kr,{})}),e.jsx(ae,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),a(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}is.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
1
+ import{aF as de,j as e,hp as Es,hq as Is,bP as Ds,r as q,s as xe,K as $,f5 as kt,t as U,eO as ft,a3 as ae,C as Ee,bi as Bt,dL as Ls,o as T,hr as qs,b2 as Ht,cA as Ms,cT as zs,dp as Bs,T as Y,dG as it,bn as ne,bD as mt,p as ue,hs as Hs,bE as pt,b as W,bg as G,dI as ee,H as Z,aV as ie,V as oe,n as Nt,q as Ns,w as Ft,ac as Fs,i as Zt,gl as Zs,ht as Vs,at as Us,aU as X,R as Te,$ as ke,D as Ws,U as Js,v as re,X as at,hu as Ks,hv as Gs,eA as Ys,eC as Xs,F as je,aH as J,ga as Qs,c$ as St,W as er,fn as Vt,ay as te,aR as Ct,hw as tr,f9 as Re,cv as E,bC as ge,aD as se,O as Q,aP as ye,hx as qe,a1 as sr,hy as Je,c6 as Ce,eD as rr,hz as nr,dH as ce,f as Oe,y as Ut,bz as ot,M as ir,cH as Wt,bs as ar,gr as Ze,hA as or,b9 as lr,L as cr,cu as ze,aK as He,hB as dr,Q as ur,bp as hr,af as Rt,a2 as Jt,bj as Ne,hC as Kt,b6 as fr,gL as we,fa as Gt,cZ as Yt,B as mr,b5 as Ot,fc as pr,fh as gr,G as Ke,J as yr,bx as xr}from"./index-CEz8uxV0.js";import{F as vr,a as lt,s as br,L as _e,S as jr,B as _r}from"./preference-BkYqshJp.js";import{N as $t}from"./ChevronRight-DZLCO-zv.js";import{T as Fe}from"./html-title-DqkAZK1J.js";import{w as Ie,P as wr}from"./permission-DT5OpofS.js";import{u as gt}from"./index-BGUcx9Di.js";import{D as kr}from"./Done-CDE0letj.js";import{R as Sr,S as M}from"./collapse-NkPXU5Zt.js";import{A as Cr,a as At}from"./Autocomplete-ClklZJ4u.js";import{C as Rr,R as Or,S as $r,P as Ar}from"./rotate-session-key-BMUCkqUv.js";import{u as le}from"./blocklet-VzchUeTl.js";import{C as Xt}from"./click-to-copy-DIP6-GlN.js";import{u as Ve}from"./team-hXrV5_3J.js";import{v as Qt}from"./index-eMkLqV2U.js";import{g as Pr}from"./chain-CFWKzhms.js";import{V as Tr,d as Er}from"./status-DkrRfk0B.js";import{S as pe}from"./Switch-vCG6Rhuh.js";import{B as Ir}from"./index-86jXITjw.js";import{y as Dr}from"./index-Be_P7bFl.js";import{I as Lr,J as qr,K as Mr,L as zr}from"./index-xEgN1uLu.js";import{u as ve,C as H,b as Pt}from"./index.esm-D2OxNJ9M.js";import{S as Be,u as Br}from"./switch-control-6fnNFCSf.js";import{D as Tt,R as es,a as ts}from"./url-evaluation-Dez2t2Dn.js";import{A as Et}from"./Add-mLqDJ8LI.js";import{H as Ue}from"./index-C7-meaY1.js";import{u as ss}from"./use-mobile-DfTH0u3I.js";import{S as Ge}from"./simple-select-C92Ah9-P.js";import{G as Hr}from"./actions-CPISYK5O.js";import{C as Nr}from"./CardContent-Dt2MkEx5.js";import"./omit-CzTAhPDm.js";import"./index-KjOI7Lrl.js";import"./edit.svg-Ds5gcSU5.js";import"./ArrowDropDown-OAaai_hD.js";import"./ButtonGroup-CMBmZNOl.js";import"./getValidReactChildren-CZQOwkpM.js";import"./index-zrPeUDCF.js";import"./iframe-DkQL2XEZ.js";import"./ListSubheader-8DfWQIce.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-BJGb9kj2.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-CuIuGg48.js";import"./CSSTransition-BUs0PeOT.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./depsEqual-DmupZl6g.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./MoreVert-DE8AiFjI.js";import"./useLocalStorage-Pga2d3Q5.js";import"./get-safe-url-HWq-Oak5.js";const rs=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(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"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),ns=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Is,j=-1,p=R.length,i=v;for(v===R&&(R=Es(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(i,h,m))>-1;)i!==v&&It.call(i,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Ds(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function is({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:i=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,a]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),a(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),a(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(Cr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(vr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(Sr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ae,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(kr,{})}),e.jsx(ae,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),a(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}is.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
@@ -1,4 +1,4 @@
1
- import{aF as je,j as e,u as Q,r as h,e as Oe,aG as Ur,aH as k,aI as zr,aJ as an,aK as Gn,aL as sn,aM as et,V as z,ac as le,s as ne,aN as ln,o as p,aO as Br,aP as cn,aQ as Mr,H as re,M as dn,T as A,t as q,ay as fe,aR as _e,C as K,U as be,v as Y,aS as Kn,X as pe,K as W,p as Mt,N as tt,aT as Wr,d as Wt,aU as Ie,aV as me,a9 as qr,aW as Hr,aX as Gr,y as Kr,A as Vn,W as un,g as mn,h as te,aY as qt,a as Et,Q as X,b as ct,aZ as Yn,a_ as Xn,R as Qn,a3 as Pt,a$ as Vr,b0 as Yr,b1 as Xr,b2 as Qr,b3 as nt,i as fn,b4 as Zr,aE as Ge,b5 as Jr,a8 as jt,a5 as wt,b6 as ei,a6 as _t,L as Ht,I as ti,b7 as ni,b8 as Zn,a7 as ri,b9 as Jn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as er,D as At,f as tr,bf as ai,bg as pn,aj as si,bh as li,bi as ee,bj as ci,S as gn,l as hn,m as xn,bk as di,bl as ui,bm as mi}from"./index-BrmUJguV.js";import{u as fi,T as pi}from"./html-title-BlprY12T.js";import{A as gi}from"./ArrowDropDown-BEtLpAqy.js";import{u as Kt,C as B,a as yn}from"./index.esm-Dhbg504r.js";import{S as ae}from"./switch-control-DMl-PeE3.js";import{P as ie}from"./permission-bCEiJP2a.js";import{H as nr,g as hi}from"./index-dCfrxOmL.js";import{A as rr}from"./Link-CatXU5ME.js";import{D as ve,R as ir,a as It,b as xi}from"./url-evaluation-DhmHBren.js";import{D as dt}from"./delete-confirm-DVcd_1B0.js";import{v as rt}from"./index-CEDIdKXe.js";import{s as yi}from"./logo-BKA11TRi.js";import{u as bi}from"./useLocalStorage-WwZ4k9_O.js";import{R as vi}from"./Refresh-B5U6uEx9.js";import{L as ji}from"./LoadingButton-DPchWuCI.js";import{C as wi,R as Ci,P as or,S as Si}from"./rotate-session-key-OwV6DBvd.js";import{A as Le}from"./Add-L4d2JZXR.js";import{B as ar,D as bn,W as Ke}from"./status-DWBbl5qZ.js";import{i as Di}from"./is-path-prefix-equal-CfyvEYyh.js";import{N as ki}from"./ChevronRight-Cx4VKEff.js";import{I as Ri}from"./MoreVert-DVzkIKa5.js";import{E as sr}from"./Edit-yQLD6nby.js";import{A as Ti}from"./CallMerge-QoO05uTN.js";import{C as Ei}from"./CardContent-D6T4mb6B.js";import"./Switch-BYpwkINu.js";import"./FilterList-D2W01s0y.js";import"./CSSTransition-BqlR62pg.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./index-CbAJUnfn.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BuPlTjct.js";import"./index-CVNQ07mK.js";import"./TableSearch-DOitWCIk.js";import"./Search--1V2WQVn.js";import"./Clear-CPlMJ3VR.js";import"./click-to-copy-Mww6U2O2.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"})),lr=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"})),Fi=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",cr=h.createContext({}),{Provider:Oi,Consumer:as}=cr,vn=[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=vn.includes(t.name),i=vn.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=Gn(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 jn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Oe(async()=>{const{sites:P}=await r.getRoutingSites({input:{snapshotHash:""}}),v=P||[];await Promise.all(v.map(async g=>(g.domainAliases=await Ur(g.domainAliases,{getIP:zr}),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(Oi,{value:{routing:x},children:t})}function de(){const{routing:t}=h.useContext(cr);return t}function Vt(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 dr({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})]})}dr.propTypes={confirm:p.oneOfType([p.object,p.string,p.func])};const Wi=ne.div`
1
+ import{aF as je,j as e,u as Q,r as h,e as Oe,aG as Ur,aH as k,aI as zr,aJ as an,aK as Gn,aL as sn,aM as et,V as z,ac as le,s as ne,aN as ln,o as p,aO as Br,aP as cn,aQ as Mr,H as re,M as dn,T as A,t as q,ay as fe,aR as _e,C as K,U as be,v as Y,aS as Kn,X as pe,K as W,p as Mt,N as tt,aT as Wr,d as Wt,aU as Ie,aV as me,a9 as qr,aW as Hr,aX as Gr,y as Kr,A as Vn,W as un,g as mn,h as te,aY as qt,a as Et,Q as X,b as ct,aZ as Yn,a_ as Xn,R as Qn,a3 as Pt,a$ as Vr,b0 as Yr,b1 as Xr,b2 as Qr,b3 as nt,i as fn,b4 as Zr,aE as Ge,b5 as Jr,a8 as jt,a5 as wt,b6 as ei,a6 as _t,L as Ht,I as ti,b7 as ni,b8 as Zn,a7 as ri,b9 as Jn,ba as De,bb as ke,bc as ii,bd as Gt,be as oi,$ as er,D as At,f as tr,bf as ai,bg as pn,aj as si,bh as li,bi as ee,bj as ci,S as gn,l as hn,m as xn,bk as di,bl as ui,bm as mi}from"./index-CEz8uxV0.js";import{u as fi,T as pi}from"./html-title-DqkAZK1J.js";import{A as gi}from"./ArrowDropDown-OAaai_hD.js";import{u as Kt,C as B,a as yn}from"./index.esm-D2OxNJ9M.js";import{S as ae}from"./switch-control-6fnNFCSf.js";import{P as ie}from"./permission-DT5OpofS.js";import{H as nr,g as hi}from"./index-C7-meaY1.js";import{A as rr}from"./Link-Bag45Nmm.js";import{D as ve,R as ir,a as It,b as xi}from"./url-evaluation-Dez2t2Dn.js";import{D as dt}from"./delete-confirm-DrHD02tU.js";import{v as rt}from"./index-eMkLqV2U.js";import{s as yi}from"./logo-BKA11TRi.js";import{u as bi}from"./useLocalStorage-Pga2d3Q5.js";import{R as vi}from"./Refresh-RgR-j7H4.js";import{L as ji}from"./LoadingButton-DXPIa7vL.js";import{C as wi,R as Ci,P as or,S as Si}from"./rotate-session-key-BMUCkqUv.js";import{A as Le}from"./Add-mLqDJ8LI.js";import{B as ar,D as bn,W as Ke}from"./status-C0bImW42.js";import{i as Di}from"./is-path-prefix-equal-CGna6TSf.js";import{N as ki}from"./ChevronRight-DZLCO-zv.js";import{I as Ri}from"./MoreVert-DE8AiFjI.js";import{E as sr}from"./Edit-D8ZbFXVI.js";import{A as Ti}from"./CallMerge-Ccy0-f-p.js";import{C as Ei}from"./CardContent-Dt2MkEx5.js";import"./Switch-vCG6Rhuh.js";import"./FilterList-CuIuGg48.js";import"./CSSTransition-BUs0PeOT.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./index-xEgN1uLu.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DmupZl6g.js";import"./index-Be_P7bFl.js";import"./TableSearch-B9RjpEHI.js";import"./Search-D6oiU39H.js";import"./Clear-CZYOhyRd.js";import"./click-to-copy-DIP6-GlN.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"})),lr=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"})),Fi=je(e.jsx("path",{d:"m19 15-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9z"})),ye="Dashboard",cr=h.createContext({}),{Provider:Oi,Consumer:as}=cr,vn=[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=vn.includes(t.name),i=vn.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=Gn(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 jn({children:t}){const{api:r,info:n}=Q(),[i,a]=h.useState([]),[l,o]=h.useState([]),[s,u]=h.useState([]),m=Oe(async()=>{const{sites:P}=await r.getRoutingSites({input:{snapshotHash:""}}),v=P||[];await Promise.all(v.map(async g=>(g.domainAliases=await Ur(g.domainAliases,{getIP:zr}),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(Oi,{value:{routing:x},children:t})}function de(){const{routing:t}=h.useContext(cr);return t}function Vt(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 dr({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})]})}dr.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) {
@@ -1,4 +1,4 @@
1
- import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-BrmUJguV.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-CEDIdKXe.js";import{M as V}from"./metric-D7sR5FhW.js";import{C as M}from"./click-to-copy-Mww6U2O2.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({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($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(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 ie=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 le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{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(J,{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(K(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 G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(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:O.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(U,{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(U,{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(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
1
+ import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-CEz8uxV0.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-eMkLqV2U.js";import{M as V}from"./metric-8OUJLbIG.js";import{C as M}from"./click-to-copy-DIP6-GlN.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({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($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(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 ie=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 le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{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(J,{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(K(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 G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(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:O.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(U,{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(U,{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(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1 +1 @@
1
- import{r as o,p as n,j as t,s as r}from"./index-BrmUJguV.js";import{p as a}from"./index-BbaIpunj.js";function c(){const{t:s}=o.useContext(n);return t.jsx(e,{style:{paddingTop:"25vh"},children:t.jsx(a,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const e=r.main``;export{c as default};
1
+ import{r as o,p as n,j as t,s as r}from"./index-CEz8uxV0.js";import{p as a}from"./index-kz4od6fL.js";function c(){const{t:s}=o.useContext(n);return t.jsx(e,{style:{paddingTop:"25vh"},children:t.jsx(a,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const e=r.main``;export{c as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BELVF5yq.js","./index-BrmUJguV.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
- import{r as t,p as n,j as r,bI as i,d3 as a}from"./index-BrmUJguV.js";const s=t.lazy(()=>i(()=>import("./index-BELVF5yq.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-C60_rVUw.js","./index-CEz8uxV0.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
+ import{r as t,p as n,j as r,bI as i,d3 as a}from"./index-CEz8uxV0.js";const s=t.lazy(()=>i(()=>import("./index-C60_rVUw.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
3
3
  getNodeInfo {
4
4
  code
5
5
  info {
@@ -1 +1 @@
1
- import{u as f,j as s,C as d,A as w,ax as v,cu as C,cv as u,ae as j,aH as I,K as P,bA as S}from"./index-BrmUJguV.js";import{I as E}from"./invitation-XFKsIMJU.js";import{g as R}from"./get-safe-url-Dq2_VEWx.js";import"./index-BbaIpunj.js";import"./index-BcbepXI-.js";import"./emotion-cache.browser.esm-r_Iqcnsj.js";import"./sdk-CeiuAlH4.js";import"./wrap-locale-CHT3wx1u.js";import"./index-UcPEVOQN.js";function T(n){const{searchParams:a}=new URL(window.location.href),g=w(),{api:i,session:r}=v(),{info:l}=f(),c=a.get("redirect"),p=a.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await i.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=u(()=>{if(o.error)throw o.error;return o?.data}),x=u(async(t,h=e=>e)=>{t&&(t.sessionToken&&j(h(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=R(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(E,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>S(t,l),checkFn:i.get,onLoginSuccess:x,passportColor:"default",onLogin:r.login})})}function _(){return f().loading?s.jsx(d,{}):s.jsx(T,{})}export{_ as default};
1
+ import{u as f,j as s,C as d,A as w,ax as v,cu as C,cv as u,ae as j,aH as I,K as P,bA as S}from"./index-CEz8uxV0.js";import{I as E}from"./invitation-a_kpf-F2.js";import{g as R}from"./get-safe-url-HWq-Oak5.js";import"./index-kz4od6fL.js";import"./index-C-BqHBMK.js";import"./emotion-cache.browser.esm-Cv8nFFJn.js";import"./sdk-Ba4Oxcv8.js";import"./wrap-locale-ChZSYdOH.js";import"./index-Bomu1pSL.js";function T(n){const{searchParams:a}=new URL(window.location.href),g=w(),{api:i,session:r}=v(),{info:l}=f(),c=a.get("redirect"),p=a.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await i.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=u(()=>{if(o.error)throw o.error;return o?.data}),x=u(async(t,h=e=>e)=>{t&&(t.sessionToken&&j(h(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=R(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(E,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>S(t,l),checkFn:i.get,onLoginSuccess:x,passportColor:"default",onLogin:r.login})})}function _(){return f().loading?s.jsx(d,{}):s.jsx(T,{})}export{_ as default};
@@ -1,4 +1,4 @@
1
- import{aF as G,j as e,r as b,aV as V,cA as Le,T as F,ay as K,o as y,V as N,be as ie,b8 as je,K as g,N as oe,W as Q,eO as ve,fI as be,bC as Ft,bu as Lt,bv as Bt,bw as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cu as le,C as O,U as Ke,at as Ot,dl as Et,bf as Ze,bg as _t,aH as U,H as z,bD as X,gn as qt,go as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gp as Vt,q as Gt,fn as Yt,P as Xe,ff as et,bi as tt,g as Kt,D as Zt,c8 as st,aU as Qt,R as Jt,dI as Xt,E as es,gq as Me,fG as ts,gr as ss,S as rs}from"./index-BrmUJguV.js";import{H as Se,g as ns}from"./index-dCfrxOmL.js";import{T as as}from"./html-title-BlprY12T.js";import{u as M}from"./team-93DobpI4.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-NtnsxRwK.js";import{v as se}from"./index-DL4v1WVV.js";import{w as Y,P as rt}from"./permission-bCEiJP2a.js";import{C as ls}from"./Google-CoSaBoSQ.js";import{u as cs}from"./blocklet-BgOSOFk8.js";import{A as we}from"./Add-L4d2JZXR.js";import{y as Te}from"./index-CVNQ07mK.js";import{e as pe}from"./edit.svg-B6Dpe-Rf.js";import{M as nt}from"./TableSearch-DOitWCIk.js";import{L as at}from"./list-header-b3IL_I5L.js";import{g as ds}from"./chain-BAIZGz9Q.js";import{T as ot,a as re}from"./ToggleButtonGroup-Z7ULO3Ae.js";import{C as ps}from"./lock.svg-bfTh_6AS.js";const us=G(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"})),$e=G(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"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(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"})),ms=G(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"})),fs=G(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"})),xs=G(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"})),fe=G(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"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.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"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(F,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(F,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.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:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(F,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=N(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=N();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=N();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Ft(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(F,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=N(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
1
+ import{aF as G,j as e,r as b,aV as V,cA as Le,T as F,ay as K,o as y,V as N,be as ie,b8 as je,K as g,N as oe,W as Q,eO as ve,fI as be,bC as Ft,bu as Lt,bv as Bt,bw as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cu as le,C as O,U as Ke,at as Ot,dl as Et,bf as Ze,bg as _t,aH as U,H as z,bD as X,gv as qt,gw as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gx as Vt,q as Gt,fn as Yt,P as Xe,ff as et,bi as tt,g as Kt,D as Zt,c8 as st,aU as Qt,R as Jt,dI as Xt,E as es,gy as Me,fG as ts,gz as ss,S as rs}from"./index-CEz8uxV0.js";import{H as Se,g as ns}from"./index-C7-meaY1.js";import{T as as}from"./html-title-DqkAZK1J.js";import{u as M}from"./team-hXrV5_3J.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-DfTH0u3I.js";import{v as se}from"./index-CqI5FNRR.js";import{w as Y,P as rt}from"./permission-DT5OpofS.js";import{C as ls}from"./Google-DfP9X7Qz.js";import{u as cs}from"./blocklet-VzchUeTl.js";import{A as we}from"./Add-mLqDJ8LI.js";import{y as Te}from"./index-Be_P7bFl.js";import{e as pe}from"./edit.svg-Ds5gcSU5.js";import{M as nt}from"./TableSearch-B9RjpEHI.js";import{L as at}from"./list-header-gr5aFkIY.js";import{g as ds}from"./chain-CFWKzhms.js";import{T as ot,a as re}from"./ToggleButtonGroup-DXi7DrUh.js";import{C as ps}from"./lock.svg-HxrlXX6z.js";const us=G(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"})),$e=G(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"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(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"})),ms=G(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"})),fs=G(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"})),xs=G(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"})),fe=G(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"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.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"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(F,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(F,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.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:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(F,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=N(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=N();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=N();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Ft(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(F,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=N(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
2
2
  margin-top: -16px;
3
3
 
4
4
  .tabs {