@abtnode/webapp 1.17.8 → 1.17.9

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 (184) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-CXgBZcQU.js → AdapterDayjs-DWO9WIHe.js} +1 -1
  4. package/dist/assets/{Add-B-lIYZBc.js → Add-CaX-C76B.js} +1 -1
  5. package/dist/assets/ArrowDropDown-225S5d4X.js +1 -0
  6. package/dist/assets/{Autocomplete-BHqH72uG.js → Autocomplete-CoHLc9sw.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CpZ2DeBG.js → Breadcrumbs-CtmWaPWD.js} +1 -1
  8. package/dist/assets/{ButtonGroup-CXwzM552.js → ButtonGroup-CFUm4DnA.js} +1 -1
  9. package/dist/assets/{CSSTransition-hTlKGu0l.js → CSSTransition-BoEOBxnu.js} +1 -1
  10. package/dist/assets/{CallMerge-V8M4tzIM.js → CallMerge-g03IIE2c.js} +1 -1
  11. package/dist/assets/{CardContent-MdG6Fo_s.js → CardContent-De2diFnM.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BPs9Erbv.js → ChevronLeft-6mKauCKy.js} +1 -1
  13. package/dist/assets/{ChevronRight-C_yvQN06.js → ChevronRight-Ba1GeQFe.js} +1 -1
  14. package/dist/assets/{Clear-XkW6YpHE.js → Clear-B_hKjaJj.js} +1 -1
  15. package/dist/assets/{Delete-CCasVLgy.js → Delete-B-jFRJwJ.js} +1 -1
  16. package/dist/assets/{DeleteOutline-CocEa6gq.js → DeleteOutline-7b3f7PEm.js} +1 -1
  17. package/dist/assets/{Done-DfHgd6VN.js → Done-L7ZRzL_V.js} +1 -1
  18. package/dist/assets/{Edit-CGdW8_LW.js → Edit-DUM500XS.js} +1 -1
  19. package/dist/assets/{ErrorOutline-D3nJBXYA.js → ErrorOutline-DsKZTEd8.js} +1 -1
  20. package/dist/assets/{FilterList-BiaeVs0C.js → FilterList-ChbigVQM.js} +1 -1
  21. package/dist/assets/{Google-D9HgkG4U.js → Google-CWlHJZAv.js} +1 -1
  22. package/dist/assets/{HelpOutline-s5mQqTw1.js → HelpOutline-dihfOb5v.js} +1 -1
  23. package/dist/assets/{Launch-DHnB5pzO.js → Launch-BkVAoVZE.js} +1 -1
  24. package/dist/assets/{Link-DUSQD8mc.js → Link-DOvnx4g5.js} +1 -1
  25. package/dist/assets/{ListItemButton-BIo7wBNv.js → ListItemButton-BQDScowx.js} +1 -1
  26. package/dist/assets/{ListSubheader-rZisNvzB.js → ListSubheader-Cl_ECqW2.js} +1 -1
  27. package/dist/assets/{LoadingButton-egcGN7yK.js → LoadingButton-CDH-grwB.js} +1 -1
  28. package/dist/assets/{LottiePlayer.modern-DuQJ5g1j.js → LottiePlayer.modern-CLfr42jY.js} +1 -1
  29. package/dist/assets/{MoreVert-Cw1fjU9L.js → MoreVert-DV_CQ8ui.js} +1 -1
  30. package/dist/assets/{OpenInNew-2i4mGCRx.js → OpenInNew-DXke8B9Y.js} +1 -1
  31. package/dist/assets/{Refresh-BIkqgW7p.js → Refresh-D_WONHhn.js} +1 -1
  32. package/dist/assets/{Replay-3PaYn2br.js → Replay-B4flsCqt.js} +1 -1
  33. package/dist/assets/{Search-mc0LftDb.js → Search-z9bCqmrZ.js} +1 -1
  34. package/dist/assets/{Stepper-CnqNXODv.js → Stepper-DKmKSFCG.js} +1 -1
  35. package/dist/assets/{TableSearch-ZIwL7jK3.js → TableSearch-C5Kz0G1P.js} +1 -1
  36. package/dist/assets/{ToggleButtonGroup-DeGfqT0G.js → ToggleButtonGroup-BZx2FaaL.js} +1 -1
  37. package/dist/assets/{UnfoldMore-DFA58tLQ.js → UnfoldMore-B28R2WSj.js} +1 -1
  38. package/dist/assets/{Verified-se8hbTqT.js → Verified-TZI1j-Va.js} +1 -1
  39. package/dist/assets/{VerifiedUser-8QA2XNlm.js → VerifiedUser-Ddu-50lW.js} +1 -1
  40. package/dist/assets/{ViewList-DgyKMmIc.js → ViewList-D-osXRf3.js} +1 -1
  41. package/dist/assets/{Visibility-BqBwXDHr.js → Visibility-BVnDeVk-.js} +1 -1
  42. package/dist/assets/{_createAggregator-BS_ZCLsv.js → _createAggregator-DvxY8dpL.js} +1 -1
  43. package/dist/assets/{actions-BuX7-i-0.js → actions-CUnz9wHy.js} +1 -1
  44. package/dist/assets/{actions-DR8B4Taf.js → actions-TKbswZRW.js} +1 -1
  45. package/dist/assets/{actions-Zy-oEKVg.js → actions-rnAVohGM.js} +1 -1
  46. package/dist/assets/{agreement-3SHQ4MuR.js → agreement-B81jBHjm.js} +1 -1
  47. package/dist/assets/api-BLIecOBq.js +1 -0
  48. package/dist/assets/{appearance-CRQaeOoe.js → appearance-BnoPFfcA.js} +1 -1
  49. package/dist/assets/{audit-logs-BGRhRsNS.js → audit-logs-rRPPzNCV.js} +1 -1
  50. package/dist/assets/{babel-BILHfcMU.js → babel-BhzMK_Nh.js} +1 -1
  51. package/dist/assets/{base-chart-Cp-etWR-.js → base-chart-B-7wNcRu.js} +1 -1
  52. package/dist/assets/{blocklet-D7q_eJsm.js → blocklet-B65NZ0SL.js} +1 -1
  53. package/dist/assets/{chain-DDmwEbOF.js → chain-De_ycb3s.js} +1 -1
  54. package/dist/assets/{click-to-copy-wk3E32eY.js → click-to-copy-BgfWbRfM.js} +1 -1
  55. package/dist/assets/cloneDeep-BBtZ6NeX.js +1 -0
  56. package/dist/assets/{config-navigation-iUuwjLA_.js → config-navigation-CAY0oLM7.js} +3 -3
  57. package/dist/assets/{connect-DGRM2e01.js → connect-DeAl0a0w.js} +1 -1
  58. package/dist/assets/{connect-to-BdinmIba.js → connect-to-TtcHrCpE.js} +1 -1
  59. package/dist/assets/{delete-confirm-C8X53PNk.js → delete-confirm-BCALKic0.js} +1 -1
  60. package/dist/assets/{depsEqual-FU6HOfMn.js → depsEqual-iVI-ppGn.js} +1 -1
  61. package/dist/assets/{detail-BX_klHKR.js → detail-B9b8qEuw.js} +2 -2
  62. package/dist/assets/{domains-DlW2t7QG.js → domains-ilDCawII.js} +1 -1
  63. package/dist/assets/{download-CHMW-VV9.js → download-BLP_P5GN.js} +1 -1
  64. package/dist/assets/{edit.svg-CBqxioRV.js → edit.svg-088QpjsR.js} +1 -1
  65. package/dist/assets/emotion-cache.browser.esm-fPnQyG8C.js +1 -0
  66. package/dist/assets/engine-xHEY-z1Q.js +1 -0
  67. package/dist/assets/{federated-detail-dialog-C93dA_OW.js → federated-detail-dialog-FIBSqJbV.js} +1 -1
  68. package/dist/assets/{get-safe-url-n4nPkbEQ.js → get-safe-url-C0YzO5pG.js} +1 -1
  69. package/dist/assets/getValidReactChildren-BwWzCXzg.js +1 -0
  70. package/dist/assets/{graphql-BOG1t7Ob.js → graphql-DZtbZ5p5.js} +1 -1
  71. package/dist/assets/{graphqlMode-BuOU6E0N.js → graphqlMode-D6b77q6d.js} +2 -2
  72. package/dist/assets/{html-title-DwrWBQUt.js → html-title-wftxlNic.js} +1 -1
  73. package/dist/assets/{iframe-B0inMXzK.js → iframe-CVO90dup.js} +1 -1
  74. package/dist/assets/{index-OZjARxbD.js → index--K9Fm5hg.js} +1 -1
  75. package/dist/assets/{index-pMmL--Md.js → index-2QIyI-hX.js} +1 -1
  76. package/dist/assets/{index-erCgIvu7.js → index-B0mArAvv.js} +1 -1
  77. package/dist/assets/{index-BbnbDlTc.js → index-BApx63vN.js} +1 -1
  78. package/dist/assets/{index-DK8BRrRb.js → index-BTW5KgWm.js} +1 -1
  79. package/dist/assets/{index-CqXuTw4d.js → index-BXslTYRT.js} +1 -1
  80. package/dist/assets/{index-BDQexjSt.js → index-BdA3fNuc.js} +1 -1
  81. package/dist/assets/{index-PzC6rkTH.js → index-BgEoonJf.js} +1 -1
  82. package/dist/assets/{index-_qKxdWY4.js → index-BsxJA--7.js} +1 -1
  83. package/dist/assets/{index-De_3fKYA.js → index-Bt02N9ee.js} +1 -1
  84. package/dist/assets/{index-BFpYSXLl.js → index-BuwIEPLP.js} +3 -3
  85. package/dist/assets/{index-Oah-jRyx.js → index-C6-nc71s.js} +1 -1
  86. package/dist/assets/{index-p8ewFFuc.js → index-C9laDmdO.js} +1 -1
  87. package/dist/assets/{index-BIOcSTv1.js → index-CJtH7ShQ.js} +1 -1
  88. package/dist/assets/{index-CyXVLDQI.js → index-CSC84DXT.js} +1 -1
  89. package/dist/assets/{index-StdVm_EG.js → index-CSRgOtp2.js} +1 -1
  90. package/dist/assets/{index-B01of1n7.js → index-Ce4rkgom.js} +1 -1
  91. package/dist/assets/index-CkfMmvW2.js +1 -0
  92. package/dist/assets/{index-B9oDQ5jy.js → index-Cnc9i7Ak.js} +1 -1
  93. package/dist/assets/{index-Cske9PWb.js → index-DHJJWO6c.js} +3 -3
  94. package/dist/assets/{index-0lc-age1.js → index-DKy5xk6V.js} +1 -1
  95. package/dist/assets/{index-CGJGuomb.js → index-DReJtC5l.js} +3 -3
  96. package/dist/assets/{index-2tPqycMJ.js → index-DSoeY_gC.js} +2 -2
  97. package/dist/assets/{index-D3qtx7de.js → index-DTafCIMf.js} +1 -1
  98. package/dist/assets/{index-DNGIFQtW.js → index-DW68hKiw.js} +1 -1
  99. package/dist/assets/{index-BJsW1I-W.js → index-DWMihgj_.js} +1 -1
  100. package/dist/assets/{index-mGRBDoXw.js → index-DXSDhJsN.js} +1 -1
  101. package/dist/assets/{index-2jRJYLHP.js → index-DdoE1xT5.js} +1 -1
  102. package/dist/assets/{index-dKtf23Ej.js → index-Def_Nrmy.js} +1 -1
  103. package/dist/assets/{index-C5xvmzdD.js → index-DkOCnoPS.js} +1 -1
  104. package/dist/assets/{index-G4GuFOuO.js → index-DrnnoDEf.js} +1 -1
  105. package/dist/assets/{index-7TgPZijh.js → index-DtdZa4Ii.js} +1 -1
  106. package/dist/assets/{index-CP8e2zcP.js → index-Dtj3cePH.js} +4 -4
  107. package/dist/assets/{index-BsmvyFtw.js → index-Fa8vAbIc.js} +1 -1
  108. package/dist/assets/{index-MLCJ7HJV.js → index-GSHwCvc7.js} +1 -1
  109. package/dist/assets/{index-BQ0GXRUy.js → index-KvvUCU7Y.js} +1 -1
  110. package/dist/assets/{index-CRRnOuLM.js → index-OZ9TU2gG.js} +3 -3
  111. package/dist/assets/{index-8K8V7S7h.js → index-TLvz3wdj.js} +1 -1
  112. package/dist/assets/{index-hxHDV4zb.js → index-UjkYO3io.js} +1 -1
  113. package/dist/assets/{index-BPu5OFdR.js → index-XFNKEyIx.js} +1 -1
  114. package/dist/assets/{index-Cm_CX9Km.js → index-YDhLwC2f.js} +1 -1
  115. package/dist/assets/{index-4OvGI3tM.js → index-etYz30nT.js} +1 -1
  116. package/dist/assets/{index-Bg6xcyjD.js → index-f-tffvn9.js} +6 -6
  117. package/dist/assets/{index-DX_ig3IR.js → index-imQtUA1Y.js} +1 -1
  118. package/dist/assets/{index-B8jKymjp.js → index-kfl7onTb.js} +3 -3
  119. package/dist/assets/{index.esm-DjcC6_YD.js → index.esm-KhX4wp--.js} +1 -1
  120. package/dist/assets/{install-from-url-DfM4lxPD.js → install-from-url-B05WE8Ly.js} +1 -1
  121. package/dist/assets/{invitation-CyjIyIIY.js → invitation-BV4-svSZ.js} +1 -1
  122. package/dist/assets/{is-path-prefix-equal-sWdIB_FI.js → is-path-prefix-equal-BxWUya7r.js} +1 -1
  123. package/dist/assets/{isEmail-CpvKmXxu.js → isEmail-DeuFXn6y.js} +1 -1
  124. package/dist/assets/{item-NX8BCXwV.js → item-DI_IF5jI.js} +1 -1
  125. package/dist/assets/{jsonMode-wNz3PCor.js → jsonMode-U78AHGim.js} +1 -1
  126. package/dist/assets/{list-header-DXqt77-Y.js → list-header-B3--_6Bl.js} +1 -1
  127. package/dist/assets/{lite-D7_0Kk8P.js → lite-s4CjMGFV.js} +2 -2
  128. package/dist/assets/{lock.svg-D22_UbmU.js → lock.svg-Cgo551jB.js} +1 -1
  129. package/dist/assets/{log-BtG4l72D.js → log-ll3_FUxN.js} +1 -1
  130. package/dist/assets/{login-method-item-CGUaonon.js → login-method-item-rb7xoaP3.js} +1 -1
  131. package/dist/assets/{lottie-react.esm-Cj9O6Lld.js → lottie-react.esm-B1Y5_TqJ.js} +1 -1
  132. package/dist/assets/{memory-MEOErB2y.js → memory-DzWPIeHP.js} +1 -1
  133. package/dist/assets/{metric-DzrjUE5P.js → metric-DCKs2r9K.js} +1 -1
  134. package/dist/assets/{monaco-editor-i4E7Erh-.js → monaco-editor-3B-B1pdB.js} +3 -3
  135. package/dist/assets/{mouseTarget-DHjy6bBl.js → mouseTarget-BZ5frXuo.js} +1 -1
  136. package/dist/assets/omit-C22NrHjF.js +1 -0
  137. package/dist/assets/{overview-BPSzB7yi.js → overview-Cu4YrIFe.js} +1 -1
  138. package/dist/assets/{permission-D6xGjoP4.js → permission-B-geZ8jf.js} +1 -1
  139. package/dist/assets/{preference-CWfaETuk.js → preference-C8QaexiP.js} +3 -3
  140. package/dist/assets/{provider-icon-D-a204Ay.js → provider-icon-lv3oS7d4.js} +1 -1
  141. package/dist/assets/{raf-schd.esm-vaS856Rv.js → raf-schd.esm-B49R8L3J.js} +1 -1
  142. package/dist/assets/{rotate-session-key-Cn3NVWRi.js → rotate-session-key-BPhFiNZy.js} +1 -1
  143. package/dist/assets/{runtime-BJVsSRvX.js → runtime-DhJ59c5Q.js} +1 -1
  144. package/dist/assets/schema-BwJa8hO6.js +1 -0
  145. package/dist/assets/sdk-Bx_WDGD1.js +1 -0
  146. package/dist/assets/{service-COrrqY-3.js → service-Bad7qk9f.js} +1 -1
  147. package/dist/assets/{shorten-label-j-itDv6J.js → shorten-label-DmKAPPTX.js} +1 -1
  148. package/dist/assets/{simple-select-DApzKMrW.js → simple-select-CHH0_oB5.js} +1 -1
  149. package/dist/assets/{spaces-BqdEt5Dg.js → spaces-BsLjYZLj.js} +1 -1
  150. package/dist/assets/{status-CFw68CfZ.js → status-CcMfecIj.js} +1 -1
  151. package/dist/assets/{status-vwaEURfH.js → status-VF8vuUxF.js} +1 -1
  152. package/dist/assets/{switch-control-BEw34mlq.js → switch-control-CzpP7CIf.js} +1 -1
  153. package/dist/assets/{table-icons-V0nzUvpC.js → table-icons-Bo0tOvqU.js} +1 -1
  154. package/dist/assets/{team-Bp-ehLS6.js → team-cDk0EvPf.js} +1 -1
  155. package/dist/assets/{toLower-C4OoJYWk.js → toLower-D7a3qnvH.js} +1 -1
  156. package/dist/assets/toUpper-B8LTwalX.js +1 -0
  157. package/dist/assets/{traffic-BuuDuC5C.js → traffic-DYynIkpC.js} +1 -1
  158. package/dist/assets/{trim-BrqZEf0Q.js → trim-Diihj-s0.js} +1 -1
  159. package/dist/assets/{url-evaluation-BotqjpOW.js → url-evaluation-D49POKf_.js} +1 -1
  160. package/dist/assets/{url-join-BYRfgTzL.js → url-join-CYWu6vsi.js} +1 -1
  161. package/dist/assets/{use-mobile-BxCxZMSF.js → use-mobile-wKUCaVoo.js} +1 -1
  162. package/dist/assets/{use-mobile-BIorytbM.js → use-mobile-xq_yWBax.js} +1 -1
  163. package/dist/assets/{useAsync-CbHsXkPS.js → useAsync-CLJdaax3.js} +1 -1
  164. package/dist/assets/{useAsyncRetry-6ULbruV9.js → useAsyncRetry-DLctK9N7.js} +1 -1
  165. package/dist/assets/{useLocalStorage-CBx2eW_l.js → useLocalStorage-Dn6UErBV.js} +1 -1
  166. package/dist/assets/{useThemeProps-BWD3Vp6O.js → useThemeProps-9zV1AZbb.js} +1 -1
  167. package/dist/assets/{util-BF2dKFyL.js → util-BVHL76Cg.js} +1 -1
  168. package/dist/assets/{wait-container-Cc0h_2b3.js → wait-container-ClqOwvvu.js} +1 -1
  169. package/dist/assets/{without-wallet-lUjEmpWw.js → without-wallet-BzLoVl__.js} +1 -1
  170. package/dist/assets/wrap-locale-CowysH2k.js +1 -0
  171. package/dist/index.html +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/ArrowDropDown-C1ynmK1V.js +0 -1
  174. package/dist/assets/api-DBq1KtcA.js +0 -1
  175. package/dist/assets/cloneDeep-BEJXcFgb.js +0 -1
  176. package/dist/assets/emotion-cache.browser.esm-D6kXFXIA.js +0 -1
  177. package/dist/assets/engine-hQAyActy.js +0 -1
  178. package/dist/assets/getValidReactChildren-dJeDeNuf.js +0 -1
  179. package/dist/assets/index-1nsTMIEw.js +0 -1
  180. package/dist/assets/omit-C1X-CRrb.js +0 -1
  181. package/dist/assets/schema-DeNYz3hJ.js +0 -1
  182. package/dist/assets/sdk-CyaYnqk4.js +0 -1
  183. package/dist/assets/toUpper-P-IpqDCE.js +0 -1
  184. package/dist/assets/wrap-locale-CF87ubG3.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-B8jKymjp.js","./index-CP8e2zcP.js","./index-BLDnEtdF.css","./url-join-BYRfgTzL.js","./index-PzC6rkTH.js","./_createAggregator-BS_ZCLsv.js","./depsEqual-FU6HOfMn.js","./index-B01of1n7.js","./index-D29L5UKE.js","./toUpper-P-IpqDCE.js","./index-_3Fxot8G.css"])))=>i.map(i=>d[i]);
