@abtnode/webapp 1.16.30-beta-b80c7bcd → 1.16.30-beta-5d9c2c41

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 (224) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-wtQA2ZlL.js → Add-240wNjwq.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-DLWl_p0N.js → ArrowDropDown-C_UcQOEh.js} +1 -1
  5. package/dist/assets/{Autocomplete-Dnkd64Wi.js → Autocomplete-BcT7Oksd.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-D4ea4-FL.js → Breadcrumbs-6lYKQe5b.js} +1 -1
  7. package/dist/assets/{ButtonGroup-CKsGmaV8.js → ButtonGroup-D2VNVq8p.js} +1 -1
  8. package/dist/assets/{CheckCircle-WTAM8bmQ.js → CheckCircle-C3oHDZBR.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DEIRDYQy.js → ChevronLeft-CsFylH21.js} +1 -1
  10. package/dist/assets/{ChevronRight-3Wbh2VmX.js → ChevronRight-DB27L3xw.js} +1 -1
  11. package/dist/assets/{Close-WqzMlBXk.js → Close-B0TqWuc9.js} +1 -1
  12. package/dist/assets/{Delete-CVvUxXTo.js → Delete-DmepPquU.js} +1 -1
  13. package/dist/assets/DeleteOutline-o5TFeql0.js +1 -0
  14. package/dist/assets/{Done-C_20Dj1B.js → Done-DcWcwr60.js} +1 -1
  15. package/dist/assets/{Edit-B8IOsGBQ.js → Edit-D1BvuH2M.js} +1 -1
  16. package/dist/assets/EditIcon-CDlQ1Y8-.js +1 -0
  17. package/dist/assets/{ExpandMore-BuFKoIy8.js → ExpandMore-CK0-Eu1n.js} +1 -1
  18. package/dist/assets/{FilterList-DU29t5Rh.js → FilterList-Bw1ZqePf.js} +4 -4
  19. package/dist/assets/Google-DmQIUmmK.js +27 -0
  20. package/dist/assets/{Https-BrXLpCq7.js → Https-CdebkXl3.js} +1 -1
  21. package/dist/assets/{InputAdornment-CBm3j7qJ.js → InputAdornment-BRIOp0gH.js} +1 -1
  22. package/dist/assets/{InputLabel-DGjNXmhb.js → InputLabel-C31crC9j.js} +1 -1
  23. package/dist/assets/{LastPage-D7jYkSXP.js → LastPage-15pWD2wJ.js} +1 -1
  24. package/dist/assets/{Launch-pwuEfLe0.js → Launch-CMM_hnCO.js} +1 -1
  25. package/dist/assets/{Link-Caa-Lj-e.js → Link-C4-IDwJx.js} +1 -1
  26. package/dist/assets/{LoadingButton-D8MnQhjv.js → LoadingButton-hwdCNe1X.js} +1 -1
  27. package/dist/assets/LockIcon-DGv96agC.js +1 -0
  28. package/dist/assets/{Loop-VqbACrj0.js → Loop-B2Vl1OiI.js} +1 -1
  29. package/dist/assets/MoreHoriz-q-g-RPDL.js +1 -0
  30. package/dist/assets/{MoreVert-CIO_fCp7.js → MoreVert-s3M1upT5.js} +1 -1
  31. package/dist/assets/{Pagination-xPZr3lgt.js → Pagination-B5dMIe8j.js} +1 -1
  32. package/dist/assets/{Public-BOTHpXrp.js → Public-CF6xMrln.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-CZ0kwPzq.js → SchemaReference.es-BLQMCHdi.js} +1 -1
  34. package/dist/assets/{Search-iD41xnVp.js → Search-B0peOjeQ.js} +1 -1
  35. package/dist/assets/{Select-BU4slk93.js → Select-C--LsVoO.js} +1 -1
  36. package/dist/assets/{Skeleton-DkxBY5NG.js → Skeleton-CaItownp.js} +1 -1
  37. package/dist/assets/{Slider-BJk80rWq.js → Slider-BA1jwO1h.js} +1 -1
  38. package/dist/assets/{Stepper-BNgDMfgX.js → Stepper-BQ3ikYJX.js} +1 -1
  39. package/dist/assets/{TextField-yBvzonI-.js → TextField-D1TVUQl2.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-DQe_fa2x.js → ToggleButtonGroup-CbsnXtMY.js} +1 -1
  41. package/dist/assets/{ViewList-DwwOKAgl.js → ViewList-C8_Q1ZaL.js} +1 -1
  42. package/dist/assets/actions-DkIxbagz.js +1 -0
  43. package/dist/assets/actions-Drufb-pQ.js +11 -0
  44. package/dist/assets/{agreement-CJMP5aXs.js → agreement-DxK9sfKx.js} +7 -7
  45. package/dist/assets/api-DOcnwqon.js +1 -0
  46. package/dist/assets/app-avatar-C7ZZG5lQ.js +1 -0
  47. package/dist/assets/ar-CqvGG4eC.js +1 -0
  48. package/dist/assets/audit-logs-CrN9QYVu.js +58 -0
  49. package/dist/assets/blocklet-DX4HGT6b.js +1 -0
  50. package/dist/assets/{brace-fold.es-BTxg_wLJ.js → brace-fold.es-Byk4OhlU.js} +1 -1
  51. package/dist/assets/bundle-avatar-BDTyLzjh.js +1 -0
  52. package/dist/assets/chart-BXerkWdt.js +35 -0
  53. package/dist/assets/{click-to-copy-CQlkjzsa.js → click-to-copy-CK-Mkhd0.js} +1 -1
  54. package/dist/assets/{closebrackets.es-DPsqlFyD.js → closebrackets.es-CTZfsjeS.js} +1 -1
  55. package/dist/assets/{codemirror.es-Fi2mxexE.js → codemirror.es-CosWD2iy.js} +1 -1
  56. package/dist/assets/{comment.es-a1UeEacQ.js → comment.es-DxS_C5_M.js} +1 -1
  57. package/dist/assets/{config-navigation-CmHsrCmV.js → config-navigation-D8N_TmOY.js} +5 -5
  58. package/dist/assets/de-l0XzFKav.js +1 -0
  59. package/dist/assets/{delete-confirm-B-iThtVd.js → delete-confirm-BKnCoOpO.js} +1 -1
  60. package/dist/assets/{detail-BZAl_KQr.js → detail-BmlatkjD.js} +3 -3
  61. package/dist/assets/{dialog.es-C8uMW18p.js → dialog.es-Bg0EeV0q.js} +1 -1
  62. package/dist/assets/{download-0KSPw-JF.js → download-C0fC4yYB.js} +7 -7
  63. package/dist/assets/es-DYmEeFzA.js +1 -0
  64. package/dist/assets/{foldgutter.es-BUJpwqXC.js → foldgutter.es-pqkwUOpu.js} +1 -1
  65. package/dist/assets/fr-DwS-xj4v.js +1 -0
  66. package/dist/assets/getValidReactChildren-Bwdvi5zb.js +1 -0
  67. package/dist/assets/hi-Dj91QHv6.js +1 -0
  68. package/dist/assets/{hint.es-ivkwMGk0.js → hint.es-EAu4kf7y.js} +1 -1
  69. package/dist/assets/{hint.es2-DfGVTJs_.js → hint.es2-BFhwDvJp.js} +1 -1
  70. package/dist/assets/id-CzhlCzfQ.js +1 -0
  71. package/dist/assets/{iframe-DqWFTUQo.js → iframe-DCJ7N4jM.js} +1 -1
  72. package/dist/assets/{index-C8_XBKZH.js → index-6XBeHuD_.js} +45 -45
  73. package/dist/assets/{index-B86s5aQp.js → index-7fpoPAbz.js} +1 -1
  74. package/dist/assets/{index-BBk0uWnE.js → index-B4PWSsiR.js} +1 -1
  75. package/dist/assets/index-B8Hu4oNh.js +80 -0
  76. package/dist/assets/{index-CBGbDmoJ.js → index-BH1hVJpW.js} +1 -1
  77. package/dist/assets/{index-DUl5mJh-.js → index-BI-i5kKF.js} +1 -1
  78. package/dist/assets/{index-D3vCJ_iK.js → index-BJXHdeeV.js} +1 -1
  79. package/dist/assets/{index-CzvJHAp2.js → index-BMfXnuvp.js} +1 -1
  80. package/dist/assets/{index-CV73blTb.js → index-BPY6z3Rs.js} +5 -5
  81. package/dist/assets/{index-utUY9Yqh.js → index-BUnnmW1r.js} +1 -1
  82. package/dist/assets/{index-CBsRI9e3.js → index-B_FDrImE.js} +6 -6
  83. package/dist/assets/{index-NXMGx80c.js → index-BeN4ZgCH.js} +1 -1
  84. package/dist/assets/{index-DKN8qp59.js → index-BvnS-7-1.js} +1 -1
  85. package/dist/assets/{index-DcUSYRm8.js → index-C1PiAS_Y.js} +1 -1
  86. package/dist/assets/{index-epzVNiXu.js → index-C8xCbxUE.js} +1 -1
  87. package/dist/assets/{index-BYUV4HZG.js → index-CDRbsQoL.js} +1 -1
  88. package/dist/assets/{index-DgGfQyfN.js → index-CDre3mnK.js} +3 -3
  89. package/dist/assets/{index-DeziVCjK.js → index-CGjwUKrb.js} +2 -2
  90. package/dist/assets/index-CGyIRwUl.js +21 -0
  91. package/dist/assets/{index-DKzn71mB.js → index-CIV9Tvzf.js} +1 -1
  92. package/dist/assets/{index-CKyWT4da.js → index-CRLxFVWY.js} +12 -12
  93. package/dist/assets/{index-C_Aaydui.js → index-CZrhCkal.js} +1 -1
  94. package/dist/assets/{index-X6j1CU0A.js → index-Ch9-jINY.js} +7 -7
  95. package/dist/assets/{index-CbQbr6SU.js → index-CheSXyoA.js} +11 -11
  96. package/dist/assets/{index-6oQCk-n_.js → index-ClZOvGLQ.js} +2 -2
  97. package/dist/assets/index-CmFVyjgY.js +11 -0
  98. package/dist/assets/{index-_x8JUAAM.js → index-Cu-S2eZJ.js} +2 -2
  99. package/dist/assets/index-CuOQXV32.js +11 -0
  100. package/dist/assets/{index-BiXyfi53.js → index-Cx3miQZ4.js} +18 -6
  101. package/dist/assets/{index-15ZY8qW3.js → index-D8KWuR1-.js} +1 -1
  102. package/dist/assets/{index-Cv_ekVrg.js → index-D9XZ1bG6.js} +1 -1
  103. package/dist/assets/{index-Bf-5RrTA.js → index-DIrIbW6w.js} +1 -1
  104. package/dist/assets/{index-CJNpUIzv.js → index-DdIvdpgD.js} +1 -1
  105. package/dist/assets/{index-DOQVD8My.js → index-DivETz-Z.js} +6 -6
  106. package/dist/assets/{index-CQtPM3HN.js → index-DnZQlEKp.js} +1 -1
  107. package/dist/assets/{index-Dcg7ITZC.js → index-DqnDo97c.js} +5 -5
  108. package/dist/assets/{index-DNXX464I.js → index-DxuvuH9i.js} +1 -1
  109. package/dist/assets/index-HwE3ySwC.js +68 -0
  110. package/dist/assets/{index-B3_F8rHn.js → index-M9-_GBvS.js} +1 -1
  111. package/dist/assets/index-c1dR1RcA.js +12 -0
  112. package/dist/assets/{index-C8uB0KC6.js → index-de76ek1K.js} +1 -1
  113. package/dist/assets/{index-DZu4EBvJ.js → index-nsaxnXRB.js} +1 -1
  114. package/dist/assets/{index-C0OeZtQ5.js → index-qU6j-u6W.js} +26 -18
  115. package/dist/assets/{index-BEJkhJjB.js → index-wRDZOUMs.js} +13 -13
  116. package/dist/assets/{index.es-BT0Xv1XK.js → index.es-CZDnnfg-.js} +1 -1
  117. package/dist/assets/{index.esm-DD4Vggio.js → index.esm-Dkpk3RMi.js} +1 -1
  118. package/dist/assets/{info-addon.es-CKn9poyb.js → info-addon.es-B1aKFVvv.js} +1 -1
  119. package/dist/assets/{info.es-Bex8rGCZ.js → info.es-DTXDBN9z.js} +1 -1
  120. package/dist/assets/{install-from-url-BqIHjaWV.js → install-from-url-DjctVTOl.js} +1 -1
  121. package/dist/assets/{invitation-CJ533J6q.js → invitation-DSdBJgkC.js} +5 -5
  122. package/dist/assets/{is-path-prefix-equal-BubMU6W_.js → is-path-prefix-equal-C6zlDhVp.js} +1 -1
  123. package/dist/assets/{isEqual-ChPSgg_6.js → isEqual-0cnx2qOS.js} +1 -1
  124. package/dist/assets/{item-Bm9dS6kO.js → item-Dln-w3Iq.js} +12 -12
  125. package/dist/assets/ja-Ut-jFS9r.js +1 -0
  126. package/dist/assets/{javascript.es-DPdjmV68.js → javascript.es-DKea0oPd.js} +1 -1
  127. package/dist/assets/{jump-to-line.es-CLUW3m-v.js → jump-to-line.es-DmWSMR-E.js} +1 -1
  128. package/dist/assets/{jump.es-DaexouqF.js → jump.es-CQGzFoAd.js} +1 -1
  129. package/dist/assets/ko-Clp4qzRT.js +1 -0
  130. package/dist/assets/{line-J7AIOVtu.js → line-BIpTQfTJ.js} +3 -3
  131. package/dist/assets/{lint.es-CKdHewU4.js → lint.es-BAY5Woc0.js} +1 -1
  132. package/dist/assets/{lint.es2-BjAVmGDb.js → lint.es2-C4O9zzDQ.js} +1 -1
  133. package/dist/assets/{lint.es3-dNVJPksu.js → lint.es3-q80vs6e3.js} +1 -1
  134. package/dist/assets/list-header-DuWvRnX_.js +57 -0
  135. package/dist/assets/{log-BEVIzfFM.js → log-U-Oy1msj.js} +2 -2
  136. package/dist/assets/{lottie-BCvBgunA.js → lottie-D0zUdkp5.js} +1 -1
  137. package/dist/assets/{matchbrackets.es-Kh8zEgD-.js → matchbrackets.es-B_OCWqIS.js} +1 -1
  138. package/dist/assets/{memory-D6E-mUEt.js → memory-CESYopLm.js} +1 -1
  139. package/dist/assets/{mode.es-D4w9UsR1.js → mode.es-DVfsqtAx.js} +1 -1
  140. package/dist/assets/{mode.es2-DJMIeGF8.js → mode.es2-gg_0Yels.js} +1 -1
  141. package/dist/assets/{mode.es3-DNta3p5B.js → mode.es3-CWCOwidy.js} +1 -1
  142. package/dist/assets/{onlineParser.es-B0KkUbLa.js → onlineParser.es-CTZOlUJG.js} +1 -1
  143. package/dist/assets/overview-D7OPOkGE.js +26 -0
  144. package/dist/assets/pt-BXaJbqdY.js +1 -0
  145. package/dist/assets/react-Blm3BSvE.js +57 -0
  146. package/dist/assets/{redux-BB1V4GV1.js → redux-CaV6uiOr.js} +1 -1
  147. package/dist/assets/resource-dialog-Cbfivwvi.js +57 -0
  148. package/dist/assets/ru-p_K_7IoQ.js +1 -0
  149. package/dist/assets/{runtime-CpxiL1K4.js → runtime-BE0JWW3n.js} +1 -1
  150. package/dist/assets/{schema-DzMTzQhk.js → schema-BKkMgYH9.js} +6 -6
  151. package/dist/assets/sdk-DM3m0pIz.js +1 -0
  152. package/dist/assets/{search.es-B2Zz1TPr.js → search.es-CGDd2k_t.js} +1 -1
  153. package/dist/assets/{searchcursor.es-DihvgROc.js → searchcursor.es-xO-dGzm1.js} +1 -1
  154. package/dist/assets/service-CqEmzSuD.js +1 -0
  155. package/dist/assets/{shorten-label-BvidR6K3.js → shorten-label-CZVhjulh.js} +1 -1
  156. package/dist/assets/{show-hint.es-D0IHmXg9.js → show-hint.es-opE1QlXT.js} +1 -1
  157. package/dist/assets/{slicedToArray-BH3egbSO.js → slicedToArray-C3_toPJB.js} +1 -1
  158. package/dist/assets/{spaces-BQp818hT.js → spaces-Swq2BNwF.js} +1 -1
  159. package/dist/assets/{status-DS0ZTB2Q.js → status-dc380TH5.js} +1 -1
  160. package/dist/assets/{sublime.es-DetK2R2d.js → sublime.es-Bw3Iznmf.js} +1 -1
  161. package/dist/assets/{switch-control-Dx8i02OZ.js → switch-control-CcMPAAj7.js} +1 -1
  162. package/dist/assets/{table-icons-QptkWKog.js → table-icons-TmY--eR2.js} +12 -12
  163. package/dist/assets/{team-CJ9HDUk-.js → team-CBZV1UuS.js} +1 -1
  164. package/dist/assets/th-BJT9w_Lk.js +1 -0
  165. package/dist/assets/{toUpper-Pog6i3An.js → toUpper-Bjz0AMGp.js} +1 -1
  166. package/dist/assets/traffic-wydTjZWz.js +8 -0
  167. package/dist/assets/url-evaluation-Oli2ZbAu.js +1 -0
  168. package/dist/assets/{url-join-6hc3KTiL.js → url-join-BPHLmPis.js} +1 -1
  169. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-h9AFAS4I.js → use-blocklet-info-for-connect-did-spaces-DRjxN2RW.js} +1 -1
  170. package/dist/assets/{useLocalStorage-38YCZmkm.js → useLocalStorage-DABDAbRI.js} +1 -1
  171. package/dist/assets/{useThemeProps-BJi79JB0.js → useThemeProps-Cqic-E0U.js} +1 -1
  172. package/dist/assets/{util-Bomhjq_h.js → util-DMkhCe5T.js} +1 -1
  173. package/dist/assets/vi-CycHlNkN.js +1 -0
  174. package/dist/assets/wait-container-7MRBml26.js +181 -0
  175. package/dist/assets/{withStyles-D-laXqbP.js → withStyles-mttjYCTj.js} +1 -1
  176. package/dist/assets/wrap-locale-Dy0OLcMz.js +1 -0
  177. package/dist/assets/{zh-C1zF4vlg.js → zh-Dv1l1HNj.js} +1 -1
  178. package/dist/assets/zh-tw-44W5osxR.js +1 -0
  179. package/dist/index.html +1 -1
  180. package/dist/service-worker.js +1 -1
  181. package/package.json +1 -1
  182. package/dist/assets/DeleteOutline-Bz5FN4xy.js +0 -1
  183. package/dist/assets/DeleteOutline-_KiNRv7b.js +0 -1
  184. package/dist/assets/EditIcon-1Sw_lvrr.js +0 -1
  185. package/dist/assets/LockIcon-DYDk77yr.js +0 -1
  186. package/dist/assets/actions-DPXuo2Sk.js +0 -1
  187. package/dist/assets/actions-OW93p5Fp.js +0 -11
  188. package/dist/assets/api-KtygFKB2.js +0 -1
  189. package/dist/assets/app-avatar-b-oHcdTJ.js +0 -1
  190. package/dist/assets/ar-Bk-8E67P.js +0 -1
  191. package/dist/assets/audit-logs-Bl3TGXN4.js +0 -58
  192. package/dist/assets/blocklet-Ca0Mtfj9.js +0 -1
  193. package/dist/assets/bundle-avatar-Cehm0jAj.js +0 -1
  194. package/dist/assets/chart-DVPmOLEJ.js +0 -35
  195. package/dist/assets/de-Cu2RTl6l.js +0 -1
  196. package/dist/assets/es-DDPFvDl4.js +0 -1
  197. package/dist/assets/fr-CnF6MLuI.js +0 -1
  198. package/dist/assets/getValidReactChildren-CcN-g-ZI.js +0 -1
  199. package/dist/assets/hi-BXN3D_GN.js +0 -1
  200. package/dist/assets/id-BEXmSSv4.js +0 -1
  201. package/dist/assets/index--VPjGZfZ.js +0 -80
  202. package/dist/assets/index-1ESl_Uuq.js +0 -12
  203. package/dist/assets/index-C3UBi-Js.js +0 -11
  204. package/dist/assets/index-CN89lWuF.js +0 -706
  205. package/dist/assets/index-D-5HHls9.js +0 -21
  206. package/dist/assets/index-DTJngjP2.js +0 -11
  207. package/dist/assets/index-ykpZ39UX.js +0 -54
  208. package/dist/assets/ja-nMk3xlFJ.js +0 -1
  209. package/dist/assets/ko-CsOxrRrq.js +0 -1
  210. package/dist/assets/list-header-C5MC2ybj.js +0 -57
  211. package/dist/assets/overview-CI46gMR_.js +0 -26
  212. package/dist/assets/pt-BViI9ESj.js +0 -1
  213. package/dist/assets/react-bzjNjQ_z.js +0 -56
  214. package/dist/assets/resource-dialog-BNLF--pq.js +0 -736
  215. package/dist/assets/ru-C_GgRAP9.js +0 -1
  216. package/dist/assets/sdk-Dyo8K6wI.js +0 -1
  217. package/dist/assets/service-Clay2pph.js +0 -1
  218. package/dist/assets/th-BmzrcHqy.js +0 -1
  219. package/dist/assets/traffic-CmMIjtbN.js +0 -8
  220. package/dist/assets/url-evaluation-BkY3CXhO.js +0 -1
  221. package/dist/assets/vi-NbF9HZkr.js +0 -1
  222. package/dist/assets/wait-container-C5CgyWEN.js +0 -171
  223. package/dist/assets/wrap-locale-DAesvpnq.js +0 -1
  224. package/dist/assets/zh-tw-BXz91JiB.js +0 -1
