@abtnode/webapp 1.16.27 → 1.16.28-beta-bfbab430

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 (205) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-DOwN6I9N.js → Add-DEou6OQu.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-CEsdzzcK.js → ArrowDropDown-B8q6yJii.js} +1 -1
  5. package/dist/assets/{Autocomplete-DcC19-q2.js → Autocomplete-CxHBaO5x.js} +1 -1
  6. package/dist/assets/Breadcrumbs--9MrOMZw.js +1 -0
  7. package/dist/assets/{ButtonGroup-CKY0O7tT.js → ButtonGroup-BbRXyWVe.js} +1 -1
  8. package/dist/assets/{CheckCircle-BA-bGNdF.js → CheckCircle-D6vwJd9K.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DRzRLgnp.js → ChevronLeft-Bc2acyen.js} +1 -1
  10. package/dist/assets/{ChevronRight-B2YICLYm.js → ChevronRight-Bcko4z80.js} +1 -1
  11. package/dist/assets/{Close-D9SKZkJ7.js → Close-DGnER_ve.js} +1 -1
  12. package/dist/assets/Delete-BGOcGa_D.js +1 -0
  13. package/dist/assets/DeleteOutline-C7JmRduW.js +1 -0
  14. package/dist/assets/{Done-DaMxTX7e.js → Done-CydSjSOx.js} +1 -1
  15. package/dist/assets/{Edit-B1ySEana.js → Edit-B0yxTPMe.js} +1 -1
  16. package/dist/assets/{EditIcon-BQGlXOR3.js → EditIcon-CF5y6ttj.js} +1 -1
  17. package/dist/assets/{FilterList-DKFhXHd2.js → FilterList-RGEuYf_e.js} +5 -5
  18. package/dist/assets/{Google-D2cPndsH.js → Google-CuSS9iHp.js} +4 -4
  19. package/dist/assets/{Https-CsiKqkaT.js → Https-B3P9JJiw.js} +1 -1
  20. package/dist/assets/{InfoOutlined-BUn5fKCT.js → InfoOutlined-B4lqtuRU.js} +1 -1
  21. package/dist/assets/{InputAdornment-DHLm1mFN.js → InputAdornment-BzCm_2kz.js} +1 -1
  22. package/dist/assets/{InputLabel-BjbeXM2B.js → InputLabel-CdW9MyDY.js} +1 -1
  23. package/dist/assets/{LastPage-DXu9ZGZF.js → LastPage-dDlMsztV.js} +1 -1
  24. package/dist/assets/{Launch-BIqLZtET.js → Launch-Dhs9Q_70.js} +1 -1
  25. package/dist/assets/{Link-DN_Lz3rV.js → Link-DSNZ4PNo.js} +1 -1
  26. package/dist/assets/{LoadingButton-3UN68oPJ.js → LoadingButton-DrVP9tt_.js} +1 -1
  27. package/dist/assets/{LockIcon-mC00ojRt.js → LockIcon-BMilDbx1.js} +1 -1
  28. package/dist/assets/{Loop-2BGd9rzF.js → Loop-CAxjNyCL.js} +1 -1
  29. package/dist/assets/{MoreVert-BCR8irtL.js → MoreVert-BL42DjcZ.js} +1 -1
  30. package/dist/assets/{Pagination-0NPBd4bk.js → Pagination-DWKt9t_F.js} +1 -1
  31. package/dist/assets/{Public-333jCEeA.js → Public-BobH8eAT.js} +1 -1
  32. package/dist/assets/{SchemaReference.es-oKwgj6eC.js → SchemaReference.es-MUfmufV5.js} +1 -1
  33. package/dist/assets/{Search-5iZBDNjz.js → Search-J7ilvWof.js} +1 -1
  34. package/dist/assets/{Select-CPvSg7uW.js → Select-DJl6HmRs.js} +2 -2
  35. package/dist/assets/{Skeleton-B4-1c0OT.js → Skeleton-CSyuj2cV.js} +4 -4
  36. package/dist/assets/{Slider-DdynydW3.js → Slider-DRCfqhU1.js} +1 -1
  37. package/dist/assets/{Stepper-DpooXZzV.js → Stepper-C2a4PQ3_.js} +1 -1
  38. package/dist/assets/{TextField-sj2mcEXD.js → TextField-BD0it3d0.js} +1 -1
  39. package/dist/assets/{ToggleButtonGroup-BKQ2fKoV.js → ToggleButtonGroup-CR3zvwUX.js} +1 -1
  40. package/dist/assets/{ViewList-Cul4OAvz.js → ViewList-D3pEO1Ca.js} +1 -1
  41. package/dist/assets/{actions-xngcxvp5.js → actions-CL-Y8Eer.js} +1 -1
  42. package/dist/assets/actions-Dx15LaaC.js +11 -0
  43. package/dist/assets/{agreement-DBRJClMM.js → agreement-Dd1yuqFa.js} +9 -9
  44. package/dist/assets/api-Ce74sKYG.js +1 -0
  45. package/dist/assets/app-avatar-rgMNqIXw.js +1 -0
  46. package/dist/assets/{ar-DqmJV4p8.js → ar-DXpJw3XU.js} +1 -1
  47. package/dist/assets/{audit-logs-BkgPztEs.js → audit-logs-CmuAN_qn.js} +1 -1
  48. package/dist/assets/{brace-fold.es-CsornGfx.js → brace-fold.es-psNZdrWu.js} +1 -1
  49. package/dist/assets/{bundle-avatar-DzcvR6DI.js → bundle-avatar-C_2wXttj.js} +1 -1
  50. package/dist/assets/chart-sF6tbndw.js +35 -0
  51. package/dist/assets/{click-to-copy-CBs5PKxt.js → click-to-copy-KBQWqGOq.js} +1 -1
  52. package/dist/assets/{closebrackets.es-5NAqcDxa.js → closebrackets.es-ZHCmqLUg.js} +1 -1
  53. package/dist/assets/{codemirror.es-CEoouqN7.js → codemirror.es-DmoQbR9T.js} +1 -1
  54. package/dist/assets/{comment.es-DX01jrAI.js → comment.es-B7zL23d5.js} +1 -1
  55. package/dist/assets/{config-navigation-Ngw7D7GZ.js → config-navigation-BN7PO-cf.js} +2 -2
  56. package/dist/assets/{de-CHOUObJ5.js → de-CWxlIdre.js} +1 -1
  57. package/dist/assets/{delete-confirm-Da1BomBl.js → delete-confirm-ztUwg2kj.js} +1 -1
  58. package/dist/assets/detail-CXbwmlpg.js +58 -0
  59. package/dist/assets/{dialog.es-Oh6qpXQO.js → dialog.es-CFWHh6H2.js} +1 -1
  60. package/dist/assets/{download-DHPNYF1S.js → download-bWTPRaod.js} +1 -1
  61. package/dist/assets/{es-aZ4oYeVs.js → es-BmrvDK07.js} +1 -1
  62. package/dist/assets/{foldgutter.es-DqR5-lAT.js → foldgutter.es-CqRhTHya.js} +1 -1
  63. package/dist/assets/{fr-Bi9vptGI.js → fr-B7SxgRy3.js} +1 -1
  64. package/dist/assets/getValidReactChildren-DKO9kPop.js +1 -0
  65. package/dist/assets/{hi-BXYjfUTP.js → hi-BRRtNIB_.js} +1 -1
  66. package/dist/assets/{hint.es-D5LvE1_r.js → hint.es-DK_6KY-o.js} +1 -1
  67. package/dist/assets/{hint.es2-CgI0iRUf.js → hint.es2-CgWo28Uj.js} +1 -1
  68. package/dist/assets/{id-VVXvzjmO.js → id-D6-Qi7Q1.js} +1 -1
  69. package/dist/assets/{iframe-BcDoraJg.js → iframe-C32DbqVc.js} +1 -1
  70. package/dist/assets/{index-CWilKNfl.js → index-84DtgjQO.js} +6 -6
  71. package/dist/assets/{index-DuwHJNV9.js → index-B0WN-XH2.js} +1 -1
  72. package/dist/assets/{index-Cl7gQviA.js → index-B4ZjZNN8.js} +1 -1
  73. package/dist/assets/{index-CsVg93BX.js → index-BA_TAXpL.js} +2 -2
  74. package/dist/assets/{index-CAH8ukaj.js → index-BD7uC7gm.js} +4 -4
  75. package/dist/assets/{index-DPGsh5ca.js → index-BET56ssY.js} +1 -1
  76. package/dist/assets/{index-zUZPbg2I.js → index-BNulkcXj.js} +1 -1
  77. package/dist/assets/{index--Q6KdM7v.js → index-BoZhSN8h.js} +1 -1
  78. package/dist/assets/{index-BgqVsUwi.js → index-Bzs05ai8.js} +1 -1
  79. package/dist/assets/index-C4aM6rsI.js +54 -0
  80. package/dist/assets/index-C6fuJWed.js +262 -0
  81. package/dist/assets/{index-DC46OSan.js → index-CE4mBIM_.js} +1 -1
  82. package/dist/assets/{index-4SJGeyEI.js → index-CEBXL16c.js} +1 -1
  83. package/dist/assets/{index-DV-pE5RI.js → index-CYGLUEkg.js} +3 -3
  84. package/dist/assets/index-CYZ-ZpV5.js +80 -0
  85. package/dist/assets/{index-B6ReOJJN.js → index-Ca7UJIsi.js} +1 -1
  86. package/dist/assets/{index-BXmzbebA.js → index-CfOOBUnf.js} +2 -2
  87. package/dist/assets/{index-C7GDLIo-.js → index-CiaQ1OoK.js} +1 -1
  88. package/dist/assets/{index-CtWm5SK6.js → index-Cj3s4CtX.js} +4 -4
  89. package/dist/assets/{index-Boqyvc8Q.js → index-CkI554oc.js} +212 -211
  90. package/dist/assets/{index-eGpwmK92.js → index-Clbjq5Ay.js} +3 -3
  91. package/dist/assets/{index-Bvs8qR9r.js → index-CsNkkebn.js} +1 -1
  92. package/dist/assets/{index-BwcFSka9.js → index-CwOFD6vt.js} +1 -1
  93. package/dist/assets/{index-DoMsU5M2.js → index-CzZF4DJ9.js} +1 -1
  94. package/dist/assets/{index-B-OHtxJg.js → index-D2cgpNGA.js} +57 -57
  95. package/dist/assets/{index-DycwPjM3.js → index-D5A34D-v.js} +1 -1
  96. package/dist/assets/index-D9RqTndg.js +21 -0
  97. package/dist/assets/index-DA4GWzzk.js +85 -0
  98. package/dist/assets/{index-CBdVDTUr.js → index-DG50udXf.js} +4 -4
  99. package/dist/assets/index-DHDAQRQS.js +11 -0
  100. package/dist/assets/index-DbaRhcjK.js +1 -0
  101. package/dist/assets/{index-BPEtPX12.js → index-Dc48oA1e.js} +7 -7
  102. package/dist/assets/index-DeSsBKwN.js +16 -0
  103. package/dist/assets/{index-Ct_q9GS4.js → index-Dlmo3B4P.js} +1 -1
  104. package/dist/assets/index-DoYPOJLK.js +530 -0
  105. package/dist/assets/{index-BCPsngBN.js → index-DuHl-QWf.js} +1 -1
  106. package/dist/assets/{index-opBznRc5.js → index-HMFhZkjG.js} +11 -11
  107. package/dist/assets/{index-_NTV4-zc.js → index-aVpXIXlo.js} +5 -5
  108. package/dist/assets/index-dQw_Q0Sx.js +58 -0
  109. package/dist/assets/{index-BCQQEHyP.js → index-lXzOGnDm.js} +11 -11
  110. package/dist/assets/index-lfuZxoX8.js +11 -0
  111. package/dist/assets/{index-DZnZf-o0.js → index-owRl0jyR.js} +16 -16
  112. package/dist/assets/{index-D81FDm0a.js → index-sNR67yJ2.js} +1 -1
  113. package/dist/assets/{index.es-C_vrKJwx.js → index.es-r9xAwx7Q.js} +1 -1
  114. package/dist/assets/{index.esm-Cnicyd3_.js → index.esm-BCQ0BZMT.js} +1 -1
  115. package/dist/assets/{info-addon.es-B0sGOwNz.js → info-addon.es-BDFdJmkW.js} +1 -1
  116. package/dist/assets/{info.es-x51I_2sm.js → info.es-CBadJSwW.js} +1 -1
  117. package/dist/assets/install-from-url-DuxahkOW.js +1 -0
  118. package/dist/assets/{invitation-B30vIvMt.js → invitation-CSvGVnhZ.js} +6 -6
  119. package/dist/assets/{isEqual-DbZp5EUk.js → isEqual-DLk5wI5o.js} +1 -1
  120. package/dist/assets/{item-BdJl6I8q.js → item-Bv034Zcl.js} +13 -13
  121. package/dist/assets/{ja-DqJiajLu.js → ja--dtwu5Xy.js} +1 -1
  122. package/dist/assets/{javascript.es-AOt9muQq.js → javascript.es-Bq6krn1L.js} +1 -1
  123. package/dist/assets/{jump-to-line.es-p4ynQoBS.js → jump-to-line.es-Cm-kakdo.js} +1 -1
  124. package/dist/assets/{jump.es-BrSOPKg0.js → jump.es-VEZCju5l.js} +1 -1
  125. package/dist/assets/{ko-DQKmtlbI.js → ko-DpRJDWhF.js} +1 -1
  126. package/dist/assets/{line-DdSLBn8H.js → line-VNmgswg2.js} +4 -4
  127. package/dist/assets/{lint.es-BMdrvXUs.js → lint.es-DhrBN362.js} +1 -1
  128. package/dist/assets/{lint.es2-DX4OlyGK.js → lint.es2-CWQYXYDN.js} +1 -1
  129. package/dist/assets/{lint.es3-BYQCiNDn.js → lint.es3-HsrZT9m1.js} +1 -1
  130. package/dist/assets/{list-header-BnipX_Rp.js → list-header-DsWkp7IV.js} +1 -1
  131. package/dist/assets/{log-i4SQ4Z0y.js → log-DgVRxyob.js} +2 -2
  132. package/dist/assets/{lottie-BYxFXW-g.js → lottie-CYf1PmCL.js} +1 -1
  133. package/dist/assets/{matchbrackets.es-aeJus3PD.js → matchbrackets.es-BthTk6Jn.js} +1 -1
  134. package/dist/assets/{memory-Cu-5WL0k.js → memory-dGmMptAO.js} +1 -1
  135. package/dist/assets/{mode.es-CXfOP3-9.js → mode.es-_GdTPtpx.js} +1 -1
  136. package/dist/assets/{mode.es2-DOeKit6c.js → mode.es2-brmgogqJ.js} +1 -1
  137. package/dist/assets/{mode.es3-8pUUSOKg.js → mode.es3-DPGB-Rg-.js} +1 -1
  138. package/dist/assets/{onlineParser.es-Bsw_5f31.js → onlineParser.es-BUsBjG_x.js} +1 -1
  139. package/dist/assets/overview-BjqHXIvR.js +23 -0
  140. package/dist/assets/{pt-si0ACe2m.js → pt-BxA88dKG.js} +1 -1
  141. package/dist/assets/{react-BU7lI6gg.js → react-B-xa5K3p.js} +22 -22
  142. package/dist/assets/{redux-07bmubSg.js → redux-BBckwmBz.js} +1 -1
  143. package/dist/assets/{resource-dialog-Co295aU2.js → resource-dialog-CIpxrG7w.js} +2 -2
  144. package/dist/assets/{ru-B36cpSA6.js → ru-C9WJaQoQ.js} +1 -1
  145. package/dist/assets/runtime-mnz4kggA.js +1 -0
  146. package/dist/assets/{search.es-ByHwIa0U.js → search.es-CV0d4AUV.js} +1 -1
  147. package/dist/assets/{searchcursor.es-CsQOLBoo.js → searchcursor.es-CxYOh1mB.js} +1 -1
  148. package/dist/assets/service-DbM6n6e-.js +1 -0
  149. package/dist/assets/{show-hint.es-BY2B9aLR.js → show-hint.es-GDHMVUwy.js} +1 -1
  150. package/dist/assets/{slicedToArray-BwJA6b7k.js → slicedToArray-Pwxti1pp.js} +3 -3
  151. package/dist/assets/spaces-3s9pbV-M.js +1 -0
  152. package/dist/assets/{sublime.es-DZOyVbIC.js → sublime.es-BiX2tLa_.js} +1 -1
  153. package/dist/assets/{switch-control-D1Iqbf5D.js → switch-control-1CHbJzd5.js} +1 -1
  154. package/dist/assets/{table-icons-CB9vK-gH.js → table-icons-DjAM1A7C.js} +10 -10
  155. package/dist/assets/{tag-CANB-Fll.js → tag-CdoBHuxB.js} +1 -1
  156. package/dist/assets/team-CrNp0IgF.js +1 -0
  157. package/dist/assets/{th-Dtc8_3Sk.js → th-z7LSYRZi.js} +1 -1
  158. package/dist/assets/toUpper-C7enqaxL.js +1 -0
  159. package/dist/assets/{traffic-CmQ-j2sa.js → traffic-Bw_e_wEP.js} +5 -5
  160. package/dist/assets/url-evaluation-asC5XTLH.js +7 -0
  161. package/dist/assets/use-blocklet-info-for-connect-did-spaces-R82fq7SC.js +1 -0
  162. package/dist/assets/{useLocalStorage-BNvbpN9F.js → useLocalStorage-DRS65jti.js} +1 -1
  163. package/dist/assets/util-BC42zb0j.js +1 -0
  164. package/dist/assets/{vi-DpH7bkpR.js → vi-CAtyUyNW.js} +1 -1
  165. package/dist/assets/{wait-container-mYVBI-ZE.js → wait-container-DzvlQJkQ.js} +4 -4
  166. package/dist/assets/withStyles-CPWhmxGn.js +1 -0
  167. package/dist/assets/wrap-locale-p7nrsckq.js +1 -0
  168. package/dist/assets/{zh-Dizc5DZz.js → zh-BVBeddUa.js} +1 -1
  169. package/dist/assets/{zh-tw-Cb93tcSH.js → zh-tw-CoStw7dd.js} +1 -1
  170. package/dist/index.html +1 -1
  171. package/dist/service-worker.js +1 -1
  172. package/package.json +1 -1
  173. package/dist/assets/Breadcrumbs-f87TWJgq.js +0 -1
  174. package/dist/assets/Delete-h8Ye2r4b.js +0 -1
  175. package/dist/assets/DeleteOutline-C-1A8rVu.js +0 -1
  176. package/dist/assets/DeleteOutline-ClZ-ABF-.js +0 -1
  177. package/dist/assets/actions-ByUCXaaH.js +0 -11
  178. package/dist/assets/api-BdOqJGVs.js +0 -1
  179. package/dist/assets/app-avatar-DEqDSBYG.js +0 -1
  180. package/dist/assets/chart-CQeRS3mZ.js +0 -35
  181. package/dist/assets/detail-CaMUtLL5.js +0 -58
  182. package/dist/assets/getValidReactChildren-B_HEoXEd.js +0 -1
  183. package/dist/assets/index-3vcNDYsD.js +0 -530
  184. package/dist/assets/index-B7-XNbV9.js +0 -85
  185. package/dist/assets/index-BMkbX5aS.js +0 -11
  186. package/dist/assets/index-B_M-nPU6.js +0 -58
  187. package/dist/assets/index-DMKpICI6.js +0 -1
  188. package/dist/assets/index-DY9g7uAE.js +0 -54
  189. package/dist/assets/index-DdxWI-QG.js +0 -262
  190. package/dist/assets/index-DwOVPSU7.js +0 -21
  191. package/dist/assets/index-Mr6j5sdU.js +0 -11
  192. package/dist/assets/index-PDofIfka.js +0 -80
  193. package/dist/assets/index-RlfSCcPa.js +0 -16
  194. package/dist/assets/install-from-url-Cnfp9xqR.js +0 -1
  195. package/dist/assets/overview-CnuzNSfm.js +0 -23
  196. package/dist/assets/runtime-CW-W-Oej.js +0 -1
  197. package/dist/assets/service-DNZLEaeT.js +0 -1
  198. package/dist/assets/spaces-CGO2dSgv.js +0 -1
  199. package/dist/assets/team-rrZYIohT.js +0 -1
  200. package/dist/assets/toUpper-D0HPBfn5.js +0 -1
  201. package/dist/assets/url-evaluation-DymLev_N.js +0 -7
  202. package/dist/assets/use-blocklet-info-for-connect-did-spaces-YWN8QaVT.js +0 -1
  203. package/dist/assets/util-CRUZQ4-B.js +0 -1
  204. package/dist/assets/withStyles-CSLQqeaB.js +0 -1
  205. package/dist/assets/wrap-locale-B076jNc7.js +0 -1
