@abtnode/webapp 1.17.7-beta-20251229-223813-e1e6c5e3 → 1.17.7-beta-20251230-120126-2836fe04

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 (195) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-BBi3P2IC.js → AdapterDayjs-D4yhIBjp.js} +1 -1
  4. package/dist/assets/{Add-DBDPvM2L.js → Add-BqehlncY.js} +1 -1
  5. package/dist/assets/ArrowDropDown-Cc-RKnnq.js +1 -0
  6. package/dist/assets/{Autocomplete-6CVDh-bw.js → Autocomplete-DQwU_oez.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-CIhr-IBH.js → Breadcrumbs-DWjoGi7V.js} +1 -1
  8. package/dist/assets/{ButtonGroup-Um1mBtyg.js → ButtonGroup-CiscHb2s.js} +1 -1
  9. package/dist/assets/{CSSTransition-BcU1vShi.js → CSSTransition-R4tGAk7r.js} +1 -1
  10. package/dist/assets/{CallMerge-CqN4JiFM.js → CallMerge-BeazH3jg.js} +1 -1
  11. package/dist/assets/{CardContent-C16B5Bpa.js → CardContent-C5NwNVow.js} +1 -1
  12. package/dist/assets/{ChevronLeft-Ds4qWfjb.js → ChevronLeft-BaZj3l6K.js} +1 -1
  13. package/dist/assets/{ChevronRight-BFqUOmvp.js → ChevronRight-CpLm1bKY.js} +1 -1
  14. package/dist/assets/{Clear-L4-iFi83.js → Clear-siFOH-um.js} +1 -1
  15. package/dist/assets/{Delete-DVp4fJb1.js → Delete-8zGU1uok.js} +1 -1
  16. package/dist/assets/{DeleteOutline-CDxyWfLx.js → DeleteOutline-BiwjsR6p.js} +1 -1
  17. package/dist/assets/{Done-D7TYY_5X.js → Done-DzBppTPg.js} +1 -1
  18. package/dist/assets/{Edit-DYn1CF5Y.js → Edit-CKpLr219.js} +1 -1
  19. package/dist/assets/{ErrorOutline-By74cLGJ.js → ErrorOutline-B0v25XAB.js} +1 -1
  20. package/dist/assets/{FilterList-Czj4Os71.js → FilterList-Be5ZzrNM.js} +1 -1
  21. package/dist/assets/{Google-DZPfsfDE.js → Google-BB2TEIzp.js} +1 -1
  22. package/dist/assets/{HelpOutline-DS85eUTc.js → HelpOutline-D4ZrboH1.js} +1 -1
  23. package/dist/assets/{KeyboardArrowDown-C53dgTNk.js → KeyboardArrowDown-DdCuxSq1.js} +1 -1
  24. package/dist/assets/{Launch-l1uaKrAG.js → Launch-BiV6tbTp.js} +1 -1
  25. package/dist/assets/{Link-Bs8vi6ND.js → Link-Cogxu9aB.js} +1 -1
  26. package/dist/assets/{ListItemButton-KbcDtzXD.js → ListItemButton-C9pXyehQ.js} +1 -1
  27. package/dist/assets/{ListSubheader-C-Lxj5FB.js → ListSubheader-I1pRAfr2.js} +1 -1
  28. package/dist/assets/{LoadingButton-CZNIV9Ok.js → LoadingButton-BCz99YbN.js} +1 -1
  29. package/dist/assets/{MoreVert-DaM6pG5s.js → MoreVert-BOGr0n7e.js} +1 -1
  30. package/dist/assets/{OpenInNew-BQeSMHR-.js → OpenInNew-CCra_7I0.js} +1 -1
  31. package/dist/assets/{Refresh-BJnu5a0L.js → Refresh-EilcFp8b.js} +1 -1
  32. package/dist/assets/{Replay-BV6q004T.js → Replay-N-tBrT6I.js} +1 -1
  33. package/dist/assets/{Search-CApGhXwm.js → Search-BwAHZ5GK.js} +1 -1
  34. package/dist/assets/{Stepper-B2_oAcOZ.js → Stepper-Bn1MKAsJ.js} +1 -1
  35. package/dist/assets/TableSearch-BFj05c9C.js +51 -0
  36. package/dist/assets/{ToggleButtonGroup-t3tLzS74.js → ToggleButtonGroup-npFh1mr6.js} +1 -1
  37. package/dist/assets/{UnfoldMore-D2Y42T3n.js → UnfoldMore-DVoycFqc.js} +1 -1
  38. package/dist/assets/{Verified-QiB22jgm.js → Verified-CWEd1DVE.js} +1 -1
  39. package/dist/assets/{VerifiedUser-kPobsDlg.js → VerifiedUser-CigB8Fdv.js} +1 -1
  40. package/dist/assets/{ViewList-Ceb1JHIv.js → ViewList-D7TqVQ4P.js} +1 -1
  41. package/dist/assets/{_createAggregator-g-PBWDTI.js → _createAggregator-CQ-mLfMP.js} +1 -1
  42. package/dist/assets/{actions-BCMsejAj.js → actions-CDHomwcW.js} +2 -2
  43. package/dist/assets/{actions-Dp-VL6XB.js → actions-GoWYDb6F.js} +1 -1
  44. package/dist/assets/{agreement-Bun3wUY-.js → agreement-BhNIuQec.js} +3 -3
  45. package/dist/assets/api-CSBvUv9A.js +1 -0
  46. package/dist/assets/{appearance-yP6FtjZ0.js → appearance-Bux4sdxO.js} +1 -1
  47. package/dist/assets/{audit-logs-bPLYn_cc.js → audit-logs-CpckHt6s.js} +1 -1
  48. package/dist/assets/{base-chart-BZha7l7D.js → base-chart-CxDa_CaZ.js} +1 -1
  49. package/dist/assets/{blocklet-Nw4kpsVs.js → blocklet-D4otp8nH.js} +1 -1
  50. package/dist/assets/{chain-WdOor_5_.js → chain-CfwM2JWo.js} +1 -1
  51. package/dist/assets/{click-to-copy-DjkhfhsV.js → click-to-copy-CcQkmf0B.js} +1 -1
  52. package/dist/assets/cloneDeep-B3VWXnFc.js +1 -0
  53. package/dist/assets/{config-navigation-Pdv-g1jO.js → config-navigation-DVGyxdD_.js} +3 -3
  54. package/dist/assets/{connect-to-D2aJnmIt.js → connect-to-CbHwvZLx.js} +3 -3
  55. package/dist/assets/{cssMode-CbVfvomN.js → cssMode-CtObRSSW.js} +1 -1
  56. package/dist/assets/{delete-confirm-DCHvoTQs.js → delete-confirm-DfVCfmx_.js} +1 -1
  57. package/dist/assets/{depsEqual-LiU_ATMs.js → depsEqual-BF3eoqLy.js} +1 -1
  58. package/dist/assets/{detail-B-lIb4O1.js → detail-DYfAWDl1.js} +3 -3
  59. package/dist/assets/domains-CC4Opwi7.js +28 -0
  60. package/dist/assets/{download-DHuOHOVu.js → download-scJq5nd3.js} +1 -1
  61. package/dist/assets/{edit.svg-D0_FvYeH.js → edit.svg-BgAMrWjM.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-DyzCXqsA.js +1 -0
  63. package/dist/assets/engine-KybwGdMh.js +1 -0
  64. package/dist/assets/{freemarker2-Dbd2dz2J.js → freemarker2-D5TW5Eft.js} +1 -1
  65. package/dist/assets/{get-safe-url-DDm_hPj1.js → get-safe-url-HOLWsAs0.js} +1 -1
  66. package/dist/assets/getValidReactChildren-Ck9KmKnh.js +1 -0
  67. package/dist/assets/{graphqlMode-BNREvohj.js → graphqlMode-Bblq7qR7.js} +2 -2
  68. package/dist/assets/{handlebars-Ce_TkpEQ.js → handlebars-WxLGbhWH.js} +1 -1
  69. package/dist/assets/{html-CUmDiv7k.js → html-DuZCuVkX.js} +1 -1
  70. package/dist/assets/{html-title-D3mv3IQk.js → html-title-CifiMfjt.js} +1 -1
  71. package/dist/assets/{htmlMode-Ca_TsxJH.js → htmlMode-0w5arQMe.js} +1 -1
  72. package/dist/assets/{iframe-Dt-xbP5x.js → iframe-Dq0hkTrq.js} +1 -1
  73. package/dist/assets/{index-B2WmX6Fx.js → index-B24ZOg0s.js} +8 -8
  74. package/dist/assets/{index-C8CmKnU4.js → index-B3lwT4Ol.js} +2 -2
  75. package/dist/assets/{index-CTWQgRaZ.js → index-BD7A3_Da.js} +1 -1
  76. package/dist/assets/{index-BLI3C2o7.js → index-BGcMePQ8.js} +1 -1
  77. package/dist/assets/{index-CAA1AdyJ.js → index-BPA__Xw6.js} +2 -2
  78. package/dist/assets/index-BcmOVFqY.js +1 -0
  79. package/dist/assets/index-BnXKKyQZ.js +155 -0
  80. package/dist/assets/{index-CQogNORn.js → index-C8Yc1xhR.js} +13 -13
  81. package/dist/assets/{index-B11n09kE.js → index-C9Doh9s3.js} +1 -1
  82. package/dist/assets/{index-CODEE-RB.js → index-CFu4UTTj.js} +1 -1
  83. package/dist/assets/{index-D0-rZXcm.js → index-CGzi7zV_.js} +1 -1
  84. package/dist/assets/{index-Ci1hoD9j.js → index-CH_WzJ6f.js} +2 -2
  85. package/dist/assets/{index-WbuPRmjd.js → index-CIAqUMHH.js} +1 -1
  86. package/dist/assets/{index-IWOqJkOB.js → index-CNVrqxCI.js} +1 -1
  87. package/dist/assets/{index-BHAdZ1FZ.js → index-COhyQV8C.js} +2 -2
  88. package/dist/assets/{index-DT5BIL2_.js → index-CXTibO7-.js} +1 -1
  89. package/dist/assets/{index-umVLVZjs.js → index-CbKLDJsb.js} +1 -1
  90. package/dist/assets/{index-Dtkcfmzb.js → index-Ci0V4E2u.js} +11 -11
  91. package/dist/assets/{index-DtJVzdtH.js → index-CrQaw0BF.js} +2 -2
  92. package/dist/assets/{index-2VA5XrmO.js → index-Cs8W6nmK.js} +11 -11
  93. package/dist/assets/index-CzQzijaC.js +1 -0
  94. package/dist/assets/index-D2gNdot7.js +79 -0
  95. package/dist/assets/{index-CQYzPG_n.js → index-D57ncOaj.js} +1 -1
  96. package/dist/assets/{index-CypG4Dbq.js → index-D93jIJAg.js} +1 -1
  97. package/dist/assets/{index-jT3H-jhB.js → index-DAMZQWKn.js} +1 -1
  98. package/dist/assets/index-DBJqSNjU.js +1 -0
  99. package/dist/assets/{index-CvZItgju.js → index-DDG-ZEI-.js} +1 -1
  100. package/dist/assets/{index-BQNKAwfZ.js → index-DN9WepcN.js} +1 -1
  101. package/dist/assets/{index-B0O0JwRT.js → index-DPs8sVol.js} +1 -1
  102. package/dist/assets/index-DVOJBn33.js +20 -0
  103. package/dist/assets/{index-CR1U7OM5.js → index-DWm5KlVP.js} +1 -1
  104. package/dist/assets/{index-CdxsHt3r.js → index-DYW_sHYx.js} +3 -3
  105. package/dist/assets/index-DhXU_Vz9.js +1 -0
  106. package/dist/assets/{index-KI2LGzUW.js → index-DidKpbc0.js} +1 -1
  107. package/dist/assets/{index-z-tbDeE3.js → index-DyIPXbau.js} +1 -1
  108. package/dist/assets/{index-Dt9htCod.js → index-DzQWOvtr.js} +3 -3
  109. package/dist/assets/{index-CADLzzXJ.js → index-OtVuze_0.js} +3 -3
  110. package/dist/assets/{index-DJ9zSKl1.js → index-ZCO60mrW.js} +1 -1
  111. package/dist/assets/{index-CL2N86sI.js → index-_-mWQ6ov.js} +12 -12
  112. package/dist/assets/{index-DQItZ4UM.js → index-b78VjA-Y.js} +1 -1
  113. package/dist/assets/{index-BxX_nqnW.js → index-nvPO7sCa.js} +2 -2
  114. package/dist/assets/{index-kRFEBldM.js → index-rsjiYKAZ.js} +2 -2
  115. package/dist/assets/{index-D319vBae.js → index-wIt3UxPD.js} +9 -9
  116. package/dist/assets/{index-BsjY45Cd.js → index-yQeeHJJ2.js} +1 -1
  117. package/dist/assets/{index.esm-Zck39Kvz.js → index.esm-B06DCVM7.js} +1 -1
  118. package/dist/assets/install-from-url-B0gehZWB.js +1 -0
  119. package/dist/assets/{invitation-4F28SRYz.js → invitation-DjNwS-Ha.js} +3 -3
  120. package/dist/assets/{is-path-prefix-equal-BJMXSv43.js → is-path-prefix-equal-Dr7EUhi7.js} +1 -1
  121. package/dist/assets/{item-C1JxTPT2.js → item-Bojg28Ma.js} +6 -6
  122. package/dist/assets/{javascript-B0m7UVIe.js → javascript-xUySVVaa.js} +1 -1
  123. package/dist/assets/{jsonMode-CgwGbFre.js → jsonMode-aXjE405B.js} +1 -1
  124. package/dist/assets/{liquid-BZyWy1Tr.js → liquid-CqO0loMD.js} +1 -1
  125. package/dist/assets/{list-header-BZRIF_iO.js → list-header-D5a_5edu.js} +1 -1
  126. package/dist/assets/{lock.svg-Ba4McgFD.js → lock.svg-Bnm1mppT.js} +1 -1
  127. package/dist/assets/{log-BFB-zvPt.js → log-Dh6sGyEk.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-CGSms1Pf.js → lottie-react.esm-uLWIPZ8N.js} +1 -1
  129. package/dist/assets/{mdx-BRVCuIrx.js → mdx-gAWRd386.js} +1 -1
  130. package/dist/assets/{memory-B2j_d87p.js → memory-BwHtkqHB.js} +1 -1
  131. package/dist/assets/{metric-DpvjSsZq.js → metric-Q_9BNbHj.js} +1 -1
  132. package/dist/assets/omit-DeumLxdH.js +1 -0
  133. package/dist/assets/overview-DZjSoaFM.js +13 -0
  134. package/dist/assets/{permission-DTFazP7s.js → permission-B8q324ya.js} +1 -1
  135. package/dist/assets/{preference-DYVCo0KF.js → preference-DjOBLR-v.js} +6 -6
  136. package/dist/assets/{python-B-wSNZ_T.js → python-DnlpLwjq.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-B7_MlDzu.js → raf-schd.esm-B2LNukSh.js} +1 -1
  138. package/dist/assets/{razor-BR_HjGgi.js → razor-JAsAlMne.js} +1 -1
  139. package/dist/assets/{rotate-session-key-Bz5QE7gB.js → rotate-session-key-BFiVoa6I.js} +1 -1
  140. package/dist/assets/{runtime-DM0B8rA4.js → runtime-BB_E-r_A.js} +1 -1
  141. package/dist/assets/schema-DC2ou5i0.js +1 -0
  142. package/dist/assets/sdk-DZJdUnPV.js +1 -0
  143. package/dist/assets/{service-DkoTQaTk.js → service-DLwgL4rt.js} +1 -1
  144. package/dist/assets/{shorten-label-BR48Ofqe.js → shorten-label-CybgQDYs.js} +1 -1
  145. package/dist/assets/{simple-select-D38wTw_o.js → simple-select-DJn1UT5H.js} +1 -1
  146. package/dist/assets/{spaces-YFYDpL5l.js → spaces-DBXblECR.js} +1 -1
  147. package/dist/assets/{status-B_ZSV6JY.js → status-CW0QYGeF.js} +1 -1
  148. package/dist/assets/{status-BTCwUhiG.js → status-DG36cpK9.js} +1 -1
  149. package/dist/assets/{switch-control-Fq47wOrt.js → switch-control-Bzy_oqas.js} +1 -1
  150. package/dist/assets/{table-icons-DYQRHdVu.js → table-icons-DKoPQwjv.js} +1 -1
  151. package/dist/assets/{team-DKJfzzKD.js → team-DLwXXgYX.js} +1 -1
  152. package/dist/assets/{toLower-62VYhzjn.js → toLower-CXuGXHcC.js} +1 -1
  153. package/dist/assets/toUpper-DN59t43l.js +1 -0
  154. package/dist/assets/traffic-DSdpsMku.js +1 -0
  155. package/dist/assets/{tsMode-CxSxmJBQ.js → tsMode-Dh0Ri32L.js} +1 -1
  156. package/dist/assets/{typescript-Dnu6Xv3U.js → typescript-D316NgIh.js} +1 -1
  157. package/dist/assets/{url-evaluation-Cf4MPEtF.js → url-evaluation-DMCBEvQj.js} +1 -1
  158. package/dist/assets/{url-join-P8kMCiOB.js → url-join-DoFkjCNr.js} +1 -1
  159. package/dist/assets/{use-mobile-BnTDQjTV.js → use-mobile-BGG1Yti5.js} +1 -1
  160. package/dist/assets/{use-mobile-D1KGwOlr.js → use-mobile-DqSNKVo1.js} +1 -1
  161. package/dist/assets/{useAsync-SwSlukzF.js → useAsync-ByRujkOO.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-BQEwzyM4.js → useAsyncRetry-CLcTront.js} +1 -1
  163. package/dist/assets/{useLocalStorage-41az-hAK.js → useLocalStorage-DjnxkTrj.js} +1 -1
  164. package/dist/assets/{useThemeProps-Cw6i_sME.js → useThemeProps-CFIloaX5.js} +1 -1
  165. package/dist/assets/{util-C9NPDRP-.js → util-DvscRj0S.js} +1 -1
  166. package/dist/assets/{wait-container-GLOlfScg.js → wait-container-BPFMrDUL.js} +3 -3
  167. package/dist/assets/{without-wallet-rfYvx_29.js → without-wallet-D2bQnWJt.js} +1 -1
  168. package/dist/assets/wrap-locale-BbIFvnmJ.js +1 -0
  169. package/dist/assets/{xml-D06mM15g.js → xml-BGgxhX96.js} +1 -1
  170. package/dist/assets/{yaml-DrMeEOdm.js → yaml-9hmveKGV.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/ArrowDropDown-CqYw-eY9.js +0 -1
  174. package/dist/assets/TableSearch-CKjIHAce.js +0 -51
  175. package/dist/assets/api-DDSUcMPT.js +0 -1
  176. package/dist/assets/cloneDeep-Bl8wZyrm.js +0 -1
  177. package/dist/assets/domains-CeCMQUBm.js +0 -28
  178. package/dist/assets/emotion-cache.browser.esm-D1-P5QGD.js +0 -1
  179. package/dist/assets/engine-D8Acg7DY.js +0 -1
  180. package/dist/assets/getValidReactChildren-DpcxJbs9.js +0 -1
  181. package/dist/assets/index-2lzs7bat.js +0 -1
  182. package/dist/assets/index-BPuMob2k.js +0 -1
  183. package/dist/assets/index-Be8ehpQE.js +0 -1
  184. package/dist/assets/index-CKHOafPq.js +0 -79
  185. package/dist/assets/index-CaDcvTD7.js +0 -155
  186. package/dist/assets/index-DdYx-VNK.js +0 -1
  187. package/dist/assets/index-DjQqmpzQ.js +0 -20
  188. package/dist/assets/install-from-url-BXftFn4t.js +0 -1
  189. package/dist/assets/omit-CyTnrDNo.js +0 -1
  190. package/dist/assets/overview-DkMLRtwO.js +0 -13
  191. package/dist/assets/schema-BKPaewSy.js +0 -1
  192. package/dist/assets/sdk-CXClyXm7.js +0 -1
  193. package/dist/assets/toUpper-CBmQ5f7q.js +0 -1
  194. package/dist/assets/traffic-Dh_MwZxy.js +0 -1
  195. package/dist/assets/wrap-locale-C-Q-ES8F.js +0 -1
@@ -1,5 +1,5 @@
1
- import{c1 as Ge,c0 as Ke,r as h,c2 as Fe,j as e,b9 as ee,c4 as Ye,ch as Z,c5 as $e,b_ as He,cj as qe,aF as he,K as q,bo as A,cw as Ce,H as B,X as V,bg as E,fE as we,aQ as Be,b as N,iX as Ve,V as D,gG as Qe,o as f,x as Xe,ax as De,y as fe,al as Je,p as Ze,C as L,T as j,k as et,s as tt,f as st,iY as X,i2 as J,iZ as ot,J as S,aW as G,aH as T,L as nt,g as H,dn as at,N as Se,Q as F,aE as Y,a9 as $,a5 as rt,bB as it,fv as ct,b0 as lt,v as pe,w as dt,G as be,Y as Ee,bE as xe,B as pt}from"./index-DtJVzdtH.js";import{T as ut}from"./html-title-D3mv3IQk.js";import{u as U}from"./blocklet-Nw4kpsVs.js";import{u as mt}from"./use-mobile-BnTDQjTV.js";import{c as Ie,d as ft,e as xt,f as gt,S as ht,g as ue,h as St,b as yt,u as bt,C as kt,D as jt,a as Ct}from"./connect-to-D2aJnmIt.js";import"./index-CypG4Dbq.js";import"./index-BojVbZw0.js";import"./api-DDSUcMPT.js";import{d as wt,a as Bt,g as Dt,i as Et,e as ge,f as It,h as Tt,j as Rt}from"./spaces-YFYDpL5l.js";import{v as zt}from"./index-jT3H-jhB.js";import{E as vt}from"./index-B0O0JwRT.js";import{H as Pt}from"./HelpOutline-DS85eUTc.js";import{H as At}from"./index-IWOqJkOB.js";import{x as Lt}from"./index-DRYJ0xIl.js";import{D as Ut}from"./DeleteOutline-CDxyWfLx.js";import{g as ke}from"./get-safe-url-DDm_hPj1.js";import{S as Ot}from"./switch-control-Fq47wOrt.js";import{L as je}from"./list-header-BZRIF_iO.js";import"./OpenInNew-BQeSMHR-.js";import"./ButtonGroup-Um1mBtyg.js";import"./getValidReactChildren-DpcxJbs9.js";import"./FilterList-Czj4Os71.js";import"./CSSTransition-BcU1vShi.js";import"./emotion-cache.browser.esm-D1-P5QGD.js";import"./index-CR1U7OM5.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-LiU_ATMs.js";import"./TableSearch-CKjIHAce.js";import"./Search-CApGhXwm.js";import"./Clear-L4-iFi83.js";import"./MoreVert-DaM6pG5s.js";function Mt(t){return Ge("MuiIcon",t)}Ke("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nt=t=>{const{color:s,fontSize:n,classes:o}=t,r={root:["root",s!=="inherit"&&`color${Z(s)}`,`fontSize${Z(n)}`]};return $e(r,Mt,o)},_t=ee("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.color!=="inherit"&&s[`color${Z(n.color)}`],s[`fontSize${Z(n.fontSize)}`]]}})(He(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:t.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:t.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(t.vars||t).palette.action.active}},{props:{color:"disabled"},style:{color:(t.vars||t).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(t.palette).filter(qe()).map(([s])=>({props:{color:s},style:{color:(t.vars||t).palette[s].main}}))]}))),ye=h.forwardRef(function(s,n){const o=Fe({props:s,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:c="inherit",component:i="span",fontSize:d="medium",...l}=o,p={...o,baseClassName:r,color:c,component:i,fontSize:d},u=Nt(p);return e.jsx(_t,{as:i,className:Ye(r,"notranslate",u.root,a),ownerState:p,"aria-hidden":!0,ref:n,...l})});ye.muiName="Icon";const Wt=he(e.jsx("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"})),Gt=he(e.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"})),Kt=he(e.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}));async function Ft({blockletDid:t,nodeApi:s,spaceGateways:n}){let o=!1;const r=await Promise.all(n.map(async a=>{let{name:c}=a;const i=await wt(a.endpoint);return!q(i)&&i!==c&&(c=i,o=!0),{...a,name:c}}));return o&&await Promise.all(r.filter(a=>a.did).map(a=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),r}function Yt({refresh:t}={}){const{blocklet:s}=U(),n=s?.meta?.did,{api:o}=A();return Ce(async()=>{if(!n)return[];const{spaceGateways:r}=await o.getBlockletSpaceGateways({input:{did:n}});return await Ft({blockletDid:n,nodeApi:o,spaceGateways:r})??[]},{refreshDeps:[n,t],onError(r){r?.message?.includes("not logged")?console.warn(r):(console.error(r),B.error(V(r)))}})}function Te({deps:t,setLoading:s,backupDate:n}={deps:[],setLoading:()=>{},backupDate:new Date}){const{blocklet:o}=U(),[r,a]=h.useState([]),{api:c}=A(),[i,d]=h.useMemo(()=>n?[E(n).startOf("day").toISOString(),E(n).endOf("day").toISOString()]:[E().startOf("year").toISOString(),E().endOf("day").toISOString()],[n]),l=we(async()=>{try{if(s(!0),!o){a([]);return}const{backups:p}=await c.getBlockletBackups({input:{did:o.meta.did,startTime:i,endTime:d}});a(p??[])}catch(p){console.error(p),B.error(V(p))}finally{s(!1)}},1e3);return Be(async()=>{l()},[o?.meta?.did].concat(t)),{backups:r}}function $t({appDid:t}){const{backups:s}=Te(),[n,o]=h.useState({message:"",progress:0,completed:!1}),r=A(),{ws:{useSubscription:a}}=r;return a(N.BlockletEvents.backupProgress,c=>{t===c?.appDid&&o(()=>({...c}))},[t]),h.useEffect(()=>{if(s?.length&&Ve(s[0]?.status)){const[c]=s;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[s]),n}function Ht({deps:t=[],setLoading:s=()=>{}}={}){const{blocklet:n}=U(),[o,r]=h.useState([]),{api:a}=A(),c=h.useCallback(we(async()=>{if(!a||!n?.meta?.did){r([]);return}try{s(!0);const i=E(),d=i.subtract(1,"year"),{summary:l}=await a.getBlockletBackupSummary({input:{did:n.meta.did,startTime:d.toISOString(),endTime:i.toISOString()}}),p=Array.isArray(l)?l.map(u=>({...u,successCount:+u.successCount,errorCount:+u.errorCount})):[];r(p)}catch(i){console.error("Failed to fetch backup summary:",i),B.error(V(i)),r([])}finally{s(!1)}},1e3),[]);return Be(async()=>(await c(),()=>{c.cancel()}),[n?.meta?.did].concat(t)),{backupSummary:o}}const Re=h.createContext({}),{Provider:qt,Consumer:_s}=Re;function ze({children:t}){const{t:s}=D(),{api:n}=A(),{blocklet:o}=U(),[r,a]=h.useState(null),[c,i]=h.useState(!1),{data:d,loading:l,mutate:p}=Yt({refresh:c}),u=Qe(d),x=$t({appDid:o?.appDid}),m=h.useMemo(()=>Bt(o?.environments),[o?.environments]),[k,w]=h.useState(!1),[y,b]=h.useState(0),{backups:te}=Te({deps:[y,r],setLoading:w,backupDate:r}),[se,oe]=h.useState(0),{backupSummary:ne}=Ht({deps:[se]}),[_,M]=h.useState(d?.find(g=>g.endpoint===m)),I=o?.settings?.autoBackup,z=()=>{i(g=>!g)},ae=()=>{oe(g=>g+1)},re=()=>{b(g=>g+1)},K=async g=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:g}})},Q=async()=>{await n.abortBlockletBackup({input:{appPid:o.meta.did}})},ie=async(g,P)=>{try{p(R=>{const v=[...R];return v.push({...g,loading:!0}),v}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:g}}),m!==P&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:P}]}}),M(g),z(),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"}))}catch(R){throw console.error(R),p(v=>[...v].filter(W=>W.did!==g.did)),R}},ce=async g=>{g&&(g.endpoint===m&&(await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),I?.enabled&&await K({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:g?.did}}),p(P=>{const R=[...P];return R.splice(R.indexOf(g),1),R}),M(g),z())},le=async g=>{await Promise.all([n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:g.did},spaceGateway:g}}),m!==g.endpoint&&n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:g.endpoint}]}})]),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"})),z()},C=g=>g?.endpoint===m;return e.jsx(qt,{value:{spaceGateways:d||[],selectedSpaceGateway:_,addSpaceGateway:ie,deleteSpaceGateway:ce,updateSpaceGateway:le,refreshSpaceGateways:z,spaceGatewaysLoading:l,spaceGatewaysFirstLoading:u,spaceGatewayIsSelected:C,updateAutoBackup:K,abortBlockletBackup:Q,backupEndpoint:m,backupProgress:x,backups:te,backupSummary:ne,refreshBackupSummary:ae,refreshBackups:re,setBackupDate:a,backupsLoading:k,autoBackup:I},children:t})}ze.propTypes={children:f.any.isRequired};function O(){return h.useContext(Re)}function ve({...t}){const{blocklet:s}=U(),{info:n}=A(),{t:o}=D(),r=Ie({blocklet:s}),a=Xe(n),{spaceGateways:c,addSpaceGateway:i}=O(),d={checkFn:De.create({baseURL:fe(window.location.origin,Je())}).get,webWalletUrl:a,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:n.did}},l=async({endpoint:u,name:x,did:m})=>{const k=await Dt(u);if(!await Et(k)){B.error(o("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(b=>b.endpoint===u)){B.error(o("storage.spaces.gateway.add.duplicate",{name:x}));return}await i({name:x,did:m,url:k,endpoint:u},u)},p=async({spaceGateway:u})=>{try{await l(u)}catch(x){console.error(x),B.error(V(x))}};return e.jsx(ft,{...t,connectScope:"app",options:d,onSuccess:p})}function Vt(){const{api:t}=A(),{blocklet:s}=U(),{data:n,loading:o}=Ce(()=>t.getBlocklet({input:{did:s?.meta?.did,attachDiskInfo:!0,attachRuntimeInfo:!0}}),{ready:!!s?.meta?.did,refreshDeps:[s?.meta?.did]});return{blocklet:n?.blocklet??null,loading:o}}function Pe({...t}){const{t:s}=h.useContext(Ze),{blocklet:n,loading:o}=Vt();if(n?.diskInfo){const r=(i,d,l)=>e.jsxs(j,{children:[i," ",e.jsx("strong",{children:d?et(d):"empty"})]}),a=n.environments.reduce((i,d)=>(i[d.key]=d.value,i),{}),c=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Qt,{component:"div",...t,children:c.map(i=>e.jsx(zt,{valueComponent:"div",nameWidth:120,name:i.name,children:i.value},i.key))})}return o?e.jsx(L,{}):e.jsx(j,{children:s("blocklet.diskInfo.empty")})}const Qt=tt(j)``;function Ae(){const{t}=D(),{setBackupDate:s,backupSummary:n}=O(),o=xt({key:"lg"}),r=h.useRef(null),a=st(),c=h.useCallback(l=>{s(l)},[s]),i=h.useMemo(()=>{const l=E().add(1,"day"),p=l.subtract(1,"year"),u=new Map(n.map(m=>[m.date,{date:m.date,successCount:m.successCount,errorCount:m.errorCount}])),x=[];for(let m=p.clone();E(m).isBefore(l);m=m.add(1,"day")){const k=m.format("YYYY-MM-DD");x.push(u.get(k)||{date:k,successCount:0,errorCount:0})}return x},[n]),d=h.useMemo(()=>({grid:{containLabel:!0,right:10,top:30,bottom:12},tooltip:{formatter:k=>{const{date:w,successCount:y,errorCount:b}=i[k.dataIndex]||{date:k.data[0],successCount:0,errorCount:0};return[`<div>${t("common.time")}: ${w}</div>`,`<div>${t("common.succeeded")}: ${y}</div>`,`<div>${t("common.failed")}: ${b}</div>`].join(`
2
- `)},backgroundColor:a.palette.background.paper,borderColor:a.palette.divider,textStyle:{color:a.palette.text.primary,fontSize:14},extraCssText:`box-shadow: ${a.shadows[2]}; border-radius: 4px;`,padding:[8,10]},visualMap:{show:!1,min:-12,max:12,pieces:[{min:Number.MIN_SAFE_INTEGER,max:-9,color:X[600]},{min:-9,max:-6,color:X[500]},{min:-6,max:-3,color:X[400]},{min:-3,max:-1,color:X[300]},{min:0,max:0,color:a.palette.grey[200]},{min:1,max:3,color:J[300]},{min:3,max:6,color:J[400]},{min:6,max:9,color:J[500]},{min:9,max:Number.MAX_SAFE_INTEGER,color:J[600]}],orient:"horizontal",left:"center",bottom:12,itemWidth:12,itemHeight:12,textStyle:{color:a.palette.text.secondary,fontSize:12}},calendar:{top:30,left:50,right:10,bottom:4,cellSize:[8,8],splitLine:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,color:a.palette.background.default},dayLabel:{show:!0,firstDay:0,nameMap:["","Mon","","Wed","","Fri",""],position:"start",margin:4,fontSize:10,color:a.palette.text.primary,fontWeight:"400",width:20},monthLabel:{show:!0,nameMap:"cn",align:"left",color:a.palette.text.primary,fontWeight:"400",fontSize:12,position:"start",margin:4,width:30,padding:[0,2]},yearLabel:{show:!1},range:[E().subtract(11,"month").startOf("month").format("YYYY-MM-DD"),E().endOf("month").format("YYYY-MM-DD")],orient:"horizontal"},series:{type:"heatmap",coordinateSystem:"calendar",data:i.map(k=>[k.date,k.errorCount?-k.errorCount:k.successCount]),label:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,borderRadius:4},emphasis:{itemStyle:{borderWidth:2,borderColor:ot[200],color:"inherit"}}}}),[i,t,a]);return e.jsxs(e.Fragment,{children:[e.jsx(S,{ref:r,sx:{maxWidth:"1280px",border:"1px solid",borderColor:"divider",padding:"8px",overflowX:"auto"},children:e.jsx(S,{sx:{width:"1200px",height:"180px",position:"relative"},children:e.jsx(vt,{option:d,style:{height:"100%",width:"100%"},notMerge:!0,lazyUpdate:!1,opts:{renderer:"canvas"},onEvents:{click:l=>{l.componentType==="series"&&l.data&&c(l.data[0])}}})})}),e.jsx(S,{sx:{display:"flex",justifyContent:"flex-end",mt:1,mr:o?2:5,mb:2},children:e.jsxs(G,{direction:o?"column":"row",spacing:o?2:1,sx:{width:"100%",justifyContent:"flex-start",alignItems:o?"flex-start":"center"},children:[e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #8B5000 0%, #A36200 33%, #C17700 66%, #E29000 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.failed")})]}),e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,bgcolor:"grey.200",border:"1px solid",borderColor:"grey.200"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.without")})]}),e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #9be9a8 0%, #40c463 33%, #30a14e 66%, #216e39 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.succeeded")})]})]})})]})}const Xt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function Le({status:t,message:s="",createdAt:n}){const{t:o}=D(),r=t===T.BACKUPS.STATUS.PROGRESS&&E().diff(n,"hours")>=T.BACKUPS.TIMEOUT_HOURS,a=r&&o("common.timeoutError"),c=t===T.BACKUPS.STATUS.PROGRESS&&!r,i=t===T.BACKUPS.STATUS.SUCCEEDED&&!r;return c?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):i?e.jsx(H,{type:"success",children:o("common.succeeded")}):e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"error",children:o("common.failed")}),e.jsx(Se,{style:{display:"flex",alignItems:"center",flexShrink:0},title:s||a,children:e.jsx(ye,{children:e.jsx(Pt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}Le.propTypes={status:f.string.isRequired,message:f.string,createdAt:f.string.isRequired};function Ue({metadata:t={}}){const{t:s}=D();if(q(t))return e.jsx(H,{type:"success",children:s("common.succeeded")});const n=t.count||0,o=t.size||0,r=Lt(o,{iec:!0}),a=e.jsxs(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:[e.jsxs(j,{variant:"body2",children:[s("common.fileCount"),": ",n]}),e.jsxs(j,{variant:"body2",children:[s("common.fileSize"),": ",r]})]});return e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"success",children:s("common.succeeded")}),e.jsx(Xt,{title:a,style:{display:"flex",alignItems:"center",flexShrink:0},placement:"left",children:e.jsx(ye,{children:e.jsx(at,{style:{width:"24px",height:"24px"},color:"primary"})})})]})}Ue.propTypes={metadata:f.object};function Oe(){const{t,locale:s}=D(),{spaceGateways:n,backups:o,backupsLoading:r}=O(),a=h.useMemo(()=>[{label:"DID Space",name:"target",options:{customBodyRenderLite:i=>{const{targetUrl:d,targetName:l,status:p,createdAt:u}=o[i],x=p===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,m=p===T.BACKUPS.STATUS.SUCCEEDED&&!x,k=l||n.find(w=>d?.includes(ge(w?.endpoint)))?.name||"Unknown DID Space";return m?e.jsx(nt,{href:d,target:"_blank",sx:{fontSize:"16px"},children:k}):e.jsx(j,{variant:"body1",sx:{fontSize:"16px"},children:k})}}},{label:t("common.strategy"),name:"strategy",options:{customBodyRender:i=>{const d=t(i===0?"common.auto":"common.manual");return e.jsx(H,{children:d})}}},{label:t("common.startTime"),name:"createdAt",options:{customBodyRender:i=>E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.endTime"),name:"updatedAt",options:{customBodyRender:i=>q(i)?"":E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.status"),name:"status",options:{customBodyRenderLite:i=>{const d=o?.[i]??{},{status:l,message:p,createdAt:u,metadata:x}=d,m=l===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,k=l===T.BACKUPS.STATUS.PROGRESS&&!m,w=l===T.BACKUPS.STATUS.SUCCEEDED&&!m;return k?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),t("common.progress")]}):w?e.jsx(Ue,{metadata:x}):e.jsx(Le,{status:l,message:p,createdAt:u})}}}],[o,n,t]),c=h.useMemo(()=>!o?.length,[o]);return e.jsx(e.Fragment,{children:c?e.jsx(S,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px",color:"#9397A1",marginTop:"16px",marginBottom:"24px"},children:t("storage.spaces.record.emptyData")}):e.jsx(At,{title:"",loading:r,data:o,columns:a,emptyNode:t("storage.spaces.record.emptyData",s),options:{download:!1,filter:!1,print:!1,search:!1,viewColumns:!1}})})}function Jt(){const{t}=D();return e.jsxs(S,{children:[e.jsxs(S,{sx:{display:"flex",gap:3,flexDirection:{xs:"column",md:"row"}},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",minWidth:240},children:[e.jsx(gt,{style:{cursor:"pointer",width:"150px",height:"100%",maxHeight:160}}),e.jsx(j,{sx:{my:2,textAlign:"center",color:"text.secondary"},children:t("storage.spaces.connect.provider")}),e.jsx(ve,{})]}),e.jsxs(S,{sx:{flexGrow:1,minWidth:0},children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.spaces.backup.records")})}),e.jsx(Ae,{})]})]}),e.jsx(Oe,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2,mt:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function Me({spaceGateway:t,onConfirm:s=()=>{},onCancel:n=()=>{}}){const{t:o}=D(),[r,a]=h.useState(!1),[c,i]=h.useState(!1),d=(u,x)=>{u?.preventDefault(),u?.stopPropagation(),a(x)},l=async u=>{try{u?.stopPropagation(),i(!0),await s?.(t),a(!1)}catch(x){console.error(x),B.error(`${o("storage.space.gateway.delete.failed")}: ${V(x)}`)}finally{a(!1),i(!1)}},p=u=>{d(u,!1),n?.(u)};return e.jsxs(e.Fragment,{children:[e.jsxs(F,{color:"red",onClick:u=>d(u,!0),children:[e.jsx(Y,{style:{minWidth:24,color:"red"},children:e.jsx(Ut,{fontSize:"small"})}),e.jsx($,{style:{color:"red"},children:o("common.disconnect")})]}),e.jsx(rt,{title:o("storage.spaces.gateway.delete.title"),open:r,confirmButton:{text:o("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:c}},cancelButton:{text:o("common.cancel"),props:{size:"small",variant:"outlined",disabled:c}},onConfirm:l,onCancel:p,children:e.jsx(j,{sx:{wordWrap:"break-word"},children:o("storage.spaces.gateway.delete.descForBackup",{name:`${t?.name}`})})})]})}Me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};function Ne({spaceGateway:t,selected:s,onDelete:n=()=>{},onConnect:o=()=>{},enableSwitchToSpace:r=!0,backupInProgress:a=!1,...c}){const{abortBlockletBackup:i}=O(),[d,l]=h.useState(null),{t:p}=D(),[u,x]=h.useState(!1),m=(y,b)=>{y.stopPropagation(),y.preventDefault(),l(b&&y.currentTarget)},k=async y=>{try{x(!0),m(y,!1),await o(t)}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}},w=async y=>{try{x(!0),m(y,!1),await i()}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}};return e.jsxs(e.Fragment,{children:[u||t?.loading?e.jsx(L,{sx:{ml:1},size:"24px"}):e.jsx(it,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:y=>m(y,!0),...c,children:e.jsx(ct,{})}),e.jsxs(lt,{id:"simple-menu",anchorEl:d,keepMounted:!0,open:!!d,onClose:y=>m(y,!1),children:[e.jsxs(F,{onClick:y=>{m(y,!1),window.open(ke(t.endpoint?It(t.endpoint):t.url,{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Wt,{fontSize:"small"})}),e.jsx($,{children:p("common.open")})]}),e.jsxs(F,{onClick:y=>{m(y,!1),window.open(ke(Tt(t.endpoint),{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Kt,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(F,{onClick:k,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Gt,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.switchToSpace")})]}),a&&e.jsxs(F,{onClick:w,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(ht,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.abortBlockletBackup")})]}),!a&&e.jsx(Me,{spaceGateway:t,onConfirm:async()=>{l(null),await n?.(t)},onCancel:()=>l(null)})]})]})}Ne.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};const Zt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function _e({spaceGateway:t,spaceStatus:s,selected:n,onConnected:o=()=>{},onDeleted:r=()=>{},onBackedUp:a=()=>{}}){const{t:c,locale:i}=D(),{blocklet:d}=U(),{api:l,info:{did:p}}=A(),{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y}=Ie({blocklet:d}),{backupProgress:b,updateSpaceGateway:te,deleteSpaceGateway:se,refreshBackupSummary:oe,refreshBackups:ne}=O(),[_,M]=h.useState(!1),[I,z]=h.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:c("storage.spaces.authorize.title",{appName:x},i),scan:c("storage.spaces.authorize.scan",{appName:x},i),confirm:"",success:e.jsx(j,{gutterBottom:!0,children:c("storage.spaces.authorize.success")})},onClose:()=>{z(C=>({...C,open:!1}))}}),ae=n&&!_&&s===ue.DISCONNECTED,re=n&&!_&&!t.loading&&s===ue.CONNECTED,K=n&&_&&s===ue.CONNECTED&&b?.progress>=0,Q=async()=>{try{if(await Rt(t?.endpoint)){await l.configBlocklet({input:{did:[d.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),B.success(c("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),o?.(null,t);return}}catch(C){console.error(C),o?.(C,t);return}z(C=>({...C,open:!0,prefix:fe(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:De.create({baseURL:fe(t.url,"space")}).get,extraParams:{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y,nodeDid:p,spaceDid:t.did}}))},ie=async(C,g)=>{const P=g(C.endpoint),R=ge(P),v=C.space?g(C.space):{};if(t.did&&R!==t.did){z(We=>({...We,open:!1}));const W=c("storage.spaces.gateway.switch.failedForMismatchSpace",{name:v?.name?v.name:""});B.error(W),o?.(new Error(W),t);return}const de={...t,name:v.name??"DID Space",did:v.did??ge(P),endpoint:P};await te(de),z(W=>({...W,open:!1})),o?.(null,de)},ce=async()=>{try{if(_)return;M(!0),await l.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(C){console.error(C),B.error(C.message),a?.(C,t)}finally{M(!0)}},le=async()=>{try{await se(t),B.success(c("storage.spaces.gateway.delete.succeeded",{name:t.name?`(${t.name})`:""})),r?.(null,t)}catch(C){console.error(C),r?.(C,t)}};return h.useEffect(()=>{b?.completed?(n&&(b?.progress===100?(B.success(c("storage.spaces.backupSuccessfully")),a?.(null,t)):b.message&&a?.(new Error(b?.message),t),b.progress=0,b.message=""),M(!1),oe(),ne()):b.progress&&M(!0)},[b]),e.jsxs(e.Fragment,{children:[e.jsxs(S,{sx:{display:"flex",alignItems:"center",".action-btn":{borderRadius:1,marginLeft:1}},children:[re&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:ce,children:c("storage.spaces.strategy.backupNow")}),ae&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:Q,children:c("storage.spaces.disconnected.reconnectNow")}),K&&e.jsx(Zt,{title:b?.message&&e.jsx(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:e.jsx(j,{variant:"body2",children:b.message})}),children:e.jsxs(pe,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:b?.progress,size:14,sx:{mr:1}}),b?.progress,"%"]})}),e.jsx(dt,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:ie,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:i},"get-endpoint")]}),e.jsx(Ne,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:le,onConnect:Q,enableSwitchToSpace:b?.completed||q(b?.message),backupInProgress:K})]})}_e.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};function es({...t}){const{t:s}=D();return e.jsxs(S,{...t,children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:s("storage.spaces.backup.records")})}),e.jsx(Ae,{}),e.jsx(Oe,{})]})}function ts({...t}){const{t:s}=D(),{autoBackup:n,updateAutoBackup:o}=O(),r=async()=>{try{const a=!n?.enabled;await o({enabled:a}),B.success(s(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){B.error(a.message)}};return e.jsx(Ot,{checked:!!n?.enabled,onChange:r,name:"enableWelcomePage",labelProps:{label:e.jsx(j,{sx:{marginRight:"8px"},children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}function ss(){const{t}=D(),{spaceGateways:s,spaceGatewaysLoading:n,spaceGatewayIsSelected:o}=O(),r=n&&!s?.length,a=({spaceGateway:c,spaceStatus:i,selected:d,refresh:l})=>e.jsx(_e,{spaceGateway:c,spaceStatus:i,selected:d,onConnected:()=>l(),onBackedUp:p=>p&&l()});return e.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:{xs:1,md:2},justifyContent:{xs:"center",md:"flex-start"},alignItems:{xs:"flex-start",md:"center"}},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1},children:t("storage.spaces.connected.title")}),e.jsx(ts,{}),e.jsx(ve,{})]}),e.jsx(S,{sx:{mt:2},children:r?e.jsx(S,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(L,{})}):e.jsx(be,{container:!0,spacing:2,children:e.jsx(e.Fragment,{children:s.map(c=>e.jsx(be,{size:{xs:12,md:6},children:e.jsx(St,{endpoint:c.endpoint,selected:o(c),action:a},c.endpoint)},c.endpoint))})})}),e.jsx(es,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function os(){const{spaceGatewaysFirstLoading:t,spaceGateways:s}=O();return t?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):q(s)?e.jsx(Jt,{}):e.jsx(ss,{})}function ns(){return e.jsx(ze,{children:e.jsx(os,{})})}function as(){const{spaceGateway:t,settingStorageEndpoint:s,updateSpaceGateway:n,hasStorageEndpoint:o,loading:r,storageEndpoint:a}=bt(),c=xe(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"16px"}));return r?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):e.jsxs(S,{sx:{maxWidth:"md",position:"relative"},children:[o?e.jsx(kt,{spaceGateway:t,settingStorageEndpoint:s}):e.jsx(jt,{}),e.jsx(S,{sx:c,children:e.jsx(Ct,{onConnect:n,storageEndpoint:a})})]})}function rs(){const{t}=D();return e.jsxs(yt,{children:[e.jsxs(G,{spacing:1,sx:{marginBottom:2},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.appLevel.title")}),e.jsx(j,{sx:{color:"text.secondary"},children:t("storage.appLevel.description")})]}),e.jsx(as,{})]})}function is({navOrientation:t="vertical",...s}){const{t:n,locale:o}=D(),{blocklet:r}=U(),a=mt({key:"md"}),[c,i]=pt(),d=c.get("tab")||"backup",l=a?"horizontal":t,p=xe(()=>{const w=[{label:n("common.backup"),value:"backup"}],y=r?.capabilities?.didSpace;return(y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP)&&w.push({label:n("common.storage"),value:"storage"}),w},[o,l]),x=xe(()=>({backup:e.jsx(ns,{}),storage:e.jsx(rs,{})}))[d],m=w=>{i(y=>(w==="backup"?y.delete("tab"):y.set("tab",w),y))};if(p.length<=1)return e.jsx(me,{children:x});const k=e.jsx(ut,{tabs:p,current:d,orientation:l,onChange:m,sx:[{borderRight:1,height:"100%",borderColor:"divider"},l==="horizontal"&&{borderRight:0}]});if(l==="vertical")return e.jsx(S,{...s,children:e.jsxs(G,{direction:{md:"column",lg:"row"},sx:{gap:2},children:[e.jsx(S,{sx:{flexShrink:0},children:e.jsx(je,{left:k})}),e.jsx(S,{sx:{flexGrow:1,minWidth:0},children:e.jsx(me,{sx:{mt:1},children:x})})]})});if(l==="horizontal")return e.jsxs(S,{...s,children:[e.jsx(je,{left:k}),e.jsx(me,{sx:{mt:2},children:x})]})}is.propTypes={navOrientation:f.oneOf(["vertical","horizontal"])};const me=ee(S)`
1
+ import{c1 as Ge,c0 as Ke,r as h,c2 as Fe,j as e,b9 as ee,c4 as Ye,ch as J,c5 as $e,b_ as He,cj as qe,aG as he,O as q,bo as A,cw as Ce,H as B,_ as V,bg as E,fE as we,aR as Be,b as N,iX as Ve,V as D,gG as Qe,o as f,x as Xe,ay as De,y as fe,am as Ze,p as Je,C as L,T as j,k as et,s as tt,f as st,iY as X,i2 as Z,iZ as ot,K as S,aW as G,aI as T,L as nt,g as H,dn as at,Q as Se,X as F,aF as Y,aa as $,a6 as rt,bB as it,fv as ct,b0 as lt,v as pe,w as dt,G as be,I as Ee,bE as xe,B as pt}from"./index-CrQaw0BF.js";import{T as ut}from"./html-title-CifiMfjt.js";import{u as U}from"./blocklet-D4otp8nH.js";import{u as mt}from"./use-mobile-BGG1Yti5.js";import{c as Ie,d as ft,e as xt,f as gt,S as ht,g as ue,h as St,b as yt,u as bt,C as kt,D as jt,a as Ct}from"./connect-to-CbHwvZLx.js";import"./index-D93jIJAg.js";import"./index-BojVbZw0.js";import"./api-CSBvUv9A.js";import{d as wt,a as Bt,g as Dt,i as Et,e as ge,f as It,h as Tt,j as Rt}from"./spaces-DBXblECR.js";import{v as zt}from"./index-DAMZQWKn.js";import{E as vt}from"./index-DPs8sVol.js";import{H as Pt}from"./HelpOutline-D4ZrboH1.js";import{H as At}from"./index-CNVrqxCI.js";import{x as Lt}from"./index-DRYJ0xIl.js";import{D as Ut}from"./DeleteOutline-BiwjsR6p.js";import{g as ke}from"./get-safe-url-HOLWsAs0.js";import{S as Ot}from"./switch-control-Bzy_oqas.js";import{L as je}from"./list-header-D5a_5edu.js";import"./OpenInNew-CCra_7I0.js";import"./ButtonGroup-CiscHb2s.js";import"./getValidReactChildren-Ck9KmKnh.js";import"./FilterList-Be5ZzrNM.js";import"./CSSTransition-R4tGAk7r.js";import"./emotion-cache.browser.esm-DyzCXqsA.js";import"./index-DWm5KlVP.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BF3eoqLy.js";import"./TableSearch-BFj05c9C.js";import"./Search-BwAHZ5GK.js";import"./Clear-siFOH-um.js";import"./MoreVert-BOGr0n7e.js";function Mt(t){return Ge("MuiIcon",t)}Ke("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nt=t=>{const{color:s,fontSize:n,classes:o}=t,r={root:["root",s!=="inherit"&&`color${J(s)}`,`fontSize${J(n)}`]};return $e(r,Mt,o)},_t=ee("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.color!=="inherit"&&s[`color${J(n.color)}`],s[`fontSize${J(n.fontSize)}`]]}})(He(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:t.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:t.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(t.vars||t).palette.action.active}},{props:{color:"disabled"},style:{color:(t.vars||t).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(t.palette).filter(qe()).map(([s])=>({props:{color:s},style:{color:(t.vars||t).palette[s].main}}))]}))),ye=h.forwardRef(function(s,n){const o=Fe({props:s,name:"MuiIcon"}),{baseClassName:r="material-icons",className:a,color:c="inherit",component:i="span",fontSize:d="medium",...l}=o,p={...o,baseClassName:r,color:c,component:i,fontSize:d},u=Nt(p);return e.jsx(_t,{as:i,className:Ye(r,"notranslate",u.root,a),ownerState:p,"aria-hidden":!0,ref:n,...l})});ye.muiName="Icon";const Wt=he(e.jsx("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"})),Gt=he(e.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"})),Kt=he(e.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}));async function Ft({blockletDid:t,nodeApi:s,spaceGateways:n}){let o=!1;const r=await Promise.all(n.map(async a=>{let{name:c}=a;const i=await wt(a.endpoint);return!q(i)&&i!==c&&(c=i,o=!0),{...a,name:c}}));return o&&await Promise.all(r.filter(a=>a.did).map(a=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),r}function Yt({refresh:t}={}){const{blocklet:s}=U(),n=s?.meta?.did,{api:o}=A();return Ce(async()=>{if(!n)return[];const{spaceGateways:r}=await o.getBlockletSpaceGateways({input:{did:n}});return await Ft({blockletDid:n,nodeApi:o,spaceGateways:r})??[]},{refreshDeps:[n,t],onError(r){r?.message?.includes("not logged")?console.warn(r):(console.error(r),B.error(V(r)))}})}function Te({deps:t,setLoading:s,backupDate:n}={deps:[],setLoading:()=>{},backupDate:new Date}){const{blocklet:o}=U(),[r,a]=h.useState([]),{api:c}=A(),[i,d]=h.useMemo(()=>n?[E(n).startOf("day").toISOString(),E(n).endOf("day").toISOString()]:[E().startOf("year").toISOString(),E().endOf("day").toISOString()],[n]),l=we(async()=>{try{if(s(!0),!o){a([]);return}const{backups:p}=await c.getBlockletBackups({input:{did:o.meta.did,startTime:i,endTime:d}});a(p??[])}catch(p){console.error(p),B.error(V(p))}finally{s(!1)}},1e3);return Be(async()=>{l()},[o?.meta?.did].concat(t)),{backups:r}}function $t({appDid:t}){const{backups:s}=Te(),[n,o]=h.useState({message:"",progress:0,completed:!1}),r=A(),{ws:{useSubscription:a}}=r;return a(N.BlockletEvents.backupProgress,c=>{t===c?.appDid&&o(()=>({...c}))},[t]),h.useEffect(()=>{if(s?.length&&Ve(s[0]?.status)){const[c]=s;o(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[s]),n}function Ht({deps:t=[],setLoading:s=()=>{}}={}){const{blocklet:n}=U(),[o,r]=h.useState([]),{api:a}=A(),c=h.useCallback(we(async()=>{if(!a||!n?.meta?.did){r([]);return}try{s(!0);const i=E(),d=i.subtract(1,"year"),{summary:l}=await a.getBlockletBackupSummary({input:{did:n.meta.did,startTime:d.toISOString(),endTime:i.toISOString()}}),p=Array.isArray(l)?l.map(u=>({...u,successCount:+u.successCount,errorCount:+u.errorCount})):[];r(p)}catch(i){console.error("Failed to fetch backup summary:",i),B.error(V(i)),r([])}finally{s(!1)}},1e3),[]);return Be(async()=>(await c(),()=>{c.cancel()}),[n?.meta?.did].concat(t)),{backupSummary:o}}const Re=h.createContext({}),{Provider:qt,Consumer:_s}=Re;function ze({children:t}){const{t:s}=D(),{api:n}=A(),{blocklet:o}=U(),[r,a]=h.useState(null),[c,i]=h.useState(!1),{data:d,loading:l,mutate:p}=Yt({refresh:c}),u=Qe(d),x=$t({appDid:o?.appDid}),m=h.useMemo(()=>Bt(o?.environments),[o?.environments]),[k,w]=h.useState(!1),[y,b]=h.useState(0),{backups:te}=Te({deps:[y,r],setLoading:w,backupDate:r}),[se,oe]=h.useState(0),{backupSummary:ne}=Ht({deps:[se]}),[_,M]=h.useState(d?.find(g=>g.endpoint===m)),I=o?.settings?.autoBackup,z=()=>{i(g=>!g)},ae=()=>{oe(g=>g+1)},re=()=>{b(g=>g+1)},K=async g=>{await n.updateAutoBackup({input:{did:o.meta.did,autoBackup:g}})},Q=async()=>{await n.abortBlockletBackup({input:{appPid:o.meta.did}})},ie=async(g,P)=>{try{p(R=>{const v=[...R];return v.push({...g,loading:!0}),v}),await n.addBlockletSpaceGateway({input:{did:o.meta.did,spaceGateway:g}}),m!==P&&await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:P}]}}),M(g),z(),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"}))}catch(R){throw console.error(R),p(v=>[...v].filter(W=>W.did!==g.did)),R}},ce=async g=>{g&&(g.endpoint===m&&(await n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),I?.enabled&&await K({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:o.meta.did,spaceGatewayDid:g?.did}}),p(P=>{const R=[...P];return R.splice(R.indexOf(g),1),R}),M(g),z())},le=async g=>{await Promise.all([n.updateBlockletSpaceGateway({input:{did:o.meta.did,where:{did:g.did},spaceGateway:g}}),m!==g.endpoint&&n.configBlocklet({input:{did:[o.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:g.endpoint}]}})]),B.success(s("storage.spaces.connectedWithName",{name:g?.name??"DID Spaces"})),z()},C=g=>g?.endpoint===m;return e.jsx(qt,{value:{spaceGateways:d||[],selectedSpaceGateway:_,addSpaceGateway:ie,deleteSpaceGateway:ce,updateSpaceGateway:le,refreshSpaceGateways:z,spaceGatewaysLoading:l,spaceGatewaysFirstLoading:u,spaceGatewayIsSelected:C,updateAutoBackup:K,abortBlockletBackup:Q,backupEndpoint:m,backupProgress:x,backups:te,backupSummary:ne,refreshBackupSummary:ae,refreshBackups:re,setBackupDate:a,backupsLoading:k,autoBackup:I},children:t})}ze.propTypes={children:f.any.isRequired};function O(){return h.useContext(Re)}function ve({...t}){const{blocklet:s}=U(),{info:n}=A(),{t:o}=D(),r=Ie({blocklet:s}),a=Xe(n),{spaceGateways:c,addSpaceGateway:i}=O(),d={checkFn:De.create({baseURL:fe(window.location.origin,Ze())}).get,webWalletUrl:a,extraParams:{appPid:s.appPid,appDid:r.appDid,appName:r.appName,appDescription:r.appDescription,appUrl:r.appUrl,referrer:r.referrer,scopes:r.scopes,nodeDid:n.did}},l=async({endpoint:u,name:x,did:m})=>{const k=await Dt(u);if(!await Et(k)){B.error(o("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(b=>b.endpoint===u)){B.error(o("storage.spaces.gateway.add.duplicate",{name:x}));return}await i({name:x,did:m,url:k,endpoint:u},u)},p=async({spaceGateway:u})=>{try{await l(u)}catch(x){console.error(x),B.error(V(x))}};return e.jsx(ft,{...t,connectScope:"app",options:d,onSuccess:p})}function Vt(){const{api:t}=A(),{blocklet:s}=U(),{data:n,loading:o}=Ce(()=>t.getBlocklet({input:{did:s?.meta?.did,attachDiskInfo:!0,attachRuntimeInfo:!0}}),{ready:!!s?.meta?.did,refreshDeps:[s?.meta?.did]});return{blocklet:n?.blocklet??null,loading:o}}function Pe({...t}){const{t:s}=h.useContext(Je),{blocklet:n,loading:o}=Vt();if(n?.diskInfo){const r=(i,d,l)=>e.jsxs(j,{children:[i," ",e.jsx("strong",{children:d?et(d):"empty"})]}),a=n.environments.reduce((i,d)=>(i[d.key]=d.value,i),{}),c=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Qt,{component:"div",...t,children:c.map(i=>e.jsx(zt,{valueComponent:"div",nameWidth:120,name:i.name,children:i.value},i.key))})}return o?e.jsx(L,{}):e.jsx(j,{children:s("blocklet.diskInfo.empty")})}const Qt=tt(j)``;function Ae(){const{t}=D(),{setBackupDate:s,backupSummary:n}=O(),o=xt({key:"lg"}),r=h.useRef(null),a=st(),c=h.useCallback(l=>{s(l)},[s]),i=h.useMemo(()=>{const l=E().add(1,"day"),p=l.subtract(1,"year"),u=new Map(n.map(m=>[m.date,{date:m.date,successCount:m.successCount,errorCount:m.errorCount}])),x=[];for(let m=p.clone();E(m).isBefore(l);m=m.add(1,"day")){const k=m.format("YYYY-MM-DD");x.push(u.get(k)||{date:k,successCount:0,errorCount:0})}return x},[n]),d=h.useMemo(()=>({grid:{containLabel:!0,right:10,top:30,bottom:12},tooltip:{formatter:k=>{const{date:w,successCount:y,errorCount:b}=i[k.dataIndex]||{date:k.data[0],successCount:0,errorCount:0};return[`<div>${t("common.time")}: ${w}</div>`,`<div>${t("common.succeeded")}: ${y}</div>`,`<div>${t("common.failed")}: ${b}</div>`].join(`
2
+ `)},backgroundColor:a.palette.background.paper,borderColor:a.palette.divider,textStyle:{color:a.palette.text.primary,fontSize:14},extraCssText:`box-shadow: ${a.shadows[2]}; border-radius: 4px;`,padding:[8,10]},visualMap:{show:!1,min:-12,max:12,pieces:[{min:Number.MIN_SAFE_INTEGER,max:-9,color:X[600]},{min:-9,max:-6,color:X[500]},{min:-6,max:-3,color:X[400]},{min:-3,max:-1,color:X[300]},{min:0,max:0,color:a.palette.grey[200]},{min:1,max:3,color:Z[300]},{min:3,max:6,color:Z[400]},{min:6,max:9,color:Z[500]},{min:9,max:Number.MAX_SAFE_INTEGER,color:Z[600]}],orient:"horizontal",left:"center",bottom:12,itemWidth:12,itemHeight:12,textStyle:{color:a.palette.text.secondary,fontSize:12}},calendar:{top:30,left:50,right:10,bottom:4,cellSize:[8,8],splitLine:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,color:a.palette.background.default},dayLabel:{show:!0,firstDay:0,nameMap:["","Mon","","Wed","","Fri",""],position:"start",margin:4,fontSize:10,color:a.palette.text.primary,fontWeight:"400",width:20},monthLabel:{show:!0,nameMap:"cn",align:"left",color:a.palette.text.primary,fontWeight:"400",fontSize:12,position:"start",margin:4,width:30,padding:[0,2]},yearLabel:{show:!1},range:[E().subtract(11,"month").startOf("month").format("YYYY-MM-DD"),E().endOf("month").format("YYYY-MM-DD")],orient:"horizontal"},series:{type:"heatmap",coordinateSystem:"calendar",data:i.map(k=>[k.date,k.errorCount?-k.errorCount:k.successCount]),label:{show:!1},itemStyle:{borderWidth:2,borderColor:a.palette.background.default,borderRadius:4},emphasis:{itemStyle:{borderWidth:2,borderColor:ot[200],color:"inherit"}}}}),[i,t,a]);return e.jsxs(e.Fragment,{children:[e.jsx(S,{ref:r,sx:{maxWidth:"1280px",border:"1px solid",borderColor:"divider",padding:"8px",overflowX:"auto"},children:e.jsx(S,{sx:{width:"1200px",height:"180px",position:"relative"},children:e.jsx(vt,{option:d,style:{height:"100%",width:"100%"},notMerge:!0,lazyUpdate:!1,opts:{renderer:"canvas"},onEvents:{click:l=>{l.componentType==="series"&&l.data&&c(l.data[0])}}})})}),e.jsx(S,{sx:{display:"flex",justifyContent:"flex-end",mt:1,mr:o?2:5,mb:2},children:e.jsxs(G,{direction:o?"column":"row",spacing:o?2:1,sx:{width:"100%",justifyContent:"flex-start",alignItems:o?"flex-start":"center"},children:[e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #8B5000 0%, #A36200 33%, #C17700 66%, #E29000 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.failed")})]}),e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,bgcolor:"grey.200",border:"1px solid",borderColor:"grey.200"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.without")})]}),e.jsxs(G,{direction:"row",spacing:1,sx:{alignItems:"center"},children:[e.jsx(S,{sx:{width:32,height:12,borderRadius:.5,background:"linear-gradient(90deg, #9be9a8 0%, #40c463 33%, #30a14e 66%, #216e39 100%)"}}),e.jsx(j,{variant:"body2",sx:{color:"text.secondary"},children:t("storage.spaces.backup.succeeded")})]})]})})]})}const Xt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function Le({status:t,message:s="",createdAt:n}){const{t:o}=D(),r=t===T.BACKUPS.STATUS.PROGRESS&&E().diff(n,"hours")>=T.BACKUPS.TIMEOUT_HOURS,a=r&&o("common.timeoutError"),c=t===T.BACKUPS.STATUS.PROGRESS&&!r,i=t===T.BACKUPS.STATUS.SUCCEEDED&&!r;return c?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):i?e.jsx(H,{type:"success",children:o("common.succeeded")}):e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"error",children:o("common.failed")}),e.jsx(Se,{style:{display:"flex",alignItems:"center",flexShrink:0},title:s||a,children:e.jsx(ye,{children:e.jsx(Pt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}Le.propTypes={status:f.string.isRequired,message:f.string,createdAt:f.string.isRequired};function Ue({metadata:t={}}){const{t:s}=D();if(q(t))return e.jsx(H,{type:"success",children:s("common.succeeded")});const n=t.count||0,o=t.size||0,r=Lt(o,{iec:!0}),a=e.jsxs(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:[e.jsxs(j,{variant:"body2",children:[s("common.fileCount"),": ",n]}),e.jsxs(j,{variant:"body2",children:[s("common.fileSize"),": ",r]})]});return e.jsxs(S,{sx:{display:"inline-flex",alignItems:"center"},children:[e.jsx(H,{type:"success",children:s("common.succeeded")}),e.jsx(Xt,{title:a,style:{display:"flex",alignItems:"center",flexShrink:0},placement:"left",children:e.jsx(ye,{children:e.jsx(at,{style:{width:"24px",height:"24px"},color:"primary"})})})]})}Ue.propTypes={metadata:f.object};function Oe(){const{t,locale:s}=D(),{spaceGateways:n,backups:o,backupsLoading:r}=O(),a=h.useMemo(()=>[{label:"DID Space",name:"target",options:{customBodyRenderLite:i=>{const{targetUrl:d,targetName:l,status:p,createdAt:u}=o[i],x=p===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,m=p===T.BACKUPS.STATUS.SUCCEEDED&&!x,k=l||n.find(w=>d?.includes(ge(w?.endpoint)))?.name||"Unknown DID Space";return m?e.jsx(nt,{href:d,target:"_blank",sx:{fontSize:"16px"},children:k}):e.jsx(j,{variant:"body1",sx:{fontSize:"16px"},children:k})}}},{label:t("common.strategy"),name:"strategy",options:{customBodyRender:i=>{const d=t(i===0?"common.auto":"common.manual");return e.jsx(H,{children:d})}}},{label:t("common.startTime"),name:"createdAt",options:{customBodyRender:i=>E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.endTime"),name:"updatedAt",options:{customBodyRender:i=>q(i)?"":E(i).format("YYYY-MM-DD HH:mm:ss")}},{label:t("common.status"),name:"status",options:{customBodyRenderLite:i=>{const d=o?.[i]??{},{status:l,message:p,createdAt:u,metadata:x}=d,m=l===T.BACKUPS.STATUS.PROGRESS&&E().diff(u,"hours")>=T.BACKUPS.TIMEOUT_HOURS,k=l===T.BACKUPS.STATUS.PROGRESS&&!m,w=l===T.BACKUPS.STATUS.SUCCEEDED&&!m;return k?e.jsxs(j,{sx:{display:"inline-flex",alignItems:"center",fontSize:"14px"},children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),t("common.progress")]}):w?e.jsx(Ue,{metadata:x}):e.jsx(Le,{status:l,message:p,createdAt:u})}}}],[o,n,t]),c=h.useMemo(()=>!o?.length,[o]);return e.jsx(e.Fragment,{children:c?e.jsx(S,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100px",color:"#9397A1",marginTop:"16px",marginBottom:"24px"},children:t("storage.spaces.record.emptyData")}):e.jsx(At,{title:"",loading:r,data:o,columns:a,emptyNode:t("storage.spaces.record.emptyData",s),options:{download:!1,filter:!1,print:!1,search:!1,viewColumns:!1}})})}function Zt(){const{t}=D();return e.jsxs(S,{children:[e.jsxs(S,{sx:{display:"flex",gap:3,flexDirection:{xs:"column",md:"row"}},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",minWidth:240},children:[e.jsx(gt,{style:{cursor:"pointer",width:"150px",height:"100%",maxHeight:160}}),e.jsx(j,{sx:{my:2,textAlign:"center",color:"text.secondary"},children:t("storage.spaces.connect.provider")}),e.jsx(ve,{})]}),e.jsxs(S,{sx:{flexGrow:1,minWidth:0},children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.spaces.backup.records")})}),e.jsx(Ae,{})]})]}),e.jsx(Oe,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2,mt:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function Me({spaceGateway:t,onConfirm:s=()=>{},onCancel:n=()=>{}}){const{t:o}=D(),[r,a]=h.useState(!1),[c,i]=h.useState(!1),d=(u,x)=>{u?.preventDefault(),u?.stopPropagation(),a(x)},l=async u=>{try{u?.stopPropagation(),i(!0),await s?.(t),a(!1)}catch(x){console.error(x),B.error(`${o("storage.space.gateway.delete.failed")}: ${V(x)}`)}finally{a(!1),i(!1)}},p=u=>{d(u,!1),n?.(u)};return e.jsxs(e.Fragment,{children:[e.jsxs(F,{color:"red",onClick:u=>d(u,!0),children:[e.jsx(Y,{style:{minWidth:24,color:"red"},children:e.jsx(Ut,{fontSize:"small"})}),e.jsx($,{style:{color:"red"},children:o("common.disconnect")})]}),e.jsx(rt,{title:o("storage.spaces.gateway.delete.title"),open:r,confirmButton:{text:o("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:c}},cancelButton:{text:o("common.cancel"),props:{size:"small",variant:"outlined",disabled:c}},onConfirm:l,onCancel:p,children:e.jsx(j,{sx:{wordWrap:"break-word"},children:o("storage.spaces.gateway.delete.descForBackup",{name:`${t?.name}`})})})]})}Me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};function Ne({spaceGateway:t,selected:s,onDelete:n=()=>{},onConnect:o=()=>{},enableSwitchToSpace:r=!0,backupInProgress:a=!1,...c}){const{abortBlockletBackup:i}=O(),[d,l]=h.useState(null),{t:p}=D(),[u,x]=h.useState(!1),m=(y,b)=>{y.stopPropagation(),y.preventDefault(),l(b&&y.currentTarget)},k=async y=>{try{x(!0),m(y,!1),await o(t)}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}},w=async y=>{try{x(!0),m(y,!1),await i()}catch(b){console.error(b),B.error(b.message)}finally{x(!1)}};return e.jsxs(e.Fragment,{children:[u||t?.loading?e.jsx(L,{sx:{ml:1},size:"24px"}):e.jsx(it,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:y=>m(y,!0),...c,children:e.jsx(ct,{})}),e.jsxs(lt,{id:"simple-menu",anchorEl:d,keepMounted:!0,open:!!d,onClose:y=>m(y,!1),children:[e.jsxs(F,{onClick:y=>{m(y,!1),window.open(ke(t.endpoint?It(t.endpoint):t.url,{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Wt,{fontSize:"small"})}),e.jsx($,{children:p("common.open")})]}),e.jsxs(F,{onClick:y=>{m(y,!1),window.open(ke(Tt(t.endpoint),{allowDomains:null}))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Kt,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&r&&e.jsxs(F,{onClick:k,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Gt,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.switchToSpace")})]}),a&&e.jsxs(F,{onClick:w,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(ht,{fontSize:"small"})}),e.jsx($,{children:p("storage.spaces.connect.abortBlockletBackup")})]}),!a&&e.jsx(Me,{spaceGateway:t,onConfirm:async()=>{l(null),await n?.(t)},onCancel:()=>l(null)})]})]})}Ne.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};const Jt=ee(({className:t,...s})=>e.jsx(Se,{...s,classes:{popper:t}}))(()=>({".MuiTooltip-tooltip":{backgroundColor:"transparent",padding:0,margin:0,boxShadow:"none",maxWidth:"none"},".MuiTooltip-arrow":{color:"rgba(230, 235, 245, 1)"}}));function _e({spaceGateway:t,spaceStatus:s,selected:n,onConnected:o=()=>{},onDeleted:r=()=>{},onBackedUp:a=()=>{}}){const{t:c,locale:i}=D(),{blocklet:d}=U(),{api:l,info:{did:p}}=A(),{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y}=Ie({blocklet:d}),{backupProgress:b,updateSpaceGateway:te,deleteSpaceGateway:se,refreshBackupSummary:oe,refreshBackups:ne}=O(),[_,M]=h.useState(!1),[I,z]=h.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:c("storage.spaces.authorize.title",{appName:x},i),scan:c("storage.spaces.authorize.scan",{appName:x},i),confirm:"",success:e.jsx(j,{gutterBottom:!0,children:c("storage.spaces.authorize.success")})},onClose:()=>{z(C=>({...C,open:!1}))}}),ae=n&&!_&&s===ue.DISCONNECTED,re=n&&!_&&!t.loading&&s===ue.CONNECTED,K=n&&_&&s===ue.CONNECTED&&b?.progress>=0,Q=async()=>{try{if(await Rt(t?.endpoint)){await l.configBlocklet({input:{did:[d.meta.did],configs:[{key:N.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),B.success(c("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),o?.(null,t);return}}catch(C){console.error(C),o?.(C,t);return}z(C=>({...C,open:!0,prefix:fe(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:De.create({baseURL:fe(t.url,"space")}).get,extraParams:{appDid:u,appName:x,appDescription:m,scopes:k,appUrl:w,referrer:y,nodeDid:p,spaceDid:t.did}}))},ie=async(C,g)=>{const P=g(C.endpoint),R=ge(P),v=C.space?g(C.space):{};if(t.did&&R!==t.did){z(We=>({...We,open:!1}));const W=c("storage.spaces.gateway.switch.failedForMismatchSpace",{name:v?.name?v.name:""});B.error(W),o?.(new Error(W),t);return}const de={...t,name:v.name??"DID Space",did:v.did??ge(P),endpoint:P};await te(de),z(W=>({...W,open:!1})),o?.(null,de)},ce=async()=>{try{if(_)return;M(!0),await l.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(C){console.error(C),B.error(C.message),a?.(C,t)}finally{M(!0)}},le=async()=>{try{await se(t),B.success(c("storage.spaces.gateway.delete.succeeded",{name:t.name?`(${t.name})`:""})),r?.(null,t)}catch(C){console.error(C),r?.(C,t)}};return h.useEffect(()=>{b?.completed?(n&&(b?.progress===100?(B.success(c("storage.spaces.backupSuccessfully")),a?.(null,t)):b.message&&a?.(new Error(b?.message),t),b.progress=0,b.message=""),M(!1),oe(),ne()):b.progress&&M(!0)},[b]),e.jsxs(e.Fragment,{children:[e.jsxs(S,{sx:{display:"flex",alignItems:"center",".action-btn":{borderRadius:1,marginLeft:1}},children:[re&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:ce,children:c("storage.spaces.strategy.backupNow")}),ae&&e.jsx(pe,{className:"action-btn",variant:"outlined",size:"small",onClick:Q,children:c("storage.spaces.disconnected.reconnectNow")}),K&&e.jsx(Jt,{title:b?.message&&e.jsx(S,{sx:{p:1,borderRadius:1,boxShadow:2,color:"black",backgroundColor:"white"},children:e.jsx(j,{variant:"body2",children:b.message})}),children:e.jsxs(pe,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:b?.progress,size:14,sx:{mr:1}}),b?.progress,"%"]})}),e.jsx(dt,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:ie,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:i},"get-endpoint")]}),e.jsx(Ne,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:le,onConnect:Q,enableSwitchToSpace:b?.completed||q(b?.message),backupInProgress:K})]})}_e.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};function es({...t}){const{t:s}=D();return e.jsxs(S,{...t,children:[e.jsx(S,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:s("storage.spaces.backup.records")})}),e.jsx(Ae,{}),e.jsx(Oe,{})]})}function ts({...t}){const{t:s}=D(),{autoBackup:n,updateAutoBackup:o}=O(),r=async()=>{try{const a=!n?.enabled;await o({enabled:a}),B.success(s(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){B.error(a.message)}};return e.jsx(Ot,{checked:!!n?.enabled,onChange:r,name:"enableWelcomePage",labelProps:{label:e.jsx(j,{sx:{marginRight:"8px"},children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}function ss(){const{t}=D(),{spaceGateways:s,spaceGatewaysLoading:n,spaceGatewayIsSelected:o}=O(),r=n&&!s?.length,a=({spaceGateway:c,spaceStatus:i,selected:d,refresh:l})=>e.jsx(_e,{spaceGateway:c,spaceStatus:i,selected:d,onConnected:()=>l(),onBackedUp:p=>p&&l()});return e.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxs(S,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},gap:{xs:1,md:2},justifyContent:{xs:"center",md:"flex-start"},alignItems:{xs:"flex-start",md:"center"}},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1},children:t("storage.spaces.connected.title")}),e.jsx(ts,{}),e.jsx(ve,{})]}),e.jsx(S,{sx:{mt:2},children:r?e.jsx(S,{sx:{display:"flex",justifyContent:"center"},children:e.jsx(L,{})}):e.jsx(be,{container:!0,spacing:2,children:e.jsx(e.Fragment,{children:s.map(c=>e.jsx(be,{size:{xs:12,md:6},children:e.jsx(St,{endpoint:c.endpoint,selected:o(c),action:a},c.endpoint)},c.endpoint))})})}),e.jsx(es,{sx:{marginTop:"24px"}}),e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold",mb:2},children:t("common.dataStorage")}),e.jsx(Pe,{})]})}function os(){const{spaceGatewaysFirstLoading:t,spaceGateways:s}=O();return t?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):q(s)?e.jsx(Zt,{}):e.jsx(ss,{})}function ns(){return e.jsx(ze,{children:e.jsx(os,{})})}function as(){const{spaceGateway:t,settingStorageEndpoint:s,updateSpaceGateway:n,hasStorageEndpoint:o,loading:r,storageEndpoint:a}=bt(),c=xe(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"16px"}));return r?e.jsx(Ee,{relative:"parent",children:e.jsx(L,{})}):e.jsxs(S,{sx:{maxWidth:"md",position:"relative"},children:[o?e.jsx(kt,{spaceGateway:t,settingStorageEndpoint:s}):e.jsx(jt,{}),e.jsx(S,{sx:c,children:e.jsx(Ct,{onConnect:n,storageEndpoint:a})})]})}function rs(){const{t}=D();return e.jsxs(yt,{children:[e.jsxs(G,{spacing:1,sx:{marginBottom:2},children:[e.jsx(j,{sx:{fontSize:"1.2rem",fontWeight:"bold"},children:t("storage.appLevel.title")}),e.jsx(j,{sx:{color:"text.secondary"},children:t("storage.appLevel.description")})]}),e.jsx(as,{})]})}function is({navOrientation:t="vertical",...s}){const{t:n,locale:o}=D(),{blocklet:r}=U(),a=mt({key:"md"}),[c,i]=pt(),d=c.get("tab")||"backup",l=a?"horizontal":t,p=xe(()=>{const w=[{label:n("common.backup"),value:"backup"}],y=r?.capabilities?.didSpace;return(y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||y===N.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP)&&w.push({label:n("common.storage"),value:"storage"}),w},[o,l]),x=xe(()=>({backup:e.jsx(ns,{}),storage:e.jsx(rs,{})}))[d],m=w=>{i(y=>(w==="backup"?y.delete("tab"):y.set("tab",w),y))};if(p.length<=1)return e.jsx(me,{children:x});const k=e.jsx(ut,{tabs:p,current:d,orientation:l,onChange:m,sx:[{borderRight:1,height:"100%",borderColor:"divider"},l==="horizontal"&&{borderRight:0}]});if(l==="vertical")return e.jsx(S,{...s,children:e.jsxs(G,{direction:{md:"column",lg:"row"},sx:{gap:2},children:[e.jsx(S,{sx:{flexShrink:0},children:e.jsx(je,{left:k})}),e.jsx(S,{sx:{flexGrow:1,minWidth:0},children:e.jsx(me,{sx:{mt:1},children:x})})]})});if(l==="horizontal")return e.jsxs(S,{...s,children:[e.jsx(je,{left:k}),e.jsx(me,{sx:{mt:2},children:x})]})}is.propTypes={navOrientation:f.oneOf(["vertical","horizontal"])};const me=ee(S)`
3
3
  position: relative;
4
4
  min-height: 66vh;
5
5
  overflow: hidden;
@@ -1,4 +1,4 @@
1
- import{r as P,fL as fl,c6 as _o,fM as dl,fu as Mo,fN as pl,cX as Lo,aF as ur,j as i,fO as ml,fP as hl,aT as Et,fQ as or,eA as Je,fR as Js,fS as gl,fT as bl,fU as yl,fV as xl,fW as vl,fX as ei,fY as wl,fZ as to,f_ as Cl,f$ as Sl,g0 as jl,g1 as Tl,eB as ro,g2 as ti,eC as El,cJ as qn,eD as kl,dG as Il,g3 as Pl,g4 as Rl,V as Ee,bo as Be,aP as ut,g5 as ri,H as Me,X as Ue,o as b,f as no,eP as ni,f6 as oi,n as xt,J as U,bZ as Dl,dM as Al,bz as Ol,av as ft,g6 as si,S as jr,bl as Tr,g7 as ii,a$ as _l,$ as et,t as lt,b2 as Ml,bB as qe,aV as Nt,E as oo,ff as Ll,g8 as Nl,g9 as Fl,ga as Bl,D as Lr,T as Pe,bh as so,a4 as rr,Z as Nr,gb as Ul,U as Tt,c0 as Vt,c1 as zt,cl as ai,dP as rt,e$ as ce,c3 as ql,b9 as _e,df as Er,d9 as li,c4 as dt,c5 as Rt,Q as It,dL as ci,dc as $l,gc as Fr,gd as ui,bE as it,bg as Ve,O as sr,bq as fi,P as $n,at as di,dI as Vl,ge as kr,bt as zl,au as ir,v as ze,C as bt,gf as Wl,h as Vn,aX as Kl,w as Hl,x as Yl,s as He,p as fr,ad as dr,bF as Bt,gg as Gl,dH as Zl,dp as Xl,aH as gt,N as yt,dz as Ql,gh as Jl,eE as ec,gi as pi,gj as Ir,gk as tc,dJ as ar,cP as No,W as io,dK as rc,cw as mi,z as nc,bv as ao,bw as hi,bx as lo,dr as hr,b as Ie,aD as oc,fK as gi,gl as bi,M as lr,aS as sc,gm as yi,aE as ic,a9 as ac,gn as lc,c$ as xi,go as cc,bA as Fo,y as uc,gp as fc,bH as dc,R as pc,K as mc}from"./index-DtJVzdtH.js";import{A as Ut}from"./Add-DBDPvM2L.js";import{V as hc}from"./ViewList-Ceb1JHIv.js";import{c as gc,H as co,g as bc}from"./index-IWOqJkOB.js";import{v as Bo}from"./index-CypG4Dbq.js";import{u as Ye}from"./team-DKJfzzKD.js";import{u as vi}from"./blocklet-Nw4kpsVs.js";import{S as wi}from"./Search-CApGhXwm.js";import{u as yc,C as Zt}from"./index.esm-Zck39Kvz.js";import{S as xc}from"./Google-DZPfsfDE.js";import{A as vc,a as gr}from"./Autocomplete-6CVDh-bw.js";import{U as wc}from"./UnfoldMore-D2Y42T3n.js";import{P as Pt}from"./permission-DTFazP7s.js";import{C as Br}from"./click-to-copy-DjkhfhsV.js";import{s as vt,g as Cc,S as Sc,u as mt,a as Ci,b as pr,c as Si,d as Ur,e as ji,f as uo,P as Ti,D as Ei,h as Pr,M as tr,i as ki,j as Uo,k as nr,v as jc,l as Tc,m as qo,n as Ec,o as kc,p as Ic,q as Pc,C as Rc,r as Dc,t as Rr,w as Lt,x as Dr,y as $o,z as Vo,A as Ac,T as Oc,B as fo,E as _c,F as Mc,G as Lc,H as Nc,I as Fc,J as Bc,K as Uc,L as br,N as Ft,O as Ii,Q as qc,V as zn,R as Pi,U as $c,W as zo,X as Vc,Y as zc,Z as Wc,_ as Kc,$ as Hc,a0 as Yc}from"./AdapterDayjs-BBi3P2IC.js";import{u as nt}from"./useThemeProps-Cw6i_sME.js";import{a as Wo,b as Gc,t as Zc,T as Xc}from"./html-title-D3mv3IQk.js";import{v as Ge}from"./index-jT3H-jhB.js";import{V as Qc}from"./Verified-QiB22jgm.js";import{D as Jc}from"./DeleteOutline-CDxyWfLx.js";import{E as Ko}from"./ErrorOutline-By74cLGJ.js";import{N as eu}from"./index-z-tbDeE3.js";import{R as Ri,a as Sr}from"./url-evaluation-Cf4MPEtF.js";import{b as Wn}from"./sdk-CXClyXm7.js";import{u as tu}from"./index-DdYx-VNK.js";import{u as Di}from"./use-mobile-BnTDQjTV.js";import{D as ru}from"./Delete-DVp4fJb1.js";import{A as nu}from"./actions-Dp-VL6XB.js";import{S as ou}from"./shorten-label-BR48Ofqe.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const su=gc(P.useLayoutEffect);var Ho={},Yo;function iu(){return Yo||(Yo=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,y=e(p);y;)p=y.ownerDocument,y=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=S(d.rootBounds),this.boundingClientRect=S(d.boundingClientRect),this.intersectionRect=S(d.intersectionRect||w()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,y=p.width*p.height,T=this.intersectionRect,C=T.width*T.height;y?this.intersectionRatio=Number((C/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var y=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=w():o=j(d,p),r.forEach(function(y){y._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(y){return y.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(y,T,C){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==C[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(T){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var y=this._checkForIntersections,T=null,C=null;this.POLL_INTERVAL?T=p.setInterval(y,this.POLL_INTERVAL):(u(p,"resize",y,!0),u(d,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(C=new p.MutationObserver(y),C.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=E){var k=e(d);k&&this._monitorIntersections(k.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(k){var D=k.element.ownerDocument;if(D==d)return!0;for(;D&&D!=y;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var E=e(d);E&&this._unmonitorIntersections(E.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():w();this._observationTargets.forEach(function(y){var T=y.element,C=v(T),E=this._rootContainsTarget(T),k=y.entry,D=d&&E&&this._computeTargetAndRootIntersection(T,C,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:T,boundingClientRect:C,rootBounds:N,intersectionRect:D});k?d&&E?this._hasCrossedThreshold(k,B)&&this._queuedEntries.push(B):k&&k.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,y){if(window.getComputedStyle(d).display!="none"){for(var T=p,C=m(d),E=!1;!E&&C;){var k=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(E=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,k=null,T=null):k=o:k=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,k=j(B,W)):(C=null,T=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(k=v(C))}if(k&&(T=h(k,T)),!T)break;C=C&&m(C)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!g(this.root))d=v(this.root);else{var p=g(this.root)?this.root:t,y=p.documentElement,T=p.body;d={top:0,left:0,right:y.clientWidth||T.clientWidth,width:y.clientWidth||T.clientWidth,bottom:y.clientHeight||T.clientHeight,height:y.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,C){return T.unit=="px"?T.value:T.value*(C%2?d.width:d.height)/100}),y={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return y.width=y.right-y.left,y.height=y.bottom-y.top,y},s.prototype._hasCrossedThreshold=function(d,p){var y=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==T)for(var C=0;C<this.thresholds.length;C++){var E=this.thresholds[C];if(E==y||E==T||E<y!=E<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return x(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(d,p){var y=null;return function(){y||(y=setTimeout(function(){d(),y=null},p))}}function u(d,p,y,T){typeof d.addEventListener=="function"?d.addEventListener(p,y,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),E=Math.min(d.right,p.right),k=E-C,D=T-y;return k>=0&&D>=0&&{top:y,bottom:T,left:C,right:E,width:k,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function S(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function j(d,p){var y=p.top-d.top,T=p.left-d.left;return{top:y,left:T,height:p.height,width:p.width,bottom:y+p.height,right:T+p.width}}function x(d,p){for(var y=p;y;){if(y==d)return!0;y=m(y)}return!1}function m(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function g(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Ho}iu();function au(e,t){var r={},n=r.callback,o=fl(r,["callback"]),c=_o(P.useState(),2),s=c[0],l=c[1],a=_o(P.useState(),2),u=a[0],f=a[1];return dl(function(){var h=Array.isArray(e)?e:[e],v=h.map(function(S){return Mo(S)}).filter(Boolean);if(v.length){var w=new IntersectionObserver(function(S){var j,x;try{for(var m=pl(S),g=m.next();!g.done;g=m.next()){var d=g.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){j={error:p}}finally{try{g&&!g.done&&(x=m.return)&&x.call(m)}finally{if(j)throw j.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return v.forEach(function(S){return w.observe(S)}),function(){w.disconnect()}}},[void 0,void 0,n],e),[s,u]}const lu=ur(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),cu=ur(i.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),qr=ur([i.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),i.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),uu=ur(i.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),fu=ur(i.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Ai=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),P.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Oi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),_i=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),du=e=>P.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0)"},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0"},P.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Mi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Zr={},Xr,Go;function pu(){return Go||(Go=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Zo;function mu(){if(Zo)return Qr;Zo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var a=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],a=1;a<l.length;a++)s=n(l,a).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(s);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),h=0;h<f.length;h++){var v=f[h];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Qr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Qr}var Jr,Xo;function hu(){return Xo||(Xo=1,Jr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Jr}var en,Qo;function gu(){return Qo||(Qo=1,en=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),en}var Jo;function bu(){return Jo||(Jo=1,function(e){const t=pu(),r=mu(),n=hu(),o=gu(),c=m=>m==null;function s(m){switch(m.arrayFormat){case"index":return g=>(d,p)=>{const y=d.length;return p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[",y,"]"].join("")]:[...d,[u(g,m),"[",u(y,m),"]=",u(p,m)].join("")]};case"bracket":return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[]"].join("")]:[...d,[u(g,m),"[]=",u(p,m)].join("")];case"comma":case"separator":return g=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(g,m),"=",u(p,m)].join("")]:[[d,u(p,m)].join(m.arrayFormatSeparator)];default:return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,u(g,m)]:[...d,[u(g,m),"=",u(p,m)].join("")]}}function l(m){let g;switch(m.arrayFormat){case"index":return(d,p,y)=>{if(g=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!g){y[d]=p;return}y[d]===void 0&&(y[d]={}),y[d][g[1]]=p};case"bracket":return(d,p,y)=>{if(g=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!g){y[d]=p;return}if(y[d]===void 0){y[d]=[p];return}y[d]=[].concat(y[d],p)};case"comma":case"separator":return(d,p,y)=>{const T=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!T&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const E=T||C?p.split(m.arrayFormatSeparator).map(k=>f(k,m)):p===null?p:f(p,m);y[d]=E};default:return(d,p,y)=>{if(y[d]===void 0){y[d]=p;return}y[d]=[].concat(y[d],p)}}}function a(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(m,g){return g.encode?g.strict?t(m):encodeURIComponent(m):m}function f(m,g){return g.decode?r(m):m}function h(m){return Array.isArray(m)?m.sort():typeof m=="object"?h(Object.keys(m)).sort((g,d)=>Number(g)-Number(d)).map(g=>m[g]):m}function v(m){const g=m.indexOf("#");return g!==-1&&(m=m.slice(0,g)),m}function w(m){let g="";const d=m.indexOf("#");return d!==-1&&(g=m.slice(d)),g}function S(m){m=v(m);const g=m.indexOf("?");return g===-1?"":m.slice(g+1)}function j(m,g){return g.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):g.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),a(g.arrayFormatSeparator);const d=l(g),p=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return p;for(const y of m.split("&")){if(y==="")continue;let[T,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(T,g),C,p)}for(const y of Object.keys(p)){const T=p[y];if(typeof T=="object"&&T!==null)for(const C of Object.keys(T))T[C]=j(T[C],g);else p[y]=j(T,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,T)=>{const C=p[T];return C&&typeof C=="object"&&!Array.isArray(C)?y[T]=h(C):y[T]=C,y},Object.create(null))}e.extract=S,e.parse=x,e.stringify=(m,g)=>{if(!m)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),a(g.arrayFormatSeparator);const d=C=>g.skipNull&&c(m[C])||g.skipEmptyString&&m[C]==="",p=s(g),y={};for(const C of Object.keys(m))d(C)||(y[C]=m[C]);const T=Object.keys(y);return g.sort!==!1&&T.sort(g.sort),T.map(C=>{const E=m[C];return E===void 0?"":E===null?u(C,g):Array.isArray(E)?E.reduce(p(C),[]).join("&"):u(C,g)+"="+u(E,g)}).filter(C=>C.length>0).join("&")},e.parseUrl=(m,g)=>{g=Object.assign({decode:!0},g);const[d,p]=n(m,"#");return Object.assign({url:d.split("?")[0]||"",query:x(S(m),g)},g&&g.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,g)}:{})},e.stringifyUrl=(m,g)=>{g=Object.assign({encode:!0,strict:!0},g);const d=v(m.url).split("?")[0]||"",p=e.extract(m.url),y=e.parse(p,{sort:!1}),T=Object.assign(y,m.query);let C=e.stringify(T,g);C&&(C=`?${C}`);let E=w(m.url);return m.fragmentIdentifier&&(E=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${E}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:T}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:T},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,T)=>!g(y,T);return e.pick(m,p,d)}}(Zr)),Zr}var tn=bu();const Xt=ml,yu={parseNumbers:!1,parseBooleans:!1},xu={skipNull:!1,skipEmptyString:!1},vu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},yu),c),a=Object.assign(Object.assign({},xu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),h=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=hl(),w=P.useRef(typeof e=="function"?e():e||{}),S=P.useMemo(()=>tn.parse(u.search,l),[u.search]),j=P.useMemo(()=>Object.assign(Object.assign({},w.current),S),[S]);return[j,Et(m=>{const g=typeof m=="function"?m(j):m;v(),f&&f[o]({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},u.state),h&&h({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},rn={exports:{}},nn={},es;function Li(){if(es)return nn;es=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(g)}function t(g,d,p){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,d){if(!(g instanceof d))throw new TypeError("Cannot call a class as a function")}function n(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(d&&d.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),d&&o(g,d)}function o(g,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,T){return y.__proto__=T,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),T;if(d){var C=u(this).constructor;T=Reflect.construct(y,arguments,C)}else T=y.apply(this,arguments);return s(this,T)}}function s(g,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(g)}var f={},h,v;function w(g,d,p){p||(p=Error);function y(C,E,k){return typeof d=="string"?d:d(C,E,k)}var T=function(C){n(k,C);var E=c(k);function k(D,N,B){var W;return r(this,k),W=E.call(this,y(D,N,B)),W.code=g,W}return t(k)}(p);f[g]=T}function S(g,d){if(Array.isArray(g)){var p=g.length;return g=g.map(function(y){return String(y)}),p>2?"one of ".concat(d," ").concat(g.slice(0,p-1).join(", "),", or ")+g[p-1]:p===2?"one of ".concat(d," ").concat(g[0]," or ").concat(g[1]):"of ".concat(d," ").concat(g[0])}else return"of ".concat(d," ").concat(String(g))}function j(g,d,p){return g.substr(0,d.length)===d}function x(g,d,p){return(p===void 0||p>g.length)&&(p=g.length),g.substring(p-d.length,p)===d}function m(g,d,p){return typeof p!="number"&&(p=0),p+d.length>g.length?!1:g.indexOf(d,p)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(g,d,p){h===void 0&&(h=Kn()),h(typeof g=="string","'name' must be a string");var y;typeof d=="string"&&j(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var T;if(x(g," argument"))T="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";T='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),w("ERR_INVALID_ARG_VALUE",function(g,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var y=v.inspect(d);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(p,". Received ").concat(y)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(g,d,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(g,' to be returned from the "').concat(d,'"')+" function but got ".concat(y,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var g=arguments.length,d=new Array(g),p=0;p<g;p++)d[p]=arguments[p];h===void 0&&(h=Kn()),h(d.length>0,"At least one arg needs to be specified");var y="The ",T=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),T){case 1:y+="".concat(d[0]," argument");break;case 2:y+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:y+=d.slice(0,T-1).join(", "),y+=", and ".concat(d[T-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,ts;function wu(){if(ts)return on;ts=1;function e(_,F){var G=Object.keys(_);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(_);F&&(H=H.filter(function(Q){return Object.getOwnPropertyDescriptor(_,Q).enumerable})),G.push.apply(G,H)}return G}function t(_){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(_,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(_,H,Object.getOwnPropertyDescriptor(G,H))})}return _}function r(_,F,G){return F=s(F),F in _?Object.defineProperty(_,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):_[F]=G,_}function n(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function o(_,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(_,s(H.key),H)}}function c(_,F,G){return F&&o(_.prototype,F),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_){var F=l(_,"string");return g(F)==="symbol"?F:String(F)}function l(_,F){if(g(_)!=="object"||_===null)return _;var G=_[Symbol.toPrimitive];if(G!==void 0){var H=G.call(_,F);if(g(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}function a(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),F&&x(_,F)}function u(_){var F=S();return function(){var H=m(_),Q;if(F){var O=m(this).constructor;Q=Reflect.construct(H,arguments,O)}else Q=H.apply(this,arguments);return f(this,Q)}}function f(_,F){if(F&&(g(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function v(_){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!j(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,Q)}function Q(){return w(H,arguments,m(this).constructor)}return Q.prototype=Object.create(H.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),x(Q,H)},v(_)}function w(_,F,G){return S()?w=Reflect.construct.bind():w=function(Q,O,R){var M=[null];M.push.apply(M,O);var z=Function.bind.apply(Q,M),L=new z;return R&&x(L,R.prototype),L},w.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(_){return Function.toString.call(_).indexOf("[native code]")!==-1}function x(_,F){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},x(_,F)}function m(_){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},m(_)}function g(_){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},g(_)}var d=or(),p=d.inspect,y=Li(),T=y.codes.ERR_INVALID_ARG_TYPE;function C(_,F,G){return(G===void 0||G>_.length)&&(G=_.length),_.substring(G-F.length,G)===F}function E(_,F){if(F=Math.floor(F),_.length==0||F==0)return"";var G=_.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)_+=_,F--;return _+=_.substring(0,G-_.length),_}var k="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(_){var F=Object.keys(_),G=Object.create(Object.getPrototypeOf(_));return F.forEach(function(H){G[H]=_[H]}),Object.defineProperty(G,"message",{value:_.message}),G}function ge(_){return p(_,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ce(_,F,G){var H="",Q="",O=0,R="",M=!1,z=ge(_),L=z.split(`
1
+ import{r as P,fL as fl,c6 as _o,fM as dl,fu as Mo,fN as pl,cX as Lo,aG as ur,j as i,fO as ml,fP as hl,F as Et,fQ as or,eA as Je,fR as Js,fS as gl,fT as bl,fU as yl,fV as xl,fW as vl,fX as ei,fY as wl,fZ as to,f_ as Cl,f$ as Sl,g0 as jl,g1 as Tl,eB as ro,g2 as ti,eC as El,cJ as qn,eD as kl,dG as Il,g3 as Pl,g4 as Rl,V as Ee,bo as Be,aQ as ut,g5 as ri,H as Me,_ as Ue,o as b,f as no,eP as ni,f6 as oi,n as xt,K as U,bZ as Dl,dM as Al,bz as Ol,aw as ft,g6 as si,U as jr,bl as Tr,g7 as ii,a$ as _l,$ as et,t as lt,b2 as Ml,bB as qe,aV as Nt,E as oo,ff as Ll,g8 as Nl,g9 as Fl,ga as Bl,D as Lr,T as Pe,bh as so,a5 as rr,J as Nr,gb as Ul,Z as Tt,c0 as Vt,c1 as zt,cl as ai,dP as rt,e$ as ce,c3 as ql,b9 as _e,df as Er,d9 as li,c4 as dt,c5 as Rt,X as It,dL as ci,dc as $l,gc as Fr,gd as ui,bE as it,bg as Ve,R as sr,bq as fi,S as $n,au as di,dI as Vl,ge as kr,bt as zl,av as ir,v as ze,C as bt,gf as Wl,h as Vn,aX as Kl,w as Hl,x as Yl,s as He,p as fr,ae as dr,bF as Bt,gg as Gl,dH as Zl,dp as Xl,aI as gt,Q as yt,dz as Ql,gh as Jl,eE as ec,gi as pi,gj as Ir,gk as tc,dJ as ar,cP as No,W as io,dK as rc,cw as mi,z as nc,bv as ao,bw as hi,bx as lo,dr as hr,b as Ie,aE as oc,fK as gi,gl as bi,P as lr,aT as sc,gm as yi,aF as ic,aa as ac,gn as lc,c$ as xi,go as cc,bA as Fo,y as uc,gp as fc,bH as dc,Y as pc,O as mc}from"./index-CrQaw0BF.js";import{A as Ut}from"./Add-BqehlncY.js";import{V as hc}from"./ViewList-D7TqVQ4P.js";import{c as gc,H as co,g as bc}from"./index-CNVrqxCI.js";import{v as Bo}from"./index-D93jIJAg.js";import{u as Ye}from"./team-DLwXXgYX.js";import{u as vi}from"./blocklet-D4otp8nH.js";import{S as wi}from"./Search-BwAHZ5GK.js";import{u as yc,C as Zt}from"./index.esm-B06DCVM7.js";import{S as xc}from"./Google-BB2TEIzp.js";import{A as vc,a as gr}from"./Autocomplete-DQwU_oez.js";import{U as wc}from"./UnfoldMore-DVoycFqc.js";import{P as Pt}from"./permission-B8q324ya.js";import{C as Br}from"./click-to-copy-CcQkmf0B.js";import{s as vt,g as Cc,S as Sc,u as mt,a as Ci,b as pr,c as Si,d as Ur,e as ji,f as uo,P as Ti,D as Ei,h as Pr,M as tr,i as ki,j as Uo,k as nr,v as jc,l as Tc,m as qo,n as Ec,o as kc,p as Ic,q as Pc,C as Rc,r as Dc,t as Rr,w as Lt,x as Dr,y as $o,z as Vo,A as Ac,T as Oc,B as fo,E as _c,F as Mc,G as Lc,H as Nc,I as Fc,J as Bc,K as Uc,L as br,N as Ft,O as Ii,Q as qc,V as zn,R as Pi,U as $c,W as zo,X as Vc,Y as zc,Z as Wc,_ as Kc,$ as Hc,a0 as Yc}from"./AdapterDayjs-D4yhIBjp.js";import{u as nt}from"./useThemeProps-CFIloaX5.js";import{a as Wo,b as Gc,t as Zc,T as Xc}from"./html-title-CifiMfjt.js";import{v as Ge}from"./index-DAMZQWKn.js";import{V as Qc}from"./Verified-CWEd1DVE.js";import{D as Jc}from"./DeleteOutline-BiwjsR6p.js";import{E as Ko}from"./ErrorOutline-B0v25XAB.js";import{N as eu}from"./index-DyIPXbau.js";import{R as Ri,a as Sr}from"./url-evaluation-DMCBEvQj.js";import{b as Wn}from"./sdk-DZJdUnPV.js";import{u as tu}from"./index-DBJqSNjU.js";import{u as Di}from"./use-mobile-BGG1Yti5.js";import{D as ru}from"./Delete-8zGU1uok.js";import{A as nu}from"./actions-GoWYDb6F.js";import{S as ou}from"./shorten-label-CybgQDYs.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const su=gc(P.useLayoutEffect);var Ho={},Yo;function iu(){return Yo||(Yo=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,y=e(p);y;)p=y.ownerDocument,y=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=S(d.rootBounds),this.boundingClientRect=S(d.boundingClientRect),this.intersectionRect=S(d.intersectionRect||w()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,y=p.width*p.height,T=this.intersectionRect,C=T.width*T.height;y?this.intersectionRatio=Number((C/y).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var y=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(y.root&&y.root.nodeType!=1&&y.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(y.rootMargin),this.thresholds=this._initThresholds(y.threshold),this.root=y.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=w():o=j(d,p),r.forEach(function(y){y._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(y){return y.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(y,T,C){if(typeof y!="number"||isNaN(y)||y<0||y>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return y!==C[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(T){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!C)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(C[1]),unit:C[2]}});return y[1]=y[1]||y[0],y[2]=y[2]||y[0],y[3]=y[3]||y[1],y},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var y=this._checkForIntersections,T=null,C=null;this.POLL_INTERVAL?T=p.setInterval(y,this.POLL_INTERVAL):(u(p,"resize",y,!0),u(d,"scroll",y,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(C=new p.MutationObserver(y),C.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var E=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=E){var k=e(d);k&&this._monitorIntersections(k.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var y=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(k){var D=k.element.ownerDocument;if(D==d)return!0;for(;D&&D!=y;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var E=e(d);E&&this._unmonitorIntersections(E.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():w();this._observationTargets.forEach(function(y){var T=y.element,C=v(T),E=this._rootContainsTarget(T),k=y.entry,D=d&&E&&this._computeTargetAndRootIntersection(T,C,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:T,boundingClientRect:C,rootBounds:N,intersectionRect:D});k?d&&E?this._hasCrossedThreshold(k,B)&&this._queuedEntries.push(B):k&&k.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,y){if(window.getComputedStyle(d).display!="none"){for(var T=p,C=m(d),E=!1;!E&&C;){var k=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(E=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,k=null,T=null):k=o:k=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,k=j(B,W)):(C=null,T=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(k=v(C))}if(k&&(T=h(k,T)),!T)break;C=C&&m(C)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!g(this.root))d=v(this.root);else{var p=g(this.root)?this.root:t,y=p.documentElement,T=p.body;d={top:0,left:0,right:y.clientWidth||T.clientWidth,width:y.clientWidth||T.clientWidth,bottom:y.clientHeight||T.clientHeight,height:y.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,C){return T.unit=="px"?T.value:T.value*(C%2?d.width:d.height)/100}),y={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return y.width=y.right-y.left,y.height=y.bottom-y.top,y},s.prototype._hasCrossedThreshold=function(d,p){var y=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==T)for(var C=0;C<this.thresholds.length;C++){var E=this.thresholds[C];if(E==y||E==T||E<y!=E<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||x(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return x(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(d,p){var y=null;return function(){y||(y=setTimeout(function(){d(),y=null},p))}}function u(d,p,y,T){typeof d.addEventListener=="function"?d.addEventListener(p,y,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),E=Math.min(d.right,p.right),k=E-C,D=T-y;return k>=0&&D>=0&&{top:y,bottom:T,left:C,right:E,width:k,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):w()}function w(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function S(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function j(d,p){var y=p.top-d.top,T=p.left-d.left;return{top:y,left:T,height:p.height,width:p.width,bottom:y+p.height,right:T+p.width}}function x(d,p){for(var y=p;y;){if(y==d)return!0;y=m(y)}return!1}function m(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function g(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Ho}iu();function au(e,t){var r={},n=r.callback,o=fl(r,["callback"]),c=_o(P.useState(),2),s=c[0],l=c[1],a=_o(P.useState(),2),u=a[0],f=a[1];return dl(function(){var h=Array.isArray(e)?e:[e],v=h.map(function(S){return Mo(S)}).filter(Boolean);if(v.length){var w=new IntersectionObserver(function(S){var j,x;try{for(var m=pl(S),g=m.next();!g.done;g=m.next()){var d=g.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){j={error:p}}finally{try{g&&!g.done&&(x=m.return)&&x.call(m)}finally{if(j)throw j.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return v.forEach(function(S){return w.observe(S)}),function(){w.disconnect()}}},[void 0,void 0,n],e),[s,u]}const lu=ur(i.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),cu=ur(i.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),qr=ur([i.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),i.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),uu=ur(i.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),fu=ur(i.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Ai=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),P.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Oi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),_i=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),P.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),du=e=>P.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("g",{clipPath:"url(#clip0)"},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),P.createElement("defs",null,P.createElement("clipPath",{id:"clip0"},P.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Mi=e=>P.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},P.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Zr={},Xr,Go;function pu(){return Go||(Go=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Zo;function mu(){if(Zo)return Qr;Zo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var a=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],a=1;a<l.length;a++)s=n(l,a).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(s);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),h=0;h<f.length;h++){var v=f[h];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Qr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Qr}var Jr,Xo;function hu(){return Xo||(Xo=1,Jr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Jr}var en,Qo;function gu(){return Qo||(Qo=1,en=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),en}var Jo;function bu(){return Jo||(Jo=1,function(e){const t=pu(),r=mu(),n=hu(),o=gu(),c=m=>m==null;function s(m){switch(m.arrayFormat){case"index":return g=>(d,p)=>{const y=d.length;return p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[",y,"]"].join("")]:[...d,[u(g,m),"[",u(y,m),"]=",u(p,m)].join("")]};case"bracket":return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,[u(g,m),"[]"].join("")]:[...d,[u(g,m),"[]=",u(p,m)].join("")];case"comma":case"separator":return g=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(g,m),"=",u(p,m)].join("")]:[[d,u(p,m)].join(m.arrayFormatSeparator)];default:return g=>(d,p)=>p===void 0||m.skipNull&&p===null||m.skipEmptyString&&p===""?d:p===null?[...d,u(g,m)]:[...d,[u(g,m),"=",u(p,m)].join("")]}}function l(m){let g;switch(m.arrayFormat){case"index":return(d,p,y)=>{if(g=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!g){y[d]=p;return}y[d]===void 0&&(y[d]={}),y[d][g[1]]=p};case"bracket":return(d,p,y)=>{if(g=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!g){y[d]=p;return}if(y[d]===void 0){y[d]=[p];return}y[d]=[].concat(y[d],p)};case"comma":case"separator":return(d,p,y)=>{const T=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!T&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const E=T||C?p.split(m.arrayFormatSeparator).map(k=>f(k,m)):p===null?p:f(p,m);y[d]=E};default:return(d,p,y)=>{if(y[d]===void 0){y[d]=p;return}y[d]=[].concat(y[d],p)}}}function a(m){if(typeof m!="string"||m.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(m,g){return g.encode?g.strict?t(m):encodeURIComponent(m):m}function f(m,g){return g.decode?r(m):m}function h(m){return Array.isArray(m)?m.sort():typeof m=="object"?h(Object.keys(m)).sort((g,d)=>Number(g)-Number(d)).map(g=>m[g]):m}function v(m){const g=m.indexOf("#");return g!==-1&&(m=m.slice(0,g)),m}function w(m){let g="";const d=m.indexOf("#");return d!==-1&&(g=m.slice(d)),g}function S(m){m=v(m);const g=m.indexOf("?");return g===-1?"":m.slice(g+1)}function j(m,g){return g.parseNumbers&&!Number.isNaN(Number(m))&&typeof m=="string"&&m.trim()!==""?m=Number(m):g.parseBooleans&&m!==null&&(m.toLowerCase()==="true"||m.toLowerCase()==="false")&&(m=m.toLowerCase()==="true"),m}function x(m,g){g=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},g),a(g.arrayFormatSeparator);const d=l(g),p=Object.create(null);if(typeof m!="string"||(m=m.trim().replace(/^[?#&]/,""),!m))return p;for(const y of m.split("&")){if(y==="")continue;let[T,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(T,g),C,p)}for(const y of Object.keys(p)){const T=p[y];if(typeof T=="object"&&T!==null)for(const C of Object.keys(T))T[C]=j(T[C],g);else p[y]=j(T,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,T)=>{const C=p[T];return C&&typeof C=="object"&&!Array.isArray(C)?y[T]=h(C):y[T]=C,y},Object.create(null))}e.extract=S,e.parse=x,e.stringify=(m,g)=>{if(!m)return"";g=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},g),a(g.arrayFormatSeparator);const d=C=>g.skipNull&&c(m[C])||g.skipEmptyString&&m[C]==="",p=s(g),y={};for(const C of Object.keys(m))d(C)||(y[C]=m[C]);const T=Object.keys(y);return g.sort!==!1&&T.sort(g.sort),T.map(C=>{const E=m[C];return E===void 0?"":E===null?u(C,g):Array.isArray(E)?E.reduce(p(C),[]).join("&"):u(C,g)+"="+u(E,g)}).filter(C=>C.length>0).join("&")},e.parseUrl=(m,g)=>{g=Object.assign({decode:!0},g);const[d,p]=n(m,"#");return Object.assign({url:d.split("?")[0]||"",query:x(S(m),g)},g&&g.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,g)}:{})},e.stringifyUrl=(m,g)=>{g=Object.assign({encode:!0,strict:!0},g);const d=v(m.url).split("?")[0]||"",p=e.extract(m.url),y=e.parse(p,{sort:!1}),T=Object.assign(y,m.query);let C=e.stringify(T,g);C&&(C=`?${C}`);let E=w(m.url);return m.fragmentIdentifier&&(E=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${E}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:T}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:T},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,T)=>!g(y,T);return e.pick(m,p,d)}}(Zr)),Zr}var tn=bu();const Xt=ml,yu={parseNumbers:!1,parseBooleans:!1},xu={skipNull:!1,skipEmptyString:!1},vu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},yu),c),a=Object.assign(Object.assign({},xu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),h=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=hl(),w=P.useRef(typeof e=="function"?e():e||{}),S=P.useMemo(()=>tn.parse(u.search,l),[u.search]),j=P.useMemo(()=>Object.assign(Object.assign({},w.current),S),[S]);return[j,Et(m=>{const g=typeof m=="function"?m(j):m;v(),f&&f[o]({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},u.state),h&&h({hash:u.hash,search:tn.stringify(Object.assign(Object.assign({},S),g),a)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},rn={exports:{}},nn={},es;function Li(){if(es)return nn;es=1;function e(g){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(g)}function t(g,d,p){return Object.defineProperty(g,"prototype",{writable:!1}),g}function r(g,d){if(!(g instanceof d))throw new TypeError("Cannot call a class as a function")}function n(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(d&&d.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),Object.defineProperty(g,"prototype",{writable:!1}),d&&o(g,d)}function o(g,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,T){return y.__proto__=T,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),T;if(d){var C=u(this).constructor;T=Reflect.construct(y,arguments,C)}else T=y.apply(this,arguments);return s(this,T)}}function s(g,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(g)}function l(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function a(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(g){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(g)}var f={},h,v;function w(g,d,p){p||(p=Error);function y(C,E,k){return typeof d=="string"?d:d(C,E,k)}var T=function(C){n(k,C);var E=c(k);function k(D,N,B){var W;return r(this,k),W=E.call(this,y(D,N,B)),W.code=g,W}return t(k)}(p);f[g]=T}function S(g,d){if(Array.isArray(g)){var p=g.length;return g=g.map(function(y){return String(y)}),p>2?"one of ".concat(d," ").concat(g.slice(0,p-1).join(", "),", or ")+g[p-1]:p===2?"one of ".concat(d," ").concat(g[0]," or ").concat(g[1]):"of ".concat(d," ").concat(g[0])}else return"of ".concat(d," ").concat(String(g))}function j(g,d,p){return g.substr(0,d.length)===d}function x(g,d,p){return(p===void 0||p>g.length)&&(p=g.length),g.substring(p-d.length,p)===d}function m(g,d,p){return typeof p!="number"&&(p=0),p+d.length>g.length?!1:g.indexOf(d,p)!==-1}return w("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),w("ERR_INVALID_ARG_TYPE",function(g,d,p){h===void 0&&(h=Kn()),h(typeof g=="string","'name' must be a string");var y;typeof d=="string"&&j(d,"not ")?(y="must not be",d=d.replace(/^not /,"")):y="must be";var T;if(x(g," argument"))T="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";T='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),w("ERR_INVALID_ARG_VALUE",function(g,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var y=v.inspect(d);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(g,"' ").concat(p,". Received ").concat(y)},TypeError),w("ERR_INVALID_RETURN_VALUE",function(g,d,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(g,' to be returned from the "').concat(d,'"')+" function but got ".concat(y,".")},TypeError),w("ERR_MISSING_ARGS",function(){for(var g=arguments.length,d=new Array(g),p=0;p<g;p++)d[p]=arguments[p];h===void 0&&(h=Kn()),h(d.length>0,"At least one arg needs to be specified");var y="The ",T=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),T){case 1:y+="".concat(d[0]," argument");break;case 2:y+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:y+=d.slice(0,T-1).join(", "),y+=", and ".concat(d[T-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,ts;function wu(){if(ts)return on;ts=1;function e(_,F){var G=Object.keys(_);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(_);F&&(H=H.filter(function(Q){return Object.getOwnPropertyDescriptor(_,Q).enumerable})),G.push.apply(G,H)}return G}function t(_){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(_,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(_,H,Object.getOwnPropertyDescriptor(G,H))})}return _}function r(_,F,G){return F=s(F),F in _?Object.defineProperty(_,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):_[F]=G,_}function n(_,F){if(!(_ instanceof F))throw new TypeError("Cannot call a class as a function")}function o(_,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(_,s(H.key),H)}}function c(_,F,G){return F&&o(_.prototype,F),Object.defineProperty(_,"prototype",{writable:!1}),_}function s(_){var F=l(_,"string");return g(F)==="symbol"?F:String(F)}function l(_,F){if(g(_)!=="object"||_===null)return _;var G=_[Symbol.toPrimitive];if(G!==void 0){var H=G.call(_,F);if(g(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}function a(_,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(F&&F.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),F&&x(_,F)}function u(_){var F=S();return function(){var H=m(_),Q;if(F){var O=m(this).constructor;Q=Reflect.construct(H,arguments,O)}else Q=H.apply(this,arguments);return f(this,Q)}}function f(_,F){if(F&&(g(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(_)}function h(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function v(_){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!j(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,Q)}function Q(){return w(H,arguments,m(this).constructor)}return Q.prototype=Object.create(H.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),x(Q,H)},v(_)}function w(_,F,G){return S()?w=Reflect.construct.bind():w=function(Q,O,R){var M=[null];M.push.apply(M,O);var z=Function.bind.apply(Q,M),L=new z;return R&&x(L,R.prototype),L},w.apply(null,arguments)}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j(_){return Function.toString.call(_).indexOf("[native code]")!==-1}function x(_,F){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,Q){return H.__proto__=Q,H},x(_,F)}function m(_){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},m(_)}function g(_){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},g(_)}var d=or(),p=d.inspect,y=Li(),T=y.codes.ERR_INVALID_ARG_TYPE;function C(_,F,G){return(G===void 0||G>_.length)&&(G=_.length),_.substring(G-F.length,G)===F}function E(_,F){if(F=Math.floor(F),_.length==0||F==0)return"";var G=_.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)_+=_,F--;return _+=_.substring(0,G-_.length),_}var k="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ne=10;function te(_){var F=Object.keys(_),G=Object.create(Object.getPrototypeOf(_));return F.forEach(function(H){G[H]=_[H]}),Object.defineProperty(G,"message",{value:_.message}),G}function ge(_){return p(_,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ce(_,F,G){var H="",Q="",O=0,R="",M=!1,z=ge(_),L=z.split(`
2
2
  `),q=ge(F).split(`
3
3
  `),Z=0,oe="";if(G==="strictEqual"&&g(_)==="object"&&g(F)==="object"&&_!==null&&F!==null&&(G="strictEqualObject"),L.length===1&&q.length===1&&L[0]!==q[0]){var pe=L[0].length+q[0].length;if(pe<=ne){if((g(_)!=="object"||_===null)&&(g(F)!=="object"||F===null)&&(_!==0||F!==0))return"".concat(W[G],`
4
4
 
@@ -1 +1 @@
1
- import{ct as u,r as o,p as x,cu as r,B as g,j as s,J as m,cv as d}from"./index-DtJVzdtH.js";function P(){const i=u(),{blocklets:c,refresh:l}=i,{t:p}=o.useContext(x),y=r.generateKey(),[a]=g();return o.useEffect(()=>{const n=r.getNotificationQueryParams(y)??{},t=a.get("entityId"),e=a.get("severity"),f={...n,...e?{severity:e==="all"?[]:e.split(","),paging:{...n.paging,page:1}}:{},...t?{entityId:t==="all"?[]:t.split(",")}:{},componentDid:[]};l(f)},[]),s.jsxs(m,{children:[s.jsx("h1",{children:p("notification.title")}),s.jsx(d,{tabType:"line",blocklets:c,context:i,filterType:"entity",type:"server"})]})}export{P as default};
1
+ import{ct as u,r as o,p as x,cu as r,B as g,j as s,K as m,cv as d}from"./index-CrQaw0BF.js";function P(){const i=u(),{blocklets:c,refresh:l}=i,{t:p}=o.useContext(x),y=r.generateKey(),[a]=g();return o.useEffect(()=>{const n=r.getNotificationQueryParams(y)??{},t=a.get("entityId"),e=a.get("severity"),f={...n,...e?{severity:e==="all"?[]:e.split(","),paging:{...n.paging,page:1}}:{},...t?{entityId:t==="all"?[]:t.split(",")}:{},componentDid:[]};l(f)},[]),s.jsxs(m,{children:[s.jsx("h1",{children:p("notification.title")}),s.jsx(d,{tabType:"line",blocklets:c,context:i,filterType:"entity",type:"server"})]})}export{P as default};