@abtnode/blocklet-services 1.16.43-beta-20250510-123357-65a2988c → 1.16.44-beta-20250512-155818-937e465d

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 (189) hide show
  1. package/api/emails/_components/activity.js +2 -1
  2. package/api/index.js +5 -1
  3. package/api/libs/email.js +1 -1
  4. package/dist/assets/{AdapterDayjs-BiPHzcUP.js → AdapterDayjs-BD9H1lZ-.js} +1 -1
  5. package/dist/assets/{ArrowDropDown-Dghek9CI.js → ArrowDropDown-BrO-zDlb.js} +1 -1
  6. package/dist/assets/{CheckCircle-Dvhgeo9j.js → CheckCircle-Ds4QI0ey.js} +1 -1
  7. package/dist/assets/{ChevronLeft-DE33N57i.js → ChevronLeft-CnQaQ-rc.js} +1 -1
  8. package/dist/assets/{ChevronRight-BfbPIE2b.js → ChevronRight-a_2_x6Ew.js} +1 -1
  9. package/dist/assets/{Community-2MKVAbIk.js → Community-DW6DJTIs.js} +1 -1
  10. package/dist/assets/{DeleteOutline-B6efX_Fy.js → DeleteOutline-CFN4r-OG.js} +1 -1
  11. package/dist/assets/{Done-Ct5slWpT.js → Done-DqSE6KPe.js} +1 -1
  12. package/dist/assets/{Download-DKQGRFHf.js → Download-C_LRKzbG.js} +1 -1
  13. package/dist/assets/{Edit-BLsIdIOp.js → Edit-CbR4eoK8.js} +1 -1
  14. package/dist/assets/{EditIcon-CwTCQzs9.js → EditIcon-DxUWMw59.js} +1 -1
  15. package/dist/assets/{Email-DOy8vL0N.js → Email-DWueGk7t.js} +1 -1
  16. package/dist/assets/{Error-wpqrAfUT.js → Error-jEHdDLNk.js} +1 -1
  17. package/dist/assets/{ExpandLess-CJXkgMMr.js → ExpandLess-CkoEHpgk.js} +1 -1
  18. package/dist/assets/{Google-BbAgcDQ_.js → Google-DHEolkW-.js} +1 -1
  19. package/dist/assets/{Holiday-DT-VjgQP.js → Holiday-Dwvo6QkZ.js} +1 -1
  20. package/dist/assets/{InfoOutlined-Dy7jTc7H.js → InfoOutlined-DkG0jjos.js} +1 -1
  21. package/dist/assets/{Launch-DBKe0gh0.js → Launch-B-2Jomi6.js} +1 -1
  22. package/dist/assets/{LaunchOutlined-BIq6YUU8.js → LaunchOutlined-CXNijfqX.js} +1 -1
  23. package/dist/assets/{Location-C__VfR4D.js → Location-DUEOr9J2.js} +1 -1
  24. package/dist/assets/{LockIcon-DIGiHKHl.js → LockIcon-Cjg8jV1E.js} +1 -1
  25. package/dist/assets/{Meeting-Cn2X2Ix7.js → Meeting-CJaI_cKm.js} +1 -1
  26. package/dist/assets/{MoreHoriz-BxJelL2A.js → MoreHoriz-B6KdR0Y8.js} +1 -1
  27. package/dist/assets/{OffSick-Cnicwu8x.js → OffSick-C9VqqjrN.js} +1 -1
  28. package/dist/assets/{Phone-CoX1qzAs.js → Phone-DcHUzCa-.js} +1 -1
  29. package/dist/assets/{PlayArrow-C9IFmc-j.js → PlayArrow-BToG9L6q.js} +1 -1
  30. package/dist/assets/{QuestionMarkCircle-DCM9zW3a.js → QuestionMarkCircle-BPVDAm8U.js} +1 -1
  31. package/dist/assets/{ServerLogo-CfbYjQbP.js → ServerLogo-s6cfhx92.js} +1 -1
  32. package/dist/assets/{Timezone-CCdgxxpv.js → Timezone-B-Ho_Uno.js} +1 -1
  33. package/dist/assets/{TuneOutlined-CB7t_nGq.js → TuneOutlined-BR2H7Mxj.js} +1 -1
  34. package/dist/assets/{ViewList-B4hmqizo.js → ViewList-D8vtMKQz.js} +1 -1
  35. package/dist/assets/{WorkingRemotely-DWT54kH1.js → WorkingRemotely-lJ6DUMCR.js} +1 -1
  36. package/dist/assets/{access-control-RJu7xYI3.js → access-control-CCSlKYYz.js} +1 -1
  37. package/dist/assets/{actions-BCWb2ez1.js → actions-BjTeIzgS.js} +1 -1
  38. package/dist/assets/{add-component-core-DRAzXCeg.js → add-component-core-C7-Epxoj.js} +15 -15
  39. package/dist/assets/{add-resource-BDJuVU8K.js → add-resource-CJHw7ea0.js} +1 -1
  40. package/dist/assets/{addon-ygDS7Fug.js → addon--u4EErgw.js} +1 -1
  41. package/dist/assets/{advanced-CFME3Vrl.js → advanced-tG5IRVhQ.js} +1 -1
  42. package/dist/assets/{appearance-BqJwEmtt.js → appearance-bRLsRDs2.js} +1 -1
  43. package/dist/assets/audit-logs-B3-Fo3nR.js +35 -0
  44. package/dist/assets/{authorize-WekjQ3_M.js → authorize-DNTNbUhI.js} +1 -1
  45. package/dist/assets/{base32-BbrXtXL6.js → base32-_zEVBJUg.js} +1 -1
  46. package/dist/assets/{branding-CS-f1gMT.js → branding-By8KDk5Q.js} +6 -6
  47. package/dist/assets/{branding-BTfb8_b4.js → branding-hDeNkLC2.js} +2 -2
  48. package/dist/assets/{bundle-avatar-Db5l8MQ4.js → bundle-avatar-DYTLzqlT.js} +1 -1
  49. package/dist/assets/button-D8hoY4xw.js +1 -0
  50. package/dist/assets/click-to-copy-CFiGx48J.js +1 -0
  51. package/dist/assets/{collapse-Bn_BDlF9.js → collapse-QV_2gdtM.js} +1 -1
  52. package/dist/assets/{complete-BRApuFsV.js → complete-6R-n_Ra9.js} +2 -2
  53. package/dist/assets/{component-C7g4FGFm.js → component-Blsql2u0.js} +2 -2
  54. package/dist/assets/{config-C8AXD1JH.js → config-D6r2ZAFY.js} +2 -2
  55. package/dist/assets/{config-qG8JCIJ_.js → config-LE_EJolF.js} +1 -1
  56. package/dist/assets/{config-navigation-B7r4dV5S.js → config-navigation-B0nu0al4.js} +4 -4
  57. package/dist/assets/{config-space-CSKkMgqX.js → config-space-d34Deg7R.js} +1 -1
  58. package/dist/assets/{confirm-BvUfAlkx.js → confirm-DjTZImyg.js} +1 -1
  59. package/dist/assets/{connect-B2HOOYzS.js → connect-Cu2Ssv5A.js} +1 -1
  60. package/dist/assets/connect-K4ZmMu4L.js +5 -0
  61. package/dist/assets/{connect-to-BBtnljQ-.js → connect-to-BG15Vnyg.js} +1 -1
  62. package/dist/assets/{content-layout-DzqMXifY.js → content-layout-BzF-fNQz.js} +1 -1
  63. package/dist/assets/dashboard-BIOpvfj3.js +239 -0
  64. package/dist/assets/{delete-confirm-BBaXcAXg.js → delete-confirm-BzuBR6TW.js} +1 -1
  65. package/dist/assets/{did-address-BKBBjFqv.js → did-address-DjwPl1uy.js} +1 -1
  66. package/dist/assets/{domain-action-card-D-WETV-f.js → domain-action-card-Bcs_GWxq.js} +1 -1
  67. package/dist/assets/domain-wh85yL2O.js +9 -0
  68. package/dist/assets/domains-bzKFbARj.js +1 -0
  69. package/dist/assets/dot-C4hULxc0.js +7 -0
  70. package/dist/assets/{email-Bc5KLu5Q.js → email-BZVu6WP-.js} +1 -1
  71. package/dist/assets/{empty-spinner-BZlBh4vA.js → empty-spinner-n0_Ehns5.js} +1 -1
  72. package/dist/assets/{exchange-passport-DbNEDTaa.js → exchange-passport-8jdiPDph.js} +1 -1
  73. package/dist/assets/{fuel-DzWcrU-I.js → fuel-Dx_cnsCl.js} +1 -1
  74. package/dist/assets/{gen-access-key-D-ftFU9F.js → gen-access-key-CqKmmKML.js} +1 -1
  75. package/dist/assets/get-safe-url-B5RJTMjC.js +1 -0
  76. package/dist/assets/get-safe-url-Bk6PlU7n.js +1 -0
  77. package/dist/assets/{home-DXj5oFeO.js → home-DzCwBE8F.js} +1 -1
  78. package/dist/assets/{iframe-CIVgAJuH.js → iframe-DW7zzzTG.js} +1 -1
  79. package/dist/assets/{index-BemEiFHE.js → index-8CHxrfFP.js} +1 -1
  80. package/dist/assets/{index-CKheO_aT.js → index-B8r-LrrM.js} +1 -1
  81. package/dist/assets/{index-BMPpz8ni.js → index-B9nvthxv.js} +1 -1
  82. package/dist/assets/{index-BMD-pSqT.js → index-BDYaw77z.js} +1 -1
  83. package/dist/assets/{index-Ce2NSVmU.js → index-BIPRCLBG.js} +1 -1
  84. package/dist/assets/{index-DjLLC6N3.js → index-BYCeMwoO.js} +1 -1
  85. package/dist/assets/{index-D09AfnR1.js → index-Bju4sfVL.js} +1 -1
  86. package/dist/assets/{index-BVU8_1Ed.js → index-Btl_rz0J.js} +3 -3
  87. package/dist/assets/index-C-A13dEh.js +141 -0
  88. package/dist/assets/{index-g0L_1foA.js → index-C5SsKJ2n.js} +11 -11
  89. package/dist/assets/{index-CHDiquXf.js → index-CPfvVvHv.js} +11 -11
  90. package/dist/assets/{index-CUfP1M2j.js → index-Cc-e6lxg.js} +1 -1
  91. package/dist/assets/{index-wXCx8TFU.js → index-DcUhenm6.js} +1 -1
  92. package/dist/assets/{index-u-w3iMC9.js → index-DefO2n6z.js} +4 -4
  93. package/dist/assets/{index--HbH1n1_.js → index-DjEDWgGs.js} +1 -1
  94. package/dist/assets/{index-DF3gHUuW.js → index-Du38Vjy4.js} +4 -4
  95. package/dist/assets/{index-D64RNKdt.js → index-Dyl-XQ73.js} +6 -6
  96. package/dist/assets/{index-BmWVfEGP.js → index-HU4yqI-9.js} +1 -1
  97. package/dist/assets/index-Jnk92KZC.js +284 -0
  98. package/dist/assets/{index-Bxd86KLJ.js → index-SzdSxpkq.js} +4 -4
  99. package/dist/assets/index-USO5zFMh.js +55 -0
  100. package/dist/assets/{index-C0SLCehH.js → index-enM9Y412.js} +1 -1
  101. package/dist/assets/index-ioZVVJtg.js +113 -0
  102. package/dist/assets/{invitation-CKfllvl5.js → invitation-1bsb30Yz.js} +1 -1
  103. package/dist/assets/{invite-CCCSmPiy.js → invite-CALl83Zc.js} +1 -1
  104. package/dist/assets/{issue-passport-C3zUptls.js → issue-passport-BcStTsbv.js} +1 -1
  105. package/dist/assets/{item-CkcpHBHM.js → item-Bk_1JLeG.js} +1 -1
  106. package/dist/assets/{landing-page-q-KgqE9Q.js → landing-page-Due4o1uF.js} +1 -1
  107. package/dist/assets/{launch-result-message-BaU6oEsi.js → launch-result-message-DIYoykBK.js} +1 -1
  108. package/dist/assets/{layout-CyCulQBn.js → layout-D93HKT6w.js} +1 -1
  109. package/dist/assets/list-D96_O-GY.js +2 -0
  110. package/dist/assets/{list-header-CU9W30JD.js → list-header-HqBQs1yn.js} +1 -1
  111. package/dist/assets/list-rt6nku1-.js +236 -0
  112. package/dist/assets/localization-BUDtnbyU.js +1 -0
  113. package/dist/assets/{log-DNpJdgp3.js → log--AX8zo75.js} +1 -1
  114. package/dist/assets/{logger-CQ50TnpL.js → logger-BLZgTs_U.js} +1 -1
  115. package/dist/assets/{login-BKaJnfFX.js → login-WRcteY7r.js} +1 -1
  116. package/dist/assets/{login-oauth-callback-LJsgXC8E.js → login-oauth-callback-DZaPZfnA.js} +1 -1
  117. package/dist/assets/{logo-uploader-BYnd80uu.js → logo-uploader-CQCy6MG3.js} +3 -3
  118. package/dist/assets/{lost-passport-Bk0k4I4s.js → lost-passport-kJX7pEJj.js} +1 -1
  119. package/dist/assets/{open-window-DV0D-Mov.js → open-window--2G6Qjbq.js} +1 -1
  120. package/dist/assets/overview-CpKMiGEK.js +85 -0
  121. package/dist/assets/{page-header-CpNMTtn_.js → page-header-xyZktwBS.js} +1 -1
  122. package/dist/assets/{passport-item-BxfGrDcE.js → passport-item-CIvCqz_R.js} +1 -1
  123. package/dist/assets/{permission-BkNXA8B5.js → permission-BH1TY_tz.js} +1 -1
  124. package/dist/assets/{preferences-_jTjKHvU.js → preferences-CfmnTXfl.js} +1 -1
  125. package/dist/assets/{profile-embed-8w4_vg5a.js → profile-embed-ZtzRYgXv.js} +1 -1
  126. package/dist/assets/publish-resource-CCa5xfwz.js +1 -0
  127. package/dist/assets/{react-beautiful-dnd.esm-Cq_dOQ2z.js → react-beautiful-dnd.esm-7PS2VwOi.js} +1 -1
  128. package/dist/assets/runtime-eXYlg9Cz.js +1 -0
  129. package/dist/assets/sdk-9eXJSWHG.js +1 -0
  130. package/dist/assets/section-Cv4udilp.js +41 -0
  131. package/dist/assets/{security-BQbSLSOe.js → security-DM8MeY05.js} +3 -3
  132. package/dist/assets/{session-6XaVDQaE.js → session-CHdTc1We.js} +1 -1
  133. package/dist/assets/setup-BEsU41BB.js +30 -0
  134. package/dist/assets/{shorten-label-Dq7bVuNa.js → shorten-label-Cng55547.js} +1 -1
  135. package/dist/assets/{simple-select-C-wGUGQR.js → simple-select-CP_Svi_D.js} +1 -1
  136. package/dist/assets/{slicedToArray-vWe02CJE.js → slicedToArray-C7EPqaHf.js} +1 -1
  137. package/dist/assets/{spaces-Cp7TgoZP.js → spaces-BVG-t3ND.js} +1 -1
  138. package/dist/assets/{start-CHmWCQE9.js → start-CIjuDAiX.js} +1 -1
  139. package/dist/assets/{starting-progress-CdpkXOrK.js → starting-progress-CiLZpNpg.js} +1 -1
  140. package/dist/assets/{status-46dMQnxA.js → status-CUMJd-nJ.js} +1 -1
  141. package/dist/assets/{step-actions-Bu3Q5M4V.js → step-actions-CeJCmiCS.js} +1 -1
  142. package/dist/assets/{studio-BbeHx14I.js → studio-DikseKRr.js} +1 -1
  143. package/dist/assets/{switch-control-D6CqAlDY.js → switch-control-C5i52ixk.js} +1 -1
  144. package/dist/assets/{traffic-CY9Vj6w7.js → traffic-B5x_6GvF.js} +2 -2
  145. package/dist/assets/{transfer-CSeo2FaW.js → transfer-CTEHVklh.js} +1 -1
  146. package/dist/assets/{unsubscribe-BLaMmgbM.js → unsubscribe-Bi2IV-2n.js} +1 -1
  147. package/dist/assets/{use-blocklet-logo-sEJnYyNL.js → use-blocklet-logo-BEy8Tnso.js} +2 -2
  148. package/dist/assets/{use-mobile-BAjFH6d8.js → use-mobile-Boa_xu9A.js} +1 -1
  149. package/dist/assets/{use-mobile-Bh8CHBbH.js → use-mobile-DyX6Fl8Z.js} +1 -1
  150. package/dist/assets/useAsync-C8ydfEEr.js +1 -0
  151. package/dist/assets/useAsync-CMWsznMW.js +1 -0
  152. package/dist/assets/{useLocalStorage-C6U1Aqya.js → useLocalStorage-DVnkpneF.js} +1 -1
  153. package/dist/assets/user-center-DcXdjtRX.js +76 -0
  154. package/dist/assets/{util-Bg0WSJ-t.js → util-CEAObyfj.js} +1 -1
  155. package/dist/assets/{util-RWes6RwK.js → util-MKllNgBs.js} +1 -1
  156. package/dist/assets/{vendor-arcblock-CN2B_oTr.js → vendor-arcblock-uz9DVywv.js} +45 -45
  157. package/dist/assets/{vendor-mui-core-UZpb7wT7.js → vendor-mui-core-D_bnq77o.js} +1 -1
  158. package/dist/assets/{vendor-mui-x-whuSO90H.js → vendor-mui-x-R-0SFz4c.js} +1 -1
  159. package/dist/assets/{vendor-ux-did-connect-TEE6cGq6.js → vendor-ux-did-connect-DHrruicZ.js} +136 -136
  160. package/dist/assets/{wrap-locale-DZ79GW_G.js → wrap-locale-B9TkXFQe.js} +1 -1
  161. package/dist/index.html +4 -4
  162. package/dist/service-worker.js +1 -1
  163. package/dist/share/shared-bridge.html +4 -4
  164. package/package.json +32 -32
  165. package/dist/assets/audit-logs-CtFZQHby.js +0 -35
  166. package/dist/assets/button-DotKXyjc.js +0 -1
  167. package/dist/assets/click-to-copy-BxhgzyYL.js +0 -1
  168. package/dist/assets/connect-DGPdKMcu.js +0 -5
  169. package/dist/assets/dashboard-C124DXmc.js +0 -279
  170. package/dist/assets/domain-DTrwCkop.js +0 -9
  171. package/dist/assets/domains-BxkmGeZE.js +0 -1
  172. package/dist/assets/dot-C05enzim.js +0 -7
  173. package/dist/assets/get-safe-url-2RcRY8gU.js +0 -1
  174. package/dist/assets/get-safe-url-CEvgWyL5.js +0 -1
  175. package/dist/assets/index-9ixwCOkw.js +0 -113
  176. package/dist/assets/index-B_fwtN9z.js +0 -55
  177. package/dist/assets/index-CyUXddLG.js +0 -284
  178. package/dist/assets/index-DsT9i24r.js +0 -141
  179. package/dist/assets/list-D1dIr8Je.js +0 -2
  180. package/dist/assets/list-TP-VNuzL.js +0 -236
  181. package/dist/assets/localization-BXLZxF1J.js +0 -1
  182. package/dist/assets/overview-UIMGVO1S.js +0 -85
  183. package/dist/assets/publish-resource-CcM3RwPR.js +0 -1
  184. package/dist/assets/relative-time-Cl7lOTkO.js +0 -1
  185. package/dist/assets/runtime-BVDdcpyT.js +0 -1
  186. package/dist/assets/sdk-7yPC_DtN.js +0 -1
  187. package/dist/assets/setup-CifjXQIf.js +0 -30
  188. package/dist/assets/useAsync-DV3NyLhI.js +0 -1
  189. package/dist/assets/user-center-BHyd-rRF.js +0 -76