@@ -1 +1 @@
1
- import{e1 as S}from"./index-Boqyvc8Q.js";function I(r,t,n){return t=S(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function h(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),n.push.apply(n,e)}return n}function m(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(e){I(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function i(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var E=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function R(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function T(r,t,n){var e;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(i(1));return n(T)(r,t)}if(typeof r!="function")throw new Error(i(2));var u=r,a=t,p=[],c=p,f=!1;function w(){c===p&&(c=p.slice())}function g(){if(f)throw new Error(i(3));return a}function O(o){if(typeof o!="function")throw new Error(i(4));if(f)throw new Error(i(5));var l=!0;return w(),c.push(o),function(){if(l){if(f)throw new Error(i(6));l=!1,w();var s=c.indexOf(o);c.splice(s,1),p=null}}}function y(o){if(!R(o))throw new Error(i(7));if(typeof o.type>"u")throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,a=u(a,o)}finally{f=!1}for(var l=p=c,b=0;b<l.length;b++){var s=l[b];s()}return o}function N(o){if(typeof o!="function")throw new Error(i(10));u=o,y({type:P.REPLACE})}function A(){var o,l=O;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(i(11));function d(){s.next&&s.next(g())}d();var x=l(d);return{unsubscribe:x}}},o[E]=function(){return this},o}return y({type:P.INIT}),e={dispatch:y,subscribe:O,getState:g,replaceReducer:N},e[E]=A,e}function j(r,t){return function(){return t(r.apply(this,arguments))}}function K(r,t){if(typeof r=="function")return j(r,t);if(typeof r!="object"||r===null)throw new Error(i(16));var n={};for(var e in r){var u=r[e];typeof u=="function"&&(n[e]=j(u,t))}return n}function L(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,u){return function(){return e(u.apply(void 0,arguments))}})}function M(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return function(e){return function(){var u=e.apply(void 0,arguments),a=function(){throw new Error(i(15))},p={getState:u.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(f){return f(p)});return a=L.apply(void 0,c)(u.dispatch),m(m({},u),{},{dispatch:a})}}}export{I as _,M as a,K as b,T as c,L as d};
1
+ import{dU as S}from"./index-CkI554oc.js";function I(r,t,n){return t=S(t),t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}function h(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),n.push.apply(n,e)}return n}function m(r){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h(Object(n),!0).forEach(function(e){I(r,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function i(r){return"Minified Redux error #"+r+"; visit https://redux.js.org/Errors?code="+r+" for the full message or use the non-minified dev environment for full errors. "}var E=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),v=function(){return Math.random().toString(36).substring(7).split("").join(".")},P={INIT:"@@redux/INIT"+v(),REPLACE:"@@redux/REPLACE"+v(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+v()}};function R(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function T(r,t,n){var e;if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(i(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(i(1));return n(T)(r,t)}if(typeof r!="function")throw new Error(i(2));var u=r,a=t,p=[],c=p,f=!1;function w(){c===p&&(c=p.slice())}function g(){if(f)throw new Error(i(3));return a}function O(o){if(typeof o!="function")throw new Error(i(4));if(f)throw new Error(i(5));var l=!0;return w(),c.push(o),function(){if(l){if(f)throw new Error(i(6));l=!1,w();var s=c.indexOf(o);c.splice(s,1),p=null}}}function y(o){if(!R(o))throw new Error(i(7));if(typeof o.type>"u")throw new Error(i(8));if(f)throw new Error(i(9));try{f=!0,a=u(a,o)}finally{f=!1}for(var l=p=c,b=0;b<l.length;b++){var s=l[b];s()}return o}function N(o){if(typeof o!="function")throw new Error(i(10));u=o,y({type:P.REPLACE})}function A(){var o,l=O;return o={subscribe:function(s){if(typeof s!="object"||s===null)throw new Error(i(11));function d(){s.next&&s.next(g())}d();var x=l(d);return{unsubscribe:x}}},o[E]=function(){return this},o}return y({type:P.INIT}),e={dispatch:y,subscribe:O,getState:g,replaceReducer:N},e[E]=A,e}function j(r,t){return function(){return t(r.apply(this,arguments))}}function K(r,t){if(typeof r=="function")return j(r,t);if(typeof r!="object"||r===null)throw new Error(i(16));var n={};for(var e in r){var u=r[e];typeof u=="function"&&(n[e]=j(u,t))}return n}function L(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t.length===0?function(e){return e}:t.length===1?t[0]:t.reduce(function(e,u){return function(){return e(u.apply(void 0,arguments))}})}function M(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return function(e){return function(){var u=e.apply(void 0,arguments),a=function(){throw new Error(i(15))},p={getState:u.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(f){return f(p)});return a=L.apply(void 0,c)(u.dispatch),m(m({},u),{},{dispatch:a})}}}export{I as _,M as a,K as b,T as c,L as d};
@@ -1,4 +1,4 @@
1
- import{P as x,j as c,Q as S,db as F,fY as re,dV as be,r as D,bR as Me,cL as ot,q as nt,cr as We,fG as rt,fI as at,g1 as st,dX as lt,fZ as ct,dW as dt,a3 as Ue,fh as Be,ga as ut,aw as we,n as qe,cY as pt,g as Et,fj as bt,gb as _t}from"./index-Boqyvc8Q.js";import"./index--Q6KdM7v.js";function Te({optionalComponent:i,index:t,installStatus:a,hasPermission:l,t:b}){const _=()=>{window.open(i==null?void 0:i.installUrl,"_blank")},T=()=>{window.open(i==null?void 0:i.storeUrl,"_blank")},h=()=>{window.location.reload()},v=a==="stopped"||a==="running",I=60;return c.jsxs(S,{children:[t===0?null:c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsxs(S,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[c.jsx("img",{style:{width:I,height:I,minWidth:I,minHeight:I},src:i.logoUrl,alt:i.meta.title}),c.jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[c.jsxs(S,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var R;return T((R=i.meta)==null?void 0:R.did)},children:[i.meta.title,c.jsxs(S,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[i.meta.version,c.jsx(re,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:F.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),c.jsx(S,{sx:{marginTop:0,opacity:.7},children:i.meta.description}),c.jsx(S,{sx:{display:l?"flex":"none",flexDirection:"row",gap:1},children:a?c.jsx(S,{sx:{marginTop:2,opacity:.7},children:v?c.jsx(be,{variant:"contained",onClick:h,children:b("componentInstallerRefresh")},"refresh"):c.jsx(be,{disabled:!0,sx:{color:"#333"},startIcon:c.jsx(re,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:a},"status")}):c.jsx(be,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var R;return _((R=i.meta)==null?void 0:R.did)},children:b("componentInstallerInstall")},"install")}),v?c.jsx(S,{sx:{marginTop:2,opacity:.7},children:b("componentInstallerSuccessInstalled")}):null]})]})]})}Te.propTypes={t:x.func.isRequired,optionalComponent:x.object.isRequired,index:x.number.isRequired,installStatus:x.string,hasPermission:x.bool.isRequired};Te.defaultProps={installStatus:""};const mt={zh:{componentInstallerTitle:"缺少组件",componentInstallerInstall:"安装",componentInstallerClose:"关闭",componentInstallerRefresh:"重载页面",componentInstallerSuccessInstalled:"安装成功,请重载页面查看变化。",componentInstallerSuggestions:"请联系系统管理员安装该组件。",componentInstallerNoDefinedInBlockletYML:"组件未在 blocklet.yml 中定义"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}},_e=i=>typeof i=="string"?new Set(i.split(";;")):new Set(i);function ft({did:i,onInstalled:t,onError:a}){const l=Array.isArray(i)?i.join(";;"):i,[b,_]=D.useState({}),T=D.useRef({onInstalled:t,onError:a});T.current={onInstalled:t,onError:a};const{optionalComponents:h,componentMountPoints:v}=window.blocklet,I=D.useMemo(()=>{var r;if(!h||!h.length)return[];const m=_e(l),e=h.filter(o=>m.has(o.meta.did));return(r=e?T.current.onError:T.current.onInstalled)==null||r(e),e},[l,h]),R=D.useMemo(()=>{if(I.length)return!0;const m=_e(l);return(v||[]).find(e=>m.has(e.did))},[I,v,l]);return I.forEach(m=>{m.storeUrl=Me(m.meta.homepage,"blocklets",m.meta.did),m.installUrl=Me(window.blocklet.appUrl,ot,`/admin/components?install-component=${m.meta.did}`)}),D.useEffect(()=>{const m=e=>{var r,o,n,s,L;if(e.origin===window.blocklet.appUrl&&((r=e.data)==null?void 0:r.kind)==="component-installer"&&(n=(o=e.data)==null?void 0:o.blocklet)!=null&&n.children){let k=!1;const u=_e(l);(L=(s=e.data)==null?void 0:s.blocklet)==null||L.children.forEach(d=>{var N;u.has((N=d.meta)==null?void 0:N.did)&&(k=!0,_(C=>{var B;return{...C,[(B=d.meta)==null?void 0:B.did]:d.status||"waiting"}}))}),k||_({})}};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m)}},[l]),{optComponents:I,installed:!I.length&&R,installStatus:b,setInstallStatus:_,definedInBlockletYML:R}}function W({warnIcon:i,did:t,noPermissionMute:a,onInstalled:l,onError:b,children:_,closeByOutSize:T,onClose:h,fallback:v,disabled:I,roles:R=["owner","admin"]}){const{locale:m}=nt(),e=We((u,d={})=>rt(mt,u,m,"en",d)),{installed:r,optComponents:o,installStatus:n,definedInBlockletYML:s}=ft({did:t,onInstalled:l,onError:b}),L=D.useContext(at),k=()=>{h==null||h(!1)};return I?_:c.jsx(st,{session:L==null?void 0:L.session,roles:R,children:({hasPermission:u})=>r?_:a&&!u?v||null:typeof _=="function"?c.jsxs(c.Fragment,{children:[v,_({hasPermission:u,optComponents:o,installStatus:n})]}):c.jsxs(c.Fragment,{children:[v,c.jsx(lt,{onClickAway:d=>{d.preventDefault(),d.stopPropagation(),T&&k()},children:c.jsx(ct,{in:!0,timeout:350,children:c.jsx(dt,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:F.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:`0px 8px 16px 0px ${F.gray6}, 0px 0px 0px 1px ${F.gray6}`},children:s?c.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[c.jsxs(S,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[i||c.jsx(re,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),c.jsx(S,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),c.jsx(S,{sx:{flex:1}}),h?c.jsx(Ue,{variant:"outlined",className:"button",onClick:k,children:c.jsx(Be,{})}):null]}),c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsx(S,{sx:{maxHeight:"70vh",overflowY:"auto"},children:o.map((d,N)=>{var C,B;return c.jsx(Te,{t:e,hasPermission:u,index:N,optionalComponent:d,installStatus:n[(C=d.meta)==null?void 0:C.did]},((B=d.meta)==null?void 0:B.did)||N)})}),u?null:c.jsxs(c.Fragment,{children:[c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsx(S,{sx:{padding:"20px 24px"},children:c.jsx(S,{sx:{opacity:1},children:e("componentInstallerSuggestions")})})]})]}):c.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[c.jsxs(S,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[i||c.jsx(re,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),c.jsx(S,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),c.jsx(S,{sx:{flex:1}}),h?c.jsx(Ue,{variant:"outlined",className:"button",onClick:k,children:c.jsx(Be,{})}):null]}),c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsxs(S,{sx:{padding:"20px 24px",marginTop:0},children:[e("componentInstallerNoDefinedInBlockletYML"),": ",t]})]})})})})]})})}W.propTypes={disabled:x.bool,warnIcon:x.node,did:x.oneOfType([x.string,x.arrayOf(x.string)]).isRequired,noPermissionMute:x.bool,onInstalled:x.func,onError:x.func,children:x.any.isRequired,closeByOutSize:x.bool,onClose:x.func,fallback:x.node,roles:x.array};W.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]};function Ye(i){return window.blocklet?c.jsx(W,{...i}):i.children}Ye.propTypes={...W.propTypes,children:x.any.isRequired};Ye.defaultProps={...W.defaultProps};var ge={};Object.defineProperty(ge,"__esModule",{value:!0});var wt=ge.default=void 0;Tt(D);var je=c;function Tt(i){return i&&i.__esModule?i:{default:i}}function Fe(i,t){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);t&&(l=l.filter(function(b){return Object.getOwnPropertyDescriptor(i,b).enumerable})),a.push.apply(a,l)}return a}function Ke(i){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Fe(Object(a),!0).forEach(function(l){gt(i,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(a,l))})}return i}function gt(i,t,a){return t=ht(t),t in i?Object.defineProperty(i,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[t]=a,i}function ht(i){var t=Rt(i,"string");return typeof t=="symbol"?t:String(t)}function Rt(i,t){if(typeof i!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var l=a.call(i,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}var he=function(t){return(0,je.jsx)("svg",Ke(Ke({},t),{},{children:(0,je.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};he.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};he.displayName="revoke";wt=ge.default=he;x.any.isRequired,x.any.isRequired,x.string.isRequired,x.func.isRequired,x.any,x.any,x.number;D.createContext({});const Re=Object.freeze({AUTH:"auth",AUTH_SERVICE:"@abtnode/auth-service"}),Ot=Object.freeze({AUTH_SERVICE:`/.service/${Re.AUTH_SERVICE}`}),Oe=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),w=Object.freeze({...Oe,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),Xe=[w.BLOCKLET_OWNER,w.BLOCKLET_ADMIN,w.BLOCKLET_MEMBER,w.BLOCKLET_SDK],St=i=>i&&Xe.includes(i),xt={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},vt={roles:Object.freeze([{name:w.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:w.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:w.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:w.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:w.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:w.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",passport:!0,noHuman:!0},{name:w.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:w.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:w.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:w.BLOCKLET_SDK,title:"Blocklet SDK"},{name:w.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:w.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",passport:!0,noHuman:!0},{name:Re.AUTH_SERVICE,title:"Auth Service"}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for Blocklet Server, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[w.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[w.MEMBER]:[w.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[w.ADMIN]:[w.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[w.OWNER]:[Oe.ADMIN],[w.CI]:["query_blocklets","mutate_blocklets"],[w.CERTIFICATE]:["query_certificate","mutate_certificate"],[w.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet"],[w.BLOCKLET_OWNER]:[w.BLOCKLET_ADMIN],[w.BLOCKLET_ADMIN]:[w.BLOCKLET_MEMBER,"mutate_team","mutate_blocklet","mutate_notification"],[w.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification"],[w.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[w.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets"]})},ze=24*60*60*1e3,At={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload"},It={OWNER:"owner",INVITED:"invited",ALL:"all"},He="https://store.blocklet.dev",Ge="https://dev.store.blocklet.dev",Nt="https://main.abtnetwork.io/api/",Lt=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),kt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},Ct={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},Ze=10,yt=86400/Ze,Dt={SYNC_LIMIT:3},Pt=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],Mt=Object.freeze({created:0,selected:10,connected:20,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,expired:60,terminated:70,timeout:80,transferred:90});var U=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",NODE_REGISTER_URL:"https://install.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",BLOCKLET_STORE_URL:He,BLOCKLET_STORE_URL_DEV:Ge,BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:He,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:Ge,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:500,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:ze,DAEMON_MAX_MEM_LIMIT_IN_MB:800,PROXY_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*ze,ROUTING_RESPONSE_TYPES:Pt,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:Oe,SERVER_ROLES:w,BLOCKLET_ROLES:Xe,isBlockletRole:St,AUTH_CERT_TYPE:xt,RBAC_CONFIG:vt,genPermissionName:(i,t="access")=>`${t}_${i.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked"},NODE_SERVICES:Re,NODE_SERVICES_PREFIX:Ot,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:At,WHO_CAN_ACCESS:It,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_REQ_LIMIT:Object.freeze({min:10,max:100}),STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:Nt,USER_TYPE:Lt,SERVER_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:3600*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS:kt,CHECK_UPDATE:Ct,MONITOR_HISTORY_LENGTH:yt,MONITOR_RECORD_INTERVAL_SEC:Ze,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:Dt,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",LAUNCH_SESSION_STATUS:Mt,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store"});/*! js-cookie v3.0.5 | MIT */function ie(i){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)i[l]=a[l]}return i}var Ut={read:function(i){return i[0]==='"'&&(i=i.slice(1,-1)),i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(i){return encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function me(i,t){function a(b,_,T){if(!(typeof document>"u")){T=ie({},t,T),typeof T.expires=="number"&&(T.expires=new Date(Date.now()+T.expires*864e5)),T.expires&&(T.expires=T.expires.toUTCString()),b=encodeURIComponent(b).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var v in T)T[v]&&(h+="; "+v,T[v]!==!0&&(h+="="+T[v].split(";")[0]));return document.cookie=b+"="+i.write(_,b)+h}}function l(b){if(!(typeof document>"u"||arguments.length&&!b)){for(var _=document.cookie?document.cookie.split("; "):[],T={},h=0;h<_.length;h++){var v=_[h].split("="),I=v.slice(1).join("=");try{var R=decodeURIComponent(v[0]);if(T[R]=i.read(I,R),b===R)break}catch{}}return b?T[b]:T}}return Object.create({set:a,get:l,remove:function(b,_){a(b,"",ie({},_,{expires:-1}))},withAttributes:function(b){return me(this.converter,ie({},this.attributes,b))},withConverter:function(b){return me(ie({},this.converter,b),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(i)}})}var ne=me(Ut,{path:"/"}),Bt=Object.defineProperty,jt=(i,t,a)=>t in i?Bt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,Ft=(i,t,a)=>(jt(i,typeof t!="symbol"?t+"":t,a),a);class Kt{constructor({api:t}){Ft(this,"api"),this.api=t}async getUserPublicInfo({did:t}){const{data:a}=await this.api.get("/api/user",{params:{did:t}});return a}async getUserPrivacyConfig({did:t}){const{data:a}=await this.api.get("/api/user/privacy/config",{params:{did:t}});return a}async saveUserPrivacyConfig(t){const{data:a}=await this.api.post("/api/user/privacy/config",t);return a}async getUserNotificationConfig(){const{data:t}=await this.api.get("/api/user/notification/config");return t}async saveUserNotificationConfig(t){const{data:a}=await this.api.post("/api/user/notification/config",t);return a}async testNotificationWebhook(t){const{data:a}=await this.api.put("/api/user/notification/webhook",t);return a}async getProfileUrl({did:t,locale:a}){const l=`${U.WELLKNOWN_SERVICE_PATH_PREFIX}/user`;return ut(l,{did:t,locale:a})}async logout({visitorId:t}){const{data:a}=await this.api.post("/api/user/logout",{visitorId:t});return a}}class zt{getSessionToken(){return ne.get(U.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(t){ne.set(U.SESSION_TOKEN_STORAGE_KEY,t)}removeSessionToken(){ne.remove(U.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(U.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(t){localStorage.setItem(U.REFRESH_TOKEN_STORAGE_KEY,t)}removeRefreshToken(){localStorage.removeItem(U.REFRESH_TOKEN_STORAGE_KEY)}}var Ht=Object.defineProperty,Gt=(i,t,a)=>t in i?Ht(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,Vt=(i,t,a)=>(Gt(i,typeof t!="symbol"?t+"":t,a),a);class Wt{constructor({api:t}){Vt(this,"api"),this.api=t}async getUserSessions({did:t}){const{data:a}=await this.api.get("/api/user-session",{params:{userDid:t}});return a}}const qt="1.16.26",Yt=(i=0)=>new Promise(t=>{setTimeout(()=>{t()},i)}),Je=i=>`Bearer ${encodeURIComponent(i)}`,Xt="__visitor_id",Zt=()=>localStorage.getItem(Xt);async function Ve(i,t=300){i.metaData.endTime=+new Date;const{startTime:a,endTime:l}=i.metaData,b=l-a;b<t&&await Yt(t-b),delete i.metaData}const $e=(i,t)=>{const a={...i==null?void 0:i.headers,"x-blocklet-js-sdk-version":qt},l=Zt();[void 0,null].includes(l)||(a["x-blocklet-visitor-id"]=l);const b=we.create({...i,headers:a});return t!=null&&t.lazy&&(b.interceptors.request.use(_=>(_.metaData={startTime:+new Date},_),_=>Promise.reject(_)),b.interceptors.response.use(async _=>(await Ve(_.config,t==null?void 0:t.lazyTime),_),async _=>(await Ve(_.response.config,t==null?void 0:t.lazyTime),Promise.reject(_)))),b};async function Jt(i){if(!i)throw new Error("Refresh token not found");const t=$e({baseURL:U.WELLKNOWN_SERVICE_PATH_PREFIX,timeout:10*1e3,headers:{authorization:Je(i)}}),{data:a}=await t.post("/api/did/refreshSession");return a}function $t({getSessionToken:i,setSessionToken:t,removeSessionToken:a,getRefreshToken:l,setRefreshToken:b,removeRefreshToken:_,onRefreshTokenError:T,onRefreshTokenSuccess:h},v,I){let R=null;const m=$e({timeout:30*1e3,...v},I);return m.interceptors.request.use(async e=>{if(!ne.get(U.SESSION_TOKEN_STORAGE_KEY)){const r=i();r&&(e.headers.authorization=Je(r))}return R&&await R,e},e=>Promise.reject(e)),m.interceptors.response.use(e=>e,async e=>{var o;const r=e.config;if(r.headers={...r==null?void 0:r.headers},((o=e==null?void 0:e.response)==null?void 0:o.status)===401&&!r._retry){r._retry=!0;try{R||(R=Jt(l()));const n=await R;return t(n.nextToken),b(n.nextRefreshToken),typeof h=="function"&&h(n),m(r)}catch(n){return a(),_(),typeof T=="function"&&T(n),Promise.reject(e)}finally{R=null}}return Promise.reject(e)}),m}var Qt=Object.defineProperty,ei=(i,t,a)=>t in i?Qt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,oe=(i,t,a)=>(ei(i,typeof t!="symbol"?t+"":t,a),a);class ti{constructor(){oe(this,"api"),oe(this,"user"),oe(this,"userSession"),oe(this,"token");const t=new zt,a=$t({getSessionToken:t.getSessionToken,setSessionToken:t.setSessionToken,removeSessionToken:t.removeSessionToken,getRefreshToken:t.getRefreshToken,setRefreshToken:t.setRefreshToken,removeRefreshToken:t.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},{baseURL:U.WELLKNOWN_SERVICE_PATH_PREFIX});this.user=new Kt({api:a}),this.userSession=new Wt({api:a}),this.token=t,this.api=a}}const ai=new ti;we.defaults.timeout=10*1e3;we.create();qe(S)`
1
+ import{P as x,j as c,O as S,d2 as F,fP as re,dM as be,r as D,bJ as Me,cC as ot,q as nt,ci as We,fx as rt,fz as at,fU as st,dO as lt,fQ as ct,dN as dt,a2 as Ue,f8 as Be,g1 as ut,av as we,n as qe,cP as pt,g as Et,fa as bt,g2 as _t}from"./index-CkI554oc.js";import"./index-BoZhSN8h.js";function Te({optionalComponent:i,index:t,installStatus:a,hasPermission:l,t:b}){const _=()=>{window.open(i==null?void 0:i.installUrl,"_blank")},T=()=>{window.open(i==null?void 0:i.storeUrl,"_blank")},h=()=>{window.location.reload()},v=a==="stopped"||a==="running",I=60;return c.jsxs(S,{children:[t===0?null:c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsxs(S,{sx:{padding:"20px 24px",paddingTop:.5,marginTop:2,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[c.jsx("img",{style:{width:I,height:I,minWidth:I,minHeight:I},src:i.logoUrl,alt:i.meta.title}),c.jsxs(S,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",marginLeft:2},children:[c.jsxs(S,{sx:{fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var O;return T((O=i.meta)==null?void 0:O.did)},children:[i.meta.title,c.jsxs(S,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[i.meta.version,c.jsx(re,{className:"link-icon",icon:"fluent:open-20-filled",style:{color:F.primaryBase,fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.3s"}})]})]}),c.jsx(S,{sx:{marginTop:0,opacity:.7},children:i.meta.description}),c.jsx(S,{sx:{display:l?"flex":"none",flexDirection:"row",gap:1},children:a?c.jsx(S,{sx:{marginTop:2,opacity:.7},children:v?c.jsx(be,{variant:"contained",onClick:h,children:b("componentInstallerRefresh")},"refresh"):c.jsx(be,{disabled:!0,sx:{color:"#333"},startIcon:c.jsx(re,{icon:"line-md:loading-loop",style:{color:"#333",fontSize:16}}),variant:"contained",children:a},"status")}):c.jsx(be,{sx:{marginTop:2},variant:"contained",className:"button",onClick:()=>{var O;return _((O=i.meta)==null?void 0:O.did)},children:b("componentInstallerInstall")},"install")}),v?c.jsx(S,{sx:{marginTop:2,opacity:.7},children:b("componentInstallerSuccessInstalled")}):null]})]})]})}Te.propTypes={t:x.func.isRequired,optionalComponent:x.object.isRequired,index:x.number.isRequired,installStatus:x.string,hasPermission:x.bool.isRequired};Te.defaultProps={installStatus:""};const mt={zh:{componentInstallerTitle:"缺少组件",componentInstallerInstall:"安装",componentInstallerClose:"关闭",componentInstallerRefresh:"重载页面",componentInstallerSuccessInstalled:"安装成功,请重载页面查看变化。",componentInstallerSuggestions:"请联系系统管理员安装该组件。",componentInstallerNoDefinedInBlockletYML:"组件未在 blocklet.yml 中定义"},en:{componentInstallerTitle:"Missing component",componentInstallerInstall:"Install",componentInstallerClose:"Close",componentInstallerRefresh:"Refresh",componentInstallerSuccessInstalled:"Successfully installed, please refresh the page to see the changes.",componentInstallerSuggestions:"Please contact the system administrator to install the component.",componentInstallerNoDefinedInBlockletYML:"The component is not defined in blocklet.yml"}},_e=i=>typeof i=="string"?new Set(i.split(";;")):new Set(i);function ft({did:i,onInstalled:t,onError:a}){const l=Array.isArray(i)?i.join(";;"):i,[b,_]=D.useState({}),T=D.useRef({onInstalled:t,onError:a});T.current={onInstalled:t,onError:a};const{optionalComponents:h,componentMountPoints:v}=window.blocklet,I=D.useMemo(()=>{var r;if(!h||!h.length)return[];const m=_e(l),e=h.filter(o=>m.has(o.meta.did));return(r=e?T.current.onError:T.current.onInstalled)==null||r(e),e},[l,h]),O=D.useMemo(()=>{if(I.length)return!0;const m=_e(l);return(v||[]).find(e=>m.has(e.did))},[I,v,l]);return I.forEach(m=>{m.storeUrl=Me(m.meta.homepage,"blocklets",m.meta.did),m.installUrl=Me(window.blocklet.appUrl,ot,`/admin/components?install-component=${m.meta.did}`)}),D.useEffect(()=>{const m=e=>{var r,o,n,s,L;if(e.origin===window.blocklet.appUrl&&((r=e.data)==null?void 0:r.kind)==="component-installer"&&(n=(o=e.data)==null?void 0:o.blocklet)!=null&&n.children){let k=!1;const u=_e(l);(L=(s=e.data)==null?void 0:s.blocklet)==null||L.children.forEach(d=>{var N;u.has((N=d.meta)==null?void 0:N.did)&&(k=!0,_(C=>{var B;return{...C,[(B=d.meta)==null?void 0:B.did]:d.status||"waiting"}}))}),k||_({})}};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m)}},[l]),{optComponents:I,installed:!I.length&&O,installStatus:b,setInstallStatus:_,definedInBlockletYML:O}}function W({warnIcon:i,did:t,noPermissionMute:a,onInstalled:l,onError:b,children:_,closeByOutSize:T,onClose:h,fallback:v,disabled:I,roles:O=["owner","admin"]}){const{locale:m}=nt(),e=We((u,d={})=>rt(mt,u,m,"en",d)),{installed:r,optComponents:o,installStatus:n,definedInBlockletYML:s}=ft({did:t,onInstalled:l,onError:b}),L=D.useContext(at),k=()=>{h==null||h(!1)};return I?_:c.jsx(st,{session:L==null?void 0:L.session,roles:O,children:({hasPermission:u})=>r?_:a&&!u?v||null:typeof _=="function"?c.jsxs(c.Fragment,{children:[v,_({hasPermission:u,optComponents:o,installStatus:n})]}):c.jsxs(c.Fragment,{children:[v,c.jsx(lt,{onClickAway:d=>{d.preventDefault(),d.stopPropagation(),T&&k()},children:c.jsx(ct,{in:!0,timeout:350,children:c.jsx(dt,{variant:"outlined",sx:{position:"fixed",top:20,right:20,zIndex:3e3,borderRadius:3,width:400,maxWidth:"90vw",borderColor:F.lineStep,border:"0 !important",fontSize:"14px",textAlign:"left",boxShadow:`0px 8px 16px 0px ${F.gray6}, 0px 0px 0px 1px ${F.gray6}`},children:s?c.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[c.jsxs(S,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-start"},children:[i||c.jsx(re,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),c.jsx(S,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),c.jsx(S,{sx:{flex:1}}),h?c.jsx(Ue,{variant:"outlined",className:"button",onClick:k,children:c.jsx(Be,{})}):null]}),c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsx(S,{sx:{maxHeight:"70vh",overflowY:"auto"},children:o.map((d,N)=>{var C,B;return c.jsx(Te,{t:e,hasPermission:u,index:N,optionalComponent:d,installStatus:n[(C=d.meta)==null?void 0:C.did]},((B=d.meta)==null?void 0:B.did)||N)})}),u?null:c.jsxs(c.Fragment,{children:[c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsx(S,{sx:{padding:"20px 24px"},children:c.jsx(S,{sx:{opacity:1},children:e("componentInstallerSuggestions")})})]})]}):c.jsxs(S,{sx:{display:"flex",flexDirection:"column"},children:[c.jsxs(S,{sx:{padding:"20px 24px",marginLeft:0,display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"flex-start"},children:[i||c.jsx(re,{icon:"mdi:warning-box",style:{color:"yellowgreen",fontSize:24}}),c.jsx(S,{sx:{marginLeft:1,fontSize:"16px",fontWeight:"bold"},children:e("componentInstallerTitle")}),c.jsx(S,{sx:{flex:1}}),h?c.jsx(Ue,{variant:"outlined",className:"button",onClick:k,children:c.jsx(Be,{})}):null]}),c.jsx(S,{sx:{width:"100%",height:"1px",backgroundColor:F.gray6}}),c.jsxs(S,{sx:{padding:"20px 24px",marginTop:0},children:[e("componentInstallerNoDefinedInBlockletYML"),": ",t]})]})})})})]})})}W.propTypes={disabled:x.bool,warnIcon:x.node,did:x.oneOfType([x.string,x.arrayOf(x.string)]).isRequired,noPermissionMute:x.bool,onInstalled:x.func,onError:x.func,children:x.any.isRequired,closeByOutSize:x.bool,onClose:x.func,fallback:x.node,roles:x.array};W.defaultProps={disabled:!1,warnIcon:null,noPermissionMute:!1,onInstalled:null,onError:null,closeByOutSize:!1,onClose:null,fallback:null,roles:["owner","admin"]};function Ye(i){return window.blocklet?c.jsx(W,{...i}):i.children}Ye.propTypes={...W.propTypes,children:x.any.isRequired};Ye.defaultProps={...W.defaultProps};var ge={};Object.defineProperty(ge,"__esModule",{value:!0});var wt=ge.default=void 0;Tt(D);var je=c;function Tt(i){return i&&i.__esModule?i:{default:i}}function Fe(i,t){var a=Object.keys(i);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(i);t&&(l=l.filter(function(b){return Object.getOwnPropertyDescriptor(i,b).enumerable})),a.push.apply(a,l)}return a}function Ke(i){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Fe(Object(a),!0).forEach(function(l){gt(i,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(a)):Fe(Object(a)).forEach(function(l){Object.defineProperty(i,l,Object.getOwnPropertyDescriptor(a,l))})}return i}function gt(i,t,a){return t=ht(t),t in i?Object.defineProperty(i,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[t]=a,i}function ht(i){var t=Ot(i,"string");return typeof t=="symbol"?t:String(t)}function Ot(i,t){if(typeof i!="object"||!i)return i;var a=i[Symbol.toPrimitive];if(a!==void 0){var l=a.call(i,t||"default");if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(i)}var he=function(t){return(0,je.jsx)("svg",Ke(Ke({},t),{},{children:(0,je.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10a6.75 6.75 0 1 1 13.5 0 6.75 6.75 0 0 1-13.5 0zM10 1.75a8.25 8.25 0 1 0 0 16.5 8.25 8.25 0 0 0 0-16.5zM8.03 6.97a.75.75 0 0 0-1.06 1.06l5 5a.75.75 0 1 0 1.06-1.06l-5-5z"})}))};he.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};he.displayName="revoke";wt=ge.default=he;x.any.isRequired,x.any.isRequired,x.string.isRequired,x.func.isRequired,x.any,x.any,x.number;D.createContext({});const Oe=Object.freeze({AUTH:"auth",AUTH_SERVICE:"@abtnode/auth-service"}),Rt=Object.freeze({AUTH_SERVICE:`/.service/${Oe.AUTH_SERVICE}`}),Re=Object.freeze({OWNER:"owner",ADMIN:"admin",MEMBER:"member",GUEST:"guest"}),w=Object.freeze({...Re,CI:"ci",CERTIFICATE:"certificate",BLOCKLET_OWNER:"blocklet-owner",BLOCKLET_ADMIN:"blocklet-admin",BLOCKLET_MEMBER:"blocklet-member",BLOCKLET_SDK:"blocklet-sdk",EXTERNAL_BLOCKLET_CONTROLLER:"external-blocklet-controller",EXTERNAL_BLOCKLETS_MANAGER:"external-blocklets-manager"}),Xe=[w.BLOCKLET_OWNER,w.BLOCKLET_ADMIN,w.BLOCKLET_MEMBER,w.BLOCKLET_SDK],St=i=>i&&Xe.includes(i),xt={USER:"user",OWNERSHIP_NFT:"ownership_nft",BLOCKLET_USER:"blocklet_user",BLOCKLET_CONTROLLER:"blocklet_controller"},vt={roles:Object.freeze([{name:w.OWNER,title:"Owner",description:"Has full administrative access to the Blocklet Server",passport:!0},{name:w.ADMIN,title:"Admin",description:"Has full permissions to manage blocklet and Blocklet Server such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates, manage blocklet team, manage node integrations and access keys, upgrade node to a new version",passport:!0},{name:w.MEMBER,title:"Member",description:"Has permissions to manage blocklets, such as install/remove/start/stop blocklet, manage blocklet URL mapping and certificates",passport:!0},{name:w.GUEST,title:"Guest",description:"Has all read permissions on Blocklet Server",passport:!0},{name:w.CI,title:"CI",description:"Deploy blocklet to Blocklet Server",passport:!0,noHuman:!0},{name:w.CERTIFICATE,title:"Certificate",description:"Manage https certificates for blocklets on the Blocklet Server",passport:!0,noHuman:!0},{name:w.BLOCKLET_OWNER,title:"Blocklet Owner"},{name:w.BLOCKLET_ADMIN,title:"Blocklet Admin"},{name:w.BLOCKLET_MEMBER,title:"Blocklet Member"},{name:w.BLOCKLET_SDK,title:"Blocklet SDK"},{name:w.EXTERNAL_BLOCKLET_CONTROLLER,title:"External Blocklet Controller"},{name:w.EXTERNAL_BLOCKLETS_MANAGER,title:"External Blocklets Manager",description:"Manage external blocklets in the Blocklet Server",passport:!0,noHuman:!0},{name:Oe.AUTH_SERVICE,title:"Auth Service"}]),permissions:Object.freeze([{name:"query_node",description:"View node data, include dashboard and node settings, log stream for both Blocklet Server and blocklets"},{name:"mutate_node",description:"Change node settings, upgrade node to a new version"},{name:"query_session",description:"Get data from a long running session"},{name:"mutate_session",description:"Start/update/end a long running session"},{name:"query_accessKey",description:"View access keys for Blocklet Server"},{name:"mutate_accessKey",description:"Manage access keys for Blocklet Server, such as create/update/delete"},{name:"query_team",description:"View team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"mutate_team",description:"Manage team data(members/roles/permissions) for Blocklet Server and blocklets"},{name:"query_blocklets",description:"View store and installed blocklets, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklets",description:"Perform state changing actions on blocklets, such as install/upgrade/config/start/stop/remove"},{name:"query_router",description:"View sites, URL mapping and certificates in service gateway"},{name:"mutate_router",description:"Manage sites, URL mapping and certificates in service gateway"},{name:"query_certificate",description:"View certificates in service gateway"},{name:"mutate_certificate",description:"Manage certificates in service gateway"},{name:"query_notification",description:"View notifications"},{name:"mutate_notification",description:"Manage notifications, such as mark notifications as read"},{name:"query_webhook",description:"View integrations"},{name:"mutate_webhook",description:"Manage integrations"},{name:"query_blocklet",description:"View a blocklet, including blocklet runtime configuration, domains and urls"},{name:"mutate_blocklet",description:"Perform state changing actions on a blocklet, such as upgrade/config/start/stop"}]),grants:Object.freeze({[w.GUEST]:["query_blocklets","query_router","query_webhook","query_notification","query_team","query_accessKey","query_node","query_session"],[w.MEMBER]:[w.GUEST,"mutate_blocklets","mutate_router","mutate_notification","mutate_session"],[w.ADMIN]:[w.MEMBER,"mutate_team","mutate_webhook","mutate_accessKey","mutate_node","mutate_certificate"],[w.OWNER]:[Re.ADMIN],[w.CI]:["query_blocklets","mutate_blocklets"],[w.CERTIFICATE]:["query_certificate","mutate_certificate"],[w.BLOCKLET_SDK]:["query_team","mutate_team","query_blocklet"],[w.BLOCKLET_OWNER]:[w.BLOCKLET_ADMIN],[w.BLOCKLET_ADMIN]:[w.BLOCKLET_MEMBER,"mutate_team","mutate_blocklet","mutate_notification"],[w.BLOCKLET_MEMBER]:["query_team","query_blocklet","query_notification"],[w.EXTERNAL_BLOCKLET_CONTROLLER]:["query_blocklets","mutate_blocklets"],[w.EXTERNAL_BLOCKLETS_MANAGER]:["query_blocklets","mutate_blocklets"]})},ze=24*60*60*1e3,At={NOTIFICATION_CREATE:"notification.create",NOTIFICATION_BLOCKLET_CREATE:"notification.blockletCreate",ROUTING_UPDATED:"routing.updated",NODE_UPDATED:"node.updated",NODE_MAINTAIN_PROGRESS:"node.upgrade.progress",NODE_STARTED:"node.started",NODE_STOPPED:"node.stopped",NODE_ADDED_OWNER:"node.addedOwner",NODE_RUNTIME_INFO:"node.runtimeInfo",BLOCKLETS_RUNTIME_INFO:"node.blockletsRuntimeInfo",DOMAIN_STATUS:"domain.status",CERT_ADDED:"cert.added",CERT_ISSUED:"cert.issued",CERT_UPDATED:"cert.updated",CERT_REMOVED:"cert.removed",CERT_ERROR:"cert.error",RELOAD_GATEWAY:"gateway.reload"},It={OWNER:"owner",INVITED:"invited",ALL:"all"},He="https://store.blocklet.dev",Ge="https://dev.store.blocklet.dev",Nt="https://main.abtnetwork.io/api/",Lt=Object.freeze({DERIVED:"derived",WALLET:"wallet"}),kt={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},Ct={STATUS:{PROGRESS:null,SUCCEEDED:0,FAILED:1},TIMEOUT_HOURS:6,STRATEGY:{AUTO:0,MANUAL:1},JOB:{INTERVAL:2*60*60}},Ze=10,yt=86400/Ze,Dt={SYNC_LIMIT:3},Pt=[{text:"Plain Text",value:"text/plain"},{text:"JSON",value:"application/json"},{text:"XML",value:"application/xml"},{text:"HTML Document",value:"text/html"},{text:"YAML",value:"application/x-yaml"},{text:"TOML",value:"application/toml"},{text:"CSS",value:"text/css"},{text:"JavaScript",value:"application/javascript"},{text:"CSV",value:"text/csv"},{text:"Markdown",value:"text/markdown"},{text:"SVG",value:"image/svg+xml"}],Mt=Object.freeze({created:0,selected:10,connected:20,paid:30,nftMinted:35,allocated:40,consuming:46,installed:50,expired:60,terminated:70,timeout:80,transferred:90});var U=Object.freeze({NODE_MODES:Object.freeze({PRODUCTION:"production",DEBUG:"debug",MAINTENANCE:"maintenance",SERVERLESS:"serverless"}),DEFAULT_DESCRIPTION:"Web Interface to manage your Blocklet Server",NODE_MAINTAIN_PROGRESS:Object.freeze({SETUP:"setup",INSTALLING:"installing",VERIFYING:"verifying",RESTARTING:"restarting",CLEANUP:"cleanup",COMPLETE:"complete",ROLLBACK:"rollback"}),VC_TYPE_BLOCKLET_PURCHASE:"BlockletPurchaseCredential",VC_TYPE_NODE_PASSPORT:"ABTNodePassport",VC_TYPE_GENERAL_PASSPORT:"NFTPassport",NFT_TYPE_SERVER_OWNERSHIP:"BlockletServerOwnershipNFT",NFT_TYPE_SERVERLESS:"BlockletServerServerlessNFT",NODE_PACKAGE_NAME:"@abtnode/cli",NODE_COMMAND_NAME:"abtnode",NODE_DATA_DIR_NAME:"_abtnode",USER_AVATAR_DIR:"/.assets/avatar",USER_AVATAR_URL_PREFIX:"bn://avatar",USER_AVATAR_PATH_PREFIX:"/user/avatar",PROCESS_NAME_DAEMON:"abt-node-daemon",PROCESS_NAME_PROXY:"abt-node-db-hub",PROCESS_NAME_UPDATER:"abt-node-updater",PROCESS_NAME_SERVICE:"abt-node-service",PROCESS_NAME_ROUTER:"abt-node-router",PROCESS_NAME_LOG_ROTATE:"abt-node-log-rotate",PROCESS_NAME_EVENT_HUB:"abt-node-event-hub",NODE_REGISTER_URL:"https://install.arcblock.io/",WEB_WALLET_URL:"https://web.abtwallet.io",BLOCKLET_STORE_URL:He,BLOCKLET_STORE_URL_DEV:Ge,BLOCKLET_STORE_API_PREFIX:"/api",BLOCKLET_STORE_API_BLOCKLET_PREFIX:"/api/blocklets",BLOCKLET_STORE_META_PATH:"/api/store.json",BLOCKLET_STORE:{id:"zNKqX7D8ZAYa77HgzpoFfnV3BFbcmSRrE9aT",name:"Official Store",description:"ArcBlock official blocklet registry",url:He,logoUrl:"/logo.png",maintainer:"arcblock"},BLOCKLET_STORE_DEV:{id:"zNKmfUatDhzfMVACfr3u97eqndj8f1yXXw3m",name:"Dev Store",description:"ArcBlock dev registry that contains demo and example blocklets",url:Ge,maintainer:"arcblock",logoUrl:"/logo.png"},APP_STRUCT_VERSION:"2",DEFAULT_DID_REGISTRY:"https://registry.abtnet.io",DEFAULT_SLP_DOMAIN:"slp.abtnet.io",DEFAULT_DID_DOMAIN:"did.abtnet.io",DEFAULT_IP_DOMAIN:"*.ip.abtnet.io",DEFAULT_IP_DOMAIN_SUFFIX:"ip.abtnet.io",DEFAULT_WILDCARD_CERT_HOST:"https://releases.arcblock.io/",DEFAULT_NFT_DOMAIN_URL:"https://domain.didlabs.org/",DEFAULT_CERTIFICATE_EMAIL:"certs@arcblock.io",CONFIG_FILENAME:"config.yml",CONFIG_FILENAME_OLD:"abtnode.yml",CONFIG_FOLDER_NAME:".blocklet-server",CONFIG_FOLDER_NAME_OLD:".abtnode",EXPORTED_FOLDER_NAME:"exported_blocklet_server",StatusCode:Object.freeze({ok:0,blocklet_not_found:1,blocklet_not_purchased:2,forbidden:403,internal:500,timeout:504}),IP:new RegExp("-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\-(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}"),DOMAIN_FOR_IP_SITE:"",DOMAIN_FOR_IP_SITE_REGEXP:"~^\\d+.\\d+.\\d+.\\d+$",DOMAIN_FOR_DEFAULT_SITE:"*",DOMAIN_FOR_INTERNAL_SITE:"127.0.0.1",NAME_FOR_WELLKNOWN_SITE:"wellknown",WELLKNOWN_PATH_PREFIX:"/.well-known",WELLKNOWN_ACME_CHALLENGE_PREFIX:"/.well-known/acme-challenge",WELLKNOWN_DID_RESOLVER_PREFIX:"/.well-known/did.json",WELLKNOWN_PING_PREFIX:"/.well-known/ping",WELLKNOWN_ANALYTICS_PREFIX:"/.well-known/analytics",WELLKNOWN_SERVICE_PATH_PREFIX:"/.well-known/service",WELLKNOWN_BLOCKLET_ADMIN_PATH:"/.well-known/service/admin",WELLKNOWN_BLOCKLET_HEALTH_PATH:"/.well-known/service/health",WELLKNOWN_BLOCKLET_LOGO_PATH:"/.well-known/service/blocklet/logo",SLOT_FOR_IP_DNS_SITE:"888-888-888-888",DEFAULT_ADMIN_PATH:"/admin",WELLKNOWN_SERVER_ADMIN_PATH:"/.well-known/server/admin",DEFAULT_SERVICE_PATH:"/.abtnode/service",DEFAULT_HTTP_PORT:80,DEFAULT_HTTPS_PORT:443,MAX_UPLOAD_FILE_SIZE:500,DEFAULT_DAEMON_PORT:8089,MAX_NGINX_WORKER_CONNECTIONS:10240,BLOCKLET_PROXY_PATH_PREFIX:"/.blocklet/proxy",BLOCKLET_SITE_GROUP_SUFFIX:".blocklet-domain-group",DAY_IN_MS:ze,DAEMON_MAX_MEM_LIMIT_IN_MB:800,PROXY_MAX_MEM_LIMIT_IN_MB:800,BLOCKLET_MAX_MEM_LIMIT_IN_MB:800,CERTIFICATE_EXPIRES_OFFSET:10*ze,ROUTING_RESPONSE_TYPES:Pt,ROUTING_RULE_TYPES:Object.freeze({NONE:"none",DAEMON:"daemon",SERVICE:"service",BLOCKLET:"blocklet",REDIRECT:"redirect",GENERAL_REWRITE:"rewrite",GENERAL_PROXY:"general_proxy",DIRECT_RESPONSE:"direct_response",COMPONENT:"component"}),ROLES:Re,SERVER_ROLES:w,BLOCKLET_ROLES:Xe,isBlockletRole:St,AUTH_CERT_TYPE:xt,RBAC_CONFIG:vt,genPermissionName:(i,t="access")=>`${t}_${i.replace("_","-")}`,PASSPORT_STATUS:{VALID:"valid",REVOKED:"revoked"},NODE_SERVICES:Oe,NODE_SERVICES_PREFIX:Rt,DISK_ALERT_THRESHOLD_PERCENT:80,EVENTS:At,WHO_CAN_ACCESS:It,WHO_CAN_ACCESS_PREFIX_ROLES:"roles:",GATEWAY_REQ_LIMIT:Object.freeze({min:10,max:100}),STORE_DETAIL_PAGE_PATH_PREFIX:"/blocklets",MAX_USER_PAGE_SIZE:100,SERVER_STATUS:{RUNNING:1,STOPPED:2,START_FROM_CRASH:3},LOG_RETAIN_IN_DAYS:60,BLOCKLET_INSTALL_TYPE:{STORE:"store",URL:"url",DEV:"dev",CREATE:"create",RESTORE:"restore"},ROUTER_CACHE_GROUPS:{blockletProxy:{minSize:"1m",maxSize:"2g",period:"30d"}},MAIN_CHAIN_ENDPOINT:Nt,USER_TYPE:Lt,SERVER_CACHE_TTL:300*1e3,BLOCKLET_CACHE_TTL:3600*1e3,SESSION_CACHE_TTL:3600,SESSION_TTL:7*86400,BACKUPS:kt,CHECK_UPDATE:Ct,MONITOR_HISTORY_LENGTH:yt,MONITOR_RECORD_INTERVAL_SEC:Ze,INSTALL_ACTIONS:{INSTALL:"install",INSTALL_COMPONENT:"installComponent",UPGRADE_COMPONENT:"upgradeComponent"},COPYRIGHT_OWNER:"ArcBlock",FEDERATED:Dt,SESSION_TOKEN_STORAGE_KEY:"login_token",REFRESH_TOKEN_STORAGE_KEY:"refresh_token",LAUNCH_SESSION_STATUS:Mt,UNOWNED_DID:"z".repeat(35),STUDIO_CONNECTED_STORE:"studio_connected_store"});/*! js-cookie v3.0.5 | MIT */function ie(i){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)i[l]=a[l]}return i}var Ut={read:function(i){return i[0]==='"'&&(i=i.slice(1,-1)),i.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(i){return encodeURIComponent(i).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function me(i,t){function a(b,_,T){if(!(typeof document>"u")){T=ie({},t,T),typeof T.expires=="number"&&(T.expires=new Date(Date.now()+T.expires*864e5)),T.expires&&(T.expires=T.expires.toUTCString()),b=encodeURIComponent(b).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var h="";for(var v in T)T[v]&&(h+="; "+v,T[v]!==!0&&(h+="="+T[v].split(";")[0]));return document.cookie=b+"="+i.write(_,b)+h}}function l(b){if(!(typeof document>"u"||arguments.length&&!b)){for(var _=document.cookie?document.cookie.split("; "):[],T={},h=0;h<_.length;h++){var v=_[h].split("="),I=v.slice(1).join("=");try{var O=decodeURIComponent(v[0]);if(T[O]=i.read(I,O),b===O)break}catch{}}return b?T[b]:T}}return Object.create({set:a,get:l,remove:function(b,_){a(b,"",ie({},_,{expires:-1}))},withAttributes:function(b){return me(this.converter,ie({},this.attributes,b))},withConverter:function(b){return me(ie({},this.converter,b),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(i)}})}var ne=me(Ut,{path:"/"}),Bt=Object.defineProperty,jt=(i,t,a)=>t in i?Bt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,Ft=(i,t,a)=>(jt(i,typeof t!="symbol"?t+"":t,a),a);class Kt{constructor({api:t}){Ft(this,"api"),this.api=t}async getUserPublicInfo({did:t}){const{data:a}=await this.api.get("/api/user",{params:{did:t}});return a}async getUserPrivacyConfig({did:t}){const{data:a}=await this.api.get("/api/user/privacy/config",{params:{did:t}});return a}async saveUserPrivacyConfig(t){const{data:a}=await this.api.post("/api/user/privacy/config",t);return a}async getUserNotificationConfig(){const{data:t}=await this.api.get("/api/user/notification/config");return t}async saveUserNotificationConfig(t){const{data:a}=await this.api.post("/api/user/notification/config",t);return a}async testNotificationWebhook(t){const{data:a}=await this.api.put("/api/user/notification/webhook",t);return a}async getProfileUrl({did:t,locale:a}){const l=`${U.WELLKNOWN_SERVICE_PATH_PREFIX}/user`;return ut(l,{did:t,locale:a})}async logout({visitorId:t}){const{data:a}=await this.api.post("/api/user/logout",{visitorId:t});return a}}class zt{getSessionToken(){return ne.get(U.SESSION_TOKEN_STORAGE_KEY)}setSessionToken(t){ne.set(U.SESSION_TOKEN_STORAGE_KEY,t)}removeSessionToken(){ne.remove(U.SESSION_TOKEN_STORAGE_KEY)}getRefreshToken(){return localStorage.getItem(U.REFRESH_TOKEN_STORAGE_KEY)}setRefreshToken(t){localStorage.setItem(U.REFRESH_TOKEN_STORAGE_KEY,t)}removeRefreshToken(){localStorage.removeItem(U.REFRESH_TOKEN_STORAGE_KEY)}}var Ht=Object.defineProperty,Gt=(i,t,a)=>t in i?Ht(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,Vt=(i,t,a)=>(Gt(i,typeof t!="symbol"?t+"":t,a),a);class Wt{constructor({api:t}){Vt(this,"api"),this.api=t}async getUserSessions({did:t}){const{data:a}=await this.api.get("/api/user-session",{params:{userDid:t}});return a}}const qt="1.16.26",Yt=(i=0)=>new Promise(t=>{setTimeout(()=>{t()},i)}),Je=i=>`Bearer ${encodeURIComponent(i)}`,Xt="__visitor_id",Zt=()=>localStorage.getItem(Xt);async function Ve(i,t=300){i.metaData.endTime=+new Date;const{startTime:a,endTime:l}=i.metaData,b=l-a;b<t&&await Yt(t-b),delete i.metaData}const $e=(i,t)=>{const a={...i==null?void 0:i.headers,"x-blocklet-js-sdk-version":qt},l=Zt();[void 0,null].includes(l)||(a["x-blocklet-visitor-id"]=l);const b=we.create({...i,headers:a});return t!=null&&t.lazy&&(b.interceptors.request.use(_=>(_.metaData={startTime:+new Date},_),_=>Promise.reject(_)),b.interceptors.response.use(async _=>(await Ve(_.config,t==null?void 0:t.lazyTime),_),async _=>(await Ve(_.response.config,t==null?void 0:t.lazyTime),Promise.reject(_)))),b};async function Jt(i){if(!i)throw new Error("Refresh token not found");const t=$e({baseURL:U.WELLKNOWN_SERVICE_PATH_PREFIX,timeout:10*1e3,headers:{authorization:Je(i)}}),{data:a}=await t.post("/api/did/refreshSession");return a}function $t({getSessionToken:i,setSessionToken:t,removeSessionToken:a,getRefreshToken:l,setRefreshToken:b,removeRefreshToken:_,onRefreshTokenError:T,onRefreshTokenSuccess:h},v,I){let O=null;const m=$e({timeout:30*1e3,...v},I);return m.interceptors.request.use(async e=>{if(!ne.get(U.SESSION_TOKEN_STORAGE_KEY)){const r=i();r&&(e.headers.authorization=Je(r))}return O&&await O,e},e=>Promise.reject(e)),m.interceptors.response.use(e=>e,async e=>{var o;const r=e.config;if(r.headers={...r==null?void 0:r.headers},((o=e==null?void 0:e.response)==null?void 0:o.status)===401&&!r._retry){r._retry=!0;try{O||(O=Jt(l()));const n=await O;return t(n.nextToken),b(n.nextRefreshToken),typeof h=="function"&&h(n),m(r)}catch(n){return a(),_(),typeof T=="function"&&T(n),Promise.reject(e)}finally{O=null}}return Promise.reject(e)}),m}var Qt=Object.defineProperty,ei=(i,t,a)=>t in i?Qt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):i[t]=a,oe=(i,t,a)=>(ei(i,typeof t!="symbol"?t+"":t,a),a);class ti{constructor(){oe(this,"api"),oe(this,"user"),oe(this,"userSession"),oe(this,"token");const t=new zt,a=$t({getSessionToken:t.getSessionToken,setSessionToken:t.setSessionToken,removeSessionToken:t.removeSessionToken,getRefreshToken:t.getRefreshToken,setRefreshToken:t.setRefreshToken,removeRefreshToken:t.removeRefreshToken,onRefreshTokenError:()=>{console.error("Failed to refresh token")},onRefreshTokenSuccess:()=>{}},{baseURL:U.WELLKNOWN_SERVICE_PATH_PREFIX});this.user=new Kt({api:a}),this.userSession=new Wt({api:a}),this.token=t,this.api=a}}const ai=new ti;we.defaults.timeout=10*1e3;we.create();qe(S)`
2
2
  .selected-container {
3
3
  position: absolute;
4
4
  right: 0px;
@@ -54,4 +54,4 @@ import{P as x,j as c,Q as S,db as F,fY as re,dV as be,r as D,bR as Me,cL as ot,q
54
54
  `;qe(S)`
55
55
  height: 100%;
56
56
  overflow-y: auto;
57
- `;var fe={exports:{}};(function(i,t){(function(a,l){var b="1.0.37",_="",T="?",h="function",v="undefined",I="object",R="string",m="major",e="model",r="name",o="type",n="vendor",s="version",L="architecture",k="console",u="mobile",d="tablet",N="smarttv",C="wearable",B="embedded",ae=500,q="Amazon",H="Apple",Se="ASUS",xe="BlackBerry",K="Browser",Y="Chrome",Qe="Edge",X="Firefox",Z="Google",ve="Huawei",se="LG",le="Microsoft",Ae="Motorola",J="Opera",$="Samsung",Ie="Sharp",Q="Sony",ce="Xiaomi",de="Zebra",Ne="Facebook",Le="Chromium OS",ke="Mac OS",et=function(f,O){var E={};for(var A in f)O[A]&&O[A].length%2===0?E[A]=O[A].concat(f[A]):E[A]=f[A];return E},ee=function(f){for(var O={},E=0;E<f.length;E++)O[f[E].toUpperCase()]=f[E];return O},Ce=function(f,O){return typeof f===R?G(O).indexOf(G(f))!==-1:!1},G=function(f){return f.toLowerCase()},tt=function(f){return typeof f===R?f.replace(/[^\d\.]/g,_).split(".")[0]:l},ue=function(f,O){if(typeof f===R)return f=f.replace(/^\s\s*/,_),typeof O===v?f:f.substring(0,ae)},V=function(f,O){for(var E=0,A,j,P,g,p,M;E<O.length&&!p;){var Ee=O[E],Pe=O[E+1];for(A=j=0;A<Ee.length&&!p&&Ee[A];)if(p=Ee[A++].exec(f),p)for(P=0;P<Pe.length;P++)M=p[++j],g=Pe[P],typeof g===I&&g.length>0?g.length===2?typeof g[1]==h?this[g[0]]=g[1].call(this,M):this[g[0]]=g[1]:g.length===3?typeof g[1]===h&&!(g[1].exec&&g[1].test)?this[g[0]]=M?g[1].call(this,M,g[2]):l:this[g[0]]=M?M.replace(g[1],g[2]):l:g.length===4&&(this[g[0]]=M?g[3].call(this,M.replace(g[1],g[2])):l):this[g]=M||l;E+=2}},pe=function(f,O){for(var E in O)if(typeof O[E]===I&&O[E].length>0){for(var A=0;A<O[E].length;A++)if(Ce(O[E][A],f))return E===T?l:E}else if(Ce(O[E],f))return E===T?l:E;return f},it={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ye={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},De={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[s,[r,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[s,[r,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[r,s],[/opios[\/ ]+([\w\.]+)/i],[s,[r,J+" Mini"]],[/\bopr\/([\w\.]+)/i],[s,[r,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[s,[r,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[r,s],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[s,[r,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[s,[r,"WeChat"]],[/konqueror\/([\w\.]+)/i],[s,[r,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[s,[r,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[s,[r,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[s,[r,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[r,/(.+)/,"$1 Secure "+K],s],[/\bfocus\/([\w\.]+)/i],[s,[r,X+" Focus"]],[/\bopt\/([\w\.]+)/i],[s,[r,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[s,[r,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[s,[r,"Dolphin"]],[/coast\/([\w\.]+)/i],[s,[r,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[s,[r,"MIUI "+K]],[/fxios\/([-\w\.]+)/i],[s,[r,X]],[/\bqihu|(qi?ho?o?|360)browser/i],[[r,"360 "+K]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[r,/(.+)/,"$1 "+K],s],[/samsungbrowser\/([\w\.]+)/i],[s,[r,$+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],s],[/metasr[\/ ]?([\d\.]+)/i],[s,[r,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[r,"Sogou Mobile"],s],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[r,s],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[r],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[r,Ne],s],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[r,s],[/\bgsa\/([\w\.]+) .*safari\//i],[s,[r,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[s,[r,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[s,[r,Y+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[r,Y+" WebView"],s],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[s,[r,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[r,s],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[s,[r,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[s,r],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[r,[s,pe,it]],[/(webkit|khtml)\/([\w\.]+)/i],[r,s],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[r,"Netscape"],s],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[s,[r,X+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[r,s],[/(cobalt)\/([\w\.]+)/i],[r,[s,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[L,"amd64"]],[/(ia32(?=;))/i],[[L,G]],[/((?:i[346]|x)86)[;\)]/i],[[L,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[L,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[L,"armhf"]],[/windows (ce|mobile); ppc;/i],[[L,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[L,/ower/,_,G]],[/(sun4\w)[;\)]/i],[[L,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[L,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[e,[n,$],[o,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[e,[n,$],[o,u]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[n,H],[o,u]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[n,H],[o,d]],[/(macintosh);/i],[e,[n,H]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[e,[n,Ie],[o,u]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[e,[n,ve],[o,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[n,ve],[o,u]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[e,/_/g," "],[n,ce],[o,u]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[e,/_/g," "],[n,ce],[o,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[e,[n,"OPPO"],[o,u]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[e,[n,"Vivo"],[o,u]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[e,[n,"Realme"],[o,u]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[e,[n,Ae],[o,u]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[e,[n,Ae],[o,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[n,se],[o,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[n,se],[o,u]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[e,[n,"Lenovo"],[o,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[n,"Nokia"],[o,u]],[/(pixel c)\b/i],[e,[n,Z],[o,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[n,Z],[o,u]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[e,[n,Q],[o,u]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[n,Q],[o,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[e,[n,"OnePlus"],[o,u]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[e,[n,q],[o,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[n,q],[o,u]],[/(playbook);[-\w\),; ]+(rim)/i],[e,n,[o,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[n,xe],[o,u]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[n,Se],[o,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[n,Se],[o,u]],[/(nexus 9)/i],[e,[n,"HTC"],[o,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[n,[e,/_/g," "],[o,u]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[n,"Acer"],[o,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[e,[n,"Meizu"],[o,u]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[e,[n,"Ulefone"],[o,u]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[n,e,[o,u]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[n,e,[o,d]],[/(surface duo)/i],[e,[n,le],[o,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[e,[n,"Fairphone"],[o,u]],[/(u304aa)/i],[e,[n,"AT&T"],[o,u]],[/\bsie-(\w*)/i],[e,[n,"Siemens"],[o,u]],[/\b(rct\w+) b/i],[e,[n,"RCA"],[o,d]],[/\b(venue[\d ]{2,7}) b/i],[e,[n,"Dell"],[o,d]],[/\b(q(?:mv|ta)\w+) b/i],[e,[n,"Verizon"],[o,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[n,"Barnes & Noble"],[o,d]],[/\b(tm\d{3}\w+) b/i],[e,[n,"NuVision"],[o,d]],[/\b(k88) b/i],[e,[n,"ZTE"],[o,d]],[/\b(nx\d{3}j) b/i],[e,[n,"ZTE"],[o,u]],[/\b(gen\d{3}) b.+49h/i],[e,[n,"Swiss"],[o,u]],[/\b(zur\d{3}) b/i],[e,[n,"Swiss"],[o,d]],[/\b((zeki)?tb.*\b) b/i],[e,[n,"Zeki"],[o,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[n,"Dragon Touch"],e,[o,d]],[/\b(ns-?\w{0,9}) b/i],[e,[n,"Insignia"],[o,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[n,"NextBook"],[o,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[n,"Voice"],e,[o,u]],[/\b(lvtel\-)?(v1[12]) b/i],[[n,"LvTel"],e,[o,u]],[/\b(ph-1) /i],[e,[n,"Essential"],[o,u]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[e,[n,"Envizen"],[o,d]],[/\b(trio[-\w\. ]+) b/i],[e,[n,"MachSpeed"],[o,d]],[/\btu_(1491) b/i],[e,[n,"Rotor"],[o,d]],[/(shield[\w ]+) b/i],[e,[n,"Nvidia"],[o,d]],[/(sprint) (\w+)/i],[n,e,[o,u]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[n,le],[o,u]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[n,de],[o,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[n,de],[o,u]],[/smart-tv.+(samsung)/i],[n,[o,N]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[n,$],[o,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[n,se],[o,N]],[/(apple) ?tv/i],[n,[e,H+" TV"],[o,N]],[/crkey/i],[[e,Y+"cast"],[n,Z],[o,N]],[/droid.+aft(\w+)( bui|\))/i],[e,[n,q],[o,N]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[n,Ie],[o,N]],[/(bravia[\w ]+)( bui|\))/i],[e,[n,Q],[o,N]],[/(mitv-\w{5}) bui/i],[e,[n,ce],[o,N]],[/Hbbtv.*(technisat) (.*);/i],[n,e,[o,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[n,ue],[e,ue],[o,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[o,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[n,e,[o,k]],[/droid.+; (shield) bui/i],[e,[n,"Nvidia"],[o,k]],[/(playstation [345portablevi]+)/i],[e,[n,Q],[o,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[n,le],[o,k]],[/((pebble))app/i],[n,e,[o,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[n,H],[o,C]],[/droid.+; (glass) \d/i],[e,[n,Z],[o,C]],[/droid.+; (wt63?0{2,3})\)/i],[e,[n,de],[o,C]],[/(quest( 2| pro)?)/i],[e,[n,Ne],[o,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[n,[o,B]],[/(aeobc)\b/i],[e,[n,q],[o,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[o,u]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[o,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[o,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[o,u]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[n,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[s,[r,Qe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[s,[r,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[r,s],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[s,r]],os:[[/microsoft (windows) (vista|xp)/i],[r,s],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[r,[s,pe,ye]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,pe,ye],[r,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[s,/_/g,"."],[r,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[r,ke],[s,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[s,r],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[r,s],[/\(bb(10);/i],[s,[r,xe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[s,[r,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[s,[r,X+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[s,[r,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[s,[r,"watchOS"]],[/crkey\/([\d\.]+)/i],[s,[r,Y+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[r,Le],s],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[r,s],[/(sunos) ?([\w\.\d]*)/i],[[r,"Solaris"],s],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[r,s]]},y=function(f,O){if(typeof f===I&&(O=f,f=l),!(this instanceof y))return new y(f,O).getResult();var E=typeof a!==v&&a.navigator?a.navigator:l,A=f||(E&&E.userAgent?E.userAgent:_),j=E&&E.userAgentData?E.userAgentData:l,P=O?et(De,O):De,g=E&&E.userAgent==A;return this.getBrowser=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.browser),p[m]=tt(p[s]),g&&E&&E.brave&&typeof E.brave.isBrave==h&&(p[r]="Brave"),p},this.getCPU=function(){var p={};return p[L]=l,V.call(p,A,P.cpu),p},this.getDevice=function(){var p={};return p[n]=l,p[e]=l,p[o]=l,V.call(p,A,P.device),g&&!p[o]&&j&&j.mobile&&(p[o]=u),g&&p[e]=="Macintosh"&&E&&typeof E.standalone!==v&&E.maxTouchPoints&&E.maxTouchPoints>2&&(p[e]="iPad",p[o]=d),p},this.getEngine=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.engine),p},this.getOS=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.os),g&&!p[r]&&j&&j.platform!="Unknown"&&(p[r]=j.platform.replace(/chrome os/i,Le).replace(/macos/i,ke)),p},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(p){return A=typeof p===R&&p.length>ae?ue(p,ae):p,this},this.setUA(A),this};y.VERSION=b,y.BROWSER=ee([r,s,m]),y.CPU=ee([L]),y.DEVICE=ee([e,n,o,k,u,N,d,C,B]),y.ENGINE=y.OS=ee([r,s]),i.exports&&(t=i.exports=y),t.UAParser=y;var z=typeof a!==v&&(a.jQuery||a.Zepto);if(z&&!z.ua){var te=new y;z.ua=te.getResult(),z.ua.get=function(){return te.getUA()},z.ua.set=function(f){te.setUA(f);var O=te.getResult();for(var E in O)z.ua[E]=O[E]}}})(typeof window=="object"?window:pt)})(fe,fe.exports);var ii=fe.exports;const si=Et(ii);function oi({src:i,open:t=!1,componentDid:a,loading:l=!0,storeUrl:b,onClose:_=()=>{},onComplete:T=()=>{},onLoad:h=()=>{}},v){const I=D.useRef(null),R=We(m=>{var e,r,o;t&&(((e=m==null?void 0:m.data)==null?void 0:e.event)==="resourceDialog.close"&&_(),((r=m==null?void 0:m.data)==null?void 0:r.event)==="resourceDialog.complete"&&T(),((o=m==null?void 0:m.data)==null?void 0:o.event)==="resourceDialog.loaded"&&h())});return bt(()=>{window.addEventListener("message",R)}),_t(()=>{window.removeEventListener("message",R)}),D.useImperativeHandle(v,()=>({selectBlocklet:m=>{var e;(e=I.current)!=null&&e.contentWindow&&I.current.contentWindow.postMessage({event:"resourceDialog.select",data:m,componentDid:a,storeUrl:b},"*")}})),t?c.jsx("iframe",{ref:I,src:i,title:"Resource Dialog",style:{position:"fixed",top:0,left:l?"-100vw":0,width:"100vw",height:"100vh",zIndex:9999,backgroundColor:"transparent",border:"none"}}):null}D.forwardRef(oi);export{si as U,Ye as W,ai as c,wt as d};
57
+ `;var fe={exports:{}};(function(i,t){(function(a,l){var b="1.0.37",_="",T="?",h="function",v="undefined",I="object",O="string",m="major",e="model",r="name",o="type",n="vendor",s="version",L="architecture",k="console",u="mobile",d="tablet",N="smarttv",C="wearable",B="embedded",ae=500,q="Amazon",H="Apple",Se="ASUS",xe="BlackBerry",K="Browser",Y="Chrome",Qe="Edge",X="Firefox",Z="Google",ve="Huawei",se="LG",le="Microsoft",Ae="Motorola",J="Opera",$="Samsung",Ie="Sharp",Q="Sony",ce="Xiaomi",de="Zebra",Ne="Facebook",Le="Chromium OS",ke="Mac OS",et=function(f,R){var E={};for(var A in f)R[A]&&R[A].length%2===0?E[A]=R[A].concat(f[A]):E[A]=f[A];return E},ee=function(f){for(var R={},E=0;E<f.length;E++)R[f[E].toUpperCase()]=f[E];return R},Ce=function(f,R){return typeof f===O?G(R).indexOf(G(f))!==-1:!1},G=function(f){return f.toLowerCase()},tt=function(f){return typeof f===O?f.replace(/[^\d\.]/g,_).split(".")[0]:l},ue=function(f,R){if(typeof f===O)return f=f.replace(/^\s\s*/,_),typeof R===v?f:f.substring(0,ae)},V=function(f,R){for(var E=0,A,j,P,g,p,M;E<R.length&&!p;){var Ee=R[E],Pe=R[E+1];for(A=j=0;A<Ee.length&&!p&&Ee[A];)if(p=Ee[A++].exec(f),p)for(P=0;P<Pe.length;P++)M=p[++j],g=Pe[P],typeof g===I&&g.length>0?g.length===2?typeof g[1]==h?this[g[0]]=g[1].call(this,M):this[g[0]]=g[1]:g.length===3?typeof g[1]===h&&!(g[1].exec&&g[1].test)?this[g[0]]=M?g[1].call(this,M,g[2]):l:this[g[0]]=M?M.replace(g[1],g[2]):l:g.length===4&&(this[g[0]]=M?g[3].call(this,M.replace(g[1],g[2])):l):this[g]=M||l;E+=2}},pe=function(f,R){for(var E in R)if(typeof R[E]===I&&R[E].length>0){for(var A=0;A<R[E].length;A++)if(Ce(R[E][A],f))return E===T?l:E}else if(Ce(R[E],f))return E===T?l:E;return f},it={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ye={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},De={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[s,[r,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[s,[r,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[r,s],[/opios[\/ ]+([\w\.]+)/i],[s,[r,J+" Mini"]],[/\bopr\/([\w\.]+)/i],[s,[r,J]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[s,[r,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[r,s],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[s,[r,"UC"+K]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[s,[r,"WeChat"]],[/konqueror\/([\w\.]+)/i],[s,[r,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[s,[r,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[s,[r,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[s,[r,"Smart Lenovo "+K]],[/(avast|avg)\/([\w\.]+)/i],[[r,/(.+)/,"$1 Secure "+K],s],[/\bfocus\/([\w\.]+)/i],[s,[r,X+" Focus"]],[/\bopt\/([\w\.]+)/i],[s,[r,J+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[s,[r,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[s,[r,"Dolphin"]],[/coast\/([\w\.]+)/i],[s,[r,J+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[s,[r,"MIUI "+K]],[/fxios\/([-\w\.]+)/i],[s,[r,X]],[/\bqihu|(qi?ho?o?|360)browser/i],[[r,"360 "+K]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[r,/(.+)/,"$1 "+K],s],[/samsungbrowser\/([\w\.]+)/i],[s,[r,$+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],s],[/metasr[\/ ]?([\d\.]+)/i],[s,[r,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[r,"Sogou Mobile"],s],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[r,s],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[r],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[r,Ne],s],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[r,s],[/\bgsa\/([\w\.]+) .*safari\//i],[s,[r,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[s,[r,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[s,[r,Y+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[r,Y+" WebView"],s],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[s,[r,"Android "+K]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[r,s],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[s,[r,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[s,r],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[r,[s,pe,it]],[/(webkit|khtml)\/([\w\.]+)/i],[r,s],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[r,"Netscape"],s],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[s,[r,X+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[r,s],[/(cobalt)\/([\w\.]+)/i],[r,[s,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[L,"amd64"]],[/(ia32(?=;))/i],[[L,G]],[/((?:i[346]|x)86)[;\)]/i],[[L,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[L,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[L,"armhf"]],[/windows (ce|mobile); ppc;/i],[[L,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[L,/ower/,_,G]],[/(sun4\w)[;\)]/i],[[L,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[L,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[e,[n,$],[o,d]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[e,[n,$],[o,u]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[e,[n,H],[o,u]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[e,[n,H],[o,d]],[/(macintosh);/i],[e,[n,H]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[e,[n,Ie],[o,u]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[e,[n,ve],[o,d]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[e,[n,ve],[o,u]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[e,/_/g," "],[n,ce],[o,u]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[e,/_/g," "],[n,ce],[o,d]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[e,[n,"OPPO"],[o,u]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[e,[n,"Vivo"],[o,u]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[e,[n,"Realme"],[o,u]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[e,[n,Ae],[o,u]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[e,[n,Ae],[o,d]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[e,[n,se],[o,d]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[e,[n,se],[o,u]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[e,[n,"Lenovo"],[o,d]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[e,/_/g," "],[n,"Nokia"],[o,u]],[/(pixel c)\b/i],[e,[n,Z],[o,d]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[e,[n,Z],[o,u]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[e,[n,Q],[o,u]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[e,"Xperia Tablet"],[n,Q],[o,d]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[e,[n,"OnePlus"],[o,u]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[e,[n,q],[o,d]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[e,/(.+)/g,"Fire Phone $1"],[n,q],[o,u]],[/(playbook);[-\w\),; ]+(rim)/i],[e,n,[o,d]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[e,[n,xe],[o,u]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[e,[n,Se],[o,d]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[e,[n,Se],[o,u]],[/(nexus 9)/i],[e,[n,"HTC"],[o,d]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[n,[e,/_/g," "],[o,u]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[e,[n,"Acer"],[o,d]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[e,[n,"Meizu"],[o,u]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[e,[n,"Ulefone"],[o,u]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[n,e,[o,u]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[n,e,[o,d]],[/(surface duo)/i],[e,[n,le],[o,d]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[e,[n,"Fairphone"],[o,u]],[/(u304aa)/i],[e,[n,"AT&T"],[o,u]],[/\bsie-(\w*)/i],[e,[n,"Siemens"],[o,u]],[/\b(rct\w+) b/i],[e,[n,"RCA"],[o,d]],[/\b(venue[\d ]{2,7}) b/i],[e,[n,"Dell"],[o,d]],[/\b(q(?:mv|ta)\w+) b/i],[e,[n,"Verizon"],[o,d]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[e,[n,"Barnes & Noble"],[o,d]],[/\b(tm\d{3}\w+) b/i],[e,[n,"NuVision"],[o,d]],[/\b(k88) b/i],[e,[n,"ZTE"],[o,d]],[/\b(nx\d{3}j) b/i],[e,[n,"ZTE"],[o,u]],[/\b(gen\d{3}) b.+49h/i],[e,[n,"Swiss"],[o,u]],[/\b(zur\d{3}) b/i],[e,[n,"Swiss"],[o,d]],[/\b((zeki)?tb.*\b) b/i],[e,[n,"Zeki"],[o,d]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[n,"Dragon Touch"],e,[o,d]],[/\b(ns-?\w{0,9}) b/i],[e,[n,"Insignia"],[o,d]],[/\b((nxa|next)-?\w{0,9}) b/i],[e,[n,"NextBook"],[o,d]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[n,"Voice"],e,[o,u]],[/\b(lvtel\-)?(v1[12]) b/i],[[n,"LvTel"],e,[o,u]],[/\b(ph-1) /i],[e,[n,"Essential"],[o,u]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[e,[n,"Envizen"],[o,d]],[/\b(trio[-\w\. ]+) b/i],[e,[n,"MachSpeed"],[o,d]],[/\btu_(1491) b/i],[e,[n,"Rotor"],[o,d]],[/(shield[\w ]+) b/i],[e,[n,"Nvidia"],[o,d]],[/(sprint) (\w+)/i],[n,e,[o,u]],[/(kin\.[onetw]{3})/i],[[e,/\./g," "],[n,le],[o,u]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[e,[n,de],[o,d]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[e,[n,de],[o,u]],[/smart-tv.+(samsung)/i],[n,[o,N]],[/hbbtv.+maple;(\d+)/i],[[e,/^/,"SmartTV"],[n,$],[o,N]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[n,se],[o,N]],[/(apple) ?tv/i],[n,[e,H+" TV"],[o,N]],[/crkey/i],[[e,Y+"cast"],[n,Z],[o,N]],[/droid.+aft(\w+)( bui|\))/i],[e,[n,q],[o,N]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[e,[n,Ie],[o,N]],[/(bravia[\w ]+)( bui|\))/i],[e,[n,Q],[o,N]],[/(mitv-\w{5}) bui/i],[e,[n,ce],[o,N]],[/Hbbtv.*(technisat) (.*);/i],[n,e,[o,N]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[n,ue],[e,ue],[o,N]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[o,N]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[n,e,[o,k]],[/droid.+; (shield) bui/i],[e,[n,"Nvidia"],[o,k]],[/(playstation [345portablevi]+)/i],[e,[n,Q],[o,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[e,[n,le],[o,k]],[/((pebble))app/i],[n,e,[o,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[e,[n,H],[o,C]],[/droid.+; (glass) \d/i],[e,[n,Z],[o,C]],[/droid.+; (wt63?0{2,3})\)/i],[e,[n,de],[o,C]],[/(quest( 2| pro)?)/i],[e,[n,Ne],[o,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[n,[o,B]],[/(aeobc)\b/i],[e,[n,q],[o,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[e,[o,u]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[e,[o,d]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[o,d]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[o,u]],[/(android[-\w\. ]{0,9});.+buil/i],[e,[n,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[s,[r,Qe+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[s,[r,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[r,s],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[s,r]],os:[[/microsoft (windows) (vista|xp)/i],[r,s],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[r,[s,pe,ye]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[s,pe,ye],[r,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[s,/_/g,"."],[r,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[r,ke],[s,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[s,r],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[r,s],[/\(bb(10);/i],[s,[r,xe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[s,[r,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[s,[r,X+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[s,[r,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[s,[r,"watchOS"]],[/crkey\/([\d\.]+)/i],[s,[r,Y+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[r,Le],s],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[r,s],[/(sunos) ?([\w\.\d]*)/i],[[r,"Solaris"],s],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[r,s]]},y=function(f,R){if(typeof f===I&&(R=f,f=l),!(this instanceof y))return new y(f,R).getResult();var E=typeof a!==v&&a.navigator?a.navigator:l,A=f||(E&&E.userAgent?E.userAgent:_),j=E&&E.userAgentData?E.userAgentData:l,P=R?et(De,R):De,g=E&&E.userAgent==A;return this.getBrowser=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.browser),p[m]=tt(p[s]),g&&E&&E.brave&&typeof E.brave.isBrave==h&&(p[r]="Brave"),p},this.getCPU=function(){var p={};return p[L]=l,V.call(p,A,P.cpu),p},this.getDevice=function(){var p={};return p[n]=l,p[e]=l,p[o]=l,V.call(p,A,P.device),g&&!p[o]&&j&&j.mobile&&(p[o]=u),g&&p[e]=="Macintosh"&&E&&typeof E.standalone!==v&&E.maxTouchPoints&&E.maxTouchPoints>2&&(p[e]="iPad",p[o]=d),p},this.getEngine=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.engine),p},this.getOS=function(){var p={};return p[r]=l,p[s]=l,V.call(p,A,P.os),g&&!p[r]&&j&&j.platform!="Unknown"&&(p[r]=j.platform.replace(/chrome os/i,Le).replace(/macos/i,ke)),p},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return A},this.setUA=function(p){return A=typeof p===O&&p.length>ae?ue(p,ae):p,this},this.setUA(A),this};y.VERSION=b,y.BROWSER=ee([r,s,m]),y.CPU=ee([L]),y.DEVICE=ee([e,n,o,k,u,N,d,C,B]),y.ENGINE=y.OS=ee([r,s]),i.exports&&(t=i.exports=y),t.UAParser=y;var z=typeof a!==v&&(a.jQuery||a.Zepto);if(z&&!z.ua){var te=new y;z.ua=te.getResult(),z.ua.get=function(){return te.getUA()},z.ua.set=function(f){te.setUA(f);var R=te.getResult();for(var E in R)z.ua[E]=R[E]}}})(typeof window=="object"?window:pt)})(fe,fe.exports);var ii=fe.exports;const si=Et(ii);function oi({src:i,open:t=!1,componentDid:a,loading:l=!0,storeUrl:b,onClose:_=()=>{},onComplete:T=()=>{},onLoad:h=()=>{}},v){const I=D.useRef(null),O=We(m=>{var e,r,o;t&&(((e=m==null?void 0:m.data)==null?void 0:e.event)==="resourceDialog.close"&&_(),((r=m==null?void 0:m.data)==null?void 0:r.event)==="resourceDialog.complete"&&T(),((o=m==null?void 0:m.data)==null?void 0:o.event)==="resourceDialog.loaded"&&h())});return bt(()=>{window.addEventListener("message",O)}),_t(()=>{window.removeEventListener("message",O)}),D.useImperativeHandle(v,()=>({selectBlocklet:m=>{var e;(e=I.current)!=null&&e.contentWindow&&I.current.contentWindow.postMessage({event:"resourceDialog.select",data:m,componentDid:a,storeUrl:b},"*")}})),t?c.jsx("iframe",{ref:I,src:i,title:"Resource Dialog",style:{position:"fixed",top:0,left:l?"-100vw":0,width:"100vw",height:"100vh",zIndex:9999,backgroundColor:"transparent",border:"none"}}):null}D.forwardRef(oi);export{si as U,Ye as W,ai as c,wt as d};