@abtnode/webapp 1.17.8-beta-20260106-113136-b3c09e14 → 1.17.8-beta-20260108-021819-e099f0ca

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 (209) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-DWVMAxzn.js → AdapterDayjs-Chnfr9fe.js} +1 -1
  4. package/dist/assets/{Add-DSHUmuh2.js → Add-b-MNk7UB.js} +1 -1
  5. package/dist/assets/ArrowDropDown-lsZjWbH5.js +1 -0
  6. package/dist/assets/{Autocomplete-CafCM_25.js → Autocomplete-79tADtg2.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-DwWBB4-B.js → Breadcrumbs-Cqjt-kp8.js} +1 -1
  8. package/dist/assets/{ButtonGroup-C1HewoiR.js → ButtonGroup-C_JbniJW.js} +1 -1
  9. package/dist/assets/{CSSTransition-1BwLUUYd.js → CSSTransition-DinXVMZy.js} +1 -1
  10. package/dist/assets/{CallMerge-BQb_v7zQ.js → CallMerge-CF5jo3Pw.js} +1 -1
  11. package/dist/assets/{CardContent-B53G0-HU.js → CardContent-CYNmFsYJ.js} +1 -1
  12. package/dist/assets/{ChevronLeft-CaPH--HT.js → ChevronLeft-Byy2_Dj8.js} +1 -1
  13. package/dist/assets/{ChevronRight-CtPp_MpO.js → ChevronRight-BKFXnJ7g.js} +1 -1
  14. package/dist/assets/{Clear-BBluvTPc.js → Clear-Chg9fOPG.js} +1 -1
  15. package/dist/assets/{Delete-9ESwe_tH.js → Delete-B306vkSB.js} +1 -1
  16. package/dist/assets/{DeleteOutline-CK2Vy8gP.js → DeleteOutline-BjSm7PCr.js} +1 -1
  17. package/dist/assets/{Done-Cc0u-Lkn.js → Done-Bh0vP7e6.js} +1 -1
  18. package/dist/assets/{Edit-D1Klg2r6.js → Edit-DFmlgA7E.js} +1 -1
  19. package/dist/assets/EditOutlined-Qskj3-tY.js +1 -0
  20. package/dist/assets/{ErrorOutline-BoB93pXx.js → ErrorOutline-CjKNiJFO.js} +1 -1
  21. package/dist/assets/{FilterList-DjsH6fTI.js → FilterList-Dphn1UXx.js} +1 -1
  22. package/dist/assets/{Google-wvuc_gx7.js → Google-C0G3l0jL.js} +1 -1
  23. package/dist/assets/{HelpOutline-CM_Ykzlc.js → HelpOutline--A0maMxb.js} +1 -1
  24. package/dist/assets/{KeyboardArrowDown-xhzKRGfY.js → KeyboardArrowDown-CD6n37Y9.js} +1 -1
  25. package/dist/assets/{Launch-DlhEZ9Bw.js → Launch-Cor8d4pT.js} +1 -1
  26. package/dist/assets/{Link-DfMegObq.js → Link-Mg5UlAaZ.js} +1 -1
  27. package/dist/assets/{ListItemButton-DmY4JAPa.js → ListItemButton-C8XIzvy_.js} +1 -1
  28. package/dist/assets/{ListSubheader-B41Y1ZMB.js → ListSubheader-CHT01bOG.js} +1 -1
  29. package/dist/assets/{LoadingButton-Cj4ijk42.js → LoadingButton-DtnAWL1w.js} +1 -1
  30. package/dist/assets/{MoreVert-BQdkfudm.js → MoreVert-KNjOpSoE.js} +1 -1
  31. package/dist/assets/{OpenInNew-GavEOug8.js → OpenInNew-DGDd5qxt.js} +1 -1
  32. package/dist/assets/{Refresh-C5IecY_i.js → Refresh-B0_3c6OW.js} +1 -1
  33. package/dist/assets/{Replay-BLAjtrmV.js → Replay-BzP784vV.js} +1 -1
  34. package/dist/assets/{Search-DsDROQ8Z.js → Search-CUoYhy1v.js} +1 -1
  35. package/dist/assets/{Stepper-DpZ7eOjv.js → Stepper-DfUO9buC.js} +1 -1
  36. package/dist/assets/{TableSearch-B9TJh3X_.js → TableSearch-DxZYknBa.js} +1 -1
  37. package/dist/assets/{ToggleButtonGroup-CJ8NJ0D1.js → ToggleButtonGroup-BwLu2zCu.js} +1 -1
  38. package/dist/assets/{UnfoldMore-wahbC_eH.js → UnfoldMore-DvSw9pGy.js} +1 -1
  39. package/dist/assets/{Verified-CR7dtVpN.js → Verified-CfonAx-G.js} +1 -1
  40. package/dist/assets/{VerifiedUser-CJqNBrd2.js → VerifiedUser-wCwGdsz1.js} +1 -1
  41. package/dist/assets/{ViewList-CmgkgU2_.js → ViewList-DhdvL6AT.js} +1 -1
  42. package/dist/assets/_createAggregator-BLxu5C4t.js +1 -0
  43. package/dist/assets/{actions-DFw06nT4.js → actions-D1YtdqKL.js} +1 -1
  44. package/dist/assets/{actions-BGmJ3r4b.js → actions-Wo9kGXdj.js} +1 -1
  45. package/dist/assets/{agreement-nsoxnYhM.js → agreement-07HiBYSX.js} +3 -3
  46. package/dist/assets/api-eF9wxSJp.js +1 -0
  47. package/dist/assets/{appearance-DPQCzdhZ.js → appearance-CKF7Bo6h.js} +1 -1
  48. package/dist/assets/{ar-BukCw0OI.js → ar-BHqjWgUQ.js} +2 -2
  49. package/dist/assets/{audit-logs-C1Fzb4ps.js → audit-logs-CLt2l7-q.js} +2 -2
  50. package/dist/assets/{base-chart-CEDitl1S.js → base-chart-_0APPWGp.js} +1 -1
  51. package/dist/assets/{blocklet-CQ-S_G-T.js → blocklet-ClPWX-SV.js} +1 -1
  52. package/dist/assets/{chain-T1WmG8fp.js → chain-Bg9mny_E.js} +1 -1
  53. package/dist/assets/{click-to-copy-BtM6Ocbq.js → click-to-copy-BbJJzGI1.js} +1 -1
  54. package/dist/assets/cloneDeep-DNOsGRuG.js +1 -0
  55. package/dist/assets/{config-navigation-nzNCj2pe.js → config-navigation-B-CtKO70.js} +3 -3
  56. package/dist/assets/connect-2JDWTFDP.js +5 -0
  57. package/dist/assets/{connect-to-YFMYu-C6.js → connect-to-CBEHT895.js} +1 -1
  58. package/dist/assets/{cssMode-CorZ9Trm.js → cssMode-U7KzpQEJ.js} +1 -1
  59. package/dist/assets/{de-Br0tDZam.js → de-QUGQFv2K.js} +1 -1
  60. package/dist/assets/{delete-confirm-DkYJPW8j.js → delete-confirm-Cx4JPY2I.js} +1 -1
  61. package/dist/assets/depsEqual-Cvglsxh5.js +1 -0
  62. package/dist/assets/{detail-B2tLxU0Q.js → detail-Cgws9Fjd.js} +3 -3
  63. package/dist/assets/{domains-D6W5MF-p.js → domains-BJzrDugH.js} +2 -2
  64. package/dist/assets/{download-CMbpTIK1.js → download-Df1TrhTI.js} +1 -1
  65. package/dist/assets/{edit.svg-DA3pWWpd.js → edit.svg-833vjqGH.js} +1 -1
  66. package/dist/assets/emotion-cache.browser.esm-Epiq9rij.js +1 -0
  67. package/dist/assets/engine-a9f8P0CB.js +1 -0
  68. package/dist/assets/{es-D_e0gGgp.js → es-C4w6cL07.js} +2 -2
  69. package/dist/assets/{fr-DXizOT4b.js → fr-Bq3UipEu.js} +2 -2
  70. package/dist/assets/{freemarker2-B35GIWEl.js → freemarker2-J5nZkQuM.js} +1 -1
  71. package/dist/assets/{get-safe-url-BtHUKeta.js → get-safe-url-QppwE77w.js} +1 -1
  72. package/dist/assets/getValidReactChildren-Cjo-LFyx.js +1 -0
  73. package/dist/assets/{graphqlMode-BhjTwCqd.js → graphqlMode-5yY_akok.js} +2 -2
  74. package/dist/assets/{handlebars-DGxR4b_w.js → handlebars-DfBT6Rl2.js} +1 -1
  75. package/dist/assets/{hi-D2FEb_Tx.js → hi-DGZy0DLh.js} +2 -2
  76. package/dist/assets/{html-Dl26d1wf.js → html-BBpT31Z8.js} +1 -1
  77. package/dist/assets/{html-title-DdUp_-5h.js → html-title-BpNgi7iw.js} +1 -1
  78. package/dist/assets/{htmlMode-zyg79iHD.js → htmlMode-CDF4YwlA.js} +1 -1
  79. package/dist/assets/{id-Dw9URVwP.js → id-DOzDilAf.js} +2 -2
  80. package/dist/assets/{iframe-naOtT0ea.js → iframe-CH8rbppJ.js} +1 -1
  81. package/dist/assets/{index-B5a5GywJ.js → index-0NOALS_P.js} +1 -1
  82. package/dist/assets/{index-9I_iGd-v.js → index-3MwDYHdN.js} +9 -9
  83. package/dist/assets/index-B31H3tAk.js +1 -0
  84. package/dist/assets/index-B3tcK3_z.js +179 -0
  85. package/dist/assets/{index-B5Gr8NCp.js → index-B4fcaU-r.js} +2 -2
  86. package/dist/assets/{index--8pMPQd4.js → index-B6x6Mq9n.js} +1 -1
  87. package/dist/assets/{index-MY2K6w0a.js → index-B8qqbKQt.js} +1 -1
  88. package/dist/assets/{index-B32KxiCS.js → index-BBe9oV9e.js} +1 -1
  89. package/dist/assets/{index-CH66h8Bz.js → index-BHQcEGDq.js} +1 -1
  90. package/dist/assets/{index-BjFIjVRr.js → index-BJVvRV0h.js} +1 -1
  91. package/dist/assets/{index-D_9cPML4.js → index-BRSm_uSW.js} +3 -3
  92. package/dist/assets/{index-CajyH0Pt.js → index-BSBkhGl0.js} +1 -1
  93. package/dist/assets/{index-BWhjxKXQ.js → index-BVJB29cJ.js} +1 -1
  94. package/dist/assets/{index-BRe92Q_R.js → index-BbND9whL.js} +1 -1
  95. package/dist/assets/{index-Brq4w3lW.js → index-BdVOugOI.js} +1 -1
  96. package/dist/assets/index-Bek3Nxot.js +2900 -0
  97. package/dist/assets/{index-CUMme3nC.js → index-BfTQCMKf.js} +1 -1
  98. package/dist/assets/{index-DJvzDb5Q.js → index-BfnrUUfH.js} +1 -1
  99. package/dist/assets/{index-BwNCJNhy.js → index-BikUP_wv.js} +1 -1
  100. package/dist/assets/{index-BWGe4dJb.js → index-BqrWLXQw.js} +3 -3
  101. package/dist/assets/{index-BUZBDqqG.js → index-CBHMH4Z7.js} +1 -1
  102. package/dist/assets/{index-DgL9xnFX.js → index-CDd3s2GI.js} +1 -1
  103. package/dist/assets/{index-BYUmgdKD.js → index-CHgpIuFF.js} +3 -3
  104. package/dist/assets/{index-Bn367fJd.js → index-CKWS_NIP.js} +33 -33
  105. package/dist/assets/{index-C2cbrgVU.js → index-CZX-K9Eg.js} +1 -1
  106. package/dist/assets/{index-CqYZvIgm.js → index-CaxsY_au.js} +3 -3
  107. package/dist/assets/{index-8NfiZJjD.js → index-CbK68mel.js} +1 -1
  108. package/dist/assets/{index-BZiL2FK1.js → index-CbnvHmOA.js} +1 -1
  109. package/dist/assets/{index-D6evhDRM.js → index-Crqqt-AN.js} +1 -1
  110. package/dist/assets/{index-0xQC_RX5.js → index-CsTd8Q4H.js} +1 -1
  111. package/dist/assets/{index-CYUImSxu.js → index-DCHzmqFc.js} +1 -1
  112. package/dist/assets/{index-CgaVkwyv.js → index-DJfXtT-f.js} +1 -1
  113. package/dist/assets/index-DSjaZAu3.js +1 -0
  114. package/dist/assets/{index-CRl4QsFf.js → index-DXfP6ckA.js} +2 -2
  115. package/dist/assets/{index-Beuvm8_y.js → index-D_L4A5jU.js} +1 -1
  116. package/dist/assets/{index-BGxDum8X.js → index-DqkfLKvE.js} +1 -1
  117. package/dist/assets/{index-B_lfyJAT.js → index-Dr7VuVvC.js} +1 -1
  118. package/dist/assets/{index-CNgBOpOW.js → index-DrsAyGr6.js} +1 -1
  119. package/dist/assets/{index-CaBQPbJb.js → index-FdUIQyuT.js} +1 -1
  120. package/dist/assets/{index-DDM20tun.js → index-HqyXcG7M.js} +3 -3
  121. package/dist/assets/{index-CNsTH-sC.js → index-WHQs_PkC.js} +1 -1
  122. package/dist/assets/{index-C_yKF6eG.js → index-cZdqepfp.js} +1 -1
  123. package/dist/assets/{index-C_xCzC4h.js → index-iqFfmV_z.js} +1 -1
  124. package/dist/assets/{index-BVBi2pvN.js → index-jHF3D4cy.js} +1 -1
  125. package/dist/assets/{index-CzlMX9ae.js → index-m8sITmne.js} +1 -1
  126. package/dist/assets/{index-BTQvwhJ3.js → index-tNmk7CjJ.js} +1 -1
  127. package/dist/assets/{index.esm-Bhe9PyJD.js → index.esm-WZ7Avw4n.js} +1 -1
  128. package/dist/assets/{install-from-url-BSRJz2Np.js → install-from-url-PuHPLadE.js} +1 -1
  129. package/dist/assets/{invitation-C2EDl-5j.js → invitation-Bi2QgUpB.js} +1 -1
  130. package/dist/assets/{is-path-prefix-equal-DRlBVNUG.js → is-path-prefix-equal-BAfeJQQq.js} +1 -1
  131. package/dist/assets/{item-BBL8EstT.js → item-hbtsGcq0.js} +1 -1
  132. package/dist/assets/{ja-DBxpsmGJ.js → ja-DMq-YXDX.js} +2 -2
  133. package/dist/assets/{javascript-Bw5GnACP.js → javascript-CH6uPFyX.js} +1 -1
  134. package/dist/assets/{jsonMode-CYcndJYD.js → jsonMode-B3mvgwT0.js} +1 -1
  135. package/dist/assets/{ko-CCAdSyce.js → ko-BrYbXurh.js} +2 -2
  136. package/dist/assets/{liquid-ClyO3pFK.js → liquid-BoDus-ho.js} +1 -1
  137. package/dist/assets/{list-header-CQdhtCZz.js → list-header-C3SJDsfy.js} +1 -1
  138. package/dist/assets/{lock.svg-B7I2PtUy.js → lock.svg-CGmlgpmU.js} +1 -1
  139. package/dist/assets/{log-BztLHiQf.js → log-D4BWVj7G.js} +1 -1
  140. package/dist/assets/{lottie-react.esm-Cq3-epqH.js → lottie-react.esm-ayFZjR4e.js} +1 -1
  141. package/dist/assets/{mdx-DkYVlLke.js → mdx-C33wkq6H.js} +1 -1
  142. package/dist/assets/{memory-DV8JsQtx.js → memory-lh5QZ4zg.js} +1 -1
  143. package/dist/assets/{metric-EPbdPW3c.js → metric-chc-qmc8.js} +1 -1
  144. package/dist/assets/omit-C11lcOpj.js +1 -0
  145. package/dist/assets/{overview-dKd5GT8L.js → overview-DL-GP40o.js} +1 -1
  146. package/dist/assets/{permission-CM6DkVuZ.js → permission-D09K4EY6.js} +1 -1
  147. package/dist/assets/{preference-BM-UTdmc.js → preference-iiwdIYk6.js} +5 -5
  148. package/dist/assets/{provider-icon-Cktbn65r.js → provider-icon-Dm9XYo2I.js} +1 -1
  149. package/dist/assets/{pt-CrMGrBZ6.js → pt-Dl6732JN.js} +2 -2
  150. package/dist/assets/{python-Du7VaLuo.js → python-D_lYYAX1.js} +1 -1
  151. package/dist/assets/{raf-schd.esm-BNw9NITo.js → raf-schd.esm-Bo9SYHL8.js} +1 -1
  152. package/dist/assets/{razor-BVnET0nC.js → razor-dpsmZHh4.js} +1 -1
  153. package/dist/assets/{rotate-session-key-CFNbgP5f.js → rotate-session-key-Bfdv46s3.js} +1 -1
  154. package/dist/assets/{ru-up3R57Pv.js → ru-CVUeN9AX.js} +2 -2
  155. package/dist/assets/{runtime-Dk9rcZxS.js → runtime-BUcScDcM.js} +1 -1
  156. package/dist/assets/schema-DidDB4o0.js +1 -0
  157. package/dist/assets/sdk-l1r4MOQ_.js +1 -0
  158. package/dist/assets/{service-CqUPpwp0.js → service-DCzLPjA3.js} +1 -1
  159. package/dist/assets/{shorten-label-3s6gLF6k.js → shorten-label-CN9pEyom.js} +1 -1
  160. package/dist/assets/{simple-select-Wx3iUaBi.js → simple-select-DxwJpURO.js} +1 -1
  161. package/dist/assets/{spaces-Am_oeFAi.js → spaces-BrB8zqzV.js} +1 -1
  162. package/dist/assets/{status-CNrrWhOD.js → status-B-GGRrEB.js} +1 -1
  163. package/dist/assets/{status-C7WonqAX.js → status-BZx_J-ps.js} +1 -1
  164. package/dist/assets/{switch-control-5rdk6r2s.js → switch-control-X9WA2UjB.js} +1 -1
  165. package/dist/assets/{table-icons-BYFzOJU6.js → table-icons-Xs4hP9Pw.js} +1 -1
  166. package/dist/assets/{team-DIUm8el2.js → team-B9jB42uy.js} +1 -1
  167. package/dist/assets/{th-DdNj2Ao6.js → th-32eBNQes.js} +2 -2
  168. package/dist/assets/{toLower-4lrgdc-N.js → toLower-DwWNsNMJ.js} +1 -1
  169. package/dist/assets/toUpper-DXK6zXOf.js +1 -0
  170. package/dist/assets/{traffic-Dk6Khjvb.js → traffic-C_4zWOQM.js} +1 -1
  171. package/dist/assets/{tsMode-Dsc9rLfX.js → tsMode-57DuREfP.js} +1 -1
  172. package/dist/assets/{typescript-DpjdjVZw.js → typescript-BJp2b_J1.js} +1 -1
  173. package/dist/assets/{url-evaluation-C14MBkPs.js → url-evaluation-DetQFE_e.js} +1 -1
  174. package/dist/assets/{url-join-CdWz3bWK.js → url-join-rRKl4Ear.js} +1 -1
  175. package/dist/assets/{use-mobile-DyfoHLG-.js → use-mobile-BDRFDg8j.js} +1 -1
  176. package/dist/assets/{use-mobile-CDGtPjEm.js → use-mobile-DOhPXmq7.js} +1 -1
  177. package/dist/assets/{useAsync-CxBbRyfH.js → useAsync-B59MJoKM.js} +1 -1
  178. package/dist/assets/{useAsyncRetry-Bocgt3FN.js → useAsyncRetry-CGp0YSlH.js} +1 -1
  179. package/dist/assets/{useLocalStorage-DCDZL7eY.js → useLocalStorage-Dpl2DibN.js} +1 -1
  180. package/dist/assets/{useThemeProps-BgZ7aDx7.js → useThemeProps-BS48y1B2.js} +1 -1
  181. package/dist/assets/{util-Be7ZYLl2.js → util-DgOs7OwT.js} +1 -1
  182. package/dist/assets/{vi-HNh41Xxk.js → vi-DF8IinAc.js} +2 -2
  183. package/dist/assets/{wait-container-DxcDiGL9.js → wait-container-CxHAyAQN.js} +1 -1
  184. package/dist/assets/{without-wallet-B0F51hFz.js → without-wallet-qfmn1VhQ.js} +1 -1
  185. package/dist/assets/wrap-locale-D8IL6u8L.js +1 -0
  186. package/dist/assets/{xml-B7OEZnDx.js → xml-BZRt8HAs.js} +1 -1
  187. package/dist/assets/{yaml-CKPSOCPR.js → yaml-0X7rH3i7.js} +1 -1
  188. package/dist/assets/{zh-MM5bvwO_.js → zh-ByJkLAV1.js} +2 -2
  189. package/dist/assets/{zh-tw-Dr5DyPwA.js → zh-tw-34G9tsUP.js} +2 -2
  190. package/dist/index.html +1 -1
  191. package/package.json +1 -1
  192. package/dist/assets/ArrowDropDown-X9T3XBZa.js +0 -1
  193. package/dist/assets/_createAggregator-DnJlZ903.js +0 -1
  194. package/dist/assets/api-D8UyBv4i.js +0 -1
  195. package/dist/assets/cloneDeep-CJSiQzIj.js +0 -1
  196. package/dist/assets/connect-DEbeKuNy.js +0 -5
  197. package/dist/assets/depsEqual-C5Zw7_49.js +0 -1
  198. package/dist/assets/emotion-cache.browser.esm-4wp097w6.js +0 -1
  199. package/dist/assets/engine-DDhO6kSm.js +0 -1
  200. package/dist/assets/getValidReactChildren-DsFc6cpz.js +0 -1
  201. package/dist/assets/index-7mVca6L9.js +0 -1
  202. package/dist/assets/index-BAMKzu46.js +0 -2900
  203. package/dist/assets/index-Bv7eZ7mu.js +0 -179
  204. package/dist/assets/index-CJNCkrWH.js +0 -1
  205. package/dist/assets/omit-DisUFHh2.js +0 -1
  206. package/dist/assets/schema-DV0hUaoz.js +0 -1
  207. package/dist/assets/sdk-4bF4Obyz.js +0 -1
  208. package/dist/assets/toUpper-DJkJXqdQ.js +0 -1
  209. package/dist/assets/wrap-locale-DCD2RpMr.js +0 -1
