@abtnode/webapp 1.16.53-beta-20251009-103017-c7694a7e → 1.16.53-beta-20251010-233105-b0ddacda

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DovOOpck.js → AdapterDayjs-DQepVz3x.js} +1 -1
  4. package/dist/assets/{Add-DyTieGiH.js → Add-CQt7mq1G.js} +1 -1
  5. package/dist/assets/ArrowDropDown-aNeHE2A2.js +1 -0
  6. package/dist/assets/{Autocomplete-DeRVpEU5.js → Autocomplete-Bf1Ho3Hd.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-BnYzoMmu.js → Breadcrumbs-CPilcW9u.js} +1 -1
  8. package/dist/assets/{ButtonGroup-CzZQ8Npu.js → ButtonGroup-9zvLC_k0.js} +1 -1
  9. package/dist/assets/{CSSTransition-CjXLkGon.js → CSSTransition-dwX1-RMJ.js} +1 -1
  10. package/dist/assets/{CallMerge-DmrftrOd.js → CallMerge-BYCLcH5E.js} +1 -1
  11. package/dist/assets/{CardContent-CpM-_HeI.js → CardContent-C22npYBc.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CcsCSRKu.js → ChevronLeft-Bmmo6bzu.js} +1 -1
  13. package/dist/assets/{ChevronRight-o-pKt_xW.js → ChevronRight-X_FMXVA4.js} +1 -1
  14. package/dist/assets/{Clear-DbuaJOFI.js → Clear-B-e33dNn.js} +1 -1
  15. package/dist/assets/{DeleteOutline-D-kT-jdx.js → DeleteOutline-CIuy8JMu.js} +1 -1
  16. package/dist/assets/{Done-C2ulOvk7.js → Done-yHCWLz6K.js} +1 -1
  17. package/dist/assets/{Edit-DWhNMMIZ.js → Edit-CLiO2h_l.js} +1 -1
  18. package/dist/assets/{ErrorOutline-B0ozV6sd.js → ErrorOutline-B_qBOUnI.js} +1 -1
  19. package/dist/assets/{FilterList-CQA7G7Vn.js → FilterList-BOMn8eqm.js} +1 -1
  20. package/dist/assets/{Google-CdFzL70-.js → Google-KOeLJ7n-.js} +1 -1
  21. package/dist/assets/{HelpOutline-aMigqk6S.js → HelpOutline-BXdmHwaP.js} +1 -1
  22. package/dist/assets/{KeyboardArrowDown-Ccl83jb_.js → KeyboardArrowDown-CdK82Qsb.js} +1 -1
  23. package/dist/assets/{Launch-DR4ser43.js → Launch-cxvym2iP.js} +1 -1
  24. package/dist/assets/{Link-8FWBk0pv.js → Link-DKb1MvxW.js} +1 -1
  25. package/dist/assets/{ListItemButton-xoowqbX5.js → ListItemButton-E5H4lrRx.js} +1 -1
  26. package/dist/assets/{ListSubheader-Tf0tPSi7.js → ListSubheader-FJVGwx1O.js} +1 -1
  27. package/dist/assets/{LoadingButton-DdsR40-y.js → LoadingButton-C7IcO9Nb.js} +1 -1
  28. package/dist/assets/{MoreVert-CDZKGaWW.js → MoreVert-bx--E19j.js} +1 -1
  29. package/dist/assets/{OpenInNew-5dmOmuOP.js → OpenInNew-BdVhgoOc.js} +1 -1
  30. package/dist/assets/{Refresh-6wYRerOp.js → Refresh-mYLoMEkT.js} +1 -1
  31. package/dist/assets/{Search-CYv1OPLx.js → Search-Dm2dt-Sr.js} +1 -1
  32. package/dist/assets/{Stepper-BdbxyKvR.js → Stepper-B1wBWjZo.js} +1 -1
  33. package/dist/assets/{Switch-CJCk9M4e.js → Switch-CE03jZ_8.js} +1 -1
  34. package/dist/assets/{TableSearch-DEuaLdIb.js → TableSearch-Bj41g7St.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-CJvpk2kD.js → ToggleButtonGroup-BEjde42R.js} +1 -1
  36. package/dist/assets/{UnfoldMore-I9efh077.js → UnfoldMore-zrMTJNOp.js} +1 -1
  37. package/dist/assets/{Verified-B6ag8nG6.js → Verified-B-cFyGP0.js} +1 -1
  38. package/dist/assets/{VerifiedUser-ueCIxEYY.js → VerifiedUser-aSWRZr_Y.js} +1 -1
  39. package/dist/assets/{ViewList-STBCUXtD.js → ViewList-BbDrtZvr.js} +1 -1
  40. package/dist/assets/{_createAggregator-Cnz_HrZy.js → _createAggregator-OKIbDBKF.js} +1 -1
  41. package/dist/assets/{actions-0xA8jgJe.js → actions-BBls_wa0.js} +1 -1
  42. package/dist/assets/{actions-i2UahyAp.js → actions-DaOidt88.js} +1 -1
  43. package/dist/assets/{agreement-DoAGWhqk.js → agreement-B9tSzjmL.js} +1 -1
  44. package/dist/assets/api-r-_fEWsI.js +1 -0
  45. package/dist/assets/{appearance-BLnd4o8Y.js → appearance-BOeNpo6Y.js} +1 -1
  46. package/dist/assets/{audit-logs-D__bx07h.js → audit-logs-Bdg8Eitt.js} +1 -1
  47. package/dist/assets/{base-chart-Dr8SHE0h.js → base-chart-D7y6qq9u.js} +1 -1
  48. package/dist/assets/{blocklet-Ddfm_VL2.js → blocklet-C67aFvl7.js} +1 -1
  49. package/dist/assets/{chain-CdexttSs.js → chain-se1xvUDC.js} +1 -1
  50. package/dist/assets/{click-to-copy-D6M1fnDc.js → click-to-copy-D50kkiW4.js} +1 -1
  51. package/dist/assets/client-Dj0WAiOq.js +1 -0
  52. package/dist/assets/cloneDeep-Dqj81-8-.js +1 -0
  53. package/dist/assets/{collapse-D2q_m0jc.js → collapse-UPIFGGD9.js} +1 -1
  54. package/dist/assets/{config-navigation-B6vV0qs8.js → config-navigation-CutTRHe-.js} +3 -3
  55. package/dist/assets/{connect-to-Co7U9qsv.js → connect-to-Dz9eH_td.js} +1 -1
  56. package/dist/assets/{cssMode-C5uxwgRY.js → cssMode-73_XXe8t.js} +1 -1
  57. package/dist/assets/{delete-confirm-C1ZQ29Q4.js → delete-confirm-cbt-tN11.js} +1 -1
  58. package/dist/assets/{depsEqual-DQDFZSyD.js → depsEqual-BaUhqVSn.js} +1 -1
  59. package/dist/assets/{detail-a5SJkzSR.js → detail-BR9P1Yx6.js} +3 -3
  60. package/dist/assets/{domains-BRe4M7bx.js → domains-BDMd9S2d.js} +1 -1
  61. package/dist/assets/{download-Cwb05ySd.js → download-Oh1d5P58.js} +1 -1
  62. package/dist/assets/{edit.svg-DCbVw9zw.js → edit.svg-BHG50OdM.js} +1 -1
  63. package/dist/assets/emotion-cache.browser.esm-B4ZmPeHk.js +1 -0
  64. package/dist/assets/engine-BWGbIQAy.js +1 -0
  65. package/dist/assets/{freemarker2-DVpsezSy.js → freemarker2-BQ02ePgw.js} +1 -1
  66. package/dist/assets/{get-safe-url-BjFdr4OL.js → get-safe-url-CteWIr5a.js} +1 -1
  67. package/dist/assets/getValidReactChildren-DDB1J2y7.js +1 -0
  68. package/dist/assets/{graphqlMode-ChKOq_KJ.js → graphqlMode-BTvp4HDh.js} +2 -2
  69. package/dist/assets/{handlebars-BU9OFTYI.js → handlebars-DPMLBiwS.js} +1 -1
  70. package/dist/assets/{html-UexVD9vB.js → html-iuKRS8o1.js} +1 -1
  71. package/dist/assets/{html-title-C4Q1l9hV.js → html-title-vsl-TT26.js} +1 -1
  72. package/dist/assets/{htmlMode-TJopYsor.js → htmlMode-CvGrTtxZ.js} +1 -1
  73. package/dist/assets/{iframe-DMkrJLov.js → iframe-Dl-yNrp9.js} +1 -1
  74. package/dist/assets/{index-CB7PBjDX.js → index-2UXtfcoT.js} +3 -3
  75. package/dist/assets/{index-bK6g80kL.js → index-8DgiLFWe.js} +1 -1
  76. package/dist/assets/{index-Bi1dCbDw.js → index-AKf23glP.js} +1 -1
  77. package/dist/assets/{index-SQHqCeph.js → index-B28OSLEk.js} +1 -1
  78. package/dist/assets/{index-B7EJvfHM.js → index-B2jTgxcq.js} +1 -1
  79. package/dist/assets/{index-DkJyV264.js → index-B5Z2178w.js} +3 -3
  80. package/dist/assets/{index-CwdwMEyK.js → index-BDFC1sP1.js} +1 -1
  81. package/dist/assets/{index-BS0sLGRz.js → index-BGSPRFxN.js} +1 -1
  82. package/dist/assets/{index-CaUe3dMj.js → index-BIIfr0Cp.js} +1 -1
  83. package/dist/assets/{index-DfwECgSx.js → index-BOBzLa1k.js} +1 -1
  84. package/dist/assets/{index-1ecJNhOT.js → index-BP0DWBRY.js} +1 -1
  85. package/dist/assets/{index-Cie1Z-Am.js → index-BYQEC6o1.js} +1 -1
  86. package/dist/assets/index-BkGL3dW2.js +375 -0
  87. package/dist/assets/{index-D_kWYNJi.js → index-BtY4M62T.js} +3 -3
  88. package/dist/assets/{index-CjedGlyf.js → index-BvVI7Mxo.js} +1 -1
  89. package/dist/assets/{index-CFWi7Q8M.js → index-BxxgnmFX.js} +1 -1
  90. package/dist/assets/{index-b3XeYmTe.js → index-BzM5LY8-.js} +1 -1
  91. package/dist/assets/{index-wNvsBj9G.js → index-C-1MOEs6.js} +1 -1
  92. package/dist/assets/{index-CsmIWfmp.js → index-C31TKs2j.js} +1 -1
  93. package/dist/assets/{index-DGSsefUZ.js → index-C7egXf_h.js} +3 -3
  94. package/dist/assets/{index-DtIh1vFa.js → index-CC45e4UO.js} +1 -1
  95. package/dist/assets/{index-Do106lNr.js → index-CFw_f03A.js} +1 -1
  96. package/dist/assets/{index-C7AJ9wZq.js → index-CHmcCDqZ.js} +1 -1
  97. package/dist/assets/{index--oO30Jkn.js → index-CRZ7_NI2.js} +1 -1
  98. package/dist/assets/{index-CnTj486q.js → index-CgJV4oal.js} +1 -1
  99. package/dist/assets/{index-D0uKz0V_.js → index-Cisz7h7X.js} +1 -1
  100. package/dist/assets/{index-BlH5R4ip.js → index-ClSpNPOh.js} +1 -1
  101. package/dist/assets/{index-T209NFxy.js → index-ClxIMfsM.js} +1 -1
  102. package/dist/assets/{index-CIUZoemD.js → index-CpuUG8Z1.js} +1 -1
  103. package/dist/assets/{index-DdqV6Ziy.js → index-Cwp0FKW3.js} +2 -2
  104. package/dist/assets/{index-H-jmtxXo.js → index-D9p6b5Uq.js} +1 -1
  105. package/dist/assets/index-DVAwbdhJ.js +1 -0
  106. package/dist/assets/{index-DAqbo3x1.js → index-DWy1kjL1.js} +1 -1
  107. package/dist/assets/{index-CbZ9HAj8.js → index-D_jr-SDL.js} +1 -1
  108. package/dist/assets/{index-BTulqglm.js → index-DbXGWrH9.js} +9 -9
  109. package/dist/assets/{index-Xej91YkM.js → index-DfEAejxd.js} +1 -1
  110. package/dist/assets/{index-C3SQ4eIT.js → index-DfPrMmoZ.js} +1 -1
  111. package/dist/assets/{index-BYbMJbBQ.js → index-DnNVPfHo.js} +1 -1
  112. package/dist/assets/{index-BRdnv7Wp.js → index-DnZwjPBr.js} +1 -1
  113. package/dist/assets/{index-DWPS9ieq.js → index-DsOZQCxX.js} +2 -2
  114. package/dist/assets/{index-hCRLdd4Q.js → index-Dxww66F8.js} +1 -1
  115. package/dist/assets/{index-SpGv84ec.js → index-GerkFFyW.js} +3 -3
  116. package/dist/assets/{index-Di3fMIen.js → index-W1Jg0zqO.js} +1 -1
  117. package/dist/assets/{index-uisuBluj.js → index-eYZIsLRo.js} +1 -1
  118. package/dist/assets/{index-B4kOKoNV.js → index-oHwXuk_n.js} +1 -1
  119. package/dist/assets/{index-CNPrEh7K.js → index-rrAKD-3O.js} +1 -1
  120. package/dist/assets/{index.esm-Lk0YHlgv.js → index.esm-DkqB0mnE.js} +1 -1
  121. package/dist/assets/{install-from-url-BRio3aeH.js → install-from-url-DOR8ZaEG.js} +1 -1
  122. package/dist/assets/{invitation-CqYyE8ME.js → invitation-BOK3Xmtg.js} +1 -1
  123. package/dist/assets/{is-path-prefix-equal-CC7-GVaa.js → is-path-prefix-equal-Cl2onSKX.js} +1 -1
  124. package/dist/assets/{item-BxAxNpJk.js → item-BQYMoVUI.js} +1 -1
  125. package/dist/assets/{javascript-ChDh5iSe.js → javascript-BaLTUeT9.js} +1 -1
  126. package/dist/assets/{jsonMode-_2nbeNvy.js → jsonMode-P_9C43Nc.js} +1 -1
  127. package/dist/assets/{liquid-B4GHkAyg.js → liquid-amkaEf3E.js} +1 -1
  128. package/dist/assets/{list-header-Cb1uRm5G.js → list-header-DAiEDwhs.js} +1 -1
  129. package/dist/assets/{lock.svg-BH7_YT0q.js → lock.svg-CNAb9wZc.js} +1 -1
  130. package/dist/assets/{log-6_0GK9Sf.js → log-1_m4xF_N.js} +1 -1
  131. package/dist/assets/{lottie-react.esm-DmwbnPOn.js → lottie-react.esm-BmVAhuIy.js} +1 -1
  132. package/dist/assets/{mdx-B_wFriqY.js → mdx-Bd0pfo5p.js} +1 -1
  133. package/dist/assets/{memory-sDoTeyx0.js → memory-UJLIVuot.js} +1 -1
  134. package/dist/assets/{metric-BKabdyQk.js → metric-DNUD7jbr.js} +1 -1
  135. package/dist/assets/omit-DVVVCRDp.js +1 -0
  136. package/dist/assets/{overview-aAlDPd4Q.js → overview-DqrKT2dL.js} +1 -1
  137. package/dist/assets/{permission-crhdqXhd.js → permission-ycsOOBwp.js} +1 -1
  138. package/dist/assets/{preference-BNQQaSX0.js → preference-BhfekBAB.js} +3 -3
  139. package/dist/assets/{python-BtYeLxMR.js → python-B5XVaf0B.js} +1 -1
  140. package/dist/assets/{raf-schd.esm-K0lox3Rf.js → raf-schd.esm-yET3NUrL.js} +1 -1
  141. package/dist/assets/{razor-B4KFVo2j.js → razor-TLp_5QYQ.js} +1 -1
  142. package/dist/assets/{rotate-session-key-DTg7AVbr.js → rotate-session-key-B90qT4kq.js} +1 -1
  143. package/dist/assets/{runtime-De89eo0q.js → runtime-D_DvOf5h.js} +1 -1
  144. package/dist/assets/schema-Db5OWlWL.js +1 -0
  145. package/dist/assets/sdk-BZ4-wJ5p.js +1 -0
  146. package/dist/assets/{service-DLCTpVab.js → service-DjmXGMON.js} +1 -1
  147. package/dist/assets/{shorten-label-B1hTVv56.js → shorten-label-BOfK6p4p.js} +1 -1
  148. package/dist/assets/{simple-select-Cdud---B.js → simple-select-BZu6cCw3.js} +1 -1
  149. package/dist/assets/{spaces-Du4ytYyE.js → spaces-CNd41sir.js} +1 -1
  150. package/dist/assets/{status-BM8-Rpzz.js → status-C32bwmXC.js} +1 -1
  151. package/dist/assets/{status-DYjJgZF9.js → status-DnBUY_P3.js} +1 -1
  152. package/dist/assets/{switch-control-HQMK5p78.js → switch-control-Ce2o9ffJ.js} +1 -1
  153. package/dist/assets/{table-icons-DPEJ6Pbc.js → table-icons-BYT0kQuz.js} +1 -1
  154. package/dist/assets/{team-ouIwaQum.js → team-CxcPF7A7.js} +1 -1
  155. package/dist/assets/{toLower-3JDTZiHY.js → toLower-DJOalyNw.js} +1 -1
  156. package/dist/assets/toUpper-B5TzdczN.js +1 -0
  157. package/dist/assets/{traffic-DQX3XpFH.js → traffic-C17ygInL.js} +1 -1
  158. package/dist/assets/{tsMode-DdJdi-Cl.js → tsMode-YA-whx9N.js} +1 -1
  159. package/dist/assets/{typescript-BRTY57X5.js → typescript-Balm-M-7.js} +1 -1
  160. package/dist/assets/{url-evaluation-4RA6nhhV.js → url-evaluation-w8X_lgzG.js} +1 -1
  161. package/dist/assets/{url-join-s-abjyAU.js → url-join-3aXvW59g.js} +1 -1
  162. package/dist/assets/{use-mobile-9H63c6Kz.js → use-mobile-BxUSznYk.js} +1 -1
  163. package/dist/assets/{use-mobile-CNA5itNx.js → use-mobile-IHqsUzt1.js} +1 -1
  164. package/dist/assets/{useAsync-B0Ca_r2m.js → useAsync-Bkh8Rg6Z.js} +1 -1
  165. package/dist/assets/{useAsyncRetry-CtsBX_BZ.js → useAsyncRetry-CwoOKXPC.js} +1 -1
  166. package/dist/assets/{useLocalStorage-T0_FQRxp.js → useLocalStorage-DZYDHTFQ.js} +1 -1
  167. package/dist/assets/{useThemeProps-EahRu2x5.js → useThemeProps-Bs1lG48z.js} +1 -1
  168. package/dist/assets/{util-CUni4mda.js → util-CC0K7Xya.js} +1 -1
  169. package/dist/assets/{wait-container-xOI954wH.js → wait-container-DeaT7Cuc.js} +1 -1
  170. package/dist/assets/{without-wallet-DOZiTpC3.js → without-wallet-B5UEEmrQ.js} +1 -1
  171. package/dist/assets/{wrap-locale-Des5gfRA.js → wrap-locale-gBhiwBoM.js} +1 -1
  172. package/dist/assets/{xml-B19Uai7I.js → xml-CZ5H3llM.js} +1 -1
  173. package/dist/assets/{yaml-D5iuUIms.js → yaml-CL1tqltg.js} +1 -1
  174. package/dist/assets/{zh-CJ0qBy8e.js → zh-CZLHYA5h.js} +1 -1
  175. package/dist/assets/{zh-tw-Cs-zRk58.js → zh-tw-B-qWW0q8.js} +1 -1
  176. package/dist/index.html +1 -1
  177. package/dist/service-worker.js +1 -1
  178. package/package.json +1 -1
  179. package/dist/assets/ArrowDropDown-BFKf-Ws9.js +0 -1
  180. package/dist/assets/api-BLz72Lsh.js +0 -1
  181. package/dist/assets/client-wk4MeJIg.js +0 -1
  182. package/dist/assets/cloneDeep-C1r6zWUN.js +0 -1
  183. package/dist/assets/emotion-cache.browser.esm-CgS-LeII.js +0 -1
  184. package/dist/assets/engine-DHL9Z21k.js +0 -1
  185. package/dist/assets/getValidReactChildren-BImmvw4C.js +0 -1
  186. package/dist/assets/index-CgWUU7yZ.js +0 -1
  187. package/dist/assets/index-TglI0woB.js +0 -375
  188. package/dist/assets/omit-Cd7qywqq.js +0 -1
  189. package/dist/assets/schema-CjV-LIXx.js +0 -1
  190. package/dist/assets/sdk-DZ3OhIyg.js +0 -1
  191. package/dist/assets/toUpper-Cmpm1h81.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-aAlDPd4Q.js","./index-DGSsefUZ.js","./index-DGkT7afN.css","./HelpOutline-aMigqk6S.js","./status-DYjJgZF9.js","./index-CgWUU7yZ.js","./ErrorOutline-B0ozV6sd.js","./omit-Cd7qywqq.js","./index-BojVbZw0.js","./index-DAqbo3x1.js","./blocklet-Ddfm_VL2.js","./team-ouIwaQum.js","./url-evaluation-4RA6nhhV.js","./metric-BKabdyQk.js","./spaces-Du4ytYyE.js","./api-BLz72Lsh.js","./domains-BRe4M7bx.js","./index-CFWi7Q8M.js","./useAsync-B0Ca_r2m.js","./permission-crhdqXhd.js","./actions-i2UahyAp.js","./delete-confirm-C1ZQ29Q4.js","./click-to-copy-D6M1fnDc.js","./status-BM8-Rpzz.js","./VerifiedUser-ueCIxEYY.js","./CardContent-CpM-_HeI.js","./Add-DyTieGiH.js","./CallMerge-DmrftrOd.js","./toLower-3JDTZiHY.js","./use-mobile-CNA5itNx.js","./util-CUni4mda.js","./is-path-prefix-equal-CC7-GVaa.js","./engine-DHL9Z21k.js","./OpenInNew-5dmOmuOP.js","./LoadingButton-DdsR40-y.js","./index-CwdwMEyK.js","./preference-BNQQaSX0.js","./index-Bi1dCbDw.js","./Done-C2ulOvk7.js","./collapse-D2q_m0jc.js","./edit.svg-DCbVw9zw.js","./ArrowDropDown-BFKf-Ws9.js","./ButtonGroup-CzZQ8Npu.js","./getValidReactChildren-BImmvw4C.js","./index-BRdnv7Wp.js","./iframe-DMkrJLov.js","./ChevronRight-o-pKt_xW.js","./html-title-C4Q1l9hV.js","./Autocomplete-DeRVpEU5.js","./ListSubheader-Tf0tPSi7.js","./rotate-session-key-DTg7AVbr.js","./visuallyHidden-Dan1xhjv.js","./chain-CdexttSs.js","./Switch-CJCk9M4e.js","./index-1ecJNhOT.js","./index.esm-Lk0YHlgv.js","./index-CNPrEh7K.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./switch-control-HQMK5p78.js","./index-bK6g80kL.js","./FilterList-CQA7G7Vn.js","./CSSTransition-CjXLkGon.js","./emotion-cache.browser.esm-CgS-LeII.js","./depsEqual-DQDFZSyD.js","./TableSearch-DEuaLdIb.js","./Search-CYv1OPLx.js","./Clear-DbuaJOFI.js","./MoreVert-CDZKGaWW.js","./index-Di3fMIen.js","./index-ZgkIHsf0.css","./use-mobile-9H63c6Kz.js","./simple-select-Cdud---B.js","./actions-0xA8jgJe.js","./useLocalStorage-T0_FQRxp.js","./get-safe-url-BjFdr4OL.js","./appearance-BLnd4o8Y.js","./config-navigation-B6vV0qs8.js","./cloneDeep-C1r6zWUN.js","./_createAggregator-Cnz_HrZy.js","./raf-schd.esm-K0lox3Rf.js","./ListItemButton-xoowqbX5.js","./client-wk4MeJIg.js","./index-DtIh1vFa.js","./KeyboardArrowDown-Ccl83jb_.js","./index-CjedGlyf.js","./shorten-label-B1hTVv56.js","./Refresh-6wYRerOp.js","./traffic-DQX3XpFH.js","./ChevronLeft-CcsCSRKu.js","./index-DBii9-f-.js","./base-chart-Dr8SHE0h.js","./index-CIUZoemD.js","./AdapterDayjs-DovOOpck.js","./useThemeProps-EahRu2x5.js","./audit-logs-D__bx07h.js","./index-D0uKz0V_.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-I9efh077.js","./index-T209NFxy.js","./index-wNvsBj9G.js","./Google-CdFzL70-.js","./list-header-Cb1uRm5G.js","./ToggleButtonGroup-CJvpk2kD.js","./lock.svg-BH7_YT0q.js","./index-TglI0woB.js","./ViewList-STBCUXtD.js","./Verified-B6ag8nG6.js","./DeleteOutline-D-kT-jdx.js","./index-B7EJvfHM.js","./sdk-DZ3OhIyg.js","./service-DLCTpVab.js","./table-icons-DPEJ6Pbc.js","./Edit-DWhNMMIZ.js","./index-CB7PBjDX.js","./Link-8FWBk0pv.js","./item-BxAxNpJk.js","./Launch-DR4ser43.js","./item-G0iZE90Q.css","./index-CaUe3dMj.js","./url-join-s-abjyAU.js","./connect-to-Co7U9qsv.js","./index-DRYJ0xIl.js","./agreement-DoAGWhqk.js","./install-from-url-BRio3aeH.js","./without-wallet-DOZiTpC3.js","./Stepper-BdbxyKvR.js","./toUpper-Cmpm1h81.js","./log-6_0GK9Sf.js","./download-Cwb05ySd.js","./runtime-De89eo0q.js","./memory-sDoTeyx0.js","./index-DWPS9ieq.js"])))=>i.map(i=>d[i]);