2
- import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,ao as Yn,iP as vp,ab as et,V as ke,k as oe,gz as Lo,bF as _e,iQ as mp,bK as hc,hT as bp,iR as yp,iS as xp,fa as Sp,dq as gc,f2 as wp,f0 as Cp,f1 as Ip,f4 as vc,ai as Jn,iT as Rp,dr as _p,fg as Dp,iU as Tp,eG as kp,eF as Ep,eD as mc,iV as Pp,hX as Op,ar as Np,fw as Mp,gm as Ap,eS as nt,x as Oe,b6 as ur,dB as At,aU as Lp,f$ as zp,gY as jp,W as dt,am as Ue,aE as Fp,fT as Dr,ah as br,cH as bc,fS as Bp,iW as $p,fU as yc,bj as Qn,c4 as Gp,cf as q,cd as nr,U as Q,iX as xc,o as S,cb as Xn,eI as Wa,fx as zo,iY as jo,cC as gi,X as xe,a3 as tt,e6 as Wp,ap as Fo,aq as Yt,J as ye,av as Ge,fe as Qi,aB as ir,iZ as Hp,aS as Sc,al as Xr,i_ as Up,i$ as Vp,au as Jt,fO as Xi,ad as qp,g1 as wc,C as Kp,G as Yp,j0 as ht,j1 as Zi,bt as Bo,aT as Jp,an as Cc,H as Tr,F as Ic,cu as Qp,bz as Rc,bf as Xp,bd as Zp,iG as _c,bc as Mr,cY as eh,cZ as th,j2 as Ha,j3 as Dc,j4 as rh,j5 as nh,co as ih,cq as oh,cr as ah,e5 as lh,j6 as sh,gX as ch,gv as Zn,hc as uh,gf as dh,fW as fh,j7 as Mn,j8 as Tc,aH as ph,Q as kc,j9 as Ua,ii as Ec,ja as eo,fB as hh,jb as gh,q as dr,jc as vh,eP as mh,fL as Va,cB as Pc,c$ as qa,jd as bh,bI as yh,je as xh,jf as Sh,jg as wh,jh as Ch,gH as Ih,ji as Oc,jj as Rh,cV as Nc,eK as Mc,jk as $o,gs as Ac,a4 as mt,jl as _h,bb as Dh,cG as Qt,jm as Th,jn as Lc,P as In,bq as An,gD as kh,dt as Eh,cA as Go,jo as Ph,iK as Oh,d6 as Nh,jp as zc,aI as Mh,jq as Ah,es as Lh,jr as zh,T as jh,bu as Ka,iL as Ya,js as Fh,eT as jc,bB as Ja,af as at,jt as Qa,aC as Bh,S as Xa,M as Za}from"./index-CP8e2zcP.js";import{r as $h}from"./omit-C1X-CRrb.js";import{r as Gh}from"./cloneDeep-BEJXcFgb.js";import{r as Wh}from"./index-PzC6rkTH.js";import{c as Hh,u as Uh}from"./_createAggregator-BS_ZCLsv.js";import{u as Bt}from"./blocklet-D7q_eJsm.js";import{r as Vh,b as qh,c as Kh,d as Yh,e as el,D as Jh,H as Qh}from"./index-CyXVLDQI.js";import{_ as Fe,a as Se,b as Ce,c as Be,d as pe,e as Xh,f as Fc,u as ue,g as ie,r as Gr,w as Ln,h as Bc,i as $t,j as $c,k as Zh,l as eg,o as to}from"./raf-schd.esm-vaS856Rv.js";import{_ as M,b as tl,c as tg,a as rg,d as ng}from"./redux-Ab4buSXY.js";import{_ as Gc}from"./typeof-QjJsDpFa.js";import{a as Wc,b as ig}from"./team-Bp-ehLS6.js";import{a as og}from"./actions-BuX7-i-0.js";import{u as ag,a as lg,C as gt}from"./index.esm-DjcC6_YD.js";import{S as ro}from"./simple-select-DApzKMrW.js";import{a as sg,b as rl,T as cg}from"./html-title-DwrWBQUt.js";import{C as Hc}from"./Clear-XkW6YpHE.js";import{A as ug}from"./ArrowDropDown-C1ynmK1V.js";import{a as dg}from"./api-DBq1KtcA.js";import{A as fg}from"./Autocomplete-BHqH72uG.js";import{L as pg}from"./ListItemButton-BIo7wBNv.js";import{u as Uc}from"./use-mobile-BxCxZMSF.js";import{t as hg}from"./index-CqXuTw4d.js";import{I as gg}from"./iframe-B0inMXzK.js";import{B as vi}from"./ButtonGroup-CXwzM552.js";import{L as nl}from"./LoadingButton-egcGN7yK.js";import"./depsEqual-FU6HOfMn.js";import"./url-evaluation-BotqjpOW.js";import"./useLocalStorage-CBx2eW_l.js";import"./MoreVert-Cw1fjU9L.js";import"./DeleteOutline-CocEa6gq.js";import"./get-safe-url-n4nPkbEQ.js";import"./permission-D6xGjoP4.js";import"./ListSubheader-rZisNvzB.js";import"./getValidReactChildren-dJeDeNuf.js";var vg=pp(function(){return hp?sessionStorage:void 0});const mg=je(te)`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-kfl7onTb.js","./index-Dtj3cePH.js","./index-BLDnEtdF.css","./url-join-CYWu6vsi.js","./index-BgEoonJf.js","./_createAggregator-DvxY8dpL.js","./depsEqual-iVI-ppGn.js","./index-Ce4rkgom.js","./index-D29L5UKE.js","./toUpper-B8LTwalX.js","./index-_3Fxot8G.css"])))=>i.map(i=>d[i]);
2
+ import{iM as pp,iN as hp,j as g,B as te,O as je,r as v,iO as gp,ao as Yn,iP as vp,ab as et,V as ke,k as oe,gz as Lo,bF as _e,iQ as mp,bK as hc,hT as bp,iR as yp,iS as xp,fa as Sp,dq as gc,f2 as wp,f0 as Cp,f1 as Ip,f4 as vc,ai as Jn,iT as Rp,dr as _p,fg as Dp,iU as Tp,eG as kp,eF as Ep,eD as mc,iV as Pp,hX as Op,ar as Np,fw as Mp,gm as Ap,eS as nt,x as Oe,b6 as ur,dB as At,aU as Lp,f$ as zp,gY as jp,W as dt,am as Ue,aE as Fp,fT as Dr,ah as br,cH as bc,fS as Bp,iW as $p,fU as yc,bj as Qn,c4 as Gp,cf as q,cd as nr,U as Q,iX as xc,o as S,cb as Xn,eI as Wa,fx as zo,iY as jo,cC as gi,X as xe,a3 as tt,e6 as Wp,ap as Fo,aq as Yt,J as ye,av as Ge,fe as Qi,aB as ir,iZ as Hp,aS as Sc,al as Xr,i_ as Up,i$ as Vp,au as Jt,fO as Xi,ad as qp,g1 as wc,C as Kp,G as Yp,j0 as ht,j1 as Zi,bt as Bo,aT as Jp,an as Cc,H as Tr,F as Ic,cu as Qp,bz as Rc,bf as Xp,bd as Zp,iG as _c,bc as Mr,cY as eh,cZ as th,j2 as Ha,j3 as Dc,j4 as rh,j5 as nh,co as ih,cq as oh,cr as ah,e5 as lh,j6 as sh,gX as ch,gv as Zn,hc as uh,gf as dh,fW as fh,j7 as Mn,j8 as Tc,aH as ph,Q as kc,j9 as Ua,ii as Ec,ja as eo,fB as hh,jb as gh,q as dr,jc as vh,eP as mh,fL as Va,cB as Pc,c$ as qa,jd as bh,bI as yh,je as xh,jf as Sh,jg as wh,jh as Ch,gH as Ih,ji as Oc,jj as Rh,cV as Nc,eK as Mc,jk as $o,gs as Ac,a4 as mt,jl as _h,bb as Dh,cG as Qt,jm as Th,jn as Lc,P as In,bq as An,gD as kh,dt as Eh,cA as Go,jo as Ph,iK as Oh,d6 as Nh,jp as zc,aI as Mh,jq as Ah,es as Lh,jr as zh,T as jh,bu as Ka,iL as Ya,js as Fh,eT as jc,bB as Ja,af as at,jt as Qa,aC as Bh,S as Xa,M as Za}from"./index-Dtj3cePH.js";import{r as $h}from"./omit-C22NrHjF.js";import{r as Gh}from"./cloneDeep-BBtZ6NeX.js";import{r as Wh}from"./index-BgEoonJf.js";import{c as Hh,u as Uh}from"./_createAggregator-DvxY8dpL.js";import{u as Bt}from"./blocklet-B65NZ0SL.js";import{r as Vh,b as qh,c as Kh,d as Yh,e as el,D as Jh,H as Qh}from"./index-CSC84DXT.js";import{_ as Fe,a as Se,b as Ce,c as Be,d as pe,e as Xh,f as Fc,u as ue,g as ie,r as Gr,w as Ln,h as Bc,i as $t,j as $c,k as Zh,l as eg,o as to}from"./raf-schd.esm-B49R8L3J.js";import{_ as M,b as tl,c as tg,a as rg,d as ng}from"./redux-Ab4buSXY.js";import{_ as Gc}from"./typeof-QjJsDpFa.js";import{a as Wc,b as ig}from"./team-cDk0EvPf.js";import{a as og}from"./actions-CUnz9wHy.js";import{u as ag,a as lg,C as gt}from"./index.esm-KhX4wp--.js";import{S as ro}from"./simple-select-CHH0_oB5.js";import{a as sg,b as rl,T as cg}from"./html-title-wftxlNic.js";import{C as Hc}from"./Clear-B_hKjaJj.js";import{A as ug}from"./ArrowDropDown-225S5d4X.js";import{a as dg}from"./api-BLIecOBq.js";import{A as fg}from"./Autocomplete-CoHLc9sw.js";import{L as pg}from"./ListItemButton-BQDScowx.js";import{u as Uc}from"./use-mobile-wKUCaVoo.js";import{t as hg}from"./index-BXslTYRT.js";import{I as gg}from"./iframe-CVO90dup.js";import{B as vi}from"./ButtonGroup-CFUm4DnA.js";import{L as nl}from"./LoadingButton-CDH-grwB.js";import"./depsEqual-iVI-ppGn.js";import"./url-evaluation-D49POKf_.js";import"./useLocalStorage-Dn6UErBV.js";import"./MoreVert-DV_CQ8ui.js";import"./DeleteOutline-7b3f7PEm.js";import"./get-safe-url-C0YzO5pG.js";import"./permission-B-geZ8jf.js";import"./ListSubheader-Cl_ECqW2.js";import"./getValidReactChildren-BwWzCXzg.js";var vg=pp(function(){return hp?sessionStorage:void 0});const mg=je(te)`
3
3
  padding: 16px 24px;
4
4
  border-radius: 8px;
5
5
  background-color: ${({theme:e})=>e.palette.background.paper};
