@abtnode/webapp 1.17.8-beta-20260108-021819-e099f0ca → 1.17.8-beta-20260108-120904-21cb5fb6

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 (191) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-Chnfr9fe.js → AdapterDayjs-CtD5my-S.js} +1 -1
  4. package/dist/assets/{Add-b-MNk7UB.js → Add-CVe35B9U.js} +1 -1
  5. package/dist/assets/ArrowDropDown-59b471Ns.js +1 -0
  6. package/dist/assets/{Autocomplete-79tADtg2.js → Autocomplete-CZdtlRmS.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-Cqjt-kp8.js → Breadcrumbs-DOWk4s-Q.js} +1 -1
  8. package/dist/assets/{ButtonGroup-C_JbniJW.js → ButtonGroup-83J5hh2q.js} +1 -1
  9. package/dist/assets/{CSSTransition-DinXVMZy.js → CSSTransition-Dmpq-B51.js} +1 -1
  10. package/dist/assets/{CallMerge-CF5jo3Pw.js → CallMerge-CZNqia3S.js} +1 -1
  11. package/dist/assets/{CardContent-CYNmFsYJ.js → CardContent-DXDn75TD.js} +1 -1
  12. package/dist/assets/{ChevronLeft-Byy2_Dj8.js → ChevronLeft-B8v-crqw.js} +1 -1
  13. package/dist/assets/{ChevronRight-BKFXnJ7g.js → ChevronRight-DIxNh4jH.js} +1 -1
  14. package/dist/assets/{Clear-Chg9fOPG.js → Clear-kzRbvP4u.js} +1 -1
  15. package/dist/assets/{Delete-B306vkSB.js → Delete-Cw_Z_UMc.js} +1 -1
  16. package/dist/assets/{DeleteOutline-BjSm7PCr.js → DeleteOutline-D2i9YJBS.js} +1 -1
  17. package/dist/assets/{Done-Bh0vP7e6.js → Done-CmV6TZSG.js} +1 -1
  18. package/dist/assets/{Edit-DFmlgA7E.js → Edit-DDUKSYdb.js} +1 -1
  19. package/dist/assets/{EditOutlined-Qskj3-tY.js → EditOutlined-MUSbzQj_.js} +1 -1
  20. package/dist/assets/{ErrorOutline-CjKNiJFO.js → ErrorOutline-jxA-S5AH.js} +1 -1
  21. package/dist/assets/{FilterList-Dphn1UXx.js → FilterList-B8T7rkYs.js} +1 -1
  22. package/dist/assets/{Google-C0G3l0jL.js → Google-Bg8SlDZS.js} +1 -1
  23. package/dist/assets/{HelpOutline--A0maMxb.js → HelpOutline-BOrIHXkQ.js} +1 -1
  24. package/dist/assets/{KeyboardArrowDown-CD6n37Y9.js → KeyboardArrowDown-CE7zJDcv.js} +1 -1
  25. package/dist/assets/{Launch-Cor8d4pT.js → Launch-BHeCrhBj.js} +1 -1
  26. package/dist/assets/{Link-Mg5UlAaZ.js → Link-C39j8j-1.js} +1 -1
  27. package/dist/assets/{ListItemButton-C8XIzvy_.js → ListItemButton-DLzzgnWj.js} +1 -1
  28. package/dist/assets/{ListSubheader-CHT01bOG.js → ListSubheader-BgTycqrg.js} +1 -1
  29. package/dist/assets/{LoadingButton-DtnAWL1w.js → LoadingButton-OiBPqmL8.js} +1 -1
  30. package/dist/assets/{MoreVert-KNjOpSoE.js → MoreVert-DJQ3tC1s.js} +1 -1
  31. package/dist/assets/{OpenInNew-DGDd5qxt.js → OpenInNew-awII5Ys1.js} +1 -1
  32. package/dist/assets/{Refresh-B0_3c6OW.js → Refresh-BpllOjUS.js} +1 -1
  33. package/dist/assets/{Replay-BzP784vV.js → Replay-CMmg_T4k.js} +1 -1
  34. package/dist/assets/{Search-CUoYhy1v.js → Search-DobdZczv.js} +1 -1
  35. package/dist/assets/{Stepper-DfUO9buC.js → Stepper-DJ4LlLol.js} +1 -1
  36. package/dist/assets/{TableSearch-DxZYknBa.js → TableSearch-NL7mGzF6.js} +1 -1
  37. package/dist/assets/{ToggleButtonGroup-BwLu2zCu.js → ToggleButtonGroup-1ZqP29sD.js} +1 -1
  38. package/dist/assets/{UnfoldMore-DvSw9pGy.js → UnfoldMore-BNE7Q7I9.js} +1 -1
  39. package/dist/assets/{Verified-CfonAx-G.js → Verified-pVnWh8ct.js} +1 -1
  40. package/dist/assets/{VerifiedUser-wCwGdsz1.js → VerifiedUser-Bq5EjyL0.js} +1 -1
  41. package/dist/assets/{ViewList-DhdvL6AT.js → ViewList-DikGBOob.js} +1 -1
  42. package/dist/assets/{_createAggregator-BLxu5C4t.js → _createAggregator-xAuoCETp.js} +1 -1
  43. package/dist/assets/{actions-Wo9kGXdj.js → actions-BHqqnvHK.js} +1 -1
  44. package/dist/assets/{actions-D1YtdqKL.js → actions-QNxlOGpH.js} +1 -1
  45. package/dist/assets/{agreement-07HiBYSX.js → agreement-D-rCiZRR.js} +1 -1
  46. package/dist/assets/api-ZR56mSDv.js +1 -0
  47. package/dist/assets/{appearance-CKF7Bo6h.js → appearance-CL4dIHJL.js} +1 -1
  48. package/dist/assets/{audit-logs-CLt2l7-q.js → audit-logs-BHIFDkts.js} +1 -1
  49. package/dist/assets/{base-chart-_0APPWGp.js → base-chart-CbniXo_r.js} +1 -1
  50. package/dist/assets/{blocklet-ClPWX-SV.js → blocklet-e4asDkfP.js} +1 -1
  51. package/dist/assets/{chain-Bg9mny_E.js → chain-CADjEEjt.js} +1 -1
  52. package/dist/assets/{click-to-copy-BbJJzGI1.js → click-to-copy-D5SbepAS.js} +1 -1
  53. package/dist/assets/cloneDeep-ChH4oif_.js +1 -0
  54. package/dist/assets/{config-navigation-B-CtKO70.js → config-navigation-ySXIDWww.js} +3 -3
  55. package/dist/assets/{connect-2JDWTFDP.js → connect-CdvuGCCf.js} +1 -1
  56. package/dist/assets/{connect-to-CBEHT895.js → connect-to-98MGJ7Yl.js} +1 -1
  57. package/dist/assets/{cssMode-U7KzpQEJ.js → cssMode-C_dsdlzf.js} +1 -1
  58. package/dist/assets/{delete-confirm-Cx4JPY2I.js → delete-confirm-Dk2gUSc_.js} +1 -1
  59. package/dist/assets/depsEqual-D1oKMHHx.js +1 -0
  60. package/dist/assets/{detail-Cgws9Fjd.js → detail-BSLJegmW.js} +3 -3
  61. package/dist/assets/{domains-BJzrDugH.js → domains-DgPIevHh.js} +1 -1
  62. package/dist/assets/{download-Df1TrhTI.js → download-DjUrRSaE.js} +1 -1
  63. package/dist/assets/{edit.svg-833vjqGH.js → edit.svg-BGFHNdYl.js} +1 -1
  64. package/dist/assets/emotion-cache.browser.esm-CO4m2LjK.js +1 -0
  65. package/dist/assets/engine-AOyfq5pg.js +1 -0
  66. package/dist/assets/{freemarker2-J5nZkQuM.js → freemarker2-Ynl3hbRt.js} +1 -1
  67. package/dist/assets/{get-safe-url-QppwE77w.js → get-safe-url-D0pcxgUJ.js} +1 -1
  68. package/dist/assets/getValidReactChildren-BrnINUbd.js +1 -0
  69. package/dist/assets/{graphqlMode-5yY_akok.js → graphqlMode-D3ZzOvwh.js} +2 -2
  70. package/dist/assets/{handlebars-DfBT6Rl2.js → handlebars-BXtXOFnU.js} +1 -1
  71. package/dist/assets/{html-BBpT31Z8.js → html-68WkZj1H.js} +1 -1
  72. package/dist/assets/{html-title-BpNgi7iw.js → html-title-CT8s_pnR.js} +1 -1
  73. package/dist/assets/{htmlMode-CDF4YwlA.js → htmlMode-D6dQwFeL.js} +1 -1
  74. package/dist/assets/{iframe-CH8rbppJ.js → iframe-BzTEh7qO.js} +1 -1
  75. package/dist/assets/{index-jHF3D4cy.js → index-AoP-pJu3.js} +1 -1
  76. package/dist/assets/{index-B8qqbKQt.js → index-B-25u8Uu.js} +1 -1
  77. package/dist/assets/index-B1_4iuGC.js +782 -0
  78. package/dist/assets/{index-tNmk7CjJ.js → index-BAYzgNzt.js} +1 -1
  79. package/dist/assets/{index-BdVOugOI.js → index-BFzkIx2h.js} +1 -1
  80. package/dist/assets/index-BQ9Dluv4.js +1 -0
  81. package/dist/assets/{index-B3tcK3_z.js → index-BTw_aopw.js} +14 -14
  82. package/dist/assets/{index-Dr7VuVvC.js → index-BV0mjh6r.js} +1 -1
  83. package/dist/assets/{index-DSjaZAu3.js → index-BaJk36L1.js} +1 -1
  84. package/dist/assets/{index-BJVvRV0h.js → index-BazbEWXv.js} +1 -1
  85. package/dist/assets/{index-CsTd8Q4H.js → index-Bd2vWvMu.js} +1 -1
  86. package/dist/assets/{index-CbnvHmOA.js → index-Bmj3JRL8.js} +1 -1
  87. package/dist/assets/{index-DCHzmqFc.js → index-BspQeR3D.js} +1 -1
  88. package/dist/assets/{index-CKWS_NIP.js → index-Bwnzqjf1.js} +1 -1
  89. package/dist/assets/{index-B4fcaU-r.js → index-CB1i_uf2.js} +1 -1
  90. package/dist/assets/{index-DqkfLKvE.js → index-CIjzdo65.js} +1 -1
  91. package/dist/assets/{index-CDd3s2GI.js → index-CVfXb0nN.js} +1 -1
  92. package/dist/assets/{index-CaxsY_au.js → index-CmbSgUyL.js} +3 -3
  93. package/dist/assets/{index-BikUP_wv.js → index-Cmvy-qPR.js} +1 -1
  94. package/dist/assets/{index-BVJB29cJ.js → index-Cp8XtCdH.js} +1 -1
  95. package/dist/assets/{index-BSBkhGl0.js → index-Cq78KErH.js} +1 -1
  96. package/dist/assets/{index-WHQs_PkC.js → index-Cy488fNr.js} +1 -1
  97. package/dist/assets/{index-B6x6Mq9n.js → index-D2bmvDtL.js} +1 -1
  98. package/dist/assets/{index-Crqqt-AN.js → index-D33KlJUT.js} +1 -1
  99. package/dist/assets/{index-3MwDYHdN.js → index-DA7EVQ4v.js} +9 -9
  100. package/dist/assets/{index-DXfP6ckA.js → index-DDI8UY6T.js} +2 -2
  101. package/dist/assets/{index-BBe9oV9e.js → index-DLJTQrAL.js} +1 -1
  102. package/dist/assets/{index-Bek3Nxot.js → index-DQhyMeoV.js} +3 -3
  103. package/dist/assets/{index-D_L4A5jU.js → index-DVXDeiLF.js} +1 -1
  104. package/dist/assets/{index-m8sITmne.js → index-DXHVn7yq.js} +1 -1
  105. package/dist/assets/{index-BbND9whL.js → index-Da8PZ-lu.js} +1 -1
  106. package/dist/assets/{index-iqFfmV_z.js → index-DfDHgwS-.js} +1 -1
  107. package/dist/assets/{index-BqrWLXQw.js → index-Dpw7fQUd.js} +3 -3
  108. package/dist/assets/{index-DrsAyGr6.js → index-DuNah4NO.js} +1 -1
  109. package/dist/assets/{index-BHQcEGDq.js → index-DvMdH51T.js} +1 -1
  110. package/dist/assets/{index-CBHMH4Z7.js → index-DxFY8dMO.js} +1 -1
  111. package/dist/assets/{index-cZdqepfp.js → index-Dz1ZwZ8x.js} +1 -1
  112. package/dist/assets/{index-0NOALS_P.js → index-Fir5RRo8.js} +1 -1
  113. package/dist/assets/{index-FdUIQyuT.js → index-Fr0im6-l.js} +1 -1
  114. package/dist/assets/{index-DJfXtT-f.js → index-Jt9YjCeK.js} +1 -1
  115. package/dist/assets/{index-CHgpIuFF.js → index-Ltxc7YUP.js} +1 -1
  116. package/dist/assets/{index-BfTQCMKf.js → index-LvA6paIR.js} +1 -1
  117. package/dist/assets/{index-CbK68mel.js → index-ZuJcpT1T.js} +1 -1
  118. package/dist/assets/{index-BfnrUUfH.js → index-bAcW8HYF.js} +1 -1
  119. package/dist/assets/{index-BRSm_uSW.js → index-teas2Eib.js} +3 -3
  120. package/dist/assets/{index-CZX-K9Eg.js → index-yR3ovHMI.js} +1 -1
  121. package/dist/assets/{index.esm-WZ7Avw4n.js → index.esm-CL88L2RD.js} +1 -1
  122. package/dist/assets/{install-from-url-PuHPLadE.js → install-from-url-C9wGB_q1.js} +1 -1
  123. package/dist/assets/{invitation-Bi2QgUpB.js → invitation-DBHFAKTZ.js} +1 -1
  124. package/dist/assets/{is-path-prefix-equal-BAfeJQQq.js → is-path-prefix-equal-Df12gAPj.js} +1 -1
  125. package/dist/assets/{item-hbtsGcq0.js → item-D4OgvExU.js} +1 -1
  126. package/dist/assets/{javascript-CH6uPFyX.js → javascript-CY8tPfqG.js} +1 -1
  127. package/dist/assets/{jsonMode-B3mvgwT0.js → jsonMode-B1lllzUE.js} +1 -1
  128. package/dist/assets/{liquid-BoDus-ho.js → liquid-gpD4GU-k.js} +1 -1
  129. package/dist/assets/{list-header-C3SJDsfy.js → list-header-CjwjgfKp.js} +1 -1
  130. package/dist/assets/{lock.svg-CGmlgpmU.js → lock.svg-BmAm_LJl.js} +1 -1
  131. package/dist/assets/{log-D4BWVj7G.js → log-9z7r8Lwt.js} +1 -1
  132. package/dist/assets/{lottie-react.esm-ayFZjR4e.js → lottie-react.esm-C8kqAAU9.js} +1 -1
  133. package/dist/assets/{mdx-C33wkq6H.js → mdx-BwNO0Air.js} +1 -1
  134. package/dist/assets/{memory-lh5QZ4zg.js → memory-DO3ZqhrY.js} +1 -1
  135. package/dist/assets/{metric-chc-qmc8.js → metric-BcTiOrOk.js} +1 -1
  136. package/dist/assets/omit-jBEByUQC.js +1 -0
  137. package/dist/assets/{overview-DL-GP40o.js → overview-CikmJX9H.js} +1 -1
  138. package/dist/assets/{permission-D09K4EY6.js → permission-D1opDJhT.js} +1 -1
  139. package/dist/assets/{preference-iiwdIYk6.js → preference-Cs7lm-MF.js} +3 -3
  140. package/dist/assets/{provider-icon-Dm9XYo2I.js → provider-icon-CFKcu3V6.js} +1 -1
  141. package/dist/assets/{python-D_lYYAX1.js → python-CNXRlmYQ.js} +1 -1
  142. package/dist/assets/{raf-schd.esm-Bo9SYHL8.js → raf-schd.esm-D0EagQlv.js} +1 -1
  143. package/dist/assets/{razor-dpsmZHh4.js → razor-eMpDpC4X.js} +1 -1
  144. package/dist/assets/{rotate-session-key-Bfdv46s3.js → rotate-session-key-BiL0Bo_O.js} +1 -1
  145. package/dist/assets/{runtime-BUcScDcM.js → runtime-DUYT_SiT.js} +1 -1
  146. package/dist/assets/schema-iTOku2t8.js +1 -0
  147. package/dist/assets/sdk-B0lvz_Iz.js +1 -0
  148. package/dist/assets/{service-DCzLPjA3.js → service-BTdtH483.js} +1 -1
  149. package/dist/assets/{shorten-label-CN9pEyom.js → shorten-label-BNzeaF4J.js} +1 -1
  150. package/dist/assets/{simple-select-DxwJpURO.js → simple-select-BhAfKrhv.js} +1 -1
  151. package/dist/assets/{spaces-BrB8zqzV.js → spaces-OwZlXUZ4.js} +1 -1
  152. package/dist/assets/{status-BZx_J-ps.js → status-D6WlCP08.js} +1 -1
  153. package/dist/assets/{status-B-GGRrEB.js → status-cEVhL_8t.js} +1 -1
  154. package/dist/assets/{switch-control-X9WA2UjB.js → switch-control-DfH5Tjol.js} +1 -1
  155. package/dist/assets/{table-icons-Xs4hP9Pw.js → table-icons-CDTf0wL3.js} +1 -1
  156. package/dist/assets/{team-B9jB42uy.js → team-BGXKsY22.js} +1 -1
  157. package/dist/assets/{toLower-DwWNsNMJ.js → toLower-CSOmIMZJ.js} +1 -1
  158. package/dist/assets/toUpper-DnO1VFxi.js +1 -0
  159. package/dist/assets/{traffic-C_4zWOQM.js → traffic-DvCEQ5xd.js} +1 -1
  160. package/dist/assets/{tsMode-57DuREfP.js → tsMode-Let-Q8zu.js} +1 -1
  161. package/dist/assets/{typescript-BJp2b_J1.js → typescript-DyjM7FW9.js} +1 -1
  162. package/dist/assets/{url-evaluation-DetQFE_e.js → url-evaluation-Bukt7_Lj.js} +1 -1
  163. package/dist/assets/{url-join-rRKl4Ear.js → url-join-xsOaQKQ2.js} +1 -1
  164. package/dist/assets/{use-mobile-DOhPXmq7.js → use-mobile-BIQUR7Fz.js} +1 -1
  165. package/dist/assets/{use-mobile-BDRFDg8j.js → use-mobile-CFNU7YUg.js} +1 -1
  166. package/dist/assets/{useAsync-B59MJoKM.js → useAsync-tWL_hrVo.js} +1 -1
  167. package/dist/assets/{useAsyncRetry-CGp0YSlH.js → useAsyncRetry-CUFV5zTA.js} +1 -1
  168. package/dist/assets/{useLocalStorage-Dpl2DibN.js → useLocalStorage-MLO2O-Eu.js} +1 -1
  169. package/dist/assets/{useThemeProps-BS48y1B2.js → useThemeProps-C4X8Xuf-.js} +1 -1
  170. package/dist/assets/{util-DgOs7OwT.js → util-Byl4XHzq.js} +1 -1
  171. package/dist/assets/{wait-container-CxHAyAQN.js → wait-container-80uXorh3.js} +1 -1
  172. package/dist/assets/{without-wallet-qfmn1VhQ.js → without-wallet-U6nu7HMX.js} +1 -1
  173. package/dist/assets/wrap-locale-pkCcV7CX.js +1 -0
  174. package/dist/assets/{xml-BZRt8HAs.js → xml-CtKLgaY7.js} +1 -1
  175. package/dist/assets/{yaml-0X7rH3i7.js → yaml-CMyMNgnc.js} +1 -1
  176. package/dist/index.html +1 -1
  177. package/package.json +1 -1
  178. package/dist/assets/ArrowDropDown-lsZjWbH5.js +0 -1
  179. package/dist/assets/api-eF9wxSJp.js +0 -1
  180. package/dist/assets/cloneDeep-DNOsGRuG.js +0 -1
  181. package/dist/assets/depsEqual-Cvglsxh5.js +0 -1
  182. package/dist/assets/emotion-cache.browser.esm-Epiq9rij.js +0 -1
  183. package/dist/assets/engine-a9f8P0CB.js +0 -1
  184. package/dist/assets/getValidReactChildren-Cjo-LFyx.js +0 -1
  185. package/dist/assets/index-B31H3tAk.js +0 -1
  186. package/dist/assets/index-HqyXcG7M.js +0 -602
  187. package/dist/assets/omit-C11lcOpj.js +0 -1
  188. package/dist/assets/schema-DidDB4o0.js +0 -1
  189. package/dist/assets/sdk-l1r4MOQ_.js +0 -1
  190. package/dist/assets/toUpper-DXK6zXOf.js +0 -1
  191. package/dist/assets/wrap-locale-D8IL6u8L.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-3MwDYHdN.js","./index-Bek3Nxot.js","./index-DUrTVFR9.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
