@abtnode/blocklet-services 1.16.39-beta-20250208-101442-7280c143 → 1.16.39-beta-20250209-091732-ccef0248

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 (115) hide show
  1. package/api/libs/connect/session.js +2 -0
  2. package/dist/assets/{Add-_iRymiOl.js → Add-DSPtuudj.js} +1 -1
  3. package/dist/assets/{ArrowDropDown-DyEwa2F9.js → ArrowDropDown-DM9y1OaN.js} +1 -1
  4. package/dist/assets/{CheckCircle-Tp5VOipm.js → CheckCircle-BxzRfCun.js} +1 -1
  5. package/dist/assets/{ChevronLeft-D2Ho6WQh.js → ChevronLeft-CmbkC1dP.js} +1 -1
  6. package/dist/assets/{ChevronRight-gE0lOnIo.js → ChevronRight-DlIj8Fj2.js} +1 -1
  7. package/dist/assets/{DeleteOutline-C6VkRbFK.js → DeleteOutline-BzV7E1BM.js} +1 -1
  8. package/dist/assets/{Done-DVvDyJtD.js → Done-DJfjmlFC.js} +1 -1
  9. package/dist/assets/{Download-B1t0EslI.js → Download-B4M4wwJm.js} +1 -1
  10. package/dist/assets/{Error-DEnZKIyw.js → Error-CN75ZRlV.js} +1 -1
  11. package/dist/assets/{Google-C5Apqxhw.js → Google-DTKsjoGP.js} +1 -1
  12. package/dist/assets/{InfoOutlined-C5fMx7-l.js → InfoOutlined-C_J3Y0fX.js} +1 -1
  13. package/dist/assets/{Launch-vt_CNjmC.js → Launch-BX35m3eH.js} +1 -1
  14. package/dist/assets/{LaunchOutlined-DxGn2DKz.js → LaunchOutlined-DaJw5LME.js} +1 -1
  15. package/dist/assets/{Loop-OLIg6dh7.js → Loop-B05tzyuy.js} +1 -1
  16. package/dist/assets/{MoreHoriz-BkVO_QXB.js → MoreHoriz-JX8PbVXG.js} +1 -1
  17. package/dist/assets/{PlayArrow-CyaFn-Ol.js → PlayArrow-DZfknrYj.js} +1 -1
  18. package/dist/assets/{ViewList-PZwK-0pV.js → ViewList-CgG45KQv.js} +1 -1
  19. package/dist/assets/{access-control-C_I9vnpS.js → access-control-DdXj5niw.js} +1 -1
  20. package/dist/assets/{actions-CS0A6ZvH.js → actions-CPjP-DJ-.js} +1 -1
  21. package/dist/assets/{add-component-core-CDWBeeS1.js → add-component-core-BtRcqhKo.js} +1 -1
  22. package/dist/assets/{add-resource-E7327Bws.js → add-resource-nU5RWMls.js} +1 -1
  23. package/dist/assets/{addon-bMI-7aOZ.js → addon-B4K2H5lA.js} +1 -1
  24. package/dist/assets/{analytics-D32wGcj3.js → analytics-X9VRwkzm.js} +1 -1
  25. package/dist/assets/audit-logs-BJdGmYfI.js +18 -0
  26. package/dist/assets/{base32-Bb5-8D4h.js → base32-BAfsRZF6.js} +1 -1
  27. package/dist/assets/{branding-DR_L569O.js → branding-DzXJA2pJ.js} +2 -2
  28. package/dist/assets/{bundle-avatar-BcIG01qq.js → bundle-avatar-CYdInmjR.js} +1 -1
  29. package/dist/assets/button-BZmMffY2.js +1 -0
  30. package/dist/assets/{click-to-copy-BixfYLPy.js → click-to-copy-Bu9H6mvL.js} +1 -1
  31. package/dist/assets/{complete-ZFv3syW1.js → complete-DtNcnxdf.js} +4 -4
  32. package/dist/assets/{component-Cq51erjd.js → component-DOOz4rgK.js} +1 -1
  33. package/dist/assets/{config-BQiB23JZ.js → config-CSlXpbL2.js} +1 -1
  34. package/dist/assets/{config-D-gLxJK_.js → config-DjozEU7w.js} +1 -1
  35. package/dist/assets/{config-navigation-JwYI5c3u.js → config-navigation-B5FcBZZN.js} +3 -3
  36. package/dist/assets/{config-space-Q6HENzum.js → config-space-Y_f6nwhj.js} +1 -1
  37. package/dist/assets/{confirm-CPtiZE0r.js → confirm-CpCj_oj-.js} +1 -1
  38. package/dist/assets/{connect-HQAAv30Q.js → connect-BprUwdvy.js} +1 -1
  39. package/dist/assets/connect-ByH0XoiE.js +1 -0
  40. package/dist/assets/{connect-to-Bt8_yfyU.js → connect-to-BYvNqC5N.js} +1 -1
  41. package/dist/assets/{dashboard-BxMHOYyh.js → dashboard-Cgj1BkGn.js} +10 -10
  42. package/dist/assets/{did-address-Bpb9HTRt.js → did-address-D0Fo5eTl.js} +1 -1
  43. package/dist/assets/{domain-BaqHASeF.js → domain-BD1Bntmg.js} +2 -2
  44. package/dist/assets/{domain-list-DxhvsNeW.js → domain-list-h_f8stui.js} +2 -2
  45. package/dist/assets/{email-CI0YNxDH.js → email-BaNlnEr5.js} +2 -2
  46. package/dist/assets/{exchange-passport--ITba_8X.js → exchange-passport-CjaHJzsV.js} +1 -1
  47. package/dist/assets/{form-text-input-C3pP_SCY.js → form-text-input-DS_PVT1r.js} +2 -2
  48. package/dist/assets/{fuel-BzjjfKxQ.js → fuel-BM8_TX9D.js} +1 -1
  49. package/dist/assets/{fullpage-Bxt7Lsx9.js → fullpage-DT2JXUAZ.js} +1 -1
  50. package/dist/assets/{get-safe-url-ClvIGbO9.js → get-safe-url-DDeO6YpV.js} +1 -1
  51. package/dist/assets/{get-safe-url-DBA3YcFh.js → get-safe-url-Du4BhDgB.js} +1 -1
  52. package/dist/assets/{home-h-b1y9y8.js → home-DqIS-M10.js} +1 -1
  53. package/dist/assets/{iframe-DuaKUdqD.js → iframe-CU0LfRyS.js} +1 -1
  54. package/dist/assets/{index-gRh_ocU8.js → index-0u5pzPhR.js} +1 -1
  55. package/dist/assets/{index-BFDq4CA-.js → index-BA_7CRkd.js} +1 -1
  56. package/dist/assets/{index-CT2kaEsJ.js → index-BFxdORkH.js} +1 -1
  57. package/dist/assets/{index-BzmHWq6G.js → index-BMWG7Eya.js} +1 -1
  58. package/dist/assets/{index-B8ZVPR0B.js → index-C7dWd4bS.js} +4 -4
  59. package/dist/assets/{index-DswiSRuh.js → index-Cqc33Ts_.js} +3 -3
  60. package/dist/assets/{index-C3EMCJb1.js → index-D6IQwB0H.js} +1 -1
  61. package/dist/assets/{index-BvvY74m1.js → index-DF1jJ-bb.js} +3 -3
  62. package/dist/assets/{index-Fyc9Yh32.js → index-DGzAI_hi.js} +1 -1
  63. package/dist/assets/{index-C8EWVV7E.js → index-DRwuz-J9.js} +1 -1
  64. package/dist/assets/{index-DfOPIsLs.js → index-DzU25sJ1.js} +1 -1
  65. package/dist/assets/{index-Cp0o05oj.js → index-Dzj545ro.js} +1 -1
  66. package/dist/assets/{index-1soveoNH.js → index-LIf2LIyz.js} +3 -3
  67. package/dist/assets/{index-D6xvEfk8.js → index-PcImULKW.js} +1 -1
  68. package/dist/assets/{index-DH7yV8cM.js → index-ee8g6Cmz.js} +1 -1
  69. package/dist/assets/{invitation-B1_YvDcH.js → invitation-DSIQ2w-K.js} +3 -3
  70. package/dist/assets/{invite-DJGa7dsX.js → invite-C4uHXoFz.js} +1 -1
  71. package/dist/assets/{issue-passport-Cy103t5H.js → issue-passport-Dq9lOjJK.js} +1 -1
  72. package/dist/assets/{item-DC2b5v0Z.js → item-Ba7fzXuK.js} +1 -1
  73. package/dist/assets/{layout-D9K6IZdV.js → layout-BwWrVSXk.js} +1 -1
  74. package/dist/assets/{list-D3k0O0Xi.js → list-DI-9r9EP.js} +1 -1
  75. package/dist/assets/{list-header-CegSwHre.js → list-header-BdJ1JRqY.js} +1 -1
  76. package/dist/assets/{localization-wwWSGBBO.js → localization-Dqw_hZdb.js} +1 -1
  77. package/dist/assets/{log-B5shqSVV.js → log-D4hWjoeK.js} +1 -1
  78. package/dist/assets/login-DnwZJEBm.js +1 -0
  79. package/dist/assets/{login-oauth-callback-s99_h6fH.js → login-oauth-callback-Dua5YLNm.js} +1 -1
  80. package/dist/assets/{logo-uploader-BeSpYnSl.js → logo-uploader-DbSGPbXh.js} +3 -3
  81. package/dist/assets/{lost-passport-DlMMmOpM.js → lost-passport-Cqpxv9tR.js} +3 -3
  82. package/dist/assets/{open-window-Zq1x7xKe.js → open-window-BCSIX9-I.js} +1 -1
  83. package/dist/assets/{overview-BOIsSliU.js → overview-DMjokddi.js} +1 -1
  84. package/dist/assets/{page-header-DqhVsAOw.js → page-header-xWImGBdx.js} +1 -1
  85. package/dist/assets/{permission-C4wOllow.js → permission-C0p6f4_S.js} +1 -1
  86. package/dist/assets/{preferences-M821Nbub.js → preferences-C1-L0Kuo.js} +1 -1
  87. package/dist/assets/publish-resource-BeEqCNhj.js +1 -0
  88. package/dist/assets/{react-beautiful-dnd.esm-CWDllqTB.js → react-beautiful-dnd.esm-DwxjmShi.js} +1 -1
  89. package/dist/assets/{relative-time-cOKPNX1U.js → relative-time-DpRjdL5Z.js} +1 -1
  90. package/dist/assets/sdk-TBkp9MgA.js +1 -0
  91. package/dist/assets/session-CM1ewS-k.js +1 -0
  92. package/dist/assets/{setup-Cm--NvZ1.js → setup-hqq9REGL.js} +3 -3
  93. package/dist/assets/{start-C_nc1AIm.js → start-C1K4M5DN.js} +1 -1
  94. package/dist/assets/{step-actions-DLkXmgm2.js → step-actions-BJ9p7QSx.js} +1 -1
  95. package/dist/assets/{studio-BBxcN5pm.js → studio-DtUwD8m6.js} +1 -1
  96. package/dist/assets/{switch-control-CyqD0Juh.js → switch-control-D2qynQm8.js} +1 -1
  97. package/dist/assets/{traffic-CS576wme.js → traffic-DelPjTGb.js} +3 -3
  98. package/dist/assets/{transfer-DC-nnm4b.js → transfer-Dqy9gGzf.js} +1 -1
  99. package/dist/assets/{unsubscribe-DDgZq9Y7.js → unsubscribe-Bq-uODgj.js} +1 -1
  100. package/dist/assets/{useLocalStorage-CVBgwJgU.js → useLocalStorage-DV4AIe5L.js} +1 -1
  101. package/dist/assets/{user-center-BxglHi8W.js → user-center-D0eTpKkD.js} +1 -1
  102. package/dist/assets/{util-DMMg7Sbk.js → util-BpKZM3xV.js} +1 -1
  103. package/dist/assets/{util-5SXnNpj9.js → util-NSOsPZWM.js} +1 -1
  104. package/dist/assets/{vendor-arcblock-oqH5gsLR.js → vendor-arcblock-DZrZ_x_3.js} +154 -154
  105. package/dist/assets/{wrap-locale-D4yZwBtm.js → wrap-locale-oTlFUOZf.js} +1 -1
  106. package/dist/index.html +2 -2
  107. package/dist/service-worker.js +1 -1
  108. package/package.json +29 -29
  109. package/dist/assets/audit-logs-Ct6NbUiV.js +0 -18
  110. package/dist/assets/button-C4NPz_vA.js +0 -1
  111. package/dist/assets/connect-BkKF9mgk.js +0 -1
  112. package/dist/assets/login-3tpx-b2O.js +0 -1
  113. package/dist/assets/publish-resource-B-y64yfT.js +0 -1
  114. package/dist/assets/sdk-Dwpx68pe.js +0 -1
  115. package/dist/assets/session-B07p7iif.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-BOIsSliU.js","assets/vendor-mui-core-xF5F4eT7.js","assets/vendor-react-D-afvo_7.js","assets/vendor-arcblock-oqH5gsLR.js","assets/vendor-utils-5TjOM6td.js","assets/vendor-hooks-BKxTDk_P.js","assets/vendor-arcblock-DhgPdlEj.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-Fyc9Yh32.js","assets/index-1soveoNH.js","assets/did-address-Bpb9HTRt.js","assets/domain-list-DxhvsNeW.js","assets/Add-_iRymiOl.js","assets/base32-Bb5-8D4h.js","assets/LockIcon-D-W4Rph6.js","assets/CheckCircle-Tp5VOipm.js","assets/util-DMMg7Sbk.js","assets/useSetState-Crt4S51m.js","assets/permission-C4wOllow.js","assets/session-B07p7iif.js","assets/useAsyncRetry-Bmo6a1Zp.js","assets/useAsync-Ua5iss51.js","assets/confirm-CPtiZE0r.js","assets/format-error-C0Ke3VXF.js","assets/InfoOutlined-C5fMx7-l.js","assets/api-K65cLqol.js","assets/actions-CS0A6ZvH.js","assets/MoreHoriz-BkVO_QXB.js","assets/useLocalStorage-CVBgwJgU.js","assets/PlayArrow-CyaFn-Ol.js","assets/get-safe-url-ClvIGbO9.js","assets/index-gRh_ocU8.js","assets/index-C3EMCJb1.js","assets/index-DoZ2YM4T.js","assets/Loop-OLIg6dh7.js","assets/ViewList-PZwK-0pV.js","assets/list-header-CegSwHre.js","assets/click-to-copy-BixfYLPy.js","assets/DeleteOutline-C6VkRbFK.js","assets/util-5SXnNpj9.js","assets/sdk-Dwpx68pe.js","assets/index-BFDq4CA-.js","assets/shorten-label-J69eHfMN.js","assets/index-D6xvEfk8.js","assets/EditIcon-BOr0kf6I.js","assets/Google-C5Apqxhw.js","assets/cloneDeep-BRiLvZjr.js","assets/index-Cp0o05oj.js","assets/iframe-DuaKUdqD.js","assets/config-D-gLxJK_.js","assets/form-text-input-C3pP_SCY.js","assets/Done-DVvDyJtD.js","assets/logo-uploader-BeSpYnSl.js","assets/ArrowDropDown-DyEwa2F9.js","assets/ChevronRight-gE0lOnIo.js","assets/bundle-avatar-BcIG01qq.js","assets/simple-select-D06JmA0a.js","assets/isEmail-BWNRBSAy.js","assets/switch-control-CyqD0Juh.js","assets/audit-logs-Ct6NbUiV.js","assets/index-ChSPqVLh.js","assets/index-D4PP6P2d.css","assets/relative-time-cOKPNX1U.js","assets/index-DtwN19zv.js","assets/index-DswiSRuh.js","assets/list-D3k0O0Xi.js","assets/index-CHFvfli7.js","assets/traffic-CS576wme.js","assets/LaunchOutlined-DxGn2DKz.js","assets/ChevronLeft-D2Ho6WQh.js","assets/index-C-D-nCB1.js","assets/vendor-mui-x-CSUdon8K.js","assets/log-B5shqSVV.js","assets/Download-B1t0EslI.js","assets/log-D33dFtt_.css","assets/index-B8ZVPR0B.js","assets/Error-DEnZKIyw.js","assets/react-beautiful-dnd.esm-CWDllqTB.js","assets/raf-schd.esm-Cxhj8umC.js","assets/QuestionMarkCircle-BvUTckGB.js","assets/item-DC2b5v0Z.js","assets/Launch-vt_CNjmC.js","assets/config-navigation-JwYI5c3u.js","assets/slicedToArray-CXBLQZX4.js","assets/index-C2fPoxDR.js","assets/index-DfOPIsLs.js","assets/use-mobile-DnWfrhc7.js","assets/connect-to-Bt8_yfyU.js","assets/config-space-Q6HENzum.js","assets/component-Cq51erjd.js","assets/index-DcfIKM1A.js","assets/add-component-core-CDWBeeS1.js","assets/launch-result-message-keU5grqY.js","assets/page-header-DqhVsAOw.js","assets/index-BzmHWq6G.js","assets/content-layout-cWwRTmIc.js","assets/add-component-core-D-IRi6XF.css","assets/analytics-D32wGcj3.js"])))=>i.map(i=>d[i]);