@@ -62,7 +62,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
62
62
  `,t},qb=(function(){function e(r){this.getPropertyValue=Lb,this.setProperty=zb,this.removeProperty=jb,this.setSelector=Fb,this.hasInsertedRules=!1,this.cssRules=[],r&&Lr.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},i=n.media,o=n.meta,a=n.element;this.element=a||Vb(),this.element.setAttribute("data-jss",""),i&&this.element.setAttribute("media",i),o&&this.element.setAttribute("data-meta",o);var l=Ub();l&&this.element.setAttribute("nonce",l)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Hb(this.element,this.sheet.options);var n=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
63
63
  `)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=`
64
64
  `+n.toString()+`
65
- `}},t.insertRules=function(n,i){for(var o=0;o<n.index.length;o++)this.insertRule(n.index[o],o,i)},t.insertRule=function(n,i,o){if(o===void 0&&(o=this.element.sheet),n.rules){var a=n,l=o;if(n.type==="conditional"||n.type==="keyframes"){var s=rs(o,i);if(l=ts(o,a.toString({children:!1}),s),l===!1)return!1;this.refCssRule(n,s,l)}return this.insertRules(a.rules,l),l}var c=n.toString();if(!c)return!1;var u=rs(o,i),d=ts(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,u,d),d)},t.refCssRule=function(n,i,o){n.renderable=o,n.options.parent instanceof Ku&&this.cssRules.splice(i,0,o)},t.deleteRule=function(n){var i=this.element.sheet,o=this.indexOf(n);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,i){var o=this.indexOf(n);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),Kb=0,Yb=(function(){function e(r){this.id=Kb++,this.version="10.10.0",this.plugins=new Mb,this.options={id:{minify:!1},createGenerateId:es,Renderer:nn?qb:null,plugins:[]},this.generateId=es({minify:!1});for(var n=0;n<Ql.length;n++)this.plugins.use(Ql[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=q({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Lr.index===0?0:Lr.index+1);var l=new Ku(n,q({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(l),l},t.removeStyleSheet=function(n){return n.detach(),Lr.remove(n),this},t.createRule=function(n,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof n=="object")return this.createRule(void 0,n,i);var a=q({},o,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var l=ia(n,i,a);return l&&this.plugins.onProcessRule(l),l},t.use=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(l){n.plugins.use(l)}),this},e})(),Qu=function(t){return new Yb(t)},aa=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Xu(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if(i==="function")t||(t={}),t[r]=n;else if(i==="object"&&n!==null&&!Array.isArray(n)){var o=Xu(n);o&&(t||(t={}),t[r]=o)}}return t}Qu();function _i(e){return e&&Gc(e)==="object"&&e.constructor===Object}function Zu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?q({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(_i(t[i])&&i in e?n[i]=Zu(e[i],t[i],r):n[i]=t[i])}),n}function ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=q({},t);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(t[i]," ").concat(r[i]))}),n}var er={set:function(t,r,n,i){var o=t.get(r);o||(o=new Map,t.set(r,o)),o.set(n,i)},get:function(t,r,n){var i=t.get(r);return i?i.get(n):void 0},delete:function(t,r,n){var i=t.get(r);i.delete(n)}},Jb=Q.createContext(null);function Qb(){var e=Q.useContext(Jb);return e}var Xb=typeof Symbol=="function"&&Symbol.for;const Zb=Xb?Symbol.for("mui.nested"):"__THEME_NESTED__";var ey=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,i=n===void 0?"jss":n,o=e.seed,a=o===void 0?"":o,l=a===""?"":"".concat(a,"-"),s=0,c=function(){return s+=1,s};return function(u,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!r){if(ey.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(l).concat(f,"-").concat(u.key);return!d.options.theme[Zb]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(l).concat(i).concat(c())}}var td=Date.now(),Di="fnValues"+td,Ti="fnStyle"+ ++td,ry=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=ia(r,{},i);return o[Ti]=n,o},onProcessStyle:function(r,n){if(Di in n||Ti in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[Di]=i,r},onUpdate:function(r,n,i,o){var a=n,l=a[Ti];l&&(a.style=l(r)||{});var s=a[Di];if(s)for(var c in s)a.prop(c,s[c](r),o)}}},wt="@global",po="@global ",ny=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new ii(q({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e})(),iy=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(po.length);this.rule=i.jss.createRule(o,n,q({},i,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e})(),oy=/\s*,\s*/g;function rd(e,t){for(var r=e.split(oy),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function ay(e,t){var r=e.options,n=e.style,i=n?n[wt]:null;if(i){for(var o in i)t.addRule(o,i[o],q({},r,{selector:rd(o,e.selector)}));delete n[wt]}}function ly(e,t){var r=e.options,n=e.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,wt.length)!==wt)){var o=rd(i.substr(wt.length),e.selector);t.addRule(o,n[i],q({},r,{selector:o})),delete n[i]}}function sy(){function e(r,n,i){if(!r)return null;if(r===wt)return new ny(r,n,i);if(r[0]==="@"&&r.substr(0,po.length)===po)return new iy(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function t(r,n){r.type!=="style"||!n||(ay(r,n),ly(r,n))}return{onCreateRule:e,onProcessRule:t}}var ns=/\s*,\s*/g,cy=/&/g,uy=/\$([\w-]+)/g;function dy(){function e(i,o){return function(a,l){var s=i.getRule(l)||o&&o.getRule(l);return s?s.selector:l}}function t(i,o){for(var a=o.split(ns),l=i.split(ns),s="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<l.length;d++){var f=l[d];s&&(s+=", "),s+=f.indexOf("&")!==-1?f.replace(cy,u):u+" "+f}return s}function r(i,o,a){if(a)return q({},a,{index:a.index+1});var l=i.options.nestingLevel;l=l===void 0?1:l+1;var s=q({},i.options,{nestingLevel:l,index:o.indexOf(i)+1});return delete s.name,s}function n(i,o,a){if(o.type!=="style")return i;var l=o,s=l.options.parent,c,u;for(var d in i){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=r(l,s,c),f){var h=t(d,l.selector);u||(u=e(s,a)),h=h.replace(uy,u);var m=l.key+"-"+d;"replaceRule"in s?s.replaceRule(m,i[d],q({},c,{selector:h})):s.addRule(m,i[d],q({},c,{selector:h}))}else p&&s.addRule(d,{},c).addRule(l.key,i[d],{selector:l.selector});delete i[d]}}return i}return{onProcessStyle:n}}var fy=/[A-Z]/g,py=/^ms-/,ki={};function hy(e){return"-"+e.toLowerCase()}function nd(e){if(ki.hasOwnProperty(e))return ki[e];var t=e.replace(fy,hy);return ki[e]=py.test(t)?"-"+t:t}function jn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:nd(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jn):t.fallbacks=jn(e.fallbacks)),t}function gy(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=jn(r[n]);return r}return jn(r)}function t(r,n,i){if(n.indexOf("--")===0)return r;var o=nd(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:e,onChangeValue:t}}var A=aa&&CSS?CSS.px:"px",gn=aa&&CSS?CSS.ms:"ms",Ut=aa&&CSS?CSS.percent:"%",vy={"animation-delay":gn,"animation-duration":gn,"background-position":A,"background-position-x":A,"background-position-y":A,"background-size":A,border:A,"border-bottom":A,"border-bottom-left-radius":A,"border-bottom-right-radius":A,"border-bottom-width":A,"border-left":A,"border-left-width":A,"border-radius":A,"border-right":A,"border-right-width":A,"border-top":A,"border-top-left-radius":A,"border-top-right-radius":A,"border-top-width":A,"border-width":A,"border-block":A,"border-block-end":A,"border-block-end-width":A,"border-block-start":A,"border-block-start-width":A,"border-block-width":A,"border-inline":A,"border-inline-end":A,"border-inline-end-width":A,"border-inline-start":A,"border-inline-start-width":A,"border-inline-width":A,"border-start-start-radius":A,"border-start-end-radius":A,"border-end-start-radius":A,"border-end-end-radius":A,margin:A,"margin-bottom":A,"margin-left":A,"margin-right":A,"margin-top":A,"margin-block":A,"margin-block-end":A,"margin-block-start":A,"margin-inline":A,"margin-inline-end":A,"margin-inline-start":A,padding:A,"padding-bottom":A,"padding-left":A,"padding-right":A,"padding-top":A,"padding-block":A,"padding-block-end":A,"padding-block-start":A,"padding-inline":A,"padding-inline-end":A,"padding-inline-start":A,"mask-position-x":A,"mask-position-y":A,"mask-size":A,height:A,width:A,"min-height":A,"max-height":A,"min-width":A,"max-width":A,bottom:A,left:A,top:A,right:A,inset:A,"inset-block":A,"inset-block-end":A,"inset-block-start":A,"inset-inline":A,"inset-inline-end":A,"inset-inline-start":A,"box-shadow":A,"text-shadow":A,"column-gap":A,"column-rule":A,"column-rule-width":A,"column-width":A,"font-size":A,"font-size-delta":A,"letter-spacing":A,"text-decoration-thickness":A,"text-indent":A,"text-stroke":A,"text-stroke-width":A,"word-spacing":A,motion:A,"motion-offset":A,outline:A,"outline-offset":A,"outline-width":A,perspective:A,"perspective-origin-x":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":gn,"transition-duration":gn,"vertical-align":A,"flex-basis":A,"shape-margin":A,size:A,gap:A,grid:A,"grid-gap":A,"row-gap":A,"grid-row-gap":A,"grid-column-gap":A,"grid-template-rows":A,"grid-template-columns":A,"grid-auto-rows":A,"grid-auto-columns":A,"box-shadow-x":A,"box-shadow-y":A,"box-shadow-blur":A,"box-shadow-spread":A,"font-line-height":A,"text-shadow-x":A,"text-shadow-y":A,"text-shadow-blur":A};function id(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var my=id(vy);function zr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=zr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=zr(i,t[i],r);else for(var o in t)t[o]=zr(e+"-"+o,t[o],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||my[e];return a&&!(t===0&&a===A)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function by(e){e===void 0&&(e={});var t=id(e);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=zr(a,i[a],t);return i}function n(i,o){return zr(o,i,t)}return{onProcessStyle:r,onChangeValue:n}}var Pr="",ho="",od="",ad="",yy=nn&&"ontouchstart"in document.documentElement;if(nn){var Ei={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},xy=document.createElement("p"),Pi=xy.style,Sy="Transform";for(var Oi in Ei)if(Oi+Sy in Pi){Pr=Oi,ho=Ei[Oi];break}Pr==="Webkit"&&"msHyphens"in Pi&&(Pr="ms",ho=Ei.ms,ad="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Pi&&(od="apple")}var le={js:Pr,css:ho,vendor:od,browser:ad,isTouch:yy};function wy(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var Cy={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:le.js==="ms"?"-webkit-"+t:le.css+t}},Iy={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+t:t}},Ry=/[-\s]+(.)?/g;function _y(e,t){return t?t.toUpperCase():""}function la(e){return e.replace(Ry,_y)}function _t(e){return la("-"+e)}var Dy={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(le.js==="Webkit"){var n="mask-image";if(la(n)in r)return t;if(le.js+_t(n)in r)return le.css+t}return t}},Ty={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+t:t}},ky={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:le.css+t}},Ey={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:le.css+t}},Py={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+t:t}},Oy={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+t:t}},Ny={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(le.js==="Webkit"){var n="WebkitColumn"+_t(t);return n in r?le.css+"column-"+t:!1}if(le.js==="Moz"){var i="page"+_t(t);return i in r?"page-"+t:!1}return!1}},My={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(le.js==="Moz")return t;var n=t.replace("-inline","");return le.js+_t(n)in r?le.css+n:!1}},Ay={supportedProperty:function(t,r){return la(t)in r?t:!1}},Ly={supportedProperty:function(t,r){var n=_t(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:le.js+n in r?le.css+t:le.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},zy={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+t:t}},jy={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":t}},Fy={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},By={supportedProperty:function(t,r){var n=Fy[t];return n&&le.js+_t(n)in r?le.css+n:!1}},ld={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$y=Object.keys(ld),Gy=function(t){return le.css+t},Wy={supportedProperty:function(t,r,n){var i=n.multiple;if($y.indexOf(t)>-1){var o=ld[t];if(!Array.isArray(o))return le.js+_t(o)in r?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+_t(o[0])in r))return!1;return o.map(Gy)}return!1}},sd=[Cy,Iy,Dy,Ty,ky,Ey,Py,Oy,Ny,My,Ay,Ly,zy,jy,By,Wy],is=sd.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Hy=sd.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,fu(t.noPrefill)),e},[]),Or,Mt={};if(nn){Or=document.createElement("p");var Ni=window.getComputedStyle(document.documentElement,"");for(var Mi in Ni)isNaN(Mi)||(Mt[Ni[Mi]]=Ni[Mi]);Hy.forEach(function(e){return delete Mt[e]})}function go(e,t){if(t===void 0&&(t={}),!Or)return e;if(Mt[e]!=null)return Mt[e];(e==="transition"||e==="transform")&&(t[e]=e in Or.style);for(var r=0;r<is.length&&(Mt[e]=is[r](e,Or.style,t),!Mt[e]);r++);try{Or.style[e]=""}catch{return!1}return Mt[e]}var Vt={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,vt;function qy(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?go(t):", "+go(r);return n||t||r}nn&&(vt=document.createElement("p"));function os(e,t){var r=t;if(!vt||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(Vt[n]!=null)return Vt[n];try{vt.style[e]=r}catch{return Vt[n]=!1,!1}if(Uy[e])r=r.replace(Vy,qy);else if(vt.style[e]===""&&(r=le.css+r,r==="-ms-flex"&&(vt.style[e]="-ms-flexbox"),vt.style[e]=r,vt.style[e]===""))return Vt[n]=!1,!1;return vt.style[e]="",Vt[n]=r,Vt[n]}function Ky(){function e(i){if(i.type==="keyframes"){var o=i;o.at=wy(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var l=!1,s=go(o);s&&s!==o&&(l=!0);var c=!1,u=os(s,zt(a));u&&u!==a&&(c=!0),(l||c)&&(l&&delete i[o],i[s||o]=u||a)}return i}function r(i,o){return o.type!=="style"?i:t(i)}function n(i,o){return os(o,zt(i))||i}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Yy(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(e),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function Jy(){return{plugins:[ry(),sy(),dy(),gy(),by(),typeof window>"u"?null:Ky(),Yy()]}}var Qy=Qu(Jy()),Xy=ty(),Zy=new Map,e0={disableGeneration:!1,generateClassName:Xy,jss:Qy,sheetsCache:null,sheetsManager:Zy,sheetsRegistry:null},t0=Q.createContext(e0),as=-1e9;function r0(){return as+=1,as}var n0={};function i0(e){var t=typeof e=="function";return{create:function(n,i){var o;try{o=t?e(n):e}catch(s){throw s}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],l=q({},o);return Object.keys(a).forEach(function(s){l[s]=Zu(l[s],a[s])}),l},options:{}}}function o0(e,t,r){var n=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=ed({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function a0(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=er.get(i.sheetsManager,o,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},er.set(i.sheetsManager,o,n,l));var s=q({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(l.refs===0){var u;i.sheetsCache&&(u=er.get(i.sheetsCache,o,n));var d=o.create(n,a);u||(u=i.jss.createStyleSheet(d,q({link:!1},s)),u.attach(),i.sheetsCache&&er.set(i.sheetsCache,o,n,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=Xu(d)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,q({link:!0},s));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=ed({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function l0(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function s0(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var o=er.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(er.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function c0(e,t){var r=Q.useRef([]),n,i=Q.useMemo(function(){return{}},t);r.current!==i&&(r.current=i,n=e()),Q.useEffect(function(){return function(){n&&n()}},[i])}function u0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?n0:o,l=Xt(t,["name","classNamePrefix","Component","defaultTheme"]),s=i0(e),c=r||n||"makeStyles";s.options={index:r0(),name:r,meta:c,classNamePrefix:c};var u=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Qb()||a,h=q({},Q.useContext(t0),l),m=Q.useRef(),b=Q.useRef();c0(function(){var x={name:r,state:{},stylesCreator:s,stylesOptions:h,theme:p};return a0(x,f),b.current=!1,m.current=x,function(){s0(x)}},[p,s]),Q.useEffect(function(){b.current&&l0(m.current,f),b.current=!0});var y=o0(m.current,f.classes,i);return y};return u}const d0=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"})),f0=Jn(d0);var p0=Dn.exports,ls;function h0(){return ls||(ls=1,(function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:p0,function(){return(function(r){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=r,n.c=i,n.d=function(o,a,l){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=3)})([function(r,n){r.exports=bc()},function(r,n){r.exports=yc()},function(r,n){r.exports=f0},function(r,n,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=o(a),s=i(6),c=o(s);n.default={isVirtualized:!1,nodeContentRenderer:l.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(r,n,i){function o(x){return x&&x.__esModule?x:{default:x}}function a(x,_){return!!x.children&&typeof x.children!="function"&&x.children.some(function(T){return T===_||a(T,_)})}function l(x){var _=x.scaffoldBlockPxWidth,T=x.connectDragPreview,k=x.connectDragSource,C=x.isDragging,D=x.canDrop,w=x.canDrag,R=x.node,I=x.title,P=x.draggedNode,L=x.path,N=x.treeIndex,G=x.isSearchMatch,z=x.isSearchFocus,F=x.icons,W=x.buttons,H=x.className,J=x.style,Z=x.didDrop,Y=x.lowerSiblingCounts,X=x.listIndex,U=x.swapFrom,re=x.swapLength,ne=x.swapDepth,ce=x.onItemClick,B=y(),$=I||R.title,E=P&&a(P,R),O=!Z&&C,j=[];Y.forEach(function(ee,ae){if(ae>0&&(j.push(u.default.createElement("div",{className:B.lineBlock,key:"pre_"+(1+ae),style:{width:_}})),N!==X&&ae===ne)){var de="";de=X===U+re-1?B.highlightBottomLeftCorner:N===U?B.highlightTopLeftCorner:B.highlightLineVertical,j.push(u.default.createElement("div",{className:B.absoluteLineBlock+" "+de,key:"highlight_"+(1+ae),style:{left:_*ae,width:_}}))}});var V=u.default.createElement("div",{className:B.contentNode},T(u.default.createElement("div",{className:B.row+(R.active?" "+B.activeRow:"")+(O?" "+B.rowLandingPad:"")+(C?" "+B.rowLandingPadDisable:"")+(O&&!D?" "+B.rowCancelPad:"")+(G?" "+B.rowSearchMatch:"")+(z?" "+B.rowSearchFocus:"")+(w?"":" "+B.rowWrapperDragDisabled)+(H?" "+H:""),onClick:function(){return ce?ce(s({},R,{index:N})):null},style:s({opacity:E?.5:1},J)},R.type==="divider"?u.default.createElement("div",{className:B.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:B.rowIcon},F),u.default.createElement("div",{className:B.rowLabel},typeof $=="string"?u.default.createElement("span",{className:B.rowTitle},$):typeof $=="function"?$({node:R,path:L,treeIndex:N}):$),u.default.createElement("div",{className:B.rowToolbar},W)))));return w?k(V,{dropEffect:"copy"}):V}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var T=arguments[_];for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(x[k]=T[k])}return x},c=i(0),u=o(c),d=i(1),f=o(d),p=i(2),h=o(p),m=i(5),b=o(m),y=(0,h.default)(b.default,{name:"MuiNodeContent"});l.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},l.propTypes={buttons:f.default.node,canDrag:f.default.bool,canDrop:f.default.bool,className:f.default.string,connectDragPreview:f.default.func.isRequired,connectDragSource:f.default.func.isRequired,didDrop:f.default.bool.isRequired,draggedNode:f.default.shape({}),icons:f.default.node,isDragging:f.default.bool.isRequired,isOver:f.default.bool.isRequired,isSearchFocus:f.default.bool,isSearchMatch:f.default.bool,listIndex:f.default.number.isRequired,lowerSiblingCounts:f.default.arrayOf(f.default.number).isRequired,node:f.default.shape({}).isRequired,parentNode:f.default.shape({}),path:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])).isRequired,rowDirection:f.default.string.isRequired,scaffoldBlockPxWidth:f.default.number.isRequired,style:f.default.shape({}),swapDepth:f.default.number,swapFrom:f.default.number,swapLength:f.default.number,title:f.default.oneOfType([f.default.func,f.default.node]),toggleChildrenVisibility:f.default.func,treeId:f.default.string.isRequired,treeIndex:f.default.number.isRequired},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(r,n,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b){var y=b.children,x=b.listIndex,_=b.swapFrom,T=b.swapLength,k=b.swapDepth,C=b.lowerSiblingCounts,D=b.connectDropTarget,w=b.isOver,R=b.draggedNode,I=b.canDrop,P=m();return D(s.default.createElement("div",{className:P.node},l.Children.map(y,function(L){return(0,l.cloneElement)(L,{canDrop:I,draggedNode:R,isOver:w,listIndex:x,lowerSiblingCounts:C,swapDepth:k,swapFrom:_,swapLength:T})})))}Object.defineProperty(n,"__esModule",{value:!0});var l=i(0),s=o(l),c=i(1),u=o(c),d=i(2),f=o(d),p=i(7),h=o(p),m=(0,f.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{node:{display:"flex"}}}}])})})(Dn)),Dn.exports}var g0=h0();const v0=Qn(g0);const cd=Object.freeze({left:0,top:0,width:16,height:16}),Fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),on=Object.freeze({...cd,...Fn}),vo=Object.freeze({...on,body:"",hidden:!1}),m0=Object.freeze({width:null,height:null}),ud=Object.freeze({...m0,...Fn});function b0(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}const y0=/[\s,]+/;function x0(e,t){t.split(y0).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const dd={...ud,preserveAspectRatio:""};function ss(e){const t={...dd},r=(n,i)=>e.getAttribute(n)||i;return t.width=r("width",null),t.height=r("height",null),t.rotate=b0(r("rotate","")),x0(t,r("flip","")),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}function S0(e,t){for(const r in dd)if(e[r]!==t[r])return!0;return!1}const jr=/^[a-z0-9]+(-[a-z0-9]+)*$/,an=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:n,prefix:s,name:l};return t&&!Tn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const l={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Tn(l)?null:l}if(r&&n===""){const l={provider:n,prefix:"",name:o};return t&&!Tn(l,r)?null:l}return null},Tn=(e,t)=>e?!!((e.provider===""||e.provider.match(jr))&&(t&&e.prefix===""||e.prefix.match(jr))&&e.name.match(jr)):!1;function w0(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function cs(e,t){const r=w0(e,t);for(const n in vo)n in Fn?n in e&&!(n in r)&&(r[n]=Fn[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function C0(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=n[a]&&n[a].parent,s=l&&o(l);s&&(i[a]=[l].concat(s))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function I0(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(l){o=cs(n[l]||i[l],o)}return a(t),r.forEach(a),cs(e,o)}function fd(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=C0(e);for(const i in n){const o=n[i];o&&(t(i,I0(e,i,o)),r.push(i))}return r}const R0={provider:"",aliases:{},not_found:{},...cd};function Ai(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function pd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ai(e,R0))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(jr)||typeof o.body!="string"||!Ai(o,vo))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(jr)||typeof a!="string"||!r[a]&&!n[a]||!Ai(o,vo))return null}return t}const Bn=Object.create(null);function _0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Dt(e,t){const r=Bn[e]||(Bn[e]=Object.create(null));return r[t]||(r[t]=_0(e,t))}function sa(e,t){return pd(t)?fd(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function D0(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}function T0(e,t){let r=[];return(typeof e=="string"?[e]:Object.keys(Bn)).forEach(i=>{(typeof i=="string"&&typeof t=="string"?[t]:Object.keys(Bn[i]||{})).forEach(a=>{const l=Dt(i,a);r=r.concat(Object.keys(l.icons).map(s=>(i!==""?"@"+i+":":"")+a+":"+s))})}),r}let Ur=!1;function hd(e){return typeof e=="boolean"&&(Ur=e),Ur}function Vr(e){const t=typeof e=="string"?an(e,!0,Ur):e;if(t){const r=Dt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function gd(e,t){const r=an(e,!0,Ur);if(!r)return!1;const n=Dt(r.provider,r.prefix);return D0(n,r.name,t)}function us(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ur&&!t&&!e.prefix){let i=!1;return pd(e)&&(e.prefix="",fd(e,(o,a)=>{a&&gd(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Tn({provider:t,prefix:r,name:"a"}))return!1;const n=Dt(t,r);return!!sa(n,e)}function k0(e){return!!Vr(e)}function E0(e){const t=Vr(e);return t?{...on,...t}:null}function P0(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,l=i.name,s=r[o]||(r[o]=Object.create(null)),c=s[a]||(s[a]=Dt(o,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:l};u.push(d)}),t}function vd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function O0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==i)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:n,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:i,name:c});else return r=!0,!0;return!1}),a.pending.length!==l&&(r||vd([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let N0=0;function M0(e,t,r){const n=N0++,i=vd.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const mo=Object.create(null);function ds(e,t){mo[e]=t}function bo(e){return mo[e]||mo[""]}function A0(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?an(i,t,r):i;o&&n.push(o)}),n}var L0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z0(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const D=Math.floor(Math.random()*C.length);a.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}a=a.concat(C)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let s="pending",c=0,u,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function m(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,D){D&&(p=[]),typeof C=="function"&&p.push(C)}function y(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:b,abort:m}}function x(){s="failed",p.forEach(C=>{C(void 0,u)})}function _(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function T(C,D,w){const R=D!=="success";switch(f=f.filter(I=>I!==C),s){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=w,x();return}if(R){u=w,f.length||(a.length?k():x());return}if(h(),_(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}s="completed",p.forEach(I=>{I(w)})}function k(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),s==="pending"&&(_(),x())},e.timeout);return}x();return}const D={status:"pending",resource:C,callback:(w,R)=>{T(D,w,R)}};f.push(D),c++,d=setTimeout(k,e.rotate),r(C,t,D.callback)}return setTimeout(k),y}function md(e){const t={...L0,...e};let r=[];function n(){r=r.filter(l=>l().status==="pending")}function i(l,s,c){const u=z0(t,l,s,(d,f)=>{n(),c&&c(d,f)});return r.push(u),u}function o(l){return r.find(s=>l(s))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:n}}function ca(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 oi=Object.create(null),wr=["https://api.simplesvg.com","https://api.unisvg.com"],kn=[];for(;wr.length>0;)wr.length===1||Math.random()>.5?kn.push(wr.shift()):kn.push(wr.pop());oi[""]=ca({resources:["https://api.iconify.design"].concat(kn)});function fs(e,t){const r=ca(t);return r===null?!1:(oi[e]=r,!0)}function ai(e){return oi[e]}function j0(){return Object.keys(oi)}function ps(){}const Li=Object.create(null);function F0(e){if(!Li[e]){const t=ai(e);if(!t)return;const r=md(t),n={config:t,redundancy:r};Li[e]=n}return Li[e]}function bd(e,t,r){let n,i;if(typeof e=="string"){const o=bo(e);if(!o)return r(void 0,424),ps;i=o.send;const a=F0(e);a&&(n=a.redundancy)}else{const o=ca(e);if(o){n=md(o);const a=e.resources?e.resources[0]:"",l=bo(a);l&&(i=l.send)}}return!n||!i?(r(void 0,424),ps):n.query(t,i,r)().abort}const hs="iconify2",qr="iconify",yd=qr+"-count",gs=qr+"-version",xd=36e5,B0=168;function yo(e,t){try{return e.getItem(t)}catch{}}function ua(e,t,r){try{return e.setItem(t,r),!0}catch{}}function vs(e,t){try{e.removeItem(t)}catch{}}function xo(e,t){return ua(e,yd,t.toString())}function So(e){return parseInt(yo(e,yd))||0}const jt={local:!0,session:!0},Sd={local:new Set,session:new Set};let da=!1;function $0(e){da=e}let vn=typeof window>"u"?{}:window;function wd(e){const t=e+"Storage";try{if(vn&&vn[t]&&typeof vn[t].length=="number")return vn[t]}catch{}jt[e]=!1}function Cd(e,t){const r=wd(e);if(!r)return;const n=yo(r,gs);if(n!==hs){if(n){const l=So(r);for(let s=0;s<l;s++)vs(r,qr+s.toString())}ua(r,gs,hs),xo(r,0);return}const i=Math.floor(Date.now()/xd)-B0,o=l=>{const s=qr+l.toString(),c=yo(r,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}vs(r,s)}};let a=So(r);for(let l=a-1;l>=0;l--)o(l)||(l===a-1?(a--,xo(r,a)):Sd[e].add(l))}function Id(){if(!da){$0(!0);for(const e in jt)Cd(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Dt(n,i);if(!sa(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function G0(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in jt)Cd(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function W0(e,t){da||Id();function r(n){let i;if(!jt[n]||!(i=wd(n)))return;const o=Sd[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=So(i),!xo(i,a+1))return;const l={cached:Math.floor(Date.now()/xd),provider:e.provider,data:t};return ua(i,qr+a.toString(),JSON.stringify(l))}t.lastModified&&!G0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ms(){}function H0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,O0(e)}))}function U0(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:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=bo(r)))return;o.prepare(r,n,i).forEach(l=>{bd(r,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=sa(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),W0(e,s)}catch(c){console.error(c)}H0(e)})})}))}const fa=(e,t)=>{const r=A0(e,!0,hd()),n=P0(r);if(!n.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(n.loaded,n.missing,n.pending,ms)}),()=>{s=!1}}const i=Object.create(null),o=[];let a,l;return n.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,o.push(Dt(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=Dt(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),i[c][u].push(d))}),o.forEach(s=>{const{provider:c,prefix:u}=s;i[c][u].length&&U0(s,i[c][u])}),t?M0(t,n,o):ms},V0=e=>new Promise((t,r)=>{const n=typeof e=="string"?an(e,!0):e;if(!n){r(e);return}fa([n||e],i=>{if(i.length&&n){const o=Vr(n);if(o){t({...on,...o});return}}r(e)})});function q0(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function K0(e,t){const r=typeof e=="string"?an(e,!0,!0):null;if(!r){const o=q0(e);return{value:e,data:o}}const n=Vr(r);if(n!==void 0||!r.prefix)return{value:e,name:r,data:n};const i=fa([r],()=>t(e,r,Vr(r)));return{value:e,name:r,loading:i}}function zi(e){return e.hasAttribute("inline")}let Rd=!1;try{Rd=navigator.vendor.indexOf("Apple")===0}catch{}function Y0(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Rd||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const J0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Q0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(J0);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=Q0.test(o);for(;;){if(a){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const X0=e=>e==="unset"||e==="undefined"||e==="none";function _d(e,t){const r={...on,...e},n={...ud,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(h=>{const m=[],b=h.hFlip,y=h.vFlip;let x=h.rotate;b?y?x+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):y&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let _;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:_=i.height/2+i.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}x%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),m.length&&(o='<g transform="'+m.join(" ")+'">'+o+"</g>")});const a=n.width,l=n.height,s=i.width,c=i.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=wo(d,s/c)):(u=a==="auto"?s:a,d=l===null?wo(u,c/s):l==="auto"?c:l);const f={},p=(h,m)=>{X0(m)||(f[h]=m.toString())};return p("width",u),p("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:o}}const Z0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $n=Z0();function e1(e){$n=e}function t1(){return $n}function r1(e,t){const r=ai(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function n1(e){return e===404}const i1=(e,t,r)=>{const n=[],i=r1(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},l=0;return r.forEach((s,c)=>{l+=s.length+1,l>=i&&c>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),n.push(a),n};function o1(e){if(typeof e=="string"){const t=ai(e);if(t)return t.path}return"/"}const a1=(e,t,r)=>{if(!$n){r("abort",424);return}let n=o1(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});n+=o+".json?"+s.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$n(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(n1(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})},l1={prepare:i1,send:a1};function bs(e,t){switch(e){case"local":case"session":jt[e]=t;break;case"all":for(const r in jt)jt[r]=t;break}}const ji="data-style";let Dd="";function s1(e){Dd=e}function ys(e,t){let r=Array.from(e.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(ji));r||(r=document.createElement("style"),r.setAttribute(ji,ji),e.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Dd}function Td(){ds("",l1),hd(!0);let e;try{e=window}catch{}if(e){if(Id(),e.IconifyPreload!==void 0){const r=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!us(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const n in r){const i="IconifyProviders["+n+"] is invalid.";try{const o=r[n];if(typeof o!="object"||!o||o.resources===void 0)continue;fs(n,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:r=>bs(r,!0),disableCache:r=>bs(r,!1),iconExists:k0,getIcon:E0,listIcons:T0,addIcon:gd,addCollection:us,calculateSize:wo,buildIcon:_d,loadIcons:fa,loadIcon:V0,addAPIProvider:fs,appendCustomStyle:s1,_api:{getAPIConfig:ai,setAPIModule:ds,sendAPIQuery:bd,setFetch:e1,getFetch:t1,listAPIProviders:j0}}}function kd(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function c1(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function u1(e){return"data:image/svg+xml,"+c1(e)}function d1(e){return'url("'+u1(e)+'")'}const Co={"background-color":"currentColor"},Ed={"background-color":"transparent"},xs={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ss={"-webkit-mask":Co,mask:Co,background:Ed};for(const e in Ss){const t=Ss[e];for(const r in xs)t[e+"-"+r]=xs[r]}function ws(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function f1(e,t,r){const n=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=kd(i,{...o,width:t.width+"",height:t.height+""}),l=d1(a),s=n.style,c={"--svg":l,width:ws(o.width),height:ws(o.height),...r?Co:Ed};for(const u in c)s.setProperty(u,c[u]);return n}let Fr;function p1(){try{Fr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Fr=null}}function h1(e){return Fr===void 0&&p1(),Fr?Fr.createHTML(e):e}function g1(e){const t=document.createElement("span"),r=e.attributes;let n="";r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n);const i=kd(e.body,r);return t.innerHTML=h1(i),t.firstChild}function Cs(e,t){const r=t.icon.data,n=t.customisations,i=_d(r,n);n.preserveAspectRatio&&(i.attributes.preserveAspectRatio=n.preserveAspectRatio);const o=t.renderedMode;let a;o==="svg"?a=g1(i):a=f1(i,{...on,...r},o==="mask");const l=Array.from(e.childNodes).find(s=>{const c=s.tagName&&s.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});l?a.tagName==="SPAN"&&l.tagName===a.tagName?l.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,l):e.appendChild(a)}function Is(e,t,r){const n=r&&(r.rendered?r:r.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:n}}function v1(e="iconify-icon"){let t,r;try{t=window.customElements,r=window.HTMLElement}catch{return}if(!t||!r)return;const n=t.get(e);if(n)return n;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends r{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const l=this._shadowRoot=this.attachShadow({mode:"open"}),s=zi(this);ys(l,s),this._state=Is({value:""},s),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(l){if(l==="inline"){const s=zi(this),c=this._state;s!==c.inline&&(c.inline=s,ys(this._shadowRoot,s))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return zi(this)}set inline(l){l?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const l=this._state;if(l.rendered){const s=this._shadowRoot;if(l.renderedMode==="svg")try{s.lastChild.setCurrentTime(0);return}catch{}Cs(s,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,s=this.getAttribute("icon");if(s!==l.icon.value){this._iconChanged(s);return}if(!l.rendered)return;const c=this.getAttribute("mode"),u=ss(this);(l.attrMode!==c||S0(l.customisations,u))&&this._renderIcon(l.icon,u,c)}_iconChanged(l){const s=K0(l,(c,u,d)=>{const f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:d};p.data?this._gotIconData(p):f.icon=p});s.data?this._gotIconData(s):this._state=Is(s,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,ss(this),this.getAttribute("mode"))}_renderIcon(l,s,c){const u=Y0(l.data.body,c),d=this._state.inline;Cs(this._shadowRoot,this._state={rendered:!0,icon:l,inline:d,customisations:s,attrMode:c,renderedMode:u})}};i.forEach(l=>{l in o.prototype||Object.defineProperty(o.prototype,l,{get:function(){return this.getAttribute(l)},set:function(s){s!==null?this.setAttribute(l,s):this.removeAttribute(l)}})});const a=Td();for(const l in a)o[l]=o.prototype[l]=a[l];return t.define(e,o),o}const m1=v1()||Td(),{enableCache:V2,disableCache:q2,iconExists:K2,getIcon:Y2,listIcons:J2,addIcon:Q2,addCollection:X2,calculateSize:Z2,buildIcon:e_,loadIcons:t_,loadIcon:r_,addAPIProvider:n_,_api:i_}=m1,Gt=(e,t,r="children")=>e.map(n=>Array.isArray(n[r])?t({...n,[r]:Gt(n[r],t,r)}):t(n)),Pd=(e,t="children")=>{const r=[];return Gt(e,n=>r.push(n),t),r},pa=(e,t,r="children")=>e.map(n=>({...n})).filter(n=>{const i=n[r];if(Array.isArray(i)){const a=pa(i,t,r);n[r]=a?.length?a:void 0}const o={filteredChildren:n[r],isLeaf:!i?.length};return t(n,o)}),Od=e=>/^https?:\/\//.test(e),Nd=e=>/^mailto:/i.test(e.trim()),b1=e=>{if(!e||!e?.startsWith("/"))return!1;const t=i=>i.endsWith("/")?i:`${i}/`,r=t(window.location.pathname),n=t(new URL(e,window.location.origin).pathname);return r.startsWith(n)},Md=(e=[])=>{const t=e.map((r,n)=>({path:r,index:n})).filter(r=>b1(r.path));return t?.length?t.slice(1).reduce((r,n)=>r.path.length>=n.path.length?r:n,t[0]).index:-1},y1=(e,t={})=>{const{columns:r=1,breakInside:n=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=t,l=e.length,s=e.reduce((m,b)=>m+i+(b[a]?.length||0)*o,0),c=Math.ceil(s/r),u=[[]];let d=0,f=0;const p=c*.2,h=m=>f>c-p&&d<r-1&&f+m>c+p;return e.forEach(m=>{const b=i+(m[a]?.length||0)*o;n&&h(i)&&(d++,f=0,u[d]=[]),!n&&f>0&&(l<=r||h(b))&&(d++,f=0,u[d]=[]),u[d].push({...m,group:!0}),f+=i,m[a]&&m[a].forEach(y=>{n&&h(o)&&(d++,f=0,u[d]=[]),u[d].push({...y,group:!1}),f+=o})}),u};function it({icon:e,size:t=void 0,sx:r={},...n}){const i=[...Array.isArray(r)?r:[r]];t&&i.push({width:t,height:t});const[o,a]=v.useState(!1),[l,s]=v.useState(!0);if(zo(async()=>{s(!0);try{await jo(e),a(!0)}catch{a(!1)}s(!1)},[e]),n.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Od(e))return g.jsx(gi,{component:"span",...n,src:e,sx:i});const c=t?.6*t+4:0;return l?g.jsx(xe,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(gi,{component:"span",...n,sx:i,children:g.jsx(xe,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),g.jsx(gi,{component:"span",...n,sx:i,children:Array.from(e)[0]})):null}function ha(e=["en","zh"]){const{blocklet:t}=Bt();return v.useMemo(()=>{const n=t.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=n?n.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ue.SUPPORTED_LANGUAGES[c]),l=a.reduce((c,u)=>(c[u]=Ue.SUPPORTED_LANGUAGES[u].nativeName,c),{}),s=a.map(c=>({code:c,name:Ue.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:l,defaultLocale:o,languages:s}},[t.environments,e])}const x1=e=>e.from!=="team-tmpl";function S1({prevPath:e,nextPath:t,node:r}){if(r.from==="team-tmpl")return!1;const n=e.length,i=t.length;return!!(n===i&&Wp(e.slice(0,n-1),t.slice(0,i-1)))}function Ad({treeNode:e}){const{locale:t}=ke(),{blocklet:r}=Bt(),{defaultLocale:n}=ha(),i=r.environments.find(l=>l.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=oe(l=>{if(l?.startsWith("/"))try{return new URL(l,i?.value).href}catch{console.error("Failed to parse url",{url:l,origin:i?.value})}return l});function a(){const{title:l,subtitle:s}=e;let c=l,u=s;return Yt(l)&&(c=l[t]||l[n]||l.en),!v.isValidElement(s)&&Yt(s)&&(u=s[t]||s[n]||s.en),g.jsxs(te,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(ye,{variant:"subtitle1",sx:{fontSize:16},children:c}),s&&g.jsx(ye,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(Fo(o(e.icon))?g.jsx(it,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}Ad.propTypes={treeNode:S.object.isRequired};const w1=tt(te)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Ld({treeData:e,setTreeData:t=()=>{},renderActions:r=()=>{}}){const n=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(w1,{children:g.jsx(Jh,{backend:Qh,...i,children:g.jsx(db,{generateNodeProps:o=>{const a=x1(o.node);return{buttons:r({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(xe,{icon:"ic:round-drag-indicator"}):g.jsx(te,{sx:{width:16,height:16}}),title:g.jsx(Ad,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:n,onChange:t,canDrop:S1,theme:v0})})})}Ld.propTypes={treeData:S.object.isRequired,setTreeData:S.func,renderActions:S.func};var C1=mc();const I1=Qn(C1);function zd({sx:e=null,onAdd:t=()=>{},onChange:r=()=>{},defaultLocale:n="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:l=()=>{}}){const{t:s}=ke(),c=v.useRef(),[u,d]=v.useState(null),f=ur({localeList:[],inputLocale:"",localeError:""}),p=v.useMemo(()=>!!u,[u]),h=v.useMemo(()=>o.includes(i)?i:n,[o,i]),m=v.useMemo(()=>f.localeList.filter(w=>!!a[w]),[f.localeList,a]),b=v.useMemo(()=>Object.keys(At(a,[...f.localeList,n])).map(w=>({title:a[w],value:w})),[f.localeList]),y=v.useMemo(()=>`Default (${a[n]||Object.values(a)?.[0]})`,[a]),x=oe(w=>w?w===n||f.localeList.includes(w)?s("navigation.form.localeExists",{value:w}):!0:s("common.requiredErrorText",{name:"Locale"})),_=oe((w="")=>{const R=w?.trim(),I=x(R);return I!==!0?f.localeError=I:f.localeError="",I}),T=oe(()=>{d(null),f.inputLocale="",f.localeError=""}),k=oe(()=>{const w=f.inputLocale?.trim();_(w)===!0&&(T(),f.localeList.push(w),t(w))}),C=oe((w,R)=>{w.preventDefault(),w.stopPropagation(),f.localeList=qc(f.localeList,R),l(R)}),D=oe(w=>{const{value:R}=w.target;_(R),f.inputLocale=R});return v.useEffect(()=>{f.localeList=[...o]},[o,f]),Uh("enter",()=>{setTimeout(()=>{k()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(sg,{sx:e,value:h,onChange:(w,R)=>{r(R)},children:[g.jsx(rl,{label:y,value:n}),m.map(w=>g.jsx(rl,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[w],g.jsx(Ge,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:R=>{C(R,w)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:w},w)),g.jsx(Ge,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:w=>{d(w.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Qi,{open:p,anchorEl:u,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(te,{sx:{p:2,width:"270px"},children:[g.jsx(ye,{variant:"subtitle2",children:s("navigation.form.localePlaceholder")}),g.jsx(te,{sx:{mt:1},children:g.jsx(ro,{required:!0,fullWidth:!0,label:"Locale",value:f.inputLocale,options:b,onChange:D,error:!!f.localeError,helperText:f.localeError||" "})}),g.jsx(te,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(ir,{size:"small",variant:"contained",onClick:k,children:s("common.confirm")})})]})})]})}zd.propTypes={sx:S.any,onAdd:S.func,onChange:S.func,onRemoveLocale:S.func,defaultLocale:S.string,locale:S.string,localeMap:S.object,locales:S.array};const ga=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function jd(e,t,r=5e3){for(const n of ga){const i=Oe(n,e);try{return await dg.get(i,{params:t,timeout:r})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function R1({keyword:e,limit:t=999,start:r=0,palette:n=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await jd("/search",{query:`${o} palette=${n}`||e,start:r,limit:t,...i&&{prefix:i}});return a}const mn=new Map;async function _1(e){if(mn.has(e))return mn.get(e);const t=(async()=>{const{data:r}=await jd("/collection",{prefix:e}),n=new Set;return r.uncategorized?.forEach(i=>n.add(`${e}:${i}`)),Object.values(r.categories??{}).forEach(i=>{i.forEach(o=>n.add(`${e}:${o}`))}),Array.from(n)})();mn.set(e,t);try{return await t}catch(r){throw mn.delete(e),r}}function D1(e){return Oe(ga[0],`${e}.svg`)}function T1(e){try{const t=new URL(e);for(const r of ga)if(t.origin===r)return Hp(t.pathname).replace(".svg","");return""}catch{return""}}function k1(e){let t=!0,r=e;return e&&(e.startsWith("/")?(t=!1,r=""):Fo(e)&&(r=T1(e))),{isIconId:t,iconId:r}}const E1=v.lazy(()=>Yp(()=>import("./index-B8jKymjp.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),Rs=je(it)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Fd({icon:e,...t}){const[r,n]=v.useState(!1);return zo(async()=>{n(!1),await jo(e),n(!0)},[e]),e?r?g.jsx(xe,{icon:e,...t}):g.jsx(xe,{color:"#f06f6e",icon:"ic:baseline-error",...t}):g.jsx(xe,{icon:"material-symbols-light:select-rounded",...t})}Fd.propTypes={icon:S.string.isRequired};function Io({value:e,helperText:t,label:r,placeholder:n,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:l,prefix:s,inService:c}=Sc(),{blocklet:u}=Bt(),d=Xr(X=>X.breakpoints.down("md")),f=u.environments.find(X=>X.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=l(),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),{t:y,locale:x}=ke(),{isIconId:_,iconId:T}=k1(e),[k,C]=v.useState(null),{onChange:D,onBlur:w,sx:R,...I}=a,P=i.includes("upload"),L=i.includes("select"),N=Oe(s,"/api/media/upload",u.appPid),G=ur({showPopover:!1}),z=oe(X=>{if(X?.startsWith("/"))try{const U=c?window.location.origin:f?.value;return new URL(X,U).href}catch{console.error("Failed to resolve url: ",X)}return X},[f?.value,c]),F=oe(async X=>await h.current.getUploader().uploadFile(X)),W=oe(()=>{C(null)}),H=oe(()=>{L&&C(b.current)}),J=oe(async X=>{try{if(o==="url"){const U=D1(X),re=await Up(U,{width:128,height:128}),ne=await Vp(re,X);await F(ne)}else D?.(X)}catch(U){console.error("Failed to pick icon:",U)}W()}),Z=oe(X=>{X.stopPropagation(),m.current.open(),W()}),Y=oe(X=>{a?.onChange?.(X.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{helperText:t,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...R},onClick:L?H:void 0,...I,label:r,placeholder:n,slotProps:{input:{ref:b,readOnly:!0,startAdornment:g.jsx(Xi,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(G.showPopover=!0)},onMouseLeave:()=>{G.showPopover=!1},children:g.jsx(Rs,{size:28,icon:z(e),alt:"Error"})}),endAdornment:g.jsxs(Xi,{position:"end",children:[g.jsx(Ge,{sx:{visibility:e?"visible":"hidden"},onClick:X=>{X.stopPropagation(),D("")},children:g.jsx(Hc,{style:{fontSize:18}})}),P&&g.jsx(qp,{title:y("common.upload"),children:g.jsx(Ge,{disableFocusRipple:!1,disableRipple:!1,onClick:Z,children:g.jsx(Fd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(te,{component:ug,sx:{mr:"-6px",fontSize:24,transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(Qi,{open:!!k,anchorEl:k,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...d&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:W,children:g.jsx(Bd,{label:r,placeholder:n,value:_?T:"",sx:{width:b.current?.offsetWidth??"auto"},onPick:J,onClose:W})}),g.jsx(Ro,{ref:h,locale:x,apiPath:N,headers:p,imageEditorProps:{},onUploadFinish:Y}),g.jsx(Ro,{ref:m,locale:x,apiPath:N,headers:p,onUploadFinish:Y}),g.jsx(Qi,{sx:{pointerEvents:"none"},open:G.showPopover,anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{G.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(Rs,{size:120,icon:z(e),alt:"Error"})})]})}Io.propTypes={value:S.string.isRequired,label:S.any,placeholder:S.any,helperText:S.string,methods:S.arrayOf(S.oneOf(["select","upload"])),iconifyShape:S.oneOf(["id","url"])};function Bd({label:e,placeholder:t,value:r="",sx:n,onPick:i,onClose:o,...a}){const[l,s]=v.useState([]),[c,u]=v.useState(!0),[d,f]=v.useState(r),[p,h]=v.useState(!1),m=v.useRef(null),b=v.useRef([]),y=v.useRef(1),x=v.useRef(!0),{t:_}=ke(),T=96,k=oe(()=>{!x.current||c||(u(!0),setTimeout(()=>{const w=y.current+1,R=(w-1)*T,I=w*T,P=b.current.slice(R,I);s(L=>[...L,...P]),y.current=w,x.current=I<b.current.length,u(!1)},300))}),C=oe(w=>{b.current=w,y.current=1,x.current=w.length>T;const R=w.slice(0,T);s(R),h(w.length===0),x.current&&k()}),{run:D}=wc(async w=>{if(w){u(!0);try{const{icons:R}=await R1({keyword:w});C(R)}catch(R){console.error("Failed to search icons:",R),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return v.useEffect(()=>{const w=()=>{if(!m.current)return;const{scrollTop:I,scrollHeight:P,clientHeight:L}=m.current;(I+L>=P-150||P<=L)&&k()},R=m.current;return R&&(R.addEventListener("scroll",w),w()),()=>{R&&R.removeEventListener("scroll",w)}},[k,c]),zo(async()=>{if(d)D(d);else{u(!0);try{const w=await _1("mdi-light");C(w)}catch(w){console.error("Failed to fetch default icons:",w),h(!0)}finally{u(!1)}}},[d,D,C]),g.jsxs(P1,{ref:m,sx:n,...a,children:[g.jsxs(te,{className:"icon-picker-input",children:[g.jsx(Jt,{label:_("navigation.form.searchIcons"),placeholder:_("navigation.form.searchIconsPlaceholder"),size:"small",value:d,sx:{flexGrow:1},autoFocus:!0,onChange:w=>f(w.target.value),slotProps:{input:{endAdornment:g.jsx(Ge,{sx:{visibility:d?"visible":"hidden"},onClick:()=>f(""),children:g.jsx(Hc,{style:{fontSize:18}})})}}}),g.jsx(ir,{onClick:o,children:_("common.cancel")})]}),g.jsxs(te,{children:[l.length>0&&g.jsx(te,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:l.map(w=>g.jsx(O1,{$active:r===w,onClick:()=>{i(w)},children:g.jsx(xe,{icon:w,width:"32",height:"32"})},w))}),p&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(te,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(Kp,{size:20})})]})]})}Bd.propTypes={label:S.any,placeholder:S.any,value:S.string,sx:S.object,onPick:S.func.isRequired,onClose:S.func.isRequired};const P1=je(te)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),O1=je(Ge,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:t})=>({boxSizing:"content-box",backgroundColor:e?t.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:t.palette.action.hover}}));function Ro({ref:e=null,locale:t,apiPath:r,headers:n,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(v.Suspense,{children:g.jsx(E1,{locale:t,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:r,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:n}})})}Ro.propTypes={ref:S.any,locale:S.string,apiPath:S.string,headers:S.object,imageEditorProps:S.object,onUploadFinish:S.func};const _s=24,Ds=48,Ts="add";S.string.isRequired;function va({ref:e=null,section:t="",components:r=[],rawNavigations:n=[],onChange:i=()=>{},...o}){const{roles:a}=Wc(),{t:l,locale:s}=ke(),{localeMap:c,defaultLocale:u}=ha(),d=oe(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),f=oe(E=>qc(Array.from(new Set(ht.flatMap(O=>Yt(E[O])?Object.keys(E[O]):[]))),u)),p=v.useRef(()=>{}),h=ur({isRoot:!0,type:Ts,linkDisabled:!1,locale:u,formState:d(),get localeList(){return f(h.formState)}}),{handleSubmit:m,control:b,reset:y,setValue:x,clearErrors:_,formState:{errors:T}}=ag({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});v.useEffect(()=>{ht.forEach(E=>x(E,h.formState[E][h.locale]))},[x,h.locale]);const k=lg({control:b}),C=k.component,D=k.title,w=k.description,R=k.link,I=k.parent;v.useEffect(()=>{h.formState.title[h.locale]=D},[D]),v.useEffect(()=>{h.formState.description[h.locale]=w},[w]),v.useEffect(()=>{h.formState.link[h.locale]=R},[R]),v.useEffect(()=>{i?.(k)},[k,i]);const P=v.useMemo(()=>n.find(O=>C?r.find(V=>V.name===C).did===O.id:O.id===I),[r,n,C,I]),L=v.useMemo(()=>{if(P?.component){const E=r.find(ee=>ee.name===P.component),{link:O}=E||{},j=Yt(O)?O[h.locale]:O;if(C)return Zi(j);const V=Yt(P.link)?P.link[h.locale]:P.link;return Zi(Oe(j,V||"/"))}return null},[r,h.locale,P,C]),N=v.useMemo(()=>{const{component:E}=P||{},O=r.find(ee=>ee.name===E),{navigation:j=[]}=O||{};return Ae.flattenNavigation(j,{transform(ee,ae){return ae?.section&&(ee.section=ee.section||ae.section),ee}}).filter(ee=>ee.link).filter(ee=>Ae.isMatchSection(ee.section,t)).map(ee=>({label:ee.link,title:ee.title[s]||ee.title}))},[P,r,t,s]),G=oe(()=>{h.isRoot=!0,h.locale=u,h.type=Ts,h.linkDisabled=!1,h.formState=d(),y(),_(),p.current=()=>{}}),z=oe((E={})=>(h.localeList.length>0&&ht.forEach(O=>{Wg(h.formState[O]).length>1&&(E[O]=h.formState[O])}),Bo(E.role)&&(E.role=void 0),E)),F=oe(({parent:E}={},O=()=>{})=>{h.type="add",h.isRoot=!E,x("parent",E?.id),p.current=j=>{O(j)}}),W=oe((E={},O=()=>{})=>{const{id:j,icon:V,parent:ee,component:ae,role:de=[]}=E;x("id",j),x("icon",V),E.from==="team-tmpl"&&(h.linkDisabled=!0);const be=f(E),Re=(Ie,Ee)=>{Cc(Ie)?h.formState[Ee]=be.reduce((We,Pe)=>(We[Pe]=Ie,We),{[u]:Ie}):Yt(Ie)?h.formState[Ee]=nt(Ie):h.formState[Ee]={}};ht.forEach(Ie=>Re(E[Ie],Ie)),ht.forEach(Ie=>x(Ie,h.formState[Ie][h.locale])),x("component",ae),x("parent",ee),x("role",de||[]),h.type="edit",h.isRoot=!ee,p.current=Ie=>{const Ee=Jp(Ie,["id","title","description","icon","component","link","role"]);O(Ee)}}),H=oe(E=>{const O=E?.trim();if(t!=="bottomNavigation"){if(!O)return l("common.requiredErrorText",{name:l("navigation.form.title")});if(O.length>_s)return l("navigation.form.titleTooLong",{len:_s})}return!0}),J=oe(E=>{const O=E?.trim();return O&&O.length>Ds?l("navigation.form.descriptionTooLong",{len:Ds}):!0}),Z=oe(E=>E?.startsWith("/")?new URL(E,window.location.origin).href:E),Y=oe(async E=>{const O=E?.trim();if(O){if(Fo(Z(O)))return!0;try{await jo(O)}catch{return l("navigation.form.invalidIcon")}}return!0}),X=oe(E=>{const O=E?.trim();return O?Y(O):l("common.requiredErrorText",{name:l("navigation.form.icon")})}),U=oe(E=>{const O=E?.trim();return O?Ae.checkLink(O)?!0:l("navigation.form.invalidLink"):h.isRoot?!0:l("common.requiredErrorText",{name:l("navigation.form.link")})}),re=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]||(h.formState[O][E]="")}),setTimeout(()=>{_()})}),ne=oe(()=>{const{title:E,link:O}=h.formState;if(t!=="bottomNavigation")for(const j of Object.keys(E)){const V=H(E[j]);if(V!==!0)return V}for(const j of Object.keys(O)){const V=U(O[j]);if(V!==!0)return V}return!0}),ce=oe(E=>{const O=ne();O===!0?p.current(z(E)):Tr.error(O)}),B=oe(E=>{h.locale=u,ht.forEach(O=>{h.formState[O]=At(h.formState[O],E)}),i?.(k)}),$=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]=h.formState[O][u]}),i?.(k),setTimeout(()=>{_()})});return v.useImperativeHandle(e,()=>({add:F,edit:W,resetImmediate:()=>G(),reset:()=>setTimeout(()=>G(),0),submit:m(ce)}),[F,G,W,m,ce]),g.jsxs(te,{...o,children:[g.jsx(zd,{sx:{mb:1},onAdd:$,onChange:re,onRemoveLocale:B,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[t!=="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})}),t==="bottomNavigation"?g.jsx(gt,{name:"icon",control:b,rules:{validate:X},render:({field:E})=>g.jsx(Io,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...E})}):g.jsx(gt,{name:"icon",control:b,rules:{validate:Y},render:({field:E})=>g.jsx(Io,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,...E})}),h.isRoot&&g.jsx(gt,{name:"component",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&E.value,label:l("navigation.form.component"),placeholder:l("navigation.form.componentPlaceholder"),options:r.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!T?.component?.message,helperText:T?.component?.message||" ",...At(E,"ref")})}),!h.isRoot&&["header"].includes(t)&&g.jsx(gt,{name:"description",control:b,rules:{validate:J},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.descriptionPlaceholder"),label:l("navigation.form.description"),disabled:h.isEdit,error:!!T?.description?.message,helperText:T?.description?.message||" ",...E})}),g.jsx(gt,{name:"link",control:b,rules:{validate:U},render:({field:E})=>g.jsx(Ic,{fullWidth:!0,margin:"dense",children:g.jsx(fg,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:O=>O.label,options:N,renderInput:O=>g.jsx(Jt,{...O,placeholder:l("navigation.form.linkPlaceholder"),label:l("navigation.form.link"),error:!!T?.link?.message,helperText:T?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Xi,{position:"start",sx:{textDecoration:I1(R||"")?"line-through":""},children:L}):null}}}),renderOption:(O,j)=>g.jsxs(te,{component:"li",...O,children:[j.label,g.jsx(ye,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...E,onChange:()=>{},onInputChange:(O,j)=>{E.onChange(j)}})})}),["dashboard","sessionManager"].includes(t)&&g.jsx(gt,{name:"role",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,multiple:!0,margin:"dense",label:l("navigation.form.role"),placeholder:l("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!T?.role?.message,helperText:T?.role?.message||" ",...At(E,"ref")})}),t==="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})})]})]})}va.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array,onChange:S.func};function ma({ref:e=null,section:t="",components:r=[],rawNavigations:n=[]}){const{t:i}=ke(),[o,{setTrue:a,setFalse:l}]=ig(),[s,c]=v.useState("add"),u=v.useRef(null),d=v.useMemo(()=>{const b={add:i("common.create"),edit:i("common.edit")}[s];return b?`${b} ${i("navigation.navigation")}`:"--"},[i,s]),f=v.useCallback(()=>{l(),u.current?.reset()},[l]),p=v.useCallback((m={},b=()=>{})=>{c("add"),u.current?.add(m,y=>b(f,y)),a()},[a,f]),h=v.useCallback((m={},b=()=>{})=>{c("edit"),u.current?.edit(m,y=>b(f,y)),a()},[a,f]);return v.useImperativeHandle(e,()=>({add:p,edit:h,close:f}),[p,h,f]),g.jsx(Qp,{open:o,title:d,keepMounted:!0,onClose:f,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Rc,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(va,{ref:u,section:t,components:r,rawNavigations:n})})}ma.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array};function $d({className:e="",add:t=()=>{},edit:r=()=>{},toggle:n=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:l}=ke(),s=["yaml","team-tmpl"].includes(o.from),c=v.isValidElement(o.subtitle);function u(m){m.preventDefault(),m.stopPropagation()}const d=v.useCallback(m=>{u(m),t(o)},[t,o]),f=v.useCallback(m=>{u(m),r(o)},[r,o]),p=v.useCallback(m=>{u(m),n(o)},[n,o]),h=v.useCallback(m=>{u(m),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:l(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(Ge,{size:"small",color:"success",onClick:d,disabled:c,children:g.jsx(xe,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:l(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(Ge,{size:"small",color:"primary",onClick:f,disabled:c||o.from==="team-tmpl",children:g.jsx(xe,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?l("navigation.action.noEdit"):o.visible?l("navigation.action.hide"):l("navigation.action.show"),children:g.jsx(Ge,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(xe,{icon:"mdi:eye-off-outline"}):g.jsx(xe,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:l(s&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(Ge,{disabled:s&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}$d.propTypes={data:S.object.isRequired,className:S.string,add:S.func,edit:S.func,toggle:S.func,del:S.func,section:S.string};const En=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",N1=e=>{const t={...e},r=e?.background;return typeof r=="string"?t.background={header:r,footer:r,default:r}:r&&typeof r=="object"&&(t.background={header:r.header||r.default,footer:r.footer||r.default,default:r.default}),t},M1=(e,t="en",r="en")=>{if(typeof e=="string"){if(Od(e)){const i=new URL(e);return i.searchParams.set("locale",t),i.href}if(Nd(e))return e;const n=new URL(e,window.location.origin);return n.searchParams.set("locale",t),n.pathname+n.search}return typeof e=="object"?e[t]||e[r]||e.en:e},rr=({navigation:e,locale:t,defaultLocale:r,section:n="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[r]||o.en:o;return Gt(e,o=>({...o,title:i(o.title,t),description:i(o.description,t),link:Wo(o.items?.length?o.link:M1(o.link,t,r),n),_rawLink:o.link}),"items")},A1=e=>Gt(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),L1=e=>{if(!e?.length)return null;const t=A1(e),r={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(n=>{n.section?Array.isArray(n.section)?n.section.forEach(i=>{r[i]?.push(n)}):typeof n.section=="string"&&r[n.section]?.push(n):r.header.push(n)}),r},ba=e=>{if(!e)return null;const t={...e};return t.theme=N1(t.theme),t.navigation=L1(z1(t.navigation)),t},z1=(e=[])=>pa(e,(t,r)=>!!t.link||r.filteredChildren?.length,"items"),Gd=(e,t)=>pa(e,(r,n)=>{const i=!r.role||t&&(r.role.includes(t)||r.role.includes("guest"));return n.isLeaf?i:i&&n.filteredChildren?.length},"items"),j1={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},F1={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function B1({session:e,locale:t="zh",size:r=24,popperType:n="click",sx:i,...o}){const a=window?.blocklet||{},l=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:h}}),s=et(),c=v.useRef(null),u=ur({open:!1}),d=oe((p=!u.open)=>{u.open=p}),f=n==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return l.length===0||!e?.user?null:g.jsxs(te,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...f,children:[g.jsx(Ge,{size:"medium",ref:c,children:g.jsx(xe,{icon:j1,fontSize:r,style:{transform:"scale(1.08)"}})}),g.jsx(Xp,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Zp,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),d(!1)},children:g.jsx(_c,{...p,timeout:350,children:g.jsxs(Mr,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(eh,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map(h=>g.jsx(th,{disablePadding:!0,children:g.jsxs(pg,{href:Ha(h.link,t),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(te,{component:"img",src:`${Dc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:h.icon||F1,color:s.palette.text.secondary}),g.jsx(ye,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ha(h.title,t)})]})},h.id))}),g.jsx(rh,{session:e,children:g.jsx(Rc,{variant:"outlined",fullWidth:!0,href:nh,sx:{mt:1},children:t==="zh"?"管理":"Manage"})})]})})})})]})}const Wd=S.shape({appLogo:S.node,appName:S.string,theme:S.shape({background:S.string}),enableConnect:S.bool,enableLocale:S.bool,navigation:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object]),icon:S.string,items:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object])}))}))}),Hd=S.shape({showText:S.bool,showRole:S.bool,switchDid:S.bool,switchProfile:S.bool,switchPassport:S.bool,disableLogout:S.bool,onLogin:S.func,onLogout:S.func,onSwitchDid:S.func,onSwitchProfile:S.func,onSwitchPassport:S.func,menu:S.array,menuRender:S.func,dark:S.bool,size:S.number,profileUrl:S.string,renderUserButton:S.func}),$1=["admin","owner"],G1=e=>e.endsWith(".ip.abtnet.io"),W1=e=>e.endsWith(".did.abtnet.io"),H1={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},U1=1e3*60*60*24*30,ks=".well-known/service/admin/domains";function Ud({locale:e="en",session:t={}}){const r=t?.user,n=Uc(),[i,o]=v.useState(()=>{const f=window.localStorage.getItem("domain-warning-skip");if(!f)return!0;const p=+new Date,h=+new Date(f);return p-h>U1}),a=oe((f,p={})=>Lo(H1,f,e,"en",p)),l=v.useMemo(()=>{try{const{hostname:f}=new URL(window.location.href);return f}catch{return""}},[]),s=v.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=v.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=v.useCallback(()=>{const f=Oe(window.location.origin,ks);f.startsWith("http")&&window.open(f,"_blank"),o(!1)},[]),d=r?.role&&$1.includes(r.role);return window.location.href.includes(ks)||n||!G1(l)&&!W1(l)?null:g.jsxs(ih,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(oh,{sx:{padding:"20px !important"},children:[g.jsx(ye,{sx:{fontSize:"20px",fontWeight:"500"},children:a(d?"owner.title":"guest.title")}),g.jsx(ye,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(d?"owner.description":"guest.description")}),d&&g.jsx(te,{component:"ul",children:s.map(f=>g.jsx(ye,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:f},f))})]}),g.jsxs(ah,{sx:{px:"12px !important"},children:[g.jsx(ir,{onClick:c,children:a("skip")}),d&&g.jsx(ir,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Ud.propTypes={locale:S.string,session:S.object};var V1=(e,t=!1)=>{const r=lh(["@arcblock/ws",e].join(":"));return{debug:r,warn:r,info:r,trace:t?r:console.error,error:t?r:console.error}},q1=(e,t,r)=>class extends e{constructor(i,o={}){super(i,{transport:r,...o}),this._logger=V1("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(l=>{this.emitter.removeAllListeners(l)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const a=this.channel(i,o);a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a.on(i,({status:l,response:s})=>{l==="ok"?this.emitter.emit(i,s):this._logger.debug("response error",{topic:i,status:l,data:s})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(a=>a.topic===i);o&&(this.remove(o),o.leave().receive("ok",a=>{this._logger.debug("leave success",{topic:i,message:a})}).receive("error",a=>{this._logger.error("leave error",{topic:i,err:a})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,o={}){let a=this.channels.find(l=>l.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}},K1=q1(ch,sh);const Me={};function Y1(e="admin"){let t="/";!window?.blocklet&&window?.env?.apiPrefix&&(t=window.env.apiPrefix);const r=Oe(t,Dc,e);return new K1(r,{heartbeatIntervalMs:100*1e3})}function J1(e="admin"){return Me[e]||(Me[e]=Y1(e)),Me[e]}const Q1=(e="admin")=>{const t=v.use(Zn),{session:r}=t??{},n=_e(()=>r.user?.did,[r.user]),i=uh(n);return dh(()=>{Object.keys(Me).forEach(o=>{Me[o]?.isConnected()&&Me[o]?.disconnect(),delete Me[o]})}),n?(i&&i!==n&&Object.keys(Me).forEach(o=>{Me[o]&&(Me[o].isConnected()&&Me[o].disconnect(),Me[o].connect())}),!Me[e]&&r.user&&(Me[e]=J1(e),Me[e].connect()),Me[e]):null},X1={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Z1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},ex={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function tx(){const e=et();return[...e.breakpoints.keys].reverse().reduce((t,r)=>{const n=Xr(e.breakpoints.up(r));return!t&&n?r:t},null)||"xs"}const rx=e=>!Bo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nx=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t?.id,targetLink:r?.id}},ix=async(e,t)=>{try{return await ph().user.getProfileUrl({did:e,locale:t})}catch(r){console.error(r);return}},ox=async(e,t)=>{const{type:r,did:n}=e;return Tc.isSameAddr(r,"did")?await ix(n,t)||Mn.getLink(e):Mn.getLink(e)},ax=async(e,t,r=!0)=>{const n=Mn.toTextList(e);return await Promise.all(n.map(async i=>{if(i instanceof Mn.Link){if(r){const o=await ox(i,t),{type:a,chainId:l,did:s}=i;return Tc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},lx=e=>fh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),sx={comment:(e,t)=>t&&t>1?g.jsxs(g.Fragment,{children:["left ",t," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Kt({user:e,color:t=void 0}){const{palette:r}=et(),n=Yn(Oe(dt,"user"),{did:e.did}),i=t||r.text.primary;return g.jsx(kc,{href:n,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function cx({activity:e,users:t,actors:r,extra:n={},mountPoint:i=""}){const{palette:o}=et(),{type:a,target:l}=e||{},{type:s}=l||{},{linkColor:c=o.text.primary}=n||{},u=_e(()=>{if(!Array.isArray(t))return new Map;const b=new Map;return t.forEach(y=>{y?.did&&!b.has(y.did)&&b.set(y.did,y)}),b},[t]),d=_e(()=>Array.isArray(r)?r.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[r,u]),f=oe(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return g.jsx(Kt,{user:d[0],color:c});const b=d.slice(0,-1),y=d[d.length-1];if(d.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Kt,{user:b[0],color:c})," and ",g.jsx(Kt,{user:y,color:c})]});const x=d.length>3,_=x?d.slice(0,2):b;return g.jsxs(g.Fragment,{children:[_.map((T,k)=>g.jsxs(Q.Fragment,{children:[g.jsx(Kt,{user:T,color:c}),k<_.length-1?", ":""]},T.did)),x?`, and ${d.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),p=oe(()=>{const b=a?sx[a]:null;return b?b(s,t.length):null}),h=_e(()=>{const b=f(),y=p();return!b||!y?null:g.jsxs(g.Fragment,{children:[b," ",y]})},[a,s,d,f,p]),m=_e(()=>{if(!e)return null;const b=nx(e);return b?.targetLink?Oe(i,b.targetLink):null},[e,i]);return!a||Bo(l)?null:g.jsxs(g.Fragment,{children:[h," ",m&&g.jsx(kc,{href:m,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:l.name})]})}const ux={normal:Ua,success:X1,info:Ua,warning:Z1,error:ex},dx=dr(mh)`
65
+ `}},t.insertRules=function(n,i){for(var o=0;o<n.index.length;o++)this.insertRule(n.index[o],o,i)},t.insertRule=function(n,i,o){if(o===void 0&&(o=this.element.sheet),n.rules){var a=n,l=o;if(n.type==="conditional"||n.type==="keyframes"){var s=rs(o,i);if(l=ts(o,a.toString({children:!1}),s),l===!1)return!1;this.refCssRule(n,s,l)}return this.insertRules(a.rules,l),l}var c=n.toString();if(!c)return!1;var u=rs(o,i),d=ts(o,c,u);return d===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,u,d),d)},t.refCssRule=function(n,i,o){n.renderable=o,n.options.parent instanceof Ku&&this.cssRules.splice(i,0,o)},t.deleteRule=function(n){var i=this.element.sheet,o=this.indexOf(n);return o===-1?!1:(i.deleteRule(o),this.cssRules.splice(o,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,i){var o=this.indexOf(n);return o===-1?!1:(this.element.sheet.deleteRule(o),this.cssRules.splice(o,1),this.insertRule(i,o))},t.getRules=function(){return this.element.sheet.cssRules},e})(),Kb=0,Yb=(function(){function e(r){this.id=Kb++,this.version="10.10.0",this.plugins=new Mb,this.options={id:{minify:!1},createGenerateId:es,Renderer:nn?qb:null,plugins:[]},this.generateId=es({minify:!1});for(var n=0;n<Ql.length;n++)this.plugins.use(Ql[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=q({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,i){i===void 0&&(i={});var o=i,a=o.index;typeof a!="number"&&(a=Lr.index===0?0:Lr.index+1);var l=new Ku(n,q({},i,{jss:this,generateId:i.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(l),l},t.removeStyleSheet=function(n){return n.detach(),Lr.remove(n),this},t.createRule=function(n,i,o){if(i===void 0&&(i={}),o===void 0&&(o={}),typeof n=="object")return this.createRule(void 0,n,i);var a=q({},o,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var l=ia(n,i,a);return l&&this.plugins.onProcessRule(l),l},t.use=function(){for(var n=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return o.forEach(function(l){n.plugins.use(l)}),this},e})(),Qu=function(t){return new Yb(t)},aa=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function Xu(e){var t=null;for(var r in e){var n=e[r],i=typeof n;if(i==="function")t||(t={}),t[r]=n;else if(i==="object"&&n!==null&&!Array.isArray(n)){var o=Xu(n);o&&(t||(t={}),t[r]=o)}}return t}Qu();function _i(e){return e&&Gc(e)==="object"&&e.constructor===Object}function Zu(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?q({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach(function(i){i!=="__proto__"&&(_i(t[i])&&i in e?n[i]=Zu(e[i],t[i],r):n[i]=t[i])}),n}function ed(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=q({},t);return Object.keys(r).forEach(function(i){r[i]&&(n[i]="".concat(t[i]," ").concat(r[i]))}),n}var er={set:function(t,r,n,i){var o=t.get(r);o||(o=new Map,t.set(r,o)),o.set(n,i)},get:function(t,r,n){var i=t.get(r);return i?i.get(n):void 0},delete:function(t,r,n){var i=t.get(r);i.delete(n)}},Jb=Q.createContext(null);function Qb(){var e=Q.useContext(Jb);return e}var Xb=typeof Symbol=="function"&&Symbol.for;const Zb=Xb?Symbol.for("mui.nested"):"__THEME_NESTED__";var ey=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,i=n===void 0?"jss":n,o=e.seed,a=o===void 0?"":o,l=a===""?"":"".concat(a,"-"),s=0,c=function(){return s+=1,s};return function(u,d){var f=d.options.name;if(f&&f.indexOf("Mui")===0&&!d.options.link&&!r){if(ey.indexOf(u.key)!==-1)return"Mui-".concat(u.key);var p="".concat(l).concat(f,"-").concat(u.key);return!d.options.theme[Zb]||a!==""?p:"".concat(p,"-").concat(c())}return"".concat(l).concat(i).concat(c())}}var td=Date.now(),Di="fnValues"+td,Ti="fnStyle"+ ++td,ry=function(){return{onCreateRule:function(r,n,i){if(typeof n!="function")return null;var o=ia(r,{},i);return o[Ti]=n,o},onProcessStyle:function(r,n){if(Di in n||Ti in n)return r;var i={};for(var o in r){var a=r[o];typeof a=="function"&&(delete r[o],i[o]=a)}return n[Di]=i,r},onUpdate:function(r,n,i,o){var a=n,l=a[Ti];l&&(a.style=l(r)||{});var s=a[Di];if(s)for(var c in s)a.prop(c,s[c](r),o)}}},wt="@global",po="@global ",ny=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i,this.rules=new ii(q({},i,{parent:this}));for(var o in n)this.rules.add(o,n[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,i,o){var a=this.rules.add(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,i,o){var a=this.rules.replace(n,i,o);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e})(),iy=(function(){function e(r,n,i){this.type="global",this.at=wt,this.isProcessed=!1,this.key=r,this.options=i;var o=r.substr(po.length);this.rule=i.jss.createRule(o,n,q({},i,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e})(),oy=/\s*,\s*/g;function rd(e,t){for(var r=e.split(oy),n="",i=0;i<r.length;i++)n+=t+" "+r[i].trim(),r[i+1]&&(n+=", ");return n}function ay(e,t){var r=e.options,n=e.style,i=n?n[wt]:null;if(i){for(var o in i)t.addRule(o,i[o],q({},r,{selector:rd(o,e.selector)}));delete n[wt]}}function ly(e,t){var r=e.options,n=e.style;for(var i in n)if(!(i[0]!=="@"||i.substr(0,wt.length)!==wt)){var o=rd(i.substr(wt.length),e.selector);t.addRule(o,n[i],q({},r,{selector:o})),delete n[i]}}function sy(){function e(r,n,i){if(!r)return null;if(r===wt)return new ny(r,n,i);if(r[0]==="@"&&r.substr(0,po.length)===po)return new iy(r,n,i);var o=i.parent;return o&&(o.type==="global"||o.options.parent&&o.options.parent.type==="global")&&(i.scoped=!1),!i.selector&&i.scoped===!1&&(i.selector=r),null}function t(r,n){r.type!=="style"||!n||(ay(r,n),ly(r,n))}return{onCreateRule:e,onProcessRule:t}}var ns=/\s*,\s*/g,cy=/&/g,uy=/\$([\w-]+)/g;function dy(){function e(i,o){return function(a,l){var s=i.getRule(l)||o&&o.getRule(l);return s?s.selector:l}}function t(i,o){for(var a=o.split(ns),l=i.split(ns),s="",c=0;c<a.length;c++)for(var u=a[c],d=0;d<l.length;d++){var f=l[d];s&&(s+=", "),s+=f.indexOf("&")!==-1?f.replace(cy,u):u+" "+f}return s}function r(i,o,a){if(a)return q({},a,{index:a.index+1});var l=i.options.nestingLevel;l=l===void 0?1:l+1;var s=q({},i.options,{nestingLevel:l,index:o.indexOf(i)+1});return delete s.name,s}function n(i,o,a){if(o.type!=="style")return i;var l=o,s=l.options.parent,c,u;for(var d in i){var f=d.indexOf("&")!==-1,p=d[0]==="@";if(!(!f&&!p)){if(c=r(l,s,c),f){var h=t(d,l.selector);u||(u=e(s,a)),h=h.replace(uy,u);var m=l.key+"-"+d;"replaceRule"in s?s.replaceRule(m,i[d],q({},c,{selector:h})):s.addRule(m,i[d],q({},c,{selector:h}))}else p&&s.addRule(d,{},c).addRule(l.key,i[d],{selector:l.selector});delete i[d]}}return i}return{onProcessStyle:n}}var fy=/[A-Z]/g,py=/^ms-/,ki={};function hy(e){return"-"+e.toLowerCase()}function nd(e){if(ki.hasOwnProperty(e))return ki[e];var t=e.replace(fy,hy);return ki[e]=py.test(t)?"-"+t:t}function jn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:nd(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(jn):t.fallbacks=jn(e.fallbacks)),t}function gy(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=jn(r[n]);return r}return jn(r)}function t(r,n,i){if(n.indexOf("--")===0)return r;var o=nd(n);return n===o?r:(i.prop(o,r),null)}return{onProcessStyle:e,onChangeValue:t}}var A=aa&&CSS?CSS.px:"px",gn=aa&&CSS?CSS.ms:"ms",Ut=aa&&CSS?CSS.percent:"%",vy={"animation-delay":gn,"animation-duration":gn,"background-position":A,"background-position-x":A,"background-position-y":A,"background-size":A,border:A,"border-bottom":A,"border-bottom-left-radius":A,"border-bottom-right-radius":A,"border-bottom-width":A,"border-left":A,"border-left-width":A,"border-radius":A,"border-right":A,"border-right-width":A,"border-top":A,"border-top-left-radius":A,"border-top-right-radius":A,"border-top-width":A,"border-width":A,"border-block":A,"border-block-end":A,"border-block-end-width":A,"border-block-start":A,"border-block-start-width":A,"border-block-width":A,"border-inline":A,"border-inline-end":A,"border-inline-end-width":A,"border-inline-start":A,"border-inline-start-width":A,"border-inline-width":A,"border-start-start-radius":A,"border-start-end-radius":A,"border-end-start-radius":A,"border-end-end-radius":A,margin:A,"margin-bottom":A,"margin-left":A,"margin-right":A,"margin-top":A,"margin-block":A,"margin-block-end":A,"margin-block-start":A,"margin-inline":A,"margin-inline-end":A,"margin-inline-start":A,padding:A,"padding-bottom":A,"padding-left":A,"padding-right":A,"padding-top":A,"padding-block":A,"padding-block-end":A,"padding-block-start":A,"padding-inline":A,"padding-inline-end":A,"padding-inline-start":A,"mask-position-x":A,"mask-position-y":A,"mask-size":A,height:A,width:A,"min-height":A,"max-height":A,"min-width":A,"max-width":A,bottom:A,left:A,top:A,right:A,inset:A,"inset-block":A,"inset-block-end":A,"inset-block-start":A,"inset-inline":A,"inset-inline-end":A,"inset-inline-start":A,"box-shadow":A,"text-shadow":A,"column-gap":A,"column-rule":A,"column-rule-width":A,"column-width":A,"font-size":A,"font-size-delta":A,"letter-spacing":A,"text-decoration-thickness":A,"text-indent":A,"text-stroke":A,"text-stroke-width":A,"word-spacing":A,motion:A,"motion-offset":A,outline:A,"outline-offset":A,"outline-width":A,perspective:A,"perspective-origin-x":Ut,"perspective-origin-y":Ut,"transform-origin":Ut,"transform-origin-x":Ut,"transform-origin-y":Ut,"transform-origin-z":Ut,"transition-delay":gn,"transition-duration":gn,"vertical-align":A,"flex-basis":A,"shape-margin":A,size:A,gap:A,grid:A,"grid-gap":A,"row-gap":A,"grid-row-gap":A,"grid-column-gap":A,"grid-template-rows":A,"grid-template-columns":A,"grid-auto-rows":A,"grid-auto-columns":A,"box-shadow-x":A,"box-shadow-y":A,"box-shadow-blur":A,"box-shadow-spread":A,"font-line-height":A,"text-shadow-x":A,"text-shadow-y":A,"text-shadow-blur":A};function id(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var i in e)n[i]=e[i],n[i.replace(t,r)]=e[i];return n}var my=id(vy);function zr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=zr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var i in t)t[i]=zr(i,t[i],r);else for(var o in t)t[o]=zr(e+"-"+o,t[o],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||my[e];return a&&!(t===0&&a===A)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function by(e){e===void 0&&(e={});var t=id(e);function r(i,o){if(o.type!=="style")return i;for(var a in i)i[a]=zr(a,i[a],t);return i}function n(i,o){return zr(o,i,t)}return{onProcessStyle:r,onChangeValue:n}}var Pr="",ho="",od="",ad="",yy=nn&&"ontouchstart"in document.documentElement;if(nn){var Ei={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},xy=document.createElement("p"),Pi=xy.style,Sy="Transform";for(var Oi in Ei)if(Oi+Sy in Pi){Pr=Oi,ho=Ei[Oi];break}Pr==="Webkit"&&"msHyphens"in Pi&&(Pr="ms",ho=Ei.ms,ad="edge"),Pr==="Webkit"&&"-apple-trailing-word"in Pi&&(od="apple")}var le={js:Pr,css:ho,vendor:od,browser:ad,isTouch:yy};function wy(e){return e[1]==="-"||le.js==="ms"?e:"@"+le.css+"keyframes"+e.substr(10)}var Cy={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:le.js==="ms"?"-webkit-"+t:le.css+t}},Iy={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:le.js==="Webkit"?le.css+"print-"+t:t}},Ry=/[-\s]+(.)?/g;function _y(e,t){return t?t.toUpperCase():""}function la(e){return e.replace(Ry,_y)}function _t(e){return la("-"+e)}var Dy={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(le.js==="Webkit"){var n="mask-image";if(la(n)in r)return t;if(le.js+_t(n)in r)return le.css+t}return t}},Ty={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:le.vendor==="apple"&&!le.isTouch?le.css+t:t}},ky={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:le.css+t}},Ey={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:le.css+t}},Py={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:le.js==="Webkit"||le.js==="ms"&&le.browser!=="edge"?le.css+t:t}},Oy={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:le.js==="Moz"||le.js==="ms"||le.vendor==="apple"?le.css+t:t}},Ny={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(le.js==="Webkit"){var n="WebkitColumn"+_t(t);return n in r?le.css+"column-"+t:!1}if(le.js==="Moz"){var i="page"+_t(t);return i in r?"page-"+t:!1}return!1}},My={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(le.js==="Moz")return t;var n=t.replace("-inline","");return le.js+_t(n)in r?le.css+n:!1}},Ay={supportedProperty:function(t,r){return la(t)in r?t:!1}},Ly={supportedProperty:function(t,r){var n=_t(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:le.js+n in r?le.css+t:le.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},zy={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:le.js==="ms"?""+le.css+t:t}},jy={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:le.js==="ms"?le.css+"scroll-chaining":t}},Fy={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},By={supportedProperty:function(t,r){var n=Fy[t];return n&&le.js+_t(n)in r?le.css+n:!1}},ld={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},$y=Object.keys(ld),Gy=function(t){return le.css+t},Wy={supportedProperty:function(t,r,n){var i=n.multiple;if($y.indexOf(t)>-1){var o=ld[t];if(!Array.isArray(o))return le.js+_t(o)in r?le.css+o:!1;if(!i)return!1;for(var a=0;a<o.length;a++)if(!(le.js+_t(o[0])in r))return!1;return o.map(Gy)}return!1}},sd=[Cy,Iy,Dy,Ty,ky,Ey,Py,Oy,Ny,My,Ay,Ly,zy,jy,By,Wy],is=sd.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),Hy=sd.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,fu(t.noPrefill)),e},[]),Or,Mt={};if(nn){Or=document.createElement("p");var Ni=window.getComputedStyle(document.documentElement,"");for(var Mi in Ni)isNaN(Mi)||(Mt[Ni[Mi]]=Ni[Mi]);Hy.forEach(function(e){return delete Mt[e]})}function go(e,t){if(t===void 0&&(t={}),!Or)return e;if(Mt[e]!=null)return Mt[e];(e==="transition"||e==="transform")&&(t[e]=e in Or.style);for(var r=0;r<is.length&&(Mt[e]=is[r](e,Or.style,t),!Mt[e]);r++);try{Or.style[e]=""}catch{return!1}return Mt[e]}var Vt={},Uy={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Vy=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,vt;function qy(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?go(t):", "+go(r);return n||t||r}nn&&(vt=document.createElement("p"));function os(e,t){var r=t;if(!vt||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(Vt[n]!=null)return Vt[n];try{vt.style[e]=r}catch{return Vt[n]=!1,!1}if(Uy[e])r=r.replace(Vy,qy);else if(vt.style[e]===""&&(r=le.css+r,r==="-ms-flex"&&(vt.style[e]="-ms-flexbox"),vt.style[e]=r,vt.style[e]===""))return Vt[n]=!1,!1;return vt.style[e]="",Vt[n]=r,Vt[n]}function Ky(){function e(i){if(i.type==="keyframes"){var o=i;o.at=wy(o.at)}}function t(i){for(var o in i){var a=i[o];if(o==="fallbacks"&&Array.isArray(a)){i[o]=a.map(t);continue}var l=!1,s=go(o);s&&s!==o&&(l=!0);var c=!1,u=os(s,zt(a));u&&u!==a&&(c=!0),(l||c)&&(l&&delete i[o],i[s||o]=u||a)}return i}function r(i,o){return o.type!=="style"?i:t(i)}function n(i,o){return os(o,zt(i))||i}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Yy(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var i={},o=Object.keys(r).sort(e),a=0;a<o.length;a++)i[o[a]]=r[o[a]];return i}}}function Jy(){return{plugins:[ry(),sy(),dy(),gy(),by(),typeof window>"u"?null:Ky(),Yy()]}}var Qy=Qu(Jy()),Xy=ty(),Zy=new Map,e0={disableGeneration:!1,generateClassName:Xy,jss:Qy,sheetsCache:null,sheetsManager:Zy,sheetsRegistry:null},t0=Q.createContext(e0),as=-1e9;function r0(){return as+=1,as}var n0={};function i0(e){var t=typeof e=="function";return{create:function(n,i){var o;try{o=t?e(n):e}catch(s){throw s}if(!i||!n.overrides||!n.overrides[i])return o;var a=n.overrides[i],l=q({},o);return Object.keys(a).forEach(function(s){l[s]=Zu(l[s],a[s])}),l},options:{}}}function o0(e,t,r){var n=e.state,i=e.stylesOptions;if(i.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=ed({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function a0(e,t){var r=e.state,n=e.theme,i=e.stylesOptions,o=e.stylesCreator,a=e.name;if(!i.disableGeneration){var l=er.get(i.sheetsManager,o,n);l||(l={refs:0,staticSheet:null,dynamicStyles:null},er.set(i.sheetsManager,o,n,l));var s=q({},o.options,i,{theme:n,flip:typeof i.flip=="boolean"?i.flip:n.direction==="rtl"});s.generateId=s.serverGenerateClassName||s.generateClassName;var c=i.sheetsRegistry;if(l.refs===0){var u;i.sheetsCache&&(u=er.get(i.sheetsCache,o,n));var d=o.create(n,a);u||(u=i.jss.createStyleSheet(d,q({link:!1},s)),u.attach(),i.sheetsCache&&er.set(i.sheetsCache,o,n,u)),c&&c.add(u),l.staticSheet=u,l.dynamicStyles=Xu(d)}if(l.dynamicStyles){var f=i.jss.createStyleSheet(l.dynamicStyles,q({link:!0},s));f.update(t),f.attach(),r.dynamicSheet=f,r.classes=ed({baseClasses:l.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else r.classes=l.staticSheet.classes;l.refs+=1}}function l0(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function s0(e){var t=e.state,r=e.theme,n=e.stylesOptions,i=e.stylesCreator;if(!n.disableGeneration){var o=er.get(n.sheetsManager,i,r);o.refs-=1;var a=n.sheetsRegistry;o.refs===0&&(er.delete(n.sheetsManager,i,r),n.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function c0(e,t){var r=Q.useRef([]),n,i=Q.useMemo(function(){return{}},t);r.current!==i&&(r.current=i,n=e()),Q.useEffect(function(){return function(){n&&n()}},[i])}function u0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,i=t.Component,o=t.defaultTheme,a=o===void 0?n0:o,l=Xt(t,["name","classNamePrefix","Component","defaultTheme"]),s=i0(e),c=r||n||"makeStyles";s.options={index:r0(),name:r,meta:c,classNamePrefix:c};var u=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},p=Qb()||a,h=q({},Q.useContext(t0),l),m=Q.useRef(),b=Q.useRef();c0(function(){var x={name:r,state:{},stylesCreator:s,stylesOptions:h,theme:p};return a0(x,f),b.current=!1,m.current=x,function(){s0(x)}},[p,s]),Q.useEffect(function(){b.current&&l0(m.current,f),b.current=!0});var y=o0(m.current,f.classes,i);return y};return u}const d0=Object.freeze(Object.defineProperty({__proto__:null,default:u0},Symbol.toStringTag,{value:"Module"})),f0=Jn(d0);var p0=Dn.exports,ls;function h0(){return ls||(ls=1,(function(e,t){(function(r,n){e.exports=n()})(typeof self<"u"?self:p0,function(){return(function(r){function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return r[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var i={};return n.m=r,n.c=i,n.d=function(o,a,l){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:l})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=3)})([function(r,n){r.exports=bc()},function(r,n){r.exports=yc()},function(r,n){r.exports=f0},function(r,n,i){function o(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(n,"__esModule",{value:!0});var a=i(4),l=o(a),s=i(6),c=o(s);n.default={isVirtualized:!1,nodeContentRenderer:l.default,scaffoldBlockPxWidth:25,treeNodeRenderer:c.default}},function(r,n,i){function o(x){return x&&x.__esModule?x:{default:x}}function a(x,_){return!!x.children&&typeof x.children!="function"&&x.children.some(function(T){return T===_||a(T,_)})}function l(x){var _=x.scaffoldBlockPxWidth,T=x.connectDragPreview,k=x.connectDragSource,C=x.isDragging,D=x.canDrop,w=x.canDrag,R=x.node,I=x.title,P=x.draggedNode,L=x.path,N=x.treeIndex,G=x.isSearchMatch,z=x.isSearchFocus,F=x.icons,W=x.buttons,H=x.className,J=x.style,Z=x.didDrop,Y=x.lowerSiblingCounts,X=x.listIndex,U=x.swapFrom,re=x.swapLength,ne=x.swapDepth,ce=x.onItemClick,B=y(),$=I||R.title,E=P&&a(P,R),O=!Z&&C,j=[];Y.forEach(function(ee,ae){if(ae>0&&(j.push(u.default.createElement("div",{className:B.lineBlock,key:"pre_"+(1+ae),style:{width:_}})),N!==X&&ae===ne)){var de="";de=X===U+re-1?B.highlightBottomLeftCorner:N===U?B.highlightTopLeftCorner:B.highlightLineVertical,j.push(u.default.createElement("div",{className:B.absoluteLineBlock+" "+de,key:"highlight_"+(1+ae),style:{left:_*ae,width:_}}))}});var V=u.default.createElement("div",{className:B.contentNode},T(u.default.createElement("div",{className:B.row+(R.active?" "+B.activeRow:"")+(O?" "+B.rowLandingPad:"")+(C?" "+B.rowLandingPadDisable:"")+(O&&!D?" "+B.rowCancelPad:"")+(G?" "+B.rowSearchMatch:"")+(z?" "+B.rowSearchFocus:"")+(w?"":" "+B.rowWrapperDragDisabled)+(H?" "+H:""),onClick:function(){return ce?ce(s({},R,{index:N})):null},style:s({opacity:E?.5:1},J)},R.type==="divider"?u.default.createElement("div",{className:B.divider}):u.default.createElement(c.Fragment,null,j,u.default.createElement("div",{className:B.rowIcon},F),u.default.createElement("div",{className:B.rowLabel},typeof $=="string"?u.default.createElement("span",{className:B.rowTitle},$):typeof $=="function"?$({node:R,path:L,treeIndex:N}):$),u.default.createElement("div",{className:B.rowToolbar},W)))));return w?k(V,{dropEffect:"copy"}):V}Object.defineProperty(n,"__esModule",{value:!0});var s=Object.assign||function(x){for(var _=1;_<arguments.length;_++){var T=arguments[_];for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(x[k]=T[k])}return x},c=i(0),u=o(c),d=i(1),f=o(d),p=i(2),h=o(p),m=i(5),b=o(m),y=(0,h.default)(b.default,{name:"MuiNodeContent"});l.defaultProps={buttons:null,canDrag:!1,canDrop:!1,className:"",draggedNode:null,icons:null,isSearchFocus:!1,isSearchMatch:!1,parentNode:null,style:{},swapDepth:null,swapFrom:null,swapLength:null,title:null,toggleChildrenVisibility:null},l.propTypes={buttons:f.default.node,canDrag:f.default.bool,canDrop:f.default.bool,className:f.default.string,connectDragPreview:f.default.func.isRequired,connectDragSource:f.default.func.isRequired,didDrop:f.default.bool.isRequired,draggedNode:f.default.shape({}),icons:f.default.node,isDragging:f.default.bool.isRequired,isOver:f.default.bool.isRequired,isSearchFocus:f.default.bool,isSearchMatch:f.default.bool,listIndex:f.default.number.isRequired,lowerSiblingCounts:f.default.arrayOf(f.default.number).isRequired,node:f.default.shape({}).isRequired,parentNode:f.default.shape({}),path:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])).isRequired,rowDirection:f.default.string.isRequired,scaffoldBlockPxWidth:f.default.number.isRequired,style:f.default.shape({}),swapDepth:f.default.number,swapFrom:f.default.number,swapLength:f.default.number,title:f.default.oneOfType([f.default.func,f.default.node]),toggleChildrenVisibility:f.default.func,treeId:f.default.string.isRequired,treeIndex:f.default.number.isRequired},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{"@keyframes arrow-pulse":{"0%":{opacity:0,transform:"translate(0, 0)"},"100%":{opacity:0,transform:"translate(0, 1000%)"},"30%":{opacity:1,transform:"translate(0, 300%)"},"70%":{opacity:1,transform:"translate(0, 700%)"}},absoluteLineBlock:{position:"absolute",top:0},activeRow:{},collapseButton:{},contentNode:{width:"100%"},divider:{backgroundColor:"#D8D8D8",height:1,width:"100%"},expandButton:{},highlightBottomLeftCorner:{zIndex:3},highlightLineVertical:{zIndex:3},highlightTopLeftCorner:{},lineBlock:{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},lineChildren:{display:"inline-block",height:"100%"},nodeContent:{"& $collapseButton, & $expandButton":{"&::after":{border:"solid transparent 10px",borderLeftWidth:7,borderRightWidth:7,borderTopColor:"gray",content:'""',position:"absolute",transform:"translate3d(-50%, -20%, 0)",transformOrigin:"7px 4px"},"&:focus":{"&::after":{filter:"drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9) drop-shadow(0 0 1px #83bef9)"},outline:"none"},"&:hover::after":{borderTopColor:"black"},appearance:"none",background:"transparent",border:"none",cursor:"pointer",height:30,padding:0,position:"absolute",top:"45%",transform:"translate3d(-50%, -50%, 0)",width:30,zIndex:2},"& $lineBlock, & $absoluteLineBlock":{display:"inline-block",flex:"0 0 auto",height:"100%",position:"relative"},"& $rowContents":{alignItems:"center",borderRadius:"3px",color:"#595959",display:"flex",height:"100%",justifyContent:"space-between",padding:10,position:"relative"}},row:{"& $rowIcon, & $rowLabel,& $rowToolbar":{alignItems:"center",display:"flex"},"& $rowLabel":{flex:1,overflow:"hidden",padding:"0px 6px"},"& $rowToolbar":{cursor:"pointer"},"&$activeRow":{backgroundColor:"#F3FBFF",color:"#1890FF"},"&$rowCancelPad":{"&::before":{backgroundColor:"#ffd2d6",border:"2px dotted #e6a8ad"}},"&$rowLandingPad":{"&::before":{backgroundColor:"#dddddd",border:"2px dotted #b5b5b5"}},"&$rowLandingPad, &$rowCancelPad":{"& *":{opacity:".6 !important"},"&::before":{bottom:0,content:'""',left:0,position:"absolute",right:0,top:0,zIndex:-1},backgroundColor:"transparent",border:"none",boxShadow:"none",outline:"none"},"&$rowLandingPadDisable":{"&:hover":{backgroundColor:"white"}},backgroundColor:"white",cursor:"grab",display:"flex",flex:1,padding:6,position:"relative"},rowCancelPad:{},rowContents:{},rowIcon:{color:"#D9D9D9"},rowLabel:{},rowLandingPad:{},rowLandingPadDisable:{},rowSearchFocus:{boxShadow:"inset 0 -7px 7px -3px #fc6421"},rowSearchMatch:{boxShadow:"inset 0 -7px 7px -3px #0080ff"},rowToolbar:{},rowWrapper:{"&:active":{backgroundColor:"transparent"},"&:hover":{backgroundColor:"#F3FBFF"},boxSizing:"border-box",cursor:"grab",display:"flex",height:"100%"},rowWrapperDragDisabled:{cursor:"default"}}}},function(r,n,i){function o(b){return b&&b.__esModule?b:{default:b}}function a(b){var y=b.children,x=b.listIndex,_=b.swapFrom,T=b.swapLength,k=b.swapDepth,C=b.lowerSiblingCounts,D=b.connectDropTarget,w=b.isOver,R=b.draggedNode,I=b.canDrop,P=m();return D(s.default.createElement("div",{className:P.node},l.Children.map(y,function(L){return(0,l.cloneElement)(L,{canDrop:I,draggedNode:R,isOver:w,listIndex:x,lowerSiblingCounts:C,swapDepth:k,swapFrom:_,swapLength:T})})))}Object.defineProperty(n,"__esModule",{value:!0});var l=i(0),s=o(l),c=i(1),u=o(c),d=i(2),f=o(d),p=i(7),h=o(p),m=(0,f.default)(h.default,{name:"MuiTreeNode"});a.defaultProps={canDrop:!1,draggedNode:null,swapDepth:null,swapFrom:null,swapLength:null},a.propTypes={canDrop:u.default.bool,children:u.default.node.isRequired,connectDropTarget:u.default.func.isRequired,draggedNode:u.default.shape({}),getPrevRow:u.default.func.isRequired,isOver:u.default.bool.isRequired,listIndex:u.default.number.isRequired,lowerSiblingCounts:u.default.arrayOf(u.default.number).isRequired,node:u.default.shape({}).isRequired,path:u.default.arrayOf(u.default.oneOfType([u.default.string,u.default.number])).isRequired,rowDirection:u.default.string.isRequired,scaffoldBlockPxWidth:u.default.number.isRequired,swapDepth:u.default.number,swapFrom:u.default.number,swapLength:u.default.number,treeId:u.default.string.isRequired,treeIndex:u.default.number.isRequired},n.default=a},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(){return{node:{display:"flex"}}}}])})})(Dn)),Dn.exports}var g0=h0();const v0=Qn(g0);const cd=Object.freeze({left:0,top:0,width:16,height:16}),Fn=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),on=Object.freeze({...cd,...Fn}),vo=Object.freeze({...on,body:"",hidden:!1}),m0=Object.freeze({width:null,height:null}),ud=Object.freeze({...m0,...Fn});function b0(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(i){for(;i<0;)i+=4;return i%4}if(r===""){const i=parseInt(e);return isNaN(i)?0:n(i)}else if(r!==e){let i=0;switch(r){case"%":i=25;break;case"deg":i=90}if(i){let o=parseFloat(e.slice(0,e.length-r.length));return isNaN(o)?0:(o=o/i,o%1===0?n(o):0)}}return t}const y0=/[\s,]+/;function x0(e,t){t.split(y0).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const dd={...ud,preserveAspectRatio:""};function ss(e){const t={...dd},r=(n,i)=>e.getAttribute(n)||i;return t.width=r("width",null),t.height=r("height",null),t.rotate=b0(r("rotate","")),x0(t,r("flip","")),t.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),t}function S0(e,t){for(const r in dd)if(e[r]!==t[r])return!0;return!1}const jr=/^[a-z0-9]+(-[a-z0-9]+)*$/,an=(e,t,r,n="")=>{const i=e.split(":");if(e.slice(0,1)==="@"){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const l=i.pop(),s=i.pop(),c={provider:i.length>0?i[0]:n,prefix:s,name:l};return t&&!Tn(c)?null:c}const o=i[0],a=o.split("-");if(a.length>1){const l={provider:n,prefix:a.shift(),name:a.join("-")};return t&&!Tn(l)?null:l}if(r&&n===""){const l={provider:n,prefix:"",name:o};return t&&!Tn(l,r)?null:l}return null},Tn=(e,t)=>e?!!((e.provider===""||e.provider.match(jr))&&(t&&e.prefix===""||e.prefix.match(jr))&&e.name.match(jr)):!1;function w0(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function cs(e,t){const r=w0(e,t);for(const n in vo)n in Fn?n in e&&!(n in r)&&(r[n]=Fn[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function C0(e,t){const r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null);function o(a){if(r[a])return i[a]=[];if(!(a in i)){i[a]=null;const l=n[a]&&n[a].parent,s=l&&o(l);s&&(i[a]=[l].concat(s))}return i[a]}return Object.keys(r).concat(Object.keys(n)).forEach(o),i}function I0(e,t,r){const n=e.icons,i=e.aliases||Object.create(null);let o={};function a(l){o=cs(n[l]||i[l],o)}return a(t),r.forEach(a),cs(e,o)}function fd(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(i=>{t(i,null),r.push(i)});const n=C0(e);for(const i in n){const o=n[i];o&&(t(i,I0(e,i,o)),r.push(i))}return r}const R0={provider:"",aliases:{},not_found:{},...cd};function Ai(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function pd(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Ai(e,R0))return null;const r=t.icons;for(const i in r){const o=r[i];if(!i.match(jr)||typeof o.body!="string"||!Ai(o,vo))return null}const n=t.aliases||Object.create(null);for(const i in n){const o=n[i],a=o.parent;if(!i.match(jr)||typeof a!="string"||!r[a]&&!n[a]||!Ai(o,vo))return null}return t}const Bn=Object.create(null);function _0(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function Dt(e,t){const r=Bn[e]||(Bn[e]=Object.create(null));return r[t]||(r[t]=_0(e,t))}function sa(e,t){return pd(t)?fd(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function D0(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}function T0(e,t){let r=[];return(typeof e=="string"?[e]:Object.keys(Bn)).forEach(i=>{(typeof i=="string"&&typeof t=="string"?[t]:Object.keys(Bn[i]||{})).forEach(a=>{const l=Dt(i,a);r=r.concat(Object.keys(l.icons).map(s=>(i!==""?"@"+i+":":"")+a+":"+s))})}),r}let Ur=!1;function hd(e){return typeof e=="boolean"&&(Ur=e),Ur}function Vr(e){const t=typeof e=="string"?an(e,!0,Ur):e;if(t){const r=Dt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function gd(e,t){const r=an(e,!0,Ur);if(!r)return!1;const n=Dt(r.provider,r.prefix);return D0(n,r.name,t)}function us(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Ur&&!t&&!e.prefix){let i=!1;return pd(e)&&(e.prefix="",fd(e,(o,a)=>{a&&gd(o,a)&&(i=!0)})),i}const r=e.prefix;if(!Tn({provider:t,prefix:r,name:"a"}))return!1;const n=Dt(t,r);return!!sa(n,e)}function k0(e){return!!Vr(e)}function E0(e){const t=Vr(e);return t?{...on,...t}:null}function P0(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((i,o)=>i.provider!==o.provider?i.provider.localeCompare(o.provider):i.prefix!==o.prefix?i.prefix.localeCompare(o.prefix):i.name.localeCompare(o.name));let n={provider:"",prefix:"",name:""};return e.forEach(i=>{if(n.name===i.name&&n.prefix===i.prefix&&n.provider===i.provider)return;n=i;const o=i.provider,a=i.prefix,l=i.name,s=r[o]||(r[o]=Object.create(null)),c=s[a]||(s[a]=Dt(o,a));let u;l in c.icons?u=t.loaded:a===""||c.missing.has(l)?u=t.missing:u=t.pending;const d={provider:o,prefix:a,name:l};u.push(d)}),t}function vd(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(i=>i.id!==t))})}function O0(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,i=e.prefix;t.forEach(o=>{const a=o.icons,l=a.pending.length;a.pending=a.pending.filter(s=>{if(s.prefix!==i)return!0;const c=s.name;if(e.icons[c])a.loaded.push({provider:n,prefix:i,name:c});else if(e.missing.has(c))a.missing.push({provider:n,prefix:i,name:c});else return r=!0,!0;return!1}),a.pending.length!==l&&(r||vd([e],o.id),o.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),o.abort))})}))}let N0=0;function M0(e,t,r){const n=N0++,i=vd.bind(null,r,n);if(!t.pending.length)return i;const o={id:n,icons:t,callback:e,abort:i};return r.forEach(a=>{(a.loaderCallbacks||(a.loaderCallbacks=[])).push(o)}),i}const mo=Object.create(null);function ds(e,t){mo[e]=t}function bo(e){return mo[e]||mo[""]}function A0(e,t=!0,r=!1){const n=[];return e.forEach(i=>{const o=typeof i=="string"?an(i,t,r):i;o&&n.push(o)}),n}var L0={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function z0(e,t,r,n){const i=e.resources.length,o=e.random?Math.floor(Math.random()*i):e.index;let a;if(e.random){let C=e.resources.slice(0);for(a=[];C.length>1;){const D=Math.floor(Math.random()*C.length);a.push(C[D]),C=C.slice(0,D).concat(C.slice(D+1))}a=a.concat(C)}else a=e.resources.slice(o).concat(e.resources.slice(0,o));const l=Date.now();let s="pending",c=0,u,d=null,f=[],p=[];typeof n=="function"&&p.push(n);function h(){d&&(clearTimeout(d),d=null)}function m(){s==="pending"&&(s="aborted"),h(),f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function b(C,D){D&&(p=[]),typeof C=="function"&&p.push(C)}function y(){return{startTime:l,payload:t,status:s,queriesSent:c,queriesPending:f.length,subscribe:b,abort:m}}function x(){s="failed",p.forEach(C=>{C(void 0,u)})}function _(){f.forEach(C=>{C.status==="pending"&&(C.status="aborted")}),f=[]}function T(C,D,w){const R=D!=="success";switch(f=f.filter(I=>I!==C),s){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(D==="abort"){u=w,x();return}if(R){u=w,f.length||(a.length?k():x());return}if(h(),_(),!e.random){const I=e.resources.indexOf(C.resource);I!==-1&&I!==e.index&&(e.index=I)}s="completed",p.forEach(I=>{I(w)})}function k(){if(s!=="pending")return;h();const C=a.shift();if(C===void 0){if(f.length){d=setTimeout(()=>{h(),s==="pending"&&(_(),x())},e.timeout);return}x();return}const D={status:"pending",resource:C,callback:(w,R)=>{T(D,w,R)}};f.push(D),c++,d=setTimeout(k,e.rotate),r(C,t,D.callback)}return setTimeout(k),y}function md(e){const t={...L0,...e};let r=[];function n(){r=r.filter(l=>l().status==="pending")}function i(l,s,c){const u=z0(t,l,s,(d,f)=>{n(),c&&c(d,f)});return r.push(u),u}function o(l){return r.find(s=>l(s))||null}return{query:i,find:o,setIndex:l=>{t.index=l},getIndex:()=>t.index,cleanup:n}}function ca(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 oi=Object.create(null),wr=["https://api.simplesvg.com","https://api.unisvg.com"],kn=[];for(;wr.length>0;)wr.length===1||Math.random()>.5?kn.push(wr.shift()):kn.push(wr.pop());oi[""]=ca({resources:["https://api.iconify.design"].concat(kn)});function fs(e,t){const r=ca(t);return r===null?!1:(oi[e]=r,!0)}function ai(e){return oi[e]}function j0(){return Object.keys(oi)}function ps(){}const Li=Object.create(null);function F0(e){if(!Li[e]){const t=ai(e);if(!t)return;const r=md(t),n={config:t,redundancy:r};Li[e]=n}return Li[e]}function bd(e,t,r){let n,i;if(typeof e=="string"){const o=bo(e);if(!o)return r(void 0,424),ps;i=o.send;const a=F0(e);a&&(n=a.redundancy)}else{const o=ca(e);if(o){n=md(o);const a=e.resources?e.resources[0]:"",l=bo(a);l&&(i=l.send)}}return!n||!i?(r(void 0,424),ps):n.query(t,i,r)().abort}const hs="iconify2",qr="iconify",yd=qr+"-count",gs=qr+"-version",xd=36e5,B0=168;function yo(e,t){try{return e.getItem(t)}catch{}}function ua(e,t,r){try{return e.setItem(t,r),!0}catch{}}function vs(e,t){try{e.removeItem(t)}catch{}}function xo(e,t){return ua(e,yd,t.toString())}function So(e){return parseInt(yo(e,yd))||0}const jt={local:!0,session:!0},Sd={local:new Set,session:new Set};let da=!1;function $0(e){da=e}let vn=typeof window>"u"?{}:window;function wd(e){const t=e+"Storage";try{if(vn&&vn[t]&&typeof vn[t].length=="number")return vn[t]}catch{}jt[e]=!1}function Cd(e,t){const r=wd(e);if(!r)return;const n=yo(r,gs);if(n!==hs){if(n){const l=So(r);for(let s=0;s<l;s++)vs(r,qr+s.toString())}ua(r,gs,hs),xo(r,0);return}const i=Math.floor(Date.now()/xd)-B0,o=l=>{const s=qr+l.toString(),c=yo(r,s);if(typeof c=="string"){try{const u=JSON.parse(c);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>i&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,l))return!0}catch{}vs(r,s)}};let a=So(r);for(let l=a-1;l>=0;l--)o(l)||(l===a-1?(a--,xo(r,a)):Sd[e].add(l))}function Id(){if(!da){$0(!0);for(const e in jt)Cd(e,t=>{const r=t.data,n=t.provider,i=r.prefix,o=Dt(n,i);if(!sa(o,r).length)return!1;const a=r.lastModified||-1;return o.lastModifiedCached=o.lastModifiedCached?Math.min(o.lastModifiedCached,a):a,!0})}}function G0(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in jt)Cd(n,i=>{const o=i.data;return i.provider!==e.provider||o.prefix!==e.prefix||o.lastModified===t});return!0}function W0(e,t){da||Id();function r(n){let i;if(!jt[n]||!(i=wd(n)))return;const o=Sd[n];let a;if(o.size)o.delete(a=Array.from(o).shift());else if(a=So(i),!xo(i,a+1))return;const l={cached:Math.floor(Date.now()/xd),provider:e.provider,data:t};return ua(i,qr+a.toString(),JSON.stringify(l))}t.lastModified&&!G0(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function ms(){}function H0(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,O0(e)}))}function U0(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:r,prefix:n}=e,i=e.iconsToLoad;delete e.iconsToLoad;let o;if(!i||!(o=bo(r)))return;o.prepare(r,n,i).forEach(l=>{bd(r,l,s=>{if(typeof s!="object")l.icons.forEach(c=>{e.missing.add(c)});else try{const c=sa(e,s);if(!c.length)return;const u=e.pendingIcons;u&&c.forEach(d=>{u.delete(d)}),W0(e,s)}catch(c){console.error(c)}H0(e)})})}))}const fa=(e,t)=>{const r=A0(e,!0,hd()),n=P0(r);if(!n.pending.length){let s=!0;return t&&setTimeout(()=>{s&&t(n.loaded,n.missing,n.pending,ms)}),()=>{s=!1}}const i=Object.create(null),o=[];let a,l;return n.pending.forEach(s=>{const{provider:c,prefix:u}=s;if(u===l&&c===a)return;a=c,l=u,o.push(Dt(c,u));const d=i[c]||(i[c]=Object.create(null));d[u]||(d[u]=[])}),n.pending.forEach(s=>{const{provider:c,prefix:u,name:d}=s,f=Dt(c,u),p=f.pendingIcons||(f.pendingIcons=new Set);p.has(d)||(p.add(d),i[c][u].push(d))}),o.forEach(s=>{const{provider:c,prefix:u}=s;i[c][u].length&&U0(s,i[c][u])}),t?M0(t,n,o):ms},V0=e=>new Promise((t,r)=>{const n=typeof e=="string"?an(e,!0):e;if(!n){r(e);return}fa([n||e],i=>{if(i.length&&n){const o=Vr(n);if(o){t({...on,...o});return}}r(e)})});function q0(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function K0(e,t){const r=typeof e=="string"?an(e,!0,!0):null;if(!r){const o=q0(e);return{value:e,data:o}}const n=Vr(r);if(n!==void 0||!r.prefix)return{value:e,name:r,data:n};const i=fa([r],()=>t(e,r,Vr(r)));return{value:e,name:r,loading:i}}function zi(e){return e.hasAttribute("inline")}let Rd=!1;try{Rd=navigator.vendor.indexOf("Apple")===0}catch{}function Y0(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(Rd||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const J0=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Q0=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wo(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(J0);if(n===null||!n.length)return e;const i=[];let o=n.shift(),a=Q0.test(o);for(;;){if(a){const l=parseFloat(o);isNaN(l)?i.push(o):i.push(Math.ceil(l*t*r)/r)}else i.push(o);if(o=n.shift(),o===void 0)return i.join("");a=!a}}const X0=e=>e==="unset"||e==="undefined"||e==="none";function _d(e,t){const r={...on,...e},n={...ud,...t},i={left:r.left,top:r.top,width:r.width,height:r.height};let o=r.body;[r,n].forEach(h=>{const m=[],b=h.hFlip,y=h.vFlip;let x=h.rotate;b?y?x+=2:(m.push("translate("+(i.width+i.left).toString()+" "+(0-i.top).toString()+")"),m.push("scale(-1 1)"),i.top=i.left=0):y&&(m.push("translate("+(0-i.left).toString()+" "+(i.height+i.top).toString()+")"),m.push("scale(1 -1)"),i.top=i.left=0);let _;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:_=i.height/2+i.top,m.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:m.unshift("rotate(180 "+(i.width/2+i.left).toString()+" "+(i.height/2+i.top).toString()+")");break;case 3:_=i.width/2+i.left,m.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}x%2===1&&(i.left!==i.top&&(_=i.left,i.left=i.top,i.top=_),i.width!==i.height&&(_=i.width,i.width=i.height,i.height=_)),m.length&&(o='<g transform="'+m.join(" ")+'">'+o+"</g>")});const a=n.width,l=n.height,s=i.width,c=i.height;let u,d;a===null?(d=l===null?"1em":l==="auto"?c:l,u=wo(d,s/c)):(u=a==="auto"?s:a,d=l===null?wo(u,c/s):l==="auto"?c:l);const f={},p=(h,m)=>{X0(m)||(f[h]=m.toString())};return p("width",u),p("height",d),f.viewBox=i.left.toString()+" "+i.top.toString()+" "+s.toString()+" "+c.toString(),{attributes:f,body:o}}const Z0=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let $n=Z0();function e1(e){$n=e}function t1(){return $n}function r1(e,t){const r=ai(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let i=0;r.resources.forEach(a=>{i=Math.max(i,a.length)});const o=t+".json?icons=";n=r.maxURL-i-r.path.length-o.length}return n}function n1(e){return e===404}const i1=(e,t,r)=>{const n=[],i=r1(e,t),o="icons";let a={type:o,provider:e,prefix:t,icons:[]},l=0;return r.forEach((s,c)=>{l+=s.length+1,l>=i&&c>0&&(n.push(a),a={type:o,provider:e,prefix:t,icons:[]},l=s.length),a.icons.push(s)}),n.push(a),n};function o1(e){if(typeof e=="string"){const t=ai(e);if(t)return t.path}return"/"}const a1=(e,t,r)=>{if(!$n){r("abort",424);return}let n=o1(t.provider);switch(t.type){case"icons":{const o=t.prefix,l=t.icons.join(","),s=new URLSearchParams({icons:l});n+=o+".json?"+s.toString();break}case"custom":{const o=t.uri;n+=o.slice(0,1)==="/"?o.slice(1):o;break}default:r("abort",400);return}let i=503;$n(e+n).then(o=>{const a=o.status;if(a!==200){setTimeout(()=>{r(n1(a)?"abort":"next",a)});return}return i=501,o.json()}).then(o=>{if(typeof o!="object"||o===null){setTimeout(()=>{o===404?r("abort",o):r("next",i)});return}setTimeout(()=>{r("success",o)})}).catch(()=>{r("next",i)})},l1={prepare:i1,send:a1};function bs(e,t){switch(e){case"local":case"session":jt[e]=t;break;case"all":for(const r in jt)jt[r]=t;break}}const ji="data-style";let Dd="";function s1(e){Dd=e}function ys(e,t){let r=Array.from(e.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(ji));r||(r=document.createElement("style"),r.setAttribute(ji,ji),e.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+Dd}function Td(){ds("",l1),hd(!0);let e;try{e=window}catch{}if(e){if(Id(),e.IconifyPreload!==void 0){const r=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!us(i))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){const r=e.IconifyProviders;if(typeof r=="object"&&r!==null)for(const n in r){const i="IconifyProviders["+n+"] is invalid.";try{const o=r[n];if(typeof o!="object"||!o||o.resources===void 0)continue;fs(n,o)||console.error(i)}catch{console.error(i)}}}}return{enableCache:r=>bs(r,!0),disableCache:r=>bs(r,!1),iconExists:k0,getIcon:E0,listIcons:T0,addIcon:gd,addCollection:us,calculateSize:wo,buildIcon:_d,loadIcons:fa,loadIcon:V0,addAPIProvider:fs,appendCustomStyle:s1,_api:{getAPIConfig:ai,setAPIModule:ds,sendAPIQuery:bd,setFetch:e1,getFetch:t1,listAPIProviders:j0}}}function kd(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function c1(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function u1(e){return"data:image/svg+xml,"+c1(e)}function d1(e){return'url("'+u1(e)+'")'}const Co={"background-color":"currentColor"},Ed={"background-color":"transparent"},xs={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ss={"-webkit-mask":Co,mask:Co,background:Ed};for(const e in Ss){const t=Ss[e];for(const r in xs)t[e+"-"+r]=xs[r]}function ws(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function f1(e,t,r){const n=document.createElement("span");let i=e.body;i.indexOf("<a")!==-1&&(i+="<!-- "+Date.now()+" -->");const o=e.attributes,a=kd(i,{...o,width:t.width+"",height:t.height+""}),l=d1(a),s=n.style,c={"--svg":l,width:ws(o.width),height:ws(o.height),...r?Co:Ed};for(const u in c)s.setProperty(u,c[u]);return n}let Fr;function p1(){try{Fr=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{Fr=null}}function h1(e){return Fr===void 0&&p1(),Fr?Fr.createHTML(e):e}function g1(e){const t=document.createElement("span"),r=e.attributes;let n="";r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n);const i=kd(e.body,r);return t.innerHTML=h1(i),t.firstChild}function Cs(e,t){const r=t.icon.data,n=t.customisations,i=_d(r,n);n.preserveAspectRatio&&(i.attributes.preserveAspectRatio=n.preserveAspectRatio);const o=t.renderedMode;let a;o==="svg"?a=g1(i):a=f1(i,{...on,...r},o==="mask");const l=Array.from(e.childNodes).find(s=>{const c=s.tagName&&s.tagName.toUpperCase();return c==="SPAN"||c==="SVG"});l?a.tagName==="SPAN"&&l.tagName===a.tagName?l.setAttribute("style",a.getAttribute("style")):e.replaceChild(a,l):e.appendChild(a)}function Is(e,t,r){const n=r&&(r.rendered?r:r.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:n}}function v1(e="iconify-icon"){let t,r;try{t=window.customElements,r=window.HTMLElement}catch{return}if(!t||!r)return;const n=t.get(e);if(n)return n;const i=["icon","mode","inline","width","height","rotate","flip"],o=class extends r{_shadowRoot;_state;_checkQueued=!1;constructor(){super();const l=this._shadowRoot=this.attachShadow({mode:"open"}),s=zi(this);ys(l,s),this._state=Is({value:""},s),this._queueCheck()}static get observedAttributes(){return i.slice(0)}attributeChangedCallback(l){if(l==="inline"){const s=zi(this),c=this._state;s!==c.inline&&(c.inline=s,ys(this._shadowRoot,s))}else this._queueCheck()}get icon(){const l=this.getAttribute("icon");if(l&&l.slice(0,1)==="{")try{return JSON.parse(l)}catch{}return l}set icon(l){typeof l=="object"&&(l=JSON.stringify(l)),this.setAttribute("icon",l)}get inline(){return zi(this)}set inline(l){l?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const l=this._state;if(l.rendered){const s=this._shadowRoot;if(l.renderedMode==="svg")try{s.lastChild.setCurrentTime(0);return}catch{}Cs(s,l)}}get status(){const l=this._state;return l.rendered?"rendered":l.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const l=this._state,s=this.getAttribute("icon");if(s!==l.icon.value){this._iconChanged(s);return}if(!l.rendered)return;const c=this.getAttribute("mode"),u=ss(this);(l.attrMode!==c||S0(l.customisations,u))&&this._renderIcon(l.icon,u,c)}_iconChanged(l){const s=K0(l,(c,u,d)=>{const f=this._state;if(f.rendered||this.getAttribute("icon")!==c)return;const p={value:c,name:u,data:d};p.data?this._gotIconData(p):f.icon=p});s.data?this._gotIconData(s):this._state=Is(s,this._state.inline,this._state)}_gotIconData(l){this._checkQueued=!1,this._renderIcon(l,ss(this),this.getAttribute("mode"))}_renderIcon(l,s,c){const u=Y0(l.data.body,c),d=this._state.inline;Cs(this._shadowRoot,this._state={rendered:!0,icon:l,inline:d,customisations:s,attrMode:c,renderedMode:u})}};i.forEach(l=>{l in o.prototype||Object.defineProperty(o.prototype,l,{get:function(){return this.getAttribute(l)},set:function(s){s!==null?this.setAttribute(l,s):this.removeAttribute(l)}})});const a=Td();for(const l in a)o[l]=o.prototype[l]=a[l];return t.define(e,o),o}const m1=v1()||Td(),{enableCache:V2,disableCache:q2,iconExists:K2,getIcon:Y2,listIcons:J2,addIcon:Q2,addCollection:X2,calculateSize:Z2,buildIcon:e_,loadIcons:t_,loadIcon:r_,addAPIProvider:n_,_api:i_}=m1,Gt=(e,t,r="children")=>e.map(n=>Array.isArray(n[r])?t({...n,[r]:Gt(n[r],t,r)}):t(n)),Pd=(e,t="children")=>{const r=[];return Gt(e,n=>r.push(n),t),r},pa=(e,t,r="children")=>e.map(n=>({...n})).filter(n=>{const i=n[r];if(Array.isArray(i)){const a=pa(i,t,r);n[r]=a?.length?a:void 0}const o={filteredChildren:n[r],isLeaf:!i?.length};return t(n,o)}),Od=e=>/^https?:\/\//.test(e),Nd=e=>/^mailto:/i.test(e.trim()),b1=e=>{if(!e||!e?.startsWith("/"))return!1;const t=i=>i.endsWith("/")?i:`${i}/`,r=t(window.location.pathname),n=t(new URL(e,window.location.origin).pathname);return r.startsWith(n)},Md=(e=[])=>{const t=e.map((r,n)=>({path:r,index:n})).filter(r=>b1(r.path));return t?.length?t.slice(1).reduce((r,n)=>r.path.length>=n.path.length?r:n,t[0]).index:-1},y1=(e,t={})=>{const{columns:r=1,breakInside:n=!1,groupHeight:i=48,itemHeight:o=24,childrenKey:a="items"}=t,l=e.length,s=e.reduce((m,b)=>m+i+(b[a]?.length||0)*o,0),c=Math.ceil(s/r),u=[[]];let d=0,f=0;const p=c*.2,h=m=>f>c-p&&d<r-1&&f+m>c+p;return e.forEach(m=>{const b=i+(m[a]?.length||0)*o;n&&h(i)&&(d++,f=0,u[d]=[]),!n&&f>0&&(l<=r||h(b))&&(d++,f=0,u[d]=[]),u[d].push({...m,group:!0}),f+=i,m[a]&&m[a].forEach(y=>{n&&h(o)&&(d++,f=0,u[d]=[]),u[d].push({...y,group:!1}),f+=o})}),u};function it({icon:e,size:t=void 0,sx:r={},...n}){const i=[...Array.isArray(r)?r:[r]];t&&i.push({width:t,height:t});const[o,a]=v.useState(!1),[l,s]=v.useState(!0);if(zo(async()=>{s(!0);try{await jo(e),a(!0)}catch{a(!1)}s(!1)},[e]),n.variant||i.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Od(e))return g.jsx(gi,{component:"span",...n,src:e,sx:i});const c=t?.6*t+4:0;return l?g.jsx(xe,{icon:"codicon:blank",height:c||void 0}):o?g.jsx(gi,{component:"span",...n,sx:i,children:g.jsx(xe,{icon:e,height:c||void 0})}):e&&typeof e=="string"?(i.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),g.jsx(gi,{component:"span",...n,sx:i,children:Array.from(e)[0]})):null}function ha(e=["en","zh"]){const{blocklet:t}=Bt();return v.useMemo(()=>{const n=t.environments.find(c=>c.key==="BLOCKLET_APP_LANGUAGES"),i=n?n.value.split(","):e,o=i[0]||"en",a=i.filter(c=>Ue.SUPPORTED_LANGUAGES[c]),l=a.reduce((c,u)=>(c[u]=Ue.SUPPORTED_LANGUAGES[u].nativeName,c),{}),s=a.map(c=>({code:c,name:Ue.SUPPORTED_LANGUAGES[c].nativeName}));return{locales:i,localeMap:l,defaultLocale:o,languages:s}},[t.environments,e])}const x1=e=>e.from!=="team-tmpl";function S1({prevPath:e,nextPath:t,node:r}){if(r.from==="team-tmpl")return!1;const n=e.length,i=t.length;return!!(n===i&&Wp(e.slice(0,n-1),t.slice(0,i-1)))}function Ad({treeNode:e}){const{locale:t}=ke(),{blocklet:r}=Bt(),{defaultLocale:n}=ha(),i=r.environments.find(l=>l.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),o=oe(l=>{if(l?.startsWith("/"))try{return new URL(l,i?.value).href}catch{console.error("Failed to parse url",{url:l,origin:i?.value})}return l});function a(){const{title:l,subtitle:s}=e;let c=l,u=s;return Yt(l)&&(c=l[t]||l[n]||l.en),!v.isValidElement(s)&&Yt(s)&&(u=s[t]||s[n]||s.en),g.jsxs(te,{sx:{display:"flex",alignItems:"center"},children:[g.jsx(ye,{variant:"subtitle1",sx:{fontSize:16},children:c}),s&&g.jsx(ye,{variant:"body2",color:"gray",sx:{ml:1.5,lineHeight:1},children:u})]})}return g.jsxs(g.Fragment,{children:[e.icon&&(Fo(o(e.icon))?g.jsx(it,{size:16,style:{marginRight:4},icon:o(e.icon)}):g.jsx(xe,{size:16,style:{marginRight:4},icon:e.icon})),a()]})}Ad.propTypes={treeNode:S.object.isRequired};const w1=tt(te)(({theme:e})=>({"& .MuiNodeContent-row":{backgroundColor:e.palette.background.default}}));function Ld({treeData:e,setTreeData:t=()=>{},renderActions:r=()=>{}}){const n=e.map(o=>({...o,expanded:!0})),i={};return typeof window<"u"&&(i.context=window),g.jsx(w1,{children:g.jsx(Jh,{backend:Qh,...i,children:g.jsx(db,{generateNodeProps:o=>{const a=x1(o.node);return{buttons:r({data:o.node,className:"list-item-actions"}),icons:a?g.jsx(xe,{icon:"ic:round-drag-indicator"}):g.jsx(te,{sx:{width:16,height:16}}),title:g.jsx(Ad,{treeNode:o.node})}},maxDepth:2,isVirtualized:!1,treeData:n,onChange:t,canDrop:S1,theme:v0})})})}Ld.propTypes={treeData:S.object.isRequired,setTreeData:S.func,renderActions:S.func};var C1=mc();const I1=Qn(C1);function zd({sx:e=null,onAdd:t=()=>{},onChange:r=()=>{},defaultLocale:n="en",locale:i="",locales:o=[],localeMap:a={},onRemoveLocale:l=()=>{}}){const{t:s}=ke(),c=v.useRef(),[u,d]=v.useState(null),f=ur({localeList:[],inputLocale:"",localeError:""}),p=v.useMemo(()=>!!u,[u]),h=v.useMemo(()=>o.includes(i)?i:n,[o,i]),m=v.useMemo(()=>f.localeList.filter(w=>!!a[w]),[f.localeList,a]),b=v.useMemo(()=>Object.keys(At(a,[...f.localeList,n])).map(w=>({title:a[w],value:w})),[f.localeList]),y=v.useMemo(()=>`Default (${a[n]||Object.values(a)?.[0]})`,[a]),x=oe(w=>w?w===n||f.localeList.includes(w)?s("navigation.form.localeExists",{value:w}):!0:s("common.requiredErrorText",{name:"Locale"})),_=oe((w="")=>{const R=w?.trim(),I=x(R);return I!==!0?f.localeError=I:f.localeError="",I}),T=oe(()=>{d(null),f.inputLocale="",f.localeError=""}),k=oe(()=>{const w=f.inputLocale?.trim();_(w)===!0&&(T(),f.localeList.push(w),t(w))}),C=oe((w,R)=>{w.preventDefault(),w.stopPropagation(),f.localeList=qc(f.localeList,R),l(R)}),D=oe(w=>{const{value:R}=w.target;_(R),f.inputLocale=R});return v.useEffect(()=>{f.localeList=[...o]},[o,f]),Uh("enter",()=>{setTimeout(()=>{k()})},{target:c}),g.jsxs(g.Fragment,{children:[g.jsxs(sg,{sx:e,value:h,onChange:(w,R)=>{r(R)},children:[g.jsx(rl,{label:y,value:n}),m.map(w=>g.jsx(rl,{sx:{position:"relative"},label:g.jsxs(g.Fragment,{children:[a[w],g.jsx(Ge,{size:"small",color:"inherit",sx:{position:"absolute",top:0,right:0},onClick:R=>{C(R,w)},children:g.jsx(xe,{icon:"mdi:close",height:14})})]}),value:w},w)),g.jsx(Ge,{color:"primary",disableFocusRipple:!0,sx:{width:"48px"},onClick:w=>{d(w.currentTarget)},children:g.jsx(xe,{icon:"mdi:plus"})})]}),g.jsx(Qi,{open:p,anchorEl:u,onClose:T,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:g.jsxs(te,{sx:{p:2,width:"270px"},children:[g.jsx(ye,{variant:"subtitle2",children:s("navigation.form.localePlaceholder")}),g.jsx(te,{sx:{mt:1},children:g.jsx(ro,{required:!0,fullWidth:!0,label:"Locale",value:f.inputLocale,options:b,onChange:D,error:!!f.localeError,helperText:f.localeError||" "})}),g.jsx(te,{sx:{display:"flex",justifyContent:"flex-end"},children:g.jsx(ir,{size:"small",variant:"contained",onClick:k,children:s("common.confirm")})})]})})]})}zd.propTypes={sx:S.any,onAdd:S.func,onChange:S.func,onRemoveLocale:S.func,defaultLocale:S.string,locale:S.string,localeMap:S.object,locales:S.array};const ga=["https://api.iconify.design","https://api.unisvg.com","https://api.simplesvg.com"];async function jd(e,t,r=5e3){for(const n of ga){const i=Oe(n,e);try{return await dg.get(i,{params:t,timeout:r})}catch(o){console.warn(`Failed to fetch from ${i}:`,o)}}throw new Error(`All icon API endpoints ${e} failed`)}async function R1({keyword:e,limit:t=999,start:r=0,palette:n=!1}){let i="",o=e;e.includes(":")&&([i,o]=e.split(":"));const{data:a}=await jd("/search",{query:`${o} palette=${n}`||e,start:r,limit:t,...i&&{prefix:i}});return a}const mn=new Map;async function _1(e){if(mn.has(e))return mn.get(e);const t=(async()=>{const{data:r}=await jd("/collection",{prefix:e}),n=new Set;return r.uncategorized?.forEach(i=>n.add(`${e}:${i}`)),Object.values(r.categories??{}).forEach(i=>{i.forEach(o=>n.add(`${e}:${o}`))}),Array.from(n)})();mn.set(e,t);try{return await t}catch(r){throw mn.delete(e),r}}function D1(e){return Oe(ga[0],`${e}.svg`)}function T1(e){try{const t=new URL(e);for(const r of ga)if(t.origin===r)return Hp(t.pathname).replace(".svg","");return""}catch{return""}}function k1(e){let t=!0,r=e;return e&&(e.startsWith("/")?(t=!1,r=""):Fo(e)&&(r=T1(e))),{isIconId:t,iconId:r}}const E1=v.lazy(()=>Yp(()=>import("./index-kfl7onTb.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url).then(e=>({default:e.Uploader}))),Rs=je(it)(({theme:e})=>({"&&":{color:e.palette.text.primary},"> img":{filter:e.palette.mode==="dark"?"invert(1)":"none"}}));function Fd({icon:e,...t}){const[r,n]=v.useState(!1);return zo(async()=>{n(!1),await jo(e),n(!0)},[e]),e?r?g.jsx(xe,{icon:e,...t}):g.jsx(xe,{color:"#f06f6e",icon:"ic:baseline-error",...t}):g.jsx(xe,{icon:"material-symbols-light:select-rounded",...t})}Fd.propTypes={icon:S.string.isRequired};function Io({value:e,helperText:t,label:r,placeholder:n,methods:i=["select"],iconifyShape:o="id",...a}){const{getSessionInHeader:l,prefix:s,inService:c}=Sc(),{blocklet:u}=Bt(),d=Xr(X=>X.breakpoints.down("md")),f=u.environments.find(X=>X.key===Ue.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL),p=l(),h=v.useRef(null),m=v.useRef(null),b=v.useRef(null),{t:y,locale:x}=ke(),{isIconId:_,iconId:T}=k1(e),[k,C]=v.useState(null),{onChange:D,onBlur:w,sx:R,...I}=a,P=i.includes("upload"),L=i.includes("select"),N=Oe(s,"/api/media/upload",u.appPid),G=ur({showPopover:!1}),z=oe(X=>{if(X?.startsWith("/"))try{const U=c?window.location.origin:f?.value;return new URL(X,U).href}catch{console.error("Failed to resolve url: ",X)}return X},[f?.value,c]),F=oe(async X=>await h.current.getUploader().uploadFile(X)),W=oe(()=>{C(null)}),H=oe(()=>{L&&C(b.current)}),J=oe(async X=>{try{if(o==="url"){const U=D1(X),re=await Up(U,{width:128,height:128}),ne=await Vp(re,X);await F(ne)}else D?.(X)}catch(U){console.error("Failed to pick icon:",U)}W()}),Z=oe(X=>{X.stopPropagation(),m.current.open(),W()}),Y=oe(X=>{a?.onChange?.(X.data.url)});return g.jsxs(g.Fragment,{children:[g.jsx(Jt,{helperText:t,value:e,sx:{"& .MuiInputBase-root,.MuiInputBase-input":{cursor:"pointer"},...R},onClick:L?H:void 0,...I,label:r,placeholder:n,slotProps:{input:{ref:b,readOnly:!0,startAdornment:g.jsx(Xi,{position:"start",sx:{cursor:"auto"},onMouseEnter:()=>{e&&(G.showPopover=!0)},onMouseLeave:()=>{G.showPopover=!1},children:g.jsx(Rs,{size:28,icon:z(e),alt:"Error"})}),endAdornment:g.jsxs(Xi,{position:"end",children:[g.jsx(Ge,{sx:{visibility:e?"visible":"hidden"},onClick:X=>{X.stopPropagation(),D("")},children:g.jsx(Hc,{style:{fontSize:18}})}),P&&g.jsx(qp,{title:y("common.upload"),children:g.jsx(Ge,{disableFocusRipple:!1,disableRipple:!1,onClick:Z,children:g.jsx(Fd,{icon:"material-symbols:upload-file-outline-rounded",width:24,height:24})})}),L&&g.jsx(te,{component:ug,sx:{mr:"-6px",fontSize:24,transform:k?"rotate(180deg)":"rotate(0deg)",transition:"transform 200ms",pointerEvents:"none"}})]})}}}),L&&g.jsx(Qi,{open:!!k,anchorEl:k,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},slotProps:{paper:{style:{...d&&{width:"100vw",height:"100vh",boxShadow:"none"}}}},onClose:W,children:g.jsx(Bd,{label:r,placeholder:n,value:_?T:"",sx:{width:b.current?.offsetWidth??"auto"},onPick:J,onClose:W})}),g.jsx(Ro,{ref:h,locale:x,apiPath:N,headers:p,imageEditorProps:{},onUploadFinish:Y}),g.jsx(Ro,{ref:m,locale:x,apiPath:N,headers:p,onUploadFinish:Y}),g.jsx(Qi,{sx:{pointerEvents:"none"},open:G.showPopover,anchorEl:b.current,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"center"},onClose:()=>{G.showPopover=!1},disableRestoreFocus:!0,children:g.jsx(Rs,{size:120,icon:z(e),alt:"Error"})})]})}Io.propTypes={value:S.string.isRequired,label:S.any,placeholder:S.any,helperText:S.string,methods:S.arrayOf(S.oneOf(["select","upload"])),iconifyShape:S.oneOf(["id","url"])};function Bd({label:e,placeholder:t,value:r="",sx:n,onPick:i,onClose:o,...a}){const[l,s]=v.useState([]),[c,u]=v.useState(!0),[d,f]=v.useState(r),[p,h]=v.useState(!1),m=v.useRef(null),b=v.useRef([]),y=v.useRef(1),x=v.useRef(!0),{t:_}=ke(),T=96,k=oe(()=>{!x.current||c||(u(!0),setTimeout(()=>{const w=y.current+1,R=(w-1)*T,I=w*T,P=b.current.slice(R,I);s(L=>[...L,...P]),y.current=w,x.current=I<b.current.length,u(!1)},300))}),C=oe(w=>{b.current=w,y.current=1,x.current=w.length>T;const R=w.slice(0,T);s(R),h(w.length===0),x.current&&k()}),{run:D}=wc(async w=>{if(w){u(!0);try{const{icons:R}=await R1({keyword:w});C(R)}catch(R){console.error("Failed to search icons:",R),h(!0)}finally{u(!1)}}},{wait:300,trailing:!0});return v.useEffect(()=>{const w=()=>{if(!m.current)return;const{scrollTop:I,scrollHeight:P,clientHeight:L}=m.current;(I+L>=P-150||P<=L)&&k()},R=m.current;return R&&(R.addEventListener("scroll",w),w()),()=>{R&&R.removeEventListener("scroll",w)}},[k,c]),zo(async()=>{if(d)D(d);else{u(!0);try{const w=await _1("mdi-light");C(w)}catch(w){console.error("Failed to fetch default icons:",w),h(!0)}finally{u(!1)}}},[d,D,C]),g.jsxs(P1,{ref:m,sx:n,...a,children:[g.jsxs(te,{className:"icon-picker-input",children:[g.jsx(Jt,{label:_("navigation.form.searchIcons"),placeholder:_("navigation.form.searchIconsPlaceholder"),size:"small",value:d,sx:{flexGrow:1},autoFocus:!0,onChange:w=>f(w.target.value),slotProps:{input:{endAdornment:g.jsx(Ge,{sx:{visibility:d?"visible":"hidden"},onClick:()=>f(""),children:g.jsx(Hc,{style:{fontSize:18}})})}}}),g.jsx(ir,{onClick:o,children:_("common.cancel")})]}),g.jsxs(te,{children:[l.length>0&&g.jsx(te,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(32px, auto))",gridAutoRows:"min-content",alignItems:"center",gap:1,p:2},children:l.map(w=>g.jsx(O1,{$active:r===w,onClick:()=>{i(w)},children:g.jsx(xe,{icon:w,width:"32",height:"32"})},w))}),p&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:g.jsx(te,{sx:{textAlign:"center"},children:"No matching results"})}),c&&g.jsx(te,{sx:{p:2,display:"flex",justifyContent:"center"},children:g.jsx(Kp,{size:20})})]})]})}Bd.propTypes={label:S.any,placeholder:S.any,value:S.string,sx:S.object,onPick:S.func.isRequired,onClose:S.func.isRequired};const P1=je(te)(({theme:e})=>({minWidth:"100%",height:"100%",padding:0,overflow:"auto",[e.breakpoints.up("md")]:{minWidth:"480px",maxHeight:"400px",padding:e.spacing(1),paddingTop:0,".icon-picker-input":{paddingTop:e.spacing(2),paddingBottom:e.spacing(1),paddingLeft:e.spacing(2),paddingRight:e.spacing(2)}},".icon-picker-input":{position:"sticky",display:"flex",alignItems:"center",gap:e.spacing(1),top:0,zIndex:1,backgroundColor:e.palette.background.paper}})),O1=je(Ge,{shouldForwardProp:e=>e!=="$active"})(({$active:e,theme:t})=>({boxSizing:"content-box",backgroundColor:e?t.palette.action.hover:"transparent",borderRadius:4,padding:1,width:32,height:32,"&:hover":{backgroundColor:t.palette.action.hover}}));function Ro({ref:e=null,locale:t,apiPath:r,headers:n,imageEditorProps:i={actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:1,initialAspectRatio:1,croppedCanvasOptions:{minWidth:120,minHeight:120}}},onUploadFinish:o}){return g.jsx(v.Suspense,{children:g.jsx(E1,{locale:t,ref:e,popup:!0,installerProps:{disabled:!0},plugins:["ImageEditor"],onUploadFinish:a=>o?.(a),coreProps:{restrictions:{allowedFileTypes:["image/*"],maxFileSize:1024*1024*1,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:i,apiPathProps:{uploader:r,disableMediaKitPrefix:!0,disableAutoPrefix:!0,disableMediaKitStatus:!0},tusProps:{headers:n}})})}Ro.propTypes={ref:S.any,locale:S.string,apiPath:S.string,headers:S.object,imageEditorProps:S.object,onUploadFinish:S.func};const _s=24,Ds=48,Ts="add";S.string.isRequired;function va({ref:e=null,section:t="",components:r=[],rawNavigations:n=[],onChange:i=()=>{},...o}){const{roles:a}=Wc(),{t:l,locale:s}=ke(),{localeMap:c,defaultLocale:u}=ha(),d=oe(()=>({title:{[u]:""},description:{[u]:""},link:{[u]:""}})),f=oe(E=>qc(Array.from(new Set(ht.flatMap(O=>Yt(E[O])?Object.keys(E[O]):[]))),u)),p=v.useRef(()=>{}),h=ur({isRoot:!0,type:Ts,linkDisabled:!1,locale:u,formState:d(),get localeList(){return f(h.formState)}}),{handleSubmit:m,control:b,reset:y,setValue:x,clearErrors:_,formState:{errors:T}}=ag({mode:"onChange",defaultValues:{id:"",title:"",description:"",icon:"",link:"",component:"",parent:"",role:[]}});v.useEffect(()=>{ht.forEach(E=>x(E,h.formState[E][h.locale]))},[x,h.locale]);const k=lg({control:b}),C=k.component,D=k.title,w=k.description,R=k.link,I=k.parent;v.useEffect(()=>{h.formState.title[h.locale]=D},[D]),v.useEffect(()=>{h.formState.description[h.locale]=w},[w]),v.useEffect(()=>{h.formState.link[h.locale]=R},[R]),v.useEffect(()=>{i?.(k)},[k,i]);const P=v.useMemo(()=>n.find(O=>C?r.find(V=>V.name===C).did===O.id:O.id===I),[r,n,C,I]),L=v.useMemo(()=>{if(P?.component){const E=r.find(ee=>ee.name===P.component),{link:O}=E||{},j=Yt(O)?O[h.locale]:O;if(C)return Zi(j);const V=Yt(P.link)?P.link[h.locale]:P.link;return Zi(Oe(j,V||"/"))}return null},[r,h.locale,P,C]),N=v.useMemo(()=>{const{component:E}=P||{},O=r.find(ee=>ee.name===E),{navigation:j=[]}=O||{};return Ae.flattenNavigation(j,{transform(ee,ae){return ae?.section&&(ee.section=ee.section||ae.section),ee}}).filter(ee=>ee.link).filter(ee=>Ae.isMatchSection(ee.section,t)).map(ee=>({label:ee.link,title:ee.title[s]||ee.title}))},[P,r,t,s]),G=oe(()=>{h.isRoot=!0,h.locale=u,h.type=Ts,h.linkDisabled=!1,h.formState=d(),y(),_(),p.current=()=>{}}),z=oe((E={})=>(h.localeList.length>0&&ht.forEach(O=>{Wg(h.formState[O]).length>1&&(E[O]=h.formState[O])}),Bo(E.role)&&(E.role=void 0),E)),F=oe(({parent:E}={},O=()=>{})=>{h.type="add",h.isRoot=!E,x("parent",E?.id),p.current=j=>{O(j)}}),W=oe((E={},O=()=>{})=>{const{id:j,icon:V,parent:ee,component:ae,role:de=[]}=E;x("id",j),x("icon",V),E.from==="team-tmpl"&&(h.linkDisabled=!0);const be=f(E),Re=(Ie,Ee)=>{Cc(Ie)?h.formState[Ee]=be.reduce((We,Pe)=>(We[Pe]=Ie,We),{[u]:Ie}):Yt(Ie)?h.formState[Ee]=nt(Ie):h.formState[Ee]={}};ht.forEach(Ie=>Re(E[Ie],Ie)),ht.forEach(Ie=>x(Ie,h.formState[Ie][h.locale])),x("component",ae),x("parent",ee),x("role",de||[]),h.type="edit",h.isRoot=!ee,p.current=Ie=>{const Ee=Jp(Ie,["id","title","description","icon","component","link","role"]);O(Ee)}}),H=oe(E=>{const O=E?.trim();if(t!=="bottomNavigation"){if(!O)return l("common.requiredErrorText",{name:l("navigation.form.title")});if(O.length>_s)return l("navigation.form.titleTooLong",{len:_s})}return!0}),J=oe(E=>{const O=E?.trim();return O&&O.length>Ds?l("navigation.form.descriptionTooLong",{len:Ds}):!0}),Z=oe(E=>E?.startsWith("/")?new URL(E,window.location.origin).href:E),Y=oe(async E=>{const O=E?.trim();if(O){if(Fo(Z(O)))return!0;try{await jo(O)}catch{return l("navigation.form.invalidIcon")}}return!0}),X=oe(E=>{const O=E?.trim();return O?Y(O):l("common.requiredErrorText",{name:l("navigation.form.icon")})}),U=oe(E=>{const O=E?.trim();return O?Ae.checkLink(O)?!0:l("navigation.form.invalidLink"):h.isRoot?!0:l("common.requiredErrorText",{name:l("navigation.form.link")})}),re=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]||(h.formState[O][E]="")}),setTimeout(()=>{_()})}),ne=oe(()=>{const{title:E,link:O}=h.formState;if(t!=="bottomNavigation")for(const j of Object.keys(E)){const V=H(E[j]);if(V!==!0)return V}for(const j of Object.keys(O)){const V=U(O[j]);if(V!==!0)return V}return!0}),ce=oe(E=>{const O=ne();O===!0?p.current(z(E)):Tr.error(O)}),B=oe(E=>{h.locale=u,ht.forEach(O=>{h.formState[O]=At(h.formState[O],E)}),i?.(k)}),$=oe(E=>{h.locale=E,ht.forEach(O=>{h.formState[O][E]=h.formState[O][u]}),i?.(k),setTimeout(()=>{_()})});return v.useImperativeHandle(e,()=>({add:F,edit:W,resetImmediate:()=>G(),reset:()=>setTimeout(()=>G(),0),submit:m(ce)}),[F,G,W,m,ce]),g.jsxs(te,{...o,children:[g.jsx(zd,{sx:{mb:1},onAdd:$,onChange:re,onRemoveLocale:B,defaultLocale:u,locale:h.locale,localeMap:c,locales:h.localeList}),g.jsxs("form",{noValidate:!0,autoComplete:"off",children:[t!=="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",required:!0,placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})}),t==="bottomNavigation"?g.jsx(gt,{name:"icon",control:b,rules:{validate:X},render:({field:E})=>g.jsx(Io,{fullWidth:!0,required:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,methods:["select"],iconifyShape:"url",...E})}):g.jsx(gt,{name:"icon",control:b,rules:{validate:Y},render:({field:E})=>g.jsx(Io,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.iconPlaceholder"),label:l("navigation.form.icon"),error:!!T?.icon?.message,helperText:T?.icon?.message,disabled:h.locale!==u,...E})}),h.isRoot&&g.jsx(gt,{name:"component",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,margin:"dense",disabled:h.locale!==u&&E.value,label:l("navigation.form.component"),placeholder:l("navigation.form.componentPlaceholder"),options:r.map(O=>({title:O.title,value:O.name,description:O.link})),error:!!T?.component?.message,helperText:T?.component?.message||" ",...At(E,"ref")})}),!h.isRoot&&["header"].includes(t)&&g.jsx(gt,{name:"description",control:b,rules:{validate:J},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.descriptionPlaceholder"),label:l("navigation.form.description"),disabled:h.isEdit,error:!!T?.description?.message,helperText:T?.description?.message||" ",...E})}),g.jsx(gt,{name:"link",control:b,rules:{validate:U},render:({field:E})=>g.jsx(Ic,{fullWidth:!0,margin:"dense",children:g.jsx(fg,{disablePortal:!0,freeSolo:!0,blurOnSelect:!0,autoSelect:!0,fullWidth:!0,disabled:h.linkDisabled,isOptionEqualToValue:O=>O.label,options:N,renderInput:O=>g.jsx(Jt,{...O,placeholder:l("navigation.form.linkPlaceholder"),label:l("navigation.form.link"),error:!!T?.link?.message,helperText:T?.link?.message||"/abc/bcd or /abc or https://arcblock.io",slotProps:{input:{startAdornment:L?g.jsx(Xi,{position:"start",sx:{textDecoration:I1(R||"")?"line-through":""},children:L}):null}}}),renderOption:(O,j)=>g.jsxs(te,{component:"li",...O,children:[j.label,g.jsx(ye,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:j.title})]}),margin:"dense",...E,onChange:()=>{},onInputChange:(O,j)=>{E.onChange(j)}})})}),["dashboard","sessionManager"].includes(t)&&g.jsx(gt,{name:"role",control:b,render:({field:E})=>g.jsx(ro,{fullWidth:!0,multiple:!0,margin:"dense",label:l("navigation.form.role"),placeholder:l("navigation.form.rolePlaceholder"),options:a.map(O=>({title:O.title,value:O.name})),error:!!T?.role?.message,helperText:T?.role?.message||" ",...At(E,"ref")})}),t==="bottomNavigation"&&g.jsx(gt,{name:"title",control:b,rules:{validate:H},render:({field:E})=>g.jsx(Jt,{fullWidth:!0,variant:"outlined",margin:"dense",placeholder:l("navigation.form.titlePlaceholder"),label:l("navigation.form.title"),disabled:h.isEdit,error:!!T?.title?.message,helperText:T?.title?.message||" ",...E})})]})]})}va.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array,onChange:S.func};function ma({ref:e=null,section:t="",components:r=[],rawNavigations:n=[]}){const{t:i}=ke(),[o,{setTrue:a,setFalse:l}]=ig(),[s,c]=v.useState("add"),u=v.useRef(null),d=v.useMemo(()=>{const b={add:i("common.create"),edit:i("common.edit")}[s];return b?`${b} ${i("navigation.navigation")}`:"--"},[i,s]),f=v.useCallback(()=>{l(),u.current?.reset()},[l]),p=v.useCallback((m={},b=()=>{})=>{c("add"),u.current?.add(m,y=>b(f,y)),a()},[a,f]),h=v.useCallback((m={},b=()=>{})=>{c("edit"),u.current?.edit(m,y=>b(f,y)),a()},[a,f]);return v.useImperativeHandle(e,()=>({add:p,edit:h,close:f}),[p,h,f]),g.jsx(Qp,{open:o,title:d,keepMounted:!0,onClose:f,sx:{".MuiDialogContent-root":{pt:0}},actions:g.jsx(Rc,{color:"primary",variant:"contained",onClick:()=>u.current?.submit(),children:i("common.confirm")}),children:g.jsx(va,{ref:u,section:t,components:r,rawNavigations:n})})}ma.propTypes={ref:S.any,section:S.string,components:S.array,rawNavigations:S.array};function $d({className:e="",add:t=()=>{},edit:r=()=>{},toggle:n=()=>{},del:i=()=>{},data:o,section:a=""}){const{t:l}=ke(),s=["yaml","team-tmpl"].includes(o.from),c=v.isValidElement(o.subtitle);function u(m){m.preventDefault(),m.stopPropagation()}const d=v.useCallback(m=>{u(m),t(o)},[t,o]),f=v.useCallback(m=>{u(m),r(o)},[r,o]),p=v.useCallback(m=>{u(m),n(o)},[n,o]),h=v.useCallback(m=>{u(m),i(o)},[i,o]);return g.jsxs("div",{className:e,children:[!o.parent&&["header","footer","dashboard"].includes(a)&&g.jsx("span",{title:l(c?"navigation.action.noAddSub":"navigation.action.addSub"),children:g.jsx(Ge,{size:"small",color:"success",onClick:d,disabled:c,children:g.jsx(xe,{icon:"mdi:plus-box-outline"})})}),g.jsx("span",{title:l(c?"navigation.action.noEdit":"navigation.action.edit"),children:g.jsx(Ge,{size:"small",color:"primary",onClick:f,disabled:c||o.from==="team-tmpl",children:g.jsx(xe,{icon:"mdi:pencil-outline"})})}),g.jsx("span",{title:c?l("navigation.action.noEdit"):o.visible?l("navigation.action.hide"):l("navigation.action.show"),children:g.jsx(Ge,{size:"small",color:"warning",onClick:p,disabled:c,children:o.visible===!1?g.jsx(xe,{icon:"mdi:eye-off-outline"}):g.jsx(xe,{icon:"mdi:eye-outline"})})}),g.jsx("span",{title:l(s&&!c?"navigation.action.noDel":"navigation.action.del"),children:g.jsx(Ge,{disabled:s&&!c,size:"small",color:"error",onClick:h,children:g.jsx(xe,{icon:"mdi:delete"})})})]})}$d.propTypes={data:S.object.isRequired,className:S.string,add:S.func,edit:S.func,toggle:S.func,del:S.func,section:S.string};const En=window?.blocklet?.groupPrefix||window?.blocklet?.prefix||"/",N1=e=>{const t={...e},r=e?.background;return typeof r=="string"?t.background={header:r,footer:r,default:r}:r&&typeof r=="object"&&(t.background={header:r.header||r.default,footer:r.footer||r.default,default:r.default}),t},M1=(e,t="en",r="en")=>{if(typeof e=="string"){if(Od(e)){const i=new URL(e);return i.searchParams.set("locale",t),i.href}if(Nd(e))return e;const n=new URL(e,window.location.origin);return n.searchParams.set("locale",t),n.pathname+n.search}return typeof e=="object"?e[t]||e[r]||e.en:e},rr=({navigation:e,locale:t,defaultLocale:r,section:n="header"})=>{if(!e?.length)return e;const i=(o,a)=>o&&typeof o=="object"?o[a]||o[r]||o.en:o;return Gt(e,o=>({...o,title:i(o.title,t),description:i(o.description,t),link:Wo(o.items?.length?o.link:M1(o.link,t,r),n),_rawLink:o.link}),"items")},A1=e=>Gt(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),L1=e=>{if(!e?.length)return null;const t=A1(e),r={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(n=>{n.section?Array.isArray(n.section)?n.section.forEach(i=>{r[i]?.push(n)}):typeof n.section=="string"&&r[n.section]?.push(n):r.header.push(n)}),r},ba=e=>{if(!e)return null;const t={...e};return t.theme=N1(t.theme),t.navigation=L1(z1(t.navigation)),t},z1=(e=[])=>pa(e,(t,r)=>!!t.link||r.filteredChildren?.length,"items"),Gd=(e,t)=>pa(e,(r,n)=>{const i=!r.role||t&&(r.role.includes(t)||r.role.includes("guest"));return n.isLeaf?i:i&&n.filteredChildren?.length},"items"),j1={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},F1={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function B1({session:e,locale:t="zh",size:r=24,popperType:n="click",sx:i,...o}){const a=window?.blocklet||{},l=(a.navigation||[]).filter(p=>p.section==="sessionManager"&&!["/sessionManager"].includes(p.id)).filter(p=>!!(p?.role||[]).includes(e?.user?.role||"guest")).map(p=>{const h=(a?.componentMountPoints||[]).find(m=>p.component===m.name);return{...p,component:h}}),s=et(),c=v.useRef(null),u=ur({open:!1}),d=oe((p=!u.open)=>{u.open=p}),f=n==="hover"?{onMouseEnter:()=>d(!0),onMouseLeave:()=>d(!1)}:{onClick:()=>d()};return l.length===0||!e?.user?null:g.jsxs(te,{sx:{display:"inline-flex",alignItems:"center",justifyContent:"center",...i},...o,...f,children:[g.jsx(Ge,{size:"medium",ref:c,children:g.jsx(xe,{icon:j1,fontSize:r,style:{transform:"scale(1.08)"}})}),g.jsx(Xp,{open:u.open,anchorEl:c.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:p})=>g.jsx(Zp,{onClickAway:h=>{h.preventDefault(),h.stopPropagation(),d(!1)},children:g.jsx(_c,{...p,timeout:350,children:g.jsxs(Mr,{variant:"outlined",sx:{borderRadius:1.5,width:350,maxWidth:"90vw",p:2},children:[g.jsx(eh,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:l.map(h=>g.jsx(th,{disablePadding:!0,children:g.jsxs(pg,{href:Ha(h.link,t),sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:1,"&:hover":{backgroundColor:"action.hover"}},children:[h?.component?.did?g.jsx(te,{component:"img",src:`${Dc}/blocklet/logo-bundle/${h.component.did}`,sx:{borderRadius:1,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(xe,{fontSize:50,icon:h.icon||F1,color:s.palette.text.secondary}),g.jsx(ye,{sx:{fontSize:"12px",color:"text.primary",textAlign:"center",lineHeight:"normal"},children:Ha(h.title,t)})]})},h.id))}),g.jsx(rh,{session:e,children:g.jsx(Rc,{variant:"outlined",fullWidth:!0,href:nh,sx:{mt:1},children:t==="zh"?"管理":"Manage"})})]})})})})]})}const Wd=S.shape({appLogo:S.node,appName:S.string,theme:S.shape({background:S.string}),enableConnect:S.bool,enableLocale:S.bool,navigation:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object]),icon:S.string,items:S.arrayOf(S.shape({title:S.oneOfType([S.string,S.object]),link:S.oneOfType([S.string,S.object])}))}))}),Hd=S.shape({showText:S.bool,showRole:S.bool,switchDid:S.bool,switchProfile:S.bool,switchPassport:S.bool,disableLogout:S.bool,onLogin:S.func,onLogout:S.func,onSwitchDid:S.func,onSwitchProfile:S.func,onSwitchPassport:S.func,menu:S.array,menuRender:S.func,dark:S.bool,size:S.number,profileUrl:S.string,renderUserButton:S.func}),$1=["admin","owner"],G1=e=>e.endsWith(".ip.abtnet.io"),W1=e=>e.endsWith(".did.abtnet.io"),H1={en:{guest:{title:"Notice: You are using a temporary domain",description:"You are accessing this site through a temporary domain. For a better experience, please contact the site administrator to configure a custom domain. Using a custom domain not only makes access more convenient but also ensures your access is more secure."},owner:{title:"Enhance Your Website Security",description:"Dear administrator, we recommend configuring your custom domain immediately, which will:",benefits1:"Automatically obtain HTTPS certificates to ensure secure data transmission",benefits2:"Create an exclusive brand image and increase website credibility",benefits3:"Get a shorter, more memorable access address",benefits4:"Provide visitors with a more professional experience",benefits5:"Domain configuration takes just minutes to complete, taking your website to the next level!"},skip:"Remind Me Later",bindDomain:"Configure Domain"},zh:{guest:{title:"温馨提示:当前使用的是临时域名",description:"您正在通过临时域名访问本站点。为了获得更好的访问体验,请联系站点管理员配置自定义域名。使用自定义域名不仅访问更便捷,还能确保您的访问更加安全。"},owner:{title:"提升网站安全性与专业度",description:"尊敬的管理员,我们建议您尽快配置自定义域名,这样可以:",benefits1:"自动获取 HTTPS 证书,确保数据传输安全",benefits2:"打造专属品牌形象,提升网站可信度",benefits3:"获得更简短、易记的访问地址",benefits4:"为访客提供更专业的访问体验",benefits5:"只需几分钟即可完成域名配置,全面提升您的网站品质!"},skip:"稍后提醒",bindDomain:"配置域名"}},U1=1e3*60*60*24*30,ks=".well-known/service/admin/domains";function Ud({locale:e="en",session:t={}}){const r=t?.user,n=Uc(),[i,o]=v.useState(()=>{const f=window.localStorage.getItem("domain-warning-skip");if(!f)return!0;const p=+new Date,h=+new Date(f);return p-h>U1}),a=oe((f,p={})=>Lo(H1,f,e,"en",p)),l=v.useMemo(()=>{try{const{hostname:f}=new URL(window.location.href);return f}catch{return""}},[]),s=v.useMemo(()=>[a("owner.benefits1"),a("owner.benefits2"),a("owner.benefits3"),a("owner.benefits4"),a("owner.benefits5")],[a]),c=v.useCallback(()=>{window.localStorage.setItem("domain-warning-skip",new Date().toISOString()),o(!1)},[]),u=v.useCallback(()=>{const f=Oe(window.location.origin,ks);f.startsWith("http")&&window.open(f,"_blank"),o(!1)},[]),d=r?.role&&$1.includes(r.role);return window.location.href.includes(ks)||n||!G1(l)&&!W1(l)?null:g.jsxs(ih,{open:i,disableEscapeKeyDown:!0,fullWidth:!0,maxWidth:"sm",onClose:()=>o(!1),children:[g.jsxs(oh,{sx:{padding:"20px !important"},children:[g.jsx(ye,{sx:{fontSize:"20px",fontWeight:"500"},children:a(d?"owner.title":"guest.title")}),g.jsx(ye,{sx:{marginTop:"20px",fontSize:"14px",color:"text.secondary"},children:a(d?"owner.description":"guest.description")}),d&&g.jsx(te,{component:"ul",children:s.map(f=>g.jsx(ye,{component:"li",sx:{fontSize:"14px",color:"text.secondary"},children:f},f))})]}),g.jsxs(ah,{sx:{px:"12px !important"},children:[g.jsx(ir,{onClick:c,children:a("skip")}),d&&g.jsx(ir,{variant:"contained",onClick:u,children:a("bindDomain")})]})]})}Ud.propTypes={locale:S.string,session:S.object};var V1=(e,t=!1)=>{const r=lh(["@arcblock/ws",e].join(":"));return{debug:r,warn:r,info:r,trace:t?r:console.error,error:t?r:console.error}},q1=(e,t,r)=>class extends e{constructor(i,o={}){super(i,{transport:r,...o}),this._logger=V1("client",o.silent),this.emitter=new t,this.onOpen(()=>{this._logger.debug("socket open",i)}),this.onClose(()=>{this._logger.debug("socket close",i)}),this.onError(a=>{this._logger.error("socket error",a.error)}),this.onMessage(a=>{this._logger.debug("socket message",a)})}on(i,o,a={}){this.ensureJoinChannel(i,a),this.emitter.on(i,o)}off(i,o){o?this.emitter.off(i,o):this.emitter.removeAllListeners(i),this.ensureLeaveChannel(i)}disconnect(i,o,a){this.emitter.eventNames().forEach(l=>{this.emitter.removeAllListeners(l)}),super.disconnect(i,o,a)}ensureJoinChannel(i,o={}){if(this.emitter.listenerCount(i)>0)return;const a=this.channel(i,o);a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a.on(i,({status:l,response:s})=>{l==="ok"?this.emitter.emit(i,s):this._logger.debug("response error",{topic:i,status:l,data:s})})}ensureLeaveChannel(i){if(this.emitter.listenerCount(i)>0)return;const o=this.channels.find(a=>a.topic===i);o&&(this.remove(o),o.leave().receive("ok",a=>{this._logger.debug("leave success",{topic:i,message:a})}).receive("error",a=>{this._logger.error("leave error",{topic:i,err:a})}).receive("timeout",()=>{this._logger.debug("leave timeout",{topic:i})}),o.off(i))}subscribe(i,o={}){let a=this.channels.find(l=>l.topic===i);return a||(a=this.channel(i,o),a.join().receive("ok",l=>{this._logger.debug("join success",{topic:i,message:l})}).receive("error",l=>{this._logger.error("join error",{topic:i,error:l})}).receive("timeout",()=>{this._logger.debug("join timeout",{topic:i})}),a)}unsubscribe(i){this.ensureLeaveChannel(i)}},K1=q1(ch,sh);const Me={};function Y1(e="admin"){let t="/";!window?.blocklet&&window?.env?.apiPrefix&&(t=window.env.apiPrefix);const r=Oe(t,Dc,e);return new K1(r,{heartbeatIntervalMs:100*1e3})}function J1(e="admin"){return Me[e]||(Me[e]=Y1(e)),Me[e]}const Q1=(e="admin")=>{const t=v.use(Zn),{session:r}=t??{},n=_e(()=>r.user?.did,[r.user]),i=uh(n);return dh(()=>{Object.keys(Me).forEach(o=>{Me[o]?.isConnected()&&Me[o]?.disconnect(),delete Me[o]})}),n?(i&&i!==n&&Object.keys(Me).forEach(o=>{Me[o]&&(Me[o].isConnected()&&Me[o].disconnect(),Me[o].connect())}),!Me[e]&&r.user&&(Me[e]=J1(e),Me[e].connect()),Me[e]):null},X1={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0"/><path d="m9 12l2 2l4-4"/></g>'},Z1={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m9-3v4m0 3v.01"/>'},ex={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 21a9 9 0 0 0 9-9a9 9 0 0 0-9-9a9 9 0 0 0-9 9a9 9 0 0 0 9 9zM9 8l6 8m0-8l-6 8"/>'};function tx(){const e=et();return[...e.breakpoints.keys].reverse().reduce((t,r)=>{const n=Xr(e.breakpoints.up(r));return!t&&n?r:t},null)||"xs"}const rx=e=>!Bo(e.activity)&&!!e.activity?.type&&!!e.activity?.actor,nx=e=>{if(!e)return null;const{meta:t,target:r}=e;return{metaLink:t?.id,targetLink:r?.id}},ix=async(e,t)=>{try{return await ph().user.getProfileUrl({did:e,locale:t})}catch(r){console.error(r);return}},ox=async(e,t)=>{const{type:r,did:n}=e;return Tc.isSameAddr(r,"did")?await ix(n,t)||Mn.getLink(e):Mn.getLink(e)},ax=async(e,t,r=!0)=>{const n=Mn.toTextList(e);return await Promise.all(n.map(async i=>{if(i instanceof Mn.Link){if(r){const o=await ox(i,t),{type:a,chainId:l,did:s}=i;return Tc.isSameAddr(a,"dapp")?`<em class="dapp" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`:o?`<a target="_blank" rel="noopener noreferrer" class="link" href="${o}">${i.text}</a>`:`<em class="common" data-type="${a}" data-chain-id="${l}" data-did="${s}">${i.text}</em>`}return i.text}return i})).then(i=>i.join(""))},lx=e=>fh.sanitize(e,{ALLOWED_ATTR:["href","target","rel","class","id","style"]}),sx={comment:(e,t)=>t&&t>1?g.jsxs(g.Fragment,{children:["left ",t," comments on your ",e]}):g.jsxs(g.Fragment,{children:["commented on your ",e]}),like:e=>g.jsxs(g.Fragment,{children:["liked your ",e]}),follow:()=>g.jsx(g.Fragment,{children:"followed you"}),tips:e=>g.jsxs(g.Fragment,{children:["gave tips to your ",e]}),mention:e=>g.jsxs(g.Fragment,{children:["mentioned you in ",e]}),assign:()=>g.jsx(g.Fragment,{children:"assigned you a task"})};function Kt({user:e,color:t=void 0}){const{palette:r}=et(),n=Yn(Oe(dt,"user"),{did:e.did}),i=t||r.text.primary;return g.jsx(kc,{href:n,color:i,target:"_blank",onClick:o=>{o.customPreventRedirect=!0},sx:{fontWeight:600,textDecoration:"none","&:hover":{cursor:"pointer"}},children:e.fullName||"System"})}Kt.displayName="UserLink";function cx({activity:e,users:t,actors:r,extra:n={},mountPoint:i=""}){const{palette:o}=et(),{type:a,target:l}=e||{},{type:s}=l||{},{linkColor:c=o.text.primary}=n||{},u=_e(()=>{if(!Array.isArray(t))return new Map;const b=new Map;return t.forEach(y=>{y?.did&&!b.has(y.did)&&b.set(y.did,y)}),b},[t]),d=_e(()=>Array.isArray(r)?r.map(b=>b?u.get(b)||{did:b,fullName:"System"}:null).filter(Boolean):[],[r,u]),f=oe(()=>{if(!Array.isArray(d)||d.length===0)return null;if(d.length===1)return g.jsx(Kt,{user:d[0],color:c});const b=d.slice(0,-1),y=d[d.length-1];if(d.length===2)return g.jsxs(g.Fragment,{children:[g.jsx(Kt,{user:b[0],color:c})," and ",g.jsx(Kt,{user:y,color:c})]});const x=d.length>3,_=x?d.slice(0,2):b;return g.jsxs(g.Fragment,{children:[_.map((T,k)=>g.jsxs(Q.Fragment,{children:[g.jsx(Kt,{user:T,color:c}),k<_.length-1?", ":""]},T.did)),x?`, and ${d.length-2} others`:g.jsxs(g.Fragment,{children:[", and ",g.jsx(Kt,{user:y,color:c})]})]})}),p=oe(()=>{const b=a?sx[a]:null;return b?b(s,t.length):null}),h=_e(()=>{const b=f(),y=p();return!b||!y?null:g.jsxs(g.Fragment,{children:[b," ",y]})},[a,s,d,f,p]),m=_e(()=>{if(!e)return null;const b=nx(e);return b?.targetLink?Oe(i,b.targetLink):null},[e,i]);return!a||Bo(l)?null:g.jsxs(g.Fragment,{children:[h," ",m&&g.jsx(kc,{href:m,color:c,target:"_blank",sx:{textDecoration:"none"},onClick:b=>{b.customPreventRedirect=!0},children:l.name})]})}const ux={normal:Ua,success:X1,info:Ua,warning:Z1,error:ex},dx=dr(mh)`
66
66
  font-size: 20px;
67
67
  `,fx=dr.div`
68
68
  display: flex;