@abtnode/webapp 1.17.4-beta-20251204-152224-243ff54f → 1.17.4-beta-20251206-081442-6f622450

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 (187) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-D7bJvNHv.js → AdapterDayjs-AIDIzsfb.js} +1 -1
  4. package/dist/assets/{Add-CRng1bvb.js → Add-l7OvfXrD.js} +1 -1
  5. package/dist/assets/ArrowDropDown-Br_oPfQI.js +1 -0
  6. package/dist/assets/{Autocomplete-Z7djk_ZA.js → Autocomplete-Bme-ElpV.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-Cl3pYXuX.js → Breadcrumbs-Bf0qzrkp.js} +1 -1
  8. package/dist/assets/{ButtonGroup-DT2mnbzl.js → ButtonGroup-CMlvIctd.js} +1 -1
  9. package/dist/assets/{CSSTransition-DnKCf5MC.js → CSSTransition-Cf_KzaPo.js} +1 -1
  10. package/dist/assets/{CallMerge-ez9AWPJv.js → CallMerge-DaaiIZ0e.js} +1 -1
  11. package/dist/assets/{CardContent-3_u5Glkf.js → CardContent-gyrk9EIw.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CrMq5UEk.js → ChevronLeft-OivB2aTv.js} +1 -1
  13. package/dist/assets/{ChevronRight-Cuplw8Vk.js → ChevronRight-CV3PmYHH.js} +1 -1
  14. package/dist/assets/{Clear-BqdaPKpz.js → Clear-Cz6Yzx0g.js} +1 -1
  15. package/dist/assets/{DeleteOutline-BASXPKuD.js → DeleteOutline-DmEDUBgP.js} +1 -1
  16. package/dist/assets/{Done-CB_qB8AL.js → Done-BuJjZzMV.js} +1 -1
  17. package/dist/assets/{Edit-Dtb20pIp.js → Edit-HxzEBQ9h.js} +1 -1
  18. package/dist/assets/{ErrorOutline-D9sfPJGD.js → ErrorOutline-CUOja7My.js} +1 -1
  19. package/dist/assets/{FilterList-C8mCq8zA.js → FilterList-xUYmSJ-Y.js} +1 -1
  20. package/dist/assets/{Google-C-fURhjk.js → Google-cG0hx3oK.js} +1 -1
  21. package/dist/assets/{HelpOutline-Cueb4ga5.js → HelpOutline-DapRasSH.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-BcVS9Fto.js → KeyboardArrowDown-9mIUY7eq.js} +1 -1
  23. package/dist/assets/{Launch-7PWsMLYi.js → Launch-DITLracb.js} +1 -1
  24. package/dist/assets/{Link-DehBPVeZ.js → Link-DGt16osR.js} +1 -1
  25. package/dist/assets/{ListItemButton-DWl1Vgm4.js → ListItemButton-Cs40YHcx.js} +1 -1
  26. package/dist/assets/{ListSubheader-CwlXohNJ.js → ListSubheader-l4UAKUMT.js} +1 -1
  27. package/dist/assets/{LoadingButton-MojQ_kdf.js → LoadingButton-D6uT1qbm.js} +1 -1
  28. package/dist/assets/{MoreVert-DtyK0V7L.js → MoreVert-BUlWqUnK.js} +1 -1
  29. package/dist/assets/{OpenInNew-_TIFZ5Zi.js → OpenInNew-CCi7ydva.js} +1 -1
  30. package/dist/assets/{Refresh-DwyswQXH.js → Refresh-CGgBW-me.js} +1 -1
  31. package/dist/assets/{Search-CsPuhVY5.js → Search-3L2yy5pr.js} +1 -1
  32. package/dist/assets/{Stepper-Rcrn65Du.js → Stepper-D4Zig93k.js} +1 -1
  33. package/dist/assets/{Switch-DkUYQLr7.js → Switch-B-AVsYNw.js} +1 -1
  34. package/dist/assets/{TableSearch-Bj-RkYUe.js → TableSearch-CAaRXXpO.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-3zowoGqS.js → ToggleButtonGroup-uvIn6Jyh.js} +1 -1
  36. package/dist/assets/{UnfoldMore-DkTRhBQs.js → UnfoldMore-DcBVcc2h.js} +1 -1
  37. package/dist/assets/{Verified-B6fUdHX1.js → Verified-BpzZH8QJ.js} +1 -1
  38. package/dist/assets/{VerifiedUser-Dk6hfaYJ.js → VerifiedUser-B-ONuNVC.js} +1 -1
  39. package/dist/assets/{ViewList-D8N8QDcN.js → ViewList-CvnWfuPG.js} +1 -1
  40. package/dist/assets/{_createAggregator-B5A3r6Wz.js → _createAggregator-CqUOxBsA.js} +1 -1
  41. package/dist/assets/{actions-CGozisCX.js → actions-DVOuh-Fv.js} +1 -1
  42. package/dist/assets/{actions-DzRp1CK0.js → actions-Dv4j7XcE.js} +1 -1
  43. package/dist/assets/{agreement-BPuCuaYS.js → agreement-ttzsGTtZ.js} +1 -1
  44. package/dist/assets/api-CWyPHkC_.js +1 -0
  45. package/dist/assets/{appearance-DqS4_O1_.js → appearance-BoEskUU3.js} +1 -1
  46. package/dist/assets/{audit-logs-D0e8XQkm.js → audit-logs-BjJ1_rVq.js} +1 -1
  47. package/dist/assets/{base-chart-DWYRF-Pp.js → base-chart-AQkuFrPC.js} +1 -1
  48. package/dist/assets/{blocklet-CO_UEcgH.js → blocklet-D2MB-zOx.js} +1 -1
  49. package/dist/assets/{chain-Ss4dh3Ib.js → chain-l1zX37z1.js} +1 -1
  50. package/dist/assets/{click-to-copy-CHgcysbr.js → click-to-copy-D16LYOaz.js} +1 -1
  51. package/dist/assets/cloneDeep-BOd1J0Sv.js +1 -0
  52. package/dist/assets/{collapse-BxCDdwz2.js → collapse-DjVUQHBf.js} +1 -1
  53. package/dist/assets/{config-navigation-DnjjiErQ.js → config-navigation-D5cL0ut2.js} +3 -3
  54. package/dist/assets/{connect-to-DDy1G5fS.js → connect-to-MJFTP0S_.js} +1 -1
  55. package/dist/assets/{cssMode-BIviLN-T.js → cssMode-Fsxj3561.js} +1 -1
  56. package/dist/assets/{delete-confirm-vp8hd-iS.js → delete-confirm-xUATcCih.js} +1 -1
  57. package/dist/assets/{depsEqual-CZP345Xi.js → depsEqual-BNz3Z5UN.js} +1 -1
  58. package/dist/assets/{detail-DKJA4QJA.js → detail-cazmKFj_.js} +3 -3
  59. package/dist/assets/{domains-DnORdhZ7.js → domains-vCwCURM3.js} +1 -1
  60. package/dist/assets/{download-bjQaUX52.js → download-O9kMYIC6.js} +1 -1
  61. package/dist/assets/{edit.svg-D22FchVe.js → edit.svg-B0aHUSZw.js} +1 -1
  62. package/dist/assets/emotion-cache.browser.esm-CdT-VIlA.js +1 -0
  63. package/dist/assets/engine-7ix2eBzw.js +1 -0
  64. package/dist/assets/{freemarker2-B6EoaK3p.js → freemarker2-DajhvZDQ.js} +1 -1
  65. package/dist/assets/{get-safe-url-CfVKsPMH.js → get-safe-url-B_yWzv49.js} +1 -1
  66. package/dist/assets/getValidReactChildren-BQH98pcn.js +1 -0
  67. package/dist/assets/{graphqlMode-B1q5zCxy.js → graphqlMode-DQTpyvXV.js} +2 -2
  68. package/dist/assets/{handlebars-leG6s9kW.js → handlebars-CFycpwy_.js} +1 -1
  69. package/dist/assets/{html-BUpVyqnU.js → html-fOaqMnCB.js} +1 -1
  70. package/dist/assets/{html-title-B7gNlV0N.js → html-title-xzTyg8m0.js} +1 -1
  71. package/dist/assets/{htmlMode-BtvUyoUm.js → htmlMode-DwojGB9N.js} +1 -1
  72. package/dist/assets/{iframe-Bcq1yggD.js → iframe-DhbAf7eB.js} +1 -1
  73. package/dist/assets/{index-DPsk4bZI.js → index-0EXUatvL.js} +1 -1
  74. package/dist/assets/{index-BCFuar1a.js → index-4-FW3N_0.js} +1 -1
  75. package/dist/assets/{index-Cueikc61.js → index-4yUut_bV.js} +1 -1
  76. package/dist/assets/{index-BHh7dbJI.js → index-B-V1EiVF.js} +1 -1
  77. package/dist/assets/{index-D7pAGc4n.js → index-BACYRg7R.js} +9 -9
  78. package/dist/assets/{index-CP2ySx69.js → index-BCEB7zAW.js} +1 -1
  79. package/dist/assets/{index-COAHcVH6.js → index-BEOeUot7.js} +1 -1
  80. package/dist/assets/{index-BZK15J4S.js → index-BFqAcspj.js} +2 -2
  81. package/dist/assets/{index-STr1ffGc.js → index-BI2RNyn2.js} +2 -2
  82. package/dist/assets/{index-B9cmEwta.js → index-BZw-IddS.js} +1 -1
  83. package/dist/assets/{index-CK2r1fQ4.js → index-B_8MhQGp.js} +3 -3
  84. package/dist/assets/{index-DpjK8TAu.js → index-BbWPK5o6.js} +1 -1
  85. package/dist/assets/{index-uvbslqFd.js → index-BddlETK4.js} +1 -1
  86. package/dist/assets/{index-CLUNG8RH.js → index-BftkyDmu.js} +1 -1
  87. package/dist/assets/{index-LTqv_onD.js → index-BhmdgQ6h.js} +1 -1
  88. package/dist/assets/index-BiAAgnpw.js +1 -0
  89. package/dist/assets/{index-D8QdSuWP.js → index-BlnAC-LC.js} +1 -1
  90. package/dist/assets/{index-9amiOBds.js → index-BsntE0No.js} +1 -1
  91. package/dist/assets/{index-BzdGhRHG.js → index-Bvn9twlG.js} +1 -1
  92. package/dist/assets/{index-BEBlF9m9.js → index-BzMgQhvT.js} +1 -1
  93. package/dist/assets/{index-BFd6rfnD.js → index-CBrQ9aZ7.js} +1 -1
  94. package/dist/assets/{index-DYek3fDu.js → index-CCv_8omK.js} +2 -2
  95. package/dist/assets/{index-CYKLn0md.js → index-CEPQQlo6.js} +1 -1
  96. package/dist/assets/{index-nb9hmF43.js → index-CGtaecKe.js} +1 -1
  97. package/dist/assets/{index-DPRN-V2-.js → index-CO0vAndr.js} +1 -1
  98. package/dist/assets/{index-BtC9W7tW.js → index-COT6fHf0.js} +1 -1
  99. package/dist/assets/{index-C8uJSnoX.js → index-CPLXcmCK.js} +3 -3
  100. package/dist/assets/{index-BuBuhUeR.js → index-Cacyj92F.js} +1 -1
  101. package/dist/assets/{index-BcwJKAa8.js → index-Cl5G4tna.js} +3 -3
  102. package/dist/assets/{index-wL5lEY63.js → index-CprJrzzj.js} +1 -1
  103. package/dist/assets/{index-DRjvR70q.js → index-DBOqxRpP.js} +1 -1
  104. package/dist/assets/{index-CtuC-y68.js → index-DcXoiIcd.js} +1 -1
  105. package/dist/assets/{index-8muv7_Jd.js → index-DeYmBhXX.js} +1 -1
  106. package/dist/assets/{index-C4pxl7E6.js → index-DkBdKcP-.js} +1 -1
  107. package/dist/assets/{index-CS3jjVt-.js → index-DvBW_mZc.js} +1 -1
  108. package/dist/assets/{index-Bs1YhLgL.js → index-KR6tqxjN.js} +1 -1
  109. package/dist/assets/{index-CaFQZBnI.js → index-XgkYfld7.js} +3 -3
  110. package/dist/assets/{index-D6RZzwG3.js → index-aZqjDrOh.js} +1 -1
  111. package/dist/assets/{index-C5QUiUfn.js → index-g_RqxcM4.js} +1 -1
  112. package/dist/assets/{index-ClhL9yaw.js → index-gqKcev8E.js} +1 -1
  113. package/dist/assets/{index-DP781l3f.js → index-hu34K3US.js} +1 -1
  114. package/dist/assets/{index-BA9z7d5M.js → index-i28M3WTw.js} +1 -1
  115. package/dist/assets/{index-CToqwOpp.js → index-iLcm3xJO.js} +1 -1
  116. package/dist/assets/{index-CjNtQPhT.js → index-jIRER_d6.js} +1 -1
  117. package/dist/assets/{index-DdtHjUVR.js → index-kFk_mggT.js} +1 -1
  118. package/dist/assets/{index-D_SuvjB5.js → index-yORTeDE5.js} +1 -1
  119. package/dist/assets/{index.esm-uQodQ2iI.js → index.esm-Bsyk9Gld.js} +1 -1
  120. package/dist/assets/{install-from-url-B1AvU1HE.js → install-from-url-4VtQ9_35.js} +1 -1
  121. package/dist/assets/{invitation-BGoJ_RU_.js → invitation-B5QYli1h.js} +1 -1
  122. package/dist/assets/{is-path-prefix-equal-B0MjzJqh.js → is-path-prefix-equal-RoIvuAJE.js} +1 -1
  123. package/dist/assets/{item-MiuwuO0Y.js → item-CjFxs-Zt.js} +1 -1
  124. package/dist/assets/{javascript-CQivY_iF.js → javascript-luLw15rJ.js} +1 -1
  125. package/dist/assets/{jsonMode-B1DIJogh.js → jsonMode-Cxdqt0IL.js} +1 -1
  126. package/dist/assets/{liquid-B-d-gcy-.js → liquid-D1qp1ZF3.js} +1 -1
  127. package/dist/assets/{list-header-CSw-R3Ib.js → list-header-D-U957cP.js} +1 -1
  128. package/dist/assets/{lock.svg-BhUN8bfS.js → lock.svg-Dz9J-uBq.js} +1 -1
  129. package/dist/assets/{log-DSCML-QG.js → log--2ZY9nHz.js} +1 -1
  130. package/dist/assets/{lottie-react.esm-BsJCvwoE.js → lottie-react.esm-C6caiayN.js} +1 -1
  131. package/dist/assets/{mdx-CmVqY81W.js → mdx-Dzy-X9qt.js} +1 -1
  132. package/dist/assets/{memory-CYZ4RyvC.js → memory-r4Kexlry.js} +1 -1
  133. package/dist/assets/{metric--Aw7wHv-.js → metric-BTKuNvY9.js} +1 -1
  134. package/dist/assets/omit-BwCXmJ0x.js +1 -0
  135. package/dist/assets/{overview-Dtzj0xH0.js → overview-CFHOUNfH.js} +1 -1
  136. package/dist/assets/{permission-C4awFEcL.js → permission-RtK6f5af.js} +1 -1
  137. package/dist/assets/{preference-4rp0K0MI.js → preference-C7Ge_XOi.js} +3 -3
  138. package/dist/assets/{python-UalezmyW.js → python-hpNfnPxJ.js} +1 -1
  139. package/dist/assets/{raf-schd.esm-nqmR3RY3.js → raf-schd.esm-rR8pKw9W.js} +1 -1
  140. package/dist/assets/{razor-CCom4Y0p.js → razor-BI0kEBq5.js} +1 -1
  141. package/dist/assets/{rotate-session-key-BVtPivm4.js → rotate-session-key-B6NXbgEc.js} +1 -1
  142. package/dist/assets/{runtime-ChvahMmk.js → runtime-CVAdQ8wh.js} +1 -1
  143. package/dist/assets/schema-Dsc1QRMh.js +1 -0
  144. package/dist/assets/sdk-BJ8ul4G_.js +1 -0
  145. package/dist/assets/{service-D0Nqh0MK.js → service-Cy6pWzv_.js} +1 -1
  146. package/dist/assets/{shorten-label-BtsExUKj.js → shorten-label-CvhqR616.js} +1 -1
  147. package/dist/assets/{simple-select-CwS4mJu8.js → simple-select-Dqs9YolY.js} +1 -1
  148. package/dist/assets/{spaces-DfyZsuc8.js → spaces-Dif7Qa2a.js} +1 -1
  149. package/dist/assets/{status-BniY81sT.js → status-DIqT0--1.js} +1 -1
  150. package/dist/assets/{status-CUxXICmB.js → status-Dcx3B-gc.js} +1 -1
  151. package/dist/assets/{switch-control-BKH5l4X4.js → switch-control-BLvkR0UT.js} +1 -1
  152. package/dist/assets/{table-icons-SEKPul8f.js → table-icons-DHCKcouf.js} +1 -1
  153. package/dist/assets/{team-azT9Jfpw.js → team-BV9bl_r7.js} +1 -1
  154. package/dist/assets/{toLower-BOQN0AT2.js → toLower-CL0ukT8_.js} +1 -1
  155. package/dist/assets/toUpper-CcZcHFDe.js +1 -0
  156. package/dist/assets/{traffic-DasUqpt9.js → traffic-DrN7qkrg.js} +1 -1
  157. package/dist/assets/{tsMode-DiIkFf_x.js → tsMode-Bqd_EuMj.js} +1 -1
  158. package/dist/assets/{typescript-85TY_MlI.js → typescript-BVOjm5kD.js} +1 -1
  159. package/dist/assets/{url-evaluation-CcvHRXPN.js → url-evaluation-B5iexDQo.js} +1 -1
  160. package/dist/assets/{url-join-BXDQZ2P_.js → url-join-DGMfgD17.js} +1 -1
  161. package/dist/assets/{use-mobile-CWjERnhJ.js → use-mobile-DvM8SqYH.js} +1 -1
  162. package/dist/assets/{use-mobile-DMNeuaxw.js → use-mobile-DyKd7giP.js} +1 -1
  163. package/dist/assets/{useAsync-CCNZX_yW.js → useAsync-DRXRxEMN.js} +1 -1
  164. package/dist/assets/{useAsyncRetry-DOwZIXtY.js → useAsyncRetry-l2Si2r3C.js} +1 -1
  165. package/dist/assets/{useLocalStorage-CEBeH0_O.js → useLocalStorage-CbBU4OS9.js} +1 -1
  166. package/dist/assets/{useThemeProps-Ck1ydGI4.js → useThemeProps-CRd6upHX.js} +1 -1
  167. package/dist/assets/{util-C4YCPi_k.js → util-CziUIk8v.js} +1 -1
  168. package/dist/assets/{wait-container-B7fAP1Xa.js → wait-container-CCe_xsZw.js} +1 -1
  169. package/dist/assets/{without-wallet-C-OpmM-K.js → without-wallet-DcI5W8cf.js} +1 -1
  170. package/dist/assets/wrap-locale-B1uKF2jP.js +1 -0
  171. package/dist/assets/{xml-CTVLNdi0.js → xml-86YzaLiM.js} +1 -1
  172. package/dist/assets/{yaml-Dx5B49fH.js → yaml-hqPmcqsD.js} +1 -1
  173. package/dist/index.html +1 -1
  174. package/dist/service-worker.js +1 -1
  175. package/package.json +1 -1
  176. package/dist/assets/ArrowDropDown-DenHrhc8.js +0 -1
  177. package/dist/assets/api-DksC2jZF.js +0 -1
  178. package/dist/assets/cloneDeep-DGATVnvO.js +0 -1
  179. package/dist/assets/emotion-cache.browser.esm-CqYOpxkG.js +0 -1
  180. package/dist/assets/engine-Cc942eOX.js +0 -1
  181. package/dist/assets/getValidReactChildren-D7wwEzgt.js +0 -1
  182. package/dist/assets/index-BmhCRjuT.js +0 -1
  183. package/dist/assets/omit-D3F-V5wK.js +0 -1
  184. package/dist/assets/schema-D90no3Xq.js +0 -1
  185. package/dist/assets/sdk-D033K402.js +0 -1
  186. package/dist/assets/toUpper-CS-AduT_.js +0 -1
  187. package/dist/assets/wrap-locale-DHJmdRca.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as P,fK as cl,c6 as _o,fL as ul,ft as Mo,fM as fl,cW as Lo,aF as ur,j as i,fN as dl,fO as pl,aT as Tt,fP as or,ez as Je,fQ as Qs,fR as ml,fS as hl,fT as gl,fU as bl,fV as yl,fW as Js,fX as xl,fY as to,fZ as vl,f_ as wl,f$ as Cl,g0 as Sl,eA as ro,g1 as ei,eB as jl,cJ as qn,eC as El,dF as Tl,g2 as Il,g3 as kl,V as Ie,bo as Be,aP as ut,g4 as ti,H as Me,Y as Ue,o as b,f as no,eO as ri,f5 as ni,n as xt,K as U,bZ as Pl,dL as Rl,bz as Dl,av as ft,g5 as oi,S as jr,bl as Er,g6 as si,a$ as Ol,$ as et,t as lt,b2 as Al,bB as qe,aV as Nt,E as oo,fe as _l,g7 as Ml,g8 as Ll,g9 as Nl,D as Lr,T as Pe,bh as so,a4 as rr,ga as Fl,X as Et,c0 as Vt,c1 as zt,cl as ii,dO as rt,e_ as ce,c3 as Bl,b9 as _e,de as Tr,d8 as ai,c4 as dt,c5 as Rt,R as kt,dK as li,db as Ul,gb as Nr,gc as ci,bE as it,bg as Ve,P as sr,bq as ui,Q as $n,at as fi,dH as ql,gd as Ir,bt as $l,au as ir,v as ze,C as bt,ge as Vl,h as Vn,aX as zl,w as Wl,x as Kl,s as He,p as fr,ad as dr,bF as Bt,gf as Hl,dG as Yl,dn as Gl,aH as gt,O as yt,dy as Zl,gg as Xl,eD as Ql,gh as di,gi as kr,gj as Jl,dI as ar,b as Se,W as io,dJ as ec,cw as pi,z as tc,bv as ao,bw as mi,bx as lo,dq as hr,aD as rc,fJ as hi,N as lr,aS as nc,gk as gi,aE as oc,a9 as sc,gl as ic,c_ as bi,gm as ac,bA as No,y as lc,gn as cc,bH as uc,U as fc,M as dc}from"./index-DYek3fDu.js";import{A as Ut}from"./Add-CRng1bvb.js";import{V as pc}from"./ViewList-D8N8QDcN.js";import{c as mc,H as co,g as hc}from"./index-BCFuar1a.js";import{v as Fo}from"./index-CtuC-y68.js";import{u as Ye}from"./team-azT9Jfpw.js";import{u as yi}from"./blocklet-CO_UEcgH.js";import{S as xi}from"./Search-CsPuhVY5.js";import{y as Fr}from"./index-C4pxl7E6.js";import{u as gc,C as Zt}from"./index.esm-uQodQ2iI.js";import{S as bc}from"./Google-C-fURhjk.js";import{A as yc,a as gr}from"./Autocomplete-Z7djk_ZA.js";import{U as xc}from"./UnfoldMore-DkTRhBQs.js";import{P as Pt}from"./permission-C4awFEcL.js";import{C as Br}from"./click-to-copy-CHgcysbr.js";import{s as vt,g as vc,S as wc,u as mt,a as vi,b as pr,c as wi,d as Ur,e as Ci,f as uo,P as Si,D as ji,h as Pr,M as tr,i as Ei,j as Bo,k as nr,v as Cc,l as Sc,m as Uo,n as jc,o as Ec,p as Tc,q as Ic,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Rc,T as Dc,B as fo,E as Oc,F as Ac,G as _c,H as Mc,I as Lc,J as Nc,K as Fc,L as br,N as Ft,O as Ti,Q as Bc,V as zn,R as Ii,U as Uc,W as Vo,X as qc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-D7bJvNHv.js";import{u as nt}from"./useThemeProps-Ck1ydGI4.js";import{a as zo,b as Hc,t as Yc,T as Gc}from"./html-title-B7gNlV0N.js";import{v as Ge}from"./index-CP2ySx69.js";import{V as Zc}from"./Verified-B6fUdHX1.js";import{D as Xc}from"./DeleteOutline-BASXPKuD.js";import{E as Wo}from"./ErrorOutline-D9sfPJGD.js";import{N as Qc}from"./index-C5QUiUfn.js";import{R as ki,a as Sr,D as Jc}from"./url-evaluation-CcvHRXPN.js";import{b as Wn}from"./sdk-D033K402.js";import{u as eu}from"./index-B9cmEwta.js";import{u as Pi}from"./use-mobile-CWjERnhJ.js";import{A as tu}from"./actions-DzRp1CK0.js";import{S as ru}from"./shorten-label-BtsExUKj.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const nu=mc(P.useLayoutEffect);var Ko={},Ho;function ou(){return Ho||(Ho=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,E=this.intersectionRect,C=E.width*E.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(E){return E.value+E.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,E,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[E-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(E){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(E);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,E=null,C=null;this.POLL_INTERVAL?E=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&&(E&&D.clearInterval(E),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=T){var I=e(d);I&&this._monitorIntersections(I.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,E=this._observationTargets.some(function(I){var D=I.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(!E){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var T=e(d);T&&this._unmonitorIntersections(T.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 E=y.element,C=v(E),T=this._rootContainsTarget(E),I=y.entry,D=d&&T&&this._computeTargetAndRootIntersection(E,C,p),N=null;this._rootContainsTarget(E)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:E,boundingClientRect:C,rootBounds:N,intersectionRect:D});I?d&&T?this._hasCrossedThreshold(I,B)&&this._queuedEntries.push(B):I&&I.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 E=p,C=m(d),T=!1;!T&&C;){var I=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(T=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,I=null,E=null):I=o:I=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,I=j(B,W)):(C=null,E=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(I=v(C))}if(I&&(E=h(I,E)),!E)break;C=C&&m(C)}return E}},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,E=p.body;d={top:0,left:0,right:y.clientWidth||E.clientWidth,width:y.clientWidth||E.clientWidth,bottom:y.clientHeight||E.clientHeight,height:y.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(E,C){return E.unit=="px"?E.value:E.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,E=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==E)for(var C=0;C<this.thresholds.length;C++){var T=this.thresholds[C];if(T==y||T==E||T<y!=T<E)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,E){typeof d.addEventListener=="function"?d.addEventListener(p,y,E):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,E){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,E):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),E=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),T=Math.min(d.right,p.right),I=T-C,D=E-y;return I>=0&&D>=0&&{top:y,bottom:E,left:C,right:T,width:I,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,E=p.left-d.left;return{top:y,left:E,height:p.height,width:p.width,bottom:y+p.height,right:E+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}()),Ko}ou();function su(e,t){var r={},n=r.callback,o=cl(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 ul(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=fl(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 iu=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"})),au=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")]),lu=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"})),cu=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"})),Ri=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)"})),Di=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"})),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",{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})),uu=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)"})))),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:"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,Yo;function fu(){return Yo||(Yo=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Go;function du(){if(Go)return Qr;Go=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,Zo;function pu(){return Zo||(Zo=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,Xo;function mu(){return Xo||(Xo=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 Qo;function hu(){return Qo||(Qo=1,function(e){const t=fu(),r=du(),n=pu(),o=mu(),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 E=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!E&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const T=E||C?p.split(m.arrayFormatSeparator).map(I=>f(I,m)):p===null?p:f(p,m);y[d]=T};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[E,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(E,g),C,p)}for(const y of Object.keys(p)){const E=p[y];if(typeof E=="object"&&E!==null)for(const C of Object.keys(E))E[C]=j(E[C],g);else p[y]=j(E,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,E)=>{const C=p[E];return C&&typeof C=="object"&&!Array.isArray(C)?y[E]=h(C):y[E]=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 E=Object.keys(y);return g.sort!==!1&&E.sort(g.sort),E.map(C=>{const T=m[C];return T===void 0?"":T===null?u(C,g):Array.isArray(T)?T.reduce(p(C),[]).join("&"):u(C,g)+"="+u(T,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}),E=Object.assign(y,m.query);let C=e.stringify(E,g);C&&(C=`?${C}`);let T=w(m.url);return m.fragmentIdentifier&&(T=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${T}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:E}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:E},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,E)=>!g(y,E);return e.pick(m,p,d)}}(Zr)),Zr}var tn=hu();const Xt=dl,gu={parseNumbers:!1,parseBooleans:!1},bu={skipNull:!1,skipEmptyString:!1},yu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},gu),c),a=Object.assign(Object.assign({},bu),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=pl(),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,Tt(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={},Jo;function _i(){if(Jo)return nn;Jo=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,E){return y.__proto__=E,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),E;if(d){var C=u(this).constructor;E=Reflect.construct(y,arguments,C)}else E=y.apply(this,arguments);return s(this,E)}}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,T,I){return typeof d=="string"?d:d(C,T,I)}var E=function(C){n(I,C);var T=c(I);function I(D,N,B){var W;return r(this,I),W=T.call(this,y(D,N,B)),W.code=g,W}return t(I)}(p);f[g]=E}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 E;if(x(g," argument"))E="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";E='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return E+=". Received type ".concat(e(p)),E},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 ",E=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),E){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,E-1).join(", "),y+=", and ".concat(d[E-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,es;function xu(){if(es)return on;es=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 A=m(this).constructor;Q=Reflect.construct(H,arguments,A)}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,A,R){var M=[null];M.push.apply(M,A);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=_i(),E=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 T(_,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 I="",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="",A=0,R="",M=!1,z=ge(_),L=z.split(`
1
+ import{r as P,fK as cl,c6 as _o,fL as ul,ft as Mo,fM as fl,cW as Lo,aF as ur,j as i,fN as dl,fO as pl,aT as Tt,fP as or,ez as Je,fQ as Qs,fR as ml,fS as hl,fT as gl,fU as bl,fV as yl,fW as Js,fX as xl,fY as to,fZ as vl,f_ as wl,f$ as Cl,g0 as Sl,eA as ro,g1 as ei,eB as jl,cJ as qn,eC as El,dF as Tl,g2 as Il,g3 as kl,V as Ie,bo as Be,aP as ut,g4 as ti,H as Me,Y as Ue,o as b,f as no,eO as ri,f5 as ni,n as xt,K as U,bZ as Pl,dL as Rl,bz as Dl,av as ft,g5 as oi,S as jr,bl as Er,g6 as si,a$ as Ol,$ as et,t as lt,b2 as Al,bB as qe,aV as Nt,E as oo,fe as _l,g7 as Ml,g8 as Ll,g9 as Nl,D as Lr,T as Pe,bh as so,a4 as rr,ga as Fl,X as Et,c0 as Vt,c1 as zt,cl as ii,dO as rt,e_ as ce,c3 as Bl,b9 as _e,de as Tr,d8 as ai,c4 as dt,c5 as Rt,R as kt,dK as li,db as Ul,gb as Nr,gc as ci,bE as it,bg as Ve,P as sr,bq as ui,Q as $n,at as fi,dH as ql,gd as Ir,bt as $l,au as ir,v as ze,C as bt,ge as Vl,h as Vn,aX as zl,w as Wl,x as Kl,s as He,p as fr,ad as dr,bF as Bt,gf as Hl,dG as Yl,dn as Gl,aH as gt,O as yt,dy as Zl,gg as Xl,eD as Ql,gh as di,gi as kr,gj as Jl,dI as ar,b as Se,W as io,dJ as ec,cw as pi,z as tc,bv as ao,bw as mi,bx as lo,dq as hr,aD as rc,fJ as hi,N as lr,aS as nc,gk as gi,aE as oc,a9 as sc,gl as ic,c_ as bi,gm as ac,bA as No,y as lc,gn as cc,bH as uc,U as fc,M as dc}from"./index-CCv_8omK.js";import{A as Ut}from"./Add-l7OvfXrD.js";import{V as pc}from"./ViewList-CvnWfuPG.js";import{c as mc,H as co,g as hc}from"./index-4-FW3N_0.js";import{v as Fo}from"./index-DcXoiIcd.js";import{u as Ye}from"./team-BV9bl_r7.js";import{u as yi}from"./blocklet-D2MB-zOx.js";import{S as xi}from"./Search-3L2yy5pr.js";import{y as Fr}from"./index-DkBdKcP-.js";import{u as gc,C as Zt}from"./index.esm-Bsyk9Gld.js";import{S as bc}from"./Google-cG0hx3oK.js";import{A as yc,a as gr}from"./Autocomplete-Bme-ElpV.js";import{U as xc}from"./UnfoldMore-DcBVcc2h.js";import{P as Pt}from"./permission-RtK6f5af.js";import{C as Br}from"./click-to-copy-D16LYOaz.js";import{s as vt,g as vc,S as wc,u as mt,a as vi,b as pr,c as wi,d as Ur,e as Ci,f as uo,P as Si,D as ji,h as Pr,M as tr,i as Ei,j as Bo,k as nr,v as Cc,l as Sc,m as Uo,n as jc,o as Ec,p as Tc,q as Ic,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Rc,T as Dc,B as fo,E as Oc,F as Ac,G as _c,H as Mc,I as Lc,J as Nc,K as Fc,L as br,N as Ft,O as Ti,Q as Bc,V as zn,R as Ii,U as Uc,W as Vo,X as qc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-AIDIzsfb.js";import{u as nt}from"./useThemeProps-CRd6upHX.js";import{a as zo,b as Hc,t as Yc,T as Gc}from"./html-title-xzTyg8m0.js";import{v as Ge}from"./index-BCEB7zAW.js";import{V as Zc}from"./Verified-BpzZH8QJ.js";import{D as Xc}from"./DeleteOutline-DmEDUBgP.js";import{E as Wo}from"./ErrorOutline-CUOja7My.js";import{N as Qc}from"./index-g_RqxcM4.js";import{R as ki,a as Sr,D as Jc}from"./url-evaluation-B5iexDQo.js";import{b as Wn}from"./sdk-BJ8ul4G_.js";import{u as eu}from"./index-BZw-IddS.js";import{u as Pi}from"./use-mobile-DvM8SqYH.js";import{A as tu}from"./actions-Dv4j7XcE.js";import{S as ru}from"./shorten-label-CvhqR616.js";import{U as Gr}from"./ua-parser-DP5omx3I.js";const nu=mc(P.useLayoutEffect);var Ko={},Ho;function ou(){return Ho||(Ho=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,E=this.intersectionRect,C=E.width*E.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(E){return E.value+E.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,E,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[E-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",y=p.split(/\s+/).map(function(E){var C=/^(-?\d*\.?\d+)(px|%)$/.exec(E);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,E=null,C=null;this.POLL_INTERVAL?E=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&&(E&&D.clearInterval(E),f(D,"resize",y,!0)),f(d,"scroll",y,!0),C&&C.disconnect()});var T=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=T){var I=e(d);I&&this._monitorIntersections(I.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,E=this._observationTargets.some(function(I){var D=I.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(!E){var C=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),C(),d!=y){var T=e(d);T&&this._unmonitorIntersections(T.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 E=y.element,C=v(E),T=this._rootContainsTarget(E),I=y.entry,D=d&&T&&this._computeTargetAndRootIntersection(E,C,p),N=null;this._rootContainsTarget(E)?(!n||this.root)&&(N=p):N=w();var B=y.entry=new c({time:l(),target:E,boundingClientRect:C,rootBounds:N,intersectionRect:D});I?d&&T?this._hasCrossedThreshold(I,B)&&this._queuedEntries.push(B):I&&I.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 E=p,C=m(d),T=!1;!T&&C;){var I=null,D=C.nodeType==1?window.getComputedStyle(C):{};if(D.display=="none")return null;if(C==this.root||C.nodeType==9)if(T=!0,C==this.root||C==t)n&&!this.root?!o||o.width==0&&o.height==0?(C=null,I=null,E=null):I=o:I=y;else{var N=m(C),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,y);B&&W?(C=N,I=j(B,W)):(C=null,E=null)}else{var ne=C.ownerDocument;C!=ne.body&&C!=ne.documentElement&&D.overflow!="visible"&&(I=v(C))}if(I&&(E=h(I,E)),!E)break;C=C&&m(C)}return E}},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,E=p.body;d={top:0,left:0,right:y.clientWidth||E.clientWidth,width:y.clientWidth||E.clientWidth,bottom:y.clientHeight||E.clientHeight,height:y.clientHeight||E.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(E,C){return E.unit=="px"?E.value:E.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,E=p.isIntersecting?p.intersectionRatio||0:-1;if(y!==E)for(var C=0;C<this.thresholds.length;C++){var T=this.thresholds[C];if(T==y||T==E||T<y!=T<E)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,E){typeof d.addEventListener=="function"?d.addEventListener(p,y,E):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,y)}function f(d,p,y,E){typeof d.removeEventListener=="function"?d.removeEventListener(p,y,E):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,y)}function h(d,p){var y=Math.max(d.top,p.top),E=Math.min(d.bottom,p.bottom),C=Math.max(d.left,p.left),T=Math.min(d.right,p.right),I=T-C,D=E-y;return I>=0&&D>=0&&{top:y,bottom:E,left:C,right:T,width:I,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,E=p.left-d.left;return{top:y,left:E,height:p.height,width:p.width,bottom:y+p.height,right:E+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}()),Ko}ou();function su(e,t){var r={},n=r.callback,o=cl(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 ul(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=fl(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 iu=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"})),au=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")]),lu=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"})),cu=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"})),Ri=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)"})),Di=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"})),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",{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})),uu=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)"})))),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:"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,Yo;function fu(){return Yo||(Yo=1,Xr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Xr}var Qr,Go;function du(){if(Go)return Qr;Go=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,Zo;function pu(){return Zo||(Zo=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,Xo;function mu(){return Xo||(Xo=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 Qo;function hu(){return Qo||(Qo=1,function(e){const t=fu(),r=du(),n=pu(),o=mu(),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 E=typeof p=="string"&&p.includes(m.arrayFormatSeparator),C=typeof p=="string"&&!E&&f(p,m).includes(m.arrayFormatSeparator);p=C?f(p,m):p;const T=E||C?p.split(m.arrayFormatSeparator).map(I=>f(I,m)):p===null?p:f(p,m);y[d]=T};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[E,C]=n(g.decode?y.replace(/\+/g," "):y,"=");C=C===void 0?null:["comma","separator"].includes(g.arrayFormat)?C:f(C,g),d(f(E,g),C,p)}for(const y of Object.keys(p)){const E=p[y];if(typeof E=="object"&&E!==null)for(const C of Object.keys(E))E[C]=j(E[C],g);else p[y]=j(E,g)}return g.sort===!1?p:(g.sort===!0?Object.keys(p).sort():Object.keys(p).sort(g.sort)).reduce((y,E)=>{const C=p[E];return C&&typeof C=="object"&&!Array.isArray(C)?y[E]=h(C):y[E]=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 E=Object.keys(y);return g.sort!==!1&&E.sort(g.sort),E.map(C=>{const T=m[C];return T===void 0?"":T===null?u(C,g):Array.isArray(T)?T.reduce(p(C),[]).join("&"):u(C,g)+"="+u(T,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}),E=Object.assign(y,m.query);let C=e.stringify(E,g);C&&(C=`?${C}`);let T=w(m.url);return m.fragmentIdentifier&&(T=`#${u(m.fragmentIdentifier,g)}`),`${d}${C}${T}`},e.pick=(m,g,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:y,fragmentIdentifier:E}=e.parseUrl(m,d);return e.stringifyUrl({url:p,query:o(y,g),fragmentIdentifier:E},d)},e.exclude=(m,g,d)=>{const p=Array.isArray(g)?y=>!g.includes(y):(y,E)=>!g(y,E);return e.pick(m,p,d)}}(Zr)),Zr}var tn=hu();const Xt=dl,gu={parseNumbers:!1,parseBooleans:!1},bu={skipNull:!1,skipEmptyString:!1},yu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},gu),c),a=Object.assign(Object.assign({},bu),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=pl(),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,Tt(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={},Jo;function _i(){if(Jo)return nn;Jo=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,E){return y.__proto__=E,y},o(g,d)}function c(g){var d=a();return function(){var y=u(g),E;if(d){var C=u(this).constructor;E=Reflect.construct(y,arguments,C)}else E=y.apply(this,arguments);return s(this,E)}}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,T,I){return typeof d=="string"?d:d(C,T,I)}var E=function(C){n(I,C);var T=c(I);function I(D,N,B){var W;return r(this,I),W=T.call(this,y(D,N,B)),W.code=g,W}return t(I)}(p);f[g]=E}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 E;if(x(g," argument"))E="The ".concat(g," ").concat(y," ").concat(S(d,"type"));else{var C=m(g,".")?"property":"argument";E='The "'.concat(g,'" ').concat(C," ").concat(y," ").concat(S(d,"type"))}return E+=". Received type ".concat(e(p)),E},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 ",E=d.length;switch(d=d.map(function(C){return'"'.concat(C,'"')}),E){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,E-1).join(", "),y+=", and ".concat(d[E-1]," arguments");break}return"".concat(y," must be specified")},TypeError),nn.codes=f,nn}var on,es;function xu(){if(es)return on;es=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 A=m(this).constructor;Q=Reflect.construct(H,arguments,A)}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,A,R){var M=[null];M.push.apply(M,A);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=_i(),E=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 T(_,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 I="",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="",A=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{aF as le,j as e,hw as ce,be as ue,bo as Z,V as G,gk as ee,f9 as te,aP as re,aT as u,H as E,hx as M,K as R,t as x,hy as V,aV as H,P as p,O as de,v as W,s as ie,aW as ne,z as me,y as fe,aH as he,r as B,p as xe,bE as pe}from"./index-DYek3fDu.js";import{T as ve}from"./html-title-B7gNlV0N.js";import{u as se,C as m}from"./index.esm-uQodQ2iI.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-BxCDdwz2.js";import{u as ae}from"./blocklet-CO_UEcgH.js";import{S as $}from"./Switch-DkUYQLr7.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function we(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=S;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function S(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function Te(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Ee=Te();const Se=ue(Ee),D={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.email||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...D},y?.settings?.notification?.email||{});q(oe),T&&E.success(t("oauth.saveSuccess"))}catch(y){if(T)E.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),E.success(t("notification.email.testSuccess"))}catch(y){E.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Se(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(W,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(W,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,U={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.pushKit||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...U},w?.settings?.notification?.pushKit||{});q(I),v&&E.success(t("oauth.saveSuccess"))}catch(w){if(v)E.error(w.message||t("oauth.saveFailed"));else throw w}}),N=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),E.success(t("notification.pushKit.testSuccess"))}catch(v){E.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(W,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(W,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
1
+ import{aF as le,j as e,hw as ce,be as ue,bo as Z,V as G,gk as ee,f9 as te,aP as re,aT as u,H as E,hx as M,K as R,t as x,hy as V,aV as H,P as p,O as de,v as W,s as ie,aW as ne,z as me,y as fe,aH as he,r as B,p as xe,bE as pe}from"./index-CCv_8omK.js";import{T as ve}from"./html-title-xzTyg8m0.js";import{u as se,C as m}from"./index.esm-Bsyk9Gld.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-DjVUQHBf.js";import{u as ae}from"./blocklet-D2MB-zOx.js";import{S as $}from"./Switch-B-AVsYNw.js";const Re=le(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function ke(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function we(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=S;var t=b(ce()),d=b(ke());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function S(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function Te(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(we());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Ee=Te();const Se=ue(Ee),D={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.email||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,T=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...D},y?.settings?.notification?.email||{});q(oe),T&&E.success(t("oauth.saveSuccess"))}catch(y){if(T)E.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,T)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:T,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),E.success(t("notification.email.testSuccess"))}catch(y){E.error(y.message||t("notification.email.testfailed"))}}),A=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:T=>{l.testReceiver=T.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(T){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),T()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?V(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Se(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),k=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),w=u(r=>r?.trim()&&!V(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(H,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(H,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?w:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(W,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(W,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,U={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.pushKit||{}),{handleSubmit:S,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,k,v=!0)=>{try{const{blocklet:w}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...U},w?.settings?.notification?.pushKit||{});q(I),v&&E.success(t("oauth.saveSuccess"))}catch(w){if(v)E.error(w.message||t("oauth.saveFailed"));else throw w}}),N=u(async(o,k)=>{try{i.isDirty&&await C(o,k,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,w=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:w}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),E.success(t("notification.pushKit.testSuccess"))}catch(v){E.error(v.message||t("notification.pushKit.testfailed"))}}),A=u((o,k)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,k),v()}})}),F=u(o=>{const k=o?.trim();return k?V(k)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:S(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(H,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(W,{variant:"outlined",color:"warning",onClick:S(A),disabled:!a,children:t("oauth.runTest")}),e.jsx(W,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function Ae(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{Ae as B};
@@ -1 +1 @@
1
- import{j as e,cG as j,K as v,A as P,r as a,p as S,ay as k,u as w,x as K,f as b,aP as E,dj as W,aT as i,b8 as _,w as U,Z as N,C as R,dk as T,dl as z}from"./index-DYek3fDu.js";import{p as c}from"./index-D_SuvjB5.js";function o({children:r,...s}){return e.jsx(j,{...s,did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(v,{sx:{maxWidth:"100%",height:"100%"},children:r})})}function F(){const r=P(),{t:s,locale:d}=a.useContext(S),{api:l}=k(),{info:u}=w(),p=K(u),f=b(),n=E({ready:!1,success:!1,error:null,invalidSession:!1}),h=W(),m=()=>{try{const t=new URL(window.location.href);if(t.hash.includes("invalid")){n.invalidSession=!0;return}const g=t.searchParams.get("__connect_url__"),y=T(g);if(!z(y))throw new Error;n.ready=!0}catch{n.invalidSession=!0,r("#invalid",{replace:!0})}};a.useLayoutEffect(()=>m(),[]);const x=i(t=>{n.error=t.message,r("#invalid",{replace:!0})}),C=i(()=>{n.success=!0});if(n.invalidSession)return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.invalidSession"),description:s("didConnect.common.invalidSessionDesc")})});if(n.error){const t=n.error;return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.connectionError"),description:t})})}return n.success?e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"info",icon:e.jsx(_,{style:{color:f.palette.success.main,fontSize:72}}),title:s("didConnect.genKeyPair.success"),description:s("didConnect.genKeyPair.successDesc")})}):n.ready?e.jsx(o,{children:e.jsx(U,{className:"connect",action:"gen-key-pair",checkFn:l.get,checkTimeout:10*60*1e3,extraParams:{sourceAppPid:h?.appPid,forceSwitch:!0},saveConnect:!1,forceConnected:!1,webWalletUrl:p,onSuccess:C,onError:x,locale:d,messages:{title:s("didConnect.genKeyPair.title"),scan:s("didConnect.genKeyPair.scan"),confirm:s("auth.confirm"),success:s("didConnect.genKeyPair.success")},popup:!0,open:!0,hideCloseButton:!0})},"ready"):e.jsx(N,{children:e.jsx(R,{})})}export{F as default};
1
+ import{j as e,cG as j,K as v,A as P,r as a,p as S,ay as k,u as w,x as K,f as b,aP as E,dj as W,aT as i,b8 as _,w as U,Z as N,C as R,dk as T,dl as z}from"./index-CCv_8omK.js";import{p as c}from"./index-yORTeDE5.js";function o({children:r,...s}){return e.jsx(j,{...s,did:window?.blocklet?.appPid||window?.env?.appPid,children:e.jsx(v,{sx:{maxWidth:"100%",height:"100%"},children:r})})}function F(){const r=P(),{t:s,locale:d}=a.useContext(S),{api:l}=k(),{info:u}=w(),p=K(u),f=b(),n=E({ready:!1,success:!1,error:null,invalidSession:!1}),h=W(),m=()=>{try{const t=new URL(window.location.href);if(t.hash.includes("invalid")){n.invalidSession=!0;return}const g=t.searchParams.get("__connect_url__"),y=T(g);if(!z(y))throw new Error;n.ready=!0}catch{n.invalidSession=!0,r("#invalid",{replace:!0})}};a.useLayoutEffect(()=>m(),[]);const x=i(t=>{n.error=t.message,r("#invalid",{replace:!0})}),C=i(()=>{n.success=!0});if(n.invalidSession)return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.invalidSession"),description:s("didConnect.common.invalidSessionDesc")})});if(n.error){const t=n.error;return e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"error",title:s("didConnect.common.connectionError"),description:t})})}return n.success?e.jsx(o,{children:e.jsx(c,{style:{backgroundColor:"transparent"},status:"info",icon:e.jsx(_,{style:{color:f.palette.success.main,fontSize:72}}),title:s("didConnect.genKeyPair.success"),description:s("didConnect.genKeyPair.successDesc")})}):n.ready?e.jsx(o,{children:e.jsx(U,{className:"connect",action:"gen-key-pair",checkFn:l.get,checkTimeout:10*60*1e3,extraParams:{sourceAppPid:h?.appPid,forceSwitch:!0},saveConnect:!1,forceConnected:!1,webWalletUrl:p,onSuccess:C,onError:x,locale:d,messages:{title:s("didConnect.genKeyPair.title"),scan:s("didConnect.genKeyPair.scan"),confirm:s("auth.confirm"),success:s("didConnect.genKeyPair.success")},popup:!0,open:!0,hideCloseButton:!0})},"ready"):e.jsx(N,{children:e.jsx(R,{})})}export{F as default};
@@ -1,4 +1,4 @@
1
- import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-DYek3fDu.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-CP2ySx69.js";import{M as V}from"./metric--Aw7wHv-.js";import{C as M}from"./click-to-copy-CHgcysbr.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
1
+ import{c as H,u as W,r as i,a as R,b as $,j as e,o as y,d as Q,e as Y,p as F,f as X,W as D,L as J,g as j,h as K,i as z,k,T as h,G as v,l as Z,m as B,s as q,C as ee}from"./index-CCv_8omK.js";import{f as ne}from"./index-BojVbZw0.js";import{v as U}from"./index-BCEB7zAW.js";import{M as V}from"./metric-BTKuNvY9.js";import{C as M}from"./click-to-copy-D16LYOaz.js";var se=H(function(a,d,r){return a+(r?" ":"")+d.toLowerCase()});const L=i.createContext({}),{Provider:ae,Consumer:he}=L;function te({children:a}){const{api:d,info:r}=W(),[u,l]=i.useState(null),[c,t]=i.useState(!1),[s,p]=i.useState([]),_=4,f=async({silent:o=!0,retries:m=_}={})=>{o||t(!0);try{l(null);const{users:x}=await d.getUsers({input:{teamDid:r.did,paging:{pageSize:100}}});t(!1),p(x)}catch(x){m>0?setTimeout(()=>f({silent:o,retries:m-1}),1e3):(t(!1),l(x))}};i.useEffect(()=>{f({silent:!1})},[]),R($.TeamEvents.userAdded,({teamDid:o})=>{o===r.did&&f()}),R($.TeamEvents.userRemoved,({teamDid:o,user:{did:m}})=>{o===r.did&&p(x=>x.filter(N=>N.did!==m))}),R($.TeamEvents.userUpdated,({teamDid:o})=>{o===r.did&&f()});const b={loading:c,error:u,users:s,refresh:f};return e.jsx(ae,{value:{users:b},children:a})}function re(){const{users:a}=i.useContext(L);return a}const g={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},oe=(a,d)=>{const[r,u]=i.useState(0),l=s=>s>=g.oneDay?g.oneDay:s>=g.oneHour?g.oneHour:s>=g.oneMin?g.oneMin:g.oneSecond,[c,t]=i.useState(l(a/1e3));return i.useEffect(()=>{const s=setInterval(()=>{u(r+c);const p=l(a/1e3+r+c);c!==p&&t(p)},c*1e3);return()=>clearInterval(s)},[c,r]),i.useEffect(()=>{u(0),t(l(a/1e3))},[a]),d(a+r*1e3)};y.number.isRequired,y.func;const ie=async a=>{const d=await a.getNodeEnv();return Object.assign({},d.info||{})};y.number.isRequired;y.string.isRequired,y.string.isRequired,y.string.isRequired;function le(){const{info:a,api:d,loading:r}=W(),{data:u,externalData:l}=Q(),{users:c}=re(),t=Y(()=>ie(d)),{t:s,locale:p}=i.useContext(F),_=X(),f=oe(+new Date-a.startAt,o=>{const m={compact:!0,verbose:!0,locale:B(p)};return Z(o,m)});let b=null;if(r)b=e.jsx(ee,{});else{const o=[{name:s("dashboard.nodeDid"),value:e.jsx(D,{did:a.did,showQrcode:!0})}];a.nodeOwner&&o.push({name:s("dashboard.ownerDid"),value:e.jsx(D,{did:a.nodeOwner.did,showQrcode:!0})});let m=[];a.launcher&&(m=[{name:s("common.did"),value:e.jsx(D,{did:a.launcher.did,showQrcode:!0})},{name:s("common.type"),value:a.launcher.type},{name:s("launcher.provider"),value:a.launcher.provider},{name:s("launcher.adminUrl"),value:e.jsx(J,{target:"_blank",href:a.launcher.url,underline:"hover",children:a.launcher.url})}]);const x=(n,w)=>!n&&!w?"-":n==="-"?n:!w||w==="-"?e.jsxs(h,{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}):e.jsxs(h,{component:"ul",children:[e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV4"}),e.jsx(M,{children:n})]}),e.jsxs("li",{className:"ip-item",children:[e.jsx(j,{children:"IPV6"}),e.jsx(M,{children:w})]})]}),N=()=>{const n=[{name:`${s("common.internalIp")}`,value:x(t.value.ip.internalV4,t.value.ip.internalV6)},{name:`${s("common.externalIp")}`,value:x(t.value.ip.externalV4,t.value.ip.externalV6)}];return t.value.docker?[]:n},T=t.value?[{name:`${s("common.version")}`,value:a.version},...N(),{name:`${s("common.os")}`,value:t.value.os},t.value.docker?{name:`${s("common.docker")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null,t.value.gitpod?{name:`${s("common.gitpod")}`,value:e.jsx(j,{type:"success",children:"Yes"})}:null].filter(Boolean):[];Array.isArray(K(t,"value.blockletEngines",null))&&t.value.blockletEngines.filter(n=>n.visible&&n.available).forEach(n=>{T.push({name:n.displayName,value:e.jsx(j,{type:"success",children:`${n.version}`||"N/A"})})});const G=c.length,A=c.filter(n=>n.approved).length;let P=G;A&&(P+=`<small><strong>${se(s("common.approved"))} ${A}</strong></small>`);let S=0,C=0;u&&(S=u.length,C=u.filter(n=>z.isBlockletRunning(n)).length),Array.isArray(l)&&(S+=l.length,C+=l.filter(n=>z.isBlockletRunning(n)).length);let I=S;C&&(I+=`<small>${s("common.running")} ${C}</small>`);const O=[{name:s("common.blocklets"),value:I},{name:s("common.members"),value:P},{name:s("common.uptime"),value:f},{name:s("common.created"),value:ne(new Date(a.createdAt).getTime(),B(p))}];let E=[];t.value&&t.value.disk&&Object.values(t.value.disk).some(n=>n>0)&&(E=[{name:s("common.blockletsStorage"),value:k(t.value.disk.blocklets||0).toUpperCase()},{name:s("common.dataStorage"),value:k(t.value.disk.data||0).toUpperCase()},{name:s("common.logStorage"),value:k(t.value.disk.log||0).toUpperCase()},{name:s("common.cacheStorage"),value:k(t.value.disk.cache||0).toUpperCase()},{name:s("common.coreStorage"),value:k(t.value.disk.app||0).toUpperCase()}]),b=e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.overview")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:O.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),E.length>0&&e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.storage")}),e.jsx(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:E.map(n=>e.jsx(v,{size:{xl:2,lg:3,md:4,sm:6,xs:6},children:e.jsx(V,{...n})},n.name))})]}),e.jsxs("div",{className:"section",children:[e.jsx(h,{className:"section__header",component:"h2",variant:"h4",color:"textPrimary",children:s("common.meta")}),e.jsxs(v,{className:"page-metrics",container:!0,spacing:{xs:2,sm:3,md:4,lg:5},children:[e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.dAddress")}),o.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name)),m.length>0&&e.jsxs("div",{style:{marginTop:_.spacing(8)},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.launcher")}),m.map(n=>e.jsx(U,{nameWidth:150,name:n.name,children:n.value},n.name))]})]},"address"),e.jsxs(v,{size:{lg:6,md:12,sm:12,xs:12},children:[e.jsx(h,{className:"section__header",component:"h3",variant:"h5",color:"textPrimary",children:s("common.env")}),T.map(n=>e.jsx(U,{valueComponent:"div",nameWidth:150,name:n.name,children:n.value},n.name))]},"environment")]})]})]})}return e.jsx(ce,{children:b})}const ce=q.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{be as c}from"./index-DYek3fDu.js";var n={exports:{}};/*!
1
+ import{be as c}from"./index-CCv_8omK.js";var n={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BEBlF9m9.js","./index-BojVbZw0.js","./index-CP2ySx69.js","./metric--Aw7wHv-.js","./click-to-copy-CHgcysbr.js","./index-BHh7dbJI.js","./useLocalStorage-CEBeH0_O.js","./ErrorOutline-D9sfPJGD.js","./index-BCFuar1a.js","./FilterList-C8mCq8zA.js","./CSSTransition-DnKCf5MC.js","./emotion-cache.browser.esm-CqYOpxkG.js","./index-DP781l3f.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-CZP345Xi.js","./index-C4pxl7E6.js","./TableSearch-Bj-RkYUe.js","./Search-CsPuhVY5.js","./Clear-BqdaPKpz.js","./MoreVert-DtyK0V7L.js","./status-CUxXICmB.js","./actions-CGozisCX.js","./url-evaluation-CcvHRXPN.js","./get-safe-url-CfVKsPMH.js","./ButtonGroup-DT2mnbzl.js","./getValidReactChildren-D7wwEzgt.js","./permission-C4awFEcL.js","./install-from-url-B1AvU1HE.js","./without-wallet-C-OpmM-K.js","./index-CS3jjVt-.js","./cloneDeep-DGATVnvO.js","./Autocomplete-Z7djk_ZA.js","./ListSubheader-CwlXohNJ.js","./ListItemButton-DWl1Vgm4.js","./Stepper-Rcrn65Du.js","./Launch-7PWsMLYi.js","./Add-CRng1bvb.js","./index-CtuC-y68.js","./schema-D90no3Xq.js","./index-wL5lEY63.js","./toLower-BOQN0AT2.js","./index-BuBuhUeR.js","./url-join-BXDQZ2P_.js","./wait-container-B7fAP1Xa.js","./use-mobile-CWjERnhJ.js","./DeleteOutline-BASXPKuD.js","./spaces-DfyZsuc8.js","./api-DksC2jZF.js","./index-DpjK8TAu.js","./item-MiuwuO0Y.js","./index-B9cmEwta.js","./KeyboardArrowDown-BcVS9Fto.js","./ChevronLeft-CrMq5UEk.js","./ChevronRight-Cuplw8Vk.js","./blocklet-CO_UEcgH.js","./Verified-B6fUdHX1.js","./VerifiedUser-Dk6hfaYJ.js","./Done-CB_qB8AL.js","./delete-confirm-vp8hd-iS.js","./item-G0iZE90Q.css","./engine-Cc942eOX.js","./ArrowDropDown-DenHrhc8.js","./Breadcrumbs-Cl3pYXuX.js","./index-CToqwOpp.js","./html-title-B7gNlV0N.js","./index.esm-uQodQ2iI.js","./switch-control-BKH5l4X4.js","./Switch-DkUYQLr7.js","./Link-DehBPVeZ.js","./actions-DzRp1CK0.js","./logo-BKA11TRi.js","./Refresh-DwyswQXH.js","./LoadingButton-MojQ_kdf.js","./rotate-session-key-BVtPivm4.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-B0MjzJqh.js","./Edit-Dtb20pIp.js","./CallMerge-ez9AWPJv.js","./CardContent-3_u5Glkf.js","./index-Bs1YhLgL.js","./download-bjQaUX52.js","./index-CjNtQPhT.js","./audit-logs-D0e8XQkm.js","./index-nb9hmF43.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DkTRhBQs.js","./shorten-label-BtsExUKj.js","./team-azT9Jfpw.js","./index-D8QdSuWP.js","./ViewList-D8N8QDcN.js","./Google-C-fURhjk.js","./AdapterDayjs-D7bJvNHv.js","./useThemeProps-Ck1ydGI4.js","./index-C5QUiUfn.js","./sdk-D033K402.js","./ua-parser-DP5omx3I.js","./index-D6RZzwG3.js","./edit.svg-D22FchVe.js","./list-header-CSw-R3Ib.js","./chain-Ss4dh3Ib.js","./ToggleButtonGroup-3zowoGqS.js","./lock.svg-BhUN8bfS.js","./useAsyncRetry-DOwZIXtY.js","./useAsync-CCNZX_yW.js","./index-ZgkIHsf0.css","./detail-DKJA4QJA.js","./index-D_SuvjB5.js","./index-uvbslqFd.js","./invitation-BGoJ_RU_.js","./wrap-locale-DHJmdRca.js","./index-ClhL9yaw.js","./index-CK2r1fQ4.js","./index-DPsk4bZI.js","./index-DdtHjUVR.js","./agreement-BPuCuaYS.js","./index-CLUNG8RH.js","./index-Cueikc61.js","./index-BA9z7d5M.js","./traffic-DasUqpt9.js","./iframe-Bcq1yggD.js","./index-DBii9-f-.js","./base-chart-DWYRF-Pp.js","./index-CYKLn0md.js","./index-DRYJ0xIl.js","./memory-CYZ4RyvC.js","./index-BzdGhRHG.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BzMgQhvT.js","./index-BojVbZw0.js","./index-BCEB7zAW.js","./metric-BTKuNvY9.js","./click-to-copy-D16LYOaz.js","./index-B-V1EiVF.js","./useLocalStorage-CbBU4OS9.js","./ErrorOutline-CUOja7My.js","./index-4-FW3N_0.js","./FilterList-xUYmSJ-Y.js","./CSSTransition-Cf_KzaPo.js","./emotion-cache.browser.esm-CdT-VIlA.js","./index-hu34K3US.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-BNz3Z5UN.js","./index-DkBdKcP-.js","./TableSearch-CAaRXXpO.js","./Search-3L2yy5pr.js","./Clear-Cz6Yzx0g.js","./MoreVert-BUlWqUnK.js","./status-Dcx3B-gc.js","./actions-DVOuh-Fv.js","./url-evaluation-B5iexDQo.js","./get-safe-url-B_yWzv49.js","./ButtonGroup-CMlvIctd.js","./getValidReactChildren-BQH98pcn.js","./permission-RtK6f5af.js","./install-from-url-4VtQ9_35.js","./without-wallet-DcI5W8cf.js","./index-DvBW_mZc.js","./cloneDeep-BOd1J0Sv.js","./Autocomplete-Bme-ElpV.js","./ListSubheader-l4UAKUMT.js","./ListItemButton-Cs40YHcx.js","./Stepper-D4Zig93k.js","./Launch-DITLracb.js","./Add-l7OvfXrD.js","./index-DcXoiIcd.js","./schema-Dsc1QRMh.js","./index-CprJrzzj.js","./toLower-CL0ukT8_.js","./index-Cacyj92F.js","./url-join-DGMfgD17.js","./wait-container-CCe_xsZw.js","./use-mobile-DvM8SqYH.js","./DeleteOutline-DmEDUBgP.js","./spaces-Dif7Qa2a.js","./api-CWyPHkC_.js","./index-BbWPK5o6.js","./item-CjFxs-Zt.js","./index-BZw-IddS.js","./KeyboardArrowDown-9mIUY7eq.js","./ChevronLeft-OivB2aTv.js","./ChevronRight-CV3PmYHH.js","./blocklet-D2MB-zOx.js","./Verified-BpzZH8QJ.js","./VerifiedUser-B-ONuNVC.js","./Done-BuJjZzMV.js","./delete-confirm-xUATcCih.js","./item-G0iZE90Q.css","./engine-7ix2eBzw.js","./ArrowDropDown-Br_oPfQI.js","./Breadcrumbs-Bf0qzrkp.js","./index-iLcm3xJO.js","./html-title-xzTyg8m0.js","./index.esm-Bsyk9Gld.js","./switch-control-BLvkR0UT.js","./Switch-B-AVsYNw.js","./Link-DGt16osR.js","./actions-Dv4j7XcE.js","./logo-BKA11TRi.js","./Refresh-CGgBW-me.js","./LoadingButton-D6uT1qbm.js","./rotate-session-key-B6NXbgEc.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-RoIvuAJE.js","./Edit-HxzEBQ9h.js","./CallMerge-DaaiIZ0e.js","./CardContent-gyrk9EIw.js","./index-KR6tqxjN.js","./download-O9kMYIC6.js","./index-jIRER_d6.js","./audit-logs-BjJ1_rVq.js","./index-CGtaecKe.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DcBVcc2h.js","./shorten-label-CvhqR616.js","./team-BV9bl_r7.js","./index-BlnAC-LC.js","./ViewList-CvnWfuPG.js","./Google-cG0hx3oK.js","./AdapterDayjs-AIDIzsfb.js","./useThemeProps-CRd6upHX.js","./index-g_RqxcM4.js","./sdk-BJ8ul4G_.js","./ua-parser-DP5omx3I.js","./index-aZqjDrOh.js","./edit.svg-B0aHUSZw.js","./list-header-D-U957cP.js","./chain-l1zX37z1.js","./ToggleButtonGroup-uvIn6Jyh.js","./lock.svg-Dz9J-uBq.js","./useAsyncRetry-l2Si2r3C.js","./useAsync-DRXRxEMN.js","./index-ZgkIHsf0.css","./detail-cazmKFj_.js","./index-yORTeDE5.js","./index-BddlETK4.js","./invitation-B5QYli1h.js","./wrap-locale-B1uKF2jP.js","./index-gqKcev8E.js","./index-B_8MhQGp.js","./index-0EXUatvL.js","./index-kFk_mggT.js","./agreement-ttzsGTtZ.js","./index-BftkyDmu.js","./index-4yUut_bV.js","./index-i28M3WTw.js","./traffic-DrN7qkrg.js","./iframe-DhbAf7eB.js","./index-DBii9-f-.js","./base-chart-AQkuFrPC.js","./index-CEPQQlo6.js","./index-DRYJ0xIl.js","./memory-r4Kexlry.js","./index-Bvn9twlG.js"])))=>i.map(i=>d[i]);
2
2
  function _mergeNamespaces(De,Me){for(var He=0;He<Me.length;He++){const Ge=Me[He];if(typeof Ge!="string"&&!Array.isArray(Ge)){for(const Je in Ge)if(Je!=="default"&&!(Je in De)){const Ye=Object.getOwnPropertyDescriptor(Ge,Je);Ye&&Object.defineProperty(De,Je,Ye.get?Ye:{enumerable:!0,get:()=>Ge[Je]})}}}return Object.freeze(Object.defineProperty(De,Symbol.toStringTag,{value:"Module"}))}(function(){const Me=document.createElement("link").relList;if(Me&&Me.supports&&Me.supports("modulepreload"))return;for(const Je of document.querySelectorAll('link[rel="modulepreload"]'))Ge(Je);new MutationObserver(Je=>{for(const Ye of Je)if(Ye.type==="childList")for(const Ze of Ye.addedNodes)Ze.tagName==="LINK"&&Ze.rel==="modulepreload"&&Ge(Ze)}).observe(document,{childList:!0,subtree:!0});function He(Je){const Ye={};return Je.integrity&&(Ye.integrity=Je.integrity),Je.referrerPolicy&&(Ye.referrerPolicy=Je.referrerPolicy),Je.crossOrigin==="use-credentials"?Ye.credentials="include":Je.crossOrigin==="anonymous"?Ye.credentials="omit":Ye.credentials="same-origin",Ye}function Ge(Je){if(Je.ep)return;Je.ep=!0;const Ye=He(Je);fetch(Je.href,Ye)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(De){return De&&De.__esModule&&Object.prototype.hasOwnProperty.call(De,"default")?De.default:De}function getAugmentedNamespace(De){if(Object.prototype.hasOwnProperty.call(De,"__esModule"))return De;var Me=De.default;if(typeof Me=="function"){var He=function Ge(){var Je=!1;try{Je=this instanceof Ge}catch{}return Je?Reflect.construct(Me,arguments,this.constructor):Me.apply(this,arguments)};He.prototype=Me.prototype}else He={};return Object.defineProperty(He,"__esModule",{value:!0}),Object.keys(De).forEach(function(Ge){var Je=Object.getOwnPropertyDescriptor(De,Ge);Object.defineProperty(He,Ge,Je.get?Je:{enumerable:!0,get:function(){return De[Ge]}})}),He}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -2900,4 +2900,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2900
2900
  padding-top: 16px;
2901
2901
  ${De=>De.scrollable?"":"overflow: hidden"};
2902
2902
  }
2903
- `;function GlobalSubscriber(){const{t:De}=V$2(),{session:Me}=useSessionContext$1(),{info:He,refresh:Ge}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Je,user:Ye})=>{Je===He.did&&Ye&&!Ye.approved&&Me&&Me.user&&Me.user.did===Ye.did&&(H$7.warning(De("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Je=>{Je.entityType==="node"&&Ge({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Ge({silent:!0})}),null}const authorize=({user:De,launchType:Me,nftId:He})=>{if(!De)return!1;if(Me==="serverless"){if(!He)throw new Error("nftId is required");return De?.controller?.nftId===He}return(De.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=De=>De.isGetBlocklet&&De.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async De=>{const Me=getBlockletUrls({blocklet:De});let He="";return He=Me.find(Ge=>{try{const{hostname:Je}=new URL(Ge);return urlEvaluationExports.isSlpDomain(Je)}catch(Je){return console.error(Je),!1}}),He||(He=await getAccessibleUrl(Me)),He},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:De}){const{session:Me}=useSessionContext$1(),{t:He}=V$2(),{api:Ge,info:Je}=useNodeContext(),[Ye]=useSearchParams(),Ze=Ye.get("launchType"),et=Ye.get("fromLauncher"),Qe=Ye.get("blocklet_meta_url")||"",nt=Ye.get("nftId")||"",tt=Ye.get("from")||"",rt=Ye.get("launcherSessionId")||"",ot=Ye.get("launcherUrl")||"",at=tt==="url",st=tt==="empty",ut=at||st?"":new URL(Qe).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Ye.get("appDid")||null,sessionId:Ye.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ze,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,At]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Je?getServerUrl(Je):"",[Je]),Pt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await Ge.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Tt=!!nt,St=Et<constantExports.BlockletStatus.installed,Rt=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:Rt,isRunning:kt,isExternal:Tt,isInstalling:St})),{isInstalled:Rt,isRunning:kt,isExternal:Tt,isInstalling:St}},Lt=async()=>{if(At(!0),st){ct(mt=>({...mt,meta:{title:Ye.get("title")||"",description:Ye.get("description")||""}})),At(!1);return}try{if(!Qe&&!st)throw new Error(He("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Tt,error:St}]=await Promise.all([Ge.getBlockletMetaFromUrl({input:{url:Qe,checkPrice:!0}}),rt?Ge.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:ot}}):Promise.resolve({})]);if(rt&&!Tt)throw new Error(`Launch session invalid: ${St}`);if(!mt)throw new Error(He("LaunchBlockletBlocklet.error.loadMetaFailed"));let Rt={};ht&&dt.appDid&&(Rt=await Pt(dt.appDid)),ct(kt=>({...kt,...Rt,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Tt}))}catch(mt){console.error(mt),gt(mt.message)}finally{At(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Lt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Pt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Dt={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Qe,fromLauncher:et,loading:Ct,error:yt,api:Ge,getBlocklet:Pt,setAppDid:ft,launcherUrl:ot,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ze};return jsxRuntimeExports.jsx(Provider$1,{value:Dt,children:De})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:De}){const He=useQuery().get("blocklet_meta_url"),Ge=useAsync(async()=>{const{data:Ye}=await axios.get(He);return Ye});if(Ge.loading)return jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Je={meta:Ge.value,error:Ge.error};return jsxRuntimeExports.jsx(Provider,{value:Je,children:De})}BlockletAppProvider.propTypes={children:o$h.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-BEBlF9m9.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-BHh7dbJI.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,2,32,33,34,35,36,37,38,39]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-wL5lEY63.js"),__vite__mapDeps([40,41,42,43,44,45,24,6,36,46,47,48,20,16]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DpjK8TAu.js"),__vite__mapDeps([49,6,50,51,52,53,54,18,16,55,32,33,56,57,37,36,58,46,59,4,20,24,25,26,60,61,27,62,63]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-CToqwOpp.js"),__vite__mapDeps([64,65,62,66,67,68,27,8,9,10,11,12,13,14,15,16,17,18,19,20,69,70,23,59,4,2,71,6,72,73,74,75,37,21,76,54,77,78,79]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Bs1YhLgL.js"),__vite__mapDeps([80,81,25,26,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CjNtQPhT.js"),__vite__mapDeps([82,65,83,16,17,18,19,6,84,85,86,87,88,89,55,23,90,37,91,8,9,10,11,12,13,14,15,20,38,25,26,66,92,31,32,33,27,4,93,94,75,2,56,46,7,95,96,51,45,70,97,98,99,100,101,102,103,72,77,1,59,104,105,106]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-DKJA4QJA.js"),__vite__mapDeps([107,65,21,22,6,20,23,24,25,26,27,55,108,89,63]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-8muv7_Jd.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-LTqv_onD.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-uvbslqFd.js"),__vite__mapDeps([109,110,108,95,11,96,111,112,24]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-CK2r1fQ4.js"),__vite__mapDeps([113,91,58,95,11,111,112,24,35]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DPsk4bZI.js"),__vite__mapDeps([114,111,112,24]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-DdtHjUVR.js"),__vite__mapDeps([115,42,43,44,45,104,105,116,84,85,86,24,29,30,48,39,6,71,61]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CLUNG8RH.js"),__vite__mapDeps([117,108]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cueikc61.js"),__vite__mapDeps([118,110,108,95,11,96,111,112]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-BZK15J4S.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BA9z7d5M.js"),__vite__mapDeps([119,65,120,121,53,54,122,14,123,124,93,94,10,75,8,9,11,12,13,15,16,17,18,19,20,125,126,79,6,102,26]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-BzdGhRHG.js"),__vite__mapDeps([127,108]),import.meta.url));function useSharedContext(){const De=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:He}=d$d(),Ge=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Je=getWsClient();return Ge?Je.connect():Je.isConnected()&&Je.disconnect(),()=>{Je.isConnected()&&Je.disconnect()}},[Ge]),reactExports.useEffect(()=>{if(He)return()=>{};const Je=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Je),()=>{document.removeEventListener("visibilitychange",Je)}},[]),{node:De,session:Me}}function ProtectedApp(){const{t:De}=V$2(),{node:Me,session:He}=useSharedContext(),Ge=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Ge.pathname}${Ge.search}`)},[Ge]),reactExports.useEffect(()=>{He?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&He.logout()},[He?.user?.role]);const Je=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||He.loading)return jsxRuntimeExports.jsx(o$f,{children:Je});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!He.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Je});const Ye=jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ye,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${De("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:De("notification.title"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:De("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:De}){const{node:Me,session:He}=useSharedContext();return Me.loading||!He.initialized&&He.loading?jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):De}function App(){const{changeLocale:De}=V$2(),Me=useQuery();reactExports.useEffect(()=>{const Ge=Me.get("locale");Ge&&["zh","en"].includes(Ge)&&De(Ge)},[]);const He=jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:He,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const De=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:De,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(De){console.error("Error during service worker registration:",De)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,libExports$3 as F,Grid$1 as G,H$7 as H,Link$1 as I,BlockletAppAvatar as J,Box as K,Link as L,isEmpty as M,oe as N,Tooltip as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,V$2 as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$f as Z,CheckIcon$2 as _,useSubscription as a,urlPathFriendlyExports as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$3 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,normalizePathPrefix as aI,sortBy as aJ,getIp as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,useMemoizedFn as aT,checkInputByType as aU,FormControlLabel as aV,Stack$1 as aW,useAsync as aX,axios as aY,shouldCheckDomainStatus as aZ,formatMountPoint as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,getBlockletMetaUrl as az,constantExports as b,emphasize as b$,Menu as b0,checkIsWildcardDomain as b1,Popover as b2,Card as b3,formatToDate as b4,sortDomains as b5,C$9 as b6,Collapse as b7,CheckCircle as b8,styled as b9,f$7 as bA,Button as bB,createPassportSvg as bC,getWalletType as bD,useCreation as bE,BlockletAdminRoles as bF,isInstalling as bG,Badge as bH,createAppPassportSvg as bI,NavLink as bJ,__vitePreload as bK,SetCache as bL,arrayIncludes$1 as bM,arrayIncludesWith as bN,cacheHas as bO,baseUniq as bP,baseFlatten as bQ,baseRest as bR,last as bS,arrayFilter as bT,isArrayLikeObject as bU,t$a as bV,isDownloading as bW,getBlockletUrl as bX,getBlockletUrlParams as bY,ButtonBase as bZ,memoTheme as b_,isUrl as ba,__awaiter as bb,__generator as bc,__spread as bd,getDefaultExportFromCjs$1 as be,U$3 as bf,dayjs$1 as bg,Divider as bh,isCertificateMatch as bi,FormHelperText as bj,FormGroup as bk,o$c as bl,NodeContext as bm,useParams as bn,useNodeContext$1 as bo,uniqBy as bp,l as bq,e$c as br,l$p as bs,copy as bt,libExports$1 as bu,B$4 as bv,o$9 as bw,l$i as bx,BlockletAvatar as by,ClickAwayListener as bz,createCompounder as c,s$8 as c$,generateUtilityClasses as c0,generateUtilityClass as c1,useDefaultProps as c2,useSlotProps as c3,clsx$1 as c4,composeClasses as c5,__read as c6,toSlotDomain as c7,omit as c8,fixBlocklet as c9,d$d as cA,Avatar as cB,isFromWallet as cC,usePassportId as cD,isFunction$3 as cE,Container$3 as cF,K$4 as cG,getLauncherBaseURL as cH,SvgIcon as cI,Buffer$1 as cJ,parseURL as cK,withHttps as cL,useLaunchBlockletContext as cM,z$2 as cN,authorize as cO,ArrowForwardIcon as cP,isNewStoreUrl as cQ,getAccessibleUrl as cR,getBlockletLogoUrl as cS,t as cT,M$9 as cU,__spreadArrays as cV,__assign as cW,h$6 as cX,useLocation as cY,l$8 as cZ,useMount as c_,isProtectedRole as ca,baseOrderBy as cb,isArray$1 as cc,rootShouldForwardProp as cd,useFormControl as ce,createChainedFunction$1 as cf,useSlot as cg,capitalize$1 as ch,SwitchBase as ci,createSimplePaletteValueFilter as cj,useControlled as ck,useForkRef as cl,useId as cm,getBlockletUrls as cn,defaultCheckAccessible as co,urlEvaluationExports as cp,memoize as cq,ButtonGroupContext as cr,ButtonGroupButtonContext as cs,useNotificationContext as ct,utilExports as cu,NotificationList as cv,useRequest as cw,isNumber$3 as cx,useLatest as cy,dayjs as cz,useBlockletsContext as d,afterMain as d$,formatDateTime as d0,getExplorerLink as d1,patchJsxToLocale as d2,T$6 as d3,getSessionToken as d4,LinearProgress as d5,SvgLogo as d6,isNumber$1 as d7,useEnhancedEffect$1 as d8,debounce$2 as d9,requireJsxRuntime as dA,requirePropTypes as dB,requireReactDom as dC,isObject$3 as dD,require$$0$2 as dE,require$$5$1 as dF,requireConstant$1 as dG,$e$1 as dH,noop$1 as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,ownerWindow as da,useRtl as db,KeyboardArrowLeft as dc,KeyboardArrowRight as dd,useEventCallback$1 as de,ownerDocument as df,getCommonHtmlTitle as dg,HelmetExport as dh,requireReact as di,i$e as dj,te$2 as dk,se$1 as dl,InfoIcon$2 as dm,upperFirst as dn,camelCase as dp,Skeleton as dq,R$5 as dr,isArrayLike as ds,baseIteratee as dt,keys as du,toInteger as dv,baseFindIndex as dw,commonjsGlobal as dx,getAugmentedNamespace as dy,emotionUtils_browser_esm as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$4 as eA,requireLib$5 as eB,requireLib$3 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireCryptoBrowserify as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,darken as fA,slotShouldForwardProp as fB,requireNormalizePathPrefix as fC,debounce as fD,useInterval as fE,formatTime as fF,CloseFullscreenIcon as fG,S$8 as fH,TablePagination as fI,parseAvatar as fJ,__rest as fK,useEffectWithTarget$1 as fL,__values as fM,tmp as fN,useUpdate as fO,requireUtil$6 as fP,requireObjectKeys$1 as fQ,requireShams$1 as fR,requireCallBound as fS,requireEsObjectAtoms as fT,requireDefineDataProperty as fU,requireHasPropertyDescriptors as fV,requireCallBind as fW,requireCallBound$1 as fX,requireSafeBuffer$1 as fY,requireBrowser$f as fZ,requireElliptic as f_,omitBy as fa,flat as fb,MenuIcon as fc,useDebounceFn as fd,Dialog as fe,OutlinedInput as ff,data as fg,Drawer as fh,parseQuery as fi,parseFilename as fj,stringifyParsedURL as fk,Grow as fl,Wt as fm,InputAdornment as fn,tooltipClasses as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,MoreHorizIcon as fu,clamp as fv,extractEventHandlers as fw,isFocusVisible as fx,isHostComponent as fy,lighten as fz,p$3 as g,isServerless as g$,requireRipemd160 as g0,requireLib$1 as g1,requireUtil$2 as g2,uniq as g3,useLocalStorageState as g4,InputBase as g5,useSize as g6,DialogTitle as g7,DialogContent as g8,DialogActions as g9,isPlainObject$2 as gA,require$$12 as gB,throttle$2 as gC,isUndefined$1 as gD,useTimeout as gE,Fade as gF,FocusTrap as gG,dialogClasses as gH,localizedFormatPlugin as gI,n$8 as gJ,purify as gK,Buffer$1$1 as gL,Q$2 as gM,require$$0$1 as gN,requireIsAbsoluteUrl as gO,requireDist$1 as gP,requireBrowser$3 as gQ,require$$3 as gR,resolveProps as gS,useThemeProps as gT,defaultTheme$1 as gU,THEME_ID as gV,en$2 as gW,isIndex as gX,useTheme$4 as gY,objectAssign as gZ,__extends as g_,pickBy as ga,shouldForwardProp as gb,resolveComponentProps as gc,getInviteLink as gd,e$e as ge,getIssuePassportLink as gf,uniqBy$1 as gg,isNodeOwner as gh,isSelf as gi,Q$1 as gj,I$3 as gk,Y$3 as gl,PQueue as gm,getBlockletAccessibleUrl as gn,A$1 as go,createPassportSvg$1 as gp,requireMs as gq,E$3 as gr,trim as gs,getBlockletSDK as gt,identity$1 as gu,arrayEach as gv,baseEach as gw,arrayMap as gx,baseMap as gy,baseForOwn as gz,get$1 as h,amber as h$,requireJsonStableStringify as h0,isFunction$2 as h1,omit$1 as h2,TableContext as h3,Tablelvl2Context as h4,g$e as h5,useUnmount as h6,isDidDomainOrIpEchoDomain as h7,ExpandLess as h8,validateDomain as h9,isBrowser$1 as hA,root$1 as hB,isNil$1 as hC,require$$11 as hD,requireHoistNonReactStatics_cjs as hE,_assertThisInitialized$1 as hF,reactDomExports as hG,loadIcon as hH,withoutLeadingSlash as hI,fetchSvgAsPng as hJ,blobToFile as hK,withoutTrailingSlash as hL,u$2 as hM,Ce as hN,t$g as hO,i as hP,R$8 as hQ,p$f as hR,usePrevious as hS,browserExports$1 as hT,BlockletSDK as hU,highlightExports as hV,funcExports as hW,data$y as hX,useSnackbar as hY,common$3 as hZ,green as h_,requireDist$2 as ha,requireAxios as hb,trim$1 as hc,requirePRetry as hd,TableCell as he,xe$1 as hf,getSystemDomains as hg,copyArray as hh,baseIndexOf as hi,ke as hj,useAppLogo as hk,getTransferAppLink as hl,requireBn$1 as hm,require$$2 as hn,updateWindowEnv as ho,M$5 as hp,isNil as hq,requireBase32 as hr,Re as hs,withTrailingSlash as ht,data$B as hu,keyframes as hv,requireAssertString as hw,isEmail as hx,isURL as hy,createUseStorageState as hz,utilExports$1 as i,n$5 as i$,SnackbarContent as i0,d$f as i1,t$1 as i2,useDebounce as i3,Y as i4,g$3 as i5,b as i6,g$9 as i7,withErrorBoundary as i8,z$1 as i9,hasRequiredSteps as iA,getStoreList as iB,commonjsRequire as iC,require_interface as iD,requireHasown as iE,requireBrowser$1 as iF,requireSemver as iG,require$$4$1 as iH,flatten as iI,trimEnd as iJ,base32Exports as iK,flatExports as iL,Xt as iM,AxiosError as iN,I$6 as iO,isNull as iP,orange as iQ,purple as iR,useStore as iS,createStore as iT,create$1 as iU,t$h as iV,clientExports as iW,ke$1 as iX,retry as iY,isNetworkError as iZ,requirePTimeout as i_,M$6 as ia,Be as ib,G$1 as ic,xe as id,useBlockletLogo as ie,isPlainObject$1 as ig,Toolbar as ih,_setPrototypeOf as ii,isString$3 as ij,FormLabel as ik,RelativeTime as il,isIncludeActivity as im,isUserActor as io,ActorAvatar as ip,SendComponentAvatar as iq,Activity as ir,NotificationContent$1 as is,AvatarGroup as it,requireCjs as iu,useTheme$2 as iv,baseAssignValue as iw,isValidClusterSize as ix,extractStatusUrlFromNextWorkflow as iy,pWaitFor as iz,jsxRuntimeExports as j,Modal as j0,GlobalStyles$2 as j1,filesize as k,prettyMs as l,formatLocale as m,useSessionContext as n,o$h as o,p$e as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
2903
+ `;function GlobalSubscriber(){const{t:De}=V$2(),{session:Me}=useSessionContext$1(),{info:He,refresh:Ge}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Je,user:Ye})=>{Je===He.did&&Ye&&!Ye.approved&&Me&&Me.user&&Me.user.did===Ye.did&&(H$7.warning(De("session.blockAccess"),{autoHideDuration:10*1e3}),Me.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Je=>{Je.entityType==="node"&&Ge({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Ge({silent:!0})}),null}const authorize=({user:De,launchType:Me,nftId:He})=>{if(!De)return!1;if(Me==="serverless"){if(!He)throw new Error("nftId is required");return De?.controller?.nftId===He}return(De.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=De=>De.isGetBlocklet&&De.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async De=>{const Me=getBlockletUrls({blocklet:De});let He="";return He=Me.find(Ge=>{try{const{hostname:Je}=new URL(Ge);return urlEvaluationExports.isSlpDomain(Je)}catch(Je){return console.error(Je),!1}}),He||(He=await getAccessibleUrl(Me)),He},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:De}){const{session:Me}=useSessionContext$1(),{t:He}=V$2(),{api:Ge,info:Je}=useNodeContext(),[Ye]=useSearchParams(),Ze=Ye.get("launchType"),et=Ye.get("fromLauncher"),Qe=Ye.get("blocklet_meta_url")||"",nt=Ye.get("nftId")||"",tt=Ye.get("from")||"",rt=Ye.get("launcherSessionId")||"",ot=Ye.get("launcherUrl")||"",at=tt==="url",st=tt==="empty",ut=at||st?"":new URL(Qe).origin,[dt,ct]=reactExports.useState({meta:null,appDid:Ye.get("appDid")||null,sessionId:Ye.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),ft=(mt,bt)=>ct(Et=>({...Et,appDid:mt,sessionId:bt})),ht=authorize({user:Me.user,launchType:Ze,nftId:nt}),[yt,gt]=reactExports.useState(null),[Ct,At]=reactExports.useState(!0),_t=reactExports.useMemo(()=>Je?getServerUrl(Je):"",[Je]),Pt=async mt=>{if(!mt)throw new Error("appDid should not be empty");const{blocklet:bt}=await Ge.getBlocklet({input:{did:mt,attachConfig:!1}});if(!bt)return null;const Et=constantExports.BlockletStatus[bt.status],Tt=!!nt,St=Et<constantExports.BlockletStatus.installed,Rt=Et===constantExports.BlockletStatus.installed,kt=Et===constantExports.BlockletStatus.running;return ct(wt=>({...wt,isInstalled:Rt,isRunning:kt,isExternal:Tt,isInstalling:St})),{isInstalled:Rt,isRunning:kt,isExternal:Tt,isInstalling:St}},Lt=async()=>{if(At(!0),st){ct(mt=>({...mt,meta:{title:Ye.get("title")||"",description:Ye.get("description")||""}})),At(!1);return}try{if(!Qe&&!st)throw new Error(He("common.invalidParam"));const[{meta:mt,isFree:bt,registryUrl:Et},{launcherSession:Tt,error:St}]=await Promise.all([Ge.getBlockletMetaFromUrl({input:{url:Qe,checkPrice:!0}}),rt?Ge.getLauncherSession({input:{launcherSessionId:rt,launcherUrl:ot}}):Promise.resolve({})]);if(rt&&!Tt)throw new Error(`Launch session invalid: ${St}`);if(!mt)throw new Error(He("LaunchBlockletBlocklet.error.loadMetaFailed"));let Rt={};ht&&dt.appDid&&(Rt=await Pt(dt.appDid)),ct(kt=>({...kt,...Rt,meta:mt,isFree:bt,registryUrl:Et,launcherSession:Tt}))}catch(mt){console.error(mt),gt(mt.message)}finally{At(!1)}};reactExports.useEffect(()=>{Me?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Me?.user?.controller?.nftId!==nt&&Me.logout(),Lt()},[]),reactExports.useEffect(()=>{Ct||!dt.meta||(ht?dt.appDid&&Pt(dt.appDid).catch(mt=>{H$7.error(mt.message)}):(ct(mt=>({...mt,isInstalled:!1,isRunning:!1,isExternal:!1})),gt(null)))},[ht]);const Dt={meta:dt.meta,isFree:dt.isFree,appDid:dt.appDid,sessionId:dt.sessionId,isInstalling:dt.isInstalling,isInstalled:dt.isInstalled,isExternal:dt.isExternal,isRunning:dt.isRunning,serverUrl:_t,storeUrl:dt.registryUrl||ut,blockletMetaUrl:Qe,fromLauncher:et,loading:Ct,error:yt,api:Ge,getBlocklet:Pt,setAppDid:ft,launcherUrl:ot,launcherSession:dt.launcherSession,launcherSessionId:rt,launchType:Ze};return jsxRuntimeExports.jsx(Provider$1,{value:Dt,children:De})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:De}){const He=useQuery().get("blocklet_meta_url"),Ge=useAsync(async()=>{const{data:Ye}=await axios.get(He);return Ye});if(Ge.loading)return jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Je={meta:Ge.value,error:Ge.error};return jsxRuntimeExports.jsx(Provider,{value:Je,children:De})}BlockletAppProvider.propTypes={children:o$h.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-BzMgQhvT.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-B-V1EiVF.js"),__vite__mapDeps([5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,2,32,33,34,35,36,37,38,39]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-CprJrzzj.js"),__vite__mapDeps([40,41,42,43,44,45,24,6,36,46,47,48,20,16]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-BbWPK5o6.js"),__vite__mapDeps([49,6,50,51,52,53,54,18,16,55,32,33,56,57,37,36,58,46,59,4,20,24,25,26,60,61,27,62,63]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-iLcm3xJO.js"),__vite__mapDeps([64,65,62,66,67,68,27,8,9,10,11,12,13,14,15,16,17,18,19,20,69,70,23,59,4,2,71,6,72,73,74,75,37,21,76,54,77,78,79]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-KR6tqxjN.js"),__vite__mapDeps([80,81,25,26,6]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-jIRER_d6.js"),__vite__mapDeps([82,65,83,16,17,18,19,6,84,85,86,87,88,89,55,23,90,37,91,8,9,10,11,12,13,14,15,20,38,25,26,66,92,31,32,33,27,4,93,94,75,2,56,46,7,95,96,51,45,70,97,98,99,100,101,102,103,72,77,1,59,104,105,106]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-cazmKFj_.js"),__vite__mapDeps([107,65,21,22,6,20,23,24,25,26,27,55,108,89,63]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DeYmBhXX.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-BhmdgQ6h.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BddlETK4.js"),__vite__mapDeps([109,110,108,95,11,96,111,112,24]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-B_8MhQGp.js"),__vite__mapDeps([113,91,58,95,11,111,112,24,35]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-0EXUatvL.js"),__vite__mapDeps([114,111,112,24]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-kFk_mggT.js"),__vite__mapDeps([115,42,43,44,45,104,105,116,84,85,86,24,29,30,48,39,6,71,61]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-BftkyDmu.js"),__vite__mapDeps([117,108]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-4yUut_bV.js"),__vite__mapDeps([118,110,108,95,11,96,111,112]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-BFqAcspj.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-i28M3WTw.js"),__vite__mapDeps([119,65,120,121,53,54,122,14,123,124,93,94,10,75,8,9,11,12,13,15,16,17,18,19,20,125,126,79,6,102,26]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-Bvn9twlG.js"),__vite__mapDeps([127,108]),import.meta.url));function useSharedContext(){const De=useNodeContext(),{session:Me}=useSessionContext$1(),{wallet:He}=d$d(),Ge=Me.user&&Me.user.did;return reactExports.useEffect(()=>{const Je=getWsClient();return Ge?Je.connect():Je.isConnected()&&Je.disconnect(),()=>{Je.isConnected()&&Je.disconnect()}},[Ge]),reactExports.useEffect(()=>{if(He)return()=>{};const Je=()=>{document.visibilityState==="visible"&&Me.refresh()};return document.addEventListener("visibilitychange",Je),()=>{document.removeEventListener("visibilitychange",Je)}},[]),{node:De,session:Me}}function ProtectedApp(){const{t:De}=V$2(),{node:Me,session:He}=useSharedContext(),Ge=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Ge.pathname}${Ge.search}`)},[Ge]),reactExports.useEffect(()=>{He?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&He.logout()},[He?.user?.role]);const Je=jsxRuntimeExports.jsx(CircularProgress,{});if(Me.loading||He.loading)return jsxRuntimeExports.jsx(o$f,{children:Je});if(!Me.info.initialized)return getAuthMethodExports.getServerAuthMethod(Me.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(Me.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!He.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Je});const Ye=jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ye,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${De("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:De("notification.title"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:De("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:De("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:De}){const{node:Me,session:He}=useSharedContext();return Me.loading||!He.initialized&&He.loading?jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):Me.info.upgradeSessionId?jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):De}function App(){const{changeLocale:De}=V$2(),Me=useQuery();reactExports.useEffect(()=>{const Ge=Me.get("locale");Ge&&["zh","en"].includes(Ge)&&De(Ge)},[]);const He=jsxRuntimeExports.jsx(o$f,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:He,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const De=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:De,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(De){console.error("Error during service worker registration:",De)}});export{$$4 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,libExports$3 as F,Grid$1 as G,H$7 as H,Link$1 as I,BlockletAppAvatar as J,Box as K,Link as L,isEmpty as M,oe as N,Tooltip as O,FormControl as P,InputLabel as Q,MenuItem as R,Select as S,Typography as T,Checkbox as U,V$2 as V,WrappedDidAddress as W,Alert as X,formatError as Y,o$f as Z,CheckIcon$2 as _,useSubscription as a,urlPathFriendlyExports as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$3 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,normalizePathPrefix as aI,sortBy as aJ,getIp as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,useMemoizedFn as aT,checkInputByType as aU,FormControlLabel as aV,Stack$1 as aW,useAsync as aX,axios as aY,shouldCheckDomainStatus as aZ,formatMountPoint as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$5 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,getBlockletMetaUrl as az,constantExports as b,emphasize as b$,Menu as b0,checkIsWildcardDomain as b1,Popover as b2,Card as b3,formatToDate as b4,sortDomains as b5,C$9 as b6,Collapse as b7,CheckCircle as b8,styled as b9,f$7 as bA,Button as bB,createPassportSvg as bC,getWalletType as bD,useCreation as bE,BlockletAdminRoles as bF,isInstalling as bG,Badge as bH,createAppPassportSvg as bI,NavLink as bJ,__vitePreload as bK,SetCache as bL,arrayIncludes$1 as bM,arrayIncludesWith as bN,cacheHas as bO,baseUniq as bP,baseFlatten as bQ,baseRest as bR,last as bS,arrayFilter as bT,isArrayLikeObject as bU,t$a as bV,isDownloading as bW,getBlockletUrl as bX,getBlockletUrlParams as bY,ButtonBase as bZ,memoTheme as b_,isUrl as ba,__awaiter as bb,__generator as bc,__spread as bd,getDefaultExportFromCjs$1 as be,U$3 as bf,dayjs$1 as bg,Divider as bh,isCertificateMatch as bi,FormHelperText as bj,FormGroup as bk,o$c as bl,NodeContext as bm,useParams as bn,useNodeContext$1 as bo,uniqBy as bp,l as bq,e$c as br,l$p as bs,copy as bt,libExports$1 as bu,B$4 as bv,o$9 as bw,l$i as bx,BlockletAvatar as by,ClickAwayListener as bz,createCompounder as c,s$8 as c$,generateUtilityClasses as c0,generateUtilityClass as c1,useDefaultProps as c2,useSlotProps as c3,clsx$1 as c4,composeClasses as c5,__read as c6,toSlotDomain as c7,omit as c8,fixBlocklet as c9,d$d as cA,Avatar as cB,isFromWallet as cC,usePassportId as cD,isFunction$3 as cE,Container$3 as cF,K$4 as cG,getLauncherBaseURL as cH,SvgIcon as cI,Buffer$1 as cJ,parseURL as cK,withHttps as cL,useLaunchBlockletContext as cM,z$2 as cN,authorize as cO,ArrowForwardIcon as cP,isNewStoreUrl as cQ,getAccessibleUrl as cR,getBlockletLogoUrl as cS,t as cT,M$9 as cU,__spreadArrays as cV,__assign as cW,h$6 as cX,useLocation as cY,l$8 as cZ,useMount as c_,isProtectedRole as ca,baseOrderBy as cb,isArray$1 as cc,rootShouldForwardProp as cd,useFormControl as ce,createChainedFunction$1 as cf,useSlot as cg,capitalize$1 as ch,SwitchBase as ci,createSimplePaletteValueFilter as cj,useControlled as ck,useForkRef as cl,useId as cm,getBlockletUrls as cn,defaultCheckAccessible as co,urlEvaluationExports as cp,memoize as cq,ButtonGroupContext as cr,ButtonGroupButtonContext as cs,useNotificationContext as ct,utilExports as cu,NotificationList as cv,useRequest as cw,isNumber$3 as cx,useLatest as cy,dayjs as cz,useBlockletsContext as d,afterMain as d$,formatDateTime as d0,getExplorerLink as d1,patchJsxToLocale as d2,T$6 as d3,getSessionToken as d4,LinearProgress as d5,SvgLogo as d6,isNumber$1 as d7,useEnhancedEffect$1 as d8,debounce$2 as d9,requireJsxRuntime as dA,requirePropTypes as dB,requireReactDom as dC,isObject$3 as dD,require$$0$2 as dE,require$$5$1 as dF,requireConstant$1 as dG,$e$1 as dH,noop$1 as dI,Paper as dJ,MenuList as dK,Popper as dL,_inheritsLoose$1 as dM,ReactDOM as dN,_objectWithoutPropertiesLoose$1 as dO,TransitionGroup as dP,ENTERED as dQ,ENTERING as dR,EXITING as dS,TransitionGroupContext as dT,Transition as dU,config$1 as dV,popperGenerator as dW,eventListeners as dX,popperOffsets$1 as dY,computeStyles$1 as dZ,applyStyles$1 as d_,ownerWindow as da,useRtl as db,KeyboardArrowLeft as dc,KeyboardArrowRight as dd,useEventCallback$1 as de,ownerDocument as df,getCommonHtmlTitle as dg,HelmetExport as dh,requireReact as di,i$e as dj,te$2 as dk,se$1 as dl,InfoIcon$2 as dm,upperFirst as dn,camelCase as dp,Skeleton as dq,R$5 as dr,isArrayLike as ds,baseIteratee as dt,keys as du,toInteger as dv,baseFindIndex as dw,commonjsGlobal as dx,getAugmentedNamespace as dy,emotionUtils_browser_esm as dz,useAsyncRetry as e,toString$2 as e$,afterRead as e0,afterWrite as e1,arrow$1 as e2,auto as e3,basePlacements as e4,beforeMain as e5,beforeRead as e6,beforeWrite as e7,bottom as e8,clippingParents as e9,requireLib$4 as eA,requireLib$5 as eB,requireLib$3 as eC,requireConstant$2 as eD,requireUrlPathFriendly as eE,b$8 as eF,data$s as eG,global$2 as eH,hoistStatics as eI,isEqual$3 as eJ,usePreviousProps as eK,setRef as eL,ClearIcon as eM,ArrowDropDownIcon as eN,Chip as eO,filledInputClasses as eP,inputBaseClasses as eQ,outlinedInputClasses as eR,inputClasses as eS,ListContext as eT,getListItemButtonUtilityClass as eU,listItemButtonClasses as eV,emotionReact_browser_esm as eW,emotionCache_browser_esm as eX,cloneDeep$1 as eY,forceReflow as eZ,_extends$2 as e_,createPopper as ea,createPopper$1 as eb,detectOverflow as ec,end as ed,flip$1 as ee,hide$1 as ef,left as eg,main as eh,modifierPhases as ei,offset$1 as ej,placements as ek,popper as el,preventOverflow$1 as em,read as en,reference as eo,right as ep,start as eq,top as er,variationPlacements as es,viewport as et,write as eu,requireReactIs as ev,emotionStyled_browser_esm as ew,emotionSerialize_esm as ex,emotionSheet_esm as ey,process$1 as ez,useTheme as f,requireCryptoBrowserify as f$,mergeThemeOptions as f0,StyledEngineProvider as f1,ThemeProvider as f2,ThemeProvider$3 as f3,s$3 as f4,CloseIcon as f5,isString$1 as f6,createTheme as f7,createAxios as f8,pick as f9,darken as fA,slotShouldForwardProp as fB,requireNormalizePathPrefix as fC,debounce as fD,useInterval as fE,formatTime as fF,CloseFullscreenIcon as fG,S$8 as fH,TablePagination as fI,parseAvatar as fJ,__rest as fK,useEffectWithTarget$1 as fL,__values as fM,tmp as fN,useUpdate as fO,requireUtil$6 as fP,requireObjectKeys$1 as fQ,requireShams$1 as fR,requireCallBound as fS,requireEsObjectAtoms as fT,requireDefineDataProperty as fU,requireHasPropertyDescriptors as fV,requireCallBind as fW,requireCallBound$1 as fX,requireSafeBuffer$1 as fY,requireBrowser$f as fZ,requireElliptic as f_,omitBy as fa,flat as fb,MenuIcon as fc,useDebounceFn as fd,Dialog as fe,OutlinedInput as ff,data as fg,Drawer as fh,parseQuery as fi,parseFilename as fj,stringifyParsedURL as fk,Grow as fl,Wt as fm,InputAdornment as fn,tooltipClasses as fo,requireEngine as fp,__spreadArray as fq,useEventListener as fr,le$7 as fs,getTargetElement as ft,MoreHorizIcon as fu,clamp as fv,extractEventHandlers as fw,isFocusVisible as fx,isHostComponent as fy,lighten as fz,p$3 as g,isServerless as g$,requireRipemd160 as g0,requireLib$1 as g1,requireUtil$2 as g2,uniq as g3,useLocalStorageState as g4,InputBase as g5,useSize as g6,DialogTitle as g7,DialogContent as g8,DialogActions as g9,isPlainObject$2 as gA,require$$12 as gB,throttle$2 as gC,isUndefined$1 as gD,useTimeout as gE,Fade as gF,FocusTrap as gG,dialogClasses as gH,localizedFormatPlugin as gI,n$8 as gJ,purify as gK,Buffer$1$1 as gL,Q$2 as gM,require$$0$1 as gN,requireIsAbsoluteUrl as gO,requireDist$1 as gP,requireBrowser$3 as gQ,require$$3 as gR,resolveProps as gS,useThemeProps as gT,defaultTheme$1 as gU,THEME_ID as gV,en$2 as gW,isIndex as gX,useTheme$4 as gY,objectAssign as gZ,__extends as g_,pickBy as ga,shouldForwardProp as gb,resolveComponentProps as gc,getInviteLink as gd,e$e as ge,getIssuePassportLink as gf,uniqBy$1 as gg,isNodeOwner as gh,isSelf as gi,Q$1 as gj,I$3 as gk,Y$3 as gl,PQueue as gm,getBlockletAccessibleUrl as gn,A$1 as go,createPassportSvg$1 as gp,requireMs as gq,E$3 as gr,trim as gs,getBlockletSDK as gt,identity$1 as gu,arrayEach as gv,baseEach as gw,arrayMap as gx,baseMap as gy,baseForOwn as gz,get$1 as h,amber as h$,requireJsonStableStringify as h0,isFunction$2 as h1,omit$1 as h2,TableContext as h3,Tablelvl2Context as h4,g$e as h5,useUnmount as h6,isDidDomainOrIpEchoDomain as h7,ExpandLess as h8,validateDomain as h9,isBrowser$1 as hA,root$1 as hB,isNil$1 as hC,require$$11 as hD,requireHoistNonReactStatics_cjs as hE,_assertThisInitialized$1 as hF,reactDomExports as hG,loadIcon as hH,withoutLeadingSlash as hI,fetchSvgAsPng as hJ,blobToFile as hK,withoutTrailingSlash as hL,u$2 as hM,Ce as hN,t$g as hO,i as hP,R$8 as hQ,p$f as hR,usePrevious as hS,browserExports$1 as hT,BlockletSDK as hU,highlightExports as hV,funcExports as hW,data$y as hX,useSnackbar as hY,common$3 as hZ,green as h_,requireDist$2 as ha,requireAxios as hb,trim$1 as hc,requirePRetry as hd,TableCell as he,xe$1 as hf,getSystemDomains as hg,copyArray as hh,baseIndexOf as hi,ke as hj,useAppLogo as hk,getTransferAppLink as hl,requireBn$1 as hm,require$$2 as hn,updateWindowEnv as ho,M$5 as hp,isNil as hq,requireBase32 as hr,Re as hs,withTrailingSlash as ht,data$B as hu,keyframes as hv,requireAssertString as hw,isEmail as hx,isURL as hy,createUseStorageState as hz,utilExports$1 as i,n$5 as i$,SnackbarContent as i0,d$f as i1,t$1 as i2,useDebounce as i3,Y as i4,g$3 as i5,b as i6,g$9 as i7,withErrorBoundary as i8,z$1 as i9,hasRequiredSteps as iA,getStoreList as iB,commonjsRequire as iC,require_interface as iD,requireHasown as iE,requireBrowser$1 as iF,requireSemver as iG,require$$4$1 as iH,flatten as iI,trimEnd as iJ,base32Exports as iK,flatExports as iL,Xt as iM,AxiosError as iN,I$6 as iO,isNull as iP,orange as iQ,purple as iR,useStore as iS,createStore as iT,create$1 as iU,t$h as iV,clientExports as iW,ke$1 as iX,retry as iY,isNetworkError as iZ,requirePTimeout as i_,M$6 as ia,Be as ib,G$1 as ic,xe as id,useBlockletLogo as ie,isPlainObject$1 as ig,Toolbar as ih,_setPrototypeOf as ii,isString$3 as ij,FormLabel as ik,RelativeTime as il,isIncludeActivity as im,isUserActor as io,ActorAvatar as ip,SendComponentAvatar as iq,Activity as ir,NotificationContent$1 as is,AvatarGroup as it,requireCjs as iu,useTheme$2 as iv,baseAssignValue as iw,isValidClusterSize as ix,extractStatusUrlFromNextWorkflow as iy,pWaitFor as iz,jsxRuntimeExports as j,Modal as j0,GlobalStyles$2 as j1,filesize as k,prettyMs as l,formatLocale as m,useSessionContext as n,o$h as o,p$e as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,lo as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
@@ -1,4 +1,4 @@
1
- import{cJ as $m,be as jL,g_ as oT,bb as Xm,bc as Zm,cW as qm,bf as JL,r as QL}from"./index-DYek3fDu.js";/*! *****************************************************************************
1
+ import{cJ as $m,be as jL,g_ as oT,bb as Xm,bc as Zm,cW as qm,bf as JL,r as QL}from"./index-CCv_8omK.js";/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any