@@ -1,2 +1,2 @@
1
- import{r as i,bO as K,b$ as Me,cY as Ye,cW as De,cX as pt,j as b,bM as n,bP as re,bQ as le,bX as J,bK as O,bR as be,d1 as He,d2 as Ve,dF as Ze,bT as fe,dG as lt,bU as ie,dH as ft,dI as it,bJ as mt,bV as se,dJ as Ke,dK as _e,dL as bt,b_ as et,c$ as gt,c0 as ht,a$ as vt}from"./index-CKyWT4da.js";const Ct=["onChange","maxRows","minRows","style","value"];function ke(e){return parseInt(e,10)||0}const yt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rt=i.forwardRef(function(t,o){const{onChange:r,maxRows:l,minRows:a=1,style:c,value:p}=t,v=K(t,Ct),{current:y}=i.useRef(p!=null),h=i.useRef(null),x=Me(o,h),f=i.useRef(null),R=i.useRef(null),C=i.useCallback(()=>{const g=h.current,m=Ye(g).getComputedStyle(g);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const u=R.current;u.style.width=m.width,u.value=g.value||t.placeholder||"x",u.value.slice(-1)===`
1
+ import{r as i,bO as K,b$ as Me,cY as Ye,cW as De,cX as pt,j as b,bM as n,bP as re,bQ as le,bX as J,bK as O,bR as be,d1 as He,d2 as Ve,dF as Ze,bT as fe,dG as lt,bU as ie,dH as ft,dI as it,bJ as mt,bV as se,dJ as Ke,dK as _e,dL as bt,b_ as et,c$ as gt,c0 as ht,a$ as vt}from"./index-CRLxFVWY.js";const Ct=["onChange","maxRows","minRows","style","value"];function ke(e){return parseInt(e,10)||0}const yt={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function xt(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Rt=i.forwardRef(function(t,o){const{onChange:r,maxRows:l,minRows:a=1,style:c,value:p}=t,v=K(t,Ct),{current:y}=i.useRef(p!=null),h=i.useRef(null),x=Me(o,h),f=i.useRef(null),R=i.useRef(null),C=i.useCallback(()=>{const g=h.current,m=Ye(g).getComputedStyle(g);if(m.width==="0px")return{outerHeightStyle:0,overflowing:!1};const u=R.current;u.style.width=m.width,u.value=g.value||t.placeholder||"x",u.value.slice(-1)===`
2
2
  `&&(u.value+=" ");const k=m.boxSizing,I=ke(m.paddingBottom)+ke(m.paddingTop),T=ke(m.borderBottomWidth)+ke(m.borderTopWidth),B=u.scrollHeight;u.value="x";const j=u.scrollHeight;let M=B;a&&(M=Math.max(Number(a)*j,M)),l&&(M=Math.min(Number(l)*j,M)),M=Math.max(M,j);const U=M+(k==="border-box"?I+T:0),_=Math.abs(M-B)<=1;return{outerHeightStyle:U,overflowing:_}},[l,a,t.placeholder]),S=i.useCallback(()=>{const g=C();if(xt(g))return;const d=g.outerHeightStyle,m=h.current;f.current!==d&&(f.current=d,m.style.height=`${d}px`),m.style.overflow=g.overflowing?"hidden":""},[C]);De(()=>{const g=()=>{S()};let d;const m=pt(g),u=h.current,k=Ye(u);k.addEventListener("resize",m);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(g),I.observe(u)),()=>{m.clear(),cancelAnimationFrame(d),k.removeEventListener("resize",m),I&&I.disconnect()}},[C,S]),De(()=>{S()});const W=g=>{y||S(),r&&r(g)};return b.jsxs(i.Fragment,{children:[b.jsx("textarea",n({value:p,onChange:W,ref:x,rows:a,style:c},v)),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:R,tabIndex:-1,style:n({},yt.shadow,c,{paddingTop:0,paddingBottom:0})})]})});function tt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Be(e,t=!1){return e&&(tt(e.value)&&e.value!==""||t&&tt(e.defaultValue)&&e.defaultValue!=="")}function St(e){return e.startAdornment}function It(e){return le("MuiInputBase",e)}const me=re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),wt=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],We=(e,t)=>{const{ownerState:o}=e;return[t.root,o.formControl&&t.formControl,o.startAdornment&&t.adornedStart,o.endAdornment&&t.adornedEnd,o.error&&t.error,o.size==="small"&&t.sizeSmall,o.multiline&&t.multiline,o.color&&t[`color${J(o.color)}`],o.fullWidth&&t.fullWidth,o.hiddenLabel&&t.hiddenLabel]},Ne=(e,t)=>{const{ownerState:o}=e;return[t.input,o.size==="small"&&t.inputSizeSmall,o.multiline&&t.inputMultiline,o.type==="search"&&t.inputTypeSearch,o.startAdornment&&t.inputAdornedStart,o.endAdornment&&t.inputAdornedEnd,o.hiddenLabel&&t.inputHiddenLabel]},$t=e=>{const{classes:t,color:o,disabled:r,error:l,endAdornment:a,focused:c,formControl:p,fullWidth:v,hiddenLabel:y,multiline:h,readOnly:x,size:f,startAdornment:R,type:C}=e,S={root:["root",`color${J(o)}`,r&&"disabled",l&&"error",v&&"fullWidth",c&&"focused",p&&"formControl",f&&f!=="medium"&&`size${J(f)}`,h&&"multiline",R&&"adornedStart",a&&"adornedEnd",y&&"hiddenLabel",x&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",h&&"inputMultiline",f==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",R&&"inputAdornedStart",a&&"inputAdornedEnd",x&&"readOnly"]};return ie(S,It,t)},Ae=O("div",{name:"MuiInputBase",slot:"Root",overridesResolver:We})(({theme:e,ownerState:t})=>n({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${me.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&n({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Ee=O("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ne})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light",r=n({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),l={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return n({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${me.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&:-ms-input-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${me.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Ft=b.jsx(ft,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Pt=i.forwardRef(function(t,o){var r;const l=be({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:c,autoFocus:p,className:v,components:y={},componentsProps:h={},defaultValue:x,disabled:f,disableInjectingGlobalStyles:R,endAdornment:C,fullWidth:S=!1,id:W,inputComponent:g="input",inputProps:d={},inputRef:m,maxRows:u,minRows:k,multiline:I=!1,name:T,onBlur:B,onChange:j,onClick:M,onFocus:U,onKeyDown:_,onKeyUp:A,placeholder:N,readOnly:D,renderSuffix:ee,rows:H,slotProps:P={},slots:ge={},startAdornment:Q,type:we="text",value:$e}=l,X=K(l,wt),V=d.value!=null?d.value:$e,{current:he}=i.useRef(V!=null),q=i.useRef(),ze=i.useCallback(F=>{},[]),Fe=Me(q,m,d.ref,ze),[ve,Ce]=i.useState(!1),$=He(),E=Ve({props:l,muiFormControl:$,states:["color","disabled","error","hiddenLabel","size","required","filled"]});E.focused=$?$.focused:ve,i.useEffect(()=>{!$&&f&&ve&&(Ce(!1),B&&B())},[$,f,ve,B]);const ye=$&&$.onFilled,xe=$&&$.onEmpty,Y=i.useCallback(F=>{Be(F)?ye&&ye():xe&&xe()},[ye,xe]);De(()=>{he&&Y({value:V})},[V,Y,he]);const Le=F=>{if(E.disabled){F.stopPropagation();return}U&&U(F),d.onFocus&&d.onFocus(F),$&&$.onFocus?$.onFocus(F):Ce(!0)},Te=F=>{B&&B(F),d.onBlur&&d.onBlur(F),$&&$.onBlur?$.onBlur(F):Ce(!1)},je=(F,...oe)=>{if(!he){const ce=F.target||q.current;if(ce==null)throw new Error(it(1));Y({value:ce.value})}d.onChange&&d.onChange(F,...oe),j&&j(F,...oe)};i.useEffect(()=>{Y(q.current)},[]);const ae=F=>{q.current&&F.currentTarget===F.target&&q.current.focus(),M&&M(F)};let Re=g,L=d;I&&Re==="input"&&(H?L=n({type:void 0,minRows:H,maxRows:H},L):L=n({type:void 0,maxRows:u,minRows:k},L),Re=Rt);const Pe=F=>{Y(F.animationName==="mui-auto-fill-cancel"?q.current:{value:"x"})};i.useEffect(()=>{$&&$.setAdornedStart(!!Q)},[$,Q]);const G=n({},l,{color:E.color||"primary",disabled:E.disabled,endAdornment:C,error:E.error,focused:E.focused,formControl:$,fullWidth:S,hiddenLabel:E.hiddenLabel,multiline:I,size:E.size,startAdornment:Q,type:we}),te=$t(G),Oe=ge.root||y.Root||Ae,de=P.root||h.root||{},ue=ge.input||y.Input||Ee;return L=n({},L,(r=P.input)!=null?r:h.input),b.jsxs(i.Fragment,{children:[!R&&Ft,b.jsxs(Oe,n({},de,!Ze(Oe)&&{ownerState:n({},G,de.ownerState)},{ref:o,onClick:ae},X,{className:fe(te.root,de.className,v,D&&"MuiInputBase-readOnly"),children:[Q,b.jsx(lt.Provider,{value:null,children:b.jsx(ue,n({ownerState:G,"aria-invalid":E.error,"aria-describedby":a,autoComplete:c,autoFocus:p,defaultValue:x,disabled:E.disabled,id:W,onAnimationStart:Pe,name:T,placeholder:N,readOnly:D,required:E.required,rows:H,value:V,onKeyDown:_,onKeyUp:A,type:we},L,!Ze(ue)&&{as:Re,ownerState:n({},G,L.ownerState)},{ref:Fe,className:fe(te.input,L.className,D&&"MuiInputBase-readOnly"),onBlur:Te,onChange:je,onFocus:Le}))}),C,ee?ee(n({},E,{startAdornment:Q})):null]}))]})}),qe=Pt;function Ot(e){return le("MuiInput",e)}const Se=n({},me,re("MuiInput",["root","underline","input"]));function kt(e){return le("MuiOutlinedInput",e)}const Z=n({},me,re("MuiOutlinedInput",["root","notchedOutline","input"]));function Bt(e){return le("MuiFilledInput",e)}const ne=n({},me,re("MuiFilledInput",["root","underline","input"])),Mt=mt(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Wt=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nt=e=>{const{classes:t,disableUnderline:o}=e,l=ie({root:["root",!o&&"underline"],input:["input"]},Bt,t);return n({},t,l)},At=O(Ae,{shouldForwardProp:e=>se(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...We(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var o;const r=e.palette.mode==="light",l=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",c=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",p=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return n({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:c,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${ne.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${ne.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:p}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(o=(e.vars||e).palette[t.color||"primary"])==null?void 0:o.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ne.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ne.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:l}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ne.disabled}, .${ne.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ne.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&n({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),Et=O(Ee,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ne})(({theme:e,ownerState:t})=>n({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),st=i.forwardRef(function(t,o){var r,l,a,c;const p=be({props:t,name:"MuiFilledInput"}),{components:v={},componentsProps:y,fullWidth:h=!1,inputComponent:x="input",multiline:f=!1,slotProps:R,slots:C={},type:S="text"}=p,W=K(p,Wt),g=n({},p,{fullWidth:h,inputComponent:x,multiline:f,type:S}),d=Nt(p),m={root:{ownerState:g},input:{ownerState:g}},u=R??y?Ke(m,R??y):m,k=(r=(l=C.root)!=null?l:v.Root)!=null?r:At,I=(a=(c=C.input)!=null?c:v.Input)!=null?a:Et;return b.jsx(qe,n({slots:{root:k,input:I},componentsProps:u,fullWidth:h,inputComponent:x,multiline:f,ref:o,type:S},W,{classes:d}))});st.muiName="Input";function zt(e){return le("MuiFormControl",e)}const Lt=re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),wo=Lt,Tt=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],jt=e=>{const{classes:t,margin:o,fullWidth:r}=e,l={root:["root",o!=="none"&&`margin${J(o)}`,r&&"fullWidth"]};return ie(l,zt,t)},Ut=O("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>n({},t.root,t[`margin${J(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>n({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),$o=i.forwardRef(function(t,o){const r=be({props:t,name:"MuiFormControl"}),{children:l,className:a,color:c="primary",component:p="div",disabled:v=!1,error:y=!1,focused:h,fullWidth:x=!1,hiddenLabel:f=!1,margin:R="none",required:C=!1,size:S="medium",variant:W="outlined"}=r,g=K(r,Tt),d=n({},r,{color:c,component:p,disabled:v,error:y,fullWidth:x,hiddenLabel:f,margin:R,required:C,size:S,variant:W}),m=jt(d),[u,k]=i.useState(()=>{let A=!1;return l&&i.Children.forEach(l,N=>{if(!_e(N,["Input","Select"]))return;const D=_e(N,["Select"])?N.props.input:N;D&&St(D.props)&&(A=!0)}),A}),[I,T]=i.useState(()=>{let A=!1;return l&&i.Children.forEach(l,N=>{_e(N,["Input","Select"])&&(Be(N.props,!0)||Be(N.props.inputProps,!0))&&(A=!0)}),A}),[B,j]=i.useState(!1);v&&B&&j(!1);const M=h!==void 0&&!v?h:B;let U;const _=i.useMemo(()=>({adornedStart:u,setAdornedStart:k,color:c,disabled:v,error:y,filled:I,focused:M,fullWidth:x,hiddenLabel:f,size:S,onBlur:()=>{j(!1)},onEmpty:()=>{T(!1)},onFilled:()=>{T(!0)},onFocus:()=>{j(!0)},registerEffect:U,required:C,variant:W}),[u,c,v,y,I,M,x,f,U,C,S,W]);return b.jsx(lt.Provider,{value:_,children:b.jsx(Ut,n({as:p,ownerState:d,className:fe(m.root,a),ref:o},g,{children:l}))})}),_t=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Dt=e=>{const{classes:t,disableUnderline:o}=e,l=ie({root:["root",!o&&"underline"],input:["input"]},Ot,t);return n({},t,l)},Ht=O(Ae,{shouldForwardProp:e=>se(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[...We(e,t),!o.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),n({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Se.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Se.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Se.disabled}, .${Se.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Se.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Vt=O(Ee,{name:"MuiInput",slot:"Input",overridesResolver:Ne})({}),at=i.forwardRef(function(t,o){var r,l,a,c;const p=be({props:t,name:"MuiInput"}),{disableUnderline:v,components:y={},componentsProps:h,fullWidth:x=!1,inputComponent:f="input",multiline:R=!1,slotProps:C,slots:S={},type:W="text"}=p,g=K(p,_t),d=Dt(p),u={root:{ownerState:{disableUnderline:v}}},k=C??h?Ke(C??h,u):u,I=(r=(l=S.root)!=null?l:y.Root)!=null?r:Ht,T=(a=(c=S.input)!=null?c:y.Input)!=null?a:Vt;return b.jsx(qe,n({slots:{root:I,input:T},slotProps:k,fullWidth:x,inputComponent:f,multiline:R,ref:o,type:W},g,{classes:d}))});at.muiName="Input";function Kt(e){return le("MuiNativeSelect",e)}const Xe=re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),qt=["className","disabled","error","IconComponent","inputRef","variant"],Xt=e=>{const{classes:t,variant:o,disabled:r,multiple:l,open:a,error:c}=e,p={select:["select",o,r&&"disabled",l&&"multiple",c&&"error"],icon:["icon",`icon${J(o)}`,a&&"iconOpen",r&&"disabled"]};return ie(p,Kt,t)},dt=({ownerState:e,theme:t})=>n({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":n({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Xe.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Gt=O("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:se,overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.select,t[o.variant],o.error&&t.error,{[`&.${Xe.multiple}`]:t.multiple}]}})(dt),ut=({ownerState:e,theme:t})=>n({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Xe.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Jt=O("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${J(o.variant)}`],o.open&&t.iconOpen]}})(ut),Qt=i.forwardRef(function(t,o){const{className:r,disabled:l,error:a,IconComponent:c,inputRef:p,variant:v="standard"}=t,y=K(t,qt),h=n({},t,{disabled:l,variant:v,error:a}),x=Xt(h);return b.jsxs(i.Fragment,{children:[b.jsx(Gt,n({ownerState:h,className:fe(x.select,r),disabled:l,ref:p||o},y)),t.multiple?null:b.jsx(Jt,{as:c,ownerState:h,className:x.icon})]})});var ot;const Yt=["children","classes","className","label","notched"],Zt=O("fieldset",{shouldForwardProp:se})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),eo=O("legend",{shouldForwardProp:se})(({ownerState:e,theme:t})=>n({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&n({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function to(e){const{className:t,label:o,notched:r}=e,l=K(e,Yt),a=o!=null&&o!=="",c=n({},e,{notched:r,withLabel:a});return b.jsx(Zt,n({"aria-hidden":!0,className:t,ownerState:c},l,{children:b.jsx(eo,{ownerState:c,children:a?b.jsx("span",{children:o}):ot||(ot=b.jsx("span",{className:"notranslate",children:"​"}))})}))}const oo=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],no=e=>{const{classes:t}=e,r=ie({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kt,t);return n({},t,r)},ro=O(Ae,{shouldForwardProp:e=>se(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:We})(({theme:e,ownerState:t})=>{const o=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return n({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Z.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:o}},[`&.${Z.focused} .${Z.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Z.error} .${Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Z.disabled} .${Z.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&n({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),lo=O(to,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),io=O(Ee,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ne})(({theme:e,ownerState:t})=>n({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),ct=i.forwardRef(function(t,o){var r,l,a,c,p;const v=be({props:t,name:"MuiOutlinedInput"}),{components:y={},fullWidth:h=!1,inputComponent:x="input",label:f,multiline:R=!1,notched:C,slots:S={},type:W="text"}=v,g=K(v,oo),d=no(v),m=He(),u=Ve({props:v,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=n({},v,{color:u.color||"primary",disabled:u.disabled,error:u.error,focused:u.focused,formControl:m,fullWidth:h,hiddenLabel:u.hiddenLabel,multiline:R,size:u.size,type:W}),I=(r=(l=S.root)!=null?l:y.Root)!=null?r:ro,T=(a=(c=S.input)!=null?c:y.Input)!=null?a:io;return b.jsx(qe,n({slots:{root:I,input:T},renderSuffix:B=>b.jsx(lo,{ownerState:k,className:d.notchedOutline,label:f!=null&&f!==""&&u.required?p||(p=b.jsxs(i.Fragment,{children:[f," ","*"]})):f,notched:typeof C<"u"?C:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:h,inputComponent:x,multiline:R,ref:o,type:W},g,{classes:n({},d,{notchedOutline:null})}))});ct.muiName="Input";function so(e){return le("MuiSelect",e)}const ao=re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ie=ao;var nt;const uo=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],co=O("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[{[`&.${Ie.select}`]:t.select},{[`&.${Ie.select}`]:t[o.variant]},{[`&.${Ie.error}`]:t.error},{[`&.${Ie.multiple}`]:t.multiple}]}})(dt,{[`&.${Ie.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),po=O("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.icon,o.variant&&t[`icon${J(o.variant)}`],o.open&&t.iconOpen]}})(ut),fo=O("input",{shouldForwardProp:e=>bt(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function rt(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function mo(e){return e==null||typeof e=="string"&&!e.trim()}const bo=e=>{const{classes:t,variant:o,disabled:r,multiple:l,open:a,error:c}=e,p={select:["select",o,r&&"disabled",l&&"multiple",c&&"error"],icon:["icon",`icon${J(o)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ie(p,so,t)},go=i.forwardRef(function(t,o){var r;const{"aria-describedby":l,"aria-label":a,autoFocus:c,autoWidth:p,children:v,className:y,defaultOpen:h,defaultValue:x,disabled:f,displayEmpty:R,error:C=!1,IconComponent:S,inputRef:W,labelId:g,MenuProps:d={},multiple:m,name:u,onBlur:k,onChange:I,onClose:T,onFocus:B,onOpen:j,open:M,readOnly:U,renderValue:_,SelectDisplayProps:A={},tabIndex:N,value:D,variant:ee="standard"}=t,H=K(t,uo),[P,ge]=et({controlled:D,default:x,name:"Select"}),[Q,we]=et({controlled:M,default:h,name:"Select"}),$e=i.useRef(null),X=i.useRef(null),[V,he]=i.useState(null),{current:q}=i.useRef(M!=null),[ze,Fe]=i.useState(),ve=Me(o,W),Ce=i.useCallback(s=>{X.current=s,s&&he(s)},[]),$=V==null?void 0:V.parentNode;i.useImperativeHandle(ve,()=>({focus:()=>{X.current.focus()},node:$e.current,value:P}),[P]),i.useEffect(()=>{h&&Q&&V&&!q&&(Fe(p?null:$.clientWidth),X.current.focus())},[V,p]),i.useEffect(()=>{c&&X.current.focus()},[c]),i.useEffect(()=>{if(!g)return;const s=gt(X.current).getElementById(g);if(s){const w=()=>{getSelection().isCollapsed&&X.current.focus()};return s.addEventListener("click",w),()=>{s.removeEventListener("click",w)}}},[g]);const E=(s,w)=>{s?j&&j(w):T&&T(w),q||(Fe(p?null:$.clientWidth),we(s))},ye=s=>{s.button===0&&(s.preventDefault(),X.current.focus(),E(!0,s))},xe=s=>{E(!1,s)},Y=i.Children.toArray(v),Le=s=>{const w=Y.find(z=>z.props.value===s.target.value);w!==void 0&&(ge(w.props.value),I&&I(s,w))},Te=s=>w=>{let z;if(w.currentTarget.hasAttribute("tabindex")){if(m){z=Array.isArray(P)?P.slice():[];const pe=P.indexOf(s.props.value);pe===-1?z.push(s.props.value):z.splice(pe,1)}else z=s.props.value;if(s.props.onClick&&s.props.onClick(w),P!==z&&(ge(z),I)){const pe=w.nativeEvent||w,Qe=new pe.constructor(pe.type,pe);Object.defineProperty(Qe,"target",{writable:!0,value:{value:z,name:u}}),I(Qe,s)}m||E(!1,w)}},je=s=>{U||[" ","ArrowUp","ArrowDown","Enter"].indexOf(s.key)!==-1&&(s.preventDefault(),E(!0,s))},ae=V!==null&&Q,Re=s=>{!ae&&k&&(Object.defineProperty(s,"target",{writable:!0,value:{value:P,name:u}}),k(s))};delete H["aria-invalid"];let L,Pe;const G=[];let te=!1;(Be({value:P})||R)&&(_?L=_(P):te=!0);const Oe=Y.map(s=>{if(!i.isValidElement(s))return null;let w;if(m){if(!Array.isArray(P))throw new Error(it(2));w=P.some(z=>rt(z,s.props.value)),w&&te&&G.push(s.props.children)}else w=rt(P,s.props.value),w&&te&&(Pe=s.props.children);return i.cloneElement(s,{"aria-selected":w?"true":"false",onClick:Te(s),onKeyUp:z=>{z.key===" "&&z.preventDefault(),s.props.onKeyUp&&s.props.onKeyUp(z)},role:"option",selected:w,value:void 0,"data-value":s.props.value})});te&&(m?G.length===0?L=null:L=G.reduce((s,w,z)=>(s.push(w),z<G.length-1&&s.push(", "),s),[]):L=Pe);let de=ze;!p&&q&&V&&(de=$.clientWidth);let ue;typeof N<"u"?ue=N:ue=f?null:0;const F=A.id||(u?`mui-component-select-${u}`:void 0),oe=n({},t,{variant:ee,value:P,open:ae,error:C}),ce=bo(oe),Ue=n({},d.PaperProps,(r=d.slotProps)==null?void 0:r.paper),Je=ht();return b.jsxs(i.Fragment,{children:[b.jsx(co,n({ref:Ce,tabIndex:ue,role:"combobox","aria-controls":Je,"aria-disabled":f?"true":void 0,"aria-expanded":ae?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,F].filter(Boolean).join(" ")||void 0,"aria-describedby":l,onKeyDown:je,onMouseDown:f||U?null:ye,onBlur:Re,onFocus:B},A,{ownerState:oe,className:fe(A.className,ce.select,y),id:F,children:mo(L)?nt||(nt=b.jsx("span",{className:"notranslate",children:"​"})):L})),b.jsx(fo,n({"aria-invalid":C,value:Array.isArray(P)?P.join(","):P,name:u,ref:$e,"aria-hidden":!0,onChange:Le,tabIndex:-1,disabled:f,className:ce.nativeInput,autoFocus:c,ownerState:oe},H)),b.jsx(po,{as:S,className:ce.icon,ownerState:oe}),b.jsx(vt,n({id:`menu-${u||""}`,anchorEl:$,open:ae,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},d,{MenuListProps:n({"aria-labelledby":g,role:"listbox","aria-multiselectable":m?"true":void 0,disableListWrap:!0,id:Je},d.MenuListProps),slotProps:n({},d.slotProps,{paper:n({},Ue,{style:n({minWidth:de},Ue!=null?Ue.style:null)})}),children:Oe}))]})}),ho=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vo=["root"],Co=e=>{const{classes:t}=e;return t},Ge={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>se(e)&&e!=="variant",slot:"Root"},yo=O(at,Ge)(""),xo=O(ct,Ge)(""),Ro=O(st,Ge)(""),So=i.forwardRef(function(t,o){const r=be({name:"MuiSelect",props:t}),{autoWidth:l=!1,children:a,classes:c={},className:p,defaultOpen:v=!1,displayEmpty:y=!1,IconComponent:h=Mt,id:x,input:f,inputProps:R,label:C,labelId:S,MenuProps:W,multiple:g=!1,native:d=!1,onClose:m,onOpen:u,open:k,renderValue:I,SelectDisplayProps:T,variant:B="outlined"}=r,j=K(r,ho),M=d?Qt:go,U=He(),_=Ve({props:r,muiFormControl:U,states:["variant","error"]}),A=_.variant||B,N=n({},r,{variant:A,classes:c}),D=Co(N),ee=K(D,vo),H=f||{standard:b.jsx(yo,{ownerState:N}),outlined:b.jsx(xo,{label:C,ownerState:N}),filled:b.jsx(Ro,{ownerState:N})}[A],P=Me(o,H.ref);return b.jsx(i.Fragment,{children:i.cloneElement(H,n({inputComponent:M,inputProps:n({children:a,error:_.error,IconComponent:h,variant:A,type:void 0,multiple:g},d?{id:x}:{autoWidth:l,defaultOpen:v,displayEmpty:y,labelId:S,MenuProps:W,onClose:m,onOpen:u,open:k,renderValue:I,SelectDisplayProps:n({id:x},T)},R,{classes:R?Ke(ee,R.classes):ee},f?f.props.inputProps:{})},(g&&d||y)&&A==="outlined"?{notched:!0}:{},{ref:P,className:fe(H.props.className,p,D.root)},!f&&{variant:A},j))})});So.muiName="Select";export{Mt as A,$o as F,qe as I,ct as O,So as S,at as a,Ot as b,Se as c,zt as d,so as e,wo as f,It as g,st as h,me as i,ne as j,Z as o,Ie as s};
@@ -1,4 +1,4 @@
1
- import{bQ as y,bP as w,ek as f,bK as R,eq as _,er as U,bM as o,e9 as $,ar as u,r as M,bR as S,bO as j,j as A,bT as X,bU as K}from"./index-CKyWT4da.js";function N(a){return y("MuiSkeleton",a)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const P=["animation","className","component","height","style","variant","width"];let r=a=>a,p,g,m,b;const B=a=>{const{classes:t,variant:e,animation:i,hasChildren:s,width:l,height:n}=a;return K({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},N,t)},E=f(p||(p=r`
1
+ import{bQ as y,bP as w,ek as f,bK as R,eq as _,er as U,bM as o,e9 as $,ar as u,r as M,bR as S,bO as j,j as A,bT as X,bU as K}from"./index-CRLxFVWY.js";function N(a){return y("MuiSkeleton",a)}w("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const P=["animation","className","component","height","style","variant","width"];let r=a=>a,p,g,m,b;const B=a=>{const{classes:t,variant:e,animation:i,hasChildren:s,width:l,height:n}=a;return K({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},N,t)},E=f(p||(p=r`
2
2
  0% {
3
3
  opacity: 1;
4
4
  }
@@ -1 +1 @@
1
- import{r as S,b_ as St,fm as pe,fn as Lt,b$ as at,cW as wt,c_ as Ge,c$ as $e,fo as Qe,bM as c,dF as Te,bP as Pt,bQ as Ct,bT as oe,j as P,bK as Q,bX as B,eN as ot,eO as nt,bY as lt,dL as dt,bR as $t,cZ as Tt,bO as _t,bS as Y,bU as Rt}from"./index-CKyWT4da.js";const At={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function It(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?It(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ot(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:b=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Z="horizontal",rootRef:be,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:fe,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,H]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,J]=St({controlled:me,default:a??b,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?b:pe(r,b,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-b)/z)+1)].map((r,o)=>({value:b+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ae,ref:Ie}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ie,w),ye=at(be,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ae(o),R.current===!0&&G(i),H(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),H(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,b,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}J(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,b):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Z;L&&Z==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,b,m),z)p=Et(p,z,b);else{const ae=st(g,p);p=g[ae]}p=pe(p,b,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},f=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){A(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),J(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),A=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&H(-1),K&&K(r,n),V.current=void 0,I()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),J(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",f,{passive:!0}),i.addEventListener("touchend",A,{passive:!0})}),I=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",f),r.removeEventListener("mouseup",A),r.removeEventListener("touchmove",f),r.removeEventListener("touchend",A)},[A,f]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),I()}},[I,D]),S.useEffect(()=>{l&&I()},[l,I]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),J(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",f,{passive:!0}),u.addEventListener("mouseup",A)},x=_e(q?y[0]:b,b,m),re=_e(y[y.length-1],b,m)-x,Ee=(r={})=>{const o=Qe(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));H(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),H(-1)};return{active:W,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Qe(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:fe,"aria-labelledby":t,"aria-orientation":Z,"aria-valuemax":le(m),"aria-valuemin":le(b),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},At,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Qe(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ht(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Ut=Q("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Kt=Q("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=Q("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=Q("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=Q(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=Q("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Qt=Q("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:b}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,b&&`size${B(b)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",b&&`thumbSize${B(b)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(U,Ht,C)},Jt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,b,U,ne,K,Z,be,le,z,se,fe,me,V,W,j,ve,H,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),J=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ae,className:Ie,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:f,track:A="normal",valueLabelDisplay:D="off",valueLabelFormat:I=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:J,max:ee,min:te,classes:Ae,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:A,valueLabelDisplay:D,valueLabelFormat:I}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Ze,active:Oe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ot(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Zt(x),$=(l=(d=f==null?void 0:f.root)!=null?d:g.Root)!=null?l:Ut,ae=(L=(C=f==null?void 0:f.rail)!=null?C:g.Rail)!=null?L:Kt,Je=(m=(b=f==null?void 0:f.track)!=null?b:g.Track)!=null?m:Wt,et=(U=(ne=f==null?void 0:f.thumb)!=null?ne:g.Thumb)!=null?U:Xt,tt=(K=(Z=f==null?void 0:f.valueLabel)!=null?Z:g.ValueLabel)!=null?K:qt,je=(be=(le=f==null?void 0:f.mark)!=null?le:g.Mark)!=null?be:Gt,He=(z=(se=f==null?void 0:f.markLabel)!=null?se:g.MarkLabel)!=null?z:Qt,rt=(fe=(me=f==null?void 0:f.input)!=null?me:g.Input)!=null?fe:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,bt=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(H=v==null?void 0:v.valueLabel)!=null?H:R.valueLabel,ft=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},jt($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ie]}),gt=Y({elementType:ae,externalSlotProps:bt,ownerState:x,className:p.rail}),yt=Y({elementType:Je,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:ft,ownerState:x,className:p.mark}),Xe=Y({elementType:He,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Je,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let O;return A===!1?O=u.indexOf(h.value)!==-1:O=A==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||A==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:O},{style:c({},Se,We.style),className:oe(We.className,O&&p.markActive)})),h.label!=null?P.jsx(He,c({"aria-hidden":!0,"data-index":k},Xe,!Te(He)&&{markLabelActive:O},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,O&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),O=D==="off"?Jt:tt;return P.jsx(O,c({},!Te(O)&&{valueLabelFormat:I,valueLabelDisplay:D,value:typeof I=="function"?I(F(h),k):I,index:k,open:Ze===k||Oe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Oe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
1
+ import{r as S,b_ as St,fm as pe,fn as Lt,b$ as at,cW as wt,c_ as Ge,c$ as $e,fo as Qe,bM as c,dF as Te,bP as Pt,bQ as Ct,bT as oe,j as P,bK as Q,bX as B,eN as ot,eO as nt,bY as lt,dL as dt,bR as $t,cZ as Tt,bO as _t,bS as Y,bU as Rt}from"./index-CRLxFVWY.js";const At={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function It(e,t,a=(l,d)=>l===d){return e.length===t.length&&e.every((l,d)=>a(l,t[d]))}const Mt=2;function pt(e,t){return e-t}function st(e,t){var a;const{index:l}=(a=e.reduce((d,L,C)=>{const m=Math.abs(t-L);return d===null||m<d.distance||m===d.distance?{distance:m,index:C}:d},null))!=null?a:{};return l}function Le(e,t){if(t.current!==void 0&&e.changedTouches){const a=e;for(let l=0;l<a.changedTouches.length;l+=1){const d=a.changedTouches[l];if(d.identifier===t.current)return{x:d.clientX,y:d.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function _e(e,t,a){return(e-t)*100/(a-t)}function zt(e,t,a){return(a-t)*e+t}function Nt(e){if(Math.abs(e)<1){const a=e.toExponential().split("e-"),l=a[0].split(".")[1];return(l?l.length:0)+parseInt(a[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Et(e,t,a){const l=Math.round((e-a)/t)*t+a;return Number(l.toFixed(Nt(t)))}function it({values:e,newValue:t,index:a}){const l=e.slice();return l[a]=t,l.sort(pt)}function we({sliderRef:e,activeIndex:t,setActive:a}){var l,d;const L=$e(e.current);if(!((l=e.current)!=null&&l.contains(L.activeElement))||Number(L==null||(d=L.activeElement)==null?void 0:d.getAttribute("data-index"))!==t){var C;(C=e.current)==null||C.querySelector(`[type="range"][data-index="${t}"]`).focus()}a&&a(t)}function Pe(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?It(e,t):!1}const Vt={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Ft=e=>e;let Ce;function ut(){return Ce===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ce=CSS.supports("touch-action","none"):Ce=!0),Ce}function Ot(e){const{"aria-labelledby":t,defaultValue:a,disabled:l=!1,disableSwap:d=!1,isRtl:L=!1,marks:C=!1,max:m=100,min:b=0,name:U,onChange:ne,onChangeCommitted:K,orientation:Z="horizontal",rootRef:be,scale:le=Ft,step:z=1,shiftStep:se=10,tabIndex:fe,value:me}=e,V=S.useRef(),[W,j]=S.useState(-1),[ve,H]=S.useState(-1),[ie,ue]=S.useState(!1),X=S.useRef(0),[_,J]=St({controlled:me,default:a??b,name:"Slider"}),N=ne&&((r,o,n)=>{const i=r.nativeEvent||r,u=new i.constructor(i.type,i);Object.defineProperty(u,"target",{writable:!0,value:{value:o,name:U}}),ne(u,o,n)}),q=Array.isArray(_);let y=q?_.slice().sort(pt):[_];y=y.map(r=>r==null?b:pe(r,b,m));const ce=C===!0&&z!==null?[...Array(Math.floor((m-b)/z)+1)].map((r,o)=>({value:b+z*o})):C||[],g=ce.map(r=>r.value),{isFocusVisibleRef:R,onBlur:Re,onFocus:Ae,ref:Ie}=Lt(),[he,G]=S.useState(-1),w=S.useRef(),ge=at(Ie,w),ye=at(be,ge),ee=r=>o=>{var n;const i=Number(o.currentTarget.getAttribute("data-index"));Ae(o),R.current===!0&&G(i),H(i),r==null||(n=r.onFocus)==null||n.call(r,o)},te=r=>o=>{var n;Re(o),R.current===!1&&G(-1),H(-1),r==null||(n=r.onBlur)==null||n.call(r,o)},ke=(r,o)=>{const n=Number(r.currentTarget.getAttribute("data-index")),i=y[n],u=g.indexOf(i);let s=o;if(ce&&z==null){const M=g[g.length-1];s>M?s=M:s<g[0]?s=g[0]:s=s<i?g[u-1]:g[u+1]}if(s=pe(s,b,m),q){d&&(s=pe(s,y[n-1]||-1/0,y[n+1]||1/0));const M=s;s=it({values:y,newValue:s,index:n});let E=n;d||(E=s.indexOf(M)),we({sliderRef:w,activeIndex:E})}J(s),G(n),N&&!Pe(s,_)&&N(r,s,n),K&&K(r,s)},Me=r=>o=>{var n;if(z!==null){const i=Number(o.currentTarget.getAttribute("data-index")),u=y[i];let s=null;(o.key==="ArrowLeft"||o.key==="ArrowDown")&&o.shiftKey||o.key==="PageDown"?s=Math.max(u-se,b):((o.key==="ArrowRight"||o.key==="ArrowUp")&&o.shiftKey||o.key==="PageUp")&&(s=Math.min(u+se,m)),s!==null&&(ke(o,s),o.preventDefault())}r==null||(n=r.onKeyDown)==null||n.call(r,o)};wt(()=>{if(l&&w.current.contains(document.activeElement)){var r;(r=document.activeElement)==null||r.blur()}},[l]),l&&W!==-1&&j(-1),l&&he!==-1&&G(-1);const ze=r=>o=>{var n;(n=r.onChange)==null||n.call(r,o),ke(o,o.target.valueAsNumber)},xe=S.useRef();let F=Z;L&&Z==="horizontal"&&(F+="-reverse");const v=({finger:r,move:o=!1})=>{const{current:n}=w,{width:i,height:u,bottom:s,left:M}=n.getBoundingClientRect();let E;F.indexOf("vertical")===0?E=(s-r.y)/u:E=(r.x-M)/i,F.indexOf("-reverse")!==-1&&(E=1-E);let p;if(p=zt(E,b,m),z)p=Et(p,z,b);else{const ae=st(g,p);p=g[ae]}p=pe(p,b,m);let $=0;if(q){o?$=xe.current:$=st(y,p),d&&(p=pe(p,y[$-1]||-1/0,y[$+1]||1/0));const ae=p;p=it({values:y,newValue:p,index:$}),d&&o||($=p.indexOf(ae),xe.current=$)}return{newValue:p,activeIndex:$}},f=Ge(r=>{const o=Le(r,V);if(!o)return;if(X.current+=1,r.type==="mousemove"&&r.buttons===0){A(r);return}const{newValue:n,activeIndex:i}=v({finger:o,move:!0});we({sliderRef:w,activeIndex:i,setActive:j}),J(n),!ie&&X.current>Mt&&ue(!0),N&&!Pe(n,_)&&N(r,n,i)}),A=Ge(r=>{const o=Le(r,V);if(ue(!1),!o)return;const{newValue:n}=v({finger:o,move:!0});j(-1),r.type==="touchend"&&H(-1),K&&K(r,n),V.current=void 0,I()}),D=Ge(r=>{if(l)return;ut()||r.preventDefault();const o=r.changedTouches[0];o!=null&&(V.current=o.identifier);const n=Le(r,V);if(n!==!1){const{newValue:u,activeIndex:s}=v({finger:n});we({sliderRef:w,activeIndex:s,setActive:j}),J(u),N&&!Pe(u,_)&&N(r,u,s)}X.current=0;const i=$e(w.current);i.addEventListener("touchmove",f,{passive:!0}),i.addEventListener("touchend",A,{passive:!0})}),I=S.useCallback(()=>{const r=$e(w.current);r.removeEventListener("mousemove",f),r.removeEventListener("mouseup",A),r.removeEventListener("touchmove",f),r.removeEventListener("touchend",A)},[A,f]);S.useEffect(()=>{const{current:r}=w;return r.addEventListener("touchstart",D,{passive:ut()}),()=>{r.removeEventListener("touchstart",D),I()}},[I,D]),S.useEffect(()=>{l&&I()},[l,I]);const Ne=r=>o=>{var n;if((n=r.onMouseDown)==null||n.call(r,o),l||o.defaultPrevented||o.button!==0)return;o.preventDefault();const i=Le(o,V);if(i!==!1){const{newValue:s,activeIndex:M}=v({finger:i});we({sliderRef:w,activeIndex:M,setActive:j}),J(s),N&&!Pe(s,_)&&N(o,s,M)}X.current=0;const u=$e(w.current);u.addEventListener("mousemove",f,{passive:!0}),u.addEventListener("mouseup",A)},x=_e(q?y[0]:b,b,m),re=_e(y[y.length-1],b,m)-x,Ee=(r={})=>{const o=Qe(r),n={onMouseDown:Ne(o||{})},i=c({},o,n);return c({},r,{ref:ye},i)},Ve=r=>o=>{var n;(n=r.onMouseOver)==null||n.call(r,o);const i=Number(o.currentTarget.getAttribute("data-index"));H(i)},Fe=r=>o=>{var n;(n=r.onMouseLeave)==null||n.call(r,o),H(-1)};return{active:W,axis:F,axisProps:Vt,dragging:ie,focusedThumbIndex:he,getHiddenInputProps:(r={})=>{var o;const n=Qe(r),i={onChange:ze(n||{}),onFocus:ee(n||{}),onBlur:te(n||{}),onKeyDown:Me(n||{})},u=c({},n,i);return c({tabIndex:fe,"aria-labelledby":t,"aria-orientation":Z,"aria-valuemax":le(m),"aria-valuemin":le(b),name:U,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(o=e.step)!=null?o:void 0,disabled:l},r,u,{style:c({},At,{direction:L?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Ee,getThumbProps:(r={})=>{const o=Qe(r),n={onMouseOver:Ve(o||{}),onMouseLeave:Fe(o||{})};return c({},r,o,n)},marks:ce,open:ve,range:q,rootRef:ye,trackLeap:re,trackOffset:x,values:y,getThumbStyle:r=>({pointerEvents:W!==-1&&W!==r?"none":void 0})}}const jt=e=>!e||!Te(e);function Ht(e){return Ct("MuiSlider",e)}const T=Pt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dt=e=>{const{open:t}=e;return{offset:oe(t&&T.valueLabelOpen),circle:T.valueLabelCircle,label:T.valueLabelLabel}};function Yt(e){const{children:t,className:a,value:l}=e,d=Dt(e);return t?S.cloneElement(t,{className:oe(t.props.className)},P.jsxs(S.Fragment,{children:[t.props.children,P.jsx("span",{className:oe(d.offset,a),"aria-hidden":!0,children:P.jsx("span",{className:d.circle,children:P.jsx("span",{className:d.label,children:l})})})]})):null}const Bt=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function ct(e){return e}const Ut=Q("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t[`color${B(a.color)}`],a.size!=="medium"&&t[`size${B(a.size)}`],a.marked&&t.marked,a.orientation==="vertical"&&t.vertical,a.track==="inverted"&&t.trackInverted,a.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${T.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${T.dragging}`]:{[`& .${T.thumb}, & .${T.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{color:(e.vars||e).palette[a].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Kt=Q("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Wt=Q("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a,track:"inverted"},style:c({},e.vars?{backgroundColor:e.vars.palette.Slider[`${a}Track`],borderColor:e.vars.palette.Slider[`${a}Track`]}:c({backgroundColor:ot(e.palette[a].main,.62),borderColor:ot(e.palette[a].main,.62)},e.applyStyles("dark",{backgroundColor:nt(e.palette[a].main,.5)}),e.applyStyles("dark",{borderColor:nt(e.palette[a].main,.5)})))}))]}}),Xt=Q("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t[`thumbColor${B(a.color)}`],a.size!=="medium"&&t[`thumbSize${B(a.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${T.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(a=>{var l;return((l=e.vars)!=null?l:e).palette[a].main}).map(a=>({props:{color:a},style:{[`&:hover, &.${T.focusVisible}`]:c({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${lt(e.palette[a].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${T.active}`]:c({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[a].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${lt(e.palette[a].main,.16)}`})}}))]}}),qt=Q(Yt,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>c({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${T.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Gt=Q("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>dt(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),Qt=Q("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>dt(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>c({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Zt=e=>{const{disabled:t,dragging:a,marked:l,orientation:d,track:L,classes:C,color:m,size:b}=e,U={root:["root",t&&"disabled",a&&"dragging",l&&"marked",d==="vertical"&&"vertical",L==="inverted"&&"trackInverted",L===!1&&"trackFalse",m&&`color${B(m)}`,b&&`size${B(b)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",b&&`thumbSize${B(b)}`,m&&`thumbColor${B(m)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Rt(U,Ht,C)},Jt=({children:e})=>e,tr=S.forwardRef(function(t,a){var l,d,L,C,m,b,U,ne,K,Z,be,le,z,se,fe,me,V,W,j,ve,H,ie,ue,X;const _=$t({props:t,name:"MuiSlider"}),J=Tt(),{"aria-label":N,"aria-valuetext":q,"aria-labelledby":y,component:ce="span",components:g={},componentsProps:R={},color:Re="primary",classes:Ae,className:Ie,disableSwap:he=!1,disabled:G=!1,getAriaLabel:w,getAriaValueText:ge,marks:ye=!1,max:ee=100,min:te=0,orientation:ke="horizontal",shiftStep:Me=10,size:ze="medium",step:xe=1,scale:F=ct,slotProps:v,slots:f,track:A="normal",valueLabelDisplay:D="off",valueLabelFormat:I=ct}=_,Ne=_t(_,Bt),x=c({},_,{isRtl:J,max:ee,min:te,classes:Ae,disabled:G,disableSwap:he,orientation:ke,marks:ye,color:Re,size:ze,step:xe,shiftStep:Me,scale:F,track:A,valueLabelDisplay:D,valueLabelFormat:I}),{axisProps:re,getRootProps:Ee,getHiddenInputProps:Ve,getThumbProps:Fe,open:Ze,active:Oe,axis:de,focusedThumbIndex:r,range:o,dragging:n,marks:i,values:u,trackOffset:s,trackLeap:M,getThumbStyle:E}=Ot(c({},x,{rootRef:a}));x.marked=i.length>0&&i.some(h=>h.label),x.dragging=n,x.focusedThumbIndex=r;const p=Zt(x),$=(l=(d=f==null?void 0:f.root)!=null?d:g.Root)!=null?l:Ut,ae=(L=(C=f==null?void 0:f.rail)!=null?C:g.Rail)!=null?L:Kt,Je=(m=(b=f==null?void 0:f.track)!=null?b:g.Track)!=null?m:Wt,et=(U=(ne=f==null?void 0:f.thumb)!=null?ne:g.Thumb)!=null?U:Xt,tt=(K=(Z=f==null?void 0:f.valueLabel)!=null?Z:g.ValueLabel)!=null?K:qt,je=(be=(le=f==null?void 0:f.mark)!=null?le:g.Mark)!=null?be:Gt,He=(z=(se=f==null?void 0:f.markLabel)!=null?se:g.MarkLabel)!=null?z:Qt,rt=(fe=(me=f==null?void 0:f.input)!=null?me:g.Input)!=null?fe:"input",De=(V=v==null?void 0:v.root)!=null?V:R.root,bt=(W=v==null?void 0:v.rail)!=null?W:R.rail,Ye=(j=v==null?void 0:v.track)!=null?j:R.track,Be=(ve=v==null?void 0:v.thumb)!=null?ve:R.thumb,Ue=(H=v==null?void 0:v.valueLabel)!=null?H:R.valueLabel,ft=(ie=v==null?void 0:v.mark)!=null?ie:R.mark,mt=(ue=v==null?void 0:v.markLabel)!=null?ue:R.markLabel,vt=(X=v==null?void 0:v.input)!=null?X:R.input,ht=Y({elementType:$,getSlotProps:Ee,externalSlotProps:De,externalForwardedProps:Ne,additionalProps:c({},jt($)&&{as:ce}),ownerState:c({},x,De==null?void 0:De.ownerState),className:[p.root,Ie]}),gt=Y({elementType:ae,externalSlotProps:bt,ownerState:x,className:p.rail}),yt=Y({elementType:Je,externalSlotProps:Ye,additionalProps:{style:c({},re[de].offset(s),re[de].leap(M))},ownerState:c({},x,Ye==null?void 0:Ye.ownerState),className:p.track}),Ke=Y({elementType:et,getSlotProps:Fe,externalSlotProps:Be,ownerState:c({},x,Be==null?void 0:Be.ownerState),className:p.thumb}),kt=Y({elementType:tt,externalSlotProps:Ue,ownerState:c({},x,Ue==null?void 0:Ue.ownerState),className:p.valueLabel}),We=Y({elementType:je,externalSlotProps:ft,ownerState:x,className:p.mark}),Xe=Y({elementType:He,externalSlotProps:mt,ownerState:x,className:p.markLabel}),xt=Y({elementType:rt,getSlotProps:Ve,externalSlotProps:vt,ownerState:x});return P.jsxs($,c({},ht,{children:[P.jsx(ae,c({},gt)),P.jsx(Je,c({},yt)),i.filter(h=>h.value>=te&&h.value<=ee).map((h,k)=>{const qe=_e(h.value,te,ee),Se=re[de].offset(qe);let O;return A===!1?O=u.indexOf(h.value)!==-1:O=A==="normal"&&(o?h.value>=u[0]&&h.value<=u[u.length-1]:h.value<=u[0])||A==="inverted"&&(o?h.value<=u[0]||h.value>=u[u.length-1]:h.value>=u[0]),P.jsxs(S.Fragment,{children:[P.jsx(je,c({"data-index":k},We,!Te(je)&&{markActive:O},{style:c({},Se,We.style),className:oe(We.className,O&&p.markActive)})),h.label!=null?P.jsx(He,c({"aria-hidden":!0,"data-index":k},Xe,!Te(He)&&{markLabelActive:O},{style:c({},Se,Xe.style),className:oe(p.markLabel,Xe.className,O&&p.markLabelActive),children:h.label})):null]},k)}),u.map((h,k)=>{const qe=_e(h,te,ee),Se=re[de].offset(qe),O=D==="off"?Jt:tt;return P.jsx(O,c({},!Te(O)&&{valueLabelFormat:I,valueLabelDisplay:D,value:typeof I=="function"?I(F(h),k):I,index:k,open:Ze===k||Oe===k||D==="on",disabled:G},kt,{children:P.jsx(et,c({"data-index":k},Ke,{className:oe(p.thumb,Ke.className,Oe===k&&p.active,r===k&&p.focusVisible),style:c({},Se,E(k),Ke.style),children:P.jsx(rt,c({"data-index":k,"aria-label":w?w(k):N,"aria-valuenow":F(h),"aria-labelledby":y,"aria-valuetext":ge?ge(F(h),k):q,value:u[k]},xt))}))}),k)})]}))});export{tr as S};
@@ -1 +1 @@
1
- import{r as v,bQ as w,bP as U,bK as S,bM as s,bR as _,bO as T,j as i,bT as z,bU as W,bJ as V,eT as H,bX as B}from"./index-CKyWT4da.js";const k=v.createContext({}),E=v.createContext({});function J(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const K=["active","children","className","component","completed","disabled","expanded","index","last"],O=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},J,t)},Q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:b,component:c="div",completed:p,disabled:u,expanded:d=!1,index:l,last:m}=n,R=T(n,K),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(k);let[x=!1,j=!1,f=!1]=[a,p,u];h===l?x=a!==void 0?a:!0:!M&&h>l?j=p!==void 0?p:!0:!M&&h<l&&(f=u!==void 0?u:!0);const N=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:j,disabled:f}),[l,m,d,x,j,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:j,disabled:f,expanded:d,component:c}),$=O(C),P=i.jsxs(Q,s({as:c,className:z($.root,b),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:N,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,P]}):P})}),X=V(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),q=V(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function G(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},G,t)},D=S(H,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:b=!1,error:c=!1,icon:p}=n,u=T(n,Y),d=s({},n,{active:a,completed:b,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=z(r,l.root);return c?i.jsx(D,s({as:q,className:m,ref:o,ownerState:d},u)):b?i.jsx(D,s({as:X,className:m,ref:o,ownerState:d},u)):i.jsxs(D,s({className:m,ref:o,ownerState:d},u,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:b,alternativeLabel:c}=e;return W({root:["root",o,r&&"error",b&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:b,componentsProps:c={},error:p=!1,icon:u,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=T(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:I,disabled:M,completed:x,icon:j}=v.useContext(E),f=u||j;let N=m;f&&!N&&(N=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),P=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:z($.root,b),ref:o,ownerState:C},h,{children:[f||N?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(N,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},P,{className:z($.label,P==null?void 0:P.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:b}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",b&&"disabled"],line:["line",`line${B(o)}`]};return W(c,pe,t)},be=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ue=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${B(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=T(n,de),{alternativeLabel:b,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:u,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:b,orientation:c,active:p,completed:d,disabled:u}),m=ve(l);return i.jsx(be,s({className:z(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(ue,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return W({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:b,className:c,component:p="div",connector:u=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=T(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(b).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:u,nonLinear:d,orientation:l}),[a,r,u,d,l]);return i.jsx(k.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:z(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b};
1
+ import{r as v,bQ as w,bP as U,bK as S,bM as s,bR as _,bO as T,j as i,bT as z,bU as W,bJ as V,eT as H,bX as B}from"./index-CRLxFVWY.js";const k=v.createContext({}),E=v.createContext({});function J(e){return w("MuiStep",e)}U("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const K=["active","children","className","component","completed","disabled","expanded","index","last"],O=e=>{const{classes:t,orientation:o,alternativeLabel:n,completed:a}=e;return W({root:["root",o,n&&"alternativeLabel",a&&"completed"]},J,t)},Q=S("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({},e.orientation==="horizontal"&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})),he=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStep"}),{active:a,children:r,className:b,component:c="div",completed:p,disabled:u,expanded:d=!1,index:l,last:m}=n,R=T(n,K),{activeStep:h,connector:L,alternativeLabel:y,orientation:I,nonLinear:M}=v.useContext(k);let[x=!1,j=!1,f=!1]=[a,p,u];h===l?x=a!==void 0?a:!0:!M&&h>l?j=p!==void 0?p:!0:!M&&h<l&&(f=u!==void 0?u:!0);const N=v.useMemo(()=>({index:l,last:m,expanded:d,icon:l+1,active:x,completed:j,disabled:f}),[l,m,d,x,j,f]),C=s({},n,{active:x,orientation:I,alternativeLabel:y,completed:j,disabled:f,expanded:d,component:c}),$=O(C),P=i.jsxs(Q,s({as:c,className:z($.root,b),ref:o,ownerState:C},R,{children:[L&&y&&l!==0?L:null,r]}));return i.jsx(E.Provider,{value:N,children:L&&!y&&l!==0?i.jsxs(v.Fragment,{children:[L,P]}):P})}),X=V(i.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),q=V(i.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function G(e){return w("MuiStepIcon",e)}const A=U("MuiStepIcon",["root","active","completed","error","text"]);var F;const Y=["active","className","completed","error","icon"],Z=e=>{const{classes:t,active:o,completed:n,error:a}=e;return W({root:["root",o&&"active",n&&"completed",a&&"error"],text:["text"]},G,t)},D=S(H,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${A.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${A.error}`]:{color:(e.vars||e).palette.error.main}})),ee=S("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily})),te=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepIcon"}),{active:a=!1,className:r,completed:b=!1,error:c=!1,icon:p}=n,u=T(n,Y),d=s({},n,{active:a,completed:b,error:c}),l=Z(d);if(typeof p=="number"||typeof p=="string"){const m=z(r,l.root);return c?i.jsx(D,s({as:q,className:m,ref:o,ownerState:d},u)):b?i.jsx(D,s({as:X,className:m,ref:o,ownerState:d},u)):i.jsxs(D,s({className:m,ref:o,ownerState:d},u,{children:[F||(F=i.jsx("circle",{cx:"12",cy:"12",r:"12"})),i.jsx(ee,{className:l.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:d,children:p})]}))}return p});function oe(e){return w("MuiStepLabel",e)}const g=U("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),ne=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],ae=e=>{const{classes:t,orientation:o,active:n,completed:a,error:r,disabled:b,alternativeLabel:c}=e;return W({root:["root",o,r&&"error",b&&"disabled",c&&"alternativeLabel"],label:["label",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",a&&"completed",r&&"error",b&&"disabled",c&&"alternativeLabel"],labelContainer:["labelContainer",c&&"alternativeLabel"]},oe,t)},re=S("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation]]}})(({ownerState:e})=>s({display:"flex",alignItems:"center",[`&.${g.alternativeLabel}`]:{flexDirection:"column"},[`&.${g.disabled}`]:{cursor:"default"}},e.orientation==="vertical"&&{textAlign:"left",padding:"8px 0"})),le=S("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(({theme:e})=>s({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${g.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${g.alternativeLabel}`]:{marginTop:16},[`&.${g.error}`]:{color:(e.vars||e).palette.error.main}})),se=S("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${g.alternativeLabel}`]:{paddingRight:0}})),ie=S("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary,[`&.${g.alternativeLabel}`]:{textAlign:"center"}})),ce=v.forwardRef(function(t,o){var n;const a=_({props:t,name:"MuiStepLabel"}),{children:r,className:b,componentsProps:c={},error:p=!1,icon:u,optional:d,slotProps:l={},StepIconComponent:m,StepIconProps:R}=a,h=T(a,ne),{alternativeLabel:L,orientation:y}=v.useContext(k),{active:I,disabled:M,completed:x,icon:j}=v.useContext(E),f=u||j;let N=m;f&&!N&&(N=te);const C=s({},a,{active:I,alternativeLabel:L,completed:x,disabled:M,error:p,orientation:y}),$=ae(C),P=(n=l.label)!=null?n:c.label;return i.jsxs(re,s({className:z($.root,b),ref:o,ownerState:C},h,{children:[f||N?i.jsx(se,{className:$.iconContainer,ownerState:C,children:i.jsx(N,s({completed:x,active:I,error:p,icon:f},R))}):null,i.jsxs(ie,{className:$.labelContainer,ownerState:C,children:[r?i.jsx(le,s({ownerState:C},P,{className:z($.label,P==null?void 0:P.className),children:r})):null,d]})]}))});ce.muiName="StepLabel";function pe(e){return w("MuiStepConnector",e)}U("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const de=["className"],ve=e=>{const{classes:t,orientation:o,alternativeLabel:n,active:a,completed:r,disabled:b}=e,c={root:["root",o,n&&"alternativeLabel",a&&"active",r&&"completed",b&&"disabled"],line:["line",`line${B(o)}`]};return W(c,pe,t)},be=S("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.completed&&t.completed]}})(({ownerState:e})=>s({flex:"1 1 auto"},e.orientation==="vertical"&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),ue=S("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.line,t[`line${B(o.orientation)}`]]}})(({ownerState:e,theme:t})=>{const o=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return s({display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:o},e.orientation==="horizontal"&&{borderTopStyle:"solid",borderTopWidth:1},e.orientation==="vertical"&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})}),me=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepConnector"}),{className:a}=n,r=T(n,de),{alternativeLabel:b,orientation:c="horizontal"}=v.useContext(k),{active:p,disabled:u,completed:d}=v.useContext(E),l=s({},n,{alternativeLabel:b,orientation:c,active:p,completed:d,disabled:u}),m=ve(l);return i.jsx(be,s({className:z(m.root,a),ref:o,ownerState:l},r,{children:i.jsx(ue,{className:m.line,ownerState:l})}))});function xe(e){return w("MuiStepper",e)}U("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const Se=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],Le=e=>{const{orientation:t,nonLinear:o,alternativeLabel:n,classes:a}=e;return W({root:["root",t,o&&"nonLinear",n&&"alternativeLabel"]},xe,a)},fe=S("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,t[o.orientation],o.alternativeLabel&&t.alternativeLabel,o.nonLinear&&t.nonLinear]}})(({ownerState:e})=>s({display:"flex"},e.orientation==="horizontal"&&{flexDirection:"row",alignItems:"center"},e.orientation==="vertical"&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"})),Ce=i.jsx(me,{}),ye=v.forwardRef(function(t,o){const n=_({props:t,name:"MuiStepper"}),{activeStep:a=0,alternativeLabel:r=!1,children:b,className:c,component:p="div",connector:u=Ce,nonLinear:d=!1,orientation:l="horizontal"}=n,m=T(n,Se),R=s({},n,{nonLinear:d,alternativeLabel:r,orientation:l,component:p}),h=Le(R),L=v.Children.toArray(b).filter(Boolean),y=L.map((M,x)=>v.cloneElement(M,s({index:x,last:x+1===L.length},M.props))),I=v.useMemo(()=>({activeStep:a,alternativeLabel:r,connector:u,nonLinear:d,orientation:l}),[a,r,u,d,l]);return i.jsx(k.Provider,{value:I,children:i.jsx(fe,s({as:p,ownerState:R,className:z(h.root,c),ref:o},m,{children:y}))})});export{ye as S,he as a,ce as b};
@@ -1 +1 @@
1
- import{bQ as q,bP as $,bK as S,bX as L,bM as l,r as N,bR as U,bO as _,d1 as re,d2 as le,j as i,bT as O,bU as B,c0 as ae}from"./index-CKyWT4da.js";import{F as ie,S as ne,a as de,h as ce,O as ue}from"./Select-BU4slk93.js";import{I as pe}from"./InputLabel-DGjNXmhb.js";function me(e){return q("MuiFormHelperText",e)}const j=$("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:s,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,o={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(o,me,s)},be=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,t.size&&s[`size${L(t.size)}`],t.contained&&s.contained,t.filled&&s.filled]}})(({theme:e,ownerState:s})=>l({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},s.size==="small"&&{marginTop:4},s.contained&&{marginLeft:14,marginRight:14})),Fe=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,fe),u=re(),o=le({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=l({},r,{component:c,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),b=xe(m);return i.jsx(be,l({as:c,ownerState:m,className:O(b.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function Te(e){return q("MuiTextField",e)}const ve=$("MuiTextField",["root"]),ze=ve,he=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ce={standard:de,filled:ce,outlined:ue},ge=e=>{const{classes:s}=e;return B({root:["root"]},Te,s)},Re=S(ie,{name:"MuiTextField",slot:"Root",overridesResolver:(e,s)=>s.root})({}),He=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:o,disabled:m=!1,error:b=!1,FormHelperTextProps:E,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:F,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:K,multiline:I=!1,name:Q,onBlur:X,onChange:G,onFocus:J,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:P,variant:T="outlined"}=r,se=_(r,he),z=l({},r,{autoFocus:d,color:u,disabled:m,error:b,fullWidth:v,multiline:I,required:y,select:C,variant:T}),oe=ge(z),x={};T==="outlined"&&(F&&typeof F.shrink<"u"&&(x.notched=F.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const a=ae(W),R=h&&a?`${a}-helper-text`:void 0,H=f&&a?`${a}-label`:void 0,te=Ce[T],M=i.jsx(te,l({"aria-describedby":R,autoComplete:n,autoFocus:d,defaultValue:o,fullWidth:v,multiline:I,name:Q,rows:Z,maxRows:D,minRows:K,type:ee,value:P,id:a,inputRef:A,onBlur:X,onChange:G,onFocus:J,placeholder:Y,inputProps:k},x,V));return i.jsxs(Re,l({className:O(oe.root,p),disabled:m,error:b,fullWidth:v,ref:t,required:y,color:u,variant:T,ownerState:z},se,{children:[f!=null&&f!==""&&i.jsx(pe,l({htmlFor:a,id:H},F,{children:f})),C?i.jsx(ne,l({"aria-describedby":R,id:a,labelId:H,value:P,input:M},g,{children:c})):M,h&&i.jsx(Fe,l({id:R},E,{children:h}))]}))});export{Fe as F,He as T,me as a,j as f,Te as g,ze as t};
1
+ import{bQ as q,bP as $,bK as S,bX as L,bM as l,r as N,bR as U,bO as _,d1 as re,d2 as le,j as i,bT as O,bU as B,c0 as ae}from"./index-CRLxFVWY.js";import{F as ie,S as ne,a as de,h as ce,O as ue}from"./Select-C--LsVoO.js";import{I as pe}from"./InputLabel-C31crC9j.js";function me(e){return q("MuiFormHelperText",e)}const j=$("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var w;const fe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],xe=e=>{const{classes:s,contained:t,size:r,disabled:n,error:d,filled:c,focused:p,required:u}=e,o={root:["root",n&&"disabled",d&&"error",r&&`size${L(r)}`,t&&"contained",p&&"focused",c&&"filled",u&&"required"]};return B(o,me,s)},be=S("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,s)=>{const{ownerState:t}=e;return[s.root,t.size&&s[`size${L(t.size)}`],t.contained&&s.contained,t.filled&&s.filled]}})(({theme:e,ownerState:s})=>l({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${j.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${j.error}`]:{color:(e.vars||e).palette.error.main}},s.size==="small"&&{marginTop:4},s.contained&&{marginLeft:14,marginRight:14})),Fe=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiFormHelperText"}),{children:n,className:d,component:c="p"}=r,p=_(r,fe),u=re(),o=le({props:r,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),m=l({},r,{component:c,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),b=xe(m);return i.jsx(be,l({as:c,ownerState:m,className:O(b.root,d),ref:t},p,{children:n===" "?w||(w=i.jsx("span",{className:"notranslate",children:"​"})):n}))});function Te(e){return q("MuiTextField",e)}const ve=$("MuiTextField",["root"]),ze=ve,he=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Ce={standard:de,filled:ce,outlined:ue},ge=e=>{const{classes:s}=e;return B({root:["root"]},Te,s)},Re=S(ie,{name:"MuiTextField",slot:"Root",overridesResolver:(e,s)=>s.root})({}),He=N.forwardRef(function(s,t){const r=U({props:s,name:"MuiTextField"}),{autoComplete:n,autoFocus:d=!1,children:c,className:p,color:u="primary",defaultValue:o,disabled:m=!1,error:b=!1,FormHelperTextProps:E,fullWidth:v=!1,helperText:h,id:W,InputLabelProps:F,inputProps:k,InputProps:V,inputRef:A,label:f,maxRows:D,minRows:K,multiline:I=!1,name:Q,onBlur:X,onChange:G,onFocus:J,placeholder:Y,required:y=!1,rows:Z,select:C=!1,SelectProps:g,type:ee,value:P,variant:T="outlined"}=r,se=_(r,he),z=l({},r,{autoFocus:d,color:u,disabled:m,error:b,fullWidth:v,multiline:I,required:y,select:C,variant:T}),oe=ge(z),x={};T==="outlined"&&(F&&typeof F.shrink<"u"&&(x.notched=F.shrink),x.label=f),C&&((!g||!g.native)&&(x.id=void 0),x["aria-describedby"]=void 0);const a=ae(W),R=h&&a?`${a}-helper-text`:void 0,H=f&&a?`${a}-label`:void 0,te=Ce[T],M=i.jsx(te,l({"aria-describedby":R,autoComplete:n,autoFocus:d,defaultValue:o,fullWidth:v,multiline:I,name:Q,rows:Z,maxRows:D,minRows:K,type:ee,value:P,id:a,inputRef:A,onBlur:X,onChange:G,onFocus:J,placeholder:Y,inputProps:k},x,V));return i.jsxs(Re,l({className:O(oe.root,p),disabled:m,error:b,fullWidth:v,ref:t,required:y,color:u,variant:T,ownerState:z},se,{children:[f!=null&&f!==""&&i.jsx(pe,l({htmlFor:a,id:H},F,{children:f})),C?i.jsx(ne,l({"aria-describedby":R,id:a,labelId:H,value:P,input:M},g,{children:c})):M,h&&i.jsx(Fe,l({id:R},E,{children:h}))]}))});export{Fe as F,He as T,me as a,j as f,Te as g,ze as t};
@@ -1 +1 @@
1
- import{bP as j,bQ as U,r as u,bK as _,bL as H,bX as G,bM as g,e9 as L,bO as P,fp as K,bR as D,j as O,bT as E,bU as F}from"./index-CKyWT4da.js";import{g as Q}from"./getValidReactChildren-CcN-g-ZI.js";function X(t){return U("MuiToggleButton",t)}const x=j("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),A=u.createContext({}),V=u.createContext(void 0);function q(t,o){return o===void 0||t===void 0?!1:Array.isArray(o)?o.indexOf(t)>=0:t===o}const I=["value"],J=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Y=t=>{const{classes:o,fullWidth:r,selected:a,disabled:f,size:c,color:b}=t,B={root:["root",a&&"selected",f&&"disabled",r&&"fullWidth",`size${G(c)}`,b]};return F(B,X,o)},Z=_(H,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[`size${G(r.size)}`]]}})(({theme:t,ownerState:o})=>{let r=o.color==="standard"?t.palette.text.primary:t.palette[o.color].main,a;return t.vars&&(r=o.color==="standard"?t.vars.palette.text.primary:t.vars.palette[o.color].main,a=o.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[o.color].mainChannel),g({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},o.fullWidth&&{width:"100%"},{[`&.${x.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:L(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{color:r,backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:L(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${a} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:L(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:L(r,t.palette.action.selectedOpacity)}}}},o.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},o.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),at=u.forwardRef(function(o,r){const a=u.useContext(A),{value:f}=a,c=P(a,I),b=u.useContext(V),B=K(g({},c,{selected:q(o.value,f)}),o),v=D({props:B,name:"MuiToggleButton"}),{children:R,className:p,color:k="standard",disabled:$=!1,disableFocusRipple:s=!1,fullWidth:M=!1,onChange:C,onClick:i,selected:T,size:m="medium",value:h}=v,y=P(v,J),z=g({},v,{color:k,disabled:$,disableFocusRipple:s,fullWidth:M,size:m}),N=Y(z),n=d=>{i&&(i(d,h),d.defaultPrevented)||C&&C(d,h)},l=b||"";return O.jsx(Z,g({className:E(c.className,N.root,p,l),disabled:$,focusRipple:!s,ref:r,onClick:n,onChange:C,value:h,ownerState:z,"aria-pressed":T},y,{children:R}))});function w(t){return U("MuiToggleButtonGroup",t)}const e=j("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),S=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],tt=t=>{const{classes:o,orientation:r,fullWidth:a,disabled:f}=t,c={root:["root",r==="vertical"&&"vertical",a&&"fullWidth"],grouped:["grouped",`grouped${G(r)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return F(c,w,o)},ot=_("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${e.grouped}`]:o.grouped},{[`& .${e.grouped}`]:o[`grouped${G(r.orientation)}`]},{[`& .${e.firstButton}`]:o.firstButton},{[`& .${e.lastButton}`]:o.lastButton},{[`& .${e.middleButton}`]:o.middleButton},o.root,r.orientation==="vertical"&&o.vertical,r.fullWidth&&o.fullWidth]}})(({ownerState:t,theme:o})=>g({display:"inline-flex",borderRadius:(o.vars||o).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${e.grouped}`]:g({},t.orientation==="horizontal"?{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${e.firstButton},& .${e.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${e.firstButton},& .${e.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderTop:"1px solid transparent"}})),st=u.forwardRef(function(o,r){const a=D({props:o,name:"MuiToggleButtonGroup"}),{children:f,className:c,color:b="standard",disabled:B=!1,exclusive:v=!1,fullWidth:R=!1,onChange:p,orientation:k="horizontal",size:$="medium",value:s}=a,M=P(a,S),C=g({},a,{disabled:B,fullWidth:R,orientation:k,size:$}),i=tt(C),T=u.useCallback((n,l)=>{if(!p)return;const d=s&&s.indexOf(l);let W;s&&d>=0?(W=s.slice(),W.splice(d,1)):W=s?s.concat(l):[l],p(n,W)},[p,s]),m=u.useCallback((n,l)=>{p&&p(n,s===l?null:l)},[p,s]),h=u.useMemo(()=>({className:i.grouped,onChange:v?m:T,value:s,size:$,fullWidth:R,color:b,disabled:B}),[i.grouped,v,m,T,s,$,R,b,B]),y=Q(f),z=y.length,N=n=>{const l=n===0,d=n===z-1;return l&&d?"":l?i.firstButton:d?i.lastButton:i.middleButton};return O.jsx(ot,g({role:"group",className:E(i.root,c),ref:r,ownerState:C},M,{children:O.jsx(A.Provider,{value:h,children:y.map((n,l)=>O.jsx(V.Provider,{value:N(l),children:n},l))})}))});export{st as T,at as a};
1
+ import{bP as j,bQ as U,r as u,bK as _,bL as H,bX as G,bM as g,e9 as L,bO as P,fp as K,bR as D,j as O,bT as E,bU as F}from"./index-CRLxFVWY.js";import{g as Q}from"./getValidReactChildren-Bwdvi5zb.js";function X(t){return U("MuiToggleButton",t)}const x=j("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),A=u.createContext({}),V=u.createContext(void 0);function q(t,o){return o===void 0||t===void 0?!1:Array.isArray(o)?o.indexOf(t)>=0:t===o}const I=["value"],J=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],Y=t=>{const{classes:o,fullWidth:r,selected:a,disabled:f,size:c,color:b}=t,B={root:["root",a&&"selected",f&&"disabled",r&&"fullWidth",`size${G(c)}`,b]};return F(B,X,o)},Z=_(H,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[o.root,o[`size${G(r.size)}`]]}})(({theme:t,ownerState:o})=>{let r=o.color==="standard"?t.palette.text.primary:t.palette[o.color].main,a;return t.vars&&(r=o.color==="standard"?t.vars.palette.text.primary:t.vars.palette[o.color].main,a=o.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[o.color].mainChannel),g({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},o.fullWidth&&{width:"100%"},{[`&.${x.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:L(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x.selected}`]:{color:r,backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:L(r,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${a} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:L(r,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${a} / ${t.vars.palette.action.selectedOpacity})`:L(r,t.palette.action.selectedOpacity)}}}},o.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},o.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),at=u.forwardRef(function(o,r){const a=u.useContext(A),{value:f}=a,c=P(a,I),b=u.useContext(V),B=K(g({},c,{selected:q(o.value,f)}),o),v=D({props:B,name:"MuiToggleButton"}),{children:R,className:p,color:k="standard",disabled:$=!1,disableFocusRipple:s=!1,fullWidth:M=!1,onChange:C,onClick:i,selected:T,size:m="medium",value:h}=v,y=P(v,J),z=g({},v,{color:k,disabled:$,disableFocusRipple:s,fullWidth:M,size:m}),N=Y(z),n=d=>{i&&(i(d,h),d.defaultPrevented)||C&&C(d,h)},l=b||"";return O.jsx(Z,g({className:E(c.className,N.root,p,l),disabled:$,focusRipple:!s,ref:r,onClick:n,onChange:C,value:h,ownerState:z,"aria-pressed":T},y,{children:R}))});function w(t){return U("MuiToggleButtonGroup",t)}const e=j("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),S=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],tt=t=>{const{classes:o,orientation:r,fullWidth:a,disabled:f}=t,c={root:["root",r==="vertical"&&"vertical",a&&"fullWidth"],grouped:["grouped",`grouped${G(r)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return F(c,w,o)},ot=_("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,o)=>{const{ownerState:r}=t;return[{[`& .${e.grouped}`]:o.grouped},{[`& .${e.grouped}`]:o[`grouped${G(r.orientation)}`]},{[`& .${e.firstButton}`]:o.firstButton},{[`& .${e.lastButton}`]:o.lastButton},{[`& .${e.middleButton}`]:o.middleButton},o.root,r.orientation==="vertical"&&o.vertical,r.fullWidth&&o.fullWidth]}})(({ownerState:t,theme:o})=>g({display:"inline-flex",borderRadius:(o.vars||o).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${e.grouped}`]:g({},t.orientation==="horizontal"?{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${e.selected} + .${e.grouped}.${e.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${e.firstButton},& .${e.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${e.firstButton},& .${e.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${e.lastButton},& .${e.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${e.lastButton}.${x.disabled},& .${e.middleButton}.${x.disabled}`]:{borderTop:"1px solid transparent"}})),st=u.forwardRef(function(o,r){const a=D({props:o,name:"MuiToggleButtonGroup"}),{children:f,className:c,color:b="standard",disabled:B=!1,exclusive:v=!1,fullWidth:R=!1,onChange:p,orientation:k="horizontal",size:$="medium",value:s}=a,M=P(a,S),C=g({},a,{disabled:B,fullWidth:R,orientation:k,size:$}),i=tt(C),T=u.useCallback((n,l)=>{if(!p)return;const d=s&&s.indexOf(l);let W;s&&d>=0?(W=s.slice(),W.splice(d,1)):W=s?s.concat(l):[l],p(n,W)},[p,s]),m=u.useCallback((n,l)=>{p&&p(n,s===l?null:l)},[p,s]),h=u.useMemo(()=>({className:i.grouped,onChange:v?m:T,value:s,size:$,fullWidth:R,color:b,disabled:B}),[i.grouped,v,m,T,s,$,R,b,B]),y=Q(f),z=y.length,N=n=>{const l=n===0,d=n===z-1;return l&&d?"":l?i.firstButton:d?i.lastButton:i.middleButton};return O.jsx(ot,g({role:"group",className:E(i.root,c),ref:r,ownerState:C},M,{children:O.jsx(A.Provider,{value:h,children:y.map((n,l)=>O.jsx(V.Provider,{value:N(l),children:n},l))})}))});export{st as T,at as a};
@@ -1 +1 @@
1
- import{aK as t,aL as a,j as r}from"./index-CKyWT4da.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=r;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
1
+ import{aK as t,aL as a,j as r}from"./index-CRLxFVWY.js";var e={},i=a;Object.defineProperty(e,"__esModule",{value:!0});var u=e.default=void 0,v=i(t()),o=r;u=e.default=(0,v.default)((0,o.jsx)("path",{d:"M3 14h4v-4H3zm0 5h4v-4H3zM3 9h4V5H3zm5 5h13v-4H8zm0 5h13v-4H8zM8 5v4h13V5z"}),"ViewList");export{u as d};
@@ -0,0 +1 @@
1
+ import{r as c,j as e,a2 as P,a$ as E,bd as v,U as D,aD as I,a8 as b,P as l,n as T}from"./index-CRLxFVWY.js";import{d as k}from"./MoreHoriz-q-g-RPDL.js";function p({actions:u,size:m,...d}){const[o,r]=c.useState(null),y=!!o,f=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(t.currentTarget)},a=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}r(null)};return e.jsxs(z,{...d,children:[e.jsx(P,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:f,size:m,children:e.jsx(k,{})}),e.jsx(E,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:y,onClose:a,slotProps:{paper:{}},children:u.map((t,s)=>{if(typeof t=="function")return t({close:a});if(t.separator)return e.jsx(v,{},`separator-${s}`);const{icon:h,text:x,render:A,onClick:n,disabled:j=!1,...g}=t;return c.createElement(D,{...g,disabled:j,dense:!0,onClick:async i=>{i.stopPropagation(),await(n==null?void 0:n(i)),a()},key:s,"data-cy":`actions-menu-${s}`},e.jsx(I,{style:{minWidth:24,marginRight:8},children:h}),e.jsx(b,{primary:x}))})})]})}p.propTypes={actions:l.array,size:l.oneOf(["small","medium","large"])};p.defaultProps={actions:[],size:"small"};const z=T.div``;export{p as A};
@@ -0,0 +1,11 @@
1
+ import{bs as Ue,bt as Oe,bu as Te,bv as ze,bw as qe,bx as ke,by as Ve,bz as Ne,bA as He,g as Fe,bB as Ge,bC as We,bD as Ke,r as v,j as a,P as S,aK as j,aL as y,bE as Xe,n as Ze,A as Qe,bl as Ye,f as fe,N as B,b as V,bF as T,a2 as Je,a$ as et,K as tt,O as at,bd as nt,U as rt,aD as st,C as ie,a8 as ot,ac as le,B as it,H as N,m as z,aZ as ce,E as ue,a9 as lt,aQ as ct,M as ut,bG as dt,bH as mt,bI as pt}from"./index-CRLxFVWY.js";import{_ as ft}from"./useLocalStorage-DABDAbRI.js";import{d as vt}from"./MoreVert-s3M1upT5.js";import{d as ht}from"./Delete-DmepPquU.js";import{B as gt}from"./ButtonGroup-D2VNVq8p.js";import{R as _t,a as de}from"./status-dc380TH5.js";import{u as xt}from"./url-evaluation-Oli2ZbAu.js";var St=Ue,jt=ze,yt=qe,Dt=Oe,Ct=Te,$t=ke,Rt=200;function bt(e,r,i,l){var s=-1,m=jt,g=!0,_=e.length,u=[],o=r.length;if(!_)return u;i&&(r=Dt(r,Ct(i))),l?(m=yt,g=!1):r.length>=Rt&&(m=$t,g=!1,r=new St(r));e:for(;++s<_;){var p=e[s],f=i==null?p:i(p);if(p=l||p!==0?p:0,g&&f===f){for(var $=o;$--;)if(r[$]===f)continue e;u.push(p)}else m(r,f,l)||u.push(p)}return u}var Lt=bt,wt=Lt,Bt=Ve,me=Ne;function Mt(e,r,i){var l=e.length;if(l<2)return l?me(e[0]):[];for(var s=-1,m=Array(l);++s<l;)for(var g=e[s],_=-1;++_<l;)_!=s&&(m[s]=wt(m[s]||g,e[_],r,i));return me(Bt(m,1),r,i)}var At=Mt,Et=Ge,It=He,Pt=At,Ut=Ke,Ot=We,Tt=It(function(e){var r=Ot(e);return r=typeof r=="function"?r:void 0,Pt(Et(e,Ut),void 0,r)}),zt=Tt;const qt=Fe(zt),ve=v.createContext({});function he({children:e,type:r}){const[i,l]=v.useState([]),s=v.useRef([]),m=u=>{if(!s.current.includes(u)){const o=[...s.current,u];l(o),s.current=o}},g=u=>{if(s.current.includes(u)){const o=s.current.filter(p=>p!==u);l(o),s.current=o}},_=u=>{const o=i.filter(f=>u.find($=>$===f));qt(o,i).forEach(f=>g(f))};return a.jsx(ve.Provider,{value:{type:r,deletingBlocklets:i,addDeletingDid:m,removeDeletingDid:g,matchDeletingDid:_},children:e})}he.propTypes={type:S.string,children:S.node.isRequired};he.defaultProps={type:"blocklets"};function ja(){return v.useContext(ve)}var H={},kt=y;Object.defineProperty(H,"__esModule",{value:!0});var ge=H.default=void 0,Vt=kt(j()),Nt=a;ge=H.default=(0,Vt.default)((0,Nt.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");var F={},Ht=y;Object.defineProperty(F,"__esModule",{value:!0});var _e=F.default=void 0,Ft=Ht(j()),Gt=a;_e=F.default=(0,Ft.default)((0,Gt.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");var G={},Wt=y;Object.defineProperty(G,"__esModule",{value:!0});var xe=G.default=void 0,Kt=Wt(j()),Xt=a;xe=G.default=(0,Kt.default)((0,Xt.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay");var W={},Zt=y;Object.defineProperty(W,"__esModule",{value:!0});var Se=W.default=void 0,Qt=Zt(j()),Yt=a;Se=W.default=(0,Qt.default)((0,Yt.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"}),"Autorenew");var K={},Jt=y;Object.defineProperty(K,"__esModule",{value:!0});var je=K.default=void 0,ea=Jt(j()),ta=a;je=K.default=(0,ea.default)((0,ta.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings");var X={},aa=y;Object.defineProperty(X,"__esModule",{value:!0});var ye=X.default=void 0,na=aa(j()),ra=a;ye=X.default=(0,na.default)((0,ra.jsx)("path",{d:"M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z"}),"Receipt");var Z={},sa=y;Object.defineProperty(Z,"__esModule",{value:!0});var De=Z.default=void 0,oa=sa(j()),ia=a;De=Z.default=(0,oa.default)((0,ia.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"Group");var Q={},la=y;Object.defineProperty(Q,"__esModule",{value:!0});var Ce=Q.default=void 0,ca=la(j()),ua=a;Ce=Q.default=(0,ca.default)((0,ua.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12 20m6.31-3.1L7.1 5.69C8.45 4.63 10.15 4 12 4c4.42 0 8 3.58 8 8 0 1.85-.63 3.55-1.69 4.9"}),"NotInterested");var Y={},da=y;Object.defineProperty(Y,"__esModule",{value:!0});var $e=Y.default=void 0,ma=da(j()),pa=a;$e=Y.default=(0,ma.default)((0,pa.jsx)("path",{d:"m18.25 7.6-5.5-3.18c-.46-.27-1.04-.27-1.5 0L5.75 7.6c-.46.27-.75.76-.75 1.3v6.35c0 .54.29 1.03.75 1.3l5.5 3.18c.46.27 1.04.27 1.5 0l5.5-3.18c.46-.27.75-.76.75-1.3V8.9c0-.54-.29-1.03-.75-1.3M7 14.96v-4.62l4 2.32v4.61zm5-4.03L8 8.61l4-2.31 4 2.31zm1 6.34v-4.61l4-2.32v4.62zM7 2H3.5C2.67 2 2 2.67 2 3.5V7h2V4h3zm10 0h3.5c.83 0 1.5.67 1.5 1.5V7h-2V4h-3zM7 22H3.5c-.83 0-1.5-.67-1.5-1.5V17h2v3h3zm10 0h3.5c.83 0 1.5-.67 1.5-1.5V17h-2v3h-3z"}),"ViewInAr");const M={Start:ge,Stop:_e,Restart:xe,Reload:Se,Remove:ht,Config:je,Log:ye,Group:De,Cancel:Ce,Dashboard:Xe,Overview:$e};function J({blocklet:e,onStart:r,onComplete:i,variant:l,hasPermission:s,getComponentUrl:m,useBlockletUrlEvaluation:g,..._}){const u=Qe(),o=Ye(),[p,f]=v.useState(null),[$,ee]=v.useState(null),[A,E]=v.useState(!1),[c,q]=v.useState(null),{t:n}=v.useContext(fe),[Re]=ft("skip-blocklet-setup",!1),{loading:be,recommendedUrl:Le}=g(e),te=B.isInProgress(e.status),[ae,ne]=v.useState(!1);v.useEffect(()=>{var d,D;if(!(e!=null&&e.controller))return;ne(((D=(d=e==null?void 0:e.controller)==null?void 0:d.status)==null?void 0:D.value)===V.BLOCKLET_CONTROLLER_STATUS.suspended),(async()=>{var C,R,b;try{const h=await o.api.getLauncherSession({input:{launcherSessionId:(C=e==null?void 0:e.controller)==null?void 0:C.launcherSessionId,launcherUrl:(R=e==null?void 0:e.controller)==null?void 0:R.launcherUrl}});if(h!=null&&h.error){console.error("get launcher session failed",h.error);return}ne([N.LAUNCH_SESSION_STATUS.overdue,N.LAUNCH_SESSION_STATUS.canceled,N.LAUNCH_SESSION_STATUS.terminated].includes((b=h==null?void 0:h.launcherSession)==null?void 0:b.status))}catch(h){console.error("call getLauncherSession error",h)}})()},[]);const{inService:k}=o,I=(t,d,D=!1)=>async()=>{const C=async P=>{var O;r({action:t,blocklet:e}),E(!0),ee(t);let U=!1;try{if(t==="remove")await d(P);else if(t==="start"){if(!B.hasRunnableComponent(e)){ue.error(n("blocklet.noComponent"));return}if(!k&&!Re&&!((O=e.settings)!=null&&O.initialized)&&e.mode!==V.BLOCKLET_MODES.DEVELOPMENT){const x=lt(o.info),oe=new URL(Le);oe.searchParams.set("serverUrl",x),window.open(oe.href),i({action:t,blocklet:e});return}const L=e.children.filter(x=>!B.isInProgress(x.status)&&x.status!=="running").map(x=>x.meta.did),w={did:e.meta.did,componentDids:L};await d({input:w})}else if(["stop","restart","reload"].includes(t)){const L=e.children.filter(x=>x.status==="running").map(x=>x.meta.did),w={did:e.meta.did,componentDids:L};await d({input:w})}else{const L={did:e.meta.did};await d({input:L})}t==="remove"?U=!0:await ct(1e3),t==="reload"&&ue.success(n("blocklet.reloadSuccess")),q(null),i({action:t,blocklet:e})}catch(L){const w=`Blocklet ${t} failed: ${ut(L)}`;throw i({action:t,blocklet:e,error:new Error(w)}),new Error(w)}finally{U||E(!1)}},R=()=>{E(!1),q(null)},b=B.getDisplayName(e,!0),h=e.mode===V.BLOCKLET_MODES.DEVELOPMENT?{description:()=>a.jsx(z,{component:"div",children:a.jsx(z,{gutterBottom:!0,children:n("blocklet.action.removeApplicationDescription")})}),params:{removeType:"complete"}}:{description:(P,U)=>a.jsxs(z,{component:"div",children:[a.jsx(z,{gutterBottom:!0,children:n("blocklet.action.removeApplicationDescription")}),a.jsxs(_t,{name:"removeType",value:P.removeType,onChange:O=>U({...P,removeType:O.target.value}),children:[a.jsx(ce,{value:"backup",control:a.jsx(de,{}),label:n("blocklet.action.removeApplicationAfterBackup")}),a.jsx(ce,{value:"complete",control:a.jsx(de,{}),label:n("blocklet.action.removeApplicationComplete")})]})]}),params:{removeType:"backup"}},Pe={stop:{title:`${n("common.stop")} ${b}`,description:n("blocklet.action.stopDescription"),confirm:n("blocklet.action.confirmStop"),cancel:n("common.cancel"),onConfirm:C,onCancel:R},restart:{title:`${n("common.restart")} ${b}`,description:n("blocklet.action.restartDescription"),confirm:n("blocklet.action.confirmRestart"),cancel:n("common.cancel"),onConfirm:C,onCancel:R},remove:{title:`${n("common.remove")} ${b}`,confirm:n("blocklet.action.confirmRemove"),cancel:n("common.cancel"),onConfirm:C,onCancel:R,...h},cancelDownload:{title:`${n("common.cancel")}`,description:n("blocklet.action.cancelDownloadDescription",{name:b}),confirm:n("common.confirm"),cancel:n("common.cancel"),onConfirm:C,onCancel:R}};D?q(Pe[t]):await C()},we=!!p,Be=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(t.currentTarget)},Me=t=>{try{t.stopPropagation(),t.preventDefault()}catch{}f(null)},re=async(t,d)=>{try{d.stopPropagation(),d.preventDefault()}catch{}if(typeof t.handler=="function")try{E(!0),ee(t.action),await t.handler()}catch(D){console.error(`Blocklet ${t.name} failed: `,D)}finally{E(!1),f(null)}else f(null)},Ae=!k&&B.isDeletableBlocklet(e)?{action:"remove",icon:M.Remove,name:n("common.remove"),handler:I("remove",async({removeType:t})=>{t==="backup"&&await o.api.backupBlocklet({input:{appDid:e.appDid,to:"disk"}}),await o.api.deleteBlocklet({input:{did:e.meta.did,keepData:!1}})},!0),disabled:te}:null,Ee={action:"remove",icon:({sx:t,...d})=>a.jsx(M.Cancel,{sx:{...t,paddingRight:"2px",zoom:.95},...d}),name:n("common.cancel"),handler:I("cancelDownload",o.api.cancelDownloadBlocklet,!0)},Ie=B.getAppMissingConfigs(e),se=[{action:"start",icon:M.Start,name:n("common.start"),handler:I("start",o.api.startBlocklet),disabled:ae||e.children.every(t=>t.status==="running")||T(e.status)||be||te},{action:"stop",icon:M.Stop,name:n("common.stop"),handler:I("stop",o.api.stopBlocklet,!0),disabled:!["running","starting"].includes(e.status)},{action:"restart",icon:M.Restart,name:n("common.restart"),handler:I("restart",o.api.restartBlocklet,!0),disabled:ae||e.status!=="running"},T(e.status)?Ee:Ae,{separator:!0},k?null:{onlyInMenu:!0,action:"overview",icon:M.Overview,name:n("common.overview"),handler:()=>{u(`/blocklets/${e.meta.did}/overview`)},disabled:T(e.status)}].filter(Boolean);return l==="menu"?a.jsxs(pe,{"data-cy":"blocklet-actions",children:[a.jsx(Je,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions","actions-blocklet-did":e.meta.did,onClick:Be,size:"small",disabled:!s||!T(e.status)&&A,children:a.jsx(vt,{})}),a.jsxs(et,{id:"actions-menu",anchorEl:p,keepMounted:!0,open:we,onClose:Me,PaperProps:{},children:[Ie.length>0&&a.jsxs(tt,{style:{maxWidth:"400px"},severity:"error",children:[n("blocklet.config.missingRequired"),a.jsx("br",{}),a.jsx(at,{to:`/blocklets/${e.meta.did}/components`,children:n("blocklet.config.gotoFix")})]}),se.map((t,d)=>t.separator?a.jsx(nt,{},`separator-${d}`):a.jsxs(rt,{dense:!0,onClick:D=>re(t,D),disabled:A||t.disabled,"data-cy":`${t.action}-blocklet`,children:[a.jsx(st,{style:{minWidth:24},children:$===t.action&&A?a.jsx(ie,{size:16,sx:{marginRight:1}}):a.jsx(t.icon,{fontSize:"small"})}),a.jsx(ot,{primary:t.name})]},t.name))]}),c&&a.jsx(le,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]}):a.jsxs(pe,{"data-cy":"blocklet-actions",..._,children:[a.jsx(gt,{children:se.filter(t=>!t.separator&&!t.onlyInMenu).map(t=>a.jsxs(it,{title:t.name,"data-cy":`${t.action}-blocklet`,onClick:()=>re(t),disabled:!!t.disabled||A,children:[$===t.action&&A?a.jsx(ie,{size:16,sx:{marginRight:1}}):a.jsx(t.icon,{}),a.jsx("span",{className:"blocklet-action-text",children:t.name})]},t.name))}),c&&a.jsx(le,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]})}J.propTypes={getComponentUrl:S.func,blocklet:S.object.isRequired,onStart:S.func.isRequired,onComplete:S.func.isRequired,variant:S.oneOf(["menu","group"]),hasPermission:S.bool,useBlockletUrlEvaluation:S.func};J.defaultProps={getComponentUrl:null,variant:"menu",hasPermission:!1,useBlockletUrlEvaluation:()=>{var e;return{loading:!1,recommendedUrl:(e=window==null?void 0:window.location)==null?void 0:e.href}}};const pe=Ze.div`
2
+ display: flex;
3
+ align-items: center;
4
+
5
+ @media (max-width: ${e=>e.theme.breakpoints.values.sm}px) {
6
+ .MuiButton-root {
7
+ padding: 4px;
8
+ font-size: 10px;
9
+ }
10
+ }
11
+ `;function ya({...e}){const{locale:r}=v.useContext(fe),i=dt(J,"mutate_blocklets"),l=({mountPoint:s,blocklet:m})=>mt({blocklet:m,mountPoint:s,params:pt(m,r)});return a.jsx(i,{...e,getComponentUrl:l,useBlockletUrlEvaluation:xt})}export{ya as B,he as D,G as R,Lt as _,_e as a,M as b,ge as c,De as d,xe as e,ja as u};
@@ -1,4 +1,4 @@
1
- import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as K,O as g,M as _,cg as ce,fd as pe,k as y,dE as ue,m as H,F as de,q as V,H as fe,fM as N,bl as me,E as he,z as xe,aZ as ge,a_ as ye,a2 as ve}from"./index-CKyWT4da.js";import{a as Y,h as be,w as we,f as je,b as Ee,d as ke,e as Ce,M as Ne}from"./index-B86s5aQp.js";import{j as L}from"./url-join-6hc3KTiL.js";function Se({children:e,...t}){return i.jsx(Te,{...t,children:e})}Se.propTypes={children:m.any.isRequired};const Te=k.div`
1
+ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as K,Q as g,N as _,cg as ce,fd as pe,k as y,dE as ue,m as H,H as de,t as V,J as fe,fM as N,bl as me,F as he,A as xe,aZ as ge,a_ as ye,a2 as ve}from"./index-CRLxFVWY.js";import{a as Y,h as be,w as we,f as je,b as Ee,d as ke,e as Ce,M as Ne}from"./index-7fpoPAbz.js";import{j as L}from"./url-join-BPHLmPis.js";function Se({children:e,...t}){return i.jsx(Te,{...t,children:e})}Se.propTypes={children:m.any.isRequired};const Te=k.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  align-items: center;
@@ -40,7 +40,7 @@ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as
40
40
  padding-bottom: 10px;
41
41
  }
42
42
  }
43
- `;var F={},Re=ae;Object.defineProperty(F,"__esModule",{value:!0});var De=F.default=void 0,Fe=Re(oe()),Ae=i;De=F.default=(0,Fe.default)((0,Ae.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function A({disabled:e,children:t,onConfirm:r}){return E.useEffect(()=>{if(e)return()=>{};const n=s=>{s.code==="Enter"&&(s.metaKey===!0||s.ctrlKey===!0)&&(s.preventDefault(),s.stopPropagation(),r())};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e,r]),t}A.propTypes={disabled:m.bool,children:m.any.isRequired,onConfirm:m.func.isRequired};A.defaultProps={disabled:!1};function I({onContinue:e,nextDisabled:t,launching:r,texts:n,description:s}){const[a,o]=E.useState(!1),l=()=>o(u=>!u);return i.jsxs(i.Fragment,{children:[i.jsx(Ie,{children:i.jsxs(A,{disabled:t,onConfirm:e,children:[i.jsx("div",{className:"eula-trigger",onClick:l,children:n.listenName}),i.jsx(se,{disabled:t,color:"primary",variant:"contained",className:"next-button",onClick:e,children:r?i.jsxs(i.Fragment,{children:[i.jsx(le,{size:14}),n.launchingText]}):n.buttonNext})]})}),i.jsx(X,{open:a,title:n.listenName,onClose:()=>o(!1),children:s})]})}I.propTypes={onContinue:m.func.isRequired,nextDisabled:m.bool,launching:m.bool,description:m.any,texts:m.object};I.defaultProps={nextDisabled:!1,launching:!1,description:"",texts:{listenName:"",launchingText:"",buttonNext:""}};const Ie=k.div`
43
+ `;var D={},Re=ae;Object.defineProperty(D,"__esModule",{value:!0});var Ae=D.default=void 0,De=Re(oe()),Fe=i;Ae=D.default=(0,De.default)((0,Fe.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");function F({disabled:e,children:t,onConfirm:r}){return E.useEffect(()=>{if(e)return()=>{};const n=s=>{s.code==="Enter"&&(s.metaKey===!0||s.ctrlKey===!0)&&(s.preventDefault(),s.stopPropagation(),r())};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e,r]),t}F.propTypes={disabled:m.bool,children:m.any.isRequired,onConfirm:m.func.isRequired};F.defaultProps={disabled:!1};function I({onContinue:e,nextDisabled:t,launching:r,texts:n,description:s}){const[a,o]=E.useState(!1),l=()=>o(u=>!u);return i.jsxs(i.Fragment,{children:[i.jsx(Ie,{children:i.jsxs(F,{disabled:t,onConfirm:e,children:[i.jsx("div",{className:"eula-trigger",onClick:l,children:n.listenName}),i.jsx(se,{disabled:t,color:"primary",variant:"contained",className:"next-button",onClick:e,children:r?i.jsxs(i.Fragment,{children:[i.jsx(le,{size:14}),n.launchingText]}):n.buttonNext})]})}),i.jsx(X,{open:a,title:n.listenName,onClose:()=>o(!1),children:s})]})}I.propTypes={onContinue:m.func.isRequired,nextDisabled:m.bool,launching:m.bool,description:m.any,texts:m.object};I.defaultProps={nextDisabled:!1,launching:!1,description:"",texts:{listenName:"",launchingText:"",buttonNext:""}};const Ie=k.div`
44
44
  margin: 0 auto;
45
45
  display: flex;
46
46
  justify-content: space-between;
@@ -69,8 +69,8 @@ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as
69
69
  .next-button {
70
70
  min-width: 200px;
71
71
  }
72
- `;var $={exports:{}},q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$e=/\n/g,Pe=/^\s*/,Oe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Be=/^:\s*/,_e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Le=/^[;\s]*/,qe=/^\s+|\s+$/g,Me=`
73
- `,M="/",z="*",j="",ze="comment",Ue="declaration",We=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function s(c){var p=c.match($e);p&&(r+=p.length);var v=c.lastIndexOf(Me);n=~v?c.length-v:n+c.length}function a(){var c={line:r,column:n};return function(p){return p.position=new o(c),h(),p}}function o(c){this.start=c,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function l(c){var p=new Error(t.source+":"+r+":"+n+": "+c);if(p.reason=c,p.filename=t.source,p.line=r,p.column=n,p.source=e,!t.silent)throw p}function u(c){var p=c.exec(e);if(p){var v=p[0];return s(v),e=e.slice(v.length),p}}function h(){u(Pe)}function f(c){var p;for(c=c||[];p=d();)p!==!1&&c.push(p);return c}function d(){var c=a();if(!(M!=e.charAt(0)||z!=e.charAt(1))){for(var p=2;j!=e.charAt(p)&&(z!=e.charAt(p)||M!=e.charAt(p+1));)++p;if(p+=2,j===e.charAt(p-1))return l("End of comment missing");var v=e.slice(2,p-2);return n+=2,s(v),e=e.slice(p),n+=2,c({type:ze,comment:v})}}function x(){var c=a(),p=u(Oe);if(p){if(d(),!u(Be))return l("property missing ':'");var v=u(_e),ie=c({type:Ue,property:U(p[0].replace(q,j)),value:v?U(v[0].replace(q,j)):j});return u(Le),ie}}function b(){var c=[];f(c);for(var p;p=x();)p!==!1&&(c.push(p),f(c));return c}return h(),b()};function U(e){return e?e.replace(qe,j):j}var Ge=We;function Q(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,s=Ge(e),a=typeof t=="function",o,l,u=0,h=s.length;u<h;u++)n=s[u],o=n.property,l=n.value,a?t(o,l,n):l&&(r||(r={}),r[o]=l);return r}$.exports=Q;$.exports.default=Q;var Xe=$.exports;const Ke=K(Xe),He={}.hasOwnProperty;function Ve(e,t,r){if(typeof e!="function")throw new TypeError("h is not a function");const n=Qe(e),s=et(e),a=Je(e);let o,l;if(typeof r=="string"||typeof r=="boolean"?(o=r,r={}):(r||(r={}),o=r.prefix),t&&t.type==="root"){const u=t.children[0];l=t.children.length===1&&u.type==="element"?u:{type:"element",tagName:"div",properties:{},children:t.children}}else if(t&&t.type==="element")l=t;else throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return Z(e,l,{schema:r.space==="svg"?Y:be,prefix:o==null?n||s||a?"h-":void 0:typeof o=="string"?o:o?"h-":void 0,key:0,react:n,vue:s,vdom:a,hyperscript:Ze(e)})}function Z(e,t,r){const n=r.schema;let s=n,a=t.tagName;const o={},l=[];let u=-1,h;n.space==="html"&&a.toLowerCase()==="svg"&&(s=Y,r.schema=s);for(h in t.properties)t.properties&&He.call(t.properties,h)&&Ye(o,h,t.properties[h],r,a);if(r.vdom&&(s.space==="html"?a=a.toUpperCase():s.space&&(o.namespace=we[s.space])),r.prefix&&(r.key++,o.key=r.prefix+r.key),t.children)for(;++u<t.children.length;){const f=t.children[u];f.type==="element"?l.push(Z(e,f,r)):f.type==="text"&&l.push(f.value)}return r.schema=n,l.length>0?e.call(t,a,o,l):e.call(t,a,o)}function Ye(e,t,r,n,s){const a=je(n.schema,t);let o;r==null||typeof r=="number"&&Number.isNaN(r)||r===!1&&(n.vue||n.vdom||n.hyperscript)||!r&&a.boolean&&(n.vue||n.vdom||n.hyperscript)||(Array.isArray(r)&&(r=a.commaSeparated?Ee(r):ke(r)),a.boolean&&n.hyperscript&&(r=""),a.property==="style"&&typeof r=="string"&&(n.react||n.vue||n.vdom)&&(r=tt(r,s)),n.vue?a.property!=="style"&&(o="attrs"):a.mustUseProperty||(n.vdom?a.property!=="style"&&(o="attributes"):n.hyperscript&&(o="attrs")),o?e[o]=Object.assign(e[o]||{},{[a.attribute]:r}):a.space&&n.react?e[Ce[a.property]||a.property]=r:e[a.attribute]=r)}function Qe(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function Ze(e){return"context"in e&&"cleanup"in e}function Je(e){return e("div",{}).type==="VirtualNode"}function et(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function tt(e,t){const r={};try{Ke(e,(n,s)=>{n.slice(0,4)==="-ms-"&&(n="ms-"+n.slice(4)),r[n.replace(/-([a-z])/g,(a,o)=>o.toUpperCase())]=s})}catch(n){const s=n;throw s.message=t+"[style]"+s.message.slice(9),s}return r}var nt=J;function J(e){if(typeof e=="string")return at(e);if(e==null)return st;if(typeof e=="object")return("length"in e?ot:it)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function rt(e){for(var t=[],r=e.length,n=-1;++n<r;)t[n]=J(e[n]);return t}function it(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}function ot(e){var t=rt(e),r=t.length;return n;function n(){for(var s=-1;++s<r;)if(t[s].apply(this,arguments))return!0;return!1}}function at(e){return t;function t(r){return!!(r&&r.type===e)}}function st(){return!0}var lt=S,ct=nt,ee=!0,te="skip",C=!1;S.CONTINUE=ee;S.SKIP=te;S.EXIT=C;function S(e,t,r,n){var s;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),s=ct(t),a(e,null,[]);function a(l,u,h){var f=[],d;return(!t||s(l,u,h[h.length-1]||null))&&(f=W(r(l,h)),f[0]===C)?f:l.children&&f[0]!==te?(d=W(o(l.children,h.concat(l))),d[0]===C?d:f):f}function o(l,u){for(var h=-1,f=n?-1:1,d=(n?l.length:h)+f,x;d>h&&d<l.length;){if(x=a(l[d],d,u),x[0]===C)return x;d=typeof x[1]=="number"?x[1]:d+f}}}function W(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[ee,e]:[e]}var pt=R,T=lt,ut=T.CONTINUE,dt=T.SKIP,ft=T.EXIT;R.CONTINUE=ut;R.SKIP=dt;R.EXIT=ft;function R(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),T(e,t,s,n);function s(a,o){var l=o[o.length-1],u=l?l.children.indexOf(a):null;return r(a,u,l)}}var mt=pt,ht=Object.prototype.hasOwnProperty,D={align:"text-align",valign:"vertical-align",height:"height",width:"width"},xt=function(t){return mt(t,"element",gt),t};function gt(e){if(!(e.tagName!=="tr"&&e.tagName!=="td"&&e.tagName!=="th")){var t,r;for(t in D)!ht.call(D,t)||e.properties[t]===void 0||(r=D[t],yt(e,r,e.properties[t]),delete e.properties[t])}}function yt(e,t,r){var n=(e.properties.style||"").trim();n&&!/;\s*/.test(n)&&(n+=";"),n&&(n+=" ");var s=n+t+": "+r+";";e.properties.style=s}const vt=K(xt);function bt(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const wt={}.hasOwnProperty,jt=new Set(["table","thead","tbody","tfoot","tr"]);function Et(e){if(!e||typeof e.createElement!="function")throw new TypeError("createElement is not a function");const t=e.createElement,r=e.fixTableCellAlign!==!1;Object.assign(this,{Compiler:n});function n(a){let o=Ve(s,r?vt(a):a,e.prefix);return a.type==="root"?(o=o&&typeof o=="object"&&"type"in o&&"props"in o&&o.type==="div"&&(a.children.length!==1||a.children[0].type!=="element")?o.props.children:[o],t(e.Fragment||"div",{},o)):o}function s(a,o,l){if(l&&jt.has(a)&&(l=l.filter(u=>!bt(u))),e.components&&wt.call(e.components,a)){const u=e.components[a];return e.passNode&&typeof u=="function"&&(o=Object.assign({node:this},o)),t(u,o,l)}return t(a,o,l)}}function P({children:e}){return i.jsx(kt,{children:e})}const G="source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace !important",kt=k(g)`
72
+ `;var $={exports:{}},q=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,$e=/\n/g,Pe=/^\s*/,Be=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Oe=/^:\s*/,_e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Le=/^[;\s]*/,qe=/^\s+|\s+$/g,Me=`
73
+ `,M="/",z="*",j="",ze="comment",Ue="declaration",We=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var r=1,n=1;function s(c){var p=c.match($e);p&&(r+=p.length);var v=c.lastIndexOf(Me);n=~v?c.length-v:n+c.length}function a(){var c={line:r,column:n};return function(p){return p.position=new o(c),h(),p}}function o(c){this.start=c,this.end={line:r,column:n},this.source=t.source}o.prototype.content=e;function l(c){var p=new Error(t.source+":"+r+":"+n+": "+c);if(p.reason=c,p.filename=t.source,p.line=r,p.column=n,p.source=e,!t.silent)throw p}function u(c){var p=c.exec(e);if(p){var v=p[0];return s(v),e=e.slice(v.length),p}}function h(){u(Pe)}function f(c){var p;for(c=c||[];p=d();)p!==!1&&c.push(p);return c}function d(){var c=a();if(!(M!=e.charAt(0)||z!=e.charAt(1))){for(var p=2;j!=e.charAt(p)&&(z!=e.charAt(p)||M!=e.charAt(p+1));)++p;if(p+=2,j===e.charAt(p-1))return l("End of comment missing");var v=e.slice(2,p-2);return n+=2,s(v),e=e.slice(p),n+=2,c({type:ze,comment:v})}}function x(){var c=a(),p=u(Be);if(p){if(d(),!u(Oe))return l("property missing ':'");var v=u(_e),ie=c({type:Ue,property:U(p[0].replace(q,j)),value:v?U(v[0].replace(q,j)):j});return u(Le),ie}}function b(){var c=[];f(c);for(var p;p=x();)p!==!1&&(c.push(p),f(c));return c}return h(),b()};function U(e){return e?e.replace(qe,j):j}var Ge=We;function Q(e,t){var r=null;if(!e||typeof e!="string")return r;for(var n,s=Ge(e),a=typeof t=="function",o,l,u=0,h=s.length;u<h;u++)n=s[u],o=n.property,l=n.value,a?t(o,l,n):l&&(r||(r={}),r[o]=l);return r}$.exports=Q;$.exports.default=Q;var Xe=$.exports;const Ke=K(Xe),He={}.hasOwnProperty;function Ve(e,t,r){if(typeof e!="function")throw new TypeError("h is not a function");const n=Qe(e),s=et(e),a=Ze(e);let o,l;if(typeof r=="string"||typeof r=="boolean"?(o=r,r={}):(r||(r={}),o=r.prefix),t&&t.type==="root"){const u=t.children[0];l=t.children.length===1&&u.type==="element"?u:{type:"element",tagName:"div",properties:{},children:t.children}}else if(t&&t.type==="element")l=t;else throw new Error("Expected root or element, not `"+(t&&t.type||t)+"`");return J(e,l,{schema:r.space==="svg"?Y:be,prefix:o==null?n||s||a?"h-":void 0:typeof o=="string"?o:o?"h-":void 0,key:0,react:n,vue:s,vdom:a,hyperscript:Je(e)})}function J(e,t,r){const n=r.schema;let s=n,a=t.tagName;const o={},l=[];let u=-1,h;n.space==="html"&&a.toLowerCase()==="svg"&&(s=Y,r.schema=s);for(h in t.properties)t.properties&&He.call(t.properties,h)&&Ye(o,h,t.properties[h],r,a);if(r.vdom&&(s.space==="html"?a=a.toUpperCase():s.space&&(o.namespace=we[s.space])),r.prefix&&(r.key++,o.key=r.prefix+r.key),t.children)for(;++u<t.children.length;){const f=t.children[u];f.type==="element"?l.push(J(e,f,r)):f.type==="text"&&l.push(f.value)}return r.schema=n,l.length>0?e.call(t,a,o,l):e.call(t,a,o)}function Ye(e,t,r,n,s){const a=je(n.schema,t);let o;r==null||typeof r=="number"&&Number.isNaN(r)||r===!1&&(n.vue||n.vdom||n.hyperscript)||!r&&a.boolean&&(n.vue||n.vdom||n.hyperscript)||(Array.isArray(r)&&(r=a.commaSeparated?Ee(r):ke(r)),a.boolean&&n.hyperscript&&(r=""),a.property==="style"&&typeof r=="string"&&(n.react||n.vue||n.vdom)&&(r=tt(r,s)),n.vue?a.property!=="style"&&(o="attrs"):a.mustUseProperty||(n.vdom?a.property!=="style"&&(o="attributes"):n.hyperscript&&(o="attrs")),o?e[o]=Object.assign(e[o]||{},{[a.attribute]:r}):a.space&&n.react?e[Ce[a.property]||a.property]=r:e[a.attribute]=r)}function Qe(e){const t=e("div",{});return!!(t&&("_owner"in t||"_store"in t)&&(t.key===void 0||t.key===null))}function Je(e){return"context"in e&&"cleanup"in e}function Ze(e){return e("div",{}).type==="VirtualNode"}function et(e){const t=e("div",{});return!!(t&&t.context&&t.context._isVue)}function tt(e,t){const r={};try{Ke(e,(n,s)=>{n.slice(0,4)==="-ms-"&&(n="ms-"+n.slice(4)),r[n.replace(/-([a-z])/g,(a,o)=>o.toUpperCase())]=s})}catch(n){const s=n;throw s.message=t+"[style]"+s.message.slice(9),s}return r}var nt=Z;function Z(e){if(typeof e=="string")return at(e);if(e==null)return st;if(typeof e=="object")return("length"in e?ot:it)(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function rt(e){for(var t=[],r=e.length,n=-1;++n<r;)t[n]=Z(e[n]);return t}function it(e){return t;function t(r){var n;for(n in e)if(r[n]!==e[n])return!1;return!0}}function ot(e){var t=rt(e),r=t.length;return n;function n(){for(var s=-1;++s<r;)if(t[s].apply(this,arguments))return!0;return!1}}function at(e){return t;function t(r){return!!(r&&r.type===e)}}function st(){return!0}var lt=S,ct=nt,ee=!0,te="skip",C=!1;S.CONTINUE=ee;S.SKIP=te;S.EXIT=C;function S(e,t,r,n){var s;typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),s=ct(t),a(e,null,[]);function a(l,u,h){var f=[],d;return(!t||s(l,u,h[h.length-1]||null))&&(f=W(r(l,h)),f[0]===C)?f:l.children&&f[0]!==te?(d=W(o(l.children,h.concat(l))),d[0]===C?d:f):f}function o(l,u){for(var h=-1,f=n?-1:1,d=(n?l.length:h)+f,x;d>h&&d<l.length;){if(x=a(l[d],d,u),x[0]===C)return x;d=typeof x[1]=="number"?x[1]:d+f}}}function W(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[ee,e]:[e]}var pt=R,T=lt,ut=T.CONTINUE,dt=T.SKIP,ft=T.EXIT;R.CONTINUE=ut;R.SKIP=dt;R.EXIT=ft;function R(e,t,r,n){typeof t=="function"&&typeof r!="function"&&(n=r,r=t,t=null),T(e,t,s,n);function s(a,o){var l=o[o.length-1],u=l?l.children.indexOf(a):null;return r(a,u,l)}}var mt=pt,ht=Object.prototype.hasOwnProperty,A={align:"text-align",valign:"vertical-align",height:"height",width:"width"},xt=function(t){return mt(t,"element",gt),t};function gt(e){if(!(e.tagName!=="tr"&&e.tagName!=="td"&&e.tagName!=="th")){var t,r;for(t in A)!ht.call(A,t)||e.properties[t]===void 0||(r=A[t],yt(e,r,e.properties[t]),delete e.properties[t])}}function yt(e,t,r){var n=(e.properties.style||"").trim();n&&!/;\s*/.test(n)&&(n+=";"),n&&(n+=" ");var s=n+t+": "+r+";";e.properties.style=s}const vt=K(xt);function bt(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}const wt={}.hasOwnProperty,jt=new Set(["table","thead","tbody","tfoot","tr"]);function Et(e){if(!e||typeof e.createElement!="function")throw new TypeError("createElement is not a function");const t=e.createElement,r=e.fixTableCellAlign!==!1;Object.assign(this,{Compiler:n});function n(a){let o=Ve(s,r?vt(a):a,e.prefix);return a.type==="root"?(o=o&&typeof o=="object"&&"type"in o&&"props"in o&&o.type==="div"&&(a.children.length!==1||a.children[0].type!=="element")?o.props.children:[o],t(e.Fragment||"div",{},o)):o}function s(a,o,l){if(l&&jt.has(a)&&(l=l.filter(u=>!bt(u))),e.components&&wt.call(e.components,a)){const u=e.components[a];return e.passNode&&typeof u=="function"&&(o=Object.assign({node:this},o)),t(u,o,l)}return t(a,o,l)}}function P({children:e}){return i.jsx(kt,{children:e})}const G="source-code-pro, Menlo, Monaco, Consolas, Courier New, monospace !important",kt=k(g)`
74
74
  .highlight pre,
75
75
  pre {
76
76
  border-radius: 5px;
@@ -104,7 +104,7 @@ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as
104
104
  .anchor {
105
105
  display: none;
106
106
  }
107
- `;P.propTypes={children:m.any.isRequired};P.defaultProps={};function ne({infoList:e=[]}){return i.jsx(g,{className:"info-table",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"max-content 1fr"},columnGap:4,rowGap:1.5},children:e.map(t=>i.jsxs(i.Fragment,{children:[i.jsx(g,{component:"span",sx:{fontWeight:"bold",whiteSpace:"nowrap"},children:t.key}),i.jsx(g,{component:"span",sx:{marginTop:{xs:-1,md:0}},children:t.value})]}))})}ne.propTypes={infoList:m.arrayOf(m.shape({key:m.string,value:m.string}))};const Ct=e=>e.payment?(e.payment.price||[]).map(r=>r.value||0).every(r=>r===0):!0,Nt=new Et({createElement:E.createElement}).Compiler,w={zh:{appinfo:{name:"应用名",version:"版本号",author:"开发者",description:"描述",community:"社区地址",documentation:"文档手册",support:"服务支持",overview:"概述",requirements:"节点版本要求"}},en:{appinfo:{name:"Name",version:"Version",author:"Author",description:"Description",community:"Community",documentation:"Documentation",support:"Support",overview:"Overview",requirements:"Server requirements"}}};function O({blockletMeta:e,locale:t,handleDescEle:r}){const{data:n}=e,{registryUrl:s,did:a}=n,o=_.getDisplayName({meta:n}),l=ce(()=>s&&a?fetch(L(s,"/api/blocklets",a,"readme")).then(c=>c.json()):null,{refreshDeps:[s,a]}),u=pe(()=>l.data?l.data[t]||l.data.en||l.data[Object.keys(l.data)[0]]:"",[l]),h=n&&n.htmlAst?Nt(n.htmlAst):"",f=Ct(n);let d=y(n,"owner.fullName");if(d){const c=y(n,"owner.did");c&&(d=i.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[d,i.jsx(ue,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:c,compact:!0,size:14,locale:t})]}))}else d=y(n,"author.name");const x=[{key:y(w[t],"appinfo.name"),value:_.getDisplayName({meta:n})},{key:y(w[t],"appinfo.version"),value:n.version},{key:y(w[t],"appinfo.author"),value:d},{type:"description",key:y(w[t],"appinfo.description"),value:n.description}];n.requirements&&x.push({key:y(w[t],"appinfo.requirements"),value:n.requirements.server}),n.community&&x.push({key:y(w[t],"appinfo.community"),value:i.jsx("a",{href:n.community,target:"_blank",rel:"noreferrer",children:n.community})}),n.documentation&&x.push({key:y(w[t],"appinfo.documentation"),value:i.jsx("a",{href:n.documentation,target:"_blank",rel:"noreferrer",children:n.documentation})}),n.support&&x.push({key:y(w[t],"appinfo.support"),value:i.jsx("a",{href:`mailto:${n.support}`,target:"_blank",rel:"noreferrer",children:n.support})}),h&&x.push({key:y(w[t],"appinfo.overview"),value:""});let b;return t==="zh"?b=i.jsxs(i.Fragment,{children:[f?i.jsxs("p",{children:["您可以免费使用 ",i.jsx("b",{children:o}),";"]}):i.jsxs("p",{children:["您需要购买才能使用 ",i.jsx("b",{children:o}),";"]}),i.jsx("p",{children:"在应用启动前,需要选择您的节点;"}),i.jsx("p",{children:"如果您没有节点,我们会引导您创建新的节点;"}),i.jsx("p",{children:"下面为该应用的信息:"})]}):b=i.jsxs(i.Fragment,{children:[f?i.jsxs("p",{children:["You can use ",i.jsx("b",{children:o})," for free;"]}):i.jsxs("p",{children:["You need to purchase before launch ",i.jsx("b",{children:o}),";"]}),i.jsx("p",{children:"Before the blocklet starts, you need to select your Blocklet Server; "}),i.jsx("p",{children:"If you do not have any Blocklet Server, we will guide you to create a new one; "}),i.jsx("p",{children:"Below is the information for the blocklet: "})]}),i.jsxs(Tt,{children:[r||b,i.jsx(ne,{infoList:x}),u?i.jsxs("div",{className:"app-overview",children:[i.jsx(H,{variant:"h5",gutterBottom:!0,children:y(w[t],"appinfo.overview")}),i.jsx(P,{children:i.jsx(St,{component:"div",className:"content-wrapper post-content",children:i.jsx(Ne,{source:u,wrapperElement:{"data-color-mode":"light"},urlTransform:(c,p,v)=>c.startsWith("/")?L(s,c):c})})})]}):h?i.jsx("div",{className:"app-overview",children:h}):null]})}const St=k(H)`
107
+ `;P.propTypes={children:m.any.isRequired};P.defaultProps={};function ne({infoList:e=[]}){return i.jsx(g,{className:"info-table",sx:{display:"grid",gridTemplateColumns:{xs:"1fr",md:"max-content 1fr"},columnGap:4,rowGap:1.5},children:e.map(t=>i.jsxs(i.Fragment,{children:[i.jsx(g,{component:"span",sx:{fontWeight:"bold",whiteSpace:"nowrap"},children:t.key}),i.jsx(g,{component:"span",sx:{marginTop:{xs:-1,md:0}},children:t.value})]}))})}ne.propTypes={infoList:m.arrayOf(m.shape({key:m.string,value:m.string}))};const Ct=e=>e.payment?(e.payment.price||[]).map(r=>r.value||0).every(r=>r===0):!0,Nt=new Et({createElement:E.createElement}).Compiler,w={zh:{appinfo:{name:"应用名",version:"版本号",author:"开发者",description:"描述",community:"社区地址",documentation:"文档手册",support:"服务支持",overview:"概述",requirements:"节点版本要求"}},en:{appinfo:{name:"Name",version:"Version",author:"Author",description:"Description",community:"Community",documentation:"Documentation",support:"Support",overview:"Overview",requirements:"Server requirements"}}};function B({blockletMeta:e,locale:t,handleDescEle:r}){const{data:n}=e,{registryUrl:s,did:a}=n,o=_.getDisplayName({meta:n}),l=ce(()=>s&&a?fetch(L(s,"/api/blocklets",a,"readme")).then(c=>c.json()):null,{refreshDeps:[s,a]}),u=pe(()=>l.data?l.data[t]||l.data.en||l.data[Object.keys(l.data)[0]]:"",[l]),h=n&&n.htmlAst?Nt(n.htmlAst):"",f=Ct(n);let d=y(n,"owner.fullName");if(d){const c=y(n,"owner.did");c&&(d=i.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[d,i.jsx(ue,{sx:{lineHeight:"initial","&::before":{content:'"("'},"&::after":{content:'")"'}},did:c,compact:!0,size:14,locale:t})]}))}else d=y(n,"author.name");const x=[{key:y(w[t],"appinfo.name"),value:_.getDisplayName({meta:n})},{key:y(w[t],"appinfo.version"),value:n.version},{key:y(w[t],"appinfo.author"),value:d},{type:"description",key:y(w[t],"appinfo.description"),value:n.description}];n.requirements&&x.push({key:y(w[t],"appinfo.requirements"),value:n.requirements.server}),n.community&&x.push({key:y(w[t],"appinfo.community"),value:i.jsx("a",{href:n.community,target:"_blank",rel:"noreferrer",children:n.community})}),n.documentation&&x.push({key:y(w[t],"appinfo.documentation"),value:i.jsx("a",{href:n.documentation,target:"_blank",rel:"noreferrer",children:n.documentation})}),n.support&&x.push({key:y(w[t],"appinfo.support"),value:i.jsx("a",{href:`mailto:${n.support}`,target:"_blank",rel:"noreferrer",children:n.support})}),h&&x.push({key:y(w[t],"appinfo.overview"),value:""});let b;return t==="zh"?b=i.jsxs(i.Fragment,{children:[f?i.jsxs("p",{children:["您可以免费使用 ",i.jsx("b",{children:o}),";"]}):i.jsxs("p",{children:["您需要购买才能使用 ",i.jsx("b",{children:o}),";"]}),i.jsx("p",{children:"在应用启动前,需要选择您的节点;"}),i.jsx("p",{children:"如果您没有节点,我们会引导您创建新的节点;"}),i.jsx("p",{children:"下面为该应用的信息:"})]}):b=i.jsxs(i.Fragment,{children:[f?i.jsxs("p",{children:["You can use ",i.jsx("b",{children:o})," for free;"]}):i.jsxs("p",{children:["You need to purchase before launch ",i.jsx("b",{children:o}),";"]}),i.jsx("p",{children:"Before the blocklet starts, you need to select your Blocklet Server; "}),i.jsx("p",{children:"If you do not have any Blocklet Server, we will guide you to create a new one; "}),i.jsx("p",{children:"Below is the information for the blocklet: "})]}),i.jsxs(Tt,{children:[r||b,i.jsx(ne,{infoList:x}),u?i.jsxs("div",{className:"app-overview",children:[i.jsx(H,{variant:"h5",gutterBottom:!0,children:y(w[t],"appinfo.overview")}),i.jsx(P,{children:i.jsx(St,{component:"div",className:"content-wrapper post-content",children:i.jsx(Ne,{source:u,wrapperElement:{"data-color-mode":"light"},urlTransform:(c,p,v)=>c.startsWith("/")?L(s,c):c})})})]}):h?i.jsx("div",{className:"app-overview",children:h}):null]})}const St=k(H)`
108
108
  width: 100%;
109
109
  word-wrap: break-word;
110
110
  word-break: break-word;
@@ -152,7 +152,7 @@ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as
152
152
  margin-left: 2em;
153
153
  }
154
154
  }
