efficient-shell 12.13.0 → 12.16.0

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 (515) hide show
  1. package/README.md +58 -3
  2. package/dist/{Browser-OFC3QRX3.js → Browser-7JNZKYCH.js} +14 -14
  3. package/dist/Calculator-4VBPCGRP.js +29 -0
  4. package/dist/{CurrencyConverter-HZWRB62S.js → CurrencyConverter-34AMD4W7.js} +9 -9
  5. package/dist/Files-2CUER7VQ.js +141 -0
  6. package/dist/{Notepad-77VJ4DK4.js → Notepad-S2COZUMR.js} +10 -10
  7. package/dist/PdfViewer-F2TCC5UD.js +1 -0
  8. package/dist/{PomodoroTimer-ME3BMHKR.js → PomodoroTimer-6WR3UOOM.js} +49 -49
  9. package/dist/{Preview-DXEYBUYC.js → Preview-C3JK6FBV.js} +38 -38
  10. package/dist/Sidebar-ADAIERCI.js +44 -0
  11. package/dist/{Stock-WK45DFIC.js → Stock-UAGSFAKY.js} +3 -3
  12. package/dist/{Weather-BVKZQI4R.js → Weather-G2VGEQX2.js} +17 -17
  13. package/dist/{WorldClock-L3BQXXQX.js → WorldClock-43KK7OTT.js} +4 -4
  14. package/dist/ai/index.d.ts +1 -1
  15. package/dist/ai/index.js +79 -79
  16. package/dist/apps/ImageAnnotator.js +1 -1
  17. package/dist/apps/index.js +1 -1
  18. package/dist/bin/media-host-check.js +1 -1
  19. package/dist/bin/ui-check.js +1 -1
  20. package/dist/brand.css +1 -1
  21. package/dist/charts/BoxPlotChart.js +1 -1
  22. package/dist/charts/CandlestickChart.js +1 -1
  23. package/dist/charts/CartesianPlot.js +1 -1
  24. package/dist/charts/ChartBrush.js +1 -1
  25. package/dist/charts/ChartFrame.js +1 -1
  26. package/dist/charts/ChartSkeleton.js +1 -1
  27. package/dist/charts/ChordChart.js +1 -1
  28. package/dist/charts/ColumnChart.js +1 -1
  29. package/dist/charts/FunnelChart.js +1 -1
  30. package/dist/charts/HeatmapChart.js +1 -1
  31. package/dist/charts/HistogramChart.js +1 -1
  32. package/dist/charts/Meter.js +1 -1
  33. package/dist/charts/PieChart.js +1 -1
  34. package/dist/charts/RadarChart.js +1 -1
  35. package/dist/charts/RadialBarChart.js +1 -1
  36. package/dist/charts/RangeChart.js +1 -1
  37. package/dist/charts/RankedBars.js +1 -1
  38. package/dist/charts/SankeyChart.js +1 -1
  39. package/dist/charts/ScatterChart.js +1 -1
  40. package/dist/charts/SpecChart.js +1 -1
  41. package/dist/charts/StatTile.js +1 -1
  42. package/dist/charts/SunburstChart.js +1 -1
  43. package/dist/charts/TimeSeriesChart.js +1 -1
  44. package/dist/charts/TreemapChart.js +1 -1
  45. package/dist/charts/WaterfallChart.js +1 -1
  46. package/dist/{chunk-YX4MRM7A.js → chunk-232YPI2L.js} +6 -6
  47. package/dist/{chunk-W4NVTD5Q.js → chunk-24JKQX2N.js} +4 -4
  48. package/dist/{chunk-5EKNXSQG.js → chunk-24LO6OH4.js} +1 -1
  49. package/dist/chunk-25QDSYH5.js +13 -0
  50. package/dist/chunk-27RPYRRI.js +2 -0
  51. package/dist/{chunk-EDANELWX.js → chunk-2DYVVHZA.js} +1 -1
  52. package/dist/{chunk-RKYWKMUK.js → chunk-2NZ7CVMW.js} +1 -1
  53. package/dist/{chunk-27ZJQUDS.js → chunk-2VFSYSDS.js} +1 -1
  54. package/dist/{chunk-45HQXTA6.js → chunk-3A6FYWFQ.js} +1 -1
  55. package/dist/chunk-3UKNOOSL.js +4 -0
  56. package/dist/chunk-3W4JUMFI.js +1 -0
  57. package/dist/{chunk-JTZVUO3I.js → chunk-3YBXA72C.js} +1 -1
  58. package/dist/{chunk-4XS4DO4T.js → chunk-42XSMAIK.js} +1 -1
  59. package/dist/{chunk-2GS2VOQT.js → chunk-4BKJ6A5H.js} +9 -9
  60. package/dist/{chunk-Y23BITKG.js → chunk-4I4WZHMV.js} +1 -1
  61. package/dist/{chunk-JGJWPONL.js → chunk-4IHYWLWE.js} +5 -5
  62. package/dist/{chunk-KIRLSUQT.js → chunk-4LOHQ4QB.js} +5 -5
  63. package/dist/{chunk-YVAJ42M2.js → chunk-4Y33Y4OX.js} +6 -6
  64. package/dist/{chunk-654DGV5Q.js → chunk-56XKHWNL.js} +1 -1
  65. package/dist/chunk-574SLTKO.js +8 -0
  66. package/dist/{chunk-GCVIUXKL.js → chunk-5DQE6RQJ.js} +1 -1
  67. package/dist/chunk-5HLLCX6X.js +2 -0
  68. package/dist/{chunk-MFZPTS7W.js → chunk-5MH5N76F.js} +4 -4
  69. package/dist/{chunk-MXITMJCT.js → chunk-5QYKF7NK.js} +17 -17
  70. package/dist/chunk-5XCASBGK.js +5 -0
  71. package/dist/chunk-5ZT3FJ2W.js +2 -0
  72. package/dist/{chunk-LFYZ7NQ4.js → chunk-64RHGJXK.js} +4 -4
  73. package/dist/{chunk-YFDS6KF3.js → chunk-6A26HUVK.js} +1 -1
  74. package/dist/chunk-6RHKNP2Q.js +2 -0
  75. package/dist/chunk-6V3BNCDT.js +2 -0
  76. package/dist/{chunk-GB2XLSR5.js → chunk-74JMBOQH.js} +10 -10
  77. package/dist/{chunk-6YIVKPWQ.js → chunk-75H4BWNC.js} +1 -1
  78. package/dist/{chunk-AUCNJFTP.js → chunk-7K3FYCRZ.js} +9 -9
  79. package/dist/{chunk-4NLCXHWN.js → chunk-7X2P6IH3.js} +4 -4
  80. package/dist/{chunk-SEHKTBVM.js → chunk-7ZJRBFHA.js} +1 -1
  81. package/dist/chunk-A4PFVMQ2.js +7 -0
  82. package/dist/chunk-ABQWWMTO.js +2 -0
  83. package/dist/chunk-ASPLTZBH.js +2 -0
  84. package/dist/{chunk-ZV6WLVD3.js → chunk-B2KQ3T7Q.js} +6 -6
  85. package/dist/chunk-BAWT5QBA.js +2 -0
  86. package/dist/chunk-BHHFVIAD.js +2 -0
  87. package/dist/{chunk-GMJ5WOB2.js → chunk-CBVKGAZH.js} +1 -1
  88. package/dist/chunk-CDGK3TOO.js +2 -0
  89. package/dist/{chunk-BYDSBDVS.js → chunk-CEIIQRK5.js} +6 -6
  90. package/dist/{chunk-FZWAOYAM.js → chunk-CMJD5URC.js} +9 -9
  91. package/dist/chunk-CYU454QR.js +2 -0
  92. package/dist/{chunk-EO6MOQOZ.js → chunk-DCNSQGHJ.js} +12 -12
  93. package/dist/chunk-DG2TGWXI.js +15 -0
  94. package/dist/{chunk-D4K72BHN.js → chunk-DGHSCKOE.js} +4 -4
  95. package/dist/{chunk-GBEDLYND.js → chunk-DJXXY23A.js} +2 -2
  96. package/dist/chunk-DLOTU5XU.js +5 -0
  97. package/dist/chunk-DRMIQ3YE.js +1 -0
  98. package/dist/chunk-DRSPB4ZE.js +2 -0
  99. package/dist/chunk-DSOV33XA.js +1 -0
  100. package/dist/chunk-DVYBJOD3.js +11 -0
  101. package/dist/chunk-DWGYC7OD.js +1 -0
  102. package/dist/chunk-ECJSGHFD.js +2 -0
  103. package/dist/{chunk-Q64F2EXW.js → chunk-EDX55XGV.js} +6 -6
  104. package/dist/{chunk-QULE4LAC.js → chunk-EEAY7FJW.js} +17 -17
  105. package/dist/{chunk-WMIU2VR5.js → chunk-EEB5XPWP.js} +2 -2
  106. package/dist/{chunk-ZLFZJX6M.js → chunk-EGCHJHRR.js} +8 -8
  107. package/dist/chunk-EJRRJXDG.js +2 -0
  108. package/dist/chunk-ENFXDIIZ.js +8 -0
  109. package/dist/{chunk-CB5FQMFB.js → chunk-FI6IJTAJ.js} +12 -12
  110. package/dist/chunk-FIW2BUK2.js +2 -0
  111. package/dist/{chunk-JVNJCRHM.js → chunk-FJVZ2W55.js} +1 -1
  112. package/dist/{chunk-EAXPSAHZ.js → chunk-FQHPGREQ.js} +9 -9
  113. package/dist/chunk-FVKXDF2Q.js +12 -0
  114. package/dist/{chunk-QGFAQVUO.js → chunk-G3E4CD77.js} +6 -6
  115. package/dist/{chunk-SFFELHLP.js → chunk-GC4N4UQM.js} +5 -5
  116. package/dist/{chunk-4UQNNA4K.js → chunk-GEVNBBM7.js} +1 -1
  117. package/dist/{chunk-M2VCZAMQ.js → chunk-GOEHP2XM.js} +3 -3
  118. package/dist/{chunk-G3VRO4CK.js → chunk-GUHCKMC7.js} +2 -2
  119. package/dist/{chunk-B7HTKDT3.js → chunk-H32UNWVU.js} +5 -5
  120. package/dist/{chunk-LTN4AQYG.js → chunk-H4ABSQS6.js} +1 -1
  121. package/dist/chunk-H7RDZRJ4.js +2 -0
  122. package/dist/chunk-HBDNQ3ER.js +4 -0
  123. package/dist/chunk-HGOWQO63.js +1 -0
  124. package/dist/{chunk-NHIP2S4E.js → chunk-HJF4UZOA.js} +13 -13
  125. package/dist/chunk-HNBMBC77.js +1 -0
  126. package/dist/{chunk-NBUL37WB.js → chunk-HYPYNVQQ.js} +1 -1
  127. package/dist/{chunk-5T4WTFBC.js → chunk-I3TVRNUT.js} +1 -1
  128. package/dist/chunk-IFGNAY56.js +14 -0
  129. package/dist/{chunk-6BNLDGST.js → chunk-ILIPEY3D.js} +1 -1
  130. package/dist/chunk-J3Z4U2CT.js +2 -0
  131. package/dist/{chunk-FSZ3TNAR.js → chunk-JAVTQART.js} +1 -1
  132. package/dist/{chunk-HEX3EP5F.js → chunk-JFGJJNT2.js} +4 -4
  133. package/dist/{chunk-GMLDGXNQ.js → chunk-JQWZ36JD.js} +1 -1
  134. package/dist/chunk-JSHMIMAJ.js +1 -0
  135. package/dist/{chunk-SWB32OKH.js → chunk-JTGRLXZN.js} +1 -1
  136. package/dist/{chunk-NV7QRWQJ.js → chunk-JZBLOIL7.js} +1 -1
  137. package/dist/{chunk-O3YCIWHF.js → chunk-KAKJ7ENS.js} +2 -2
  138. package/dist/chunk-KELGQ7WI.js +2 -0
  139. package/dist/{chunk-YPZXE67U.js → chunk-KSMEWOCE.js} +1 -1
  140. package/dist/chunk-L7MWAC2P.js +6 -0
  141. package/dist/{chunk-WJBP5SND.js → chunk-LIWBCIRZ.js} +4 -4
  142. package/dist/{chunk-LTUVKDTO.js → chunk-LNZMA4PB.js} +1 -1
  143. package/dist/{chunk-P3GBQBDC.js → chunk-LQVQX5B2.js} +1 -1
  144. package/dist/chunk-LSADTBPH.js +4 -0
  145. package/dist/{chunk-XDJQWP5K.js → chunk-MBCUICY3.js} +1 -1
  146. package/dist/chunk-MEF5E2JA.js +2 -0
  147. package/dist/{chunk-5NCR64CE.js → chunk-MFJHLC5M.js} +1 -1
  148. package/dist/{chunk-EKDXJQIP.js → chunk-MJVFIH3J.js} +11 -11
  149. package/dist/{chunk-WQV7VQ5Z.js → chunk-MRLXGLNZ.js} +1 -1
  150. package/dist/chunk-MUNG4VXE.js +2 -0
  151. package/dist/{chunk-KWTK6TGH.js → chunk-MWTCGJAI.js} +1 -1
  152. package/dist/{chunk-6JLXXX4H.js → chunk-N2445WHJ.js} +12 -12
  153. package/dist/chunk-N3THYDNV.js +2 -0
  154. package/dist/{chunk-I5UM6UZF.js → chunk-NKP5WCEA.js} +6 -6
  155. package/dist/{chunk-MEAJGM6F.js → chunk-NOGSS432.js} +1 -1
  156. package/dist/{chunk-5ZQY42QX.js → chunk-OFYNPYY2.js} +1 -1
  157. package/dist/{chunk-V6FHZGCL.js → chunk-OM6VWUAZ.js} +1 -1
  158. package/dist/{chunk-EIXMUGVZ.js → chunk-OOWPLQD5.js} +2 -2
  159. package/dist/{chunk-NOEAEXIZ.js → chunk-OVD3ECM7.js} +1 -1
  160. package/dist/chunk-OYJAXZFU.js +2 -0
  161. package/dist/{chunk-EQ2KTDOU.js → chunk-PDA77NNC.js} +3 -3
  162. package/dist/{chunk-PDCCNHTP.js → chunk-PJE75B66.js} +1 -1
  163. package/dist/chunk-PMBCQWJW.js +4 -0
  164. package/dist/chunk-PTJIGNKA.js +4 -0
  165. package/dist/{chunk-UG5GKEU5.js → chunk-QADNVFV5.js} +1 -1
  166. package/dist/{chunk-KCAUYEYR.js → chunk-QBWMWK2W.js} +6 -6
  167. package/dist/chunk-QIFGQE6V.js +2 -0
  168. package/dist/{chunk-BET6KEY2.js → chunk-QPYVCG74.js} +12 -12
  169. package/dist/{chunk-ZR2UWJIR.js → chunk-RBS3AWE7.js} +1 -1
  170. package/dist/{chunk-WM2BBRT6.js → chunk-RF3ZFTAU.js} +1 -1
  171. package/dist/chunk-RIG5FEVS.js +1 -0
  172. package/dist/{chunk-HYQBYMJX.js → chunk-RMDVKQJE.js} +2 -2
  173. package/dist/chunk-RMKC5POE.js +3 -0
  174. package/dist/{chunk-42BVXJZN.js → chunk-RZ2DWX4N.js} +5 -5
  175. package/dist/{chunk-VPZOSVDF.js → chunk-SE6IQZYW.js} +9 -9
  176. package/dist/{chunk-ISU4FCEX.js → chunk-SR4W2SYQ.js} +4 -4
  177. package/dist/chunk-SRR4MAA6.js +4 -0
  178. package/dist/chunk-SZ6J44ZK.js +2 -0
  179. package/dist/{chunk-TJCJLKJB.js → chunk-T3JSUBIF.js} +1 -1
  180. package/dist/{chunk-SY65V6K7.js → chunk-T7D73HT7.js} +9 -9
  181. package/dist/chunk-THRSU75M.js +2 -0
  182. package/dist/{chunk-AG6Y62TP.js → chunk-TKPUYQ3Q.js} +72 -72
  183. package/dist/chunk-TO6CUG4Y.js +4 -0
  184. package/dist/chunk-TU2L7NW3.js +7 -0
  185. package/dist/chunk-TUA2VQO7.js +4 -0
  186. package/dist/{chunk-QJGZOD6X.js → chunk-TW7SWDKZ.js} +7 -4
  187. package/dist/{chunk-VLCHHTX6.js → chunk-TYQ2JL4J.js} +1 -1
  188. package/dist/chunk-U77527G3.js +2 -0
  189. package/dist/{chunk-VCNTSE3H.js → chunk-UHK4MAFE.js} +1 -1
  190. package/dist/chunk-US6NOIGO.js +6 -0
  191. package/dist/{chunk-LMUB2EAD.js → chunk-UULBPDAH.js} +8 -8
  192. package/dist/chunk-UWLGKMH5.js +9 -0
  193. package/dist/{chunk-Z7RXWXR5.js → chunk-V4XR4MOS.js} +1 -1
  194. package/dist/{chunk-4MUE4CYB.js → chunk-VBLCYL4L.js} +1 -1
  195. package/dist/chunk-VDYF3WPJ.js +2 -0
  196. package/dist/{chunk-MAI2DN7N.js → chunk-VEQ45GAH.js} +1 -1
  197. package/dist/{chunk-HE24VQMU.js → chunk-VFHKD7TQ.js} +1 -1
  198. package/dist/chunk-VIWM4GD7.js +2 -0
  199. package/dist/{chunk-TCMAWDBL.js → chunk-VJXPT53M.js} +18 -18
  200. package/dist/chunk-VL6SOWP5.js +2 -0
  201. package/dist/{chunk-P44RCA6Z.js → chunk-VP2GI3UP.js} +8 -8
  202. package/dist/chunk-VPXAOSVH.js +28 -0
  203. package/dist/{chunk-44VAZ2EL.js → chunk-VYRVSTI6.js} +9 -9
  204. package/dist/{chunk-QQM36CYU.js → chunk-W2663E4S.js} +3 -3
  205. package/dist/chunk-WBLA7EHW.js +2 -0
  206. package/dist/{chunk-OCI3PZDU.js → chunk-WCCGKDG6.js} +2 -2
  207. package/dist/{chunk-QMNDKNK2.js → chunk-WESNFWM4.js} +1 -1
  208. package/dist/{chunk-NGQZI7HP.js → chunk-WLUJQLXG.js} +1 -1
  209. package/dist/chunk-WNOXHJVT.js +9 -0
  210. package/dist/{chunk-EVEGK57J.js → chunk-WPG3ZHYT.js} +1 -1
  211. package/dist/chunk-WPT5DUCQ.js +2 -0
  212. package/dist/{chunk-QCOXJXGZ.js → chunk-WQ4YKWN2.js} +1 -1
  213. package/dist/chunk-WWABT3IW.js +5 -0
  214. package/dist/chunk-WX5KKB3X.js +4 -0
  215. package/dist/{chunk-YVIV7SKG.js → chunk-WXZZGHET.js} +1 -1
  216. package/dist/{chunk-BGBSEPPH.js → chunk-WYGUHCJ2.js} +8 -8
  217. package/dist/chunk-X7BRR6UW.js +5 -0
  218. package/dist/chunk-XAC2GAOD.js +4 -0
  219. package/dist/{chunk-BM5QI2L6.js → chunk-XG5ER6GJ.js} +6 -6
  220. package/dist/{chunk-ASOVTAIT.js → chunk-XHSMDUEW.js} +3 -3
  221. package/dist/{chunk-YMJOFWW6.js → chunk-XKJGJNY2.js} +3 -3
  222. package/dist/{chunk-6P7SIIG4.js → chunk-XKNKRKHH.js} +14 -14
  223. package/dist/chunk-XL4QM2D3.js +5 -0
  224. package/dist/chunk-XLWPIUZB.js +2 -0
  225. package/dist/chunk-XN3KM6YE.js +4 -0
  226. package/dist/chunk-XQWHKXLS.js +22 -0
  227. package/dist/{chunk-GOKJZKLV.js → chunk-XU3YOWEG.js} +1 -1
  228. package/dist/chunk-XW336CNF.js +2 -0
  229. package/dist/{chunk-SXHNZFUY.js → chunk-Y6E7IRK2.js} +1 -1
  230. package/dist/{chunk-5HOXR3L4.js → chunk-Y7KDCC6E.js} +1 -1
  231. package/dist/{chunk-UYTFNR4W.js → chunk-YC42NCCA.js} +1 -1
  232. package/dist/chunk-YFUY3VDW.js +9 -0
  233. package/dist/{chunk-AKTEMZOT.js → chunk-YO26RV3H.js} +1 -1
  234. package/dist/{chunk-BFCIOWYI.js → chunk-YTZFWV2W.js} +1 -1
  235. package/dist/{chunk-SEMV4NCH.js → chunk-YU52WMSH.js} +1 -1
  236. package/dist/{chunk-ICZUWLVU.js → chunk-YVHEKEHJ.js} +1 -1
  237. package/dist/chunk-YX2OOGV7.js +4 -0
  238. package/dist/{chunk-NORR52Z3.js → chunk-Z62RBVEJ.js} +1 -1
  239. package/dist/{chunk-RQKD5AAL.js → chunk-Z66QBDNU.js} +1 -1
  240. package/dist/{chunk-U35TIWEP.js → chunk-ZE7OVMDM.js} +16 -16
  241. package/dist/{chunk-IARCNQD3.js → chunk-ZGWXSHVM.js} +1 -1
  242. package/dist/chunk-ZILBCVKS.js +2 -0
  243. package/dist/{chunk-CU3ZE25J.js → chunk-ZKGUBIBT.js} +1 -1
  244. package/dist/{chunk-LRKFMR4K.js → chunk-ZQT3GNRU.js} +2 -2
  245. package/dist/{chunk-AXFNOY2L.js → chunk-ZTRKM3B5.js} +7 -7
  246. package/dist/data/DataTable.js +1 -1
  247. package/dist/data/EntityList.js +1 -1
  248. package/dist/data/Kanban.js +1 -1
  249. package/dist/data/ListFooter.js +1 -1
  250. package/dist/data/ListLoadError.js +1 -1
  251. package/dist/data/Pagination.js +1 -1
  252. package/dist/data/ResizableTable.js +1 -1
  253. package/dist/file-intake/index.js +1 -1
  254. package/dist/format/index.d.ts +152 -1
  255. package/dist/format/index.js +1 -1
  256. package/dist/forms/BorderInput.js +1 -1
  257. package/dist/forms/BrandAssetEditor.js +1 -1
  258. package/dist/forms/Calendar.js +1 -1
  259. package/dist/forms/ColorPicker.js +1 -1
  260. package/dist/forms/ComposerAttachments.js +1 -1
  261. package/dist/forms/CornersInput.js +1 -1
  262. package/dist/forms/DatePicker.js +1 -1
  263. package/dist/forms/DateRangePicker.js +1 -1
  264. package/dist/forms/DateTimePicker.js +1 -1
  265. package/dist/forms/DisplayChips.js +1 -1
  266. package/dist/forms/FilePicker.js +1 -1
  267. package/dist/forms/FormErrorSummary.js +1 -1
  268. package/dist/forms/IconPicker.js +1 -1
  269. package/dist/forms/ImageFocusPoint.js +1 -1
  270. package/dist/forms/Input.js +1 -1
  271. package/dist/forms/InputNumber.js +1 -1
  272. package/dist/forms/LinkPicker.js +1 -1
  273. package/dist/forms/MediaLibrary.js +1 -1
  274. package/dist/forms/MediaUploadField.js +1 -1
  275. package/dist/forms/MediaUploadGrid.js +1 -1
  276. package/dist/forms/MediaUsedInList.js +1 -1
  277. package/dist/forms/NumericKeypad.js +1 -1
  278. package/dist/forms/PictureTiles.js +1 -1
  279. package/dist/forms/PositionInput.js +1 -1
  280. package/dist/forms/RenameField.js +1 -1
  281. package/dist/forms/Select.d.ts +1 -1
  282. package/dist/forms/Select.js +1 -1
  283. package/dist/forms/SidesInput.js +1 -1
  284. package/dist/forms/Slider.js +1 -1
  285. package/dist/forms/Snippet.js +1 -1
  286. package/dist/forms/SplitButton.js +1 -1
  287. package/dist/forms/TagInput.js +1 -1
  288. package/dist/forms/TextToolbar.d.ts +1 -1
  289. package/dist/forms/TextToolbar.js +1 -1
  290. package/dist/forms/TimePicker.js +1 -1
  291. package/dist/forms/UnitMenu.js +1 -1
  292. package/dist/forms/WidthsBar.js +1 -1
  293. package/dist/forms/mediaLibraryMenu.js +1 -1
  294. package/dist/forms/mediaMoveItems.js +1 -1
  295. package/dist/forms/textAlign.d.ts +1 -1
  296. package/dist/forms/textAlign.js +1 -1
  297. package/dist/forms/useFileIntake.js +1 -1
  298. package/dist/icons/efficient-glyphs.d.ts +16 -0
  299. package/dist/icons/efficient-glyphs.js +1 -1
  300. package/dist/icons/efficient-looks.d.ts +32 -0
  301. package/dist/icons/efficient-looks.js +1 -1
  302. package/dist/icons/efficient-meanings.d.ts +16 -0
  303. package/dist/icons/efficient-meanings.js +1 -1
  304. package/dist/icons/efficient.d.ts +16 -0
  305. package/dist/icons/efficient.js +1 -1
  306. package/dist/icons/glyphs/EntranceBounceIcon.d.ts +8 -0
  307. package/dist/icons/glyphs/EntranceBounceIcon.js +1 -0
  308. package/dist/icons/glyphs/EntranceFadeIcon.d.ts +8 -0
  309. package/dist/icons/glyphs/EntranceFadeIcon.js +1 -0
  310. package/dist/icons/glyphs/EntranceFlipIcon.d.ts +8 -0
  311. package/dist/icons/glyphs/EntranceFlipIcon.js +1 -0
  312. package/dist/icons/glyphs/EntranceGlideIcon.d.ts +8 -0
  313. package/dist/icons/glyphs/EntranceGlideIcon.js +1 -0
  314. package/dist/icons/glyphs/EntranceRevealIcon.d.ts +8 -0
  315. package/dist/icons/glyphs/EntranceRevealIcon.js +1 -0
  316. package/dist/icons/glyphs/EntranceRiseIcon.d.ts +8 -0
  317. package/dist/icons/glyphs/EntranceRiseIcon.js +1 -0
  318. package/dist/icons/glyphs/EntranceScaleIcon.d.ts +8 -0
  319. package/dist/icons/glyphs/EntranceScaleIcon.js +1 -0
  320. package/dist/icons/glyphs/EntranceSpinIcon.d.ts +8 -0
  321. package/dist/icons/glyphs/EntranceSpinIcon.js +1 -0
  322. package/dist/icons/glyphs/LoopMarqueeIcon.d.ts +8 -0
  323. package/dist/icons/glyphs/LoopMarqueeIcon.js +1 -0
  324. package/dist/icons/glyphs/ScrollFadeInIcon.d.ts +8 -0
  325. package/dist/icons/glyphs/ScrollFadeInIcon.js +1 -0
  326. package/dist/icons/glyphs/ScrollFadeOutIcon.d.ts +8 -0
  327. package/dist/icons/glyphs/ScrollFadeOutIcon.js +1 -0
  328. package/dist/icons/glyphs/ScrollMoveDownIcon.d.ts +8 -0
  329. package/dist/icons/glyphs/ScrollMoveDownIcon.js +1 -0
  330. package/dist/icons/glyphs/ScrollMoveUpIcon.d.ts +8 -0
  331. package/dist/icons/glyphs/ScrollMoveUpIcon.js +1 -0
  332. package/dist/icons/glyphs/ScrollParallaxIcon.d.ts +8 -0
  333. package/dist/icons/glyphs/ScrollParallaxIcon.js +1 -0
  334. package/dist/icons/glyphs/ScrollZoomInIcon.d.ts +8 -0
  335. package/dist/icons/glyphs/ScrollZoomInIcon.js +1 -0
  336. package/dist/icons/glyphs/ScrollZoomOutIcon.d.ts +8 -0
  337. package/dist/icons/glyphs/ScrollZoomOutIcon.js +1 -0
  338. package/dist/icons/index.d.ts +2 -2
  339. package/dist/icons/index.js +1 -1
  340. package/dist/icons/looks/EntranceBounceMiniIcon.d.ts +8 -0
  341. package/dist/icons/looks/EntranceBounceMiniIcon.js +1 -0
  342. package/dist/icons/looks/EntranceBounceSolidIcon.d.ts +8 -0
  343. package/dist/icons/looks/EntranceBounceSolidIcon.js +1 -0
  344. package/dist/icons/looks/EntranceFadeMiniIcon.d.ts +8 -0
  345. package/dist/icons/looks/EntranceFadeMiniIcon.js +1 -0
  346. package/dist/icons/looks/EntranceFadeSolidIcon.d.ts +8 -0
  347. package/dist/icons/looks/EntranceFadeSolidIcon.js +1 -0
  348. package/dist/icons/looks/EntranceFlipMiniIcon.d.ts +8 -0
  349. package/dist/icons/looks/EntranceFlipMiniIcon.js +1 -0
  350. package/dist/icons/looks/EntranceFlipSolidIcon.d.ts +8 -0
  351. package/dist/icons/looks/EntranceFlipSolidIcon.js +1 -0
  352. package/dist/icons/looks/EntranceGlideMiniIcon.d.ts +8 -0
  353. package/dist/icons/looks/EntranceGlideMiniIcon.js +1 -0
  354. package/dist/icons/looks/EntranceGlideSolidIcon.d.ts +8 -0
  355. package/dist/icons/looks/EntranceGlideSolidIcon.js +1 -0
  356. package/dist/icons/looks/EntranceRevealMiniIcon.d.ts +8 -0
  357. package/dist/icons/looks/EntranceRevealMiniIcon.js +1 -0
  358. package/dist/icons/looks/EntranceRevealSolidIcon.d.ts +8 -0
  359. package/dist/icons/looks/EntranceRevealSolidIcon.js +1 -0
  360. package/dist/icons/looks/EntranceRiseMiniIcon.d.ts +8 -0
  361. package/dist/icons/looks/EntranceRiseMiniIcon.js +1 -0
  362. package/dist/icons/looks/EntranceRiseSolidIcon.d.ts +8 -0
  363. package/dist/icons/looks/EntranceRiseSolidIcon.js +1 -0
  364. package/dist/icons/looks/EntranceScaleMiniIcon.d.ts +8 -0
  365. package/dist/icons/looks/EntranceScaleMiniIcon.js +1 -0
  366. package/dist/icons/looks/EntranceScaleSolidIcon.d.ts +8 -0
  367. package/dist/icons/looks/EntranceScaleSolidIcon.js +1 -0
  368. package/dist/icons/looks/EntranceSpinMiniIcon.d.ts +8 -0
  369. package/dist/icons/looks/EntranceSpinMiniIcon.js +1 -0
  370. package/dist/icons/looks/EntranceSpinSolidIcon.d.ts +8 -0
  371. package/dist/icons/looks/EntranceSpinSolidIcon.js +1 -0
  372. package/dist/icons/looks/LoopMarqueeMiniIcon.d.ts +8 -0
  373. package/dist/icons/looks/LoopMarqueeMiniIcon.js +1 -0
  374. package/dist/icons/looks/LoopMarqueeSolidIcon.d.ts +8 -0
  375. package/dist/icons/looks/LoopMarqueeSolidIcon.js +1 -0
  376. package/dist/icons/looks/ScrollFadeInMiniIcon.d.ts +8 -0
  377. package/dist/icons/looks/ScrollFadeInMiniIcon.js +1 -0
  378. package/dist/icons/looks/ScrollFadeInSolidIcon.d.ts +8 -0
  379. package/dist/icons/looks/ScrollFadeInSolidIcon.js +1 -0
  380. package/dist/icons/looks/ScrollFadeOutMiniIcon.d.ts +8 -0
  381. package/dist/icons/looks/ScrollFadeOutMiniIcon.js +1 -0
  382. package/dist/icons/looks/ScrollFadeOutSolidIcon.d.ts +8 -0
  383. package/dist/icons/looks/ScrollFadeOutSolidIcon.js +1 -0
  384. package/dist/icons/looks/ScrollMoveDownMiniIcon.d.ts +8 -0
  385. package/dist/icons/looks/ScrollMoveDownMiniIcon.js +1 -0
  386. package/dist/icons/looks/ScrollMoveDownSolidIcon.d.ts +8 -0
  387. package/dist/icons/looks/ScrollMoveDownSolidIcon.js +1 -0
  388. package/dist/icons/looks/ScrollMoveUpMiniIcon.d.ts +8 -0
  389. package/dist/icons/looks/ScrollMoveUpMiniIcon.js +1 -0
  390. package/dist/icons/looks/ScrollMoveUpSolidIcon.d.ts +8 -0
  391. package/dist/icons/looks/ScrollMoveUpSolidIcon.js +1 -0
  392. package/dist/icons/looks/ScrollParallaxMiniIcon.d.ts +8 -0
  393. package/dist/icons/looks/ScrollParallaxMiniIcon.js +1 -0
  394. package/dist/icons/looks/ScrollParallaxSolidIcon.d.ts +8 -0
  395. package/dist/icons/looks/ScrollParallaxSolidIcon.js +1 -0
  396. package/dist/icons/looks/ScrollZoomInMiniIcon.d.ts +8 -0
  397. package/dist/icons/looks/ScrollZoomInMiniIcon.js +1 -0
  398. package/dist/icons/looks/ScrollZoomInSolidIcon.d.ts +8 -0
  399. package/dist/icons/looks/ScrollZoomInSolidIcon.js +1 -0
  400. package/dist/icons/looks/ScrollZoomOutMiniIcon.d.ts +8 -0
  401. package/dist/icons/looks/ScrollZoomOutMiniIcon.js +1 -0
  402. package/dist/icons/looks/ScrollZoomOutSolidIcon.d.ts +8 -0
  403. package/dist/icons/looks/ScrollZoomOutSolidIcon.js +1 -0
  404. package/dist/icons/looks/map.js +1 -1
  405. package/dist/icons/sets.js +1 -1
  406. package/dist/index.d.ts +1 -1
  407. package/dist/index.js +665 -665
  408. package/dist/locales/zh-Hans.js +1 -1
  409. package/dist/map/index.js +2 -2
  410. package/dist/motion.css +130 -1
  411. package/dist/{names-Cj_F68_V.d.ts → names-BNKpHeTy.d.ts} +1 -1
  412. package/dist/page-tabs/index.js +5 -5
  413. package/dist/pdf/index.js +1 -1
  414. package/dist/shell/Accordion.js +1 -1
  415. package/dist/shell/AppUpdateBanner.js +1 -1
  416. package/dist/shell/Avatar.js +1 -1
  417. package/dist/shell/Banner.js +1 -1
  418. package/dist/shell/Breadcrumbs.js +1 -1
  419. package/dist/shell/BudgetBar.js +1 -1
  420. package/dist/shell/Card.js +1 -1
  421. package/dist/shell/ColoredBadge.js +1 -1
  422. package/dist/shell/ConfirmDialog.js +1 -1
  423. package/dist/shell/ContainerFillChart.js +1 -1
  424. package/dist/shell/CountBadge.js +1 -1
  425. package/dist/shell/Dialog.js +1 -1
  426. package/dist/shell/Drawer.js +1 -1
  427. package/dist/shell/DropdownMenu.js +1 -1
  428. package/dist/shell/EditableGrid.js +1 -1
  429. package/dist/shell/EmptyState.js +1 -1
  430. package/dist/shell/GlobalSearch.js +1 -1
  431. package/dist/shell/HelpCenter.js +1 -1
  432. package/dist/shell/IconRail.js +1 -1
  433. package/dist/shell/ImageLightbox.js +1 -1
  434. package/dist/shell/ItemCount.js +1 -1
  435. package/dist/shell/LanguageSelect.js +1 -1
  436. package/dist/shell/Markdown.d.ts +1 -1
  437. package/dist/shell/Markdown.js +1 -1
  438. package/dist/shell/MetricBar.js +1 -1
  439. package/dist/shell/MetricBarLegend.js +1 -1
  440. package/dist/shell/MilestoneTimeline.js +1 -1
  441. package/dist/shell/PageHeader.js +1 -1
  442. package/dist/shell/Popover.js +1 -1
  443. package/dist/shell/ProductionTimeline.js +1 -1
  444. package/dist/shell/ResizeHandle.js +1 -1
  445. package/dist/shell/Result.js +1 -1
  446. package/dist/shell/SearchableSelect.js +1 -1
  447. package/dist/shell/SettingReset.js +1 -1
  448. package/dist/shell/SettingRow.js +1 -1
  449. package/dist/shell/SidebarLayout.js +1 -1
  450. package/dist/shell/SidebarNav.js +1 -1
  451. package/dist/shell/SortableList.js +1 -1
  452. package/dist/shell/Statistic.js +1 -1
  453. package/dist/shell/Tabs.d.ts +9 -0
  454. package/dist/shell/Tabs.js +1 -1
  455. package/dist/shell/TimeAgo.js +1 -1
  456. package/dist/shell/TimelineTrack.js +1 -1
  457. package/dist/shell/TopNav.js +1 -1
  458. package/dist/shell/TransferProgress.js +1 -1
  459. package/dist/shell/Tree.js +1 -1
  460. package/dist/shell/discardGuard.js +1 -1
  461. package/dist/shell/focusTrap.d.ts +6 -1
  462. package/dist/shell/focusTrap.js +1 -1
  463. package/dist/shell/globalSearchModel.js +1 -1
  464. package/dist/shell/language.js +1 -1
  465. package/dist/shell/strings.d.ts +2 -0
  466. package/dist/shell/strings.js +1 -1
  467. package/dist/shell/toast.js +1 -1
  468. package/dist/telemetry/index.js +1 -1
  469. package/dist/templates/AuthScreen.js +1 -1
  470. package/dist/templates/ChatTemplate.js +1 -1
  471. package/dist/templates/CheckoutTemplate.js +1 -1
  472. package/dist/templates/DashboardTemplate.js +1 -1
  473. package/dist/templates/DataTablePage.js +1 -1
  474. package/dist/templates/EmailTemplate.js +1 -1
  475. package/dist/templates/ErrorBoundary.js +1 -1
  476. package/dist/templates/ErrorPage.js +1 -1
  477. package/dist/templates/FormLayoutPage.js +1 -1
  478. package/dist/templates/GalleryTemplate.js +1 -1
  479. package/dist/ui/index.d.ts +1 -1
  480. package/dist/ui/index.js +1 -1
  481. package/dist/version.js +1 -1
  482. package/package.json +1 -1
  483. package/dist/Calculator-RP4UPGG7.js +0 -29
  484. package/dist/Files-HBJGKKO2.js +0 -141
  485. package/dist/PdfViewer-BFP2WCMQ.js +0 -1
  486. package/dist/Sidebar-FU7TD5FQ.js +0 -44
  487. package/dist/chunk-3DVNXNTF.js +0 -1
  488. package/dist/chunk-4WWK6FHD.js +0 -1
  489. package/dist/chunk-5POLDDQW.js +0 -14
  490. package/dist/chunk-675RYIWR.js +0 -7
  491. package/dist/chunk-6VB4TBU6.js +0 -9
  492. package/dist/chunk-7ADTFFEM.js +0 -5
  493. package/dist/chunk-CA3OC4YY.js +0 -9
  494. package/dist/chunk-CDAJKLGL.js +0 -1
  495. package/dist/chunk-EAIHBASJ.js +0 -28
  496. package/dist/chunk-FQHY6DTF.js +0 -4
  497. package/dist/chunk-FYNPQAFI.js +0 -1
  498. package/dist/chunk-GFOJM52T.js +0 -15
  499. package/dist/chunk-HL3V67JZ.js +0 -2
  500. package/dist/chunk-HLZJLFVR.js +0 -12
  501. package/dist/chunk-HULQSIX5.js +0 -8
  502. package/dist/chunk-ISZOD5S6.js +0 -2
  503. package/dist/chunk-ITGFHWYG.js +0 -13
  504. package/dist/chunk-J7CHHY7O.js +0 -6
  505. package/dist/chunk-JB3JD2XK.js +0 -22
  506. package/dist/chunk-JZKACEXW.js +0 -9
  507. package/dist/chunk-KOPTKTHN.js +0 -7
  508. package/dist/chunk-LZKPV3XR.js +0 -3
  509. package/dist/chunk-MLPXTFDS.js +0 -1
  510. package/dist/chunk-QQ5XCRZM.js +0 -11
  511. package/dist/chunk-TJSJVC6P.js +0 -1
  512. package/dist/chunk-WGRS6QBT.js +0 -1
  513. package/dist/chunk-YRG6XJ6M.js +0 -8
  514. package/dist/chunk-YYW4VNWL.js +0 -1
  515. /package/dist/{chunk-NQJXHV4K.js → chunk-VT7QZPIO.js} +0 -0