2
- import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E as An,F as fe,G as On,H as as,o as je,I as cs,J as ls,k as ln,g as us,j as ds,m as un,l as fs,n as ps,K as Oe,e as Re,L as hs,_ as B,M as ms,O as dn,N as gs,c as fn}from"./index-1soveoNH.js";import{a1 as U,j as o,E as g,aa as te,I as yt,ak as xs,ad as $n,ah as bt,al as vs,bm as ys,a2 as re,bn as bs,bq as js,T as N,bx as ws,aN as pn,by as hn,a3 as C,a4 as Be,bz as Ss,t as G,Z as Ze,bA as Cs,a5 as _s,bB as Is,bp as jt,am as Mn,bC as Ls,aq as Es,as as Ts,bD as Nn,bE as zn,bF as Bn,A as ae,aj as Un,aK as Ps}from"./vendor-mui-core-xF5F4eT7.js";import{_ as H,a8 as Rs,a0 as wt,a9 as Ds,a1 as St,b as $,X as mn,j as ee,e as Z,Y as ks,aa as As,ab as Hn,ac as Os,ad as $s,D as Ct,ae as Fn,af as Ms,ag as Ns,ah as zs,C as Ue,ai as Bs,Q as Us,aj as Hs,ak as Fs,H as Vs,R as qs,al as Ws}from"./vendor-arcblock-oqH5gsLR.js";import{r as v,L as Vn,k as qn,f as Ks,l as Gs}from"./vendor-react-D-afvo_7.js";import{d as He,s as Qs}from"./vendor-hooks-BKxTDk_P.js";import{_ as gn}from"./useLocalStorage-CVBgwJgU.js";import{C as xn}from"./confirm-CPtiZE0r.js";import{d as Zs}from"./PlayArrow-CyaFn-Ol.js";import{x as Wn,a6 as Xs,a7 as Ys,y as $e}from"./vendor-utils-5TjOM6td.js";import{g as vn}from"./get-safe-url-ClvIGbO9.js";import{f as _t}from"./format-error-C0Ke3VXF.js";import{c as ye,s as Fe,H as Js,h as Ve,f as Kn,p as Gn,B as eo}from"./index-gRh_ocU8.js";import{u as Qn}from"./session-B07p7iif.js";import{D as to,_ as Zn}from"./useAsyncRetry-Bmo6a1Zp.js";import{d as no}from"./InfoOutlined-C5fMx7-l.js";import{_ as Xn}from"./useSetState-Crt4S51m.js";var It={},ro=U;Object.defineProperty(It,"__esModule",{value:!0});var Yn=It.default=void 0,so=ro(H()),oo=o;Yn=It.default=(0,so.default)((0,oo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Lt={},io=U;Object.defineProperty(Lt,"__esModule",{value:!0});var Jn=Lt.default=void 0,ao=io(H()),co=o;Jn=Lt.default=(0,ao.default)((0,co.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Et={},lo=U;Object.defineProperty(Et,"__esModule",{value:!0});var er=Et.default=void 0,uo=lo(H()),fo=o;er=Et.default=(0,uo.default)((0,fo.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Tt={},po=U;Object.defineProperty(Tt,"__esModule",{value:!0});var tr=Tt.default=void 0,ho=po(H()),mo=o;tr=Tt.default=(0,ho.default)((0,mo.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Pt={},go=U;Object.defineProperty(Pt,"__esModule",{value:!0});var nr=Pt.default=void 0,xo=go(H()),vo=o;nr=Pt.default=(0,xo.default)((0,vo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Rt={},yo=U;Object.defineProperty(Rt,"__esModule",{value:!0});var rr=Rt.default=void 0,bo=yo(H()),jo=o;rr=Rt.default=(0,bo.default)((0,jo.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Dt={},wo=U;Object.defineProperty(Dt,"__esModule",{value:!0});var sr=Dt.default=void 0,So=wo(H()),Co=o;sr=Dt.default=(0,So.default)((0,Co.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var kt={};Object.defineProperty(kt,"__esModule",{value:!0});var or=kt.default=void 0;_o(v);var yn=o;function _o(e){return e&&e.__esModule?e:{default:e}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(r){Io(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Io(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e){var t=Eo(e,"string");return typeof t=="symbol"?t:t+""}function Eo(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=function(t){return(0,yn.jsx)("svg",jn(jn({},t),{},{children:(0,yn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};At.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};At.displayName="dashboard";or=kt.default=At;var Ot={},To=U;Object.defineProperty(Ot,"__esModule",{value:!0});var ir=Ot.default=void 0,Po=To(H()),Ro=o;ir=Ot.default=(0,Po.default)((0,Ro.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const de={Start:Zs,Stop:Yn,Restart:Jn,Reload:er,Remove:Rs,Config:tr,Log:nr,Group:rr,Cancel:sr,Dashboard:or,Overview:ir},Do=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),s=new URL(Wn(n.origin,t));return s.search=r.toString(),s.toString()},ko="internal",Ao="external";function $t({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:s,getComponentUrl:i,useBlockletUrlEvaluation:a,...c}){const l=Qe(),[u,d]=v.useState(null),[f,p]=v.useState(null),[b,j]=v.useState(!1),[m,w]=v.useState(null),{t:y}=v.useContext(wt),[T]=gn("skip-blocklet-setup",!1),{loading:L,recommendedUrl:P}=a(e),[k]=gn("blocklet-type-filter",ko),h=M.isInProgress(e.status),[I,S]=v.useState(!1);v.useEffect(()=>{var D,z;if(!(e!=null&&e.controller))return;S(((z=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:z.value)===J.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var V,Y,oe;try{const q=await l.api.getLauncherSession({input:{launcherSessionId:(V=e==null?void 0:e.controller)==null?void 0:V.launcherSessionId,launcherUrl:(Y=e==null?void 0:e.controller)==null?void 0:Y.launcherUrl}});if(q!=null&&q.error){console.error("get launcher session failed",q.error);return}S([$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((oe=q==null?void 0:q.launcherSession)==null?void 0:oe.status))}catch(q){console.error("call getLauncherSession error",q)}})()},[]);const{inService:_}=l,E=(x,D,z=!1)=>async()=>{const V=async Ee=>{var Pe;t({action:x,blocklet:e}),j(!0),p(x);let Te=!1;try{if(x==="remove")await D(Ee);else if(x==="start"){if(!M.hasRunnableComponent(e)){ee.error(y("blocklet.noComponent"));return}if(!_&&!T&&!((Pe=e.settings)!=null&&Pe.initialized)&&e.mode!==J.BLOCKLET_MODES.DEVELOPMENT){if(!P||!mn(P)){ee.error(y("blocklet.gotoVisitError"));return}const K=rs(l.info),cn=new URL(P);cn.searchParams.set("serverUrl",K),window.open(vn(cn.href,{allowDomains:null})),n({action:x,blocklet:e});return}const ie=e.children.filter(K=>!M.isInProgress(K.status)&&K.status!=="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else if(["stop","restart","reload"].includes(x)){const ie=e.children.filter(K=>K.status==="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else{const ie={did:e.meta.did};await D({input:ie})}x==="remove"?Te=!0:await ss(1e3),x==="reload"&&ee.success(y("blocklet.reloadSuccess")),w(null),n({action:x,blocklet:e})}catch(ie){const ue=`Blocklet ${x} failed: ${_t(ie)}`;throw n({action:x,blocklet:e,error:new Error(ue)}),new Error(ue)}finally{Te||j(!1)}},Y=()=>{j(!1),w(null)},oe=M.getDisplayName(e,!0),q=e.mode===J.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(N,{component:"div",children:o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Ee,Te)=>o.jsxs(N,{component:"div",children:[o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")}),o.jsxs(ws,{name:"removeType",value:Ee.removeType,onChange:Pe=>Te({...Ee,removeType:Pe.target.value}),children:[o.jsx(pn,{value:"backup",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationAfterBackup")}),o.jsx(pn,{value:"complete",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ns={stop:{title:`${y("common.stop")} ${oe}`,description:y("blocklet.action.stopDescription"),confirm:y("blocklet.action.confirmStop"),cancel:y("common.cancel"),onConfirm:V,onCancel:Y},restart:{title:`${y("common.restart")} ${oe}`,description:y("blocklet.action.restartDescription"),confirm:y("blocklet.action.confirmRestart"),cancel:y("common.cancel"),onConfirm:V,onCancel:Y},remove:{title:`${y("common.remove")} ${oe}`,confirm:y("blocklet.action.confirmRemove"),cancel:y("common.cancel"),onConfirm:V,onCancel:Y,...q},cancelDownload:{title:`${y("common.cancel")}`,description:y("blocklet.action.cancelDownloadDescription",{name:oe}),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:V,onCancel:Y}};z?w(ns[x]):await V()},R=!!u,X=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(x.currentTarget)},F=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(null)},Ie=async(x,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof x.handler=="function")try{j(!0),p(x.action),await x.handler()}catch(z){console.error(`Blocklet ${x.name} failed: `,z)}finally{j(!1),d(null)}else d(null)},Yr=!_&&M.isDeletableBlocklet(e)?{action:"remove",icon:de.Remove,name:y("common.remove"),handler:E("remove",async({removeType:x})=>{x==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:h}:null,Jr={action:"remove",icon:({sx:x,...D})=>o.jsx(de.Cancel,{sx:{...x,paddingRight:"2px",zoom:.95},...D}),name:y("common.cancel"),handler:E("cancelDownload",l.api.cancelDownloadBlocklet,!0)},es=M.getAppMissingConfigs(e),ts=()=>{var V;const x=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=i==null?void 0:i({mountPoint:x,blocklet:e});if(!D||!mn(D)){ee.error(y("blocklet.gotoVisitError"));return}const z=(V=e==null?void 0:e.site)==null?void 0:V.domainAliases;window.open(vn(Do(D,".well-known/service/admin"),{allowDomains:z==null?void 0:z.map(Y=>Y.value)}))};let Le=[{action:"start",icon:de.Start,inExternal:!0,name:y("common.start"),handler:E("start",l.api.startBlocklet),disabled:I||e.children.every(x=>x.status==="running")||tt(e.status)||L||h},{action:"stop",icon:de.Stop,inExternal:!0,name:y("common.stop"),handler:E("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:de.Restart,name:y("common.restart"),handler:E("restart",l.api.restartBlocklet,!0),disabled:I||e.status!=="running"},tt(e.status)?Jr:Yr,{separator:!0},_?null:{action:"dashboard",icon:({style:x,...D})=>o.jsx(de.Dashboard,{...D,style:{...x,width:"26px",height:"26px",paddingRight:"3px"}}),name:y("sidebar.dashboard"),handler:ts}].filter(Boolean);return k===Ao&&(Le=Le.filter(x=>x.inExternal)),r==="menu"?o.jsxs(wn,{"data-cy":"blocklet-actions",children:[o.jsx(yt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:X,size:"small",disabled:!s||!tt(e.status)&&b,children:o.jsx(Ds,{})}),o.jsxs(xs,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:R,onClose:F,PaperProps:{},children:[es.length>0&&o.jsxs($n,{style:{maxWidth:"400px"},severity:"error",children:[y("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(Vn,{to:`/blocklets/${e.meta.did}/components`,children:y("blocklet.config.gotoFix")})]}),Le.map((x,D)=>x.separator?o.jsx(bt,{},`separator-${D}`):o.jsxs(vs,{dense:!0,onClick:z=>Ie(x,z),disabled:b||x.disabled,"data-cy":`${x.action}-blocklet`,children:[o.jsx(ys,{style:{minWidth:24},children:f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{fontSize:"small"})}),o.jsx(bs,{primary:x.name})]},x.name))]}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):o.jsxs(wn,{"data-cy":"blocklet-actions",...c,children:[o.jsx(js,{children:Le.filter(x=>!x.separator&&!x.onlyInMenu).map(x=>o.jsxs(St,{title:x.name,"data-cy":`${x.action}-blocklet`,onClick:()=>Ie(x),disabled:!!x.disabled||b,children:[f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:x.name})]},x.name))}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}$t.propTypes={getComponentUrl:g.func,blocklet:g.object.isRequired,onStart:g.func.isRequired,onComplete:g.func.isRequired,variant:g.oneOf(["menu","group"]),hasPermission:g.bool,useBlockletUrlEvaluation:g.func};$t.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const wn=te.div`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/overview-DMjokddi.js","assets/vendor-mui-core-xF5F4eT7.js","assets/vendor-react-D-afvo_7.js","assets/vendor-arcblock-DZrZ_x_3.js","assets/vendor-utils-5TjOM6td.js","assets/vendor-hooks-BKxTDk_P.js","assets/vendor-arcblock-DhgPdlEj.css","assets/keyboard-arrow-down-rounded-DadBVmpO.js","assets/index-DGzAI_hi.js","assets/index-LIf2LIyz.js","assets/did-address-D0Fo5eTl.js","assets/domain-list-h_f8stui.js","assets/Add-DSPtuudj.js","assets/base32-BAfsRZF6.js","assets/LockIcon-D-W4Rph6.js","assets/CheckCircle-BxzRfCun.js","assets/util-BpKZM3xV.js","assets/useSetState-Crt4S51m.js","assets/permission-C0p6f4_S.js","assets/session-CM1ewS-k.js","assets/useAsyncRetry-Bmo6a1Zp.js","assets/useAsync-Ua5iss51.js","assets/confirm-CpCj_oj-.js","assets/format-error-C0Ke3VXF.js","assets/InfoOutlined-C_J3Y0fX.js","assets/api-K65cLqol.js","assets/actions-CPjP-DJ-.js","assets/MoreHoriz-JX8PbVXG.js","assets/useLocalStorage-DV4AIe5L.js","assets/PlayArrow-DZfknrYj.js","assets/get-safe-url-Du4BhDgB.js","assets/index-0u5pzPhR.js","assets/index-D6IQwB0H.js","assets/index-DoZ2YM4T.js","assets/Loop-B05tzyuy.js","assets/ViewList-CgG45KQv.js","assets/list-header-BdJ1JRqY.js","assets/click-to-copy-Bu9H6mvL.js","assets/DeleteOutline-BzV7E1BM.js","assets/util-NSOsPZWM.js","assets/sdk-TBkp9MgA.js","assets/index-BA_7CRkd.js","assets/shorten-label-J69eHfMN.js","assets/index-PcImULKW.js","assets/EditIcon-BOr0kf6I.js","assets/Google-DTKsjoGP.js","assets/cloneDeep-BRiLvZjr.js","assets/index-Dzj545ro.js","assets/iframe-CU0LfRyS.js","assets/config-DjozEU7w.js","assets/form-text-input-DS_PVT1r.js","assets/Done-DJfjmlFC.js","assets/logo-uploader-DbSGPbXh.js","assets/ArrowDropDown-DM9y1OaN.js","assets/ChevronRight-DlIj8Fj2.js","assets/bundle-avatar-CYdInmjR.js","assets/simple-select-D06JmA0a.js","assets/isEmail-BWNRBSAy.js","assets/switch-control-D2qynQm8.js","assets/audit-logs-BJdGmYfI.js","assets/index-ChSPqVLh.js","assets/index-D4PP6P2d.css","assets/relative-time-DpRjdL5Z.js","assets/index-DtwN19zv.js","assets/index-Cqc33Ts_.js","assets/list-DI-9r9EP.js","assets/index-CHFvfli7.js","assets/traffic-DelPjTGb.js","assets/LaunchOutlined-DaJw5LME.js","assets/ChevronLeft-CmbkC1dP.js","assets/index-C-D-nCB1.js","assets/vendor-mui-x-CSUdon8K.js","assets/log-D4hWjoeK.js","assets/Download-B4M4wwJm.js","assets/log-D33dFtt_.css","assets/index-C7dWd4bS.js","assets/Error-CN75ZRlV.js","assets/react-beautiful-dnd.esm-DwxjmShi.js","assets/raf-schd.esm-Cxhj8umC.js","assets/QuestionMarkCircle-BvUTckGB.js","assets/item-Ba7fzXuK.js","assets/Launch-BX35m3eH.js","assets/config-navigation-B5FcBZZN.js","assets/slicedToArray-CXBLQZX4.js","assets/index-C2fPoxDR.js","assets/index-DzU25sJ1.js","assets/use-mobile-DnWfrhc7.js","assets/connect-to-BYvNqC5N.js","assets/config-space-Y_f6nwhj.js","assets/component-DOOz4rgK.js","assets/index-DcfIKM1A.js","assets/add-component-core-BtRcqhKo.js","assets/launch-result-message-keU5grqY.js","assets/page-header-xWImGBdx.js","assets/index-BMWG7Eya.js","assets/content-layout-cWwRTmIc.js","assets/add-component-core-D-IRi6XF.css","assets/analytics-X9VRwkzm.js"])))=>i.map(i=>d[i]);
2
+ import{y as Qe,f as M,h as X,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E as An,F as fe,G as $n,H as as,o as je,I as cs,J as ls,k as ln,g as us,j as ds,m as un,l as fs,n as ps,K as $e,e as Re,L as hs,_ as B,M as ms,O as dn,N as gs,c as fn}from"./index-LIf2LIyz.js";import{a1 as U,j as o,E as g,aa as te,I as yt,ak as xs,ad as On,ah as bt,al as vs,bm as ys,a2 as re,bn as bs,bq as js,T as N,bx as ws,aN as pn,by as hn,a3 as C,a4 as Be,bz as Ss,t as G,Z as Ze,bA as Cs,a5 as _s,bB as Is,bp as jt,am as Mn,bC as Ls,aq as Es,as as Ts,bD as Nn,bE as zn,bF as Bn,A as ae,aj as Un,aK as Ps}from"./vendor-mui-core-xF5F4eT7.js";import{$ as H,a9 as Rs,a1 as wt,aa as Ds,a2 as St,b as O,Y as mn,j as ee,e as Z,Z as ks,ab as As,ac as Hn,ad as $s,ae as Os,D as Ct,af as Fn,ag as Ms,ah as Ns,ai as zs,C as Ue,aj as Bs,U as Us,ak as Hs,al as Fs,H as Vs,R as qs,am as Ws}from"./vendor-arcblock-DZrZ_x_3.js";import{r as v,L as Vn,k as qn,f as Ks,l as Gs}from"./vendor-react-D-afvo_7.js";import{d as He,s as Qs}from"./vendor-hooks-BKxTDk_P.js";import{_ as gn}from"./useLocalStorage-DV4AIe5L.js";import{C as xn}from"./confirm-CpCj_oj-.js";import{d as Zs}from"./PlayArrow-DZfknrYj.js";import{x as Wn,a6 as Ys,a7 as Js,y as Oe}from"./vendor-utils-5TjOM6td.js";import{g as vn}from"./get-safe-url-Du4BhDgB.js";import{f as _t}from"./format-error-C0Ke3VXF.js";import{c as ye,s as Fe,H as Xs,h as Ve,f as Kn,p as Gn,B as eo}from"./index-0u5pzPhR.js";import{u as Qn}from"./session-CM1ewS-k.js";import{D as to,_ as Zn}from"./useAsyncRetry-Bmo6a1Zp.js";import{d as no}from"./InfoOutlined-C_J3Y0fX.js";import{_ as Yn}from"./useSetState-Crt4S51m.js";var It={},ro=U;Object.defineProperty(It,"__esModule",{value:!0});var Jn=It.default=void 0,so=ro(H()),oo=o;Jn=It.default=(0,so.default)((0,oo.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var Lt={},io=U;Object.defineProperty(Lt,"__esModule",{value:!0});var Xn=Lt.default=void 0,ao=io(H()),co=o;Xn=Lt.default=(0,ao.default)((0,co.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var Et={},lo=U;Object.defineProperty(Et,"__esModule",{value:!0});var er=Et.default=void 0,uo=lo(H()),fo=o;er=Et.default=(0,uo.default)((0,fo.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var Tt={},po=U;Object.defineProperty(Tt,"__esModule",{value:!0});var tr=Tt.default=void 0,ho=po(H()),mo=o;tr=Tt.default=(0,ho.default)((0,mo.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var Pt={},go=U;Object.defineProperty(Pt,"__esModule",{value:!0});var nr=Pt.default=void 0,xo=go(H()),vo=o;nr=Pt.default=(0,xo.default)((0,vo.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Rt={},yo=U;Object.defineProperty(Rt,"__esModule",{value:!0});var rr=Rt.default=void 0,bo=yo(H()),jo=o;rr=Rt.default=(0,bo.default)((0,jo.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Dt={},wo=U;Object.defineProperty(Dt,"__esModule",{value:!0});var sr=Dt.default=void 0,So=wo(H()),Co=o;sr=Dt.default=(0,So.default)((0,Co.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var kt={};Object.defineProperty(kt,"__esModule",{value:!0});var or=kt.default=void 0;_o(v);var yn=o;function _o(e){return e&&e.__esModule?e:{default:e}}function bn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(r){Io(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Io(e,t,n){return(t=Lo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lo(e){var t=Eo(e,"string");return typeof t=="symbol"?t:t+""}function Eo(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var At=function(t){return(0,yn.jsx)("svg",jn(jn({},t),{},{children:(0,yn.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.32989 8.20744C11.2787 6.82349 13.6098 6.08 16 6.08C18.3902 6.08 20.7213 6.82349 22.6701 8.20744C24.6189 9.59139 26.089 11.5473 26.8766 13.804C27.6642 16.0607 27.7304 18.5066 27.0659 20.8026C26.4419 22.9587 25.2026 24.8823 23.5044 26.3404H8.49555C6.79735 24.8823 5.55809 22.9587 4.9341 20.8026C4.26961 18.5066 4.33575 16.0607 5.12337 13.804C5.91098 11.5473 7.38107 9.59139 9.32989 8.20744ZM16 3.52C13.0786 3.52 10.2295 4.42871 7.84764 6.1202C5.46575 7.81169 3.66898 10.2022 2.70634 12.9604C1.7437 15.7187 1.66286 18.708 2.47501 21.5143C3.28717 24.3205 4.95211 26.8046 7.23909 28.6224C7.46554 28.8024 7.74628 28.9004 8.03554 28.9004H23.9644C24.2537 28.9004 24.5344 28.8024 24.7609 28.6224C27.0479 26.8046 28.7128 24.3205 29.5249 21.5143C30.3371 18.708 30.2563 15.7187 29.2936 12.9604C28.331 10.2022 26.5342 7.81169 24.1523 6.1202C21.7704 4.42871 18.9214 3.52 16 3.52ZM21.8829 13.5921C22.3827 13.0923 22.3827 12.2818 21.8829 11.7819C21.383 11.2821 20.5725 11.2821 20.0727 11.7819L17.868 13.9866C17.3072 13.7012 16.6724 13.5404 16 13.5404C13.7221 13.5404 11.8755 15.3869 11.8755 17.6648C11.8755 19.9427 13.7221 21.7892 16 21.7892C18.2779 21.7892 20.1244 19.9427 20.1244 17.6648C20.1244 16.9924 19.9635 16.3576 19.6782 15.7968L21.8829 13.5921ZM14.4355 17.6648C14.4355 16.8008 15.136 16.1004 16 16.1004C16.864 16.1004 17.5644 16.8008 17.5644 17.6648C17.5644 18.5288 16.864 19.2292 16 19.2292C15.136 19.2292 14.4355 18.5288 14.4355 17.6648Z",fill:"currentColor"})}))};At.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};At.displayName="dashboard";or=kt.default=At;var $t={},To=U;Object.defineProperty($t,"__esModule",{value:!0});var ir=$t.default=void 0,Po=To(H()),Ro=o;ir=$t.default=(0,Po.default)((0,Ro.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const de={Start:Zs,Stop:Jn,Restart:Xn,Reload:er,Remove:Rs,Config:tr,Log:nr,Group:rr,Cancel:sr,Dashboard:or,Overview:ir},Do=(e,t)=>{if(!e)return"";const n=new URL(e),r=new URLSearchParams(n.searchParams),s=new URL(Wn(n.origin,t));return s.search=r.toString(),s.toString()},ko="internal",Ao="external";function Ot({blocklet:e,onStart:t,onComplete:n,variant:r,hasPermission:s,getComponentUrl:i,useBlockletUrlEvaluation:a,...c}){const l=Qe(),[u,d]=v.useState(null),[f,p]=v.useState(null),[b,j]=v.useState(!1),[m,w]=v.useState(null),{t:y}=v.useContext(wt),[T]=gn("skip-blocklet-setup",!1),{loading:L,recommendedUrl:P}=a(e),[k]=gn("blocklet-type-filter",ko),h=M.isInProgress(e.status),[I,S]=v.useState(!1);v.useEffect(()=>{var D,z;if(!(e!=null&&e.controller))return;S(((z=(D=e==null?void 0:e.controller)==null?void 0:D.status)==null?void 0:z.value)===X.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var V,J,oe;try{const q=await l.api.getLauncherSession({input:{launcherSessionId:(V=e==null?void 0:e.controller)==null?void 0:V.launcherSessionId,launcherUrl:(J=e==null?void 0:e.controller)==null?void 0:J.launcherUrl}});if(q!=null&&q.error){console.error("get launcher session failed",q.error);return}S([O.LAUNCH_SESSION_STATUS.overdue,O.LAUNCH_SESSION_STATUS.canceled,O.LAUNCH_SESSION_STATUS.terminated].includes((oe=q==null?void 0:q.launcherSession)==null?void 0:oe.status))}catch(q){console.error("call getLauncherSession error",q)}})()},[]);const{inService:_}=l,E=(x,D,z=!1)=>async()=>{const V=async Ee=>{var Pe;t({action:x,blocklet:e}),j(!0),p(x);let Te=!1;try{if(x==="remove")await D(Ee);else if(x==="start"){if(!M.hasRunnableComponent(e)){ee.error(y("blocklet.noComponent"));return}if(!_&&!T&&!((Pe=e.settings)!=null&&Pe.initialized)&&e.mode!==X.BLOCKLET_MODES.DEVELOPMENT){if(!P||!mn(P)){ee.error(y("blocklet.gotoVisitError"));return}const K=rs(l.info),cn=new URL(P);cn.searchParams.set("serverUrl",K),window.open(vn(cn.href,{allowDomains:null})),n({action:x,blocklet:e});return}const ie=e.children.filter(K=>!M.isInProgress(K.status)&&K.status!=="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else if(["stop","restart","reload"].includes(x)){const ie=e.children.filter(K=>K.status==="running").map(K=>K.meta.did),ue={did:e.meta.did,componentDids:ie};await D({input:ue})}else{const ie={did:e.meta.did};await D({input:ie})}x==="remove"?Te=!0:await ss(1e3),x==="reload"&&ee.success(y("blocklet.reloadSuccess")),w(null),n({action:x,blocklet:e})}catch(ie){const ue=`Blocklet ${x} failed: ${_t(ie)}`;throw n({action:x,blocklet:e,error:new Error(ue)}),new Error(ue)}finally{Te||j(!1)}},J=()=>{j(!1),w(null)},oe=M.getDisplayName(e,!0),q=e.mode===X.BLOCKLET_MODES.DEVELOPMENT?{description:()=>o.jsx(N,{component:"div",children:o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(Ee,Te)=>o.jsxs(N,{component:"div",children:[o.jsx(N,{gutterBottom:!0,children:y("blocklet.action.removeApplicationDescription")}),o.jsxs(ws,{name:"removeType",value:Ee.removeType,onChange:Pe=>Te({...Ee,removeType:Pe.target.value}),children:[o.jsx(pn,{value:"backup",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationAfterBackup")}),o.jsx(pn,{value:"complete",control:o.jsx(hn,{}),label:y("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},ns={stop:{title:`${y("common.stop")} ${oe}`,description:y("blocklet.action.stopDescription"),confirm:y("blocklet.action.confirmStop"),cancel:y("common.cancel"),onConfirm:V,onCancel:J},restart:{title:`${y("common.restart")} ${oe}`,description:y("blocklet.action.restartDescription"),confirm:y("blocklet.action.confirmRestart"),cancel:y("common.cancel"),onConfirm:V,onCancel:J},remove:{title:`${y("common.remove")} ${oe}`,confirm:y("blocklet.action.confirmRemove"),cancel:y("common.cancel"),onConfirm:V,onCancel:J,...q},cancelDownload:{title:`${y("common.cancel")}`,description:y("blocklet.action.cancelDownloadDescription",{name:oe}),confirm:y("common.confirm"),cancel:y("common.cancel"),onConfirm:V,onCancel:J}};z?w(ns[x]):await V()},R=!!u,Y=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(x.currentTarget)},F=x=>{try{x.stopPropagation(),x.preventDefault()}catch{}d(null)},Ie=async(x,D)=>{try{D.stopPropagation(),D.preventDefault()}catch{}if(typeof x.handler=="function")try{j(!0),p(x.action),await x.handler()}catch(z){console.error(`Blocklet ${x.name} failed: `,z)}finally{j(!1),d(null)}else d(null)},Jr=!_&&M.isDeletableBlocklet(e)?{action:"remove",icon:de.Remove,name:y("common.remove"),handler:E("remove",async({removeType:x})=>{x==="backup"&&await l.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await l.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:h}:null,Xr={action:"remove",icon:({sx:x,...D})=>o.jsx(de.Cancel,{sx:{...x,paddingRight:"2px",zoom:.95},...D}),name:y("common.cancel"),handler:E("cancelDownload",l.api.cancelDownloadBlocklet,!0)},es=M.getAppMissingConfigs(e),ts=()=>{var V;const x=`/${e.mountPoint||"/"}`.replace(/\/+/g,"/"),D=i==null?void 0:i({mountPoint:x,blocklet:e});if(!D||!mn(D)){ee.error(y("blocklet.gotoVisitError"));return}const z=(V=e==null?void 0:e.site)==null?void 0:V.domainAliases;window.open(vn(Do(D,".well-known/service/admin"),{allowDomains:z==null?void 0:z.map(J=>J.value)}))};let Le=[{action:"start",icon:de.Start,inExternal:!0,name:y("common.start"),handler:E("start",l.api.startBlocklet),disabled:I||e.children.every(x=>x.status==="running")||tt(e.status)||L||h},{action:"stop",icon:de.Stop,inExternal:!0,name:y("common.stop"),handler:E("stop",l.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",inExternal:!0,icon:de.Restart,name:y("common.restart"),handler:E("restart",l.api.restartBlocklet,!0),disabled:I||e.status!=="running"},tt(e.status)?Xr:Jr,{separator:!0},_?null:{action:"dashboard",icon:({style:x,...D})=>o.jsx(de.Dashboard,{...D,style:{...x,width:"26px",height:"26px",paddingRight:"3px"}}),name:y("sidebar.dashboard"),handler:ts}].filter(Boolean);return k===Ao&&(Le=Le.filter(x=>x.inExternal)),r==="menu"?o.jsxs(wn,{"data-cy":"blocklet-actions",children:[o.jsx(yt,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Y,size:"small",disabled:!s||!tt(e.status)&&b,children:o.jsx(Ds,{})}),o.jsxs(xs,{id:"actions-menu",anchorEl:u,keepMounted:!0,open:R,onClose:F,PaperProps:{},children:[es.length>0&&o.jsxs(On,{style:{maxWidth:"400px"},severity:"error",children:[y("blocklet.config.missingRequired"),o.jsx("br",{}),o.jsx(Vn,{to:`/blocklets/${e.meta.did}/components`,children:y("blocklet.config.gotoFix")})]}),Le.map((x,D)=>x.separator?o.jsx(bt,{},`separator-${D}`):o.jsxs(vs,{dense:!0,onClick:z=>Ie(x,z),disabled:b||x.disabled,"data-cy":`${x.action}-blocklet`,children:[o.jsx(ys,{style:{minWidth:24},children:f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{fontSize:"small"})}),o.jsx(bs,{primary:x.name})]},x.name))]}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]}):o.jsxs(wn,{"data-cy":"blocklet-actions",...c,children:[o.jsx(js,{children:Le.filter(x=>!x.separator&&!x.onlyInMenu).map(x=>o.jsxs(St,{title:x.name,"data-cy":`${x.action}-blocklet`,onClick:()=>Ie(x),disabled:!!x.disabled||b,children:[f===x.action&&b?o.jsx(re,{size:16,sx:{marginRight:1}}):o.jsx(x.icon,{}),o.jsx("span",{className:"blocklet-action-text",children:x.name})]},x.name))}),m&&o.jsx(xn,{title:m.title,description:m.description,confirm:m.confirm,cancel:m.cancel,params:m.params,onConfirm:m.onConfirm,onCancel:m.onCancel})]})}Ot.propTypes={getComponentUrl:g.func,blocklet:g.object.isRequired,onStart:g.func.isRequired,onComplete:g.func.isRequired,variant:g.oneOf(["menu","group"]),hasPermission:g.bool,useBlockletUrlEvaluation:g.func};Ot.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const wn=te.div`
3
3
  display: flex;
4
4
  align-items: center;
5
5
 
@@ -9,7 +9,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
9
9
  font-size: 10px;
10
10
  }
11
11
  }
12
- `,Oo=v.memo($t),$o=e=>{const t={};let n=null;return M.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=M.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Mo=(e,t,n)=>{var i;const{hostname:r,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return s;const l=c[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith($.DEFAULT_DID_DOMAIN))||"").replace(`.${$.DEFAULT_DID_DOMAIN}`,"");return d?s.replace(r,`${d}-${l}.${$.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function ar(){const{t:e}=Z(),{api:t}=Qn(),{blocklet:n}=os(),{inService:r}=Qe(),[s,i]=v.useState(!1),[a,c]=v.useState(5),l=n&&n.structVersion!==$.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){ee.error(e("blocklet.migrate.tip.running"));return}const p=$o(n);if(p){ee.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){ee.error(_t(p))}},d=()=>{const p=Mo(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(b=>b-1)},1e3)},f=()=>i(!1);return[l&&o.jsxs($n,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(C,{display:"flex",alignItems:"center",children:[o.jsx(St,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>o.jsx(C,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&o.jsx(ks,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:is(n,!0),title:M.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:f},"connect")]}ar.propTypes={};function Mt({children:e,style:t,...n}){return o.jsx(As,{style:t,...n,children:e})}Mt.propTypes={children:g.any.isRequired,style:g.object};Mt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function Nt({isResource:e,status:t,variant:n,source:r,progress:s,...i}){const{t:a}=v.useContext(wt),c={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=M.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=a(`blocklet.status.${d}`);return n==="pin"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsxs(C,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(C,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),o.jsx(C,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsx(to,{color:l[d],...i})}):o.jsxs(Mt,{type:c[d],...i,children:[u&&o.jsx(re,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&s?o.jsx("div",{style:{marginLeft:5},children:`${s} %`}):null]})}Nt.propTypes={status:g.string.isRequired,variant:g.oneOf(["dot","tag","pin"]),source:g.string,progress:g.number,isResource:g.bool};Nt.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};const cr=v.createContext({});function zt({children:e,type:t}){const[n,r]=v.useState([]),s=v.useRef([]),i=l=>{if(!s.current.includes(l)){const u=[...s.current,l];r(u),s.current=u}},a=l=>{if(s.current.includes(l)){const u=s.current.filter(d=>d!==l);r(u),s.current=u}},c=l=>{const u=n.filter(f=>l.find(p=>p===f));Xs(u,n).forEach(f=>a(f))};return o.jsx(cr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:c},children:e})}zt.propTypes={type:g.string,children:g.node.isRequired};zt.defaultProps={type:"blocklets"};function kc(){return v.useContext(cr)}function No(){const e=Ss();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const s=G(e.breakpoints.up(r));return!n&&s?r:n},null)||"xs"}function zo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Bo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Uo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function Ho(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const De={fontSize:20,marginInlineEnd:8},Fo={success:o.jsx(zo,{style:De}),warning:o.jsx(Bo,{style:De}),error:o.jsx(Uo,{style:De}),info:o.jsx(Ho,{style:De})},Vo=Cs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${_s[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Is[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function Bt({keyId:e,notification:t={},viewAllUrl:n,content:r},s){const i=Vo({breakpoint:No()}),a=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Fo[t.severity],{closeSnackbar:l}=Hn(),u=()=>l(e),d=qn(),f=()=>{l(e),d(n)};return o.jsxs(Os,{ref:s,className:a,children:[o.jsxs("div",{className:i.message,children:[c,o.jsxs(Wo,{onClick:f,children:[o.jsx("span",{className:"title",children:t.title}),r||o.jsx("span",{className:"desc",children:t.description})]})]}),o.jsx("div",{className:i.action,children:o.jsx(yt,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:o.jsx($s,{className:i.icon})},"close")})]})}const qo=v.forwardRef(Bt);Bt.propTypes={viewAllUrl:g.string.isRequired,keyId:g.number.isRequired,notification:g.object.isRequired,content:g.node};Bt.defaultProps={content:null};const Wo=te.div`
12
+ `,$o=v.memo(Ot),Oo=e=>{const t={};let n=null;return M.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=M.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},Mo=(e,t,n)=>{var i;const{hostname:r,href:s}=e;if(!t)return s;if(n){const c=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!c)return s;const l=c[0],d=((((i=t.site)==null?void 0:i.domainAliases)||[]).map(f=>f.value).filter(Boolean).find(f=>f.endsWith(O.DEFAULT_DID_DOMAIN))||"").replace(`.${O.DEFAULT_DID_DOMAIN}`,"");return d?s.replace(r,`${d}-${l}.${O.DEFAULT_IP_DOMAIN_SUFFIX}`):s}return s.replace(t.meta.bundleDid,t.appPid)};function ar(){const{t:e}=Z(),{api:t}=Qn(),{blocklet:n}=os(),{inService:r}=Qe(),[s,i]=v.useState(!1),[a,c]=v.useState(5),l=n&&n.structVersion!==O.APP_STRUCT_VERSION,u=()=>{try{if(n.status==="running"){ee.error(e("blocklet.migrate.tip.running"));return}const p=Oo(n);if(p){ee.error(e("blocklet.migrate.tip.duplicate",{name:p}));return}i(!0)}catch(p){ee.error(_t(p))}},d=()=>{const p=Mo(window.location,n,r);setTimeout(()=>{window.location.href=p},5e3),c(5),setInterval(()=>{c(b=>b-1)},1e3)},f=()=>i(!1);return[l&&o.jsxs(On,{severity:"warning",style:{margin:"12px 0"},children:[o.jsxs(C,{display:"flex",alignItems:"center",children:[o.jsx(St,{variant:"contained",size:"small",color:"primary",onClick:()=>u(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),o.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(p=>o.jsx(C,{display:"flex",alignItems:"center",children:e(`blocklet.migrate.intro.${p}`)},p))]},"alert"),n&&o.jsx(ks,{popup:!0,open:s,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:d,extraParams:{appDid:n.appDid,did:n.meta.did,wt:is(n,!0),title:M.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:a>=0?e("blocklet.migrate.success",{sec:a}):"Redirecting..."},onClose:f},"connect")]}ar.propTypes={};function Mt({children:e,style:t,...n}){return o.jsx(As,{style:t,...n,children:e})}Mt.propTypes={children:g.any.isRequired,style:g.object};Mt.defaultProps={style:{}};const A={yellow:"#FFCF71",grey:"#aaaaaa",reverse:"#444",success:"#3ab39d",running:"#34BE74",error:"#D0021B",primary:"#1DC1C7"};function Nt({isResource:e,status:t,variant:n,source:r,progress:s,...i}){const{t:a}=v.useContext(wt),c={added:"primary",waiting:"warning",downloading:"warning",extracting:"warning",downloaded:"primary",installing:"warning",installed:"primary",starting:"warning",running:"success",stopping:"warning",stopped:"reverse",error:"error",upgrading:"warning",restarting:"warning",corrupted:"error",deleting:"warning",resource:"primary"},l={added:A.grey,waiting:A.yellow,downloading:A.yellow,extracting:A.yellow,downloaded:A.grey,installing:A.yellow,installed:A.grey,starting:A.yellow,running:A.running,stopping:A.yellow,stopped:A.reverse,error:A.error,upgrading:A.yellow,restarting:A.yellow,corrupted:A.error,deleting:A.yellow,resource:A.primary},u=M.isInProgress(t),d=e&&t==="stopped"?"resource":t,f=a(`blocklet.status.${d}`);return n==="pin"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsxs(C,{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center",...i,children:[o.jsx(C,{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:l[d],style:{opacity:.15}}),o.jsx(C,{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:l[d]})]})}):n==="dot"?o.jsx(Be,{title:a("blocklet.statusTip",{status:f}),children:o.jsx(to,{color:l[d],...i})}):o.jsxs(Mt,{type:c[d],...i,children:[u&&o.jsx(re,{size:12,color:"inherit",style:{marginRight:5}}),f,d==="downloading"&&s?o.jsx("div",{style:{marginLeft:5},children:`${s} %`}):null]})}Nt.propTypes={status:g.string.isRequired,variant:g.oneOf(["dot","tag","pin"]),source:g.string,progress:g.number,isResource:g.bool};Nt.defaultProps={isResource:!1,variant:"tag",source:"",progress:0};const cr=v.createContext({});function zt({children:e,type:t}){const[n,r]=v.useState([]),s=v.useRef([]),i=l=>{if(!s.current.includes(l)){const u=[...s.current,l];r(u),s.current=u}},a=l=>{if(s.current.includes(l)){const u=s.current.filter(d=>d!==l);r(u),s.current=u}},c=l=>{const u=n.filter(f=>l.find(p=>p===f));Ys(u,n).forEach(f=>a(f))};return o.jsx(cr.Provider,{value:{type:t,deletingBlocklets:n,addDeletingDid:i,removeDeletingDid:a,matchDeletingDid:c},children:e})}zt.propTypes={type:g.string,children:g.node.isRequired};zt.defaultProps={type:"blocklets"};function kc(){return v.useContext(cr)}function No(){const e=Ss();return[...e.breakpoints.keys].reverse().reduce((n,r)=>{const s=G(e.breakpoints.up(r));return!n&&s?r:n},null)||"xs"}function zo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z"})})}function Bo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"})})}function Uo(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"})})}function Ho(e){return o.jsx(Ze,{...e,children:o.jsx("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z"})})}const De={fontSize:20,marginInlineEnd:8},Fo={success:o.jsx(zo,{style:De}),warning:o.jsx(Bo,{style:De}),error:o.jsx(Uo,{style:De}),info:o.jsx(Ho,{style:De})},Vo=Cs(e=>{const t={xl:"400px",lg:"400px",md:"400px",sm:"300px"},n=e.palette.background.default;return{lessPadding:{paddingLeft:8*2.5},contentRoot:{...e.typography.body2,display:"flex",backgroundColor:n,color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},success:r=>({backgroundColor:`${_s[600]} !important`,width:t[r.breakpoint]}),error:r=>({backgroundColor:`${e.palette.error.dark} !important`,width:t[r.breakpoint]}),info:r=>({backgroundColor:`${e.palette.primary.main} !important`,width:t[r.breakpoint]}),warning:r=>({backgroundColor:`${Is[700]} !important`,width:t[r.breakpoint]}),icon:{fontSize:20},message:{display:"flex",alignItems:"center",padding:"8px 0",flex:1,width:0},action:{display:"flex",alignItems:"center",marginLeft:"auto",marginRight:-8,width:44}}});function Bt({keyId:e,notification:t={},viewAllUrl:n,content:r},s){const i=Vo({breakpoint:No()}),a=[i.contentRoot,i.lessPadding,i[t.severity]].join(" "),c=Fo[t.severity],{closeSnackbar:l}=Hn(),u=()=>l(e),d=qn(),f=()=>{l(e),d(n)};return o.jsxs($s,{ref:s,className:a,children:[o.jsxs("div",{className:i.message,children:[c,o.jsxs(Wo,{onClick:f,children:[o.jsx("span",{className:"title",children:t.title}),r||o.jsx("span",{className:"desc",children:t.description})]})]}),o.jsx("div",{className:i.action,children:o.jsx(yt,{"aria-label":"close",color:"inherit",onClick:u,size:"large",children:o.jsx(Os,{className:i.icon})},"close")})]})}const qo=v.forwardRef(Bt);Bt.propTypes={viewAllUrl:g.string.isRequired,keyId:g.number.isRequired,notification:g.object.isRequired,content:g.node};Bt.defaultProps={content:null};const Wo=te.div`
13
13
  cursor: pointer;
14
14
  display: flex;
15
15
  flex-direction: column;
@@ -63,7 +63,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
63
63
  &:last-child {
64
64
  margin-bottom: 0;
65
65
  }
66
- `;qt.propTypes={data:g.object.isRequired,feedType:g.string};qt.defaultProps={feedType:"data-tracker"};const Zo=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Xo=e=>e.every(t=>t.type==="text"),Yo=e=>e.every(t=>t.type==="image"),Jo=e=>Ys(e,2).map(t=>({type:"combined",items:t})),ei=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},ti=async(e,t)=>{const r=new Ms().user;if(r)try{return await r.getUserPublicInfo({did:e})?await r.getProfileUrl({did:e,locale:t}):void 0}catch(s){console.error(s);return}};function Wt({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:s,...i}=e,a=G(d=>d.breakpoints.down("md"));if((!r||!r.length)&&$e(s))return null;const c=Zo(t),l=(d,f=!1)=>{if(!d&&!Array.isArray(d))return null;let p=d,b={},j="horizontal";f&&Xo(d)&&(p=Jo(d),j="vertical",b={display:"flex",gap:1,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const m=ei(p);return o.jsx(C,{sx:{display:"flex",gap:1,flexDirection:f?"row":"column",justifyContent:"flex-start",alignItems:f?"center":"unset",flexWrap:"wrap"},children:p.map((w,y)=>w.type==="section"?o.jsx(v.Fragment,{children:l(w.fields,!0)},y):o.jsxs(v.Fragment,{children:[o.jsx(pr,{attachment:w,sx:b,...i}),!(a&&j==="vertical")&&m&&p.length>1&&y!==p.length-1?o.jsx(bt,{orientation:j,style:{color:Fn.dividerColor},sx:j==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},y))})},u=Yo(r);return o.jsx(ni,{children:o.jsxs("div",{className:"message-in-list",children:[r.length>0&&o.jsx("div",{className:"message-container",children:u?l(r):o.jsx(Mn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:l(r)})}),!$e(s)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(qt,{data:s,feedType:e.feedType})})}),r.length===0&&$e(s)&&n&&o.jsx(Ts,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ni=te.div`
66
+ `;qt.propTypes={data:g.object.isRequired,feedType:g.string};qt.defaultProps={feedType:"data-tracker"};const Zo=e=>{let t="rgba(0, 0, 0, 0.12)";return e==="warning"?t="#DE9E37":e==="error"?t="#F16E6E":t="rgba(0, 0, 0, 0.12)",t},Yo=e=>e.every(t=>t.type==="text"),Jo=e=>e.every(t=>t.type==="image"),Xo=e=>Js(e,2).map(t=>({type:"combined",items:t})),ei=e=>{if(!e.length||e.length<=1)return!1;const t=e[0].type;return e.every(n=>n.type===t)},ti=async(e,t)=>{const r=new Ms().user;if(r)try{return await r.getUserPublicInfo({did:e})?await r.getProfileUrl({did:e,locale:t}):void 0}catch(s){console.error(s);return}};function Wt({notification:e,severity:t,showSke:n=!0}){const{attachments:r,data:s,...i}=e,a=G(d=>d.breakpoints.down("md"));if((!r||!r.length)&&Oe(s))return null;const c=Zo(t),l=(d,f=!1)=>{if(!d&&!Array.isArray(d))return null;let p=d,b={},j="horizontal";f&&Yo(d)&&(p=Xo(d),j="vertical",b={display:"flex",gap:1,flexDirection:"row",justifyContent:"flex-start",flexWrap:"wrap",height:"100%"});const m=ei(p);return o.jsx(C,{sx:{display:"flex",gap:1,flexDirection:f?"row":"column",justifyContent:"flex-start",alignItems:f?"center":"unset",flexWrap:"wrap"},children:p.map((w,y)=>w.type==="section"?o.jsx(v.Fragment,{children:l(w.fields,!0)},y):o.jsxs(v.Fragment,{children:[o.jsx(pr,{attachment:w,sx:b,...i}),!(a&&j==="vertical")&&m&&p.length>1&&y!==p.length-1?o.jsx(bt,{orientation:j,style:{color:Fn.dividerColor},sx:j==="vertical"?{ml:2,mr:2,height:32}:{}}):null]},y))})},u=Jo(r);return o.jsx(ni,{children:o.jsxs("div",{className:"message-in-list",children:[r.length>0&&o.jsx("div",{className:"message-container",children:u?l(r):o.jsx(Mn,{variant:"outlined",sx:{p:2,borderRadius:"8px",minWidth:128,borderColor:c},children:l(r)})}),!Oe(s)&&o.jsx("div",{className:"message-container",children:o.jsx("div",{className:"data-container",children:o.jsx(qt,{data:s,feedType:e.feedType})})}),r.length===0&&Oe(s)&&n&&o.jsx(Ts,{className:"attach-ske",style:{marginTop:10},variant:"rectangular",height:150})]})})}const ni=te.div`
67
67
  display: flex;
68
68
  flex-direction: column;
69
69
  .message-in-list {
@@ -115,7 +115,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
115
115
  margin-right: 8px;
116
116
  }
117
117
  }
118
- `;Wt.propTypes={severity:g.string.isRequired,notification:g.object.isRequired,showSke:g.bool};Wt.defaultProps={showSke:!0};const nt=e=>Ns.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),ri=async(e,t)=>{const{type:n,did:r}=e;return Kn.isSameAddr(n,"did")?await ti(r,t)||Ve.getLink(e):Ve.getLink(e)},si=async(e,t,n=!0)=>{const r=Ve.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof Ve.Link){if(n){const a=await ri(i,t),{type:c,chainId:l,did:u}=i;return Kn.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};gr.propTypes={notification:g.object,rows:g.number,minimal:g.bool};function gr({notification:e,rows:t=2,minimal:n=!1}){const[r,s]=v.useState(!1),[i,a]=v.useState(""),{t:c,locale:l}=Z(),u=v.useMemo(()=>{const{attachments:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),d=v.useMemo(()=>{const{blocks:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),f=v.useMemo(()=>{const{description:w}=e||{};return!!w},[e]),p=v.useMemo(()=>{const{data:w}=e||{};return!$e(w)},[e]),b=v.useMemo(()=>u||d||f||p,[u,d,f,p]);if(v.useEffect(()=>{si((e==null?void 0:e.description)??"",l).then(w=>{a(w)})},[e==null?void 0:e.description,l]),!b)return null;const j=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,m=w=>{const{target:y}=w;y.getAttribute("data-name")==="toggle-expanded"&&s(!r)};return o.jsxs(oi,{color:n?"#fff":"",children:[o.jsx(C,{className:"text-container",children:o.jsx(C,{component:"div",sx:{marginBottom:"4px"},onClick:m,children:i&&(!r&&t>0?o.jsx(Js,{basedOn:"letters",unsafeHTML:nt(i),maxLine:t,ellipsisHTML:nt(j())}):o.jsx(N,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:nt(`${i}${j()}`)}}))})}),!n&&(u||p)?o.jsx(Wt,{severity:e.severity,notification:e}):null]})}const oi=te(C)`
118
+ `;Wt.propTypes={severity:g.string.isRequired,notification:g.object.isRequired,showSke:g.bool};Wt.defaultProps={showSke:!0};const nt=e=>Ns.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),ri=async(e,t)=>{const{type:n,did:r}=e;return Kn.isSameAddr(n,"did")?await ti(r,t)||Ve.getLink(e):Ve.getLink(e)},si=async(e,t,n=!0)=>{const r=Ve.toTextList(e);return await Promise.all(r.map(async i=>{if(i instanceof Ve.Link){if(n){const a=await ri(i,t),{type:c,chainId:l,did:u}=i;return Kn.isSameAddr(c,"dapp")?`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`:a?`<a target="_blank" rel="noopener noreferrer" style="color:#4598fa;font-weight:bold;" href="${a}">${i.text}</a>`:`<em style="font-weight:bold;" data-type="${c}" data-chain-id="${l}" data-did="${u}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))};gr.propTypes={notification:g.object,rows:g.number,minimal:g.bool};function gr({notification:e,rows:t=2,minimal:n=!1}){const[r,s]=v.useState(!1),[i,a]=v.useState(""),{t:c,locale:l}=Z(),u=v.useMemo(()=>{const{attachments:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),d=v.useMemo(()=>{const{blocks:w}=e||{};if(!w)return!1;try{return w.length>0}catch{return!1}},[e]),f=v.useMemo(()=>{const{description:w}=e||{};return!!w},[e]),p=v.useMemo(()=>{const{data:w}=e||{};return!Oe(w)},[e]),b=v.useMemo(()=>u||d||f||p,[u,d,f,p]);if(v.useEffect(()=>{si((e==null?void 0:e.description)??"",l).then(w=>{a(w)})},[e==null?void 0:e.description,l]),!b)return null;const j=()=>t===0?"":r?`<span class='toggle-btn' data-name='toggle-expanded'>${c("common.collapse")}</span>`:`...<span class='toggle-btn' data-name='toggle-expanded'>${c("common.expand")}</span>`,m=w=>{const{target:y}=w;y.getAttribute("data-name")==="toggle-expanded"&&s(!r)};return o.jsxs(oi,{color:n?"#fff":"",children:[o.jsx(C,{className:"text-container",children:o.jsx(C,{component:"div",sx:{marginBottom:"4px"},onClick:m,children:i&&(!r&&t>0?o.jsx(Xs,{basedOn:"letters",unsafeHTML:nt(i),maxLine:t,ellipsisHTML:nt(j())}):o.jsx(N,{component:"div",className:`content ${t===0?"ellipsis":""}`,style:{whiteSpace:"pre-line!important",fontSize:"14px"},dangerouslySetInnerHTML:{__html:nt(`${i}${j()}`)}}))})}),!n&&(u||p)?o.jsx(Wt,{severity:e.severity,notification:e}):null]})}const oi=te(C)`
119
119
  margin-bottom: 6px;
120
120
  color: ${e=>e.color?e.color:"rgba(75, 85, 99, 1)"};
121
121
  .text-container {
@@ -139,7 +139,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
139
139
  -webkit-line-clamp: 2;
140
140
  }
141
141
  }
142
- `,ii=v.memo(gr);function O(e,t,n){return Nn.call(t,"css")?o.jsx(zn,Bn(e,t),n):o.jsx(e,t,n)}function rt(e,t,n){return Nn.call(t,"css")?o.jsxs(zn,Bn(e,t),n):o.jsxs(e,t,n)}/**
142
+ `,ii=v.memo(gr);function $(e,t,n){return Nn.call(t,"css")?o.jsx(zn,Bn(e,t),n):o.jsx(e,t,n)}function rt(e,t,n){return Nn.call(t,"css")?o.jsxs(zn,Bn(e,t),n):o.jsxs(e,t,n)}/**
143
143
  * (c) Iconify
144
144
  *
145
145
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -149,7 +149,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
149
149
  *
150
150
  * @license MIT
151
151
  * @version 3.1.1
152
- */const xr=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...xr,...qe}),at=Object.freeze({...we,body:"",hidden:!1});function ai(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Sn(e,t){const n=ai(e,t);for(const r in at)r in qe?r in e&&!(r in n)&&(n[r]=qe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ci(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const c=r[a]&&r[a].parent,l=c&&i(c);l&&(s[a]=[c].concat(l))}return s[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function li(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function a(c){i=Sn(r[c]||s[c],i)}return a(t),n.forEach(a),Sn(e,i)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=ci(e);for(const s in r){const i=r[s];i&&(t(s,li(e,s,i)),n.push(s))}return n}const ge=/^[a-z0-9]+(-[a-z0-9]+)*$/,he=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:c};return t&&!Me(u)?null:u}const i=s[0],a=i.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Me(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!Me(c,n)?null:c}return null},Me=(e,t)=>e?!!((e.provider===""||e.provider.match(ge))&&(t&&e.prefix===""||e.prefix.match(ge))&&e.name.match(ge)):!1,di={provider:"",aliases:{},not_found:{},...xr};function st(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function fi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!st(e,di))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s.match(ge)||typeof i.body!="string"||!st(i,at))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],a=i.parent;if(!s.match(ge)||typeof a!="string"||!n[a]&&!r[a]||!st(i,at))return null}return t}const We=Object.create(null);function pi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Q(e,t){const n=We[e]||(We[e]=Object.create(null));return n[t]||(n[t]=pi(e,t))}function Kt(e,t){return fi(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function hi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function mi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(We)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(We[s]||{})).forEach(a=>{const c=Q(s,a);n=n.concat(Object.keys(c.icons).map(l=>(s!==""?"@"+s+":":"")+a+":"+l))})}),n}let Gt=!1;function gi(e){return Gt}function Se(e){const t=typeof e=="string"?he(e,!0,Gt):e;if(t){const n=Q(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function xi(e,t){const n=he(e,!0,Gt);if(!n)return!1;const r=Q(n.provider,n.prefix);return hi(r,n.name,t)}function vr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Me({provider:t,prefix:n,name:"a"}))return!1;const r=Q(t,n);return!!Kt(r,e)}function vi(e){return!!Se(e)}function yi(e){const t=Se(e);return t?{...we,...t}:null}const yr=Object.freeze({width:null,height:null}),br=Object.freeze({...yr,...qe}),bi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ji=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ct(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(bi);if(r===null||!r.length)return e;const s=[];let i=r.shift(),a=ji.test(i);for(;;){if(a){const c=parseFloat(i);isNaN(c)?s.push(i):s.push(Math.ceil(c*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");a=!a}}const wi=e=>e==="unset"||e==="undefined"||e==="none";function Xe(e,t){const n={...we,...e},r={...br,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(j=>{const m=[],w=j.hFlip,y=j.vFlip;let T=j.rotate;w?y?T+=2:(m.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),m.push("scale(-1 1)"),s.top=s.left=0):y&&(m.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),m.push("scale(1 -1)"),s.top=s.left=0);let L;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:L=s.height/2+s.top,m.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:m.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:L=s.width/2+s.left,m.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}T%2===1&&(s.left!==s.top&&(L=s.left,s.left=s.top,s.top=L),s.width!==s.height&&(L=s.width,s.width=s.height,s.height=L)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const a=r.width,c=r.height,l=s.width,u=s.height;let d,f;a===null?(f=c===null?"1em":c==="auto"?u:c,d=ct(f,l/u)):(d=a==="auto"?l:a,f=c===null?ct(d,u/l):c==="auto"?u:c);const p={},b=(j,m)=>{wi(m)||(p[j]=m.toString())};return b("width",d),b("height",f),p.viewBox=s.left.toString()+" "+s.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Si=/\sid="(\S+)"/g,Ci="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _i=0;function jr(e,t=Ci){const n=[];let r;for(;r=Si.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(_i++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const ce={local:!0,session:!0},wr={local:new Set,session:new Set};let Qt=!1;function Ii(e){Qt=e}const Cn="iconify2",be="iconify",Sr=be+"-count",_n=be+"-version",Cr=36e5,Li=168;function lt(e,t){try{return e.getItem(t)}catch{}}function Zt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function ut(e,t){return Zt(e,Sr,t.toString())}function dt(e){return parseInt(lt(e,Sr))||0}let ke=typeof window>"u"?{}:window;function _r(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}ce[e]=!1}function Ir(e,t){const n=_r(e);if(!n)return;const r=lt(n,_n);if(r!==Cn){if(r){const c=dt(n);for(let l=0;l<c;l++)In(n,be+l.toString())}Zt(n,_n,Cn),ut(n,0);return}const s=Math.floor(Date.now()/Cr)-Li,i=c=>{const l=be+c.toString(),u=lt(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>s&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}In(n,l)}};let a=dt(n);for(let c=a-1;c>=0;c--)i(c)||(c===a-1?(a--,ut(n,a)):wr[e].add(c))}function Lr(){if(!Qt){Ii(!0);for(const e in ce)Ir(e,t=>{const n=t.data,r=t.provider,s=n.prefix,i=Q(r,s);if(!Kt(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Er(e,t){switch(e){case"local":case"session":ce[e]=t;break;case"all":for(const n in ce)ce[n]=t;break}}const ft=Object.create(null);function Tr(e,t){ft[e]=t}function pt(e){return ft[e]||ft[""]}function Xt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Ye=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ne=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ne.push(me.shift()):Ne.push(me.pop());Ye[""]=Xt({resources:["https://api.iconify.design"].concat(Ne)});function Pr(e,t){const n=Xt(t);return n===null?!1:(Ye[e]=n,!0)}function Je(e){return Ye[e]}function Ei(){return Object.keys(Ye)}const Ti=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ke=Ti();function Pi(e){Ke=e}function Ri(){return Ke}function Di(e,t){const n=Je(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function ki(e){return e===404}const Ai=(e,t,n)=>{const r=[],s=Di(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=s&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},c=l.length),a.icons.push(l)}),r.push(a),r};function Oi(e){if(typeof e=="string"){const t=Je(e);if(t)return t.path}return"/"}const $i=(e,t,n)=>{if(!Ke){n("abort",424);return}let r=Oi(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;Ke(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ki(a)?"abort":"next",a)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},Mi={prepare:Ai,send:$i};function Ni(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,a=s.prefix,c=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[a]||(l[a]=Q(i,a));let d;c in u.icons?d=t.loaded:a===""||u.missing.has(c)?d=t.missing:d=t.pending;const f={provider:i,prefix:a,name:c};d.push(f)}),t}function Rr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function zi(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const a=i.icons,c=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])a.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||Rr([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Bi=0;function Ui(e,t,n){const r=Bi++,s=Rr.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),s}function Hi(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?he(s,t,n):s;i&&r.push(i)}),r}var Fi={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Vi(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let a;if(e.random){let h=e.resources.slice(0);for(a=[];h.length>1;){const I=Math.floor(Math.random()*h.length);a.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}a=a.concat(h)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",u=0,d,f=null,p=[],b=[];typeof r=="function"&&b.push(r);function j(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),j(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function w(h,I){I&&(b=[]),typeof h=="function"&&b.push(h)}function y(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:w,abort:m}}function T(){l="failed",b.forEach(h=>{h(void 0,d)})}function L(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function P(h,I,S){const _=I!=="success";switch(p=p.filter(E=>E!==h),l){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=S,T();return}if(_){d=S,p.length||(a.length?k():T());return}if(j(),L(),!e.random){const E=e.resources.indexOf(h.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",b.forEach(E=>{E(S)})}function k(){if(l!=="pending")return;j();const h=a.shift();if(h===void 0){if(p.length){f=setTimeout(()=>{j(),l==="pending"&&(L(),T())},e.timeout);return}T();return}const I={status:"pending",resource:h,callback:(S,_)=>{P(I,S,_)}};p.push(I),u++,f=setTimeout(k,e.rotate),n(h,t,I.callback)}return setTimeout(k),y}function Dr(e){const t={...Fi,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function s(c,l,u){const d=Vi(t,c,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(c){return n.find(l=>c(l))||null}return{query:s,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ln(){}const ot=Object.create(null);function qi(e){if(!ot[e]){const t=Je(e);if(!t)return;const n=Dr(t),r={config:t,redundancy:n};ot[e]=r}return ot[e]}function kr(e,t,n){let r,s;if(typeof e=="string"){const i=pt(e);if(!i)return n(void 0,424),Ln;s=i.send;const a=qi(e);a&&(r=a.redundancy)}else{const i=Xt(e);if(i){r=Dr(i);const a=e.resources?e.resources[0]:"",c=pt(a);c&&(s=c.send)}}return!r||!s?(n(void 0,424),Ln):r.query(t,s,n)().abort}function Wi(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ce)Ir(r,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Ki(e,t){Qt||Lr();function n(r){let s;if(!ce[r]||!(s=_r(r)))return;const i=wr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=dt(s),!ut(s,a+1))return;const c={cached:Math.floor(Date.now()/Cr),provider:e.provider,data:t};return Zt(s,be+a.toString(),JSON.stringify(c))}t.lastModified&&!Wi(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function En(){}function Gi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,zi(e)}))}function Qi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=pt(n)))return;i.prepare(n,r,s).forEach(c=>{kr(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=Kt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Ki(e,l)}catch(u){console.error(u)}Gi(e)})})}))}const Zi=e=>{const n=Q(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Yt=(e,t)=>{const n=Hi(e,!0,gi()),r=Ni(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,En)}),()=>{l=!1}}const s=Object.create(null),i=[];let a,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===a)return;a=u,c=d,i.push(Q(u,d));const f=s[u]||(s[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=Q(u,d),b=p.pendingIcons||(p.pendingIcons=new Set);b.has(f)||(b.add(f),s[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;s[u][d].length&&Qi(l,s[u][d])}),t?Ui(t,r,i):En},Xi=e=>new Promise((t,n)=>{const r=typeof e=="string"?he(e,!0):e;if(!r){n(e);return}Yt([r||e],s=>{if(s.length&&r){const i=Se(r);if(i){t({...we,...i});return}}n(e)})});function Ar(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in yr?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const et={...br,inline:!1},it="iconify",ht="iconify-inline",se="iconifyData"+Date.now();let le=[];function Ce(e){for(let t=0;t<le.length;t++){const n=le[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function Or(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},le.push(n),n)}function Yi(){if(document.documentElement)return Or(document.documentElement);le.push({node:()=>document.documentElement})}function Ji(e){le=le.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function _e(){return le}function ea(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let xe=null;const ta={childList:!0,subtree:!0,attributes:!0};function $r(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,xe&&xe(e)}))}function na(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const s=t[r];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[se]!==void 0){n.paused||$r(e);return}}}function Mr(e,t){e.observer.instance.observe(t,ta)}function Ge(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(na.bind(null,e)),Mr(e,n),t.paused||$r(e))}function Tn(){_e().forEach(Ge)}function Nr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ra(e){const t=xe!==null;if(xe!==e&&(xe=e,t&&_e().forEach(Nr)),t){Tn();return}ea(Tn)}function mt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function sa(e){if(e){const t=Ce(e);t&&mt(t)}else mt()}function gt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){Ge(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Mr(t,r):Ge(t);else return}})}function oa(e){if(e){const t=Ce(e);t&&gt(t)}else gt()}function zr(e,t=!1){const n=Or(e,t);return Ge(n),n}function Br(e){const t=Ce(e);t&&(Nr(t),Ji(e))}function ia(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const s in et)if(n[s]!==r[s])return!0;return!1}function aa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}const ca=/[\s,]+/;function la(e,t){t.split(ca).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ua=["width","height"],da=["inline","hFlip","vFlip"];function fa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function pa(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&he(t,!0);if(!n)return null;const r={...et,inline:e.classList&&e.classList.contains(ht)};ua.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(r.rotate=aa(s));const i=e.getAttribute("data-flip");typeof i=="string"&&la(r,i),da.forEach(c=>{const l="data-"+c,u=fa(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const ha="svg."+it+", i."+it+", span."+it+", i."+ht+", span."+ht;function ma(e){const t=[];return e.querySelectorAll(ha).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?pa(n):null;r&&t.push({node:n,props:r})}),t}function Ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ve;function ga(){try{ve=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ve=null}}function xa(e){return ve===void 0&&ga(),ve?ve.createHTML(e):e}function Hr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Fr(e,t,n,r){const s=e.classList;if(r){const a=r.classList;Array.from(a).forEach(c=>{s.add(c)})}const i=[];return t.forEach(a=>{s.contains(a)?n.has(a)&&i.push(a):(s.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||s.remove(a)}),i}function Vr(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const s=[];for(const i in t)r.getPropertyValue(i)||(s.push(i),r.setProperty(i,t[i]));return s}function qr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const s=t.customisations,i=Xe(n,s),a=e[se],c=Ur(jr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=xa(c);const l=r.childNodes[0],u=e.attributes;for(let j=0;j<u.length;j++){const m=u.item(j),w=m.name;w!=="class"&&!l.hasAttribute(w)&&l.setAttribute(w,m.value)}const d=Hr(t.icon),f=Fr(l,d,new Set(a&&a.addedClasses),e),p=Vr(l,s.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),b={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=b,e.parentNode&&e.parentNode.replaceChild(l,e),l}function va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ya(e){return"data:image/svg+xml,"+va(e)}function ba(e){return'url("'+ya(e)+'")'}const ja={display:"inline-block"},xt={"background-color":"currentColor"},Wr={"background-color":"transparent"},Pn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Rn={"-webkit-mask":xt,mask:xt,background:Wr};for(const e in Rn){const t=Rn[e];for(const n in Pn)t[e+"-"+n]=Pn[n]}function Dn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function wa(e,t,n,r){const s=t.customisations,i=Xe(n,s),a=i.attributes,c=e[se],l=Ur(i.body,{...a,width:n.width+"",height:n.height+""}),u=Hr(t.icon),d=Fr(e,u,new Set(c&&c.addedClasses)),p={"--svg":ba(l),width:Dn(a.width),height:Dn(a.height),...ja,...r?xt:Wr};s.inline&&(p["vertical-align"]="-0.125em");const b=Vr(e,p,c&&c.addedStyles),j={...t,status:"loaded",addedClasses:d,addedStyles:b};return e[se]=j,e}let Ae=!1;function Sa(){Ae||(Ae=!0,setTimeout(()=>{Ae&&(Ae=!1,pe())}))}function pe(e,t=!1){const n=Object.create(null);function r(s,i){const{provider:a,prefix:c,name:l}=s,u=Q(a,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!Zi(s)){const f=n[a]||(n[a]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:_e()).forEach(s=>{const i=typeof s.node=="function"?s.node():s.node;if(!i||!i.querySelectorAll)return;let a=!1,c=!1;function l(u,d,f){if(c||(c=!0,mt(s)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,b=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof b=="boolean"){wa(u,d,{...we,...f},b);return}}qr(u,d,f)}ma(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:b,icon:j}=r(d.icon,!0);if(j){l(u,d,j);return}a=a||b==="loading",u[se]={...d,status:b};return}let p;if(ia(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){a=a||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),s.temporary&&!a?Br(i):t&&a?zr(i,!0):c&&s.observer&&gt(s)});for(const s in n){const i=n[s];for(const a in i){const c=i[a];Yt(Array.from(c).map(l=>({provider:s,prefix:a,name:l})),Sa)}}}function Ca(e){const t=Ce(e);t?pe(t):pe({node:e,temporary:!0},!0)}function Kr(e,t,n=!1){const r=Se(e);if(!r)return null;const s=he(e),i=Ar(et,t||{}),a=qr(document.createElement("span"),{name:e,icon:s,customisations:i},r);return n?a.outerHTML:a}function _a(){return"3.1.1"}function Ia(e,t){return Kr(e,t,!1)}function La(e,t){return Kr(e,t,!0)}function Ea(e,t){const n=Se(e);if(!n)return null;const r=Ar(et,t||{});return Xe(n,r)}function Ta(e){e?Ca(e):pe()}if(typeof document<"u"&&typeof window<"u"){Yi();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ra(pe),pe()})}function Pa(e,t){Er(e,t!==!1)}function Ra(e){Er(e,!0)}Tr("",Mi);if(typeof document<"u"&&typeof window<"u"){Lr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Pr(n,s)||console.error(r)}catch{console.error(r)}}}}const Da={getAPIConfig:Je,setAPIModule:Tr,sendAPIQuery:kr,setFetch:Pi,getFetch:Ri,listAPIProviders:Ei},ka={_api:Da,addAPIProvider:Pr,loadIcons:Yt,loadIcon:Xi,iconExists:vi,getIcon:yi,listIcons:mi,addIcon:xi,addCollection:vr,replaceIDs:jr,calculateSize:ct,buildIcon:Xe,getVersion:_a,renderSVG:Ia,renderHTML:La,renderIcon:Ea,scan:Ta,observe:zr,stopObserving:Br,pauseObserver:sa,resumeObserver:oa,enableCache:Pa,disableCache:Ra};try{self.Iconify===void 0&&(self.Iconify=ka)}catch{}var Jt={},Aa=U;Object.defineProperty(Jt,"__esModule",{value:!0});var Gr=Jt.default=void 0,Oa=Aa(H()),$a=o;Gr=Jt.default=(0,Oa.default)((0,$a.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function en({infos:e}){const{t}=Z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(s=>{n.searchParams.set(s.label,s.value)});const r=e.map(s=>`* ${s.label}: ${s.value}`).join(`
152
+ */const xr=Object.freeze({left:0,top:0,width:16,height:16}),qe=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),we=Object.freeze({...xr,...qe}),at=Object.freeze({...we,body:"",hidden:!1});function ai(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Sn(e,t){const n=ai(e,t);for(const r in at)r in qe?r in e&&!(r in n)&&(n[r]=qe[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ci(e,t){const n=e.icons,r=e.aliases||Object.create(null),s=Object.create(null);function i(a){if(n[a])return s[a]=[];if(!(a in s)){s[a]=null;const c=r[a]&&r[a].parent,l=c&&i(c);l&&(s[a]=[c].concat(l))}return s[a]}return Object.keys(n).concat(Object.keys(r)).forEach(i),s}function li(e,t,n){const r=e.icons,s=e.aliases||Object.create(null);let i={};function a(c){i=Sn(r[c]||s[c],i)}return a(t),n.forEach(a),Sn(e,i)}function ui(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(s=>{t(s,null),n.push(s)});const r=ci(e);for(const s in r){const i=r[s];i&&(t(s,li(e,s,i)),n.push(s))}return n}const ge=/^[a-z0-9]+(-[a-z0-9]+)*$/,he=(e,t,n,r="")=>{const s=e.split(":");if(e.slice(0,1)==="@"){if(s.length<2||s.length>3)return null;r=s.shift().slice(1)}if(s.length>3||!s.length)return null;if(s.length>1){const c=s.pop(),l=s.pop(),u={provider:s.length>0?s[0]:r,prefix:l,name:c};return t&&!Me(u)?null:u}const i=s[0],a=i.split("-");if(a.length>1){const c={provider:r,prefix:a.shift(),name:a.join("-")};return t&&!Me(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:i};return t&&!Me(c,n)?null:c}return null},Me=(e,t)=>e?!!((e.provider===""||e.provider.match(ge))&&(t&&e.prefix===""||e.prefix.match(ge))&&e.name.match(ge)):!1,di={provider:"",aliases:{},not_found:{},...xr};function st(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function fi(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!st(e,di))return null;const n=t.icons;for(const s in n){const i=n[s];if(!s.match(ge)||typeof i.body!="string"||!st(i,at))return null}const r=t.aliases||Object.create(null);for(const s in r){const i=r[s],a=i.parent;if(!s.match(ge)||typeof a!="string"||!n[a]&&!r[a]||!st(i,at))return null}return t}const We=Object.create(null);function pi(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Q(e,t){const n=We[e]||(We[e]=Object.create(null));return n[t]||(n[t]=pi(e,t))}function Kt(e,t){return fi(t)?ui(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function hi(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function mi(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(We)).forEach(s=>{(typeof s=="string"&&typeof t=="string"?[t]:Object.keys(We[s]||{})).forEach(a=>{const c=Q(s,a);n=n.concat(Object.keys(c.icons).map(l=>(s!==""?"@"+s+":":"")+a+":"+l))})}),n}let Gt=!1;function gi(e){return Gt}function Se(e){const t=typeof e=="string"?he(e,!0,Gt):e;if(t){const n=Q(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function xi(e,t){const n=he(e,!0,Gt);if(!n)return!1;const r=Q(n.provider,n.prefix);return hi(r,n.name,t)}function vr(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!Me({provider:t,prefix:n,name:"a"}))return!1;const r=Q(t,n);return!!Kt(r,e)}function vi(e){return!!Se(e)}function yi(e){const t=Se(e);return t?{...we,...t}:null}const yr=Object.freeze({width:null,height:null}),br=Object.freeze({...yr,...qe}),bi=/(-?[0-9.]*[0-9]+[0-9.]*)/g,ji=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ct(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(bi);if(r===null||!r.length)return e;const s=[];let i=r.shift(),a=ji.test(i);for(;;){if(a){const c=parseFloat(i);isNaN(c)?s.push(i):s.push(Math.ceil(c*t*n)/n)}else s.push(i);if(i=r.shift(),i===void 0)return s.join("");a=!a}}const wi=e=>e==="unset"||e==="undefined"||e==="none";function Ye(e,t){const n={...we,...e},r={...br,...t},s={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(j=>{const m=[],w=j.hFlip,y=j.vFlip;let T=j.rotate;w?y?T+=2:(m.push("translate("+(s.width+s.left).toString()+" "+(0-s.top).toString()+")"),m.push("scale(-1 1)"),s.top=s.left=0):y&&(m.push("translate("+(0-s.left).toString()+" "+(s.height+s.top).toString()+")"),m.push("scale(1 -1)"),s.top=s.left=0);let L;switch(T<0&&(T-=Math.floor(T/4)*4),T=T%4,T){case 1:L=s.height/2+s.top,m.unshift("rotate(90 "+L.toString()+" "+L.toString()+")");break;case 2:m.unshift("rotate(180 "+(s.width/2+s.left).toString()+" "+(s.height/2+s.top).toString()+")");break;case 3:L=s.width/2+s.left,m.unshift("rotate(-90 "+L.toString()+" "+L.toString()+")");break}T%2===1&&(s.left!==s.top&&(L=s.left,s.left=s.top,s.top=L),s.width!==s.height&&(L=s.width,s.width=s.height,s.height=L)),m.length&&(i='<g transform="'+m.join(" ")+'">'+i+"</g>")});const a=r.width,c=r.height,l=s.width,u=s.height;let d,f;a===null?(f=c===null?"1em":c==="auto"?u:c,d=ct(f,l/u)):(d=a==="auto"?l:a,f=c===null?ct(d,u/l):c==="auto"?u:c);const p={},b=(j,m)=>{wi(m)||(p[j]=m.toString())};return b("width",d),b("height",f),p.viewBox=s.left.toString()+" "+s.top.toString()+" "+l.toString()+" "+u.toString(),{attributes:p,body:i}}const Si=/\sid="(\S+)"/g,Ci="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let _i=0;function jr(e,t=Ci){const n=[];let r;for(;r=Si.exec(e);)n.push(r[1]);if(!n.length)return e;const s="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const a=typeof t=="function"?t(i):t+(_i++).toString(),c=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+a+s+"$3")}),e=e.replace(new RegExp(s,"g"),""),e}const ce={local:!0,session:!0},wr={local:new Set,session:new Set};let Qt=!1;function Ii(e){Qt=e}const Cn="iconify2",be="iconify",Sr=be+"-count",_n=be+"-version",Cr=36e5,Li=168;function lt(e,t){try{return e.getItem(t)}catch{}}function Zt(e,t,n){try{return e.setItem(t,n),!0}catch{}}function In(e,t){try{e.removeItem(t)}catch{}}function ut(e,t){return Zt(e,Sr,t.toString())}function dt(e){return parseInt(lt(e,Sr))||0}let ke=typeof window>"u"?{}:window;function _r(e){const t=e+"Storage";try{if(ke&&ke[t]&&typeof ke[t].length=="number")return ke[t]}catch{}ce[e]=!1}function Ir(e,t){const n=_r(e);if(!n)return;const r=lt(n,_n);if(r!==Cn){if(r){const c=dt(n);for(let l=0;l<c;l++)In(n,be+l.toString())}Zt(n,_n,Cn),ut(n,0);return}const s=Math.floor(Date.now()/Cr)-Li,i=c=>{const l=be+c.toString(),u=lt(n,l);if(typeof u=="string"){try{const d=JSON.parse(u);if(typeof d=="object"&&typeof d.cached=="number"&&d.cached>s&&typeof d.provider=="string"&&typeof d.data=="object"&&typeof d.data.prefix=="string"&&t(d,c))return!0}catch{}In(n,l)}};let a=dt(n);for(let c=a-1;c>=0;c--)i(c)||(c===a-1?(a--,ut(n,a)):wr[e].add(c))}function Lr(){if(!Qt){Ii(!0);for(const e in ce)Ir(e,t=>{const n=t.data,r=t.provider,s=n.prefix,i=Q(r,s);if(!Kt(i,n).length)return!1;const a=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,a):a,!0})}}function Er(e,t){switch(e){case"local":case"session":ce[e]=t;break;case"all":for(const n in ce)ce[n]=t;break}}const ft=Object.create(null);function Tr(e,t){ft[e]=t}function pt(e){return ft[e]||ft[""]}function Yt(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Je=Object.create(null),me=["https://api.simplesvg.com","https://api.unisvg.com"],Ne=[];for(;me.length>0;)me.length===1||Math.random()>.5?Ne.push(me.shift()):Ne.push(me.pop());Je[""]=Yt({resources:["https://api.iconify.design"].concat(Ne)});function Pr(e,t){const n=Yt(t);return n===null?!1:(Je[e]=n,!0)}function Xe(e){return Je[e]}function Ei(){return Object.keys(Je)}const Ti=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Ke=Ti();function Pi(e){Ke=e}function Ri(){return Ke}function Di(e,t){const n=Xe(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let s=0;n.resources.forEach(a=>{s=Math.max(s,a.length)});const i=t+".json?icons=";r=n.maxURL-s-n.path.length-i.length}return r}function ki(e){return e===404}const Ai=(e,t,n)=>{const r=[],s=Di(e,t),i="icons";let a={type:i,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,u)=>{c+=l.length+1,c>=s&&u>0&&(r.push(a),a={type:i,provider:e,prefix:t,icons:[]},c=l.length),a.icons.push(l)}),r.push(a),r};function $i(e){if(typeof e=="string"){const t=Xe(e);if(t)return t.path}return"/"}const Oi=(e,t,n)=>{if(!Ke){n("abort",424);return}let r=$i(t.provider);switch(t.type){case"icons":{const i=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=i+".json?"+l.toString();break}case"custom":{const i=t.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let s=503;Ke(e+r).then(i=>{const a=i.status;if(a!==200){setTimeout(()=>{n(ki(a)?"abort":"next",a)});return}return s=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",s)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",s)})},Mi={prepare:Ai,send:Oi};function Ni(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((s,i)=>s.provider!==i.provider?s.provider.localeCompare(i.provider):s.prefix!==i.prefix?s.prefix.localeCompare(i.prefix):s.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return e.forEach(s=>{if(r.name===s.name&&r.prefix===s.prefix&&r.provider===s.provider)return;r=s;const i=s.provider,a=s.prefix,c=s.name,l=n[i]||(n[i]=Object.create(null)),u=l[a]||(l[a]=Q(i,a));let d;c in u.icons?d=t.loaded:a===""||u.missing.has(c)?d=t.missing:d=t.pending;const f={provider:i,prefix:a,name:c};d.push(f)}),t}function Rr(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(s=>s.id!==t))})}function zi(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,s=e.prefix;t.forEach(i=>{const a=i.icons,c=a.pending.length;a.pending=a.pending.filter(l=>{if(l.prefix!==s)return!0;const u=l.name;if(e.icons[u])a.loaded.push({provider:r,prefix:s,name:u});else if(e.missing.has(u))a.missing.push({provider:r,prefix:s,name:u});else return n=!0,!0;return!1}),a.pending.length!==c&&(n||Rr([e],i.id),i.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),i.abort))})}))}let Bi=0;function Ui(e,t,n){const r=Bi++,s=Rr.bind(null,n,r);if(!t.pending.length)return s;const i={id:r,icons:t,callback:e,abort:s};return n.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(i)}),s}function Hi(e,t=!0,n=!1){const r=[];return e.forEach(s=>{const i=typeof s=="string"?he(s,t,n):s;i&&r.push(i)}),r}var Fi={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Vi(e,t,n,r){const s=e.resources.length,i=e.random?Math.floor(Math.random()*s):e.index;let a;if(e.random){let h=e.resources.slice(0);for(a=[];h.length>1;){const I=Math.floor(Math.random()*h.length);a.push(h[I]),h=h.slice(0,I).concat(h.slice(I+1))}a=a.concat(h)}else a=e.resources.slice(i).concat(e.resources.slice(0,i));const c=Date.now();let l="pending",u=0,d,f=null,p=[],b=[];typeof r=="function"&&b.push(r);function j(){f&&(clearTimeout(f),f=null)}function m(){l==="pending"&&(l="aborted"),j(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function w(h,I){I&&(b=[]),typeof h=="function"&&b.push(h)}function y(){return{startTime:c,payload:t,status:l,queriesSent:u,queriesPending:p.length,subscribe:w,abort:m}}function T(){l="failed",b.forEach(h=>{h(void 0,d)})}function L(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function P(h,I,S){const _=I!=="success";switch(p=p.filter(E=>E!==h),l){case"pending":break;case"failed":if(_||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){d=S,T();return}if(_){d=S,p.length||(a.length?k():T());return}if(j(),L(),!e.random){const E=e.resources.indexOf(h.resource);E!==-1&&E!==e.index&&(e.index=E)}l="completed",b.forEach(E=>{E(S)})}function k(){if(l!=="pending")return;j();const h=a.shift();if(h===void 0){if(p.length){f=setTimeout(()=>{j(),l==="pending"&&(L(),T())},e.timeout);return}T();return}const I={status:"pending",resource:h,callback:(S,_)=>{P(I,S,_)}};p.push(I),u++,f=setTimeout(k,e.rotate),n(h,t,I.callback)}return setTimeout(k),y}function Dr(e){const t={...Fi,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function s(c,l,u){const d=Vi(t,c,l,(f,p)=>{r(),u&&u(f,p)});return n.push(d),d}function i(c){return n.find(l=>c(l))||null}return{query:s,find:i,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Ln(){}const ot=Object.create(null);function qi(e){if(!ot[e]){const t=Xe(e);if(!t)return;const n=Dr(t),r={config:t,redundancy:n};ot[e]=r}return ot[e]}function kr(e,t,n){let r,s;if(typeof e=="string"){const i=pt(e);if(!i)return n(void 0,424),Ln;s=i.send;const a=qi(e);a&&(r=a.redundancy)}else{const i=Yt(e);if(i){r=Dr(i);const a=e.resources?e.resources[0]:"",c=pt(a);c&&(s=c.send)}}return!r||!s?(n(void 0,424),Ln):r.query(t,s,n)().abort}function Wi(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in ce)Ir(r,s=>{const i=s.data;return s.provider!==e.provider||i.prefix!==e.prefix||i.lastModified===t});return!0}function Ki(e,t){Qt||Lr();function n(r){let s;if(!ce[r]||!(s=_r(r)))return;const i=wr[r];let a;if(i.size)i.delete(a=Array.from(i).shift());else if(a=dt(s),!ut(s,a+1))return;const c={cached:Math.floor(Date.now()/Cr),provider:e.provider,data:t};return Zt(s,be+a.toString(),JSON.stringify(c))}t.lastModified&&!Wi(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function En(){}function Gi(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,zi(e)}))}function Qi(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,s=e.iconsToLoad;delete e.iconsToLoad;let i;if(!s||!(i=pt(n)))return;i.prepare(n,r,s).forEach(c=>{kr(n,c,l=>{if(typeof l!="object")c.icons.forEach(u=>{e.missing.add(u)});else try{const u=Kt(e,l);if(!u.length)return;const d=e.pendingIcons;d&&u.forEach(f=>{d.delete(f)}),Ki(e,l)}catch(u){console.error(u)}Gi(e)})})}))}const Zi=e=>{const n=Q(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},Jt=(e,t)=>{const n=Hi(e,!0,gi()),r=Ni(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,En)}),()=>{l=!1}}const s=Object.create(null),i=[];let a,c;return r.pending.forEach(l=>{const{provider:u,prefix:d}=l;if(d===c&&u===a)return;a=u,c=d,i.push(Q(u,d));const f=s[u]||(s[u]=Object.create(null));f[d]||(f[d]=[])}),r.pending.forEach(l=>{const{provider:u,prefix:d,name:f}=l,p=Q(u,d),b=p.pendingIcons||(p.pendingIcons=new Set);b.has(f)||(b.add(f),s[u][d].push(f))}),i.forEach(l=>{const{provider:u,prefix:d}=l;s[u][d].length&&Qi(l,s[u][d])}),t?Ui(t,r,i):En},Yi=e=>new Promise((t,n)=>{const r=typeof e=="string"?he(e,!0):e;if(!r){n(e);return}Jt([r||e],s=>{if(s.length&&r){const i=Se(r);if(i){t({...we,...i});return}}n(e)})});function Ar(e,t){const n={...e};for(const r in t){const s=t[r],i=typeof s;r in yr?(s===null||s&&(i==="string"||i==="number"))&&(n[r]=s):i===typeof n[r]&&(n[r]=r==="rotate"?s%4:s)}return n}const et={...br,inline:!1},it="iconify",ht="iconify-inline",se="iconifyData"+Date.now();let le=[];function Ce(e){for(let t=0;t<le.length;t++){const n=le[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function $r(e,t=!1){let n=Ce(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},le.push(n),n)}function Ji(){if(document.documentElement)return $r(document.documentElement);le.push({node:()=>document.documentElement})}function Xi(e){le=le.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function _e(){return le}function ea(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let xe=null;const ta={childList:!0,subtree:!0,attributes:!0};function Or(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,xe&&xe(e)}))}function na(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const s=t[r];if(s.addedNodes&&s.addedNodes.length>0||s.type==="attributes"&&s.target[se]!==void 0){n.paused||Or(e);return}}}function Mr(e,t){e.observer.instance.observe(t,ta)}function Ge(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(na.bind(null,e)),Mr(e,n),t.paused||Or(e))}function Tn(){_e().forEach(Ge)}function Nr(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function ra(e){const t=xe!==null;if(xe!==e&&(xe=e,t&&_e().forEach(Nr)),t){Tn();return}ea(Tn)}function mt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function sa(e){if(e){const t=Ce(e);t&&mt(t)}else mt()}function gt(e){(e?[e]:_e()).forEach(t=>{if(!t.observer){Ge(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?Mr(t,r):Ge(t);else return}})}function oa(e){if(e){const t=Ce(e);t&&gt(t)}else gt()}function zr(e,t=!1){const n=$r(e,t);return Ge(n),n}function Br(e){const t=Ce(e);t&&(Nr(t),Xi(e))}function ia(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const s in et)if(n[s]!==r[s])return!0;return!1}function aa(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(s){for(;s<0;)s+=4;return s%4}if(n===""){const s=parseInt(e);return isNaN(s)?0:r(s)}else if(n!==e){let s=0;switch(n){case"%":s=25;break;case"deg":s=90}if(s){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i=i/s,i%1===0?r(i):0)}}return t}const ca=/[\s,]+/;function la(e,t){t.split(ca).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const ua=["width","height"],da=["inline","hFlip","vFlip"];function fa(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function pa(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&he(t,!0);if(!n)return null;const r={...et,inline:e.classList&&e.classList.contains(ht)};ua.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const s=e.getAttribute("data-rotate");typeof s=="string"&&(r.rotate=aa(s));const i=e.getAttribute("data-flip");typeof i=="string"&&la(r,i),da.forEach(c=>{const l="data-"+c,u=fa(e.getAttribute(l),l);typeof u=="boolean"&&(r[c]=u)});const a=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:a}}const ha="svg."+it+", i."+it+", span."+it+", i."+ht+", span."+ht;function ma(e){const t=[];return e.querySelectorAll(ha).forEach(n=>{const r=n[se]||n.tagName.toLowerCase()!=="svg"?pa(n):null;r&&t.push({node:n,props:r})}),t}function Ur(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let ve;function ga(){try{ve=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{ve=null}}function xa(e){return ve===void 0&&ga(),ve?ve.createHTML(e):e}function Hr(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function Fr(e,t,n,r){const s=e.classList;if(r){const a=r.classList;Array.from(a).forEach(c=>{s.add(c)})}const i=[];return t.forEach(a=>{s.contains(a)?n.has(a)&&i.push(a):(s.add(a),i.push(a))}),n.forEach(a=>{t.has(a)||s.remove(a)}),i}function Vr(e,t,n){const r=e.style;(n||[]).forEach(i=>{r.removeProperty(i)});const s=[];for(const i in t)r.getPropertyValue(i)||(s.push(i),r.setProperty(i,t[i]));return s}function qr(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const s=t.customisations,i=Ye(n,s),a=e[se],c=Ur(jr(i.body),{"aria-hidden":"true",role:"img",...i.attributes});r.innerHTML=xa(c);const l=r.childNodes[0],u=e.attributes;for(let j=0;j<u.length;j++){const m=u.item(j),w=m.name;w!=="class"&&!l.hasAttribute(w)&&l.setAttribute(w,m.value)}const d=Hr(t.icon),f=Fr(l,d,new Set(a&&a.addedClasses),e),p=Vr(l,s.inline?{"vertical-align":"-0.125em"}:{},a&&a.addedStyles),b={...t,status:"loaded",addedClasses:f,addedStyles:p};return l[se]=b,e.parentNode&&e.parentNode.replaceChild(l,e),l}function va(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ya(e){return"data:image/svg+xml,"+va(e)}function ba(e){return'url("'+ya(e)+'")'}const ja={display:"inline-block"},xt={"background-color":"currentColor"},Wr={"background-color":"transparent"},Pn={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Rn={"-webkit-mask":xt,mask:xt,background:Wr};for(const e in Rn){const t=Rn[e];for(const n in Pn)t[e+"-"+n]=Pn[n]}function Dn(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function wa(e,t,n,r){const s=t.customisations,i=Ye(n,s),a=i.attributes,c=e[se],l=Ur(i.body,{...a,width:n.width+"",height:n.height+""}),u=Hr(t.icon),d=Fr(e,u,new Set(c&&c.addedClasses)),p={"--svg":ba(l),width:Dn(a.width),height:Dn(a.height),...ja,...r?xt:Wr};s.inline&&(p["vertical-align"]="-0.125em");const b=Vr(e,p,c&&c.addedStyles),j={...t,status:"loaded",addedClasses:d,addedStyles:b};return e[se]=j,e}let Ae=!1;function Sa(){Ae||(Ae=!0,setTimeout(()=>{Ae&&(Ae=!1,pe())}))}function pe(e,t=!1){const n=Object.create(null);function r(s,i){const{provider:a,prefix:c,name:l}=s,u=Q(a,c),d=u.icons[l];if(d)return{status:"loaded",icon:d};if(u.missing.has(l))return{status:"missing"};if(i&&!Zi(s)){const f=n[a]||(n[a]=Object.create(null));(f[c]||(f[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:_e()).forEach(s=>{const i=typeof s.node=="function"?s.node():s.node;if(!i||!i.querySelectorAll)return;let a=!1,c=!1;function l(u,d,f){if(c||(c=!0,mt(s)),u.tagName.toUpperCase()!=="SVG"){const p=d.mode,b=p==="mask"||(p==="bg"?!1:p==="style"?f.body.indexOf("currentColor")!==-1:null);if(typeof b=="boolean"){wa(u,d,{...we,...f},b);return}}qr(u,d,f)}ma(i).forEach(({node:u,props:d})=>{const f=u[se];if(!f){const{status:b,icon:j}=r(d.icon,!0);if(j){l(u,d,j);return}a=a||b==="loading",u[se]={...d,status:b};return}let p;if(ia(f,d)){if(p=r(d.icon,f.name!==d.name),!p.icon){a=a||p.status==="loading",Object.assign(f,{...d,status:p.status});return}}else{if(f.status!=="loading")return;if(p=r(d.icon,!1),!p.icon){f.status=p.status;return}}l(u,d,p.icon)}),s.temporary&&!a?Br(i):t&&a?zr(i,!0):c&&s.observer&&gt(s)});for(const s in n){const i=n[s];for(const a in i){const c=i[a];Jt(Array.from(c).map(l=>({provider:s,prefix:a,name:l})),Sa)}}}function Ca(e){const t=Ce(e);t?pe(t):pe({node:e,temporary:!0},!0)}function Kr(e,t,n=!1){const r=Se(e);if(!r)return null;const s=he(e),i=Ar(et,t||{}),a=qr(document.createElement("span"),{name:e,icon:s,customisations:i},r);return n?a.outerHTML:a}function _a(){return"3.1.1"}function Ia(e,t){return Kr(e,t,!1)}function La(e,t){return Kr(e,t,!0)}function Ea(e,t){const n=Se(e);if(!n)return null;const r=Ar(et,t||{});return Ye(n,r)}function Ta(e){e?Ca(e):pe()}if(typeof document<"u"&&typeof window<"u"){Ji();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!vr(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{ra(pe),pe()})}function Pa(e,t){Er(e,t!==!1)}function Ra(e){Er(e,!0)}Tr("",Mi);if(typeof document<"u"&&typeof window<"u"){Lr();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const s=t[n];if(typeof s!="object"||!s||s.resources===void 0)continue;Pr(n,s)||console.error(r)}catch{console.error(r)}}}}const Da={getAPIConfig:Xe,setAPIModule:Tr,sendAPIQuery:kr,setFetch:Pi,getFetch:Ri,listAPIProviders:Ei},ka={_api:Da,addAPIProvider:Pr,loadIcons:Jt,loadIcon:Yi,iconExists:vi,getIcon:yi,listIcons:mi,addIcon:xi,addCollection:vr,replaceIDs:jr,calculateSize:ct,buildIcon:Ye,getVersion:_a,renderSVG:Ia,renderHTML:La,renderIcon:Ea,scan:Ta,observe:zr,stopObserving:Br,pauseObserver:sa,resumeObserver:oa,enableCache:Pa,disableCache:Ra};try{self.Iconify===void 0&&(self.Iconify=ka)}catch{}var Xt={},Aa=U;Object.defineProperty(Xt,"__esModule",{value:!0});var Gr=Xt.default=void 0,$a=Aa(H()),Oa=o;Gr=Xt.default=(0,$a.default)((0,Oa.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"}),"ErrorOutline");function en({infos:e}){const{t}=Z(),n=new URL("https://community.arcblock.io/discussions/add");e.forEach(s=>{n.searchParams.set(s.label,s.value)});const r=e.map(s=>`* ${s.label}: ${s.value}`).join(`
153
153
  `);return n.searchParams.set("report","server"),n.searchParams.set("context",`[Enter feedback here]
154
154
 
155
155
 
@@ -159,7 +159,7 @@ import{y as Qe,f as M,h as J,z as tt,A as rs,b as ss,B as os,C as is,D as ze,E a
159
159
  ${r}
160
160
  * Page: ${window.location.href}
161
161
  -->
162
- `),O(C,{sx:{mx:{xs:0,md:2}},children:O(jt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}en.propTypes={infos:g.arrayOf(g.shape({label:g.string,value:g.string}))};en.defaultProps={infos:[]};var tn={},Ma=U;Object.defineProperty(tn,"__esModule",{value:!0});var vt=tn.default=void 0,Na=Ma(H()),kn=o;vt=tn.default=(0,Na.default)([(0,kn.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ne({children:e}){return G(n=>n.breakpoints.down("md"))?o.jsx(Be,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(C,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(vt,{fontSize:"small"})})}):o.jsxs(C,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(vt,{fontSize:"small"}),e]})}ne.propTypes={children:g.node.isRequired};const za="https://launcher.arcblock.io/",Ba=30*24*60*60*1e3;function nn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var k,h,I,S,_,E;const{t:i,locale:a}=Z(),c=Qe(),[l,u]=Xn({safeIframeRef:null,popoverAnchorEl:null}),d=v.useRef(null),f=G(R=>R.breakpoints.down("md")),{sx:p={},...b}=s,j=f?"mobile":"desktop",m=Zn(async()=>{const[R,X]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),An({launcherUrl:e||za,nftDid:n,launcherSessionId:r,locale:a})]);if(R!=null&&R.error)throw new Error(R.error);return{launcherSession:R.launcherSession,subscriptionURL:X}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!f&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=R=>{u({popoverAnchorEl:R.currentTarget})},y=()=>{u({popoverAnchorEl:null})},T=(k=m.value)==null?void 0:k.launcherSession;let L="success";[$.LAUNCH_SESSION_STATUS.overdue,$.LAUNCH_SESSION_STATUS.canceled,$.LAUNCH_SESSION_STATUS.terminated].includes((I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.status)&&(L="error");let P=null;if(T.expirationDate&&!T.subscription){const R=fe(T.expirationDate).diff(fe(),"ms");P=i(`expiration.${j}.tips.${L}`,{validity:Gn(R,{locale:On(a),compact:!0,verbose:!0})}),R>0&&R<=Ba&&(L="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(ae,{label:o.jsx(ne,{children:P||((_=(S=T==null?void 0:T.subscription)==null?void 0:S.product)==null?void 0:_.name)||i("common.subscription")}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:w}),o.jsx(Un,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=m.value)==null?void 0:E.subscriptionURL})})]})}nn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};nn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ua=30*24*60*60*1e3,Ha="https://launcher.arcblock.io/";function rn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var h,I,S,_,E,R,X;const{t:i,locale:a}=Z(),[c,l]=Xn({safeIframeRef:null,popoverAnchorEl:null}),u=v.useRef(null),d=G(F=>F.breakpoints.down("md")),f=Qe(),{sx:p={},...b}=s,j=d?"mobile":"desktop",m=Zn(async()=>{const[F,Ie]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),An({launcherUrl:e||Ha,nftDid:n,launcherSessionId:r,locale:a})]);if(F!=null&&F.error)throw new Error(F.error);return{launcherSession:F.launcherSession,subscriptionURL:Ie}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!d&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=(I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.expirationDate,y=fe(w).isBefore(fe()),T=fe(w).diff(fe(),"ms");let L="success";T<=Ua&&(L="warning"),y&&(L="error");const P=F=>{l({popoverAnchorEl:F.currentTarget})},k=()=>{l({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((_=(S=m.value)==null?void 0:S.launcherSession)==null?void 0:_.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i("expiration.desktop.nextInvoice",{date:as(w,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),!((R=(E=m.value)==null?void 0:E.launcherSession)!=null&&R.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.tips.${L}`,{validity:Gn(T,{locale:On(a),compact:!0,verbose:!0})})}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),o.jsx(Un,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(X=m.value)==null?void 0:X.subscriptionURL})})]})}rn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};rn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var sn={},Fa=U;Object.defineProperty(sn,"__esModule",{value:!0});var Qr=sn.default=void 0,Va=Fa(H()),qa=o;Qr=sn.default=(0,Va.default)((0,qa.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var on={},Wa=U;Object.defineProperty(on,"__esModule",{value:!0});var Zr=on.default=void 0,Ka=Wa(H()),Ga=o;Zr=on.default=(0,Ka.default)((0,Ga.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Qa(){const{inFullPage:e,toggleFullPage:t}=Hs();return O(yt,{onClick:t,children:e?O(Zr,{sx:{transform:"scale(1.3)"}}):O(Qr,{sx:{transform:"scale(1.3)"}})})}function an({children:e}){var L,P,k;const{t}=Z(),{loading:n,error:r,actions:{refreshBlocklet:s},env:i,blocklet:a}=je(),{info:c}=cs(),l=Ks(),u=G(h=>h.breakpoints.down("md")),[d,f]=v.useState(null),{appId:p,version:b}=i,j=[{label:"App ID",value:p},{label:"App Version",value:b},{label:"App Bundle Name",value:(L=a==null?void 0:a.meta)==null?void 0:L.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],m=h=>{var S,_,E,R;const I=Array.isArray(h)?h:[h];if(u||I.unshift(O(Qa,{})),a){const X={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};ls(a)?I.unshift(O(nn,{chainHost:(S=a==null?void 0:a.controller)==null?void 0:S.chainHost,nftId:(_=a==null?void 0:a.controller)==null?void 0:_.nftId,launcherSessionId:(E=a==null?void 0:a.controller)==null?void 0:E.launcherSessionId,launcherUrl:(R=a==null?void 0:a.controller)==null?void 0:R.launcherUrl,sx:X})):c.ownerNft&&c.launcher&&I.unshift(O(rn,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:X}))}return I},w=(P=((a==null?void 0:a.environments)||[]).find(h=>h.key===J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:P.value,y=(k=((a==null?void 0:a.environments)||[]).find(h=>h.key===J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:k.value;return v.useEffect(()=>{if(u)f(null);else{const{appLogo:h,appLogoRect:I}=window.blocklet??{};(I||h)&&f(`${I||h}&v=${Date.now()}`)}},[w,y,u]),rt(Za,{legacy:!1,fullWidth:!0,headerAddons:m,headerProps:{logo:d?O("img",{src:d,alt:"logo"}):null},isMobile:u,footerProps:{addon:O(en,{infos:j})},children:[!a&&n&&O(Ue,{relative:"parent",children:O(re,{})}),!a&&r&&rt(Ue,{relative:"parent",children:[rt(C,{display:"flex",alignItems:"center",children:[O(Gr,{color:"error",sx:{marginRight:1}}),_t(r)]}),O(St,{onClick:()=>s(),children:O("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&O(C,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:O(Bs,{FallbackComponent:Us,resetKeys:[l.pathname],children:e})})]})}an.propTypes={children:g.any};an.defaultProps={children:null};const Za=te(zs)`
162
+ `),$(C,{sx:{mx:{xs:0,md:2}},children:$(jt,{sx:{color:"text.primary"},target:"_blank",href:n.href,rel:"noreferrer",style:{textDecoration:"underline"},children:t("common.reportIssue")})})}en.propTypes={infos:g.arrayOf(g.shape({label:g.string,value:g.string}))};en.defaultProps={infos:[]};var tn={},Ma=U;Object.defineProperty(tn,"__esModule",{value:!0});var vt=tn.default=void 0,Na=Ma(H()),kn=o;vt=tn.default=(0,Na.default)([(0,kn.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 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),(0,kn.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function ne({children:e}){return G(n=>n.breakpoints.down("md"))?o.jsx(Be,{enterDelay:500,leaveDelay:2e3,title:typeof e=="string"?e:"",children:o.jsx(C,{sx:{display:"flex",alignItems:"center",gap:1},children:o.jsx(vt,{fontSize:"small"})})}):o.jsxs(C,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(vt,{fontSize:"small"}),e]})}ne.propTypes={children:g.node.isRequired};const za="https://launcher.arcblock.io/",Ba=30*24*60*60*1e3;function nn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var k,h,I,S,_,E;const{t:i,locale:a}=Z(),c=Qe(),[l,u]=Yn({safeIframeRef:null,popoverAnchorEl:null}),d=v.useRef(null),f=G(R=>R.breakpoints.down("md")),{sx:p={},...b}=s,j=f?"mobile":"desktop",m=Zn(async()=>{const[R,Y]=await Promise.all([c.api.getLauncherSession({input:{launcherSessionId:r,launcherUrl:e}}),An({launcherUrl:e||za,nftDid:n,launcherSessionId:r,locale:a})]);if(R!=null&&R.error)throw new Error(R.error);return{launcherSession:R.launcherSession,subscriptionURL:Y}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!f&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=R=>{u({popoverAnchorEl:R.currentTarget})},y=()=>{u({popoverAnchorEl:null})},T=(k=m.value)==null?void 0:k.launcherSession;let L="success";[O.LAUNCH_SESSION_STATUS.overdue,O.LAUNCH_SESSION_STATUS.canceled,O.LAUNCH_SESSION_STATUS.terminated].includes((I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.status)&&(L="error");let P=null;if(T.expirationDate&&!T.subscription){const R=fe(T.expirationDate).diff(fe(),"ms");P=i(`expiration.${j}.tips.${L}`,{validity:Gn(R,{locale:$n(a),compact:!0,verbose:!0})}),R>0&&R<=Ba&&(L="warning")}return o.jsxs(o.Fragment,{children:[o.jsx(ae,{label:o.jsx(ne,{children:P||((_=(S=T==null?void 0:T.subscription)==null?void 0:S.product)==null?void 0:_.name)||i("common.subscription")}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:w}),o.jsx(Un,{id:"popover-info",open:!!l.popoverAnchorEl,anchorEl:l.popoverAnchorEl,onClose:y,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:d,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(E=m.value)==null?void 0:E.subscriptionURL})})]})}nn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};nn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};const Ua=30*24*60*60*1e3,Ha="https://launcher.arcblock.io/";function rn({launcherUrl:e,chainHost:t,nftId:n,launcherSessionId:r,...s}){var h,I,S,_,E,R,Y;const{t:i,locale:a}=Z(),[c,l]=Yn({safeIframeRef:null,popoverAnchorEl:null}),u=v.useRef(null),d=G(F=>F.breakpoints.down("md")),f=Qe(),{sx:p={},...b}=s,j=d?"mobile":"desktop",m=Zn(async()=>{const[F,Ie]=await Promise.all([f.api.getLauncherSession({input:{launcherSessionId:r||n,launcherUrl:e}}),An({launcherUrl:e||Ha,nftDid:n,launcherSessionId:r,locale:a})]);if(F!=null&&F.error)throw new Error(F.error);return{launcherSession:F.launcherSession,subscriptionURL:Ie}},[a]);if(m.loading)return o.jsx(ae,{label:o.jsxs(ne,{children:[!d&&i("expiration.desktop.loading"),o.jsx(re,{size:16})]}),variant:"success",sx:{cursor:"pointer",...p},...b});if(m.error)return console.error(m.error),o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.loadFailed`)}),color:"error",variant:"success",sx:{cursor:"pointer",...p},...b,onClick:()=>m.retry()});const w=(I=(h=m.value)==null?void 0:h.launcherSession)==null?void 0:I.expirationDate,y=fe(w).isBefore(fe()),T=fe(w).diff(fe(),"ms");let L="success";T<=Ua&&(L="warning"),y&&(L="error");const P=F=>{l({popoverAnchorEl:F.currentTarget})},k=()=>{l({popoverAnchorEl:null})};return o.jsxs(o.Fragment,{children:[((_=(S=m.value)==null?void 0:S.launcherSession)==null?void 0:_.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i("expiration.desktop.nextInvoice",{date:as(w,a)})}),color:"success",variant:"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),!((R=(E=m.value)==null?void 0:E.launcherSession)!=null&&R.subscription)&&o.jsx(ae,{label:o.jsx(ne,{children:i(`expiration.${j}.tips.${L}`,{validity:Gn(T,{locale:$n(a),compact:!0,verbose:!0})})}),color:L,variant:L!=="success"?"contained":"outlined",sx:{cursor:"pointer",...p},...b,onClick:P}),o.jsx(Un,{id:"popover-info",open:!!c.popoverAnchorEl,anchorEl:c.popoverAnchorEl,onClose:k,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:o.jsx("iframe",{ref:u,title:i("common.subscription"),width:"360px",height:"600px",style:{border:0},src:(Y=m.value)==null?void 0:Y.subscriptionURL})})]})}rn.propTypes={chainHost:g.string.isRequired,nftId:g.string,launcherSessionId:g.string,sx:g.object,retention:g.number,launcherUrl:g.string.isRequired};rn.defaultProps={sx:{},retention:0,nftId:"",launcherSessionId:""};var sn={},Fa=U;Object.defineProperty(sn,"__esModule",{value:!0});var Qr=sn.default=void 0,Va=Fa(H()),qa=o;Qr=sn.default=(0,Va.default)((0,qa.jsx)("path",{d:"M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"}),"Fullscreen");var on={},Wa=U;Object.defineProperty(on,"__esModule",{value:!0});var Zr=on.default=void 0,Ka=Wa(H()),Ga=o;Zr=on.default=(0,Ka.default)((0,Ga.jsx)("path",{d:"M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"}),"FullscreenExit");function Qa(){const{inFullPage:e,toggleFullPage:t}=Hs();return $(yt,{onClick:t,children:e?$(Zr,{sx:{transform:"scale(1.3)"}}):$(Qr,{sx:{transform:"scale(1.3)"}})})}function an({children:e}){var L,P,k;const{t}=Z(),{loading:n,error:r,actions:{refreshBlocklet:s},env:i,blocklet:a}=je(),{info:c}=cs(),l=Ks(),u=G(h=>h.breakpoints.down("md")),[d,f]=v.useState(null),{appId:p,version:b}=i,j=[{label:"App ID",value:p},{label:"App Version",value:b},{label:"App Bundle Name",value:(L=a==null?void 0:a.meta)==null?void 0:L.bundleName},{label:"Server Id",value:c.did},{label:"Server Version",value:c.version}],m=h=>{var S,_,E,R;const I=Array.isArray(h)?h:[h];if(u||I.unshift($(Qa,{})),a){const Y={cursor:"pointer",marginRight:{xs:"8px",md:"48px"}};ls(a)?I.unshift($(nn,{chainHost:(S=a==null?void 0:a.controller)==null?void 0:S.chainHost,nftId:(_=a==null?void 0:a.controller)==null?void 0:_.nftId,launcherSessionId:(E=a==null?void 0:a.controller)==null?void 0:E.launcherSessionId,launcherUrl:(R=a==null?void 0:a.controller)==null?void 0:R.launcherUrl,sx:Y})):c.ownerNft&&c.launcher&&I.unshift($(rn,{chainHost:c.launcher.chainHost,launcherUrl:c.launcher.url,nftId:c.ownerNft.did,launcherSessionId:c.ownerNft.launcherSessionId,sx:Y}))}return I},w=(P=((a==null?void 0:a.environments)||[]).find(h=>h.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:P.value,y=(k=((a==null?void 0:a.environments)||[]).find(h=>h.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:k.value;return v.useEffect(()=>{if(u)f(null);else{const{appLogo:h,appLogoRect:I}=window.blocklet??{};(I||h)&&f(`${I||h}&v=${Date.now()}`)}},[w,y,u]),rt(Za,{legacy:!1,fullWidth:!0,headerAddons:m,headerProps:{logo:d?$("img",{src:d,alt:"logo"}):null},isMobile:u,footerProps:{addon:$(en,{infos:j})},children:[!a&&n&&$(Ue,{relative:"parent",children:$(re,{})}),!a&&r&&rt(Ue,{relative:"parent",children:[rt(C,{display:"flex",alignItems:"center",children:[$(Gr,{color:"error",sx:{marginRight:1}}),_t(r)]}),$(St,{onClick:()=>s(),children:$("span",{style:{textDecoration:"underline"},children:t("common.retry")})})]}),!!a&&$(C,{flex:1,padding:u?2:3,display:"flex",flexDirection:"column",children:$(Bs,{FallbackComponent:Us,resetKeys:[l.pathname],children:e})})]})}an.propTypes={children:g.any};an.defaultProps={children:null};const Za=te(zs)`
163
163
  div.dashboard-content {
164
164
  padding: 0;
165
165
  }
@@ -167,7 +167,7 @@ ${r}
167
167
  max-height: 400px;
168
168
  overflow-y: auto;
169
169
  }
170
- `;function Xa(){const{t:e,locale:t}=Z(),{blocklet:n,launcherSession:r}=je(),[s,i]=Qs({subscriptionURL:"#"});if(v.useEffect(()=>{var l,u;ln(n,r)&&us({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!ds(n)||r.status===$.LAUNCH_SESSION_STATUS.installed)return"";let a=null,c="";return ln(n,r)?(a=o.jsx(jt,{href:s.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:un(r==null?void 0:r.reservedUntil,t)})):fs(n,r)&&(a=o.jsx(Vn,{to:Wn($.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:un(r==null?void 0:r.terminatedAt,t),deadline:ps(r==null?void 0:r.terminatedAt,t)})),o.jsxs(C,{component:Fs,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,o.jsx(N,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const Xr=v.createContext({});function Ac(){return v.useContext(Xr)}const{Provider:Ya,Consumer:Oc}=Xr,{did:W,appId:Ja}=window.env;function ec({children:e}){var h,I;const{t,locale:n}=Z(),{blocklet:r}=je(),[s,i]=v.useState([]),[a,c]=v.useState([]),[l,u]=v.useState([]),d=M.getDisplayName(r),f=((h=((r==null?void 0:r.environments)||[]).find(S=>S.key===J.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:h.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],b=(r==null?void 0:r.trustedFactories)||[],j=(r==null?void 0:r.enablePassportIssuance)!==!1,m=async()=>{try{const S=await Re.doBatchQuery({getRoles:{input:{teamDid:W}},getPermissions:{input:{teamDid:W}},getInvitations:{input:{teamDid:W}}});c((S.getRoles.roles||[]).filter(_=>!$.RBAC_CONFIG.roles.some(E=>E.name===_.name&&(!E.passport||E.ci))).map(_=>(_.hasDescription=!!_.description,_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),_))),u(S.getPermissions.permissions||[]),i(S.getInvitations.invitations||[])}catch(S){ee.error(S.message)}},w=({did:S}={})=>{const _={teamDid:W,user:{did:S}};return Re.getUser({input:_})},y=({query:S,paging:_}={})=>{const E={teamDid:W};return _&&(E.paging=_),S&&(E.query=S),E.sort={lastLoginAt:-1},Re.getUsers({input:E})},T=()=>Re.getUsersCountPerRole({input:{teamDid:W}}),L=()=>m();v.useEffect(()=>{var S;(S=r==null?void 0:r.meta)!=null&&S.did&&m()},[(I=r==null?void 0:r.meta)==null?void 0:I.did]),v.useEffect(()=>{c(S=>S.map(_=>(_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),{..._})))},[t,n]);const P=S=>{S.teamDid===W&&m()};Oe(J.TeamEvents.userAdded,P,[W]),Oe(J.TeamEvents.userRemoved,P,[W]),Oe(J.TeamEvents.userUpdated,P,[W]);const k={teamDid:W,teamIssuerDid:Ja,teamName:d,invitations:s,roles:a,permissions:l,trustedPassports:p,trustedFactories:b,isNodeTeam:!1,enablePassportIssuance:j,refresh:L,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:w,getUsers:y,getUsersCountPerRole:T}};return o.jsx(Ya,{value:k,children:e})}const tc=v.lazy(()=>B(()=>import("./overview-BOIsSliU.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),nc=v.lazy(()=>B(()=>import("./index-C3EMCJb1.js"),__vite__mapDeps([32,2,1,4,33,3,5,6,12,34,35,36,9,10,18,19,37,23,21,8,38,22,39,40,41,26,27,42,28,29,30,31,20,24,17]))),rc=v.lazy(()=>B(()=>import("./index-D6xvEfk8.js"),__vite__mapDeps([43,2,1,12,3,4,5,6,44,14,36,9,18,19,22,23,45,46,10,17,28,29,30,31,20,21,24]))),sc=v.lazy(()=>B(()=>import("./index-Cp0o05oj.js"),__vite__mapDeps([47,2,1,48,3,4,5,6,49,50,51,52,9,33,44,53,54,55,31,34,18,19,22,23,17,37,56,57,58,7,12,8,13,28,29,30,20,21,24]))),oc=v.lazy(()=>B(()=>import("./audit-logs-Ct6NbUiV.js"),__vite__mapDeps([59,3,2,4,1,5,6,39,28,9,60,61,24,62,31,42,63,22,23,29,30,19,20,21,17]))),ic=v.lazy(()=>B(()=>import("./index-DswiSRuh.js"),__vite__mapDeps([64,2,1,4,3,5,6,9,39,10,42,8,33,65,66,55,31,62,24,67,20,21,48,68,69,54,70,23,71,28,22,29,30,19,17]))),ac=v.lazy(()=>B(()=>import("./log-B5shqSVV.js"),__vite__mapDeps([72,1,2,28,3,4,5,6,9,73,55,74]))),cc=v.lazy(()=>B(()=>import("./index-B8ZVPR0B.js"),__vite__mapDeps([75,2,1,9,3,4,5,6,12,76,22,23,19,10,77,78,55,42,73,79,17,33,66,41,25,54,71,38,80,81,51,37,30,53,60,61,63]))),lc=v.lazy(()=>B(()=>import("./config-navigation-JwYI5c3u.js"),__vite__mapDeps([82,2,3,4,1,5,6,83,9,56,46,84,31,23,28,22,29,30,19,20,21,24,17]))),uc=v.lazy(()=>B(()=>import("./index-DfOPIsLs.js"),__vite__mapDeps([85,1,2,5,4,9,3,6,86,25,87,88,38,23,8,27,30,58]))),dc=v.lazy(()=>B(()=>import("./component-Cq51erjd.js"),__vite__mapDeps([89,1,2,4,3,5,6,12,50,51,52,9,33,44,53,58,18,19,90,83,70,78,37,54,69,23,91,80,81,38,42,22,30,10,92,93,88,25,94,45,46,60,61,84,8,28,16,86,95,87,96,14,24,55,29,26,27,31,20,21,17]))),fc=v.lazy(()=>B(()=>import("./analytics-D32wGcj3.js"),__vite__mapDeps([97,1,2,3,4,5,6,67,9,20,21,48,68,69,54,70,23,71,31,55,28,22,29,30,19,24,17]))),pc="/.well-known/service/user/notifications";function hc(){var P,k;const e=qn(),{tab:t="overview"}=Gs(),{blocklet:n,actions:{refreshBlocklet:r}}=je(),{t:s}=Z(),{session:i}=Qn(),a=He(()=>{var h;return(h=i==null?void 0:i.user)==null?void 0:h.did},[i]),{enqueueSnackbar:c}=Hn(),l=He(()=>{var h;return((h=i.user)==null?void 0:h.role)&&ms.includes(i.user.role)},[i]),u=(P=n==null?void 0:n.meta)==null?void 0:P.did,d=h=>{e(`${$.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${h}`)},f=()=>{r()},p=!n||dn(n.status)?[]:M.getAppMissingConfigs(n),b=[{label:s("common.overview"),value:"overview"},{label:o.jsx(Ps,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!p.length,children:s("common.components")}),value:"components"}];dn(n==null?void 0:n.status)||b.push({label:s("common.configuration"),value:"configuration"}),b.push({label:s("common.auditLogs"),value:"audit-logs"}),l&&b.push({label:s("common.notificationRecords"),value:"notifications"}),n&&((k=n.children)!=null&&k.length)&&n.structVersion===$.APP_STRUCT_VERSION&&b.push({label:s("common.logs"),value:"logs"}),b.push({label:s("common.configNavigation"),value:"navigation"});const j=o.jsx(oc,{scope:u,categories:["blocklet","team","security","certificates","gateway"]});Oe(`${a}/${$.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,h=>{const{severity:I,description:S}=h||{},_=["error","warning"].includes(I)||h.sticky;c(S,{variant:I,autoHideDuration:_?null:5e3,content:E=>o.jsx(qo,{viewAllUrl:pc,keyId:E,notification:h,content:o.jsx(ii,{notification:h,minimal:!0,rows:0})})})},[],"user");const m=v.useCallback(()=>l?o.jsx(ic,{blocklet:n}):o.jsx(qs,{status:403}),[n,l]),w={overview:o.jsx(tc,{}),members:o.jsx(C,{mt:-5,children:o.jsx(nc,{type:"blocklet",createPassportSvg:fn})}),passports:o.jsx(C,{mt:-4.5,children:o.jsx(rc,{createPassportSvg:fn})}),components:dc,configuration:o.jsx(sc,{blocklet:n,onUpdate:f}),"audit-logs":j,notifications:m,logs:ac,navigation:lc,"did-spaces":o.jsx(uc,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:o.jsx(C,{mt:-5,children:o.jsx(fc,{})}),publish:o.jsx(C,{mt:-3,children:o.jsx(cc,{})})},y=w[t]||w.overview,T=!["members","passports","analytics","publish","notifications","did-spaces"].includes(t),L=n?o.jsxs(zt,{type:"components",children:[T&&o.jsx(C,{pt:3,children:o.jsx(Ws,{tabs:b,current:t,onChange:d,scrollButtons:"auto"})}),o.jsx("div",{className:"page-content",children:o.jsx(v.Suspense,{fallback:o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})}),children:v.isValidElement(y)?y:o.jsx(y,{blocklet:n})})})]}):o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})});return o.jsx(gs,{children:o.jsx(ec,{children:o.jsx(an,{children:o.jsxs(gc,{children:[T&&o.jsxs(C,{component:"div",className:"page-header",children:[o.jsxs(N,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?o.jsx(eo,{blocklet:n,style:{marginRight:16}}):null,n?o.jsxs(C,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(C,{children:M.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&o.jsx(Nt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${s("common.blocklet")} ${s("common.detail")}`]}),n?o.jsx(Oo,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:h}={})=>{h&&ee.error(h.message)},variant:"group"}):null]}),o.jsx(ar,{}),o.jsx(Xa,{}),L]})})})})}function mc(){var r;const{blocklet:e}=je(),{t}=Z(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return v.useEffect(()=>{const s=hs();return n&&s.connect(),()=>{n&&s.isConnected()&&s.disconnect()}},[n]),o.jsxs(o.Fragment,{children:[o.jsx(Vs,{children:o.jsx("title",{children:t("pageTitle.dashboard")})}),o.jsx(hc,{})]})}const gc=te.main`
170
+ `;function Ya(){const{t:e,locale:t}=Z(),{blocklet:n,launcherSession:r}=je(),[s,i]=Qs({subscriptionURL:"#"});if(v.useEffect(()=>{var l,u;ln(n,r)&&us({launcherSessionId:(l=n==null?void 0:n.controller)==null?void 0:l.launcherSessionId,launcherUrl:(u=n==null?void 0:n.controller)==null?void 0:u.launcherUrl,locale:t}).then(d=>{i({subscriptionURL:d})}).catch(d=>{console.error("get subscription url error:",d)})},[n,r]),!n||!r||!ds(n)||r.status===O.LAUNCH_SESSION_STATUS.installed)return"";let a=null,c="";return ln(n,r)?(a=o.jsx(jt,{href:s.subscriptionURL,children:e("blocklet.manageSubscription")}),c=e("blocklet.suspendedCausedByExpired",{deadline:un(r==null?void 0:r.reservedUntil,t)})):fs(n,r)&&(a=o.jsx(Vn,{to:Wn(O.WELLKNOWN_BLOCKLET_ADMIN_PATH,"/did-spaces"),children:e("common.backup")}),c=e("blocklet.suspendedCausedByTerminated",{canceledAt:un(r==null?void 0:r.terminatedAt,t),deadline:ps(r==null?void 0:r.terminatedAt,t)})),o.jsxs(C,{component:Fs,type:"error",sx:{"&> .alert-content":{display:"block"}},children:[c,o.jsx(N,{component:"span",sx:{marginLeft:"4px"},children:a})]})}const Yr=v.createContext({});function Ac(){return v.useContext(Yr)}const{Provider:Ja,Consumer:$c}=Yr,{did:W,appId:Xa}=window.env;function ec({children:e}){var h,I;const{t,locale:n}=Z(),{blocklet:r}=je(),[s,i]=v.useState([]),[a,c]=v.useState([]),[l,u]=v.useState([]),d=M.getDisplayName(r),f=((h=((r==null?void 0:r.environments)||[]).find(S=>S.key===X.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR))==null?void 0:h.value)||"auto",p=(r==null?void 0:r.trustedPassports)||[],b=(r==null?void 0:r.trustedFactories)||[],j=(r==null?void 0:r.enablePassportIssuance)!==!1,m=async()=>{try{const S=await Re.doBatchQuery({getRoles:{input:{teamDid:W}},getPermissions:{input:{teamDid:W}},getInvitations:{input:{teamDid:W}}});c((S.getRoles.roles||[]).filter(_=>!O.RBAC_CONFIG.roles.some(E=>E.name===_.name&&(!E.passport||E.ci))).map(_=>(_.hasDescription=!!_.description,_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),_))),u(S.getPermissions.permissions||[]),i(S.getInvitations.invitations||[])}catch(S){ee.error(S.message)}},w=({did:S}={})=>{const _={teamDid:W,user:{did:S}};return Re.getUser({input:_})},y=({query:S,paging:_}={})=>{const E={teamDid:W};return _&&(E.paging=_),S&&(E.query=S),E.sort={lastLoginAt:-1},Re.getUsers({input:E})},T=()=>Re.getUsersCountPerRole({input:{teamDid:W}}),L=()=>m();v.useEffect(()=>{var S;(S=r==null?void 0:r.meta)!=null&&S.did&&m()},[(I=r==null?void 0:r.meta)==null?void 0:I.did]),v.useEffect(()=>{c(S=>S.map(_=>(_.hasDescription||(_.description=t("team.passport.description",{teamName:d,title:_.title})),{..._})))},[t,n]);const P=S=>{S.teamDid===W&&m()};$e(X.TeamEvents.userAdded,P,[W]),$e(X.TeamEvents.userRemoved,P,[W]),$e(X.TeamEvents.userUpdated,P,[W]);const k={teamDid:W,teamIssuerDid:Xa,teamName:d,invitations:s,roles:a,permissions:l,trustedPassports:p,trustedFactories:b,isNodeTeam:!1,enablePassportIssuance:j,refresh:L,passportColor:f,endpoint:window.location.origin,blocklet:r,api:{getUser:w,getUsers:y,getUsersCountPerRole:T}};return o.jsx(Ja,{value:k,children:e})}const tc=v.lazy(()=>B(()=>import("./overview-DMjokddi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))),nc=v.lazy(()=>B(()=>import("./index-D6IQwB0H.js"),__vite__mapDeps([32,2,1,4,33,3,5,6,12,34,35,36,9,10,18,19,37,23,21,8,38,22,39,40,41,26,27,42,28,29,30,31,20,24,17]))),rc=v.lazy(()=>B(()=>import("./index-PcImULKW.js"),__vite__mapDeps([43,2,1,12,3,4,5,6,44,14,36,9,18,19,22,23,45,46,10,17,28,29,30,31,20,21,24]))),sc=v.lazy(()=>B(()=>import("./index-Dzj545ro.js"),__vite__mapDeps([47,2,1,48,3,4,5,6,49,50,51,52,9,33,44,53,54,55,31,34,18,19,22,23,17,37,56,57,58,7,12,8,13,28,29,30,20,21,24]))),oc=v.lazy(()=>B(()=>import("./audit-logs-BJdGmYfI.js"),__vite__mapDeps([59,3,2,4,1,5,6,39,28,9,60,61,24,62,31,42,63,22,23,29,30,19,20,21,17]))),ic=v.lazy(()=>B(()=>import("./index-Cqc33Ts_.js"),__vite__mapDeps([64,2,1,4,3,5,6,9,39,10,42,8,33,65,66,55,31,62,24,67,20,21,48,68,69,54,70,23,71,28,22,29,30,19,17]))),ac=v.lazy(()=>B(()=>import("./log-D4hWjoeK.js"),__vite__mapDeps([72,1,2,28,3,4,5,6,9,73,55,74]))),cc=v.lazy(()=>B(()=>import("./index-C7dWd4bS.js"),__vite__mapDeps([75,2,1,9,3,4,5,6,12,76,22,23,19,10,77,78,55,42,73,79,17,33,66,41,25,54,71,38,80,81,51,37,30,53,60,61,63]))),lc=v.lazy(()=>B(()=>import("./config-navigation-B5FcBZZN.js"),__vite__mapDeps([82,2,3,4,1,5,6,83,9,56,46,84,31,23,28,22,29,30,19,20,21,24,17]))),uc=v.lazy(()=>B(()=>import("./index-DzU25sJ1.js"),__vite__mapDeps([85,1,2,5,4,9,3,6,86,25,87,88,38,23,8,27,30,58]))),dc=v.lazy(()=>B(()=>import("./component-DOOz4rgK.js"),__vite__mapDeps([89,1,2,4,3,5,6,12,50,51,52,9,33,44,53,58,18,19,90,83,70,78,37,54,69,23,91,80,81,38,42,22,30,10,92,93,88,25,94,45,46,60,61,84,8,28,16,86,95,87,96,14,24,55,29,26,27,31,20,21,17]))),fc=v.lazy(()=>B(()=>import("./analytics-X9VRwkzm.js"),__vite__mapDeps([97,1,2,3,4,5,6,67,9,20,21,48,68,69,54,70,23,71,31,55,28,22,29,30,19,24,17]))),pc="/.well-known/service/user/notifications";function hc(){var P,k;const e=qn(),{tab:t="overview"}=Gs(),{blocklet:n,actions:{refreshBlocklet:r}}=je(),{t:s}=Z(),{session:i}=Qn(),a=He(()=>{var h;return(h=i==null?void 0:i.user)==null?void 0:h.did},[i]),{enqueueSnackbar:c}=Hn(),l=He(()=>{var h;return((h=i.user)==null?void 0:h.role)&&ms.includes(i.user.role)},[i]),u=(P=n==null?void 0:n.meta)==null?void 0:P.did,d=h=>{e(`${O.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${h}`)},f=()=>{r()},p=!n||dn(n.status)?[]:M.getAppMissingConfigs(n),b=[{label:s("common.overview"),value:"overview"},{label:o.jsx(Ps,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!p.length,children:s("common.components")}),value:"components"}];dn(n==null?void 0:n.status)||b.push({label:s("common.configuration"),value:"configuration"}),b.push({label:s("common.auditLogs"),value:"audit-logs"}),l&&b.push({label:s("common.notificationRecords"),value:"notifications"}),n&&((k=n.children)!=null&&k.length)&&n.structVersion===O.APP_STRUCT_VERSION&&b.push({label:s("common.logs"),value:"logs"}),b.push({label:s("common.configNavigation"),value:"navigation"});const j=o.jsx(oc,{scope:u,categories:["blocklet","team","security","certificates","gateway"]});$e(`${a}/${O.EVENTS.NOTIFICATION_BLOCKLET_CREATE}`,h=>{const{severity:I,description:S}=h||{},_=["error","warning"].includes(I)||h.sticky;c(S,{variant:I,autoHideDuration:_?null:5e3,content:E=>o.jsx(qo,{viewAllUrl:pc,keyId:E,notification:h,content:o.jsx(ii,{notification:h,minimal:!0,rows:0})})})},[],"user");const m=v.useCallback(()=>l?o.jsx(ic,{blocklet:n}):o.jsx(qs,{status:403}),[n,l]),w={overview:o.jsx(tc,{}),members:o.jsx(C,{mt:-5,children:o.jsx(nc,{type:"blocklet",createPassportSvg:fn})}),passports:o.jsx(C,{mt:-4.5,children:o.jsx(rc,{createPassportSvg:fn})}),components:dc,configuration:o.jsx(sc,{blocklet:n,onUpdate:f}),"audit-logs":j,notifications:m,logs:ac,navigation:lc,"did-spaces":o.jsx(uc,{navOrientation:"horizontal",sx:{mt:-4}}),analytics:o.jsx(C,{mt:-5,children:o.jsx(fc,{})}),publish:o.jsx(C,{mt:-3,children:o.jsx(cc,{})})},y=w[t]||w.overview,T=!["members","passports","analytics","publish","notifications","did-spaces"].includes(t),L=n?o.jsxs(zt,{type:"components",children:[T&&o.jsx(C,{pt:3,children:o.jsx(Ws,{tabs:b,current:t,onChange:d,scrollButtons:"auto"})}),o.jsx("div",{className:"page-content",children:o.jsx(v.Suspense,{fallback:o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})}),children:v.isValidElement(y)?y:o.jsx(y,{blocklet:n})})})]}):o.jsx(Ue,{relative:"parent",children:o.jsx(re,{})});return o.jsx(gs,{children:o.jsx(ec,{children:o.jsx(an,{children:o.jsxs(gc,{children:[T&&o.jsxs(C,{component:"div",className:"page-header",children:[o.jsxs(N,{component:"h6",variant:"h6",className:"page-title",color:"textPrimary",children:[n?o.jsx(eo,{blocklet:n,style:{marginRight:16}}):null,n?o.jsxs(C,{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1,children:[o.jsx(C,{children:M.getDisplayName(n)}),(n==null?void 0:n.status)!=="unknown"&&o.jsx(Nt,{size:"12px",status:n.status,source:n.source,progress:n.progress})]}):`${s("common.blocklet")} ${s("common.detail")}`]}),n?o.jsx($o,{className:"page-actions",hasPermission:!0,blocklet:n,onStart:()=>{},onComplete:({error:h}={})=>{h&&ee.error(h.message)},variant:"group"}):null]}),o.jsx(ar,{}),o.jsx(Ya,{}),L]})})})})}function mc(){var r;const{blocklet:e}=je(),{t}=Z(),n=(r=e==null?void 0:e.meta)==null?void 0:r.did;return v.useEffect(()=>{const s=hs();return n&&s.connect(),()=>{n&&s.isConnected()&&s.disconnect()}},[n]),o.jsxs(o.Fragment,{children:[o.jsx(Vs,{children:o.jsx("title",{children:t("pageTitle.dashboard")})}),o.jsx(hc,{})]})}const gc=te.main`
171
171
  .page-header {
172
172
  display: flex;
173
173
  justify-content: space-between;
@@ -213,4 +213,4 @@ ${r}
213
213
  margin-bottom: 15px;
214
214
  }
215
215
  }
216
- `,$c=Object.freeze(Object.defineProperty({__proto__:null,default:mc},Symbol.toStringTag,{value:"Module"}));export{Nt as B,Mt as W,rr as a,Jn as b,de as c,Gr as d,Yn as e,kc as f,$c as g,Ac as u};
216
+ `,Oc=Object.freeze(Object.defineProperty({__proto__:null,default:mc},Symbol.toStringTag,{value:"Module"}));export{Nt as B,Mt as W,rr as a,Xn as b,de as c,Gr as d,Jn as e,kc as f,Oc as g,Ac as u};
@@ -1 +1 @@
1
- import{j as s,bp as p,E as r}from"./vendor-mui-core-xF5F4eT7.js";import{L as d}from"./vendor-react-D-afvo_7.js";import{D as f}from"./vendor-arcblock-oqH5gsLR.js";function o({did:a,href:t,external:n,avatarProps:l,...i}){const e=s.jsx(f,{did:a,...i});return t?n?s.jsx(p,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}o.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};o.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{o as W};
1
+ import{j as s,bp as p,E as r}from"./vendor-mui-core-xF5F4eT7.js";import{L as d}from"./vendor-react-D-afvo_7.js";import{D as f}from"./vendor-arcblock-DZrZ_x_3.js";function o({did:a,href:t,external:n,avatarProps:l,...i}){const e=s.jsx(f,{did:a,...i});return t?n?s.jsx(p,{target:"_blank",href:t,underline:"hover",children:e}):s.jsx(d,{to:t,children:e}):e}o.propTypes={did:r.string.isRequired,to:r.string,href:r.string,avatarProps:r.object,external:r.bool};o.defaultProps={to:"",href:"",avatarProps:{},external:!1};export{o as W};
@@ -1,4 +1,4 @@
1
- import{a1 as _,j as t,a3 as i,T as j,I as b,C as w,E as y,aa as A}from"./vendor-mui-core-xF5F4eT7.js";import{I as L,o as W,f as R,ag as H,d as S}from"./index-1soveoNH.js";import{D as z,a as O,B as q,A as N}from"./domain-list-DxhvsNeW.js";import{_ as $,a0 as F,aU as K}from"./vendor-arcblock-oqH5gsLR.js";import{P as M}from"./page-header-DqhVsAOw.js";import{r}from"./vendor-react-D-afvo_7.js";import{_ as U}from"./useSetState-Crt4S51m.js";import{S as l}from"./button-C4NPz_vA.js";import{S as Y}from"./layout-D9K6IZdV.js";import{S as G}from"./step-actions-DLkXmgm2.js";import"./vendor-utils-5TjOM6td.js";import"./vendor-hooks-BKxTDk_P.js";import"./Add-_iRymiOl.js";import"./base32-Bb5-8D4h.js";import"./LockIcon-D-W4Rph6.js";import"./CheckCircle-Tp5VOipm.js";import"./util-DMMg7Sbk.js";import"./permission-C4wOllow.js";import"./session-B07p7iif.js";import"./useAsyncRetry-Bmo6a1Zp.js";import"./useAsync-Ua5iss51.js";import"./confirm-CPtiZE0r.js";import"./format-error-C0Ke3VXF.js";import"./InfoOutlined-C5fMx7-l.js";import"./api-K65cLqol.js";import"./index-Fyc9Yh32.js";import"./actions-CS0A6ZvH.js";import"./MoreHoriz-BkVO_QXB.js";import"./content-layout-cWwRTmIc.js";var p={},J=_;Object.defineProperty(p,"__esModule",{value:!0});var g=p.default=void 0,Q=J($()),V=t;g=p.default=(0,Q.default)((0,V.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"}),"Recommend");function c({onNext:s,onPrevious:v}){var h,D;const{t:o}=r.useContext(F),{info:C}=L(),[k,u]=r.useState(!1),{blocklet:a}=W(),[x,I]=r.useState(""),[d,P]=r.useState(!1),T=(((a==null?void 0:a.site)||{}).domainAliases||[]).map(e=>R.replaceSlotToIp(e.value,x)),[n,m]=U({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),f=(D=(h=a.environments)==null?void 0:h.find(e=>e.key==="BLOCKLET_APP_PK"))==null?void 0:D.value,B=T.find(e=>H.isDidDomain(e));return r.useEffect(()=>{S.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:e})=>{I(e.address||"")}).catch(e=>{console.error(e.message)})},[]),t.jsxs(X,{children:[t.jsx("div",{className:"header",children:t.jsx(M,{title:o("setup.domain.title"),subTitle:o("setup.domain.subTitle"),onClickBack:v})}),t.jsxs(i,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[t.jsxs(i,{children:[t.jsxs(i,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[t.jsx(i,{display:"inline",children:o("setup.domain.skipStart")}),t.jsx(l,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:t.jsx("span",{style:{textDecoration:"underline"},children:o("setup.domain.skip")})}),t.jsx(i,{display:"inline",children:o("setup.domain.skipEnd")})]}),t.jsx(i,{sx:{marginTop:"12px"},children:t.jsx(O,{listOnly:!0,inSetup:!0})})]}),t.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[C.nftDomainUrl&&t.jsxs(t.Fragment,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(g,{color:"primary"}),t.jsx(j,{fontWeight:"fontWeightBold",children:o("setup.domain.buyDIDDomainTitle")})]}),t.jsxs(i,{children:[t.jsx(q,{appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,title:o("common.buy"),inBlockletSetup:!0}),t.jsx(j,{sx:{marginTop:1},children:o("setup.domain.buyDIDDomainTips")})]})]}),t.jsxs(i,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",cursor:"pointer"},onClick:()=>P(!d),children:[t.jsx(i,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o("setup.domain.addTitle")}),t.jsx(b,{sx:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s"},children:t.jsx(K,{})})]}),t.jsx(w,{in:d,timeout:"auto",unmountOnExit:!0,children:t.jsx(N,{autoFocus:!1,appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,cnameDomain:B,currentIp:x,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:e=>S.get(`/dns-resolve?hostname=${e}`),onInputDomain:e=>{m({domain:e.domain,type:e.type}),u(e.error)},onStateChange:e=>m({addDomainState:e}),onSuccess:e=>{const E={domain:e.domain,type:e.type,nftDid:e.nftDid,chainHost:e.chainHost};m(E),s()},onError:u})})]})]})]}),t.jsx(G,{mt:8,disabled:!!n.addDomainState.text,blocklet:a,onStartNow:()=>s("complete"),children:n.domain?t.jsx(l,{variant:"contained",loading:!!n.addDomainState.text,disabled:k||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||o("setup.next")}):t.jsx(l,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function _t(s){return t.jsx(z,{children:t.jsx(c,{...s})})}c.propTypes={onNext:y.func,onPrevious:y.func};c.defaultProps={onNext:()=>{},onPrevious:()=>{}};const X=A(Y)`
1
+ import{a1 as b,j as t,a3 as i,T as j,I as _,C as w,E as y,aa as A}from"./vendor-mui-core-xF5F4eT7.js";import{I as L,o as W,f as R,ag as H,d as S}from"./index-LIf2LIyz.js";import{D as z,a as O,B as $,A as q}from"./domain-list-h_f8stui.js";import{$ as N,a1 as F,aV as K}from"./vendor-arcblock-DZrZ_x_3.js";import{P as M}from"./page-header-xWImGBdx.js";import{r}from"./vendor-react-D-afvo_7.js";import{_ as U}from"./useSetState-Crt4S51m.js";import{S as l}from"./button-BZmMffY2.js";import{S as V}from"./layout-BwWrVSXk.js";import{S as Y}from"./step-actions-BJ9p7QSx.js";import"./vendor-utils-5TjOM6td.js";import"./vendor-hooks-BKxTDk_P.js";import"./Add-DSPtuudj.js";import"./base32-BAfsRZF6.js";import"./LockIcon-D-W4Rph6.js";import"./CheckCircle-BxzRfCun.js";import"./util-BpKZM3xV.js";import"./permission-C0p6f4_S.js";import"./session-CM1ewS-k.js";import"./useAsyncRetry-Bmo6a1Zp.js";import"./useAsync-Ua5iss51.js";import"./confirm-CpCj_oj-.js";import"./format-error-C0Ke3VXF.js";import"./InfoOutlined-C_J3Y0fX.js";import"./api-K65cLqol.js";import"./index-DGzAI_hi.js";import"./actions-CPjP-DJ-.js";import"./MoreHoriz-JX8PbVXG.js";import"./content-layout-cWwRTmIc.js";var p={},G=b;Object.defineProperty(p,"__esModule",{value:!0});var g=p.default=void 0,J=G(N()),Q=t;g=p.default=(0,J.default)((0,Q.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2m6 9.8a.9.9 0 0 1-.1.5l-2.1 4.9a1.34 1.34 0 0 1-1.3.8H9a2 2 0 0 1-2-2v-5a1.28 1.28 0 0 1 .4-1L12 5l.69.69a1.08 1.08 0 0 1 .3.7v.2L12.41 10H17a1 1 0 0 1 1 1z"}),"Recommend");function c({onNext:s,onPrevious:v}){var h,D;const{t:o}=r.useContext(F),{info:C}=L(),[k,u]=r.useState(!1),{blocklet:a}=W(),[x,I]=r.useState(""),[d,P]=r.useState(!1),T=(((a==null?void 0:a.site)||{}).domainAliases||[]).map(e=>R.replaceSlotToIp(e.value,x)),[n,m]=U({domain:"",invalidDNSDomain:null,type:"",addDomainState:{text:""}}),f=(D=(h=a.environments)==null?void 0:h.find(e=>e.key==="BLOCKLET_APP_PK"))==null?void 0:D.value,B=T.find(e=>H.isDidDomain(e));return r.useEffect(()=>{S.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:e})=>{I(e.address||"")}).catch(e=>{console.error(e.message)})},[]),t.jsxs(X,{children:[t.jsx("div",{className:"header",children:t.jsx(M,{title:o("setup.domain.title"),subTitle:o("setup.domain.subTitle"),onClickBack:v})}),t.jsxs(i,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[t.jsxs(i,{children:[t.jsxs(i,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[t.jsx(i,{display:"inline",children:o("setup.domain.skipStart")}),t.jsx(l,{variant:"text",size:"small",disabled:!!n.addDomainState.text,onClick:()=>s(),style:{paddingTop:0},children:t.jsx("span",{style:{textDecoration:"underline"},children:o("setup.domain.skip")})}),t.jsx(i,{display:"inline",children:o("setup.domain.skipEnd")})]}),t.jsx(i,{sx:{marginTop:"12px"},children:t.jsx(O,{listOnly:!0,inSetup:!0})})]}),t.jsxs(i,{sx:{display:"flex",flexDirection:"column",gap:2},children:[C.nftDomainUrl&&t.jsxs(t.Fragment,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(g,{color:"primary"}),t.jsx(j,{fontWeight:"fontWeightBold",children:o("setup.domain.buyDIDDomainTitle")})]}),t.jsxs(i,{children:[t.jsx($,{appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,title:o("common.buy"),inBlockletSetup:!0}),t.jsx(j,{sx:{marginTop:1},children:o("setup.domain.buyDIDDomainTips")})]})]}),t.jsxs(i,{children:[t.jsxs(i,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",cursor:"pointer"},onClick:()=>P(!d),children:[t.jsx(i,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:o("setup.domain.addTitle")}),t.jsx(_,{sx:{transform:d?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.3s"},children:t.jsx(K,{})})]}),t.jsx(w,{in:d,timeout:"auto",unmountOnExit:!0,children:t.jsx(q,{autoFocus:!1,appPk:f,appId:a.appPid,siteId:a.site.id,teamDid:a.meta.did,cnameDomain:B,currentIp:x,inBlockletSetup:!0,shouldCheckDomain:!0,resolveDomain:e=>S.get(`/dns-resolve?hostname=${e}`),onInputDomain:e=>{m({domain:e.domain,type:e.type}),u(e.error)},onStateChange:e=>m({addDomainState:e}),onSuccess:e=>{const E={domain:e.domain,type:e.type,nftDid:e.nftDid,chainHost:e.chainHost};m(E),s()},onError:u})})]})]})]}),t.jsx(Y,{mt:8,disabled:!!n.addDomainState.text,blocklet:a,onStartNow:()=>s("complete"),children:n.domain?t.jsx(l,{variant:"contained",loading:!!n.addDomainState.text,disabled:k||!!n.addDomainState.text||!n.domain,onClick:()=>s(),children:n.addDomainState.text||o("setup.next")}):t.jsx(l,{variant:"contained",disabled:!!n.addDomainState.text,onClick:()=>s(),children:o("setup.skip")})})]})}function bt(s){return t.jsx(z,{children:t.jsx(c,{...s})})}c.propTypes={onNext:y.func,onPrevious:y.func};c.defaultProps={onNext:()=>{},onPrevious:()=>{}};const X=A(V)`
2
2
  height: 100%;
3
3
  overflow-y: hidden;
4
4
  .form {
@@ -6,4 +6,4 @@ import{a1 as _,j as t,a3 as i,T as j,I as b,C as w,E as y,aa as A}from"./vendor-
6
6
  height: 100%;
7
7
  word-break: break-all;
8
8
  }
9
- `;export{_t as default};
9
+ `;export{bt as default};