@abtnode/blocklet-services 1.16.33-beta-20241028-164124-17cf3c21 → 1.16.33-beta-20241029-014847-2937778a

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 (204) hide show
  1. package/api/libs/connect/session.js +5 -3
  2. package/api/util/attach-shared-utils.js +20 -19
  3. package/api/util/index.js +2 -2
  4. package/dist/assets/{Add-DhnwVxhZ.js → Add-DEc5Gaew.js} +1 -1
  5. package/dist/assets/{Alert-C2mTW_RW.js → Alert-CupQqU2h.js} +1 -1
  6. package/dist/assets/{ArrowDropDown-wj9U9ZE8.js → ArrowDropDown-B1k8ApwT.js} +1 -1
  7. package/dist/assets/{Autocomplete-CmEAN8J-.js → Autocomplete-CjmKwyN3.js} +1 -1
  8. package/dist/assets/{Avatar-BZ_OPd3a.js → Avatar-DdU9cWoa.js} +1 -1
  9. package/dist/assets/{ButtonGroup-CFQqy_jV.js → ButtonGroup-DU8AIwgk.js} +1 -1
  10. package/dist/assets/{CSSTransition-CJDdpnYB.js → CSSTransition-DxkOmgMD.js} +1 -1
  11. package/dist/assets/{CheckCircle-DK6y1v0b.js → CheckCircle-BbFAKZQz.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BqHB6tsg.js → ChevronLeft-ZH0Y8QQ5.js} +1 -1
  13. package/dist/assets/{ChevronRight-DwKqpeOS.js → ChevronRight-CBiHXwpN.js} +1 -1
  14. package/dist/assets/{Close-CdDd2weK.js → Close-D01F1-kH.js} +1 -1
  15. package/dist/assets/{CloseOutlined-KF-hdrv3.js → CloseOutlined-C_enpVct.js} +1 -1
  16. package/dist/assets/{Delete-P7WqUbyQ.js → Delete-CghY174I.js} +1 -1
  17. package/dist/assets/{DeleteOutline-BrrioL98.js → DeleteOutline-DTzpYuUU.js} +1 -1
  18. package/dist/assets/{DialogContentText-BECZzyeS.js → DialogContentText-KJ1VziGc.js} +1 -1
  19. package/dist/assets/{Done-B8u3JQ36.js → Done-CRBMAgWC.js} +1 -1
  20. package/dist/assets/{Download-DBU6UuKg.js → Download-0mTt88jR.js} +1 -1
  21. package/dist/assets/{EditIcon-BV3Q9c3s.js → EditIcon-BzYFGdY2.js} +1 -1
  22. package/dist/assets/{Error-CjCi6iqE.js → Error-D_y85can.js} +1 -1
  23. package/dist/assets/{ExpandMore-BjFaf3Fo.js → ExpandMore-BW_GpjfP.js} +1 -1
  24. package/dist/assets/{FormControl-B9P20sHZ.js → FormControl-y2eP2gzP.js} +1 -1
  25. package/dist/assets/{FormControlLabel-C2tfmf09.js → FormControlLabel-DsxW3p6G.js} +1 -1
  26. package/dist/assets/{FormGroup-QeEOGRIO.js → FormGroup-COgg0lwB.js} +1 -1
  27. package/dist/assets/{Google-B7LRQAsM.js → Google-CiCa62KH.js} +1 -1
  28. package/dist/assets/{Grid-BArO7d1G.js → Grid-Dne3bmfg.js} +1 -1
  29. package/dist/assets/{HelpOutline-It0-5Kn2.js → HelpOutline-X7u3GlNb.js} +1 -1
  30. package/dist/assets/{Hidden-CpExY3Hv.js → Hidden-BnLj1Yrh.js} +1 -1
  31. package/dist/assets/{InfoOutlined-DEMaFK-w.js → InfoOutlined-DKyb4neb.js} +1 -1
  32. package/dist/assets/{InputAdornment-BFyVcV9g.js → InputAdornment-vYojJBmt.js} +1 -1
  33. package/dist/assets/{InputLabel-FW_WnrBG.js → InputLabel-DlIX2kte.js} +1 -1
  34. package/dist/assets/{LastPage-BbNDF-1B.js → LastPage-BAT94flJ.js} +1 -1
  35. package/dist/assets/{Launch-CM54bxPy.js → Launch-BMtVhnlU.js} +1 -1
  36. package/dist/assets/{LaunchOutlined-DQOUx0IB.js → LaunchOutlined-JsW3bksQ.js} +1 -1
  37. package/dist/assets/{Link-BLv1ybKR.js → Link-BSkaanak.js} +1 -1
  38. package/dist/assets/{ListItemButton-BhIitXNK.js → ListItemButton-D3vwOyXA.js} +1 -1
  39. package/dist/assets/{LoadingButton-Do8QGr9D.js → LoadingButton-BG7mJBjy.js} +1 -1
  40. package/dist/assets/{LockIcon-uGDnriV5.js → LockIcon-CnRKDzuV.js} +1 -1
  41. package/dist/assets/{Loop-DQX1T4wF.js → Loop-C7A5hRBw.js} +1 -1
  42. package/dist/assets/{MarkEmailRead-BdVitMKq.js → MarkEmailRead-DXHnM-5J.js} +1 -1
  43. package/dist/assets/{Menu-B60nijwd.js → Menu-DAx78rf8.js} +1 -1
  44. package/dist/assets/{MoreHoriz-Cwgb_ZWA.js → MoreHoriz-Cix-ucsf.js} +1 -1
  45. package/dist/assets/{MoreVert-6z9sYyBh.js → MoreVert-pbCfz7_a.js} +1 -1
  46. package/dist/assets/{OpenInNew-B7MVFrbE.js → OpenInNew-DH9cfgTx.js} +1 -1
  47. package/dist/assets/{Pagination-C8kC-7d4.js → Pagination-ByraHmfi.js} +1 -1
  48. package/dist/assets/{PlayArrow-CyW2vtN8.js → PlayArrow-DUPHdx2w.js} +1 -1
  49. package/dist/assets/{QuestionMarkCircle-Dkgs-LrD.js → QuestionMarkCircle-Nkpa63G6.js} +1 -1
  50. package/dist/assets/{RadioGroup-F9HJgTgP.js → RadioGroup-BFz6MuWT.js} +1 -1
  51. package/dist/assets/{Search-Bm4BV5ff.js → Search-RYv9IOCL.js} +1 -1
  52. package/dist/assets/{Select-DN5ZDrhq.js → Select-BJHtvl4z.js} +1 -1
  53. package/dist/assets/{ServerLogo-qj6BKZhH.js → ServerLogo-iBlSxiwt.js} +1 -1
  54. package/dist/assets/{Skeleton-BHxGQUwb.js → Skeleton-CCHHqylE.js} +1 -1
  55. package/dist/assets/{Slider-DZmSOFez.js → Slider-2IJG90i0.js} +1 -1
  56. package/dist/assets/{Stack-CcM0sATd.js → Stack-CzT1qtfF.js} +1 -1
  57. package/dist/assets/{Stepper-VAkPR7Rp.js → Stepper-DIDg14Y1.js} +1 -1
  58. package/dist/assets/{TextField-CVbbJh-y.js → TextField-DNDZQTge.js} +1 -1
  59. package/dist/assets/{Toolbar-DMWwm961.js → Toolbar-Czbh9Thi.js} +1 -1
  60. package/dist/assets/{Verified-CracX5_0.js → Verified-Bojb7V8h.js} +1 -1
  61. package/dist/assets/{ViewColumn-cHwmzgaQ.js → ViewColumn-adtX8zvr.js} +1 -1
  62. package/dist/assets/{ViewList-DEr3Y-iU.js → ViewList-nMxoCPSk.js} +1 -1
  63. package/dist/assets/{access-control-DEaRRq7A.js → access-control-DHNiwY6V.js} +1 -1
  64. package/dist/assets/{actions-BaCBwrwa.js → actions-DqT9_Wum.js} +1 -1
  65. package/dist/assets/{add-component-core-CTd25DO_.js → add-component-core-BubwveVU.js} +1 -1
  66. package/dist/assets/add-resource-Dm1L3xLV.js +1 -0
  67. package/dist/assets/{addon-B5M4Vtbg.js → addon-WHI8TbVR.js} +1 -1
  68. package/dist/assets/{analytics-DKUh0ZA1.js → analytics-Ce6JyEG_.js} +1 -1
  69. package/dist/assets/api-DLSmmaM3.js +1 -0
  70. package/dist/assets/{audit-logs-DEv30kSD.js → audit-logs-Dkx-0Fff.js} +1 -1
  71. package/dist/assets/{base32-BbBkrI_s.js → base32-DAaLo59X.js} +1 -1
  72. package/dist/assets/{bundle-avatar-DFcMZdHK.js → bundle-avatar-Dx1RwhB-.js} +1 -1
  73. package/dist/assets/{button-WHxIb92N.js → button-CHEw8JKq.js} +1 -1
  74. package/dist/assets/{click-to-copy-DSLKklSI.js → click-to-copy-CerMtW1G.js} +1 -1
  75. package/dist/assets/{complete-CAaHcOBS.js → complete-wWH5b1EO.js} +1 -1
  76. package/dist/assets/{component-_5q7tWN6.js → component-OeCmXcvV.js} +1 -1
  77. package/dist/assets/{config-COlGV3BW.js → config-CzogNM6s.js} +1 -1
  78. package/dist/assets/{config-_6fNEXak.js → config-DsPwqf9s.js} +1 -1
  79. package/dist/assets/{config-navigation-DdfU54Ga.js → config-navigation-CqoSpRZ8.js} +1 -1
  80. package/dist/assets/{confirm-CPhW4Ln4.js → confirm-CDYYkoPB.js} +1 -1
  81. package/dist/assets/{connect-CJYVrjZW.js → connect-BAaQDJdT.js} +1 -1
  82. package/dist/assets/{connect-CutE2j6W.js → connect-CoYghE61.js} +1 -1
  83. package/dist/assets/{connect-to-ByrmSC7Q.js → connect-to-DV1E9V_T.js} +1 -1
  84. package/dist/assets/{content-layout-NMxrW85n.js → content-layout-CZivV9iw.js} +1 -1
  85. package/dist/assets/{dashboard-yyANkyH0.js → dashboard-CMafJ63y.js} +3 -3
  86. package/dist/assets/{deprecate-TLU2j5Nl.js → deprecate-BG-RqYhQ.js} +1 -1
  87. package/dist/assets/{did-address-qp4O986k.js → did-address-DvBIH5D8.js} +1 -1
  88. package/dist/assets/{domain-BobgkNRn.js → domain-DPG1LqVo.js} +1 -1
  89. package/dist/assets/{domain-list-nelUcVaZ.js → domain-list-UwQfY0bQ.js} +1 -1
  90. package/dist/assets/{email-BmqNkTVh.js → email-D7QdjnnK.js} +3 -3
  91. package/dist/assets/emotion-cache.browser.esm-BjIoAnXy.js +1 -0
  92. package/dist/assets/{exchange-passport-YyjxxQGp.js → exchange-passport-DCHiwggG.js} +1 -1
  93. package/dist/assets/{fallback-DpZp1UKo.js → fallback-C9ko-lGM.js} +1 -1
  94. package/dist/assets/{form-text-input-Dnp-THZ5.js → form-text-input-BBMy63E9.js} +1 -1
  95. package/dist/assets/{format-error-BvNwPRch.js → format-error-B-leFeoI.js} +1 -1
  96. package/dist/assets/{fuel-DwAfHv3P.js → fuel-B8iWjDIC.js} +1 -1
  97. package/dist/assets/{fullpage-BFccehDH.js → fullpage-CV1kAnQT.js} +1 -1
  98. package/dist/assets/{home-BF01oQMN.js → home-CtjCpn32.js} +1 -1
  99. package/dist/assets/{iframe-CGjP6x7t.js → iframe-CNDgJKfZ.js} +1 -1
  100. package/dist/assets/{index-C6bJ8C3n.js → index-B2w_BGLq.js} +1 -1
  101. package/dist/assets/{index-BFsNvHHz.js → index-BB2DzNFr.js} +1 -1
  102. package/dist/assets/{index-BxX33nUX.js → index-BES9wlXn.js} +1 -1
  103. package/dist/assets/{index-BHRFloRH.js → index-BEaq4bck.js} +1 -1
  104. package/dist/assets/{index-DaRP45oo.js → index-BJ0k59Tf.js} +1 -1
  105. package/dist/assets/{index-B6rU6yZ1.js → index-BSHqUvvB.js} +1 -1
  106. package/dist/assets/{index-0R3zcGhj.js → index-BWRuELFp.js} +1 -1
  107. package/dist/assets/{index-Br6smtqw.js → index-BWW9wQ5i.js} +1 -1
  108. package/dist/assets/{index-DaCSO68v.js → index-BkOrkopm.js} +1 -1
  109. package/dist/assets/{index-DbC1wngE.js → index-C-yt1SFf.js} +1 -1
  110. package/dist/assets/{index-BZKKn0ch.js → index-CIO5rH3U.js} +1 -1
  111. package/dist/assets/{index-BEmU10Y0.js → index-CRupT51d.js} +4 -4
  112. package/dist/assets/{index-DH4lKXWs.js → index-CbJ7Ycw4.js} +1 -1
  113. package/dist/assets/{index-DsX4E8f1.js → index-Cdj39Rch.js} +1 -1
  114. package/dist/assets/{index-B1jXhAXk.js → index-Ch6BfLs4.js} +1 -1
  115. package/dist/assets/{index-4YjFb1t8.js → index-Cj2lRUvU.js} +1 -1
  116. package/dist/assets/{index-BowU-Rc8.js → index-D0ZDnsBw.js} +3 -3
  117. package/dist/assets/{index-DusV8FU1.js → index-D0vpGtYa.js} +1 -1
  118. package/dist/assets/{index-CxykcKWh.js → index-D2bv65kG.js} +1 -1
  119. package/dist/assets/{index-BZ9M67Kd.js → index-D9IhBRcZ.js} +1 -1
  120. package/dist/assets/{index-BnLNgi5J.js → index-DMhVY_t6.js} +1 -1
  121. package/dist/assets/{index-D5jbzTmg.js → index-DO83-4pr.js} +1 -1
  122. package/dist/assets/{index-BAsIkYmI.js → index-DQGd2MHm.js} +1 -1
  123. package/dist/assets/{index-LmZHdjQZ.js → index-DUvxK_pJ.js} +1 -1
  124. package/dist/assets/{index-Dnw0yymR.js → index-DZZkPDZs.js} +1 -1
  125. package/dist/assets/{index-RHJlosGb.js → index-DqdPWHh8.js} +3 -3
  126. package/dist/assets/{index-_uCAkv_0.js → index-DrGG84yQ.js} +1 -1
  127. package/dist/assets/{index-C_izWh42.js → index-Du1PLYcj.js} +1 -1
  128. package/dist/assets/{index-FWU8WNJ8.js → index-HSjmxikb.js} +1 -1
  129. package/dist/assets/{index-DtHgjXc_.js → index-HsQ3WMC6.js} +1 -1
  130. package/dist/assets/{index-B61Zk4zc.js → index-YhmyCsjd.js} +1 -1
  131. package/dist/assets/{index-C4-tvqA6.js → index-YwELWQn6.js} +1 -1
  132. package/dist/assets/{index-dmc3Tzez.js → index-l7ITn0fy.js} +1 -1
  133. package/dist/assets/{index-CDo-yvx8.js → index-ximM9jK2.js} +1 -1
  134. package/dist/assets/{index-D0Foc0Tz.js → index-yjZBmDn6.js} +1 -1
  135. package/dist/assets/{index.es-DjXtuSXa.js → index.es-LIQBW5LL.js} +1 -1
  136. package/dist/assets/{invitation-CitdNTlE.js → invitation-BQ9lcSxO.js} +1 -1
  137. package/dist/assets/{invite-8bX-82iQ.js → invite-QLtor_es.js} +1 -1
  138. package/dist/assets/{isEmail-DlDmj0fr.js → isEmail-CcvzeVrs.js} +1 -1
  139. package/dist/assets/{issue-passport-DlN6RZob.js → issue-passport-BkxmOMBs.js} +1 -1
  140. package/dist/assets/{item-CKNXAp6H.js → item-BAa88ldN.js} +1 -1
  141. package/dist/assets/{jss-plugin-props-sort.esm-DoSjjNR1.js → jss-plugin-props-sort.esm-K8zlWBTt.js} +1 -1
  142. package/dist/assets/{launch-result-message-JFKmiVbN.js → launch-result-message-BNRTOFqk.js} +1 -1
  143. package/dist/assets/{layout-DEXenHhy.js → layout-BQshf_Yf.js} +1 -1
  144. package/dist/assets/{list-header-7vVYIW_T.js → list-header-C4fW2U4a.js} +1 -1
  145. package/dist/assets/localization-F2jCf7Q_.js +1 -0
  146. package/dist/assets/{log-ZCJiZb-D.js → log-9eHXCnTv.js} +1 -1
  147. package/dist/assets/{login-64rLho-5.js → login-DJz-LtJC.js} +1 -1
  148. package/dist/assets/{login-oauth-callback-nOgNHNCk.js → login-oauth-callback-CbXMk1Ee.js} +1 -1
  149. package/dist/assets/{logo-uploader-Cz1267Av.js → logo-uploader-BeuKpE1k.js} +3 -3
  150. package/dist/assets/{lost-passport-DjJtlNVj.js → lost-passport-71u3kgyM.js} +3 -3
  151. package/dist/assets/{lottie-DoYE5XDB.js → lottie-Bv4YQmjr.js} +1 -1
  152. package/dist/assets/{notifications-Cv1XH2yb.js → notifications-CxETkPC8.js} +1 -1
  153. package/dist/assets/{open-window-CN5TQ87C.js → open-window-C_Itzebs.js} +1 -1
  154. package/dist/assets/{overview-kalRt_uR.js → overview-DtN2iRHw.js} +1 -1
  155. package/dist/assets/{page-header-BmLNlOnD.js → page-header-6ic_pmoK.js} +1 -1
  156. package/dist/assets/{permission-DUsbjffq.js → permission-CRpG3m7P.js} +1 -1
  157. package/dist/assets/{preferences-ZO1kLbOx.js → preferences-5XMD5OzU.js} +1 -1
  158. package/dist/assets/publish-resource-u8MzIwsZ.js +1 -0
  159. package/dist/assets/{react-BTu1Y-_j.js → react-DnVaFLUv.js} +3 -3
  160. package/dist/assets/{redux-CJ8S87pk.js → redux-Ca86ARNo.js} +1 -1
  161. package/dist/assets/refType-DnzNeAJs.js +1 -0
  162. package/dist/assets/{resource-dialog-D_8tTarn.js → resource-dialog-BSFeyQ_K.js} +1 -1
  163. package/dist/assets/sdk-B-OBfaY_.js +1 -0
  164. package/dist/assets/{selector-Rhni_cbO.js → selector-Ckqt3gtd.js} +1 -1
  165. package/dist/assets/session-BT3UDuRe.js +1 -0
  166. package/dist/assets/{setup-BQ-DnQht.js → setup-DCuRY7pY.js} +3 -3
  167. package/dist/assets/{shorten-label-8aKNnW15.js → shorten-label-cwsaVcrz.js} +1 -1
  168. package/dist/assets/{simple-select-CNSx0Qbg.js → simple-select-QvzQDazL.js} +1 -1
  169. package/dist/assets/{slicedToArray-vg-R5s0s.js → slicedToArray-CJFgHG2-.js} +1 -1
  170. package/dist/assets/{spaces-BcZSz_wm.js → spaces-CUv_J9P5.js} +1 -1
  171. package/dist/assets/{start-CqQHbsvY.js → start-BTuxG98O.js} +1 -1
  172. package/dist/assets/{step-actions-DV3o9hve.js → step-actions-DVtaq0BG.js} +1 -1
  173. package/dist/assets/{studio-D_pIJx8G.js → studio-B3HuTZPP.js} +1 -1
  174. package/dist/assets/{switch-control-C-X_dl1C.js → switch-control-o6-nZs-T.js} +1 -1
  175. package/dist/assets/{toUpper-CqfCm6FQ.js → toUpper-o91NwuX3.js} +1 -1
  176. package/dist/assets/{transfer-CSfZjjyt.js → transfer-BRjjFrH2.js} +1 -1
  177. package/dist/assets/{trim-CXCEOOfq.js → trim-5l2FIQ1V.js} +1 -1
  178. package/dist/assets/{uniqBy--m6Xe_2K.js → uniqBy-Chi1M0dq.js} +1 -1
  179. package/dist/assets/{unsubscribe-BJWyVFrT.js → unsubscribe-Cq_wq5vC.js} +1 -1
  180. package/dist/assets/{url-join-CAnJBM33.js → url-join-Bx_A70NM.js} +1 -1
  181. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-BWR6SXSQ.js → use-blocklet-info-for-connect-did-spaces-CCqkRF8J.js} +1 -1
  182. package/dist/assets/{use-mobile-BBtcVjXr.js → use-mobile-eTkOLV75.js} +1 -1
  183. package/dist/assets/{useAsync-DTvP9Zxi.js → useAsync-DOpY0MTF.js} +1 -1
  184. package/dist/assets/{useFormControl-CqDUGVwx.js → useFormControl-CXaDIKmg.js} +1 -1
  185. package/dist/assets/{useLocalStorage-BSk8yrmI.js → useLocalStorage-Aaw2jy7u.js} +1 -1
  186. package/dist/assets/{useSetState-Dvi1U0Nw.js → useSetState-7DwsrT08.js} +1 -1
  187. package/dist/assets/{useSlot-CBvar7i-.js → useSlot-CDeXSS5P.js} +1 -1
  188. package/dist/assets/{useSlotProps-BO61t83_.js → useSlotProps-y4Nw2SFi.js} +1 -1
  189. package/dist/assets/{useThemeProps-BVeww5NE.js → useThemeProps-CBbxmVEG.js} +1 -1
  190. package/dist/assets/{user-center-DxinbhvA.js → user-center-B5dWtyO9.js} +1 -1
  191. package/dist/assets/{user-sessions-BGeFoCxv.js → user-sessions-tail5lsl.js} +1 -1
  192. package/dist/assets/{util-DQZs28G6.js → util-C-9HO-wY.js} +1 -1
  193. package/dist/assets/{wrap-locale-B-fXOOcn.js → wrap-locale-CagvGD5F.js} +1 -1
  194. package/dist/index.html +1 -1
  195. package/dist/service-worker.js +1 -1
  196. package/package.json +18 -18
  197. package/dist/assets/add-resource-BcsfLDaF.js +0 -1
  198. package/dist/assets/api-noKs5rUY.js +0 -1
  199. package/dist/assets/emotion-cache.browser.esm-CRw46sQ7.js +0 -1
  200. package/dist/assets/localization-DdE_yTeV.js +0 -1
  201. package/dist/assets/publish-resource-B2rKe7a9.js +0 -1
  202. package/dist/assets/refType-CT_vAXIZ.js +0 -1
  203. package/dist/assets/sdk-C3SAOjUt.js +0 -1
  204. package/dist/assets/session-4S4FY2oN.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as H,j as i,g4 as Xn,l as fr,g5 as Jn,e_ as hn,c6 as gn,eZ as _t,g6 as pt,eY as _e,g7 as Qn,g8 as yn,g9 as vn,ga as ei,gb as ti,gc as bn,gd as pr,ge as ri,gf as ni,gg as ii,gh as oi,eR as tr,b7 as ai,cn as Lr,eT as si,a8 as ci,aP as Ce,u as Fe,N as xn,B as se,aT as jt,A as wn,D as li,T as Ue,gi as dr,af as Ze,au as Ge,a1 as Se,n as nt,P as M,bC as ui,cr as rr,K as fi,f1 as pi,Z as De,de as di,a0 as mt,bl as Xe,t as it,gj as mi,aa as Ye,dE as hi,aY as jn,G as Ee,a as dt,c as nr,b as gi,bF as yi,gk as En,bL as Sn,aV as vi,X as bi,Y as xi,bQ as Pn,m as wi,aC as ji,bH as Ei}from"./index-BowU-Rc8.js";import{c as Si}from"./index-BnLNgi5J.js";import{d as Et}from"./Add-DhnwVxhZ.js";import{d as Pi}from"./Loop-DQX1T4wF.js";import{d as Oi}from"./ViewList-DEr3Y-iU.js";import{L as Ai,S as Ri,d as On}from"./list-header-7vVYIW_T.js";import{D as An,g as Ii}from"./index-B6rU6yZ1.js";import"./index-C4-tvqA6.js";import"./index-DH4lKXWs.js";import{h as Rn}from"./resource-dialog-D_8tTarn.js";import{T as _i}from"./index-B61Zk4zc.js";import{E as In}from"./index-CDo-yvx8.js";import"./fallback-DpZp1UKo.js";import"./index-LmZHdjQZ.js";import{U as Ti}from"./user-sessions-BGeFoCxv.js";import{u as $e,d as Ur,W as _n,a as Ni}from"./dashboard-yyANkyH0.js";import{W as St}from"./did-address-qp4O986k.js";import{P as Ke}from"./permission-DUsbjffq.js";import{C as Tt}from"./click-to-copy-DSLKklSI.js";import{F as ir}from"./FormControl-B9P20sHZ.js";import{I as or}from"./InputLabel-FW_WnrBG.js";import{S as ar}from"./Select-DN5ZDrhq.js";import{T as Pt}from"./TextField-CVbbJh-y.js";import{D as mr}from"./DialogContentText-BECZzyeS.js";import{A as rt}from"./Alert-C2mTW_RW.js";import{f as Je}from"./format-error-BvNwPRch.js";import{_ as Ci}from"./useAsync-DTvP9Zxi.js";import{I as sr}from"./index-BAsIkYmI.js";import{d as Di}from"./Verified-CracX5_0.js";import{C as Nt}from"./confirm-CPhW4Ln4.js";import{u as Tn}from"./session-4S4FY2oN.js";import{N as Li}from"./index-CxykcKWh.js";import{a as Ui}from"./uniqBy--m6Xe_2K.js";import{b as qi}from"./sdk-C3SAOjUt.js";import{A as ki}from"./Avatar-BZ_OPd3a.js";import{d as Ki,L as Bi,a as Fi}from"./Delete-P7WqUbyQ.js";import{p as $i}from"./index-BZ9M67Kd.js";import{A as Mi}from"./actions-BaCBwrwa.js";import{S as zi}from"./shorten-label-8aKNnW15.js";import{F as Wi}from"./FormControlLabel-C2tfmf09.js";import{C as Vi}from"./MoreVert-6z9sYyBh.js";import"./Search-Bm4BV5ff.js";import"./useThemeProps-BVeww5NE.js";import"./Grid-BArO7d1G.js";import"./emotion-cache.browser.esm-CRw46sQ7.js";import"./index-BZKKn0ch.js";import"./redux-CJ8S87pk.js";import"./ViewColumn-cHwmzgaQ.js";import"./useFormControl-CqDUGVwx.js";import"./FormGroup-QeEOGRIO.js";import"./LastPage-BbNDF-1B.js";import"./Toolbar-DMWwm961.js";import"./index-DbC1wngE.js";import"./Menu-B60nijwd.js";import"./Hidden-CpExY3Hv.js";import"./ExpandMore-BjFaf3Fo.js";import"./ListItemButton-BhIitXNK.js";import"./selector-Rhni_cbO.js";import"./OpenInNew-B7MVFrbE.js";import"./index-BFsNvHHz.js";import"./index-D0Foc0Tz.js";import"./CloseOutlined-KF-hdrv3.js";import"./Stack-CcM0sATd.js";import"./Link-BLv1ybKR.js";import"./useLocalStorage-BSk8yrmI.js";import"./PlayArrow-CyW2vtN8.js";import"./ButtonGroup-CFQqy_jV.js";import"./RadioGroup-F9HJgTgP.js";import"./index-D5jbzTmg.js";import"./useSetState-Dvi1U0Nw.js";import"./deprecate-TLU2j5Nl.js";import"./useSlot-CBvar7i-.js";import"./MoreHoriz-Cwgb_ZWA.js";var hr={};Object.defineProperty(hr,"__esModule",{value:!0});var Nn=hr.default=void 0;Hi(H);var et=i;function Hi(e){return e&&e.__esModule?e:{default:e}}function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qr(Object(r),!0).forEach(function(n){Gi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gi(e,t,r){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(e){var t=Zi(e,"string");return typeof t=="symbol"?t:t+""}function Zi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr=function(t){return(0,et.jsxs)("svg",kr(kr({},t),{},{children:[(0,et.jsx)("g",{clipPath:"url(#clip0)",children:(0,et.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,et.jsx)("defs",{children:(0,et.jsx)("clipPath",{id:"clip0",children:(0,et.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};gr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};gr.displayName="person";Nn=hr.default=gr;var wt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Kr=new RegExp("("+Cn+")|([^%]+?)","gi"),Br=new RegExp("("+Cn+")+","gi");function cr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],cr(r),cr(n))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Kr)||[],r=1;r<t.length;r++)e=cr(t,r).join(""),t=e.match(Kr)||[];return e}}function Qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Br.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=Ji(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Br.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var d=s[u];e=e.replace(new RegExp(d,"g"),t[d])}return e}var eo=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Qi(e)}},to=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ro=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var d=n[u],S=e[d];(s?t.indexOf(d)!==-1:t(d,S,e))&&(r[d]=S)}return r};(function(e){const t=Xi,r=eo,n=to,s=ro,u=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,p)=>{const y=l.length;return p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[w(o,a),"[",y,"]"].join("")]:[...l,[w(o,a),"[",w(y,a),"]=",w(p,a)].join("")]};case"bracket":return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[w(o,a),"[]"].join("")]:[...l,[w(o,a),"[]=",w(p,a)].join("")];case"comma":case"separator":return o=>(l,p)=>p==null||p.length===0?l:l.length===0?[[w(o,a),"=",w(p,a)].join("")]:[[l,w(p,a)].join(a.arrayFormatSeparator)];default:return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,w(o,a)]:[...l,[w(o,a),"=",w(p,a)].join("")]}}function S(a){let o;switch(a.arrayFormat){case"index":return(l,p,y)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){y[l]=p;return}y[l]===void 0&&(y[l]={}),y[l][o[1]]=p};case"bracket":return(l,p,y)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){y[l]=p;return}if(y[l]===void 0){y[l]=[p];return}y[l]=[].concat(y[l],p)};case"comma":case"separator":return(l,p,y)=>{const N=typeof p=="string"&&p.includes(a.arrayFormatSeparator),E=typeof p=="string"&&!N&&f(p,a).includes(a.arrayFormatSeparator);p=E?f(p,a):p;const C=N||E?p.split(a.arrayFormatSeparator).map(V=>f(V,a)):p===null?p:f(p,a);y[l]=C};default:return(l,p,y)=>{if(y[l]===void 0){y[l]=p;return}y[l]=[].concat(y[l],p)}}}function x(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function w(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function f(a,o){return o.decode?r(a):a}function D(a){return Array.isArray(a)?a.sort():typeof a=="object"?D(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function b(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function P(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function O(a){a=b(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function k(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function j(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const l=S(o),p=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return p;for(const y of a.split("&")){if(y==="")continue;let[N,E]=n(o.decode?y.replace(/\+/g," "):y,"=");E=E===void 0?null:["comma","separator"].includes(o.arrayFormat)?E:f(E,o),l(f(N,o),E,p)}for(const y of Object.keys(p)){const N=p[y];if(typeof N=="object"&&N!==null)for(const E of Object.keys(N))N[E]=k(N[E],o);else p[y]=k(N,o)}return o.sort===!1?p:(o.sort===!0?Object.keys(p).sort():Object.keys(p).sort(o.sort)).reduce((y,N)=>{const E=p[N];return E&&typeof E=="object"&&!Array.isArray(E)?y[N]=D(E):y[N]=E,y},Object.create(null))}e.extract=O,e.parse=j,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const l=E=>o.skipNull&&u(a[E])||o.skipEmptyString&&a[E]==="",p=d(o),y={};for(const E of Object.keys(a))l(E)||(y[E]=a[E]);const N=Object.keys(y);return o.sort!==!1&&N.sort(o.sort),N.map(E=>{const C=a[E];return C===void 0?"":C===null?w(E,o):Array.isArray(C)?C.reduce(p(E),[]).join("&"):w(E,o)+"="+w(C,o)}).filter(E=>E.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,p]=n(a,"#");return Object.assign({url:l.split("?")[0]||"",query:j(O(a),o)},o&&o.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=b(a.url).split("?")[0]||"",p=e.extract(a.url),y=e.parse(p,{sort:!1}),N=Object.assign(y,a.query);let E=e.stringify(N,o);E&&(E=`?${E}`);let C=P(a.url);return a.fragmentIdentifier&&(C=`#${w(a.fragmentIdentifier,o)}`),`${l}${E}${C}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:p,query:y,fragmentIdentifier:N}=e.parseUrl(a,l);return e.stringifyUrl({url:p,query:s(y,o),fragmentIdentifier:N},l)},e.exclude=(a,o,l)=>{const p=Array.isArray(o)?y=>!o.includes(y):(y,N)=>!o(y,N);return e.pick(a,p,l)}})(wt);const lt=Jn,no={parseNumbers:!1,parseBooleans:!1},io={skipNull:!1,skipEmptyString:!1},oo=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:d}={},S=Object.assign(Object.assign({},no),u),x=Object.assign(Object.assign({},io),d),w=lt.useLocation(),f=(r=lt.useHistory)===null||r===void 0?void 0:r.call(lt),D=(n=lt.useNavigate)===null||n===void 0?void 0:n.call(lt),b=Xn(),P=H.useRef(typeof e=="function"?e():e||{}),O=H.useMemo(()=>wt.parse(w.search,S),[w.search]),k=H.useMemo(()=>Object.assign(Object.assign({},P.current),O),[O]);return[k,fr(a=>{const o=typeof a=="function"?a(k):a;b(),f&&f[s]({hash:w.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},w.state),D&&D({hash:w.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},{replace:s==="replace",state:w.state})})]},ao=oo;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const ht=gn,Ot=_t,Ae=hn;he.WalletType=Ae.DidType;function ot(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(u,d=1,S="hex"){return s(u,d,S)},sign(u,d=!0,S="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(d){const x=s(u,1);return n.sign(x,e.sk,S)}return n.sign(u,e.sk,S)},verify(u,d,S=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=S?s(u,1):u;return n.verify(x,d,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,d=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return d?n.ethSign(n.ethHash(u),(0,ht.toHex)(e.sk)):n.ethSign(u,(0,ht.toHex)(e.sk))},ethVerify(u,d,S=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=S?n.ethHash(u):u;return n.ethRecover(x,d)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,ht.toHex)(e.sk),pk:(0,ht.toHex)(e.pk),address:this.address}}}}he.Wallet=ot;function so(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return ot(n,r)}he.fromSecretKey=so;function co(e,t="default"){return ot({pk:e},(0,Ae.DidType)(t))}he.fromPublicKey=co;function lo(e){return ot({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}he.fromAddress=lo;function uo(e="default"){const t=(0,Ae.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return ot({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=uo;function fo(e){const t=Ae.DidType.fromJSON(e.type);return ot(e,t)}he.fromJSON=fo;function po(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=po;var kt={exports:{}},Kt={},Fr;function Dn(){if(Fr)return Kt;Fr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,p){return Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function n(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,N){return y.__proto__=N,y},s(o,l)}function u(o){var l=x();return function(){var y=w(o),N;if(l){var E=w(this).constructor;N=Reflect.construct(y,arguments,E)}else N=y.apply(this,arguments);return d(this,N)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(o)}function S(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(o){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},w(o)}var f={},D,b;function P(o,l,p){p||(p=Error);function y(E,C,V){return typeof l=="string"?l:l(E,C,V)}var N=function(E){n(V,E);var C=u(V);function V(ee,X,G){var J;return r(this,V),J=C.call(this,y(ee,X,G)),J.code=o,J}return t(V)}(p);f[o]=N}function O(o,l){if(Array.isArray(o)){var p=o.length;return o=o.map(function(y){return String(y)}),p>2?"one of ".concat(l," ").concat(o.slice(0,p-1).join(", "),", or ")+o[p-1]:p===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function k(o,l,p){return o.substr(0,l.length)===l}function j(o,l,p){return(p===void 0||p>o.length)&&(p=o.length),o.substring(p-l.length,p)===l}function a(o,l,p){return typeof p!="number"&&(p=0),p+l.length>o.length?!1:o.indexOf(l,p)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(o,l,p){D===void 0&&(D=lr()),D(typeof o=="string","'name' must be a string");var y;typeof l=="string"&&k(l,"not ")?(y="must not be",l=l.replace(/^not /,"")):y="must be";var N;if(j(o," argument"))N="The ".concat(o," ").concat(y," ").concat(O(l,"type"));else{var E=a(o,".")?"property":"argument";N='The "'.concat(o,'" ').concat(E," ").concat(y," ").concat(O(l,"type"))}return N+=". Received type ".concat(e(p)),N},TypeError),P("ERR_INVALID_ARG_VALUE",function(o,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=pt);var y=b.inspect(l);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(p,". Received ").concat(y)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(o,l,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(y,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];D===void 0&&(D=lr()),D(l.length>0,"At least one arg needs to be specified");var y="The ",N=l.length;switch(l=l.map(function(E){return'"'.concat(E,'"')}),N){case 1:y+="".concat(l[0]," argument");break;case 2:y+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:y+=l.slice(0,N-1).join(", "),y+=", and ".concat(l[N-1]," arguments");break}return"".concat(y," must be specified")},TypeError),Kt.codes=f,Kt}var Bt,$r;function mo(){if($r)return Bt;$r=1;function e(A,R){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(A);R&&(_=_.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),B.push.apply(B,_)}return B}function t(A){for(var R=1;R<arguments.length;R++){var B=arguments[R]!=null?arguments[R]:{};R%2?e(Object(B),!0).forEach(function(_){r(A,_,B[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):e(Object(B)).forEach(function(_){Object.defineProperty(A,_,Object.getOwnPropertyDescriptor(B,_))})}return A}function r(A,R,B){return R=d(R),R in A?Object.defineProperty(A,R,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[R]=B,A}function n(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function s(A,R){for(var B=0;B<R.length;B++){var _=R[B];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,d(_.key),_)}}function u(A,R,B){return R&&s(A.prototype,R),Object.defineProperty(A,"prototype",{writable:!1}),A}function d(A){var R=S(A,"string");return o(R)==="symbol"?R:String(R)}function S(A,R){if(o(A)!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var _=B.call(A,R||"default");if(o(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}function x(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&j(A,R)}function w(A){var R=O();return function(){var _=a(A),W;if(R){var g=a(this).constructor;W=Reflect.construct(_,arguments,g)}else W=_.apply(this,arguments);return f(this,W)}}function f(A,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(A)}function D(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function b(A){var R=typeof Map=="function"?new Map:void 0;return b=function(_){if(_===null||!k(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(_))return R.get(_);R.set(_,W)}function W(){return P(_,arguments,a(this).constructor)}return W.prototype=Object.create(_.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),j(W,_)},b(A)}function P(A,R,B){return O()?P=Reflect.construct.bind():P=function(W,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(W,v),T=new L;return m&&j(T,m.prototype),T},P.apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function j(A,R){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,W){return _.__proto__=W,_},j(A,R)}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},a(A)}function o(A){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(A)}var l=pt,p=l.inspect,y=Dn(),N=y.codes.ERR_INVALID_ARG_TYPE;function E(A,R,B){return(B===void 0||B>A.length)&&(B=A.length),A.substring(B-R.length,B)===R}function C(A,R){if(R=Math.floor(R),A.length==0||R==0)return"";var B=A.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)A+=A,R--;return A+=A.substring(0,B-A.length),A}var V="",ee="",X="",G="",J={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function Y(A){var R=Object.keys(A),B=Object.create(Object.getPrototypeOf(A));return R.forEach(function(_){B[_]=A[_]}),Object.defineProperty(B,"message",{value:A.message}),B}function pe(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(A,R,B){var _="",W="",g=0,m="",v=!1,L=pe(A),T=L.split(`
1
+ import{r as H,j as i,g4 as Xn,l as fr,g5 as Jn,e_ as hn,c6 as gn,eZ as _t,g6 as pt,eY as _e,g7 as Qn,g8 as yn,g9 as vn,ga as ei,gb as ti,gc as bn,gd as pr,ge as ri,gf as ni,gg as ii,gh as oi,eR as tr,b7 as ai,cn as Lr,eT as si,a8 as ci,aP as Ce,u as Fe,N as xn,B as se,aT as jt,A as wn,D as li,T as Ue,gi as dr,af as Ze,au as Ge,a1 as Se,n as nt,P as M,bC as ui,cr as rr,K as fi,f1 as pi,Z as De,de as di,a0 as mt,bl as Xe,t as it,gj as mi,aa as Ye,dE as hi,aY as jn,G as Ee,a as dt,c as nr,b as gi,bF as yi,gk as En,bL as Sn,aV as vi,X as bi,Y as xi,bQ as Pn,m as wi,aC as ji,bH as Ei}from"./index-D0ZDnsBw.js";import{c as Si}from"./index-DMhVY_t6.js";import{d as Et}from"./Add-DEc5Gaew.js";import{d as Pi}from"./Loop-C7A5hRBw.js";import{d as Oi}from"./ViewList-nMxoCPSk.js";import{L as Ai,S as Ri,d as On}from"./list-header-C4fW2U4a.js";import{D as An,g as Ii}from"./index-BSHqUvvB.js";import"./index-YwELWQn6.js";import"./index-CbJ7Ycw4.js";import{h as Rn}from"./resource-dialog-BSFeyQ_K.js";import{T as _i}from"./index-YhmyCsjd.js";import{E as In}from"./index-ximM9jK2.js";import"./fallback-C9ko-lGM.js";import"./index-DUvxK_pJ.js";import{U as Ti}from"./user-sessions-tail5lsl.js";import{u as $e,d as Ur,W as _n,a as Ni}from"./dashboard-CMafJ63y.js";import{W as St}from"./did-address-DvBIH5D8.js";import{P as Ke}from"./permission-CRpG3m7P.js";import{C as Tt}from"./click-to-copy-CerMtW1G.js";import{F as ir}from"./FormControl-y2eP2gzP.js";import{I as or}from"./InputLabel-DlIX2kte.js";import{S as ar}from"./Select-BJHtvl4z.js";import{T as Pt}from"./TextField-DNDZQTge.js";import{D as mr}from"./DialogContentText-KJ1VziGc.js";import{A as rt}from"./Alert-CupQqU2h.js";import{f as Je}from"./format-error-B-leFeoI.js";import{_ as Ci}from"./useAsync-DOpY0MTF.js";import{I as sr}from"./index-DQGd2MHm.js";import{d as Di}from"./Verified-Bojb7V8h.js";import{C as Nt}from"./confirm-CDYYkoPB.js";import{u as Tn}from"./session-BT3UDuRe.js";import{N as Li}from"./index-D2bv65kG.js";import{a as Ui}from"./uniqBy-Chi1M0dq.js";import{b as qi}from"./sdk-B-OBfaY_.js";import{A as ki}from"./Avatar-DdU9cWoa.js";import{d as Ki,L as Bi,a as Fi}from"./Delete-CghY174I.js";import{p as $i}from"./index-D9IhBRcZ.js";import{A as Mi}from"./actions-DqT9_Wum.js";import{S as zi}from"./shorten-label-cwsaVcrz.js";import{F as Wi}from"./FormControlLabel-DsxW3p6G.js";import{C as Vi}from"./MoreVert-pbCfz7_a.js";import"./Search-RYv9IOCL.js";import"./useThemeProps-CBbxmVEG.js";import"./Grid-Dne3bmfg.js";import"./emotion-cache.browser.esm-BjIoAnXy.js";import"./index-CIO5rH3U.js";import"./redux-Ca86ARNo.js";import"./ViewColumn-adtX8zvr.js";import"./useFormControl-CXaDIKmg.js";import"./FormGroup-COgg0lwB.js";import"./LastPage-BAT94flJ.js";import"./Toolbar-Czbh9Thi.js";import"./index-C-yt1SFf.js";import"./Menu-DAx78rf8.js";import"./Hidden-BnLj1Yrh.js";import"./ExpandMore-BW_GpjfP.js";import"./ListItemButton-D3vwOyXA.js";import"./selector-Ckqt3gtd.js";import"./OpenInNew-DH9cfgTx.js";import"./index-BB2DzNFr.js";import"./index-yjZBmDn6.js";import"./CloseOutlined-C_enpVct.js";import"./Stack-CzT1qtfF.js";import"./Link-BSkaanak.js";import"./useLocalStorage-Aaw2jy7u.js";import"./PlayArrow-DUPHdx2w.js";import"./ButtonGroup-DU8AIwgk.js";import"./RadioGroup-BFz6MuWT.js";import"./index-DO83-4pr.js";import"./useSetState-7DwsrT08.js";import"./deprecate-BG-RqYhQ.js";import"./useSlot-CDeXSS5P.js";import"./MoreHoriz-Cix-ucsf.js";var hr={};Object.defineProperty(hr,"__esModule",{value:!0});var Nn=hr.default=void 0;Hi(H);var et=i;function Hi(e){return e&&e.__esModule?e:{default:e}}function qr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qr(Object(r),!0).forEach(function(n){Gi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gi(e,t,r){return(t=Yi(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yi(e){var t=Zi(e,"string");return typeof t=="symbol"?t:t+""}function Zi(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gr=function(t){return(0,et.jsxs)("svg",kr(kr({},t),{},{children:[(0,et.jsx)("g",{clipPath:"url(#clip0)",children:(0,et.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,et.jsx)("defs",{children:(0,et.jsx)("clipPath",{id:"clip0",children:(0,et.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};gr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};gr.displayName="person";Nn=hr.default=gr;var wt={},Xi=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Cn="%[a-f0-9]{2}",Kr=new RegExp("("+Cn+")|([^%]+?)","gi"),Br=new RegExp("("+Cn+")+","gi");function cr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],cr(r),cr(n))}function Ji(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Kr)||[],r=1;r<t.length;r++)e=cr(t,r).join(""),t=e.match(Kr)||[];return e}}function Qi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Br.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=Ji(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Br.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var d=s[u];e=e.replace(new RegExp(d,"g"),t[d])}return e}var eo=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return Qi(e)}},to=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},ro=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var d=n[u],S=e[d];(s?t.indexOf(d)!==-1:t(d,S,e))&&(r[d]=S)}return r};(function(e){const t=Xi,r=eo,n=to,s=ro,u=a=>a==null;function d(a){switch(a.arrayFormat){case"index":return o=>(l,p)=>{const y=l.length;return p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[w(o,a),"[",y,"]"].join("")]:[...l,[w(o,a),"[",w(y,a),"]=",w(p,a)].join("")]};case"bracket":return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,[w(o,a),"[]"].join("")]:[...l,[w(o,a),"[]=",w(p,a)].join("")];case"comma":case"separator":return o=>(l,p)=>p==null||p.length===0?l:l.length===0?[[w(o,a),"=",w(p,a)].join("")]:[[l,w(p,a)].join(a.arrayFormatSeparator)];default:return o=>(l,p)=>p===void 0||a.skipNull&&p===null||a.skipEmptyString&&p===""?l:p===null?[...l,w(o,a)]:[...l,[w(o,a),"=",w(p,a)].join("")]}}function S(a){let o;switch(a.arrayFormat){case"index":return(l,p,y)=>{if(o=/\[(\d*)\]$/.exec(l),l=l.replace(/\[\d*\]$/,""),!o){y[l]=p;return}y[l]===void 0&&(y[l]={}),y[l][o[1]]=p};case"bracket":return(l,p,y)=>{if(o=/(\[\])$/.exec(l),l=l.replace(/\[\]$/,""),!o){y[l]=p;return}if(y[l]===void 0){y[l]=[p];return}y[l]=[].concat(y[l],p)};case"comma":case"separator":return(l,p,y)=>{const N=typeof p=="string"&&p.includes(a.arrayFormatSeparator),E=typeof p=="string"&&!N&&f(p,a).includes(a.arrayFormatSeparator);p=E?f(p,a):p;const C=N||E?p.split(a.arrayFormatSeparator).map(V=>f(V,a)):p===null?p:f(p,a);y[l]=C};default:return(l,p,y)=>{if(y[l]===void 0){y[l]=p;return}y[l]=[].concat(y[l],p)}}}function x(a){if(typeof a!="string"||a.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function w(a,o){return o.encode?o.strict?t(a):encodeURIComponent(a):a}function f(a,o){return o.decode?r(a):a}function D(a){return Array.isArray(a)?a.sort():typeof a=="object"?D(Object.keys(a)).sort((o,l)=>Number(o)-Number(l)).map(o=>a[o]):a}function b(a){const o=a.indexOf("#");return o!==-1&&(a=a.slice(0,o)),a}function P(a){let o="";const l=a.indexOf("#");return l!==-1&&(o=a.slice(l)),o}function O(a){a=b(a);const o=a.indexOf("?");return o===-1?"":a.slice(o+1)}function k(a,o){return o.parseNumbers&&!Number.isNaN(Number(a))&&typeof a=="string"&&a.trim()!==""?a=Number(a):o.parseBooleans&&a!==null&&(a.toLowerCase()==="true"||a.toLowerCase()==="false")&&(a=a.toLowerCase()==="true"),a}function j(a,o){o=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},o),x(o.arrayFormatSeparator);const l=S(o),p=Object.create(null);if(typeof a!="string"||(a=a.trim().replace(/^[?#&]/,""),!a))return p;for(const y of a.split("&")){if(y==="")continue;let[N,E]=n(o.decode?y.replace(/\+/g," "):y,"=");E=E===void 0?null:["comma","separator"].includes(o.arrayFormat)?E:f(E,o),l(f(N,o),E,p)}for(const y of Object.keys(p)){const N=p[y];if(typeof N=="object"&&N!==null)for(const E of Object.keys(N))N[E]=k(N[E],o);else p[y]=k(N,o)}return o.sort===!1?p:(o.sort===!0?Object.keys(p).sort():Object.keys(p).sort(o.sort)).reduce((y,N)=>{const E=p[N];return E&&typeof E=="object"&&!Array.isArray(E)?y[N]=D(E):y[N]=E,y},Object.create(null))}e.extract=O,e.parse=j,e.stringify=(a,o)=>{if(!a)return"";o=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},o),x(o.arrayFormatSeparator);const l=E=>o.skipNull&&u(a[E])||o.skipEmptyString&&a[E]==="",p=d(o),y={};for(const E of Object.keys(a))l(E)||(y[E]=a[E]);const N=Object.keys(y);return o.sort!==!1&&N.sort(o.sort),N.map(E=>{const C=a[E];return C===void 0?"":C===null?w(E,o):Array.isArray(C)?C.reduce(p(E),[]).join("&"):w(E,o)+"="+w(C,o)}).filter(E=>E.length>0).join("&")},e.parseUrl=(a,o)=>{o=Object.assign({decode:!0},o);const[l,p]=n(a,"#");return Object.assign({url:l.split("?")[0]||"",query:j(O(a),o)},o&&o.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,o)}:{})},e.stringifyUrl=(a,o)=>{o=Object.assign({encode:!0,strict:!0},o);const l=b(a.url).split("?")[0]||"",p=e.extract(a.url),y=e.parse(p,{sort:!1}),N=Object.assign(y,a.query);let E=e.stringify(N,o);E&&(E=`?${E}`);let C=P(a.url);return a.fragmentIdentifier&&(C=`#${w(a.fragmentIdentifier,o)}`),`${l}${E}${C}`},e.pick=(a,o,l)=>{l=Object.assign({parseFragmentIdentifier:!0},l);const{url:p,query:y,fragmentIdentifier:N}=e.parseUrl(a,l);return e.stringifyUrl({url:p,query:s(y,o),fragmentIdentifier:N},l)},e.exclude=(a,o,l)=>{const p=Array.isArray(o)?y=>!o.includes(y):(y,N)=>!o(y,N);return e.pick(a,p,l)}})(wt);const lt=Jn,no={parseNumbers:!1,parseBooleans:!1},io={skipNull:!1,skipEmptyString:!1},oo=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:d}={},S=Object.assign(Object.assign({},no),u),x=Object.assign(Object.assign({},io),d),w=lt.useLocation(),f=(r=lt.useHistory)===null||r===void 0?void 0:r.call(lt),D=(n=lt.useNavigate)===null||n===void 0?void 0:n.call(lt),b=Xn(),P=H.useRef(typeof e=="function"?e():e||{}),O=H.useMemo(()=>wt.parse(w.search,S),[w.search]),k=H.useMemo(()=>Object.assign(Object.assign({},P.current),O),[O]);return[k,fr(a=>{const o=typeof a=="function"?a(k):a;b(),f&&f[s]({hash:w.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},w.state),D&&D({hash:w.hash,search:wt.stringify(Object.assign(Object.assign({},O),o),x)||"?"},{replace:s==="replace",state:w.state})})]},ao=oo;var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const ht=gn,Ot=_t,Ae=hn;he.WalletType=Ae.DidType;function ot(e,t="default"){const r=(0,Ae.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address,hash(u,d=1,S="hex"){return s(u,d,S)},sign(u,d=!0,S="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(d){const x=s(u,1);return n.sign(x,e.sk,S)}return n.sign(u,e.sk,S)},verify(u,d,S=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=S?s(u,1):u;return n.verify(x,d,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,d=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return d?n.ethSign(n.ethHash(u),(0,ht.toHex)(e.sk)):n.ethSign(u,(0,ht.toHex)(e.sk))},ethVerify(u,d,S=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=S?n.ethHash(u):u;return n.ethRecover(x,d)===this.address},toAddress(){return e.pk?(0,Ae.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ae.DidType.toJSON(r),sk:(0,ht.toHex)(e.sk),pk:(0,ht.toHex)(e.pk),address:this.address}}}}he.Wallet=ot;function so(e,t="default"){const r=(0,Ae.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return ot(n,r)}he.fromSecretKey=so;function co(e,t="default"){return ot({pk:e},(0,Ae.DidType)(t))}he.fromPublicKey=co;function lo(e){return ot({address:(0,Ae.toAddress)(e)},(0,Ae.toTypeInfo)(e))}he.fromAddress=lo;function uo(e="default"){const t=(0,Ae.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return ot({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=uo;function fo(e){const t=Ae.DidType.fromJSON(e.type);return ot(e,t)}he.fromJSON=fo;function po(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=po;var kt={exports:{}},Kt={},Fr;function Dn(){if(Fr)return Kt;Fr=1;function e(o){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},e(o)}function t(o,l,p){return Object.defineProperty(o,"prototype",{writable:!1}),o}function r(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}function n(o,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(l&&l.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),l&&s(o,l)}function s(o,l){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,N){return y.__proto__=N,y},s(o,l)}function u(o){var l=x();return function(){var y=w(o),N;if(l){var E=w(this).constructor;N=Reflect.construct(y,arguments,E)}else N=y.apply(this,arguments);return d(this,N)}}function d(o,l){if(l&&(e(l)==="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(o)}function S(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w(o){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},w(o)}var f={},D,b;function P(o,l,p){p||(p=Error);function y(E,C,V){return typeof l=="string"?l:l(E,C,V)}var N=function(E){n(V,E);var C=u(V);function V(ee,X,G){var J;return r(this,V),J=C.call(this,y(ee,X,G)),J.code=o,J}return t(V)}(p);f[o]=N}function O(o,l){if(Array.isArray(o)){var p=o.length;return o=o.map(function(y){return String(y)}),p>2?"one of ".concat(l," ").concat(o.slice(0,p-1).join(", "),", or ")+o[p-1]:p===2?"one of ".concat(l," ").concat(o[0]," or ").concat(o[1]):"of ".concat(l," ").concat(o[0])}else return"of ".concat(l," ").concat(String(o))}function k(o,l,p){return o.substr(0,l.length)===l}function j(o,l,p){return(p===void 0||p>o.length)&&(p=o.length),o.substring(p-l.length,p)===l}function a(o,l,p){return typeof p!="number"&&(p=0),p+l.length>o.length?!1:o.indexOf(l,p)!==-1}return P("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),P("ERR_INVALID_ARG_TYPE",function(o,l,p){D===void 0&&(D=lr()),D(typeof o=="string","'name' must be a string");var y;typeof l=="string"&&k(l,"not ")?(y="must not be",l=l.replace(/^not /,"")):y="must be";var N;if(j(o," argument"))N="The ".concat(o," ").concat(y," ").concat(O(l,"type"));else{var E=a(o,".")?"property":"argument";N='The "'.concat(o,'" ').concat(E," ").concat(y," ").concat(O(l,"type"))}return N+=". Received type ".concat(e(p)),N},TypeError),P("ERR_INVALID_ARG_VALUE",function(o,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";b===void 0&&(b=pt);var y=b.inspect(l);return y.length>128&&(y="".concat(y.slice(0,128),"...")),"The argument '".concat(o,"' ").concat(p,". Received ").concat(y)},TypeError),P("ERR_INVALID_RETURN_VALUE",function(o,l,p){var y;return p&&p.constructor&&p.constructor.name?y="instance of ".concat(p.constructor.name):y="type ".concat(e(p)),"Expected ".concat(o,' to be returned from the "').concat(l,'"')+" function but got ".concat(y,".")},TypeError),P("ERR_MISSING_ARGS",function(){for(var o=arguments.length,l=new Array(o),p=0;p<o;p++)l[p]=arguments[p];D===void 0&&(D=lr()),D(l.length>0,"At least one arg needs to be specified");var y="The ",N=l.length;switch(l=l.map(function(E){return'"'.concat(E,'"')}),N){case 1:y+="".concat(l[0]," argument");break;case 2:y+="".concat(l[0]," and ").concat(l[1]," arguments");break;default:y+=l.slice(0,N-1).join(", "),y+=", and ".concat(l[N-1]," arguments");break}return"".concat(y," must be specified")},TypeError),Kt.codes=f,Kt}var Bt,$r;function mo(){if($r)return Bt;$r=1;function e(A,R){var B=Object.keys(A);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(A);R&&(_=_.filter(function(W){return Object.getOwnPropertyDescriptor(A,W).enumerable})),B.push.apply(B,_)}return B}function t(A){for(var R=1;R<arguments.length;R++){var B=arguments[R]!=null?arguments[R]:{};R%2?e(Object(B),!0).forEach(function(_){r(A,_,B[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(B)):e(Object(B)).forEach(function(_){Object.defineProperty(A,_,Object.getOwnPropertyDescriptor(B,_))})}return A}function r(A,R,B){return R=d(R),R in A?Object.defineProperty(A,R,{value:B,enumerable:!0,configurable:!0,writable:!0}):A[R]=B,A}function n(A,R){if(!(A instanceof R))throw new TypeError("Cannot call a class as a function")}function s(A,R){for(var B=0;B<R.length;B++){var _=R[B];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(A,d(_.key),_)}}function u(A,R,B){return R&&s(A.prototype,R),Object.defineProperty(A,"prototype",{writable:!1}),A}function d(A){var R=S(A,"string");return o(R)==="symbol"?R:String(R)}function S(A,R){if(o(A)!=="object"||A===null)return A;var B=A[Symbol.toPrimitive];if(B!==void 0){var _=B.call(A,R||"default");if(o(_)!=="object")return _;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(A)}function x(A,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(R&&R.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),R&&j(A,R)}function w(A){var R=O();return function(){var _=a(A),W;if(R){var g=a(this).constructor;W=Reflect.construct(_,arguments,g)}else W=_.apply(this,arguments);return f(this,W)}}function f(A,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D(A)}function D(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function b(A){var R=typeof Map=="function"?new Map:void 0;return b=function(_){if(_===null||!k(_))return _;if(typeof _!="function")throw new TypeError("Super expression must either be null or a function");if(typeof R<"u"){if(R.has(_))return R.get(_);R.set(_,W)}function W(){return P(_,arguments,a(this).constructor)}return W.prototype=Object.create(_.prototype,{constructor:{value:W,enumerable:!1,writable:!0,configurable:!0}}),j(W,_)},b(A)}function P(A,R,B){return O()?P=Reflect.construct.bind():P=function(W,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(W,v),T=new L;return m&&j(T,m.prototype),T},P.apply(null,arguments)}function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function j(A,R){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,W){return _.__proto__=W,_},j(A,R)}function a(A){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(B){return B.__proto__||Object.getPrototypeOf(B)},a(A)}function o(A){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(A)}var l=pt,p=l.inspect,y=Dn(),N=y.codes.ERR_INVALID_ARG_TYPE;function E(A,R,B){return(B===void 0||B>A.length)&&(B=A.length),A.substring(B-R.length,B)===R}function C(A,R){if(R=Math.floor(R),A.length==0||R==0)return"";var B=A.length*R;for(R=Math.floor(Math.log(R)/Math.log(2));R;)A+=A,R--;return A+=A.substring(0,B-A.length),A}var V="",ee="",X="",G="",J={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},xe=10;function Y(A){var R=Object.keys(A),B=Object.create(Object.getPrototypeOf(A));return R.forEach(function(_){B[_]=A[_]}),Object.defineProperty(B,"message",{value:A.message}),B}function pe(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function we(A,R,B){var _="",W="",g=0,m="",v=!1,L=pe(A),T=L.split(`
2
2
  `),q=pe(R).split(`
3
3
  `),F=0,ne="";if(B==="strictEqual"&&o(A)==="object"&&o(R)==="object"&&A!==null&&R!==null&&(B="strictEqualObject"),T.length===1&&q.length===1&&T[0]!==q[0]){var ue=T[0].length+q[0].length;if(ue<=xe){if((o(A)!=="object"||A===null)&&(o(R)!=="object"||R===null)&&(A!==0||R!==0))return"".concat(J[B],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{r,aT as d,j as e,b as u,ai as z,bn as I,cz as M,P as t,bD as E,bt as m,bm as S}from"./index-BowU-Rc8.js";import{d as T}from"./ExpandMore-BjFaf3Fo.js";import{B as v}from"./ButtonGroup-CFQqy_jV.js";function p(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),o=r.useRef(null),b=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:P})):a,k=()=>{c(n=>!n)},B=n=>{o.current&&o.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:o,...g,children:[typeof l=="function"?l():e.jsx(u,{onClick:x,color:i,children:l}),e.jsx(u,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(T,{})})]}),e.jsx(L,{open:j,anchorEl:o.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(z,{children:e.jsx(I,{onClickAway:B,children:e.jsx(M,{onClick:C,children:b})})})})]})}p.propTypes={size:t.string,color:t.string,menu:t.oneOfType([t.node,t.array]),children:t.node,variant:t.oneOf(["outlined","contained"]),onClick:t.func,menuButtonProps:t.object};p.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};p.Item=d;const A=m(v)`
1
+ import{r,aT as d,j as e,b as u,ai as z,bn as I,cz as M,P as t,bD as E,bt as m,bm as S}from"./index-D0ZDnsBw.js";import{d as T}from"./ExpandMore-BW_GpjfP.js";import{B as v}from"./ButtonGroup-DU8AIwgk.js";function p(s){const{size:f,color:i,menu:a,children:l,variant:h,onClick:x,menuButtonProps:y,...g}=s,[j,c]=r.useState(!1),o=r.useRef(null),b=Array.isArray(a)?a.map((n,P)=>r.isValidElement(n)?n:r.createElement(d,{...n,key:P})):a,k=()=>{c(n=>!n)},B=n=>{o.current&&o.current.contains(n.target)||c(!1)},C=n=>{n.target.closest(".MuiMenuItem-root")&&c(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(A,{variant:h,size:f,color:i,ref:o,...g,children:[typeof l=="function"?l():e.jsx(u,{onClick:x,color:i,children:l}),e.jsx(u,{onClick:k,color:i,...y,"aria-label":"more functions",children:e.jsx(T,{})})]}),e.jsx(L,{open:j,anchorEl:o.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(z,{children:e.jsx(I,{onClickAway:B,children:e.jsx(M,{onClick:C,children:b})})})})]})}p.propTypes={size:t.string,color:t.string,menu:t.oneOfType([t.node,t.array]),children:t.node,variant:t.oneOf(["outlined","contained"]),onClick:t.func,menuButtonProps:t.object};p.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:E,menuButtonProps:{}};p.Item=d;const A=m(v)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1 +1 @@
1
- import{b7 as y}from"./index-BowU-Rc8.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
1
+ import{b7 as y}from"./index-D0ZDnsBw.js";var c={};function u(e,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var T=u;u.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};u.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};u.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var i=new Date().getTime();if(e&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var t=this._timeouts.shift();if(t===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),t=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},t),this._options.unref&&this._timer.unref(),!0};u.prototype.attempt=function(e,i){this._fn=e,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var t=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){t._operationTimeoutCb()},t._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};u.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};u.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};u.prototype.start=u.prototype.try;u.prototype.errors=function(){return this._errors};u.prototype.attempts=function(){return this._attempts};u.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},i=null,t=0,r=0;r<this._errors.length;r++){var n=this._errors[r],o=n.message,a=(e[o]||0)+1;e[o]=a,a>=t&&(i=n,t=a)}return i};(function(e){var i=T;e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in t)r[n]=t[n];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var o=[],a=0;a<r.retries;a++)o.push(this.createTimeout(a,r));return t&&t.forever&&!o.length&&o.push(this.createTimeout(a,r)),o.sort(function(s,m){return s-m}),o},e.createTimeout=function(t,r){var n=r.randomize?Math.random()+1:1,o=Math.round(n*Math.max(r.minTimeout,1)*Math.pow(r.factor,t));return o=Math.min(o,r.maxTimeout),o},e.wrap=function(t,r,n){if(r instanceof Array&&(n=r,r=null),!n){n=[];for(var o in t)typeof t[o]=="function"&&n.push(o)}for(var a=0;a<n.length;a++){var s=n[a],m=t[s];t[s]=(function(p){var f=e.operation(r),h=Array.prototype.slice.call(arguments,1),l=h.pop();h.push(function(_){f.retry(_)||(_&&(arguments[0]=f.mainError()),l.apply(this,arguments))}),f.attempt(function(){p.apply(t,h)})}).bind(t,m),t[s].options=r}}})(c);var v=c;const R=y(v);export{R as a,v as r};
@@ -1,4 +1,4 @@
1
- import{j as ee,r as $e,aK as Se,dG as pi,c$ as Yb,aJ as Ar,dr as Co,dH as Fl,dI as Jb,dJ as Xb,dK as Qb,dL as Ss,dM as Ot,dN as Rt,dO as Qi,dP as Zi,dQ as ti,dR as Zb,dS as Xv,dT as Qv,dU as ew,dV as Zv,dW as eh,cH as tw,cI as rw,cP as aw,dX as nw,ah as th,dY as ow,dZ as iw,d_ as sw,d$ as lw,e0 as uw,aG as _r,e1 as cw,e2 as dw,e3 as fw,e4 as pw,cM as vw,e5 as hw,e6 as gw,e7 as mw,e8 as yw,e9 as bw,cN as ww,cO as Sw,aj as rh,ai as $w,ea as xw,eb as _w,aC as Ja,ec as Tw,ed as Cw,T as Pw,ee as Ow,ef as Rw,eg as Iw,bf as Ew,eh as Aw,ei as jw,b as Dw,ej as kw,ek as Mw,d5 as Lw,d4 as Fw,el as Bw,em as Nw,bi as ah,en as Hw,eo as Uw,ep as Ww,eq as zw,aT as $s,er as Gw,es as Kw,a as xs,et as Vw,eu as qw,aF as Ln,aE as Fn,aI as Bn,aM as Er,aN as Nn,aH as Dn,cf as Yw,cl as _s,ce as Jw,cT as Xw,da as jd,cY as Qw,at as Zw,cQ as eS,cn as tt,cv as lt,ev as tS,ew as rS,X as vi,Y as hi,cp as aS,b7 as Rc,co as nS,ex as oS,ey as nh,ez as iS,eA as sS,eB as lS,eC as uS,P as Qe,bt as jo,bD as cS,aR as dS,b_ as fS,$ as pS,cG as Dd,c1 as vS,cr as hS,n as gS}from"./index-BowU-Rc8.js";import{u as mS}from"./useThemeProps-BVeww5NE.js";import{t as yS,G as bS,g as wS,a as SS}from"./Grid-BArO7d1G.js";import{a as $S,r as oh}from"./emotion-cache.browser.esm-CRw46sQ7.js";import{e as xS,r as _S,l as TS}from"./index-BZKKn0ch.js";import{c as CS,C as PS,a as OS,d as RS}from"./MoreVert-6z9sYyBh.js";import{R as IS,C as ES,V as AS,d as jS,a as DS}from"./ViewColumn-cHwmzgaQ.js";import{F as kS,f as MS,g as LS}from"./FormControl-B9P20sHZ.js";import{u as FS}from"./useFormControl-CqDUGVwx.js";import{F as BS,f as NS,g as HS}from"./FormControlLabel-C2tfmf09.js";import{F as US,f as WS,g as zS}from"./FormGroup-QeEOGRIO.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,S as sh,d as JS,s as XS}from"./Select-DN5ZDrhq.js";import{I as QS,g as ZS,i as e$}from"./InputLabel-FW_WnrBG.js";import{a as ac,D as t$,L as kd}from"./Delete-P7WqUbyQ.js";import{T as nc,g as r$,t as a$}from"./TextField-CVbbJh-y.js";import{K as n$,a as o$}from"./index-B61Zk4zc.js";import{F as i$,L as s$}from"./LastPage-BbNDF-1B.js";import{T as lh,g as l$,t as u$}from"./Toolbar-DMWwm961.js";import{S as c$,d as Md}from"./Search-Bm4BV5ff.js";import{E as Ld}from"./index-CDo-yvx8.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
1
+ import{j as ee,r as $e,aK as Se,dG as pi,c$ as Yb,aJ as Ar,dr as Co,dH as Fl,dI as Jb,dJ as Xb,dK as Qb,dL as Ss,dM as Ot,dN as Rt,dO as Qi,dP as Zi,dQ as ti,dR as Zb,dS as Xv,dT as Qv,dU as ew,dV as Zv,dW as eh,cH as tw,cI as rw,cP as aw,dX as nw,ah as th,dY as ow,dZ as iw,d_ as sw,d$ as lw,e0 as uw,aG as _r,e1 as cw,e2 as dw,e3 as fw,e4 as pw,cM as vw,e5 as hw,e6 as gw,e7 as mw,e8 as yw,e9 as bw,cN as ww,cO as Sw,aj as rh,ai as $w,ea as xw,eb as _w,aC as Ja,ec as Tw,ed as Cw,T as Pw,ee as Ow,ef as Rw,eg as Iw,bf as Ew,eh as Aw,ei as jw,b as Dw,ej as kw,ek as Mw,d5 as Lw,d4 as Fw,el as Bw,em as Nw,bi as ah,en as Hw,eo as Uw,ep as Ww,eq as zw,aT as $s,er as Gw,es as Kw,a as xs,et as Vw,eu as qw,aF as Ln,aE as Fn,aI as Bn,aM as Er,aN as Nn,aH as Dn,cf as Yw,cl as _s,ce as Jw,cT as Xw,da as jd,cY as Qw,at as Zw,cQ as eS,cn as tt,cv as lt,ev as tS,ew as rS,X as vi,Y as hi,cp as aS,b7 as Rc,co as nS,ex as oS,ey as nh,ez as iS,eA as sS,eB as lS,eC as uS,P as Qe,bt as jo,bD as cS,aR as dS,b_ as fS,$ as pS,cG as Dd,c1 as vS,cr as hS,n as gS}from"./index-D0ZDnsBw.js";import{u as mS}from"./useThemeProps-CBbxmVEG.js";import{t as yS,G as bS,g as wS,a as SS}from"./Grid-Dne3bmfg.js";import{a as $S,r as oh}from"./emotion-cache.browser.esm-BjIoAnXy.js";import{e as xS,r as _S,l as TS}from"./index-CIO5rH3U.js";import{c as CS,C as PS,a as OS,d as RS}from"./MoreVert-pbCfz7_a.js";import{R as IS,C as ES,V as AS,d as jS,a as DS}from"./ViewColumn-adtX8zvr.js";import{F as kS,f as MS,g as LS}from"./FormControl-y2eP2gzP.js";import{u as FS}from"./useFormControl-CXaDIKmg.js";import{F as BS,f as NS,g as HS}from"./FormControlLabel-DsxW3p6G.js";import{F as US,f as WS,g as zS}from"./FormGroup-COgg0lwB.js";import{I as ih,g as GS,i as KS,a as VS,b as qS,c as YS,S as sh,d as JS,s as XS}from"./Select-BJHtvl4z.js";import{I as QS,g as ZS,i as e$}from"./InputLabel-DlIX2kte.js";import{a as ac,D as t$,L as kd}from"./Delete-CghY174I.js";import{T as nc,g as r$,t as a$}from"./TextField-DNDZQTge.js";import{K as n$,a as o$}from"./index-YhmyCsjd.js";import{F as i$,L as s$}from"./LastPage-BAT94flJ.js";import{T as lh,g as l$,t as u$}from"./Toolbar-Czbh9Thi.js";import{S as c$,d as Md}from"./Search-RYv9IOCL.js";import{E as Ld}from"./index-ximM9jK2.js";const Ic="mode",Ec="color-scheme",uh="data-color-scheme";function d$(e){const{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:a="dark",modeStorageKey:n=Ic,colorSchemeStorageKey:i=Ec,attribute:c=uh,colorSchemeNode:v="document.documentElement",nonce:p}=e||{};return ee.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(function() {
2
2
  try {
3
3
  var mode = localStorage.getItem('${n}') || '${t}';
4
4
  var colorScheme = '';
@@ -1,4 +1,4 @@
1
- import{aE as ke,aF as $e,r as v,aG as ze,cQ as tt,aH as re,aK as M,cP as te,aJ as pe,g1 as st,aI as Ne,j as e,aM as _e,aN as Le,b7 as rt,aP as L,u as q,T as W,au as H,a1 as z,n as E,P as w,Z as U,bl as K,c1 as Y,gl as Ae,aC as O,t as N,aY as ot,bA as at,B as T,fq as nt,a8 as it,aa as lt,X as ct,Y as dt,G as Oe,aT as We,aV as X,gm as Pe,e_ as ut,gn as pt,a as ue,a0 as ft,$ as mt}from"./index-BowU-Rc8.js";import{d as me}from"./Add-DhnwVxhZ.js";import{S as se}from"./index-BHRFloRH.js";import{d as oe}from"./EditIcon-BV3Q9c3s.js";import{d as ht}from"./LockIcon-uGDnriV5.js";import{L as he,S as ge,d as gt}from"./list-header-7vVYIW_T.js";import{u as Z}from"./dashboard-yyANkyH0.js";import{w as G,P as we}from"./permission-DUsbjffq.js";import{C as xe}from"./confirm-CPhW4Ln4.js";import{T as A,F as Me}from"./TextField-CVbbJh-y.js";import{I as Ee}from"./InputLabel-FW_WnrBG.js";import{g as xt}from"./ButtonGroup-CFQqy_jV.js";import{O as Ge}from"./Select-DN5ZDrhq.js";import{D as yt}from"./DialogContentText-BECZzyeS.js";import{A as vt}from"./Alert-C2mTW_RW.js";import{f as Q}from"./format-error-BvNwPRch.js";import{F as jt}from"./FormControlLabel-C2tfmf09.js";import{C as Ct}from"./MoreVert-6z9sYyBh.js";import{C as bt}from"./Google-B7LRQAsM.js";import{E as ye}from"./index-CDo-yvx8.js";import{W as qe}from"./did-address-qp4O986k.js";import{T as Tt}from"./index-D5jbzTmg.js";import{_ as St}from"./useSetState-Dvi1U0Nw.js";import{I as Bt}from"./InputAdornment-BFyVcV9g.js";import"./ExpandMore-BjFaf3Fo.js";import"./Search-Bm4BV5ff.js";import"./index-B61Zk4zc.js";import"./useLocalStorage-BSk8yrmI.js";import"./Delete-P7WqUbyQ.js";import"./PlayArrow-CyW2vtN8.js";import"./RadioGroup-F9HJgTgP.js";import"./FormGroup-QeEOGRIO.js";import"./useFormControl-CqDUGVwx.js";import"./Avatar-BZ_OPd3a.js";import"./useSlot-CBvar7i-.js";import"./session-4S4FY2oN.js";import"./Link-BLv1ybKR.js";import"./fallback-DpZp1UKo.js";import"./index-DbC1wngE.js";import"./Menu-B60nijwd.js";import"./Toolbar-DMWwm961.js";import"./Hidden-CpExY3Hv.js";import"./index-DH4lKXWs.js";import"./ListItemButton-BhIitXNK.js";import"./selector-Rhni_cbO.js";import"./deprecate-TLU2j5Nl.js";import"./useAsync-DTvP9Zxi.js";import"./FormControl-B9P20sHZ.js";import"./Stack-CcM0sATd.js";function Pt(t){return $e("MuiToggleButton",t)}const V=ke("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),He=v.createContext({}),Ue=v.createContext(void 0);function wt(t,l){return l===void 0||t===void 0?!1:Array.isArray(l)?l.indexOf(t)>=0:t===l}const Ft=["value"],It=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Dt=t=>{const{classes:l,fullWidth:i,selected:u,disabled:f,size:d,color:h}=t,s={root:["root",u&&"selected",f&&"disabled",i&&"fullWidth",`size${re(d)}`,h]};return Le(s,Pt,l)},Rt=ze(tt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,l)=>{const{ownerState:i}=t;return[l.root,l[`size${re(i.size)}`]]}})(({theme:t,ownerState:l})=>{let i=l.color==="standard"?t.palette.text.primary:t.palette[l.color].main,u;return t.vars&&(i=l.color==="standard"?t.vars.palette.text.primary:t.vars.palette[l.color].main,u=l.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[l.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},l.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:te(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:i,backgroundColor:t.vars?`rgba(${u} / ${t.vars.palette.action.selectedOpacity})`:te(i,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${u} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:te(i,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${u} / ${t.vars.palette.action.selectedOpacity})`:te(i,t.palette.action.selectedOpacity)}}}},l.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},l.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),J=v.forwardRef(function(l,i){const u=v.useContext(He),{value:f}=u,d=pe(u,Ft),h=v.useContext(Ue),s=st(M({},d,{selected:wt(l.value,f)}),l),p=Ne({props:s,name:"MuiToggleButton"}),{children:o,className:n,color:r="standard",disabled:a=!1,disableFocusRipple:c=!1,fullWidth:j=!1,onChange:x,onClick:m,selected:C,size:g="medium",value:b}=p,y=pe(p,It),B=M({},p,{color:r,disabled:a,disableFocusRipple:c,fullWidth:j,size:g}),F=Dt(B),R=P=>{m&&(m(P,b),P.defaultPrevented)||x&&x(P,b)},S=h||"";return e.jsx(Rt,M({className:_e(d.className,F.root,n,S),disabled:a,focusRipple:!c,ref:i,onClick:R,onChange:x,value:b,ownerState:B,"aria-pressed":C},y,{children:o}))});function kt(t){return $e("MuiToggleButtonGroup",t)}const D=ke("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),$t=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],zt=t=>{const{classes:l,orientation:i,fullWidth:u,disabled:f}=t,d={root:["root",i==="vertical"&&"vertical",u&&"fullWidth"],grouped:["grouped",`grouped${re(i)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(d,kt,l)},Nt=ze("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,l)=>{const{ownerState:i}=t;return[{[`& .${D.grouped}`]:l.grouped},{[`& .${D.grouped}`]:l[`grouped${re(i.orientation)}`]},{[`& .${D.firstButton}`]:l.firstButton},{[`& .${D.lastButton}`]:l.lastButton},{[`& .${D.middleButton}`]:l.middleButton},l.root,i.orientation==="vertical"&&l.vertical,i.fullWidth&&l.fullWidth]}})(({ownerState:t,theme:l})=>M({display:"inline-flex",borderRadius:(l.vars||l).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${D.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${D.selected} + .${D.grouped}.${D.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${D.selected} + .${D.grouped}.${D.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${D.firstButton},& .${D.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${D.lastButton},& .${D.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${D.firstButton},& .${D.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${D.lastButton},& .${D.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${D.lastButton}.${V.disabled},& .${D.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${D.lastButton}.${V.disabled},& .${D.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ve=v.forwardRef(function(l,i){const u=Ne({props:l,name:"MuiToggleButtonGroup"}),{children:f,className:d,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:n,orientation:r="horizontal",size:a="medium",value:c}=u,j=pe(u,$t),x=M({},u,{disabled:s,fullWidth:o,orientation:r,size:a}),m=zt(x),C=v.useCallback((R,S)=>{if(!n)return;const P=c&&c.indexOf(S);let _;c&&P>=0?(_=c.slice(),_.splice(P,1)):_=c?c.concat(S):[S],n(R,_)},[n,c]),g=v.useCallback((R,S)=>{n&&n(R,c===S?null:S)},[n,c]),b=v.useMemo(()=>({className:m.grouped,onChange:p?g:C,value:c,size:a,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,C,c,a,o,h,s]),y=xt(f),B=y.length,F=R=>{const S=R===0,P=R===B-1;return S&&P?"":S?m.firstButton:P?m.lastButton:m.middleButton};return e.jsx(Nt,M({role:"group",className:_e(m.root,d),ref:i,ownerState:x},j,{children:e.jsx(He.Provider,{value:b,children:y.map((R,S)=>e.jsx(Ue.Provider,{value:F(S),children:R},S))})}))});var ve={};Object.defineProperty(ve,"__esModule",{value:!0});var ee=ve.default=void 0;_t(v);var Fe=e;function _t(t){return t&&t.__esModule?t:{default:t}}function Ie(t,l){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),i.push.apply(i,u)}return i}function De(t){for(var l=1;l<arguments.length;l++){var i=arguments[l]!=null?arguments[l]:{};l%2?Ie(Object(i),!0).forEach(function(u){Lt(t,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach(function(u){Object.defineProperty(t,u,Object.getOwnPropertyDescriptor(i,u))})}return t}function Lt(t,l,i){return(l=At(l))in t?Object.defineProperty(t,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[l]=i,t}function At(t){var l=Ot(t,"string");return typeof l=="symbol"?l:l+""}function Ot(t,l){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var u=i.call(t,l||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(t)}var je=function(l){return(0,Fe.jsx)("svg",De(De({},l),{},{children:(0,Fe.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};je.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};je.displayName="delete";ee=ve.default=je;var Ke={exports:{}},Ye={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l={rotl:function(i,u){return i<<u|i>>>32-u},rotr:function(i,u){return i<<32-u|i>>>u},endian:function(i){if(i.constructor==Number)return l.rotl(i,8)&16711935|l.rotl(i,24)&4278255360;for(var u=0;u<i.length;u++)i[u]=l.endian(i[u]);return i},randomBytes:function(i){for(var u=[];i>0;i--)u.push(Math.floor(Math.random()*256));return u},bytesToWords:function(i){for(var u=[],f=0,d=0;f<i.length;f++,d+=8)u[d>>>5]|=i[f]<<24-d%32;return u},wordsToBytes:function(i){for(var u=[],f=0;f<i.length*32;f+=8)u.push(i[f>>>5]>>>24-f%32&255);return u},bytesToHex:function(i){for(var u=[],f=0;f<i.length;f++)u.push((i[f]>>>4).toString(16)),u.push((i[f]&15).toString(16));return u.join("")},hexToBytes:function(i){for(var u=[],f=0;f<i.length;f+=2)u.push(parseInt(i.substr(f,2),16));return u},bytesToBase64:function(i){for(var u=[],f=0;f<i.length;f+=3)for(var d=i[f]<<16|i[f+1]<<8|i[f+2],h=0;h<4;h++)f*8+h*6<=i.length*8?u.push(t.charAt(d>>>6*(3-h)&63)):u.push("=");return u.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var u=[],f=0,d=0;f<i.length;d=++f%4)d!=0&&u.push((t.indexOf(i.charAt(f-1))&Math.pow(2,-2*d+8)-1)<<d*2|t.indexOf(i.charAt(f))>>>6-d*2);return u}};Ye.exports=l})();var Wt=Ye.exports,fe={utf8:{stringToBytes:function(t){return fe.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(fe.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var l=[],i=0;i<t.length;i++)l.push(t.charCodeAt(i)&255);return l},bytesToString:function(t){for(var l=[],i=0;i<t.length;i++)l.push(String.fromCharCode(t[i]));return l.join("")}}},Re=fe;/*!
1
+ import{aE as ke,aF as $e,r as v,aG as ze,cQ as tt,aH as re,aK as M,cP as te,aJ as pe,g1 as st,aI as Ne,j as e,aM as _e,aN as Le,b7 as rt,aP as L,u as q,T as W,au as H,a1 as z,n as E,P as w,Z as U,bl as K,c1 as Y,gl as Ae,aC as O,t as N,aY as ot,bA as at,B as T,fq as nt,a8 as it,aa as lt,X as ct,Y as dt,G as Oe,aT as We,aV as X,gm as Pe,e_ as ut,gn as pt,a as ue,a0 as ft,$ as mt}from"./index-D0ZDnsBw.js";import{d as me}from"./Add-DEc5Gaew.js";import{S as se}from"./index-BEaq4bck.js";import{d as oe}from"./EditIcon-BzYFGdY2.js";import{d as ht}from"./LockIcon-CnRKDzuV.js";import{L as he,S as ge,d as gt}from"./list-header-C4fW2U4a.js";import{u as Z}from"./dashboard-CMafJ63y.js";import{w as G,P as we}from"./permission-CRpG3m7P.js";import{C as xe}from"./confirm-CDYYkoPB.js";import{T as A,F as Me}from"./TextField-DNDZQTge.js";import{I as Ee}from"./InputLabel-DlIX2kte.js";import{g as xt}from"./ButtonGroup-DU8AIwgk.js";import{O as Ge}from"./Select-BJHtvl4z.js";import{D as yt}from"./DialogContentText-KJ1VziGc.js";import{A as vt}from"./Alert-CupQqU2h.js";import{f as Q}from"./format-error-B-leFeoI.js";import{F as jt}from"./FormControlLabel-DsxW3p6G.js";import{C as Ct}from"./MoreVert-pbCfz7_a.js";import{C as bt}from"./Google-CiCa62KH.js";import{E as ye}from"./index-ximM9jK2.js";import{W as qe}from"./did-address-DvBIH5D8.js";import{T as Tt}from"./index-DO83-4pr.js";import{_ as St}from"./useSetState-7DwsrT08.js";import{I as Bt}from"./InputAdornment-vYojJBmt.js";import"./ExpandMore-BW_GpjfP.js";import"./Search-RYv9IOCL.js";import"./index-YhmyCsjd.js";import"./useLocalStorage-Aaw2jy7u.js";import"./Delete-CghY174I.js";import"./PlayArrow-DUPHdx2w.js";import"./RadioGroup-BFz6MuWT.js";import"./FormGroup-COgg0lwB.js";import"./useFormControl-CXaDIKmg.js";import"./Avatar-DdU9cWoa.js";import"./useSlot-CDeXSS5P.js";import"./session-BT3UDuRe.js";import"./Link-BSkaanak.js";import"./fallback-C9ko-lGM.js";import"./index-C-yt1SFf.js";import"./Menu-DAx78rf8.js";import"./Toolbar-Czbh9Thi.js";import"./Hidden-BnLj1Yrh.js";import"./index-CbJ7Ycw4.js";import"./ListItemButton-D3vwOyXA.js";import"./selector-Ckqt3gtd.js";import"./deprecate-BG-RqYhQ.js";import"./useAsync-DOpY0MTF.js";import"./FormControl-y2eP2gzP.js";import"./Stack-CzT1qtfF.js";function Pt(t){return $e("MuiToggleButton",t)}const V=ke("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),He=v.createContext({}),Ue=v.createContext(void 0);function wt(t,l){return l===void 0||t===void 0?!1:Array.isArray(l)?l.indexOf(t)>=0:t===l}const Ft=["value"],It=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Dt=t=>{const{classes:l,fullWidth:i,selected:u,disabled:f,size:d,color:h}=t,s={root:["root",u&&"selected",f&&"disabled",i&&"fullWidth",`size${re(d)}`,h]};return Le(s,Pt,l)},Rt=ze(tt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,l)=>{const{ownerState:i}=t;return[l.root,l[`size${re(i.size)}`]]}})(({theme:t,ownerState:l})=>{let i=l.color==="standard"?t.palette.text.primary:t.palette[l.color].main,u;return t.vars&&(i=l.color==="standard"?t.vars.palette.text.primary:t.vars.palette[l.color].main,u=l.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[l.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},l.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:te(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:i,backgroundColor:t.vars?`rgba(${u} / ${t.vars.palette.action.selectedOpacity})`:te(i,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${u} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:te(i,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${u} / ${t.vars.palette.action.selectedOpacity})`:te(i,t.palette.action.selectedOpacity)}}}},l.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},l.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),J=v.forwardRef(function(l,i){const u=v.useContext(He),{value:f}=u,d=pe(u,Ft),h=v.useContext(Ue),s=st(M({},d,{selected:wt(l.value,f)}),l),p=Ne({props:s,name:"MuiToggleButton"}),{children:o,className:n,color:r="standard",disabled:a=!1,disableFocusRipple:c=!1,fullWidth:j=!1,onChange:x,onClick:m,selected:C,size:g="medium",value:b}=p,y=pe(p,It),B=M({},p,{color:r,disabled:a,disableFocusRipple:c,fullWidth:j,size:g}),F=Dt(B),R=P=>{m&&(m(P,b),P.defaultPrevented)||x&&x(P,b)},S=h||"";return e.jsx(Rt,M({className:_e(d.className,F.root,n,S),disabled:a,focusRipple:!c,ref:i,onClick:R,onChange:x,value:b,ownerState:B,"aria-pressed":C},y,{children:o}))});function kt(t){return $e("MuiToggleButtonGroup",t)}const D=ke("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),$t=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],zt=t=>{const{classes:l,orientation:i,fullWidth:u,disabled:f}=t,d={root:["root",i==="vertical"&&"vertical",u&&"fullWidth"],grouped:["grouped",`grouped${re(i)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Le(d,kt,l)},Nt=ze("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,l)=>{const{ownerState:i}=t;return[{[`& .${D.grouped}`]:l.grouped},{[`& .${D.grouped}`]:l[`grouped${re(i.orientation)}`]},{[`& .${D.firstButton}`]:l.firstButton},{[`& .${D.lastButton}`]:l.lastButton},{[`& .${D.middleButton}`]:l.middleButton},l.root,i.orientation==="vertical"&&l.vertical,i.fullWidth&&l.fullWidth]}})(({ownerState:t,theme:l})=>M({display:"inline-flex",borderRadius:(l.vars||l).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${D.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${D.selected} + .${D.grouped}.${D.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${D.selected} + .${D.grouped}.${D.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${D.firstButton},& .${D.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${D.lastButton},& .${D.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${D.firstButton},& .${D.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${D.lastButton},& .${D.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${D.lastButton}.${V.disabled},& .${D.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${D.lastButton}.${V.disabled},& .${D.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),Ve=v.forwardRef(function(l,i){const u=Ne({props:l,name:"MuiToggleButtonGroup"}),{children:f,className:d,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:n,orientation:r="horizontal",size:a="medium",value:c}=u,j=pe(u,$t),x=M({},u,{disabled:s,fullWidth:o,orientation:r,size:a}),m=zt(x),C=v.useCallback((R,S)=>{if(!n)return;const P=c&&c.indexOf(S);let _;c&&P>=0?(_=c.slice(),_.splice(P,1)):_=c?c.concat(S):[S],n(R,_)},[n,c]),g=v.useCallback((R,S)=>{n&&n(R,c===S?null:S)},[n,c]),b=v.useMemo(()=>({className:m.grouped,onChange:p?g:C,value:c,size:a,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,C,c,a,o,h,s]),y=xt(f),B=y.length,F=R=>{const S=R===0,P=R===B-1;return S&&P?"":S?m.firstButton:P?m.lastButton:m.middleButton};return e.jsx(Nt,M({role:"group",className:_e(m.root,d),ref:i,ownerState:x},j,{children:e.jsx(He.Provider,{value:b,children:y.map((R,S)=>e.jsx(Ue.Provider,{value:F(S),children:R},S))})}))});var ve={};Object.defineProperty(ve,"__esModule",{value:!0});var ee=ve.default=void 0;_t(v);var Fe=e;function _t(t){return t&&t.__esModule?t:{default:t}}function Ie(t,l){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);l&&(u=u.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),i.push.apply(i,u)}return i}function De(t){for(var l=1;l<arguments.length;l++){var i=arguments[l]!=null?arguments[l]:{};l%2?Ie(Object(i),!0).forEach(function(u){Lt(t,u,i[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ie(Object(i)).forEach(function(u){Object.defineProperty(t,u,Object.getOwnPropertyDescriptor(i,u))})}return t}function Lt(t,l,i){return(l=At(l))in t?Object.defineProperty(t,l,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[l]=i,t}function At(t){var l=Ot(t,"string");return typeof l=="symbol"?l:l+""}function Ot(t,l){if(typeof t!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var u=i.call(t,l||"default");if(typeof u!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(t)}var je=function(l){return(0,Fe.jsx)("svg",De(De({},l),{},{children:(0,Fe.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};je.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};je.displayName="delete";ee=ve.default=je;var Ke={exports:{}},Ye={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l={rotl:function(i,u){return i<<u|i>>>32-u},rotr:function(i,u){return i<<32-u|i>>>u},endian:function(i){if(i.constructor==Number)return l.rotl(i,8)&16711935|l.rotl(i,24)&4278255360;for(var u=0;u<i.length;u++)i[u]=l.endian(i[u]);return i},randomBytes:function(i){for(var u=[];i>0;i--)u.push(Math.floor(Math.random()*256));return u},bytesToWords:function(i){for(var u=[],f=0,d=0;f<i.length;f++,d+=8)u[d>>>5]|=i[f]<<24-d%32;return u},wordsToBytes:function(i){for(var u=[],f=0;f<i.length*32;f+=8)u.push(i[f>>>5]>>>24-f%32&255);return u},bytesToHex:function(i){for(var u=[],f=0;f<i.length;f++)u.push((i[f]>>>4).toString(16)),u.push((i[f]&15).toString(16));return u.join("")},hexToBytes:function(i){for(var u=[],f=0;f<i.length;f+=2)u.push(parseInt(i.substr(f,2),16));return u},bytesToBase64:function(i){for(var u=[],f=0;f<i.length;f+=3)for(var d=i[f]<<16|i[f+1]<<8|i[f+2],h=0;h<4;h++)f*8+h*6<=i.length*8?u.push(t.charAt(d>>>6*(3-h)&63)):u.push("=");return u.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var u=[],f=0,d=0;f<i.length;d=++f%4)d!=0&&u.push((t.indexOf(i.charAt(f-1))&Math.pow(2,-2*d+8)-1)<<d*2|t.indexOf(i.charAt(f))>>>6-d*2);return u}};Ye.exports=l})();var Wt=Ye.exports,fe={utf8:{stringToBytes:function(t){return fe.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(fe.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var l=[],i=0;i<t.length;i++)l.push(t.charCodeAt(i)&255);return l},bytesToString:function(t){for(var l=[],i=0;i<t.length;i++)l.push(String.fromCharCode(t[i]));return l.join("")}}},Re=fe;/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1 +1 @@
1
- import{ig as Ne,c as b,w as Pe,cG as Je,r as g,j as e,T as C,au as ze,a1 as Q,n as L,e_ as Ze,cC as N,aY as P,aP as J,bX as je,t as k,aa as H,u as U,P as f,f1 as Qe,c3 as ae,fv as He,K as ne,Z as Ke,a0 as Ve,ip as Ge,B as D,X as re,Y as ie,aT as Y,fu as Xe,b as Ye,aR as We,G as O,bg as X,a as qe,iq as _e,C as $e,bH as et}from"./index-BowU-Rc8.js";import{S as xe}from"./index-BHRFloRH.js";import{a as Ae,e as ye,u as tt,g as st,b as se,S as ot}from"./index-BFsNvHHz.js";import{i as at}from"./index-D0Foc0Tz.js";import{D as nt}from"./DialogContentText-BECZzyeS.js";import{T as rt}from"./TextField-CVbbJh-y.js";import"./api-noKs5rUY.js";import{a as Ce,u as it}from"./use-blocklet-info-for-connect-did-spaces-BWR6SXSQ.js";import{b as ct,h as lt,d as _,e as dt,i as pt,j as ut,k as mt,l as ht}from"./spaces-BcZSz_wm.js";import{f as $}from"./format-error-BvNwPRch.js";import{I as ft}from"./index-BAsIkYmI.js";import{d as gt}from"./MoreHoriz-Cwgb_ZWA.js";import{d as xt}from"./DeleteOutline-BrrioL98.js";import{L as W,a as q}from"./Delete-P7WqUbyQ.js";import{T as oe}from"./index-D5jbzTmg.js";import{D as St}from"./index-B6rU6yZ1.js";import{d as jt}from"./HelpOutline-It0-5Kn2.js";import{L as At}from"./Link-BLv1ybKR.js";import{S as yt}from"./switch-control-C-X_dl1C.js";import{S as Ct}from"./Stack-CcM0sATd.js";import{G as Se}from"./Grid-BArO7d1G.js";import"./ExpandMore-BjFaf3Fo.js";import"./ButtonGroup-CFQqy_jV.js";import"./CloseOutlined-KF-hdrv3.js";import"./FormControl-B9P20sHZ.js";import"./useFormControl-CqDUGVwx.js";import"./InputLabel-FW_WnrBG.js";import"./Select-DN5ZDrhq.js";import"./useThemeProps-BVeww5NE.js";import"./emotion-cache.browser.esm-CRw46sQ7.js";import"./index-BZKKn0ch.js";import"./redux-CJ8S87pk.js";import"./MoreVert-6z9sYyBh.js";import"./FormControlLabel-C2tfmf09.js";import"./ViewColumn-cHwmzgaQ.js";import"./FormGroup-QeEOGRIO.js";import"./index-B61Zk4zc.js";import"./LastPage-BbNDF-1B.js";import"./Toolbar-DMWwm961.js";import"./Search-Bm4BV5ff.js";import"./index-CDo-yvx8.js";import"./index-LmZHdjQZ.js";async function Bt(t,o={timeout:3e4,withSearchParams:!0}){var d;if(!Ne(t))throw new Error(`url(${t}) must be a string`);const n=t.startsWith("http")?t:`https://${t}`,s=new URL(n),{data:i}=await Ae.get(b(s.origin,"/__blocklet__.js?type=json"),{timeout:o.timeout}),a=(d=i.componentMountPoints.findLast(u=>u.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"))==null?void 0:d.mountPoint;if(!a)throw new Error(`MountPoint(${a}) not found`);const r=b(s.origin,a);return o.withSearchParams&&s.searchParams.get("spaceDid")?Pe(r,{spaceDid:s.searchParams.get("spaceDid")}):r}async function kt(t){try{if(!at(t))return!1;const o=ye(t),n=b(o,"space/api/did/one-click-authorization/token"),{status:s,data:i}=await Ae.get(n,{timeout:5e3});return s===200&&Je(i)}catch(o){return console.error(o),!1}}function vt({style:t,onWalletConnect:o,onGatewayConnect:n,...s}){const{t:i}=tt(),[a,r]=g.useState(""),[c,d]=g.useState(!1),[u,x]=g.useState(!1),[p,m]=g.useState(""),v=async()=>{try{d(!0);const S=await Bt(a),T=ye(S),l=st(a);if(!Ze.isValid(l)||!await kt(T))throw new Error(i("storage.spaces.gateway.add.invalidUrl"));n==null||n({spaceDid:l,spaceGatewayUrl:T}),x(!1)}catch(S){console.error(S),m(S.message)}finally{d(!1)}},j=()=>{m(""),r(""),x(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{menu:[e.jsx(xe.Item,{sx:{textTransform:"none"},onClick:j,size:"small",...s,children:i("storage.spaces.connect.useSpaceGateway")},"1")],onClick:o,color:"primary",style:{textTransform:"none !important",fontSize:"1rem",...t},size:"small",...s,children:e.jsx(C,{sx:{fontWeight:"bold",textTransform:"none"},children:i("storage.spaces.connect.useWallet")})}),e.jsx(ze,{title:i("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:u,onClose:()=>x(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Q,{variant:"outlined",onClick:S=>{S.stopPropagation(),x(!1)},color:"inherit",children:i("common.cancel")}),e.jsxs(Q,{onClick:v,color:"primary",disabled:c||!a,variant:"contained",autoFocus:!0,children:[c&&e.jsx(L,{size:16}),i("common.confirm")]})]}),children:e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(nt,{component:"div",children:e.jsx(C,{component:"div",children:e.jsx(rt,{label:i("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:a,onChange:S=>{m(""),r(S.target.value)},disabled:c,error:!!p,helperText:p,onKeyDown:async S=>{S.key==="Enter"&&await v()},autoFocus:!0})})})})})]})}async function It({blockletDid:t,nodeApi:o,spaceGateways:n}){let s=!1;const i=await Promise.all(n.map(async a=>{let{name:r}=a;const c=await ct(a.endpoint);return!N.isEmpty(c)&&c!==r&&(r=c,s=!0),{...a,name:r}}));return s&&await Promise.all(i.filter(a=>a.did).map(a=>o.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),i}function Et({setLoading:t,refresh:o}={}){var c;const{blocklet:n}=P(),s=(c=n==null?void 0:n.meta)==null?void 0:c.did,[i,a]=g.useState([]),{api:r}=J();return je(async()=>{try{if(!s){a([]);return}t==null||t(!0);const{spaceGateways:d}=await r.getBlockletSpaceGateways({input:{did:s}}),u=await It({blockletDid:s,nodeApi:r,spaceGateways:d});a(u??[])}catch(d){console.error(d),k.error($(d))}finally{t==null||t(!1)}},[s,o]),{spaceGateways:i}}function Be({deps:t,setLoading:o}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=P(),[s,i]=g.useState([]),{api:a}=J(),r=N.debounce(async()=>{try{if(o(!0),!n){i([]);return}const{backups:d}=await a.getBlockletBackups({input:{did:n.meta.did}});i(d??[])}catch(d){console.error(d),k.error($(d))}finally{o(!1)}},2e3);return je(async()=>{r()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(t)),{backups:s}}function Dt({appDid:t}){const{backups:o}=Be(),[n,s]=g.useState({message:"",progress:0,completed:!1}),i=J(),{ws:{useSubscription:a}}=i;return a(H.BlockletEvents.backupProgress,r=>{t===(r==null?void 0:r.appDid)&&s(()=>({...r}))},[t]),g.useEffect(()=>{var r;if(o!=null&&o.length&&N.isNull((r=o[0])==null?void 0:r.status)){const[c]=o;s(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[o]),n}const ke=g.createContext({}),{Provider:Tt,Consumer:Us}=ke;function ce({children:t}){var V;const{t:o}=U(),{api:n}=J(),{blocklet:s}=P(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),{spaceGateways:d}=Et({refresh:r,setLoading:a}),u=Dt({appDid:s==null?void 0:s.appDid}),[x,p]=g.useState(!1),m=g.useMemo(()=>lt(s==null?void 0:s.environments),[s,r,x]),[v,j]=g.useState(!1),{backups:S}=Be({deps:[u],setLoading:j}),[T,l]=g.useState(d==null?void 0:d.find(h=>h.endpoint===m)),B=(V=s==null?void 0:s.settings)==null?void 0:V.autoBackup,A=()=>{c(h=>!h)},R=()=>{p(h=>!h)},w=async h=>{await n.updateAutoBackup({input:{did:s.meta.did,autoBackup:h}})},E=async(h,Z)=>{d.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:s.meta.did,spaceGateway:h}}),m!==Z&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Z}]}}),A(),l(h)},I=async h=>{h&&(h.endpoint===m&&(await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),B!=null&&B.enabled&&await w({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:s.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),A(),l(h))},F=async h=>{await n.updateBlockletSpaceGateway({input:{did:s.meta.did,where:{did:h.did},spaceGateway:h}}),m!==h.endpoint&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),k.success(o("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),A()},ee=h=>(h==null?void 0:h.endpoint)===m;return e.jsx(Tt,{value:{spaceGateways:d,selectedSpaceGateway:T,addSpaceGateway:E,deleteSpaceGateway:I,updateSpaceGateway:F,refreshSpaceGateways:A,spaceGatewaysLoading:i,spaceGatewayIsSelected:ee,updateAutoBackup:w,backupEndpoint:m,backupProgress:u,backups:S,backupsLoading:v,refreshBackupEndpoint:R,autoBackup:B},children:t})}ce.propTypes={children:f.any.isRequired};ce.defaultProps={};function z(){return g.useContext(ke)}function K({...t}){const{blocklet:o}=P(),{info:n}=J(),{t:s,locale:i}=U(),a=Ce({blocklet:o}),r=Qe(n),{spaceGateways:c,addSpaceGateway:d}=z(),[u,x]=g.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ae.create({baseURL:b(window.location.origin,He())}).get,messages:{title:s("storage.spaces.provideNFT.title",{appName:a.appName},i),scan:s("storage.spaces.provideNFT.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.provideNFT.success")})},onClose:()=>{x(l=>({...l,open:!1}))}}),[p,m]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:s("storage.spaces.authorize.title",{appName:a.appName},i),scan:s("storage.spaces.authorize.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.authorize.success")})},onClose:()=>{m(l=>({...l,open:!1}))}}),v=()=>{x(l=>({...l,open:!0,extraParams:{appPid:o.appPid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did}}))},j=({spaceDid:l,spaceGatewayUrl:B})=>{m(A=>({...A,open:!0,prefix:b(B,"space/api/did"),baseUrl:new URL(B).origin,checkFn:ae.create({baseURL:b(B,"space")}).get,extraParams:{appDid:a.appDid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did,spaceDid:l}}))},S=async({endpoint:l,name:B,did:A})=>{const R=await dt(l);if(!await pt(R)){k.error(s("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(I=>I.endpoint===l)){k.error(s("storage.spaces.gateway.add.duplicate",{name:B}));return}const E={name:B,did:A,url:R,endpoint:l};await d(E,l),k.success(s("storage.spaces.connectedWithName",{name:(E==null?void 0:E.name)??"DID Spaces"}))},T=async(l,B)=>{try{if(!N.isEmpty(l.spaceGateway))await S(B(l.spaceGateway));else{const A=B(l.endpoint),R=l.space?B(l.space):{};await S({endpoint:A,did:_(A),name:"DID Space",...R})}m(A=>({...A,open:!1})),x(A=>({...A,open:!1}))}catch(A){console.error(A),k.error($(A))}};return e.jsxs(e.Fragment,{children:[e.jsx(vt,{onWalletConnect:v,onGatewayConnect:j,...t}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:u.prefix,open:u.open,popup:!0,action:u.action,webWalletUrl:r,baseUrl:u.baseUrl,checkFn:u.checkFn,onSuccess:T,onClose:u.onClose,checkTimeout:u.checkTimeout,extraParams:u.extraParams,messages:u.messages,locale:i}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:p.prefix,open:p.open,popup:!0,action:p.action,baseUrl:p.baseUrl,checkFn:p.checkFn,onSuccess:T,onClose:p.onClose,checkTimeout:p.checkTimeout,extraParams:p.extraParams,messages:p.messages,locale:i})]})}K.propTypes={};K.defaultProps={};function ve({...t}){const{t:o}=g.useContext(Ve),{blocklet:n,loadingDiskInfo:s,actions:i}=P();if(g.useEffect(()=>{i.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),n.diskInfo){const a=(d,u,x)=>e.jsxs(C,{children:[d," ",e.jsx("strong",{children:u?Ge(u):"empty"})]}),r=n.environments.reduce((d,u)=>(d[u.key]=u.value,d),{}),c=[{key:"appDir",name:o("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:o("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:o("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:o("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Ut,{component:"div",...t,children:c.map(d=>e.jsx(ft,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.key))})}return s?e.jsx(L,{}):e.jsx(C,{children:o("blocklet.diskInfo.empty")})}const Ut=Ke(C)``;var Ie=function(o){return e.jsxs("svg",{...o,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn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UYId9lgeqCiJ/JAP+K37em+n0mcKzQjQWZNGFywCCCF+7J1+B4vr0gBhFB6S+89eO6chpzkyM8s0MdCgW7njgiikAKvGH0fRKr9cXmycUjU8xfeY87PIXB3q1TK2GWGjxhtr146ZKTKWPp9sR8MWBNzQTNNrIt4XCVHh+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};Ie.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ee(){const{t}=U();return e.jsxs(D,{children:[e.jsxs(D,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Ie,{style:{width:250,height:250}}),e.jsx(C,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(K,{})]}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}Ee.propTypes={};var le={},Rt=ie;Object.defineProperty(le,"__esModule",{value:!0});var De=le.default=void 0,wt=Rt(re()),bt=e;De=le.default=(0,wt.default)((0,bt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var de={},Ot=ie;Object.defineProperty(de,"__esModule",{value:!0});var Te=de.default=void 0,Lt=Ot(re()),Ft=e;Te=de.default=(0,Lt.default)((0,Ft.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var pe={},Mt=ie;Object.defineProperty(pe,"__esModule",{value:!0});var Ue=pe.default=void 0,Nt=Mt(re()),Pt=e;Ue=pe.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onConfirm:o,onCancel:n}){const{t:s}=U(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),d=(p,m)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),a(m)},u=async p=>{try{p==null||p.stopPropagation(),c(!0),await(o==null?void 0:o(t)),a(!1)}catch(m){console.error(m),k.error(`${s("storage.space.gateway.delete.failed")}: ${$(m)}`)}finally{a(!1),c(!1)}},x=p=>{d(p,!1),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsxs(Y,{color:"red",onClick:p=>d(p,!0),children:[e.jsx(W,{style:{minWidth:24,color:"red"},children:e.jsx(xt,{fontSize:"small"})}),e.jsx(q,{style:{color:"red"},children:s("common.delete")})]}),e.jsx(Xe,{title:s("storage.spaces.gateway.delete.title"),open:i,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:r}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined",loading:r}},onConfirm:u,onCancel:x,children:e.jsx(C,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}ue.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};ue.defaultProps={onConfirm:()=>{},onCancel:()=>{}};function me({spaceGateway:t,selected:o,onDelete:n,onConnect:s,enableSwitchToSpace:i,backupInProgress:a,...r}){const[c,d]=g.useState(null),{t:u}=U(),[x,p]=g.useState(!1),m=(j,S)=>{j.stopPropagation(),j.preventDefault(),d(S&&j.currentTarget)},v=async j=>{try{p(!0),m(j,!1),await s(t)}catch(S){console.error(S),k.error(S.message)}finally{p(!1)}};return e.jsxs(e.Fragment,{children:[x||t!=null&&t.loading?e.jsx(L,{size:"24px"}):e.jsx(Ye,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:j=>m(j,!0),...r,children:e.jsx(gt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:c,keepMounted:!0,open:!!c,onClose:j=>m(j,!1),children:[e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(t.endpoint?ut(t.endpoint):t.url)},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(De,{fontSize:"small"})}),e.jsx(q,{children:u("common.open")})]}),e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(mt(t.endpoint))},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Ue,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.strategy.viewBackupFiles")})]}),!o&&i&&e.jsxs(Y,{onClick:v,children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Te,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.connect.switchToSpace")})]}),!a&&e.jsx(ue,{spaceGateway:t,onConfirm:async()=>{d(null),await(n==null?void 0:n(t))},onCancel:()=>d(null)})]})]})}me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};me.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};function he({spaceGateway:t,spaceStatus:o,selected:n,onConnected:s,onDeleted:i,onBackedUp:a}){const{t:r,locale:c}=U(),{blocklet:d}=P(),{api:u,info:{did:x}}=J(),{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T}=Ce({blocklet:d}),{backupProgress:l,updateSpaceGateway:B,deleteSpaceGateway:A,refreshBackupEndpoint:R}=z(),[w,E]=g.useState(!1),[I,F]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:r("storage.spaces.authorize.title",{appName:m},c),scan:r("storage.spaces.authorize.scan",{appName:m},c),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:r("storage.spaces.authorize.success")})},onClose:()=>{F(y=>({...y,open:!1}))}}),ee=n&&!w&&o===se.DISCONNECTED,V=n&&!w&&!t.loading&&o===se.CONNECTED,h=n&&w&&o===se.CONNECTED,Z=async()=>{try{if(await ht(t==null?void 0:t.endpoint)){await u.configBlocklet({input:{did:[d.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),R(),k.success(r("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),s==null||s(null,t);return}}catch(y){console.error(y),s==null||s(y,t);return}F(y=>({...y,open:!0,prefix:b(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ae.create({baseURL:b(t.url,"space")}).get,extraParams:{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T,nodeDid:x,spaceDid:t.did}}))},be=async(y,fe)=>{const te=fe(y.endpoint),Fe=_(te),M=y.space?fe(y.space):{};if(t.did&&Fe!==t.did){F(Me=>({...Me,open:!1}));const G=r("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""});k.error(G),s==null||s(new Error(G),t);return}const ge={...t,name:M.name??"DID Space",did:M.did??_(te),endpoint:te};await B(ge),F(G=>({...G,open:!1})),s==null||s(null,ge)},Oe=async()=>{try{if(w)return;E(!0),await u.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(y){console.error(y),k.error(y.message),a==null||a(y,t)}finally{E(!0)}},Le=async()=>{try{await A(t),k.success(r("storage.spaces.gateway.delete.succeeded",{name:`(${t.name})`})),i==null||i(null,t)}catch(y){console.error(y),i==null||i(y,t)}};return g.useEffect(()=>{l!=null&&l.completed?(n&&((l==null?void 0:l.progress)===100?(k.success(r("storage.spaces.backupSuccessfully")),a==null||a(null,t)):l.message&&(a==null||a(new Error(l==null?void 0:l.message),t)),l.progress=0,l.message=""),E(!1)):l.progress&&E(!0)},[l]),e.jsxs(e.Fragment,{children:[e.jsxs(D,{sx:{".action-btn":{borderRadius:1,marginLeft:1}},display:"flex",alignItems:"center",children:[V&&e.jsx(Q,{className:"action-btn",variant:"outlined",size:"small",onClick:Oe,children:r("storage.spaces.strategy.backupNow")}),ee&&e.jsx(Q,{className:"action-btn",color:"error",variant:"outlined",size:"small",onClick:Z,children:r("storage.spaces.disconnected.reconnectNow")}),h&&e.jsxs(Q,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:l==null?void 0:l.progress,size:14,sx:{mr:1}}),l==null?void 0:l.progress,"%"]}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:be,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:c},"get-endpoint")]}),e.jsx(me,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:Le,onConnect:Z,enableSwitchToSpace:(l==null?void 0:l.completed)||N.isEmpty(l==null?void 0:l.message),backupInProgress:h})]})}he.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};he.defaultProps={onConnected:()=>{},onDeleted:()=>{},onBackedUp:()=>{}};function Re({...t}){const{t:o,locale:n}=U(),{spaceGateways:s,backups:i}=z(),a=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:r=>{var j;const{targetUrl:c,targetName:d,status:u,createdAt:x}=i[r],p=u===O.BACKUPS.STATUS.PROGRESS&&X().diff(x,"hours")>=O.BACKUPS.TIMEOUT_HOURS,m=u===O.BACKUPS.STATUS.SUCCEEDED&&!p,v=d||((j=s.find(S=>c==null?void 0:c.includes(_(S==null?void 0:S.endpoint))))==null?void 0:j.name)||"Unknown DID Space";return m?e.jsx(At,{fontSize:"16px",href:c,target:"_blank",children:v}):e.jsx(C,{variant:"body1",fontSize:"16px",children:v})}}},{label:o("common.strategy"),name:"strategy",options:{customBodyRender:r=>{const c=o(r===0?"common.auto":"common.manual");return e.jsx(oe,{children:c})}}},{label:o("common.startTime"),name:"createdAt",options:{customBodyRender:r=>X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.endTime"),name:"updatedAt",options:{customBodyRender:r=>N.isEmpty(r)?"":X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.status"),name:"status",options:{customBodyRenderLite:r=>{const{status:c,message:d,createdAt:u}=(i==null?void 0:i[r])??{},x=c===O.BACKUPS.STATUS.PROGRESS&&X().diff(u,"hours")>=O.BACKUPS.TIMEOUT_HOURS,p=x&&o("common.timeoutError"),m=c===O.BACKUPS.STATUS.PROGRESS&&!x,v=c===O.BACKUPS.STATUS.SUCCEEDED&&!x;return m?e.jsxs(C,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):v?e.jsx(oe,{type:"success",children:o("common.succeeded")}):e.jsxs(D,{display:"inline-flex",alignItems:"center",children:[e.jsx(oe,{type:"error",children:o("common.failed")}),"  ",e.jsx(qe,{style:{display:"flex",alignItems:"center",flexShrink:0},title:d||p,children:e.jsx(_e,{children:e.jsx(jt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(D,{...t,children:i!=null&&i.length?e.jsx(St,{title:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")}),data:i,columns:a,emptyNode:o("storage.spaces.record.emptyData",n),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(D,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")})}),e.jsx(D,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:o("storage.spaces.record.emptyData")})]})})}Re.propTypes={};function we({...t}){const{t:o}=U(),{autoBackup:n,updateAutoBackup:s}=z(),i=async()=>{try{const a=!(n!=null&&n.enabled);await s({enabled:a}),k.success(o(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){k.error(a.message)}};return e.jsx(yt,{checked:!!(n!=null&&n.enabled),onChange:i,name:"enableWelcomePage",labelProps:{label:e.jsx(C,{marginRight:"8px",children:e.jsx("span",{children:o("storage.spaces.autoBackup.title")})})},style:{...t.style}})}we.propTypes={};function Jt(){const{t}=U(),o=it(),{spaceGateways:n,spaceGatewaysLoading:s,spaceGatewayIsSelected:i}=z(),a=s&&!(n!=null&&n.length),r=({spaceGateway:c,spaceStatus:d,selected:u,refresh:x})=>e.jsx(he,{spaceGateway:c,spaceStatus:d,selected:u,onConnected:()=>x(),onBackedUp:p=>p&&x()});return e.jsxs(D,{display:"flex",flexDirection:"column",children:[e.jsxs(Ct,{spacing:o?1:4,direction:o?"column":"row",alignItems:o?"space-between":"center",justifyContent:o?"center":"space-between",marginBottom:"12px",children:[e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(we,{}),o?e.jsx(K,{sx:{width:"100%","& button:first-of-type":{width:"100%"}}}):e.jsx(K,{})]}),e.jsx(D,{children:a?e.jsx(D,{display:"flex",justifyContent:"center",children:e.jsx(L,{})}):e.jsx(Se,{container:!0,spacing:1,children:e.jsx(e.Fragment,{children:n.map(c=>e.jsx(Se,{item:!0,xs:12,md:6,children:e.jsx(ot,{sx:{marginTop:"12px","&.selected":{borderColor:"primary.main"}},endpoint:c.endpoint,selected:i(c),action:r},c.endpoint)}))})})}),e.jsx(Re,{sx:{marginTop:"24px"}}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}function zt(){const{spaceGatewaysLoading:t,spaceGateways:o}=z();return t?e.jsx($e,{relative:"parent",children:e.jsx(L,{})}):et(o)?e.jsx(Ee,{}):e.jsx(Jt,{})}function Rs(){return e.jsx(ce,{children:e.jsx(zt,{})})}export{Rs as default};
1
+ import{ig as Ne,c as b,w as Pe,cG as Je,r as g,j as e,T as C,au as ze,a1 as Q,n as L,e_ as Ze,cC as N,aY as P,aP as J,bX as je,t as k,aa as H,u as U,P as f,f1 as Qe,c3 as ae,fv as He,K as ne,Z as Ke,a0 as Ve,ip as Ge,B as D,X as re,Y as ie,aT as Y,fu as Xe,b as Ye,aR as We,G as O,bg as X,a as qe,iq as _e,C as $e,bH as et}from"./index-D0ZDnsBw.js";import{S as xe}from"./index-BEaq4bck.js";import{a as Ae,e as ye,u as tt,g as st,b as se,S as ot}from"./index-BB2DzNFr.js";import{i as at}from"./index-yjZBmDn6.js";import{D as nt}from"./DialogContentText-KJ1VziGc.js";import{T as rt}from"./TextField-DNDZQTge.js";import"./api-DLSmmaM3.js";import{a as Ce,u as it}from"./use-blocklet-info-for-connect-did-spaces-CCqkRF8J.js";import{b as ct,h as lt,d as _,e as dt,i as pt,j as ut,k as mt,l as ht}from"./spaces-CUv_J9P5.js";import{f as $}from"./format-error-B-leFeoI.js";import{I as ft}from"./index-DQGd2MHm.js";import{d as gt}from"./MoreHoriz-Cix-ucsf.js";import{d as xt}from"./DeleteOutline-DTzpYuUU.js";import{L as W,a as q}from"./Delete-CghY174I.js";import{T as oe}from"./index-DO83-4pr.js";import{D as St}from"./index-BSHqUvvB.js";import{d as jt}from"./HelpOutline-X7u3GlNb.js";import{L as At}from"./Link-BSkaanak.js";import{S as yt}from"./switch-control-o6-nZs-T.js";import{S as Ct}from"./Stack-CzT1qtfF.js";import{G as Se}from"./Grid-Dne3bmfg.js";import"./ExpandMore-BW_GpjfP.js";import"./ButtonGroup-DU8AIwgk.js";import"./CloseOutlined-C_enpVct.js";import"./FormControl-y2eP2gzP.js";import"./useFormControl-CXaDIKmg.js";import"./InputLabel-DlIX2kte.js";import"./Select-BJHtvl4z.js";import"./useThemeProps-CBbxmVEG.js";import"./emotion-cache.browser.esm-BjIoAnXy.js";import"./index-CIO5rH3U.js";import"./redux-Ca86ARNo.js";import"./MoreVert-pbCfz7_a.js";import"./FormControlLabel-DsxW3p6G.js";import"./ViewColumn-adtX8zvr.js";import"./FormGroup-COgg0lwB.js";import"./index-YhmyCsjd.js";import"./LastPage-BAT94flJ.js";import"./Toolbar-Czbh9Thi.js";import"./Search-RYv9IOCL.js";import"./index-ximM9jK2.js";import"./index-DUvxK_pJ.js";async function Bt(t,o={timeout:3e4,withSearchParams:!0}){var d;if(!Ne(t))throw new Error(`url(${t}) must be a string`);const n=t.startsWith("http")?t:`https://${t}`,s=new URL(n),{data:i}=await Ae.get(b(s.origin,"/__blocklet__.js?type=json"),{timeout:o.timeout}),a=(d=i.componentMountPoints.findLast(u=>u.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf"))==null?void 0:d.mountPoint;if(!a)throw new Error(`MountPoint(${a}) not found`);const r=b(s.origin,a);return o.withSearchParams&&s.searchParams.get("spaceDid")?Pe(r,{spaceDid:s.searchParams.get("spaceDid")}):r}async function kt(t){try{if(!at(t))return!1;const o=ye(t),n=b(o,"space/api/did/one-click-authorization/token"),{status:s,data:i}=await Ae.get(n,{timeout:5e3});return s===200&&Je(i)}catch(o){return console.error(o),!1}}function vt({style:t,onWalletConnect:o,onGatewayConnect:n,...s}){const{t:i}=tt(),[a,r]=g.useState(""),[c,d]=g.useState(!1),[u,x]=g.useState(!1),[p,m]=g.useState(""),v=async()=>{try{d(!0);const S=await Bt(a),T=ye(S),l=st(a);if(!Ze.isValid(l)||!await kt(T))throw new Error(i("storage.spaces.gateway.add.invalidUrl"));n==null||n({spaceDid:l,spaceGatewayUrl:T}),x(!1)}catch(S){console.error(S),m(S.message)}finally{d(!1)}},j=()=>{m(""),r(""),x(!0)};return e.jsxs(e.Fragment,{children:[e.jsx(xe,{menu:[e.jsx(xe.Item,{sx:{textTransform:"none"},onClick:j,size:"small",...s,children:i("storage.spaces.connect.useSpaceGateway")},"1")],onClick:o,color:"primary",style:{textTransform:"none !important",fontSize:"1rem",...t},size:"small",...s,children:e.jsx(C,{sx:{fontWeight:"bold",textTransform:"none"},children:i("storage.spaces.connect.useWallet")})}),e.jsx(ze,{title:i("storage.spaces.gateway.add.title"),fullWidth:!0,maxWidth:"md",open:u,onClose:()=>x(!1),PaperProps:{style:{minHeight:"auto"}},actions:e.jsxs(e.Fragment,{children:[e.jsx(Q,{variant:"outlined",onClick:S=>{S.stopPropagation(),x(!1)},color:"inherit",children:i("common.cancel")}),e.jsxs(Q,{onClick:v,color:"primary",disabled:c||!a,variant:"contained",autoFocus:!0,children:[c&&e.jsx(L,{size:16}),i("common.confirm")]})]}),children:e.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:e.jsx(nt,{component:"div",children:e.jsx(C,{component:"div",children:e.jsx(rt,{label:i("storage.spaces.gateway.add.label"),autoComplete:"off",variant:"outlined",name:"url",fullWidth:!0,value:a,onChange:S=>{m(""),r(S.target.value)},disabled:c,error:!!p,helperText:p,onKeyDown:async S=>{S.key==="Enter"&&await v()},autoFocus:!0})})})})})]})}async function It({blockletDid:t,nodeApi:o,spaceGateways:n}){let s=!1;const i=await Promise.all(n.map(async a=>{let{name:r}=a;const c=await ct(a.endpoint);return!N.isEmpty(c)&&c!==r&&(r=c,s=!0),{...a,name:r}}));return s&&await Promise.all(i.filter(a=>a.did).map(a=>o.updateBlockletSpaceGateway({input:{did:t,where:{did:a.did},spaceGateway:{...a}}}))),i}function Et({setLoading:t,refresh:o}={}){var c;const{blocklet:n}=P(),s=(c=n==null?void 0:n.meta)==null?void 0:c.did,[i,a]=g.useState([]),{api:r}=J();return je(async()=>{try{if(!s){a([]);return}t==null||t(!0);const{spaceGateways:d}=await r.getBlockletSpaceGateways({input:{did:s}}),u=await It({blockletDid:s,nodeApi:r,spaceGateways:d});a(u??[])}catch(d){console.error(d),k.error($(d))}finally{t==null||t(!1)}},[s,o]),{spaceGateways:i}}function Be({deps:t,setLoading:o}={deps:[],setLoading:()=>{}}){var c;const{blocklet:n}=P(),[s,i]=g.useState([]),{api:a}=J(),r=N.debounce(async()=>{try{if(o(!0),!n){i([]);return}const{backups:d}=await a.getBlockletBackups({input:{did:n.meta.did}});i(d??[])}catch(d){console.error(d),k.error($(d))}finally{o(!1)}},2e3);return je(async()=>{r()},[(c=n==null?void 0:n.meta)==null?void 0:c.did].concat(t)),{backups:s}}function Dt({appDid:t}){const{backups:o}=Be(),[n,s]=g.useState({message:"",progress:0,completed:!1}),i=J(),{ws:{useSubscription:a}}=i;return a(H.BlockletEvents.backupProgress,r=>{t===(r==null?void 0:r.appDid)&&s(()=>({...r}))},[t]),g.useEffect(()=>{var r;if(o!=null&&o.length&&N.isNull((r=o[0])==null?void 0:r.status)){const[c]=o;s(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[o]),n}const ke=g.createContext({}),{Provider:Tt,Consumer:Us}=ke;function ce({children:t}){var V;const{t:o}=U(),{api:n}=J(),{blocklet:s}=P(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),{spaceGateways:d}=Et({refresh:r,setLoading:a}),u=Dt({appDid:s==null?void 0:s.appDid}),[x,p]=g.useState(!1),m=g.useMemo(()=>lt(s==null?void 0:s.environments),[s,r,x]),[v,j]=g.useState(!1),{backups:S}=Be({deps:[u],setLoading:j}),[T,l]=g.useState(d==null?void 0:d.find(h=>h.endpoint===m)),B=(V=s==null?void 0:s.settings)==null?void 0:V.autoBackup,A=()=>{c(h=>!h)},R=()=>{p(h=>!h)},w=async h=>{await n.updateAutoBackup({input:{did:s.meta.did,autoBackup:h}})},E=async(h,Z)=>{d.push({...h,loading:!0}),await n.addBlockletSpaceGateway({input:{did:s.meta.did,spaceGateway:h}}),m!==Z&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:Z}]}}),A(),l(h)},I=async h=>{h&&(h.endpoint===m&&(await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),B!=null&&B.enabled&&await w({enabled:!1})),await n.deleteBlockletSpaceGateway({input:{did:s.meta.did,spaceGatewayDid:h==null?void 0:h.did}}),A(),l(h))},F=async h=>{await n.updateBlockletSpaceGateway({input:{did:s.meta.did,where:{did:h.did},spaceGateway:h}}),m!==h.endpoint&&await n.configBlocklet({input:{did:[s.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:h.endpoint}]}}),k.success(o("storage.spaces.connectedWithName",{name:(h==null?void 0:h.name)??"DID Spaces"})),A()},ee=h=>(h==null?void 0:h.endpoint)===m;return e.jsx(Tt,{value:{spaceGateways:d,selectedSpaceGateway:T,addSpaceGateway:E,deleteSpaceGateway:I,updateSpaceGateway:F,refreshSpaceGateways:A,spaceGatewaysLoading:i,spaceGatewayIsSelected:ee,updateAutoBackup:w,backupEndpoint:m,backupProgress:u,backups:S,backupsLoading:v,refreshBackupEndpoint:R,autoBackup:B},children:t})}ce.propTypes={children:f.any.isRequired};ce.defaultProps={};function z(){return g.useContext(ke)}function K({...t}){const{blocklet:o}=P(),{info:n}=J(),{t:s,locale:i}=U(),a=Ce({blocklet:o}),r=Qe(n),{spaceGateways:c,addSpaceGateway:d}=z(),[u,x]=g.useState({open:!1,action:"connect-to-did-spaces",checkTimeout:1e3*300,checkFn:ae.create({baseURL:b(window.location.origin,He())}).get,messages:{title:s("storage.spaces.provideNFT.title",{appName:a.appName},i),scan:s("storage.spaces.provideNFT.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.provideNFT.success")})},onClose:()=>{x(l=>({...l,open:!1}))}}),[p,m]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:s("storage.spaces.authorize.title",{appName:a.appName},i),scan:s("storage.spaces.authorize.scan",{appName:a.appName},i),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:s("storage.spaces.authorize.success")})},onClose:()=>{m(l=>({...l,open:!1}))}}),v=()=>{x(l=>({...l,open:!0,extraParams:{appPid:o.appPid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did}}))},j=({spaceDid:l,spaceGatewayUrl:B})=>{m(A=>({...A,open:!0,prefix:b(B,"space/api/did"),baseUrl:new URL(B).origin,checkFn:ae.create({baseURL:b(B,"space")}).get,extraParams:{appDid:a.appDid,appName:a.appName,appDescription:a.appDescription,scopes:a.scopes,appUrl:a.appUrl,referrer:a.referrer,nodeDid:n.did,spaceDid:l}}))},S=async({endpoint:l,name:B,did:A})=>{const R=await dt(l);if(!await pt(R)){k.error(s("storage.spaces.gateway.add.invalidUrl"));return}if(c.some(I=>I.endpoint===l)){k.error(s("storage.spaces.gateway.add.duplicate",{name:B}));return}const E={name:B,did:A,url:R,endpoint:l};await d(E,l),k.success(s("storage.spaces.connectedWithName",{name:(E==null?void 0:E.name)??"DID Spaces"}))},T=async(l,B)=>{try{if(!N.isEmpty(l.spaceGateway))await S(B(l.spaceGateway));else{const A=B(l.endpoint),R=l.space?B(l.space):{};await S({endpoint:A,did:_(A),name:"DID Space",...R})}m(A=>({...A,open:!1})),x(A=>({...A,open:!1}))}catch(A){console.error(A),k.error($(A))}};return e.jsxs(e.Fragment,{children:[e.jsx(vt,{onWalletConnect:v,onGatewayConnect:j,...t}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:u.prefix,open:u.open,popup:!0,action:u.action,webWalletUrl:r,baseUrl:u.baseUrl,checkFn:u.checkFn,onSuccess:T,onClose:u.onClose,checkTimeout:u.checkTimeout,extraParams:u.extraParams,messages:u.messages,locale:i}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:p.prefix,open:p.open,popup:!0,action:p.action,baseUrl:p.baseUrl,checkFn:p.checkFn,onSuccess:T,onClose:p.onClose,checkTimeout:p.checkTimeout,extraParams:p.extraParams,messages:p.messages,locale:i})]})}K.propTypes={};K.defaultProps={};function ve({...t}){const{t:o}=g.useContext(Ve),{blocklet:n,loadingDiskInfo:s,actions:i}=P();if(g.useEffect(()=>{i.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),n.diskInfo){const a=(d,u,x)=>e.jsxs(C,{children:[d," ",e.jsx("strong",{children:u?Ge(u):"empty"})]}),r=n.environments.reduce((d,u)=>(d[u.key]=u.value,d),{}),c=[{key:"appDir",name:o("blocklet.diskInfo.appDir"),value:a(r.BLOCKLET_APP_DIR,n.diskInfo.app)},{key:"dataDir",name:o("blocklet.diskInfo.dataDir"),value:a(r.BLOCKLET_DATA_DIR,n.diskInfo.data)},{key:"logDir",name:o("blocklet.diskInfo.logDir"),value:a(r.BLOCKLET_LOG_DIR,n.diskInfo.log)},{key:"cacheDir",name:o("blocklet.diskInfo.cacheDir"),value:a(r.BLOCKLET_CACHE_DIR,n.diskInfo.cache)}];return e.jsx(Ut,{component:"div",...t,children:c.map(d=>e.jsx(ft,{valueComponent:"div",nameWidth:120,name:d.name,children:d.value},d.key))})}return s?e.jsx(L,{}):e.jsx(C,{children:o("blocklet.diskInfo.empty")})}const Ut=Ke(C)``;var Ie=function(o){return e.jsxs("svg",{...o,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANwAAACABAMAAACSOBo+AAAAG1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACUUeIgAAAACXRSTlMSFhkOHAsfCCOMH5MiAAAjjElEQVRo3hTQO3sjRRBG4a+qWzJhVfdIJqzuGXsJe2bkJe0e2UA4shdIJS2X1LBcUpbL/wae5yQnfVHGjp2+V08yKR7OwBDYte8pi5Aq9DObSBouqN9cidZyusonzWtGJO13phLebEn6xKEnlYyXe5hnySc53Ym9Abn7crTse8r7BMeIB8yBOVZK0trMjxT5S/cgc9G63BQqZoF3xSYZYeRk2hoIvEBFA7XMtaaF8TdY1GjiDDqgEswRDlWnRtmYzl5zRUq3sx3I+JL7sBJKXchDGJY9D+SfHAIoA+TuHCyYYYFjkhNB8tO5hhju0ANjdCITLx4/JDL+yyP0ErZR+m3M322bY8OKHzoOcAXLQMBHiIh+X59pv6udCJ7MAV9HARPtTEuFSdAzNVn7uPmkk3TpBGHb8DJZ3p36ScsuJVFQP6CUBXimN3BABZJUiEwBOMsHUisZiXU8k3bVSTrPcHsKEEg8gV/vP7U26vRWhl2UnfEbX3VlVbRHgSwmcy2tWTjsxmIb4YjgbAkmpyEOINs1gCtSC4YsjwnY9l1MJYRz1N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+OwfYAo9QybSeFUX5a9bl1On+cL5YHUjp/eID+XwV2AwZUXHswFw0IhIUlwmaTdQtlKJUpbAArh1IONYy6WQkAc9+ZocJMnELtCFNKLySGLwUIuW1fJLBKOoydII6+sDlhy8xYI1vchhF6qZnM0/oZSUzcd5By2cDzUtH3ng8PHIzAKL25wuSv+gDBsggYWWkvLT27f2dhwRULpny5D5yKI7vD/4iAW9KWHB7JsEZeCE1E/mdgVHZTOci8X+YIanJt7+aBd2k8f2RL45Z2puefelcXjUWbKdMSYwr58dAPaHymSU0o9/zjFt7/VoGmNAwCyvrKe2L1hYJqtd5gh6FGiCAGzqFk6on9pQdSAQzkctDTtXGbDih5iRPVIk9TwCJGwP3tpATkHsNwloUilnNMFce7twgDgrgWhsE8jWW+EBLlTDMn9pmtJOefTJc6Cxld039TN4XiwL4pMtU+8tXJ4g/LghG5APdF7/e3FSi4v8vnEBiIEm+5LlZtsk2LbbbY5hN9JkkJkd5BjQFPoUcwjJdTm0mx0024NmOvVgxASvU9TonFxUqG8cUTy3m5s3i7BqLbFkKcfxLQYhAXfjam0yFFd3PZE9wlXWfHYKlg2cFlTcnwRH6z8DpSfQHidMhElmCMb07li9ceHQHFknk/98f4KJRLpX6xQEXVAnJxlr8Aw6/qb0wu9SNolstScB0izxmMC5DiytBJd9Rcm3RGf42aiddmUTM4d4dgdjiT+vMPX0/RzfZdLoZ4aQqPzhx9plNI3QyvsMZHn2j2wOECoTtkfJt89O+eYUnXB/gFxHxPmOeL9ogAAAABJRU5ErkJggg=="})]})]})};Ie.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function Ee(){const{t}=U();return e.jsxs(D,{children:[e.jsxs(D,{minHeight:"40vh",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Ie,{style:{width:250,height:250}}),e.jsx(C,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(K,{})]}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}Ee.propTypes={};var le={},Rt=ie;Object.defineProperty(le,"__esModule",{value:!0});var De=le.default=void 0,wt=Rt(re()),bt=e;De=le.default=(0,wt.default)((0,bt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var de={},Ot=ie;Object.defineProperty(de,"__esModule",{value:!0});var Te=de.default=void 0,Lt=Ot(re()),Ft=e;Te=de.default=(0,Lt.default)((0,Ft.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var pe={},Mt=ie;Object.defineProperty(pe,"__esModule",{value:!0});var Ue=pe.default=void 0,Nt=Mt(re()),Pt=e;Ue=pe.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ue({spaceGateway:t,onConfirm:o,onCancel:n}){const{t:s}=U(),[i,a]=g.useState(!1),[r,c]=g.useState(!1),d=(p,m)=>{p==null||p.preventDefault(),p==null||p.stopPropagation(),a(m)},u=async p=>{try{p==null||p.stopPropagation(),c(!0),await(o==null?void 0:o(t)),a(!1)}catch(m){console.error(m),k.error(`${s("storage.space.gateway.delete.failed")}: ${$(m)}`)}finally{a(!1),c(!1)}},x=p=>{d(p,!1),n==null||n(p)};return e.jsxs(e.Fragment,{children:[e.jsxs(Y,{color:"red",onClick:p=>d(p,!0),children:[e.jsx(W,{style:{minWidth:24,color:"red"},children:e.jsx(xt,{fontSize:"small"})}),e.jsx(q,{style:{color:"red"},children:s("common.delete")})]}),e.jsx(Xe,{title:s("storage.spaces.gateway.delete.title"),open:i,confirmButton:{text:s("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:r}},cancelButton:{text:s("common.cancel"),props:{size:"small",variant:"outlined",loading:r}},onConfirm:u,onCancel:x,children:e.jsx(C,{sx:{wordBreak:"break-all"},children:s("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}ue.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};ue.defaultProps={onConfirm:()=>{},onCancel:()=>{}};function me({spaceGateway:t,selected:o,onDelete:n,onConnect:s,enableSwitchToSpace:i,backupInProgress:a,...r}){const[c,d]=g.useState(null),{t:u}=U(),[x,p]=g.useState(!1),m=(j,S)=>{j.stopPropagation(),j.preventDefault(),d(S&&j.currentTarget)},v=async j=>{try{p(!0),m(j,!1),await s(t)}catch(S){console.error(S),k.error(S.message)}finally{p(!1)}};return e.jsxs(e.Fragment,{children:[x||t!=null&&t.loading?e.jsx(L,{size:"24px"}):e.jsx(Ye,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:j=>m(j,!0),...r,children:e.jsx(gt,{})}),e.jsxs(We,{id:"simple-menu",anchorEl:c,keepMounted:!0,open:!!c,onClose:j=>m(j,!1),children:[e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(t.endpoint?ut(t.endpoint):t.url)},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(De,{fontSize:"small"})}),e.jsx(q,{children:u("common.open")})]}),e.jsxs(Y,{onClick:j=>{m(j,!1),window.open(mt(t.endpoint))},children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Ue,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.strategy.viewBackupFiles")})]}),!o&&i&&e.jsxs(Y,{onClick:v,children:[e.jsx(W,{style:{minWidth:24},children:e.jsx(Te,{fontSize:"small"})}),e.jsx(q,{children:u("storage.spaces.connect.switchToSpace")})]}),!a&&e.jsx(ue,{spaceGateway:t,onConfirm:async()=>{d(null),await(n==null?void 0:n(t))},onCancel:()=>d(null)})]})]})}me.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};me.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};function he({spaceGateway:t,spaceStatus:o,selected:n,onConnected:s,onDeleted:i,onBackedUp:a}){const{t:r,locale:c}=U(),{blocklet:d}=P(),{api:u,info:{did:x}}=J(),{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T}=Ce({blocklet:d}),{backupProgress:l,updateSpaceGateway:B,deleteSpaceGateway:A,refreshBackupEndpoint:R}=z(),[w,E]=g.useState(!1),[I,F]=g.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:r("storage.spaces.authorize.title",{appName:m},c),scan:r("storage.spaces.authorize.scan",{appName:m},c),confirm:"",success:e.jsx(C,{gutterBottom:!0,children:r("storage.spaces.authorize.success")})},onClose:()=>{F(y=>({...y,open:!1}))}}),ee=n&&!w&&o===se.DISCONNECTED,V=n&&!w&&!t.loading&&o===se.CONNECTED,h=n&&w&&o===se.CONNECTED,Z=async()=>{try{if(await ht(t==null?void 0:t.endpoint)){await u.configBlocklet({input:{did:[d.meta.did],configs:[{key:H.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),R(),k.success(r("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),s==null||s(null,t);return}}catch(y){console.error(y),s==null||s(y,t);return}F(y=>({...y,open:!0,prefix:b(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:ae.create({baseURL:b(t.url,"space")}).get,extraParams:{appDid:p,appName:m,appDescription:v,scopes:j,appUrl:S,referrer:T,nodeDid:x,spaceDid:t.did}}))},be=async(y,fe)=>{const te=fe(y.endpoint),Fe=_(te),M=y.space?fe(y.space):{};if(t.did&&Fe!==t.did){F(Me=>({...Me,open:!1}));const G=r("storage.spaces.gateway.switch.failedForMismatchSpace",{name:M!=null&&M.name?M.name:""});k.error(G),s==null||s(new Error(G),t);return}const ge={...t,name:M.name??"DID Space",did:M.did??_(te),endpoint:te};await B(ge),F(G=>({...G,open:!1})),s==null||s(null,ge)},Oe=async()=>{try{if(w)return;E(!0),await u.backupBlocklet({input:{appDid:d.appDid,to:"spaces"}})}catch(y){console.error(y),k.error(y.message),a==null||a(y,t)}finally{E(!0)}},Le=async()=>{try{await A(t),k.success(r("storage.spaces.gateway.delete.succeeded",{name:`(${t.name})`})),i==null||i(null,t)}catch(y){console.error(y),i==null||i(y,t)}};return g.useEffect(()=>{l!=null&&l.completed?(n&&((l==null?void 0:l.progress)===100?(k.success(r("storage.spaces.backupSuccessfully")),a==null||a(null,t)):l.message&&(a==null||a(new Error(l==null?void 0:l.message),t)),l.progress=0,l.message=""),E(!1)):l.progress&&E(!0)},[l]),e.jsxs(e.Fragment,{children:[e.jsxs(D,{sx:{".action-btn":{borderRadius:1,marginLeft:1}},display:"flex",alignItems:"center",children:[V&&e.jsx(Q,{className:"action-btn",variant:"outlined",size:"small",onClick:Oe,children:r("storage.spaces.strategy.backupNow")}),ee&&e.jsx(Q,{className:"action-btn",color:"error",variant:"outlined",size:"small",onClick:Z,children:r("storage.spaces.disconnected.reconnectNow")}),h&&e.jsxs(Q,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(L,{variant:"determinate",value:l==null?void 0:l.progress,size:14,sx:{mr:1}}),l==null?void 0:l.progress,"%"]}),e.jsx(ne,{forceConnected:!1,saveConnect:!1,prefix:I.prefix,open:I.open,popup:!0,action:I.action,baseUrl:I.baseUrl,checkFn:I.checkFn,onSuccess:be,onClose:I.onClose,checkTimeout:I.checkTimeout,extraParams:I.extraParams,messages:I.messages,locale:c},"get-endpoint")]}),e.jsx(me,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:n,onDelete:Le,onConnect:Z,enableSwitchToSpace:(l==null?void 0:l.completed)||N.isEmpty(l==null?void 0:l.message),backupInProgress:h})]})}he.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};he.defaultProps={onConnected:()=>{},onDeleted:()=>{},onBackedUp:()=>{}};function Re({...t}){const{t:o,locale:n}=U(),{spaceGateways:s,backups:i}=z(),a=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:r=>{var j;const{targetUrl:c,targetName:d,status:u,createdAt:x}=i[r],p=u===O.BACKUPS.STATUS.PROGRESS&&X().diff(x,"hours")>=O.BACKUPS.TIMEOUT_HOURS,m=u===O.BACKUPS.STATUS.SUCCEEDED&&!p,v=d||((j=s.find(S=>c==null?void 0:c.includes(_(S==null?void 0:S.endpoint))))==null?void 0:j.name)||"Unknown DID Space";return m?e.jsx(At,{fontSize:"16px",href:c,target:"_blank",children:v}):e.jsx(C,{variant:"body1",fontSize:"16px",children:v})}}},{label:o("common.strategy"),name:"strategy",options:{customBodyRender:r=>{const c=o(r===0?"common.auto":"common.manual");return e.jsx(oe,{children:c})}}},{label:o("common.startTime"),name:"createdAt",options:{customBodyRender:r=>X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.endTime"),name:"updatedAt",options:{customBodyRender:r=>N.isEmpty(r)?"":X(r).format("YYYY-MM-DD HH:mm:ss")}},{label:o("common.status"),name:"status",options:{customBodyRenderLite:r=>{const{status:c,message:d,createdAt:u}=(i==null?void 0:i[r])??{},x=c===O.BACKUPS.STATUS.PROGRESS&&X().diff(u,"hours")>=O.BACKUPS.TIMEOUT_HOURS,p=x&&o("common.timeoutError"),m=c===O.BACKUPS.STATUS.PROGRESS&&!x,v=c===O.BACKUPS.STATUS.SUCCEEDED&&!x;return m?e.jsxs(C,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(L,{sx:{marginRight:"4px"},size:"12px"}),o("common.progress")]}):v?e.jsx(oe,{type:"success",children:o("common.succeeded")}):e.jsxs(D,{display:"inline-flex",alignItems:"center",children:[e.jsx(oe,{type:"error",children:o("common.failed")}),"  ",e.jsx(qe,{style:{display:"flex",alignItems:"center",flexShrink:0},title:d||p,children:e.jsx(_e,{children:e.jsx(jt,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(D,{...t,children:i!=null&&i.length?e.jsx(St,{title:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")}),data:i,columns:a,emptyNode:o("storage.spaces.record.emptyData",n),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(D,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",children:o("storage.spaces.backup.records")})}),e.jsx(D,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:o("storage.spaces.record.emptyData")})]})})}Re.propTypes={};function we({...t}){const{t:o}=U(),{autoBackup:n,updateAutoBackup:s}=z(),i=async()=>{try{const a=!(n!=null&&n.enabled);await s({enabled:a}),k.success(o(a?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(a){k.error(a.message)}};return e.jsx(yt,{checked:!!(n!=null&&n.enabled),onChange:i,name:"enableWelcomePage",labelProps:{label:e.jsx(C,{marginRight:"8px",children:e.jsx("span",{children:o("storage.spaces.autoBackup.title")})})},style:{...t.style}})}we.propTypes={};function Jt(){const{t}=U(),o=it(),{spaceGateways:n,spaceGatewaysLoading:s,spaceGatewayIsSelected:i}=z(),a=s&&!(n!=null&&n.length),r=({spaceGateway:c,spaceStatus:d,selected:u,refresh:x})=>e.jsx(he,{spaceGateway:c,spaceStatus:d,selected:u,onConnected:()=>x(),onBackedUp:p=>p&&x()});return e.jsxs(D,{display:"flex",flexDirection:"column",children:[e.jsxs(Ct,{spacing:o?1:4,direction:o?"column":"row",alignItems:o?"space-between":"center",justifyContent:o?"center":"space-between",marginBottom:"12px",children:[e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(we,{}),o?e.jsx(K,{sx:{width:"100%","& button:first-of-type":{width:"100%"}}}):e.jsx(K,{})]}),e.jsx(D,{children:a?e.jsx(D,{display:"flex",justifyContent:"center",children:e.jsx(L,{})}):e.jsx(Se,{container:!0,spacing:1,children:e.jsx(e.Fragment,{children:n.map(c=>e.jsx(Se,{item:!0,xs:12,md:6,children:e.jsx(ot,{sx:{marginTop:"12px","&.selected":{borderColor:"primary.main"}},endpoint:c.endpoint,selected:i(c),action:r},c.endpoint)}))})})}),e.jsx(Re,{sx:{marginTop:"24px"}}),e.jsx(C,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(ve,{})]})}function zt(){const{spaceGatewaysLoading:t,spaceGateways:o}=z();return t?e.jsx($e,{relative:"parent",children:e.jsx(L,{})}):et(o)?e.jsx(Ee,{}):e.jsx(Jt,{})}function Rs(){return e.jsx(ce,{children:e.jsx(zt,{})})}export{Rs as default};
@@ -1 +1 @@
1
- import{r as h,j as c,P as f,a1 as d}from"./index-BowU-Rc8.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;m(h);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=b(e,"string");return typeof t=="symbol"?t:t+""}function b(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";p=o.default=i;function s({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(p,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}s.propTypes={children:f.any};s.defaultProps={children:""};export{s as C};
1
+ import{r as h,j as c,P as f,a1 as d}from"./index-D0ZDnsBw.js";var o={};Object.defineProperty(o,"__esModule",{value:!0});var p=o.default=void 0;m(h);var n=c;function m(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(a){y(e,a,r[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(r,a))})}return e}function y(e,t,r){return(t=j(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j(e){var t=b(e,"string");return typeof t=="symbol"?t:t+""}function b(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var a=r.call(e,t||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i=function(t){return(0,n.jsxs)("svg",u(u({},t),{},{children:[(0,n.jsx)("path",{d:"M24.604 2.263L28.524 0H42.79v41.862H28.79a1 1 0 0 1-.5-.134l-15.103-8.72V8.854l1.817-1.05 3.2 1.848-1.817 1.05V31.16l12.993 7.502H39.59V3.2H29.38l-1.576.91-3.2-1.847z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.402 31.16V10.701L13.409 3.2H3.2v35.462h10.21l1.58-.913 3.2 1.847-3.923 2.266H0V0h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047z"}),(0,n.jsx)("path",{d:"M138.44 27.684c.192 0 .357.075.496.224l1.344 1.472a9.584 9.584 0 0 1-3.44 2.576c-1.344.608-2.965.912-4.864.912-1.664 0-3.173-.288-4.528-.864a10.056 10.056 0 0 1-3.456-2.416c-.949-1.035-1.685-2.272-2.208-3.712-.523-1.44-.784-3.024-.784-4.752 0-1.728.272-3.312.816-4.752.555-1.44 1.328-2.677 2.32-3.712a10.444 10.444 0 0 1 3.552-2.416c1.387-.576 2.917-.864 4.592-.864 1.632 0 3.083.267 4.352.8a10.973 10.973 0 0 1 3.312 2.128l-1.12 1.584a.936.936 0 0 1-.288.288.742.742 0 0 1-.432.112c-.203 0-.443-.101-.72-.304a8.802 8.802 0 0 0-1.072-.672c-.437-.256-.981-.485-1.632-.688-.651-.203-1.461-.304-2.432-.304-1.141 0-2.187.203-3.136.608a6.885 6.885 0 0 0-2.464 1.728c-.683.747-1.216 1.67-1.6 2.768-.373 1.088-.56 2.32-.56 3.696 0 1.397.197 2.64.592 3.728.395 1.088.939 2.01 1.632 2.768a6.914 6.914 0 0 0 2.448 1.728 7.764 7.764 0 0 0 3.04.592c.661 0 1.253-.037 1.776-.112a7.843 7.843 0 0 0 1.456-.368c.448-.16.869-.363 1.264-.608a8.89 8.89 0 0 0 1.168-.912c.085-.075.176-.133.272-.176a.616.616 0 0 1 .304-.08zM149.68 16.1c1.195 0 2.272.197 3.232.592a6.54 6.54 0 0 1 2.464 1.68c.683.725 1.205 1.605 1.568 2.64.363 1.024.544 2.176.544 3.456 0 1.28-.181 2.437-.544 3.472-.363 1.035-.885 1.915-1.568 2.64a6.795 6.795 0 0 1-2.464 1.68c-.96.384-2.037.576-3.232.576-1.205 0-2.293-.192-3.264-.576a6.987 6.987 0 0 1-2.464-1.68c-.683-.725-1.211-1.605-1.584-2.64-.363-1.035-.544-2.192-.544-3.472 0-1.28.181-2.432.544-3.456.373-1.035.901-1.915 1.584-2.64a6.717 6.717 0 0 1 2.464-1.68c.971-.395 2.059-.592 3.264-.592zm0 14.304c1.536 0 2.683-.517 3.44-1.552.757-1.035 1.136-2.49 1.136-4.368 0-1.877-.379-3.333-1.136-4.368-.757-1.045-1.904-1.568-3.44-1.568-1.557 0-2.72.523-3.488 1.568-.757 1.035-1.136 2.49-1.136 4.368 0 1.877.379 3.333 1.136 4.368.768 1.035 1.931 1.552 3.488 1.552zM163.899 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.442 6.442 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448.682.299 1.253.72 1.712 1.264.458.533.805 1.179 1.04 1.936.234.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.534-.65-1.35-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.38 7.38 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM181.805 18.612c.352-.373.72-.715 1.104-1.024a6.73 6.73 0 0 1 1.216-.784 6.195 6.195 0 0 1 1.392-.512 6.448 6.448 0 0 1 1.6-.192c.896 0 1.68.15 2.352.448a4.63 4.63 0 0 1 1.712 1.264c.459.533.805 1.179 1.04 1.936.235.757.352 1.595.352 2.512v10.352h-3.136V22.26c0-1.163-.267-2.064-.8-2.704-.533-.65-1.349-.976-2.448-.976-.8 0-1.552.192-2.256.576a7.396 7.396 0 0 0-1.936 1.536v11.92h-3.12V16.356h1.872c.437 0 .709.208.816.624l.24 1.632zM207.551 22.676c0-.619-.09-1.19-.272-1.712a3.77 3.77 0 0 0-.768-1.36 3.521 3.521 0 0 0-1.248-.896c-.49-.213-1.056-.32-1.696-.32-1.312 0-2.346.379-3.104 1.136-.746.757-1.221 1.808-1.424 3.152h8.512zm2.576 7.616a6.311 6.311 0 0 1-1.328 1.168 7.926 7.926 0 0 1-1.6.784 9.664 9.664 0 0 1-1.76.448c-.597.096-1.189.144-1.776.144-1.12 0-2.16-.187-3.12-.56a7.159 7.159 0 0 1-2.48-1.664c-.693-.736-1.237-1.643-1.632-2.72-.384-1.088-.576-2.336-.576-3.744 0-1.13.176-2.181.528-3.152a7.67 7.67 0 0 1 1.504-2.56 7.064 7.064 0 0 1 2.416-1.712c.95-.416 2.016-.624 3.2-.624.992 0 1.904.165 2.736.496.843.32 1.568.79 2.176 1.408.608.619 1.083 1.381 1.424 2.288.352.907.528 1.941.528 3.104 0 .48-.053.805-.16.976-.106.16-.304.24-.592.24h-10.656c.032.97.171 1.819.416 2.544.246.715.582 1.312 1.008 1.792.438.48.955.837 1.552 1.072.598.235 1.264.352 2 .352.694 0 1.291-.08 1.792-.24.512-.16.95-.33 1.312-.512.374-.192.683-.368.928-.528.256-.16.48-.24.672-.24.256 0 .454.096.592.288l.896 1.152zM225.113 19.396a1.836 1.836 0 0 1-.288.288c-.086.064-.214.096-.384.096-.171 0-.352-.064-.544-.192a4.872 4.872 0 0 0-.704-.432 5.21 5.21 0 0 0-1.024-.432c-.395-.139-.886-.208-1.472-.208-.768 0-1.446.139-2.032.416a3.972 3.972 0 0 0-1.472 1.184c-.384.512-.678 1.136-.88 1.872-.203.736-.304 1.563-.304 2.48 0 .95.106 1.797.32 2.544.213.736.517 1.36.912 1.872.394.501.874.885 1.44 1.152a4.522 4.522 0 0 0 1.888.384c.672 0 1.226-.08 1.664-.24.437-.17.8-.352 1.088-.544.288-.192.528-.368.72-.528.192-.17.389-.256.592-.256.256 0 .453.096.592.288l.896 1.152a5.966 5.966 0 0 1-1.264 1.168c-.459.32-.95.581-1.472.784a8.34 8.34 0 0 1-1.648.448c-.566.096-1.142.144-1.728.144a7.25 7.25 0 0 1-2.848-.56 6.52 6.52 0 0 1-2.288-1.632c-.64-.715-1.147-1.59-1.52-2.624-.374-1.045-.56-2.23-.56-3.552 0-1.205.165-2.32.496-3.344.341-1.024.837-1.904 1.488-2.64a6.821 6.821 0 0 1 2.432-1.744c.96-.427 2.058-.64 3.296-.64 1.162 0 2.186.187 3.072.56a7.514 7.514 0 0 1 2.368 1.584l-.832 1.152zM234.121 32.868c-1.312 0-2.325-.368-3.04-1.104-.704-.736-1.056-1.787-1.056-3.152v-9.728h-1.888a.701.701 0 0 1-.464-.16c-.117-.117-.176-.288-.176-.512v-1.264l2.64-.368.704-4.848a.738.738 0 0 1 .24-.416.724.724 0 0 1 .48-.16h1.584v5.456h4.608v2.272h-4.608v9.52c0 .64.155 1.12.464 1.44.32.31.726.464 1.216.464.288 0 .534-.037.736-.112a3.27 3.27 0 0 0 .544-.24c.15-.096.278-.181.384-.256a.521.521 0 0 1 .288-.112c.107 0 .187.027.24.08a.694.694 0 0 1 .192.224l.928 1.504c-.512.47-1.12.832-1.824 1.088a6.362 6.362 0 0 1-2.192.384z"}),(0,n.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M57.815 33.284V9H70.66a6.259 6.259 0 0 1 5.823 6.243v11.783a6.258 6.258 0 0 1-6.258 6.258h-12.41zM84.56 9h-3.335v24.321h3.335V9zM61.15 29.95V12.32h9.075a2.923 2.923 0 0 1 2.923 2.923v11.783a2.923 2.923 0 0 1-2.923 2.923H61.15zM89.243 9v24.284h12.409a6.258 6.258 0 0 0 6.259-6.258V15.243A6.259 6.259 0 0 0 102.087 9H89.243zm22.912 5.636h3.728v3.728h-3.728v-3.729zm3.728 9.321h-3.728v3.729h3.728v-3.729zM92.578 12.32v17.63h9.074a2.924 2.924 0 0 0 2.924-2.924V15.243a2.924 2.924 0 0 0-2.924-2.923h-9.074z"})]}))};i.defaultProps={width:"239",height:"42",viewBox:"0 0 239 42",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};i.displayName="connect-logo";p=o.default=i;function s({children:e,...t}){return c.jsxs(d,{color:"did",variant:"contained",...t,children:[c.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),c.jsx(p,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}s.propTypes={children:f.any};s.defaultProps={children:""};export{s as C};