@@ -1,11 +1,11 @@
1
- import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-NOEAEXIZ.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-Z7RXWXR5.js";import{useShellStrings as l}from"./chunk-TJSJVC6P.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},C){const $=m(),z=l().files,O=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),R=j?`${$}-error`:N?`${$}-hint`:void 0;/* @__PURE__ */
2
- return o(e,{label:g,htmlFor:$,hint:N,error:j,required:k,className:v,children:[
3
- /* @__PURE__ */o("button",{ref:C,type:"button",id:$,disabled:y,onClick:O.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":R,...O.zoneProps,className:t(O.dragOver,y,a(y),"px-4 py-6"),children:[
1
+ import{FormField as e}from"./chunk-6KBDNYRW.js";import{dropzoneClass as t,zoneFocusClass as a,CloseGlyph as r}from"./chunk-OVD3ECM7.js";import{useFileIntake as n,humanSize as i,FileIntakeAlert as s}from"./chunk-V4XR4MOS.js";import{useShellStrings as l}from"./chunk-JSHMIMAJ.js";import{forwardRef as c,useId as m}from"react";import{jsxs as o,jsx as d}from"react/jsx-runtime";var p=c(function({files:c,onChange:p,accept:u,acceptHint:h,multiple:x=!0,maxSizeBytes:b,maxFiles:f,disabled:y=!1,label:g,hint:N,error:j,required:k,className:v=""},M){const C=m(),O=l().files,$=n({accept:u,acceptHint:h,maxSizeBytes:b,maxFiles:f,multiple:x,disabled:y,currentCount:c.length,onAccept:e=>p(x?[...c,...e]:e.slice(0,1))}),z=j?`${C}-error`:N?`${C}-hint`:void 0;/* @__PURE__ */
2
+ return o(e,{label:g,htmlFor:C,hint:N,error:j,required:k,className:v,children:[
3
+ /* @__PURE__ */o("button",{ref:M,type:"button",id:C,disabled:y,onClick:$.open,"aria-invalid":!!j||void 0,"aria-required":k||void 0,"aria-describedby":z,...$.zoneProps,className:t($.dragOver,y,a(y),"px-4 py-6"),children:[
4
4
  /* @__PURE__ */o("span",{children:[
5
- /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?z.chooseMany:z.chooseOne}),
6
- /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?z.dragMany:z.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
- /* @__PURE__ */d("input",{...O.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
5
+ /* @__PURE__ */d("span",{className:"text-sm font-medium text-blue-600",children:x?O.chooseMany:O.chooseOne}),
6
+ /* @__PURE__ */d("span",{className:"text-sm text-gray-500",children:` ${x?O.dragMany:O.dragOne}`})]}),h&&/* @__PURE__ */d("span",{className:"text-xs text-gray-400",children:h})]}),
7
+ /* @__PURE__ */d("input",{...$.inputProps}),c.length>0&&/* @__PURE__ */d("ul",{className:"mt-2 flex flex-col gap-1",children:c.map((e,t)=>/* @__PURE__ */o("li",{className:"flex items-center justify-between gap-3 rounded-md bg-gray-50 px-3 py-2",children:[
8
8
  /* @__PURE__ */d("span",{className:"min-w-0 flex-1 truncate text-sm text-gray-800",title:e.name,children:e.name}),
9
- /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,z)}),
10
- /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{O.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":z.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
- /* @__PURE__ */d(s,{rejections:O.rejections})]})});export{p as FilePicker_default};
9
+ /* @__PURE__ */d("span",{className:"shrink-0 text-xs tabular-nums text-gray-500",children:i(e.size,O)}),
10
+ /* @__PURE__ */d("button",{type:"button",disabled:y,onClick:()=>{$.clearRejections(),p(c.filter((e,a)=>a!==t))},"aria-label":O.remove(e.name),className:"shrink-0 text-gray-400 hover:text-gray-600",children:/* @__PURE__ */d(r,{})})]},`${e.name}-${t}`))}),
11
+ /* @__PURE__ */d(s,{rejections:$.rejections})]})});export{p as FilePicker_default};
@@ -1,7 +1,7 @@
1
- import{useShellStrings as e,useShellLocale as a}from"./chunk-TJSJVC6P.js";import{formatPlain as n}from"./chunk-C3QOHMR6.js";import{useState as i,useId as d}from"react";import{jsx as r,jsxs as c,Fragment as s}from"react/jsx-runtime";var o={band:"es-group-head",row:"es-group-sub"},l=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join("");function t({items:t,defaultOpenIds:u=[],openIds:p,onOpenChange:m,allowMultiple:h=!1,level:N=3,tier:g="band",keepMounted:b=!1,className:$=""}){const v=e(),f=a(),[x,y]=i(u),I=d(),j=`h${N}`,k=p??x;/* @__PURE__ */
2
- return r("div",{"data-accordion":g,className:$||void 0,children:t.map(e=>{const a=k.includes(e.id),i=e.headId??`${I}-${l(e.id)}-head`,d=e.headId?`${e.headId}-body`:`${I}-${l(e.id)}-panel`,t=a||b;/* @__PURE__ */
1
+ import{useShellStrings as e,useShellLocale as a}from"./chunk-JSHMIMAJ.js";import{formatPlain as n}from"./chunk-C3QOHMR6.js";import{useState as i,useId as d}from"react";import{jsx as r,jsxs as c,Fragment as s}from"react/jsx-runtime";var o={band:"es-group-head",row:"es-group-sub"},l=e=>[...e].map(e=>/[A-Za-z0-9_-]/.test(e)?e:`-u${e.codePointAt(0).toString(16)}-`).join("");function t({items:t,defaultOpenIds:u=[],openIds:p,onOpenChange:m,allowMultiple:h=!1,level:N=3,tier:g="band",keepMounted:b=!1,className:$=""}){const v=e(),f=a(),[x,y]=i(u),I=d(),M=`h${N}`,j=p??x;/* @__PURE__ */
2
+ return r("div",{"data-accordion":g,className:$||void 0,children:t.map(e=>{const a=j.includes(e.id),i=e.headId??`${I}-${l(e.id)}-head`,d=e.headId?`${e.headId}-body`:`${I}-${l(e.id)}-panel`,t=a||b;/* @__PURE__ */
3
3
  return c("div",{className:e.className?`es-group ${e.className}`:"es-group",children:[
4
- /* @__PURE__ */r(j,{className:"es-group-title",children:/* @__PURE__ */c("button",{type:"button",id:i,disabled:e.disabled,"aria-expanded":a,"aria-controls":t?d:void 0,onClick:()=>(e=>{const a=k.includes(e)?k.filter(a=>a!==e):h?[...k,e]:[e];void 0===p&&y(a),m?.(a)})(e.id),className:o[g],children:[null!=e.icon&&/* @__PURE__ */r("span",{"aria-hidden":"true",className:"es-group-icon",children:e.icon}),e.title,"number"==typeof e.count&&e.count>0&&
4
+ /* @__PURE__ */r(M,{className:"es-group-title",children:/* @__PURE__ */c("button",{type:"button",id:i,disabled:e.disabled,"aria-expanded":a,"aria-controls":t?d:void 0,onClick:()=>(e=>{const a=j.includes(e)?j.filter(a=>a!==e):h?[...j,e]:[e];void 0===p&&y(a),m?.(a)})(e.id),className:o[g],children:[null!=e.icon&&/* @__PURE__ */r("span",{"aria-hidden":"true",className:"es-group-icon",children:e.icon}),e.title,"number"==typeof e.count&&e.count>0&&
5
5
  /* @__PURE__ */c(s,{children:[
6
6
  /* @__PURE__ */r("span",{"aria-hidden":"true",className:"es-group-count",children:n(e.count,f)}),
7
7
  /* @__PURE__ */r("span",{className:"sr-only",children:v.accordion.changed(n(e.count,f))})]}),
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M7.5,1.125h5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM2.16459,15.67082c-0.37048,-0.18524 -0.52065,-0.63575 -0.33541,-1.00623c0.69525,-1.34746 1.65566,-2.28959 2.54582,-2.28959c0.89017,0 1.86779,0.93352 2.54582,2.28959c0.57197,1.14393 0.84434,1.46041 1.20418,1.46041c0.35983,0 0.63221,-0.31648 1.20418,-1.46041c0.67803,-1.35607 1.65566,-2.28959 2.54582,-2.28959c0.89017,0 1.86779,0.93352 2.54582,2.28959c0.57197,1.14393 0.84434,1.46041 1.20418,1.46041c0.14479,0 0.17852,-0.02043 0.40717,-0.24908c0.12697,-0.12697 0.23681,-0.26429 0.37504,-0.47163c0.14194,-0.21291 0.46875,-0.82031 0.46875,-0.82031c-0.01357,0.02196 0,0 0,0c0.16859,-0.20771 0.43545,-0.3093 0.69949,-0.26629c0.26404,0.04301 0.48486,0.22404 0.57882,0.47452c0.0931,0.24819 0.04752,0.52694 -0.1193,0.73247c0.01008,-0.0123 0.03073,-0.03749 0,0c-0.00154,0.00189 -0.00308,0.00378 -0.00464,0.00566c0,0 0.00194,-0.00237 0.00464,-0.00566c-0.00143,0.00175 -0.00298,0.00363 -0.00464,0.00566c0,0 -0.573,1.04175 -0.9375,1.40625c-0.39635,0.39635 -0.98762,0.68842 -1.46783,0.68842c-0.89017,0 -1.86779,-0.93352 -2.54582,-2.28959c-0.57197,-1.14393 -0.84434,-1.46041 -1.20418,-1.46041c-0.35983,0 -0.63221,0.31648 -1.20418,1.46041c-0.67803,1.35607 -1.65566,2.28959 -2.54582,2.28959c-0.89017,0 -1.86779,-0.93352 -2.54582,-2.28959c-0.57197,-1.14393 -0.84434,-1.46041 -1.20418,-1.46041c-0.35983,0 -0.64942,0.30787 -1.20418,1.46041c-0.18524,0.37048 -0.63575,0.52065 -1.00623,0.33541z"})})}export{e as EntranceBounceMiniIcon};
@@ -1,2 +1,2 @@
1
- import{Tooltip as e}from"./chunk-SOZCWT6I.js";import{jsx as a,jsxs as l}from"react/jsx-runtime";function r({options:r,value:i,onChange:o,onClear:s,columns:n,captions:t=!1,label:c,className:d="","aria-labelledby":u}){/* @__PURE__ */
2
- return a("div",{role:"group","aria-label":u?void 0:c,"aria-labelledby":u,style:n?{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`}:void 0,className:`grid gap-(--space-8) ${n?"":"grid-cols-[repeat(auto-fill,minmax(58px,1fr))]"} ${d}`.replace(/\s+/g," ").trim(),children:r.map(r=>{const n=r.value===i,c=/* @__PURE__ */l("button",{type:"button","aria-pressed":n,"aria-label":t?void 0:r.label,disabled:r.disabled||void 0,onClick:()=>{n?s?.():o(r.value)},className:`flex w-full min-w-0 flex-col items-center justify-center gap-(--space-4) rounded-(--radius-control) border transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)] disabled:cursor-not-allowed disabled:opacity-50 ${t?"px-(--space-4) py-(--space-8)":"p-(--space-4)"} ${n?"border-blue-600 bg-surface text-blue-600 ring-2 ring-blue-400/40":"border-line bg-surface text-ink-faint hover:bg-row-hover hover:text-ink"}`,children:[r.picture,t&&/* @__PURE__ */a("span",{className:"max-w-full truncate text-2xs leading-4",children:r.label})]});return t?/* @__PURE__ */a("div",{className:"flex min-w-0",children:c},r.value):/* @__PURE__ */a(e,{content:r.label,describe:!1,className:"relative flex min-w-0",children:c},r.value)})})}export{r as PictureTiles};
1
+ import{Tooltip as e}from"./chunk-SOZCWT6I.js";import{jsx as r,jsxs as a}from"react/jsx-runtime";function l({options:l,value:i,onChange:o,onClear:s,columns:n,captions:t=!1,label:c,className:d="","aria-labelledby":u}){/* @__PURE__ */
2
+ return r("div",{role:"group","aria-label":u?void 0:c,"aria-labelledby":u,style:n?{gridTemplateColumns:`repeat(${n}, minmax(0, 1fr))`}:void 0,className:`grid gap-(--space-8) ${n?"":"grid-cols-[repeat(auto-fill,minmax(58px,1fr))]"} ${d}`.replace(/\s+/g," ").trim(),children:l.map(l=>{const n=l.value===i,c=/* @__PURE__ */a("button",{type:"button","aria-pressed":n,"aria-label":t?void 0:l.label,disabled:l.disabled||void 0,onClick:()=>{n?s?.():o(l.value)},className:`flex w-full min-w-0 flex-col items-center justify-center gap-(--space-4) rounded-(--radius-control) border transition-colors rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)] disabled:cursor-not-allowed disabled:opacity-50 ${t?"px-(--space-4) py-(--space-8)":"p-(--space-4)"} ${n?"border-blue-600 bg-surface text-blue-600 ring-2 ring-blue-400/40":"border-line bg-surface text-ink-faint hover:bg-row-hover hover:text-ink"}`,children:[l.picture,t&&/* @__PURE__ */r("span",{className:"max-w-full text-center text-2xs leading-4 break-words",children:l.label})]});return t?/* @__PURE__ */r("div",{className:"flex min-w-0",children:c},l.value):/* @__PURE__ */r(e,{content:l.label,describe:!1,className:"relative flex min-w-0",children:c},l.value)})})}export{l as PictureTiles};
@@ -1,4 +1,4 @@
1
- import{useShellLocale as e}from"./chunk-TJSJVC6P.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{useState as r,useEffect as n,Children as i}from"react";import{jsxs as l,jsx as a}from"react/jsx-runtime";var s={xs:24,sm:32,md:40,lg:56},o={online:"bg-green-500",offline:"bg-gray-400",busy:"bg-red-500",away:"bg-amber-500"};function m(e){if(!e)return"?";const t=e.trim().split(/\s+/).filter(Boolean);if(0===t.length)return"?";return((t[0][0]??"")+(t.length>1?t[t.length-1][0]:"")).toUpperCase()||"?"}function c({src:e,name:t,size:i="md",status:c,className:u=""}){const h=s[i],f=Math.max(8,Math.round(.28*h)),[d,g]=r(!1);n(()=>{g(!1)},[e]);const y=Boolean(e)&&!d;
1
+ import{useShellLocale as e}from"./chunk-JSHMIMAJ.js";import{formatPlain as t}from"./chunk-C3QOHMR6.js";import{useState as r,useEffect as n,Children as i}from"react";import{jsxs as l,jsx as a}from"react/jsx-runtime";var s={xs:24,sm:32,md:40,lg:56},o={online:"bg-green-500",offline:"bg-gray-400",busy:"bg-red-500",away:"bg-amber-500"};function m(e){if(!e)return"?";const t=e.trim().split(/\s+/).filter(Boolean);if(0===t.length)return"?";return((t[0][0]??"")+(t.length>1?t[t.length-1][0]:"")).toUpperCase()||"?"}function c({src:e,name:t,size:i="md",status:c,className:u=""}){const h=s[i],f=Math.max(8,Math.round(.28*h)),[d,g]=r(!1);n(()=>{g(!1)},[e]);const y=Boolean(e)&&!d;
2
2
  /* @__PURE__ */
3
3
  return l("span",{className:`relative inline-flex shrink-0 ${u}`.trim(),style:{width:h,height:h},...t?{role:"img","aria-label":t}:{"aria-hidden":!0},children:[y?/* @__PURE__ */a("img",{src:e,alt:"",onError:()=>g(!0),className:"h-full w-full rounded-full object-cover"}):/* @__PURE__ */a("span",{className:"flex h-full w-full items-center justify-center rounded-full bg-gray-100 font-medium text-gray-600",style:{fontSize:Math.round(.4*h)},children:m(t)}),c&&/* @__PURE__ */a("span",{className:`absolute bottom-0 right-0 rounded-full ring-2 ring-white ${o[c]}`,style:{width:f,height:f}})]})}function u({children:r,max:n,size:o="md",className:m=""}){const c=i.toArray(r),u=n?c.slice(0,n):c,h=n?c.length-u.length:0,f=s[o],d=Math.round(.3*f),g=e();/* @__PURE__ */
4
4
  return l("div",{className:`flex items-center ${m}`.trim(),children:[u.map((e,t)=>/* @__PURE__ */a("span",{className:"rounded-full ring-2 ring-white",style:{marginLeft:0===t?0:-d},children:e},t)),h>0&&/* @__PURE__ */l("span",{className:"flex items-center justify-center rounded-full bg-gray-200 font-medium text-gray-600 ring-2 ring-white",style:{width:f,height:f,marginLeft:-d,fontSize:Math.round(.36*f)},children:["+",t(h,g)]})]})}export{c as Avatar,u as AvatarGroup};
@@ -1,3 +1,3 @@
1
- import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{useState as r,useRef as o,useEffect as c,useCallback as i}from"react";import{jsx as n}from"react/jsx-runtime";function a(e){const[t,n]=r(!1),a=o(void 0);c(()=>()=>clearTimeout(a.current),[]);return{copied:t,copy:i(t=>{t?.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),clearTimeout(a.current),a.current=setTimeout(()=>n(!1),1500)},()=>{})},[e])}}function u({copied:t,className:r="w-4 h-4"}){/* @__PURE__ */
2
2
  return n(e,t?{name:"check",className:`${r} text-green-600`,"aria-hidden":"true"}:{name:"copy",className:r,"aria-hidden":"true"})}function m({text:e}){const{copied:r,copy:o}=a(e),c=t().copy;/* @__PURE__ */
3
3
  return n("button",{onClick:o,title:r?c.copiedValue:c.copyValue(e),className:"shrink-0 text-gray-400 hover:text-gray-600 transition-colors",children:/* @__PURE__ */n(u,{copied:r})})}export{m as CopyButton,u as CopyGlyph,a as useCopyText};
@@ -0,0 +1,9 @@
1
+ import{AccessibleTable as e}from"./chunk-HY6CBG4M.js";import{bumpPath as t}from"./chunk-VFC6QUEN.js";import{useHighlight as n}from"./chunk-CNYAHYE6.js";import{usePlotWidth as o}from"./chunk-MAFUXCPZ.js";import{ChartTooltip as l}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as r,CHART_INK as a}from"./chunk-TZFACUMR.js";import{useShellStrings as i,useShellLocale as s}from"./chunk-JSHMIMAJ.js";import{formatPlain as h}from"./chunk-C3QOHMR6.js";import{useRef as c,useState as m}from"react";import{jsx as d,jsxs as u}from"react/jsx-runtime";function f({nodes:f,links:k,height:p=320,width:x,nodeWidth:g=14,nodePadding:y=12,formatValue:v,className:M,emptyLabel:w}){const b=i().charts,j=s(),$=v??(e=>h(e,j)),N=w??b.noFlows,C=c(null),F=o(C),A=x??F,[E,H]=m(null),{highlighted:z}=n();if(0===f.length||0===k.length)/* @__PURE__ */
2
+ return d("div",{className:M,ref:C,children:/* @__PURE__ */d("p",{className:"py-8 text-center text-sm text-gray-500",children:N})});const O=[...new Set(f.map(e=>e.depth))].sort((e,t)=>e-t),Q=e=>O.length<=1?0:O.indexOf(e)/(O.length-1)*(A-g-140)+70,S=new Map(f.map(e=>{const t=k.filter(t=>t.from===e.key).reduce((e,t)=>e+t.value,0),n=k.filter(t=>t.to===e.key).reduce((e,t)=>e+t.value,0);return[e.key,Math.max(t,n,e.value??0)]})),U=/* @__PURE__ */new Map;for(const e of f)U.set(e.depth,[...U.get(e.depth)??[],e]);const V=Math.max(...[...U.values()].map(e=>e.reduce((e,t)=>e+(S.get(t.key)??0),0))),W=p-20,Y=V>0?(W-y*(Math.max(...[...U.values()].map(e=>e.length))-1))/V:0,B=/* @__PURE__ */new Map;for(const[e,t]of U){const n=t.map(e=>Math.max(2,(S.get(e.key)??0)*Y)),o=n.reduce((e,t)=>e+t,0)+y*(t.length-1),l=n.reduce((e,t)=>e+Math.max(0,t-2),0),r=o>W&&l>0?Math.max(0,1-(o-W)/l):1;let a=10;t.forEach((t,o)=>{const l=2+Math.max(0,n[o]-2)*r;B.set(t.key,{x:Q(e),y:a,h:l,index:o}),a+=l+y})}const I=/* @__PURE__ */new Map,J=/* @__PURE__ */new Map,L=/* @__PURE__ */new Map,P=(e,t)=>e.from===t||e.to===t,R="link"===E?.kind?k[E.index]:void 0,T="node"===E?.kind?f.find(e=>e.key===E.key):void 0;/* @__PURE__ */
3
+ return u("div",{className:`relative ${M??""}`,ref:C,children:[
4
+ /* @__PURE__ */u("svg",{width:"100%",height:p,viewBox:`0 0 ${A} ${p}`,role:"img","aria-label":b.sankey(f.length,k.length),onMouseLeave:()=>H(null),children:[k.map((e,n)=>{const o=B.get(e.from),l=B.get(e.to);if(!o||!l)return null;const a=Math.max(1,e.value*Y),i=o.y+(I.get(e.from)??0)+a/2,s=l.y+(J.get(e.to)??0)+a/2;I.set(e.from,(I.get(e.from)??0)+a),J.set(e.to,(J.get(e.to)??0)+a);const h=o.x+g,c=l.x,m=r(o.index,e.color),u=`${e.from}→${e.to}`,f=L.get(u)??0;L.set(u,f+1);const k=((e,t)=>E?"link"===E.kind?E.index===t:P(e,E.key):null!==z?P(e,z):null)(e,n);/* @__PURE__ */
5
+ return d("path",{d:t([[h,i],[c,s]]),fill:"none",stroke:m,strokeWidth:a,strokeOpacity:null===k||k?.42:.12,onMouseEnter:()=>H({kind:"link",index:n})},f?`${u}#${f}`:u)}),f.map(e=>{const t=B.get(e.key);if(!t)return null;const n=t.x>A/2,o=(l=e.key,E?"node"===E.kind?E.key===l:P(k[E.index],l):null!==z?z===l:null);var l;/* @__PURE__ */
6
+ return u("g",{opacity:null===o||o?1:.45,onMouseEnter:()=>H({kind:"node",key:e.key}),children:[
7
+ /* @__PURE__ */d("rect",{x:t.x,y:t.y,width:g,height:t.h,rx:2,fill:r(t.index,e.color,e.tone)}),
8
+ /* @__PURE__ */d("text",{x:n?t.x-8:t.x+g+8,y:t.y+t.h/2+4,textAnchor:n?"end":"start",fontSize:11,fill:a.label,children:e.label})]},e.key)})]}),R&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(l,{title:`${R.from} → ${R.to}`,rows:[{key:"value",label:b.flow,color:r(B.get(R.from)?.index??0,R.color),value:$(R.value)}]})}),T&&/* @__PURE__ */d("div",{className:"pointer-events-none absolute top-2 left-2 z-10",children:/* @__PURE__ */d(l,{title:T.label,rows:[{key:"value",label:b.throughput,color:r(B.get(T.key)?.index??0,T.color,T.tone),value:$(S.get(T.key)??0)}]})}),
9
+ /* @__PURE__ */d(e,{caption:b.sankey(f.length,k.length),head:[b.tableFrom,b.tableTo,b.value],rows:k.map(e=>[e.from,e.to,$(e.value)])})]})}export{f as SankeyChart};
@@ -1,4 +1,4 @@
1
- import{useShellStrings as t,useShellLocale as e}from"./chunk-TJSJVC6P.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
1
+ import{useShellStrings as t,useShellLocale as e}from"./chunk-JSHMIMAJ.js";import{formatPlain as a}from"./chunk-C3QOHMR6.js";import{jsxs as n,jsx as r}from"react/jsx-runtime";var o="inline-flex h-8 min-w-8 items-center justify-center rounded-md px-2 text-sm transition-colors disabled:cursor-not-allowed disabled:opacity-40";function l({page:l,pageCount:i,onPageChange:s,siblingCount:c=1,showEdges:b=!1,className:u=""}){const d=t().pagination,g=e();if(i<=1)return null;const m=function(t,e,a){const n=/* @__PURE__ */new Set([1,e]);for(let r=t-a;r<=t+a;r++)r>=1&&r<=e&&n.add(r);const r=[...n].sort((t,e)=>t-e),o=[];let l=0;for(const t of r)l&&t-l>1&&o.push("…"),o.push(t),l=t;return o}(l,i,c),p=t=>{t>=1&&t<=i&&t!==l&&s(t)};/* @__PURE__ */
2
2
  return n("nav",{"aria-label":d.label,className:`flex items-center gap-1 ${u}`.trim(),children:[b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.first,disabled:1===l,onClick:()=>p(1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"«"}),
3
3
  /* @__PURE__ */r("button",{type:"button","aria-label":d.previous,disabled:1===l,onClick:()=>p(l-1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"‹"}),m.map((t,e)=>"…"===t?/* @__PURE__ */r("span",{className:"px-1 text-gray-400",children:"…"},`gap-${e}`):/* @__PURE__ */r("button",{type:"button","aria-current":t===l?"page":void 0,onClick:()=>p(t),className:`${o} ${t===l?"bg-blue-600 font-medium text-white":"text-gray-700 hover:bg-gray-100"}`,children:a(t,g)},t)),
4
4
  /* @__PURE__ */r("button",{type:"button","aria-label":d.next,disabled:l===i,onClick:()=>p(l+1),className:`${o} text-gray-600 hover:bg-gray-100`,children:"›"}),b&&/* @__PURE__ */r("button",{type:"button","aria-label":d.last,disabled:l===i,onClick:()=>p(i),className:`${o} text-gray-600 hover:bg-gray-100`,children:"»"})]})}export{l as Pagination};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...r}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",...r,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M3.75,5.5h5c0.49841,0.03274 1.09349,0.26507 1.41421,0.58579c0.32072,0.32072 0.55305,0.9158 0.58579,1.41421v5c-0.03274,0.49841 -0.26507,1.09349 -0.58579,1.41421c-0.32072,0.32072 -0.9158,0.55305 -1.41421,0.58579h-5c-0.49841,-0.03274 -1.09349,-0.26507 -1.41421,-0.58579c-0.32072,-0.32072 -0.55305,-0.9158 -0.58579,-1.41421v-5c0.03274,-0.49841 0.26507,-1.09349 0.58579,-1.41421c0.32072,-0.32072 0.9158,-0.55305 1.41421,-0.58579zM11.75,5.625c0,-0.41421 0.33579,-0.75 0.75,-0.75c1.36136,0.03274 2.73769,0.61485 3.62392,1.50108c0.88623,0.88623 1.50108,2.26256 1.50108,3.62392c0,1.36136 -0.61485,2.73769 -1.50108,3.62392c-0.44554,0.44554 -1.03787,0.84807 -1.62881,1.09802c-0.129,0.05456 -0.28322,0.10172 -0.44541,0.1421l0.85563,0.85563c0.29289,0.29289 0.29289,0.76777 0,1.06066c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0l-1.875,-1.875c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l1.875,-1.875c0.29289,-0.29289 0.76777,-0.29289 1.06066,0c0.14653,0.14653 0.21975,0.3386 0.21967,0.53065c0.65697,-0.68306 1,-1.47702 1,-2.50032c0,-1.05489 -0.36453,-1.86606 -1.06174,-2.56326c-0.69721,-0.69721 -1.50838,-1.09448 -2.56326,-1.06174c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{e as EntranceSpinMiniIcon};
@@ -1,3 +1,3 @@
1
- import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-JMGDGNM7.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{OneLineLabel as r}from"./chunk-G67CJAQ2.js";import{useShellStrings as s}from"./chunk-TJSJVC6P.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
1
+ import{GROUP_COLORS as e,BADGE_PILL as o}from"./chunk-JMGDGNM7.js";import{Icon as i}from"./chunk-JOAKKXTL.js";import{OneLineLabel as r}from"./chunk-G67CJAQ2.js";import{useShellStrings as s}from"./chunk-JSHMIMAJ.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";function l({colorClass:l,tone:c,children:a,size:m="sm",capitalize:p=!1,closable:u=!1,onClose:f,closeLabel:h,className:x=""}){const d=l??e[c??"neutral"],y="xs"===m?"px-2 py-0.5 text-3xs":"md"===m?"px-3 py-0.5 text-xs":"px-2 py-0.5 text-xs",b=p?"capitalize":"",g=s().badge,j=h??("string"==typeof a?g.removeItem(a):g.remove),k="xs"===m?"h-2.5 w-2.5":"h-3 w-3";/* @__PURE__ */
2
2
  return t("span",{className:[o,"font-medium",y,b,d,x].filter(Boolean).join(" "),children:[
3
3
  /* @__PURE__ */n(r,{children:a}),u&&/* @__PURE__ */n("button",{type:"button",onClick:f,"aria-label":j,className:"-mr-0.5 ml-1 inline-flex shrink-0 items-center justify-center rounded-full opacity-70 transition-opacity hover:opacity-100 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-strong)]",children:/* @__PURE__ */n(i,{name:"close",look:"mini",className:k,"aria-hidden":"true"})})]})}export{l as ColoredBadge};
@@ -0,0 +1,5 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...h}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...h,children:[
3
+ /* @__PURE__ */e("path",{d:"M2.25 7.5V6h1.5M6.75 6h1.5v1.5M8.25 10.5v1.5h-1.5M3.75 12h-1.5v-1.5"}),
4
+ /* @__PURE__ */e("path",{d:"M14.25 4.5h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
5
+ /* @__PURE__ */e("path",{d:"M8.25 18.75L15.75 18.75M13.5 16.5L15.75 18.75L13.5 21"})]})}export{t as ScrollFadeInIcon};
@@ -0,0 +1,4 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M4.5 7.5h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
4
+ /* @__PURE__ */e("path",{d:"M15 6.75a5.25 5.25 0 0 1 0 10.5M17.25 15L15 17.25L17.25 19.5"})]})}export{t as EntranceSpinIcon};
@@ -1,4 +1,4 @@
1
- import{CHART_INK as r}from"./chunk-TZFACUMR.js";import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{useId as e}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";function o({height:o=220,width:a=720,variant:h="area",bars:l=9,label:c,className:n}){const f=t().charts,p=c??f.loading,d=`${e()}-shimmer`,m=48,g=a-16,y=12,u=o-26;/* @__PURE__ */
1
+ import{CHART_INK as r}from"./chunk-TZFACUMR.js";import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{useId as e}from"react";import{jsx as i,jsxs as s}from"react/jsx-runtime";function o({height:o=220,width:a=720,variant:h="area",bars:l=9,label:c,className:n}){const f=t().charts,p=c??f.loading,d=`${e()}-shimmer`,m=48,g=a-16,y=12,u=o-26;/* @__PURE__ */
2
2
  return i("div",{className:n,children:/* @__PURE__ */s("svg",{width:"100%",height:o,viewBox:`0 0 ${a} ${o}`,role:"img","aria-label":p,"aria-busy":"true",children:[
3
3
  /* @__PURE__ */i("defs",{children:/* @__PURE__ */s("linearGradient",{id:d,x1:"0",y1:"0",x2:"1",y2:"0",children:[
4
4
  /* @__PURE__ */i("stop",{offset:"0%",stopColor:r.surface,stopOpacity:"0"}),
@@ -1,9 +1,9 @@
1
- import{Calendar as e}from"./chunk-BET6KEY2.js";import{fromDateKey as t,toDateKey as r}from"./chunk-2HMNOLKX.js";import{inputClasses as a,PLACEHOLDER_INK as n}from"./chunk-AYZY3YNC.js";import{calendarNames as i}from"./chunk-Y3JW2GW5.js";import{Icon as o}from"./chunk-JOAKKXTL.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{useDropdownPosition as d}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as b}from"./chunk-TJSJVC6P.js";import{forwardRef as f,useState as p,useRef as h,useId as v,useEffect as g}from"react";import{createPortal as y}from"react-dom";import{jsx as x,jsxs as N}from"react/jsx-runtime";var k=/^\d{4}-\d{2}-\d{2}$/,j=/^(aria|data)-/,w=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function D(e){if(null==e||""===e)return"";if(e instanceof Date)return Number.isNaN(e.getTime())?"":r(e);if(k.test(e))return e;const t=new Date(e);return Number.isNaN(t.getTime())?"":r(t)}function B(e,r){const a=t(e);return a?r.longDate(a.getFullYear(),a.getMonth(),a.getDate()):""}var C=f(function({value:f,onChange:k,min:C,max:E,invalid:F,size:J,native:T,weekStartsOn:W,className:L="","aria-label":O,"aria-describedby":S,"aria-labelledby":Y,id:$,name:q,disabled:z,placeholder:I,required:K,clearable:U,form:G,title:M,tabIndex:P,autoFocus:A,onFocus:H,onBlur:V,...X},Q){const R=U??!K,Z=D(f),_=D(C),ee=D(E),te=m().datePicker,re=b(),ae=i(re),[ne,ie]=p(!1),oe=h(null),le=h(null),se=h(null),de=v(),ue=v(),ce=v(),me=d(le,ne,{popupRef:se}),[be,fe]=p(!1);u(()=>{const e=!!$&&(le.current?.labels?.length??0)>0;e!==be&&fe(e)});const pe=!O&&(!!Y||be);if(g(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),g(()=>{if(ne)return c(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),T)/* @__PURE__ */
2
- return x("input",{ref:Q,type:"date",lang:re,id:$,name:q,disabled:z,"aria-label":O,"aria-describedby":S,"aria-invalid":F||void 0,value:Z,min:_||void 0,max:ee||void 0,onChange:e=>k?.(t(e.target.value)),className:a({invalid:F,size:J,className:L}),"aria-labelledby":Y,required:K,form:G,title:M,tabIndex:P,autoFocus:A,onFocus:H,onBlur:V,...X});const he=Object.fromEntries(Object.entries(X).filter(([e])=>j.test(e)&&!w.has(e))),ve=X["aria-required"],ge=!!K||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,S].filter(Boolean).join(" ")||void 0,xe=r(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=I??te.placeholder;/* @__PURE__ */
1
+ import{Calendar as e}from"./chunk-QPYVCG74.js";import{fromDateKey as t,toDateKey as r}from"./chunk-2HMNOLKX.js";import{inputClasses as a,PLACEHOLDER_INK as n}from"./chunk-AYZY3YNC.js";import{calendarNames as i}from"./chunk-Y3JW2GW5.js";import{Icon as o}from"./chunk-JOAKKXTL.js";import{onOverlayOpen as l}from"./chunk-PGN5ME7B.js";import{Z_LAYERS as s}from"./chunk-62LW225J.js";import{useDropdownPosition as d}from"./chunk-GLUJS42B.js";import{useBrowserLayoutEffect as u}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as c}from"./chunk-TWVUQUUD.js";import{useShellStrings as m,useShellLocale as b}from"./chunk-JSHMIMAJ.js";import{forwardRef as f,useState as p,useRef as h,useId as v,useEffect as g}from"react";import{createPortal as y}from"react-dom";import{jsx as x,jsxs as N}from"react/jsx-runtime";var k=/^\d{4}-\d{2}-\d{2}$/,j=/^(aria|data)-/,w=/* @__PURE__ */new Set(["aria-invalid","aria-required"]);function D(e){if(null==e||""===e)return"";if(e instanceof Date)return Number.isNaN(e.getTime())?"":r(e);if(k.test(e))return e;const t=new Date(e);return Number.isNaN(t.getTime())?"":r(t)}function C(e,r){const a=t(e);return a?r.longDate(a.getFullYear(),a.getMonth(),a.getDate()):""}var F=f(function({value:f,onChange:k,min:F,max:J,invalid:W,size:B,native:L,weekStartsOn:O,className:S="","aria-label":Y,"aria-describedby":$,"aria-labelledby":q,id:E,name:I,disabled:M,placeholder:T,required:z,clearable:G,form:U,title:A,tabIndex:H,autoFocus:K,onFocus:P,onBlur:Q,...V},X){const R=G??!z,Z=D(f),_=D(F),ee=D(J),te=m().datePicker,re=b(),ae=i(re),[ne,ie]=p(!1),oe=h(null),le=h(null),se=h(null),de=v(),ue=v(),ce=v(),me=d(le,ne,{popupRef:se}),[be,fe]=p(!1);u(()=>{const e=!!E&&(le.current?.labels?.length??0)>0;e!==be&&fe(e)});const pe=!Y&&(!!q||be);if(g(()=>{if(!ne)return;const e=e=>{const t=e.target;oe.current?.contains(t)||se.current?.contains(t)||ie(!1)};document.addEventListener("pointerdown",e,!0);const t=l(()=>ie(!1));return()=>{document.removeEventListener("pointerdown",e,!0),t()}},[ne]),g(()=>{if(ne)return c(e=>"Escape"===e.key&&(ie(!1),le.current?.focus(),!0),()=>se.current)},[ne]),L)/* @__PURE__ */
2
+ return x("input",{ref:X,type:"date",lang:re,id:E,name:I,disabled:M,"aria-label":Y,"aria-describedby":$,"aria-invalid":W||void 0,value:Z,min:_||void 0,max:ee||void 0,onChange:e=>k?.(t(e.target.value)),className:a({invalid:W,size:B,className:S}),"aria-labelledby":q,required:z,form:U,title:A,tabIndex:H,autoFocus:K,onFocus:P,onBlur:Q,...V});const he=Object.fromEntries(Object.entries(V).filter(([e])=>j.test(e)&&!w.has(e))),ve=V["aria-required"],ge=!!z||!0===ve||"true"===ve,ye=[pe?ue:void 0,ge?ce:void 0,$].filter(Boolean).join(" ")||void 0,xe=r(/* @__PURE__ */new Date),Ne=(!_||xe>=_)&&(!ee||xe<=ee),ke=T??te.placeholder;/* @__PURE__ */
3
3
  return N("div",{ref:oe,className:"relative",children:[
4
- /* @__PURE__ */x("input",{ref:Q,type:"hidden",name:q,form:G,value:Z}),
5
- /* @__PURE__ */N("button",{ref:le,type:"button",...he,id:$,disabled:z,title:M,tabIndex:P,autoFocus:A,onFocus:H,onBlur:V,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":Y,"aria-describedby":ye,"aria-label":O?`${O}${Z?`, ${B(Z,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${a({invalid:F,size:J,className:L})} flex items-center justify-between text-left`,children:[
6
- /* @__PURE__ */x("span",{className:Z?"text-ink-strongest":n,children:Z?B(Z,ae):ke}),
7
- /* @__PURE__ */x(o,{name:"date",className:`h-4 w-4 shrink-0 ${n}`,strokeWidth:"1.75","aria-hidden":"true"})]}),pe&&/* @__PURE__ */x("span",{id:ue,className:"sr-only",children:Z?B(Z,ae):ke}),ge&&/* @__PURE__ */x("span",{id:ce,className:"sr-only",children:te.required}),ne&&y(
8
- /* @__PURE__ */N("div",{ref:se,id:de,role:"dialog","aria-label":O??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:s.popup,left:me?.left,right:me?.right,top:me?.top,bottom:me?.bottom,maxWidth:me?.maxWidth,visibility:me?void 0:"hidden"},children:[
9
- /* @__PURE__ */x(e,{value:Z||null,min:_||null,max:ee||null,weekStartsOn:W,onSelect:e=>{ie(!1),le.current?.focus(),k?.(t(e))}}),(R||Ne)&&/* @__PURE__ */N("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[R&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{C as DatePicker_default};
4
+ /* @__PURE__ */x("input",{ref:X,type:"hidden",name:I,form:U,value:Z}),
5
+ /* @__PURE__ */N("button",{ref:le,type:"button",...he,id:E,disabled:M,title:A,tabIndex:H,autoFocus:K,onFocus:P,onBlur:Q,"aria-haspopup":"dialog","aria-expanded":ne,"aria-controls":ne?de:void 0,"aria-labelledby":q,"aria-describedby":ye,"aria-label":Y?`${Y}${Z?`, ${C(Z,ae)}`:""}`:void 0,onClick:()=>ie(e=>!e),className:`${a({invalid:W,size:B,className:S})} flex items-center justify-between text-left`,children:[
6
+ /* @__PURE__ */x("span",{className:Z?"text-ink-strongest":n,children:Z?C(Z,ae):ke}),
7
+ /* @__PURE__ */x(o,{name:"date",className:`h-4 w-4 shrink-0 ${n}`,strokeWidth:"1.75","aria-hidden":"true"})]}),pe&&/* @__PURE__ */x("span",{id:ue,className:"sr-only",children:Z?C(Z,ae):ke}),ge&&/* @__PURE__ */x("span",{id:ce,className:"sr-only",children:te.required}),ne&&y(
8
+ /* @__PURE__ */N("div",{ref:se,id:de,role:"dialog","aria-label":Y??te.dialog,className:"fixed w-72 rounded-xl border border-gray-200 bg-white p-3 shadow-lg",style:{zIndex:s.popup,left:me?.left,right:me?.right,top:me?.top,bottom:me?.bottom,maxWidth:me?.maxWidth,visibility:me?void 0:"hidden"},children:[
9
+ /* @__PURE__ */x(e,{value:Z||null,min:_||null,max:ee||null,weekStartsOn:O,onSelect:e=>{ie(!1),le.current?.focus(),k?.(t(e))}}),(R||Ne)&&/* @__PURE__ */N("div",{className:"mt-2 flex justify-between border-t border-gray-100 pt-2",children:[R&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(null)},className:"rounded-(--radius-control) px-2 py-1 text-sm text-gray-500 hover:bg-gray-100 hover:text-gray-700",children:te.clear}),Ne&&/* @__PURE__ */x("button",{type:"button",onClick:()=>{ie(!1),le.current?.focus(),k?.(/* @__PURE__ */new Date)},className:"ml-auto rounded-(--radius-control) px-2 py-1 text-sm font-medium text-blue-600 hover:bg-blue-50",children:te.today})]})]}),document.body)]})});export{F as DatePicker_default};
@@ -0,0 +1,5 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...h}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...h,children:[
3
+ /* @__PURE__ */e("path",{d:"M3.75 4.5h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
4
+ /* @__PURE__ */e("path",{d:"M15.75 7.5V6h1.5M20.25 6h1.5v1.5M21.75 10.5v1.5h-1.5M17.25 12h-1.5v-1.5"}),
5
+ /* @__PURE__ */e("path",{d:"M8.25 18.75L15.75 18.75M13.5 16.5L15.75 18.75L13.5 21"})]})}export{t as ScrollFadeOutIcon};
@@ -0,0 +1,4 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M9 2.25h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
4
+ /* @__PURE__ */e("path",{d:"M3 18c1.5-3 3-3 4.5 0s3 3 4.5 0 3-3 4.5 0 3 3 4.5 0"})]})}export{t as EntranceBounceIcon};
@@ -1,9 +1,9 @@
1
- import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-EIXMUGVZ.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-JOAKKXTL.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-TJSJVC6P.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:C=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:j="bg-white"}){const z="right"===m,O=i().sidebar,P=a(),T=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[W,D]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),E=null!=l||null!=n,I=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:W},children:[
2
- /* @__PURE__ */f("div",{className:`flex h-full flex-col ${E?"overflow-hidden":"overflow-y-auto"} ${C}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),E?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
- /* @__PURE__ */p(t,{side:m,width:W,onResize:D,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:O.resize})]}),K=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${j}`,children:u});/* @__PURE__ */
4
- return f("div",P?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
- /* @__PURE__ */p(g,{phone:T,top:l,fallback:O.sections}),K,
6
- /* @__PURE__ */p(v,{phone:T,bottom:n,label:O.sections,closeLabel:O.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[z?null:I,K,z?I:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
1
+ import{SidebarBarContext as e,SidebarSheetContext as l}from"./chunk-QWK6DRSN.js";import{readStoredWidth as r,ResizeHandle as t}from"./chunk-OOWPLQD5.js";import{useIsPhone as a}from"./chunk-UGTRSRIW.js";import{Icon as n}from"./chunk-JOAKKXTL.js";import{useBrowserState as o}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-JSHMIMAJ.js";import{useState as s,useRef as c,useReducer as d,useMemo as h,Fragment as u,useEffect as m}from"react";import{jsxs as f,jsx as p}from"react/jsx-runtime";var b=(e,l,r)=>Math.min(Math.max(e,l),r);function x({sidebar:e,sidebarTop:l,sidebarBottom:n,children:u,side:m="left",storageKey:x,defaultWidth:N=256,minWidth:w=180,maxWidth:k=480,className:y="",sidebarClassName:O=("right"===m?"border-l border-gray-200 bg-gray-50":"border-r border-gray-200 bg-gray-50"),contentClassName:W="bg-white"}){const j="right"===m,z=i().sidebar,C=a(),D=function(){const[e,l]=s(!1),r=c(null),t=c(/* @__PURE__ */new Map),[,a]=d(e=>e+1,0),n=h(()=>({report(e,l,r){const n={label:l,el:r};return t.current.set(e,n),a(),()=>{t.current.get(e)===n&&(t.current.delete(e),a())}}}),[]);return{api:n,open:e,setOpen:l,current:()=>[...t.current.values()].sort((e,l)=>e.el&&l.el&&e.el.compareDocumentPosition(l.el)&Node.DOCUMENT_POSITION_PRECEDING?1:-1).map(e=>e.label()),trigger:r}}(),[P,I]=o(()=>(x?r(x,w,k):null)??b(N,w,k),b(N,w,k)),K=null!=l||null!=n,M=/* @__PURE__ */f("div",{className:"relative flex h-full shrink-0 flex-col",style:{width:P},children:[
2
+ /* @__PURE__ */f("div",{className:`flex h-full flex-col ${K?"overflow-hidden":"overflow-y-auto"} ${O}`,children:[null!=l&&/* @__PURE__ */p("div",{className:"flex shrink-0 flex-col gap-2 px-2 pt-3 pb-2",children:l}),K?/* @__PURE__ */p("div",{className:"min-h-0 flex-1 overflow-y-auto",children:e}):e,null!=n&&/* @__PURE__ */p("div",{className:"mt-auto flex shrink-0 flex-col gap-2 border-t border-gray-200 px-2 py-3",children:n})]}),
3
+ /* @__PURE__ */p(t,{side:m,width:P,onResize:I,min:w,max:k,defaultWidth:b(N,w,k),storageKey:x,hint:z.resize})]}),T=/* @__PURE__ */p("div",{className:`flex min-w-0 flex-1 flex-col ${W}`,children:u});/* @__PURE__ */
4
+ return f("div",C?{className:`relative flex h-full w-full flex-col overflow-hidden ${y}`,children:[
5
+ /* @__PURE__ */p(g,{phone:D,top:l,fallback:z.sections}),T,
6
+ /* @__PURE__ */p(v,{phone:D,bottom:n,label:z.sections,closeLabel:z.closeSections,children:e})]}:{className:`flex h-full w-full overflow-hidden ${y}`,children:[j?null:M,T,j?M:null]})}function g({phone:l,top:r,fallback:t}){const a=l.current();/* @__PURE__ */
7
7
  return f("div",{"data-sidebar-section-bar":!0,className:"flex h-11 shrink-0 items-center gap-2 border-b border-gray-200 bg-white px-3",children:[
8
8
  /* @__PURE__ */f("button",{ref:l.trigger,type:"button","aria-haspopup":"dialog","aria-expanded":l.open,onClick:()=>l.setOpen(!0),className:"flex h-8 min-w-0 flex-1 items-center gap-1 text-left text-sm font-semibold text-gray-900",children:[
9
9
  /* @__PURE__ */p("span",{className:"min-w-0 truncate",children:0===a.length?t:a.map((e,l)=>/* @__PURE__ */f(u,{children:[l>0&&" · ",e]},l))}),
@@ -1,4 +1,4 @@
1
- import{SpinnerRing as e}from"./chunk-R2VKEMZH.js";import{useShellStrings as t}from"./chunk-TJSJVC6P.js";import{jsxs as n,Fragment as l,jsx as o}from"react/jsx-runtime";function r({selectedCount:r,hiddenSelectedCount:c=0,loadedCount:d,totalCount:i,label:a,isFetchingMore:s,extra:u,extraAfter:h}){const m=t().list,f=i??d,p=d>=f,x=c>0?m.selectedNotShown(r,c):r>0?m.selected(r):"";/* @__PURE__ */
2
- return n(l,{children:[u,x?`${x} — `:"",p?null!=i?m.allLoaded(f,a):m.count(f,a):m.loadedOf(d,f,a),(C=h,null!=C&&!1!==C&&!0!==C&&""!==C?/* @__PURE__ */n(l,{children:[" · ",h]}):""),s?/* @__PURE__ */n(l,{children:[" · ",
1
+ import{SpinnerRing as e}from"./chunk-R2VKEMZH.js";import{useShellStrings as t}from"./chunk-JSHMIMAJ.js";import{jsxs as n,Fragment as l,jsx as o}from"react/jsx-runtime";function r({selectedCount:r,hiddenSelectedCount:c=0,loadedCount:d,totalCount:i,label:a,isFetchingMore:s,extra:u,extraAfter:h}){const m=t().list,f=i??d,p=d>=f,x=c>0?m.selectedNotShown(r,c):r>0?m.selected(r):"";/* @__PURE__ */
2
+ return n(l,{children:[u,x?`${x} — `:"",p?null!=i?m.allLoaded(f,a):m.count(f,a):m.loadedOf(d,f,a),(M=h,null!=M&&!1!==M&&!0!==M&&""!==M?/* @__PURE__ */n(l,{children:[" · ",h]}):""),s?/* @__PURE__ */n(l,{children:[" · ",
3
3
  /* @__PURE__ */n("span",{className:"inline-flex items-center gap-1",role:"status",children:[
4
- /* @__PURE__ */o(e,{}),m.loadingMore]})]}):""]});var C}export{r as ListFooter};
4
+ /* @__PURE__ */o(e,{}),m.loadingMore]})]}):""]});var M}export{r as ListFooter};
@@ -1,9 +1,9 @@
1
- import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as n}from"./chunk-TZFNWAED.js";import{ItemCount as r}from"./chunk-KWTK6TGH.js";import{Icon as l}from"./chunk-JOAKKXTL.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-TJSJVC6P.js";import{useId as o,useRef as c,useEffect as s,Children as u,isValidElement as d}from"react";import{jsx as m,jsxs as h,Fragment as p}from"react/jsx-runtime";function f({children:e,count:t,countLabel:n}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */h("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
1
+ import{useSidebarSheet as e}from"./chunk-QWK6DRSN.js";import{resolveSeverity as t,severityWord as n}from"./chunk-TZFNWAED.js";import{ItemCount as r}from"./chunk-MWTCGJAI.js";import{Icon as l}from"./chunk-JOAKKXTL.js";import{useBrowserState as a}from"./chunk-D65T4H6J.js";import{useShellStrings as i}from"./chunk-JSHMIMAJ.js";import{useId as o,useRef as c,useEffect as s,Children as u,isValidElement as d}from"react";import{jsx as m,jsxs as h,Fragment as p}from"react/jsx-runtime";function f({children:e,count:t,countLabel:n}){return null==t?/* @__PURE__ */m("p",{className:"px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:e}):/* @__PURE__ */h("p",{className:"flex items-center justify-between gap-2 px-3 pb-1 pt-1 text-xs font-semibold uppercase tracking-wide text-gray-500",children:[
2
2
  /* @__PURE__ */m("span",{className:"min-w-0 truncate",children:e}),
3
- /* @__PURE__ */m(r,{count:t,label:n,showZero:!0})]})}function b(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-accent-tint font-medium text-blue-700":"border-line text-ink hover:bg-gray-100")}function x({label:l,count:a,countLabel:u,active:d,onClick:f,icon:x,trailing:g,severity:w,depth:k=0}){const y=t(w,"SidebarNavItem"),v=i().severity,N=y?n(y,v):void 0,j=e(),K=o(),S=c(null),C=c(l);C.current=l,s(()=>{if(j&&d)return j.report(K,()=>C.current,S.current)},[j,d,K]);const T=/* @__PURE__ */h(p,{children:[null!=x&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:x}),y&&
3
+ /* @__PURE__ */m(r,{count:t,label:n,showZero:!0})]})}function b(e){return"flex min-w-0 flex-1 items-center justify-between gap-2 rounded-r-lg border-l-2 h-8 px-3 text-sm "+(e?"border-blue-500 bg-accent-tint font-medium text-blue-700":"border-line text-ink hover:bg-gray-100")}function x({label:l,count:a,countLabel:u,active:d,onClick:f,icon:x,trailing:g,severity:w,depth:k=0}){const y=t(w,"SidebarNavItem"),v=i().severity,N=y?n(y,v):void 0,j=e(),I=o(),S=c(null),C=c(l);C.current=l,s(()=>{if(j&&d)return j.report(I,()=>C.current,S.current)},[j,d,I]);const A=/* @__PURE__ */h(p,{children:[null!=x&&/* @__PURE__ */m("span",{"aria-hidden":"true",className:"shrink-0 h-4 w-4",children:x}),y&&
4
4
  /* @__PURE__ */m("span",{"aria-hidden":"true",title:N,className:`shrink-0 h-1.5 w-1.5 rounded-full ${y.fill}`}),
5
5
  /* @__PURE__ */m("span",{className:"min-w-0 truncate mr-auto",title:"string"==typeof l?l:void 0,children:l}),y&&/* @__PURE__ */m("span",{className:"sr-only",children:N}),null!=a&&/* @__PURE__ */m(r,{count:a,label:u,active:d}),null!=g&&/* @__PURE__ */m("span",{className:"shrink-0",children:g})]});/* @__PURE__ */
6
- return m("button",1===k?{ref:S,type:"button",onClick:f,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */m("span",{className:b(d),children:T})}:{ref:S,type:"button",onClick:f,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(d?"bg-accent-tint font-medium text-blue-700":"text-ink hover:bg-gray-100"),children:T})}function g({label:e,count:t,countLabel:n,children:i,defaultExpanded:c=!0,storageKey:s}){const p=o(),[f,b]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return c},c),x=!f&&u.toArray(i).some(e=>d(e)&&!0===e.props.active);/* @__PURE__ */
6
+ return m("button",1===k?{ref:S,type:"button",onClick:f,className:"flex w-full pl-5 text-left",children:/* @__PURE__ */m("span",{className:b(d),children:A})}:{ref:S,type:"button",onClick:f,className:"flex w-full items-center justify-between gap-2 rounded-lg h-8 px-3 text-sm text-left "+(d?"bg-accent-tint font-medium text-blue-700":"text-ink hover:bg-gray-100"),children:A})}function g({label:e,count:t,countLabel:n,children:i,defaultExpanded:c=!0,storageKey:s}){const p=o(),[f,b]=a(()=>{if(s){let e=null;try{e=window.localStorage.getItem(s)}catch{}if("1"===e||"0"===e)return"1"===e}return c},c),x=!f&&u.toArray(i).some(e=>d(e)&&!0===e.props.active);/* @__PURE__ */
7
7
  return h("div",{children:[
8
8
  /* @__PURE__ */h("button",{type:"button",onClick:()=>{const e=!f;if(b(e),s)try{window.localStorage.setItem(s,e?"1":"0")}catch{}},"aria-expanded":f,"aria-controls":p,className:"flex w-full items-center gap-2 rounded-lg h-8 px-3 text-sm font-medium text-left "+(x?"bg-accent-tint text-blue-700":"text-ink-strong hover:bg-gray-100"),children:[
9
9
  /* @__PURE__ */m("span",{className:"min-w-0 truncate",title:e,children:e}),
@@ -1,20 +1,20 @@
1
- import{Pagination as e}from"./chunk-EVEGK57J.js";import{Checkbox_default as t}from"./chunk-CGZBDI6C.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as o,OneLineLabel as n}from"./chunk-G67CJAQ2.js";import{useBrowserLayoutEffect as l}from"./chunk-D65T4H6J.js";import{useShellStrings as s}from"./chunk-TJSJVC6P.js";import{useState as i,useRef as a}from"react";import{jsxs as c,Fragment as d,jsx as h}from"react/jsx-runtime";function u(e){const t={};if(!e)return t;for(const[r,o]of Object.entries(e))!r.startsWith("data-")||"string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o||(t[r]=o);return t}var m=e=>Array.isArray(e.columns),f=e=>"wide"===e.only?"rosh-dt-only-wide":"stacked"===e.only?"rosh-dt-only-stacked":"",g="rosh-dt-row-link rosh-focus-ring underline-offset-4 hover:underline",p={sm:"px-2 py-2",md:"px-3 py-2"},y={left:"text-left",right:"text-right",center:"text-center"};function b({direction:e}){/* @__PURE__ */
1
+ import{Pagination as e}from"./chunk-WPG3ZHYT.js";import{Checkbox_default as t}from"./chunk-CGZBDI6C.js";import{SpinnerRing as r}from"./chunk-R2VKEMZH.js";import{TH_ONE_LINE as o,OneLineLabel as n}from"./chunk-G67CJAQ2.js";import{useBrowserLayoutEffect as l}from"./chunk-D65T4H6J.js";import{useShellStrings as s}from"./chunk-JSHMIMAJ.js";import{useState as i,useRef as a}from"react";import{jsxs as c,Fragment as d,jsx as h}from"react/jsx-runtime";function u(e){const t={};if(!e)return t;for(const[r,o]of Object.entries(e))!r.startsWith("data-")||"string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o||(t[r]=o);return t}var m=e=>Array.isArray(e.columns),f=e=>"wide"===e.only?"rosh-dt-only-wide":"stacked"===e.only?"rosh-dt-only-stacked":"",g="rosh-dt-row-link rosh-focus-ring underline-offset-4 hover:underline",p={sm:"px-2 py-2",md:"px-3 py-2"},y={left:"text-left",right:"text-right",center:"text-center"};function b({direction:e}){/* @__PURE__ */
2
2
  return c("span",{className:"ml-1 inline-flex flex-col leading-none","aria-hidden":"true",children:[
3
3
  /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("asc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 0L8 5H0z"})}),
4
- /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("desc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 5L0 0h8z"})})]})}function w(e,t=!1){const r=t?"":" whitespace-nowrap";return e.code?`font-mono${r}`:e.numeric?`tabular-nums${r}`:""}function x({columns:x,data:v,rowKey:k,sort:N=null,onSortChange:C,pagination:j,caption:M,loading:B=!1,bordered:S=!1,size:$="md",minWidth:z,rowClassName:H,onRow:T,rowHref:E,onRowPress:I,linkAs:A,emptyText:J,selection:P,footer:D,virtualized:F,stackOnNarrow:K=!1,stackBelow:L,className:O=""}){const R=s(),G=J??R.table.empty,V=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),W=K&&!F,Z=W?x:x.flatMap(e=>{if(!m(e))return"stacked"===e.only?[]:[e];const t=e.columns.filter(e=>"stacked"!==e.only);return t.length?[{...e,columns:t}]:[]}),Q=e=>W?{role:e}:{},q=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[U,X]=i(0),Y=F?.overscan??6,_=F?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/F.rowHeight)-Y);X(e=>e===t?e:t)}:void 0,ee=F?Math.ceil(F.height/F.rowHeight)+2*Y:v.length,te=F?Math.min(U,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=F?te*F.rowHeight:0,ne=F?(v.length-re)*F.rowHeight:0,le=a(null),[se,ie]=i(0);l(()=>{if(!F)return;const e=le.current?.offsetHeight??0;ie(t=>t===e?t:e)});const ae=e=>e.sortField??e.key,ce=e=>N&&N.field===ae(e)?N.direction:null,de=Z.flatMap(e=>m(e)?e.columns:[e]),he=Z.some(m),ue=/* @__PURE__ */new Map;if(W)for(const e of Z)if(m(e))for(const t of e.columns)ue.set(t,q(e.title,e.label));const me=e=>{const t=q(e.title,e.label),r=ue.get(e);return t&&r?`${r} · ${t}`:t},fe=new Set(P?.selected??[]),ge=P?v.map((e,t)=>V(e,t)):[],pe=ge.length>0&&ge.every(e=>fe.has(e)),ye=ge.some(e=>fe.has(e)),be=P?36:0,we=de.length+(P?1:0),xe=de.some(e=>"left"===e.fixed),ve=W&&!P&&de.some(e=>e.cardCorner),ke=A??"a",Ne=`${p[$]} ${"sm"===$?"text-xs":"text-sm"}`,Ce=(e,t)=>e.ellipsis?/* @__PURE__ */h("span",{className:"block w-0 min-w-full",children:t}):t,je=(e,t,r,l=0)=>{const s=ce(e),i=y[e.align??(e.numeric?"right":"left")],a="left"===e.fixed,d=!(!e.sortable||!C);/* @__PURE__ */
5
- return h("th",{scope:"col",...Q("columnheader"),rowSpan:r>1?r:void 0,"aria-sort":"asc"===s?"ascending":"desc"===s?"descending":d?"none":void 0,style:{width:e.width,...a?{left:(Be[t]??0)+be}:{},...F?{top:l}:{}},className:[Ne,i,o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs",a?F?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":F?"sticky z-10 bg-gray-50":"",W&&d?"rosh-dt-sort":"",W?f(e):"",e.headerClassName??""].filter(Boolean).join(" "),children:Ce(e,d?/* @__PURE__ */c("button",{type:"button",onClick:()=>(e=>{if(!C)return;const t=ae(e),r=ce(e),o=e.sortFirst??"asc";C(null===r?{field:t,direction:o}:r===o?{field:t,direction:"asc"===o?"desc":"asc"}:null)})(e),"data-group":W?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
4
+ /* @__PURE__ */h("svg",{className:"h-2 w-2 "+("desc"===e?"text-gray-700":"text-gray-300"),viewBox:"0 0 8 5",fill:"currentColor",children:/* @__PURE__ */h("path",{d:"M4 5L0 0h8z"})})]})}function w(e,t=!1){const r=t?"":" whitespace-nowrap";return e.code?`font-mono${r}`:e.numeric?`tabular-nums${r}`:""}function x({columns:x,data:v,rowKey:k,sort:N=null,onSortChange:C,pagination:j,caption:M,loading:B=!1,bordered:S=!1,size:$="md",minWidth:H,rowClassName:z,onRow:T,rowHref:I,onRowPress:A,linkAs:P,emptyText:D,selection:E,footer:F,virtualized:J,stackOnNarrow:L=!1,stackBelow:O,className:R=""}){const W=s(),G=D??W.table.empty,K=(e,t)=>"function"==typeof k?k(e,t):String(e[k]),Z=L&&!J,Q=Z?x:x.flatMap(e=>{if(!m(e))return"stacked"===e.only?[]:[e];const t=e.columns.filter(e=>"stacked"!==e.only);return t.length?[{...e,columns:t}]:[]}),V=e=>Z?{role:e}:{},Y=(e,t)=>(t??("string"==typeof e||"number"==typeof e?String(e):"")).trim()||void 0,[q,U]=i(0),X=J?.overscan??6,_=J?e=>{const t=Math.max(0,Math.floor(e.currentTarget.scrollTop/J.rowHeight)-X);U(e=>e===t?e:t)}:void 0,ee=J?Math.ceil(J.height/J.rowHeight)+2*X:v.length,te=J?Math.min(q,Math.max(0,v.length-ee)):0,re=Math.min(v.length,te+ee),oe=J?te*J.rowHeight:0,ne=J?(v.length-re)*J.rowHeight:0,le=a(null),[se,ie]=i(0);l(()=>{if(!J)return;const e=le.current?.offsetHeight??0;ie(t=>t===e?t:e)});const ae=e=>e.sortField??e.key,ce=e=>N&&N.field===ae(e)?N.direction:null,de=Q.flatMap(e=>m(e)?e.columns:[e]),he=Q.some(m),ue=/* @__PURE__ */new Map;if(Z)for(const e of Q)if(m(e))for(const t of e.columns)ue.set(t,Y(e.title,e.label));const me=e=>{const t=Y(e.title,e.label),r=ue.get(e);return t&&r?`${r} · ${t}`:t},fe=new Set(E?.selected??[]),ge=E?v.map((e,t)=>K(e,t)):[],pe=ge.length>0&&ge.every(e=>fe.has(e)),ye=ge.some(e=>fe.has(e)),be=E?36:0,we=de.length+(E?1:0),xe=de.some(e=>"left"===e.fixed),ve=Z&&!E&&de.some(e=>e.cardCorner),ke=P??"a",Ne=`${p[$]} ${"sm"===$?"text-xs":"text-sm"}`,Ce=(e,t)=>e.ellipsis?/* @__PURE__ */h("span",{className:"block w-0 min-w-full",children:t}):t,je=(e,t,r,l=0)=>{const s=ce(e),i=y[e.align??(e.numeric?"right":"left")],a="left"===e.fixed,d=!(!e.sortable||!C);/* @__PURE__ */
5
+ return h("th",{scope:"col",...V("columnheader"),rowSpan:r>1?r:void 0,"aria-sort":"asc"===s?"ascending":"desc"===s?"descending":d?"none":void 0,style:{width:e.width,...a?{left:(Be[t]??0)+be}:{},...J?{top:l}:{}},className:[Ne,i,o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs",a?J?"sticky z-20 bg-gray-50":"sticky z-10 bg-gray-50":J?"sticky z-10 bg-gray-50":"",Z&&d?"rosh-dt-sort":"",Z?f(e):"",e.headerClassName??""].filter(Boolean).join(" "),children:Ce(e,d?/* @__PURE__ */c("button",{type:"button",onClick:()=>(e=>{if(!C)return;const t=ae(e),r=ce(e),o=e.sortFirst??"asc";C(null===r?{field:t,direction:o}:r===o?{field:t,direction:"asc"===o?"desc":"asc"}:null)})(e),"data-group":Z?ue.get(e):void 0,className:`inline-flex max-w-full items-center font-semibold uppercase tracking-wide hover:text-ink ${i}`,children:[
6
6
  /* @__PURE__ */h(n,{children:e.title}),
7
7
  /* @__PURE__ */h(b,{direction:s})]}):/* @__PURE__ */h(n,{children:e.title}))},e.key)};let Me=0;const Be=de.map(e=>{if("left"!==e.fixed)return null;const t=Me;return Me+=e.width??0,t}),Se=/* @__PURE__ */c(d,{children:[
8
- /* @__PURE__ */c("div",{onScroll:_,style:F?{maxHeight:F.height}:void 0,className:`relative overflow-x-auto ${F?"overflow-y-auto":""} ${S?"rounded-lg border border-gray-200":""}${W?" rosh-dt-scroll":""}`.trim(),children:[B&&
8
+ /* @__PURE__ */c("div",{onScroll:_,style:J?{maxHeight:J.height}:void 0,className:`relative overflow-x-auto ${J?"overflow-y-auto":""} ${S?"rounded-lg border border-gray-200":""}${Z?" rosh-dt-scroll":""}`.trim(),children:[B&&
9
9
  /* @__PURE__ */c("div",{className:"absolute inset-0 z-20 flex items-start justify-center bg-white/60 pt-8",role:"status","aria-live":"polite",children:[
10
10
  /* @__PURE__ */h(r,{className:"h-6 w-6"}),
11
- /* @__PURE__ */h("span",{className:"sr-only",children:R.table.loading})]}),
12
- /* @__PURE__ */c("table",{...Q("table"),className:(W?"rosh-dt-table ":"")+"w-full border-collapse tabular-nums",style:z?{minWidth:z}:void 0,children:[M&&/* @__PURE__ */h("caption",{className:"sr-only",children:M}),
13
- /* @__PURE__ */c("thead",{...Q("rowgroup"),className:W?"rosh-dt-head":void 0,children:[
14
- /* @__PURE__ */c("tr",{ref:le,...Q("row"),className:"border-b border-gray-200 bg-gray-50",children:[P&&/* @__PURE__ */h("th",{scope:"col",...Q("columnheader"),rowSpan:he?2:void 0,style:{width:36,...F?{top:0}:{}},className:[Ne,o,xe||F?"sticky z-20 bg-gray-50":"",xe?"left-0":"",W?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(t,{"aria-label":R.table.selectAll,checked:pe,indeterminate:ye&&!pe,onChange:()=>{if(!P)return;const e=new Set(ge);P.onChange(pe?P.selected.filter(t=>!e.has(t)):[...P.selected,...ge.filter(e=>!fe.has(e))])}})}),Z.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...Q("columnheader"),colSpan:e.columns.length,style:F?{top:0}:void 0,className:[Ne,"text-center",o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs","border-b border-gray-200",F?"sticky z-10 bg-gray-50":"",e.headerClassName??""].filter(Boolean).join(" "),children:/* @__PURE__ */h(n,{children:e.title})},e.key??`group-${t}`):je(e,de.indexOf(e),he?2:1))]}),he&&/* @__PURE__ */h("tr",{...Q("row"),className:"border-b border-gray-200 bg-gray-50",children:Z.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
15
- /* @__PURE__ */h("tbody",{...Q("rowgroup"),className:W?"rosh-dt-body":void 0,children:0!==v.length||B?/* @__PURE__ */c(d,{children:[oe>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:oe,padding:0,border:0}})}),v.slice(te,re).map((e,r)=>{const o=te+r,n=T?.(e,o),l=!!n?.current,s=E?.(e,o),i=void 0===s&&I?()=>I(e,o):void 0,a=void 0!==s||void 0!==i;let d=!1;const m=(e,t)=>{if(d=!0,!a)return e;const r=[g,i?"cursor-pointer text-left":"",t?.className??""].filter(Boolean).join(" "),o=l?"true":void 0;return void 0!==s?/* @__PURE__ */h(ke,{href:s,className:r,"aria-current":o,children:e}):/* @__PURE__ */h("button",{type:"button",onClick:i,className:r,"aria-current":o,children:e})},p=de.map(t=>t.render?t.render(e,o,m):t.dataIndex?e[t.dataIndex]:null);if(a&&!d){const e=de.findIndex(e=>"stacked"!==e.only&&!e.cardCorner),t=de.findIndex(e=>"wide"!==e.only&&!e.cardCorner);for(const r of/* @__PURE__ */new Set([e,t]))r>=0&&(p[r]=m(p[r]))}const b=e=>e?t=>{t.currentTarget.contains(t.relatedTarget)||e()}:void 0;/* @__PURE__ */
16
- return c("tr",{...u(n),...Q("row"),style:F?{height:F.rowHeight}:void 0,onClick:n?.onClick,onMouseEnter:n?.onMouseEnter,onMouseLeave:n?.onMouseLeave,onFocus:b(n?.onFocus),onBlur:b(n?.onBlur),"aria-current":l&&!a?"true":void 0,...n?.onClick?{tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick?.()))}}:{},className:[W?P?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",W&&ve?"rosh-dt-row-corner":"","border-b border-gray-100 last:border-b-0",n?.onClick?"cursor-pointer hover:bg-gray-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",a?"rosh-dt-linked hover:bg-gray-50":"",l?"rosh-dt-current":"",H?.(e,o)??"",n?.className??""].filter(Boolean).join(" "),children:[P&&(()=>{const r=V(e,o);/* @__PURE__ */
17
- return h("td",{...Q("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",W?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(t,{"aria-label":R.table.selectRow,checked:fe.has(r),onChange:()=>(e=>{P&&P.onChange(fe.has(e)?P.selected.filter(t=>t!==e):[...P.selected,e])})(r)})})})(),de.map((e,t)=>{const r="left"===e.fixed,o=p[t],n=ve&&!!e.cardCorner,l=W&&!n&&"wide"!==e.only;/* @__PURE__ */
18
- return h("td",{...Q("cell"),"data-label":l?me(e):void 0,style:r?{left:(Be[t]??0)+be}:void 0,className:[l?e.ellipsis?"rosh-dt-cell rosh-dt-clip":"rosh-dt-cell":"",n?"rosh-dt-corner":"",W?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],W?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:W?
19
- /* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},V(e,o))}),ne>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:ne,padding:0,border:0}})})]}):/* @__PURE__ */h("tr",{...Q("row"),className:W?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...Q("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:G})})})]}),D]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:W?"rosh-dt-pager mt-3 flex justify-end":"mt-3 flex justify-end",children:/* @__PURE__ */h(e,{page:j.page,pageCount:j.pageCount,onPageChange:j.onPageChange})})]});/* @__PURE__ */
20
- return h("div",W?void 0!==L&&L>0&&40!==L?{className:`rosh-dt-at ${O}`.trim(),children:/* @__PURE__ */h("div",{className:"rosh-dt-stack",style:{width:40/L*100+"%"},children:/* @__PURE__ */h("div",{className:"rosh-dt-fit",style:{width:L/40*100+"%"},children:Se})})}:{className:`rosh-dt-stack ${O}`.trim(),children:Se}:{className:O,children:Se})}export{x as DataTable};
11
+ /* @__PURE__ */h("span",{className:"sr-only",children:W.table.loading})]}),
12
+ /* @__PURE__ */c("table",{...V("table"),className:(Z?"rosh-dt-table ":"")+"w-full border-collapse tabular-nums",style:H?{minWidth:H}:void 0,children:[M&&/* @__PURE__ */h("caption",{className:"sr-only",children:M}),
13
+ /* @__PURE__ */c("thead",{...V("rowgroup"),className:Z?"rosh-dt-head":void 0,children:[
14
+ /* @__PURE__ */c("tr",{ref:le,...V("row"),className:"border-b border-gray-200 bg-gray-50",children:[E&&/* @__PURE__ */h("th",{scope:"col",...V("columnheader"),rowSpan:he?2:void 0,style:{width:36,...J?{top:0}:{}},className:[Ne,o,xe||J?"sticky z-20 bg-gray-50":"",xe?"left-0":"",Z?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(t,{"aria-label":W.table.selectAll,checked:pe,indeterminate:ye&&!pe,onChange:()=>{if(!E)return;const e=new Set(ge);E.onChange(pe?E.selected.filter(t=>!e.has(t)):[...E.selected,...ge.filter(e=>!fe.has(e))])}})}),Q.map((e,t)=>m(e)?/* @__PURE__ */h("th",{scope:"colgroup",...V("columnheader"),colSpan:e.columns.length,style:J?{top:0}:void 0,className:[Ne,"text-center",o,"font-semibold uppercase tracking-wide text-gray-500","sm"===$?"text-2xs":"text-xs","border-b border-gray-200",J?"sticky z-10 bg-gray-50":"",e.headerClassName??""].filter(Boolean).join(" "),children:/* @__PURE__ */h(n,{children:e.title})},e.key??`group-${t}`):je(e,de.indexOf(e),he?2:1))]}),he&&/* @__PURE__ */h("tr",{...V("row"),className:"border-b border-gray-200 bg-gray-50",children:Q.flatMap(e=>m(e)?e.columns:[]).map(e=>je(e,de.indexOf(e),1,se))})]}),
15
+ /* @__PURE__ */h("tbody",{...V("rowgroup"),className:Z?"rosh-dt-body":void 0,children:0!==v.length||B?/* @__PURE__ */c(d,{children:[oe>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:oe,padding:0,border:0}})}),v.slice(te,re).map((e,r)=>{const o=te+r,n=T?.(e,o),l=!!n?.current,s=I?.(e,o),i=void 0===s&&A?()=>A(e,o):void 0,a=void 0!==s||void 0!==i;let d=!1;const m=(e,t)=>{if(d=!0,!a)return e;const r=[g,i?"cursor-pointer text-left":"",t?.className??""].filter(Boolean).join(" "),o=l?"true":void 0;return void 0!==s?/* @__PURE__ */h(ke,{href:s,className:r,"aria-current":o,children:e}):/* @__PURE__ */h("button",{type:"button",onClick:i,className:r,"aria-current":o,children:e})},p=de.map(t=>t.render?t.render(e,o,m):t.dataIndex?e[t.dataIndex]:null);if(a&&!d){const e=de.findIndex(e=>"stacked"!==e.only&&!e.cardCorner),t=de.findIndex(e=>"wide"!==e.only&&!e.cardCorner);for(const r of/* @__PURE__ */new Set([e,t]))r>=0&&(p[r]=m(p[r]))}const b=e=>e?t=>{t.currentTarget.contains(t.relatedTarget)||e()}:void 0;/* @__PURE__ */
16
+ return c("tr",{...u(n),...V("row"),style:J?{height:J.rowHeight}:void 0,onClick:n?.onClick,onMouseEnter:n?.onMouseEnter,onMouseLeave:n?.onMouseLeave,onFocus:b(n?.onFocus),onBlur:b(n?.onBlur),"aria-current":l&&!a?"true":void 0,...n?.onClick?{tabIndex:0,onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),n.onClick?.()))}}:{},className:[Z?E?"rosh-dt-row rosh-dt-row-select":"rosh-dt-row":"",Z&&ve?"rosh-dt-row-corner":"","border-b border-gray-100 last:border-b-0",n?.onClick?"cursor-pointer hover:bg-gray-50 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[color:var(--rosh-focus-ring-solid)]":"",a?"rosh-dt-linked hover:bg-gray-50":"",l?"rosh-dt-current":"",z?.(e,o)??"",n?.className??""].filter(Boolean).join(" "),children:[E&&(()=>{const r=K(e,o);/* @__PURE__ */
17
+ return h("td",{...V("cell"),style:{width:36},onClick:e=>e.stopPropagation(),className:[Ne,xe?"sticky left-0 z-10 bg-white":"",Z?"rosh-dt-select":""].filter(Boolean).join(" "),children:/* @__PURE__ */h(t,{"aria-label":W.table.selectRow,checked:fe.has(r),onChange:()=>(e=>{E&&E.onChange(fe.has(e)?E.selected.filter(t=>t!==e):[...E.selected,e])})(r)})})})(),de.map((e,t)=>{const r="left"===e.fixed,o=p[t],n=ve&&!!e.cardCorner,l=Z&&!n&&"wide"!==e.only;/* @__PURE__ */
18
+ return h("td",{...V("cell"),"data-label":l?me(e):void 0,style:r?{left:(Be[t]??0)+be}:void 0,className:[l?e.ellipsis?"rosh-dt-cell rosh-dt-clip":"rosh-dt-cell":"",n?"rosh-dt-corner":"",Z?f(e):"",Ne,y[e.align??(e.numeric?"right":"left")],Z?"":w(e),"text-ink-strongest",e.ellipsis?"max-w-0 truncate":"",r?"sticky z-10 bg-white":"",e.className??""].filter(Boolean).join(" "),children:Z?
19
+ /* @__PURE__ */h("span",{className:["rosh-dt-value",w(e,!0)].filter(Boolean).join(" "),children:o}):o},e.key)})]},K(e,o))}),ne>0&&/* @__PURE__ */h("tr",{"aria-hidden":"true",children:/* @__PURE__ */h("td",{colSpan:we,style:{height:ne,padding:0,border:0}})})]}):/* @__PURE__ */h("tr",{...V("row"),className:Z?"rosh-dt-empty":void 0,children:/* @__PURE__ */h("td",{...V("cell"),colSpan:we,className:`${Ne} py-10 text-center text-gray-500`,children:G})})})]}),F]}),j&&j.pageCount>1&&/* @__PURE__ */h("div",{className:Z?"rosh-dt-pager mt-3 flex justify-end":"mt-3 flex justify-end",children:/* @__PURE__ */h(e,{page:j.page,pageCount:j.pageCount,onPageChange:j.onPageChange})})]});/* @__PURE__ */
20
+ return h("div",Z?void 0!==O&&O>0&&40!==O?{className:`rosh-dt-at ${R}`.trim(),children:/* @__PURE__ */h("div",{className:"rosh-dt-stack",style:{width:40/O*100+"%"},children:/* @__PURE__ */h("div",{className:"rosh-dt-fit",style:{width:O/40*100+"%"},children:Se})})}:{className:`rosh-dt-stack ${R}`.trim(),children:Se}:{className:R,children:Se})}export{x as DataTable};
@@ -0,0 +1,5 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M2.25 8.25L4.5 8.25M2.25 15.75L4.5 15.75"}),
4
+ /* @__PURE__ */e("path",{d:"M3 12L9 12M6.75 9.75L9 12L6.75 14.25"}),
5
+ /* @__PURE__ */e("path",{d:"M14.25 7.5h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"})]})}export{t as EntranceGlideIcon};
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...h}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...h,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M14.25,6.75h6c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v6c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-6c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-6c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM1.5,8.25c0,-0.41421 0.33579,-0.75 0.75,-0.75h2.25c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-2.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM1.5,15.75c0,-0.41421 0.33579,-0.75 0.75,-0.75h2.25c0.41421,0 0.75,0.33579 0.75,0.75c0,0.41421 -0.33579,0.75 -0.75,0.75h-2.25c-0.41421,0 -0.75,-0.33579 -0.75,-0.75zM2.25,12c0,-0.41421 0.33579,-0.75 0.75,-0.75h4.18934l-0.96967,-0.96967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l2.25,2.25c0.07191,0.07191 0.12616,0.15478 0.16276,0.24324c0.03667,0.08843 0.05691,0.1854 0.05691,0.28709c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324l-2.25,2.25c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l0.96967,-0.96967h-4.18934c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{e as EntranceGlideSolidIcon};
@@ -0,0 +1,4 @@
1
+ import{jsxs as r,jsx as e}from"react/jsx-runtime";function t({size:t=18,...i}){/* @__PURE__ */
2
+ return r("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:[
3
+ /* @__PURE__ */e("path",{d:"M9 2.25h6a1.5 1.5 0 0 1 1.5 1.5v6a1.5 1.5 0 0 1 -1.5 1.5h-6a1.5 1.5 0 0 1 -1.5 -1.5v-6a1.5 1.5 0 0 1 1.5 -1.5Z"}),
4
+ /* @__PURE__ */e("path",{d:"M12 21.75L12 14.25M9.75 16.5L12 14.25L14.25 16.5"})]})}export{t as EntranceRiseIcon};
@@ -0,0 +1,22 @@
1
+ import{ChartBrush as t}from"./chunk-TU2L7NW3.js";import{ChartDot as e}from"./chunk-CK2YOGUS.js";import{stepPath as a,curvePath as r,areaBetween as o,areaFrom as l}from"./chunk-VFC6QUEN.js";import{ChartDefs as n,MOTION as i,stagger as s,fillFor as c,dashFor as d,maskId as m}from"./chunk-465RRWBY.js";import{ChartSkeleton as h}from"./chunk-WXZZGHET.js";import{useHighlight as u,highlightOpacity as f}from"./chunk-CNYAHYE6.js";import{useDragZoom as p,DragBand as g,ChartZoomSummary as y,tooltipBesideBand as k}from"./chunk-2DYVVHZA.js";import{usePlotWidth as x}from"./chunk-MAFUXCPZ.js";import{pairedAxes as v,niceAxis as b,niceMax as M,linearScale as N,axisGutter as w,bandScale as j,ladderScale as $}from"./chunk-2JWPNR2U.js";import{ChartTooltip as V}from"./chunk-WDQI3FV6.js";import{resolveSeriesColor as A,CHART_INK as W,STATUS_VARS as z}from"./chunk-TZFACUMR.js";import{registerModalEscapeInterceptor as L}from"./chunk-TWVUQUUD.js";import{useShellStrings as S,useShellLocale as D}from"./chunk-JSHMIMAJ.js";import{formatPercent as E,formatPlain as R}from"./chunk-C3QOHMR6.js";import{useRef as C,useState as T,useId as U,useEffect as I}from"react";import{jsx as P,jsxs as F}from"react/jsx-runtime";var H=12,O=16,Y=26,Z=52,B=t=>"number"==typeof t&&Number.isFinite(t);function Q({series:Q,labels:J,height:G=200,stacked:K=!1,stackMode:X="value",levels:q,curve:_="linear",tension:tt=0,max:et,yTickCount:at=4,formatValue:rt,formatTooltipValue:ot,tooltipLabels:lt,yAxisLabel:nt,referenceLines:it,labelEndpoints:st=!1,dots:ct,dotVariant:dt="border",pulse:mt=!1,brush:ht=!1,range:ut,onRangeChange:ft,zoomable:pt=!0,columnStrip:gt,onSelect:yt,loading:kt=!1,animate:xt=!0,reveal:vt="left-to-right",fillVariant:bt="gradient",gridStyle:Mt="solid",width:Nt,className:wt,emptyLabel:jt}){const $t=S().charts,Vt=D(),At=rt??(t=>R(t,Vt)),Wt=ot??At,zt=jt??$t.noData,Lt=C(null),St=x(Lt),Dt=Nt??St,[Et,Rt]=T(null),[Ct,Tt]=T(null),{highlighted:Ut}=u(),It=U(),Pt=ut??Ct,Ft=p(ht&&Pt?Pt[1]-Pt[0]+1:J.length,pt);if(I(()=>{if(null!==Et)return L(t=>"Escape"===t.key&&(Rt(null),!0))},[Et]),kt)/* @__PURE__ */
2
+ return P("div",{className:wt,ref:Lt,children:/* @__PURE__ */P(h,{height:G,width:Nt??St})});const Ht=J,Ot=ut??Ct??[0,Math.max(0,Ht.length-1)],[Yt,Zt]=Ot,Bt=t=>Ft.slice(ht?t.slice(Yt,Zt+1):t),Qt=lt?Bt(lt):void 0,Jt=Q.map((t,e)=>({...t,slot:e})).filter(t=>t.data.some(B)).map(t=>({...t,data:Bt(t.data),pointTones:t.pointTones?Bt(t.pointTones):void 0})),Gt=t=>(ht?Yt:0)+(Ft.view?.[0]??0)+t;if(J=Bt(Ht),0===Jt.length||0===J.length)/* @__PURE__ */
3
+ return P("div",{className:wt,ref:Lt,children:/* @__PURE__ */P("p",{className:"flex items-center justify-center text-sm text-gray-500",style:{height:G},children:zt})});const Kt=J.map((t,e)=>Jt.reduce((t,a)=>t+(B(a.data[e])?a.data[e]:0),0)),Xt=(t,e)=>Kt[e]>0?t/Kt[e]:null,qt=[];if(K){let t=J.map(()=>0);for(const e of Jt)t=t.map((t,a)=>t+(B(e.data[a])?e.data[a]:0)),qt.push("percent"===X?t.map((t,e)=>Xt(t,e)):[...t])}const _t=!!q&&q.length>0,te=t=>"right"===t.axis,ee=!K&&!_t&&void 0===et&&Jt.some(te)&&Jt.some(t=>!te(t)),ae=gt&&!K?gt:null,re=t=>!!ae&&"column"===t.mode,oe=(ee?Jt.filter(t=>!te(t)):Jt).filter(t=>!re(t)),le=ee?Jt.filter(te).flatMap(t=>t.data.filter(B)):[],ne=K?(qt.at(-1)??[]).filter(B):oe.flatMap(t=>t.data.filter(B)),ie=ee?v([Math.min(0,...ne),Math.max(0,...ne)],[Math.min(0,...le),Math.max(0,...le)],{intervals:at+1,integerLeft:ne.every(Number.isInteger),integerRight:le.every(Number.isInteger)}):null,se=ie?ie.left:K&&"percent"===X||_t||void 0!==et?null:b(K?0:Math.min(0,...ne),Math.max(0,...ne),{intervals:at+1,integer:ne.every(Number.isInteger)}),ce=se?se.lo:0,de=K&&"percent"===X?1:se?se.hi:et??M(Math.max(...ne,0)),me=K&&"percent"===X?t=>E(Math.round(100*t),0,Vt):At,he=_t?q:se?se.ticks:N([ce,de],{from:0,to:1}).ticks(at+1),ue=w(he.map(me),Z),fe=ie?w(ie.right.ticks.map(At),O):O,pe={left:ue,right:Math.max(ue+1,Dt-fe),top:H,bottom:G-Y},ge=j(J.length,{from:pe.left,to:pe.right}),ye=_t?$(q,{from:pe.bottom,to:pe.top}):null,ke=N([ce,de],{from:pe.bottom,to:pe.top}),xe=ke(Math.max(ce,0)),ve=t=>ye?ye(t):ke(t),be=Jt.filter(re),Me=Math.max(0,...J.map((t,e)=>be.reduce((t,a)=>t+Math.max(0,B(a.data[e])?a.data[e]:0),0))),Ne=t=>xe-(Me>0?t/Me:0)*(pe.bottom-pe.top)*(ae??0),we=ie?N([ie.right.lo,ie.right.hi],{from:pe.bottom,to:pe.top}):null,je=t=>we&&te(t)?we:ve,$e=ye?ye.levels.map(t=>({value:t,y:ye(t)})):he.map(t=>({value:t,y:ke(t)})),Ve=t=>e=>{e.preventDefault(),Rt(e=>{const a=(e??0)+t;return Math.min(J.length-1,Math.max(0,a))})},Ae=Math.max(1,Math.ceil(J.length/Math.max(1,Math.floor(Dt/96))));/* @__PURE__ */
4
+ return F("div",{className:`relative ${wt??""}`,ref:Lt,children:[
5
+ /* @__PURE__ */F("svg",{width:"100%",height:G,viewBox:`0 0 ${Dt} ${G}`,role:"img","aria-label":$t.overIntervals(Jt.map(t=>t.label),J.length),tabIndex:0,className:"rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-deep)]",onMouseLeave:()=>Rt(null),onBlur:()=>Rt(null),style:pt?{userSelect:"none",touchAction:"pan-y"}:void 0,onKeyDown:t=>{if(yt&&null!==Et&&("Enter"===t.key||" "===t.key))return t.preventDefault(),void yt(Gt(Et));"ArrowRight"===t.key&&Ve(1)(t),"ArrowLeft"===t.key&&Ve(-1)(t)},children:[
6
+ /* @__PURE__ */P("defs",{children:/* @__PURE__ */P("clipPath",{id:It,children:/* @__PURE__ */P("rect",{x:pe.left,y:pe.top,width:pe.right-pe.left,height:pe.bottom-pe.top})})}),
7
+ /* @__PURE__ */P(n,{id:It,fills:Jt.map((t,e)=>({color:A(t.slot,t.color,t.tone),variant:t.fillVariant??bt})),fadeFrom:K?.42:.3,reveal:!!xt&&vt}),$e.map(t=>/* @__PURE__ */P("line",{x1:pe.left,y1:t.y,x2:pe.right,y2:t.y,stroke:W.grid,strokeWidth:1,shapeRendering:"crispEdges",strokeDasharray:"dashed"===Mt?"3 3":void 0},`grid-${t.value}`)),
8
+ /* @__PURE__ */P("line",{x1:pe.left,y1:xe,x2:pe.right,y2:xe,stroke:W.axis,strokeWidth:1,shapeRendering:"crispEdges"}),$e.map(t=>/* @__PURE__ */P("text",{x:pe.left-8,y:t.y+4,textAnchor:"end","data-axis-tick":"true",fontSize:11,fill:W.label,style:{fontVariantNumeric:"tabular-nums"},children:me(t.value)},`ytick-${t.value}`)),ie&&$e.map((t,e)=>/* @__PURE__ */P("text",{x:pe.right+8,y:t.y+4,textAnchor:"start","data-axis-tick":"true",fontSize:11,fill:W.label,style:{fontVariantNumeric:"tabular-nums"},children:At(ie.right.ticks[e])},`ytick-r-${t.value}`)),nt&&/* @__PURE__ */P("text",{x:12,y:(pe.top+pe.bottom)/2,transform:`rotate(-90 12 ${(pe.top+pe.bottom)/2})`,textAnchor:"middle",fontSize:11,fill:W.label,children:nt}),
9
+ /* @__PURE__ */P("g",{clipPath:`url(#${It})`,mask:xt&&vt?`url(#${m(It)})`:void 0,children:Jt.map((t,e)=>{const n=A(t.slot,t.color,t.tone),m=t.mode??(K?"area":"line"),h=f(t.key,Ut);if("step"===m){const e=J.map((e,a)=>({start:ge(a),end:ge.end(a),value:t.data[a]})).filter(t=>B(t.value)).map(e=>({start:e.start,end:e.end,y:je(t)(e.value)}));/* @__PURE__ */
10
+ return P("path",{d:a(e),fill:"none",stroke:n,strokeWidth:2.5,strokeLinecap:"butt",strokeLinejoin:"miter",opacity:h??void 0,className:"rosh-viz-mark"},t.key)}const u=J.map((a,r)=>{const o=K?qt[e]?.[r]:t.data[r];return B(o)?[ge.center(r),je(t)(o)]:null}).filter(t=>null!==t);if(0===u.length)return null;if("column"===m){const a=Math.max(1,.62*ge.bandwidth),r="solid"===t.fillVariant,o=je(t);return re(t)?/* @__PURE__ */P("g",{opacity:h??void 0,className:"rosh-viz-mark",children:J.map((o,l)=>{const i=t.data[l];if(!B(i)||i<=0)return null;const s=((t,e)=>be.slice(0,be.findIndex(e=>e.key===Jt[t]?.key)).reduce((t,a)=>t+Math.max(0,B(a.data[e])?a.data[e]:0),0))(e,l),c=Ne(s+i),d=Ne(s)-(s>0?1:0);/* @__PURE__ */
11
+ return P("rect",{x:ge.center(l)-a/2,y:c,width:a,height:Math.max(0,d-c),rx:2,fill:t.pointTones?.[l]?z[t.pointTones[l]]:n,fillOpacity:r?1:.55},l)})},t.key):/* @__PURE__ */P("g",{opacity:h??void 0,className:"rosh-viz-mark",children:J.map((l,c)=>{const d=K?qt[e]?.[c]:t.data[c];if(!B(d))return null;const m=o(d);/* @__PURE__ */
12
+ return P("rect",{x:ge.center(c)-a/2,y:Math.min(m,xe),width:a,height:Math.abs(xe-m),rx:2,fill:n,fillOpacity:r?1:.35,className:xt?i.rise:void 0,style:xt?s(c,26):void 0},c)})},t.key)}const p=r(u,_,tt),g=K&&e>0?J.map((t,a)=>[ge.center(a),ve(qt[e-1]?.[a]??0)-2]):null,y=g?o(p,g):l(p,u,xe);/* @__PURE__ */
13
+ return F("g",{opacity:h??void 0,className:"rosh-viz-mark",children:[("area"===m||K)&&
14
+ /* @__PURE__ */P("path",{d:y,fill:c(It,e,t.fillVariant??bt,n),stroke:"none"}),
15
+ /* @__PURE__ */P("path",{d:p,fill:"none",stroke:n,strokeWidth:2,strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:d(t.stroke??(t.forecast?"animated-dashed":"solid")),className:xt&&("animated-dashed"===t.stroke||t.forecast&&!t.stroke)?i.march:void 0})]},t.key)})}),it?.map((t,e)=>{const a=t.color??z[t.tone??"critical"],r=ve(t.value);/* @__PURE__ */
16
+ return F("g",{children:[
17
+ /* @__PURE__ */P("line",{x1:pe.left,y1:r,x2:pe.right,y2:r,stroke:a,strokeWidth:1,strokeDasharray:"5 4"}),t.label&&/* @__PURE__ */P("text",{x:pe.right-4,y:r-5,textAnchor:"end",fontSize:11,fontWeight:600,fill:a,children:t.label})]},`rule-${e}`)}),"none"!==(ct??(st?"last":"none"))&&Jt.map((t,a)=>{if("column"===t.mode)return null;const r=ct??(st?"last":"none"),o=A(t.slot,t.color,t.tone),l=[...t.data].map(B).lastIndexOf(!0),n="all"===r?J.map((t,e)=>e).filter(e=>B(K?qt[a]?.[e]:t.data[e])):l>=0?[l]:[];/* @__PURE__ */
18
+ return F("g",{children:[n.map(r=>{const n=K?qt[a]?.[r]:t.data[r];return B(n)?/* @__PURE__ */P(e,{cx:ge.center(r),cy:je(t)(n),color:o,variant:dt,pulse:mt&&r===l,title:`${J[r]}: ${t.label} ${At(n)}`},r):null}),st&&l>=0&&B(K?qt[a]?.[l]:t.data[l])&&/* @__PURE__ */P("text",{x:ge.center(l)-10,y:je(t)(K?qt[a]?.[l]:t.data[l])-9,textAnchor:"end",fontSize:12,fontWeight:600,fill:W.label,style:{fontVariantNumeric:"tabular-nums"},children:At(K?qt[a]?.[l]:t.data[l])})]},`dots-${t.key}`)}),J.map((t,e)=>e%Ae===0?/* @__PURE__ */P("text",{x:ge.center(e),y:G-8,textAnchor:"middle",fontSize:11,fill:W.label,style:{fontVariantNumeric:"tabular-nums"},children:t},`xtick-${e}`):null),null!==Et&&/* @__PURE__ */P("line",{x1:ge.center(Et),y1:pe.top,x2:ge.center(Et),y2:pe.bottom,stroke:W.axis,strokeWidth:1}),ae&&Me>0&&
19
+ /* @__PURE__ */F("g",{pointerEvents:"none","data-column-strip":"true",children:[
20
+ /* @__PURE__ */P("line",{x1:pe.left,y1:Ne(Me),x2:pe.right,y2:Ne(Me),stroke:W.grid,strokeWidth:1,strokeDasharray:"2 3",shapeRendering:"crispEdges"}),
21
+ /* @__PURE__ */P("text",{x:pe.left+4,y:Ne(Me)-4,fontSize:11,fill:W.label,style:{fontVariantNumeric:"tabular-nums"},children:At(Me)})]}),Ft.drag&&/* @__PURE__ */P(g,{x0:ge(Ft.drag[0]),x1:ge(Ft.drag[1])+ge.bandwidth,top:pe.top,bottom:pe.bottom}),J.map((t,e)=>/* @__PURE__ */P("rect",{x:ge(e),y:pe.top,width:Math.max(1,ge.bandwidth),height:pe.bottom-pe.top,fill:"transparent",onMouseEnter:()=>Rt(e),onPointerDown:()=>Ft.press(e),onPointerEnter:()=>Ft.over(e),onPointerUp:Ft.release,onClick:yt?()=>yt(Gt(e)):void 0,style:yt?{cursor:"pointer"}:void 0},`hit-${e}`))]}),Ft.view&&/* @__PURE__ */P(y,{from:Qt?.[0]??J[0],to:Qt?.at(-1)??J[J.length-1],count:J.length,total:K&&"percent"!==X?Wt(Kt.reduce((t,e)=>t+e,0)):ae?Wt(be.reduce((t,e)=>t+e.data.filter(B).reduce((t,e)=>t+e,0),0)):void 0,rows:(ae?be:Jt).filter(t=>t.data.some(B)).map(t=>{const e=t.data.filter(B),a=A(t.slot,t.color,t.tone);if(0===e.length)return{key:t.key,label:t.label,color:a,value:"—"};const r=e.reduce((t,e)=>t+e,0),o=K||"column"===t.mode?Wt(r):$t.zoomLevel(Wt(r/e.length),Wt(Math.max(...e)));return{key:t.key,label:t.label,color:a,value:o}}),onClear:Ft.clear}),ht&&Ht.length>2&&/* @__PURE__ */P(t,{className:"mt-1",labels:Ht,width:Dt,data:Q[0]?.data??[],range:Ot,onRangeChange:t=>{ft?ft(t):Tt(t)}}),null!==Et&&
22
+ /* @__PURE__ */P("div",{className:"pointer-events-none absolute top-2 z-10",style:k(ge.center(Et),ge.bandwidth,Dt),children:/* @__PURE__ */P(V,{title:Qt?.[Et]??J[Et],rows:Jt.map((t,e)=>({key:t.key,label:t.label,color:A(t.slot,t.color,t.tone),value:B(t.data[Et])?K&&"percent"===X?`${E(100*(Xt(t.data[Et],Et)??0),1,Vt)} · ${Wt(t.data[Et])}`:Wt(t.data[Et]):void 0})),footnote:K&&"percent"===X?$t.inBucket(Wt(Kt[Et])):void 0})})]})}export{Q as TimeSeriesChart};
@@ -1,4 +1,4 @@
1
- import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{Icon as n}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-TJSJVC6P.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
1
+ import{isSafeLinkHref as e}from"./chunk-Q5Z3KHT2.js";import{Button_default as t}from"./chunk-EVYD6UFQ.js";import{Icon as n}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-JSHMIMAJ.js";import{createContext as l,useContext as s}from"react";import{jsx as a,jsxs as i}from"react/jsx-runtime";var c=/!\[([^\]]*)\]\(([^)]+)\)|\[([^\]]+)\]\(([^)]+)\)|\*\*([^*]+)\*\*|`([^`]+)`|\*([^*]+)\*/g,o=l(void 0);function d({href:t,children:n}){const r=s(o),l=(t=>e(t.trim()))(t)?t:void 0;/* @__PURE__ */
2
2
  return a("a",{href:l,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",onClick:l&&r?e=>{(e=>!(0!==e.button||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))(e)&&r(l)&&e.preventDefault()}:void 0,children:n})}function u(e){const t=[];let n,r=0,l=0;const s=new RegExp(c.source,"g");for(;null!==(n=s.exec(e));)n.index>r&&t.push(e.slice(r,n.index)),void 0!==n[1]?t.push(
3
3
  /* @__PURE__ */i("span",{className:"text-gray-400",children:["[",n[1],"]"]},l++)):void 0!==n[3]?t.push(
4
4
  /* @__PURE__ */a(d,{href:n[4],children:n[3]},l++)):void 0!==n[5]?t.push(
@@ -0,0 +1,2 @@
1
+ import{jsx as c}from"react/jsx-runtime";function e({size:e=18,...h}){/* @__PURE__ */
2
+ return c("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",...h,children:/* @__PURE__ */c("path",{fillRule:"evenodd",d:"M3.75,5.25h1.5c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v4.5c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-1.5c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-4.5c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM11.25,5.25h1.5c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v4.5c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-1.5c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-4.5c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM18.75,5.25h1.5c0.56745,0.03274 1.22503,0.29305 1.59099,0.65901c0.36596,0.36596 0.62627,1.02354 0.65901,1.59099v4.5c-0.03274,0.56745 -0.29305,1.22503 -0.65901,1.59099c-0.36596,0.36596 -1.02354,0.62627 -1.59099,0.65901h-1.5c-0.56745,-0.03274 -1.22503,-0.29305 -1.59099,-0.65901c-0.36596,-0.36596 -0.62627,-1.02354 -0.65901,-1.59099v-4.5c0.03274,-0.56745 0.29305,-1.22503 0.65901,-1.59099c0.36596,-0.36596 1.02354,-0.62627 1.59099,-0.65901zM6.75,18c0,-0.41421 0.33579,-0.75 0.75,-0.75l7.18934,0l-0.96967,-0.96967c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066c0.29289,-0.29289 0.76777,-0.29289 1.06066,0l2.25,2.25c0.07191,0.07191 0.12616,0.15478 0.16276,0.24324c0.03667,0.08843 0.05691,0.1854 0.05691,0.28709c0,0.10169 -0.02024,0.19866 -0.05691,0.28709c-0.0366,0.08846 -0.09085,0.17134 -0.16276,0.24324l-2.25,2.25c-0.29289,0.29289 -0.76777,0.29289 -1.06066,0c-0.29289,-0.29289 -0.29289,-0.76777 0,-1.06066l0.96967,-0.96967h-7.18934c-0.41421,0 -0.75,-0.33579 -0.75,-0.75z"})})}export{e as LoopMarqueeSolidIcon};
@@ -1,4 +1,4 @@
1
- import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-TJSJVC6P.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";var s={success:"success",error:"error",warning:"warning",info:"info",404:"info",403:"warning",500:"error"},c={success:"text-green-600 bg-green-100",error:"text-red-600 bg-red-100",warning:"text-amber-600 bg-amber-100",info:"text-blue-600 bg-blue-100"},a={404:e=>e.notFound,403:e=>e.noAccess,500:e=>e.serverError};function i({tone:r}){const t={className:"h-6 w-6",strokeWidth:1.5,"aria-hidden":!0};switch(r){case"success":/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-JSHMIMAJ.js";import{jsxs as t,jsx as n}from"react/jsx-runtime";var s={success:"success",error:"error",warning:"warning",info:"info",404:"info",403:"warning",500:"error"},c={success:"text-green-600 bg-green-100",error:"text-red-600 bg-red-100",warning:"text-amber-600 bg-amber-100",info:"text-blue-600 bg-blue-100"},a={404:e=>e.notFound,403:e=>e.noAccess,500:e=>e.serverError};function i({tone:r}){const t={className:"h-6 w-6",strokeWidth:1.5,"aria-hidden":!0};switch(r){case"success":/* @__PURE__ */
2
2
  return n(e,{name:"check",...t});case"error":/* @__PURE__ */
3
3
  return n(e,{name:"close",...t});case"warning":/* @__PURE__ */
4
4
  return n(e,{name:"error",...t});default:/* @__PURE__ */
@@ -1 +1 @@
1
- import{toast_default as t}from"./chunk-JTZVUO3I.js";import{currentShellStrings as e}from"./chunk-TJSJVC6P.js";function n(t){let e=null;try{e=window.getSelection()}catch{return null}if(!e||0===e.rangeCount||e.isCollapsed)return null;const n=t;if(n&&"number"==typeof n.nodeType){let t=!1;for(let r=0;r<e.rangeCount&&!t;r++)t=e.getRangeAt(r).intersectsNode(n);if(!t)return null}const r=e.toString();if(!r.trim())return null;const o=document.createElement("div");for(let t=0;t<e.rangeCount;t++)o.appendChild(e.getRangeAt(t).cloneContents());return{text:r,html:o.innerHTML}}async function r(t,e){try{if(e&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(t),!0}catch{}const n=n=>{n.clipboardData?.setData("text/plain",t),e&&n.clipboardData?.setData("text/html",e),n.preventDefault()},r=document.createElement("textarea");r.value=t,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.addEventListener("copy",n);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",n),r.remove()}}async function o(n,o,a){const i=await r(o,a),l=e().copy;return i?t.success(l.copiedLabel(n)):t.error(l.failed),i}export{o as copyToClipboard,n as selectionAt,r as writeClipboard};
1
+ import{toast_default as t}from"./chunk-3YBXA72C.js";import{currentShellStrings as e}from"./chunk-JSHMIMAJ.js";function n(t){let e=null;try{e=window.getSelection()}catch{return null}if(!e||0===e.rangeCount||e.isCollapsed)return null;const n=t;if(n&&"number"==typeof n.nodeType){let t=!1;for(let r=0;r<e.rangeCount&&!t;r++)t=e.getRangeAt(r).intersectsNode(n);if(!t)return null}const r=e.toString();if(!r.trim())return null;const o=document.createElement("div");for(let t=0;t<e.rangeCount;t++)o.appendChild(e.getRangeAt(t).cloneContents());return{text:r,html:o.innerHTML}}async function r(t,e){try{if(e&&"undefined"!=typeof ClipboardItem&&navigator.clipboard?.write)return await navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([t],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})})]),!0;if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(t),!0}catch{}const n=n=>{n.clipboardData?.setData("text/plain",t),e&&n.clipboardData?.setData("text/html",e),n.preventDefault()},r=document.createElement("textarea");r.value=t,r.style.position="fixed",r.style.opacity="0",document.body.appendChild(r),r.select(),document.addEventListener("copy",n);try{return document.execCommand("copy")}catch{return!1}finally{document.removeEventListener("copy",n),r.remove()}}async function o(n,o,a){const i=await r(o,a),l=e().copy;return i?t.success(l.copiedLabel(n)):t.error(l.failed),i}export{o as copyToClipboard,n as selectionAt,r as writeClipboard};
@@ -1,4 +1,4 @@
1
- import{useWindowMenuItem as e,Modal as t}from"./chunk-AG6Y62TP.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-4WWK6FHD.js";import{Icon as s}from"./chunk-JOAKKXTL.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-TJSJVC6P.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,A]=a(b.partOf);/* @__PURE__ */
1
+ import{useWindowMenuItem as e,Modal as t}from"./chunk-TKPUYQ3Q.js";import{navIcons as r}from"./chunk-4LXCCZDM.js";import{VERSION as n}from"./chunk-3W4JUMFI.js";import{Icon as s}from"./chunk-JOAKKXTL.js";import{DEFAULT_SHELL_STRINGS as i,useShellStrings as o,splitAround as a}from"./chunk-JSHMIMAJ.js";import{useState as l,useCallback as m,isValidElement as c,cloneElement as p}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";var h=i.aboutApp,x={notepad:{name:"Notepad",version:"1.1.0",route:"/notepad",description:h.notepad},preview:{name:"Preview",version:"1.4.3",route:"/preview",description:h.preview},files:{name:"Files",version:"2.0.0",route:"/files",description:h.files},browser:{name:"Browser",version:"1.0.3",route:"/browser",description:h.browser}},u=/* @__PURE__ */d(s,{name:"info",className:"h-4 w-4",strokeWidth:1.5}),w=/* @__PURE__ */d(s,{name:"window",className:"h-9 w-9",strokeWidth:1.5});function v({app:s}){const i=x[s],[h,v]=l(!1),N=m(()=>v(!0),[]),b=o().aboutApp,k=b.title(i.name);if(e(k,N,u),!h)return null;const g=r[i.route],y=c(g)?p(g,{className:"h-9 w-9"}):w,[j,A]=a(b.partOf);/* @__PURE__ */
2
2
  return d(t,{open:!0,onClose:()=>v(!1),title:k,size:"sm",compact:!0,bodyScroll:!1,autoHeight:!0,dimensions:[320,320],children:/* @__PURE__ */f("div",{className:"flex flex-col items-center text-center px-5 pt-5 pb-4",children:[
3
3
  /* @__PURE__ */d("div",{className:"flex h-16 w-16 items-center justify-center rounded-2xl bg-gray-100 text-gray-600 shrink-0",children:y}),
4
4
  /* @__PURE__ */d("h2",{className:"mt-3 text-lg font-bold text-gray-900",children:i.name}),
@@ -0,0 +1,9 @@
1
+ import{useOverlayTarget as e,usePopupAnchor as t,usePopupLevel as r,usePopupLevelBindings as i,windowScrimStyle as o,OverlayLayerProvider as n,scrimHasCorners as l,popupLayerStyle as s}from"./chunk-RIG5FEVS.js";import{useDiscardGuard as a}from"./chunk-2VFSYSDS.js";import{dialogA11y as d}from"./chunk-VWGWZY7A.js";import{useDismissPopupsOnOpen as c}from"./chunk-7QSDPSXP.js";import{useFocusTrap as m,useScrollLock as h}from"./chunk-DWGYC7OD.js";import{Icon as u}from"./chunk-JOAKKXTL.js";import{useHydrated as p}from"./chunk-D65T4H6J.js";import{registerModalEscapeInterceptor as f}from"./chunk-TWVUQUUD.js";import{useShellStrings as b}from"./chunk-JSHMIMAJ.js";import{useRef as g,useId as x,useState as y,useEffect as v}from"react";import{createPortal as w}from"react-dom";import{jsxs as k,Fragment as N,jsx as j}from"react/jsx-runtime";var C={sm:"sm:w-[320px]",md:"sm:w-[448px]",lg:"sm:w-[640px]"},S={right:"inset-y-0 right-0",left:"inset-y-0 left-0",bottom:"inset-x-0 bottom-0"};function D(e,t){const r=window.innerHeight-(t.top+t.height);if("bottom"===e)return{left:t.left,width:t.width,bottom:r};const i={top:t.top,height:t.height};return"left"===e?{...i,left:t.left}:{...i,right:window.innerWidth-(t.left+t.width)}}function W({onClose:e}){const t=b().dialog;/* @__PURE__ */
2
+ return j("button",{type:"button",onClick:e,"aria-label":t.close,className:"rounded-(--radius-control) p-1 text-gray-400 hover:bg-gray-100 hover:text-gray-600 rosh-focus-ring focus-visible:ring-2 focus-visible:ring-[color:var(--rosh-focus-ring-solid)]",children:/* @__PURE__ */j(u,{name:"close",className:"h-5 w-5",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true"})})}function H({open:u,onClose:b,side:H="right",size:J="md",title:V,description:A,footer:F,children:G,blocking:I=!1,dirty:T=!1,initialFocus:U,"aria-label":Y,"aria-labelledby":z,"aria-describedby":B,className:E=""}){const K=g(null),L=x(),M=x(),O=x(),P=e(p()),[Q,X]=y(null),R=a({open:u,dirty:T,onClose:b,title:V,layer:Q}),Z=g(null),$=t(u&&null!==P,Z),q=r(u&&null!==P,Z),_=i(q,Q),ee=o(q),te=null!==q.host;if(c(u),m(K,u&&null!==P,U,_),h(u),v(()=>{if(u)return f(()=>!_.current?.(document.activeElement)&&(I||R(),!0),()=>K.current)},[u,I,R,_]),!u||!P)return null;const re="bottom"===H,ie={...re?{maxHeight:"85vh"}:{},...$?D(H,$):{}};/* @__PURE__ */
3
+ return k(N,{children:[/* @__PURE__ */j("span",{ref:Z,hidden:!0,"data-popup-anchor":""}),w(
4
+ /* @__PURE__ */j(n,{value:Q,children:/* @__PURE__ */k("div",{ref:X,className:te?"fixed inset-0 pointer-events-none":"fixed inset-0",style:s(q),role:"presentation","data-overlay-layer":"",children:[
5
+ /* @__PURE__ */j("div",{className:"fixed bg-black/30 backdrop-blur-sm "+(te?"pointer-events-auto"+(l(q)?" rounded-(--radius-window)":""):"inset-0"),style:ee??void 0,hidden:te&&!ee,onClick:I?void 0:R,"aria-hidden":"true","data-popup-scrim":te?"window":"system"}),
6
+ /* @__PURE__ */k("div",{ref:K,...d({modal:!0,titleId:V?O:void 0,labelledBy:z,label:Y}),"aria-describedby":B??(A?M:G?L:void 0),"data-drawer-side":H,"data-popup-panel":"",style:ie,className:["fixed flex flex-col bg-white shadow-xl",te?"pointer-events-auto":"",re?"":`w-full max-w-full ${C[J]}`,$?"":S[H],re?"rounded-t-xl":"",E].filter(Boolean).join(" "),children:[V?/* @__PURE__ */k("div",{className:"flex shrink-0 items-center justify-between gap-4 border-b border-gray-100 px-4 py-3",children:[
7
+ /* @__PURE__ */k("div",{className:"min-w-0",children:[
8
+ /* @__PURE__ */j("h2",{id:O,className:"text-base font-semibold text-gray-900",children:V}),A&&/* @__PURE__ */j("p",{id:M,className:"mt-0.5 text-sm text-gray-500",children:A})]}),!I&&/* @__PURE__ */j(W,{onClose:R})]}):!I&&/* @__PURE__ */j("div",{className:"absolute right-2 top-2 z-10",children:/* @__PURE__ */j(W,{onClose:R})}),
9
+ /* @__PURE__ */k("div",{id:L,className:"min-h-0 flex-1 overflow-y-auto px-4 py-4",children:[A&&!V&&/* @__PURE__ */j("p",{id:M,className:("mb-3 text-sm text-gray-500 "+(I?"":"pr-8")).trim(),children:A}),G]}),F&&/* @__PURE__ */j("div",{className:"flex shrink-0 justify-end gap-3 border-t border-gray-100 px-4 py-3",children:F})]})]})}),P)]})}export{H as Drawer};
@@ -1,4 +1,4 @@
1
- import{TICK_INK as e}from"./chunk-URBCGEXG.js";import{useShellStrings as n}from"./chunk-TJSJVC6P.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";function a({ink:e}){/* @__PURE__ */
1
+ import{TICK_INK as e}from"./chunk-URBCGEXG.js";import{useShellStrings as n}from"./chunk-JSHMIMAJ.js";import{jsxs as r,jsx as i}from"react/jsx-runtime";function a({ink:e}){/* @__PURE__ */
2
2
  return i("span",{"aria-hidden":"true",className:`h-3 w-0.5 shrink-0 rounded-[1px] ${e}`})}function t({link:t,className:l=""}){const c=n().meter;/* @__PURE__ */
3
3
  return r("div",{className:`flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-gray-500 ${l}`.trim(),children:[
4
4
  /* @__PURE__ */r("span",{className:"inline-flex items-center gap-1",children:[
@@ -1,4 +1,4 @@
1
- import{Modal as e}from"./chunk-AG6Y62TP.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
1
+ import{Modal as e}from"./chunk-TKPUYQ3Q.js";import{keepsNativeMenu as a}from"./chunk-5QFPTDQF.js";import{jsx as i,jsxs as n}from"react/jsx-runtime";var t={activeOpacity:70,inactiveOpacity:50,activeBlur:0,inactiveBlur:0};function r(e){try{const a=JSON.parse(localStorage.getItem(e)||"");return null!=a.blur&&null==a.activeBlur&&(a.activeBlur=a.blur,a.inactiveBlur=a.blur,delete a.blur),{...t,...a}}catch{return t}}function l({open:t,onClose:r,title:l,appearance:c,onAppearanceChange:s,onSave:d,children:o}){if(!t)return null;const u="w-full h-1.5 rounded-full appearance-none bg-gray-200 cursor-pointer accent-blue-500",p="flex items-center justify-between text-xs text-gray-500";/* @__PURE__ */
2
2
  return i("div",{onPointerDown:e=>e.stopPropagation(),onContextMenu:e=>{e.stopPropagation(),a(e.target)||e.preventDefault()},children:/* @__PURE__ */i(e,{open:t,onClose:r,title:l,size:"sm",children:/* @__PURE__ */n("div",{className:"space-y-4",children:[o,
3
3
  /* @__PURE__ */n("div",{children:[
4
4
  /* @__PURE__ */i("h3",{className:"text-sm font-semibold text-gray-700 mb-3",children:"Appearance"}),
@@ -1,4 +1,4 @@
1
- import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-TJSJVC6P.js";import{jsxs as t,jsx as n,Fragment as i}from"react/jsx-runtime";var a={info:{box:"bg-blue-50 border-blue-200",icon:"text-blue-600"},success:{box:"bg-green-50 border-green-200",icon:"text-green-600"},warning:{box:"bg-amber-50 border-amber-200",icon:"text-amber-600"},danger:{box:"bg-red-50 border-red-200",icon:"text-red-600"},neutral:{box:"bg-[var(--status-neutral-soft)] border-[color:var(--line)]",icon:"text-[color:var(--status-neutral-soft-ink)]"}},s={info:"bg-blue-700 border-blue-700 text-white",success:"bg-green-700 border-green-700 text-white",warning:"bg-amber-700 border-amber-700 text-white",danger:"bg-red-700 border-red-700 text-white",neutral:"bg-[var(--status-neutral-solid)] border-[color:var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function o({tone:r}){const t={className:"h-5 w-5","aria-hidden":!0};switch(r){case"success":/* @__PURE__ */
1
+ import{Icon as e}from"./chunk-JOAKKXTL.js";import{useShellStrings as r}from"./chunk-JSHMIMAJ.js";import{jsxs as t,jsx as n,Fragment as i}from"react/jsx-runtime";var a={info:{box:"bg-blue-50 border-blue-200",icon:"text-blue-600"},success:{box:"bg-green-50 border-green-200",icon:"text-green-600"},warning:{box:"bg-amber-50 border-amber-200",icon:"text-amber-600"},danger:{box:"bg-red-50 border-red-200",icon:"text-red-600"},neutral:{box:"bg-[var(--status-neutral-soft)] border-[color:var(--line)]",icon:"text-[color:var(--status-neutral-soft-ink)]"}},s={info:"bg-blue-700 border-blue-700 text-white",success:"bg-green-700 border-green-700 text-white",warning:"bg-amber-700 border-amber-700 text-white",danger:"bg-red-700 border-red-700 text-white",neutral:"bg-[var(--status-neutral-solid)] border-[color:var(--status-neutral-solid)] text-[color:var(--status-on-solid)]"};function o({tone:r}){const t={className:"h-5 w-5","aria-hidden":!0};switch(r){case"success":/* @__PURE__ */
2
2
  return n(e,{name:"check-circle",look:"mini",...t});case"warning":/* @__PURE__ */
3
3
  return n(e,{name:"warning",look:"mini",...t});case"danger":/* @__PURE__ */
4
4
  return n(e,{name:"close-circle",look:"mini",...t});default:/* @__PURE__ */