2
- import{n as Ue,q as He,bn as _t,r as y,aH as N,j as d,V as qe,M as Y,w as Qe,x as Tt,i as T,by as Ct,H as W,X as Ge,bm as Ke,B as jt,u as Pt,bz as At,bA as Dt,bB as Pe,bC as Ot,bD as Lt,Y as Ae,C as De,J as Bt,bE as Mt,T as le,K as Rt,bF as k,s as Nt}from"./index-DGSsefUZ.js";import{T as Ft,u as Vt}from"./html-title-C4Q1l9hV.js";import{B as zt}from"./status-BM8-Rpzz.js";import{D as $t,B as Ut}from"./actions-0xA8jgJe.js";import{u as Ht}from"./blocklet-Ddfm_VL2.js";import{p as qt}from"./index-uisuBluj.js";import{B as Qt,a as Gt,T as Kt}from"./team-ouIwaQum.js";import{P as Wt}from"./permission-crhdqXhd.js";import{B as Jt}from"./Breadcrumbs-BnYzoMmu.js";import"./useLocalStorage-T0_FQRxp.js";import"./MoreVert-CDZKGaWW.js";import"./url-evaluation-4RA6nhhV.js";import"./get-safe-url-BjFdr4OL.js";import"./ButtonGroup-CzZQ8Npu.js";import"./getValidReactChildren-BImmvw4C.js";/**
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-DqrKT2dL.js","./index-C7egXf_h.js","./index-DGkT7afN.css","./HelpOutline-BXdmHwaP.js","./status-DnBUY_P3.js","./index-DVAwbdhJ.js","./ErrorOutline-B_qBOUnI.js","./omit-DVVVCRDp.js","./index-BojVbZw0.js","./index-DWy1kjL1.js","./blocklet-C67aFvl7.js","./team-CxcPF7A7.js","./url-evaluation-w8X_lgzG.js","./metric-DNUD7jbr.js","./spaces-CNd41sir.js","./api-r-_fEWsI.js","./domains-BDMd9S2d.js","./index-BxxgnmFX.js","./useAsync-Bkh8Rg6Z.js","./permission-ycsOOBwp.js","./actions-DaOidt88.js","./delete-confirm-cbt-tN11.js","./click-to-copy-D50kkiW4.js","./status-C32bwmXC.js","./VerifiedUser-aSWRZr_Y.js","./CardContent-C22npYBc.js","./Add-CQt7mq1G.js","./CallMerge-BYCLcH5E.js","./toLower-DJOalyNw.js","./use-mobile-IHqsUzt1.js","./util-CC0K7Xya.js","./is-path-prefix-equal-Cl2onSKX.js","./engine-BWGbIQAy.js","./OpenInNew-BdVhgoOc.js","./LoadingButton-C7IcO9Nb.js","./index-BDFC1sP1.js","./preference-BhfekBAB.js","./index-AKf23glP.js","./Done-yHCWLz6K.js","./collapse-UPIFGGD9.js","./edit.svg-BHG50OdM.js","./ArrowDropDown-aNeHE2A2.js","./ButtonGroup-9zvLC_k0.js","./getValidReactChildren-DDB1J2y7.js","./index-DnZwjPBr.js","./iframe-Dl-yNrp9.js","./ChevronRight-X_FMXVA4.js","./html-title-vsl-TT26.js","./Autocomplete-Bf1Ho3Hd.js","./ListSubheader-FJVGwx1O.js","./rotate-session-key-B90qT4kq.js","./visuallyHidden-Dan1xhjv.js","./chain-se1xvUDC.js","./Switch-CE03jZ_8.js","./index-BP0DWBRY.js","./index.esm-DkqB0mnE.js","./index-rrAKD-3O.js","./redux-DfszZyTl.js","./typeof-QjJsDpFa.js","./switch-control-Ce2o9ffJ.js","./index-8DgiLFWe.js","./FilterList-BOMn8eqm.js","./CSSTransition-dwX1-RMJ.js","./emotion-cache.browser.esm-B4ZmPeHk.js","./depsEqual-BaUhqVSn.js","./TableSearch-Bj41g7St.js","./Search-Dm2dt-Sr.js","./Clear-B-e33dNn.js","./MoreVert-bx--E19j.js","./index-W1Jg0zqO.js","./index-ZgkIHsf0.css","./use-mobile-BxUSznYk.js","./simple-select-BZu6cCw3.js","./actions-BBls_wa0.js","./useLocalStorage-DZYDHTFQ.js","./get-safe-url-CteWIr5a.js","./appearance-BOeNpo6Y.js","./config-navigation-CutTRHe-.js","./cloneDeep-Dqj81-8-.js","./_createAggregator-OKIbDBKF.js","./raf-schd.esm-yET3NUrL.js","./ListItemButton-E5H4lrRx.js","./client-Dj0WAiOq.js","./index-CC45e4UO.js","./KeyboardArrowDown-CdK82Qsb.js","./index-BvVI7Mxo.js","./shorten-label-BOfK6p4p.js","./Refresh-mYLoMEkT.js","./traffic-C17ygInL.js","./ChevronLeft-Bmmo6bzu.js","./index-DBii9-f-.js","./base-chart-D7y6qq9u.js","./index-CpuUG8Z1.js","./AdapterDayjs-DQepVz3x.js","./useThemeProps-Bs1lG48z.js","./audit-logs-Bdg8Eitt.js","./index-Cisz7h7X.js","./decode-DPztD6kB.js","./index-gnjjKJuC.css","./UnfoldMore-zrMTJNOp.js","./index-ClxIMfsM.js","./index-C-1MOEs6.js","./Google-KOeLJ7n-.js","./list-header-DAiEDwhs.js","./ToggleButtonGroup-BEjde42R.js","./lock.svg-CNAb9wZc.js","./index-BkGL3dW2.js","./ViewList-BbDrtZvr.js","./Verified-B-cFyGP0.js","./DeleteOutline-CIuy8JMu.js","./index-B2jTgxcq.js","./sdk-BZ4-wJ5p.js","./service-DjmXGMON.js","./table-icons-BYT0kQuz.js","./Edit-CLiO2h_l.js","./index-2UXtfcoT.js","./Link-DKb1MvxW.js","./item-BQYMoVUI.js","./Launch-cxvym2iP.js","./item-G0iZE90Q.css","./index-BIIfr0Cp.js","./url-join-3aXvW59g.js","./connect-to-Dz9eH_td.js","./index-DRYJ0xIl.js","./agreement-B9tSzjmL.js","./install-from-url-DOR8ZaEG.js","./without-wallet-B5UEEmrQ.js","./Stepper-B1wBWjZo.js","./toUpper-B5TzdczN.js","./log-1_m4xF_N.js","./download-Oh1d5P58.js","./runtime-D_DvOf5h.js","./memory-UJLIVuot.js","./index-DsOZQCxX.js"])))=>i.map(i=>d[i]);
2
+ import{n as Ue,q as He,bn as _t,r as y,aH as N,j as d,V as qe,M as Y,w as Qe,x as Tt,i as T,by as Ct,H as W,X as Ge,bm as Ke,B as jt,u as Pt,bz as At,bA as Dt,bB as Pe,bC as Ot,bD as Lt,Y as Ae,C as De,J as Bt,bE as Mt,T as le,K as Rt,bF as k,s as Nt}from"./index-C7egXf_h.js";import{T as Ft,u as Vt}from"./html-title-vsl-TT26.js";import{B as zt}from"./status-C32bwmXC.js";import{D as $t,B as Ut}from"./actions-BBls_wa0.js";import{u as Ht}from"./blocklet-C67aFvl7.js";import{p as qt}from"./index-eYZIsLRo.js";import{B as Qt,a as Gt,T as Kt}from"./team-CxcPF7A7.js";import{P as Wt}from"./permission-ycsOOBwp.js";import{B as Jt}from"./Breadcrumbs-CPilcW9u.js";import"./useLocalStorage-DZYDHTFQ.js";import"./MoreVert-bx--E19j.js";import"./url-evaluation-w8X_lgzG.js";import"./get-safe-url-CteWIr5a.js";import"./ButtonGroup-9zvLC_k0.js";import"./getValidReactChildren-DDB1J2y7.js";/**
3
3
  * (c) Iconify
4
4
  *
5
5
  * For the full copyright and license information, please view the license.txt or license.gpl.txt
@@ -9,7 +9,7 @@ import{n as Ue,q as He,bn as _t,r as y,aH as N,j as d,V as qe,M as Y,w as Qe,x a
9
9
  *
10
10
  * @license MIT
11
11
  * @version 3.1.1
12
- */const We=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...We,...Z}),pe=Object.freeze({...U,body:"",hidden:!1});function Xt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Oe(e,t){const n=Xt(e,t);for(const r in pe)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Yt(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Zt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Oe(r[c]||o[c],s)}return i(t),n.forEach(i),Oe(e,s)}function en(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Yt(e);for(const o in r){const s=r[o];s&&(t(o,Zt(e,o,s)),n.push(o))}return n}const F=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!J(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!J(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!J(c,n)?null:c}return null},J=(e,t)=>e?!!((e.provider===""||e.provider.match(F))&&(t&&e.prefix===""||e.prefix.match(F))&&e.name.match(F)):!1,tn={provider:"",aliases:{},not_found:{},...We};function ue(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ue(e,tn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(F)||typeof s.body!="string"||!ue(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(F)||typeof i!="string"||!n[i]&&!r[i]||!ue(s,pe))return null}return t}const ee=Object.create(null);function on(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=ee[e]||(ee[e]=Object.create(null));return n[t]||(n[t]=on(e,t))}function ke(e,t){return nn(t)?en(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function rn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ee)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(ee[o]||{})).forEach(i=>{const c=_(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let Ee=!1;function cn(e){return Ee}function H(e){const t=typeof e=="string"?B(e,!0,Ee):e;if(t){const n=_(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function an(e,t){const n=B(e,!0,Ee);if(!n)return!1;const r=_(n.provider,n.prefix);return rn(r,n.name,t)}function Je(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!J({provider:t,prefix:n,name:"a"}))return!1;const r=_(t,n);return!!ke(r,e)}function ln(e){return!!H(e)}function un(e){const t=H(e);return t?{...U,...t}:null}const Xe=Object.freeze({width:null,height:null}),Ye=Object.freeze({...Xe,...Z}),fn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,dn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function me(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(fn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=dn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const pn=e=>e==="unset"||e==="undefined"||e==="none";function oe(e,t){const n={...U,...e},r={...Ye,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const v=[],E=b.hFlip,D=b.vFlip;let I=b.rotate;E?D?I+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):D&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}I%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=me(p,l/a)):(u=i==="auto"?l:i,p=c===null?me(u,a/l):c==="auto"?a:c);const f={},h=(b,v)=>{pn(v)||(f[b]=v.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const mn=/\sid="(\S+)"/g,hn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let gn=0;function Ze(e,t=hn){const n=[];let r;for(;r=mn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(gn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const P={local:!0,session:!0},et={local:new Set,session:new Set};let _e=!1;function bn(e){_e=e}const Le="iconify2",$="iconify",tt=$+"-count",Be=$+"-version",nt=36e5,yn=168;function he(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Me(e,t){try{e.removeItem(t)}catch{}}function ge(e,t){return Te(e,tt,t.toString())}function be(e){return parseInt(he(e,tt))||0}let G=typeof window>"u"?{}:window;function ot(e){const t=e+"Storage";try{if(G&&G[t]&&typeof G[t].length=="number")return G[t]}catch{}P[e]=!1}function rt(e,t){const n=ot(e);if(!n)return;const r=he(n,Be);if(r!==Le){if(r){const c=be(n);for(let l=0;l<c;l++)Me(n,$+l.toString())}Te(n,Be,Le),ge(n,0);return}const o=Math.floor(Date.now()/nt)-yn,s=c=>{const l=$+c.toString(),a=he(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Me(n,l)}};let i=be(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ge(n,i)):et[e].add(c))}function st(){if(!_e){bn(!0);for(const e in P)rt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=_(r,o);if(!ke(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function it(e,t){switch(e){case"local":case"session":P[e]=t;break;case"all":for(const n in P)P[n]=t;break}}const ye=Object.create(null);function ct(e,t){ye[e]=t}function ve(e){return ye[e]||ye[""]}function Ce(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const re=Object.create(null),R=["https://api.simplesvg.com","https://api.unisvg.com"],X=[];for(;R.length>0;)R.length===1||Math.random()>.5?X.push(R.shift()):X.push(R.pop());re[""]=Ce({resources:["https://api.iconify.design"].concat(X)});function at(e,t){const n=Ce(t);return n===null?!1:(re[e]=n,!0)}function se(e){return re[e]}function vn(){return Object.keys(re)}const xn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let te=xn();function wn(e){te=e}function Sn(){return te}function In(e,t){const n=se(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function kn(e){return e===404}const En=(e,t,n)=>{const r=[],o=In(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function _n(e){if(typeof e=="string"){const t=se(e);if(t)return t.path}return"/"}const Tn=(e,t,n)=>{if(!te){n("abort",424);return}let r=_n(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;te(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(kn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Cn={prepare:En,send:Tn};function jn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=_(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function lt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||lt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let An=0;function Dn(e,t,n){const r=An++,o=lt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function On(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Ln={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function b(){p&&(clearTimeout(p),p=null)}function v(){l==="pending"&&(l="aborted"),b(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function D(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:v}}function I(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function w(m,S,j){const O=S!=="success";switch(f=f.filter(g=>g!==m),l){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=j,I();return}if(O){u=j,f.length||(i.length?M():I());return}if(b(),x(),!e.random){const g=e.resources.indexOf(m.resource);g!==-1&&g!==e.index&&(e.index=g)}l="completed",h.forEach(g=>{g(j)})}function M(){if(l!=="pending")return;b();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{b(),l==="pending"&&(x(),I())},e.timeout);return}I();return}const S={status:"pending",resource:m,callback:(j,O)=>{w(S,j,O)}};f.push(S),a++,p=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),D}function ut(e){const t={...Ln,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Bn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Re(){}const fe=Object.create(null);function Mn(e){if(!fe[e]){const t=se(e);if(!t)return;const n=ut(t),r={config:t,redundancy:n};fe[e]=r}return fe[e]}function ft(e,t,n){let r,o;if(typeof e=="string"){const s=ve(e);if(!s)return n(void 0,424),Re;o=s.send;const i=Mn(e);i&&(r=i.redundancy)}else{const s=Ce(e);if(s){r=ut(s);const i=e.resources?e.resources[0]:"",c=ve(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Re):r.query(t,o,n)().abort}function Rn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in P)rt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Nn(e,t){_e||st();function n(r){let o;if(!P[r]||!(o=ot(r)))return;const s=et[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ge(o,i+1))return;const c={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return Te(o,$+i.toString(),JSON.stringify(c))}t.lastModified&&!Rn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ne(){}function Fn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Vn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ve(n)))return;s.prepare(n,r,o).forEach(c=>{ft(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=ke(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Nn(e,l)}catch(a){console.error(a)}Fn(e)})})}))}const zn=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},je=(e,t)=>{const n=On(e,!0,cn()),r=jn(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Ne)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(_(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=_(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&Vn(l,o[a][u])}),t?Dn(t,r,s):Ne},$n=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}je([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function dt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Xe?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ie={...Ye,inline:!1},de="iconify",xe="iconify-inline",C="iconifyData"+Date.now();let A=[];function q(e){for(let t=0;t<A.length;t++){const n=A[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function pt(e,t=!1){let n=q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},A.push(n),n)}function Un(){if(document.documentElement)return pt(document.documentElement);A.push({node:()=>document.documentElement})}function Hn(e){A=A.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Q(){return A}function qn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let V=null;const Qn={childList:!0,subtree:!0,attributes:!0};function mt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,V&&V(e)}))}function Gn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[C]!==void 0){n.paused||mt(e);return}}}function ht(e,t){e.observer.instance.observe(t,Qn)}function ne(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Gn.bind(null,e)),ht(e,n),t.paused||mt(e))}function Fe(){Q().forEach(ne)}function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Kn(e){const t=V!==null;if(V!==e&&(V=e,t&&Q().forEach(gt)),t){Fe();return}qn(Fe)}function we(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Wn(e){if(e){const t=q(e);t&&we(t)}else we()}function Se(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){ne(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?ht(t,r):ne(t);else return}})}function Jn(e){if(e){const t=q(e);t&&Se(t)}else Se()}function bt(e,t=!1){const n=pt(e,t);return ne(n),n}function yt(e){const t=q(e);t&&(gt(t),Hn(e))}function Xn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ie)if(n[o]!==r[o])return!0;return!1}function Yn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Zn=/[\s,]+/;function eo(e,t){t.split(Zn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const to=["width","height"],no=["inline","hFlip","vFlip"];function oo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function ro(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&B(t,!0);if(!n)return null;const r={...ie,inline:e.classList&&e.classList.contains(xe)};to.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Yn(o));const s=e.getAttribute("data-flip");typeof s=="string"&&eo(r,s),no.forEach(c=>{const l="data-"+c,a=oo(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const so="svg."+de+", i."+de+", span."+de+", i."+xe+", span."+xe;function io(e){const t=[];return e.querySelectorAll(so).forEach(n=>{const r=n[C]||n.tagName.toLowerCase()!=="svg"?ro(n):null;r&&t.push({node:n,props:r})}),t}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let z;function co(){try{z=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{z=null}}function ao(e){return z===void 0&&co(),z?z.createHTML(e):e}function xt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function wt(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function St(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function It(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=oe(n,o),i=e[C],c=vt(Ze(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=ao(c);const l=r.childNodes[0],a=e.attributes;for(let b=0;b<a.length;b++){const v=a.item(b),E=v.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,v.value)}const u=xt(t.icon),p=wt(l,u,new Set(i&&i.addedClasses),e),f=St(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[C]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function lo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function uo(e){return"data:image/svg+xml,"+lo(e)}function fo(e){return'url("'+uo(e)+'")'}const po={display:"inline-block"},Ie={"background-color":"currentColor"},kt={"background-color":"transparent"},Ve={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ze={"-webkit-mask":Ie,mask:Ie,background:kt};for(const e in ze){const t=ze[e];for(const n in Ve)t[e+"-"+n]=Ve[n]}function $e(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function mo(e,t,n,r){const o=t.customisations,s=oe(n,o),i=s.attributes,c=e[C],l=vt(s.body,{...i,width:n.width+"",height:n.height+""}),a=xt(t.icon),u=wt(e,a,new Set(c&&c.addedClasses)),f={"--svg":fo(l),width:$e(i.width),height:$e(i.height),...po,...r?Ie:kt};o.inline&&(f["vertical-align"]="-0.125em");const h=St(e,f,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[C]=b,e}let K=!1;function ho(){K||(K=!0,setTimeout(()=>{K&&(K=!1,L())}))}function L(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=_(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!zn(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Q()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,we(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){mo(a,u,{...U,...p},h);return}}It(a,u,p)}io(s).forEach(({node:a,props:u})=>{const p=a[C];if(!p){const{status:h,icon:b}=r(u.icon,!0);if(b){l(a,u,b);return}i=i||h==="loading",a[C]={...u,status:h};return}let f;if(Xn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?yt(s):t&&i?bt(s,!0):c&&o.observer&&Se(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];je(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),ho)}}}function go(e){const t=q(e);t?L(t):L({node:e,temporary:!0},!0)}function Et(e,t,n=!1){const r=H(e);if(!r)return null;const o=B(e),s=dt(ie,t||{}),i=It(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function bo(){return"3.1.1"}function yo(e,t){return Et(e,t,!1)}function vo(e,t){return Et(e,t,!0)}function xo(e,t){const n=H(e);if(!n)return null;const r=dt(ie,t||{});return oe(n,r)}function wo(e){e?go(e):L()}if(typeof document<"u"&&typeof window<"u"){Un();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Je(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Kn(L),L()})}function So(e,t){it(e,t!==!1)}function Io(e){it(e,!0)}ct("",Cn);if(typeof document<"u"&&typeof window<"u"){st();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;at(n,o)||console.error(r)}catch{console.error(r)}}}}const ko={getAPIConfig:se,setAPIModule:ct,sendAPIQuery:ft,setFetch:wn,getFetch:Sn,listAPIProviders:vn},Eo={_api:ko,addAPIProvider:at,loadIcons:je,loadIcon:$n,iconExists:ln,getIcon:un,listIcons:sn,addIcon:an,addCollection:Je,replaceIDs:Ze,calculateSize:me,buildIcon:oe,getVersion:bo,renderSVG:yo,renderHTML:vo,renderIcon:xo,scan:wo,observe:bt,stopObserving:yt,pauseObserver:Wn,resumeObserver:Jn,enableCache:So,disableCache:Io};try{self.Iconify===void 0&&(self.Iconify=Eo)}catch{}const _o=e=>{const t={};let n=null;return T.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=T.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},To=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Co(){const{t:e}=Ue(),{api:t}=He(),{blocklet:n}=Ht(),{inService:r}=_t(),[o,s]=y.useState(!1),[i,c]=y.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,a=()=>{try{if(T.isBlockletRunning(n)){W.error(e("blocklet.migrate.tip.running"));return}const f=_o(n);if(f){W.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){W.error(Ge(f))}},u=()=>{const f=To(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Qe,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ct(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const jo=y.lazy(()=>k(()=>import("./overview-aAlDPd4Q.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),Po=y.lazy(()=>k(()=>import("./domains-BRe4M7bx.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),Ao=y.lazy(()=>k(()=>import("./index-CwdwMEyK.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,42,43,44,45,46,47,19,5,48,49,50,51,10,22,11,12,9,52,4,6,53,54,55,17,56,57,58,59,26,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,25]),import.meta.url)),Do=y.lazy(()=>k(()=>import("./appearance-BLnd4o8Y.js"),__vite__mapDeps([76,1,2,10,71]),import.meta.url)),Oo=y.lazy(()=>k(()=>import("./config-navigation-B6vV0qs8.js"),__vite__mapDeps([77,1,2,7,78,37,79,64,10,56,57,58,80,11,12,73,74,68,75,42,43,19,55,72,47,67,41,15,48,49,81,29,82,83,84,66,26,33,45,34]),import.meta.url)),Lo=y.lazy(()=>k(()=>import("./index-CjedGlyf.js"),__vite__mapDeps([85,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,73,74,12,75,42,43,19,54,47,55,39,10,53,86,9,87,88,45,89,46,90,91,92,93,94,51,71]),import.meta.url)),Bo=y.lazy(()=>k(()=>import("./audit-logs-D__bx07h.js"),__vite__mapDeps([95,17,1,2,65,66,67,74,96,97,98,99,86,11,10,12]),import.meta.url)),Mo=y.lazy(()=>k(()=>import("./index-T209NFxy.js").then(e=>e.i),__vite__mapDeps([100,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,47,11,10,12,71,101,42,43,19,102,78,26,40,103,52,104,105]),import.meta.url)),Ro=y.lazy(()=>k(()=>import("./index-TglI0woB.js").then(e=>e.i),__vite__mapDeps([106,1,2,26,107,60,61,62,63,56,57,58,64,17,65,66,67,68,29,82,12,101,42,43,11,10,5,102,78,48,49,99,19,22,93,94,51,47,9,108,109,6,110,111,83,71,20,86]),import.meta.url)),No=y.lazy(()=>k(()=>import("./service-DLCTpVab.js"),__vite__mapDeps([112,1,2,113,61,62,63,90,58,80,57,94,47,26,12,67,114,46,89,66,41]),import.meta.url)),Fo=y.lazy(()=>k(()=>import("./index-CB7PBjDX.js"),__vite__mapDeps([115,1,2,17,73,74,68,12,75,42,43,19,59,53,10,114,113,61,62,63,90,58,80,57,94,47,26,67,46,89,66,41,36,7,37,38,39,40,44,45,22,101,116,117,83,84,48,49,108,24,118,109,21,119,120,121,32,122,8,14,15,33,123,3,124,96,97,98,102,78,125,23,126,9,81,127,30,31,71,6,105,20,128,11]),import.meta.url)),Vo=y.lazy(()=>k(()=>import("./log-6_0GK9Sf.js"),__vite__mapDeps([129,1,2,74,130,42,43,49]),import.meta.url)),zo=y.lazy(()=>k(()=>import("./runtime-De89eo0q.js"),__vite__mapDeps([131,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,10,123,132,91,92,23,104,43]),import.meta.url)),$o=y.lazy(()=>k(()=>import("./traffic-DQX3XpFH.js").then(e=>e.t),__vite__mapDeps([88,1,2,45,89,46,90,58,91,92,93,94,62,51]),import.meta.url)),Uo=y.lazy(()=>k(()=>import("./index-DWPS9ieq.js"),__vite__mapDeps([133,1,2,47,10,71,122,101,42,43,8,14,15,109,33,123,3,9,92,60,61,62,63,56,57,58,64,17,65,66,67,68,73,74,12,75,19,59,53,103]),import.meta.url)),Ho=({children:e})=>e;function qo(){const e=jt(),{tab:t="overview"}=Ke(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Gt(),{refresh:l}=Pt(),{t:a}=Ue(),{session:u}=He(),p=At(()=>u.user?.role&&Dt.includes(u.user.role),[u]),f=y.useCallback(()=>d.jsx(Bo,{scope:n}),[n]),h=y.useCallback(()=>p?d.jsx(Lo,{blocklet:r}):d.jsx(qt,{status:403}),[r,p]),b=r?.environments.find(g=>g.key==="BLOCKLET_APP_URL")?.value||window.location.origin,v=g=>Lt(g,b),E=g=>{e(`/blocklets/${n}/${g}`)},D=g=>{g&&i(g),c()},I=!r||Pe(r.status)?[]:T.getAppMissingConfigs(r);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Ot,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!I.length,children:a("common.components")}),value:"components"}];if(o)x=d.jsxs(d.Fragment,{children:[d.jsx(qe,{severity:"error",children:Ge(o)}),d.jsx(Qe,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const g={overview:d.jsx(jo,{}),domains:d.jsx(Po,{}),configuration:Ao,appearance:Do,navigation:Oo,services:No,members:d.jsx(Ro,{type:"blocklet",createPassportSvg:v}),passports:Mo,components:Fo,"audit-logs":f,notifications:h,logs:Vo,runtime:d.jsx(zo,{}),traffic:d.jsx($o,{client:s,did:n}),didSpaces:d.jsx(Uo,{})};t==="configuration"&&Pe(r.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"}),w.push({label:a("common.auditLogs"),value:"audit-logs"}),p&&w.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===N.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),T.getBlockletServices(r).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ae=g[t]||g.overview;x=d.jsxs($t,{type:"components",children:[!T.isExternalBlocklet(r)&&d.jsx(Ft,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(y.Suspense,{fallback:d.jsx(Ae,{relative:"parent",children:d.jsx(De,{})}),children:y.isValidElement(ae)?ae:d.jsx(ae,{blocklet:r,onUpdate:D,createPassportSvg:v})})})]})}else x=d.jsx(Ae,{relative:"parent",children:d.jsx(De,{})});const M=()=>{},m=({action:g,error:ce})=>{if(ce){W.error(ce.message);return}g==="remove"?(l(),e("/blocklets")):c()},S=w.find(g=>g.value===t),j=r?Kt:Ho,O=Vt(S,r?.meta?.title||a("common.blocklets"));return d.jsxs(j,{teamDid:n,children:[O,d.jsxs(Qo,{children:[d.jsxs(Jt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Bt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Mt,{to:`/blocklets/${n}/overview`,style:g=>g?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(le,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),d.jsxs(le,{component:"div",className:"page-header",children:[d.jsxs(le,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Rt,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:T.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(zt,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Wt,{permission:"mutate_blocklets",children:!!r&&!T.isExternalBlocklet(r)&&d.jsx(Ut,{className:"page-actions",blocklet:r,onStart:M,onComplete:m,variant:"group"})})]}),d.jsx(Co,{}),x]})]})}function ar(){const{did:e}=Ke();return e?d.jsx(Qt,{did:e,children:d.jsx(qo,{})}):null}const Qo=Nt.main`
12
+ */const We=Object.freeze({left:0,top:0,width:16,height:16}),Z=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...We,...Z}),pe=Object.freeze({...U,body:"",hidden:!1});function Xt(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function Oe(e,t){const n=Xt(e,t);for(const r in pe)r in Z?r in e&&!(r in n)&&(n[r]=Z[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Yt(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const c=r[i]&&r[i].parent,l=c&&s(c);l&&(o[i]=[c].concat(l))}return o[i]}return Object.keys(n).concat(Object.keys(r)).forEach(s),o}function Zt(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(c){s=Oe(r[c]||o[c],s)}return i(t),n.forEach(i),Oe(e,s)}function en(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=Yt(e);for(const o in r){const s=r[o];s&&(t(o,Zt(e,o,s)),n.push(o))}return n}const F=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),l=o.pop(),a={provider:o.length>0?o[0]:r,prefix:l,name:c};return t&&!J(a)?null:a}const s=o[0],i=s.split("-");if(i.length>1){const c={provider:r,prefix:i.shift(),name:i.join("-")};return t&&!J(c)?null:c}if(n&&r===""){const c={provider:r,prefix:"",name:s};return t&&!J(c,n)?null:c}return null},J=(e,t)=>e?!!((e.provider===""||e.provider.match(F))&&(t&&e.prefix===""||e.prefix.match(F))&&e.name.match(F)):!1,tn={provider:"",aliases:{},not_found:{},...We};function ue(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function nn(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ue(e,tn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(F)||typeof s.body!="string"||!ue(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(F)||typeof i!="string"||!n[i]&&!r[i]||!ue(s,pe))return null}return t}const ee=Object.create(null);function on(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function _(e,t){const n=ee[e]||(ee[e]=Object.create(null));return n[t]||(n[t]=on(e,t))}function ke(e,t){return nn(t)?en(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function rn(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(ee)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(ee[o]||{})).forEach(i=>{const c=_(o,i);n=n.concat(Object.keys(c.icons).map(l=>(o!==""?"@"+o+":":"")+i+":"+l))})}),n}let Ee=!1;function cn(e){return Ee}function H(e){const t=typeof e=="string"?B(e,!0,Ee):e;if(t){const n=_(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function an(e,t){const n=B(e,!0,Ee);if(!n)return!1;const r=_(n.provider,n.prefix);return rn(r,n.name,t)}function Je(e,t){if(typeof e!="object")return!1;typeof t!="string"&&(t=e.provider||"");const n=e.prefix;if(!J({provider:t,prefix:n,name:"a"}))return!1;const r=_(t,n);return!!ke(r,e)}function ln(e){return!!H(e)}function un(e){const t=H(e);return t?{...U,...t}:null}const Xe=Object.freeze({width:null,height:null}),Ye=Object.freeze({...Xe,...Z}),fn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,dn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function me(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(fn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=dn.test(s);for(;;){if(i){const c=parseFloat(s);isNaN(c)?o.push(s):o.push(Math.ceil(c*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const pn=e=>e==="unset"||e==="undefined"||e==="none";function oe(e,t){const n={...U,...e},r={...Ye,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(b=>{const v=[],E=b.hFlip,D=b.vFlip;let I=b.rotate;E?D?I+=2:(v.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),v.push("scale(-1 1)"),o.top=o.left=0):D&&(v.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),v.push("scale(1 -1)"),o.top=o.left=0);let x;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:x=o.height/2+o.top,v.unshift("rotate(90 "+x.toString()+" "+x.toString()+")");break;case 2:v.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:x=o.width/2+o.left,v.unshift("rotate(-90 "+x.toString()+" "+x.toString()+")");break}I%2===1&&(o.left!==o.top&&(x=o.left,o.left=o.top,o.top=x),o.width!==o.height&&(x=o.width,o.width=o.height,o.height=x)),v.length&&(s='<g transform="'+v.join(" ")+'">'+s+"</g>")});const i=r.width,c=r.height,l=o.width,a=o.height;let u,p;i===null?(p=c===null?"1em":c==="auto"?a:c,u=me(p,l/a)):(u=i==="auto"?l:i,p=c===null?me(u,a/l):c==="auto"?a:c);const f={},h=(b,v)=>{pn(v)||(f[b]=v.toString())};return h("width",u),h("height",p),f.viewBox=o.left.toString()+" "+o.top.toString()+" "+l.toString()+" "+a.toString(),{attributes:f,body:s}}const mn=/\sid="(\S+)"/g,hn="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let gn=0;function Ze(e,t=hn){const n=[];let r;for(;r=mn.exec(e);)n.push(r[1]);if(!n.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(s=>{const i=typeof t=="function"?t(s):t+(gn++).toString(),c=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+i+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const P={local:!0,session:!0},et={local:new Set,session:new Set};let _e=!1;function bn(e){_e=e}const Le="iconify2",$="iconify",tt=$+"-count",Be=$+"-version",nt=36e5,yn=168;function he(e,t){try{return e.getItem(t)}catch{}}function Te(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Me(e,t){try{e.removeItem(t)}catch{}}function ge(e,t){return Te(e,tt,t.toString())}function be(e){return parseInt(he(e,tt))||0}let G=typeof window>"u"?{}:window;function ot(e){const t=e+"Storage";try{if(G&&G[t]&&typeof G[t].length=="number")return G[t]}catch{}P[e]=!1}function rt(e,t){const n=ot(e);if(!n)return;const r=he(n,Be);if(r!==Le){if(r){const c=be(n);for(let l=0;l<c;l++)Me(n,$+l.toString())}Te(n,Be,Le),ge(n,0);return}const o=Math.floor(Date.now()/nt)-yn,s=c=>{const l=$+c.toString(),a=he(n,l);if(typeof a=="string"){try{const u=JSON.parse(a);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}Me(n,l)}};let i=be(n);for(let c=i-1;c>=0;c--)s(c)||(c===i-1?(i--,ge(n,i)):et[e].add(c))}function st(){if(!_e){bn(!0);for(const e in P)rt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=_(r,o);if(!ke(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function it(e,t){switch(e){case"local":case"session":P[e]=t;break;case"all":for(const n in P)P[n]=t;break}}const ye=Object.create(null);function ct(e,t){ye[e]=t}function ve(e){return ye[e]||ye[""]}function Ce(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const re=Object.create(null),R=["https://api.simplesvg.com","https://api.unisvg.com"],X=[];for(;R.length>0;)R.length===1||Math.random()>.5?X.push(R.shift()):X.push(R.pop());re[""]=Ce({resources:["https://api.iconify.design"].concat(X)});function at(e,t){const n=Ce(t);return n===null?!1:(re[e]=n,!0)}function se(e){return re[e]}function vn(){return Object.keys(re)}const xn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let te=xn();function wn(e){te=e}function Sn(){return te}function In(e,t){const n=se(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function kn(e){return e===404}const En=(e,t,n)=>{const r=[],o=In(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},c=0;return n.forEach((l,a)=>{c+=l.length+1,c>=o&&a>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},c=l.length),i.icons.push(l)}),r.push(i),r};function _n(e){if(typeof e=="string"){const t=se(e);if(t)return t.path}return"/"}const Tn=(e,t,n)=>{if(!te){n("abort",424);return}let r=_n(t.provider);switch(t.type){case"icons":{const s=t.prefix,c=t.icons.join(","),l=new URLSearchParams({icons:c});r+=s+".json?"+l.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;te(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(kn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},Cn={prepare:En,send:Tn};function jn(e){const t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,c=o.name,l=n[s]||(n[s]=Object.create(null)),a=l[i]||(l[i]=_(s,i));let u;c in a.icons?u=t.loaded:i===""||a.missing.has(c)?u=t.missing:u=t.pending;const p={provider:s,prefix:i,name:c};u.push(p)}),t}function lt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.forEach(s=>{const i=s.icons,c=i.pending.length;i.pending=i.pending.filter(l=>{if(l.prefix!==o)return!0;const a=l.name;if(e.icons[a])i.loaded.push({provider:r,prefix:o,name:a});else if(e.missing.has(a))i.missing.push({provider:r,prefix:o,name:a});else return n=!0,!0;return!1}),i.pending.length!==c&&(n||lt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let An=0;function Dn(e,t,n){const r=An++,o=lt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}function On(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Ln={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Bn(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let m=e.resources.slice(0);for(i=[];m.length>1;){const S=Math.floor(Math.random()*m.length);i.push(m[S]),m=m.slice(0,S).concat(m.slice(S+1))}i=i.concat(m)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const c=Date.now();let l="pending",a=0,u,p=null,f=[],h=[];typeof r=="function"&&h.push(r);function b(){p&&(clearTimeout(p),p=null)}function v(){l==="pending"&&(l="aborted"),b(),f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function E(m,S){S&&(h=[]),typeof m=="function"&&h.push(m)}function D(){return{startTime:c,payload:t,status:l,queriesSent:a,queriesPending:f.length,subscribe:E,abort:v}}function I(){l="failed",h.forEach(m=>{m(void 0,u)})}function x(){f.forEach(m=>{m.status==="pending"&&(m.status="aborted")}),f=[]}function w(m,S,j){const O=S!=="success";switch(f=f.filter(g=>g!==m),l){case"pending":break;case"failed":if(O||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=j,I();return}if(O){u=j,f.length||(i.length?M():I());return}if(b(),x(),!e.random){const g=e.resources.indexOf(m.resource);g!==-1&&g!==e.index&&(e.index=g)}l="completed",h.forEach(g=>{g(j)})}function M(){if(l!=="pending")return;b();const m=i.shift();if(m===void 0){if(f.length){p=setTimeout(()=>{b(),l==="pending"&&(x(),I())},e.timeout);return}I();return}const S={status:"pending",resource:m,callback:(j,O)=>{w(S,j,O)}};f.push(S),a++,p=setTimeout(M,e.rotate),n(m,t,S.callback)}return setTimeout(M),D}function ut(e){const t={...Ln,...e};let n=[];function r(){n=n.filter(c=>c().status==="pending")}function o(c,l,a){const u=Bn(t,c,l,(p,f)=>{r(),a&&a(p,f)});return n.push(u),u}function s(c){return n.find(l=>c(l))||null}return{query:o,find:s,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:r}}function Re(){}const fe=Object.create(null);function Mn(e){if(!fe[e]){const t=se(e);if(!t)return;const n=ut(t),r={config:t,redundancy:n};fe[e]=r}return fe[e]}function ft(e,t,n){let r,o;if(typeof e=="string"){const s=ve(e);if(!s)return n(void 0,424),Re;o=s.send;const i=Mn(e);i&&(r=i.redundancy)}else{const s=Ce(e);if(s){r=ut(s);const i=e.resources?e.resources[0]:"",c=ve(i);c&&(o=c.send)}}return!r||!o?(n(void 0,424),Re):r.query(t,o,n)().abort}function Rn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in P)rt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function Nn(e,t){_e||st();function n(r){let o;if(!P[r]||!(o=ot(r)))return;const s=et[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ge(o,i+1))return;const c={cached:Math.floor(Date.now()/nt),provider:e.provider,data:t};return Te(o,$+i.toString(),JSON.stringify(c))}t.lastModified&&!Rn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Ne(){}function Fn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Vn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ve(n)))return;s.prepare(n,r,o).forEach(c=>{ft(n,c,l=>{if(typeof l!="object")c.icons.forEach(a=>{e.missing.add(a)});else try{const a=ke(e,l);if(!a.length)return;const u=e.pendingIcons;u&&a.forEach(p=>{u.delete(p)}),Nn(e,l)}catch(a){console.error(a)}Fn(e)})})}))}const zn=e=>{const n=_(e.provider,e.prefix).pendingIcons;return!!(n&&n.has(e.name))},je=(e,t)=>{const n=On(e,!0,cn()),r=jn(n);if(!r.pending.length){let l=!0;return t&&setTimeout(()=>{l&&t(r.loaded,r.missing,r.pending,Ne)}),()=>{l=!1}}const o=Object.create(null),s=[];let i,c;return r.pending.forEach(l=>{const{provider:a,prefix:u}=l;if(u===c&&a===i)return;i=a,c=u,s.push(_(a,u));const p=o[a]||(o[a]=Object.create(null));p[u]||(p[u]=[])}),r.pending.forEach(l=>{const{provider:a,prefix:u,name:p}=l,f=_(a,u),h=f.pendingIcons||(f.pendingIcons=new Set);h.has(p)||(h.add(p),o[a][u].push(p))}),s.forEach(l=>{const{provider:a,prefix:u}=l;o[a][u].length&&Vn(l,o[a][u])}),t?Dn(t,r,s):Ne},$n=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}je([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function dt(e,t){const n={...e};for(const r in t){const o=t[r],s=typeof o;r in Xe?(o===null||o&&(s==="string"||s==="number"))&&(n[r]=o):s===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const ie={...Ye,inline:!1},de="iconify",xe="iconify-inline",C="iconifyData"+Date.now();let A=[];function q(e){for(let t=0;t<A.length;t++){const n=A[t];if((typeof n.node=="function"?n.node():n.node)===e)return n}}function pt(e,t=!1){let n=q(e);return n?(n.temporary&&(n.temporary=t),n):(n={node:e,temporary:t},A.push(n),n)}function Un(){if(document.documentElement)return pt(document.documentElement);A.push({node:()=>document.documentElement})}function Hn(e){A=A.filter(t=>e!==t&&e!==(typeof t.node=="function"?t.node():t.node))}function Q(){return A}function qn(e){const t=document;t.readyState&&t.readyState!=="loading"?e():t.addEventListener("DOMContentLoaded",e)}let V=null;const Qn={childList:!0,subtree:!0,attributes:!0};function mt(e){if(!e.observer)return;const t=e.observer;t.pendingScan||(t.pendingScan=setTimeout(()=>{delete t.pendingScan,V&&V(e)}))}function Gn(e,t){if(!e.observer)return;const n=e.observer;if(!n.pendingScan)for(let r=0;r<t.length;r++){const o=t[r];if(o.addedNodes&&o.addedNodes.length>0||o.type==="attributes"&&o.target[C]!==void 0){n.paused||mt(e);return}}}function ht(e,t){e.observer.instance.observe(t,Qn)}function ne(e){let t=e.observer;if(t&&t.instance)return;const n=typeof e.node=="function"?e.node():e.node;!n||!window||(t||(t={paused:0},e.observer=t),t.instance=new window.MutationObserver(Gn.bind(null,e)),ht(e,n),t.paused||mt(e))}function Fe(){Q().forEach(ne)}function gt(e){if(!e.observer)return;const t=e.observer;t.pendingScan&&(clearTimeout(t.pendingScan),delete t.pendingScan),t.instance&&(t.instance.disconnect(),delete t.instance)}function Kn(e){const t=V!==null;if(V!==e&&(V=e,t&&Q().forEach(gt)),t){Fe();return}qn(Fe)}function we(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){t.observer={paused:1};return}const n=t.observer;if(n.paused++,n.paused>1||!n.instance)return;n.instance.disconnect()})}function Wn(e){if(e){const t=q(e);t&&we(t)}else we()}function Se(e){(e?[e]:Q()).forEach(t=>{if(!t.observer){ne(t);return}const n=t.observer;if(n.paused&&(n.paused--,!n.paused)){const r=typeof t.node=="function"?t.node():t.node;if(r)n.instance?ht(t,r):ne(t);else return}})}function Jn(e){if(e){const t=q(e);t&&Se(t)}else Se()}function bt(e,t=!1){const n=pt(e,t);return ne(n),n}function yt(e){const t=q(e);t&&(gt(t),Hn(e))}function Xn(e,t){if(e.name!==t.name||e.mode!==t.mode)return!0;const n=e.customisations,r=t.customisations;for(const o in ie)if(n[o]!==r[o])return!0;return!1}function Yn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const Zn=/[\s,]+/;function eo(e,t){t.split(Zn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const to=["width","height"],no=["inline","hFlip","vFlip"];function oo(e,t){return e===t||e==="true"?!0:e===""||e==="false"?!1:null}function ro(e){const t=e.getAttribute("data-icon"),n=typeof t=="string"&&B(t,!0);if(!n)return null;const r={...ie,inline:e.classList&&e.classList.contains(xe)};to.forEach(c=>{const l=e.getAttribute("data-"+c);l&&(r[c]=l)});const o=e.getAttribute("data-rotate");typeof o=="string"&&(r.rotate=Yn(o));const s=e.getAttribute("data-flip");typeof s=="string"&&eo(r,s),no.forEach(c=>{const l="data-"+c,a=oo(e.getAttribute(l),l);typeof a=="boolean"&&(r[c]=a)});const i=e.getAttribute("data-mode");return{name:t,icon:n,customisations:r,mode:i}}const so="svg."+de+", i."+de+", span."+de+", i."+xe+", span."+xe;function io(e){const t=[];return e.querySelectorAll(so).forEach(n=>{const r=n[C]||n.tagName.toLowerCase()!=="svg"?ro(n):null;r&&t.push({node:n,props:r})}),t}function vt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}let z;function co(){try{z=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{z=null}}function ao(e){return z===void 0&&co(),z?z.createHTML(e):e}function xt(e){const t=new Set(["iconify"]);return["provider","prefix"].forEach(n=>{e[n]&&t.add("iconify--"+e[n])}),t}function wt(e,t,n,r){const o=e.classList;if(r){const i=r.classList;Array.from(i).forEach(c=>{o.add(c)})}const s=[];return t.forEach(i=>{o.contains(i)?n.has(i)&&s.push(i):(o.add(i),s.push(i))}),n.forEach(i=>{t.has(i)||o.remove(i)}),s}function St(e,t,n){const r=e.style;(n||[]).forEach(s=>{r.removeProperty(s)});const o=[];for(const s in t)r.getPropertyValue(s)||(o.push(s),r.setProperty(s,t[s]));return o}function It(e,t,n){let r;try{r=document.createElement("span")}catch{return e}const o=t.customisations,s=oe(n,o),i=e[C],c=vt(Ze(s.body),{"aria-hidden":"true",role:"img",...s.attributes});r.innerHTML=ao(c);const l=r.childNodes[0],a=e.attributes;for(let b=0;b<a.length;b++){const v=a.item(b),E=v.name;E!=="class"&&!l.hasAttribute(E)&&l.setAttribute(E,v.value)}const u=xt(t.icon),p=wt(l,u,new Set(i&&i.addedClasses),e),f=St(l,o.inline?{"vertical-align":"-0.125em"}:{},i&&i.addedStyles),h={...t,status:"loaded",addedClasses:p,addedStyles:f};return l[C]=h,e.parentNode&&e.parentNode.replaceChild(l,e),l}function lo(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function uo(e){return"data:image/svg+xml,"+lo(e)}function fo(e){return'url("'+uo(e)+'")'}const po={display:"inline-block"},Ie={"background-color":"currentColor"},kt={"background-color":"transparent"},Ve={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},ze={"-webkit-mask":Ie,mask:Ie,background:kt};for(const e in ze){const t=ze[e];for(const n in Ve)t[e+"-"+n]=Ve[n]}function $e(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}function mo(e,t,n,r){const o=t.customisations,s=oe(n,o),i=s.attributes,c=e[C],l=vt(s.body,{...i,width:n.width+"",height:n.height+""}),a=xt(t.icon),u=wt(e,a,new Set(c&&c.addedClasses)),f={"--svg":fo(l),width:$e(i.width),height:$e(i.height),...po,...r?Ie:kt};o.inline&&(f["vertical-align"]="-0.125em");const h=St(e,f,c&&c.addedStyles),b={...t,status:"loaded",addedClasses:u,addedStyles:h};return e[C]=b,e}let K=!1;function ho(){K||(K=!0,setTimeout(()=>{K&&(K=!1,L())}))}function L(e,t=!1){const n=Object.create(null);function r(o,s){const{provider:i,prefix:c,name:l}=o,a=_(i,c),u=a.icons[l];if(u)return{status:"loaded",icon:u};if(a.missing.has(l))return{status:"missing"};if(s&&!zn(o)){const p=n[i]||(n[i]=Object.create(null));(p[c]||(p[c]=new Set)).add(l)}return{status:"loading"}}(e?[e]:Q()).forEach(o=>{const s=typeof o.node=="function"?o.node():o.node;if(!s||!s.querySelectorAll)return;let i=!1,c=!1;function l(a,u,p){if(c||(c=!0,we(o)),a.tagName.toUpperCase()!=="SVG"){const f=u.mode,h=f==="mask"||(f==="bg"?!1:f==="style"?p.body.indexOf("currentColor")!==-1:null);if(typeof h=="boolean"){mo(a,u,{...U,...p},h);return}}It(a,u,p)}io(s).forEach(({node:a,props:u})=>{const p=a[C];if(!p){const{status:h,icon:b}=r(u.icon,!0);if(b){l(a,u,b);return}i=i||h==="loading",a[C]={...u,status:h};return}let f;if(Xn(p,u)){if(f=r(u.icon,p.name!==u.name),!f.icon){i=i||f.status==="loading",Object.assign(p,{...u,status:f.status});return}}else{if(p.status!=="loading")return;if(f=r(u.icon,!1),!f.icon){p.status=f.status;return}}l(a,u,f.icon)}),o.temporary&&!i?yt(s):t&&i?bt(s,!0):c&&o.observer&&Se(o)});for(const o in n){const s=n[o];for(const i in s){const c=s[i];je(Array.from(c).map(l=>({provider:o,prefix:i,name:l})),ho)}}}function go(e){const t=q(e);t?L(t):L({node:e,temporary:!0},!0)}function Et(e,t,n=!1){const r=H(e);if(!r)return null;const o=B(e),s=dt(ie,t||{}),i=It(document.createElement("span"),{name:e,icon:o,customisations:s},r);return n?i.outerHTML:i}function bo(){return"3.1.1"}function yo(e,t){return Et(e,t,!1)}function vo(e,t){return Et(e,t,!0)}function xo(e,t){const n=H(e);if(!n)return null;const r=dt(ie,t||{});return oe(n,r)}function wo(e){e?go(e):L()}if(typeof document<"u"&&typeof window<"u"){Un();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Je(r))&&console.error(n)}catch{console.error(n)}})}setTimeout(()=>{Kn(L),L()})}function So(e,t){it(e,t!==!1)}function Io(e){it(e,!0)}ct("",Cn);if(typeof document<"u"&&typeof window<"u"){st();const e=window;if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const n in t){const r="IconifyProviders["+n+"] is invalid.";try{const o=t[n];if(typeof o!="object"||!o||o.resources===void 0)continue;at(n,o)||console.error(r)}catch{console.error(r)}}}}const ko={getAPIConfig:se,setAPIModule:ct,sendAPIQuery:ft,setFetch:wn,getFetch:Sn,listAPIProviders:vn},Eo={_api:ko,addAPIProvider:at,loadIcons:je,loadIcon:$n,iconExists:ln,getIcon:un,listIcons:sn,addIcon:an,addCollection:Je,replaceIDs:Ze,calculateSize:me,buildIcon:oe,getVersion:bo,renderSVG:yo,renderHTML:vo,renderIcon:xo,scan:wo,observe:bt,stopObserving:yt,pauseObserver:Wn,resumeObserver:Jn,enableCache:So,disableCache:Io};try{self.Iconify===void 0&&(self.Iconify=Eo)}catch{}const _o=e=>{const t={};let n=null;return T.forEachBlockletSync(e,r=>{t[r.meta.bundleDid]?n=T.getDisplayName(r,!0):r.meta.bundleDid&&(t[r.meta.bundleDid]=!0)}),n},To=(e,t,n)=>{const{hostname:r,href:o}=e;if(!t)return o;if(n){const i=/\d+[-.]\d+[-.]\d+[-.]\d+/.exec(r);if(!i)return o;const c=i[0],a=((t.site?.domainAliases||[]).map(u=>u.value).filter(Boolean).find(u=>u.endsWith(N.DEFAULT_DID_DOMAIN))||"").replace(`.${N.DEFAULT_DID_DOMAIN}`,"");return a?o.replace(r,`${a}-${c}.${N.DEFAULT_IP_DOMAIN_SUFFIX}`):o}return o.replace(t.meta.bundleDid,t.appPid)};function Co(){const{t:e}=Ue(),{api:t}=He(),{blocklet:n}=Ht(),{inService:r}=_t(),[o,s]=y.useState(!1),[i,c]=y.useState(5),l=n&&n.structVersion!==N.APP_STRUCT_VERSION,a=()=>{try{if(T.isBlockletRunning(n)){W.error(e("blocklet.migrate.tip.running"));return}const f=_o(n);if(f){W.error(e("blocklet.migrate.tip.duplicate",{name:f}));return}s(!0)}catch(f){W.error(Ge(f))}},u=()=>{const f=To(window.location,n,r);setTimeout(()=>{window.location.href=f},5e3),c(5),setInterval(()=>{c(h=>h-1)},1e3)},p=()=>s(!1);return[l&&d.jsxs(qe,{severity:"warning",style:{margin:"12px 0"},children:[d.jsxs(Y,{sx:{display:"flex",alignItems:"center"},children:[d.jsx(Qe,{variant:"contained",size:"small",color:"primary",onClick:()=>a(),style:{marginRight:8},children:e("blocklet.migrate.intro.l1")}),d.jsx("span",{children:e("blocklet.migrate.intro.l2")})]}),["l3","l4","l5","l6"].map(f=>d.jsx(Y,{sx:{display:"flex",alignItems:"center"},children:e(`blocklet.migrate.intro.${f}`)},f))]},"alert"),n&&d.jsx(Tt,{popup:!0,open:o,saveConnect:!1,forceConnected:!1,action:"migrate-app-to-struct-v2",checkFn:t.get,checkTimeout:5*60*1e3,onSuccess:u,extraParams:{appDid:n.appDid,did:n.meta.did,wt:Ct(n,!0),title:T.getDisplayName(n)},messages:{title:e("blocklet.migrate.title"),scan:e("blocklet.migrate.scan"),confirm:e("blocklet.migrate.confirm"),success:i>=0?e("blocklet.migrate.success",{sec:i}):"Redirecting..."},onClose:p},"connect")]}const jo=y.lazy(()=>k(()=>import("./overview-DqrKT2dL.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]),import.meta.url)),Po=y.lazy(()=>k(()=>import("./domains-BDMd9S2d.js"),__vite__mapDeps([16,1,2,17,18,10,19,12,20,21,22,23,24,25,26,27,28,29,9,30,31,32,33,34,5]),import.meta.url)),Ao=y.lazy(()=>k(()=>import("./index-BDFC1sP1.js"),__vite__mapDeps([35,1,2,36,7,37,38,39,40,41,42,43,44,45,46,47,19,5,48,49,50,51,10,22,11,12,9,52,4,6,53,54,55,17,56,57,58,59,26,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,25]),import.meta.url)),Do=y.lazy(()=>k(()=>import("./appearance-BOeNpo6Y.js"),__vite__mapDeps([76,1,2,10,71]),import.meta.url)),Oo=y.lazy(()=>k(()=>import("./config-navigation-CutTRHe-.js"),__vite__mapDeps([77,1,2,7,78,37,79,64,10,56,57,58,80,11,12,73,74,68,75,42,43,19,55,72,47,67,41,15,48,49,81,29,82,83,84,66,26,33,45,34]),import.meta.url)),Lo=y.lazy(()=>k(()=>import("./index-BvVI7Mxo.js"),__vite__mapDeps([85,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,73,74,12,75,42,43,19,54,47,55,39,10,53,86,9,87,88,45,89,46,90,91,92,93,94,51,71]),import.meta.url)),Bo=y.lazy(()=>k(()=>import("./audit-logs-Bdg8Eitt.js"),__vite__mapDeps([95,17,1,2,65,66,67,74,96,97,98,99,86,11,10,12]),import.meta.url)),Mo=y.lazy(()=>k(()=>import("./index-ClxIMfsM.js").then(e=>e.i),__vite__mapDeps([100,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,47,11,10,12,71,101,42,43,19,102,78,26,40,103,52,104,105]),import.meta.url)),Ro=y.lazy(()=>k(()=>import("./index-BkGL3dW2.js").then(e=>e.i),__vite__mapDeps([106,1,2,26,107,60,61,62,63,56,57,58,64,17,65,66,67,68,29,82,12,101,42,43,11,10,55,102,78,48,49,99,19,22,93,94,51,47,9,108,109,6,110,111,83,71,20,86]),import.meta.url)),No=y.lazy(()=>k(()=>import("./service-DjmXGMON.js"),__vite__mapDeps([112,1,2,113,61,62,63,90,58,80,57,94,47,26,12,67,114,46,89,66,41]),import.meta.url)),Fo=y.lazy(()=>k(()=>import("./index-2UXtfcoT.js"),__vite__mapDeps([115,1,2,17,73,74,68,12,75,42,43,19,59,53,10,114,113,61,62,63,90,58,80,57,94,47,26,67,46,89,66,41,36,7,37,38,39,40,44,45,22,101,116,117,83,84,48,49,108,24,118,109,21,119,120,121,32,122,8,14,15,33,123,3,124,96,97,98,102,78,125,23,126,9,81,127,30,31,71,6,105,20,128,11]),import.meta.url)),Vo=y.lazy(()=>k(()=>import("./log-1_m4xF_N.js"),__vite__mapDeps([129,1,2,74,130,42,43,49]),import.meta.url)),zo=y.lazy(()=>k(()=>import("./runtime-D_DvOf5h.js"),__vite__mapDeps([131,1,2,60,61,62,63,56,57,58,64,17,65,66,67,68,10,123,132,91,92,23,104,43]),import.meta.url)),$o=y.lazy(()=>k(()=>import("./traffic-C17ygInL.js").then(e=>e.t),__vite__mapDeps([88,1,2,45,89,46,90,58,91,92,93,94,62,51]),import.meta.url)),Uo=y.lazy(()=>k(()=>import("./index-DsOZQCxX.js"),__vite__mapDeps([133,1,2,47,10,71,122,101,42,43,8,14,15,109,33,123,3,9,92,60,61,62,63,56,57,58,64,17,65,66,67,68,73,74,12,75,19,59,53,103]),import.meta.url)),Ho=({children:e})=>e;function qo(){const e=jt(),{tab:t="overview"}=Ke(),{did:n,blocklet:r,error:o,client:s,actions:{setBlocklet:i,refreshBlocklet:c}}=Gt(),{refresh:l}=Pt(),{t:a}=Ue(),{session:u}=He(),p=At(()=>u.user?.role&&Dt.includes(u.user.role),[u]),f=y.useCallback(()=>d.jsx(Bo,{scope:n}),[n]),h=y.useCallback(()=>p?d.jsx(Lo,{blocklet:r}):d.jsx(qt,{status:403}),[r,p]),b=r?.environments.find(g=>g.key==="BLOCKLET_APP_URL")?.value||window.location.origin,v=g=>Lt(g,b),E=g=>{e(`/blocklets/${n}/${g}`)},D=g=>{g&&i(g),c()},I=!r||Pe(r.status)?[]:T.getAppMissingConfigs(r);let x=null;const w=[{label:a("common.overview"),value:"overview"},{breadcrumbsLabel:a("common.components"),label:d.jsx(Ot,{"data-cy":"blocklet-list",color:"error",variant:"dot",invisible:!I.length,children:a("common.components")}),value:"components"}];if(o)x=d.jsxs(d.Fragment,{children:[d.jsx(qe,{severity:"error",children:Ge(o)}),d.jsx(Qe,{onClick:()=>c(),children:d.jsx("span",{style:{textDecoration:"underline"},children:a("common.retry")})})]});else if(r){const g={overview:d.jsx(jo,{}),domains:d.jsx(Po,{}),configuration:Ao,appearance:Do,navigation:Oo,services:No,members:d.jsx(Ro,{type:"blocklet",createPassportSvg:v}),passports:Mo,components:Fo,"audit-logs":f,notifications:h,logs:Vo,runtime:d.jsx(zo,{}),traffic:d.jsx($o,{client:s,did:n}),didSpaces:d.jsx(Uo,{})};t==="configuration"&&Pe(r.status)&&E("overview"),w.push({label:a("common.domains"),value:"domains"}),w.push({label:a("common.members"),value:"members"}),w.push({label:a("team.member.passports"),value:"passports"}),w.push({label:a("common.configuration"),value:"configuration"}),w.push({label:a("common.appearance"),value:"appearance"}),w.push({label:a("common.auditLogs"),value:"audit-logs"}),p&&w.push({label:a("common.notificationRecords"),value:"notifications"}),r&&r.children?.length&&r.structVersion===N.APP_STRUCT_VERSION&&w.push({label:a("common.logs"),value:"logs"}),w.push({label:a("common.configNavigation"),value:"navigation"}),w.push({label:a("common.runtime"),value:"runtime"}),w.push({label:a("common.traffic"),value:"traffic"}),w.push({label:a("storage.spaces.title"),value:"didSpaces"}),T.getBlockletServices(r).length&&w.splice(2,0,{label:a("blocklet.services"),value:"services"});const ae=g[t]||g.overview;x=d.jsxs($t,{type:"components",children:[!T.isExternalBlocklet(r)&&d.jsx(Ft,{tabs:w,current:t,onChange:E,scrollButtons:"auto"}),d.jsx("div",{className:"page-content",children:d.jsx(y.Suspense,{fallback:d.jsx(Ae,{relative:"parent",children:d.jsx(De,{})}),children:y.isValidElement(ae)?ae:d.jsx(ae,{blocklet:r,onUpdate:D,createPassportSvg:v})})})]})}else x=d.jsx(Ae,{relative:"parent",children:d.jsx(De,{})});const M=()=>{},m=({action:g,error:ce})=>{if(ce){W.error(ce.message);return}g==="remove"?(l(),e("/blocklets")):c()},S=w.find(g=>g.value===t),j=r?Kt:Ho,O=Vt(S,r?.meta?.title||a("common.blocklets"));return d.jsxs(j,{teamDid:n,children:[O,d.jsxs(Qo,{children:[d.jsxs(Jt,{separator:"›","aria-label":"breadcrumb",className:"page-breadcrumb",children:[d.jsx(Bt,{color:"textSecondary",to:"/blocklets",children:a("common.blocklets")}),d.jsx(Mt,{to:`/blocklets/${n}/overview`,style:g=>g?{color:"inherit"}:{},children:a("common.detail")}),d.jsx(le,{color:"textSecondary",children:S?S.breadcrumbsLabel||S.label:""})]}),d.jsxs(le,{component:"div",className:"page-header",children:[d.jsxs(le,{component:"h2",variant:"h4",className:"page-title",color:"textPrimary",children:[r?d.jsx(Rt,{blocklet:r,style:{marginRight:16}}):null,r?d.jsxs(Y,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:1},children:[d.jsx(Y,{children:T.getDisplayName(r)}),r?.status!=="unknown"&&d.jsx(zt,{size:"12px",status:r.status,source:r.source,progress:r.progress})]}):`${a("common.blocklet")} ${a("common.detail")}`]}),d.jsx(Wt,{permission:"mutate_blocklets",children:!!r&&!T.isExternalBlocklet(r)&&d.jsx(Ut,{className:"page-actions",blocklet:r,onStart:M,onComplete:m,variant:"group"})})]}),d.jsx(Co,{}),x]})]})}function ar(){const{did:e}=Ke();return e?d.jsx(Qt,{did:e,children:d.jsx(qo,{})}):null}const Qo=Nt.main`
13
13
  .page-header {
14
14
  display: flex;
15
15
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{bY as W,bX as V,r as y,bZ as G,j as e,h7 as Ut,b8 as X,b$ as Y,c0 as Q,bV as Ke,h8 as Te,au as ve,aF as Je,f8 as et,z as ae,h9 as Ft,A as Nt,c$ as tt,d1 as $t,n as S,cr as zt,cs as ne,ha as Ht,$ as Ot,M as x,C as N,b7 as _t,T,V as de,t as ue,f as Z,F as me,ay as E,b1 as nt,hb as Wt,aY as ot,N as Vt,bn as L,e as Gt,b as Ue,ac as pe,H as q,o,w as fe,aS as Xt,R as st,aE as Yt,a8 as Qt,b2 as Zt,h as Kt,b3 as Fe,b0 as Jt,bA as en,h5 as it,b4 as rt,ck as Ce,aV as O,dJ as at,hc as tn,b5 as nn,fG as lt,gt as ke,s as on,hd as ct,he as sn,hf as rn,dx as dt,hg as an,bd as ln,hh as cn,L as dn,hi as H,X as $,i as le,hj as un,aW as mn,dH as oe,Y as Ne,v as pn,aR as fn,hk as xn}from"./index-DGSsefUZ.js";import{y as hn}from"./index-CFWi7Q8M.js";import{u as gn}from"./useAsync-B0Ca_r2m.js";import{u as K}from"./blocklet-Ddfm_VL2.js";import{w as ut}from"./permission-crhdqXhd.js";import{D as mt}from"./url-evaluation-4RA6nhhV.js";import{A as yn}from"./actions-i2UahyAp.js";import{D as Dn}from"./delete-confirm-C1ZQ29Q4.js";import{D as $e}from"./status-BM8-Rpzz.js";import{S as bn,V as jn}from"./VerifiedUser-ueCIxEYY.js";import{C as vn}from"./CardContent-CpM-_HeI.js";import{A as Cn}from"./Add-DyTieGiH.js";import{A as wn}from"./CallMerge-DmrftrOd.js";import{a as Rn}from"./toLower-3JDTZiHY.js";import{u as Sn}from"./use-mobile-CNA5itNx.js";import{v as Tn}from"./index-DAqbo3x1.js";import{g as kn,p as ze}from"./util-CUni4mda.js";import{O as An}from"./OpenInNew-5dmOmuOP.js";import{C as In}from"./click-to-copy-D6M1fnDc.js";import{L as pt}from"./LoadingButton-DdsR40-y.js";import{u as Pn}from"./index-CgWUU7yZ.js";import"./is-path-prefix-equal-CC7-GVaa.js";import"./engine-DHL9Z21k.js";function Mn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const qn=t=>{const{classes:n,stickyHeader:s}=t;return Q({root:["root",s&&"stickyHeader"]},Mn,n)},En=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=qn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Ut.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:Y(u.root,i),ownerState:f,...p})})});function Bn(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Un=t=>{const{classes:n}=t;return Q({root:["root"]},Bn,n)},Fn=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Un(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:Y(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Q({root:["root"]},zn,n)},On=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:Y(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Q({root:["root"]},Wn,n)},Gn=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Xn={variant:"head"},_e="thead",Yn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Xn,children:e.jsx(Gn,{as:r,className:Y(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Qn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Zn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Q({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Qn,n)},Kn=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Zn(f);return e.jsx(Kn,{as:r,ref:s,className:Y(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Jn=Je(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Je(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const M=setInterval(()=>{f.current?.closed&&(clearInterval(M),b())},1e3);return()=>clearInterval(M)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Z(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?q.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&q.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Ue.BlockletEvents.certError,A=>C(A,"error")),h(Ue.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const M=()=>{p(!1),g(null)},U=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},B={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:U,onCancel:M},F=A=>{A.stopPropagation(),g(B)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Xt(2e3)}catch(j){q.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Yt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Qt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Zt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Jt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Jn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Xe="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Xe),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Xe),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Z(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
1
+ import{bY as W,bX as V,r as y,bZ as G,j as e,h7 as Ut,b8 as X,b$ as Y,c0 as Q,bV as Ke,h8 as Te,au as ve,aF as Je,f8 as et,z as ae,h9 as Ft,A as Nt,c$ as tt,d1 as $t,n as S,cr as zt,cs as ne,ha as Ht,$ as Ot,M as x,C as N,b7 as _t,T,V as de,t as ue,f as Z,F as me,ay as E,b1 as nt,hb as Wt,aY as ot,N as Vt,bn as L,e as Gt,b as Ue,ac as pe,H as q,o,w as fe,aS as Xt,R as st,aE as Yt,a8 as Qt,b2 as Zt,h as Kt,b3 as Fe,b0 as Jt,bA as en,h4 as it,b4 as rt,ck as Ce,aV as O,dJ as at,hc as tn,b5 as nn,fG as lt,gt as ke,s as on,hd as ct,he as sn,hf as rn,dx as dt,hg as an,bd as ln,hh as cn,L as dn,hi as H,X as $,i as le,hj as un,aW as mn,dH as oe,Y as Ne,v as pn,aR as fn,hk as xn}from"./index-C7egXf_h.js";import{y as hn}from"./index-BxxgnmFX.js";import{u as gn}from"./useAsync-Bkh8Rg6Z.js";import{u as K}from"./blocklet-C67aFvl7.js";import{w as ut}from"./permission-ycsOOBwp.js";import{D as mt}from"./url-evaluation-w8X_lgzG.js";import{A as yn}from"./actions-DaOidt88.js";import{D as Dn}from"./delete-confirm-cbt-tN11.js";import{D as $e}from"./status-C32bwmXC.js";import{S as bn,V as jn}from"./VerifiedUser-aSWRZr_Y.js";import{C as vn}from"./CardContent-C22npYBc.js";import{A as Cn}from"./Add-CQt7mq1G.js";import{A as wn}from"./CallMerge-BYCLcH5E.js";import{a as Rn}from"./toLower-DJOalyNw.js";import{u as Sn}from"./use-mobile-IHqsUzt1.js";import{v as Tn}from"./index-DWy1kjL1.js";import{g as kn,p as ze}from"./util-CC0K7Xya.js";import{O as An}from"./OpenInNew-BdVhgoOc.js";import{C as In}from"./click-to-copy-D50kkiW4.js";import{L as pt}from"./LoadingButton-C7IcO9Nb.js";import{u as Pn}from"./index-DVAwbdhJ.js";import"./is-path-prefix-equal-Cl2onSKX.js";import"./engine-BWGbIQAy.js";function Mn(t){return W("MuiTable",t)}V("MuiTable",["root","stickyHeader"]);const qn=t=>{const{classes:n,stickyHeader:s}=t;return Q({root:["root",s&&"stickyHeader"]},Mn,n)},En=X("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.stickyHeader&&n.stickyHeader]}})(Ke(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:n})=>n.stickyHeader,style:{borderCollapse:"separate"}}]}))),He="table",Ln=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTable"}),{className:i,component:r=He,padding:c="normal",size:l="medium",stickyHeader:d=!1,...p}=a,f={...a,component:r,padding:c,size:l,stickyHeader:d},u=qn(f),g=y.useMemo(()=>({padding:c,size:l,stickyHeader:d}),[c,l,d]);return e.jsx(Ut.Provider,{value:g,children:e.jsx(En,{as:r,role:r===He?null:"table",ref:s,className:Y(u.root,i),ownerState:f,...p})})});function Bn(t){return W("MuiTableBody",t)}V("MuiTableBody",["root"]);const Un=t=>{const{classes:n}=t;return Q({root:["root"]},Bn,n)},Fn=X("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Nn={variant:"body"},Oe="tbody",$n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableBody"}),{className:i,component:r=Oe,...c}=a,l={...a,component:r},d=Un(l);return e.jsx(Te.Provider,{value:Nn,children:e.jsx(Fn,{className:Y(d.root,i),as:r,ref:s,role:r===Oe?null:"rowgroup",ownerState:l,...c})})});function zn(t){return W("MuiTableContainer",t)}V("MuiTableContainer",["root"]);const Hn=t=>{const{classes:n}=t;return Q({root:["root"]},zn,n)},On=X("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),_n=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableContainer"}),{className:i,component:r="div",...c}=a,l={...a,component:r},d=Hn(l);return e.jsx(On,{ref:s,as:r,className:Y(d.root,i),ownerState:l,...c})});function Wn(t){return W("MuiTableHead",t)}V("MuiTableHead",["root"]);const Vn=t=>{const{classes:n}=t;return Q({root:["root"]},Wn,n)},Gn=X("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),Xn={variant:"head"},_e="thead",Yn=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableHead"}),{className:i,component:r=_e,...c}=a,l={...a,component:r},d=Vn(l);return e.jsx(Te.Provider,{value:Xn,children:e.jsx(Gn,{as:r,className:Y(d.root,i),ref:s,role:r===_e?null:"rowgroup",ownerState:l,...c})})});function Qn(t){return W("MuiTableRow",t)}const We=V("MuiTableRow",["root","selected","hover","head","footer"]),Zn=t=>{const{classes:n,selected:s,hover:a,head:i,footer:r}=t;return Q({root:["root",s&&"selected",a&&"hover",i&&"head",r&&"footer"]},Qn,n)},Kn=X("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,n)=>{const{ownerState:s}=t;return[n.root,s.head&&n.head,s.footer&&n.footer]}})(Ke(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${We.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${We.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ve(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ve(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}))),Ve="tr",Ge=y.forwardRef(function(n,s){const a=G({props:n,name:"MuiTableRow"}),{className:i,component:r=Ve,hover:c=!1,selected:l=!1,...d}=a,p=y.useContext(Te),f={...a,component:r,hover:c,selected:l,head:p&&p.variant==="head",footer:p&&p.variant==="footer"},u=Zn(f);return e.jsx(Kn,{as:r,ref:s,className:Y(u.root,i),role:r===Ve?null:"row",ownerState:f,...d})}),Jn=Je(e.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),eo=Je(e.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-1 6h2v2h-2zm0 4h2v6h-2z"})),to=et({});to.interceptors.request.use(t=>{const n=window.blocklet?window.blocklet.prefix:"/";return t.baseURL=n||"",t.url=ae("/api",String(t.url)),t.timeout=2e5,t.params=t.params||{},new URLSearchParams(t.url.split("?")[1]).has("locale")||(t.params.locale=Ft()),t},t=>Promise.reject(t));const ft=(...t)=>et(...t),no=(t,n)=>n?t?[t,...Array.isArray(n)?n:[n]]:n:t,oo=(t,{width:n=600,height:s=700,name:a="did-domain:popup"}={})=>{const i=window.screenX+(window.innerWidth-n)/2,r=window.screenY+(window.innerHeight-s)/2,c=[`left=${i}`,`top=${r}`,`width=${n}`,`height=${s}`,"resizable=no","scrollbars=yes","status=yes","popup=yes"],l=window.open("",a,c.join(","));if(l===null)throw new Error("Failed to open popup");return l.location.href=Nt(t,{opener:window.location.origin}),l},so="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",xt=async t=>{if(!t||!t?.trim())return null;const n=ft(),s=new URL(t);s.pathname="__blocklet__.js",s.searchParams.set("type","json");const{data:a}=await n.get(s.toString()),i=a?.componentMountPoints?.find(d=>d.did===so),r=new URL(t);r.pathname=i?.mountPoint;const c=r.toString(),l=ae(c,"/api");return{base:c,api:l}},io=tt({embed:{iconTip:"Click to view subscription details"},buy:{button:{title:"Buy DID Domain"},status:{inProgress:"Please wait while we are processing your request, the domain will be automatically resolved to the current app after the purchase...",success:"Purchase completed!"},error:{failedToCreateSession:"Failed to create session"}}}),ro=tt({embed:{iconTip:"点击查看订阅详情"},buy:{button:{title:"购买 DID 域名"},status:{inProgress:"请稍等,我们正在处理您的请求,购买域名后会自动解析到当前的应用...",success:"购买完成!"},error:{failedToCreateSession:"创建会话失败"}}}),ao={zh:ro,en:io},lo=async({didDomainURL:t,delegatee:n,delegateePk:s})=>{const a=await xt(t);if(!a)return null;const i=ft({baseURL:a.api}),{data:r}=await i.post("/payment/session",{delegatee:n,delegateePk:s});return{sessionId:r.sessionId,baseURL:a.base}};function co({delegatee:t,delegateePk:n,didDomainURL:s,locale:a,title:i="",onSuccess:r=()=>{},...c}){const{t:l}=S(),[d,p]=Pn({currentState:1}),f=y.useRef(null),u=zt(async()=>{const m=await lo({didDomainURL:s,delegatee:t,delegateePk:n});return m},{debounceWait:500,debounceLeading:!0,debounceTrailing:!1,debounceMaxWait:3e3,refreshDeps:[],onError(m){console.error(m)}}),g=ne(m=>{m.data.type==="didDomain.success"&&(r?.({nftDid:m.data?.nftDid,domain:m.data?.domain,chainHost:m.data?.chainHost}),f.current?.close(),f.current=null,p({currentState:4}),setTimeout(()=>{p({currentState:8})},2e3))});Ht(()=>{try{window.removeEventListener("message",g),f.current?.close(),f.current=null}catch(m){console.warn("Failed to close popup",m)}});const b=ne(()=>{p({currentState:1})}),h=ne(()=>{if(p({currentState:2}),!u.data){console.error("Failed to create session");return}j({sessionId:u.data.sessionId,baseURL:u.data.baseURL})}),j=ne(({sessionId:m,baseURL:w})=>{window.addEventListener("message",g);const C=new URL(w);C.searchParams.set("sessionId",m),C.searchParams.set("locale",a),C.searchParams.set("embed","1"),f.current=oo(C.toString());const M=setInterval(()=>{f.current?.closed&&(clearInterval(M),b())},1e3);return()=>clearInterval(M)});return e.jsxs(e.Fragment,{children:[e.jsx(pt,{loading:u.loading,onClick:h,variant:"contained",startIcon:e.jsx(bn,{}),...c,children:i||l("buy.button.title")}),e.jsxs(Ot,{fullWidth:!0,maxWidth:"xs",open:d.currentState>1&&d.currentState<8,onClose:b,children:[!u.error&&e.jsxs(x,{sx:{display:"flex",alignItems:"center",flexDirection:"column",gap:2},children:[d.currentState===2&&e.jsx(N,{size:50}),d.currentState===4&&e.jsx(_t,{sx:{color:"primary.main",fontSize:"5rem"}}),d.currentState===2&&e.jsx(T,{children:l("buy.status.inProgress")}),d.currentState===4&&e.jsx(T,{children:l("buy.status.success")})]}),u.error&&e.jsx(de,{severity:"error",children:l("buy.error.failedToCreateSession")})]})]})}function uo(t){return e.jsx($t,{locale:t.locale,translations:ao,children:e.jsx(co,{...t})})}function mo({nftDid:t,didDomainURL:n,locale:s,sx:a={}}){const{t:i}=S(),[r,c]=ue({safeIframeRef:null,popoverAnchorEl:null}),l=y.useRef(null),d=Z(),p=me(d.breakpoints.down("md")),f=h=>{c({popoverAnchorEl:h.currentTarget})},u=()=>{c({popoverAnchorEl:null})},g=gn(async()=>{const h=await xt(n);return h?h.base:null});if(!g.value)return null;if(g.loading)return e.jsx(N,{});const b=ae(g.value,`/embed/domain?nft-did=${t}&locale=${s}`);return e.jsxs(e.Fragment,{children:[e.jsx(E,{title:i("embed.iconTip"),children:e.jsx(x,{component:"img",src:ae(n,"/.well-known/service/blocklet/logo"),alt:"logo",onClick:f,sx:[{width:16,height:16},no({cursor:"pointer"},a)]})}),e.jsx(nt,{id:"popover-info",open:!!r.popoverAnchorEl,anchorEl:r.popoverAnchorEl,onClose:u,anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsx("iframe",{ref:l,title:i("common.subscription"),width:p?"320px":"400px",height:"350px",style:{border:0,display:"block"},src:b})})]})}const po=t=>["waiting","creating","renewaling"].includes(t);function ht({siteId:t,domain:n,onAdd:s=()=>{},children:a=null,did:i,issuing:r=!1,setIssuing:c=()=>{}}){const{t:l}=S(),[d,p]=y.useState(!1),{inService:f}=L(),[u,g]=y.useState(null),{api:b,ws:{useSubscription:h}}=L(),{mode:j,actions:{refreshDomainStatus:m}}=K(),w=Gt(async()=>{const{cert:A}=await b.findCertificateByDomain({input:{domain:n,did:i}});return A}),C=(A,R)=>{A.domain===n&&(c(!1),p(!1),f&&j!=="setup"&&(R==="success"?q.success(l("setup.domain.genCertSuccess",{domain:A.domain})):R==="error"&&q.error(l("setup.domain.genCertFailed",{domain:A.domain,message:A.message}))))};if(y.useEffect(()=>{w.loading||c(po(w.value?.status))},[w.loading,w.value?.status,c]),h(Ue.BlockletEvents.certError,A=>C(A,"error")),h(Ue.BlockletEvents.certIssued,A=>{w.retry(),m(A.domain),C(A,"success")}),w.loading||w.value?.status==="normal")return"";const M=()=>{p(!1),g(null)},U=async()=>{p(!0);try{await b.issueLetsEncryptCert({input:{siteId:t,domain:n,did:i,inBlockletSetup:j==="setup"}}),s(),c(!0)}catch(A){console.error(A),c(!1)}finally{p(!1),g(null)}},B={title:l("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(de,{severity:"success",children:l("router.cert.genLetsEncryptCert.dnsTip")}),l("router.cert.genLetsEncryptCert.description")]}),confirm:l("common.confirm"),onConfirm:U,onCancel:M},F=A=>{A.stopPropagation(),g(B)};return e.jsxs(e.Fragment,{children:[r?e.jsx(E,{title:l("router.cert.issuing"),children:e.jsx(N,{size:13,style:{fontSize:"13px"}})}):a({loading:d,open:F}),u&&e.jsx(pe,{color:"primary",title:u.title,description:u.description,confirm:u.confirm,params:u.params,onConfirm:u.onConfirm,onCancel:u.onCancel})]})}ht.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function gt({domain:t,domainStatus:n,did:s,onAdd:a=()=>{},children:i=null,issuing:r=!1,setIssuing:c=()=>{},...l}){return Wt(t)||!ot(t)||Vt(n)||n?.isHttps?"":e.jsx(ht,{...l,domain:t,did:s,onAdd:a,issuing:r,setIssuing:c,children:i})}gt.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any,issuing:o.bool,setIssuing:o.func};function yt({id:t,domain:n,children:s=null,teamDid:a="",onDelete:i=null}){const{t:r}=S(),[c,l]=y.useState(!1),[d,p]=y.useState(null),{api:f}=L(),u=()=>{l(!1),p(null)},g=async()=>{l(!0);try{await f.deleteDomainAlias({input:{id:t,domainAlias:n,teamDid:a}}),i?.(),await Xt(2e3)}catch(j){q.error(j.message)}finally{p(null),l(!1)}},b={keyName:n,title:r("router.domainAlias.delete.title"),description:r("router.domainAlias.delete.description",{domain:n}),confirmPlaceholder:r("router.domainAlias.delete.confirmPlaceholder",{domain:n}),confirm:r("common.delete"),onConfirm:g,onCancel:u},h=j=>{j.stopPropagation(),p(b)};return e.jsxs(e.Fragment,{children:[typeof s=="function"?s({loading:c,open:h}):e.jsxs(fe,{edge:"end",onClick:h,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[c?e.jsx(N,{size:16}):e.jsx(mt,{style:{fontSize:16}}),r("common.delete")]}),d&&e.jsx(Dn,{keyName:d.keyName,title:d.title,description:d.description,confirmPlaceholder:d.confirmPlaceholder,confirm:d.confirm,params:d.params,onConfirm:d.onConfirm,onCancel:d.onCancel})]})}yt.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string,onDelete:o.func};function Dt({site:t,domain:n,blocklet:s,onDelete:a=()=>{}}){const{t:i}=S(),r=n.value===window.location.hostname;return e.jsx(yn,{"data-cy":"domain-actions",size:"large",actions:[({close:c})=>e.jsx(yt,{id:t.id,domain:n.value,teamDid:s?.meta?.did,onDelete:a,children:({open:l})=>e.jsx(E,{title:r?i("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(st,{disabled:n.isProtected||r,dense:!0,onClick:d=>{c(),l(d)},"data-cy":"action-toggle-block",children:[e.jsx(Yt,{style:{minWidth:24,marginRight:8},children:e.jsx(mt,{})}),e.jsx(Qt,{primary:i("common.delete")})]},"remove")})})})]})}Dt.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired,onDelete:o.func};const xe=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function bt({certificate:t={}}){const[n,s]=y.useState(null),a=L(),{t:i,locale:r}=S(),c=p=>{s(p.currentTarget)},l=()=>{s(null)},d=!!n;return e.jsxs(e.Fragment,{children:[e.jsx(jn,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:c,onMouseLeave:l,style:{color:"#44cdc6",fontSize:"1em",cursor:"pointer"}}),e.jsx(nt,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:n,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:e.jsx(Zt,{children:e.jsxs(vn,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${a.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(T,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(T,{component:"div",style:{fontWeight:"bold"},children:t.domain}),e.jsx(T,{component:"div",children:`${i("common.issuer")}: ${Kt(t,"issuer.commonName","")}`}),e.jsx(T,{component:"div",children:`${i("router.cert.issuedOn")}: ${Fe(t.validFrom,r)}`}),e.jsx(T,{component:"div",children:`${i("router.cert.expiryOn")}: ${Fe(t.validTo,r)}`})]})]})})})]})}bt.propTypes={certificate:o.object};function ce({domain:t,filters:n=["domain","http"]}){const{t:s}=S(),{value:a,domainStatus:i}=t;if(!ot(a))return null;let r=null,c=null;const{isHttps:l,matchedCert:d}=i,{dns:{ip:p,isDnsResolved:f,isCnameMatch:u}={}}=i,g=f&&u;Jt(a)||(g||p==="127.0.0.1"?r=e.jsx(E,{title:s("router.domain.verify.ok"),children:e.jsx($e,{color:"success"})}):r=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx($e,{color:"error"})})),g?l?c=e.jsx(bt,{certificate:d}):c=e.jsx(E,{title:s("router.domain.https.bad"),children:e.jsx(eo,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})}):c=e.jsx(E,{title:s("router.domain.verify.notResolved"),children:e.jsx(Jn,{style:{color:"#D0021B",fontSize:"1em",cursor:"pointer"}})});const b=n.map(h=>h==="domain"?r:h==="http"?c:null);return y.createElement(y.Fragment,null,...b)}ce.propTypes={domain:xe.isRequired,filters:o.array};const fo=ut(Ae,"mutate_blocklets"),xo=ut(Ae,"",en);function ho(t){const{inService:n}=L(),{blocklet:s,loadingRuntimeInfo:a}=K();let i=fo;return n&&(i=xo),e.jsx(i,{...t,blocklet:s,inService:n,loadingRuntimeInfo:a})}const Xe="nft-domain";function Ae({hasPermission:t=!1,blocklet:n,loadingRuntimeInfo:s=!1,inService:a=!1,showAllDomains:i=!1,updateBlockletDomainAliases:r=()=>{},systemTips:c=null}){const{t:l}=S(),d=me(m=>m.breakpoints.down("md")),p=y.useMemo(()=>{let m=t;return it(n)&&(m=m&&a),m},[t,a,n]),{site:f}=n,u=y.useMemo(()=>rt(n.site?.domainAliases),[n.site?.domainAliases]),g=y.useMemo(()=>u.filter(m=>!Ce.isCustomDomain(m.value)),[u]),b=y.useMemo(()=>u.filter(m=>Ce.isCustomDomain(m.value)),[u]),h=y.useMemo(()=>b.filter(m=>m.type!==Xe),[b]),j=y.useMemo(()=>b.filter(m=>m.type===Xe),[b]);return e.jsxs(e.Fragment,{children:[e.jsxs(O,{sx:{gap:3},children:[!!j.length&&e.jsx(re,{title:l("common.didDomains"),description:l("common.didDomainsDescription"),domains:j,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!h.length&&e.jsx(re,{title:l("common.manualDomains"),description:l("common.manualDomainsDescription"),domains:h,hasMutatePermission:p,blocklet:n,site:f,mobile:d,showAllDomains:i,updateBlockletDomainAliases:r}),!!g.length&&e.jsxs(x,{children:[c,e.jsx(re,{title:l("common.systemDomains"),description:l("common.systemDomainsDescription"),domains:g,hasMutatePermission:p,blocklet:n,site:f,mobile:d,updateBlockletDomainAliases:r})]})]}),!u.length&&(s?e.jsx(N,{size:16}):e.jsx(hn,{children:l("common.empty")}))]})}Ae.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,showAllDomains:o.bool,updateBlockletDomainAliases:o.func,systemTips:o.node};function se({children:t=null}){return e.jsx(x,{component:"span",sx:{verticalAlign:"bottom"},children:t})}se.propTypes={children:o.node};function we({domain:t,children:n,suffix:s=null,...a}){const{t:i,locale:r}=S(),c=Z(),{href:l,accessibility:d,value:p}=t,f=y.useCallback(()=>e.jsx(lt,{content:ke(p),locale:r,style:{marginLeft:"4px",color:c.palette.text.secondary,fontSize:"0.8em"}}),[p,r,c]);return!d||d.loading?e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),f(),e.jsx(se,{children:s}),e.jsx(E,{title:i("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx(x,{component:"span",className:"status",children:e.jsx(N,{size:13,style:{fontSize:"13px"}})})})]}):d.accessible?e.jsxs(De,{component:"span",...a,children:[e.jsx(x,{component:"a",href:l,target:"_blank",rel:"noopener noreferrer",sx:{color:t.loading?"text.disabled":void 0},children:e.jsx(E,{title:void 0,placement:"top-end",children:e.jsx(x,{component:"span",children:n})})}),f(),e.jsx(se,{children:s})]}):e.jsxs(De,{component:"span",...a,children:[e.jsx(E,{title:i("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx(x,{component:"span",children:n})}),!t.loading&&f(),e.jsx(se,{children:s})]})}we.propTypes={domain:xe.isRequired,children:o.any.isRequired,suffix:o.node};const De=on(x)`
2
2
  display: inline-block;
3
3
  vertical-align: middle;
4
4
 
@@ -1,4 +1,4 @@
1
- import{aF as Ne,j as Y,ez as ke,s as ge,be as $e,fC as je,dH as Le,o as te,r as he,fD as ze,fE as Ke,bn as Ie,F as qe,dI as Ve,bd as Ge,n as Ye,M as pe,w as De,C as Re,$ as Xe,P as Je,S as Ze,R as Qe,bf as et,H as tt}from"./index-DGSsefUZ.js";import{B as it}from"./ButtonGroup-CzZQ8Npu.js";const rt=Ne(Y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));var we={exports:{}},Ae;function st(){return Ae||(Ae=1,function(X,q){(function(j,V){X.exports=V()})(globalThis,()=>(()=>{var j={4567:function(A,s,o){var d=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new c.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
1
+ import{aF as Ne,j as Y,ez as ke,s as ge,be as $e,fC as je,dH as Le,o as te,r as he,fD as ze,fE as Ke,bn as Ie,F as qe,dI as Ve,bd as Ge,n as Ye,M as pe,w as De,C as Re,$ as Xe,P as Je,S as Ze,R as Qe,bf as et,H as tt}from"./index-C7egXf_h.js";import{B as it}from"./ButtonGroup-9zvLC_k0.js";const rt=Ne(Y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));var we={exports:{}},Ae;function st(){return Ae||(Ae=1,function(X,q){(function(j,V){X.exports=V()})(globalThis,()=>(()=>{var j={4567:function(A,s,o){var d=this&&this.__decorate||function(e,r,a,f){var p,g=arguments.length,l=g<3?r:f===null?f=Object.getOwnPropertyDescriptor(r,a):f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,r,a,f);else for(var m=e.length-1;m>=0;m--)(p=e[m])&&(l=(g<3?p(l):g>3?p(r,a,l):p(r,a))||l);return g>3&&l&&Object.defineProperty(r,a,l),l},_=this&&this.__param||function(e,r){return function(a,f){r(a,f,e)}};Object.defineProperty(s,"__esModule",{value:!0}),s.AccessibilityManager=void 0;const n=o(9042),c=o(9924),u=o(844),v=o(4725),h=o(2585),t=o(3656);let i=s.AccessibilityManager=class extends u.Disposable{constructor(e,r,a,f){super(),this._terminal=e,this._coreBrowserService=a,this._renderService=f,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let p=0;p<this._terminal.rows;p++)this._rowElements[p]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[p]);if(this._topBoundaryFocusListener=p=>this._handleBoundaryFocus(p,0),this._bottomBoundaryFocusListener=p=>this._handleBoundaryFocus(p,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new c.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(p=>this._handleResize(p.rows))),this.register(this._terminal.onRender(p=>this._refreshRows(p.start,p.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(p=>this._handleChar(p))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
2
2
  `))),this.register(this._terminal.onA11yTab(p=>this._handleTab(p))),this.register(this._terminal.onKey(p=>this._handleKey(p.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,t.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,u.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(e){for(let r=0;r<e;r++)this._handleChar(" ")}_handleChar(e){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,e===`
3
3
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=n.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(e){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(e)||this._charsToConsume.push(e)}_refreshRows(e,r){this._liveRegionDebouncer.refresh(e,r,this._terminal.rows)}_renderRows(e,r){const a=this._terminal.buffer,f=a.lines.length.toString();for(let p=e;p<=r;p++){const g=a.lines.get(a.ydisp+p),l=[],m=g?.translateToString(!0,void 0,void 0,l)||"",E=(a.ydisp+p+1).toString(),x=this._rowElements[p];x&&(m.length===0?(x.innerText=" ",this._rowColumns.set(x,[0,1])):(x.textContent=m,this._rowColumns.set(x,l)),x.setAttribute("aria-posinset",E),x.setAttribute("aria-setsize",f))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(e,r){const a=e.target,f=this._rowElements[r===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")===(r===0?"1":`${this._terminal.buffer.lines.length}`)||e.relatedTarget!==f)return;let p,g;if(r===0?(p=a,g=this._rowElements.pop(),this._rowContainer.removeChild(g)):(p=this._rowElements.shift(),g=a,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),g.removeEventListener("focus",this._bottomBoundaryFocusListener),r===0){const l=this._createAccessibilityTreeNode();this._rowElements.unshift(l),this._rowContainer.insertAdjacentElement("afterbegin",l)}else{const l=this._createAccessibilityTreeNode();this._rowElements.push(l),this._rowContainer.appendChild(l)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(r===0?-1:1),this._rowElements[r===0?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;const e=document.getSelection();if(!e)return;if(e.isCollapsed)return void(this._rowContainer.contains(e.anchorNode)&&this._terminal.clearSelection());if(!e.anchorNode||!e.focusNode)return void console.error("anchorNode and/or focusNode are null");let r={node:e.anchorNode,offset:e.anchorOffset},a={node:e.focusNode,offset:e.focusOffset};if((r.node.compareDocumentPosition(a.node)&Node.DOCUMENT_POSITION_PRECEDING||r.node===a.node&&r.offset>a.offset)&&([r,a]=[a,r]),r.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(r={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(r.node))return;const f=this._rowElements.slice(-1)[0];if(a.node.compareDocumentPosition(f)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(a={node:f,offset:f.textContent?.length??0}),!this._rowContainer.contains(a.node))return;const p=({node:m,offset:E})=>{const x=m instanceof Text?m.parentNode:m;let L=parseInt(x?.getAttribute("aria-posinset"),10)-1;if(isNaN(L))return console.warn("row is invalid. Race condition?"),null;const b=this._rowColumns.get(x);if(!b)return console.warn("columns is null. Race condition?"),null;let R=E<b.length?b[E]:b.slice(-1)[0]+1;return R>=this._terminal.cols&&(++L,R=0),{row:L,column:R}},g=p(r),l=p(a);if(g&&l){if(g.row>l.row||g.row===l.row&&g.column>=l.column)throw new Error("invalid range");this._terminal.select(g.column,g.row,(l.row-g.row)*this._terminal.cols-g.column+l.column)}}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let r=this._rowContainer.children.length;r<this._terminal.rows;r++)this._rowElements[r]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[r]);for(;this._rowElements.length>e;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=this._coreBrowserService.mainDocument.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e<this._terminal.rows;e++)this._refreshRowDimensions(this._rowElements[e])}}_refreshRowDimensions(e){e.style.height=`${this._renderService.dimensions.css.cell.height}px`}};s.AccessibilityManager=i=d([_(1,h.IInstantiationService),_(2,v.ICoreBrowserService),_(3,v.IRenderService)],i)},3614:(A,s)=>{function o(c){return c.replace(/\r?\n/g,"\r")}function d(c,u){return u?"\x1B[200~"+c+"\x1B[201~":c}function _(c,u,v,h){c=d(c=o(c),v.decPrivateModes.bracketedPasteMode&&h.rawOptions.ignoreBracketedPasteMode!==!0),v.triggerDataEvent(c,!0),u.value=""}function n(c,u,v){const h=v.getBoundingClientRect(),t=c.clientX-h.left-10,i=c.clientY-h.top-10;u.style.width="20px",u.style.height="20px",u.style.left=`${t}px`,u.style.top=`${i}px`,u.style.zIndex="1000",u.focus()}Object.defineProperty(s,"__esModule",{value:!0}),s.rightClickHandler=s.moveTextAreaUnderMouseCursor=s.paste=s.handlePasteEvent=s.copyHandler=s.bracketTextForPaste=s.prepareTextForTerminal=void 0,s.prepareTextForTerminal=o,s.bracketTextForPaste=d,s.copyHandler=function(c,u){c.clipboardData&&c.clipboardData.setData("text/plain",u.selectionText),c.preventDefault()},s.handlePasteEvent=function(c,u,v,h){c.stopPropagation(),c.clipboardData&&_(c.clipboardData.getData("text/plain"),u,v,h)},s.paste=_,s.moveTextAreaUnderMouseCursor=n,s.rightClickHandler=function(c,u,v,h,t){n(c,u,v),t&&h.rightClickSelect(c),u.value=h.selectionText,u.select()}},7239:(A,s,o)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.ColorContrastCache=void 0;const d=o(1505);s.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(_,n,c){this._css.set(_,n,c)}getCss(_,n){return this._css.get(_,n)}setColor(_,n,c){this._color.set(_,n,c)}getColor(_,n){return this._color.get(_,n)}clear(){this._color.clear(),this._css.clear()}}},3656:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.addDisposableDomListener=void 0,s.addDisposableDomListener=function(o,d,_,n){o.addEventListener(d,_,n);let c=!1;return{dispose:()=>{c||(c=!0,o.removeEventListener(d,_,n))}}}},3551:function(A,s,o){var d=this&&this.__decorate||function(i,e,r,a){var f,p=arguments.length,g=p<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,r):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(i,e,r,a);else for(var l=i.length-1;l>=0;l--)(f=i[l])&&(g=(p<3?f(g):p>3?f(e,r,g):f(e,r))||g);return p>3&&g&&Object.defineProperty(e,r,g),g},_=this&&this.__param||function(i,e){return function(r,a){e(r,a,i)}};Object.defineProperty(s,"__esModule",{value:!0}),s.Linkifier=void 0;const n=o(3656),c=o(8460),u=o(844),v=o(2585),h=o(4725);let t=s.Linkifier=class extends u.Disposable{get currentLink(){return this._currentLink}constructor(i,e,r,a,f){super(),this._element=i,this._mouseService=e,this._renderService=r,this._bufferService=a,this._linkProviderService=f,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new c.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new c.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,u.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,u.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,n.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,n.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,n.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(i){this._lastMouseEvent=i;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);if(!e)return;this._isMouseOut=!1;const r=i.composedPath();for(let a=0;a<r.length;a++){const f=r[a];if(f.classList.contains("xterm"))break;if(f.classList.contains("xterm-hover"))return}this._lastBufferCell&&e.x===this._lastBufferCell.x&&e.y===this._lastBufferCell.y||(this._handleHover(e),this._lastBufferCell=e)}_handleHover(i){if(this._activeLine!==i.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(i,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,i)||(this._clearCurrentLink(),this._askForLink(i,!0))}_askForLink(i,e){this._activeProviderReplies&&e||(this._activeProviderReplies?.forEach(a=>{a?.forEach(f=>{f.link.dispose&&f.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=i.y);let r=!1;for(const[a,f]of this._linkProviderService.linkProviders.entries())e?this._activeProviderReplies?.get(a)&&(r=this._checkLinkProviderResult(a,i,r)):f.provideLinks(i.y,p=>{if(this._isMouseOut)return;const g=p?.map(l=>({link:l}));this._activeProviderReplies?.set(a,g),r=this._checkLinkProviderResult(a,i,r),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(i.y,this._activeProviderReplies)})}_removeIntersectingLinks(i,e){const r=new Set;for(let a=0;a<e.size;a++){const f=e.get(a);if(f)for(let p=0;p<f.length;p++){const g=f[p],l=g.link.range.start.y<i?0:g.link.range.start.x,m=g.link.range.end.y>i?this._bufferService.cols:g.link.range.end.x;for(let E=l;E<=m;E++){if(r.has(E)){f.splice(p--,1);break}r.add(E)}}}}_checkLinkProviderResult(i,e,r){if(!this._activeProviderReplies)return r;const a=this._activeProviderReplies.get(i);let f=!1;for(let p=0;p<i;p++)this._activeProviderReplies.has(p)&&!this._activeProviderReplies.get(p)||(f=!0);if(!f&&a){const p=a.find(g=>this._linkAtPosition(g.link,e));p&&(r=!0,this._handleNewLink(p))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!r)for(let p=0;p<this._activeProviderReplies.size;p++){const g=this._activeProviderReplies.get(p)?.find(l=>this._linkAtPosition(l.link,e));if(g){r=!0,this._handleNewLink(g);break}}return r}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(i){if(!this._currentLink)return;const e=this._positionFromMouseEvent(i,this._element,this._mouseService);e&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,e)&&this._currentLink.link.activate(i,this._currentLink.link.text)}_clearCurrentLink(i,e){this._currentLink&&this._lastMouseEvent&&(!i||!e||this._currentLink.link.range.start.y>=i&&this._currentLink.link.range.end.y<=e)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,u.disposeArray)(this._linkCacheDisposables))}_handleNewLink(i){if(!this._lastMouseEvent)return;const e=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);e&&this._linkAtPosition(i.link,e)&&(this._currentLink=i,this._currentLink.state={decorations:{underline:i.link.decorations===void 0||i.link.decorations.underline,pointerCursor:i.link.decorations===void 0||i.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,i.link,this._lastMouseEvent),i.link.decorations={},Object.defineProperties(i.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:r=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==r&&(this._currentLink.state.decorations.pointerCursor=r,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",r))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:r=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==r&&(this._currentLink.state.decorations.underline=r,this._currentLink.state.isHovered&&this._fireUnderlineEvent(i.link,r))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(r=>{if(!this._currentLink)return;const a=r.start===0?0:r.start+1+this._bufferService.buffer.ydisp,f=this._bufferService.buffer.ydisp+1+r.end;if(this._currentLink.link.range.start.y>=a&&this._currentLink.link.range.end.y<=f&&(this._clearCurrentLink(a,f),this._lastMouseEvent)){const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._askForLink(p,!1)}})))}_linkHover(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!0),this._currentLink.state.decorations.pointerCursor&&i.classList.add("xterm-cursor-pointer")),e.hover&&e.hover(r,e.text)}_fireUnderlineEvent(i,e){const r=i.range,a=this._bufferService.buffer.ydisp,f=this._createLinkUnderlineEvent(r.start.x-1,r.start.y-a-1,r.end.x,r.end.y-a-1,void 0);(e?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(f)}_linkLeave(i,e,r){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(e,!1),this._currentLink.state.decorations.pointerCursor&&i.classList.remove("xterm-cursor-pointer")),e.leave&&e.leave(r,e.text)}_linkAtPosition(i,e){const r=i.range.start.y*this._bufferService.cols+i.range.start.x,a=i.range.end.y*this._bufferService.cols+i.range.end.x,f=e.y*this._bufferService.cols+e.x;return r<=f&&f<=a}_positionFromMouseEvent(i,e,r){const a=r.getCoords(i,e,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(i,e,r,a,f){return{x1:i,y1:e,x2:r,y2:a,cols:this._bufferService.cols,fg:f}}};s.Linkifier=t=d([_(1,h.IMouseService),_(2,h.IRenderService),_(3,v.IBufferService),_(4,h.ILinkProviderService)],t)},9042:(A,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.tooMuchOutput=s.promptLabel=void 0,s.promptLabel="Terminal input",s.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(A,s,o){var d=this&&this.__decorate||function(h,t,i,e){var r,a=arguments.length,f=a<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,i):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(h,t,i,e);else for(var p=h.length-1;p>=0;p--)(r=h[p])&&(f=(a<3?r(f):a>3?r(t,i,f):r(t,i))||f);return a>3&&f&&Object.defineProperty(t,i,f),f},_=this&&this.__param||function(h,t){return function(i,e){t(i,e,h)}};Object.defineProperty(s,"__esModule",{value:!0}),s.OscLinkProvider=void 0;const n=o(511),c=o(2585);let u=s.OscLinkProvider=class{constructor(h,t,i){this._bufferService=h,this._optionsService=t,this._oscLinkService=i}provideLinks(h,t){const i=this._bufferService.buffer.lines.get(h-1);if(!i)return void t(void 0);const e=[],r=this._optionsService.rawOptions.linkHandler,a=new n.CellData,f=i.getTrimmedLength();let p=-1,g=-1,l=!1;for(let m=0;m<f;m++)if(g!==-1||i.hasContent(m)){if(i.loadCell(m,a),a.hasExtendedAttrs()&&a.extended.urlId){if(g===-1){g=m,p=a.extended.urlId;continue}l=a.extended.urlId!==p}else g!==-1&&(l=!0);if(l||g!==-1&&m===f-1){const E=this._oscLinkService.getLinkData(p)?.uri;if(E){const x={start:{x:g+1,y:h},end:{x:m+(l||m!==f-1?0:1),y:h}};let L=!1;if(!r?.allowNonHttpProtocols)try{const b=new URL(E);["http:","https:"].includes(b.protocol)||(L=!0)}catch{L=!0}L||e.push({text:E,range:x,activate:(b,R)=>r?r.activate(b,R,x):v(0,R),hover:(b,R)=>r?.hover?.(b,R,x),leave:(b,R)=>r?.leave?.(b,R,x)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(g=m,p=a.extended.urlId):(g=-1,p=-1)}}t(e)}};function v(h,t){if(confirm(`Do you want to navigate to ${t}?
4
4
 
@@ -1 +1 @@
1
- import{r as C}from"./index-DGSsefUZ.js";const L=t=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},C.createElement("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z"}));export{L as e};
1
+ import{r as C}from"./index-C7egXf_h.js";const L=t=>C.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},C.createElement("path",{d:"M6.03984 17.625C6.08672 17.625 6.13359 17.6203 6.18047 17.6133L10.1227 16.9219C10.1695 16.9125 10.2141 16.8914 10.2469 16.8563L20.182 6.92109C20.2038 6.89941 20.221 6.87366 20.2328 6.8453C20.2445 6.81695 20.2506 6.78656 20.2506 6.75586C20.2506 6.72516 20.2445 6.69477 20.2328 6.66642C20.221 6.63806 20.2038 6.61231 20.182 6.59063L16.2867 2.69297C16.2422 2.64844 16.1836 2.625 16.1203 2.625C16.057 2.625 15.9984 2.64844 15.9539 2.69297L6.01875 12.6281C5.98359 12.6633 5.9625 12.7055 5.95312 12.7523L5.26172 16.6945C5.23892 16.8201 5.24707 16.9493 5.28545 17.071C5.32384 17.1927 5.39132 17.3032 5.48203 17.393C5.63672 17.543 5.83125 17.625 6.03984 17.625ZM7.61953 13.5375L16.1203 5.03906L17.8383 6.75703L9.3375 15.2555L7.25391 15.6234L7.61953 13.5375ZM20.625 19.5938H3.375C2.96016 19.5938 2.625 19.9289 2.625 20.3438V21.1875C2.625 21.2906 2.70937 21.375 2.8125 21.375H21.1875C21.2906 21.375 21.375 21.2906 21.375 21.1875V20.3438C21.375 19.9289 21.0398 19.5938 20.625 19.5938Z"}));export{L as e};
@@ -0,0 +1 @@
1
+ import{dx as e,eW as r,eX as s}from"./index-C7egXf_h.js";const a=e(r),t=e(s);export{a,t as r};
@@ -0,0 +1 @@
1
+ import{fp as e}from"./index-C7egXf_h.js";var i=e();export{i as e};
@@ -1,4 +1,4 @@
1
- import{m as f}from"./index-BTulqglm.js";import"./index-DGSsefUZ.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as f}from"./index-DbXGWrH9.js";import"./index-C7egXf_h.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1 +1 @@
1
- import{cT as t,H as o}from"./index-DGSsefUZ.js";function c(...e){try{return t(...e)}catch(r){throw o.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
1
+ import{cT as t,H as o}from"./index-C7egXf_h.js";function c(...e){try{return t(...e)}catch(r){throw o.error("Invalid redirect url"),console.error("Invalid redirect url",r),r}}export{c as g};
@@ -0,0 +1 @@
1
+ import{r}from"./index-C7egXf_h.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-BTulqglm.js","./index-DGSsefUZ.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
- import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-BTulqglm.js";import{bF as T}from"./index-DGSsefUZ.js";import"./decode-DPztD6kB.js";const x=2*60*1e3;class F{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:s,schemas:c,externalFragmentDefinitions:a,completionSettings:l}=this._defaults;this._worker=h.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:s,languageConfig:{schemas:c?.map(v),externalFragmentDefinitions:a,fillLeafsOnComplete:l.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const s=await this._getClient();return await this._worker.withSyncedResources(e),s}}class b{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,s){this.defaults=e,this._worker=s,this._worker=s;let c;const a=t=>{const d=f(t);if(d!==this.defaults.languageId)return;const g=t.uri.toString(),u=e.diagnosticSettings.validateVariablesJSON?.[g];c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400),this._listener[g]=t.onDidChangeContent(()=>{clearTimeout(c),c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400)})},l=t=>{h.setModelMarkers(t,this.defaults.languageId,[]);const d=t.uri.toString(),g=this._listener[d];g&&(g.dispose(),delete this._listener[d])};this._disposables.push(h.onDidCreateModel(a),{dispose(){clearTimeout(c)}},h.onWillDisposeModel(t=>{l(t)}),h.onDidChangeModelLanguage(t=>{l(t.model),a(t.model)}),{dispose:()=>{for(const t of Object.values(this._listener))t.dispose()}},e.onDidChange(()=>{for(const t of h.getModels())f(t)===this.defaults.languageId&&(l(t),a(t))}));for(const t of h.getModels())f(t)===this.defaults.languageId&&a(t)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,s,c){const a=await this._worker(e);if(!a)return;const l=await a.doValidation(e.toString());if(h.setModelMarkers(h.getModel(e),s,l),c){if(await T(()=>import("./index-BTulqglm.js").then(p=>p.b),__vite__mapDeps([0,1,2,3,4]),import.meta.url),!c.length)throw new Error("No variables URI strings provided to validate");const t=await a.doGetVariablesJSONSchema(e.toString());if(!t)return;const d=M.file(c[0].replace(".json","-schema.json")).toString(),g={uri:d,schema:t,fileMatch:c},u=m.json.jsonDefaults.diagnosticsOptions.schemas?.filter(p=>p.uri!==d)||[];m.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...u,g],enableSchemaRequest:!1})}}}const i=m.CompletionItemKind,C={[r.Text]:i.Text,[r.Method]:i.Method,[r.Function]:i.Function,[r.Constructor]:i.Constructor,[r.Field]:i.Field,[r.Variable]:i.Variable,[r.Class]:i.Class,[r.Interface]:i.Interface,[r.Module]:i.Module,[r.Property]:i.Property,[r.Unit]:i.Unit,[r.Value]:i.Value,[r.Enum]:i.Enum,[r.Keyword]:i.Keyword,[r.Snippet]:i.Snippet,[r.Color]:i.Color,[r.File]:i.File,[r.Reference]:i.Reference,[r.Folder]:i.Folder,[r.EnumMember]:i.EnumMember,[r.Constant]:i.Constant,[r.Struct]:i.Struct,[r.Event]:i.Event,[r.Operator]:i.Operator,[r.TypeParameter]:i.TypeParameter};function E(o){return o in C?C[o]:i.Text}function O(o){return{range:o.range,kind:E(o.kind),label:o.label,insertText:o.insertText??o.label,insertTextRules:o.insertText?m.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:o.sortText,filterText:o.filterText,documentation:o.documentation,detail:o.detail,command:o.command}}class L{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,s,c,a){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),s)).map(O)}}catch(l){return console.error("Error fetching completion items",l),{suggestions:[]}}}}class P{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,s,c){const l=await(await this._worker(e.uri)).doFormat(e.uri.toString());return l?[{range:e.getFullModelRange(),text:l}]:[]}}class V{_worker;constructor(e){this._worker=e}async provideHover(e,s,c){const a=e.uri,t=await(await this._worker(e.uri)).doHover(a.toString(),s);return t?{range:t.range,contents:[{value:t.content}]}:{contents:[]}}dispose(){}}function W(o){const e=[],s=[],c=new F(o);e.push(c);const a=(...n)=>{try{return c.getLanguageServiceWorker(...n)}catch{throw new Error("Error fetching graphql language service worker")}};function l(){const{modeConfiguration:n,languageId:_}=o;n.documentFormattingEdits&&s.push(m.registerDocumentFormattingEditProvider(_,new P(a)))}function t(n){const{modeConfiguration:_,languageId:w}=o;S(s),_.completionItems&&s.push(m.registerCompletionItemProvider(w,new L(a))),_.diagnostics&&s.push(new b(n,a)),_.hovers&&s.push(m.registerHoverProvider(w,new V(a))),l()}let{modeConfiguration:d,formattingOptions:g,diagnosticSettings:u,externalFragmentDefinitions:p,schemas:k}=o;return t(o),o.onDidChange(n=>{n.modeConfiguration!==d&&(d=n.modeConfiguration,t(n)),n.formattingOptions!==g&&(g=n.formattingOptions,l()),n.externalFragmentDefinitions!==p&&(p=n.externalFragmentDefinitions,t(n)),n.diagnosticSettings!==u&&(u=n.diagnosticSettings,t(n)),n.schemas!==k&&(k=n.schemas,t(n))}),e.push(I(s)),I(e)}function I(o){return{dispose:()=>S(o)}}function S(o){for(;o.length;)o.pop().dispose()}export{W as setupMode};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DbXGWrH9.js","./index-C7egXf_h.js","./index-DGkT7afN.css","./decode-DPztD6kB.js","./index-CX3PrUL2.css"])))=>i.map(i=>d[i]);
2
+ import{e as h,g as v,a as f,U as M,l as m,C as r}from"./index-DbXGWrH9.js";import{bF as T}from"./index-C7egXf_h.js";import"./decode-DPztD6kB.js";const x=2*60*1e3;class F{_defaults;_idleCheckInterval;_lastUsedTime=0;_configChangeListener;_worker=null;_client=null;constructor(e){this._defaults=e,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._configChangeListener=this._defaults.onDidChange(()=>{this._stopWorker()})}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>x&&this._stopWorker()}async _getClient(){if(this._lastUsedTime=Date.now(),!this._client&&!this._worker)try{const{languageId:e,formattingOptions:s,schemas:c,externalFragmentDefinitions:a,completionSettings:l}=this._defaults;this._worker=h.createWebWorker({moduleId:"monaco-graphql/esm/GraphQLWorker.js",label:e,createData:{languageId:e,formattingOptions:s,languageConfig:{schemas:c?.map(v),externalFragmentDefinitions:a,fillLeafsOnComplete:l.__experimental__fillLeafsOnComplete}}}),this._client=this._worker.getProxy()}catch(e){console.error("error loading worker",e)}return this._client}async getLanguageServiceWorker(...e){const s=await this._getClient();return await this._worker.withSyncedResources(e),s}}class b{defaults;_worker;_disposables=[];_listener=Object.create(null);constructor(e,s){this.defaults=e,this._worker=s,this._worker=s;let c;const a=t=>{const d=f(t);if(d!==this.defaults.languageId)return;const g=t.uri.toString(),u=e.diagnosticSettings.validateVariablesJSON?.[g];c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400),this._listener[g]=t.onDidChangeContent(()=>{clearTimeout(c),c=setTimeout(()=>{this._doValidate(t.uri,d,u)},400)})},l=t=>{h.setModelMarkers(t,this.defaults.languageId,[]);const d=t.uri.toString(),g=this._listener[d];g&&(g.dispose(),delete this._listener[d])};this._disposables.push(h.onDidCreateModel(a),{dispose(){clearTimeout(c)}},h.onWillDisposeModel(t=>{l(t)}),h.onDidChangeModelLanguage(t=>{l(t.model),a(t.model)}),{dispose:()=>{for(const t of Object.values(this._listener))t.dispose()}},e.onDidChange(()=>{for(const t of h.getModels())f(t)===this.defaults.languageId&&(l(t),a(t))}));for(const t of h.getModels())f(t)===this.defaults.languageId&&a(t)}dispose(){for(const e of this._disposables)e.dispose();this._disposables=[]}async _doValidate(e,s,c){const a=await this._worker(e);if(!a)return;const l=await a.doValidation(e.toString());if(h.setModelMarkers(h.getModel(e),s,l),c){if(await T(()=>import("./index-DbXGWrH9.js").then(p=>p.b),__vite__mapDeps([0,1,2,3,4]),import.meta.url),!c.length)throw new Error("No variables URI strings provided to validate");const t=await a.doGetVariablesJSONSchema(e.toString());if(!t)return;const d=M.file(c[0].replace(".json","-schema.json")).toString(),g={uri:d,schema:t,fileMatch:c},u=m.json.jsonDefaults.diagnosticsOptions.schemas?.filter(p=>p.uri!==d)||[];m.json.jsonDefaults.setDiagnosticsOptions({schemaValidation:"error",validate:!0,...this.defaults.diagnosticSettings.jsonDiagnosticSettings,schemas:[...u,g],enableSchemaRequest:!1})}}}const i=m.CompletionItemKind,C={[r.Text]:i.Text,[r.Method]:i.Method,[r.Function]:i.Function,[r.Constructor]:i.Constructor,[r.Field]:i.Field,[r.Variable]:i.Variable,[r.Class]:i.Class,[r.Interface]:i.Interface,[r.Module]:i.Module,[r.Property]:i.Property,[r.Unit]:i.Unit,[r.Value]:i.Value,[r.Enum]:i.Enum,[r.Keyword]:i.Keyword,[r.Snippet]:i.Snippet,[r.Color]:i.Color,[r.File]:i.File,[r.Reference]:i.Reference,[r.Folder]:i.Folder,[r.EnumMember]:i.EnumMember,[r.Constant]:i.Constant,[r.Struct]:i.Struct,[r.Event]:i.Event,[r.Operator]:i.Operator,[r.TypeParameter]:i.TypeParameter};function E(o){return o in C?C[o]:i.Text}function O(o){return{range:o.range,kind:E(o.kind),label:o.label,insertText:o.insertText??o.label,insertTextRules:o.insertText?m.CompletionItemInsertTextRule.InsertAsSnippet:void 0,sortText:o.sortText,filterText:o.filterText,documentation:o.documentation,detail:o.detail,command:o.command}}class L{_worker;constructor(e){this._worker=e,this._worker=e}get triggerCharacters(){return[":","$"," ","(","@"]}async provideCompletionItems(e,s,c,a){try{return{incomplete:!0,suggestions:(await(await this._worker(e.uri)).doComplete(e.uri.toString(),s)).map(O)}}catch(l){return console.error("Error fetching completion items",l),{suggestions:[]}}}}class P{_worker;constructor(e){this._worker=e,this._worker=e}async provideDocumentFormattingEdits(e,s,c){const l=await(await this._worker(e.uri)).doFormat(e.uri.toString());return l?[{range:e.getFullModelRange(),text:l}]:[]}}class V{_worker;constructor(e){this._worker=e}async provideHover(e,s,c){const a=e.uri,t=await(await this._worker(e.uri)).doHover(a.toString(),s);return t?{range:t.range,contents:[{value:t.content}]}:{contents:[]}}dispose(){}}function W(o){const e=[],s=[],c=new F(o);e.push(c);const a=(...n)=>{try{return c.getLanguageServiceWorker(...n)}catch{throw new Error("Error fetching graphql language service worker")}};function l(){const{modeConfiguration:n,languageId:_}=o;n.documentFormattingEdits&&s.push(m.registerDocumentFormattingEditProvider(_,new P(a)))}function t(n){const{modeConfiguration:_,languageId:w}=o;S(s),_.completionItems&&s.push(m.registerCompletionItemProvider(w,new L(a))),_.diagnostics&&s.push(new b(n,a)),_.hovers&&s.push(m.registerHoverProvider(w,new V(a))),l()}let{modeConfiguration:d,formattingOptions:g,diagnosticSettings:u,externalFragmentDefinitions:p,schemas:k}=o;return t(o),o.onDidChange(n=>{n.modeConfiguration!==d&&(d=n.modeConfiguration,t(n)),n.formattingOptions!==g&&(g=n.formattingOptions,l()),n.externalFragmentDefinitions!==p&&(p=n.externalFragmentDefinitions,t(n)),n.diagnosticSettings!==u&&(u=n.diagnosticSettings,t(n)),n.schemas!==k&&(k=n.schemas,t(n))}),e.push(I(s)),I(e)}function I(o){return{dispose:()=>S(o)}}function S(o){for(;o.length;)o.pop().dispose()}export{W as setupMode};
@@ -1,4 +1,4 @@
1
- import{m as i}from"./index-BTulqglm.js";import"./index-DGSsefUZ.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as i}from"./index-DbXGWrH9.js";import"./index-C7egXf_h.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license
@@ -1,4 +1,4 @@
1
- import{m as s}from"./index-BTulqglm.js";import"./index-DGSsefUZ.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
1
+ import{m as s}from"./index-DbXGWrH9.js";import"./index-C7egXf_h.js";import"./decode-DPztD6kB.js";/*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
4
4
  * Released under the MIT license