@@ -1 +1 @@
1
- import{j as s,au as m,aa as r,T as u,ak as p,y as x}from"./vendor-mui-core-UZpb7wT7.js";import{a as f,i as h,l as j}from"./vendor-hooks-rDgu5KV9.js";import{h as d}from"./vendor-react-DEoibe3W.js";import{j as y,aW as w,aX as C,u as v}from"./vendor-ux-did-connect-TEE6cGq6.js";import{E as A}from"./vendor-arcblock-CN2B_oTr.js";import{A as L}from"./vendor-utils-rHXShPKm.js";import"./lottie-web-jYmAQWuC.js";const M="authorization_response",E=C();function D(){const{t:e}=v(),[t]=d(),a=()=>{window.close()};return j(()=>{const i=t.get("state"),l=t.get("code"),n={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(n,o.origin),setTimeout(()=>{window.close()},2e3)}catch(o){console.error("Invalid login caller",o)}}),s.jsx(p,{severity:"success",children:s.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"center",gap:1},children:[e("login.needManualClose"),s.jsx(r,{sx:{textAlign:"center"},children:s.jsx(x,{variant:"outlined",size:"small",onClick:a,children:e("login.closeWindow")})})]})})}function N(){var c;const{blocklet:e}=window,[t]=d(),a=t.get("error"),i=t.get("error_description"),l=t.get("state"),n=f({errorMesage:"",loading:!0});h(async()=>{if(a)n.errorMesage=i,n.loading=!1;else try{const g=new URL(l);(await E.federated.getTrustedDomains()).includes(g.host)||(n.errorMesage="Invalid login caller")}catch{n.errorMesage="Invalid login caller"}finally{n.loading=!1}},[a,i,l]);const o=L(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${((c=e==null?void 0:e.meta)==null?void 0:c.version)||""}`);return s.jsx(m,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"center",alignContent:"center"},children:s.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",margin:"auto",paddingBottom:{sx:0,md:15}},children:[s.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.5},children:[s.jsx(r,{component:"img",src:o,alt:`${(e==null?void 0:e.appName)||"site"} logo`,sx:{width:80}}),s.jsx(u,{variant:"h6",component:"p",children:e==null?void 0:e.appName})]}),n.loading?n.errorMesage?s.jsx(A,{error:{message:n.errorMesage}}):s.jsx(D,{}):null,s.jsx(w,{sx:{mt:4}})]})})}export{N as default};
1
+ import{j as s,au as m,aa as r,T as u,ak as p,y as x}from"./vendor-mui-core-D_bnq77o.js";import{a as f,i as h,l as j}from"./vendor-hooks-rDgu5KV9.js";import{h as d}from"./vendor-react-DEoibe3W.js";import{j as y,aW as w,aX as C,u as v}from"./vendor-ux-did-connect-DHrruicZ.js";import{E as A}from"./vendor-arcblock-uz9DVywv.js";import{A as L}from"./vendor-utils-rHXShPKm.js";import"./lottie-web-jYmAQWuC.js";const M="authorization_response",E=C();function D(){const{t:e}=v(),[t]=d(),a=()=>{window.close()};return j(()=>{const i=t.get("state"),l=t.get("code"),n={type:M,response:{code:l}};if(window.opener)try{const o=new URL(i);window.opener.postMessage(n,o.origin),setTimeout(()=>{window.close()},2e3)}catch(o){console.error("Invalid login caller",o)}}),s.jsx(p,{severity:"success",children:s.jsxs(r,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignContent:"center",gap:1},children:[e("login.needManualClose"),s.jsx(r,{sx:{textAlign:"center"},children:s.jsx(x,{variant:"outlined",size:"small",onClick:a,children:e("login.closeWindow")})})]})})}function N(){var c;const{blocklet:e}=window,[t]=d(),a=t.get("error"),i=t.get("error_description"),l=t.get("state"),n=f({errorMesage:"",loading:!0});h(async()=>{if(a)n.errorMesage=i,n.loading=!1;else try{const g=new URL(l);(await E.federated.getTrustedDomains()).includes(g.host)||(n.errorMesage="Invalid login caller")}catch{n.errorMesage="Invalid login caller"}finally{n.loading=!1}},[a,i,l]);const o=L(y.WELLKNOWN_SERVICE_PATH_PREFIX,`/blocklet/logo?&version=${((c=e==null?void 0:e.meta)==null?void 0:c.version)||""}`);return s.jsx(m,{sx:{display:"flex",flexDirection:"column",minHeight:"100vh",justifyContent:"center",alignContent:"center"},children:s.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,minHeight:"100vh",margin:"auto",paddingBottom:{sx:0,md:15}},children:[s.jsxs(r,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.5},children:[s.jsx(r,{component:"img",src:o,alt:`${(e==null?void 0:e.appName)||"site"} logo`,sx:{width:80}}),s.jsx(u,{variant:"h6",component:"p",children:e==null?void 0:e.appName})]}),n.loading?n.errorMesage?s.jsx(A,{error:{message:n.errorMesage}}):s.jsx(D,{}):null,s.jsx(w,{sx:{mt:4}})]})})}export{N as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-BVU8_1Ed.js","assets/vendor-ux-did-connect-TEE6cGq6.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-rHXShPKm.js","assets/vendor-mui-core-UZpb7wT7.js","assets/vendor-hooks-rDgu5KV9.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/vendor-arcblock-CN2B_oTr.js","assets/index-Bs1kxR8_.js","assets/index-u-w3iMC9.js","assets/index-DOq-_YXu.css","assets/index-DVQCgvFb.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
- import{ah as s,aa as l,H as o,j as r}from"./vendor-mui-core-UZpb7wT7.js";import{_ as E}from"./vendor-arcblock-CN2B_oTr.js";import{r as h}from"./vendor-react-DEoibe3W.js";import{A as q,n as F}from"./vendor-utils-rHXShPKm.js";import{c as O}from"./index-DVQCgvFb.js";import{u as S}from"./vendor-ux-did-connect-TEE6cGq6.js";const _=s.span`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Btl_rz0J.js","assets/vendor-ux-did-connect-DHrruicZ.js","assets/vendor-react-DEoibe3W.js","assets/vendor-utils-rHXShPKm.js","assets/vendor-mui-core-D_bnq77o.js","assets/vendor-hooks-rDgu5KV9.js","assets/lottie-web-jYmAQWuC.js","assets/vendor-ux-did-connect-DpSGLE7B.css","assets/vendor-arcblock-uz9DVywv.js","assets/index-Bs1kxR8_.js","assets/index-DefO2n6z.js","assets/index-DOq-_YXu.css","assets/index-DVQCgvFb.js","assets/index-AgKpYdvC.css"])))=>i.map(i=>d[i]);
2
+ import{ah as s,aa as l,H as o,j as r}from"./vendor-mui-core-D_bnq77o.js";import{_ as E}from"./vendor-arcblock-uz9DVywv.js";import{r as h}from"./vendor-react-DEoibe3W.js";import{A as q,n as F}from"./vendor-utils-rHXShPKm.js";import{c as O}from"./index-DVQCgvFb.js";import{u as S}from"./vendor-ux-did-connect-DHrruicZ.js";const _=s.span`
3
3
  color: ${e=>e.theme.palette.error.main};
4
4
  &::before {
5
5
  content: '*';
@@ -102,7 +102,7 @@ import{ah as s,aa as l,H as o,j as r}from"./vendor-mui-core-UZpb7wT7.js";import{
102
102
  }
103
103
  }
104
104
  }
105
- `,C=h.lazy(()=>E(()=>import("./index-BVU8_1Ed.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(e=>({default:e.Uploader}))),U="/blocklet/logo/upload",m=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function f({url:e,height:g,width:x,enabled:p,allowSVG:b,type:i,did:a,prefix:w,headers:v,aspectRatio:d,minWidth:k,minHeight:y,onUploaded:R,children:u}){const{t:$,locale:P}=S(),n=h.useRef(null),c=()=>{var t;(t=n.current)==null||t.open()},j=()=>{var t;R(),(t=n.current)==null||t.close()},z={cursor:p?"pointer":"default","&::after":{content:`"${$("common.switch")}"`}};return r.jsxs(M,{id:`uploader-${a}-${i}`,children:[r.jsx(C,{ref:n,locale:P,popup:!0,onUploadFinish:j,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:q(w,U,i,a),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:b?[...m,".svg"]:m,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:d,initialAspectRatio:d,croppedCanvasOptions:{minWidth:k,minHeight:y}}},tusProps:{headers:v}}),u?r.jsx(l,{onClick:c,children:u}):r.jsx(l,{className:O("uploader-wrapper",p&&"enabled"),sx:z,onClick:c,children:r.jsx("img",{alt:i,src:e,style:{width:x,height:g}})})]},`uploader-${a}-${i}`)}f.propTypes={url:o.string.isRequired,type:o.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:o.string.isRequired,prefix:o.string.isRequired,headers:o.func,onUploaded:o.func,height:o.number,width:o.any,enabled:o.bool,allowSVG:o.bool,aspectRatio:o.number,minWidth:o.number,minHeight:o.number,children:o.node};f.defaultProps={height:80,width:"auto",enabled:!0,allowSVG:!0,headers:()=>({}),onUploaded:F,aspectRatio:1,minWidth:256,minHeight:256,children:null};const M=s.div`
105
+ `,C=h.lazy(()=>E(()=>import("./index-Btl_rz0J.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13])).then(e=>({default:e.Uploader}))),U="/blocklet/logo/upload",m=[".png",".jpg",".jpeg",".webp",".bmp",".ico"];function f({url:e,height:g,width:x,enabled:p,allowSVG:b,type:i,did:a,prefix:w,headers:v,aspectRatio:d,minWidth:k,minHeight:y,onUploaded:R,children:u}){const{t:$,locale:P}=S(),n=h.useRef(null),c=()=>{var t;(t=n.current)==null||t.open()},j=()=>{var t;R(),(t=n.current)==null||t.close()},z={cursor:p?"pointer":"default","&::after":{content:`"${$("common.switch")}"`}};return r.jsxs(M,{id:`uploader-${a}-${i}`,children:[r.jsx(C,{ref:n,locale:P,popup:!0,onUploadFinish:j,plugins:["ImageEditor"],installerProps:{disabled:!0},apiPathProps:{uploader:q(w,U,i,a),disableMediaKitPrefix:!0,disableMediaKitStatus:!0},coreProps:{restrictions:{allowedFileExts:b?[...m,".svg"]:m,maxFileSize:1024*1024*5,maxNumberOfFiles:1}},dashboardProps:{autoOpen:"imageEditor"},imageEditorProps:{actions:{revert:!0,rotate:!0,granularRotate:!0,flip:!0,zoomIn:!0,zoomOut:!0,cropSquare:!1,cropWidescreen:!1,cropWidescreenVertical:!1},cropperOptions:{autoCrop:!0,autoCropArea:1,aspectRatio:d,initialAspectRatio:d,croppedCanvasOptions:{minWidth:k,minHeight:y}}},tusProps:{headers:v}}),u?r.jsx(l,{onClick:c,children:u}):r.jsx(l,{className:O("uploader-wrapper",p&&"enabled"),sx:z,onClick:c,children:r.jsx("img",{alt:i,src:e,style:{width:x,height:g}})})]},`uploader-${a}-${i}`)}f.propTypes={url:o.string.isRequired,type:o.oneOf(["square","rect","favicon","splash-portrait","splash-landscape","og-image"]).isRequired,did:o.string.isRequired,prefix:o.string.isRequired,headers:o.func,onUploaded:o.func,height:o.number,width:o.any,enabled:o.bool,allowSVG:o.bool,aspectRatio:o.number,minWidth:o.number,minHeight:o.number,children:o.node};f.defaultProps={height:80,width:"auto",enabled:!0,allowSVG:!0,headers:()=>({}),onUploaded:F,aspectRatio:1,minWidth:256,minHeight:256,children:null};const M=s.div`
106
106
  .uploader-wrapper {
107
107
  display: inline-flex;
108
108
  position: relative;
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CPE8Apzb.js","assets/vendor-react-DEoibe3W.js"])))=>i.map(i=>d[i]);
2
- import{a9 as H,j as t,ah as M,H as v,v as U,aa as d,bd as B,T as I,bF as X,bG as G,bH as q,ap as O,au as V}from"./vendor-mui-core-UZpb7wT7.js";import{a as J,_ as Q,H as K}from"./vendor-arcblock-CN2B_oTr.js";import{r as u}from"./vendor-react-DEoibe3W.js";import{d as Y}from"./CheckCircle-Dvhgeo9j.js";import{d as Z}from"./ViewList-B4hmqizo.js";import{r as ee,b2 as te,o as se,ao as L,B as _,b1 as oe,u as ae}from"./vendor-ux-did-connect-TEE6cGq6.js";import{d as ne}from"./Done-Ct5slWpT.js";import{a as re,v as ie}from"./vendor-hooks-rDgu5KV9.js";import{O as ce}from"./vendor-utils-rHXShPKm.js";import{W as le}from"./did-address-BKBBjFqv.js";import{w as pe}from"./wrap-locale-DZ79GW_G.js";import{u as de}from"./use-passport-id-B-b-_oYF.js";import{i as $,S as ue,c as me,s as he,a as fe}from"./index-u-w3iMC9.js";import{g as xe}from"./get-safe-url-CEvgWyL5.js";import"./lottie-web-jYmAQWuC.js";var k={},ge=H;Object.defineProperty(k,"__esModule",{value:!0});var W=k.default=void 0,ve=ge(ee()),be=t;W=k.default=(0,ve.default)((0,be.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");function P({list:s,width:c,height:m,cardSpace:l,onSelect:r,defaultIndex:h}){const[b,f]=u.useState(0),[o,x]=u.useState(0),w=u.useRef(null),g=n=>{if(n<0||n>s.length-1)return;f(n);const i=w.current.clientWidth;x(n*(c+l)-(i-c)/2+l*.5),r(n)};u.useEffect(()=>{g(h);const n=i=>i.preventDefault();w.current.addEventListener("touchmove",n,{passive:!1})},[]);let a;const j=n=>{a=n.touches[0].clientX},y=n=>{const i=n.changedTouches[0],S=a-i.clientX;Math.abs(S)>60&&(S>0?g(b+1):g(b-1))};return t.jsx(we,{ref:w,onTouchStart:j,onTouchEnd:y,children:t.jsx("div",{className:"card-container",style:{transform:`translate(${-o}px, 0)`},children:s.map((n,i)=>t.jsx("div",{className:`card-item ${i===b?"selected":""}`,style:{width:c,height:m,margin:l/2},onClick:()=>g(i),children:n.display?t.jsx("div",{className:"card-content",children:t.jsx(J,{data:n.display,style:{width:"100%",height:"100%"}})}):t.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const we=M.div`
2
+ import{a9 as H,j as t,ah as M,H as v,v as U,aa as d,bd as B,T as I,bF as X,bG as G,bH as q,ap as O,au as V}from"./vendor-mui-core-D_bnq77o.js";import{a as J,_ as Q,H as K}from"./vendor-arcblock-uz9DVywv.js";import{r as u}from"./vendor-react-DEoibe3W.js";import{d as Y}from"./CheckCircle-Ds4QI0ey.js";import{d as Z}from"./ViewList-D8vtMKQz.js";import{r as ee,b2 as te,o as se,ao as L,B as _,b1 as oe,u as ae}from"./vendor-ux-did-connect-DHrruicZ.js";import{d as ne}from"./Done-DqSE6KPe.js";import{a as re,v as ie}from"./vendor-hooks-rDgu5KV9.js";import{O as ce}from"./vendor-utils-rHXShPKm.js";import{W as le}from"./did-address-DjwPl1uy.js";import{w as pe}from"./wrap-locale-B9TkXFQe.js";import{u as de}from"./use-passport-id-B-b-_oYF.js";import{i as $,S as ue,c as me,s as he,a as fe}from"./index-DefO2n6z.js";import{g as xe}from"./get-safe-url-Bk6PlU7n.js";import"./lottie-web-jYmAQWuC.js";var k={},ge=H;Object.defineProperty(k,"__esModule",{value:!0});var W=k.default=void 0,ve=ge(ee()),be=t;W=k.default=(0,ve.default)((0,be.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"GetApp");function P({list:s,width:c,height:m,cardSpace:l,onSelect:r,defaultIndex:h}){const[b,f]=u.useState(0),[o,x]=u.useState(0),w=u.useRef(null),g=n=>{if(n<0||n>s.length-1)return;f(n);const i=w.current.clientWidth;x(n*(c+l)-(i-c)/2+l*.5),r(n)};u.useEffect(()=>{g(h);const n=i=>i.preventDefault();w.current.addEventListener("touchmove",n,{passive:!1})},[]);let a;const j=n=>{a=n.touches[0].clientX},y=n=>{const i=n.changedTouches[0],S=a-i.clientX;Math.abs(S)>60&&(S>0?g(b+1):g(b-1))};return t.jsx(we,{ref:w,onTouchStart:j,onTouchEnd:y,children:t.jsx("div",{className:"card-container",style:{transform:`translate(${-o}px, 0)`},children:s.map((n,i)=>t.jsx("div",{className:`card-item ${i===b?"selected":""}`,style:{width:c,height:m,margin:l/2},onClick:()=>g(i),children:n.display?t.jsx("div",{className:"card-content",children:t.jsx(J,{data:n.display,style:{width:"100%",height:"100%"}})}):t.jsx("div",{className:"card-content",dangerouslySetInnerHTML:{__html:n.src}})},n.id))})})}const we=M.div`
3
3
  overflow: hidden;
4
4
  mask-image: linear-gradient(to left, transparent, black 3%, black 97%, transparent);
5
5
  overflow: hidden;
@@ -1 +1 @@
1
- import{j as c}from"./vendor-mui-core-UZpb7wT7.js";import{r as t}from"./vendor-react-DEoibe3W.js";import{g as i}from"./get-safe-url-2RcRY8gU.js";import"./vendor-ux-did-connect-TEE6cGq6.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";function v(){const e=t.useRef(null),n=t.useRef(Date.now());return t.useEffect(()=>{const r=`open-window-url-${new URLSearchParams(window.location.search).get("key")}`;return e.current=setInterval(()=>{if(Date.now()-n.current>10*1e3){localStorage.removeItem(r),clearInterval(e.current);return}const o=localStorage.getItem(r);if(o)try{const{url:a,time:s}=JSON.parse(o);localStorage.removeItem(r),Date.now()-s<10*1e3&&(window.location.href=i(a,{allowDomains:null}))}catch{}},200),()=>clearInterval(e.current)},[]),c.jsx("div",{})}export{v as default};
1
+ import{j as c}from"./vendor-mui-core-D_bnq77o.js";import{r as t}from"./vendor-react-DEoibe3W.js";import{g as i}from"./get-safe-url-B5RJTMjC.js";import"./vendor-ux-did-connect-DHrruicZ.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";function v(){const e=t.useRef(null),n=t.useRef(Date.now());return t.useEffect(()=>{const r=`open-window-url-${new URLSearchParams(window.location.search).get("key")}`;return e.current=setInterval(()=>{if(Date.now()-n.current>10*1e3){localStorage.removeItem(r),clearInterval(e.current);return}const o=localStorage.getItem(r);if(o)try{const{url:a,time:s}=JSON.parse(o);localStorage.removeItem(r),Date.now()-s<10*1e3&&(window.location.href=i(a,{allowDomains:null}))}catch{}},200),()=>clearInterval(e.current)},[]),c.jsx("div",{})}export{v as default};
@@ -0,0 +1,85 @@
1
+ import{j as t,ap as re,aa as i,H as h,ah as le,ad as k,T as A,bc as ae}from"./vendor-mui-core-D_bnq77o.js";import{r as p,b as ve}from"./vendor-react-DEoibe3W.js";import{I as u,u as _,B as je,X as ye,b7 as be,j as I}from"./vendor-ux-did-connect-DHrruicZ.js";import{Y as we,Z as z}from"./vendor-arcblock-uz9DVywv.js";import{d as $}from"./InfoOutlined-DkG0jjos.js";import{K as ke}from"./keyboard-arrow-down-rounded-DadBVmpO.js";import{p as Se}from"./use-blocklet-logo-BEy8Tnso.js";import{z as Te,C as Ie,I as Ae,w as _e,ag as Re,t as q}from"./index-DefO2n6z.js";import{I as Ce}from"./index-enM9Y412.js";import{_ as Me}from"./dot-C4hULxc0.js";import{A as $e}from"./vendor-utils-rHXShPKm.js";import{u as Be}from"./dashboard-BIOpvfj3.js";import{W as g}from"./did-address-DjwPl1uy.js";import{V as De}from"./status-CUMJd-nJ.js";import{c as ze}from"./spaces-BVG-t3ND.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./session-CHdTc1We.js";import"./useAsync-CMWsznMW.js";import"./useLocalStorage-DVnkpneF.js";import"./confirm-DjTZImyg.js";import"./format-error-BrmqJs5a.js";import"./PlayArrow-BToG9L6q.js";import"./get-safe-url-Bk6PlU7n.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DyX6Fl8Z.js";import"./omit-D2k92RIF.js";import"./api-BjteVZFg.js";const qe={width:24,height:24,body:'<path fill="currentColor" d="m12 10.8l-3.9 3.9q-.275.275-.7.275t-.7-.275q-.275-.275-.275-.7t.275-.7l4.6-4.6q.3-.3.7-.3t.7.3l4.6 4.6q.275.275.275.7t-.275.7q-.275.275-.7.275t-.7-.275L12 10.8Z"/>'},Ee=qe,Ne={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 17a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm12 0a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2zM6 15v-1a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v1m-6-6v3"/>'},Pe=Ne,Ue={width:24,height:24,body:'<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 7a4 4 0 1 0 8 0a4 4 0 1 0-8 0M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2m1-17.87a4 4 0 0 1 0 7.75M21 21v-2a4 4 0 0 0-3-3.85"/>'},He=Ue,Le={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M7 12h3v4H7z"/><path d="M10 6H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-6"/><path d="M10 4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1zm4 12h2m-2-4h4"/></g>'},Ke=Le,Ve={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M19.5 7A9 9 0 0 0 12 3a8.991 8.991 0 0 0-7.484 4"/><path d="M11.5 3a16.989 16.989 0 0 0-1.826 4M12.5 3a16.989 16.989 0 0 1 1.828 4M19.5 17a9 9 0 0 1-7.5 4a8.991 8.991 0 0 1-7.484-4"/><path d="M11.5 21a16.989 16.989 0 0 1-1.826-4m2.826 4a16.989 16.989 0 0 0 1.828-4M2 10l1 4l1.5-4L6 14l1-4m10 0l1 4l1.5-4l1.5 4l1-4M9.5 10l1 4l1.5-4l1.5 4l1-4"/></g>'},Oe=Ve,Qe={width:24,height:24,body:'<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0"/><path d="M12 7v5l3 3"/></g>'},ie=Qe,We={width:24,height:24,body:'<path fill="currentColor" d="M12 14q-.825 0-1.413-.588T10 12q0-.825.588-1.413T12 10q.825 0 1.413.588T14 12q0 .825-.588 1.413T12 14Zm0 7q-3.475 0-6.025-2.288T3.05 13H5.1q.35 2.6 2.313 4.3T12 19q2.925 0 4.963-2.038T19 12q0-2.925-2.038-4.963T12 5q-1.725 0-3.225.8T6.25 8H9v2H3V4h2v2.35q1.275-1.6 3.113-2.475T12 3q1.875 0 3.513.713t2.85 1.924q1.212 1.213 1.925 2.85T21 12q0 1.875-.713 3.513t-1.924 2.85q-1.213 1.212-2.85 1.925T12 21Z"/>'},Fe=We;function E({icon:e,value:a,name:o,url:l="",animated:c=!1,LinkComponent:d=re}){const y=()=>ve.isValidElement(e)?e:t.jsx(i,{component:u,icon:e,alt:typeof o=="string"?o:"",sx:{fontSize:30}}),m=t.jsxs(t.Fragment,{children:[t.jsx(i,{className:"metric__image",children:y()}),t.jsxs(i,{children:[p.isValidElement(a)?t.jsx(i,{className:`metric__number ${c?"metric__number--animated":""}`,children:a}):t.jsx(i,{className:`metric__number ${c?"metric__number--animated":""}`,dangerouslySetInnerHTML:{__html:a}}),t.jsx(i,{className:"metric__name",children:o})]})]});return t.jsx(Ge,{children:l?t.jsx(d,{href:l,sx:{textDecoration:"none"},children:m}):m})}E.propTypes={icon:h.string.isRequired,value:h.string.isRequired,name:h.string.isRequired,url:h.string,animated:h.bool,LinkComponent:h.elementType};E.defaultProps={url:"",animated:!1,LinkComponent:re};const Ge=le("div")`
2
+ border-left: 1px solid ${e=>e.theme.palette.divider};
3
+ padding: 10px 0 10px 16px;
4
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
5
+ padding: 0 0 0 8px;
6
+ }
7
+
8
+ display: flex;
9
+ justify-items: center;
10
+ align-items: flex-start;
11
+
12
+ a {
13
+ display: flex;
14
+ justify-items: center;
15
+ align-items: flex-start;
16
+ }
17
+
18
+ .metric__image {
19
+ margin-right: 8px;
20
+ margin-top: 2px;
21
+ }
22
+
23
+ .metric__number {
24
+ margin-bottom: 8px;
25
+ font-size: ${e=>e.size==="small"?32:36}px;
26
+ font-weight: 600;
27
+ line-height: 36px;
28
+ color: ${e=>e.theme.typography.color.main};
29
+
30
+ small {
31
+ font-size: 12px;
32
+ line-height: 12px;
33
+ }
34
+
35
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
36
+ font-size: ${e=>e.size==="small"?24:28}px;
37
+ line-height: ${e=>e.size==="small"?24:28}px;
38
+ margin-bottom: 2px;
39
+ }
40
+ }
41
+
42
+ .metric__number--animated {
43
+ animation-name: blink-opacity;
44
+ animation-duration: 250ms;
45
+ animation-timing-function: linear;
46
+ animation-iteration-count: 1;
47
+ background-color: transparent !important;
48
+ }
49
+
50
+ .metric__name {
51
+ font-size: 14px;
52
+ text-transform: capitalize;
53
+ line-height: 1.2;
54
+ font-weight: 500;
55
+ color: ${e=>e.theme.typography.color.main};
56
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
57
+ font-size: 10px;
58
+ line-height: 1;
59
+ }
60
+ }
61
+
62
+ @keyframes blink-opacity {
63
+ 0% {
64
+ opacity: 1;
65
+ }
66
+ 50% {
67
+ opacity: 0.3;
68
+ }
69
+ 100% {
70
+ opacity: 1;
71
+ }
72
+ }
73
+ `,v={oneSecond:1,oneMin:1*60,oneHour:1*60*60,oneDay:24*60*60},Ze=(e,a)=>{const[o,l]=p.useState(0),c=m=>m>=v.oneDay?v.oneDay:m>=v.oneHour?v.oneHour:m>=v.oneMin?v.oneMin:v.oneSecond,[d,y]=p.useState(c(e/1e3));return p.useEffect(()=>{const m=setInterval(()=>{l(o+d);const R=c(e/1e3+o+d);d!==R&&y(R)},d*1e3);return()=>clearInterval(m)},[d,o]),p.useEffect(()=>{l(0),y(c(e/1e3))},[e]),a(e+o*1e3)};h.number.isRequired,h.func;const Xe={arcblock:"ArcBlock",ethereum:"Ethereum"};function ce({source:e,migrated:a}){const{t:o}=_();return e?e.startsWith("managed")?t.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:.5},children:[t.jsx(A,{children:e}),t.jsx(k,{title:o(a?"blocklet.skSourceMigratedTip":"blocklet.skSourceManagedTip"),children:t.jsx($,{sx:{fontSize:16,color:a?"text.secondary":"warning.main"}})})]}):t.jsx(A,{children:e}):null}ce.propTypes={source:h.string.isRequired,migrated:h.bool.isRequired};const Ye=e=>{const{t:a}=_();let o=0,l=0;e&&(o=e.length,l=e.filter(d=>d.status==="running").length);let c=o;return l&&(c+=`<small>${a("common.running")} ${l}</small>`),c},Je=(e,a)=>{const{t:o}=_();return a.length?t.jsxs(i,{component:"small",children:[o("router.domainAlias.custom")," ",a.length]}):t.jsxs(i,{component:"small",sx:{display:"flex",alignItems:"center",gap:.5,color:a.length?"text.primary":"warning.main"},children:[o("router.domainAlias.noCustom"),t.jsx(k,{title:o("router.domainAlias.noCustomTip"),children:t.jsx($,{sx:{fontSize:16}})})]})},et=(e,a)=>{const o=e===I.BACKUPS.STATUS.PROGRESS&&q().diff(a,"hours")>=I.BACKUPS.TIMEOUT_HOURS,l=e===I.BACKUPS.STATUS.PROGRESS&&!o;return e===I.BACKUPS.STATUS.SUCCEEDED&&!o?t.jsx(i,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"success.main"}}):l?t.jsx(i,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"error.main"}}):t.jsx(i,{sx:{width:8,height:8,borderRadius:"100%",bgcolor:"warning.main"}})},tt=(e,a)=>{const{t:o,locale:l}=_(),c=a==null?void 0:a.createdAt;return e&&c?t.jsxs(i,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:q(c).add(1,"day").isAfter(q())?"text.primary":"warning.main"},children:[z(c,l==="tw"?"zh":l),t.jsx(k,{title:o("storage.spaces.backup.lastBackupTip",{time:z(c,l==="tw"?"zh":l)}),children:t.jsx($,{sx:{fontSize:16}})})]}):t.jsxs(i,{sx:{display:"flex",alignItems:"baseline",gap:.5,color:"warning.main"},children:[o("storage.spaces.backup.noBackup"),t.jsx(k,{title:o("storage.spaces.backup.noBackupTip"),children:t.jsx($,{sx:{fontSize:16}})})]})},j={fontSize:30,color:"text.primary"};function nt(){var H,L,K,V,O,Q,W,F,G,Z,X,Y,J,ee,te,ne,oe;const{t:e,locale:a}=_(),{info:o,inService:l,api:c,imgPrefix:d}=Te(),{teamDid:y}=Be(),[m,R]=p.useState(!1),{did:me,blocklet:n}=Ie(),r=Me(()=>c.getBlockletBaseInfo({input:{teamDid:y}})),{appDid:B,appPid:D,migratedFrom:f=[]}=n,N=(H=n.environments.find(s=>s.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:H.value,C=s=>typeof s!="number"||Number.isNaN(s)?"0":s>=1e4?new Intl.NumberFormat(a,{notation:"compact",compactDisplay:"short"}).format(s):new Intl.NumberFormat(a).format(s),P=[B?{name:e("blocklet.appId"),value:t.jsx(g,{did:B,showQrcode:!0})}:null,D&&B!==D?{name:t.jsxs(i,{children:[e("blocklet.appPid"),t.jsx(k,{title:e("blocklet.whyNeedAppPid"),style:{cursor:"help",fontSize:16},children:t.jsx(we,{sx:{verticalAlign:"middle",mt:"-2px",ml:"2px"}})})]}),value:t.jsx(g,{did:D,showQrcode:!0})}:null,(f==null?void 0:f.length)>1?{name:e("blocklet.alsoKnownAs"),value:t.jsxs("div",{children:[(m?f.slice(1):f.slice(1,2)).map(s=>t.jsx(g,{did:s.appDid,showQrcode:!0})),f.length>2&&t.jsx(je,{sx:{pl:0,"&:hover":{backgroundColor:"transparent"}},endIcon:m?t.jsx(u,{icon:Ee}):t.jsx(u,{icon:ke}),onClick:()=>R(!m),children:e(m?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,Ae(n)?{name:"NFT",value:t.jsx(g,{external:!0,href:_e((L=n==null?void 0:n.controller)==null?void 0:L.chainHost,(K=n==null?void 0:n.controller)==null?void 0:K.nftId,"asset"),did:(V=n==null?void 0:n.controller)==null?void 0:V.nftId,showQrcode:!0})}:null,{name:e("common.owner"),value:(O=n.settings)!=null&&O.owner?t.jsx(g,{did:n.settings.owner.did,showQrcode:!0}):"-"},(Q=n.vaults)!=null&&Q.length?{name:e("blocklet.config.vault.name"),value:t.jsxs(i,{sx:{display:"flex",alignItems:"center",gap:.5,"& > span":{width:"auto"}},children:[t.jsx(g,{did:n.vaults[n.vaults.length-1].did,showQrcode:!0}),t.jsx(De,{vaults:n.vaults,appPid:n.appPid})]})}:null,{name:e("blocklet.installedAt"),value:n.installedAt?t.jsx(ye,{value:n.installedAt,type:"all",locale:a}):"-"},{name:e("blocklet.config.walletType.name"),value:Xe[N||"arcblock"]||N},n.externalSkSource?{name:e("blocklet.skSource"),value:t.jsx(ce,{source:n.externalSkSource,migrated:f.length>0})}:null].filter(Boolean);l&&P.push({name:e("common.serverDid"),value:t.jsx(g,{did:o.did,showQrcode:!0})},{name:e("common.serverVersion"),value:t.jsx(be,{children:o.version})});const de=s=>s.map(x=>t.jsx(Ce,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:150,name:x.name,nameFormatter:()=>x.name,children:x.value},x.name)),pe=Ye(n.children),ue=Ze(Number(((W=n==null?void 0:n.appRuntimeInfo)==null?void 0:W.uptime)||0),s=>Se(s,{compact:!0,verbose:!0,locale:a==="tw"?"zh":a})),M=p.useMemo(()=>{var s;return((s=n==null?void 0:n.site)==null?void 0:s.domainAliases)||[]},[(F=n==null?void 0:n.site)==null?void 0:F.domainAliases]),he=p.useMemo(()=>M.filter(s=>Re.isCustomDomain(s.value)),[M]),b=p.useMemo(()=>{var s;return((s=r==null?void 0:r.value)==null?void 0:s.passport)||{}},[(G=r==null?void 0:r.value)==null?void 0:G.passport]),w=p.useMemo(()=>{var s;return((s=r==null?void 0:r.value)==null?void 0:s.user)||{}},[(Z=r==null?void 0:r.value)==null?void 0:Z.user]),U=p.useMemo(()=>ze(n==null?void 0:n.environments),[n==null?void 0:n.environments]),xe=Je(M,he),fe=tt(U,(X=r==null?void 0:r.value)==null?void 0:X.backup),S=(s,x)=>`${I.WELLKNOWN_SERVICE_PATH_PREFIX}/admin/${s}/${x}`,T=s=>{var se;const x=(se=o==null?void 0:o.routing)==null?void 0:se.adminPath;return $e(x,`/blocklets/${me}/${s}`)},ge=[{name:e("common.blocklets"),value:pe,icon:t.jsx(i,{component:u,icon:Pe,sx:j}),url:l?S("overview","components"):T("components")},{name:e("common.members"),value:`${C((w==null?void 0:w.users)||0)}<small>${e("common.active")} ${C(w==null?void 0:w.approvedUsers)}</small>`,icon:t.jsx(i,{component:u,icon:He,sx:j}),url:l?S("did-connect","members"):T("members")},{name:e("team.member.passports"),value:`${C((b==null?void 0:b.passports)||0)}<small>${e("common.active")} ${C(b==null?void 0:b.activePassports)}</small>`,icon:t.jsx(i,{component:u,icon:Ke,sx:j}),url:l?S("did-connect","passports"):T("passports")},{name:e("common.domains"),value:t.jsxs(i,{display:"flex",alignItems:"baseline",children:[M.length,xe]}),icon:t.jsx(i,{component:u,icon:Oe,sx:j}),url:l?S("website","domains"):T("domains")},{name:e("common.uptime"),value:(Y=n==null?void 0:n.appRuntimeInfo)!=null&&Y.uptime?ue:`${e("common.waiting")}...`,icon:t.jsx(i,{component:u,icon:ie,sx:j})},n.createdAt&&+new Date(n.createdAt)!=+new Date(0)?{name:e("common.created"),value:z(new Date(n.createdAt).getTime(),a==="tw"?"zh":a),icon:t.jsx(i,{component:u,icon:ie,sx:j})}:null,{name:t.jsxs(i,{display:"flex",alignItems:"baseline",gap:.5,children:[e("storage.spaces.backup.lastBackup"),((J=r==null?void 0:r.value)==null?void 0:J.backup)&&U&&t.jsx(k,{children:et((te=(ee=r==null?void 0:r.value)==null?void 0:ee.backup)==null?void 0:te.status,(oe=(ne=r==null?void 0:r.value)==null?void 0:ne.backup)==null?void 0:oe.createdAt)})]}),value:fe,icon:t.jsx(i,{component:u,icon:Fe,sx:j}),url:l?S("did-spaces","backups"):T("didSpaces")}].filter(Boolean);return t.jsxs(ot,{component:"div",children:[t.jsxs(i,{className:"section",children:[t.jsx(A,{className:"section__header",color:"textPrimary",children:e("common.overview")}),t.jsx(ae,{className:"page-metrics",container:!0,spacing:5,children:ge.map(s=>t.jsx(ae,{item:!0,lg:3,md:4,sm:6,xs:12,sx:{small:{ml:.5}},children:t.jsx(E,{...s,prefix:d})},s.name))})]}),t.jsxs(i,{className:"section",children:[t.jsx(A,{className:"section__header",color:"textPrimary",children:e("common.basicInfo")}),t.jsx(i,{className:"basicInfo",children:de(P)})]})]})}nt.propTypes={};const ot=le(A)`
74
+ .section {
75
+ display: flex;
76
+ flex-direction: column;
77
+ margin-bottom: 64px;
78
+
79
+ .section__header {
80
+ font-size: 1.2rem;
81
+ font-weight: bold;
82
+ margin-bottom: 24px;
83
+ }
84
+ }
85
+ `;export{nt as default};
@@ -1,4 +1,4 @@
1
- import{a9 as p,j as o,ah as c,H as t}from"./vendor-mui-core-UZpb7wT7.js";import{r as u}from"./vendor-ux-did-connect-TEE6cGq6.js";var r={},d=p;Object.defineProperty(r,"__esModule",{value:!0});var a=r.default=void 0,f=d(u()),x=o;a=r.default=(0,f.default)((0,x.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function s({title:e,subTitle:n,onClickBack:i,...l}){return o.jsxs(m,{...l,children:[i&&o.jsx(a,{className:"back-btn",onClick:i}),o.jsx("div",{className:"title",children:e}),o.jsx("div",{className:"sub-title",children:n})]})}const m=c.div`
1
+ import{a9 as p,j as o,ah as c,H as t}from"./vendor-mui-core-D_bnq77o.js";import{r as u}from"./vendor-ux-did-connect-DHrruicZ.js";var r={},d=p;Object.defineProperty(r,"__esModule",{value:!0});var a=r.default=void 0,f=d(u()),x=o;a=r.default=(0,f.default)((0,x.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");function s({title:e,subTitle:n,onClickBack:i,...l}){return o.jsxs(m,{...l,children:[i&&o.jsx(a,{className:"back-btn",onClick:i}),o.jsx("div",{className:"title",children:e}),o.jsx("div",{className:"sub-title",children:n})]})}const m=c.div`
2
2
  position: relative;
3
3
  width: 100%;
4
4
  text-align: center;
@@ -1 +1 @@
1
- import{a9 as $,j as w,H as h,al as He,bd as ri,T as pe,ad as Pi,s as yi,E as ki,aa as Ue}from"./vendor-mui-core-UZpb7wT7.js";import{r as q,u as Ne,X as Li,a as oi}from"./vendor-ux-did-connect-TEE6cGq6.js";import{U as $i,C as qi,I as Ni}from"./index-Ce2NSVmU.js";import{r as Bi,b as ke}from"./vendor-react-DEoibe3W.js";import{f as Fi}from"./vendor-hooks-rDgu5KV9.js";import{W as ze}from"./did-address-BKBBjFqv.js";import{p as Vi}from"./util-Bg0WSJ-t.js";import{u as Wi}from"./dashboard-C124DXmc.js";var Be={},Gi=$;Object.defineProperty(Be,"__esModule",{value:!0});var De=Be.default=void 0;Ki(Bi);var Xi=Gi(q()),Yi=w;function _i(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,s=new WeakMap;return(_i=function(u){return u?s:i})(e)}function Ki(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var s=_i(i);if(s&&s.has(e))return s.get(e);var u={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in e)if(b!=="default"&&Object.prototype.hasOwnProperty.call(e,b)){var d=l?Object.getOwnPropertyDescriptor(e,b):null;d&&(d.get||d.set)?Object.defineProperty(u,b,d):u[b]=e[b]}return u.default=e,s&&s.set(e,u),u}De=Be.default=(0,Xi.default)((0,Yi.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");var Fe={},Zi=$;Object.defineProperty(Fe,"__esModule",{value:!0});var Ri=Fe.default=void 0,Ji=Zi(q()),Qi=w;Ri=Fe.default=(0,Ji.default)((0,Qi.jsx)("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Laptop");var Ve={},et=$;Object.defineProperty(Ve,"__esModule",{value:!0});var fe=Ve.default=void 0,it=et(q()),tt=w;fe=Ve.default=(0,it.default)((0,tt.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"}),"Web");var We={},rt=$;Object.defineProperty(We,"__esModule",{value:!0});var Si=We.default=void 0,ot=rt(q()),at=w;Si=We.default=(0,ot.default)((0,at.jsx)("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"}),"Android");var Ge={},nt=$;Object.defineProperty(Ge,"__esModule",{value:!0});var Oi=Ge.default=void 0,st=nt(q()),lt=w;Oi=Ge.default=(0,st.default)((0,lt.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone");var Xe={},dt=$;Object.defineProperty(Xe,"__esModule",{value:!0});var Ei=Xe.default=void 0,ct=dt(q()),ut=w;Ei=Xe.default=(0,ct.default)((0,ut.jsx)("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet");var Ye={},wt=$;Object.defineProperty(Ye,"__esModule",{value:!0});var be=Ye.default=void 0,ft=wt(q()),bt=w;be=Ye.default=(0,ft.default)((0,bt.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");var pt="2.0.3",Pe=500,ai="user-agent",W="",ni="?",me="function",z="undefined",G="object",Le="string",x="browser",A="cpu",O="device",R="engine",_="os",F="result",a="name",t="type",o="vendor",n="version",y="architecture",se="major",r="model",ae="console",f="mobile",v="tablet",g="smarttv",S="wearable",_e="xr",ne="embedded",J="inapp",Ke="brands",L="formFactors",Ze="fullVersionList",V="platform",Je="platformVersion",ve="bitness",D="sec-ch-ua",mt=D+"-full-version-list",ht=D+"-arch",vt=D+"-"+ve,gt=D+"-form-factors",xt=D+"-"+f,yt=D+"-"+r,Ai=D+"-"+V,kt=Ai+"-version",Ci=[Ke,Ze,f,r,V,Je,y,L,ve],ce="Amazon",N="Apple",si="ASUS",li="BlackBerry",P="Google",di="Huawei",ci="Lenovo",ui="Honor",ue="LG",Re="Microsoft",Se="Motorola",Oe="Nvidia",wi="OnePlus",Ee="OPPO",Q="Samsung",fi="Sharp",ee="Sony",Ae="Xiaomi",Ce="Zebra",bi="Chrome",pi="Chromium",I="Chromecast",_t="Edge",ie="Firefox",te="Opera",je="Facebook",mi="Sogou",B="Mobile ",re=" Browser",$e="Windows",Rt=typeof window!==z,k=Rt&&window.navigator?window.navigator:void 0,H=k&&k.userAgentData?k.userAgentData:void 0,St=function(e,i){var s={},u=i;if(!he(i)){u={};for(var l in i)for(var b in i[l])u[b]=i[l][b].concat(u[b]?u[b]:[])}for(var d in e)s[d]=u[d]&&u[d].length%2===0?u[d].concat(e[d]):e[d];return s},ge=function(e){for(var i={},s=0;s<e.length;s++)i[e[s].toUpperCase()]=e[s];return i},qe=function(e,i){if(typeof e===G&&e.length>0){for(var s in e)if(C(e[s])==C(i))return!0;return!1}return Y(e)?C(i).indexOf(C(e))!==-1:!1},he=function(e,i){for(var s in e)return/^(browser|cpu|device|engine|os)$/.test(s)||(i?he(e[s]):!1)},Y=function(e){return typeof e===Le},Te=function(e){if(e){for(var i=[],s=X(/\\?\"/g,e).split(","),u=0;u<s.length;u++)if(s[u].indexOf(";")>-1){var l=le(s[u]).split(";v=");i[u]={brand:l[0],version:l[1]}}else i[u]=le(s[u]);return i}},C=function(e){return Y(e)?e.toLowerCase():e},Me=function(e){return Y(e)?X(/[^\d\.]/g,e).split(".")[0]:void 0},j=function(e){for(var i in e){var s=e[i];typeof s==G&&s.length==2?this[s[0]]=s[1]:this[s]=void 0}return this},X=function(e,i){return Y(i)?i.replace(e,W):i},oe=function(e){return X(/\\?\"/g,e)},le=function(e,i){if(Y(e))return e=X(/^\s\s*/,e),typeof i===z?e:e.substring(0,Pe)},Ie=function(e,i){if(!(!e||!i))for(var s=0,u,l,b,d,p,c;s<i.length&&!p;){var m=i[s],E=i[s+1];for(u=l=0;u<m.length&&!p&&m[u];)if(p=m[u++].exec(e),p)for(b=0;b<E.length;b++)c=p[++l],d=E[b],typeof d===G&&d.length>0?d.length===2?typeof d[1]==me?this[d[0]]=d[1].call(this,c):this[d[0]]=d[1]:d.length===3?typeof d[1]===me&&!(d[1].exec&&d[1].test)?this[d[0]]=c?d[1].call(this,c,d[2]):void 0:this[d[0]]=c?c.replace(d[1],d[2]):void 0:d.length===4&&(this[d[0]]=c?d[3].call(this,c.replace(d[1],d[2])):void 0):this[d]=c||void 0;s+=2}},U=function(e,i){for(var s in i)if(typeof i[s]===G&&i[s].length>0){for(var u=0;u<i[s].length;u++)if(qe(i[s][u],e))return s===ni?void 0:s}else if(qe(i[s],e))return s===ni?void 0:s;return i.hasOwnProperty("*")?i["*"]:e},hi={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},vi={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},gi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[a,B+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,n],[/opios[\/ ]+([\w\.]+)/i],[n,[a,te+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[a,te+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[a,te]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[a,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[a,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[a,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[a,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[a,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[a,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[a,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[a,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[a,"Smart "+ci+re]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure"+re],n],[/\bfocus\/([\w\.]+)/i],[n,[a,ie+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[a,te+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[a,te+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[a,"MIUI"+re]],[/fxios\/([\w\.-]+)/i],[n,[a,B+ie]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[a,"360"]],[/\b(qq)\/([\w\.]+)/i],[[a,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1"+re],n],[/samsungbrowser\/([\w\.]+)/i],[n,[a,Q+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[a,mi+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[a,mi+" Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[a,n],[/(lbbrowser|rekonq)/i],[a],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,je],n,[t,J]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[a,n,[t,J]],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[a,"GSA"],[t,J]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[a,"TikTok"],[t,J]],[/\[(linkedin)app\]/i],[a,[t,J]],[/(chromium)[\/ ]([-\w\.]+)/i],[a,n],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[a,bi+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,bi+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[a,"Android"+re]],[/chrome\/([\w\.]+) mobile/i],[n,[a,B+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,n],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[n,[a,B+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[a,B+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[n,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[n,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[a,n],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[a,B+ie],n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[a,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[a,ie+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[a,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[a,[n,/[^\d\.]+./,W]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[y,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[y,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[y,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[y,/ower/,W,C]],[/ sun4\w[;\)]/i],[[y,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[y,C]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[r,[o,Q],[t,v]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[r,[o,Q],[t,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[r,[o,N],[t,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[o,N],[t,v]],[/(macintosh);/i],[r,[o,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[r,[o,fi],[t,f]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[r,[o,ui],[t,v]],[/honor([-\w ]+)[;\)]/i],[r,[o,ui],[t,f]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[r,[o,di],[t,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[r,[o,di],[t,f]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[r,/_/g," "],[o,Ae],[t,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[r,/_/g," "],[o,Ae],[t,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[r,[o,Ee],[t,f]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[r,[o,U,{OnePlus:["304","403","203"],"*":Ee}],[t,v]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[r,[o,"BLU"],[t,f]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[r,[o,"Vivo"],[t,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[r,[o,"Realme"],[t,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[r,[o,Se],[t,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[r,[o,Se],[t,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[r,[o,ue],[t,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[r,[o,ue],[t,f]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[r,[o,ci],[t,v]],[/(nokia) (t[12][01])/i],[o,r,[t,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[r,/_/g," "],[t,f],[o,"Nokia"]],[/(pixel (c|tablet))\b/i],[r,[o,P],[t,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[r,[o,P],[t,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[o,ee],[t,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[r,"Xperia Tablet"],[o,ee],[t,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[r,[o,wi],[t,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[r,[o,ce],[t,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[r,/(.+)/g,"Fire Phone $1"],[o,ce],[t,f]],[/(playbook);[-\w\),; ]+(rim)/i],[r,o,[t,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[r,[o,li],[t,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[r,[o,si],[t,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[r,[o,si],[t,f]],[/(nexus 9)/i],[r,[o,"HTC"],[t,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[r,/_/g," "],[t,f]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[r,[o,"TCL"],[t,v]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[r,[o,"TCL"],[t,f]],[/(itel) ((\w+))/i],[[o,C],r,[t,U,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[r,[o,"Acer"],[t,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[r,[o,"Meizu"],[t,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[r,[o,"Ulefone"],[t,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[r,[o,"Energizer"],[t,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[r,[o,"Cat"],[t,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[r,[o,"Smartfren"],[t,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[r,[o,"Nothing"],[t,f]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[r,[o,"Archos"],[t,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[r,[o,"Archos"],[t,f]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[o,r,[t,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[o,r,[t,f]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[o,r,[t,v]],[/(surface duo)/i],[r,[o,Re],[t,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[r,[o,"Fairphone"],[t,f]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[r,[o,Oe],[t,v]],[/(sprint) (\w+)/i],[o,r,[t,f]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[o,Re],[t,f]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[o,Ce],[t,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[o,Ce],[t,f]],[/smart-tv.+(samsung)/i],[o,[t,g]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[o,Q],[t,g]],[/tcast.+(lg)e?. ([-\w]+)/i],[o,r,[t,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,ue],[t,g]],[/(apple) ?tv/i],[o,[r,N+" TV"],[t,g]],[/crkey.*devicetype\/chromecast/i],[[r,I+" Third Generation"],[o,P],[t,g]],[/crkey.*devicetype\/([^/]*)/i],[[r,/^/,"Chromecast "],[o,P],[t,g]],[/fuchsia.*crkey/i],[[r,I+" Nest Hub"],[o,P],[t,g]],[/crkey/i],[[r,I],[o,P],[t,g]],[/(portaltv)/i],[r,[o,je],[t,g]],[/droid.+aft(\w+)( bui|\))/i],[r,[o,ce],[t,g]],[/(shield \w+ tv)/i],[r,[o,Oe],[t,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[r,[o,fi],[t,g]],[/(bravia[\w ]+)( bui|\))/i],[r,[o,ee],[t,g]],[/(mi(tv|box)-?\w+) bui/i],[r,[o,Ae],[t,g]],[/Hbbtv.*(technisat) (.*);/i],[o,r,[t,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,le],[r,le],[t,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[r,[t,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[t,g]],[/(ouya)/i,/(nintendo) (\w+)/i],[o,r,[t,ae]],[/droid.+; (shield)( bui|\))/i],[r,[o,Oe],[t,ae]],[/(playstation \w+)/i],[r,[o,ee],[t,ae]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[r,[o,Re],[t,ae]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[r,[o,Q],[t,S]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[o,r,[t,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[r,[o,Ee],[t,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[r,[o,N],[t,S]],[/(opwwe\d{3})/i],[r,[o,wi],[t,S]],[/(moto 360)/i],[r,[o,Se],[t,S]],[/(smartwatch 3)/i],[r,[o,ee],[t,S]],[/(g watch r)/i],[r,[o,ue],[t,S]],[/droid.+; (wt63?0{2,3})\)/i],[r,[o,Ce],[t,S]],[/droid.+; (glass) \d/i],[r,[o,P],[t,_e]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,r,[t,_e]],[/(quest( \d| pro)?s?).+vr/i],[r,[o,je],[t,_e]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[t,ne]],[/(aeobc)\b/i],[r,[o,ce],[t,ne]],[/(homepod).+mac os/i],[r,[o,N],[t,ne]],[/windows iot/i],[[t,ne]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[r,[t,U,{mobile:"Mobile",xr:"VR","*":v}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[t,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[t,f]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[r,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[a,_t+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[a,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[a,n],[/ladybird\//i],[[a,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,n],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[a,[n,U,hi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,U,hi],[a,$e]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,"macOS"],[n,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[n,[a,I+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[n,[a,I+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[n,[a,I+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[n,[a,I+" Linux"]],[/crkey\/([\d\.]+)/i],[n,[a,I]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,a],[/(ubuntu) ([\w\.]+) like android/i],[[a,/(.+)/,"$1 Touch"],n],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[a,n],[/\(bb(10);/i],[n,[a,li]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[n,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[a,ie+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[a,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[a,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[a,"Chrome OS"],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[a,n],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[a,n]]},we=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return j.call(e.init,[[x,[a,n,se,t]],[A,[y]],[O,[t,r,o]],[R,[a,n]],[_,[a,n]]]),j.call(e.isIgnore,[[x,[n,se]],[R,[n]],[_,[n]]]),j.call(e.isIgnoreRgx,[[x,/ ?browser$/i],[_,/ ?os$/i]]),j.call(e.toString,[[x,[a,n]],[A,[y]],[O,[o,r]],[R,[a,n]],[_,[a,n]]]),e}(),Ot=function(e,i){var s=we.init[i],u=we.isIgnore[i]||0,l=we.isIgnoreRgx[i]||0,b=we.toString[i]||0;function d(){j.call(this,s)}return d.prototype.getItem=function(){return e},d.prototype.withClientHints=function(){return H?H.getHighEntropyValues(Ci).then(function(p){return e.setCH(new ji(p,!1)).parseCH().get()}):e.parseCH().get()},d.prototype.withFeatureCheck=function(){return e.detectFeature().get()},i!=F&&(d.prototype.is=function(p){var c=!1;for(var m in this)if(this.hasOwnProperty(m)&&!qe(u,m)&&C(l?X(l,this[m]):this[m])==C(l?X(l,p):p)){if(c=!0,p!=z)break}else if(p==z&&c){c=!c;break}return c},d.prototype.toString=function(){var p=W;for(var c in b)typeof this[b[c]]!==z&&(p+=(p?" ":W)+this[b[c]]);return p||z}),H||(d.prototype.then=function(p){var c=this,m=function(){for(var M in c)c.hasOwnProperty(M)&&(this[M]=c[M])};m.prototype={is:d.prototype.is,toString:d.prototype.toString};var E=new m;return p(E),E}),new d};function ji(e,i){if(e=e||{},j.call(this,Ci),i)j.call(this,[[Ke,Te(e[D])],[Ze,Te(e[mt])],[f,/\?1/.test(e[xt])],[r,oe(e[yt])],[V,oe(e[Ai])],[Je,oe(e[kt])],[y,oe(e[ht])],[L,Te(e[gt])],[ve,oe(e[vt])]]);else for(var s in e)this.hasOwnProperty(s)&&typeof e[s]!==z&&(this[s]=e[s])}function xi(e,i,s,u){return this.get=function(l){return l?this.data.hasOwnProperty(l)?this.data[l]:void 0:this.data},this.set=function(l,b){return this.data[l]=b,this},this.setCH=function(l){return this.uaCH=l,this},this.detectFeature=function(){if(k&&k.userAgent==this.ua)switch(this.itemType){case x:k.brave&&typeof k.brave.isBrave==me&&this.set(a,"Brave");break;case O:!this.get(t)&&H&&H[f]&&this.set(t,f),this.get(r)=="Macintosh"&&k&&typeof k.standalone!==z&&k.maxTouchPoints&&k.maxTouchPoints>2&&this.set(r,"iPad").set(t,v);break;case _:!this.get(a)&&H&&H[V]&&this.set(a,H[V]);break;case F:var l=this.data,b=function(d){return l[d].getItem().detectFeature().get()};this.set(x,b(x)).set(A,b(A)).set(O,b(O)).set(R,b(R)).set(_,b(_))}return this},this.parseUA=function(){return this.itemType!=F&&Ie.call(this.data,this.ua,this.rgxMap),this.itemType==x&&this.set(se,Me(this.get(n))),this},this.parseCH=function(){var l=this.uaCH,b=this.rgxMap;switch(this.itemType){case x:case R:var d=l[Ze]||l[Ke],p;if(d)for(var c in d){var m=d[c].brand||d[c],E=d[c].version;this.itemType==x&&!/not.a.brand/i.test(m)&&(!p||/chrom/i.test(p)&&m!=pi)&&(m=U(m,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(a,m).set(n,E).set(se,Me(E)),p=m),this.itemType==R&&m==pi&&this.set(n,E)}break;case A:var M=l[y];M&&(M&&l[ve]=="64"&&(M+="64"),Ie.call(this.data,M+";",b));break;case O:if(l[f]&&this.set(t,f),l[r]&&(this.set(r,l[r]),!this.get(t)||!this.get(o))){var K={};Ie.call(K,"droid 9; "+l[r]+")",b),!this.get(t)&&K.type&&this.set(t,K.type),!this.get(o)&&K.vendor&&this.set(o,K.vendor)}if(l[L]){var de;if(typeof l[L]!="string")for(var ti=0;!de&&ti<l[L].length;)de=U(l[L][ti++],vi);else de=U(l[L],vi);this.set(t,de)}break;case _:var xe=l[V];if(xe){var ye=l[Je];xe==$e&&(ye=parseInt(Me(ye),10)>=13?"11":"10"),this.set(a,xe).set(n,ye)}this.get(a)==$e&&l[r]=="Xbox"&&this.set(a,"Xbox").set(n,void 0);break;case F:var zi=this.data,Z=function(Di){return zi[Di].getItem().setCH(l).parseCH().get()};this.set(x,Z(x)).set(A,Z(A)).set(O,Z(O)).set(R,Z(R)).set(_,Z(_))}return this},j.call(this,[["itemType",e],["ua",i],["uaCH",u],["rgxMap",s],["data",Ot(this,e)]]),this}function T(e,i,s){if(typeof e===G?(he(e,!0)?(typeof i===G&&(s=i),i=e):(s=e,i=void 0),e=void 0):typeof e===Le&&!he(i,!0)&&(s=i,i=void 0),s&&typeof s.append===me){var u={};s.forEach(function(c,m){u[m]=c}),s=u}if(!(this instanceof T))return new T(e,i,s).getResult();var l=typeof e===Le?e:s&&s[ai]?s[ai]:k&&k.userAgent?k.userAgent:W,b=new ji(s,!0),d=i?St(gi,i):gi,p=function(c){return c==F?function(){return new xi(c,l,d,b).set("ua",l).set(x,this.getBrowser()).set(A,this.getCPU()).set(O,this.getDevice()).set(R,this.getEngine()).set(_,this.getOS()).get()}:function(){return new xi(c,l,d[c],b).parseUA().get()}};return j.call(this,[["getBrowser",p(x)],["getCPU",p(A)],["getDevice",p(O)],["getEngine",p(R)],["getOS",p(_)],["getResult",p(F)],["getUA",function(){return l}],["setUA",function(c){return Y(c)&&(l=c.length>Pe?le(c,Pe):c),this}]]).setUA(l),this}T.VERSION=pt;T.BROWSER=ge([a,n,se,t]);T.CPU=ge([y]);T.DEVICE=ge([r,o,t,ae,f,g,v,S,ne]);T.ENGINE=T.OS=ge([a,n]);function Et(e){return!e||typeof e!="string"?"break-all":e.includes(" ")?"break-word":"break-all"}function Qe(e){const i={width:e.size,height:e.size,...e.sx},s=typeof e.name=="string"?e.name:e.logo,u=w.jsxs(He,{direction:"row",alignItems:"center",spacing:1,className:`info-card-wrapper ${e.className}`,sx:{cursor:e.tooltip?"pointer":"default"},children:[e.logo?w.jsx(ri,{src:e.logo,alt:e.logoName??s,variant:e.variant,sx:i}):w.jsx(ri,{variant:e.variant,sx:i,children:s==null?void 0:s.slice(0,1)}),w.jsxs(He,{direction:"column",alignItems:"flex-start",justifyContent:"space-around",sx:{wordBreak:Et(e.name),minWidth:{xs:100,sm:140}},children:[w.jsx(pe,{variant:"body1",color:"text.primary",component:"div",children:e.name}),e.description&&w.jsx(pe,{variant:"subtitle1",color:"text.secondary",children:e.description})]})]});return e.tooltip?w.jsx(Pi,{title:e.tooltip,placement:"top-start",componentsProps:{tooltip:{sx:{bgcolor:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff",color:l=>l.palette.mode==="dark"?"#ffffff":l.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:l=>l.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:l=>l.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:u}):u}Qe.propTypes={logo:h.string,name:h.oneOfType([h.string,h.node]).isRequired,description:h.oneOfType([h.string,h.node]),size:h.oneOfType([h.number,h.string]),variant:h.oneOf(["square","rounded","circular"]),sx:h.object,className:h.string,logoName:h.string,tooltip:h.oneOfType([h.string,h.node])};Qe.defaultProps={description:"",logo:"",size:40,variant:"rounded",sx:{},className:"",logoName:"",tooltip:null};function At(e){try{if(!e.trim())return{device:{icon:w.jsx(be,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:w.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const s=new T(e).getResult();let u="";const l=e.split(/\s+/).find(c=>c.startsWith("arcwallet"));if(l){const c=l.split("/");c.length>1&&oi.coerce(c[1])&&(u=oi.coerce(c[1]).version)}const b=(()=>{const{type:c="",model:m=""}=s.device;return c==="mobile"?{icon:w.jsx(Oi,{fontSize:"small"}),text:m||"Mobile Device"}:c==="tablet"?{icon:w.jsx(Ei,{fontSize:"small"}),text:m||"Tablet"}:{icon:w.jsx(Ri,{fontSize:"small"}),text:m||"Desktop"}})(),d=(()=>{const{name:c="",version:m=""}=s.os;return c.toLowerCase().includes("mac")?{icon:w.jsx(De,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("ios")?{icon:w.jsx(De,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("android")?{icon:w.jsx(Si,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("windows")?{icon:w.jsx(be,{fontSize:"small"}),text:`${c} ${m}`}:{icon:null,text:c?`${c} ${m}`:"Unknown OS"}})(),p=(()=>{const{name:c="",version:m=""}=s.browser;return{icon:w.jsx(fe,{fontSize:"small"}),text:c?`${c} ${m}`:"Unknown Browser"}})();return{device:b,os:d,browser:p,...u?{walletVersion:{icon:null,text:u}}:{}}}catch(i){return console.error("Error parsing user agent:",i),{device:{icon:w.jsx(be,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:w.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function Ti({ua:e}){const i=At(e);return w.jsx(He,{spacing:1,children:Object.entries(i).map(([s,{icon:u,text:l}])=>w.jsxs(Ue,{sx:{display:"flex",alignItems:"center",gap:1},children:[w.jsx(Ue,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:u}),w.jsx(pe,{variant:"body2",sx:{display:"flex"},children:l})]},s))})}Ti.propTypes={ua:h.string.isRequired};const Ct=()=>{const{t:e}=Ne(),i={$all:e("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:i,formatRoleName:u=>{const l=(u||"").toLowerCase();return l.startsWith("$")?i[l]||l.slice(1):i[l]||l}}},jt=(e,i=!1)=>{const s=i?1:.6;switch(e){case"owner":return`rgba(232, 222, 255, ${s})`;case"admin":return`rgba(227, 242, 253, ${s})`;case"member":return`rgba(232, 245, 233, ${s})`;case"guest":return`rgba(245, 245, 245, ${s})`;default:return`rgba(245, 245, 245, ${s})`}},Tt=yi(ki)(({role:e})=>({backgroundColor:jt(e.toLowerCase()),color:"#000000"})),Mt=e=>{switch(e){case"valid":return i=>i.palette.success.light;case"expired":return i=>i.palette.text.disabled;case"revoked":return i=>i.palette.error.light;default:return i=>i.palette.warning.light}},It=yi(ki)(({theme:e,status:i})=>({backgroundColor:Mt(i)(e),color:"#FFFFFF"}));function Mi({did:e}){return w.jsx(ze,{size:14,responsive:!1,compact:!0,copyable:!1,did:e})}Mi.propTypes={did:h.string.isRequired};function Ii({timestamp:e,locale:i}){return w.jsx(Ue,{sx:{minWidth:"100px"},children:w.jsx(Li,{value:e,locale:i})})}Ii.propTypes={timestamp:h.number.isRequired,locale:h.string.isRequired};function ei({name:e,role:i}){const{formatRoleName:s}=Ct();return w.jsx(Tt,{label:s(e||i),size:"small",role:e||i,sx:{borderRadius:1}})}ei.propTypes={role:h.string.isRequired,name:h.string};ei.defaultProps={name:""};function Hi({status:e}){const{t:i}=Ne();return w.jsx(It,{label:i(`team.passport.statusMap.${e}`),size:"small",status:e,sx:{borderRadius:1}})}Hi.propTypes={status:h.string.isRequired};function Ui({source:e}){const{t:i}=Ne();return e?i(`team.passport.sourceMaps.${e}`):"-"}Ui.propTypes={source:h.string.isRequired};const ii=ke.memo(function({user:i,size:s="default",tooltip:u=!1,inService:l}){const{teamDid:b}=Wi(),d=ke.useMemo(()=>Vi(i.avatar,b,l),[i.avatar,b,l]),p=ke.useMemo(()=>w.jsx(ze,{did:i==null?void 0:i.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[i==null?void 0:i.did]),c=Fi(()=>({...i,avatar:d}),[i,d]);return s==="small"?w.jsx(Qe,{variant:"circular",logo:d,name:w.jsx(pe,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:i.fullName||i.email}),...s==="small"?{tooltip:u?w.jsx(ze,{did:i==null?void 0:i.did}):!1,size:24}:{description:p,size:36}}):w.jsx($i,{user:c,avatarSize:s==="small"?24:36,cardType:qi.Detailed,infoType:Ni.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})});ii.propTypes={user:h.object.isRequired,size:h.string,tooltip:h.bool,inService:h.bool};ii.defaultProps={size:"default",tooltip:!1,inService:!1};const Nt=e=>w.jsx(Mi,{did:e}),Bt=(e,i)=>w.jsx(ei,{name:e,role:i}),Ft=e=>w.jsx(Hi,{status:e}),Vt=(e,i)=>w.jsx(Ii,{timestamp:e,locale:i}),Wt=e=>w.jsx(Ui,{source:e}),Gt=(e,i=!1)=>w.jsx(ii,{user:e,inService:i}),Xt=e=>w.jsx(Ti,{ua:e});export{Ft as a,Gt as b,Wt as c,Xt as d,Vt as e,Nt as f,Bt as r,Ct as u};
1
+ import{a9 as $,j as w,H as h,al as He,bd as ri,T as pe,ad as Pi,s as yi,E as ki,aa as Ue}from"./vendor-mui-core-D_bnq77o.js";import{r as q,u as Ne,X as Li,a as oi}from"./vendor-ux-did-connect-DHrruicZ.js";import{U as $i,C as qi,I as Ni}from"./index-BIPRCLBG.js";import{r as Bi,b as ke}from"./vendor-react-DEoibe3W.js";import{f as Fi}from"./vendor-hooks-rDgu5KV9.js";import{W as ze}from"./did-address-DjwPl1uy.js";import{p as Vi}from"./util-CEAObyfj.js";import{u as Wi}from"./dashboard-BIOpvfj3.js";var Be={},Gi=$;Object.defineProperty(Be,"__esModule",{value:!0});var De=Be.default=void 0;Ki(Bi);var Xi=Gi(q()),Yi=w;function _i(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,s=new WeakMap;return(_i=function(u){return u?s:i})(e)}function Ki(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var s=_i(i);if(s&&s.has(e))return s.get(e);var u={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in e)if(b!=="default"&&Object.prototype.hasOwnProperty.call(e,b)){var d=l?Object.getOwnPropertyDescriptor(e,b):null;d&&(d.get||d.set)?Object.defineProperty(u,b,d):u[b]=e[b]}return u.default=e,s&&s.set(e,u),u}De=Be.default=(0,Xi.default)((0,Yi.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"}),"Apple");var Fe={},Zi=$;Object.defineProperty(Fe,"__esModule",{value:!0});var Ri=Fe.default=void 0,Ji=Zi(q()),Qi=w;Ri=Fe.default=(0,Ji.default)((0,Qi.jsx)("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Laptop");var Ve={},et=$;Object.defineProperty(Ve,"__esModule",{value:!0});var fe=Ve.default=void 0,it=et(q()),tt=w;fe=Ve.default=(0,it.default)((0,tt.jsx)("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"}),"Web");var We={},rt=$;Object.defineProperty(We,"__esModule",{value:!0});var Si=We.default=void 0,ot=rt(q()),at=w;Si=We.default=(0,ot.default)((0,at.jsx)("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"}),"Android");var Ge={},nt=$;Object.defineProperty(Ge,"__esModule",{value:!0});var Oi=Ge.default=void 0,st=nt(q()),lt=w;Oi=Ge.default=(0,st.default)((0,lt.jsx)("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone");var Xe={},dt=$;Object.defineProperty(Xe,"__esModule",{value:!0});var Ei=Xe.default=void 0,ct=dt(q()),ut=w;Ei=Xe.default=(0,ct.default)((0,ut.jsx)("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet");var Ye={},wt=$;Object.defineProperty(Ye,"__esModule",{value:!0});var be=Ye.default=void 0,ft=wt(q()),bt=w;be=Ye.default=(0,ft.default)((0,bt.jsx)("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");var pt="2.0.3",Pe=500,ai="user-agent",W="",ni="?",me="function",z="undefined",G="object",Le="string",x="browser",A="cpu",O="device",R="engine",_="os",F="result",a="name",t="type",o="vendor",n="version",y="architecture",se="major",r="model",ae="console",f="mobile",v="tablet",g="smarttv",S="wearable",_e="xr",ne="embedded",J="inapp",Ke="brands",L="formFactors",Ze="fullVersionList",V="platform",Je="platformVersion",ve="bitness",D="sec-ch-ua",mt=D+"-full-version-list",ht=D+"-arch",vt=D+"-"+ve,gt=D+"-form-factors",xt=D+"-"+f,yt=D+"-"+r,Ai=D+"-"+V,kt=Ai+"-version",Ci=[Ke,Ze,f,r,V,Je,y,L,ve],ce="Amazon",N="Apple",si="ASUS",li="BlackBerry",P="Google",di="Huawei",ci="Lenovo",ui="Honor",ue="LG",Re="Microsoft",Se="Motorola",Oe="Nvidia",wi="OnePlus",Ee="OPPO",Q="Samsung",fi="Sharp",ee="Sony",Ae="Xiaomi",Ce="Zebra",bi="Chrome",pi="Chromium",I="Chromecast",_t="Edge",ie="Firefox",te="Opera",je="Facebook",mi="Sogou",B="Mobile ",re=" Browser",$e="Windows",Rt=typeof window!==z,k=Rt&&window.navigator?window.navigator:void 0,H=k&&k.userAgentData?k.userAgentData:void 0,St=function(e,i){var s={},u=i;if(!he(i)){u={};for(var l in i)for(var b in i[l])u[b]=i[l][b].concat(u[b]?u[b]:[])}for(var d in e)s[d]=u[d]&&u[d].length%2===0?u[d].concat(e[d]):e[d];return s},ge=function(e){for(var i={},s=0;s<e.length;s++)i[e[s].toUpperCase()]=e[s];return i},qe=function(e,i){if(typeof e===G&&e.length>0){for(var s in e)if(C(e[s])==C(i))return!0;return!1}return Y(e)?C(i).indexOf(C(e))!==-1:!1},he=function(e,i){for(var s in e)return/^(browser|cpu|device|engine|os)$/.test(s)||(i?he(e[s]):!1)},Y=function(e){return typeof e===Le},Te=function(e){if(e){for(var i=[],s=X(/\\?\"/g,e).split(","),u=0;u<s.length;u++)if(s[u].indexOf(";")>-1){var l=le(s[u]).split(";v=");i[u]={brand:l[0],version:l[1]}}else i[u]=le(s[u]);return i}},C=function(e){return Y(e)?e.toLowerCase():e},Me=function(e){return Y(e)?X(/[^\d\.]/g,e).split(".")[0]:void 0},j=function(e){for(var i in e){var s=e[i];typeof s==G&&s.length==2?this[s[0]]=s[1]:this[s]=void 0}return this},X=function(e,i){return Y(i)?i.replace(e,W):i},oe=function(e){return X(/\\?\"/g,e)},le=function(e,i){if(Y(e))return e=X(/^\s\s*/,e),typeof i===z?e:e.substring(0,Pe)},Ie=function(e,i){if(!(!e||!i))for(var s=0,u,l,b,d,p,c;s<i.length&&!p;){var m=i[s],E=i[s+1];for(u=l=0;u<m.length&&!p&&m[u];)if(p=m[u++].exec(e),p)for(b=0;b<E.length;b++)c=p[++l],d=E[b],typeof d===G&&d.length>0?d.length===2?typeof d[1]==me?this[d[0]]=d[1].call(this,c):this[d[0]]=d[1]:d.length===3?typeof d[1]===me&&!(d[1].exec&&d[1].test)?this[d[0]]=c?d[1].call(this,c,d[2]):void 0:this[d[0]]=c?c.replace(d[1],d[2]):void 0:d.length===4&&(this[d[0]]=c?d[3].call(this,c.replace(d[1],d[2])):void 0):this[d]=c||void 0;s+=2}},U=function(e,i){for(var s in i)if(typeof i[s]===G&&i[s].length>0){for(var u=0;u<i[s].length;u++)if(qe(i[s][u],e))return s===ni?void 0:s}else if(qe(i[s],e))return s===ni?void 0:s;return i.hasOwnProperty("*")?i["*"]:e},hi={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},vi={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},gi={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[n,[a,B+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[n,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,n],[/opios[\/ ]+([\w\.]+)/i],[n,[a,te+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[n,[a,te+" GX"]],[/\bopr\/([\w\.]+)/i],[n,[a,te]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[n,[a,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[n,[a,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[a,n],[/quark(?:pc)?\/([-\w\.]+)/i],[n,[a,"Quark"]],[/\bddg\/([\w\.]+)/i],[n,[a,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[n,[a,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[n,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[n,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[n,[a,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[n,[a,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[n,[a,"Smart "+ci+re]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure"+re],n],[/\bfocus\/([\w\.]+)/i],[n,[a,ie+" Focus"]],[/\bopt\/([\w\.]+)/i],[n,[a,te+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[n,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[n,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[n,[a,te+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[n,[a,"MIUI"+re]],[/fxios\/([\w\.-]+)/i],[n,[a,B+ie]],[/\bqihoobrowser\/?([\w\.]*)/i],[n,[a,"360"]],[/\b(qq)\/([\w\.]+)/i],[[a,/(.+)/,"$1Browser"],n],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1"+re],n],[/samsungbrowser\/([\w\.]+)/i],[n,[a,Q+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[n,[a,mi+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[a,mi+" Mobile"],n],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[a,n],[/(lbbrowser|rekonq)/i],[a],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[n,a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,je],n,[t,J]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[a,n,[t,J]],[/\bgsa\/([\w\.]+) .*safari\//i],[n,[a,"GSA"],[t,J]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[n,[a,"TikTok"],[t,J]],[/\[(linkedin)app\]/i],[a,[t,J]],[/(chromium)[\/ ]([-\w\.]+)/i],[a,n],[/headlesschrome(?:\/([\w\.]+)| )/i],[n,[a,bi+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,bi+" WebView"],n],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[n,[a,"Android"+re]],[/chrome\/([\w\.]+) mobile/i],[n,[a,B+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,n],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[n,[a,B+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[a,B+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[n,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[n,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[a,n],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[a,B+ie],n],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],n],[/(wolvic|librewolf)\/([\w\.]+)/i],[a,n],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[n,[a,ie+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[a,[n,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[a,[n,/[^\d\.]+./,W]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[y,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[y,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[y,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[y,/ower/,W,C]],[/ sun4\w[;\)]/i],[[y,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[y,C]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[r,[o,Q],[t,v]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[r,[o,Q],[t,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[r,[o,N],[t,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[r,[o,N],[t,v]],[/(macintosh);/i],[r,[o,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[r,[o,fi],[t,f]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[r,[o,ui],[t,v]],[/honor([-\w ]+)[;\)]/i],[r,[o,ui],[t,f]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[r,[o,di],[t,v]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[r,[o,di],[t,f]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[r,/_/g," "],[o,Ae],[t,v]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[r,/_/g," "],[o,Ae],[t,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[r,[o,Ee],[t,f]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[r,[o,U,{OnePlus:["304","403","203"],"*":Ee}],[t,v]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[r,[o,"BLU"],[t,f]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[r,[o,"Vivo"],[t,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[r,[o,"Realme"],[t,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[r,[o,Se],[t,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[r,[o,Se],[t,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[r,[o,ue],[t,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,/\blg-?([\d\w]+) bui/i],[r,[o,ue],[t,f]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[r,[o,ci],[t,v]],[/(nokia) (t[12][01])/i],[o,r,[t,v]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[r,/_/g," "],[t,f],[o,"Nokia"]],[/(pixel (c|tablet))\b/i],[r,[o,P],[t,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[r,[o,P],[t,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[r,[o,ee],[t,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[r,"Xperia Tablet"],[o,ee],[t,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[r,[o,wi],[t,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[r,[o,ce],[t,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[r,/(.+)/g,"Fire Phone $1"],[o,ce],[t,f]],[/(playbook);[-\w\),; ]+(rim)/i],[r,o,[t,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[r,[o,li],[t,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[r,[o,si],[t,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[r,[o,si],[t,f]],[/(nexus 9)/i],[r,[o,"HTC"],[t,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[o,[r,/_/g," "],[t,f]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[r,[o,"TCL"],[t,v]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[r,[o,"TCL"],[t,f]],[/(itel) ((\w+))/i],[[o,C],r,[t,U,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[r,[o,"Acer"],[t,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[r,[o,"Meizu"],[t,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[r,[o,"Ulefone"],[t,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[r,[o,"Energizer"],[t,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[r,[o,"Cat"],[t,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[r,[o,"Smartfren"],[t,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[r,[o,"Nothing"],[t,f]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[r,[o,"Archos"],[t,v]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[r,[o,"Archos"],[t,f]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[o,r,[t,v]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[o,r,[t,f]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[o,r,[t,v]],[/(surface duo)/i],[r,[o,Re],[t,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[r,[o,"Fairphone"],[t,f]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[r,[o,Oe],[t,v]],[/(sprint) (\w+)/i],[o,r,[t,f]],[/(kin\.[onetw]{3})/i],[[r,/\./g," "],[o,Re],[t,f]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[r,[o,Ce],[t,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[r,[o,Ce],[t,f]],[/smart-tv.+(samsung)/i],[o,[t,g]],[/hbbtv.+maple;(\d+)/i],[[r,/^/,"SmartTV"],[o,Q],[t,g]],[/tcast.+(lg)e?. ([-\w]+)/i],[o,r,[t,g]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[o,ue],[t,g]],[/(apple) ?tv/i],[o,[r,N+" TV"],[t,g]],[/crkey.*devicetype\/chromecast/i],[[r,I+" Third Generation"],[o,P],[t,g]],[/crkey.*devicetype\/([^/]*)/i],[[r,/^/,"Chromecast "],[o,P],[t,g]],[/fuchsia.*crkey/i],[[r,I+" Nest Hub"],[o,P],[t,g]],[/crkey/i],[[r,I],[o,P],[t,g]],[/(portaltv)/i],[r,[o,je],[t,g]],[/droid.+aft(\w+)( bui|\))/i],[r,[o,ce],[t,g]],[/(shield \w+ tv)/i],[r,[o,Oe],[t,g]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[r,[o,fi],[t,g]],[/(bravia[\w ]+)( bui|\))/i],[r,[o,ee],[t,g]],[/(mi(tv|box)-?\w+) bui/i],[r,[o,Ae],[t,g]],[/Hbbtv.*(technisat) (.*);/i],[o,r,[t,g]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[o,le],[r,le],[t,g]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[r,[t,g]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[t,g]],[/(ouya)/i,/(nintendo) (\w+)/i],[o,r,[t,ae]],[/droid.+; (shield)( bui|\))/i],[r,[o,Oe],[t,ae]],[/(playstation \w+)/i],[r,[o,ee],[t,ae]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[r,[o,Re],[t,ae]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[r,[o,Q],[t,S]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[o,r,[t,S]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[r,[o,Ee],[t,S]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[r,[o,N],[t,S]],[/(opwwe\d{3})/i],[r,[o,wi],[t,S]],[/(moto 360)/i],[r,[o,Se],[t,S]],[/(smartwatch 3)/i],[r,[o,ee],[t,S]],[/(g watch r)/i],[r,[o,ue],[t,S]],[/droid.+; (wt63?0{2,3})\)/i],[r,[o,Ce],[t,S]],[/droid.+; (glass) \d/i],[r,[o,P],[t,_e]],[/(pico) (4|neo3(?: link|pro)?)/i],[o,r,[t,_e]],[/(quest( \d| pro)?s?).+vr/i],[r,[o,je],[t,_e]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[o,[t,ne]],[/(aeobc)\b/i],[r,[o,ce],[t,ne]],[/(homepod).+mac os/i],[r,[o,N],[t,ne]],[/windows iot/i],[[t,ne]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[r,[t,U,{mobile:"Mobile",xr:"VR","*":v}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[t,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[t,f]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[r,[o,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[n,[a,_t+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[a,n],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[n,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[a,n],[/ladybird\//i],[[a,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[n,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,n],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[a,[n,U,hi]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[n,U,hi],[a,$e]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[n,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,"macOS"],[n,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[n,[a,I+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[n,[a,I+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[n,[a,I+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[n,[a,I+" Linux"]],[/crkey\/([\d\.]+)/i],[n,[a,I]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[n,a],[/(ubuntu) ([\w\.]+) like android/i],[[a,/(.+)/,"$1 Touch"],n],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/\.; ]?([\d\.]*)/i],[a,n],[/\(bb(10);/i],[n,[a,li]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[n,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[n,[a,ie+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[n,[a,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[n,[a,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[a,"Chrome OS"],n],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[a,n],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],n],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[a,n]]},we=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return j.call(e.init,[[x,[a,n,se,t]],[A,[y]],[O,[t,r,o]],[R,[a,n]],[_,[a,n]]]),j.call(e.isIgnore,[[x,[n,se]],[R,[n]],[_,[n]]]),j.call(e.isIgnoreRgx,[[x,/ ?browser$/i],[_,/ ?os$/i]]),j.call(e.toString,[[x,[a,n]],[A,[y]],[O,[o,r]],[R,[a,n]],[_,[a,n]]]),e}(),Ot=function(e,i){var s=we.init[i],u=we.isIgnore[i]||0,l=we.isIgnoreRgx[i]||0,b=we.toString[i]||0;function d(){j.call(this,s)}return d.prototype.getItem=function(){return e},d.prototype.withClientHints=function(){return H?H.getHighEntropyValues(Ci).then(function(p){return e.setCH(new ji(p,!1)).parseCH().get()}):e.parseCH().get()},d.prototype.withFeatureCheck=function(){return e.detectFeature().get()},i!=F&&(d.prototype.is=function(p){var c=!1;for(var m in this)if(this.hasOwnProperty(m)&&!qe(u,m)&&C(l?X(l,this[m]):this[m])==C(l?X(l,p):p)){if(c=!0,p!=z)break}else if(p==z&&c){c=!c;break}return c},d.prototype.toString=function(){var p=W;for(var c in b)typeof this[b[c]]!==z&&(p+=(p?" ":W)+this[b[c]]);return p||z}),H||(d.prototype.then=function(p){var c=this,m=function(){for(var M in c)c.hasOwnProperty(M)&&(this[M]=c[M])};m.prototype={is:d.prototype.is,toString:d.prototype.toString};var E=new m;return p(E),E}),new d};function ji(e,i){if(e=e||{},j.call(this,Ci),i)j.call(this,[[Ke,Te(e[D])],[Ze,Te(e[mt])],[f,/\?1/.test(e[xt])],[r,oe(e[yt])],[V,oe(e[Ai])],[Je,oe(e[kt])],[y,oe(e[ht])],[L,Te(e[gt])],[ve,oe(e[vt])]]);else for(var s in e)this.hasOwnProperty(s)&&typeof e[s]!==z&&(this[s]=e[s])}function xi(e,i,s,u){return this.get=function(l){return l?this.data.hasOwnProperty(l)?this.data[l]:void 0:this.data},this.set=function(l,b){return this.data[l]=b,this},this.setCH=function(l){return this.uaCH=l,this},this.detectFeature=function(){if(k&&k.userAgent==this.ua)switch(this.itemType){case x:k.brave&&typeof k.brave.isBrave==me&&this.set(a,"Brave");break;case O:!this.get(t)&&H&&H[f]&&this.set(t,f),this.get(r)=="Macintosh"&&k&&typeof k.standalone!==z&&k.maxTouchPoints&&k.maxTouchPoints>2&&this.set(r,"iPad").set(t,v);break;case _:!this.get(a)&&H&&H[V]&&this.set(a,H[V]);break;case F:var l=this.data,b=function(d){return l[d].getItem().detectFeature().get()};this.set(x,b(x)).set(A,b(A)).set(O,b(O)).set(R,b(R)).set(_,b(_))}return this},this.parseUA=function(){return this.itemType!=F&&Ie.call(this.data,this.ua,this.rgxMap),this.itemType==x&&this.set(se,Me(this.get(n))),this},this.parseCH=function(){var l=this.uaCH,b=this.rgxMap;switch(this.itemType){case x:case R:var d=l[Ze]||l[Ke],p;if(d)for(var c in d){var m=d[c].brand||d[c],E=d[c].version;this.itemType==x&&!/not.a.brand/i.test(m)&&(!p||/chrom/i.test(p)&&m!=pi)&&(m=U(m,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"}),this.set(a,m).set(n,E).set(se,Me(E)),p=m),this.itemType==R&&m==pi&&this.set(n,E)}break;case A:var M=l[y];M&&(M&&l[ve]=="64"&&(M+="64"),Ie.call(this.data,M+";",b));break;case O:if(l[f]&&this.set(t,f),l[r]&&(this.set(r,l[r]),!this.get(t)||!this.get(o))){var K={};Ie.call(K,"droid 9; "+l[r]+")",b),!this.get(t)&&K.type&&this.set(t,K.type),!this.get(o)&&K.vendor&&this.set(o,K.vendor)}if(l[L]){var de;if(typeof l[L]!="string")for(var ti=0;!de&&ti<l[L].length;)de=U(l[L][ti++],vi);else de=U(l[L],vi);this.set(t,de)}break;case _:var xe=l[V];if(xe){var ye=l[Je];xe==$e&&(ye=parseInt(Me(ye),10)>=13?"11":"10"),this.set(a,xe).set(n,ye)}this.get(a)==$e&&l[r]=="Xbox"&&this.set(a,"Xbox").set(n,void 0);break;case F:var zi=this.data,Z=function(Di){return zi[Di].getItem().setCH(l).parseCH().get()};this.set(x,Z(x)).set(A,Z(A)).set(O,Z(O)).set(R,Z(R)).set(_,Z(_))}return this},j.call(this,[["itemType",e],["ua",i],["uaCH",u],["rgxMap",s],["data",Ot(this,e)]]),this}function T(e,i,s){if(typeof e===G?(he(e,!0)?(typeof i===G&&(s=i),i=e):(s=e,i=void 0),e=void 0):typeof e===Le&&!he(i,!0)&&(s=i,i=void 0),s&&typeof s.append===me){var u={};s.forEach(function(c,m){u[m]=c}),s=u}if(!(this instanceof T))return new T(e,i,s).getResult();var l=typeof e===Le?e:s&&s[ai]?s[ai]:k&&k.userAgent?k.userAgent:W,b=new ji(s,!0),d=i?St(gi,i):gi,p=function(c){return c==F?function(){return new xi(c,l,d,b).set("ua",l).set(x,this.getBrowser()).set(A,this.getCPU()).set(O,this.getDevice()).set(R,this.getEngine()).set(_,this.getOS()).get()}:function(){return new xi(c,l,d[c],b).parseUA().get()}};return j.call(this,[["getBrowser",p(x)],["getCPU",p(A)],["getDevice",p(O)],["getEngine",p(R)],["getOS",p(_)],["getResult",p(F)],["getUA",function(){return l}],["setUA",function(c){return Y(c)&&(l=c.length>Pe?le(c,Pe):c),this}]]).setUA(l),this}T.VERSION=pt;T.BROWSER=ge([a,n,se,t]);T.CPU=ge([y]);T.DEVICE=ge([r,o,t,ae,f,g,v,S,ne]);T.ENGINE=T.OS=ge([a,n]);function Et(e){return!e||typeof e!="string"?"break-all":e.includes(" ")?"break-word":"break-all"}function Qe(e){const i={width:e.size,height:e.size,...e.sx},s=typeof e.name=="string"?e.name:e.logo,u=w.jsxs(He,{direction:"row",alignItems:"center",spacing:1,className:`info-card-wrapper ${e.className}`,sx:{cursor:e.tooltip?"pointer":"default"},children:[e.logo?w.jsx(ri,{src:e.logo,alt:e.logoName??s,variant:e.variant,sx:i}):w.jsx(ri,{variant:e.variant,sx:i,children:s==null?void 0:s.slice(0,1)}),w.jsxs(He,{direction:"column",alignItems:"flex-start",justifyContent:"space-around",sx:{wordBreak:Et(e.name),minWidth:{xs:100,sm:140}},children:[w.jsx(pe,{variant:"body1",color:"text.primary",component:"div",children:e.name}),e.description&&w.jsx(pe,{variant:"subtitle1",color:"text.secondary",children:e.description})]})]});return e.tooltip?w.jsx(Pi,{title:e.tooltip,placement:"top-start",componentsProps:{tooltip:{sx:{bgcolor:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff",color:l=>l.palette.mode==="dark"?"#ffffff":l.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:l=>l.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:l=>l.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:l=>l.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:u}):u}Qe.propTypes={logo:h.string,name:h.oneOfType([h.string,h.node]).isRequired,description:h.oneOfType([h.string,h.node]),size:h.oneOfType([h.number,h.string]),variant:h.oneOf(["square","rounded","circular"]),sx:h.object,className:h.string,logoName:h.string,tooltip:h.oneOfType([h.string,h.node])};Qe.defaultProps={description:"",logo:"",size:40,variant:"rounded",sx:{},className:"",logoName:"",tooltip:null};function At(e){try{if(!e.trim())return{device:{icon:w.jsx(be,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:w.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const s=new T(e).getResult();let u="";const l=e.split(/\s+/).find(c=>c.startsWith("arcwallet"));if(l){const c=l.split("/");c.length>1&&oi.coerce(c[1])&&(u=oi.coerce(c[1]).version)}const b=(()=>{const{type:c="",model:m=""}=s.device;return c==="mobile"?{icon:w.jsx(Oi,{fontSize:"small"}),text:m||"Mobile Device"}:c==="tablet"?{icon:w.jsx(Ei,{fontSize:"small"}),text:m||"Tablet"}:{icon:w.jsx(Ri,{fontSize:"small"}),text:m||"Desktop"}})(),d=(()=>{const{name:c="",version:m=""}=s.os;return c.toLowerCase().includes("mac")?{icon:w.jsx(De,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("ios")?{icon:w.jsx(De,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("android")?{icon:w.jsx(Si,{fontSize:"small"}),text:`${c} ${m}`}:c.toLowerCase().includes("windows")?{icon:w.jsx(be,{fontSize:"small"}),text:`${c} ${m}`}:{icon:null,text:c?`${c} ${m}`:"Unknown OS"}})(),p=(()=>{const{name:c="",version:m=""}=s.browser;return{icon:w.jsx(fe,{fontSize:"small"}),text:c?`${c} ${m}`:"Unknown Browser"}})();return{device:b,os:d,browser:p,...u?{walletVersion:{icon:null,text:u}}:{}}}catch(i){return console.error("Error parsing user agent:",i),{device:{icon:w.jsx(be,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:w.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function Ti({ua:e}){const i=At(e);return w.jsx(He,{spacing:1,children:Object.entries(i).map(([s,{icon:u,text:l}])=>w.jsxs(Ue,{sx:{display:"flex",alignItems:"center",gap:1},children:[w.jsx(Ue,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:u}),w.jsx(pe,{variant:"body2",sx:{display:"flex"},children:l})]},s))})}Ti.propTypes={ua:h.string.isRequired};const Ct=()=>{const{t:e}=Ne(),i={$all:e("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:i,formatRoleName:u=>{const l=(u||"").toLowerCase();return l.startsWith("$")?i[l]||l.slice(1):i[l]||l}}},jt=(e,i=!1)=>{const s=i?1:.6;switch(e){case"owner":return`rgba(232, 222, 255, ${s})`;case"admin":return`rgba(227, 242, 253, ${s})`;case"member":return`rgba(232, 245, 233, ${s})`;case"guest":return`rgba(245, 245, 245, ${s})`;default:return`rgba(245, 245, 245, ${s})`}},Tt=yi(ki)(({role:e})=>({backgroundColor:jt(e.toLowerCase()),color:"#000000"})),Mt=e=>{switch(e){case"valid":return i=>i.palette.success.light;case"expired":return i=>i.palette.text.disabled;case"revoked":return i=>i.palette.error.light;default:return i=>i.palette.warning.light}},It=yi(ki)(({theme:e,status:i})=>({backgroundColor:Mt(i)(e),color:"#FFFFFF"}));function Mi({did:e}){return w.jsx(ze,{size:14,responsive:!1,compact:!0,copyable:!1,did:e})}Mi.propTypes={did:h.string.isRequired};function Ii({timestamp:e,locale:i}){return w.jsx(Ue,{sx:{minWidth:"100px"},children:w.jsx(Li,{value:e,locale:i})})}Ii.propTypes={timestamp:h.number.isRequired,locale:h.string.isRequired};function ei({name:e,role:i}){const{formatRoleName:s}=Ct();return w.jsx(Tt,{label:s(e||i),size:"small",role:e||i,sx:{borderRadius:1}})}ei.propTypes={role:h.string.isRequired,name:h.string};ei.defaultProps={name:""};function Hi({status:e}){const{t:i}=Ne();return w.jsx(It,{label:i(`team.passport.statusMap.${e}`),size:"small",status:e,sx:{borderRadius:1}})}Hi.propTypes={status:h.string.isRequired};function Ui({source:e}){const{t:i}=Ne();return e?i(`team.passport.sourceMaps.${e}`):"-"}Ui.propTypes={source:h.string.isRequired};const ii=ke.memo(function({user:i,size:s="default",tooltip:u=!1,inService:l}){const{teamDid:b}=Wi(),d=ke.useMemo(()=>Vi(i.avatar,b,l),[i.avatar,b,l]),p=ke.useMemo(()=>w.jsx(ze,{did:i==null?void 0:i.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[i==null?void 0:i.did]),c=Fi(()=>({...i,avatar:d}),[i,d]);return s==="small"?w.jsx(Qe,{variant:"circular",logo:d,name:w.jsx(pe,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:i.fullName||i.email}),...s==="small"?{tooltip:u?w.jsx(ze,{did:i==null?void 0:i.did}):!1,size:24}:{description:p,size:36}}):w.jsx($i,{user:c,avatarSize:s==="small"?24:36,cardType:qi.Detailed,infoType:Ni.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})});ii.propTypes={user:h.object.isRequired,size:h.string,tooltip:h.bool,inService:h.bool};ii.defaultProps={size:"default",tooltip:!1,inService:!1};const Nt=e=>w.jsx(Mi,{did:e}),Bt=(e,i)=>w.jsx(ei,{name:e,role:i}),Ft=e=>w.jsx(Hi,{status:e}),Vt=(e,i)=>w.jsx(Ii,{timestamp:e,locale:i}),Wt=e=>w.jsx(Ui,{source:e}),Gt=(e,i=!1)=>w.jsx(ii,{user:e,inService:i}),Xt=e=>w.jsx(Ti,{ua:e});export{Ft as a,Gt as b,Wt as c,Xt as d,Vt as e,Nt as f,Bt as r,Ct as u};
@@ -1 +1 @@
1
- import{H as n,j as p}from"./vendor-mui-core-UZpb7wT7.js";import{u as m}from"./session-6XaVDQaE.js";function u({permission:i,role:t,component:s,children:o}){const{session:r}=m();let e=!0;const f=[].concat(i).filter(Boolean),l=[].concat(t).filter(Boolean);if(f.length){const c=r.user&&r.user.permissions||[];e=f.some(a=>c.includes(a))}return e&&l.length&&(e=l.includes(r.user.role)),typeof s=="function"?s(e):typeof o=="function"?o(e):e&&(s||o)||null}function d(i,t,s){return function(r){return p.jsx(u,{permission:t,role:s,children:e=>p.jsx(i,{...r,hasPermission:e})})}}u.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};u.defaultProps={permission:"",role:"",component:null,children:null};export{u as P,d as w};
1
+ import{H as n,j as p}from"./vendor-mui-core-D_bnq77o.js";import{u as m}from"./session-CHdTc1We.js";function u({permission:i,role:t,component:s,children:o}){const{session:r}=m();let e=!0;const f=[].concat(i).filter(Boolean),l=[].concat(t).filter(Boolean);if(f.length){const c=r.user&&r.user.permissions||[];e=f.some(a=>c.includes(a))}return e&&l.length&&(e=l.includes(r.user.role)),typeof s=="function"?s(e):typeof o=="function"?o(e):e&&(s||o)||null}function d(i,t,s){return function(r){return p.jsx(u,{permission:t,role:s,children:e=>p.jsx(i,{...r,hasPermission:e})})}}u.propTypes={permission:n.oneOfType([n.string,n.arrayOf(n.string)]),role:n.oneOfType([n.string,n.arrayOf(n.string)]),component:n.oneOfType([n.func,n.node]),children:n.oneOfType([n.func,n.node])};u.defaultProps={permission:"",role:"",component:null,children:null};export{u as P,d as w};
@@ -1 +1 @@
1
- import{j as o}from"./vendor-mui-core-UZpb7wT7.js";import{A as t}from"./vendor-utils-rHXShPKm.js";import{I as s}from"./iframe-CIVgAJuH.js";import{j as e}from"./vendor-ux-did-connect-TEE6cGq6.js";import{S as m}from"./studio-BbeHx14I.js";import"./vendor-react-DEoibe3W.js";import"./vendor-arcblock-CN2B_oTr.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./TuneOutlined-CB7t_nGq.js";function P(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const i=`${t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return o.jsx(m,{children:o.jsx(s,{url:i,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{P as default};
1
+ import{j as o}from"./vendor-mui-core-D_bnq77o.js";import{A as t}from"./vendor-utils-rHXShPKm.js";import{I as s}from"./iframe-DW7zzzTG.js";import{j as e}from"./vendor-ux-did-connect-DHrruicZ.js";import{S as m}from"./studio-DikseKRr.js";import"./vendor-react-DEoibe3W.js";import"./vendor-arcblock-uz9DVywv.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./TuneOutlined-BR2H7Mxj.js";function P(){const r=new URLSearchParams;r.set("title","Preference Builder"),r.set("schemaKey",t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/api/studio/preferences"));const i=`${t(window.location.origin,e.WELLKNOWN_SERVICE_PATH_PREFIX,"/hosted/form-builder/")}?${r.toString()}`;return o.jsx(m,{children:o.jsx(s,{url:i,width:"100%",height:"100%",frameBorder:0,styles:{border:0}})})}export{P as default};
@@ -1 +1 @@
1
- import{j as e}from"./vendor-mui-core-UZpb7wT7.js";import{H as t,U as o}from"./vendor-arcblock-CN2B_oTr.js";import"./vendor-react-DEoibe3W.js";import{u as s}from"./vendor-ux-did-connect-TEE6cGq6.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";function x(){const{t:r}=s();return e.jsxs(e.Fragment,{children:[e.jsx(t,{children:e.jsx("title",{children:r("pageTitle.userCenter")})}),e.jsx(o,{onlyProfile:!0,currentTab:"",disableAutoRedirect:!0})]})}export{x as default};
1
+ import{j as e}from"./vendor-mui-core-D_bnq77o.js";import{H as t,U as o}from"./vendor-arcblock-uz9DVywv.js";import"./vendor-react-DEoibe3W.js";import{u as s}from"./vendor-ux-did-connect-DHrruicZ.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";function x(){const{t:r}=s();return e.jsxs(e.Fragment,{children:[e.jsx(t,{children:e.jsx("title",{children:r("pageTitle.userCenter")})}),e.jsx(o,{onlyProfile:!0,currentTab:"",disableAutoRedirect:!0})]})}export{x as default};
@@ -0,0 +1 @@
1
+ import{v as n,j as i,aa as l}from"./vendor-mui-core-D_bnq77o.js";import{l as d,r as c}from"./vendor-react-DEoibe3W.js";import{u,am as h}from"./vendor-ux-did-connect-DHrruicZ.js";import g from"./index-Du38Vjy4.js";import"./vendor-utils-rHXShPKm.js";import"./vendor-hooks-rDgu5KV9.js";import"./lottie-web-jYmAQWuC.js";import"./index-DefO2n6z.js";import"./vendor-arcblock-uz9DVywv.js";import"./Error-jEHdDLNk.js";import"./confirm-DjTZImyg.js";import"./format-error-BrmqJs5a.js";import"./session-CHdTc1We.js";import"./did-address-DjwPl1uy.js";import"./empty-spinner-n0_Ehns5.js";import"./bundle-avatar-DYTLzqlT.js";import"./shorten-label-Cng55547.js";import"./list-header-HqBQs1yn.js";import"./Download-C_LRKzbG.js";import"./click-to-copy-CFiGx48J.js";import"./QuestionMarkCircle-BPVDAm8U.js";import"./useSetState-CWq0AVWn.js";import"./index-DVQCgvFb.js";import"./index-BYCeMwoO.js";import"./api-BjteVZFg.js";import"./ChevronRight-a_2_x6Ew.js";import"./vendor-mui-x-R-0SFz4c.js";import"./DeleteOutline-CFN4r-OG.js";import"./react-beautiful-dnd.esm-7PS2VwOi.js";import"./raf-schd.esm-B3j6BePR.js";import"./item-Bk_1JLeG.js";import"./Launch-B-2Jomi6.js";import"./Done-DqSE6KPe.js";import"./delete-confirm-BzuBR6TW.js";import"./get-safe-url-Bk6PlU7n.js";import"./ArrowDropDown-BrO-zDlb.js";import"./index-B8r-LrrM.js";import"./index-BDYaw77z.js";const r=new URL(window.location.href),s=r.searchParams.get("mode")==="dialog",w=s?"":r.searchParams.get("padding")||"";function to(){const{t:p}=u(),{componentDid:o}=d(),m=n(t=>t.breakpoints.down("md")),a=t=>{t.stopPropagation(),window.parent.postMessage({event:"resourceDialog.close",componentDid:o},"*")};c.useEffect(()=>{window.parent.postMessage({event:"resourceDialog.loaded",componentDid:o},"*")},[o]);const e=i.jsx(g,{padding:w,initUrl:r});return s?i.jsx(h,{className:"studio-dialog",title:p("blocklet.publish.blockletStudio"),maxWidth:!1,fullWidth:!1,PaperProps:{style:m?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:a,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:i.jsx(l,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:e})}):e}export{to as default};
@@ -1,4 +1,4 @@
1
- import{b as N,r as S,d as ra,c as ta}from"./vendor-react-DEoibe3W.js";import{c as er,_ as w,b0 as ct,ac as qt}from"./vendor-mui-core-UZpb7wT7.js";import{bk as dt,bl as na,bm as aa,bn as ia}from"./vendor-ux-did-connect-TEE6cGq6.js";import{u as x,a as A,w as rr,g as $t,r as Ae,e as zt,c as oa,b as la,d as ce,o as Tr}from"./raf-schd.esm-B3j6BePR.js";var jt=N.createContext(null);function ua(e){e()}var Yt=ua,sa=function(r){return Yt=r},ca=function(){return Yt};function da(){var e=ca(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var i=r;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=r;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=t={callback:i,next:null,prev:t};return o.prev?o.prev.next=o:r=o,function(){!a||r===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}var pt={notify:function(){},get:function(){return[]}};function Kt(e,r){var t,n=pt;function i(u){return c(),n.subscribe(u)}function a(){n.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return!!t}function c(){t||(t=r?r.addNestedSub(o):e.subscribe(o),n=da())}function d(){t&&(t(),t=void 0,n.clear(),n=pt)}var p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:c,tryUnsubscribe:d,getListeners:function(){return n}};return p}var Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function pa(e){var r=e.store,t=e.context,n=e.children,i=S.useMemo(function(){var l=Kt(r);return{store:r,subscription:l}},[r]),a=S.useMemo(function(){return r.getState()},[r]);Jt(function(){var l=i.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=t||jt;return N.createElement(o.Provider,{value:i},n)}var Xt={exports:{}},O={};/** @license React v17.0.2
1
+ import{b as N,r as S,d as ra,c as ta}from"./vendor-react-DEoibe3W.js";import{c as er,_ as w,b0 as ct,ac as qt}from"./vendor-mui-core-D_bnq77o.js";import{bj as dt,bk as na,bl as aa,bm as ia}from"./vendor-ux-did-connect-DHrruicZ.js";import{u as x,a as A,w as rr,g as $t,r as Ae,e as zt,c as oa,b as la,d as ce,o as Tr}from"./raf-schd.esm-B3j6BePR.js";var jt=N.createContext(null);function ua(e){e()}var Yt=ua,sa=function(r){return Yt=r},ca=function(){return Yt};function da(){var e=ca(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var i=r;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=r;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=t={callback:i,next:null,prev:t};return o.prev?o.prev.next=o:r=o,function(){!a||r===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}var pt={notify:function(){},get:function(){return[]}};function Kt(e,r){var t,n=pt;function i(u){return c(),n.subscribe(u)}function a(){n.notify()}function o(){p.onStateChange&&p.onStateChange()}function l(){return!!t}function c(){t||(t=r?r.addNestedSub(o):e.subscribe(o),n=da())}function d(){t&&(t(),t=void 0,n.clear(),n=pt)}var p={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:c,tryUnsubscribe:d,getListeners:function(){return n}};return p}var Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?S.useLayoutEffect:S.useEffect;function pa(e){var r=e.store,t=e.context,n=e.children,i=S.useMemo(function(){var l=Kt(r);return{store:r,subscription:l}},[r]),a=S.useMemo(function(){return r.getState()},[r]);Jt(function(){var l=i.subscription;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==r.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=t||jt;return N.createElement(o.Provider,{value:i},n)}var Xt={exports:{}},O={};/** @license React v17.0.2
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -0,0 +1 @@
1
+ import{r as h}from"./vendor-react-DEoibe3W.js";import{e as G,m as $,j as s,bL as q,T as L,aa as w,H as l,bc as C,ah as F,ad as S,co as Z,cp as v}from"./vendor-mui-core-D_bnq77o.js";import{p as H}from"./use-blocklet-logo-BEy8Tnso.js";import{u as P,a0 as ee,I as te,a7 as ae}from"./vendor-ux-did-connect-DHrruicZ.js";import{aq as O,ax as _,z as se,C as J,f as U,aF as ne}from"./index-DefO2n6z.js";import{b as A,aM as re}from"./vendor-utils-rHXShPKm.js";import{a5 as R}from"./vendor-arcblock-uz9DVywv.js";import{R as K}from"./index-ftkgQlGr.js";import{B as ie}from"./bundle-avatar-DYTLzqlT.js";import{B as oe}from"./dashboard-BIOpvfj3.js";import"./vendor-hooks-rDgu5KV9.js";import"./session-CHdTc1We.js";import"./lottie-web-jYmAQWuC.js";import"./useLocalStorage-DVnkpneF.js";import"./confirm-DjTZImyg.js";import"./format-error-BrmqJs5a.js";import"./PlayArrow-BToG9L6q.js";import"./get-safe-url-Bk6PlU7n.js";import"./InfoOutlined-DkG0jjos.js";import"./dot-C4hULxc0.js";import"./useAsync-CMWsznMW.js";import"./useSetState-CWq0AVWn.js";import"./use-mobile-DyX6Fl8Z.js";const Q=n=>{const g=new Date(Math.min(...n)),i=(new Date(Math.max(...n))-g)/(1e3*60);return p=>{if(i<=10){const t=(n.length-n.length%i)/i;return p%t===0}const o=(n.length-n.length%6)/6;return p%o===0}},B=n=>`${n}%`;function N({title:n,cpus:g,currentLoad:c,history:d,empty:i,onHover:p,hoverIndex:r}){const{t:o,locale:b}=P(),t=G(),e=h.useRef(null),a=A(d)?[]:d.map(u=>O(u.date,"HH:mm",b)),j=`${n||o("common.cpu")} (${Math.floor(c||0)}%)`,k=h.useCallback(()=>{p==null||p(null)},[p]);if(h.useEffect(()=>{if(!e.current||(r==null?void 0:r.ref)===e)return;const u=e.current.getEchartsInstance(),E=r==null?void 0:r.seriesIndex,T=a.findIndex(y=>y===(r==null?void 0:r.dataValue));r&&T!==-1?u.dispatchAction({type:"showTip",seriesIndex:E,dataIndex:T}):(u.dispatchAction({type:"hideTip"}),u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:-1}))},[r]),!A(d)){const T={tooltip:{trigger:"axis",formatter(y){const D=y[0].data,{seriesIndex:f,dataIndex:x}=y[0];return p==null||p({seriesIndex:f,dataIndex:x,dataValue:a[x],ref:(r==null?void 0:r.ref)||e}),`${y[0].name}: <b>${B(D)}</b>`},backgroundColor:t.palette.background.paper,borderColor:t.palette.divider,textStyle:{color:t.palette.text.primary},extraCssText:`box-shadow: ${t.shadows[2]}; border-radius: 4px;`},grid:{top:"48px",left:"16px",right:"16px",bottom:"0px",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:a,axisTick:{show:!1},splitLine:{show:!1},axisLabel:{interval:Q(d.map(y=>new Date(y.date)))}},yAxis:{type:"value",axisTick:{show:!1},splitLine:{show:!1},min:0,max:100,interval:Math.ceil(50),axisLabel:{formatter:B}},visualMap:{show:!1,type:"piecewise",dimension:1,seriesIndex:0,pieces:[{max:80,color:$(t.palette.primary.main,t.palette.mode==="dark"?.15:.08)},{min:80,max:100,color:$(t.palette.warning.main,t.palette.mode==="dark"?.18:.12)},{min:100,color:$(t.palette.error.main,t.palette.mode==="dark"?.25:.18)}]},series:[{name:"CPU Usage",type:"line",smooth:!0,symbol:"none",lineStyle:{color:t.palette.primary.main,width:2.5},areaStyle:{},itemStyle:{},emphasis:{disabled:!0},data:d.map(y=>y.value),markLine:{silent:!0,symbol:["none","none"],lineStyle:{color:t.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${B(100)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2},data:[{yAxis:100},{yAxis:80,lineStyle:{color:t.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${B(80)}`,position:"insideEndTop",color:t.palette.text.secondary,padding:[2,4],borderRadius:2}}]}}]};return s.jsxs(q,{sx:{p:1,position:"relative"},onMouseLeave:k,children:[s.jsx(L,{sx:{position:"absolute",top:8,left:16,zIndex:10},fontSize:"16px",fontWeight:"bold",color:"text.secondary",children:j}),s.jsx(K,{ref:e,option:T,style:{width:"100%",height:"200px"},onEvents:{globalout:k}}),s.jsxs(w,{sx:{ml:2,mt:1,fontSize:12},color:"text.secondary",children:[`${o("system.cores")}: ${(g==null?void 0:g.length)||0}`," "]})]})}return i}N.propTypes={title:l.string,cpus:l.array,currentLoad:l.number,history:l.array,empty:l.node,onHover:l.func,hoverIndex:l.number};N.defaultProps={title:"",cpus:[],currentLoad:0,history:[],empty:null,onHover:()=>{},hoverIndex:null};function V({instanceCount:n,title:g,total:c,used:d,history:i,empty:p,onHover:r,hoverIndex:o}){const{t:b,locale:t}=P(),e=G(),a=!!c,j=c-d,k=a?`(${_(d)}, ${Math.floor(d/c*100)}%)`:"",u=h.useRef(null),E=`${g||b("common.memory")} ${k}`,T=A(i)?[]:i.map(f=>O(f.date,"HH:mm",t));h.useEffect(()=>{if(!u.current||(o==null?void 0:o.ref)===u)return;const f=u.current.getEchartsInstance(),x=o==null?void 0:o.seriesIndex,M=T.findIndex(m=>m===(o==null?void 0:o.dataValue));o&&M!==-1?f.dispatchAction({type:"showTip",seriesIndex:x,dataIndex:M}):(f.dispatchAction({type:"hideTip"}),f.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:-1}))},[o==null?void 0:o.dataIndex]);const y=h.useCallback(()=>{r==null||r(null)},[r]);h.useEffect(()=>{if(u.current){const f=u.current.getEchartsInstance(),x=f.getDom(),M=m=>{y(m)};return x.addEventListener("mouseleave",M),()=>{x&&x.removeEventListener("mouseleave",M),f&&f.dispose()}}},[y]);const D=[];if(n&&D.push({title:b("system.instances"),metric:n}),a&&D.push({title:b("system.free"),metric:R(j,{short:!0,iec:!0})}),!A(i)){const f=Math.max(...i.map(m=>m.value),c,0),x=Math.ceil(c*.8),M={tooltip:{trigger:"axis",formatter(m){const z=m[0].data,X=R(z,{short:!0,iec:!0}),{seriesIndex:Y,dataIndex:W}=m[0];return r==null||r({seriesIndex:Y,dataIndex:W,dataValue:T[W],ref:(o==null?void 0:o.ref)||u}),`${m[0].name}: <b>${X}</b>`},backgroundColor:e.palette.background.paper,borderColor:e.palette.divider,textStyle:{color:e.palette.text.primary},extraCssText:`box-shadow: ${e.shadows[2]}; border-radius: 4px;`},grid:{top:"48px",left:"16px",right:"16px",bottom:"0px",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:T,axisTick:{show:!1},splitLine:{show:!1},axisLabel:{interval:Q(i.map(m=>new Date(m.date)))}},yAxis:{type:"value",axisTick:{show:!1},splitLine:{show:!1},min:0,max:f,interval:Math.ceil(f/2),axisLabel:{formatter:m=>R(m,{short:!0,iec:!0}),padding:[5,0,0,0]}},visualMap:{show:!1,type:"piecewise",dimension:1,seriesIndex:0,pieces:[{max:x,color:$(e.palette.primary.main,e.palette.mode==="dark"?.15:.08)},{min:x,max:c,color:$(e.palette.warning.main,e.palette.mode==="dark"?.18:.12)},{min:c,color:$(e.palette.error.main,e.palette.mode==="dark"?.25:.18)}]},series:[{name:"Memory Usage",type:"line",smooth:!0,symbol:"none",lineStyle:{color:e.palette.primary.main,width:2.5},areaStyle:{},itemStyle:{},emphasis:{disabled:!0},data:i.map(m=>m.value),markLine:{silent:!0,symbol:["none","none"],data:[{yAxis:c,lineStyle:{color:e.palette.error.main,type:"dashed",width:1.5},label:{formatter:`${R(c,{short:!0,iec:!0})}`,position:"insideEndTop",color:e.palette.text.secondary,padding:[2,4],borderRadius:2}},{yAxis:x,lineStyle:{color:e.palette.warning.light,type:"dashed",width:1.5},label:{formatter:`${R(x,{short:!0,iec:!0})}`,position:"insideEndTop",color:e.palette.text.secondary,padding:[2,4],borderRadius:2}}]}}]};return s.jsxs(q,{sx:{p:1,position:"relative"},onMouseLeave:y,children:[s.jsx(L,{sx:{position:"absolute",top:8,left:16,zIndex:10},fontSize:"16px",fontWeight:"bold",color:"text.secondary",children:E}),s.jsx(K,{ref:u,option:M,style:{width:"100%",height:"200px"}}),s.jsx(w,{sx:{ml:2,mt:1,fontSize:12},color:"text.secondary",children:D.map((m,z)=>s.jsxs(w,{sx:{marginLeft:z===0?0:1,display:"inline-flex"},children:[m.title,": ",m.metric]},m.title))})]})}return p}V.propTypes={title:l.string,instanceCount:l.number,total:l.number,used:l.number,history:l.array,empty:l.node,onHover:l.func,hoverIndex:l.number};V.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[],empty:null,onHover:()=>{},hoverIndex:null};function I({blocklet:n,...g}){const{t:c}=P(),{info:d}=se(),{runtimeHistory:i}=J(),[p,r]=h.useState(null),o=h.useCallback(t=>n.status!=="running"?s.jsx(L,{children:c("blocklet.runtimeInfo.noRunning")}):t.length?null:s.jsx(ee,{children:c("common.empty")}),[n.status,c]),b=h.useCallback(t=>{r(t)},[]);return i.length===0?s.jsx(L,{children:c("blocklet.runtimeInfo.noRunning")}):s.jsxs(le,{component:"div",...g,children:[s.jsxs(C,{className:"page-metrics",container:!0,spacing:5,children:[s.jsx(C,{item:!0,xs:12,sx:{pt:"16px !important"},children:s.jsx(L,{fontSize:"16px",fontWeight:"bold",children:"CPU"})}),i==null?void 0:i.map(t=>{var e,a;return s.jsx(C,{item:!0,lg:4,md:6,sm:6,xs:12,sx:{pt:"16px !important"},children:s.jsx(N,{title:`${t.name} CPU`,empty:o(t.cpu),currentLoad:((e=t.appRuntimeInfo)==null?void 0:e.cpuUsage)||0,cpus:((a=t.appRuntimeInfo)==null?void 0:a.cpus)||[],history:t.cpu,onHover:b,hoverIndex:p,style:{height:150}})},`${t.key}-cpu`)})]}),s.jsxs(C,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[s.jsx(C,{item:!0,xs:12,sx:{pt:"16px !important"},children:s.jsx(L,{fontSize:"16px",fontWeight:"bold",children:"Memory"})}),i==null?void 0:i.map(t=>{var e,a,j;return s.jsx(C,{item:!0,lg:4,md:6,sm:6,xs:12,sx:{pt:"16px !important"},children:s.jsx(V,{title:`${t.name} Memory`,empty:o(t.memory),total:(e=d.runtimeConfig)!=null&&e.blockletMaxMemoryLimit?R.parseSize(`${d.runtimeConfig.blockletMaxMemoryLimit*(t.key===((a=n==null?void 0:n.meta)==null?void 0:a.did)?i.length-1:1)}MiB`):0,used:((j=t.appRuntimeInfo)==null?void 0:j.memoryUsage)||0,history:t.memory,onHover:b,hoverIndex:p,style:{height:150}})},`${t.key}-memory`)})]})]})}I.propTypes={blocklet:l.object.isRequired,cpuHistory:l.arrayOf(l.shape({date:l.number,value:l.number})),memoryHistory:l.arrayOf(l.shape({date:l.number,value:l.number}))};I.defaultProps={cpuHistory:[],memoryHistory:[]};const le=F(L)``;function ce(){const{t:n,locale:g}=P(),[c,d]=h.useState(6),{blocklet:i,actions:{refreshBlocklet:p}}=J(),r=h.useMemo(()=>{const t=[];return U.forEachBlockletSync(i,(e,{ancestors:a,id:j,level:k})=>{var u;(u=e==null?void 0:e.meta)!=null&&u.did&&e.meta.did!==i.meta.did&&t.push({type:"blocklet",groupId:i.meta.did,groupName:U.getDisplayName(i),id:j,name:U.getDisplayName(e,!0),blocklet:i,component:e,level:k-1>=0?k-1:0,runtimeInfo:e.runtimeInfo,ancestors:a})}),t},[i]);h.useEffect(()=>{p({hours:c});const t=setInterval(()=>{p({hours:c})},1e3*10);return()=>{clearInterval(t)}},[c]);const o=t=>H(Number(t||0),{locale:ne(g)}),b=[{label:n("common.name"),name:"name",options:{customBodyRenderLite(t){const{name:e,component:a,level:j,ancestors:k}=r[t];return s.jsxs(w,{display:"flex",alignItems:"center",pl:j*2,children:[s.jsx(ie,{size:20,blocklet:a,ancestors:k}),s.jsx(w,{ml:1,children:e}),s.jsx(oe,{variant:"pin",style:{marginLeft:8},status:a.status,source:a.source,progress:a.progress})]})}}},{label:n("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:e,component:a}=r[t];return!(a!=null&&a.status)||a.status!=="running"?s.jsx(S,{title:n("common.noData"),children:"--"}):o(e==null?void 0:e.uptime)}}},{label:n("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:e,component:a}=r[t];return!(a!=null&&a.status)||a.status!=="running"?s.jsx(S,{title:n("common.noData"),children:"--"}):_((e==null?void 0:e.memoryUsage)||0)}}},{label:n("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:e,component:a}=r[t];return!(a!=null&&a.status)||a.status!=="running"?s.jsx(S,{title:n("common.noData"),children:"--"}):`${((e==null?void 0:e.cpuUsage)||0).toFixed(1)}%`}}},{label:n("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(t){const{runtimeInfo:e}=r[t];return e!=null&&e.uptime?s.jsxs(w,{display:"flex",alignItems:"center",children:[s.jsx(te,{icon:e!=null&&e.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),s.jsx(w,{ml:1,children:e!=null&&e.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:n("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(t){const{runtimeInfo:e,component:a}=r[t];return!(a!=null&&a.status)||a.status!=="running"?s.jsx(S,{title:n("common.noData"),children:"--"}):e==null?void 0:e.pid}}},{label:n("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(t){const{runtimeInfo:e,component:a}=r[t];return!(a!=null&&a.status)||a.status!=="running"?s.jsx(S,{title:n("common.noData"),children:"--"}):e==null?void 0:e.port}}}];return s.jsxs(me,{component:"div",children:[s.jsxs(w,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[s.jsx(L,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:n("analytics.trend")}),s.jsx(Z,{size:"small",exclusive:!0,value:c,onChange:(t,e)=>{re(e)&&d(e)},children:[1,3,6,12,24].map(t=>s.jsxs(v,{value:t,children:[t,"H"]},t))})]}),s.jsx(w,{children:s.jsx(I,{blocklet:i})}),s.jsx(w,{mt:3,children:s.jsx(ae,{title:n("analytics.detail"),className:"monitor-table",locale:g,data:r,columns:b,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}ce.propTypes={};const me=F(L)``;export{ce as default};
@@ -0,0 +1 @@
1
+ import{aX as o}from"./vendor-ux-did-connect-DHrruicZ.js";const e=o();export{e as b};
@@ -0,0 +1,41 @@
1
+ import{H as t,ah as x,aa as s,j as e,al as i,T as h}from"./vendor-mui-core-D_bnq77o.js";function n({title:o,desc:c,sectionLeftSx:l,sectionRightSx:a,children:r,...d}){return e.jsx(m,{...d,children:e.jsxs(i,{className:"section",direction:{sm:"column",md:"row"},gap:{xs:3,md:6},children:[e.jsxs(s,{className:"section-left",sx:l,children:[e.jsx(h,{className:"section-title",dangerouslySetInnerHTML:{__html:o}}),e.jsx(s,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:c}})]}),e.jsx(i,{className:"section-content",direction:"column",sx:{width:"100%",...a},children:r})]})})}n.propTypes={title:t.string.isRequired,children:t.node.isRequired,desc:t.string,sectionLeftSx:t.object,sectionRightSx:t.object};n.defaultProps={desc:"",sectionLeftSx:{width:"384px"},sectionRightSx:{}};const m=x(s)`
2
+ display: flex;
3
+ align-items: flex-start;
4
+ width: 100%;
5
+
6
+ .section {
7
+ width: 100%;
8
+
9
+ .section-left {
10
+ flex-shrink: 0;
11
+ flex-grow: 0;
12
+ }
13
+
14
+ .section-title {
15
+ font-weight: 500;
16
+ line-height: 32px;
17
+ }
18
+
19
+ .section-desc {
20
+ font-weight: normal;
21
+ font-size: 12px;
22
+ white-space: pre-line;
23
+ }
24
+
25
+ .section-content {
26
+ flex-grow: 1;
27
+ width: 0;
28
+ align-self: center;
29
+ }
30
+ }
31
+
32
+ @media (max-width: 900px) {
33
+ .section-left {
34
+ width: 100%;
35
+ }
36
+
37
+ .section-content {
38
+ width: 100% !important;
39
+ }
40
+ }
41
+ `;export{n as S};