155
- `;O.propTypes={blockletMeta:m.object.isRequired,locale:m.string.isRequired,handleDescEle:m.node};O.defaultProps={handleDescEle:""};function Rt({...e}){return i.jsxs("div",{...e,style:{width:"100%"},children:[i.jsx("h3",{children:"End User License Agreement for Application"}),i.jsxs("p",{children:["Blocklet Server License Agreement ",de.COPYRIGHT_OWNER," version 2020-08-28"]}),i.jsx("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),i.jsx("p",{children:"暂无"})]})}function Dt(e){var t,r,n,s;return`${((t=e.bundleSource)==null?void 0:t.store)||e.meta.homepage}/assets/${(r=e.meta)==null?void 0:r.did}/${((n=e.meta)==null?void 0:n.logo)||"logo.png"}?v=${(s=e.meta)==null?void 0:s.version}`}function B({installRelated:e,meta:t,show:r,onClose:n,components:s,loading:a}){const{t:o}=V(),l=fe(d=>d.breakpoints.down("md"));if(!r)return null;const u=!a&&s.length===0,h=!a&&s.length!==0,f=40;return i.jsxs(X,{title:o("blocklet.component.relatedComponents",{name:t.title}),maxWidth:!1,fullWidth:!1,onClose:(d,x)=>{x!=="backdropClick"&&n(!1)},PaperProps:{style:l?{width:"100%",height:window.innerHeight}:{maxWidth:500,minWidth:300,width:"80%"}},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:[a&&i.jsx(g,{sx:{marginTop:4,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:i.jsx(g,{sx:{fontSize:32},color:"primary.main",component:N,icon:"line-md:loading-loop"})}),u&&i.jsx(g,{sx:{textAlign:"center"},children:o("blocklet.component.noDependencies",{name:t.title})}),h&&i.jsx(g,{sx:{marginBottom:2},children:s.map(d=>{if(!d.meta)return null;const{required:x}=d;let b;return e||x?b=1:b=.5,i.jsxs(g,{sx:{opacity:b,padding:"10px 0px",paddingBottom:.5,marginTop:0,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[i.jsx("img",{style:{width:f,height:f,minWidth:f,minHeight:f},src:Dt(d),alt:d.meta.title}),i.jsxs(g,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",flex:1,marginLeft:2},children:[i.jsxs(g,{sx:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var c;window.open(`${((c=d.bundleSource)==null?void 0:c.store)||d.meta.homepage}/blocklets/${d.meta.did}`,"_blank")},children:[d.meta.title,i.jsx(g,{sx:{display:x?"inline-block":"none",fontSize:"12px",fontWeight:"bold",marginLeft:1},children:o("blocklet.component.required")}),i.jsxs(g,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[d.meta.version,i.jsx(g,{className:"link-icon",icon:"fluent:open-20-filled",component:N,sx:{color:"primary.main",fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.1s"}})]})]}),i.jsx(g,{sx:{marginTop:0,opacity:.7},children:d.meta.description})]})]},d.meta.did)})})]})}B.propTypes={meta:m.object,show:m.bool,onClose:m.func.isRequired,installRelated:m.func,components:m.array.isRequired,loading:m.bool.isRequired};B.defaultProps={meta:null,show:!1,installRelated:!1};function Ft(e){return e&&(e.registryUrl||e.homepage)&&e.did?`${e.registryUrl||e.homepage}/api/blocklets/${e==null?void 0:e.did}/blocklet.json`:""}function At(e){const{api:t}=me(),[r]=he(),n=r.get("blocklet_meta_url")||Ft(e),[s,a]=E.useState([]),[o,l]=E.useState(!1);return E.useEffect(()=>{!n||e!=null&&e.inputUrl||(l(!0),t.getDynamicComponents({input:{url:n}}).then(u=>{a(u.components)}).finally(()=>{l(!1)}))},[n]),{components:s,loading:o}}function re({installRelated:e,onChangeInstallRelated:t,meta:r,onClickNext:n,handleDescEle:s}){const a=xe(),{t:o,locale:l}=V(),[u,h]=E.useState(!1),{components:f,loading:d}=At(r),x=n||(()=>{a(`/launch-blocklet/install${window.location.search}`)}),b=()=>{h(!0)},c=()=>{h(!1)};return i.jsxs(It,{children:[i.jsx("div",{className:"app-content",children:i.jsx("div",{className:"agreement",children:i.jsx("div",{className:"agreement-content",children:i.jsx(O,{blockletMeta:{data:r},locale:l,handleDescEle:s})})})}),i.jsxs(g,{className:"agreement-bottom",sx:{"> .agreement-loading":{color:"primary.main"}},children:[d?i.jsx(N,{className:"agreement-loading",icon:"line-md:loading-loop",style:{fontSize:42,transform:"scale(0.6)"}}):null,t&&(f!=null&&f.length)?i.jsxs(g,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[i.jsx(ge,{sx:{mr:.5},checked:e,onChange:p=>t(p.currentTarget.checked),control:i.jsx(ye,{}),label:i.jsx("span",{children:o("launchBlocklet.installRelatedComponents")})}),i.jsx(g,{sx:{"> button svg":{color:"primary.main"}},children:i.jsx(ve,{size:"small",onClick:b,children:i.jsx(N,{icon:"octicon:package-dependencies-16"})})})]}):null,i.jsx("div",{className:"button-container","data-cy":"agree-all",children:i.jsx(I,{onContinue:x,description:i.jsx(Rt,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]}),i.jsx(B,{installRelated:e,meta:r,show:u,onClose:c,components:f,loading:d})]})}re.propTypes={meta:m.object.isRequired,onClickNext:m.func,handleDescEle:m.node,installRelated:m.bool,onChangeInstallRelated:m.func};re.defaultProps={onClickNext:null,handleDescEle:"",installRelated:!0,onChangeInstallRelated:null};const It=k.div`
155
+ `;B.propTypes={blockletMeta:m.object.isRequired,locale:m.string.isRequired,handleDescEle:m.node};B.defaultProps={handleDescEle:""};function Rt({...e}){return i.jsxs("div",{...e,style:{width:"100%"},children:[i.jsx("h3",{children:"End User License Agreement for Application"}),i.jsxs("p",{children:["Blocklet Server License Agreement ",de.COPYRIGHT_OWNER," version 2020-08-28"]}),i.jsx("p",{children:"BLOCKLET SERVER LICENSE AGREEMENT"}),i.jsx("p",{children:"暂无"})]})}function At(e){var t,r,n,s;return`${((t=e.bundleSource)==null?void 0:t.store)||e.meta.homepage}/assets/${(r=e.meta)==null?void 0:r.did}/${((n=e.meta)==null?void 0:n.logo)||"logo.png"}?v=${(s=e.meta)==null?void 0:s.version}`}function O({installRelated:e,meta:t,show:r,onClose:n,components:s,loading:a}){const{t:o}=V(),l=fe(d=>d.breakpoints.down("md"));if(!r)return null;const u=!a&&s.length===0,h=!a&&s.length!==0,f=40;return i.jsxs(X,{title:o("blocklet.component.relatedComponents",{name:t.title}),maxWidth:!1,fullWidth:!1,onClose:(d,x)=>{x!=="backdropClick"&&n(!1)},PaperProps:{style:l?{width:"100%",height:window.innerHeight}:{maxWidth:500,minWidth:300,width:"80%"}},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:[a&&i.jsx(g,{sx:{marginTop:4,display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},children:i.jsx(g,{sx:{fontSize:32},color:"primary.main",component:N,icon:"line-md:loading-loop"})}),u&&i.jsx(g,{sx:{textAlign:"center"},children:o("blocklet.component.noDependencies",{name:t.title})}),h&&i.jsx(g,{sx:{marginBottom:2},children:s.map(d=>{if(!d.meta)return null;const{required:x}=d;let b;return e||x?b=1:b=.5,i.jsxs(g,{sx:{opacity:b,padding:"10px 0px",paddingBottom:.5,marginTop:0,display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"flex-start"},children:[i.jsx("img",{style:{width:f,height:f,minWidth:f,minHeight:f},src:At(d),alt:d.meta.title}),i.jsxs(g,{sx:{display:"flex",flexDirection:"column",justifyContent:"start",alignItems:"start",flex:1,marginLeft:2},children:[i.jsxs(g,{sx:{display:"flex",flexDirection:"row",justifyContent:"start",alignItems:"center",fontSize:"16px",fontWeight:"bold",cursor:"pointer",".link-icon":{opacity:0},":hover .link-icon":{opacity:1}},onClick:()=>{var c;window.open(`${((c=d.bundleSource)==null?void 0:c.store)||d.meta.homepage}/blocklets/${d.meta.did}`,"_blank")},children:[d.meta.title,i.jsx(g,{sx:{display:x?"inline-block":"none",fontSize:"12px",fontWeight:"bold",marginLeft:1},children:o("blocklet.component.required")}),i.jsxs(g,{sx:{paddingLeft:1,fontSize:"13px",fontWeight:"400"},component:"span",children:[d.meta.version,i.jsx(g,{className:"link-icon",icon:"fluent:open-20-filled",component:N,sx:{color:"primary.main",fontSize:16,transform:"translate(6px, 3px)",transition:"all 0.1s"}})]})]}),i.jsx(g,{sx:{marginTop:0,opacity:.7},children:d.meta.description})]})]},d.meta.did)})})]})}O.propTypes={meta:m.object,show:m.bool,onClose:m.func.isRequired,installRelated:m.func,components:m.array.isRequired,loading:m.bool.isRequired};O.defaultProps={meta:null,show:!1,installRelated:!1};function Dt(e){return e&&(e.registryUrl||e.homepage)&&e.did?`${e.registryUrl||e.homepage}/api/blocklets/${e==null?void 0:e.did}/blocklet.json`:""}function Ft(e){const{api:t}=me(),[r]=he(),n=r.get("blocklet_meta_url")||Dt(e),[s,a]=E.useState([]),[o,l]=E.useState(!1);return E.useEffect(()=>{!n||e!=null&&e.inputUrl||(l(!0),t.getDynamicComponents({input:{url:n}}).then(u=>{a(u.components)}).finally(()=>{l(!1)}))},[n]),{components:s,loading:o}}function re({installRelated:e,onChangeInstallRelated:t,meta:r,onClickNext:n,handleDescEle:s}){const a=xe(),{t:o,locale:l}=V(),[u,h]=E.useState(!1),{components:f,loading:d}=Ft(r),x=n||(()=>{a(`/launch-blocklet/install${window.location.search}`)}),b=()=>{h(!0)},c=()=>{h(!1)};return i.jsxs(It,{children:[i.jsx("div",{className:"app-content",children:i.jsx("div",{className:"agreement",children:i.jsx("div",{className:"agreement-content",children:i.jsx(B,{blockletMeta:{data:r},locale:l,handleDescEle:s})})})}),i.jsxs(g,{className:"agreement-bottom",sx:{"> .agreement-loading":{color:"primary.main"}},children:[d?i.jsx(N,{className:"agreement-loading",icon:"line-md:loading-loop",style:{fontSize:42,transform:"scale(0.6)"}}):null,t&&(f!=null&&f.length)?i.jsxs(g,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"center"},children:[i.jsx(ge,{sx:{mr:.5},checked:e,onChange:p=>t(p.currentTarget.checked),control:i.jsx(ye,{}),label:i.jsx("span",{children:o("launchBlocklet.installRelatedComponents")})}),i.jsx(g,{sx:{"> button svg":{color:"primary.main"}},children:i.jsx(ve,{size:"small",onClick:b,children:i.jsx(N,{icon:"octicon:package-dependencies-16"})})})]}):null,i.jsx("div",{className:"button-container","data-cy":"agree-all",children:i.jsx(I,{onContinue:x,description:i.jsx(Rt,{}),texts:{listenName:o("launchBlocklet.license"),buttonNext:o("launchBlocklet.next")}})})]}),i.jsx(O,{installRelated:e,meta:r,show:u,onClose:c,components:f,loading:d})]})}re.propTypes={meta:m.object.isRequired,onClickNext:m.func,handleDescEle:m.node,installRelated:m.bool,onChangeInstallRelated:m.func};re.defaultProps={onClickNext:null,handleDescEle:"",installRelated:!0,onChangeInstallRelated:null};const It=k.div`
156
156
  display: flex;