- import{r as t,p as n,j as r,bJ as i,d4 as a}from"./index-Bek3Nxot.js";const s=t.lazy(()=>i(()=>import("./index-3MwDYHdN.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DA7EVQ4v.js","./index-DQhyMeoV.js","./index-DUrTVFR9.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
+ import{r as t,p as n,j as r,bJ as i,d4 as a}from"./index-DQhyMeoV.js";const s=t.lazy(()=>i(()=>import("./index-DA7EVQ4v.js").then(o=>o.i),__vite__mapDeps([0,1,2,3,4]),import.meta.url)),d=`{
3
3
  getNodeInfo {
4
4
  code
5
5
  info {
@@ -1,4 +1,4 @@
1
- import{r as s,V as X,cG as He,z as Ge,y as $,j as e,cH as k1,cI as w1,cJ as y1,cK as b1,f as Ce,u as ie,ak as Ke,cL as he,i as J,s as S,v as L1,o as Ee,ay as E1,A as qe,cM as j1,q as C1,cN as B1,ac as U1,bD as Pe,aH as Z,cO as z1,ai as S1,bC as De,ax as Ae,b as ke,ag as I1,H as Y,Z as se,ah as N1,F as R1,N as re,I as Q,C as K,M as Ze,L as oe,J as Te,Y as Ye,T as P1,cP as D1,W as A1,w as T1,x as Je,cQ as $1,af as V1,cm as Qe,cR as Xe,aa as M1,al as _1,cS as W1,am as O1,an as F1,ao as ne,ap as H1,aq as G1,ar as K1,as as q1}from"./index-Bek3Nxot.js";import{u as ce,a as e1,W as je,P as Z1,L as Y1}from"./index-BSBkhGl0.js";import{u as J1,A as Q1,W as X1,P as t1,D as $e,a as et,L as Ve}from"./wait-container-CxHAyAQN.js";import{u as tt}from"./useAsyncRetry-CGp0YSlH.js";import{u as at}from"./use-mobile-DOhPXmq7.js";import{C as a1,A as st}from"./agreement-07HiBYSX.js";import{W as nt}from"./without-wallet-qfmn1VhQ.js";import{a as Me}from"./api-eF9wxSJp.js";import{g as _e}from"./get-safe-url-QppwE77w.js";import{s as we}from"./schema-DidDB4o0.js";import{u as lt}from"./useLocalStorage-Dpl2DibN.js";import{s as rt}from"./logo-BKA11TRi.js";import{e as le}from"./engine-a9f8P0CB.js";import"./url-join-rRKl4Ear.js";import"./useAsync-B59MJoKM.js";import"./index-WHQs_PkC.js";import"./decode-DPztD6kB.js";import"./index-BdVOugOI.js";const ot=t=>s.createElement("svg",{width:193,height:64,viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),s.createElement("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zm9.731-3.024c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zm26.931-2.002v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zm6.662 1.764c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406a6.04 6.04 0 0 0-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zm22.861 1.273a1.577 1.577 0 0 1-.308.309c-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zm6.676-1.497a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zm21.6 3.99a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378 11.28 11.28 0 0 1-1.554.112 7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zm15.559-5.124c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.57 2.57 0 0 0-.812.49 3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642 30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83 30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:30.72,y1:95.721,x2:94.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:27.437,y1:99.246,x2:97.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})))),ct=t=>s.createElement("svg",{width:193,height:64,viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#fff"}),s.createElement("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zm9.731-3.024c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zm26.931-2.002v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zm6.662 1.764c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406a6.04 6.04 0 0 0-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zm22.861 1.273a1.577 1.577 0 0 1-.308.309c-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zm6.676-1.497a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zm21.6 3.99a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378 11.28 11.28 0 0 1-1.554.112 7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zm15.559-5.124c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.57 2.57 0 0 0-.812.49 3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#fff"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642 30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83 30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:30.72,y1:95.721,x2:94.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:27.437,y1:99.246,x2:97.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})))),it=t=>s.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642 31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83 31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:31.72,y1:95.721,x2:95.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:28.437,y1:99.246,x2:98.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"}))));var s1=function(a){return e.jsx("svg",{...a,children:e.jsx("path",{d:"M4.006 31a3.005 3.005 0 0 1-2.991-2.717L1 27.995V5.956a3.005 3.005 0 0 1 2.717-2.99l.289-.015h9.015a3.005 3.005 0 0 1 2.992 2.715l.014.29v.51l4.385-4.547a3.005 3.005 0 0 1 4.021-.276l.233.202 5.523 5.46a3.005 3.005 0 0 1 .223 4.029l-.207.232-4.63 4.408h.47a3.005 3.005 0 0 1 2.99 2.715l.014.29v9.016a3.005 3.005 0 0 1-2.714 2.991l-.29.014H4.004Zm10.017-13.023H3.004v10.018a1.002 1.002 0 0 0 .653.94l.168.046.18.015h10.018V17.977Zm12.021 0H16.027v11.02h10.017a1.002 1.002 0 0 0 .986-.822l.016-.18v-9.016a1.002 1.002 0 0 0-.822-.986l-.18-.016Zm-10.017-5.59v3.587h3.586l-3.586-3.586ZM13.02 4.956H4.006a1.002 1.002 0 0 0-.986.821l-.016.18v10.018h11.02V5.956a1.002 1.002 0 0 0-.654-.94l-.168-.045-.18-.016Zm10.262-1.657a1.008 1.008 0 0 0-1.292-.106l-.136.12-5.241 5.435a1.001 1.001 0 0 0-.114 1.248l.126.157 5.24 5.239a1.002 1.002 0 0 0 1.243.14l.156-.122 5.526-5.263a1.002 1.002 0 0 0 .108-1.279l-.118-.138-5.498-5.431Z"})})};s1.defaultProps={width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const n1="https://launcher.arcblock.io",l1=t=>{if(!t)return n1;const{protocol:a,host:f}=y1(b1(t));return`${a}//${f}`},r1=t=>t?{"__did-connect__":w1.from(JSON.stringify({switchBehavior:"auto",forceConnected:t,showClose:!1}),"utf8").toString("base64")}:{};function ht(t,a=n1,f=""){const{t:i}=X(),p=r1(f),{loading:h,value:I,error:v,retry:N}=tt(async()=>{if(t!=="serverless")return null;const d=l1(a),R=await He(d),m=Ge($(R,"/u/apps"),p);return{text:i("launchBlocklet.nav.myApps"),appText:i("launchBlocklet.nav.viewMyApps"),link:m,buttonProps:{sx:{fontSize:"1rem"}},icon:e.jsx(k1,{component:s1,fontSize:"small",viewBox:"0 0 32 32"})}},[t,a,f,i]);return t!=="serverless"||I===null?{}:h?{loading:!0}:v?{error:v,retry:N}:I||{}}function ut({style:t,...a}={}){const{palette:f}=Ce(),i=at({key:"md"}),h=f.mode==="dark"?ct:ot;return i?e.jsx(it,{width:"32",height:"32",style:{cursor:"pointer",...t},...a}):e.jsx(h,{width:"145",height:"48",style:{cursor:"pointer",...t},...a})}function dt(){const{t}=X(),{info:a}=ie(),f=Ke(),i=decodeURIComponent(f.get("accessUrl")||""),{meta:p}=he();return e.jsx(pt,{children:e.jsx("div",{className:"body",children:e.jsx(ce,{variant:"success",title:J.getDisplayName({meta:p},!0),subTitle:t("launchBlocklet.installSuccess",{serverName:a.name}),footer:e.jsx(mt,{href:i,rel:"noreferrer","data-cy":"open-blocklet",children:t("common.open")})})})})}const mt=S.a`
1
+ import{r as s,V as X,cG as He,z as Ge,y as $,j as e,cH as k1,cI as w1,cJ as y1,cK as b1,f as Ce,u as ie,ak as Ke,cL as he,i as J,s as S,v as L1,o as Ee,ay as E1,A as qe,cM as j1,q as C1,cN as B1,ac as U1,bD as Pe,aH as Z,cO as z1,ai as S1,bC as De,ax as Ae,b as ke,ag as I1,H as Y,Z as se,ah as N1,F as R1,N as re,I as Q,C as K,M as Ze,L as oe,J as Te,Y as Ye,T as P1,cP as D1,W as A1,w as T1,x as Je,cQ as $1,af as V1,cm as Qe,cR as Xe,aa as M1,al as _1,cS as W1,am as O1,an as F1,ao as ne,ap as H1,aq as G1,ar as K1,as as q1}from"./index-DQhyMeoV.js";import{u as ce,a as e1,W as je,P as Z1,L as Y1}from"./index-Cq78KErH.js";import{u as J1,A as Q1,W as X1,P as t1,D as $e,a as et,L as Ve}from"./wait-container-80uXorh3.js";import{u as tt}from"./useAsyncRetry-CUFV5zTA.js";import{u as at}from"./use-mobile-BIQUR7Fz.js";import{C as a1,A as st}from"./agreement-D-rCiZRR.js";import{W as nt}from"./without-wallet-U6nu7HMX.js";import{a as Me}from"./api-ZR56mSDv.js";import{g as _e}from"./get-safe-url-D0pcxgUJ.js";import{s as we}from"./schema-iTOku2t8.js";import{u as lt}from"./useLocalStorage-MLO2O-Eu.js";import{s as rt}from"./logo-BKA11TRi.js";import{e as le}from"./engine-AOyfq5pg.js";import"./url-join-xsOaQKQ2.js";import"./useAsync-tWL_hrVo.js";import"./index-Cy488fNr.js";import"./decode-DPztD6kB.js";import"./index-BFzkIx2h.js";const ot=t=>s.createElement("svg",{width:193,height:64,viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#121319"}),s.createElement("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zm9.731-3.024c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zm26.931-2.002v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zm6.662 1.764c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406a6.04 6.04 0 0 0-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zm22.861 1.273a1.577 1.577 0 0 1-.308.309c-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zm6.676-1.497a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zm21.6 3.99a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378 11.28 11.28 0 0 1-1.554.112 7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zm15.559-5.124c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.57 2.57 0 0 0-.812.49 3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#121319"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642 30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83 30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:30.72,y1:95.721,x2:94.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:27.437,y1:99.246,x2:97.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})))),ct=t=>s.createElement("svg",{width:193,height:64,viewBox:"0 0 193 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M80.005 25.994V10h7.737a3.79 3.79 0 0 1 3.79 3.79v1.149a3.777 3.777 0 0 1-1.035 2.602 3.788 3.788 0 0 1 1.901 3.286v1.377a3.79 3.79 0 0 1-3.79 3.79h-8.603zm1.684-8.957h6.226a2.105 2.105 0 0 0 1.932-2.098v-1.15a2.105 2.105 0 0 0-2.105-2.105h-6.053v5.353zm0 7.273v-5.582l6.92-.007c1.163 0 2.105.943 2.105 2.106v1.377a2.105 2.105 0 0 1-2.105 2.106h-6.92zM97.255 10v15.994h-1.762V10h1.762zm8.733 4.319h-1.827a3.81 3.81 0 0 0-3.811 3.81v4.054a3.81 3.81 0 0 0 3.811 3.81h1.827a3.811 3.811 0 0 0 3.811-3.81V18.13a3.811 3.811 0 0 0-3.811-3.81zm-1.827 1.762a2.05 2.05 0 0 0-2.049 2.048v4.054a2.05 2.05 0 0 0 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049V18.13a2.048 2.048 0 0 0-2.048-2.048h-1.827zM125.204 26v-5.754h2.148L130.674 26h2.035l-3.821-6.618 2.993-5.184h-2.035l-2.474 4.286h-2.168V10h-1.762v16h1.762zm-5.556-7.56v-.31a2.048 2.048 0 0 0-2.048-2.05h-1.827a2.048 2.048 0 0 0-2.049 2.05v4.053c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.312h-1.762zm17.918 7.554V10h-1.762v15.994h1.762zm4.989-5.357v1.546c0 1.132.917 2.049 2.049 2.049h1.827a2.048 2.048 0 0 0 2.048-2.049v-.311h1.762v.311a3.81 3.81 0 0 1-3.81 3.81h-1.827a3.81 3.81 0 0 1-3.811-3.81V18.13a3.81 3.81 0 0 1 3.811-3.81h1.827a3.81 3.81 0 0 1 3.81 3.81v.746h.001v1.762h-7.687zm5.924-1.762h-5.924v-.746c0-1.131.917-2.048 2.049-2.048h1.827c1.131 0 2.048.917 2.048 2.048v.746zm5.489-1.912H152.4v-1.762h1.568v-2.848h1.684v2.848h4.077v1.762h-4.077v5.677a1.669 1.669 0 1 0 3.339 0v-.35h1.684v.35a3.353 3.353 0 1 1-6.707 0v-5.677z",fill:"#fff"}),s.createElement("path",{d:"M92.112 50.259v3.108H80.254V33.123h3.766v17.136h8.092zm9.731-3.024c-.999.047-1.839.135-2.52.266-.681.121-1.227.28-1.638.476-.41.196-.705.425-.882.686a1.49 1.49 0 0 0-.266.854c0 .606.177 1.04.532 1.302.364.261.835.392 1.414.392.71 0 1.32-.126 1.834-.378.523-.261 1.031-.654 1.526-1.176v-2.422zm-7.924-6.23c1.652-1.512 3.64-2.268 5.964-2.268.84 0 1.591.14 2.254.42.663.27 1.223.653 1.68 1.148a4.765 4.765 0 0 1 1.036 1.75c.243.681.364 1.428.364 2.24v9.072h-1.568c-.327 0-.579-.047-.756-.14-.177-.103-.317-.303-.42-.602l-.308-1.036c-.364.327-.719.616-1.064.868a6.54 6.54 0 0 1-1.078.616 5.498 5.498 0 0 1-1.204.378c-.42.093-.887.14-1.4.14-.607 0-1.167-.08-1.68-.238a3.775 3.775 0 0 1-1.33-.742 3.297 3.297 0 0 1-.868-1.218c-.206-.486-.308-1.05-.308-1.694a3.308 3.308 0 0 1 .77-2.114 5.12 5.12 0 0 1 1.078-.924c.438-.29.975-.541 1.61-.756a13.74 13.74 0 0 1 2.24-.518c.85-.14 1.82-.224 2.912-.252v-.84c0-.962-.205-1.67-.616-2.128-.411-.467-1.003-.7-1.778-.7-.56 0-1.027.065-1.4.196-.364.13-.686.28-.966.448-.28.159-.537.303-.77.434-.224.13-.476.196-.756.196-.243 0-.448-.06-.616-.182a1.67 1.67 0 0 1-.406-.448l-.616-1.106zm26.931-2.002v14.364h-2.114c-.458 0-.747-.21-.868-.63l-.238-1.148a7.862 7.862 0 0 1-1.946 1.456c-.71.364-1.545.546-2.506.546-.784 0-1.48-.13-2.086-.392a4.236 4.236 0 0 1-1.512-1.134 5.016 5.016 0 0 1-.938-1.722 7.52 7.52 0 0 1-.308-2.212v-9.128h3.458v9.128c0 .877.2 1.559.602 2.044.41.476 1.022.714 1.834.714.597 0 1.157-.13 1.68-.392a6.037 6.037 0 0 0 1.484-1.106V39.003h3.458zm6.662 1.764c.29-.29.593-.556.91-.798a5.623 5.623 0 0 1 2.184-1.036 5.542 5.542 0 0 1 1.344-.154c.784 0 1.48.135 2.086.406a3.957 3.957 0 0 1 1.512 1.12 4.69 4.69 0 0 1 .924 1.722c.215.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.2-1.554-.602-2.03-.401-.486-1.012-.728-1.834-.728-.597 0-1.157.135-1.68.406a6.04 6.04 0 0 0-1.484 1.106v10.388h-3.458V39.003h2.114c.448 0 .742.21.882.63l.238 1.134zm22.861 1.273a1.577 1.577 0 0 1-.308.309c-.093.075-.233.112-.42.112a.982.982 0 0 1-.518-.154 9.315 9.315 0 0 0-.602-.364 3.902 3.902 0 0 0-.84-.364c-.317-.112-.714-.168-1.19-.168-.607 0-1.139.112-1.596.336-.457.215-.84.527-1.148.938-.299.41-.523.91-.672 1.498-.149.578-.224 1.236-.224 1.974 0 .765.079 1.447.238 2.044.168.597.406 1.101.714 1.512.308.401.681.71 1.12.924.439.205.933.308 1.484.308.551 0 .994-.066 1.33-.196.345-.14.635-.29.868-.448.233-.168.434-.318.602-.448a.925.925 0 0 1 .588-.21c.28 0 .49.107.63.322l.994 1.26a6.449 6.449 0 0 1-1.246 1.134 7.144 7.144 0 0 1-1.4.728 7.208 7.208 0 0 1-1.484.378 10.3 10.3 0 0 1-1.512.112 6.448 6.448 0 0 1-2.506-.49 6 6 0 0 1-2.058-1.456c-.588-.635-1.055-1.41-1.4-2.324-.336-.924-.504-1.974-.504-3.15 0-1.055.149-2.03.448-2.926.308-.906.756-1.685 1.344-2.338a6.09 6.09 0 0 1 2.184-1.554c.868-.373 1.867-.56 2.996-.56 1.073 0 2.011.172 2.814.518.812.345 1.54.84 2.184 1.484l-.91 1.26zm6.676-1.497a7.51 7.51 0 0 1 1.848-1.274c.672-.327 1.46-.49 2.366-.49.784 0 1.479.135 2.086.406.606.261 1.11.634 1.512 1.12.41.476.718 1.05.924 1.722.214.663.322 1.395.322 2.198v9.142h-3.458v-9.142c0-.878-.201-1.554-.602-2.03-.402-.486-1.013-.728-1.834-.728-.598 0-1.158.135-1.68.406-.523.27-1.018.64-1.484 1.106v10.388h-3.458V32.563h3.458v7.98zm21.6 3.99a3.95 3.95 0 0 0-.196-1.26 2.908 2.908 0 0 0-.559-1.05 2.562 2.562 0 0 0-.967-.7c-.382-.178-.83-.266-1.343-.266-.999 0-1.788.285-2.367.854-.569.57-.933 1.377-1.091 2.422h6.523zm-6.593 2.086c.056.737.186 1.377.392 1.918.205.532.475.975.811 1.33.336.345.733.607 1.191.784.466.168.98.252 1.54.252s1.04-.066 1.442-.196c.41-.13.765-.276 1.063-.434.308-.159.575-.304.799-.434.233-.13.457-.196.671-.196.29 0 .504.107.644.322l.995 1.26a5.93 5.93 0 0 1-1.289 1.134 7.641 7.641 0 0 1-1.498.728 8.291 8.291 0 0 1-1.581.378 11.28 11.28 0 0 1-1.554.112 7.766 7.766 0 0 1-2.786-.49 6.352 6.352 0 0 1-2.24-1.47c-.635-.653-1.134-1.456-1.498-2.408-.364-.962-.546-2.072-.546-3.332 0-.98.158-1.9.476-2.758.317-.868.77-1.62 1.358-2.254a6.462 6.462 0 0 1 2.17-1.526c.858-.373 1.824-.56 2.898-.56.905 0 1.74.144 2.506.434a5.41 5.41 0 0 1 1.973 1.274c.551.55.981 1.232 1.289 2.044.317.803.475 1.722.475 2.758 0 .523-.055.877-.167 1.064-.112.177-.327.266-.644.266h-8.89zm15.559-5.124c.448-.859.98-1.53 1.596-2.016.616-.495 1.344-.742 2.184-.742.662 0 1.194.145 1.596.434l-.224 2.59c-.047.168-.117.29-.21.364a.558.558 0 0 1-.35.098c-.14 0-.35-.023-.63-.07a4.704 4.704 0 0 0-.798-.07c-.383 0-.724.056-1.022.168a2.57 2.57 0 0 0-.812.49 3.359 3.359 0 0 0-.63.756c-.178.298-.346.64-.504 1.022v8.848h-3.458V39.003h2.03c.354 0 .602.065.742.196.14.121.233.345.28.672l.21 1.624z",fill:"#fff"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 10.642 30.72 0 12.288 10.642v14.152L0 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L61.44 53.172V31.89l-12.288-7.095V10.642zM59.52 32.997l-12.288-7.094V11.75L30.72 2.217 14.208 11.75v14.153L1.92 32.997v19.067l16.512 9.533L30.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M49.152 24.83 30.72 14.19 12.288 24.831v21.283L30.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L30.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L28.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L37.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:30.72,y1:95.721,x2:94.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:27.437,y1:99.246,x2:97.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})))),it=t=>s.createElement("svg",{width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 10.642 31.72 0 13.288 10.642v14.152L1 31.89v21.283l18.432 10.642 12.258-7.077.03.017.03-.017 12.258 7.077L62.44 53.172V31.89l-12.288-7.095V10.642zM60.52 32.997l-12.288-7.094V11.75L31.72 2.217 15.208 11.75v14.153L2.92 32.997v19.067l16.512 9.533L31.69 54.52l.03.017.03-.017 12.258 7.077 16.512-9.533V32.997z",fill:"url(#a)"}),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M50.152 24.83 31.72 14.19 13.288 24.831v21.283L31.72 56.756l18.432-10.642V24.831zm-34.944 1.11 16.512-9.534 16.512 9.533v19.067L31.72 54.539l-16.512-9.533V25.939zm14.52-3.756.484.284 12.202 7.142 1.073.61V40.4l-.408.287-.461.32-12.89 7.545-7.743-4.503.02-17.35 7.722-4.516zm-5.822 20.762.017-15.145 5.804-3.393 11.728 6.866.112.063v8.066L29.725 46.33l-5.819-3.384zm4.04-12.717 1.442-.827L38.2 34.53v1.66l-8.845 5.146-1.443-.833.034-10.273zm7.862 5.133-5.971 3.474.023-6.935 5.948 3.46z",fill:"url(#b)"}),s.createElement("defs",null,s.createElement("linearGradient",{id:"a",x1:31.72,y1:95.721,x2:95.488,y2:34.325,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"})),s.createElement("linearGradient",{id:"b",x1:28.437,y1:99.246,x2:98.761,y2:44.937,gradientUnits:"userSpaceOnUse"},s.createElement("stop",{stopColor:"#0FA4B7"}),s.createElement("stop",{offset:.495,stopColor:"#1DC1C7"}),s.createElement("stop",{offset:1,stopColor:"#2BE0D7"}))));var s1=function(a){return e.jsx("svg",{...a,children:e.jsx("path",{d:"M4.006 31a3.005 3.005 0 0 1-2.991-2.717L1 27.995V5.956a3.005 3.005 0 0 1 2.717-2.99l.289-.015h9.015a3.005 3.005 0 0 1 2.992 2.715l.014.29v.51l4.385-4.547a3.005 3.005 0 0 1 4.021-.276l.233.202 5.523 5.46a3.005 3.005 0 0 1 .223 4.029l-.207.232-4.63 4.408h.47a3.005 3.005 0 0 1 2.99 2.715l.014.29v9.016a3.005 3.005 0 0 1-2.714 2.991l-.29.014H4.004Zm10.017-13.023H3.004v10.018a1.002 1.002 0 0 0 .653.94l.168.046.18.015h10.018V17.977Zm12.021 0H16.027v11.02h10.017a1.002 1.002 0 0 0 .986-.822l.016-.18v-9.016a1.002 1.002 0 0 0-.822-.986l-.18-.016Zm-10.017-5.59v3.587h3.586l-3.586-3.586ZM13.02 4.956H4.006a1.002 1.002 0 0 0-.986.821l-.016.18v10.018h11.02V5.956a1.002 1.002 0 0 0-.654-.94l-.168-.045-.18-.016Zm10.262-1.657a1.008 1.008 0 0 0-1.292-.106l-.136.12-5.241 5.435a1.001 1.001 0 0 0-.114 1.248l.126.157 5.24 5.239a1.002 1.002 0 0 0 1.243.14l.156-.122 5.526-5.263a1.002 1.002 0 0 0 .108-1.279l-.118-.138-5.498-5.431Z"})})};s1.defaultProps={width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"};const n1="https://launcher.arcblock.io",l1=t=>{if(!t)return n1;const{protocol:a,host:f}=y1(b1(t));return`${a}//${f}`},r1=t=>t?{"__did-connect__":w1.from(JSON.stringify({switchBehavior:"auto",forceConnected:t,showClose:!1}),"utf8").toString("base64")}:{};function ht(t,a=n1,f=""){const{t:i}=X(),p=r1(f),{loading:h,value:I,error:v,retry:N}=tt(async()=>{if(t!=="serverless")return null;const d=l1(a),R=await He(d),m=Ge($(R,"/u/apps"),p);return{text:i("launchBlocklet.nav.myApps"),appText:i("launchBlocklet.nav.viewMyApps"),link:m,buttonProps:{sx:{fontSize:"1rem"}},icon:e.jsx(k1,{component:s1,fontSize:"small",viewBox:"0 0 32 32"})}},[t,a,f,i]);return t!=="serverless"||I===null?{}:h?{loading:!0}:v?{error:v,retry:N}:I||{}}function ut({style:t,...a}={}){const{palette:f}=Ce(),i=at({key:"md"}),h=f.mode==="dark"?ct:ot;return i?e.jsx(it,{width:"32",height:"32",style:{cursor:"pointer",...t},...a}):e.jsx(h,{width:"145",height:"48",style:{cursor:"pointer",...t},...a})}function dt(){const{t}=X(),{info:a}=ie(),f=Ke(),i=decodeURIComponent(f.get("accessUrl")||""),{meta:p}=he();return e.jsx(pt,{children:e.jsx("div",{className:"body",children:e.jsx(ce,{variant:"success",title:J.getDisplayName({meta:p},!0),subTitle:t("launchBlocklet.installSuccess",{serverName:a.name}),footer:e.jsx(mt,{href:i,rel:"noreferrer","data-cy":"open-blocklet",children:t("common.open")})})})})}const mt=S.a`
2
2
  display: block;
3
3
  height: 36px;
4
4
  color: ${t=>t.theme.palette.primary.main};
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./connect-2JDWTFDP.js","./provider-icon-Dm9XYo2I.js","./index-CDd3s2GI.js","./connect-T2HSoIw4.css","./index-BVJB29cJ.js","./index-BojVbZw0.js","./index-B8qqbKQt.js","./metric-chc-qmc8.js","./CardContent-CYNmFsYJ.js","./click-to-copy-BbJJzGI1.js","./index-FdUIQyuT.js","./useLocalStorage-Dpl2DibN.js","./ErrorOutline-CjKNiJFO.js","./index-BHQcEGDq.js","./FilterList-Dphn1UXx.js","./CSSTransition-DinXVMZy.js","./emotion-cache.browser.esm-Epiq9rij.js","./index-CsTd8Q4H.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-Cvglsxh5.js","./TableSearch-DxZYknBa.js","./Search-CUoYhy1v.js","./Clear-Chg9fOPG.js","./MoreVert-KNjOpSoE.js","./status-B-GGRrEB.js","./actions-Wo9kGXdj.js","./DeleteOutline-BjSm7PCr.js","./get-safe-url-QppwE77w.js","./ButtonGroup-C_JbniJW.js","./getValidReactChildren-Cjo-LFyx.js","./url-evaluation-DetQFE_e.js","./permission-D09K4EY6.js","./install-from-url-PuHPLadE.js","./without-wallet-qfmn1VhQ.js","./index-BdVOugOI.js","./cloneDeep-DNOsGRuG.js","./Delete-B306vkSB.js","./Autocomplete-79tADtg2.js","./ListSubheader-CHT01bOG.js","./ListItemButton-C8XIzvy_.js","./Stepper-DfUO9buC.js","./Launch-Cor8d4pT.js","./Add-b-MNk7UB.js","./index-B4fcaU-r.js","./schema-DidDB4o0.js","./index-DJfXtT-f.js","./toLower-DwWNsNMJ.js","./index-BSBkhGl0.js","./url-join-rRKl4Ear.js","./wait-container-CxHAyAQN.js","./use-mobile-DOhPXmq7.js","./spaces-BrB8zqzV.js","./api-eF9wxSJp.js","./index-CbK68mel.js","./item-hbtsGcq0.js","./index-CbnvHmOA.js","./KeyboardArrowDown-CD6n37Y9.js","./ChevronLeft-Byy2_Dj8.js","./ChevronRight-BKFXnJ7g.js","./blocklet-ClPWX-SV.js","./Verified-CfonAx-G.js","./VerifiedUser-wCwGdsz1.js","./Done-Bh0vP7e6.js","./delete-confirm-Cx4JPY2I.js","./item-G0iZE90Q.css","./engine-a9f8P0CB.js","./ArrowDropDown-lsZjWbH5.js","./Breadcrumbs-Cqjt-kp8.js","./index-tNmk7CjJ.js","./html-title-BpNgi7iw.js","./index.esm-WZ7Avw4n.js","./switch-control-X9WA2UjB.js","./Link-Mg5UlAaZ.js","./actions-D1YtdqKL.js","./logo-BKA11TRi.js","./Refresh-B0_3c6OW.js","./LoadingButton-DtnAWL1w.js","./rotate-session-key-Bfdv46s3.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-BAfeJQQq.js","./Edit-DFmlgA7E.js","./CallMerge-CF5jo3Pw.js","./index-0NOALS_P.js","./download-Df1TrhTI.js","./index-CHgpIuFF.js","./audit-logs-CLt2l7-q.js","./index-WHQs_PkC.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-DvSw9pGy.js","./shorten-label-CN9pEyom.js","./team-B9jB42uy.js","./index-CKWS_NIP.js","./ViewList-DhdvL6AT.js","./index-D_L4A5jU.js","./Google-C0G3l0jL.js","./EditOutlined-Qskj3-tY.js","./AdapterDayjs-Chnfr9fe.js","./useThemeProps-BS48y1B2.js","./index-BfnrUUfH.js","./sdk-l1r4MOQ_.js","./ua-parser-DP5omx3I.js","./index-CBHMH4Z7.js","./edit.svg-833vjqGH.js","./list-header-C3SJDsfy.js","./chain-Bg9mny_E.js","./ToggleButtonGroup-BwLu2zCu.js","./lock.svg-CGmlgpmU.js","./useAsyncRetry-CGp0YSlH.js","./useAsync-B59MJoKM.js","./index-ZgkIHsf0.css","./detail-Cgws9Fjd.js","./index-BJVvRV0h.js","./index-DqkfLKvE.js","./invitation-Bi2QgUpB.js","./wrap-locale-D8IL6u8L.js","./index-DSjaZAu3.js","./index-BqrWLXQw.js","./index-iqFfmV_z.js","./index-BBe9oV9e.js","./agreement-07HiBYSX.js","./index-DrsAyGr6.js","./index-BikUP_wv.js","./index-B6x6Mq9n.js","./traffic-C_4zWOQM.js","./iframe-CH8rbppJ.js","./index-DBii9-f-.js","./base-chart-_0APPWGp.js","./index-BfTQCMKf.js","./index-DRYJ0xIl.js","./memory-lh5QZ4zg.js","./index-jHF3D4cy.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./connect-CdvuGCCf.js","./provider-icon-CFKcu3V6.js","./index-CVfXb0nN.js","./connect-T2HSoIw4.css","./index-Cp8XtCdH.js","./index-BojVbZw0.js","./index-B-25u8Uu.js","./metric-BcTiOrOk.js","./CardContent-DXDn75TD.js","./click-to-copy-D5SbepAS.js","./index-Fr0im6-l.js","./useLocalStorage-MLO2O-Eu.js","./ErrorOutline-jxA-S5AH.js","./index-DvMdH51T.js","./FilterList-B8T7rkYs.js","./CSSTransition-Dmpq-B51.js","./emotion-cache.browser.esm-CO4m2LjK.js","./index-Bd2vWvMu.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./depsEqual-D1oKMHHx.js","./TableSearch-NL7mGzF6.js","./Search-DobdZczv.js","./Clear-kzRbvP4u.js","./MoreVert-DJQ3tC1s.js","./status-cEVhL_8t.js","./actions-BHqqnvHK.js","./DeleteOutline-D2i9YJBS.js","./get-safe-url-D0pcxgUJ.js","./ButtonGroup-83J5hh2q.js","./getValidReactChildren-BrnINUbd.js","./url-evaluation-Bukt7_Lj.js","./permission-D1opDJhT.js","./install-from-url-C9wGB_q1.js","./without-wallet-U6nu7HMX.js","./index-BFzkIx2h.js","./cloneDeep-ChH4oif_.js","./Delete-Cw_Z_UMc.js","./Autocomplete-CZdtlRmS.js","./ListSubheader-BgTycqrg.js","./ListItemButton-DLzzgnWj.js","./Stepper-DJ4LlLol.js","./Launch-BHeCrhBj.js","./Add-CVe35B9U.js","./index-CB1i_uf2.js","./schema-iTOku2t8.js","./index-Jt9YjCeK.js","./toLower-CSOmIMZJ.js","./index-Cq78KErH.js","./url-join-xsOaQKQ2.js","./wait-container-80uXorh3.js","./use-mobile-BIQUR7Fz.js","./spaces-OwZlXUZ4.js","./api-ZR56mSDv.js","./index-ZuJcpT1T.js","./item-D4OgvExU.js","./index-Bmj3JRL8.js","./KeyboardArrowDown-CE7zJDcv.js","./ChevronLeft-B8v-crqw.js","./ChevronRight-DIxNh4jH.js","./blocklet-e4asDkfP.js","./Verified-pVnWh8ct.js","./VerifiedUser-Bq5EjyL0.js","./Done-CmV6TZSG.js","./delete-confirm-Dk2gUSc_.js","./item-G0iZE90Q.css","./engine-AOyfq5pg.js","./ArrowDropDown-59b471Ns.js","./Breadcrumbs-DOWk4s-Q.js","./index-BAYzgNzt.js","./html-title-CT8s_pnR.js","./index.esm-CL88L2RD.js","./switch-control-DfH5Tjol.js","./Link-C39j8j-1.js","./actions-QNxlOGpH.js","./logo-BKA11TRi.js","./Refresh-BpllOjUS.js","./LoadingButton-OiBPqmL8.js","./rotate-session-key-BiL0Bo_O.js","./visuallyHidden-Dan1xhjv.js","./is-path-prefix-equal-Df12gAPj.js","./Edit-DDUKSYdb.js","./CallMerge-CZNqia3S.js","./index-Fir5RRo8.js","./download-DjUrRSaE.js","./index-Ltxc7YUP.js","./audit-logs-BHIFDkts.js","./index-Cy488fNr.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-BNE7Q7I9.js","./shorten-label-BNzeaF4J.js","./team-BGXKsY22.js","./index-Bwnzqjf1.js","./ViewList-DikGBOob.js","./index-DVXDeiLF.js","./Google-Bg8SlDZS.js","./EditOutlined-MUSbzQj_.js","./AdapterDayjs-CtD5my-S.js","./useThemeProps-C4X8Xuf-.js","./index-bAcW8HYF.js","./sdk-B0lvz_Iz.js","./ua-parser-DP5omx3I.js","./index-DxFY8dMO.js","./edit.svg-BGFHNdYl.js","./list-header-CjwjgfKp.js","./chain-CADjEEjt.js","./ToggleButtonGroup-1ZqP29sD.js","./lock.svg-BmAm_LJl.js","./useAsyncRetry-CUFV5zTA.js","./useAsync-tWL_hrVo.js","./index-ZgkIHsf0.css","./detail-BSLJegmW.js","./index-BazbEWXv.js","./index-CIjzdo65.js","./invitation-DBHFAKTZ.js","./wrap-locale-pkCcV7CX.js","./index-BaJk36L1.js","./index-Dpw7fQUd.js","./index-DfDHgwS-.js","./index-DLJTQrAL.js","./agreement-D-rCiZRR.js","./index-DuNah4NO.js","./index-Cmvy-qPR.js","./index-D2bmvDtL.js","./traffic-DvCEQ5xd.js","./iframe-BzTEh7qO.js","./index-DBii9-f-.js","./base-chart-CbniXo_r.js","./index-LvA6paIR.js","./index-DRYJ0xIl.js","./memory-DO3ZqhrY.js","./index-AoP-pJu3.js"])))=>i.map(i=>d[i]);
2
2
  function _mergeNamespaces(ee,ye){for(var Ee=0;Ee<ye.length;Ee++){const Se=ye[Ee];if(typeof Se!="string"&&!Array.isArray(Se)){for(const Ie in Se)if(Ie!=="default"&&!(Ie in ee)){const Oe=Object.getOwnPropertyDescriptor(Se,Ie);Oe&&Object.defineProperty(ee,Ie,Oe.get?Oe:{enumerable:!0,get:()=>Se[Ie]})}}}return Object.freeze(Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"}))}(function(){const ye=document.createElement("link").relList;if(ye&&ye.supports&&ye.supports("modulepreload"))return;for(const Ie of document.querySelectorAll('link[rel="modulepreload"]'))Se(Ie);new MutationObserver(Ie=>{for(const Oe of Ie)if(Oe.type==="childList")for(const Ne of Oe.addedNodes)Ne.tagName==="LINK"&&Ne.rel==="modulepreload"&&Se(Ne)}).observe(document,{childList:!0,subtree:!0});function Ee(Ie){const Oe={};return Ie.integrity&&(Oe.integrity=Ie.integrity),Ie.referrerPolicy&&(Oe.referrerPolicy=Ie.referrerPolicy),Ie.crossOrigin==="use-credentials"?Oe.credentials="include":Ie.crossOrigin==="anonymous"?Oe.credentials="omit":Oe.credentials="same-origin",Oe}function Se(Ie){if(Ie.ep)return;Ie.ep=!0;const Oe=Ee(Ie);fetch(Ie.href,Oe)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs$1(ee){return ee&&ee.__esModule&&Object.prototype.hasOwnProperty.call(ee,"default")?ee.default:ee}function getAugmentedNamespace(ee){if(Object.prototype.hasOwnProperty.call(ee,"__esModule"))return ee;var ye=ee.default;if(typeof ye=="function"){var Ee=function Se(){var Ie=!1;try{Ie=this instanceof Se}catch{}return Ie?Reflect.construct(ye,arguments,this.constructor):ye.apply(this,arguments)};Ee.prototype=ye.prototype}else Ee={};return Object.defineProperty(Ee,"__esModule",{value:!0}),Object.keys(ee).forEach(function(Se){var Ie=Object.getOwnPropertyDescriptor(ee,Se);Object.defineProperty(Ee,Se,Ie.get?Ie:{enumerable:!0,get:function(){return ee[Se]}})}),Ee}var jsxRuntime={exports:{}},reactJsxRuntime_production={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -530,7 +530,7 @@ ${ye.join(`
530
530
  word-break: break-word;
531
531
  `;function y$6({...ee}){const{user:ye,avatarSize:Ee=40,renderCustomContent:Se,infoType:Ie=o$d.Minimal,renderFields:Oe,popupRenderFields:Ne,...He}=ee;return jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",width:"100%",flex:1,height:"100%"},children:[jsxRuntimeExports.jsx(P$3,{user:ye,avatarSize:Ee,...He}),Ie===o$d.Basic&&jsxRuntimeExports.jsx(le$2,{user:ye,renderFields:Oe}),jsxRuntimeExports.jsx(Box,{className:"user-card__footer",children:Se&&jsxRuntimeExports.jsx(Box,{sx:{mt:1.5},children:Se()})})]})}function i$6({...ee}){return jsxRuntimeExports.jsx(y$6,{...ee})}function p$a({children:ee,sx:ye={}}){const Ee=useTheme();return jsxRuntimeExports.jsx(Box,{sx:o$f({p:2,backgroundColor:Ee.palette.background.paper,border:"1px solid",borderColor:"divider",borderRadius:1,maxWidth:500,minWidth:320,display:"flex"},ye||null),children:ee})}function b$8({children:ee,cardType:ye=l$g.Detailed,variant:Ee="box",containerRef:Se=void 0,sx:Ie={}}){const Oe={minWidth:320,p:2,borderRadius:1,...ye===l$g.Detailed?{border:"1px solid",borderColor:"divider"}:{}};return Ee==="paper"?jsxRuntimeExports.jsx(Paper,{ref:Se,elevation:0,sx:Oe,children:ee}):jsxRuntimeExports.jsx(Box,{ref:Se,sx:o$f(Oe,{display:"flex",alignItems:ye===l$g.AvatarOnly?"center":"flex-start",gap:2},Ie||null),children:ee})}function B$3(ee){const{cardType:ye=l$g.Detailed,showHoverCard:Ee}=ee,Se=Ee!==void 0?Ee:ye===l$g.AvatarOnly,Ie=reactExports.useRef(null),[Oe,Ne]=reactExports.useState(()=>ee.user||null);reactExports.useEffect(()=>{let Ye=!0;return ee.user?Ne(ee.user):ee.did&&S$4(ee.did)&&!ee.user&&I$5(ee.did).then(Ge=>{Ye&&Ne(Ge||{fullName:"Anonymous",did:ee.did,avatar:""})}),()=>{Ye=!1}},[ee.did,ee.user]);const He=reactExports.useMemo(()=>{if(!Oe)return null;const{avatar:Ye="",...Ge}=Oe;if(Ye){const Qe=Ye.split("?")[1]||"";return{...Ge,avatar:Qe?Ye:`${Ye}?imageFilter=resize&w=48&h=48`}}return Oe},[Oe]);if(!He)return jsxRuntimeExports.jsx($$4,{did:ee.did,size:ee.avatarSize,useProxyFallback:!0,...ee.avatarProps});const Ue=()=>jsxRuntimeExports.jsx(p$a,{sx:ee.popupSx,children:jsxRuntimeExports.jsx(i$6,{...ee,shouldShowHoverCard:!1,user:He,avatarProps:ee.popupAvatarProps,shortenLabelProps:ee.popupShortenLabelProps||ee.shortenLabelProps,renderFields:ee.popupRenderFields,renderName:ee.popupRenderName,infoType:ee.popupInfoType||ee.infoType,didProps:ee.popupDidProps||ee.didProps,showDid:ee.popupShowDid||ee.showDid,showSocialActions:ee.popupShowSocialActions===void 0?ee.showSocialActions:ee.popupShowSocialActions})});return ye===l$g.AvatarOnly?jsxRuntimeExports.jsx(p$d,{...ee,shouldShowHoverCard:Se,renderCardContent:Ue,user:He}):jsxRuntimeExports.jsx(b$8,{containerRef:Ie,cardType:ye,sx:ee.sx,children:jsxRuntimeExports.jsx(i$6,{...ee,shouldShowHoverCard:Se,renderCardContent:Ue,user:He})})}const data$r={width:24,height:24,body:'<path fill="currentColor" d="M5.825 16L7.7 17.875q.275.275.275.688t-.275.712q-.3.3-.713.3t-.712-.3L2.7 15.7q-.15-.15-.213-.325T2.426 15q0-.2.063-.375T2.7 14.3l3.6-3.6q.3-.3.7-.287t.7.312q.275.3.288.7t-.288.7L5.825 14H12q.425 0 .713.288T13 15q0 .425-.288.713T12 16H5.825Zm12.35-6H12q-.425 0-.713-.288T11 9q0-.425.288-.713T12 8h6.175L16.3 6.125q-.275-.275-.275-.688t.275-.712q.3-.3.713-.3t.712.3L21.3 8.3q.15.15.212.325t.063.375q0 .2-.063.375T21.3 9.7l-3.6 3.6q-.3.3-.7.288t-.7-.313q-.275-.3-.288-.7t.288-.7L18.175 10Z"/>'};function m$a({user:ee,switchPassport:ye}){const Ee=useCreation(()=>(ee?.passports||[])?.find(Se=>Se.name===ee.role||Se.role===ee.role),[ee?.passports,ee?.role]);return jsxRuntimeExports.jsx(Chip,{label:Ee?.title||ee?.role||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:"text.primary",borderColor:"grey.100",backgroundColor:"transparent",textTransform:"capitalize",pr:1,pl:.5,"&:active":{boxShadow:"none"}},clickable:!0,deleteIcon:jsxRuntimeExports.jsx(Icon,{icon:data$r,color:"inherit"}),onDelete:ye,onClick:ye})}reactExports.memo(m$a);const s$a=reactExports.createContext({blocklet:null,masterBlocklet:null}),{Provider:g$9,Consumer:M$5}=s$a;function j$5({children:ee,baseUrl:ye="",loading:Ee=null}){const[Se,Ie]=reactExports.useState(null),[Oe,Ne]=reactExports.useState(null),He=useMemoizedFn(async()=>{if(!ye||window.location.href.startsWith(ye))throw new Error("no blocklet data");return await l$r(ye)});return useAsyncEffect(async()=>{let Ue=null,Ye=null;try{Ue=await He()}catch{Ue=globalThis.blocklet||globalThis.env}if(Ue&&d$j(Ue)){const Ge=i$d(Ue);Ge&&(Ye=await l$r(Ge.appUrl))}Ie(Ue),Ne(Ye)},[ye]),jsxRuntimeExports.jsx(g$9,{value:{blocklet:Se,masterBlocklet:Oe},children:Se?ee:Ee||null})}function E$6(){const{blocklet:ee,masterBlocklet:ye}=reactExports.use(s$a);return{blocklet:ee,masterBlocklet:ye}}function p$9(ee){function ye({...Se}){const{blocklet:Ie,masterBlocklet:Oe}=E$6();return jsxRuntimeExports.jsx(ee,{...Se,blocklet:Ie,masterBlocklet:Oe})}function Ee({baseUrl:Se,...Ie}){return jsxRuntimeExports.jsx(j$5,{baseUrl:Se,children:jsxRuntimeExports.jsx(ye,{baseUrl:Se,...Ie})})}return Ee}var n$6={call:function(ee,ye,Ee){var Se="";typeof ye=="function"&&(Ee=ye,ye={});var Ie={data:ye===void 0?null:ye};if(typeof Ee=="function"){var Oe="dscb"+window.dscb++;window[Oe]=Ee,Ie._dscbstub=Oe}return Ie=JSON.stringify(Ie),window._dsbridge?Se=_dsbridge.call(ee,Ie):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(Se=prompt("_dsbridge="+ee,Ie)),JSON.parse(Se||"{}").data},register:function(ee,ye,Ee){var Se=Ee?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){n$6.call("_dsb.dsinit")},0)),typeof ye=="object"?Se._obs[ee]=ye:Se[ee]=ye},registerAsyn:function(ee,ye){this.register(ee,ye,!0)},hasNativeMethod:function(ee,ye){return this.call("_dsb.hasNativeMethod",{name:ee,type:ye||"all"})},disableJavascriptDialogBlock:function(ee){this.call("_dsb.disableJavascriptDialogBlock",{disable:ee!==!1})},canUseBridge(){return!!(window._dsbridge||window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)}};(function(){if(!n$6.canUseBridge()||window._dsf)return;const ee=window.close;var ye={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:n$6,close:function(){n$6.call("_dsb.closePage"),ee()},_handleMessageFromNative:function(Se){var Ie=JSON.parse(Se.data),Oe={id:Se.callbackId,complete:!0},Ne=this._dsf[Se.method],He=this._dsaf[Se.method],Ue=function(at,ot){Oe.data=at.apply(ot,Ie),n$6.call("_dsb.returnValue",Oe)},Ye=function(at,ot){Ie.push(function(lt,ut){Oe.data=lt,Oe.complete=ut!==!1,n$6.call("_dsb.returnValue",Oe)}),at.apply(ot,Ie)};if(Ne)Ue(Ne,this._dsf);else if(He)Ye(He,this._dsaf);else{var Ge=Se.method.split(".");if(Ge.length<2)return;var Qe=Ge.pop(),et=Ge.join("."),tt=this._dsf._obs,rt=tt[et]||{},it=rt[Qe];if(it&&typeof it=="function"){Ue(it,rt);return}if(tt=this._dsaf._obs,rt=tt[et]||{},it=rt[Qe],it&&typeof it=="function"){Ye(it,rt);return}}}};for(var Ee in ye)window[Ee]=ye[Ee];n$6.register("_hasJavascriptMethod",function(Ne,Ie){var Oe=Ne.split(".");if(Oe.length<2)return!!(_dsf[Oe]||_dsaf[Oe]);var Ne=Oe.pop(),He=Oe.join("."),Ue=_dsf._obs[He]||_dsaf._obs[He];return Ue&&!!Ue[Ne]})})();const f$6="1",g$8={register(...ee){n$6.canUseBridge()?n$6.register(...ee):console.warn("dsbridge is not available")},registerAsyn(...ee){n$6.canUseBridge()?n$6.registerAsyn(...ee):console.warn("dsbridge is not available")},call(...ee){n$6.call(...ee)},asyncCall(...ee){return new Promise((ye,Ee)=>{n$6.call(...ee,Se=>{try{const Ie=JSON.parse(Se);if(Ie.code===0){const Oe=JSON.parse(Ie.data);ye(Oe)}else Ee(new Error(Ie.error))}catch{ye(Se)}})})},shareMessage(ee){const{content:ye,imgUrl:Ee,success:Se,fail:Ie}=ee;if(!ye&&!Ee){Ie("params error");return}n$6.call("arcShare",JSON.stringify({content:ye,imgUrl:Ee}),Oe=>{const Ne=JSON.parse(Oe);Ne&&Ne.code===0?typeof Se=="function"&&Se(Oe):typeof Ie=="function"&&Ie(Oe)})},showLoading(){n$6.call("arcShowLoading")},hideLoading(){n$6.call("arcHideLoading")},showToast(ee){ee&&typeof ee=="string"&&n$6.call("arcToast",ee)},chooseImgs(ee){const{limit:ye,success:Ee,fail:Se}=ee;n$6.call("arcChooseImgs",JSON.stringify({limit:ye}),Ie=>{const Oe=JSON.parse(Ie);Oe&&Oe.code===0?typeof Ee=="function"&&Ee(Ie):typeof Se=="function"&&Se(Ie)})},previewImgs(ee){const{imgs:ye}=ee;!ye||ye.length===0||n$6.call("arcPreviewImgs",JSON.stringify(ee))},isSetPWD(ee){const{success:ye,fail:Ee}=ee;n$6.call("arcIsSetPWD","",Se=>{const Ie=JSON.parse(Se);Ie&&Ie.code===0?typeof ye=="function"&&ye(Se):typeof Ee=="function"&&Ee(Se)})},isCodeABOk(ee){const{success:ye,fail:Ee}=ee;n$6.call("arcIsCodeABOk","",Se=>{const Ie=JSON.parse(Se);Ie&&Ie.code===0?typeof ye=="function"&&ye(Se):typeof Ee=="function"&&Ee(Se)})},callArc(ee,ye={}){return new Promise((Ee,Se)=>{const Ie=["arc",ee].join("__"),Oe={...ye,_version:f$6};n$6.call(Ie,Oe,Ne=>{try{const He=JSON.parse(Ne);if(He?._version===f$6)if(He.code===0)try{const Ue=JSON.parse(He.data);Ee(Ue)}catch{console.warn("Failed to parse result.data"),Ee(He.data)}else Se(new Error(He.error));else Ee(He)}catch{console.warn("Failed to parse resString"),Ee(Ne)}})})},registerBlocklet(ee,ye=()=>{}){if(n$6.canUseBridge()){const Ee=["blocklet",ee].join("__");n$6.registerAsyn(Ee,(...Se)=>{const Ie=Se.map(Oe=>{try{return JSON.parse(Oe)}catch{return Oe}});ye(...Ie)})}else console.warn("dsbridge is not available")}},overheadLength=l$l.box.publicKeyLength+l$l.box.overheadLength;var util$5,hasRequiredUtil$4;function requireUtil$4(){if(hasRequiredUtil$4)return util$5;hasRequiredUtil$4=1;const ee="Input must be an string, Buffer or Uint8Array";function ye(Ne){let He;if(Ne instanceof Uint8Array)He=Ne;else if(typeof Ne=="string")He=new TextEncoder().encode(Ne);else throw new Error(ee);return He}function Ee(Ne){return Array.prototype.map.call(Ne,function(He){return(He<16?"0":"")+He.toString(16)}).join("")}function Se(Ne){return(4294967296+Ne).toString(16).substring(1)}function Ie(Ne,He,Ue){let Ye=`
532
532
  `+Ne+" = ";for(let Ge=0;Ge<He.length;Ge+=2){if(Ue===32)Ye+=Se(He[Ge]).toUpperCase(),Ye+=" ",Ye+=Se(He[Ge+1]).toUpperCase();else if(Ue===64)Ye+=Se(He[Ge+1]).toUpperCase(),Ye+=Se(He[Ge]).toUpperCase();else throw new Error("Invalid size "+Ue);Ge%6===4?Ye+=`
533
- `+new Array(Ne.length+4).join(" "):Ge<He.length-2&&(Ye+=" ")}console.log(Ye)}function Oe(Ne,He,Ue){let Ye=new Date().getTime();const Ge=new Uint8Array(He);for(let et=0;et<He;et++)Ge[et]=et%256;const Qe=new Date().getTime();console.log("Generated random input in "+(Qe-Ye)+"ms"),Ye=Qe;for(let et=0;et<Ue;et++){const tt=Ne(Ge),rt=new Date().getTime(),it=rt-Ye;Ye=rt,console.log("Hashed in "+it+"ms: "+tt.substring(0,20)+"..."),console.log(Math.round(He/(1<<20)/(it/1e3)*100)/100+" MB PER SECOND")}}return util$5={normalizeInput:ye,toHex:Ee,debugPrint:Ie,testSpeed:Oe},util$5}var blake2b_1,hasRequiredBlake2b;function requireBlake2b(){if(hasRequiredBlake2b)return blake2b_1;hasRequiredBlake2b=1;const ee=requireUtil$4();function ye(ot,lt,ut){const dt=ot[lt]+ot[ut];let ft=ot[lt+1]+ot[ut+1];dt>=4294967296&&ft++,ot[lt]=dt,ot[lt+1]=ft}function Ee(ot,lt,ut,dt){let ft=ot[lt]+ut;ut<0&&(ft+=4294967296);let bt=ot[lt+1]+dt;ft>=4294967296&&bt++,ot[lt]=ft,ot[lt+1]=bt}function Se(ot,lt){return ot[lt]^ot[lt+1]<<8^ot[lt+2]<<16^ot[lt+3]<<24}function Ie(ot,lt,ut,dt,ft,bt){const gt=Ye[ft],Tt=Ye[ft+1],_t=Ye[bt],Ct=Ye[bt+1];ye(Ue,ot,lt),Ee(Ue,ot,gt,Tt);let kt=Ue[dt]^Ue[ot],ct=Ue[dt+1]^Ue[ot+1];Ue[dt]=ct,Ue[dt+1]=kt,ye(Ue,ut,dt),kt=Ue[lt]^Ue[ut],ct=Ue[lt+1]^Ue[ut+1],Ue[lt]=kt>>>24^ct<<8,Ue[lt+1]=ct>>>24^kt<<8,ye(Ue,ot,lt),Ee(Ue,ot,_t,Ct),kt=Ue[dt]^Ue[ot],ct=Ue[dt+1]^Ue[ot+1],Ue[dt]=kt>>>16^ct<<16,Ue[dt+1]=ct>>>16^kt<<16,ye(Ue,ut,dt),kt=Ue[lt]^Ue[ut],ct=Ue[lt+1]^Ue[ut+1],Ue[lt]=ct>>>31^kt<<1,Ue[lt+1]=kt>>>31^ct<<1}const Oe=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Ne=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],He=new Uint8Array(Ne.map(function(ot){return ot*2})),Ue=new Uint32Array(32),Ye=new Uint32Array(32);function Ge(ot,lt){let ut=0;for(ut=0;ut<16;ut++)Ue[ut]=ot.h[ut],Ue[ut+16]=Oe[ut];for(Ue[24]=Ue[24]^ot.t,Ue[25]=Ue[25]^ot.t/4294967296,lt&&(Ue[28]=~Ue[28],Ue[29]=~Ue[29]),ut=0;ut<32;ut++)Ye[ut]=Se(ot.b,4*ut);for(ut=0;ut<12;ut++)Ie(0,8,16,24,He[ut*16+0],He[ut*16+1]),Ie(2,10,18,26,He[ut*16+2],He[ut*16+3]),Ie(4,12,20,28,He[ut*16+4],He[ut*16+5]),Ie(6,14,22,30,He[ut*16+6],He[ut*16+7]),Ie(0,10,20,30,He[ut*16+8],He[ut*16+9]),Ie(2,12,22,24,He[ut*16+10],He[ut*16+11]),Ie(4,14,16,26,He[ut*16+12],He[ut*16+13]),Ie(6,8,18,28,He[ut*16+14],He[ut*16+15]);for(ut=0;ut<16;ut++)ot.h[ut]=ot.h[ut]^Ue[ut]^Ue[ut+16]}const Qe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function et(ot,lt,ut,dt){if(ot===0||ot>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(lt&&lt.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(ut&&ut.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(dt&&dt.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const ft={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:ot};Qe.fill(0),Qe[0]=ot,lt&&(Qe[1]=lt.length),Qe[2]=1,Qe[3]=1,ut&&Qe.set(ut,32),dt&&Qe.set(dt,48);for(let bt=0;bt<16;bt++)ft.h[bt]=Oe[bt]^Se(Qe,bt*4);return lt&&(tt(ft,lt),ft.c=128),ft}function tt(ot,lt){for(let ut=0;ut<lt.length;ut++)ot.c===128&&(ot.t+=ot.c,Ge(ot,!1),ot.c=0),ot.b[ot.c++]=lt[ut]}function rt(ot){for(ot.t+=ot.c;ot.c<128;)ot.b[ot.c++]=0;Ge(ot,!0);const lt=new Uint8Array(ot.outlen);for(let ut=0;ut<ot.outlen;ut++)lt[ut]=ot.h[ut>>2]>>8*(ut&3);return lt}function it(ot,lt,ut,dt,ft){ut=ut||64,ot=ee.normalizeInput(ot),dt&&(dt=ee.normalizeInput(dt)),ft&&(ft=ee.normalizeInput(ft));const bt=et(ut,lt,dt,ft);return tt(bt,ot),rt(bt)}function at(ot,lt,ut,dt,ft){const bt=it(ot,lt,ut,dt,ft);return ee.toHex(bt)}return blake2b_1={blake2b:it,blake2bHex:at,blake2bInit:et,blake2bUpdate:tt,blake2bFinal:rt},blake2b_1}var blake2bExports=requireBlake2b();const blake=getDefaultExportFromCjs$1(blake2bExports);function nonce(ee,ye){var Ee=blake.blake2bInit(l$l.box.nonceLength,null);return blake.blake2bUpdate(Ee,ee),blake.blake2bUpdate(Ee,ye),blake.blake2bFinal(Ee)}function zero(ee){for(var ye=0;ye<ee.length;ye++)ee[ye]=0}function seal$1(ee,ye){var Ee=new Uint8Array(overheadLength+ee.length),Se=l$l.box.keyPair();Ee.set(Se.publicKey);var Ie=nonce(Se.publicKey,ye),Oe=l$l.box(ee,Ie,ye,Se.secretKey);return Ee.set(Oe,Se.publicKey.length),zero(Se.secretKey),Ee}function open(ee,ye,Ee){var Se=ee.subarray(0,l$l.box.publicKeyLength),Ie=nonce(Se,ye),Oe=ee.subarray(l$l.box.publicKeyLength);return l$l.box.open(Oe,Ie,Se,Ee)}const h$8={seal:seal$1,open};let i$5=class extends Error{};function h$7(ee,{throwOnError:ye=!0,returnRaw:Ee=!1,allowProtocols:Se=["https:","http:"],allowDomains:Ie=void 0}={}){Ie===void 0&&(Ie=window.blocklet?.domainAliases||[],Ie.push(window.location.href));try{let Oe;ee.startsWith("/")?Oe=window.location.origin:ee.startsWith("./")&&(Oe=window.location.href);const Ne=new URL(ee,Oe),He=Ie&&Ie.map(Ue=>{try{return new URL(Ue).hostname}catch{return new URL(`https://${Ue}`).hostname}});if(Se!==null&&!Se.includes(Ne.protocol)){if(console.error(`Invalid protocol: ${Ne.protocol}`),ye)throw new i$5(`Invalid protocol: ${Ne.protocol}`);return null}if(He!==null&&!He.includes(Ne.hostname)){if(console.error(`Invalid host: ${Ne.hostname}`),ye)throw new i$5(`Invalid host: ${Ne.hostname}`);return null}return Ee?ee:Ne.href}catch(Oe){if(Oe instanceof i$5){if(ye)throw Oe;return null}if(console.error(`Failed to convert url: ${ee}`),ye)throw new Error(`Failed to convert url: ${ee}`);return null}}const c$6=Debug,u$b=ee=>new Proxy(window.console,{get(ye,Ee){return(...Se)=>{try{return["log","debug","info","warn","error"].includes(Ee)?ye[Ee](ee,...Se):ye[Ee]instanceof Function?ye[Ee](...Se):ye[Ee]}catch(Ie){console.error(`Logger error in ${ee}:`,Ie);return}}}});window.blocklet?.ENABLE_DEBUG_TMP==="false"?Debug.disable():window.blocklet?.ENABLE_DEBUG_TMP&&Debug.enable(window.blocklet?.ENABLE_DEBUG_TMP);const o$a="3.4.5",s$9={version:o$a},_$3=300,o$9=1800,n$5="/.well-known/service",E$5="login_token",c$5="x-csrf-token",t$d="refresh_token",e$e="/.well-known/service",s$8="/api/did",d$a="__did-connect__",A$3=["scanned","succeed","error","busy"],S$3={chrome:"https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edge:"https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd"},i$4=2*1e3,I$4=6,R$6="nf_lang",O$4=1e3,l$e=window?.blocklet?.DID_SPACES_BASE_URL||"https://www.didspaces.com/app";let o$8=class extends Error{constructor(){super("Failed to open popup")}};const{version:O$3}=s$9,re$2=c$6("did-connect"),oe$2=c$6("did-connect:tmp"),te$1=c$6("did-connect:tmp-interval"),ne$4=u$b("did-connect");function b$7(ee){return(ee+"===".slice((ee.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function _$2(ee){return ee.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const ie$2=ee=>window.atob(b$7(ee)),ae$2=ee=>{const ye=new URL(ee),Ee=decodeURIComponent(ye.searchParams.get("url"));return new URL(Ee).searchParams.get("_t_")},R$5=(ee,ye)=>{let Ee=ye?.publisher;if(!Ee){if(ee?.agentDid)return ee.agentDid;Ee=ee?.publisher}return Ee?Ee.replace("did:abt:",""):globalThis.blocklet?.appPid||globalThis.blocklet?.appId||globalThis.env?.appId||""},z$3=ee=>{const ye={connected_did:ee.did||"",connected_pk:ee.pk||"",connected_app:R$5(ee.appInfo,ee.memberAppInfo)};return ee?.connectedWallet?.os&&(ye.connected_wallet_os=ee.connectedWallet.os),ye},ce$1=(ee,ye=!1)=>{if(!ee)return;ye||(ee=z$3(ee));const Ee=$e$3({expireInDays:7,returnDomain:!1});!isNil(ee.connected_did)&&!isNil(ee.connected_pk)&&isValid(ee.connected_did)&&isFromPublicKey(ee.connected_did,ee.connected_pk)&&(Cookies.set("connected_did",ee.connected_did,Ee),Cookies.set("connected_pk",ee.connected_pk,Ee)),!isNil(ee.connected_app)&&isValid(ee.connected_app)&&Cookies.set("connected_app",ee.connected_app,Ee),ee.connected_wallet_os&&Cookies.set("connected_wallet_os",ee.connected_wallet_os,Ee)},pe$1=ee=>_$2(Buffer$1.from(ee).toString("base64")),d$9=ee=>Uint8Array.from(Buffer$1.from(b$7(ee),"base64")),le$1=(ee,ye,Ee)=>{const Se=h$8.open(Uint8Array.from(Buffer$1.from(ee,"base64")),d$9(ye),d$9(Ee));return JSON.parse(Buffer$1.from(Se).toString("utf8"))},de$1=(ee,ye)=>Buffer$1.from(h$8.seal(Uint8Array.from(Buffer$1.from(ee)),d$9(ye))).toString("base64"),ue=(ee,ye="_t_")=>{const Ee=new URL(ee),Se={baseUrl:Ee.origin,prefix:Ee.pathname.replace(/\/auth$/,""),token:Ee.searchParams.get(ye)||""};if(!Se.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!Se.token)throw new Error("Invalid next workflow: token not found");return Se},g$7=(ee,ye)=>{let Ee=ee.message;const{response:Se}=ee;return Se&&(Ee=Se.data?.error||Se.data?.message||Se.data||ye,Ee=typeof Ee=="object"?ye:Ee),Ee},me=(ee,ye,Ee)=>{if(!ee)return ee;if(!ee.name)return g$7(ee,ye);switch(ee.name){case"NotAllowedError":return Ee?Ee("webauthn.error.canceled"):"Authentication was canceled";case"SecurityError":return Ee?Ee("webauthn.error.security"):"A security error occurred during authentication";case"NotSupportedError":return Ee?Ee("webauthn.error.notSupported"):"This browser does not support passkey authentication";case"AbortError":return Ee?Ee("webauthn.error.aborted"):"Authentication was aborted";default:return console.warn("Unhandled WebAuthn error type:",ee.name),g$7(ee,ye)}},M$4=ee=>{const ye={},Ee=Le(ee)?ee:window.location.href;if(Ee){const{hostname:Se,protocol:Ie,port:Oe}=new URL(Ee);ye["x-real-hostname"]=Se,ye["x-real-port"]=Oe,ye["x-real-protocol"]=Ie.endsWith(":")?Ie.substring(0,Ie.length-1):Ie}return ye},we=(ee={},{lazy:ye=!1,lazyTime:Ee=300}={})=>{const Se={...M$4(ee.baseURL),...ee.headers,"x-did-connect-version":O$3},Ie=createAxios({...ee,headers:Se},{lazy:ye,lazyTime:Ee});return Ie.interceptors.request.use(Oe=>{const Ne=q$6();return Ne&&(Oe.headers["x-blocklet-visitor-id"]=Ne),Oe}),Ie},fe$1=(ee=0)=>new Promise(ye=>{setTimeout(()=>{ye()},ee)});function ge(){if(typeof window>"u")return null;const ee=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[ee]||"en"}function he$1(ee,ye){return[void 0,null,""].includes(ee)?ye:ee/86400}async function be$2(){const ee=window.location.href;try{const ye=new URL(ee),Ee=ye.searchParams.get(d$a);if(Ee){ye.searchParams.delete(d$a);const Se=JSON.parse(Buffer$1.from(Ee,"base64").toString("utf-8"));if(isString$1(Se.forceConnected)&&isUndefined$1(Se.sourceAppPid)){const Ie=await getBlockletSDK().user.getUserPublicInfo({did:Se.forceConnected});isUndefined$1(Ie?.sourceAppPid)||(Se.sourceAppPid=Ie.sourceAppPid)}return{params:Se,url:ye.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:ee}}const _e$2=(ee,{width:ye=680,height:Ee=720,name:Se="did-connect:popup",offsetX:Ie=0,offsetY:Oe=0}={})=>{const Ne=h$7(ee,{allowDomains:null}),He=window.screenX+(window.innerWidth-ye)/2+Ie,Ue=window.screenY+(window.innerHeight-Ee)/2+Oe,Ye=[`left=${He}`,`top=${Ue}`,`width=${ye}`,`height=${Ee}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],Ge=window.open("",Se,Ye.join(","));if(Ge===null)throw new o$8;return Ge.location.href=withQuery(Ne,{opener:window.location.origin}),Ge},ve$2=ee=>new Promise((ye,Ee)=>{let Se,Ie;const Oe=({data:Ne})=>{if(Ne&&Ne.type==="authorization_response"){if(Ne?.error){console.error(Ne.error);return}setTimeout(()=>{ee.popup?.close(),clearTimeout(Ie),clearInterval(Se),window.removeEventListener("message",Oe,!1)},ee.closeTimeout||0),ye(Ne)}};Ie=setTimeout(()=>{clearInterval(Se),Ee(new Error("Timeout")),window.removeEventListener("message",Oe,!1)},(ee.timeoutInSeconds||o$9)*1e3),Se=setInterval(()=>{ee.popup?.closed&&(clearInterval(Se),clearTimeout(Ie),window.removeEventListener("message",Oe,!1),Ee(new Error("Popup closed")))},1e3),window.addEventListener("message",Oe)}),r$7=l$l.box.keyPair();function z$2(){const[ee,ye]=useLocalStorageState("__encKey",{defaultValue:pe$1(r$7.publicKey),deserializer:Ie=>Ie,serializer:Ie=>Ie}),[Ee,Se]=useLocalStorageState("__decKey",{defaultValue:pe$1(r$7.secretKey),deserializer:Ie=>Ie,serializer:Ie=>Ie});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||ye(pe$1(r$7.publicKey)),localStorage.getItem("__decKey")||Se(pe$1(r$7.secretKey))},[]),{encryptKey:ee,decryptKey:Ee,decrypt:(Ie,Oe=ee,Ne=Ee)=>le$1(Ie,Oe,Ne),encrypt:(Ie,Oe=ee)=>de$1(Ie,Oe)}}const e$d=reactExports.createContext();function v$7(ee){return ee?.did}function o$7(ee){return ee?.connectedAccounts||ee?.extraConfigs?.connectedAccounts||[]}function w$4(ee){return ee?.sourceProvider||ee?.extraConfigs?.sourceProvider||"wallet"}function D$4(ee){return o$7(ee).map(ye=>ye.provider)}function g$6(ee){return o$7(ee).map(ye=>ye.did)}function r$6(ee){return o$7(ee).find(ye=>ye.provider==="wallet")}function P$1(ee){return r$6(ee)?.did}function m$9({session:ee}){const[ye,Ee]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(ee?.user){const Se=v$7(ee.user),Ie=P$1(ee.user),Oe=o$7(ee.user),Ne=g$6(ee.user),He=r$6(ee.user),Ue=w$4(ee.user),Ye=D$4(ee.user);Ee({did:Se,wallet:He,walletDid:Ie,permanentDid:Se,connectedDids:Ne,connectedAccounts:Oe,sourceProvider:Ue,sourceProviders:Ye})}},[ee?.user]),ye}function G$3(ee){const ye={prefix:s$8,checkInterval:2e3,checkTimeout:_$3*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",messages:{},extraParams:{},forceConnected:!0,enabledConnectTypes:[],disableSwitchApp:!1,hideCloseButton:!1,qrcodeSize:160,options:{}};function Ee(Se){const{encryptKey:Ie,decrypt:Oe}=z$2(),Ne=d$g(),He=reactExports.use(e$d),Ue=P$1(He?.session?.user),Ye=pick(Se,["action","checkTimeout","locale","messages","baseUrl","prefix","checkInterval","closeTimeout","extraParams","tokenKey","encKey","forceConnected","provider","enabledConnectTypes","disableSwitchApp","hideCloseButton","options"]),Ge=Object.assign({},ye,Ye);Ge.forceConnected===!0&&(Ge.forceConnected=Ue||!0);const Qe=Se.serviceHost||window?.env?.apiPrefix||window?.blocklet?.prefix||"/";!Le(Ge.prefix)&&!Ge.prefix?.startsWith(n$5)&&(Ge.prefix=joinURL(Qe,Ge.prefix));const et=Ne.arcSphere&&Se.open&&!window.forceOpenConnect,{run:tt}=useDebounceFn(useMemoizedFn(async()=>{re$2("bridge call arcDidConnect",Se,Ye,Ge);try{const rt=await g$8.callArc("didConnect",{...Ge,[Ge.encKey]:Ie});if(re$2("bridge callArc didConnect: result",rt),rt.action==="error"){Se.onError(rt.data);return}if(rt.action==="success"){Se.onSuccess(rt.data,Oe);return}Se.onClose(rt.data)}catch(rt){logger.error("Failed to callArc didConnect",rt)}}),{leading:!0,wait:300});return reactExports.useEffect(()=>{et&&(re$2("WrapConnect call"),tt())},[tt,et]),et?null:jsxRuntimeExports.jsx(ee,{...Se})}return Ee.propTypes={open:o$l.bool},Ee}function f$5(ee){const ye=globalThis.blocklet?u$l(globalThis.blocklet):globalThis.env;return jsxRuntimeExports.jsxs(Box,{className:"did-connect__root",sx:{backgroundColor:"background.default",display:"flex",flexDirection:"column",height:"100%",position:"relative",maxWidth:"100%",width:ee.mode==="drawer"?"100%":l$s-20,transition:"width 0.2s ease-in-out",margin:"auto",p:3,pb:0,gap:2.5},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",height:28,sx:{width:"6rem"}}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{fontSize:"13px",height:"15px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{fontSize:"13px",height:"15px",width:"3rem"}})]})]}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",gap:1.5,mt:1},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}})]})]}),jsxRuntimeExports.jsx(N$4,{currentAppInfo:ye})]})}const l$d=reactExports.lazy(()=>__vitePreload(()=>import("./connect-2JDWTFDP.js"),__vite__mapDeps([0,1,2,3]),import.meta.url));function f$4(ee){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(f$5,{}),children:jsxRuntimeExports.jsx(l$d,{...ee})})}const w$3=d$c(G$3(p$9(xo(f$4)))),e$c=BLOCKLET_THEME_LIGHT.palette,y$5={did:{contained:{backgroundColor:e$c.did.primary,color:e$c.common.white},outlined:{borderColor:e$c.did.primary,color:e$c.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:e$c.grey[900]},outlined:{borderColor:e$c.grey[900],color:e$c.grey[900]}}};function q$3(ee){function ye({...Ee}){const Se=Object.assign({},Ee);isUndefined$1(Se.rounded)&&(Se.rounded=!1),isUndefined$1(Se.size)&&(Se.size="medium"),isUndefined$1(Se.forwardedRef)&&(Se.forwardedRef=null),isUndefined$1(Se.style)&&(Se.style={});const Ie=Te$1(Se,ye,["style"]),{children:Oe,rounded:Ne,loading:He,disabled:Ue,style:Ye,forwardedRef:Ge,color:Qe,...et}=Ie,tt=Ue||He;let rt=16;switch(et.size){case"small":rt=14;break;case"large":rt=18;break}const it=y$5[Qe]&&y$5[Qe][et.variant],at=Object.assign({},{boxShadow:"none",textTransform:"capitalize",...it},Ye);let ot=et;return it||(ot={...ot,color:Qe}),Ne&&(at.borderRadius="100vw"),jsxRuntimeExports.jsxs(ee,{style:at,ref:Ge,disabled:tt,...ot,children:[He&&jsxRuntimeExports.jsx(CircularProgress,{size:rt,style:{marginRight:5}}),Oe]})}return ye.propTypes={children:o$l.any.isRequired,style:o$l.oneOfType([o$l.object,o$l.string]),size:o$l.oneOf(["large","medium","small"]),forwardedRef:o$l.any,rounded:o$l.bool},function({ref:Ee,...Se}){return jsxRuntimeExports.jsx(ye,{...Se,forwardedRef:Ee})}}const n$4=q$3(Button),l$c=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:45,height:52,viewBox:"0 0 45 52",...ee},reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF"},reactExports.createElement("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),reactExports.createElement("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"}))),v$6=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:99,height:18,viewBox:"0 0 99 18",...ee},reactExports.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})),l$b=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:45,height:52,viewBox:"0 0 45 52",...ee},reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000"},reactExports.createElement("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),reactExports.createElement("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"}))),v$5=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:99,height:18,viewBox:"0 0 99 18",...ee},reactExports.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"}));function j$4({showText:ee=!0,showLogo:ye=!0,mode:Ee="dark",layout:Se="vertical",size:Ie=void 0,style:Oe={},...Ne}){const He=Ee==="light",Ue=He?jsxRuntimeExports.jsx(l$c,{}):jsxRuntimeExports.jsx(l$b,{}),Ye=He?jsxRuntimeExports.jsx(v$6,{className:"logo-text"}):jsxRuntimeExports.jsx(v$5,{className:"logo-text"});return Ie&&(Oe.width=`${Ie}px`,Oe.height=`${Ie}px`),jsxRuntimeExports.jsxs(d$8,{layout:Se,style:Oe,...Ne,children:[ye&&Ue,ee&&Ye]})}const d$8=l$o("span")`
533
+ `+new Array(Ne.length+4).join(" "):Ge<He.length-2&&(Ye+=" ")}console.log(Ye)}function Oe(Ne,He,Ue){let Ye=new Date().getTime();const Ge=new Uint8Array(He);for(let et=0;et<He;et++)Ge[et]=et%256;const Qe=new Date().getTime();console.log("Generated random input in "+(Qe-Ye)+"ms"),Ye=Qe;for(let et=0;et<Ue;et++){const tt=Ne(Ge),rt=new Date().getTime(),it=rt-Ye;Ye=rt,console.log("Hashed in "+it+"ms: "+tt.substring(0,20)+"..."),console.log(Math.round(He/(1<<20)/(it/1e3)*100)/100+" MB PER SECOND")}}return util$5={normalizeInput:ye,toHex:Ee,debugPrint:Ie,testSpeed:Oe},util$5}var blake2b_1,hasRequiredBlake2b;function requireBlake2b(){if(hasRequiredBlake2b)return blake2b_1;hasRequiredBlake2b=1;const ee=requireUtil$4();function ye(ot,lt,ut){const dt=ot[lt]+ot[ut];let ft=ot[lt+1]+ot[ut+1];dt>=4294967296&&ft++,ot[lt]=dt,ot[lt+1]=ft}function Ee(ot,lt,ut,dt){let ft=ot[lt]+ut;ut<0&&(ft+=4294967296);let bt=ot[lt+1]+dt;ft>=4294967296&&bt++,ot[lt]=ft,ot[lt+1]=bt}function Se(ot,lt){return ot[lt]^ot[lt+1]<<8^ot[lt+2]<<16^ot[lt+3]<<24}function Ie(ot,lt,ut,dt,ft,bt){const gt=Ye[ft],Tt=Ye[ft+1],_t=Ye[bt],Ct=Ye[bt+1];ye(Ue,ot,lt),Ee(Ue,ot,gt,Tt);let kt=Ue[dt]^Ue[ot],ct=Ue[dt+1]^Ue[ot+1];Ue[dt]=ct,Ue[dt+1]=kt,ye(Ue,ut,dt),kt=Ue[lt]^Ue[ut],ct=Ue[lt+1]^Ue[ut+1],Ue[lt]=kt>>>24^ct<<8,Ue[lt+1]=ct>>>24^kt<<8,ye(Ue,ot,lt),Ee(Ue,ot,_t,Ct),kt=Ue[dt]^Ue[ot],ct=Ue[dt+1]^Ue[ot+1],Ue[dt]=kt>>>16^ct<<16,Ue[dt+1]=ct>>>16^kt<<16,ye(Ue,ut,dt),kt=Ue[lt]^Ue[ut],ct=Ue[lt+1]^Ue[ut+1],Ue[lt]=ct>>>31^kt<<1,Ue[lt+1]=kt>>>31^ct<<1}const Oe=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),Ne=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],He=new Uint8Array(Ne.map(function(ot){return ot*2})),Ue=new Uint32Array(32),Ye=new Uint32Array(32);function Ge(ot,lt){let ut=0;for(ut=0;ut<16;ut++)Ue[ut]=ot.h[ut],Ue[ut+16]=Oe[ut];for(Ue[24]=Ue[24]^ot.t,Ue[25]=Ue[25]^ot.t/4294967296,lt&&(Ue[28]=~Ue[28],Ue[29]=~Ue[29]),ut=0;ut<32;ut++)Ye[ut]=Se(ot.b,4*ut);for(ut=0;ut<12;ut++)Ie(0,8,16,24,He[ut*16+0],He[ut*16+1]),Ie(2,10,18,26,He[ut*16+2],He[ut*16+3]),Ie(4,12,20,28,He[ut*16+4],He[ut*16+5]),Ie(6,14,22,30,He[ut*16+6],He[ut*16+7]),Ie(0,10,20,30,He[ut*16+8],He[ut*16+9]),Ie(2,12,22,24,He[ut*16+10],He[ut*16+11]),Ie(4,14,16,26,He[ut*16+12],He[ut*16+13]),Ie(6,8,18,28,He[ut*16+14],He[ut*16+15]);for(ut=0;ut<16;ut++)ot.h[ut]=ot.h[ut]^Ue[ut]^Ue[ut+16]}const Qe=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function et(ot,lt,ut,dt){if(ot===0||ot>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(lt&&lt.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(ut&&ut.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(dt&&dt.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const ft={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:ot};Qe.fill(0),Qe[0]=ot,lt&&(Qe[1]=lt.length),Qe[2]=1,Qe[3]=1,ut&&Qe.set(ut,32),dt&&Qe.set(dt,48);for(let bt=0;bt<16;bt++)ft.h[bt]=Oe[bt]^Se(Qe,bt*4);return lt&&(tt(ft,lt),ft.c=128),ft}function tt(ot,lt){for(let ut=0;ut<lt.length;ut++)ot.c===128&&(ot.t+=ot.c,Ge(ot,!1),ot.c=0),ot.b[ot.c++]=lt[ut]}function rt(ot){for(ot.t+=ot.c;ot.c<128;)ot.b[ot.c++]=0;Ge(ot,!0);const lt=new Uint8Array(ot.outlen);for(let ut=0;ut<ot.outlen;ut++)lt[ut]=ot.h[ut>>2]>>8*(ut&3);return lt}function it(ot,lt,ut,dt,ft){ut=ut||64,ot=ee.normalizeInput(ot),dt&&(dt=ee.normalizeInput(dt)),ft&&(ft=ee.normalizeInput(ft));const bt=et(ut,lt,dt,ft);return tt(bt,ot),rt(bt)}function at(ot,lt,ut,dt,ft){const bt=it(ot,lt,ut,dt,ft);return ee.toHex(bt)}return blake2b_1={blake2b:it,blake2bHex:at,blake2bInit:et,blake2bUpdate:tt,blake2bFinal:rt},blake2b_1}var blake2bExports=requireBlake2b();const blake=getDefaultExportFromCjs$1(blake2bExports);function nonce(ee,ye){var Ee=blake.blake2bInit(l$l.box.nonceLength,null);return blake.blake2bUpdate(Ee,ee),blake.blake2bUpdate(Ee,ye),blake.blake2bFinal(Ee)}function zero(ee){for(var ye=0;ye<ee.length;ye++)ee[ye]=0}function seal$1(ee,ye){var Ee=new Uint8Array(overheadLength+ee.length),Se=l$l.box.keyPair();Ee.set(Se.publicKey);var Ie=nonce(Se.publicKey,ye),Oe=l$l.box(ee,Ie,ye,Se.secretKey);return Ee.set(Oe,Se.publicKey.length),zero(Se.secretKey),Ee}function open(ee,ye,Ee){var Se=ee.subarray(0,l$l.box.publicKeyLength),Ie=nonce(Se,ye),Oe=ee.subarray(l$l.box.publicKeyLength);return l$l.box.open(Oe,Ie,Se,Ee)}const h$8={seal:seal$1,open};let i$5=class extends Error{};function h$7(ee,{throwOnError:ye=!0,returnRaw:Ee=!1,allowProtocols:Se=["https:","http:"],allowDomains:Ie=void 0}={}){Ie===void 0&&(Ie=window.blocklet?.domainAliases||[],Ie.push(window.location.href));try{let Oe;ee.startsWith("/")?Oe=window.location.origin:ee.startsWith("./")&&(Oe=window.location.href);const Ne=new URL(ee,Oe),He=Ie&&Ie.map(Ue=>{try{return new URL(Ue).hostname}catch{return new URL(`https://${Ue}`).hostname}});if(Se!==null&&!Se.includes(Ne.protocol)){if(console.error(`Invalid protocol: ${Ne.protocol}`),ye)throw new i$5(`Invalid protocol: ${Ne.protocol}`);return null}if(He!==null&&!He.includes(Ne.hostname)){if(console.error(`Invalid host: ${Ne.hostname}`),ye)throw new i$5(`Invalid host: ${Ne.hostname}`);return null}return Ee?ee:Ne.href}catch(Oe){if(Oe instanceof i$5){if(ye)throw Oe;return null}if(console.error(`Failed to convert url: ${ee}`),ye)throw new Error(`Failed to convert url: ${ee}`);return null}}const c$6=Debug,u$b=ee=>new Proxy(window.console,{get(ye,Ee){return(...Se)=>{try{return["log","debug","info","warn","error"].includes(Ee)?ye[Ee](ee,...Se):ye[Ee]instanceof Function?ye[Ee](...Se):ye[Ee]}catch(Ie){console.error(`Logger error in ${ee}:`,Ie);return}}}});window.blocklet?.ENABLE_DEBUG_TMP==="false"?Debug.disable():window.blocklet?.ENABLE_DEBUG_TMP&&Debug.enable(window.blocklet?.ENABLE_DEBUG_TMP);const o$a="3.4.5",s$9={version:o$a},_$3=300,o$9=1800,n$5="/.well-known/service",E$5="login_token",c$5="x-csrf-token",t$d="refresh_token",e$e="/.well-known/service",s$8="/api/did",d$a="__did-connect__",A$3=["scanned","succeed","error","busy"],S$3={chrome:"https://chromewebstore.google.com/detail/did-wallet/ibjflpbmadchofnbpppegdbnifdgincp",edge:"https://microsoftedge.microsoft.com/addons/detail/did-wallet/hjgoblidjnnnamdkinbichnfbmghmafd"},i$4=2*1e3,I$4=6,R$6="nf_lang",O$4=1e3,l$e=window?.blocklet?.DID_SPACES_BASE_URL||"https://www.didspaces.com/app";let o$8=class extends Error{constructor(){super("Failed to open popup")}};const{version:O$3}=s$9,re$2=c$6("did-connect"),oe$2=c$6("did-connect:tmp"),te$1=c$6("did-connect:tmp-interval"),ne$4=u$b("did-connect");function b$7(ee){return(ee+"===".slice((ee.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/")}function _$2(ee){return ee.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const ie$2=ee=>window.atob(b$7(ee)),ae$2=ee=>{const ye=new URL(ee),Ee=decodeURIComponent(ye.searchParams.get("url"));return new URL(Ee).searchParams.get("_t_")},R$5=(ee,ye)=>{let Ee=ye?.publisher;if(!Ee){if(ee?.agentDid)return ee.agentDid;Ee=ee?.publisher}return Ee?Ee.replace("did:abt:",""):globalThis.blocklet?.appPid||globalThis.blocklet?.appId||globalThis.env?.appId||""},z$3=ee=>{const ye={connected_did:ee.did||"",connected_pk:ee.pk||"",connected_app:R$5(ee.appInfo,ee.memberAppInfo)};return ee?.connectedWallet?.os&&(ye.connected_wallet_os=ee.connectedWallet.os),ye},ce$1=(ee,ye=!1)=>{if(!ee)return;ye||(ee=z$3(ee));const Ee=$e$3({expireInDays:7,returnDomain:!1});!isNil(ee.connected_did)&&!isNil(ee.connected_pk)&&isValid(ee.connected_did)&&isFromPublicKey(ee.connected_did,ee.connected_pk)&&(Cookies.set("connected_did",ee.connected_did,Ee),Cookies.set("connected_pk",ee.connected_pk,Ee)),!isNil(ee.connected_app)&&isValid(ee.connected_app)&&Cookies.set("connected_app",ee.connected_app,Ee),ee.connected_wallet_os&&Cookies.set("connected_wallet_os",ee.connected_wallet_os,Ee)},pe$1=ee=>_$2(Buffer$1.from(ee).toString("base64")),d$9=ee=>Uint8Array.from(Buffer$1.from(b$7(ee),"base64")),le$1=(ee,ye,Ee)=>{const Se=h$8.open(Uint8Array.from(Buffer$1.from(ee,"base64")),d$9(ye),d$9(Ee));return JSON.parse(Buffer$1.from(Se).toString("utf8"))},de$1=(ee,ye)=>Buffer$1.from(h$8.seal(Uint8Array.from(Buffer$1.from(ee)),d$9(ye))).toString("base64"),ue=(ee,ye="_t_")=>{const Ee=new URL(ee),Se={baseUrl:Ee.origin,prefix:Ee.pathname.replace(/\/auth$/,""),token:Ee.searchParams.get(ye)||""};if(!Se.baseUrl)throw new Error("Invalid next workflow: origin empty");if(!Se.token)throw new Error("Invalid next workflow: token not found");return Se},g$7=(ee,ye)=>{let Ee=ee.message;const{response:Se}=ee;return Se&&(Ee=Se.data?.error||Se.data?.message||Se.data||ye,Ee=typeof Ee=="object"?ye:Ee),Ee},me=(ee,ye,Ee)=>{if(!ee)return ee;if(!ee.name)return g$7(ee,ye);switch(ee.name){case"NotAllowedError":return Ee?Ee("webauthn.error.canceled"):"Authentication was canceled";case"SecurityError":return Ee?Ee("webauthn.error.security"):"A security error occurred during authentication";case"NotSupportedError":return Ee?Ee("webauthn.error.notSupported"):"This browser does not support passkey authentication";case"AbortError":return Ee?Ee("webauthn.error.aborted"):"Authentication was aborted";default:return console.warn("Unhandled WebAuthn error type:",ee.name),g$7(ee,ye)}},M$4=ee=>{const ye={},Ee=Le(ee)?ee:window.location.href;if(Ee){const{hostname:Se,protocol:Ie,port:Oe}=new URL(Ee);ye["x-real-hostname"]=Se,ye["x-real-port"]=Oe,ye["x-real-protocol"]=Ie.endsWith(":")?Ie.substring(0,Ie.length-1):Ie}return ye},we=(ee={},{lazy:ye=!1,lazyTime:Ee=300}={})=>{const Se={...M$4(ee.baseURL),...ee.headers,"x-did-connect-version":O$3},Ie=createAxios({...ee,headers:Se},{lazy:ye,lazyTime:Ee});return Ie.interceptors.request.use(Oe=>{const Ne=q$6();return Ne&&(Oe.headers["x-blocklet-visitor-id"]=Ne),Oe}),Ie},fe$1=(ee=0)=>new Promise(ye=>{setTimeout(()=>{ye()},ee)});function ge(){if(typeof window>"u")return null;const ee=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage||window.navigator.systemLanguage||null;return{"zh-CN":"zh","zh-TW":"zh",zh:"zh",en:"en"}[ee]||"en"}function he$1(ee,ye){return[void 0,null,""].includes(ee)?ye:ee/86400}async function be$2(){const ee=window.location.href;try{const ye=new URL(ee),Ee=ye.searchParams.get(d$a);if(Ee){ye.searchParams.delete(d$a);const Se=JSON.parse(Buffer$1.from(Ee,"base64").toString("utf-8"));if(isString$1(Se.forceConnected)&&isUndefined$1(Se.sourceAppPid)){const Ie=await getBlockletSDK().user.getUserPublicInfo({did:Se.forceConnected});isUndefined$1(Ie?.sourceAppPid)||(Se.sourceAppPid=Ie.sourceAppPid)}return{params:Se,url:ye.href}}}catch{console.warn("Failed to decode did-connect url params")}return{params:null,url:ee}}const _e$2=(ee,{width:ye=680,height:Ee=720,name:Se="did-connect:popup",offsetX:Ie=0,offsetY:Oe=0}={})=>{const Ne=h$7(ee,{allowDomains:null}),He=window.screenX+(window.innerWidth-ye)/2+Ie,Ue=window.screenY+(window.innerHeight-Ee)/2+Oe,Ye=[`left=${He}`,`top=${Ue}`,`width=${ye}`,`height=${Ee}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],Ge=window.open("",Se,Ye.join(","));if(Ge===null)throw new o$8;return Ge.location.href=withQuery(Ne,{opener:window.location.origin}),Ge},ve$2=ee=>new Promise((ye,Ee)=>{let Se,Ie;const Oe=({data:Ne})=>{if(Ne&&Ne.type==="authorization_response"){if(Ne?.error){console.error(Ne.error);return}setTimeout(()=>{ee.popup?.close(),clearTimeout(Ie),clearInterval(Se),window.removeEventListener("message",Oe,!1)},ee.closeTimeout||0),ye(Ne)}};Ie=setTimeout(()=>{clearInterval(Se),Ee(new Error("Timeout")),window.removeEventListener("message",Oe,!1)},(ee.timeoutInSeconds||o$9)*1e3),Se=setInterval(()=>{ee.popup?.closed&&(clearInterval(Se),clearTimeout(Ie),window.removeEventListener("message",Oe,!1),Ee(new Error("Popup closed")))},1e3),window.addEventListener("message",Oe)}),r$7=l$l.box.keyPair();function z$2(){const[ee,ye]=useLocalStorageState("__encKey",{defaultValue:pe$1(r$7.publicKey),deserializer:Ie=>Ie,serializer:Ie=>Ie}),[Ee,Se]=useLocalStorageState("__decKey",{defaultValue:pe$1(r$7.secretKey),deserializer:Ie=>Ie,serializer:Ie=>Ie});return reactExports.useEffect(()=>{localStorage.getItem("__encKey")||ye(pe$1(r$7.publicKey)),localStorage.getItem("__decKey")||Se(pe$1(r$7.secretKey))},[]),{encryptKey:ee,decryptKey:Ee,decrypt:(Ie,Oe=ee,Ne=Ee)=>le$1(Ie,Oe,Ne),encrypt:(Ie,Oe=ee)=>de$1(Ie,Oe)}}const e$d=reactExports.createContext();function v$7(ee){return ee?.did}function o$7(ee){return ee?.connectedAccounts||ee?.extraConfigs?.connectedAccounts||[]}function w$4(ee){return ee?.sourceProvider||ee?.extraConfigs?.sourceProvider||"wallet"}function D$4(ee){return o$7(ee).map(ye=>ye.provider)}function g$6(ee){return o$7(ee).map(ye=>ye.did)}function r$6(ee){return o$7(ee).find(ye=>ye.provider==="wallet")}function P$1(ee){return r$6(ee)?.did}function m$9({session:ee}){const[ye,Ee]=reactExports.useState({did:"",wallet:"",walletDid:"",permanentDid:"",connectedDids:[],connectedAccounts:[],sourceProvider:"",sourceProviders:[]});return reactExports.useEffect(()=>{if(ee?.user){const Se=v$7(ee.user),Ie=P$1(ee.user),Oe=o$7(ee.user),Ne=g$6(ee.user),He=r$6(ee.user),Ue=w$4(ee.user),Ye=D$4(ee.user);Ee({did:Se,wallet:He,walletDid:Ie,permanentDid:Se,connectedDids:Ne,connectedAccounts:Oe,sourceProvider:Ue,sourceProviders:Ye})}},[ee?.user]),ye}function G$3(ee){const ye={prefix:s$8,checkInterval:2e3,checkTimeout:_$3*1e3,locale:"en",tokenKey:"_t_",encKey:"_ek_",baseUrl:"",messages:{},extraParams:{},forceConnected:!0,enabledConnectTypes:[],disableSwitchApp:!1,hideCloseButton:!1,qrcodeSize:160,options:{}};function Ee(Se){const{encryptKey:Ie,decrypt:Oe}=z$2(),Ne=d$g(),He=reactExports.use(e$d),Ue=P$1(He?.session?.user),Ye=pick(Se,["action","checkTimeout","locale","messages","baseUrl","prefix","checkInterval","closeTimeout","extraParams","tokenKey","encKey","forceConnected","provider","enabledConnectTypes","disableSwitchApp","hideCloseButton","options"]),Ge=Object.assign({},ye,Ye);Ge.forceConnected===!0&&(Ge.forceConnected=Ue||!0);const Qe=Se.serviceHost||window?.env?.apiPrefix||window?.blocklet?.prefix||"/";!Le(Ge.prefix)&&!Ge.prefix?.startsWith(n$5)&&(Ge.prefix=joinURL(Qe,Ge.prefix));const et=Ne.arcSphere&&Se.open&&!window.forceOpenConnect,{run:tt}=useDebounceFn(useMemoizedFn(async()=>{re$2("bridge call arcDidConnect",Se,Ye,Ge);try{const rt=await g$8.callArc("didConnect",{...Ge,[Ge.encKey]:Ie});if(re$2("bridge callArc didConnect: result",rt),rt.action==="error"){Se.onError(rt.data);return}if(rt.action==="success"){Se.onSuccess(rt.data,Oe);return}Se.onClose(rt.data)}catch(rt){logger.error("Failed to callArc didConnect",rt)}}),{leading:!0,wait:300});return reactExports.useEffect(()=>{et&&(re$2("WrapConnect call"),tt())},[tt,et]),et?null:jsxRuntimeExports.jsx(ee,{...Se})}return Ee.propTypes={open:o$l.bool},Ee}function f$5(ee){const ye=globalThis.blocklet?u$l(globalThis.blocklet):globalThis.env;return jsxRuntimeExports.jsxs(Box,{className:"did-connect__root",sx:{backgroundColor:"background.default",display:"flex",flexDirection:"column",height:"100%",position:"relative",maxWidth:"100%",width:ee.mode==="drawer"?"100%":l$s-20,transition:"width 0.2s ease-in-out",margin:"auto",p:3,pb:0,gap:2.5},children:[jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",height:28,sx:{width:"6rem"}}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{fontSize:"13px",height:"15px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{fontSize:"13px",height:"15px",width:"3rem"}})]})]}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{height:"35px"}}),jsxRuntimeExports.jsxs(Box,{sx:{display:"flex",gap:1.5,mt:1},children:[jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}}),jsxRuntimeExports.jsx(Skeleton,{variant:"rounded",sx:{flex:1,height:"32px"}})]})]}),jsxRuntimeExports.jsx(N$4,{currentAppInfo:ye})]})}const l$d=reactExports.lazy(()=>__vitePreload(()=>import("./connect-CdvuGCCf.js"),__vite__mapDeps([0,1,2,3]),import.meta.url));function f$4(ee){return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(f$5,{}),children:jsxRuntimeExports.jsx(l$d,{...ee})})}const w$3=d$c(G$3(p$9(xo(f$4)))),e$c=BLOCKLET_THEME_LIGHT.palette,y$5={did:{contained:{backgroundColor:e$c.did.primary,color:e$c.common.white},outlined:{borderColor:e$c.did.primary,color:e$c.did.primary}},reverse:{contained:{backgroundColor:"rgba(255, 255, 255, 0.9)",color:e$c.grey[900]},outlined:{borderColor:e$c.grey[900],color:e$c.grey[900]}}};function q$3(ee){function ye({...Ee}){const Se=Object.assign({},Ee);isUndefined$1(Se.rounded)&&(Se.rounded=!1),isUndefined$1(Se.size)&&(Se.size="medium"),isUndefined$1(Se.forwardedRef)&&(Se.forwardedRef=null),isUndefined$1(Se.style)&&(Se.style={});const Ie=Te$1(Se,ye,["style"]),{children:Oe,rounded:Ne,loading:He,disabled:Ue,style:Ye,forwardedRef:Ge,color:Qe,...et}=Ie,tt=Ue||He;let rt=16;switch(et.size){case"small":rt=14;break;case"large":rt=18;break}const it=y$5[Qe]&&y$5[Qe][et.variant],at=Object.assign({},{boxShadow:"none",textTransform:"capitalize",...it},Ye);let ot=et;return it||(ot={...ot,color:Qe}),Ne&&(at.borderRadius="100vw"),jsxRuntimeExports.jsxs(ee,{style:at,ref:Ge,disabled:tt,...ot,children:[He&&jsxRuntimeExports.jsx(CircularProgress,{size:rt,style:{marginRight:5}}),Oe]})}return ye.propTypes={children:o$l.any.isRequired,style:o$l.oneOfType([o$l.object,o$l.string]),size:o$l.oneOf(["large","medium","small"]),forwardedRef:o$l.any,rounded:o$l.bool},function({ref:Ee,...Se}){return jsxRuntimeExports.jsx(ye,{...Se,forwardedRef:Ee})}}const n$4=q$3(Button),l$c=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:45,height:52,viewBox:"0 0 45 52",...ee},reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#FFF"},reactExports.createElement("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),reactExports.createElement("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"}))),v$6=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:99,height:18,viewBox:"0 0 99 18",...ee},reactExports.createElement("path",{fill:"#FFF",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"})),l$b=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:45,height:52,viewBox:"0 0 45 52",...ee},reactExports.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000"},reactExports.createElement("path",{d:"M.5 13.077L22.15.577l21.651 12.5v25l-21.65 12.5L.5 38.077zM22.15.577v50M.5 13.077l43.301 25M.5 38.077l43.301-25"}),reactExports.createElement("path",{d:"M22.15 38.077l10.826-6.25-10.825-18.75-10.825 18.75z"}))),v$5=ee=>reactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:99,height:18,viewBox:"0 0 99 18",...ee},reactExports.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M6.5.053h2.864L16.028 18h-2.114l-1.391-3.795H3.504L2.14 18H0L6.5.053zm1.474 1.481L4.04 12.563h7.895L7.975 1.534zm14.44 3.542c1.27 0 2.198.296 2.78.892.58.597.871 1.52.871 2.765v.36c0 .117-.008.245-.026.385h-1.826c.018-.14.027-.292.027-.452v-.48c0-.766-.186-1.283-.551-1.55-.367-.266-.916-.4-1.65-.4-.968 0-1.698.24-2.189.723-.493.48-.738 1.208-.738 2.187v8.308h-1.88V5.341h1.824l-.079 1.443c.376-.614.863-1.053 1.463-1.316a4.868 4.868 0 0 1 1.974-.392zM35.95 15.903c.501-.328.752-1.205.752-2.63h1.852c0 1.924-.403 3.178-1.208 3.765-.806.589-2.158.882-4.055.882-2.65 0-4.24-.538-4.766-1.616-.529-1.076-.793-2.781-.793-5.114 0-2.118.367-3.645 1.102-4.581.732-.934 2.209-1.401 4.43-1.401 1.378 0 2.569.221 3.572.665 1.002.446 1.503 1.497 1.503 3.153v.188a.234.234 0 0 0-.027.106v.106h-1.826c0-1.12-.228-1.851-.685-2.188-.455-.34-1.23-.507-2.322-.507-1.665 0-2.713.259-3.142.782-.43.524-.646 1.67-.646 3.44V12.2c0 1.4.161 2.448.485 3.15.322.7 1.297 1.048 2.926 1.048 1.397 0 2.346-.165 2.848-.495zm15.87-.318c.606-.328.912-1.263.912-2.805 0-.924-.147-1.69-.444-2.302-.294-.611-1.007-.917-2.133-.917H43.065v6.516h5.528c1.543 0 2.617-.165 3.226-.492zm-8.754-13.85v6.036h5.665c1.325 0 2.239-.214 2.737-.643.503-.428.755-1.288.755-2.575 0-1.09-.192-1.834-.577-2.226-.385-.394-1.116-.591-2.19-.591h-6.39zM52 8.466c1.185.322 1.956.816 2.314 1.482.359.67.54 1.581.54 2.739 0 1.6-.325 2.858-.97 3.764-.647.909-1.874 1.363-3.686 1.363H41.05V0h8.62c1.592 0 2.759.312 3.503.934.744.624 1.115 1.78 1.115 3.473 0 1.014-.129 1.855-.386 2.522-.258.669-.89 1.181-1.903 1.536zm5.43 9.348V.001h1.907v17.812H57.43zm13.374-6.168v-.708c0-1.539-.141-2.636-.426-3.297-.284-.658-1.191-.99-2.718-.99h-.401c-1.617 0-2.625.25-3.025.75-.399.5-.599 1.632-.599 3.4V12.822c0 .206.008.407.024.602a9.48 9.48 0 0 0 .216 1.474c.106.465.275.822.505 1.072.196.179.435.302.72.373.283.072.586.116.905.135h1.254c1.083 0 1.914-.151 2.492-.456.577-.302.9-1.043.972-2.22a18.338 18.338 0 0 0 .054-1.447c.015-.233.027-.47.027-.71zm-3.786-6.518c2.399 0 3.956.414 4.672 1.243.717.828 1.074 2.418 1.074 4.766 0 2.048-.219 3.704-.657 4.966C71.668 17.367 70.16 18 67.581 18c-2.237 0-3.782-.347-4.632-1.042-.85-.694-1.275-2.205-1.275-4.54v-1.174c0-2.12.318-3.669.954-4.646.635-.98 2.099-1.471 4.39-1.471zm16.434 10.776c.501-.328.752-1.205.752-2.63h1.853c0 1.924-.403 3.178-1.209 3.765-.804.589-2.157.882-4.054.882-2.648 0-4.24-.538-4.767-1.616-.528-1.076-.79-2.781-.79-5.114 0-2.118.365-3.645 1.1-4.581.732-.934 2.21-1.401 4.43-1.401 1.377 0 2.568.221 3.571.665 1.003.446 1.504 1.497 1.504 3.153v.188a.232.232 0 0 0-.026.106v.106H83.99c0-1.12-.229-1.851-.686-2.188-.455-.34-1.23-.507-2.323-.507-1.665 0-2.712.259-3.142.782-.43.524-.643 1.67-.643 3.44V12.2c0 1.4.16 2.448.482 3.15.324.7 1.298 1.048 2.927 1.048 1.397 0 2.346-.165 2.847-.495zm9.236-4.82L99 17.813h-2.47l-5.317-6.01h-.752v6.01h-1.907V0h1.907v10.362h.752l4.512-5.02h2.309l-5.346 5.741z"}));function j$4({showText:ee=!0,showLogo:ye=!0,mode:Ee="dark",layout:Se="vertical",size:Ie=void 0,style:Oe={},...Ne}){const He=Ee==="light",Ue=He?jsxRuntimeExports.jsx(l$c,{}):jsxRuntimeExports.jsx(l$b,{}),Ye=He?jsxRuntimeExports.jsx(v$6,{className:"logo-text"}):jsxRuntimeExports.jsx(v$5,{className:"logo-text"});return Ie&&(Oe.width=`${Ie}px`,Oe.height=`${Ie}px`),jsxRuntimeExports.jsxs(d$8,{layout:Se,style:Oe,...Ne,children:[ye&&Ue,ee&&Ye]})}const d$8=l$o("span")`
534
534
  display: inline-flex;
535
535
  flex-direction: ${ee=>ee.layout==="horizontal"?"row":"column"};
536
536
  justify-content: center;
@@ -2897,4 +2897,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2897
2897
  padding-top: 16px;
2898
2898
  ${ee=>ee.scrollable?"":"overflow: hidden"};
2899
2899
  }
2900
- `;function GlobalSubscriber(){const{t:ee}=V$1(),{session:ye}=useSessionContext$1(),{info:Ee,refresh:Se}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ie,user:Oe})=>{Ie===Ee.did&&Oe&&!Oe.approved&&ye&&ye.user&&ye.user.did===Oe.did&&(H$6.warning(ee("session.blockAccess"),{autoHideDuration:10*1e3}),ye.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ie=>{Ie.entityType==="node"&&Se({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Se({silent:!0})}),null}const authorize=({user:ee,launchType:ye,nftId:Ee})=>{if(!ee)return!1;if(ye==="serverless"){if(!Ee)throw new Error("nftId is required");return ee?.controller?.nftId===Ee}return(ee.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=ee=>ee.isGetBlocklet&&ee.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async ee=>{const ye=getBlockletUrls({blocklet:ee});let Ee="";return Ee=ye.find(Se=>{try{const{hostname:Ie}=new URL(Se);return urlEvaluationExports.isSlpDomain(Ie)}catch(Ie){return console.error(Ie),!1}}),Ee||(Ee=await getAccessibleUrl(ye)),Ee},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:ee}){const{session:ye}=useSessionContext$1(),{t:Ee}=V$1(),{api:Se,info:Ie}=useNodeContext(),[Oe]=useSearchParams(),Ne=Oe.get("launchType"),He=Oe.get("fromLauncher"),Ue=Oe.get("blocklet_meta_url")||"",Ye=Oe.get("nftId")||"",Ge=Oe.get("from")||"",Qe=Oe.get("launcherSessionId")||"",et=Oe.get("launcherUrl")||"",tt=Ge==="url",rt=Ge==="empty",it=tt||rt?"":new URL(Ue).origin,[at,ot]=reactExports.useState({meta:null,appDid:Oe.get("appDid")||null,sessionId:Oe.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),lt=(ct,yt)=>ot(vt=>({...vt,appDid:ct,sessionId:yt})),ut=authorize({user:ye.user,launchType:Ne,nftId:Ye}),[dt,ft]=reactExports.useState(null),[bt,gt]=reactExports.useState(!0),Tt=reactExports.useMemo(()=>Ie?getServerUrl(Ie):"",[Ie]),_t=async ct=>{if(!ct)throw new Error("appDid should not be empty");const{blocklet:yt}=await Se.getBlocklet({input:{did:ct,attachConfig:!1}});if(!yt)return null;const vt=constantExports.BlockletStatus[yt.status],Et=!!Ye,xt=vt<constantExports.BlockletStatus.installed,St=vt===constantExports.BlockletStatus.installed,wt=vt===constantExports.BlockletStatus.running;return ot(Rt=>({...Rt,isInstalled:St,isRunning:wt,isExternal:Et,isInstalling:xt})),{isInstalled:St,isRunning:wt,isExternal:Et,isInstalling:xt}},Ct=async()=>{if(gt(!0),rt){ot(ct=>({...ct,meta:{title:Oe.get("title")||"",description:Oe.get("description")||""}})),gt(!1);return}try{if(!Ue&&!rt)throw new Error(Ee("common.invalidParam"));const[{meta:ct,isFree:yt,registryUrl:vt},{launcherSession:Et,error:xt}]=await Promise.all([Se.getBlockletMetaFromUrl({input:{url:Ue,checkPrice:!0}}),Qe?Se.getLauncherSession({input:{launcherSessionId:Qe,launcherUrl:et}}):Promise.resolve({})]);if(Qe&&!Et)throw new Error(`Launch session invalid: ${xt}`);if(!ct)throw new Error(Ee("LaunchBlockletBlocklet.error.loadMetaFailed"));let St={};ut&&at.appDid&&(St=await _t(at.appDid)),ot(wt=>({...wt,...St,meta:ct,isFree:yt,registryUrl:vt,launcherSession:Et}))}catch(ct){console.error(ct),ft(ct.message)}finally{gt(!1)}};reactExports.useEffect(()=>{ye?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&ye?.user?.controller?.nftId!==Ye&&ye.logout(),Ct()},[]),reactExports.useEffect(()=>{bt||!at.meta||(ut?at.appDid&&_t(at.appDid).catch(ct=>{H$6.error(ct.message)}):(ot(ct=>({...ct,isInstalled:!1,isRunning:!1,isExternal:!1})),ft(null)))},[ut]);const kt={meta:at.meta,isFree:at.isFree,appDid:at.appDid,sessionId:at.sessionId,isInstalling:at.isInstalling,isInstalled:at.isInstalled,isExternal:at.isExternal,isRunning:at.isRunning,serverUrl:Tt,storeUrl:at.registryUrl||it,blockletMetaUrl:Ue,fromLauncher:He,loading:bt,error:dt,api:Se,getBlocklet:_t,setAppDid:lt,launcherUrl:et,launcherSession:at.launcherSession,launcherSessionId:Qe,launchType:Ne};return jsxRuntimeExports.jsx(Provider$1,{value:kt,children:ee})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:ee}){const Ee=useQuery().get("blocklet_meta_url"),Se=useAsync(async()=>{const{data:Oe}=await axios.get(Ee);return Oe});if(Se.loading)return jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ie={meta:Se.value,error:Se.error};return jsxRuntimeExports.jsx(Provider,{value:Ie,children:ee})}BlockletAppProvider.propTypes={children:o$l.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-BVJB29cJ.js"),__vite__mapDeps([4,5,6,7,8,9]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-FdUIQyuT.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,18,19,20,2,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,6,37,38,39,40,41,42,43,44,45]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-DJfXtT-f.js"),__vite__mapDeps([46,47,48,49,50,51,28,11,42,27,52,53,24,2]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-CbK68mel.js"),__vite__mapDeps([54,11,55,56,57,58,59,22,2,60,38,39,61,62,43,42,63,27,64,9,24,28,29,30,65,66,32,67,68]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-tNmk7CjJ.js"),__vite__mapDeps([69,70,67,71,72,32,13,14,15,16,17,18,19,20,2,21,22,23,24,73,74,37,64,9,6,75,31,11,76,77,78,79,43,25,80,59,81,82,8]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-0NOALS_P.js"),__vite__mapDeps([83,84,29,30,11]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CHgpIuFF.js"),__vite__mapDeps([85,70,86,2,21,22,23,11,87,88,89,90,91,92,60,31,93,43,94,13,14,15,16,17,18,19,20,24,95,44,29,30,71,96,36,38,39,97,32,9,98,99,79,6,61,27,12,100,101,56,51,37,74,102,103,104,105,106,107,108,76,81,5,64,109,110,111]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-Cgws9Fjd.js"),__vite__mapDeps([112,70,25,26,11,24,27,28,29,30,31,32,60,113,92,68]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-CZX-K9Eg.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-Crqqt-AN.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DqkfLKvE.js"),__vite__mapDeps([114,115,113,100,16,101,116,117,28]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-BqrWLXQw.js"),__vite__mapDeps([118,94,63,100,16,116,117,28,41]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-iqFfmV_z.js"),__vite__mapDeps([119,116,117,28]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-BBe9oV9e.js"),__vite__mapDeps([120,48,49,50,51,109,110,121,87,88,89,28,34,35,53,45,11,75,66]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DrsAyGr6.js"),__vite__mapDeps([122,113]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-BikUP_wv.js"),__vite__mapDeps([123,115,113,100,16,101,116,117]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-DXfP6ckA.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-B6x6Mq9n.js"),__vite__mapDeps([124,70,125,126,58,59,127,19,128,129,98,99,15,79,13,14,16,17,18,20,2,21,22,23,24,130,131,8,11,107,30]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-jHF3D4cy.js"),__vite__mapDeps([132,113]),import.meta.url));function useSharedContext(){const ee=useNodeContext(),{session:ye}=useSessionContext$1(),{wallet:Ee}=d$g(),Se=ye.user&&ye.user.did;return reactExports.useEffect(()=>{const Ie=getWsClient();return Se?Ie.connect():Ie.isConnected()&&Ie.disconnect(),()=>{Ie.isConnected()&&Ie.disconnect()}},[Se]),reactExports.useEffect(()=>{if(Ee)return()=>{};const Ie=()=>{document.visibilityState==="visible"&&ye.refresh()};return document.addEventListener("visibilitychange",Ie),()=>{document.removeEventListener("visibilitychange",Ie)}},[]),{node:ee,session:ye}}function ProtectedApp(){const{t:ee}=V$1(),{node:ye,session:Ee}=useSharedContext(),Se=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Se.pathname}${Se.search}`)},[Se]),reactExports.useEffect(()=>{Ee?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ee.logout()},[Ee?.user?.role]);const Ie=jsxRuntimeExports.jsx(CircularProgress,{});if(ye.loading||Ee.loading)return jsxRuntimeExports.jsx(o$i,{children:Ie});if(!ye.info.initialized)return getAuthMethodExports.getServerAuthMethod(ye.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(ye.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Ee.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ie});const Oe=jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Oe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${ee("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:ee("notification.title"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:ee("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:ee}){const{node:ye,session:Ee}=useSharedContext();return ye.loading||!Ee.initialized&&Ee.loading?jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):ye.info.upgradeSessionId?jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):ee}function App(){const{changeLocale:ee}=V$1(),ye=useQuery();reactExports.useEffect(()=>{const Se=ye.get("locale");Se&&["zh","en"].includes(Se)&&ee(Se)},[]);const Ee=jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ee,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const ee=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:ee,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(ee){console.error("Error during service worker registration:",ee)}});export{$$2 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,useMemoizedFn as F,Grid$1 as G,H$6 as H,o$i as I,Box as J,BlockletAppAvatar as K,Link as L,Link$1 as M,isEmpty as N,oe as O,Tooltip as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,V$1 as V,WrappedDidAddress as W,Checkbox as X,Alert as Y,formatError as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$4 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,normalizePathPrefix as aI,sortBy as aJ,getIp as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendlyExports as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$4 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,getBlockletMetaUrl as az,constantExports as b,generateUtilityClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,A$5 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,Button as bA,createPassportSvg as bB,getWalletType as bC,useCreation as bD,BlockletAdminRoles as bE,isInstalling as bF,Badge as bG,createAppPassportSvg as bH,NavLink as bI,__vitePreload as bJ,SetCache as bK,arrayIncludes$1 as bL,arrayIncludesWith as bM,cacheHas as bN,baseUniq as bO,baseFlatten as bP,baseRest as bQ,last as bR,arrayFilter as bS,isArrayLikeObject as bT,t$9 as bU,isDownloading as bV,getBlockletUrl as bW,getBlockletUrlParams as bX,ButtonBase as bY,memoTheme as bZ,emphasize as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$4 as be,dayjs as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$f as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,t$1 as bp,e$c as bq,l$o as br,copy as bs,toBase58 as bt,B$3 as bu,o$d as bv,l$g as bw,BlockletAvatar as bx,ClickAwayListener as by,f$9 as bz,createCompounder as c,s$8 as c$,generateUtilityClass as c0,useDefaultProps as c1,useSlotProps as c2,clsx$1 as c3,composeClasses as c4,__read as c5,toSlotDomain as c6,omit as c7,fixBlocklet as c8,isProtectedRole as c9,Avatar as cA,isFromWallet as cB,usePassportId as cC,isFunction$3 as cD,Container$3 as cE,K$3 as cF,getLauncherBaseURL as cG,SvgIcon as cH,Buffer as cI,parseURL as cJ,withHttps as cK,useLaunchBlockletContext as cL,z$2 as cM,authorize as cN,E$a as cO,ArrowForwardIcon as cP,isNewStoreUrl as cQ,getAccessibleUrl as cR,getBlockletLogoUrl as cS,t as cT,M$9 as cU,__spreadArrays as cV,__assign as cW,h$7 as cX,useLocation as cY,e$b as cZ,useMount as c_,baseOrderBy as ca,isArray$1 as cb,rootShouldForwardProp as cc,useFormControl as cd,createChainedFunction$1 as ce,useSlot as cf,capitalize$1 as cg,SwitchBase as ch,createSimplePaletteValueFilter as ci,useControlled as cj,useForkRef as ck,useId as cl,getBlockletUrls as cm,defaultCheckAccessible as cn,urlEvaluationExports as co,memoize as cp,ButtonGroupContext as cq,ButtonGroupButtonContext as cr,useNotificationContext as cs,utilExports as ct,NotificationList as cu,useRequest as cv,isNumber$3 as cw,useLatest as cx,f$b as cy,d$g as cz,useBlockletsContext as d,isNil as d$,formatDateTime as d0,getExplorerLink as d1,patchJsxToLocale as d2,T$5 as d3,getSessionToken as d4,LinearProgress as d5,SvgLogo as d6,isNumber$1 as d7,useEnhancedEffect$1 as d8,debounce$2 as d9,getDIDMotifInfo as dA,Me as dB,q$6 as dC,ne$4 as dD,g$8 as dE,R$1 as dF,a$b as dG,K$5 as dH,Fe as dI,S$3 as dJ,R$5 as dK,U$1 as dL,i$e as dM,trim as dN,we as dO,n$5 as dP,I$4 as dQ,re$2 as dR,useInterval$2 as dS,i$4 as dT,data$a as dU,_e$1 as dV,be as dW,$e$3 as dX,Cookies as dY,g$7 as dZ,omitBy as d_,ownerWindow as da,useRtl as db,KeyboardArrowLeft as dc,KeyboardArrowRight as dd,useEventCallback$1 as de,ownerDocument as df,getCommonHtmlTitle as dg,HelmetExport as dh,requireReact as di,i$d as dj,ie$2 as dk,ae$2 as dl,InfoIcon$2 as dm,e$d as dn,isUndefined$1 as dp,d$j as dq,g$e as dr,useUpdate as ds,p$f as dt,e$8 as du,noop$1 as dv,o$4 as dw,useSize as dx,u$l as dy,Q$4 as dz,useAsyncRetry as e,afterMain as e$,fe$1 as e0,browserExports as e1,e$e as e2,De as e3,M$4 as e4,z$3 as e5,ce$1 as e6,ue as e7,Le as e8,data$t as e9,emotionUtils_browser_esm as eA,requireJsxRuntime as eB,requirePropTypes as eC,requireReactDom as eD,isObject$3 as eE,require$$0$3 as eF,require$$6$1 as eG,requireConstant$1 as eH,$e$1 as eI,Paper as eJ,MenuList as eK,Popper as eL,_inheritsLoose$1 as eM,ReactDOM as eN,_objectWithoutPropertiesLoose$1 as eO,TransitionGroup as eP,ENTERED as eQ,ENTERING as eR,EXITING as eS,TransitionGroupContext as eT,Transition as eU,config$1 as eV,popperGenerator as eW,eventListeners as eX,popperOffsets$1 as eY,computeStyles$1 as eZ,applyStyles$1 as e_,b$a as ea,data$r as eb,l$r as ec,P$1 as ed,P$6 as ee,A$3 as ef,useDebounceFn as eg,usePrevious as eh,$e$2 as ei,x$6 as ej,Skeleton as ek,f$5 as el,l$s as em,N$4 as en,_$3 as eo,c$9 as ep,upperFirst as eq,camelCase as er,R$7 as es,isArrayLike as et,baseIteratee as eu,keys as ev,toInteger as ew,baseFindIndex as ex,commonjsGlobal as ey,getAugmentedNamespace as ez,useTheme as f,mergeThemeOptions as f$,afterRead as f0,afterWrite as f1,arrow$1 as f2,auto as f3,basePlacements as f4,beforeMain as f5,beforeRead as f6,beforeWrite as f7,bottom as f8,clippingParents as f9,requireLib as fA,requireLib$2 as fB,requireLib$1 as fC,requireConstant$2 as fD,requireUrlPathFriendly as fE,data$p as fF,global$2 as fG,hoistStatics as fH,isEqual$3 as fI,usePreviousProps as fJ,setRef as fK,ClearIcon as fL,ArrowDropDownIcon as fM,Chip as fN,filledInputClasses as fO,inputBaseClasses as fP,outlinedInputClasses as fQ,inputClasses as fR,ListContext as fS,getListItemButtonUtilityClass as fT,listItemButtonClasses as fU,emotionReact_browser_esm as fV,emotionCache_browser_esm as fW,cloneDeep$1 as fX,forceReflow as fY,_extends$2 as fZ,toString$2 as f_,createPopper as fa,createPopper$1 as fb,detectOverflow as fc,end as fd,flip$1 as fe,hide$1 as ff,left as fg,main as fh,modifierPhases as fi,offset$1 as fj,placements as fk,popper as fl,preventOverflow$1 as fm,read as fn,reference as fo,right as fp,start as fq,top as fr,variationPlacements as fs,viewport as ft,write as fu,requireReactIs as fv,emotionStyled_browser_esm as fw,emotionSerialize_esm as fx,emotionSheet_esm as fy,process$1 as fz,p$3 as g,InputBase as g$,StyledEngineProvider as g0,ThemeProvider as g1,ThemeProvider$3 as g2,s$3 as g3,CloseIcon as g4,isString$1 as g5,createTheme as g6,createAxios as g7,pick as g8,flat as g9,useInterval as gA,formatTime as gB,CloseFullscreenIcon as gC,S$7 as gD,TablePagination as gE,parseAvatar as gF,__rest as gG,useEffectWithTarget$1 as gH,__values as gI,tmp as gJ,requireUtil$6 as gK,requireObjectKeys$1 as gL,requireShams$1 as gM,requireCallBound as gN,requireEsObjectAtoms as gO,requireDefineDataProperty as gP,requireHasPropertyDescriptors as gQ,requireCallBind as gR,requireCallBound$1 as gS,requireSafeBuffer$1 as gT,requireBrowser$f as gU,requireElliptic as gV,requireCryptoBrowserify as gW,requireRipemd160 as gX,requireUtil$3 as gY,uniq as gZ,useLocalStorageState as g_,MenuIcon as ga,Dialog as gb,OutlinedInput as gc,data as gd,Drawer as ge,parseQuery as gf,parseFilename as gg,stringifyParsedURL as gh,Grow as gi,Wt as gj,InputAdornment as gk,tooltipClasses as gl,requireEngine as gm,__spreadArray as gn,useEventListener as go,getTargetElement as gp,MoreHorizIcon as gq,lighten as gr,darken as gs,clamp as gt,extractEventHandlers as gu,isFocusVisible as gv,isHostComponent as gw,slotShouldForwardProp as gx,requireNormalizePathPrefix as gy,debounce as gz,get$1 as h,isDidDomainOrIpEchoDomain as h$,DialogTitle as h0,DialogContent as h1,DialogActions as h2,pickBy as h3,shouldForwardProp as h4,resolveComponentProps as h5,getInviteLink as h6,getIssuePassportLink as h7,uniqBy$1 as h8,isNodeOwner as h9,dialogClasses as hA,s$i as hB,n$8 as hC,purify as hD,Buffer$1 as hE,Q$2 as hF,require$$0$2 as hG,requireIsAbsoluteUrl as hH,requireDist$2 as hI,requireBrowser as hJ,require$$4 as hK,resolveProps as hL,useThemeProps as hM,defaultTheme$1 as hN,THEME_ID as hO,en$2 as hP,isIndex as hQ,useTheme$4 as hR,objectAssign as hS,__extends as hT,isServerless as hU,isFunction$2 as hV,omit$1 as hW,TableContext as hX,Tablelvl2Context as hY,g$c as hZ,useUnmount as h_,isSelf as ha,I$3 as hb,PQueue as hc,getBlockletAccessibleUrl as hd,A$2 as he,createPassportSvg$1 as hf,toAddress as hg,requireMs as hh,isValid as hi,E$3 as hj,getBlockletSDK as hk,identity$1 as hl,arrayEach as hm,baseEach as hn,arrayMap as ho,baseMap as hp,baseForOwn as hq,isPlainObject$2 as hr,require$$13 as hs,throttle$2 as ht,requireJsonStableStringify as hu,requireSemver as hv,requireBrowser$5 as hw,useTimeout as hx,Fade as hy,FocusTrap as hz,utilExports$1 as i,useDebounce as i$,ExpandLess as i0,validateDomain as i1,requireDist$3 as i2,requireAxios as i3,trim$1 as i4,requirePRetry as i5,TableCell as i6,xe$1 as i7,getSystemDomains as i8,copyArray as i9,root$1 as iA,isNil$1 as iB,require$$3 as iC,require$$12 as iD,requireHoistNonReactStatics_cjs as iE,_assertThisInitialized$1 as iF,reactDomExports as iG,loadIcon as iH,withoutLeadingSlash as iI,fetchSvgAsPng as iJ,blobToFile as iK,withoutTrailingSlash as iL,u$2 as iM,_e$3 as iN,t$f as iO,i as iP,R$a as iQ,highlightExports as iR,funcExports as iS,data$s as iT,useSnackbar as iU,common$3 as iV,green as iW,amber as iX,SnackbarContent as iY,d$i as iZ,t$2 as i_,baseIndexOf as ia,ke as ib,useAppLogo as ic,getTransferAppLink as id,BN$1 as ie,DID_PREFIX as ig,toTypeInfo as ih,toTypeInfoStr as ii,DID_TYPE_ETHEREUM as ij,DID_TYPE_ARCBLOCK as ik,DID_TYPE_PASSKEY as il,types$1 as im,updateWindowEnv as io,requireAssertString as ip,isEmail as iq,isURL as ir,data$x as is,requireBase32 as it,Pe as iu,withTrailingSlash as iv,data$w as iw,keyframes as ix,createUseStorageState as iy,isBrowser$1 as iz,jsxRuntimeExports as j,Y as j0,g$3 as j1,d$1 as j2,withErrorBoundary as j3,z$1 as j4,M$6 as j5,Ke as j6,G$1 as j7,requireZh$1 as j8,requireDayjs_min as j9,commonjsRequire as jA,requireHasown as jB,requireBrowser$3 as jC,require$$4$4 as jD,flatten as jE,trimEnd as jF,base32Exports as jG,flatExports as jH,Qi as jI,AxiosError as jJ,o$k as jK,BlockletSDK as jL,isNull as jM,orange as jN,purple as jO,useStore as jP,createStore as jQ,create$1 as jR,t$g as jS,clientExports as jT,Te$1 as jU,retry as jV,isNetworkError as jW,requirePTimeout as jX,Modal as jY,GlobalStyles$2 as jZ,l$t as ja,isPlainObject$1 as jb,xe as jc,useBlockletLogo as jd,Toolbar as je,_setPrototypeOf as jf,isString$3 as jg,FormLabel as jh,RelativeTime as ji,isIncludeActivity as jj,isUserActor as jk,ActorAvatar as jl,SendComponentAvatar as jm,Activity as jn,NotificationContent$1 as jo,AvatarGroup as jp,requireCjs as jq,useTheme$2 as jr,baseAssignValue as js,isValidClusterSize as jt,extractStatusUrlFromNextWorkflow as ju,pWaitFor as jv,hasRequiredSteps as jw,getStoreList as jx,require_interface as jy,requireRolldown_runtime as jz,filesize as k,prettyMs as l,formatLocale as m,useSessionContext as n,o$l as o,p$e as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,w$3 as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
2900
+ `;function GlobalSubscriber(){const{t:ee}=V$1(),{session:ye}=useSessionContext$1(),{info:Ee,refresh:Se}=useNodeContext();return useSubscription(constantExports.TeamEvents.userUpdated,({teamDid:Ie,user:Oe})=>{Ie===Ee.did&&Oe&&!Oe.approved&&ye&&ye.user&&ye.user.did===Oe.did&&(H$6.warning(ee("session.blockAccess"),{autoHideDuration:10*1e3}),ye.logout())}),useSubscription(constantExports$1.EVENTS.NOTIFICATION_CREATE,Ie=>{Ie.entityType==="node"&&Se({silent:!0})}),useSubscription(constantExports$1.EVENTS.NODE_UPDATED,()=>{Se({silent:!0})}),null}const authorize=({user:ee,launchType:ye,nftId:Ee})=>{if(!ee)return!1;if(ye==="serverless"){if(!Ee)throw new Error("nftId is required");return ee?.controller?.nftId===Ee}return(ee.permissions||[]).includes("mutate_blocklets")},isServerlessBlockletInstalled=ee=>ee.isGetBlocklet&&ee.runtimeBlocklet?.controller?.consumedAt,getRestoredAccessUrl=async ee=>{const ye=getBlockletUrls({blocklet:ee});let Ee="";return Ee=ye.find(Se=>{try{const{hostname:Ie}=new URL(Se);return urlEvaluationExports.isSlpDomain(Ie)}catch(Ie){return console.error(Ie),!1}}),Ee||(Ee=await getAccessibleUrl(ye)),Ee},LaunchBlockletContext=reactExports.createContext({}),{Provider:Provider$1,Consumer:Consumer$1}=LaunchBlockletContext;function LaunchBlockletProvider({children:ee}){const{session:ye}=useSessionContext$1(),{t:Ee}=V$1(),{api:Se,info:Ie}=useNodeContext(),[Oe]=useSearchParams(),Ne=Oe.get("launchType"),He=Oe.get("fromLauncher"),Ue=Oe.get("blocklet_meta_url")||"",Ye=Oe.get("nftId")||"",Ge=Oe.get("from")||"",Qe=Oe.get("launcherSessionId")||"",et=Oe.get("launcherUrl")||"",tt=Ge==="url",rt=Ge==="empty",it=tt||rt?"":new URL(Ue).origin,[at,ot]=reactExports.useState({meta:null,appDid:Oe.get("appDid")||null,sessionId:Oe.get("sessionId")||null,isFree:!0,isExternal:!1,isInstalling:!1,isInstalled:!1,isRunning:!1,launcherSession:null,registryUrl:""}),lt=(ct,yt)=>ot(vt=>({...vt,appDid:ct,sessionId:yt})),ut=authorize({user:ye.user,launchType:Ne,nftId:Ye}),[dt,ft]=reactExports.useState(null),[bt,gt]=reactExports.useState(!0),Tt=reactExports.useMemo(()=>Ie?getServerUrl(Ie):"",[Ie]),_t=async ct=>{if(!ct)throw new Error("appDid should not be empty");const{blocklet:yt}=await Se.getBlocklet({input:{did:ct,attachConfig:!1}});if(!yt)return null;const vt=constantExports.BlockletStatus[yt.status],Et=!!Ye,xt=vt<constantExports.BlockletStatus.installed,St=vt===constantExports.BlockletStatus.installed,wt=vt===constantExports.BlockletStatus.running;return ot(Rt=>({...Rt,isInstalled:St,isRunning:wt,isExternal:Et,isInstalling:xt})),{isInstalled:St,isRunning:wt,isExternal:Et,isInstalling:xt}},Ct=async()=>{if(gt(!0),rt){ot(ct=>({...ct,meta:{title:Oe.get("title")||"",description:Oe.get("description")||""}})),gt(!1);return}try{if(!Ue&&!rt)throw new Error(Ee("common.invalidParam"));const[{meta:ct,isFree:yt,registryUrl:vt},{launcherSession:Et,error:xt}]=await Promise.all([Se.getBlockletMetaFromUrl({input:{url:Ue,checkPrice:!0}}),Qe?Se.getLauncherSession({input:{launcherSessionId:Qe,launcherUrl:et}}):Promise.resolve({})]);if(Qe&&!Et)throw new Error(`Launch session invalid: ${xt}`);if(!ct)throw new Error(Ee("LaunchBlockletBlocklet.error.loadMetaFailed"));let St={};ut&&at.appDid&&(St=await _t(at.appDid)),ot(wt=>({...wt,...St,meta:ct,isFree:yt,registryUrl:vt,launcherSession:Et}))}catch(ct){console.error(ct),ft(ct.message)}finally{gt(!1)}};reactExports.useEffect(()=>{ye?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&ye?.user?.controller?.nftId!==Ye&&ye.logout(),Ct()},[]),reactExports.useEffect(()=>{bt||!at.meta||(ut?at.appDid&&_t(at.appDid).catch(ct=>{H$6.error(ct.message)}):(ot(ct=>({...ct,isInstalled:!1,isRunning:!1,isExternal:!1})),ft(null)))},[ut]);const kt={meta:at.meta,isFree:at.isFree,appDid:at.appDid,sessionId:at.sessionId,isInstalling:at.isInstalling,isInstalled:at.isInstalled,isExternal:at.isExternal,isRunning:at.isRunning,serverUrl:Tt,storeUrl:at.registryUrl||it,blockletMetaUrl:Ue,fromLauncher:He,loading:bt,error:dt,api:Se,getBlocklet:_t,setAppDid:lt,launcherUrl:et,launcherSession:at.launcherSession,launcherSessionId:Qe,launchType:Ne};return jsxRuntimeExports.jsx(Provider$1,{value:kt,children:ee})}function useLaunchBlockletContext(){return reactExports.useContext(LaunchBlockletContext)}var useAsyncExports=requireUseAsync();const useAsync=getDefaultExportFromCjs$1(useAsyncExports);function useQuery(){return new URLSearchParams(useLocation().search)}const BlockletAppContext=reactExports.createContext(),{Provider,Consumer}=BlockletAppContext;function BlockletAppProvider({children:ee}){const Ee=useQuery().get("blocklet_meta_url"),Se=useAsync(async()=>{const{data:Oe}=await axios.get(Ee);return Oe});if(Se.loading)return jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});const Ie={meta:Se.value,error:Se.error};return jsxRuntimeExports.jsx(Provider,{value:Ie,children:ee})}BlockletAppProvider.propTypes={children:o$l.any.isRequired};function useBlockletAppContext(){return reactExports.useContext(BlockletAppContext)}const Dashboard=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cp8XtCdH.js"),__vite__mapDeps([4,5,6,7,8,9]),import.meta.url)),BlockletList=reactExports.lazy(()=>__vitePreload(()=>import("./index-Fr0im6-l.js"),__vite__mapDeps([10,11,12,13,14,15,16,17,18,19,20,2,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,6,37,38,39,40,41,42,43,44,45]),import.meta.url)),BlockletRestore=reactExports.lazy(()=>__vitePreload(()=>import("./index-Jt9YjCeK.js"),__vite__mapDeps([46,47,48,49,50,51,28,11,42,27,52,53,24,2]),import.meta.url)),BlockletStore=reactExports.lazy(()=>__vitePreload(()=>import("./index-ZuJcpT1T.js"),__vite__mapDeps([54,11,55,56,57,58,59,22,2,60,38,39,61,62,43,42,63,27,64,9,24,28,29,30,65,66,32,67,68]),import.meta.url)),Settings=reactExports.lazy(()=>__vitePreload(()=>import("./index-BAYzgNzt.js"),__vite__mapDeps([69,70,67,71,72,32,13,14,15,16,17,18,19,20,2,21,22,23,24,73,74,37,64,9,6,75,31,11,76,77,78,79,43,25,80,59,81,82,8]),import.meta.url)),LogPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Fir5RRo8.js"),__vite__mapDeps([83,84,29,30,11]),import.meta.url)),TeamPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-Ltxc7YUP.js"),__vite__mapDeps([85,70,86,2,21,22,23,11,87,88,89,90,91,92,60,31,93,43,94,13,14,15,16,17,18,19,20,24,95,44,29,30,71,96,36,38,39,97,32,9,98,99,79,6,61,27,12,100,101,56,51,37,74,102,103,104,105,106,107,108,76,81,5,64,109,110,111]),import.meta.url)),BlockletDetail=reactExports.lazy(()=>__vitePreload(()=>import("./detail-BSLJegmW.js"),__vite__mapDeps([112,70,25,26,11,24,27,28,29,30,31,32,60,113,92,68]),import.meta.url)),EULAPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-yR3ovHMI.js"),[],import.meta.url)),Notifications=reactExports.lazy(()=>__vitePreload(()=>import("./index-D33KlJUT.js"),[],import.meta.url)),IssuePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-CIjzdo65.js"),__vite__mapDeps([114,115,113,100,16,101,116,117,28]),import.meta.url)),LostPassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-Dpw7fQUd.js"),__vite__mapDeps([118,94,63,100,16,116,117,28,41]),import.meta.url)),ExchangePassport=reactExports.lazy(()=>__vitePreload(()=>import("./index-DfDHgwS-.js"),__vite__mapDeps([119,116,117,28]),import.meta.url)),BlockletLauncher=reactExports.lazy(()=>__vitePreload(()=>import("./index-DLJTQrAL.js"),__vite__mapDeps([120,48,49,50,51,109,110,121,87,88,89,28,34,35,53,45,11,75,66]),import.meta.url)),NotFoundPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-DuNah4NO.js"),__vite__mapDeps([122,113]),import.meta.url)),Invite=reactExports.lazy(()=>__vitePreload(()=>import("./index-Cmvy-qPR.js"),__vite__mapDeps([123,115,113,100,16,101,116,117]),import.meta.url)),Console=reactExports.lazy(()=>__vitePreload(()=>import("./index-DDI8UY6T.js"),[],import.meta.url)),AnalyticsPage=reactExports.lazy(()=>__vitePreload(()=>import("./index-D2bmvDtL.js"),__vite__mapDeps([124,70,125,126,58,59,127,19,128,129,98,99,15,79,13,14,16,17,18,20,2,21,22,23,24,130,131,8,11,107,30]),import.meta.url)),GenKeyPair=reactExports.lazy(()=>__vitePreload(()=>import("./index-AoP-pJu3.js"),__vite__mapDeps([132,113]),import.meta.url));function useSharedContext(){const ee=useNodeContext(),{session:ye}=useSessionContext$1(),{wallet:Ee}=d$g(),Se=ye.user&&ye.user.did;return reactExports.useEffect(()=>{const Ie=getWsClient();return Se?Ie.connect():Ie.isConnected()&&Ie.disconnect(),()=>{Ie.isConnected()&&Ie.disconnect()}},[Se]),reactExports.useEffect(()=>{if(Ee)return()=>{};const Ie=()=>{document.visibilityState==="visible"&&ye.refresh()};return document.addEventListener("visibilitychange",Ie),()=>{document.removeEventListener("visibilitychange",Ie)}},[]),{node:ee,session:ye}}function ProtectedApp(){const{t:ee}=V$1(),{node:ye,session:Ee}=useSharedContext(),Se=useLocation();reactExports.useEffect(()=>{window.tracker&&typeof window.tracker.pageView=="function"&&window.tracker.pageView(`${Se.pathname}${Se.search}`)},[Se]),reactExports.useEffect(()=>{Ee?.user?.role===constantExports$1.SERVER_ROLES.EXTERNAL_BLOCKLET_CONTROLLER&&Ee.logout()},[Ee?.user?.role]);const Ie=jsxRuntimeExports.jsx(CircularProgress,{});if(ye.loading||Ee.loading)return jsxRuntimeExports.jsx(o$i,{children:Ie});if(!ye.info.initialized)return getAuthMethodExports.getServerAuthMethod(ye.info)==="nft"?jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"verify-owner"}):jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(NodeConnectOwner,{})});if(ye.info.upgradeSessionId)return jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(MaintainProgress,{})});if(!Ee.user)return jsxRuntimeExports.jsx(NodeLogin,{loadingEle:Ie});const Oe=jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(BlockletsProvider,{children:jsxRuntimeExports.jsxs(NotificationProvider,{children:[jsxRuntimeExports.jsx(Health,{}),jsxRuntimeExports.jsx(CheckNodeStatus,{}),jsxRuntimeExports.jsx(GlobalSubscriber,{}),jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Oe,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/dashboard",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Dashboard",children:jsxRuntimeExports.jsx(Dashboard,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.blocklets"),children:jsxRuntimeExports.jsx(BlockletList,{})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/:did/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:"Blocklets",children:jsxRuntimeExports.jsx(BlockletDetail,{})})}),jsxRuntimeExports.jsx(Route,{path:"/settings/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.setting"),children:jsxRuntimeExports.jsx(Settings,{})})}),jsxRuntimeExports.jsx(Route,{path:"/eula",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("setup.steps.eula"),children:jsxRuntimeExports.jsx(EULAPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/store",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.store"),children:jsxRuntimeExports.jsx(BlockletStore,{})})}),jsxRuntimeExports.jsx(Route,{path:"/console",element:jsxRuntimeExports.jsx(DashboardRoute,{title:`GraphQL ${ee("common.console")}`,scrollable:!1,fullWidth:!0,children:jsxRuntimeExports.jsx(Console,{})})}),jsxRuntimeExports.jsx(Route,{path:"/notifications",element:jsxRuntimeExports.jsx(DashboardRoute,{title:ee("notification.title"),children:jsxRuntimeExports.jsx(Notifications,{})})}),jsxRuntimeExports.jsx(Route,{path:"/team/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.team"),children:jsxRuntimeExports.jsx(TeamPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/logs/:name?",element:jsxRuntimeExports.jsx(DashboardRoute,{scrollable:!1,fullWidth:!0,title:ee("common.logs"),children:jsxRuntimeExports.jsx(LogPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/analytics/:tab",element:jsxRuntimeExports.jsx(DashboardRoute,{fullWidth:!0,title:ee("common.analytics"),children:jsxRuntimeExports.jsx(AnalyticsPage,{})})}),jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/dashboard",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/team",element:jsxRuntimeExports.jsx(Navigate,{to:"/team/members",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/analytics",element:jsxRuntimeExports.jsx(Navigate,{to:"/analytics/traffic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/router",element:jsxRuntimeExports.jsx(Navigate,{to:"/router/rules",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/settings",element:jsxRuntimeExports.jsx(Navigate,{to:"/settings/basic",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace",element:jsxRuntimeExports.jsx(Navigate,{to:"/store",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"/marketplace/:did",element:jsxRuntimeExports.jsx(Navigate,{to:"/store/:did",replace:!0})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(NotFoundPage,{})})]})})]})})}function UnprotectedWrapper({children:ee}){const{node:ye,session:Ee}=useSharedContext();return ye.loading||!Ee.initialized&&Ee.loading?jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})}):ye.info.upgradeSessionId?jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(MaintainProgress,{})}):ee}function App(){const{changeLocale:ee}=V$1(),ye=useQuery();reactExports.useEffect(()=>{const Se=ye.get("locale");Se&&["zh","en"].includes(Se)&&ee(Se)},[]);const Ee=jsxRuntimeExports.jsx(o$i,{children:jsxRuntimeExports.jsx(CircularProgress,{})});return jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:Ee,children:jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/issue-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(IssuePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/lost-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LostPassport,{})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/exchange-passport`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(ExchangePassport,{})})}),jsxRuntimeExports.jsx(Route,{path:"/accept-server",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(NodeVerifyOwner,{action:"accept-server"})})}),jsxRuntimeExports.jsx(Route,{path:"/gen-key-pair/",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(GenKeyPair,{})})}),jsxRuntimeExports.jsx(Route,{path:"/launch-blocklet/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(LaunchBlockletProvider,{children:jsxRuntimeExports.jsx(BlockletLauncher,{})})})}),jsxRuntimeExports.jsx(Route,{path:"/blocklets/restore/*",element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(BlockletAppProvider,{children:jsxRuntimeExports.jsx(BlockletRestore,{})})})}),jsxRuntimeExports.jsx(Route,{path:`${constantExports$1.WELLKNOWN_SERVICE_PATH_PREFIX}/invite`,element:jsxRuntimeExports.jsx(UnprotectedWrapper,{children:jsxRuntimeExports.jsx(Invite,{})})}),jsxRuntimeExports.jsx(Route,{path:"/*",element:jsxRuntimeExports.jsx(ProtectedApp,{})})]})})}function AppWrapper(){const ee=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";return jsxRuntimeExports.jsx(BrowserRouter,{history:history$1,basename:ee,children:jsxRuntimeExports.jsx(Root,{children:jsxRuntimeExports.jsx(App,{})})})}const root=clientExports.createRoot(document.getElementById("root"));root.render(jsxRuntimeExports.jsx(AppWrapper,{}));const prefix=window.env&&window.env.apiPrefix?window.env.apiPrefix:"/";register(`${prefix}/service-worker.js`.replace(/\/+/g,"/"),{registrationOptions:{scope:prefix},registered(){console.info("Service worker has been registered.")},ready(){console.info("Service worker is active.")},cached(){console.info("Content has been cached for offline use.")},updatefound(){console.info("New content is downloading.")},updated(){console.info("New content is available; please refresh.")},offline(){console.info("No internet connection found. App is running in offline mode.")},error(ee){console.error("Error during service worker registration:",ee)}});export{$$2 as $,useNavigate as A,useSearchParams as B,CircularProgress as C,DialogContentText as D,useMediaQuery as E,useMemoizedFn as F,Grid$1 as G,H$6 as H,o$i as I,Box as J,BlockletAppAvatar as K,Link as L,Link$1 as M,isEmpty as N,oe as O,Tooltip as P,FormControl as Q,InputLabel as R,Select as S,Typography as T,MenuItem as U,V$1 as V,WrappedDidAddress as W,Checkbox as X,Alert as Y,formatError as Z,CheckIcon$2 as _,useSubscription as a,Menu as a$,propTypesExports as a0,api as a1,merge as a2,cloneDeep as a3,IconButton as a4,R$4 as a5,ListItemSecondaryAction as a6,List as a7,ListItem as a8,ListItemText as a9,ErrorBoundary as aA,k$1 as aB,formatRegistryLogoPath as aC,Icon as aD,ListItemIcon as aE,createSvgIcon as aF,ensureDomainAliases as aG,constantExports$1 as aH,normalizePathPrefix as aI,sortBy as aJ,getIp as aK,stringSortHandlerAsc as aL,getAccessUrl as aM,history$1 as aN,semver as aO,useReactive as aP,useAsyncEffect as aQ,InfoOutlinedIcon as aR,sleep as aS,checkInputByType as aT,FormControlLabel as aU,Stack$1 as aV,useAsync as aW,axios as aX,shouldCheckDomainStatus as aY,formatMountPoint as aZ,urlPathFriendlyExports as a_,getServerUrl as aa,useBlockletAppContext as ab,getAuthMethodExports as ac,ConfirmDialog as ad,getRestoredAccessUrl as ae,setSessionToken as af,isEqual as ag,isServerlessBlockletInstalled as ah,Debug as ai,getWsClient as aj,useQuery as ak,getPathPrefix as al,Global as am,Routes as an,Route as ao,Navigate as ap,HeaderAddon as aq,SessionContext as ar,css as as,$$4 as at,formatToDatetime as au,alpha$1 as av,getLaunchAgreementUrl as aw,axios$2 as ax,useSessionContext$1 as ay,getBlockletMetaUrl as az,constantExports as b,generateUtilityClasses as b$,checkIsWildcardDomain as b0,Popover as b1,Card as b2,formatToDate as b3,sortDomains as b4,A$5 as b5,Collapse as b6,CheckCircle as b7,styled as b8,isUrl as b9,Button as bA,createPassportSvg as bB,getWalletType as bC,useCreation as bD,BlockletAdminRoles as bE,isInstalling as bF,Badge as bG,createAppPassportSvg as bH,NavLink as bI,__vitePreload as bJ,SetCache as bK,arrayIncludes$1 as bL,arrayIncludesWith as bM,cacheHas as bN,baseUniq as bO,baseFlatten as bP,baseRest as bQ,last as bR,arrayFilter as bS,isArrayLikeObject as bT,t$9 as bU,isDownloading as bV,getBlockletUrl as bW,getBlockletUrlParams as bX,ButtonBase as bY,memoTheme as bZ,emphasize as b_,__awaiter as ba,__generator as bb,__spread as bc,getDefaultExportFromCjs$1 as bd,U$4 as be,dayjs as bf,Divider as bg,isCertificateMatch as bh,FormHelperText as bi,FormGroup as bj,o$f as bk,NodeContext as bl,useParams as bm,useNodeContext$1 as bn,uniqBy as bo,t$1 as bp,e$c as bq,l$o as br,copy as bs,toBase58 as bt,B$3 as bu,o$d as bv,l$g as bw,BlockletAvatar as bx,ClickAwayListener as by,f$9 as bz,createCompounder as c,s$8 as c$,generateUtilityClass as c0,useDefaultProps as c1,useSlotProps as c2,clsx$1 as c3,composeClasses as c4,__read as c5,toSlotDomain as c6,omit as c7,fixBlocklet as c8,isProtectedRole as c9,Avatar as cA,isFromWallet as cB,usePassportId as cC,isFunction$3 as cD,Container$3 as cE,K$3 as cF,getLauncherBaseURL as cG,SvgIcon as cH,Buffer as cI,parseURL as cJ,withHttps as cK,useLaunchBlockletContext as cL,z$2 as cM,authorize as cN,E$a as cO,ArrowForwardIcon as cP,isNewStoreUrl as cQ,getAccessibleUrl as cR,getBlockletLogoUrl as cS,t as cT,M$9 as cU,__spreadArrays as cV,__assign as cW,h$7 as cX,useLocation as cY,e$b as cZ,useMount as c_,baseOrderBy as ca,isArray$1 as cb,rootShouldForwardProp as cc,useFormControl as cd,createChainedFunction$1 as ce,useSlot as cf,capitalize$1 as cg,SwitchBase as ch,createSimplePaletteValueFilter as ci,useControlled as cj,useForkRef as ck,useId as cl,getBlockletUrls as cm,defaultCheckAccessible as cn,urlEvaluationExports as co,memoize as cp,ButtonGroupContext as cq,ButtonGroupButtonContext as cr,useNotificationContext as cs,utilExports as ct,NotificationList as cu,useRequest as cv,isNumber$3 as cw,useLatest as cx,f$b as cy,d$g as cz,useBlockletsContext as d,isNil as d$,formatDateTime as d0,getExplorerLink as d1,patchJsxToLocale as d2,T$5 as d3,getSessionToken as d4,LinearProgress as d5,SvgLogo as d6,isNumber$1 as d7,useEnhancedEffect$1 as d8,debounce$2 as d9,getDIDMotifInfo as dA,Me as dB,q$6 as dC,ne$4 as dD,g$8 as dE,R$1 as dF,a$b as dG,K$5 as dH,Fe as dI,S$3 as dJ,R$5 as dK,U$1 as dL,i$e as dM,trim as dN,we as dO,n$5 as dP,I$4 as dQ,re$2 as dR,useInterval$2 as dS,i$4 as dT,data$a as dU,_e$1 as dV,be as dW,$e$3 as dX,Cookies as dY,g$7 as dZ,omitBy as d_,ownerWindow as da,useRtl as db,KeyboardArrowLeft as dc,KeyboardArrowRight as dd,useEventCallback$1 as de,ownerDocument as df,getCommonHtmlTitle as dg,HelmetExport as dh,requireReact as di,i$d as dj,ie$2 as dk,ae$2 as dl,InfoIcon$2 as dm,e$d as dn,isUndefined$1 as dp,d$j as dq,g$e as dr,useUpdate as ds,p$f as dt,e$8 as du,noop$1 as dv,o$4 as dw,useSize as dx,u$l as dy,Q$4 as dz,useAsyncRetry as e,afterMain as e$,fe$1 as e0,browserExports as e1,e$e as e2,De as e3,M$4 as e4,z$3 as e5,ce$1 as e6,ue as e7,Le as e8,data$t as e9,emotionUtils_browser_esm as eA,requireJsxRuntime as eB,requirePropTypes as eC,requireReactDom as eD,isObject$3 as eE,require$$0$3 as eF,require$$6$1 as eG,requireConstant$1 as eH,$e$1 as eI,Paper as eJ,MenuList as eK,Popper as eL,_inheritsLoose$1 as eM,ReactDOM as eN,_objectWithoutPropertiesLoose$1 as eO,TransitionGroup as eP,ENTERED as eQ,ENTERING as eR,EXITING as eS,TransitionGroupContext as eT,Transition as eU,config$1 as eV,popperGenerator as eW,eventListeners as eX,popperOffsets$1 as eY,computeStyles$1 as eZ,applyStyles$1 as e_,b$a as ea,data$r as eb,l$r as ec,P$1 as ed,P$6 as ee,A$3 as ef,useDebounceFn as eg,usePrevious as eh,$e$2 as ei,x$6 as ej,Skeleton as ek,f$5 as el,l$s as em,N$4 as en,_$3 as eo,c$9 as ep,upperFirst as eq,camelCase as er,R$7 as es,isArrayLike as et,baseIteratee as eu,keys as ev,toInteger as ew,baseFindIndex as ex,commonjsGlobal as ey,getAugmentedNamespace as ez,useTheme as f,mergeThemeOptions as f$,afterRead as f0,afterWrite as f1,arrow$1 as f2,auto as f3,basePlacements as f4,beforeMain as f5,beforeRead as f6,beforeWrite as f7,bottom as f8,clippingParents as f9,requireLib as fA,requireLib$2 as fB,requireLib$1 as fC,requireConstant$2 as fD,requireUrlPathFriendly as fE,data$p as fF,global$2 as fG,hoistStatics as fH,isEqual$3 as fI,usePreviousProps as fJ,setRef as fK,ClearIcon as fL,ArrowDropDownIcon as fM,Chip as fN,filledInputClasses as fO,inputBaseClasses as fP,outlinedInputClasses as fQ,inputClasses as fR,ListContext as fS,getListItemButtonUtilityClass as fT,listItemButtonClasses as fU,emotionReact_browser_esm as fV,emotionCache_browser_esm as fW,cloneDeep$1 as fX,forceReflow as fY,_extends$2 as fZ,toString$2 as f_,createPopper as fa,createPopper$1 as fb,detectOverflow as fc,end as fd,flip$1 as fe,hide$1 as ff,left as fg,main as fh,modifierPhases as fi,offset$1 as fj,placements as fk,popper as fl,preventOverflow$1 as fm,read as fn,reference as fo,right as fp,start as fq,top as fr,variationPlacements as fs,viewport as ft,write as fu,requireReactIs as fv,emotionStyled_browser_esm as fw,emotionSerialize_esm as fx,emotionSheet_esm as fy,process$1 as fz,p$3 as g,InputBase as g$,StyledEngineProvider as g0,ThemeProvider as g1,ThemeProvider$3 as g2,s$3 as g3,CloseIcon as g4,isString$1 as g5,createTheme as g6,createAxios as g7,pick as g8,flat as g9,useInterval as gA,formatTime as gB,CloseFullscreenIcon as gC,S$7 as gD,TablePagination as gE,parseAvatar as gF,__rest as gG,useEffectWithTarget$1 as gH,__values as gI,tmp as gJ,requireUtil$6 as gK,requireObjectKeys$1 as gL,requireShams$1 as gM,requireCallBound as gN,requireEsObjectAtoms as gO,requireDefineDataProperty as gP,requireHasPropertyDescriptors as gQ,requireCallBind as gR,requireCallBound$1 as gS,requireSafeBuffer$1 as gT,requireBrowser$f as gU,requireElliptic as gV,requireCryptoBrowserify as gW,requireRipemd160 as gX,requireUtil$3 as gY,uniq as gZ,useLocalStorageState as g_,MenuIcon as ga,Dialog as gb,OutlinedInput as gc,data as gd,Drawer as ge,parseQuery as gf,parseFilename as gg,stringifyParsedURL as gh,Grow as gi,Wt as gj,InputAdornment as gk,tooltipClasses as gl,requireEngine as gm,__spreadArray as gn,useEventListener as go,getTargetElement as gp,MoreHorizIcon as gq,lighten as gr,darken as gs,clamp as gt,extractEventHandlers as gu,isFocusVisible as gv,isHostComponent as gw,slotShouldForwardProp as gx,requireNormalizePathPrefix as gy,debounce as gz,get$1 as h,isDidDomainOrIpEchoDomain as h$,DialogTitle as h0,DialogContent as h1,DialogActions as h2,pickBy as h3,shouldForwardProp as h4,resolveComponentProps as h5,getInviteLink as h6,getIssuePassportLink as h7,uniqBy$1 as h8,isNodeOwner as h9,dialogClasses as hA,s$i as hB,n$8 as hC,purify as hD,Buffer$1 as hE,Q$2 as hF,require$$0$2 as hG,requireIsAbsoluteUrl as hH,requireDist$2 as hI,requireBrowser as hJ,require$$4 as hK,resolveProps as hL,useThemeProps as hM,defaultTheme$1 as hN,THEME_ID as hO,en$2 as hP,isIndex as hQ,useTheme$4 as hR,objectAssign as hS,__extends as hT,isServerless as hU,isFunction$2 as hV,omit$1 as hW,TableContext as hX,Tablelvl2Context as hY,g$c as hZ,useUnmount as h_,isSelf as ha,I$3 as hb,PQueue as hc,getBlockletAccessibleUrl as hd,A$2 as he,createPassportSvg$1 as hf,toAddress as hg,requireMs as hh,isValid as hi,E$3 as hj,getBlockletSDK as hk,identity$1 as hl,arrayEach as hm,baseEach as hn,arrayMap as ho,baseMap as hp,baseForOwn as hq,isPlainObject$2 as hr,require$$13 as hs,throttle$2 as ht,requireJsonStableStringify as hu,requireSemver as hv,requireBrowser$5 as hw,useTimeout as hx,Fade as hy,FocusTrap as hz,utilExports$1 as i,useDebounce as i$,ExpandLess as i0,validateDomain as i1,requireDist$3 as i2,requireAxios as i3,trim$1 as i4,requirePRetry as i5,TableCell as i6,xe$1 as i7,getSystemDomains as i8,copyArray as i9,root$1 as iA,isNil$1 as iB,require$$3 as iC,require$$12 as iD,requireHoistNonReactStatics_cjs as iE,_assertThisInitialized$1 as iF,reactDomExports as iG,loadIcon as iH,withoutLeadingSlash as iI,fetchSvgAsPng as iJ,blobToFile as iK,withoutTrailingSlash as iL,u$2 as iM,_e$3 as iN,t$f as iO,i as iP,R$a as iQ,highlightExports as iR,funcExports as iS,data$s as iT,useSnackbar as iU,common$3 as iV,green as iW,amber as iX,SnackbarContent as iY,d$i as iZ,t$2 as i_,baseIndexOf as ia,ke as ib,useAppLogo as ic,getTransferAppLink as id,BN$1 as ie,DID_PREFIX as ig,toTypeInfo as ih,toTypeInfoStr as ii,DID_TYPE_ETHEREUM as ij,DID_TYPE_ARCBLOCK as ik,DID_TYPE_PASSKEY as il,types$1 as im,updateWindowEnv as io,requireAssertString as ip,isEmail as iq,isURL as ir,data$x as is,requireBase32 as it,Pe as iu,withTrailingSlash as iv,data$w as iw,keyframes as ix,createUseStorageState as iy,isBrowser$1 as iz,jsxRuntimeExports as j,Y as j0,g$3 as j1,d$1 as j2,withErrorBoundary as j3,z$1 as j4,M$6 as j5,Ke as j6,G$1 as j7,requireZh$1 as j8,requireDayjs_min as j9,commonjsRequire as jA,requireHasown as jB,requireBrowser$3 as jC,require$$4$4 as jD,trimEnd as jE,flatten as jF,base32Exports as jG,flatExports as jH,Qi as jI,AxiosError as jJ,o$k as jK,BlockletSDK as jL,isNull as jM,orange as jN,purple as jO,useStore as jP,createStore as jQ,create$1 as jR,t$g as jS,clientExports as jT,Te$1 as jU,retry as jV,isNetworkError as jW,requirePTimeout as jX,Modal as jY,GlobalStyles$2 as jZ,l$t as ja,isPlainObject$1 as jb,xe as jc,useBlockletLogo as jd,Toolbar as je,_setPrototypeOf as jf,isString$3 as jg,FormLabel as jh,RelativeTime as ji,isIncludeActivity as jj,isUserActor as jk,ActorAvatar as jl,SendComponentAvatar as jm,Activity as jn,NotificationContent$1 as jo,AvatarGroup as jp,requireCjs as jq,useTheme$2 as jr,baseAssignValue as js,isValidClusterSize as jt,extractStatusUrlFromNextWorkflow as ju,pWaitFor as jv,hasRequiredSteps as jw,getStoreList as jx,require_interface as jy,requireRolldown_runtime as jz,filesize as k,prettyMs as l,formatLocale as m,useSessionContext as n,o$l as o,p$e as p,useSetState as q,reactExports as r,styled$3 as s,TextField as t,useNodeContext as u,n$4 as v,w$3 as w,getWebWalletUrl as x,joinURL as y,withQuery as z};
@@ -1 +1 @@
1
- import{hu as V,hv as I,hw as k,fC as W,fB as C,cI as U,fA as L}from"./index-Bek3Nxot.js";var w={},q={},J;function F(){if(J)return q;J=1;var m=Object.create,y=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,_=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(t,a,l,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(var S=s(a),e=0,o=S.length,r;e<o;e++)r=S[e],!u.call(t,r)&&r!==l&&y(t,r,{get:(i=>a[i]).bind(null,r),enumerable:!(E=d(a,r))||E.enumerable});return t},p=(t,a,l)=>(l=t!=null?m(_(t)):{},h(a||!t||!t.__esModule?y(l,"default",{value:t,enumerable:!0}):l,t));return q.__toESM=p,q}var D={},x={},P;function Y(){if(P)return x;P=1;var m=Object.create,y=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,_=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(t,a,l,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(var S=s(a),e=0,o=S.length,r;e<o;e++)r=S[e],!u.call(t,r)&&r!==l&&y(t,r,{get:(i=>a[i]).bind(null,r),enumerable:!(E=d(a,r))||E.enumerable});return t},p=(t,a,l)=>(l=t!=null?m(_(t)):{},h(a||!t||!t.__esModule?y(l,"default",{value:t,enumerable:!0}):l,t));return x.__toESM=p,x}var M;function G(){if(M)return D;M=1;const m=Y();let y=V();y=m.__toESM(y);let d=I();d=m.__toESM(d);let s=C(),_=L(),u=W(),h=k();h=m.__toESM(h);const p=(0,h.default)("@arcblock/jwt"),t="1.1.0",a=u.Hasher.SHA3.hash256;async function l(o,r,i={},v=!0,n="1.0.0"){if((0,_.isValid)(o)===!1)throw new Error("Cannot do sign with invalid signer");const f=(0,_.toTypeInfo)(o),c={[u.types.KeyType.SECP256K1]:{alg:"ES256K",type:"JWT"},[u.types.KeyType.ED25519]:{alg:"Ed25519",type:"JWT"},[u.types.KeyType.ETHEREUM]:{alg:"Ethereum",type:"JWT"},[u.types.KeyType.PASSKEY]:{alg:"Passkey",type:"JWT"}}[f.pk],b=(0,s.toBase64)((0,y.default)(c)),K=Math.floor(Date.now()/1e3),g={iss:(0,_.toDid)(o),iat:String(K),nbf:String(K),exp:String(K+300),version:n,...i||{}};Object.keys(g).forEach(T=>{(typeof g[T]>"u"||g[T]==null||g[T]==="")&&delete g[T]});const H=(0,s.toBase64)((0,y.default)(g));p("sign.body",g);const B=(0,s.toHex)(`${b}.${H}`),N=d.default.gte(d.default.coerce(n).version,t)?a(B):B;return v?[b,H,(0,s.toBase64)((0,u.getSigner)(f.pk).sign(N,r))].join("."):`${b}.${H}`}async function E(o,r,i={}){return l(o,r,i,!!r,"1.1.0")}function S(o,r=!0){const[i,v,n]=o.split("."),f=JSON.parse((0,s.fromBase64)(i).toString()),c=JSON.parse((0,s.fromBase64)(v).toString()),b=U.from((0,s.fromBase64)(n)).toString("hex");return r?c:{header:f,body:c,signature:`0x${(0,_.toStrictHex)(b)}`}}async function e(o,r,i){const{tolerance:v,enforceTimestamp:n,signerKey:f}=Object.assign({tolerance:5,enforceTimestamp:!0,signerKey:"iss"},i);try{const[c,b]=o.split("."),{header:K,body:g,signature:H}=S(o,!1);if(!H)return p("verify.error.emptySig"),!1;if(!K.alg)return p("verify.error.emptyAlg"),!1;const B=g[f];if(!B)return p("verify.error.emptySignerDid"),!1;if((0,_.isFromPublicKey)(B,r)===!1)return p("verify.error.signerDidAndPkNotMatch"),!1;if(n){const O=Math.ceil(Date.now()/1e3),j=Number(g.exp)||0,R=Number(g.iat)||0,$=Number(g.nbf)||0;if(p("verify.enforceTimestamp",{now:O,exp:j,iat:R,nbf:$}),j&&j+v<O)return p("verify.error.expired"),!1;if(R&&R>O&&R-O>v)return p("verify.error.issuedAt"),!1;if($&&$>O&&$-O>v)return p("verify.error.notBefore"),!1}const N={secp256k1:(0,u.getSigner)(u.types.KeyType.SECP256K1),es256k:(0,u.getSigner)(u.types.KeyType.SECP256K1),ed25519:(0,u.getSigner)(u.types.KeyType.ED25519),ethereum:(0,u.getSigner)(u.types.KeyType.ETHEREUM),passkey:(0,u.getSigner)(u.types.KeyType.PASSKEY)},T=K.alg.toLowerCase();if(N[T]){const O=(0,s.toHex)(`${c}.${b}`),j=g.version&&d.default.coerce(g.version)?d.default.coerce(g.version).version:"";return j&&j===t?N[T].verify(a(O),H,r):N[T].verify(O,H,r)}return p("verify.error.crypto"),!1}catch(c){return p("verify.error.exception"),p(c),!1}}return D.decode=S,D.sign=l,D.signV2=E,D.verify=e,D}var A;function z(){if(A)return w;A=1;const m=F();let y=C(),d=W(),s=L(),_=G();_=m.__toESM(_);const u=s.DidType;function h(e,o="default"){const r=(0,s.DidType)(o),i=(0,d.getSigner)(r.pk),v=(0,d.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,s.fromPublicKey)(e.pk,r):e.address,hash(n,f=1,c="hex"){return v(n,f,c)},async sign(n,f=!0,c="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(f){const b=v(n,1);return i.sign(b,e.sk,c)}return i.sign(n,e.sk,c)},async verify(n,f,c=!0,b){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const K=c?v(n,1):n;return i.verify(K,f,e.pk,b)},ethHash(n){if(typeof i.ethHash!="function")throw new Error("ethHash is not supported by signer");return i.ethHash(n)},async signETH(n,f=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof i.ethHash!="function")throw new Error("ethSign is not supported by signer");return f?i.ethSign(i.ethHash(n),(0,y.toHex)(e.sk)):i.ethSign(n,(0,y.toHex)(e.sk))},ethSign(n,f=!0){return this.signETH(n,f)},async ethVerify(n,f,c=!0){if(typeof i.ethHash!="function")throw new Error("ethVerify is not supported by signer");const b=c?i.ethHash(n):n;return i.ethRecover(b,f)===this.address},async signJWT(n={},f=!0,c="1.0.0"){if(!e.sk)throw new Error("Cannot sign JWT without a secretKey");return _.sign(this.address,e.sk,n,f,c)},toAddress(){return e.pk?(0,s.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:s.DidType.toJSON(r),sk:(0,y.toHex)(e.sk),pk:(0,y.toHex)(e.pk),address:this.address}}}}function p(e,o="default"){const r=(0,s.DidType)(o);return h({sk:e,pk:(0,d.getSigner)(r.pk).getPublicKey(e)},r)}function t(e,o="default"){return h({pk:e},(0,s.DidType)(o))}function a(e){return h({address:(0,s.toAddress)(e)},(0,s.toTypeInfo)(e))}function l(e="default"){const o=(0,s.DidType)(e),r=(0,d.getSigner)(o.pk).genKeyPair();return h({sk:r.secretKey,pk:r.publicKey},o)}function E(e){return h(e,s.DidType.fromJSON(e.type))}function S(e,o=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||o&&typeof e.sign!="function")}return w.Wallet=h,w.WalletType=u,w.fromAddress=a,w.fromJSON=E,w.fromPublicKey=t,w.fromRandom=l,w.fromSecretKey=p,w.isValid=S,w}export{z as r};
1
+ import{hu as V,hv as I,hw as k,fC as W,fB as C,cI as U,fA as L}from"./index-DQhyMeoV.js";var w={},q={},J;function F(){if(J)return q;J=1;var m=Object.create,y=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,_=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(t,a,l,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(var S=s(a),e=0,o=S.length,r;e<o;e++)r=S[e],!u.call(t,r)&&r!==l&&y(t,r,{get:(i=>a[i]).bind(null,r),enumerable:!(E=d(a,r))||E.enumerable});return t},p=(t,a,l)=>(l=t!=null?m(_(t)):{},h(a||!t||!t.__esModule?y(l,"default",{value:t,enumerable:!0}):l,t));return q.__toESM=p,q}var D={},x={},P;function Y(){if(P)return x;P=1;var m=Object.create,y=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,_=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,h=(t,a,l,E)=>{if(a&&typeof a=="object"||typeof a=="function")for(var S=s(a),e=0,o=S.length,r;e<o;e++)r=S[e],!u.call(t,r)&&r!==l&&y(t,r,{get:(i=>a[i]).bind(null,r),enumerable:!(E=d(a,r))||E.enumerable});return t},p=(t,a,l)=>(l=t!=null?m(_(t)):{},h(a||!t||!t.__esModule?y(l,"default",{value:t,enumerable:!0}):l,t));return x.__toESM=p,x}var M;function G(){if(M)return D;M=1;const m=Y();let y=V();y=m.__toESM(y);let d=I();d=m.__toESM(d);let s=C(),_=L(),u=W(),h=k();h=m.__toESM(h);const p=(0,h.default)("@arcblock/jwt"),t="1.1.0",a=u.Hasher.SHA3.hash256;async function l(o,r,i={},v=!0,n="1.0.0"){if((0,_.isValid)(o)===!1)throw new Error("Cannot do sign with invalid signer");const f=(0,_.toTypeInfo)(o),c={[u.types.KeyType.SECP256K1]:{alg:"ES256K",type:"JWT"},[u.types.KeyType.ED25519]:{alg:"Ed25519",type:"JWT"},[u.types.KeyType.ETHEREUM]:{alg:"Ethereum",type:"JWT"},[u.types.KeyType.PASSKEY]:{alg:"Passkey",type:"JWT"}}[f.pk],b=(0,s.toBase64)((0,y.default)(c)),K=Math.floor(Date.now()/1e3),g={iss:(0,_.toDid)(o),iat:String(K),nbf:String(K),exp:String(K+300),version:n,...i||{}};Object.keys(g).forEach(T=>{(typeof g[T]>"u"||g[T]==null||g[T]==="")&&delete g[T]});const H=(0,s.toBase64)((0,y.default)(g));p("sign.body",g);const B=(0,s.toHex)(`${b}.${H}`),N=d.default.gte(d.default.coerce(n).version,t)?a(B):B;return v?[b,H,(0,s.toBase64)((0,u.getSigner)(f.pk).sign(N,r))].join("."):`${b}.${H}`}async function E(o,r,i={}){return l(o,r,i,!!r,"1.1.0")}function S(o,r=!0){const[i,v,n]=o.split("."),f=JSON.parse((0,s.fromBase64)(i).toString()),c=JSON.parse((0,s.fromBase64)(v).toString()),b=U.from((0,s.fromBase64)(n)).toString("hex");return r?c:{header:f,body:c,signature:`0x${(0,_.toStrictHex)(b)}`}}async function e(o,r,i){const{tolerance:v,enforceTimestamp:n,signerKey:f}=Object.assign({tolerance:5,enforceTimestamp:!0,signerKey:"iss"},i);try{const[c,b]=o.split("."),{header:K,body:g,signature:H}=S(o,!1);if(!H)return p("verify.error.emptySig"),!1;if(!K.alg)return p("verify.error.emptyAlg"),!1;const B=g[f];if(!B)return p("verify.error.emptySignerDid"),!1;if((0,_.isFromPublicKey)(B,r)===!1)return p("verify.error.signerDidAndPkNotMatch"),!1;if(n){const O=Math.ceil(Date.now()/1e3),j=Number(g.exp)||0,R=Number(g.iat)||0,$=Number(g.nbf)||0;if(p("verify.enforceTimestamp",{now:O,exp:j,iat:R,nbf:$}),j&&j+v<O)return p("verify.error.expired"),!1;if(R&&R>O&&R-O>v)return p("verify.error.issuedAt"),!1;if($&&$>O&&$-O>v)return p("verify.error.notBefore"),!1}const N={secp256k1:(0,u.getSigner)(u.types.KeyType.SECP256K1),es256k:(0,u.getSigner)(u.types.KeyType.SECP256K1),ed25519:(0,u.getSigner)(u.types.KeyType.ED25519),ethereum:(0,u.getSigner)(u.types.KeyType.ETHEREUM),passkey:(0,u.getSigner)(u.types.KeyType.PASSKEY)},T=K.alg.toLowerCase();if(N[T]){const O=(0,s.toHex)(`${c}.${b}`),j=g.version&&d.default.coerce(g.version)?d.default.coerce(g.version).version:"";return j&&j===t?N[T].verify(a(O),H,r):N[T].verify(O,H,r)}return p("verify.error.crypto"),!1}catch(c){return p("verify.error.exception"),p(c),!1}}return D.decode=S,D.sign=l,D.signV2=E,D.verify=e,D}var A;function z(){if(A)return w;A=1;const m=F();let y=C(),d=W(),s=L(),_=G();_=m.__toESM(_);const u=s.DidType;function h(e,o="default"){const r=(0,s.DidType)(o),i=(0,d.getSigner)(r.pk),v=(0,d.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,s.fromPublicKey)(e.pk,r):e.address,hash(n,f=1,c="hex"){return v(n,f,c)},async sign(n,f=!0,c="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(f){const b=v(n,1);return i.sign(b,e.sk,c)}return i.sign(n,e.sk,c)},async verify(n,f,c=!0,b){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const K=c?v(n,1):n;return i.verify(K,f,e.pk,b)},ethHash(n){if(typeof i.ethHash!="function")throw new Error("ethHash is not supported by signer");return i.ethHash(n)},async signETH(n,f=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof i.ethHash!="function")throw new Error("ethSign is not supported by signer");return f?i.ethSign(i.ethHash(n),(0,y.toHex)(e.sk)):i.ethSign(n,(0,y.toHex)(e.sk))},ethSign(n,f=!0){return this.signETH(n,f)},async ethVerify(n,f,c=!0){if(typeof i.ethHash!="function")throw new Error("ethVerify is not supported by signer");const b=c?i.ethHash(n):n;return i.ethRecover(b,f)===this.address},async signJWT(n={},f=!0,c="1.0.0"){if(!e.sk)throw new Error("Cannot sign JWT without a secretKey");return _.sign(this.address,e.sk,n,f,c)},toAddress(){return e.pk?(0,s.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:s.DidType.toJSON(r),sk:(0,y.toHex)(e.sk),pk:(0,y.toHex)(e.pk),address:this.address}}}}function p(e,o="default"){const r=(0,s.DidType)(o);return h({sk:e,pk:(0,d.getSigner)(r.pk).getPublicKey(e)},r)}function t(e,o="default"){return h({pk:e},(0,s.DidType)(o))}function a(e){return h({address:(0,s.toAddress)(e)},(0,s.toTypeInfo)(e))}function l(e="default"){const o=(0,s.DidType)(e),r=(0,d.getSigner)(o.pk).genKeyPair();return h({sk:r.secretKey,pk:r.publicKey},o)}function E(e){return h(e,s.DidType.fromJSON(e.type))}function S(e,o=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||o&&typeof e.sign!="function")}return w.Wallet=h,w.WalletType=u,w.fromAddress=a,w.fromJSON=E,w.fromPublicKey=t,w.fromRandom=l,w.fromSecretKey=p,w.isValid=S,w}export{z as r};
@@ -1 +1 @@
1
- import{fG as D}from"./index-Bek3Nxot.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
1
+ import{fG as D}from"./index-DQhyMeoV.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
@@ -1 +1 @@
1
- import{bd as x}from"./index-Bek3Nxot.js";function D(a,i){for(var r=0;r<i.length;r++){const e=i[r];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in a)){const t=Object.getOwnPropertyDescriptor(e,s);t&&Object.defineProperty(a,s,t.get?t:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,w;function J(){if(w)return l;w=1;var a={default:l,call:function(i,r,e){var s="";typeof r=="function"&&(e=r,r={});var t={data:r===void 0?null:r};if(typeof e=="function"){var d="dscb"+window.dscb++;window[d]=e,t._dscbstub=d}return t=JSON.stringify(t),window._dsbridge?s=_dsbridge.call(i,t):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(s=prompt("_dsbridge="+i,t)),JSON.parse(s||"{}").data},register:function(i,r,e){var s=e?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){a.call("_dsb.dsinit")},0)),typeof r=="object"?s._obs[i]=r:s[i]=r},registerAsyn:function(i,r){this.register(i,r,!0)},hasNativeMethod:function(i,r){return this.call("_dsb.hasNativeMethod",{name:i,type:r||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};return function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:a,close:function(){a.call("_dsb.closePage")},_handleMessageFromNative:function(e){var s=JSON.parse(e.data),t={id:e.callbackId,complete:!0},d=this._dsf[e.method],o=this._dsaf[e.method],v=function(_,p){t.data=_.apply(p,s),a.call("_dsb.returnValue",t)},g=function(_,p){s.push(function(O,j){t.data=O,t.complete=j!==!1,a.call("_dsb.returnValue",t)}),_.apply(p,s)};if(d)v(d,this._dsf);else if(o)g(o,this._dsaf);else{var u=e.method.split(".");if(u.length<2)return;var b=u.pop(),h=u.join("."),c=this._dsf._obs,f=c[h]||{},n=f[b];if(n&&typeof n=="function"){v(n,f);return}if(c=this._dsaf._obs,f=c[h]||{},n=f[b],n&&typeof n=="function"){g(n,f);return}}}};for(var r in i)window[r]=i[r];a.register("_hasJavascriptMethod",function(e,s){var t=e.split(".");if(t.length<2)return!!(_dsf[t]||_dsaf[t]);var e=t.pop(),d=t.join("."),o=_dsf._obs[d]||_dsaf._obs[d];return o&&!!o[e]})}}(),l=a,l}var y=J();const N=x(y),k=D({__proto__:null,default:N},[y]);export{k as i};
1
+ import{bd as x}from"./index-DQhyMeoV.js";function D(a,i){for(var r=0;r<i.length;r++){const e=i[r];if(typeof e!="string"&&!Array.isArray(e)){for(const s in e)if(s!=="default"&&!(s in a)){const t=Object.getOwnPropertyDescriptor(e,s);t&&Object.defineProperty(a,s,t.get?t:{enumerable:!0,get:()=>e[s]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var l,w;function J(){if(w)return l;w=1;var a={default:l,call:function(i,r,e){var s="";typeof r=="function"&&(e=r,r={});var t={data:r===void 0?null:r};if(typeof e=="function"){var d="dscb"+window.dscb++;window[d]=e,t._dscbstub=d}return t=JSON.stringify(t),window._dsbridge?s=_dsbridge.call(i,t):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(s=prompt("_dsbridge="+i,t)),JSON.parse(s||"{}").data},register:function(i,r,e){var s=e?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){a.call("_dsb.dsinit")},0)),typeof r=="object"?s._obs[i]=r:s[i]=r},registerAsyn:function(i,r){this.register(i,r,!0)},hasNativeMethod:function(i,r){return this.call("_dsb.hasNativeMethod",{name:i,type:r||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};return function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:a,close:function(){a.call("_dsb.closePage")},_handleMessageFromNative:function(e){var s=JSON.parse(e.data),t={id:e.callbackId,complete:!0},d=this._dsf[e.method],o=this._dsaf[e.method],v=function(_,p){t.data=_.apply(p,s),a.call("_dsb.returnValue",t)},g=function(_,p){s.push(function(O,j){t.data=O,t.complete=j!==!1,a.call("_dsb.returnValue",t)}),_.apply(p,s)};if(d)v(d,this._dsf);else if(o)g(o,this._dsaf);else{var u=e.method.split(".");if(u.length<2)return;var b=u.pop(),h=u.join("."),c=this._dsf._obs,f=c[h]||{},n=f[b];if(n&&typeof n=="function"){v(n,f);return}if(c=this._dsaf._obs,f=c[h]||{},n=f[b],n&&typeof n=="function"){g(n,f);return}}}};for(var r in i)window[r]=i[r];a.register("_hasJavascriptMethod",function(e,s){var t=e.split(".");if(t.length<2)return!!(_dsf[t]||_dsaf[t]);var e=t.pop(),d=t.join("."),o=_dsf._obs[d]||_dsaf._obs[d];return o&&!!o[e]})}}(),l=a,l}var y=J();const N=x(y),k=D({__proto__:null,default:N},[y]);export{k as i};