@@ -1 +1 @@
1
- import{V as k,bn as C,r as d,j as t,T as c,G as p,s as B,o as m,i as l,J as a,bx as D,P as x,k as H,aD as L,d7 as M,l as z,m as U}from"./index-BAMKzu46.js";import{H as N}from"./index-CH66h8Bz.js";import{u as v}from"./blocklet-CQ-S_G-T.js";import{y as S}from"./index-DgL9xnFX.js";import{x as P}from"./index-DRYJ0xIl.js";import{C as T,M as $}from"./memory-DV8JsQtx.js";import{B as E}from"./status-CNrrWhOD.js";import{T as w,a as G}from"./ToggleButtonGroup-CJ8NJ0D1.js";import"./FilterList-DjsH6fTI.js";import"./CSSTransition-1BwLUUYd.js";import"./emotion-cache.browser.esm-4wp097w6.js";import"./index-0xQC_RX5.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-C5Zw7_49.js";import"./TableSearch-B9TJh3X_.js";import"./Search-DsDROQ8Z.js";import"./Clear-BBluvTPc.js";import"./MoreVert-BQdkfudm.js";import"./base-chart-CEDitl1S.js";import"./index-CUMme3nC.js";import"./getValidReactChildren-DsFc6cpz.js";function R({blocklet:r,cpuHistory:y=[],memoryHistory:u=[],...j}){const{t:i}=k(),{info:f}=C(),{runtimeHistory:s}=v(),[g,b]=d.useState(null),n=d.useCallback(e=>r.status!=="running"?t.jsx(c,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=d.useCallback(e=>{b(e)},[]);return s.length===0?t.jsx(c,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...j,memoryHistory:u,cpuHistory:y,children:[t.jsxs(p,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(p,{sx:{pt:"16px !important"},size:12,children:t.jsx(c,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(p,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(T,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:g,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(p,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(p,{sx:{pt:"16px !important"},size:12,children:t.jsx(c,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(p,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:f.runtimeConfig?.blockletMaxMemoryLimit?P.parseSize(`${f.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:g,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:m.object.isRequired,cpuHistory:m.arrayOf(m.shape({date:m.number,value:m.number})),memoryHistory:m.arrayOf(m.shape({date:m.number,value:m.number}))};const W=B(c)``;function ue(){const{t:r,locale:y}=k(),[u,j]=d.useState(6),{blocklet:i,actions:{refreshBlocklet:f}}=v(),s=d.useMemo(()=>{const n=[];return l.forEachBlockletSync(i,(o,{ancestors:e,id:I,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:l.getDisplayName(i),id:I,name:l.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);d.useEffect(()=>{f({hours:u});const n=setInterval(()=>{f({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const g=n=>z(Number(n||0),{locale:U(y)}),b=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:I,ancestors:h}=s[n];return t.jsxs(a,{sx:{display:"flex",alignItems:"center",pl:I*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(a,{sx:{ml:1},children:o}),t.jsx(E,{variant:"pin",style:{marginLeft:8},status:l.isBlockletRunning(e)?"running":e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?g(o?.uptime):t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?H(o?.memoryUsage||0):t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?`${(o?.cpuUsage||0).toFixed(1)}%`:t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(a,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(a,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?o?.pid:t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?o?.port:t.jsx(x,{title:r("common.noData"),children:"--"})}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(c,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&j(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(a,{children:t.jsx(R,{blocklet:i})}),t.jsx(a,{sx:{mt:3},children:t.jsx(N,{title:r("analytics.detail"),className:"monitor-table",locale:y,data:s,columns:b,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=B(c)``;export{ue as default};
1
+ import{V as k,bn as C,r as d,j as t,T as c,G as p,s as B,o as m,i as l,J as a,bx as D,P as x,k as H,aD as L,d7 as M,l as z,m as U}from"./index-Bek3Nxot.js";import{H as N}from"./index-BHQcEGDq.js";import{u as v}from"./blocklet-ClPWX-SV.js";import{y as S}from"./index-CDd3s2GI.js";import{x as P}from"./index-DRYJ0xIl.js";import{C as T,M as $}from"./memory-lh5QZ4zg.js";import{B as E}from"./status-B-GGRrEB.js";import{T as w,a as G}from"./ToggleButtonGroup-BwLu2zCu.js";import"./FilterList-Dphn1UXx.js";import"./CSSTransition-DinXVMZy.js";import"./emotion-cache.browser.esm-Epiq9rij.js";import"./index-CsTd8Q4H.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-Cvglsxh5.js";import"./TableSearch-DxZYknBa.js";import"./Search-CUoYhy1v.js";import"./Clear-Chg9fOPG.js";import"./MoreVert-KNjOpSoE.js";import"./base-chart-_0APPWGp.js";import"./index-BfTQCMKf.js";import"./getValidReactChildren-Cjo-LFyx.js";function R({blocklet:r,cpuHistory:y=[],memoryHistory:u=[],...j}){const{t:i}=k(),{info:f}=C(),{runtimeHistory:s}=v(),[g,b]=d.useState(null),n=d.useCallback(e=>r.status!=="running"?t.jsx(c,{children:i("blocklet.runtimeInfo.noRunning")}):e.length?null:t.jsx(S,{children:i("common.empty")}),[r.status,i]),o=d.useCallback(e=>{b(e)},[]);return s.length===0?t.jsx(c,{children:i("blocklet.runtimeInfo.noRunning")}):t.jsxs(W,{component:"div",...j,memoryHistory:u,cpuHistory:y,children:[t.jsxs(p,{className:"page-metrics",container:!0,spacing:5,children:[t.jsx(p,{sx:{pt:"16px !important"},size:12,children:t.jsx(c,{sx:{fontSize:"16px",fontWeight:"bold"},children:"CPU"})}),s?.map(e=>t.jsx(p,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx(T,{title:`${e.name} CPU`,empty:n(e.cpu),currentLoad:e.appRuntimeInfo?.cpuUsage||0,cpus:e.appRuntimeInfo?.cpus||[],history:e.cpu,onHover:o,hoverIndex:g,style:{height:150}})},`${e.key}-cpu`))]}),t.jsxs(p,{className:"page-metrics",container:!0,spacing:5,sx:{mt:1},children:[t.jsx(p,{sx:{pt:"16px !important"},size:12,children:t.jsx(c,{sx:{fontSize:"16px",fontWeight:"bold"},children:"Memory"})}),s?.map(e=>t.jsx(p,{sx:{pt:"16px !important"},size:{lg:4,md:6,sm:6,xs:12},children:t.jsx($,{title:`${e.name} Memory`,empty:n(e.memory),total:f.runtimeConfig?.blockletMaxMemoryLimit?P.parseSize(`${f.runtimeConfig.blockletMaxMemoryLimit*(e.key===r?.meta?.did?s.length-1:1)}MiB`):0,used:e.appRuntimeInfo?.memoryUsage||0,history:e.memory,onHover:o,hoverIndex:g,style:{height:150}})},`${e.key}-memory`))]})]})}R.propTypes={blocklet:m.object.isRequired,cpuHistory:m.arrayOf(m.shape({date:m.number,value:m.number})),memoryHistory:m.arrayOf(m.shape({date:m.number,value:m.number}))};const W=B(c)``;function ue(){const{t:r,locale:y}=k(),[u,j]=d.useState(6),{blocklet:i,actions:{refreshBlocklet:f}}=v(),s=d.useMemo(()=>{const n=[];return l.forEachBlockletSync(i,(o,{ancestors:e,id:I,level:h})=>{o?.meta?.did&&o.meta.did!==i.meta.did&&n.push({type:"blocklet",groupId:i.meta.did,groupName:l.getDisplayName(i),id:I,name:l.getDisplayName(o,!0),blocklet:i,component:o,level:h-1>=0?h-1:0,runtimeInfo:o.runtimeInfo,ancestors:e})}),n},[i]);d.useEffect(()=>{f({hours:u});const n=setInterval(()=>{f({hours:u})},1e3*10);return()=>{clearInterval(n)}},[u]);const g=n=>z(Number(n||0),{locale:U(y)}),b=[{label:r("common.name"),name:"name",options:{customBodyRenderLite(n){const{name:o,component:e,level:I,ancestors:h}=s[n];return t.jsxs(a,{sx:{display:"flex",alignItems:"center",pl:I*2},children:[t.jsx(D,{size:20,blocklet:e,ancestors:h}),t.jsx(a,{sx:{ml:1},children:o}),t.jsx(E,{variant:"pin",style:{marginLeft:8},status:l.isBlockletRunning(e)?"running":e.status,source:e.source,progress:e.progress})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?g(o?.uptime):t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?H(o?.memoryUsage||0):t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?`${(o?.cpuUsage||0).toFixed(1)}%`:t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("analytics.runtime"),name:"runtimeInfo.runtime",options:{customBodyRenderLite(n){const{runtimeInfo:o}=s[n];return o?.uptime?t.jsxs(a,{sx:{display:"flex",alignItems:"center"},children:[t.jsx(L,{icon:o?.runningDocker?"catppuccin:docker-ignore":"logos:nodejs-icon"}),t.jsx(a,{sx:{ml:1},children:o?.runningDocker?"Docker":"Nodejs"})]}):null}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?o?.pid:t.jsx(x,{title:r("common.noData"),children:"--"})}}},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port",options:{customBodyRenderLite(n){const{runtimeInfo:o,component:e}=s[n];return l.isBlockletRunning(e)?o?.port:t.jsx(x,{title:r("common.noData"),children:"--"})}}}];return t.jsxs(O,{component:"div",children:[t.jsxs(a,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2},children:[t.jsx(c,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:2},children:r("analytics.trend")}),t.jsx(w,{size:"small",exclusive:!0,value:u,onChange:(n,o)=>{M(o)&&j(o)},children:[1,3,6,12,24].map(n=>t.jsxs(G,{value:n,children:[n,"H"]},n))})]}),t.jsx(a,{children:t.jsx(R,{blocklet:i})}),t.jsx(a,{sx:{mt:3},children:t.jsx(N,{title:r("analytics.detail"),className:"monitor-table",locale:y,data:s,columns:b,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]})}const O=B(c)``;export{ue as default};
@@ -0,0 +1 @@
1
+ import{r}from"./without-wallet-qfmn1VhQ.js";var e=r();export{e as s};
@@ -0,0 +1 @@
1
+ import{hk as o}from"./index-Bek3Nxot.js";const e=o();export{e as b};
@@ -1 +1 @@
1
- import{r as p,p as s,i as a,j as o,o as m}from"./index-BAMKzu46.js";import{T as c,M as n,t as u}from"./table-icons-BYFzOJU6.js";import"./FilterList-DjsH6fTI.js";import"./CSSTransition-1BwLUUYd.js";import"./emotion-cache.browser.esm-4wp097w6.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-BNw9NITo.js";import"./redux-DfszZyTl.js";import"./useThemeProps-BgZ7aDx7.js";import"./html-title-DdUp_-5h.js";import"./Add-DSHUmuh2.js";import"./Delete-9ESwe_tH.js";import"./Clear-BBluvTPc.js";import"./Edit-D1Klg2r6.js";import"./ChevronRight-CtPp_MpO.js";import"./ChevronLeft-CaPH--HT.js";import"./Search-DsDROQ8Z.js";import"./ArrowDropDown-X9T3XBZa.js";function d({blocklet:i,...r}){const{t}=p.useContext(s),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
1
+ import{r as p,p as s,i as a,j as o,o as m}from"./index-Bek3Nxot.js";import{T as c,M as n,t as u}from"./table-icons-Xs4hP9Pw.js";import"./FilterList-Dphn1UXx.js";import"./CSSTransition-DinXVMZy.js";import"./emotion-cache.browser.esm-Epiq9rij.js";import"./index-DBii9-f-.js";import"./typeof-QjJsDpFa.js";import"./raf-schd.esm-Bo9SYHL8.js";import"./redux-DfszZyTl.js";import"./useThemeProps-BS48y1B2.js";import"./html-title-BpNgi7iw.js";import"./Add-b-MNk7UB.js";import"./Delete-B306vkSB.js";import"./Clear-Chg9fOPG.js";import"./Edit-DFmlgA7E.js";import"./ChevronRight-BKFXnJ7g.js";import"./ChevronLeft-Byy2_Dj8.js";import"./Search-CUoYhy1v.js";import"./ArrowDropDown-lsZjWbH5.js";function d({blocklet:i,...r}){const{t}=p.useContext(s),e=a.getBlockletServices(i);if(e.length===0)return o.jsx("div",{children:t("blocklet.noService")});const l=[{title:t("common.name"),field:"name"},{title:t("common.protocol"),field:"protocol"},{title:t("common.port"),field:"port"},{title:t("blocklet.upstreamPort"),field:"upstreamPort"}];return o.jsx(c,{...r,children:o.jsx(n,{columns:l,icons:{...u},options:{sorting:!1,emptyRowsWhenPaging:!1,actionsColumnIndex:-1,tableLayout:"auto",maxBodyHeight:"100%",search:!1,pageSize:1e3,pageSizeOptions:[1e3]},localization:{body:{emptyDataSourceMessage:t("blocklet.noService")}},data:e})})}d.propTypes={blocklet:m.object.isRequired};export{d as default};
@@ -1 +1 @@
1
- import{j as r,T as o,P as p,o as i}from"./index-BAMKzu46.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
1
+ import{j as r,T as o,P as p,o as i}from"./index-Bek3Nxot.js";function s(e,n=10){return typeof e=="string"&&e?.length>n?`${e.slice(0,n-1)}...${e.slice(-2)}`:e}function u({children:e,maxLength:n=10,sx:t=null,hiddenTip:l=!1}){return e?.length<=n?r.jsx(o,{sx:t,children:e}):l?r.jsx(o,{sx:t,children:s(e,n)}):r.jsx(p,{title:e,placement:"top",children:r.jsx(o,{sx:t,children:s(e,n)})})}u.propTypes={children:i.string.isRequired,maxLength:i.number,sx:i.object,hiddenTip:i.bool};export{u as S};
@@ -1 +1 @@
1
- import{j as e,Q as S,R as I,S as O,U as c,J as p,bk as T,T as i,bp as z,fM as M,gb as W,bi as B,o as s}from"./index-BAMKzu46.js";function C({fullWidth:m=!1,multiple:a=!1,required:o=!1,label:x="",placeholder:j="",options:t=[],helperText:b="",error:v=!1,margin:u="",size:f,slotProps:g={},...h}){const y=t.find(l=>l.value===h.value)?.title;return e.jsxs(S,{margin:u,fullWidth:m,error:v,children:[e.jsx(I,{size:f,children:`${x}${o?"*":""}`}),e.jsxs(O,{multiple:a,sx:{"& .MuiInputBase-input":{width:"calc(100% - 46px)","& > .MuiBox-root:first-of-type":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},input:e.jsx(W,{defaultValue:y,sx:{flex:1},required:o,label:x,inputProps:{margin:u},size:f}),renderValue:l=>{if(a)return e.jsx(p,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(r=>{const d=t.find(w=>w.value===r);return d&&d.title&&e.jsx(M,{size:"small",label:d.title},r)})});const n=t.find(r=>r.value===l);return n&&n.title&&e.jsxs(p,{children:[e.jsx(i,{component:"span",children:n.title}),e.jsx(i,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:n.description})]})},IconComponent:l=>e.jsx(z,{...l,width:20,height:20}),...h,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!o&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsx(c,{value:l.value,disabled:l.disabled||!1,children:e.jsxs(p,{sx:T({display:"flex",flexDirection:"column"},g?.optionItem?.sx),children:[e.jsx(i,{component:"span",children:l.title}),l.description&&e.jsx(i,{component:"span",variant:"body2",sx:{maxWidth:510,fontSize:12,whiteSpace:"normal",color:"text.secondary"},children:l.description})]})},l.value))]}),e.jsx(B,{children:b})]})}C.propTypes={error:s.bool,required:s.bool,multiple:s.bool,fullWidth:s.bool,label:s.string,placeholder:s.string,options:s.array,helperText:s.string,margin:s.string,size:s.string,textDirection:s.oneOf(["row","column"]),slotProps:s.object};export{C as S};
1
+ import{j as e,Q as S,R as I,S as O,U as c,J as p,bk as T,T as i,bp as z,fN as W,gc as B,bi as C,o as s}from"./index-Bek3Nxot.js";function M({fullWidth:m=!1,multiple:a=!1,required:o=!1,label:x="",placeholder:j="",options:t=[],helperText:b="",error:v=!1,margin:u="",size:f,slotProps:g={},...h}){const y=t.find(l=>l.value===h.value)?.title;return e.jsxs(S,{margin:u,fullWidth:m,error:v,children:[e.jsx(I,{size:f,children:`${x}${o?"*":""}`}),e.jsxs(O,{multiple:a,sx:{"& .MuiInputBase-input":{width:"calc(100% - 46px)","& > .MuiBox-root:first-of-type":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},input:e.jsx(B,{defaultValue:y,sx:{flex:1},required:o,label:x,inputProps:{margin:u},size:f}),renderValue:l=>{if(a)return e.jsx(p,{sx:{display:"flex",flexWrap:"wrap",gap:.5},children:l.map(r=>{const d=t.find(w=>w.value===r);return d&&d.title&&e.jsx(W,{size:"small",label:d.title},r)})});const n=t.find(r=>r.value===l);return n&&n.title&&e.jsxs(p,{children:[e.jsx(i,{component:"span",children:n.title}),e.jsx(i,{component:"span",variant:"body2",sx:{marginLeft:1,color:"text.secondary"},children:n.description})]})},IconComponent:l=>e.jsx(z,{...l,width:20,height:20}),...h,children:[e.jsx(c,{disabled:!0,children:e.jsx("em",{children:j})}),!o&&!a&&e.jsx(c,{value:"",children:"None"}),t.map(l=>l&&l.value&&e.jsx(c,{value:l.value,disabled:l.disabled||!1,children:e.jsxs(p,{sx:T({display:"flex",flexDirection:"column"},g?.optionItem?.sx),children:[e.jsx(i,{component:"span",children:l.title}),l.description&&e.jsx(i,{component:"span",variant:"body2",sx:{maxWidth:510,fontSize:12,whiteSpace:"normal",color:"text.secondary"},children:l.description})]})},l.value))]}),e.jsx(C,{children:b})]})}M.propTypes={error:s.bool,required:s.bool,multiple:s.bool,fullWidth:s.bool,label:s.string,placeholder:s.string,options:s.array,helperText:s.string,margin:s.string,size:s.string,textDirection:s.oneOf(["row","column"]),slotProps:s.object};export{M as S};
@@ -1 +1 @@
1
- import{b as u,g4 as l,y as s,z as f,b9 as i,eD as m}from"./index-BAMKzu46.js";import{a as c}from"./api-D8UyBv4i.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function h(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function y(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function g(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=h(t),e.name=await g(t),e.url=y(t),e.endpoint=t,e}async function k(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,g as d,h as e,U as f,k as g,P as h,_ as i,C as j};
1
+ import{b as u,g5 as l,y as s,z as f,b9 as i,eE as m}from"./index-Bek3Nxot.js";import{a as c}from"./api-eF9wxSJp.js";function P(t){const e=t.replace(/\/api\/space\/.+/,""),a=t.replace(/\/$/,"").split("/"),r=a.at(-4),n=a.at(-2);return s(e,"space",r,"apps",n,`explorer?key=/apps/${n}/.did-objects/${n}/`)}function U(t){const e=t.replace(/\/api\/space\/.+/,""),r=t.replace(/\/$/,"").split("/").at(-4);return s(e,"space",r)}function h(t){return t.replace(/\/$/,"").split("/").at(-4)}async function C(t){try{if(!i(t))return!1;const{headers:e}=await c.head(t,{timeout:5e3});return e["x-listable"]==="true"&&e["x-readable"]==="true"&&e["x-writeable"]==="true"}catch(e){return console.error(e),!1}}function L(t){return t?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT)?.value||""}function y(t){return t?.replace(/\/api\/space\/.+/,"")}function E(t){const e=new URL(t);return s(e.origin,e.pathname)}async function _(t){try{if(!i(t))return!1;const e=E(t),a=s(e,"space/api/did/one-click-authorization/token"),{status:r,data:n}=await c.get(a,{timeout:5e3});return r===200&&m(n)}catch(e){return console.error(e),!1}}async function g(t,{timeout:e}={timeout:3e3}){try{if(!i(t))return"";const{headers:a}=await c.head(t,{timeout:e}),r=a["x-space-name"];return r?decodeURIComponent(r):""}catch(a){return console.error(a),""}}const A=t=>t?.configs?.find(e=>e.key===u.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_SPACE_ENDPOINT)?.value||null;async function b(t){const e={};return e.did=h(t),e.name=await g(t),e.url=y(t),e.endpoint=t,e}async function k(t,e={timeout:3e4,withSearchParams:!0}){if(!l(t))throw new Error(`url(${t}) must be a string`);const a=t.startsWith("http")?t:`https://${t}`,r=new URL(a),{data:n}=await c.get(s(r.origin,"/__blocklet__.js?type=json"),{timeout:e.timeout}),o=n.componentMountPoints.findLast(d=>d.did==="z8iZnaYxnkMD5AKRjTKiCb8pQr1ut8UantAcf")?.mountPoint;if(!o)throw new Error(`MountPoint(${o}) not found`);const p=s(r.origin,o);return e.withSearchParams&&r.searchParams.get("spaceDid")?f(p,{spaceDid:r.searchParams.get("spaceDid")}):p}export{L as a,A as b,b as c,g as d,h as e,U as f,k as g,P as h,_ as i,C as j};
@@ -1,4 +1,4 @@
1
- import{s as b,j as e,g as j,o,r as C,p as R,i as T,P as y,J as c,C as k}from"./index-BAMKzu46.js";const x={success:"#3ab39d",error:"#D0021B"},w="10px",v=b.div`
1
+ import{s as b,j as e,g as j,o,r as C,p as R,i as T,P as y,J as c,C as k}from"./index-Bek3Nxot.js";const x={success:"#3ab39d",error:"#D0021B"},w="10px",v=b.div`
2
2
  display: inline-block;
3
3
  min-width: ${s=>s.size||w};
4
4
  min-height: ${s=>s.size||w};
@@ -1 +1 @@
1
- import{aF as P,j as u,ht as b,fz as j,cI as d,V as x,r as k,C as q,P as w,o as $}from"./index-BAMKzu46.js";import{u as V}from"./index-7mVca6L9.js";import{E as R}from"./ErrorOutline-BoB93pXx.js";import{r as E}from"./omit-DisUFHh2.js";import{r as I}from"./index-Beuvm8_y.js";const z=P(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}));var a={},h;function D(){if(h)return a;h=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=S,a.verifyVault=_;const v=l(E),g=l(b()),n=I(),s=j();async function c(e,p){const o=(0,g.default)(e),y=await p.sign(o);return{...e,$signature:y}}function S(e,p){return e.$signature?p.verify((0,g.default)((0,v.default)(e,"$signature")),e.$signature):Promise.resolve(!1)}async function _(e,p,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=d.from(`vault:${p}`);for(let i=0;i<=t;i++)f=d.concat([f,d.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=d.concat([f,d.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var K=D();function T({vaults:l,appPid:v}){const{t:g}=x(),[n,s]=V({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{K.verifyVault(l,v,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,v,s]),n.verifying?u.jsx(q,{}):n.verified?u.jsx(w,{title:g("blocklet.config.vault.verified"),children:u.jsx(z,{fontSize:"small",color:"success"})}):u.jsx(w,{title:n.error,children:u.jsx(R,{color:"error"})})}T.propTypes={vaults:$.array.isRequired,appPid:$.string.isRequired};export{T as V};
1
+ import{aF as P,j as u,hu as b,fA as j,cI as d,V as x,r as k,C as q,P as w,o as $}from"./index-Bek3Nxot.js";import{u as V}from"./index-B31H3tAk.js";import{E as R}from"./ErrorOutline-CjKNiJFO.js";import{r as E}from"./omit-C11lcOpj.js";import{r as I}from"./index-D_L4A5jU.js";const D=P(u.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm-1.06 13.54L7.4 12l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41z"}));var a={},h;function K(){if(h)return a;h=1;var l=a&&a.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(a,"__esModule",{value:!0}),a.signResponse=c,a.verifyResponse=S,a.verifyVault=_;const v=l(E),g=l(b()),n=I(),s=j();async function c(e,p){const o=(0,g.default)(e),y=await p.sign(o);return{...e,$signature:y}}function S(e,p){return e.$signature?p.verify((0,g.default)((0,v.default)(e,"$signature")),e.$signature):Promise.resolve(!1)}async function _(e,p,o=!1){if(!Array.isArray(e)||e.length===0){if(o)throw new Error("vaults list is empty");return""}for(let t=1;t<e.length;t++)if(e[t].at<=e[t-1].at){if(o)throw new Error("vaults are not in ascending order");return""}if(new Set(e.map(t=>t.did)).size!==e.length){if(o)throw new Error("vaults list has duplicate vaults");return""}for(let t=0;t<e.length;t++){const r=e[t];if(!(0,s.isFromPublicKey)(r.did,r.pk)){if(o)throw new Error(`vault did and pk mismatch: ${r.did}(${r.pk})`);return""}let f=d.from(`vault:${p}`);for(let i=0;i<=t;i++)f=d.concat([f,d.from(`:${e[i].did}`)]);if(!r.approverSig){if(o)throw new Error(`vault approve signature missing for ${r.did}`);return""}try{let i;if(t>0){const m=e[t-1];i=(0,n.fromPublicKey)(m.pk,(0,s.toTypeInfo)(m.did))}else{if(!r.approverPk||!r.approverDid||!(0,s.isFromPublicKey)(r.approverDid,r.approverPk)){if(o)throw new Error(`approver config missing for ${r.did}`);return""}i=(0,n.fromPublicKey)(r.approverPk,(0,s.toTypeInfo)(r.approverDid))}if(await i.verify(f,r.approverSig)===!1){if(o)throw new Error(`signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault approve verify failed: ${i.message}`);return""}if(!r.sig){if(o)throw new Error(`vault commit signature missing for ${r.did}`);return""}try{const i=(0,n.fromPublicKey)(r.pk,(0,s.toTypeInfo)(r.did));if(r.approverSig&&(f=d.concat([f,d.from(`:${r.approverSig}`)])),await i.verify(f,r.sig)===!1){if(o)throw new Error(`commit signature verify failed for ${r.did}`);return""}}catch(i){if(console.error(i),o)throw new Error(`vault commit verify failed: ${i.message}`);return""}}return e[e.length-1].did}return a}var T=K();function z({vaults:l,appPid:v}){const{t:g}=x(),[n,s]=V({verified:!1,verifying:!0,error:""});return k.useEffect(()=>{T.verifyVault(l,v,!0).then(c=>{s({verified:!!c,verifying:!1})}).catch(c=>{s({verified:!1,verifying:!1,error:c.message})})},[l,v,s]),n.verifying?u.jsx(q,{}):n.verified?u.jsx(w,{title:g("blocklet.config.vault.verified"),children:u.jsx(D,{fontSize:"small",color:"success"})}):u.jsx(w,{title:n.error,children:u.jsx(R,{color:"error"})})}z.propTypes={vaults:$.array.isRequired,appPid:$.string.isRequired};export{z as V};
@@ -1,4 +1,4 @@
1
- import{b$ as z,c0 as R,r as N,c1 as D,cf as k,b8 as h,c3 as O,j as s,cg as l,c4 as U,bZ as u,ch as E,av as v,ci as F,gq as I,gr as V,aU as L,br as X,o as A,s as q}from"./index-BAMKzu46.js";function Z(t){return R("MuiSwitch",t)}const e=z("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_=t=>{const{classes:a,edge:o,size:c,color:n,checked:b,disabled:g}=t,w={root:["root",o&&`edge${l(o)}`,`size${l(c)}`],switchBase:["switchBase",`color${l(n)}`,b&&"checked",g&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},m=U(w,Z,a);return{...a,...m}},G=h("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.edge&&a[`edge${l(o.edge)}`],a[`size${l(o.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${e.thumb}`]:{width:16,height:16},[`& .${e.switchBase}`]:{padding:4,[`&.${e.checked}`]:{transform:"translateX(16px)"}}}}]}),H=h(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.switchBase,{[`& .${e.input}`]:a.input},o.color!=="default"&&a[`color${l(o.color)}`]]}})(u(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${e.checked}`]:{transform:"translateX(20px)"},[`&.${e.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${e.checked} + .${e.track}`]:{opacity:.5},[`&.${e.disabled} + .${e.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${e.input}`]:{left:"-100%",width:"300%"}})),u(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(F(["light"])).map(([a])=>({props:{color:a},style:{[`&.${e.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${e.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?I(t.palette[a].main,.62):V(t.palette[a].main,.55)}`}},[`&.${e.checked} + .${e.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]}))),J=h("span",{name:"MuiSwitch",slot:"Track"})(u(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),K=h("span",{name:"MuiSwitch",slot:"Thumb"})(u(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Q=N.forwardRef(function(a,o){const c=D({props:a,name:"MuiSwitch"}),{className:n,color:b="primary",edge:g=!1,size:w="medium",sx:m,slots:d={},slotProps:i={},...$}=c,r={...c,color:b,edge:g,size:w},p=_(r),S={slots:d,slotProps:i},[C,M]=k("root",{className:O(p.root,n),elementType:G,externalForwardedProps:S,ownerState:r,additionalProps:{sx:m}}),[B,P]=k("thumb",{className:p.thumb,elementType:K,externalForwardedProps:S,ownerState:r}),f=s.jsx(B,{...P}),[j,T]=k("track",{className:p.track,elementType:J,externalForwardedProps:S,ownerState:r});return s.jsxs(C,{...M,children:[s.jsx(H,{type:"checkbox",icon:f,checkedIcon:f,ref:o,ownerState:r,...$,classes:{...p,root:p.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...i.switchBase&&{root:typeof i.switchBase=="function"?i.switchBase(r):i.switchBase},...i.input&&{input:typeof i.input=="function"?i.input(r):i.input}}}),s.jsx(j,{...T})]})}),x=X(t=>s.jsx(Q,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function y({labelProps:t=null,...a}){return t?s.jsx(L,{control:s.jsx(x,{...a}),...t}):s.jsx(x,{...a})}y.propTypes={labelProps:A.object};function W({labelProps:t,className:a,style:o,...c}){const n={...t,labelPlacement:t?.labelPlacement||"start"};return s.jsx(Y,{className:a,style:o,labelPlacement:t?.labelPlacement,children:s.jsx(y,{labelProps:n,...c})})}W.propTypes=y.propTypes;const Y=q.div`
1
+ import{b$ as z,c0 as R,r as N,c1 as D,cf as k,b8 as h,c3 as O,j as s,cg as l,c4 as U,bZ as u,ch as E,av as v,ci as F,gr as I,gs as V,aU as L,br as X,o as A,s as Z}from"./index-Bek3Nxot.js";function _(t){return R("MuiSwitch",t)}const e=z("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),q=t=>{const{classes:a,edge:o,size:c,color:n,checked:b,disabled:g}=t,w={root:["root",o&&`edge${l(o)}`,`size${l(c)}`],switchBase:["switchBase",`color${l(n)}`,b&&"checked",g&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},m=U(w,_,a);return{...a,...m}},G=h("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.root,o.edge&&a[`edge${l(o.edge)}`],a[`size${l(o.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${e.thumb}`]:{width:16,height:16},[`& .${e.switchBase}`]:{padding:4,[`&.${e.checked}`]:{transform:"translateX(16px)"}}}}]}),H=h(E,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,a)=>{const{ownerState:o}=t;return[a.switchBase,{[`& .${e.input}`]:a.input},o.color!=="default"&&a[`color${l(o.color)}`]]}})(u(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${e.checked}`]:{transform:"translateX(20px)"},[`&.${e.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${e.checked} + .${e.track}`]:{opacity:.5},[`&.${e.disabled} + .${e.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${e.input}`]:{left:"-100%",width:"300%"}})),u(({theme:t})=>({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(F(["light"])).map(([a])=>({props:{color:a},style:{[`&.${e.checked}`]:{color:(t.vars||t).palette[a].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[a].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:v(t.palette[a].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${e.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${a}DisabledColor`]:`${t.palette.mode==="light"?I(t.palette[a].main,.62):V(t.palette[a].main,.55)}`}},[`&.${e.checked} + .${e.track}`]:{backgroundColor:(t.vars||t).palette[a].main}}}))]}))),J=h("span",{name:"MuiSwitch",slot:"Track"})(u(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),K=h("span",{name:"MuiSwitch",slot:"Thumb"})(u(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),Q=N.forwardRef(function(a,o){const c=D({props:a,name:"MuiSwitch"}),{className:n,color:b="primary",edge:g=!1,size:w="medium",sx:m,slots:d={},slotProps:i={},...$}=c,r={...c,color:b,edge:g,size:w},p=q(r),S={slots:d,slotProps:i},[C,M]=k("root",{className:O(p.root,n),elementType:G,externalForwardedProps:S,ownerState:r,additionalProps:{sx:m}}),[B,P]=k("thumb",{className:p.thumb,elementType:K,externalForwardedProps:S,ownerState:r}),f=s.jsx(B,{...P}),[j,T]=k("track",{className:p.track,elementType:J,externalForwardedProps:S,ownerState:r});return s.jsxs(C,{...M,children:[s.jsx(H,{type:"checkbox",icon:f,checkedIcon:f,ref:o,ownerState:r,...$,classes:{...p,root:p.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...i.switchBase&&{root:typeof i.switchBase=="function"?i.switchBase(r):i.switchBase},...i.input&&{input:typeof i.input=="function"?i.input(r):i.input}}}),s.jsx(j,{...T})]})}),x=X(t=>s.jsx(Q,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...t}))(({theme:t})=>({width:42,height:26,padding:0,"& .MuiSwitch-switchBase":{padding:0,margin:2,transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:t.palette.primary.main,opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-focusVisible .MuiSwitch-thumb":{color:t.palette.primary.main,border:"6px solid #fff"},"&.Mui-disabled .MuiSwitch-thumb":{color:t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t.palette.mode==="light"?.7:.3}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:22,height:22},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:t.palette.grey[200],opacity:1,transition:t.transitions.create(["background-color"],{duration:500})}}));function y({labelProps:t=null,...a}){return t?s.jsx(L,{control:s.jsx(x,{...a}),...t}):s.jsx(x,{...a})}y.propTypes={labelProps:A.object};function W({labelProps:t,className:a,style:o,...c}){const n={...t,labelPlacement:t?.labelPlacement||"start"};return s.jsx(Y,{className:a,style:o,labelPlacement:t?.labelPlacement,children:s.jsx(y,{labelProps:n,...c})})}W.propTypes=y.propTypes;const Y=Z.div`
2
2
  max-width: ${({labelPlacement:t})=>t==="end"?"100%":"300px"};
3
3
  > label {
4
4
  display: flex;
@@ -1,4 +1,4 @@
1
- import{aF as lt,j as A,iE as ne,di as ve,eB as Be,bd as ki,be as ke,ey as zt,eA as rt,jp as hh,b$ as Fe,c0 as Ne,eN as we,r as O,d8 as mh,b8 as ae,fY as q,c4 as $e,T as _t,av as Un,jq as gh,cj as Ri,de as na,hx as yd,eO as Cd,ck as ar,bY as bh,f as aa,a4 as ur,cg as vh,cl as Dd,ej as yh,o as Fl,G as Ch,bA as Vr,h1 as Dh,gh as wh,hy as Ph,df as Ea,eK as Th,eI as xh,gj as Sh,ga as kh,hz as Nl,h0 as Rh,E as Ei,fG as $l,iF as Mi,eM as Eh,s as Mh,_ as Oh}from"./index-BAMKzu46.js";import{b as re,S as wd,a as Wt,T as At,c as pt,h as nn,i as oa,j as ze,U as ia,W as la,X as Oi,Y as sa,Z as Pd,_ as ua,g as ca,B as _h,M as Ih,A as Ah,C as Lh,I as jh,F as Bh,$ as Fh,a0 as Nh,a1 as $h,l as Vh,k as Dt,J as Ct,w as da,n as Ut,t as Td,v as _i,q as xd,a2 as qh,o as zh,p as Wh,E as cr,z as Ht,a3 as Uh,a4 as Hh,a5 as Gh,a6 as Yh,a7 as Kh,a8 as Qh,m as an,x as Xh,s as Jh,a9 as Zh,aa as em,D as Sd,R as tm,L as rm,N as nm,y as am,ab as om,ac as im,P as lm,ad as sm,ae as um,O as cm,G as dm,V as fm}from"./FilterList-DjsH6fTI.js";import{r as Pe,A as Ii,B as nt,C as Hn,D as fi,t as Ce,E as kd,F as Rd,c as pi,o as pm,G as St,H as hm,I as mm,J as hi,K as Ed,L as gm,M as bm,N as Md,O as Ai,P as Vl,Q as vm,R as ql,S as ym,T as Cm,p as Dm,a as zl,b as wm,j as Ma,h as Wl,m as Pm,k as hn,u as Kt,i as Tm,n as xm,g as mn,f as Oa,d as gn,s as _a,e as Ia,x as Sm,z as km,q as Rm,l as Em,v as Mm,w as Om,U as _m,y as Im,V as Am,W as Lm}from"./index-DBii9-f-.js";import{_ as jm}from"./typeof-QjJsDpFa.js";import{f as Bm,d as Ul,c as Fm,b as Re,_ as xe,a as Se,u as Te,g as le,r as Yr,w as Gn,h as Od,i as Gt,j as _d,k as Nm,l as $m,o as mi}from"./raf-schd.esm-BNw9NITo.js";import{_ as te,b as Hl,c as Vm,a as qm,d as zm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-BgZ7aDx7.js";import{C as Wm}from"./CSSTransition-1BwLUUYd.js";import{a as Gl,b as Um,t as Hm}from"./html-title-DdUp_-5h.js";import{A as Gm}from"./Add-DSHUmuh2.js";import{D as Ym}from"./Delete-9ESwe_tH.js";import{C as Yl}from"./Clear-BBluvTPc.js";import{E as Km}from"./Edit-D1Klg2r6.js";import{N as Kl}from"./ChevronRight-CtPp_MpO.js";import{P as Qm}from"./ChevronLeft-CaPH--HT.js";import{S as Xm}from"./Search-DsDROQ8Z.js";import{A as Jm}from"./ArrowDropDown-X9T3XBZa.js";const Zm=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),eg=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),tg=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),rg=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),ng=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var ag=36e5;function og(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*ag)}var ig=864e5;function lg(e,t){Pe(2,arguments);var r=Hn(e),a=Hn(t),n=r.getTime()-fi(r),o=a.getTime()-fi(a);return Math.round((n-o)/ig)}var sg=6e4;function ug(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*sg)}function cg(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*1e3)}function Wr(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function dg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()-a.getFullYear()}function Ql(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Id(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Ql(r,a),o=Math.abs(lg(r,a));r.setDate(r.getDate()-n*o);var i=+(Ql(r,a)===-n),l=n*(o-i);return l===0?0:l}function fa(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Xl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fg="trunc";function on(e){return e?Xl[e]:Xl[fg]}function pg(e,t,r){Pe(2,arguments);var a=fa(e,t)/kd;return on(void 0)(a)}function hg(e,t,r){Pe(2,arguments);var a=fa(e,t)/Rd;return on(void 0)(a)}function gi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function mg(e){Pe(1,arguments);var t=Ce(e);return gi(t).getTime()===pi(t).getTime()}function Ad(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(pm(r,a)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);var l=Wr(r,a)===-n;mg(Ce(e))&&o===1&&Wr(e,a)===1&&(l=!1),i=n*(o-Number(l))}return i===0?0:i}function gg(e,t,r){Pe(2,arguments);var a=Ad(e,t)/3;return on(void 0)(a)}function bg(e,t,r){Pe(2,arguments);var a=fa(e,t)/1e3;return on(void 0)(a)}function vg(e,t,r){Pe(2,arguments);var a=Id(e,t)/7;return on(void 0)(a)}function yg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(dg(r,a));r.setFullYear(1584),a.setFullYear(1584);var i=Wr(r,a)===-n,l=n*(o-Number(i));return l===0?0:l}function Cg(e,t){var r;Pe(1,arguments);var a=e||{},n=Ce(a.start),o=Ce(a.end),i=o.getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var l=[],u=n;u.setHours(0,0,0,0);var s=Number((r=void 0)!==null&&r!==void 0?r:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)l.push(Ce(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function Dg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function wg(e,t){var r,a;Pe(1,arguments);var n=Ce(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((a=t?.representation)!==null&&a!==void 0?a:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",u="",s=o==="extended"?"-":"",f=o==="extended"?":":"";if(i!=="time"){var d=St(n.getDate(),2),c=St(n.getMonth()+1,2),b=St(n.getFullYear(),4);l="".concat(b).concat(s).concat(c).concat(s).concat(d)}if(i!=="date"){var C=n.getTimezoneOffset();if(C!==0){var g=Math.abs(C),y=St(Math.floor(g/60),2),m=St(g%60,2),p=C<0?"+":"-";u="".concat(p).concat(y,":").concat(m)}else u="Z";var h=St(n.getHours(),2),v=St(n.getMinutes(),2),S=St(n.getSeconds(),2),w=l===""?"":"T",P=[h,v,S].join(f);l="".concat(l).concat(w).concat(P).concat(u)}return l}function Pg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Tg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function xg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function Sg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function kg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getTime()===a.getTime()}function Jl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bm(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1
+ import{aF as lt,j as A,iF as ne,di as ve,eC as Be,bd as ki,be as ke,ez as zt,eB as rt,jq as hh,b$ as Fe,c0 as Ne,eO as we,r as O,d8 as mh,b8 as ae,fZ as q,c4 as $e,T as _t,av as Un,jr as gh,cj as Ri,de as na,hy as yd,eP as Cd,ck as ar,bY as bh,f as aa,a4 as ur,cg as vh,cl as Dd,ek as yh,o as Fl,G as Ch,bA as Vr,h2 as Dh,gi as wh,hz as Ph,df as Ea,eL as Th,eJ as xh,gk as Sh,gb as kh,hA as Nl,h1 as Rh,E as Ei,fH as $l,iG as Mi,eN as Eh,s as Mh,_ as Oh}from"./index-Bek3Nxot.js";import{b as re,S as wd,a as Wt,T as At,c as pt,h as nn,i as oa,j as ze,U as ia,W as la,X as Oi,Y as sa,Z as Pd,_ as ua,g as ca,B as _h,M as Ih,A as Ah,C as Lh,I as jh,F as Bh,$ as Fh,a0 as Nh,a1 as $h,l as Vh,k as Dt,J as Ct,w as da,n as Ut,t as Td,v as _i,q as xd,a2 as qh,o as zh,p as Wh,E as cr,z as Ht,a3 as Uh,a4 as Hh,a5 as Gh,a6 as Yh,a7 as Kh,a8 as Qh,m as an,x as Xh,s as Jh,a9 as Zh,aa as em,D as Sd,R as tm,L as rm,N as nm,y as am,ab as om,ac as im,P as lm,ad as sm,ae as um,O as cm,G as dm,V as fm}from"./FilterList-Dphn1UXx.js";import{r as Pe,A as Ii,B as nt,C as Hn,D as fi,t as Ce,E as kd,F as Rd,c as pi,o as pm,G as St,H as hm,I as mm,J as hi,K as Ed,L as gm,M as bm,N as Md,O as Ai,P as Vl,Q as vm,R as ql,S as ym,T as Cm,p as Dm,a as zl,b as wm,j as Ma,h as Wl,m as Pm,k as hn,u as Kt,i as Tm,n as xm,g as mn,f as Oa,d as gn,s as _a,e as Ia,x as Sm,z as km,q as Rm,l as Em,v as Mm,w as Om,U as _m,y as Im,V as Am,W as Lm}from"./index-DBii9-f-.js";import{_ as jm}from"./typeof-QjJsDpFa.js";import{f as Bm,d as Ul,c as Fm,b as Re,_ as xe,a as Se,u as Te,g as le,r as Yr,w as Gn,h as Od,i as Gt,j as _d,k as Nm,l as $m,o as mi}from"./raf-schd.esm-Bo9SYHL8.js";import{_ as te,b as Hl,c as Vm,a as qm,d as zm}from"./redux-DfszZyTl.js";import{u as Le}from"./useThemeProps-BS48y1B2.js";import{C as Wm}from"./CSSTransition-DinXVMZy.js";import{a as Gl,b as Um,t as Hm}from"./html-title-BpNgi7iw.js";import{A as Gm}from"./Add-b-MNk7UB.js";import{D as Ym}from"./Delete-B306vkSB.js";import{C as Yl}from"./Clear-Chg9fOPG.js";import{E as Km}from"./Edit-DFmlgA7E.js";import{N as Kl}from"./ChevronRight-BKFXnJ7g.js";import{P as Qm}from"./ChevronLeft-Byy2_Dj8.js";import{S as Xm}from"./Search-CUoYhy1v.js";import{A as Jm}from"./ArrowDropDown-lsZjWbH5.js";const Zm=lt(A.jsx("path",{d:"m15.96 10.29-2.75 3.54-1.96-2.36L8.5 15h11zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2m0 16H7V3h14z"})),eg=lt(A.jsx("path",{d:"M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),tg=lt(A.jsx("path",{d:"M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),rg=lt(A.jsx("path",{d:"M19 13H5v-2h14z"})),ng=lt(A.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}));var ag=36e5;function og(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*ag)}var ig=864e5;function lg(e,t){Pe(2,arguments);var r=Hn(e),a=Hn(t),n=r.getTime()-fi(r),o=a.getTime()-fi(a);return Math.round((n-o)/ig)}var sg=6e4;function ug(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*sg)}function cg(e,t){Pe(2,arguments);var r=nt(t);return Ii(e,r*1e3)}function Wr(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=r.getTime()-a.getTime();return n<0?-1:n>0?1:n}function dg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()-a.getFullYear()}function Ql(e,t){var r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}function Id(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Ql(r,a),o=Math.abs(lg(r,a));r.setDate(r.getDate()-n*o);var i=+(Ql(r,a)===-n),l=n*(o-i);return l===0?0:l}function fa(e,t){return Pe(2,arguments),Ce(e).getTime()-Ce(t).getTime()}var Xl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},fg="trunc";function on(e){return e?Xl[e]:Xl[fg]}function pg(e,t,r){Pe(2,arguments);var a=fa(e,t)/kd;return on(void 0)(a)}function hg(e,t,r){Pe(2,arguments);var a=fa(e,t)/Rd;return on(void 0)(a)}function gi(e){Pe(1,arguments);var t=Ce(e);return t.setHours(23,59,59,999),t}function mg(e){Pe(1,arguments);var t=Ce(e);return gi(t).getTime()===pi(t).getTime()}function Ad(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(pm(r,a)),i;if(o<1)i=0;else{r.getMonth()===1&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-n*o);var l=Wr(r,a)===-n;mg(Ce(e))&&o===1&&Wr(e,a)===1&&(l=!1),i=n*(o-Number(l))}return i===0?0:i}function gg(e,t,r){Pe(2,arguments);var a=Ad(e,t)/3;return on(void 0)(a)}function bg(e,t,r){Pe(2,arguments);var a=fa(e,t)/1e3;return on(void 0)(a)}function vg(e,t,r){Pe(2,arguments);var a=Id(e,t)/7;return on(void 0)(a)}function yg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t),n=Wr(r,a),o=Math.abs(dg(r,a));r.setFullYear(1584),a.setFullYear(1584);var i=Wr(r,a)===-n,l=n*(o-Number(i));return l===0?0:l}function Cg(e,t){var r;Pe(1,arguments);var a=e||{},n=Ce(a.start),o=Ce(a.end),i=o.getTime();if(!(n.getTime()<=i))throw new RangeError("Invalid interval");var l=[],u=n;u.setHours(0,0,0,0);var s=Number((r=void 0)!==null&&r!==void 0?r:1);if(s<1||isNaN(s))throw new RangeError("`options.step` must be a number greater than 1");for(;u.getTime()<=i;)l.push(Ce(u)),u.setDate(u.getDate()+s),u.setHours(0,0,0,0);return l}function Dg(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function wg(e,t){var r,a;Pe(1,arguments);var n=Ce(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");var o=String((r=t?.format)!==null&&r!==void 0?r:"extended"),i=String((a=t?.representation)!==null&&a!==void 0?a:"complete");if(o!=="extended"&&o!=="basic")throw new RangeError("format must be 'extended' or 'basic'");if(i!=="date"&&i!=="time"&&i!=="complete")throw new RangeError("representation must be 'date', 'time', or 'complete'");var l="",u="",s=o==="extended"?"-":"",f=o==="extended"?":":"";if(i!=="time"){var d=St(n.getDate(),2),c=St(n.getMonth()+1,2),b=St(n.getFullYear(),4);l="".concat(b).concat(s).concat(c).concat(s).concat(d)}if(i!=="date"){var C=n.getTimezoneOffset();if(C!==0){var g=Math.abs(C),y=St(Math.floor(g/60),2),m=St(g%60,2),p=C<0?"+":"-";u="".concat(p).concat(y,":").concat(m)}else u="Z";var h=St(n.getHours(),2),v=St(n.getMinutes(),2),S=St(n.getSeconds(),2),w=l===""?"":"T",P=[h,v,S].join(f);l="".concat(l).concat(w).concat(P).concat(u)}return l}function Pg(e){Pe(1,arguments);var t=Ce(e),r=t.getDay();return r}function Tg(e){Pe(1,arguments);var t=Ce(e),r=t.getHours();return r}function xg(e){Pe(1,arguments);var t=Ce(e),r=t.getMinutes();return r}function Sg(e){Pe(1,arguments);var t=Ce(e),r=t.getSeconds();return r}function kg(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getTime()===a.getTime()}function Jl(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Bm(e))||t){r&&(e=r);var a=0,n=function(){};return{s:n,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(s){throw s},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,i=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var s=r.next();return i=s.done,s},e:function(s){l=!0,o=s},f:function(){try{i||r.return==null||r.return()}finally{if(l)throw o}}}}function Ld(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ld=function(){return!!e})()}function Ee(e){var t=Ld();return function(){var r,a=Ul(e);if(t){var n=Ul(this).constructor;r=Reflect.construct(a,arguments,n)}else r=a.apply(this,arguments);return Fm(this,r)}}var Rg=10,jd=function(){function e(){Se(this,e),te(this,"priority",void 0),te(this,"subPriority",0)}return xe(e,[{key:"validate",value:function(r,a){return!0}}]),e}(),Eg=function(e){Re(r,e);var t=Ee(r);function r(a,n,o,i,l){var u;return Se(this,r),u=t.call(this),u.value=a,u.validateValue=n,u.setValue=o,u.priority=i,l&&(u.subPriority=l),u}return xe(r,[{key:"validate",value:function(n,o){return this.validateValue(n,this.value,o)}},{key:"set",value:function(n,o,i){return this.setValue(n,o,this.value,i)}}]),r}(jd),Mg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",Rg),te(ne(a),"subPriority",-1),a}return xe(r,[{key:"set",value:function(n,o){if(o.timestampIsSet)return n;var i=new Date(0);return i.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),i.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),i}}]),r}(jd),_e=function(){function e(){Se(this,e),te(this,"incompatibleTokens",void 0),te(this,"priority",void 0),te(this,"subPriority",void 0)}return xe(e,[{key:"run",value:function(r,a,n,o){var i=this.parse(r,a,n,o);return i?{setter:new Eg(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}},{key:"validate",value:function(r,a,n){return!0}}]),e}(),Og=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",140),te(ne(a),"incompatibleTokens",["R","u","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})||i.era(n,{width:"abbreviated"})||i.era(n,{width:"narrow"})}}},{key:"set",value:function(n,o,i){return o.era=i,n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ge={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},bt={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ye(e,t){return e&&{value:t(e.value),rest:e.rest}}function qe(e,t){var r=t.match(e);return r?{value:parseInt(r[0],10),rest:t.slice(r[0].length)}:null}function vt(e,t){var r=t.match(e);if(!r)return null;if(r[0]==="Z")return{value:0,rest:t.slice(1)};var a=r[1]==="+"?1:-1,n=r[2]?parseInt(r[2],10):0,o=r[3]?parseInt(r[3],10):0,i=r[5]?parseInt(r[5],10):0;return{value:a*(n*kd+o*Rd+i*hm),rest:t.slice(r[0].length)}}function Bd(e){return qe(Ge.anyDigitsSigned,e)}function He(e,t){switch(e){case 1:return qe(Ge.singleDigit,t);case 2:return qe(Ge.twoDigits,t);case 3:return qe(Ge.threeDigits,t);case 4:return qe(Ge.fourDigits,t);default:return qe(new RegExp("^\\d{1,"+e+"}"),t)}}function Yn(e,t){switch(e){case 1:return qe(Ge.singleDigitSigned,t);case 2:return qe(Ge.twoDigitsSigned,t);case 3:return qe(Ge.threeDigitsSigned,t);case 4:return qe(Ge.fourDigitsSigned,t);default:return qe(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Li(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Fd(e,t){var r=t>0,a=r?t:1-t,n;if(a<=50)n=e||100;else{var o=a+50,i=Math.floor(o/100)*100,l=e>=o%100;n=e+i-(l?100:0)}return r?n:1-n}function Nd(e){return e%400===0||e%4===0&&e%100!==0}var _g=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="yy"}};switch(o){case"y":return Ye(He(4,n),l);case"yo":return Ye(i.ordinalNumber(n,{unit:"year"}),l);default:return Ye(He(o.length,n),l)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i){var l=n.getUTCFullYear();if(i.isTwoDigitYear){var u=Fd(i.year,l);return n.setUTCFullYear(u,0,1),n.setUTCHours(0,0,0,0),n}var s=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ig=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return{year:s,isTwoDigitYear:o==="YY"}};switch(o){case"Y":return Ye(He(4,n),l);case"Yo":return Ye(i.ordinalNumber(n,{unit:"year"}),l);default:return Ye(He(o.length,n),l)}}},{key:"validate",value:function(n,o){return o.isTwoDigitYear||o.year>0}},{key:"set",value:function(n,o,i,l){var u=mm(n,l);if(i.isTwoDigitYear){var s=Fd(i.year,u);return n.setUTCFullYear(s,0,l.firstWeekContainsDate),n.setUTCHours(0,0,0,0),hi(n,l)}var f=!("era"in o)||o.era===1?i.year:1-i.year;return n.setUTCFullYear(f,0,l.firstWeekContainsDate),n.setUTCHours(0,0,0,0),hi(n,l)}}]),r}(_e),Ag=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){return Yn(o==="R"?4:o.length,n)}},{key:"set",value:function(n,o,i){var l=new Date(0);return l.setUTCFullYear(i,0,4),l.setUTCHours(0,0,0,0),Ed(l)}}]),r}(_e),Lg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",130),te(ne(a),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){return Yn(o==="u"?4:o.length,n)}},{key:"set",value:function(n,o,i){return n.setUTCFullYear(i,0,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),jg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",120),te(ne(a),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"Q":case"QQ":return He(o.length,n);case"Qo":return i.ordinalNumber(n,{unit:"quarter"});case"QQQ":return i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(n,{width:"wide",context:"formatting"})||i.quarter(n,{width:"abbreviated",context:"formatting"})||i.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Bg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",120),te(ne(a),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"q":case"qq":return He(o.length,n);case"qo":return i.ordinalNumber(n,{unit:"quarter"});case"qqq":return i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(n,{width:"wide",context:"standalone"})||i.quarter(n,{width:"abbreviated",context:"standalone"})||i.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=1&&o<=4}},{key:"set",value:function(n,o,i){return n.setUTCMonth((i-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Fg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),te(ne(a),"priority",110),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s-1};switch(o){case"M":return Ye(qe(Ge.month,n),l);case"MM":return Ye(He(2,n),l);case"Mo":return Ye(i.ordinalNumber(n,{unit:"month"}),l);case"MMM":return i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(n,{width:"wide",context:"formatting"})||i.month(n,{width:"abbreviated",context:"formatting"})||i.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Ng=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",110),te(ne(a),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s-1};switch(o){case"L":return Ye(qe(Ge.month,n),l);case"LL":return Ye(He(2,n),l);case"Lo":return Ye(i.ordinalNumber(n,{unit:"month"}),l);case"LLL":return i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(n,{width:"wide",context:"standalone"})||i.month(n,{width:"abbreviated",context:"standalone"})||i.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){return n.setUTCMonth(i,1),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function $g(e,t,r){Pe(2,arguments);var a=Ce(e),n=nt(t),o=gm(a,r)-n;return a.setUTCDate(a.getUTCDate()-o*7),a}var Vg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",100),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"w":return qe(Ge.week,n);case"wo":return i.ordinalNumber(n,{unit:"week"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i,l){return hi($g(n,i,l),l)}}]),r}(_e);function qg(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t),n=bm(r)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var zg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",100),te(ne(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"I":return qe(Ge.week,n);case"Io":return i.ordinalNumber(n,{unit:"week"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=53}},{key:"set",value:function(n,o,i){return Ed(qg(n,i))}}]),r}(_e),Wg=[31,28,31,30,31,30,31,31,30,31,30,31],Ug=[31,29,31,30,31,30,31,31,30,31,30,31],Hg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"subPriority",1),te(ne(a),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"d":return qe(Ge.date,n);case"do":return i.ordinalNumber(n,{unit:"date"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),l=Nd(i),u=n.getUTCMonth();return l?o>=1&&o<=Ug[u]:o>=1&&o<=Wg[u]}},{key:"set",value:function(n,o,i){return n.setUTCDate(i),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Gg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"subpriority",1),te(ne(a),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"D":case"DD":return qe(Ge.dayOfYear,n);case"Do":return i.ordinalNumber(n,{unit:"date"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){var i=n.getUTCFullYear(),l=Nd(i);return l?o>=1&&o<=366:o>=1&&o<=365}},{key:"set",value:function(n,o,i){return n.setUTCMonth(0,i),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function ji(e,t,r){var a,n,o,i,l,u,s,f;Pe(2,arguments);var d=Md(),c=nt((a=(n=(o=(i=r?.weekStartsOn)!==null&&i!==void 0?i:r==null||(l=r.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&n!==void 0?n:(s=d.locale)===null||s===void 0||(f=s.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var b=Ce(e),C=nt(t),g=b.getUTCDay(),y=C%7,m=(y+7)%7,p=(m<c?7:0)+C-g;return b.setUTCDate(b.getUTCDate()+p),b}var Yg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["D","i","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"E":case"EE":case"EEE":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Kg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"e":case"ee":return Ye(He(o.length,n),u);case"eo":return Ye(i.ordinalNumber(n,{unit:"day"}),u);case"eee":return i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeeee":return i.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Qg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i,l){var u=function(f){var d=Math.floor((f-1)/7)*7;return(f+l.weekStartsOn+6)%7+d};switch(o){case"c":case"cc":return Ye(He(o.length,n),u);case"co":return Ye(i.ordinalNumber(n,{unit:"day"}),u);case"ccc":return i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"ccccc":return i.day(n,{width:"narrow",context:"standalone"});case"cccccc":return i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(n,{width:"wide",context:"standalone"})||i.day(n,{width:"abbreviated",context:"standalone"})||i.day(n,{width:"short",context:"standalone"})||i.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,o){return o>=0&&o<=6}},{key:"set",value:function(n,o,i,l){return n=ji(n,i,l),n.setUTCHours(0,0,0,0),n}}]),r}(_e);function Xg(e,t){Pe(2,arguments);var r=nt(t);r%7===0&&(r=r-7);var a=1,n=Ce(e),o=n.getUTCDay(),i=r%7,l=(i+7)%7,u=(l<a?7:0)+r-o;return n.setUTCDate(n.getUTCDate()+u),n}var Jg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",90),te(ne(a),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){var l=function(s){return s===0?7:s};switch(o){case"i":case"ii":return He(o.length,n);case"io":return i.ordinalNumber(n,{unit:"day"});case"iii":return Ye(i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiii":return Ye(i.day(n,{width:"narrow",context:"formatting"}),l);case"iiiiii":return Ye(i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l);case"iiii":default:return Ye(i.day(n,{width:"wide",context:"formatting"})||i.day(n,{width:"abbreviated",context:"formatting"})||i.day(n,{width:"short",context:"formatting"})||i.day(n,{width:"narrow",context:"formatting"}),l)}}},{key:"validate",value:function(n,o){return o>=1&&o<=7}},{key:"set",value:function(n,o,i){return n=Xg(n,i),n.setUTCHours(0,0,0,0),n}}]),r}(_e),Zg=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["b","B","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),eb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["a","B","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),tb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",80),te(ne(a),"incompatibleTokens",["a","b","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})||i.dayPeriod(n,{width:"abbreviated",context:"formatting"})||i.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,o,i){return n.setUTCHours(Li(i),0,0,0),n}}]),r}(_e),rb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["H","K","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"h":return qe(Ge.hour12h,n);case"ho":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=12}},{key:"set",value:function(n,o,i){var l=n.getUTCHours()>=12;return l&&i<12?n.setUTCHours(i+12,0,0,0):!l&&i===12?n.setUTCHours(0,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(_e),nb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["a","b","h","K","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"H":return qe(Ge.hour23h,n);case"Ho":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=23}},{key:"set",value:function(n,o,i){return n.setUTCHours(i,0,0,0),n}}]),r}(_e),ab=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["h","H","k","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"K":return qe(Ge.hour11h,n);case"Ko":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=11}},{key:"set",value:function(n,o,i){var l=n.getUTCHours()>=12;return l&&i<12?n.setUTCHours(i+12,0,0,0):n.setUTCHours(i,0,0,0),n}}]),r}(_e),ob=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",70),te(ne(a),"incompatibleTokens",["a","b","h","H","K","t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"k":return qe(Ge.hour24h,n);case"ko":return i.ordinalNumber(n,{unit:"hour"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=1&&o<=24}},{key:"set",value:function(n,o,i){var l=i<=24?i%24:i;return n.setUTCHours(l,0,0,0),n}}]),r}(_e),ib=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",60),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"m":return qe(Ge.minute,n);case"mo":return i.ordinalNumber(n,{unit:"minute"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCMinutes(i,0,0),n}}]),r}(_e),lb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",50),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o,i){switch(o){case"s":return qe(Ge.second,n);case"so":return i.ordinalNumber(n,{unit:"second"});default:return He(o.length,n)}}},{key:"validate",value:function(n,o){return o>=0&&o<=59}},{key:"set",value:function(n,o,i){return n.setUTCSeconds(i,0),n}}]),r}(_e),sb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",30),te(ne(a),"incompatibleTokens",["t","T"]),a}return xe(r,[{key:"parse",value:function(n,o){var i=function(u){return Math.floor(u*Math.pow(10,-o.length+3))};return Ye(He(o.length,n),i)}},{key:"set",value:function(n,o,i){return n.setUTCMilliseconds(i),n}}]),r}(_e),ub=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",10),te(ne(a),"incompatibleTokens",["t","T","x"]),a}return xe(r,[{key:"parse",value:function(n,o){switch(o){case"X":return vt(bt.basicOptionalMinutes,n);case"XX":return vt(bt.basic,n);case"XXXX":return vt(bt.basicOptionalSeconds,n);case"XXXXX":return vt(bt.extendedOptionalSeconds,n);case"XXX":default:return vt(bt.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(_e),cb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",10),te(ne(a),"incompatibleTokens",["t","T","X"]),a}return xe(r,[{key:"parse",value:function(n,o){switch(o){case"x":return vt(bt.basicOptionalMinutes,n);case"xx":return vt(bt.basic,n);case"xxxx":return vt(bt.basicOptionalSeconds,n);case"xxxxx":return vt(bt.extendedOptionalSeconds,n);case"xxx":default:return vt(bt.extended,n)}}},{key:"set",value:function(n,o,i){return o.timestampIsSet?n:new Date(n.getTime()-i)}}]),r}(_e),db=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",40),te(ne(a),"incompatibleTokens","*"),a}return xe(r,[{key:"parse",value:function(n){return Bd(n)}},{key:"set",value:function(n,o,i){return[new Date(i*1e3),{timestampIsSet:!0}]}}]),r}(_e),fb=function(e){Re(r,e);var t=Ee(r);function r(){var a;Se(this,r);for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return a=t.call.apply(t,[this].concat(o)),te(ne(a),"priority",20),te(ne(a),"incompatibleTokens","*"),a}return xe(r,[{key:"parse",value:function(n){return Bd(n)}},{key:"set",value:function(n,o,i){return[new Date(i),{timestampIsSet:!0}]}}]),r}(_e),pb={G:new Og,y:new _g,Y:new Ig,R:new Ag,u:new Lg,Q:new jg,q:new Bg,M:new Fg,L:new Ng,w:new Vg,I:new zg,d:new Hg,D:new Gg,E:new Yg,e:new Kg,c:new Qg,i:new Jg,a:new Zg,b:new eb,B:new tb,h:new rb,H:new nb,K:new ab,k:new ob,m:new ib,s:new lb,S:new sb,X:new ub,x:new cb,t:new db,T:new fb},hb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mb=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,gb=/^'([^]*?)'?$/,bb=/''/g,vb=/\S/,yb=/[a-zA-Z]/;function Cb(e,t,r,a){var n,o,i,l,u,s,f,d,c,b,C,g,y,m,p,h,v,S;Pe(3,arguments);var w=String(e),P=String(t),D=Md(),x=(n=(o=a?.locale)!==null&&o!==void 0?o:D.locale)!==null&&n!==void 0?n:Ai;if(!x.match)throw new RangeError("locale must contain match property");var k=nt((i=(l=(u=(s=a?.firstWeekContainsDate)!==null&&s!==void 0?s:a==null||(f=a.locale)===null||f===void 0||(d=f.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&u!==void 0?u:D.firstWeekContainsDate)!==null&&l!==void 0?l:(c=D.locale)===null||c===void 0||(b=c.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=nt((C=(g=(y=(m=a?.weekStartsOn)!==null&&m!==void 0?m:a==null||(p=a.locale)===null||p===void 0||(h=p.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&y!==void 0?y:D.weekStartsOn)!==null&&g!==void 0?g:(v=D.locale)===null||v===void 0||(S=v.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&C!==void 0?C:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(P==="")return w===""?Ce(r):new Date(NaN);var M={firstWeekContainsDate:k,weekStartsOn:R,locale:x},E=[new Mg],_=P.match(mb).map(function(W){var G=W[0];if(G in Vl){var Z=Vl[G];return Z(W,x.formatLong)}return W}).join("").match(hb),j=[],V=Jl(_),U;try{var z=function(){var G=U.value;!(a!=null&&a.useAdditionalWeekYearTokens)&&vm(G)&&ql(G,P,e),!(a!=null&&a.useAdditionalDayOfYearTokens)&&ym(G)&&ql(G,P,e);var Z=G[0],he=pb[Z];if(he){var Q=he.incompatibleTokens;if(Array.isArray(Q)){var X=j.find(function(De){return Q.includes(De.token)||De.token===Z});if(X)throw new RangeError("The format string mustn't contain `".concat(X.fullToken,"` and `").concat(G,"` at the same time"))}else if(he.incompatibleTokens==="*"&&j.length>0)throw new RangeError("The format string mustn't contain `".concat(G,"` and any other token at the same time"));j.push({token:Z,fullToken:G});var pe=he.run(w,G,x.match,M);if(!pe)return{v:new Date(NaN)};E.push(pe.setter),w=pe.rest}else{if(Z.match(yb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");if(G==="''"?G="'":Z==="'"&&(G=Db(G)),w.indexOf(G)===0)w=w.slice(G.length);else return{v:new Date(NaN)}}};for(V.s();!(U=V.n()).done;){var Y=z();if(jm(Y)==="object")return Y.v}}catch(W){V.e(W)}finally{V.f()}if(w.length>0&&vb.test(w))return new Date(NaN);var H=E.map(function(W){return W.priority}).sort(function(W,G){return G-W}).filter(function(W,G,Z){return Z.indexOf(W)===G}).map(function(W){return E.filter(function(G){return G.priority===W}).sort(function(G,Z){return Z.subPriority-G.subPriority})}).map(function(W){return W[0]}),T=Ce(r);if(isNaN(T.getTime()))return new Date(NaN);var F=Cm(T,fi(T)),N={},I=Jl(H),L;try{for(I.s();!(L=I.n()).done;){var B=L.value;if(!B.validate(F,M))return new Date(NaN);var $=B.set(F,N,M);Array.isArray($)?(F=$[0],Dg(N,$[1])):F=$}}catch(W){I.e(W)}finally{I.f()}return F}function Db(e){return e.match(gb)[1].replace(bb,"'")}function Zl(e){Pe(1,arguments);var t=Ce(e);return t.setMinutes(0,0,0),t}function wb(e,t){Pe(2,arguments);var r=Zl(e),a=Zl(t);return r.getTime()===a.getTime()}function Pb(e,t){Pe(2,arguments);var r=Ce(e),a=Ce(t);return r.getFullYear()===a.getFullYear()}function Tb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setDate(a),r}function xb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setHours(a),r}function Sb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setMinutes(a),r}function kb(e,t){Pe(2,arguments);var r=Ce(e),a=nt(t);return r.setSeconds(a),r}var Aa={},La={exports:{}},es;function Ve(){return es||(es=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var a=1;a<arguments.length;a++){var n=arguments[a];for(var o in n)({}).hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(La)),La.exports}var vr={},ja={},Ba={},Fa={},ts;function Rb(){return ts||(ts=1,function(e){var t=re();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ve()),a=t(wd()),n=t(ve()),o=t(Be()),i=Wt();function l(s){var f=(0,i.useTheme)();return n.default.createElement("div",{ref:s.forwardedRef,style:{display:"table",width:"100%",height:"100%",backgroundColor:f.palette.background.paper,opacity:.7}},n.default.createElement("div",{style:{display:"table-cell",width:"100%",height:"100%",verticalAlign:"middle",textAlign:"center"}},n.default.createElement(a.default,null)))}l.propTypes={theme:o.default.any};var u=n.default.forwardRef(function(f,d){return n.default.createElement(l,(0,r.default)({},f,{forwardedRef:d}))});e.default=u}(Fa)),Fa}var Na={},$a={},ft={},Va={exports:{}},qa={exports:{}},za={exports:{}},rs;function Eb(){return rs||(rs=1,function(e){var t=At().default;function r(a,n){if(t(a)!="object"||!a)return a;var o=a[Symbol.toPrimitive];if(o!==void 0){var i=o.call(a,n||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(za)),za.exports}var ns;function $d(){return ns||(ns=1,function(e){var t=At().default,r=Eb();function a(n){var o=r(n,"string");return t(o)=="symbol"?o:o+""}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports}(qa)),qa.exports}var as;function Qe(){return as||(as=1,function(e){var t=$d();function r(a,n,o){return(n=t(n))in a?Object.defineProperty(a,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[n]=o,a}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Va)),Va.exports}const Mb={},os=e=>{let t;const r=new Set,a=(f,d)=>{const c=typeof f=="function"?f(t):f;if(!Object.is(c,t)){const b=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),r.forEach(C=>C(t,b))}},n=()=>t,u={setState:a,getState:n,getInitialState:()=>s,subscribe:f=>(r.add(f),()=>r.delete(f)),destroy:()=>{(Mb?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},s=t=e(a,n,u);return u},Vd=e=>e?os(e):os;var Wa={exports:{}},Ua={},Ha={exports:{}},Ga={};/**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.production.js
@@ -1 +1 @@
1
- import{c5 as ne,r as m,i as U,b as v,a2 as pe,c6 as ve,c7 as Z,bW as he,bX as Se,bo as ye,c8 as ee,H as M,u as re,j as oe,aK as Ee,V as ae,o as K,a as x,aa as Ie,aM as Re,aH as Ce,c9 as Te}from"./index-BAMKzu46.js";import{B as ie,o as Be}from"./blocklet-CQ-S_G-T.js";import{b as Pe}from"./url-evaluation-C14MBkPs.js";function Ae(e,n){var t=ne(m.useState(e),2),i=t[0],c=t[1],u=m.useMemo(function(){var S=!e,d=function(){return c(function(y){return y===e?S:e})},R=function(y){return c(y)},C=function(){return c(e)},T=function(){return c(S)};return{toggle:d,set:R,setLeft:C,setRight:T}},[]);return[i,u]}function ke(e){var n=ne(Ae(!1),2),t=n[0],i=n[1],c=i.toggle,u=i.set,S=m.useMemo(function(){var d=function(){return u(!0)},R=function(){return u(!1)};return{toggle:c,set:function(C){return u(!!C)},setTrue:d,setFalse:R}},[]);return[t,S]}const Y=m.createContext({}),{Provider:Ye,Consumer:ze}=Y;function Ve(){return m.useContext(Y)}const Le=(e,n)=>{const t=typeof n!="number"?Number(n):n;if(Number.isNaN(t)||t<=0)return 0;const i=Math.floor(e/t*100);return Math.min(Math.max(i,0),100)},k="ttl-",Ne=(e,n)=>{let t=null;return(...i)=>{clearTimeout(t),t=setTimeout(()=>e(...i),n)}};function we(e,n,t=0,i=0){if(n==null){localStorage.removeItem(k+e);return}const c={value:n,expiry:Date.now()+t};i?Ne(()=>localStorage.setItem(k+e,JSON.stringify(c)),i)():localStorage.setItem(k+e,JSON.stringify(c))}function De(e){ce();const n=localStorage.getItem(k+e);if(!n)return null;const t=JSON.parse(n);return Date.now()>t.expiry?(localStorage.removeItem(k+e),null):t.value}function ue(e){localStorage.removeItem(k+e)}let Q=null;function ce(e=!1){const n=Date.now();if(!(!e&&Q&&n-Q<60*1e3*5)){Q=n;for(let t=0;t<localStorage.length;t++){const i=localStorage.key(t);if(i.startsWith(k)){const c=localStorage.getItem(i);if(c){let u;try{u=JSON.parse(c)}catch{continue}n>u.expiry&&localStorage.removeItem(i)}}}}}ce();function Oe(e,n){if(!e)return"";if(e.meta.did===n)return U.getAppName(e,!0);let t="";return U.forEachChildSync(e,i=>{t||i?.meta?.did===n&&(t=U.getAppName(i,!0))}),t}function le(e,n){if(!e)return null;if(e.meta.did===n)return e.appRuntimeInfo;for(const t of e.children){const i=le(t,n);if(i)return i}return null}const W=e=>`blocklet-status-${e}`,Ue={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function te(e){e&&(e.children||[]).forEach(t=>{if(t.status==="downloading"){const i=De(W(t.meta?.bundleDid));t.status=i||t.status}else Ue[e.status]&&ue(W(t.meta?.bundleDid))})}let se=null;function _e({did:e,client:n,useSubscription:t,getIP:i,useLocaleContext:c,disableSubscription:u,getOptionalComponents:S=!1}){const{t:d,locale:R}=c(),[C,T]=m.useState(null),[y,A]=m.useState(!1),[N,B]=m.useState(!1),[w,_]=m.useState(!0),[F,{setTrue:H,setFalse:$}]=ke(),[l,I]=m.useState(),[j,q]=m.useState([]),[J,D]=m.useState({}),L=l?.site?.domainAliases?.length?JSON.stringify(l.site.domainAliases.map(s=>s.value)):"",p=m.useMemo(()=>(l?.site?.domainAliases||[]).map(s=>s.value),[L]),{domainsAccessibility:g,recommendedDomain:P}=Pe(p,1e3),h=async(s=!1)=>{s?_(!0):B(!0);try{const{blocklet:r}=await n.getBlocklet({input:{did:e,attachRuntimeInfo:!0,attachDiskInfo:s,getOptionalComponents:S}});await ee(r,{getIP:i}),te(r),I(r)}catch(r){M.error(r.message)}finally{s?_(!1):B(!1)}},O=async(s=6)=>{try{const r=await n.getBlockletRuntimeHistory({input:{did:e,hours:s}});if(r){const f=r.historyList.map(o=>({key:o.key,name:o.key===e?"App":Oe(l,o.key),appRuntimeInfo:le(l,o.key),cpu:o.value.sort((a,E)=>a.date-E.date).map(a=>({date:a.date,value:a.cpu})),memory:o.value.sort((a,E)=>a.date-E.date).map(a=>({date:a.date,value:a.mem}))})).sort((o,a)=>o.key===e?-1:a.key===e?1:o.name.localeCompare(a.name));q(f)}}catch(r){M.error(r.message)}},G=async({showError:s=!0,attachRuntimeInfo:r=!0,attachDiskInfo:f=!1,hours:o=6}={})=>{if(!y)try{A(!0),T(null);const{blocklet:a}=await n.getBlocklet({input:{did:e,getOptionalComponents:S}});if(a)I(E=>(ee(a,{fixRuntime:"merge-old",oldBlocklet:E}),te(a),a)),A(!1),r&&(h(f),O(o));else throw new Error(d("blocklet.notFound"))}catch(a){A(!1),T(a),s&&M.error(a.message)}},b=s=>{s?.meta?.did===l.meta.did&&G({showError:!1})},z=s=>{s?.meta?.did===l.meta.did&&G({attachRuntimeInfo:!1,showError:!1})},me=s=>{!s||s.meta?.did!==l?.meta?.did||(s.status==="extracting"&&I(r=>{if(!r)return r;const f=r.children||[];return f.forEach(o=>{o.meta?.bundleDid===s.component?.did&&(we(W(o.meta?.bundleDid),s.status,1e3*60*5),o.status==="downloading"?o.status=s.status:o.greenStatus==="downloading"&&(o.greenStatus=s.status))}),{...r,children:f}}),s.status==="downloading"&&s.total&&I(r=>{if(!r)return r;const f=r.children||[];let o=r.progress||0;return f.forEach(a=>{a.meta?.bundleDid===s.component?.did&&(a.progress=Le(s.current,s.total),a.progress>o&&(o=a.progress),ue(W(a.meta?.bundleDid)))}),{...r,children:f,progress:o}}))},V=()=>{e&&L&&n.checkDomains({input:{did:e}}).catch(console.error)},fe=async s=>{const{blocklet:r}=await n.configNavigations({input:{did:e,navigations:s}});I(r)};m.useEffect(()=>{L&&!u&&F&&V()},[L,u,F]);const X=t(v.BlockletEvents.domainStatus,s=>{D(r=>({...r,[s.domain]:{...r[s.domain],...s}}))},[l?.meta?.did,!u]);m.useEffect(()=>{X&&(se=setInterval(()=>{X.isConnected()&&(clearInterval(se),H())},500))},[X,H,$]),t(v.BlockletEvents.statusChange,s=>{s?.meta?.did===l.meta.did&&(I(r=>{const f={...r};return f.status=v.fromBlockletStatus(s.status),(f.children||[]).forEach(o=>{const a=s.children.find(E=>E.meta?.did===o.meta?.did);a&&(a.status&&(o.status=v.fromBlockletStatus(a.status)),a.greenStatus&&(o.greenStatus=v.fromBlockletStatus(a.greenStatus)))}),f}),z(s))},[l?.meta?.did,!u]),t(v.BlockletEvents.storeChange,z,[l?.meta?.did,!u]),t(v.BlockletEvents.installed,b,[l?.meta?.did,!u]),t(v.BlockletEvents.upgraded,b,[l?.meta?.did,!u]),t(v.BlockletEvents.updated,b,[l?.meta?.did,!u]),t(v.BlockletEvents.downloadBundleProgress,me,[l?.meta?.did,!u]);const de=(s=null,r="add")=>{I(f=>{const o={...f};if(s){const a=f.site.domainAliases.findIndex(E=>E.value===s.value);a!==-1?r==="delete"?o.site.domainAliases=f.site.domainAliases.filter(E=>E.value!==s.value):o.site.domainAliases[a]=s:o.site.domainAliases=ye([...f.site.domainAliases,s].filter(Boolean),"value")}return o})},ge=l?pe(l,{site:{domainAliases:l.site.domainAliases.map(s=>{const r=s.value,f=ve(r),o=J[f];return s.domainStatus=Z(o,["domain","meta"]),s.accessibility=Z(g[r],["domain"]),s.href=he({blocklet:l,domain:s,params:Se(l,R)}),s.canGenerateCertificate=o?.dns?.isDnsResolved&&o?.dns?.isCnameMatch,s})}}):null;return{loading:y,loadingRuntimeInfo:N,loadingDiskInfo:w,error:C,blocklet:ge,runtimeHistory:j,recommendedDomain:P||"",actions:{refreshBlocklet:G,refreshDomainStatus:V,setBlocklet:I,configNavigations:fe,updateBlockletDomainAliases:de}}}const{Provider:Fe,Consumer:Ze}=ie;function He({did:e,children:n}){const{api:t,ws:{useSubscription:i}}=re(),{loading:c,loadingRuntimeInfo:u,error:S,blocklet:d,recommendedDomain:R,runtimeHistory:C,actions:{refreshBlocklet:T,refreshDomainStatus:y,setBlocklet:A,configNavigations:N,updateBlockletDomainAliases:B}}=_e({did:e,client:t,useSubscription:i,getIP:Ee,useLocaleContext:ae,getOptionalComponents:!0});m.useEffect(()=>{T()},[e]);const w={did:e,client:t,loading:c,loadingRuntimeInfo:u,error:S,blocklet:d,recommendedDomain:R,runtimeHistory:C,appIdList:d?U.getBlockletAppIdList(d):[],actions:{refreshBlocklet:T,refreshDomainStatus:y,setBlocklet:A,configNavigations:N,updateBlockletDomainAliases:B}};return oe.jsx(Fe,{value:w,children:n})}He.propTypes={did:K.string.isRequired,children:K.any.isRequired};function Me(){return m.useContext(ie)}const{Provider:Ke,Consumer:et}=Y,We=(e,n,t)=>e===n.did?n.name:t?U.getDisplayName(t):"",$e=(e,n,t)=>{if(t){const i=t.environments.find(c=>c.key===v.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR);return i?i.value:"auto"}return"default"},je=(e,n,t)=>e===n.did?n.trustedPassports||[]:t?t.trustedPassports||[]:[],qe=(e,n,t)=>e===n.did?n.trustedFactories||[]:t?t.trustedFactories||[]:[],Je=(e,n,t)=>e===n.did?e:t&&((t.environments||[]).find(c=>c.key==="BLOCKLET_APP_ID")||{}).value||"",Ge=(e,n,t)=>e===n.did?n.enablePassportIssuance!==!1:t?t.enablePassportIssuance!==!1:!0;function be({teamDid:e,children:n}){const{t,locale:i}=ae(),{api:c,info:u}=re(),{recommendedDomain:S,blocklet:d}=Me()||{},[R,C]=m.useState([]),[T,y]=m.useState([]),[A,N]=m.useState([]),B=We(e,u,d),w=$e(e,u,d),_=je(e,u,d),F=qe(e,u,d),H=Je(e,u,d),$=Ge(e,u,d),l=async p=>{try{const g=await c.doBatchQuery({getRoles:{input:{teamDid:p}},getPermissions:{input:{teamDid:p}},getInvitations:{input:{teamDid:p}}}),P=(g.getRoles.roles||[]).filter(h=>!Ce.RBAC_CONFIG.roles.some(O=>O.name===h.name&&(!O.passport||O.noHuman))&&!h.orgId).map(h=>(h.hasDescription=!!h.description,h.hasDescription||(h.description=t("team.passport.description",{teamName:B,title:h.title})),h));y(Be(P,[h=>Te(h.name)],["desc"])),N(g.getPermissions.permissions||[]),C(g.getInvitations.invitations||[])}catch(g){M.error(g.message)}},I=({did:p}={})=>{const g={teamDid:e,user:{did:p}};return c.getUser({input:g})},j=({query:p,paging:g}={})=>{const P={teamDid:e};return g&&(P.paging=g),p&&(P.query=p),P.sort={lastLoginAt:-1},c.getUsers({input:P})},q=()=>c.getUsersCountPerRole({input:{teamDid:e}}),J=()=>l(e);m.useEffect(()=>{l(e)},[e]),m.useEffect(()=>{y(p=>p.map(g=>(g.hasDescription||(g.description=t("team.passport.description",{teamName:B,title:g.title})),{...g})))},[t,i]);const D=p=>{p.teamDid===e&&l(e)};x(v.TeamEvents.userAdded,D,[e]),x(v.TeamEvents.userRemoved,D,[e]),x(v.TeamEvents.userUpdated,D,[e]);const L={teamDid:e,teamIssuerDid:H,teamName:B,invitations:R,roles:T,permissions:A,trustedPassports:_,trustedFactories:F,isNodeTeam:e===u.did,enablePassportIssuance:$,refresh:J,passportColor:w,endpoint:e===u.did?Ie(u):Re(S),blocklet:d,api:{getUser:I,getUsers:j,getUsersCountPerRole:q}};return oe.jsx(Ke,{value:L,children:n})}be.propTypes={teamDid:K.string.isRequired,children:K.object.isRequired};export{He as B,be as T,Me as a,ke as b,Ve as u};
1
+ import{c5 as ne,r as m,i as U,b as v,a2 as pe,c6 as ve,c7 as Z,bW as he,bX as Se,bo as ye,c8 as ee,H as M,u as re,j as oe,aK as Ee,V as ae,o as K,a as x,aa as Ie,aM as Re,aH as Ce,c9 as Te}from"./index-Bek3Nxot.js";import{B as ie,o as Be}from"./blocklet-ClPWX-SV.js";import{b as Pe}from"./url-evaluation-DetQFE_e.js";function Ae(e,n){var t=ne(m.useState(e),2),i=t[0],c=t[1],u=m.useMemo(function(){var S=!e,d=function(){return c(function(y){return y===e?S:e})},R=function(y){return c(y)},C=function(){return c(e)},T=function(){return c(S)};return{toggle:d,set:R,setLeft:C,setRight:T}},[]);return[i,u]}function ke(e){var n=ne(Ae(!1),2),t=n[0],i=n[1],c=i.toggle,u=i.set,S=m.useMemo(function(){var d=function(){return u(!0)},R=function(){return u(!1)};return{toggle:c,set:function(C){return u(!!C)},setTrue:d,setFalse:R}},[]);return[t,S]}const Y=m.createContext({}),{Provider:Ye,Consumer:ze}=Y;function Ve(){return m.useContext(Y)}const Le=(e,n)=>{const t=typeof n!="number"?Number(n):n;if(Number.isNaN(t)||t<=0)return 0;const i=Math.floor(e/t*100);return Math.min(Math.max(i,0),100)},k="ttl-",Ne=(e,n)=>{let t=null;return(...i)=>{clearTimeout(t),t=setTimeout(()=>e(...i),n)}};function we(e,n,t=0,i=0){if(n==null){localStorage.removeItem(k+e);return}const c={value:n,expiry:Date.now()+t};i?Ne(()=>localStorage.setItem(k+e,JSON.stringify(c)),i)():localStorage.setItem(k+e,JSON.stringify(c))}function De(e){ce();const n=localStorage.getItem(k+e);if(!n)return null;const t=JSON.parse(n);return Date.now()>t.expiry?(localStorage.removeItem(k+e),null):t.value}function ue(e){localStorage.removeItem(k+e)}let Q=null;function ce(e=!1){const n=Date.now();if(!(!e&&Q&&n-Q<60*1e3*5)){Q=n;for(let t=0;t<localStorage.length;t++){const i=localStorage.key(t);if(i.startsWith(k)){const c=localStorage.getItem(i);if(c){let u;try{u=JSON.parse(c)}catch{continue}n>u.expiry&&localStorage.removeItem(i)}}}}}ce();function Oe(e,n){if(!e)return"";if(e.meta.did===n)return U.getAppName(e,!0);let t="";return U.forEachChildSync(e,i=>{t||i?.meta?.did===n&&(t=U.getAppName(i,!0))}),t}function le(e,n){if(!e)return null;if(e.meta.did===n)return e.appRuntimeInfo;for(const t of e.children){const i=le(t,n);if(i)return i}return null}const W=e=>`blocklet-status-${e}`,Ue={installed:1,starting:1,running:1,stopped:1,upgrading:1,restarting:1,deleting:1};function te(e){e&&(e.children||[]).forEach(t=>{if(t.status==="downloading"){const i=De(W(t.meta?.bundleDid));t.status=i||t.status}else Ue[e.status]&&ue(W(t.meta?.bundleDid))})}let se=null;function _e({did:e,client:n,useSubscription:t,getIP:i,useLocaleContext:c,disableSubscription:u,getOptionalComponents:S=!1}){const{t:d,locale:R}=c(),[C,T]=m.useState(null),[y,A]=m.useState(!1),[N,B]=m.useState(!1),[w,_]=m.useState(!0),[F,{setTrue:H,setFalse:$}]=ke(),[l,I]=m.useState(),[j,q]=m.useState([]),[J,D]=m.useState({}),L=l?.site?.domainAliases?.length?JSON.stringify(l.site.domainAliases.map(s=>s.value)):"",p=m.useMemo(()=>(l?.site?.domainAliases||[]).map(s=>s.value),[L]),{domainsAccessibility:g,recommendedDomain:P}=Pe(p,1e3),h=async(s=!1)=>{s?_(!0):B(!0);try{const{blocklet:r}=await n.getBlocklet({input:{did:e,attachRuntimeInfo:!0,attachDiskInfo:s,getOptionalComponents:S}});await ee(r,{getIP:i}),te(r),I(r)}catch(r){M.error(r.message)}finally{s?_(!1):B(!1)}},O=async(s=6)=>{try{const r=await n.getBlockletRuntimeHistory({input:{did:e,hours:s}});if(r){const f=r.historyList.map(o=>({key:o.key,name:o.key===e?"App":Oe(l,o.key),appRuntimeInfo:le(l,o.key),cpu:o.value.sort((a,E)=>a.date-E.date).map(a=>({date:a.date,value:a.cpu})),memory:o.value.sort((a,E)=>a.date-E.date).map(a=>({date:a.date,value:a.mem}))})).sort((o,a)=>o.key===e?-1:a.key===e?1:o.name.localeCompare(a.name));q(f)}}catch(r){M.error(r.message)}},G=async({showError:s=!0,attachRuntimeInfo:r=!0,attachDiskInfo:f=!1,hours:o=6}={})=>{if(!y)try{A(!0),T(null);const{blocklet:a}=await n.getBlocklet({input:{did:e,getOptionalComponents:S}});if(a)I(E=>(ee(a,{fixRuntime:"merge-old",oldBlocklet:E}),te(a),a)),A(!1),r&&(h(f),O(o));else throw new Error(d("blocklet.notFound"))}catch(a){A(!1),T(a),s&&M.error(a.message)}},b=s=>{s?.meta?.did===l.meta.did&&G({showError:!1})},z=s=>{s?.meta?.did===l.meta.did&&G({attachRuntimeInfo:!1,showError:!1})},me=s=>{!s||s.meta?.did!==l?.meta?.did||(s.status==="extracting"&&I(r=>{if(!r)return r;const f=r.children||[];return f.forEach(o=>{o.meta?.bundleDid===s.component?.did&&(we(W(o.meta?.bundleDid),s.status,1e3*60*5),o.status==="downloading"?o.status=s.status:o.greenStatus==="downloading"&&(o.greenStatus=s.status))}),{...r,children:f}}),s.status==="downloading"&&s.total&&I(r=>{if(!r)return r;const f=r.children||[];let o=r.progress||0;return f.forEach(a=>{a.meta?.bundleDid===s.component?.did&&(a.progress=Le(s.current,s.total),a.progress>o&&(o=a.progress),ue(W(a.meta?.bundleDid)))}),{...r,children:f,progress:o}}))},V=()=>{e&&L&&n.checkDomains({input:{did:e}}).catch(console.error)},fe=async s=>{const{blocklet:r}=await n.configNavigations({input:{did:e,navigations:s}});I(r)};m.useEffect(()=>{L&&!u&&F&&V()},[L,u,F]);const X=t(v.BlockletEvents.domainStatus,s=>{D(r=>({...r,[s.domain]:{...r[s.domain],...s}}))},[l?.meta?.did,!u]);m.useEffect(()=>{X&&(se=setInterval(()=>{X.isConnected()&&(clearInterval(se),H())},500))},[X,H,$]),t(v.BlockletEvents.statusChange,s=>{s?.meta?.did===l.meta.did&&(I(r=>{const f={...r};return f.status=v.fromBlockletStatus(s.status),(f.children||[]).forEach(o=>{const a=s.children.find(E=>E.meta?.did===o.meta?.did);a&&(a.status&&(o.status=v.fromBlockletStatus(a.status)),a.greenStatus&&(o.greenStatus=v.fromBlockletStatus(a.greenStatus)))}),f}),z(s))},[l?.meta?.did,!u]),t(v.BlockletEvents.storeChange,z,[l?.meta?.did,!u]),t(v.BlockletEvents.installed,b,[l?.meta?.did,!u]),t(v.BlockletEvents.upgraded,b,[l?.meta?.did,!u]),t(v.BlockletEvents.updated,b,[l?.meta?.did,!u]),t(v.BlockletEvents.downloadBundleProgress,me,[l?.meta?.did,!u]);const de=(s=null,r="add")=>{I(f=>{const o={...f};if(s){const a=f.site.domainAliases.findIndex(E=>E.value===s.value);a!==-1?r==="delete"?o.site.domainAliases=f.site.domainAliases.filter(E=>E.value!==s.value):o.site.domainAliases[a]=s:o.site.domainAliases=ye([...f.site.domainAliases,s].filter(Boolean),"value")}return o})},ge=l?pe(l,{site:{domainAliases:l.site.domainAliases.map(s=>{const r=s.value,f=ve(r),o=J[f];return s.domainStatus=Z(o,["domain","meta"]),s.accessibility=Z(g[r],["domain"]),s.href=he({blocklet:l,domain:s,params:Se(l,R)}),s.canGenerateCertificate=o?.dns?.isDnsResolved&&o?.dns?.isCnameMatch,s})}}):null;return{loading:y,loadingRuntimeInfo:N,loadingDiskInfo:w,error:C,blocklet:ge,runtimeHistory:j,recommendedDomain:P||"",actions:{refreshBlocklet:G,refreshDomainStatus:V,setBlocklet:I,configNavigations:fe,updateBlockletDomainAliases:de}}}const{Provider:Fe,Consumer:Ze}=ie;function He({did:e,children:n}){const{api:t,ws:{useSubscription:i}}=re(),{loading:c,loadingRuntimeInfo:u,error:S,blocklet:d,recommendedDomain:R,runtimeHistory:C,actions:{refreshBlocklet:T,refreshDomainStatus:y,setBlocklet:A,configNavigations:N,updateBlockletDomainAliases:B}}=_e({did:e,client:t,useSubscription:i,getIP:Ee,useLocaleContext:ae,getOptionalComponents:!0});m.useEffect(()=>{T()},[e]);const w={did:e,client:t,loading:c,loadingRuntimeInfo:u,error:S,blocklet:d,recommendedDomain:R,runtimeHistory:C,appIdList:d?U.getBlockletAppIdList(d):[],actions:{refreshBlocklet:T,refreshDomainStatus:y,setBlocklet:A,configNavigations:N,updateBlockletDomainAliases:B}};return oe.jsx(Fe,{value:w,children:n})}He.propTypes={did:K.string.isRequired,children:K.any.isRequired};function Me(){return m.useContext(ie)}const{Provider:Ke,Consumer:et}=Y,We=(e,n,t)=>e===n.did?n.name:t?U.getDisplayName(t):"",$e=(e,n,t)=>{if(t){const i=t.environments.find(c=>c.key===v.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_PASSPORT_COLOR);return i?i.value:"auto"}return"default"},je=(e,n,t)=>e===n.did?n.trustedPassports||[]:t?t.trustedPassports||[]:[],qe=(e,n,t)=>e===n.did?n.trustedFactories||[]:t?t.trustedFactories||[]:[],Je=(e,n,t)=>e===n.did?e:t&&((t.environments||[]).find(c=>c.key==="BLOCKLET_APP_ID")||{}).value||"",Ge=(e,n,t)=>e===n.did?n.enablePassportIssuance!==!1:t?t.enablePassportIssuance!==!1:!0;function be({teamDid:e,children:n}){const{t,locale:i}=ae(),{api:c,info:u}=re(),{recommendedDomain:S,blocklet:d}=Me()||{},[R,C]=m.useState([]),[T,y]=m.useState([]),[A,N]=m.useState([]),B=We(e,u,d),w=$e(e,u,d),_=je(e,u,d),F=qe(e,u,d),H=Je(e,u,d),$=Ge(e,u,d),l=async p=>{try{const g=await c.doBatchQuery({getRoles:{input:{teamDid:p}},getPermissions:{input:{teamDid:p}},getInvitations:{input:{teamDid:p}}}),P=(g.getRoles.roles||[]).filter(h=>!Ce.RBAC_CONFIG.roles.some(O=>O.name===h.name&&(!O.passport||O.noHuman))&&!h.orgId).map(h=>(h.hasDescription=!!h.description,h.hasDescription||(h.description=t("team.passport.description",{teamName:B,title:h.title})),h));y(Be(P,[h=>Te(h.name)],["desc"])),N(g.getPermissions.permissions||[]),C(g.getInvitations.invitations||[])}catch(g){M.error(g.message)}},I=({did:p}={})=>{const g={teamDid:e,user:{did:p}};return c.getUser({input:g})},j=({query:p,paging:g}={})=>{const P={teamDid:e};return g&&(P.paging=g),p&&(P.query=p),P.sort={lastLoginAt:-1},c.getUsers({input:P})},q=()=>c.getUsersCountPerRole({input:{teamDid:e}}),J=()=>l(e);m.useEffect(()=>{l(e)},[e]),m.useEffect(()=>{y(p=>p.map(g=>(g.hasDescription||(g.description=t("team.passport.description",{teamName:B,title:g.title})),{...g})))},[t,i]);const D=p=>{p.teamDid===e&&l(e)};x(v.TeamEvents.userAdded,D,[e]),x(v.TeamEvents.userRemoved,D,[e]),x(v.TeamEvents.userUpdated,D,[e]);const L={teamDid:e,teamIssuerDid:H,teamName:B,invitations:R,roles:T,permissions:A,trustedPassports:_,trustedFactories:F,isNodeTeam:e===u.did,enablePassportIssuance:$,refresh:J,passportColor:w,endpoint:e===u.did?Ie(u):Re(S),blocklet:d,api:{getUser:I,getUsers:j,getUsersCountPerRole:q}};return oe.jsx(Ke,{value:L,children:n})}be.propTypes={teamDid:K.string.isRequired,children:K.object.isRequired};export{He as B,be as T,Me as a,ke as b,Ve as u};