157
157
  flex-direction: column;
158
158
  align-items: center;
@@ -228,4 +228,4 @@ import{P as m,n as k,j as i,aK as oe,aL as ae,r as E,B as se,C as le,D as X,g as
228
228
  padding-bottom: 16px;
229
229
  }
230
230
  }
231
- `;export{re as A,Se as C,De as d};
231
+ `;export{re as A,Se as C,Ae as d};
@@ -0,0 +1 @@
1
+ import{av as a}from"./index-CRLxFVWY.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -0,0 +1 @@
1
+ import{bl as A,b as L,q as u,cV as B,bo as $,P as o,j as E,cd as y}from"./index-CRLxFVWY.js";const d=(s,a)=>{var r;let n="?v=";return a?n+=B(a):n+=`${(r=s==null?void 0:s.meta)==null?void 0:r.version}${$(s==null?void 0:s.status)?"~":""}`,n};function P({blocklet:s}){var O,g,p,v;const{inService:a}=A(),n=(O=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_SQUARE))==null?void 0:O.value,r=(g=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_RECT))==null?void 0:g.value,t=(p=((s==null?void 0:s.environments)||[]).find(e=>e.key===L.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LOGO_FAVICON))==null?void 0:p.value,i=((v=window.env)==null?void 0:v.apiPrefix)||"/",m=`${u(i,`/blocklet/logo/${a?"":s.meta.did}`)}${d(s,n)}`,f=`${u(i,`/blocklet/logo-rect/${a?"":s.meta.did}`)}${d(s,r)}`,C=`${u(i,`/blocklet/logo-favicon/${a?"":s.meta.did}`)}${d(s,t)}`;return{logoUrl:m,rectLogoUrl:f,faviconUrl:C}}function _({blocklet:s,style:a,size:n,...r}){const{logoUrl:t}=P({blocklet:s}),{variant:i}=r;return E.jsx(y,{variant:i||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},a),...r,children:E.jsx("img",{src:t,alt:"",style:{width:n}})})}_.propTypes={blocklet:o.object.isRequired,style:o.object,size:o.oneOfType([o.number,o.string])};_.defaultProps={style:{},size:40};export{_ as B,P as u};