vue-data-ui 3.17.13 → 3.18.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 (493) hide show
  1. package/README.md +1 -1
  2. package/dist/A11yDataTable-q2-8fSlJ.js +45 -0
  3. package/dist/Arrow-BU2Z7mfz.js +116 -0
  4. package/dist/BaseDraggableDialog-LE75fWYz.js +272 -0
  5. package/dist/BaseIcon-CL6Y7alf.js +499 -0
  6. package/dist/BaseLegendToggle-BvPOFMVZ.js +56 -0
  7. package/dist/BaseScanner-C7dmAref.js +27 -0
  8. package/dist/BaseZoomControls-DSwf4HhS.js +111 -0
  9. package/dist/ColorPicker-BGbMrtup.js +255 -0
  10. package/dist/DataTable-ZG4GX2Zg.js +150 -0
  11. package/dist/Legend-BPb8i4aC.js +114 -0
  12. package/dist/NonSvgPenAndPaper-BT3YMjgo.js +577 -0
  13. package/dist/PackageVersion-B1cPtZ3Q.js +11 -0
  14. package/dist/PenAndPaper-DxBCVZAx.js +461 -0
  15. package/dist/RecursiveCircles-DPpLel6f.js +117 -0
  16. package/dist/RecursiveLabels-DBMJf_to.js +56 -0
  17. package/dist/RecursiveLinks-D06dBL4a.js +78 -0
  18. package/dist/Shape-Dbug7CtK.js +141 -0
  19. package/dist/Slicer-SEdaKYPX.js +1144 -0
  20. package/dist/SlicerPreview-BLlQTUI_.js +1523 -0
  21. package/dist/SparkTooltip-BaONR2nq.js +93 -0
  22. package/dist/Title-ByyzJzpc.js +87 -0
  23. package/dist/Tooltip-V6Z0Ko-1.js +307 -0
  24. package/dist/UserOptions-Gaw1761w.js +1407 -0
  25. package/dist/_plugin-vue_export-helper-Dq1MygBL.js +8 -0
  26. package/dist/canvas-lib-DTaADQOK.js +79 -0
  27. package/dist/components/arrow.js +2 -5
  28. package/dist/components/vue-ui-3d-bar.js +2 -5
  29. package/dist/components/vue-ui-accordion.js +2 -5
  30. package/dist/components/vue-ui-age-pyramid.js +2 -5
  31. package/dist/components/vue-ui-annotator.js +2 -5
  32. package/dist/components/vue-ui-bullet.js +2 -5
  33. package/dist/components/vue-ui-bump.js +2 -5
  34. package/dist/components/vue-ui-candlestick.js +2 -5
  35. package/dist/components/vue-ui-carousel-table.js +2 -5
  36. package/dist/components/vue-ui-chestnut.js +2 -5
  37. package/dist/components/vue-ui-chord.js +2 -5
  38. package/dist/components/vue-ui-circle-pack.js +2 -5
  39. package/dist/components/vue-ui-cursor.js +2 -5
  40. package/dist/components/vue-ui-dag.js +2 -5
  41. package/dist/components/vue-ui-dashboard.js +2 -5
  42. package/dist/components/vue-ui-digits.js +2 -5
  43. package/dist/components/vue-ui-donut-evolution.js +2 -5
  44. package/dist/components/vue-ui-donut.js +2 -5
  45. package/dist/components/vue-ui-dumbbell.js +2 -5
  46. package/dist/components/vue-ui-flow.js +2 -5
  47. package/dist/components/vue-ui-funnel.js +2 -5
  48. package/dist/components/vue-ui-galaxy.js +2 -5
  49. package/dist/components/vue-ui-gauge.js +2 -5
  50. package/dist/components/vue-ui-geo.js +2 -5
  51. package/dist/components/vue-ui-gizmo.js +2 -5
  52. package/dist/components/vue-ui-heatmap.js +2 -5
  53. package/dist/components/vue-ui-history-plot.js +2 -5
  54. package/dist/components/vue-ui-horizontal-bar.js +2 -5
  55. package/dist/components/vue-ui-icon.js +2 -5
  56. package/dist/components/vue-ui-kpi.js +2 -5
  57. package/dist/components/vue-ui-mini-loader.js +2 -5
  58. package/dist/components/vue-ui-molecule.js +2 -5
  59. package/dist/components/vue-ui-mood-radar.js +2 -5
  60. package/dist/components/vue-ui-nested-donuts.js +2 -5
  61. package/dist/components/vue-ui-onion.js +2 -5
  62. package/dist/components/vue-ui-parallel-coordinate-plot.js +2 -5
  63. package/dist/components/vue-ui-pattern-seed.js +2 -5
  64. package/dist/components/vue-ui-pattern.js +2 -5
  65. package/dist/components/vue-ui-quadrant.js +2 -5
  66. package/dist/components/vue-ui-quick-chart.js +2 -5
  67. package/dist/components/vue-ui-radar.js +2 -5
  68. package/dist/components/vue-ui-rating.js +2 -5
  69. package/dist/components/vue-ui-relation-circle.js +2 -5
  70. package/dist/components/vue-ui-ridgeline.js +2 -5
  71. package/dist/components/vue-ui-rings.js +2 -5
  72. package/dist/components/vue-ui-scatter.js +2 -5
  73. package/dist/components/vue-ui-skeleton.js +2 -5
  74. package/dist/components/vue-ui-smiley.js +2 -5
  75. package/dist/components/vue-ui-spark-trend.js +2 -5
  76. package/dist/components/vue-ui-sparkbar.js +2 -5
  77. package/dist/components/vue-ui-sparkgauge.js +2 -5
  78. package/dist/components/vue-ui-sparkhistogram.js +2 -5
  79. package/dist/components/vue-ui-sparkline.js +2 -5
  80. package/dist/components/vue-ui-sparkstackbar.js +2 -5
  81. package/dist/components/vue-ui-stackbar.js +2 -5
  82. package/dist/components/vue-ui-stackline.js +2 -5
  83. package/dist/components/vue-ui-strip-plot.js +2 -5
  84. package/dist/components/vue-ui-table-heatmap.js +2 -5
  85. package/dist/components/vue-ui-table-sparkline.js +2 -5
  86. package/dist/components/vue-ui-table.js +2 -5
  87. package/dist/components/vue-ui-thermometer.js +2 -5
  88. package/dist/components/vue-ui-timer.js +2 -5
  89. package/dist/components/vue-ui-tiremarks.js +2 -5
  90. package/dist/components/vue-ui-treemap.js +2 -5
  91. package/dist/components/vue-ui-vertical-bar.js +2 -5
  92. package/dist/components/vue-ui-waffle.js +2 -5
  93. package/dist/components/vue-ui-wheel.js +2 -5
  94. package/dist/components/vue-ui-word-cloud.js +2 -5
  95. package/dist/components/vue-ui-world.js +2 -5
  96. package/dist/components/vue-ui-xy-canvas.js +2 -5
  97. package/dist/components/vue-ui-xy.js +2 -5
  98. package/dist/dom-to-png-C9UOX1d2.js +237 -0
  99. package/dist/exposedLib-BQjH823l.js +19 -0
  100. package/dist/geoProjections-CQIkC70z.js +146 -0
  101. package/dist/img-NMY-_LiJ.js +74 -0
  102. package/dist/labelUtils-BiSegLOT.js +19 -0
  103. package/dist/lib-B83ZCydz.js +1879 -0
  104. package/dist/patternUtils-B7BWu5bV.js +258 -0
  105. package/dist/pdf-Ey2KFETK.js +90 -0
  106. package/dist/rolldown-runtime-CAFD8bLK.js +11 -0
  107. package/dist/style.css +2 -1
  108. package/dist/types/arrow.d.ts +1 -1
  109. package/dist/types/utils.d.ts +23 -0
  110. package/dist/types/vue-data-ui.d.ts +4766 -630
  111. package/dist/types/vue-ui-3d-bar.d.ts +64 -9
  112. package/dist/types/vue-ui-accordion.d.ts +4 -3
  113. package/dist/types/vue-ui-age-pyramid.d.ts +79 -9
  114. package/dist/types/vue-ui-annotator.d.ts +3 -5
  115. package/dist/types/vue-ui-bullet.d.ts +60 -9
  116. package/dist/types/vue-ui-bump.d.ts +65 -9
  117. package/dist/types/vue-ui-candlestick.d.ts +83 -9
  118. package/dist/types/vue-ui-carousel-table.d.ts +36 -6
  119. package/dist/types/vue-ui-chestnut.d.ts +66 -9
  120. package/dist/types/vue-ui-chord.d.ts +78 -9
  121. package/dist/types/vue-ui-circle-pack.d.ts +86 -9
  122. package/dist/types/vue-ui-cursor.d.ts +4 -2
  123. package/dist/types/vue-ui-dag.d.ts +92 -9
  124. package/dist/types/vue-ui-dashboard.d.ts +43 -6
  125. package/dist/types/vue-ui-digits.d.ts +4 -2
  126. package/dist/types/vue-ui-donut-evolution.d.ts +70 -9
  127. package/dist/types/vue-ui-donut.d.ts +92 -9
  128. package/dist/types/vue-ui-dumbbell.d.ts +65 -9
  129. package/dist/types/vue-ui-flow.d.ts +79 -9
  130. package/dist/types/vue-ui-funnel.d.ts +55 -9
  131. package/dist/types/vue-ui-galaxy.d.ts +83 -9
  132. package/dist/types/vue-ui-gauge.d.ts +64 -9
  133. package/dist/types/vue-ui-geo.d.ts +71 -9
  134. package/dist/types/vue-ui-gizmo.d.ts +17 -6
  135. package/dist/types/vue-ui-heatmap.d.ts +73 -9
  136. package/dist/types/vue-ui-history-plot.d.ts +82 -9
  137. package/dist/types/vue-ui-horizontal-bar.d.ts +84 -9
  138. package/dist/types/vue-ui-icon.d.ts +2 -2
  139. package/dist/types/vue-ui-kpi.d.ts +21 -7
  140. package/dist/types/vue-ui-mini-loader.d.ts +5 -3
  141. package/dist/types/vue-ui-molecule.d.ts +86 -9
  142. package/dist/types/vue-ui-mood-radar.d.ts +66 -9
  143. package/dist/types/vue-ui-nested-donuts.d.ts +80 -9
  144. package/dist/types/vue-ui-onion.d.ts +77 -9
  145. package/dist/types/vue-ui-parallel-coordinate-plot.d.ts +92 -9
  146. package/dist/types/vue-ui-pattern-seed.d.ts +1 -1
  147. package/dist/types/vue-ui-pattern.d.ts +2 -2
  148. package/dist/types/vue-ui-quadrant.d.ts +86 -9
  149. package/dist/types/vue-ui-quick-chart.d.ts +79 -9
  150. package/dist/types/vue-ui-radar.d.ts +83 -9
  151. package/dist/types/vue-ui-rating.d.ts +22 -6
  152. package/dist/types/vue-ui-relation-circle.d.ts +66 -9
  153. package/dist/types/vue-ui-ridgeline.d.ts +69 -9
  154. package/dist/types/vue-ui-rings.d.ts +70 -9
  155. package/dist/types/vue-ui-scatter.d.ts +67 -9
  156. package/dist/types/vue-ui-skeleton.d.ts +3 -2
  157. package/dist/types/vue-ui-smiley.d.ts +3 -2
  158. package/dist/types/vue-ui-spark-trend.d.ts +14 -6
  159. package/dist/types/vue-ui-sparkbar.d.ts +27 -6
  160. package/dist/types/vue-ui-sparkgauge.d.ts +20 -6
  161. package/dist/types/vue-ui-sparkhistogram.d.ts +24 -6
  162. package/dist/types/vue-ui-sparkline.d.ts +35 -6
  163. package/dist/types/vue-ui-sparkstackbar.d.ts +35 -6
  164. package/dist/types/vue-ui-stackbar.d.ts +85 -9
  165. package/dist/types/vue-ui-stackline.d.ts +81 -9
  166. package/dist/types/vue-ui-strip-plot.d.ts +66 -9
  167. package/dist/types/vue-ui-table-heatmap.d.ts +52 -6
  168. package/dist/types/vue-ui-table-sparkline.d.ts +30 -6
  169. package/dist/types/vue-ui-table.d.ts +10 -2
  170. package/dist/types/vue-ui-thermometer.d.ts +46 -9
  171. package/dist/types/vue-ui-timer.d.ts +31 -5
  172. package/dist/types/vue-ui-tiremarks.d.ts +46 -9
  173. package/dist/types/vue-ui-treemap.d.ts +73 -9
  174. package/dist/types/vue-ui-vertical-bar.d.ts +2 -2
  175. package/dist/types/vue-ui-waffle.d.ts +72 -9
  176. package/dist/types/vue-ui-wheel.d.ts +46 -9
  177. package/dist/types/vue-ui-word-cloud.d.ts +73 -9
  178. package/dist/types/vue-ui-world.d.ts +68 -9
  179. package/dist/types/vue-ui-xy-canvas.d.ts +75 -9
  180. package/dist/types/vue-ui-xy.d.ts +108 -10
  181. package/dist/useAutoSizeLabelsInsideViewbox-De0rTecW.js +50 -0
  182. package/dist/useChartAccessibility-Do37qcw2.js +12 -0
  183. package/dist/useConfig-KnOLHtlJ.js +7419 -0
  184. package/dist/useFitSvgText-C-MEdAfe.js +63 -0
  185. package/dist/useNestedProp-CcxL1gUU.js +10 -0
  186. package/dist/useObjectBindings-Dc8Rf6Qy.js +189 -0
  187. package/dist/usePanZoom-B-4M_gmY.js +157 -0
  188. package/dist/usePrefersMotion-BywLbIko.js +15 -0
  189. package/dist/usePrinter-CMLF900n.js +49 -0
  190. package/dist/useResponsive-CrAInupd.js +19 -0
  191. package/dist/useStableElementSize-0I1IpHPl.js +77 -0
  192. package/dist/useSvgExport-Dtu973wa.js +755 -0
  193. package/dist/useTableResponsive-DrM1xqII.js +24 -0
  194. package/dist/useThemeCheck-rFK9Zlb_.js +24 -0
  195. package/dist/useTimeLabelCollider-Dm55Emzg.js +57 -0
  196. package/dist/useTimeLabels-C0x7zUXP.js +272 -0
  197. package/dist/useUserOptionState-CjPJPTg2.js +15 -0
  198. package/dist/utils.js +27 -44
  199. package/dist/vClickOutside-CbX_bC9A.js +13 -0
  200. package/dist/vue-data-ui-D1REqS_k.js +274 -0
  201. package/dist/vue-data-ui.js +76 -167
  202. package/dist/vue-ui-3d-bar-vO_kSCd6.js +1747 -0
  203. package/dist/vue-ui-accordion-Cf-jZELj.js +81 -0
  204. package/dist/vue-ui-age-pyramid-DHXhrP_3.js +1226 -0
  205. package/dist/vue-ui-annotator-B0o6czmF.js +2899 -0
  206. package/dist/vue-ui-bullet-C93-cf0H.js +700 -0
  207. package/dist/vue-ui-bump-C_Szk9AZ.js +1239 -0
  208. package/dist/vue-ui-candlestick-6JdMEJKO.js +1802 -0
  209. package/dist/vue-ui-carousel-table-CZ_HK0Iw.js +445 -0
  210. package/dist/vue-ui-chestnut-B8ixU585.js +2000 -0
  211. package/dist/vue-ui-chord-DC5sLapz.js +1381 -0
  212. package/dist/vue-ui-circle-pack-CsmSEwt3.js +1183 -0
  213. package/dist/vue-ui-cursor-B-QODIL3.js +283 -0
  214. package/dist/vue-ui-dag-C9LYfjS_.js +2899 -0
  215. package/dist/vue-ui-dashboard-D-f4ZaLi.js +503 -0
  216. package/dist/vue-ui-digits-CcB3odN7.js +209 -0
  217. package/dist/vue-ui-donut-DR0ngnZC.js +2396 -0
  218. package/dist/vue-ui-donut-evolution-BXpOscCe.js +1490 -0
  219. package/dist/vue-ui-dumbbell-CB_clJWA.js +1517 -0
  220. package/dist/vue-ui-flow-CUiOAEy1.js +1223 -0
  221. package/dist/vue-ui-funnel-BAlGDK0o.js +767 -0
  222. package/dist/vue-ui-galaxy-DbYNfSHb.js +1062 -0
  223. package/dist/vue-ui-gauge-Cie7jykM.js +910 -0
  224. package/dist/vue-ui-geo-Ce_gBRye.js +1504 -0
  225. package/dist/vue-ui-gizmo-B9POi_SN.js +225 -0
  226. package/dist/vue-ui-heatmap-DFfRSbnk.js +1556 -0
  227. package/dist/vue-ui-history-plot-DHp5WFgx.js +1551 -0
  228. package/dist/vue-ui-horizontal-bar-DI4yoARv.js +1669 -0
  229. package/dist/vue-ui-kpi-oUfso4UP.js +96 -0
  230. package/dist/vue-ui-mini-loader-aZMi1_uX.js +125 -0
  231. package/dist/vue-ui-molecule-D72kzel_.js +912 -0
  232. package/dist/vue-ui-mood-radar-Tw2ZFP7Y.js +1138 -0
  233. package/dist/vue-ui-nested-donuts-Bza1LczX.js +1472 -0
  234. package/dist/vue-ui-onion-BOuuib5d.js +1188 -0
  235. package/dist/vue-ui-parallel-coordinate-plot-BuQUq6-o.js +1413 -0
  236. package/dist/vue-ui-pattern-Bj-IPFr2.js +154 -0
  237. package/dist/vue-ui-pattern-seed-abRweCDE.js +61 -0
  238. package/dist/vue-ui-quadrant-zNFIXNt9.js +1966 -0
  239. package/dist/vue-ui-quick-chart-B1a8QVUn.js +2459 -0
  240. package/dist/vue-ui-radar-VFn-YP_2.js +1214 -0
  241. package/dist/vue-ui-rating-Dxgn21FA.js +343 -0
  242. package/dist/vue-ui-relation-circle-B0sZaCgX.js +914 -0
  243. package/dist/vue-ui-ridgeline-BsBAbg5V.js +1612 -0
  244. package/dist/vue-ui-rings-CDwUzMF-.js +1231 -0
  245. package/dist/vue-ui-scatter-Du_b-zM8.js +2380 -0
  246. package/dist/vue-ui-skeleton-BAq6J_6G.js +2556 -0
  247. package/dist/vue-ui-smiley-CoHvkS0c.js +356 -0
  248. package/dist/vue-ui-spark-trend-BmCcJ17C.js +438 -0
  249. package/dist/vue-ui-sparkbar-9z05IMx8.js +393 -0
  250. package/dist/vue-ui-sparkgauge-BlWri9DP.js +255 -0
  251. package/dist/vue-ui-sparkhistogram-CHZTt8d8.js +560 -0
  252. package/dist/vue-ui-sparkline-DirLW9Nd.js +1503 -0
  253. package/dist/vue-ui-sparkstackbar-Dk6cEI2o.js +660 -0
  254. package/dist/vue-ui-stackbar-DNIrGHkt.js +2235 -0
  255. package/dist/vue-ui-stackline-HoWn_ur2.js +2362 -0
  256. package/dist/vue-ui-strip-plot-Bi8u_fLr.js +1328 -0
  257. package/dist/vue-ui-table-XLjOOfdI.js +1338 -0
  258. package/dist/vue-ui-table-heatmap-DvnFiveI.js +334 -0
  259. package/dist/vue-ui-table-sparkline-CSZf8XxP.js +697 -0
  260. package/dist/vue-ui-thermometer-7eUO_7CP.js +753 -0
  261. package/dist/vue-ui-timer-DCbxsREb.js +439 -0
  262. package/dist/vue-ui-tiremarks-p_sfTufv.js +542 -0
  263. package/dist/vue-ui-treemap-BdZOW7TM.js +1575 -0
  264. package/dist/vue-ui-waffle-Bf9dWWCM.js +1350 -0
  265. package/dist/vue-ui-wheel-CZrIiB0K.js +875 -0
  266. package/dist/vue-ui-word-cloud-BeLjxoRe.js +1644 -0
  267. package/dist/vue-ui-world-D9ahzEQ2.js +14252 -0
  268. package/dist/vue-ui-xy-DrvbVuHO.js +4063 -0
  269. package/dist/vue-ui-xy-canvas-DU7vFrQr.js +1774 -0
  270. package/dist/vue_ui_3d_bar-CXKqO5Ej.js +185 -0
  271. package/dist/vue_ui_age_pyramid-BON8QI6X.js +301 -0
  272. package/dist/vue_ui_bullet-CE5sFT7u.js +186 -0
  273. package/dist/vue_ui_bump-frnXaXul.js +201 -0
  274. package/dist/vue_ui_candlestick-sY6UtOop.js +374 -0
  275. package/dist/vue_ui_chestnut-BiUZFv40.js +305 -0
  276. package/dist/vue_ui_chord-DpyR_b9A.js +275 -0
  277. package/dist/vue_ui_circle_pack-DBKz_Fi_.js +130 -0
  278. package/dist/vue_ui_dag-Ci_MOnvd.js +258 -0
  279. package/dist/vue_ui_donut-Cx2_BGcQ.js +358 -0
  280. package/dist/vue_ui_donut_evolution-CAJefrHs.js +717 -0
  281. package/dist/vue_ui_dumbbell-CClzAZTN.js +304 -0
  282. package/dist/vue_ui_flow-CCHO1Lo9.js +238 -0
  283. package/dist/vue_ui_funnel-h8q2mRpC.js +234 -0
  284. package/dist/vue_ui_galaxy-70vtkEBw.js +265 -0
  285. package/dist/vue_ui_gauge-C17CgfzN.js +178 -0
  286. package/dist/vue_ui_geo-C0UbQ0Lc.js +248 -0
  287. package/dist/vue_ui_heatmap-BqPP3J4M.js +319 -0
  288. package/dist/vue_ui_history_plot-C5nytDHh.js +413 -0
  289. package/dist/vue_ui_horizontal_bar-Bqxorkc_.js +341 -0
  290. package/dist/vue_ui_molecule-Dka4JBOp.js +231 -0
  291. package/dist/vue_ui_mood_radar-Dg4ijm53.js +281 -0
  292. package/dist/vue_ui_nested_donuts-BY9cOoHF.js +273 -0
  293. package/dist/vue_ui_onion-DTV9cup-.js +293 -0
  294. package/dist/vue_ui_parallel_coordinate_plot-CNWrDh96.js +278 -0
  295. package/dist/vue_ui_quadrant-3kjYvxpj.js +428 -0
  296. package/dist/vue_ui_quick_chart--VaYQuM4.js +139 -0
  297. package/dist/vue_ui_radar-Dxx9GJmj.js +306 -0
  298. package/dist/vue_ui_relation_circle-Cr0I2SoU.js +98 -0
  299. package/dist/vue_ui_ridgeline-CAtYca4b.js +767 -0
  300. package/dist/vue_ui_rings-DXC1VeX5.js +320 -0
  301. package/dist/vue_ui_scatter-D2S2j0ap.js +479 -0
  302. package/dist/vue_ui_spark_trend-BHMQ6_1p.js +82 -0
  303. package/dist/vue_ui_sparkbar-BR6hbuDE.js +64 -0
  304. package/dist/vue_ui_sparkgauge-xfPRHnMv.js +90 -0
  305. package/dist/vue_ui_sparkhistogram-CJRENZ1C.js +123 -0
  306. package/dist/vue_ui_sparkline-wgk7yO7E.js +151 -0
  307. package/dist/vue_ui_sparkstackbar-C5qZMmAl.js +175 -0
  308. package/dist/vue_ui_stackbar-BW_C3MXw.js +412 -0
  309. package/dist/vue_ui_stackline-DpI2LnjO.js +426 -0
  310. package/dist/vue_ui_strip_plot-8ZelqC5b.js +301 -0
  311. package/dist/vue_ui_table_heatmap-BGUjA0WA.js +80 -0
  312. package/dist/vue_ui_table_sparkline-i0Q-N_we.js +124 -0
  313. package/dist/vue_ui_thermometer-CuN7Gpez.js +123 -0
  314. package/dist/vue_ui_tiremarks-A6UHC0c3.js +122 -0
  315. package/dist/vue_ui_treemap-BQp06q-g.js +328 -0
  316. package/dist/vue_ui_vertical_bar-CJSD1FZS.js +247 -0
  317. package/dist/vue_ui_waffle-C_Ev4l7B.js +292 -0
  318. package/dist/vue_ui_wheel-DdkTPXJU.js +133 -0
  319. package/dist/vue_ui_word_cloud-B1PbsYPc.js +254 -0
  320. package/dist/vue_ui_xy-BYPqfYyx.js +482 -0
  321. package/dist/vue_ui_xy_canvas-CMHGNrLf.js +408 -0
  322. package/package.json +7 -7
  323. package/dist/A11yDataTable-BpmuNomI.js +0 -54
  324. package/dist/Arrow-dSvLFssU.js +0 -101
  325. package/dist/BaseDraggableDialog-Di8Hlru3.js +0 -249
  326. package/dist/BaseIcon-DX0hTWa-.js +0 -476
  327. package/dist/BaseLegendToggle-cMP8M2u0.js +0 -47
  328. package/dist/BaseScanner-C2j3TsSY.js +0 -36
  329. package/dist/BaseZoomControls-CVSC1-SU.js +0 -123
  330. package/dist/ColorPicker-bAxGcXK0.js +0 -271
  331. package/dist/DataTable-cMnb68Ik.js +0 -145
  332. package/dist/Legend-DGN5lY60.js +0 -104
  333. package/dist/NonSvgPenAndPaper-B6E0zEYe.js +0 -573
  334. package/dist/PackageVersion-BfrCAH6_.js +0 -10
  335. package/dist/PenAndPaper-CJDoB5H9.js +0 -527
  336. package/dist/RecursiveCircles-BE6GoMmo.js +0 -101
  337. package/dist/RecursiveLabels-BhQMS9Sm.js +0 -55
  338. package/dist/RecursiveLinks-BDwyYfP-.js +0 -83
  339. package/dist/Shape-CxJ5_Rre.js +0 -116
  340. package/dist/Slicer-D7UcO8sN.js +0 -1145
  341. package/dist/SlicerPreview-D_CgrN_7.js +0 -1580
  342. package/dist/SparkTooltip-D4bM-kfz.js +0 -68
  343. package/dist/Title-BbKoiBk2.js +0 -88
  344. package/dist/Tooltip-Cvt7Fi0Q.js +0 -299
  345. package/dist/UserOptions-DVduN6X7.js +0 -1474
  346. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  347. package/dist/dom-to-png-DGvx6i5V.js +0 -262
  348. package/dist/exposedLib-sJvY1pST.js +0 -22
  349. package/dist/geoProjections-BFq2sOBY.js +0 -162
  350. package/dist/img-CjTQXS0U.js +0 -57
  351. package/dist/labelUtils-DX9oyq3C.js +0 -26
  352. package/dist/lib-DMzrGQHK.js +0 -2477
  353. package/dist/patternUtils-BINhU4Ky.js +0 -615
  354. package/dist/pdf-C4H4o1Cj.js +0 -88
  355. package/dist/useAutoSizeLabelsInsideViewbox-izlGDfwu.js +0 -55
  356. package/dist/useChartAccessibility-cp6XQtqi.js +0 -15
  357. package/dist/useConfig-CG4HT3wS.js +0 -7901
  358. package/dist/useFitSvgText-2crs6Fv5.js +0 -69
  359. package/dist/useNestedProp-DH0BEVVS.js +0 -13
  360. package/dist/useObjectBindings-Dixg-RIe.js +0 -228
  361. package/dist/usePanZoom-BbDhcKWf.js +0 -141
  362. package/dist/usePrefersMotion-Co0nj1eS.js +0 -17
  363. package/dist/usePrinter-C4t8DdQ-.js +0 -51
  364. package/dist/useResponsive-DfdjqQps.js +0 -195
  365. package/dist/useStableElementSize-C48ZVcZQ.js +0 -77
  366. package/dist/useSvgExport-BTG4hVPO.js +0 -870
  367. package/dist/useTableResponsive-BpfiEtzR.js +0 -26
  368. package/dist/useThemeCheck-C9Ccl7U9.js +0 -36
  369. package/dist/useTimeLabelCollider-D3JeJ6Ye.js +0 -86
  370. package/dist/useTimeLabels-Cv0tD9In.js +0 -307
  371. package/dist/useUserOptionState-B7Ej974k.js +0 -19
  372. package/dist/vClickOutside-C6WiFswA.js +0 -13
  373. package/dist/vue-data-ui-D1ZI7Y4l.js +0 -433
  374. package/dist/vue-ui-3d-bar-DEjKYzI5.js +0 -1824
  375. package/dist/vue-ui-accordion-DFtpH_16.js +0 -92
  376. package/dist/vue-ui-age-pyramid-LiC9hTjP.js +0 -1179
  377. package/dist/vue-ui-annotator-DrKnQoHf.js +0 -2991
  378. package/dist/vue-ui-bullet-DdxEINdq.js +0 -769
  379. package/dist/vue-ui-bump-CdgO1V7z.js +0 -1250
  380. package/dist/vue-ui-candlestick-DxJnPwto.js +0 -1775
  381. package/dist/vue-ui-carousel-table-CMefu5TI.js +0 -487
  382. package/dist/vue-ui-chestnut-BnGN72PO.js +0 -2001
  383. package/dist/vue-ui-chord-DWyar45U.js +0 -1457
  384. package/dist/vue-ui-circle-pack-CQ8vF2XH.js +0 -1076
  385. package/dist/vue-ui-cursor-HHOdkmyB.js +0 -260
  386. package/dist/vue-ui-dag-BDWPBElq.js +0 -3209
  387. package/dist/vue-ui-dashboard-Dg_I3X2a.js +0 -627
  388. package/dist/vue-ui-digits-CZmdir8V.js +0 -211
  389. package/dist/vue-ui-donut-BKegKHxj.js +0 -2608
  390. package/dist/vue-ui-donut-evolution-047dE4Lu.js +0 -1578
  391. package/dist/vue-ui-dumbbell-BL4ZMChj.js +0 -1552
  392. package/dist/vue-ui-flow-BAqtyunQ.js +0 -1279
  393. package/dist/vue-ui-funnel-Pl2sEOZs.js +0 -823
  394. package/dist/vue-ui-galaxy-CBF5Wsax.js +0 -1108
  395. package/dist/vue-ui-gauge-COV_S0Vp.js +0 -955
  396. package/dist/vue-ui-geo-CaPXElPf.js +0 -1510
  397. package/dist/vue-ui-gizmo-Csn7up96.js +0 -238
  398. package/dist/vue-ui-heatmap-Cpb0BYLa.js +0 -1694
  399. package/dist/vue-ui-history-plot-ZZEdzFCE.js +0 -1564
  400. package/dist/vue-ui-horizontal-bar-BonPYUZf.js +0 -1735
  401. package/dist/vue-ui-kpi-DoHhSsDK.js +0 -130
  402. package/dist/vue-ui-mini-loader-DOTBVCLE.js +0 -138
  403. package/dist/vue-ui-molecule-mVYnXouV.js +0 -945
  404. package/dist/vue-ui-mood-radar-DPvwnc3z.js +0 -1197
  405. package/dist/vue-ui-nested-donuts-C7E6TXrZ.js +0 -1702
  406. package/dist/vue-ui-onion-BGIlFhGB.js +0 -1207
  407. package/dist/vue-ui-parallel-coordinate-plot-C6G_A9ua.js +0 -1432
  408. package/dist/vue-ui-pattern-mXZW_pvA.js +0 -146
  409. package/dist/vue-ui-pattern-seed-BcNlxb2i.js +0 -36
  410. package/dist/vue-ui-quadrant-CVpIeYOB.js +0 -1918
  411. package/dist/vue-ui-quick-chart-CcV8qn9-.js +0 -2514
  412. package/dist/vue-ui-radar-G4AV1rBo.js +0 -1259
  413. package/dist/vue-ui-rating-CqPlP88P.js +0 -370
  414. package/dist/vue-ui-relation-circle-CkZ8oFVV.js +0 -856
  415. package/dist/vue-ui-ridgeline-CBTyYn6Q.js +0 -1737
  416. package/dist/vue-ui-rings-CSIOqFiP.js +0 -1256
  417. package/dist/vue-ui-scatter-AuC46ufT.js +0 -2345
  418. package/dist/vue-ui-skeleton-YD6rZjY_.js +0 -2475
  419. package/dist/vue-ui-smiley-CY0WFv2j.js +0 -391
  420. package/dist/vue-ui-spark-trend-D8KGIt-R.js +0 -423
  421. package/dist/vue-ui-sparkbar-BjWGJjzN.js +0 -424
  422. package/dist/vue-ui-sparkgauge-Dab5mss7.js +0 -285
  423. package/dist/vue-ui-sparkhistogram-D0rsmiPh.js +0 -559
  424. package/dist/vue-ui-sparkline-BCaauQuX.js +0 -1550
  425. package/dist/vue-ui-sparkstackbar-NT5yD6xA.js +0 -672
  426. package/dist/vue-ui-stackbar-ChBk_A1c.js +0 -2393
  427. package/dist/vue-ui-stackline-Cujamlze.js +0 -2490
  428. package/dist/vue-ui-strip-plot-CGBumG6I.js +0 -1293
  429. package/dist/vue-ui-table-BX2iMku4.js +0 -1726
  430. package/dist/vue-ui-table-heatmap-KXgXYVXm.js +0 -353
  431. package/dist/vue-ui-table-sparkline-C3NWnry0.js +0 -803
  432. package/dist/vue-ui-thermometer-DvdceZB1.js +0 -743
  433. package/dist/vue-ui-timer-XWAbvuAY.js +0 -504
  434. package/dist/vue-ui-tiremarks-B-YI1RlT.js +0 -578
  435. package/dist/vue-ui-treemap-AzorGfmd.js +0 -1757
  436. package/dist/vue-ui-waffle-CKtUvdTE.js +0 -1442
  437. package/dist/vue-ui-wheel-CnsLEArZ.js +0 -908
  438. package/dist/vue-ui-word-cloud-iAme2ihe.js +0 -1644
  439. package/dist/vue-ui-world-D5rrC9rw.js +0 -14452
  440. package/dist/vue-ui-xy-C_Q9chQe.js +0 -4468
  441. package/dist/vue-ui-xy-canvas-DG0299qE.js +0 -2107
  442. package/dist/vue_ui_3d_bar-CL0iX8Qi.js +0 -22
  443. package/dist/vue_ui_age_pyramid-8H8WSL7J.js +0 -22
  444. package/dist/vue_ui_bullet-Ckqieba5.js +0 -22
  445. package/dist/vue_ui_bump-CIht647H.js +0 -22
  446. package/dist/vue_ui_candlestick-BAMn-VGw.js +0 -22
  447. package/dist/vue_ui_chestnut-BloFvDuV.js +0 -22
  448. package/dist/vue_ui_chord-Bc1_ocwK.js +0 -22
  449. package/dist/vue_ui_circle_pack-CLmw8nHe.js +0 -22
  450. package/dist/vue_ui_dag-ZOwuDBZ8.js +0 -22
  451. package/dist/vue_ui_donut-CA4dgV8J.js +0 -22
  452. package/dist/vue_ui_donut_evolution-DFQU-rqE.js +0 -22
  453. package/dist/vue_ui_dumbbell-BCOHDiPk.js +0 -22
  454. package/dist/vue_ui_flow-BErINgox.js +0 -22
  455. package/dist/vue_ui_funnel-yuaMZ-yb.js +0 -22
  456. package/dist/vue_ui_galaxy-D95AN4FT.js +0 -22
  457. package/dist/vue_ui_gauge-BMEuRC4J.js +0 -22
  458. package/dist/vue_ui_geo--kg4VoVX.js +0 -22
  459. package/dist/vue_ui_heatmap-C9u993qE.js +0 -22
  460. package/dist/vue_ui_history_plot-BCKk1CrQ.js +0 -22
  461. package/dist/vue_ui_horizontal_bar-BEagrV0T.js +0 -22
  462. package/dist/vue_ui_molecule-BtvlINUh.js +0 -22
  463. package/dist/vue_ui_mood_radar-BUs6Fdn8.js +0 -22
  464. package/dist/vue_ui_nested_donuts-DvTrWT_C.js +0 -22
  465. package/dist/vue_ui_onion-CxWH9_OZ.js +0 -22
  466. package/dist/vue_ui_parallel_coordinate_plot-DH3cFJ3n.js +0 -22
  467. package/dist/vue_ui_quadrant-DjRs--Uz.js +0 -22
  468. package/dist/vue_ui_quick_chart-DMCjEjPe.js +0 -22
  469. package/dist/vue_ui_radar-DryGBOrz.js +0 -22
  470. package/dist/vue_ui_relation_circle-CCroen7h.js +0 -22
  471. package/dist/vue_ui_ridgeline-j4rVmpEp.js +0 -22
  472. package/dist/vue_ui_rings-CxOrekqA.js +0 -22
  473. package/dist/vue_ui_scatter-Bu1EAy9H.js +0 -22
  474. package/dist/vue_ui_spark_trend-3BjrSprO.js +0 -22
  475. package/dist/vue_ui_sparkbar-BsMzz5Um.js +0 -22
  476. package/dist/vue_ui_sparkgauge-KnjASOZs.js +0 -22
  477. package/dist/vue_ui_sparkhistogram-GBdzIVvS.js +0 -22
  478. package/dist/vue_ui_sparkline-CQ8DJVJx.js +0 -22
  479. package/dist/vue_ui_sparkstackbar-BSexvOuM.js +0 -22
  480. package/dist/vue_ui_stackbar-CuDC4O4b.js +0 -22
  481. package/dist/vue_ui_stackline-QTh-nuxE.js +0 -22
  482. package/dist/vue_ui_strip_plot-B9ypi_F3.js +0 -22
  483. package/dist/vue_ui_table_heatmap-CkvipPVy.js +0 -16
  484. package/dist/vue_ui_table_sparkline-yQdijcyJ.js +0 -22
  485. package/dist/vue_ui_thermometer-BTmjRBH8.js +0 -22
  486. package/dist/vue_ui_tiremarks-DBotWfi8.js +0 -22
  487. package/dist/vue_ui_treemap-D9-AIkT-.js +0 -22
  488. package/dist/vue_ui_vertical_bar-CELc39b8.js +0 -18
  489. package/dist/vue_ui_waffle-M2h-uJQ_.js +0 -22
  490. package/dist/vue_ui_wheel-LqBz3lv4.js +0 -22
  491. package/dist/vue_ui_word_cloud-mKAtBxHR.js +0 -22
  492. package/dist/vue_ui_xy-esktmpg-.js +0 -22
  493. package/dist/vue_ui_xy_canvas-6BBDSowT.js +0 -22
@@ -1,2477 +0,0 @@
1
- import { isRef as it, unref as ct, toRaw as Et } from "vue";
2
- const At = "#COMP# dataset prop is either missing, undefined or empty.", yt = "#COMP# dataset is missing the '#ATTR#' attribute.", xt = "#COMP# dataset '#ATTR#' attribute cannot be empty.", bt = "#COMP# dataset #KEY# item at index #INDX# is missing the '#ATTR#' attribute.", Ct = "#COMP# : Chart could not be built. Dataset is not formatted correctly", Mt = "#COMP# : A wrong value was provided to the #ATTR# attribute (#KEY# is not a valid value).", $t = {
3
- dataset: At,
4
- datasetAttribute: yt,
5
- datasetAttributeEmpty: xt,
6
- datasetSerieAttribute: bt,
7
- notBuildable: Ct,
8
- attributeWrongValue: Mt
9
- };
10
- function cn(t, n, e, s, r, o = 1.99999, c = 2, i = 1.45, l = 360, a = 105.25, u = 0) {
11
- const { series: f } = t;
12
- if (!f || f.length === 0)
13
- return [];
14
- const h = f.reduce((p, m) => p + m.value, 0), d = [];
15
- let g = 0;
16
- for (let p = 0; p < f.length; p++) {
17
- const m = f[p].value, A = f.length === 1, F = A ? 1 : h > 0 ? m / h : 0, b = F * (Math.PI * o), L = (A ? 0.5 : h > 0 ? m / 2 / h : 0.5) * (Math.PI * c), { startX: R, startY: x, endX: $, endY: M, path: D } = tt(
18
- [n, e],
19
- [s, r],
20
- [g, b],
21
- a,
22
- l,
23
- c
24
- ), y = tt(
25
- [n, e],
26
- [s - u, r - u],
27
- [g, b],
28
- a,
29
- l,
30
- c,
31
- !0
32
- ), I = tt(
33
- [n, e],
34
- [s * i, r * i],
35
- [g, L],
36
- a,
37
- l,
38
- c
39
- );
40
- d.push({
41
- arcSlice: `${D} L ${y.startX} ${y.startY} ${y.path} L ${R} ${x}`,
42
- cx: E(n),
43
- cy: E(e),
44
- ...f[p],
45
- proportion: E(F),
46
- ratio: E(b),
47
- path: D.replaceAll("NaN", "0"),
48
- startX: E(R),
49
- startY: E(x),
50
- endX: E($),
51
- endY: E(M),
52
- separator: {
53
- x: y.startX,
54
- y: y.startY
55
- },
56
- firstSeparator: {
57
- x: Number(y.path.split(" ").at(-2)),
58
- y: Number(y.path.split(" ").at(-1))
59
- },
60
- center: I
61
- }), g += b;
62
- }
63
- return d;
64
- }
65
- function ut([t, n], [e, s]) {
66
- return [t + e, n + s];
67
- }
68
- function lt([[t, n], [e, s]], [r, o]) {
69
- return [t * r + n * o, e * r + s * o];
70
- }
71
- function Dt(t) {
72
- return [
73
- [Math.cos(t), -Math.sin(t)],
74
- [Math.sin(t), Math.cos(t)]
75
- ];
76
- }
77
- function tt([t, n], [e, s], [r, o], c, i = 360, l = 2, a = !1) {
78
- o = o % (l * Math.PI);
79
- const u = Dt(c), [f, h] = ut(
80
- lt(u, [
81
- e * Math.cos(r),
82
- s * Math.sin(r)
83
- ]),
84
- [t, n]
85
- ), [d, g] = ut(
86
- lt(u, [
87
- e * Math.cos(r + o),
88
- s * Math.sin(r + o)
89
- ]),
90
- [t, n]
91
- ), p = o > Math.PI ? 1 : 0, m = o > 0 ? a ? 0 : 1 : a ? 1 : 0;
92
- return {
93
- startX: E(a ? d : f),
94
- startY: E(a ? g : h),
95
- endX: E(a ? f : d),
96
- endY: E(a ? h : g),
97
- path: `M${E(a ? d : f)} ${E(a ? g : h)} A ${[
98
- E(e),
99
- E(s),
100
- E(c / (l * Math.PI) * i),
101
- E(p),
102
- E(m),
103
- E(a ? f : d),
104
- E(a ? h : g)
105
- ].join(" ")}`
106
- };
107
- }
108
- function St({ defaultConfig: t, userConfig: n }) {
109
- const e = { ...t };
110
- return Object.keys(e).forEach((s) => {
111
- if (Object.hasOwn(n, s)) {
112
- const r = n[s];
113
- r === null ? e[s] = null : ["boolean", "function"].includes(typeof r) ? e[s] = r : ["string", "number"].includes(typeof r) ? at(r) && (e[s] = r) : Array.isArray(e[s]) ? Bt({ userConfig: n, key: s }) && (e[s] = r) : Nt({ userConfig: n, key: s }) && (e[s] = St({
114
- defaultConfig: e[s],
115
- userConfig: r
116
- }));
117
- }
118
- }), Object.keys(n).forEach((s) => {
119
- if (!Object.hasOwn(e, s)) {
120
- const r = n[s];
121
- e[s] = r && typeof r == "object" && !Array.isArray(r) ? { ...r } : r;
122
- }
123
- }), e;
124
- }
125
- function Bt({ userConfig: t, key: n }) {
126
- return Object.hasOwn(t, n) && Array.isArray(t[n]) && t[n].length >= 0;
127
- }
128
- function Nt({ userConfig: t, key: n }) {
129
- return Object.hasOwn(t, n) && !Array.isArray(t[n]) && typeof t[n] == "object";
130
- }
131
- function at(t) {
132
- return ![null, void 0, NaN, 1 / 0, -1 / 0].includes(t);
133
- }
134
- function an(t) {
135
- return ![void 0, NaN, 1 / 0, -1 / 0].includes(t);
136
- }
137
- function un(t, n = 0) {
138
- return at(t) ? t : n;
139
- }
140
- function E(t, n = 0) {
141
- return isNaN(t) ? n : t;
142
- }
143
- const ft = [
144
- "#1f77b4",
145
- "#aec7e8",
146
- "#ff7f0e",
147
- "#ffbb78",
148
- "#2ca02c",
149
- "#98df8a",
150
- "#d62728",
151
- "#ff9896",
152
- "#9467bd",
153
- "#c5b0d5",
154
- "#8c564b",
155
- "#c49c94",
156
- "#e377c2",
157
- "#f7b6d2",
158
- "#7f7f7f",
159
- "#c7c7c7",
160
- "#bcbd22",
161
- "#dbdb8d",
162
- "#17becf",
163
- "#9edae5",
164
- "#393b79",
165
- "#5254a3",
166
- "#6b6ecf",
167
- "#9c9ede",
168
- "#637939",
169
- "#8ca252",
170
- "#b5cf6b",
171
- "#cedb9c",
172
- "#8c6d31",
173
- "#bd9e39",
174
- "#e7ba52",
175
- "#e7cb94",
176
- "#843c39",
177
- "#ad494a",
178
- "#d6616b",
179
- "#e7969c",
180
- "#7b4173",
181
- "#a55194",
182
- "#ce6dbd",
183
- "#de9ed6"
184
- ];
185
- function ln(t = "default") {
186
- switch (t) {
187
- case "hack":
188
- return j.hack;
189
- case "zen":
190
- return j.zen;
191
- case "concrete":
192
- return j.concrete;
193
- case "celebration":
194
- return j.celebration;
195
- case "celebrationNight":
196
- return j.celebrationNight;
197
- case "minimal":
198
- return j.minimal;
199
- case "minimalDark":
200
- return j.minimalDark;
201
- default:
202
- return j.default;
203
- }
204
- }
205
- const j = {
206
- default: ft,
207
- dark: ft,
208
- minimal: [
209
- "#2A2929",
210
- "#454862",
211
- "#65698E",
212
- "#8D99AE",
213
- "#678681",
214
- "#7FA09B",
215
- "#9CBCA8",
216
- "#76645D",
217
- "#877675",
218
- "#A9998C",
219
- "#C6B7AB",
220
- "#906C70",
221
- "#B08C91",
222
- "#C9ACB0",
223
- "#9F816B",
224
- "#B39783",
225
- "#D8C3B3",
226
- "#825E76",
227
- "#9D7D92",
228
- "#C2A6B9"
229
- ],
230
- minimalDark: [
231
- "#524f4f",
232
- "#454862",
233
- "#65698E",
234
- "#8D99AE",
235
- "#678681",
236
- "#7FA09B",
237
- "#9CBCA8",
238
- "#76645D",
239
- "#877675",
240
- "#A9998C",
241
- "#C6B7AB",
242
- "#906C70",
243
- "#B08C91",
244
- "#C9ACB0",
245
- "#9F816B",
246
- "#B39783",
247
- "#D8C3B3",
248
- "#825E76",
249
- "#9D7D92",
250
- "#C2A6B9"
251
- ],
252
- celebration: [
253
- "#D32F2F",
254
- "#E64A19",
255
- "#F57C00",
256
- "#FF9800",
257
- "#FF5722",
258
- "#FFC107",
259
- "#FFEB3B",
260
- "#FFD54F",
261
- "#FF6F00",
262
- "#D84315",
263
- "#BF360C",
264
- "#C62828",
265
- "#B71C1C",
266
- "#FF7043",
267
- "#FF8A65",
268
- "#FFB74D",
269
- "#FFA726",
270
- "#FFCC80",
271
- "#FFE082",
272
- "#FFECB3"
273
- ],
274
- celebrationNight: [
275
- "#D32F2F",
276
- "#E64A19",
277
- "#F57C00",
278
- "#FF9800",
279
- "#FF5722",
280
- "#FFC947",
281
- "#FFEB3B",
282
- "#FFD95B",
283
- "#FF8800",
284
- "#FF5722",
285
- "#DD2C00",
286
- "#F44336",
287
- "#C62828",
288
- "#FF6E6E",
289
- "#FF867C",
290
- "#FFB547",
291
- "#FFA837",
292
- "#FFD180",
293
- "#FFE57F",
294
- "#FFF59D"
295
- ],
296
- concrete: [
297
- "#4A6A75",
298
- "#6C94A0",
299
- "#7DA9B5",
300
- "#8EBFCA",
301
- "#9FD4E0",
302
- "#B0E9F5",
303
- "#C1FFFF",
304
- "#5C6B5B",
305
- "#6D7D6D",
306
- "#7E8F7E",
307
- "#8FA290",
308
- "#A1B5A3",
309
- "#B2C7B5",
310
- "#C3DAC8",
311
- "#D4ECDA",
312
- "#E6FFF0",
313
- "#8A9CA5",
314
- "#9AA7B0",
315
- "#ABB1BC",
316
- "#BBCBC7",
317
- "#CCD6D3",
318
- "#DEE1DE",
319
- "#EFECEC",
320
- "#404C4D",
321
- "#50605F",
322
- "#617472",
323
- "#718885",
324
- "#829C98",
325
- "#92B0AB",
326
- "#A3C4BE",
327
- "#B3D8D2",
328
- "#C4EDE5",
329
- "#D4F1E8",
330
- "#404C5A",
331
- "#50606C",
332
- "#61747E",
333
- "#718890",
334
- "#829CA2",
335
- "#92B0B5"
336
- ],
337
- hack: [
338
- "#004C00",
339
- "#006600",
340
- "#008000",
341
- "#009900",
342
- "#00B300",
343
- "#00CC00",
344
- "#00E600",
345
- "#00FF00",
346
- "#33FF33",
347
- "#33E633",
348
- "#33CC33",
349
- "#33B333",
350
- "#339933",
351
- "#338033",
352
- "#336633",
353
- "#334C33",
354
- "#333333",
355
- "#00AF19",
356
- "#19E619",
357
- "#19CC19",
358
- "#19B319",
359
- "#199919",
360
- "#198019",
361
- "#196619",
362
- "#194C19",
363
- "#193319",
364
- "#191919",
365
- "#66FF66",
366
- "#66E666",
367
- "#66CC66",
368
- "#66B366",
369
- "#669966",
370
- "#668066",
371
- "#666666",
372
- "#4CFF4C",
373
- "#4CE64C",
374
- "#4CCC4C",
375
- "#4CB34C"
376
- ],
377
- zen: [
378
- "#B9B99D",
379
- "#E0CFC3",
380
- "#DFCA99",
381
- "#DCB482",
382
- "#C09E85",
383
- "#8F837A",
384
- "#858480",
385
- "#B0B9A8",
386
- "#606C5A",
387
- "#5E5E5E",
388
- "#4F5B75",
389
- "#647393",
390
- "#818EA9",
391
- "#9FA9BE",
392
- "#BBC4D3",
393
- "#DCDFE7",
394
- "#928A98",
395
- "#8A9892",
396
- "#B1A7AD",
397
- "#C5B8A7",
398
- "#EBD6CC",
399
- "#D7E0D2",
400
- "#E0D2D7",
401
- "#E0DBD2",
402
- "#D2E0DB",
403
- "#DBD2E0",
404
- "#C1B7A5",
405
- "#A5AFC1",
406
- "#E0DBD2",
407
- "#D2D7E0",
408
- "#F7EDE2",
409
- "#97ACB7",
410
- "#C4CBBC",
411
- "#C3C5C5",
412
- "#A0AC94"
413
- ]
414
- }, ht = [
415
- "00",
416
- "03",
417
- "05",
418
- "08",
419
- "0A",
420
- "0D",
421
- "0F",
422
- "12",
423
- "14",
424
- "17",
425
- "1A",
426
- "1C",
427
- "1F",
428
- "21",
429
- "24",
430
- "26",
431
- "29",
432
- "2B",
433
- "2E",
434
- "30",
435
- "33",
436
- "36",
437
- "38",
438
- "3B",
439
- "3D",
440
- "40",
441
- "42",
442
- "45",
443
- "47",
444
- "4A",
445
- "4D",
446
- "4F",
447
- "52",
448
- "54",
449
- "57",
450
- "59",
451
- "5C",
452
- "5E",
453
- "61",
454
- "63",
455
- "66",
456
- "69",
457
- "6B",
458
- "6E",
459
- "70",
460
- "73",
461
- "75",
462
- "78",
463
- "7A",
464
- "7D",
465
- "80",
466
- "82",
467
- "85",
468
- "87",
469
- "8A",
470
- "8C",
471
- "8F",
472
- "91",
473
- "94",
474
- "96",
475
- "99",
476
- "9C",
477
- "9E",
478
- "A1",
479
- "A3",
480
- "A6",
481
- "A8",
482
- "AB",
483
- "AD",
484
- "B0",
485
- "B3",
486
- "B5",
487
- "B8",
488
- "BA",
489
- "BD",
490
- "BF",
491
- "C2",
492
- "C4",
493
- "C7",
494
- "C9",
495
- "CC",
496
- "CF",
497
- "D1",
498
- "D4",
499
- "D6",
500
- "D9",
501
- "DB",
502
- "DE",
503
- "E0",
504
- "E3",
505
- "E6",
506
- "E8",
507
- "EB",
508
- "ED",
509
- "F0",
510
- "F2",
511
- "F5",
512
- "F7",
513
- "FA",
514
- "FC",
515
- "FF"
516
- ];
517
- function mt(t) {
518
- const n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i, e = /^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i, s = /^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)$/i, r = /^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*([\d.]+))?\)$/i, o = /^oklch\(\s*([\d.]+)%?\s*[, ]\s*([\d.]+)%?\s*[, ]\s*([\d.]+)(?:deg)?\s*(?:\/\s*([\d.]+%?)\s*)?\)$/i, c = /^lch\(/i;
519
- if (t == null || typeof t == "number" && isNaN(t))
520
- return null;
521
- if (t = it?.(t) ? ct(t) : t, t = Vt(t), Array.isArray(t)) {
522
- const [l, a, u, f = 1] = t;
523
- t = `rgba(${l},${a},${u},${f})`;
524
- } else if (typeof t == "object")
525
- if (Number.isFinite(t.r) && Number.isFinite(t.g) && Number.isFinite(t.b)) {
526
- const l = Number.isFinite(t.a) ? t.a : 1;
527
- t = `rgba(${t.r},${t.g},${t.b},${l})`;
528
- } else
529
- return null;
530
- else if (typeof t == "number") {
531
- const l = t >>> 0, a = l.toString(16).padStart(l <= 16777215 ? 6 : 8, "0");
532
- return `#${a.length === 6 ? a + "ff" : a}`;
533
- } else if (typeof t != "string")
534
- return null;
535
- if (t = t.trim(), c.test(t))
536
- return console.warn(
537
- "[convertColorToHex] lch() colors are not supported. Use oklch() instead."
538
- ), null;
539
- if (t.toLowerCase() === "transparent")
540
- return "#FFFFFF00";
541
- t = t.replace(e, (l, a, u, f, h) => `#${a}${a}${u}${u}${f}${f}${h ? h + h : ""}`);
542
- let i;
543
- if (i = t.match(n)) {
544
- const [, l, a, u, f] = i, h = f ? parseInt(f, 16) / 255 : 1;
545
- return `#${l}${a}${u}${G(Math.round(X(h) * 255))}`;
546
- }
547
- if (i = t.match(s)) {
548
- const [, l, a, u, f] = i, h = f ? parseFloat(f) : 1;
549
- return `#${G(l)}${G(a)}${G(u)}${G(Math.round(X(h) * 255))}`;
550
- }
551
- if (i = t.match(r)) {
552
- const [, l, a, u, f] = i, h = f ? parseFloat(f) : 1, [d, g, p] = Tt(Number(l), Number(a), Number(u));
553
- return `#${G(d)}${G(g)}${G(p)}${G(Math.round(X(h) * 255))}`;
554
- }
555
- if (i = t.match(o)) {
556
- const [, l, a, u, f] = i, h = Ot(l);
557
- if (h === null) return null;
558
- const d = wt(a);
559
- if (d === null) return null;
560
- const g = Pt(u);
561
- if (g === null) return null;
562
- const p = Lt(f);
563
- if (p === null) return null;
564
- const [m, A, F] = Rt(h, d, g);
565
- return `#${G(m)}${G(A)}${G(F)}${G(Math.round(X(p) * 255))}`;
566
- }
567
- return null;
568
- }
569
- function X(t) {
570
- return Number.isFinite(t) ? t < 0 ? 0 : t > 1 ? 1 : t : 0;
571
- }
572
- function nt(t) {
573
- return !Number.isFinite(t) || t < 0 ? 0 : t > 255 ? 255 : Math.round(t);
574
- }
575
- function et(t) {
576
- return t <= 31308e-7 ? 12.92 * t : 1.055 * Math.pow(t, 1 / 2.4) - 0.055;
577
- }
578
- function Rt(t, n, e) {
579
- const s = (e % 360 + 360) % 360 * (Math.PI / 180), r = n * Math.cos(s), o = n * Math.sin(s);
580
- return It(t, r, o);
581
- }
582
- function It(t, n, e) {
583
- const s = t + 0.3963377774 * n + 0.2158037573 * e, r = t - 0.1055613458 * n - 0.0638541728 * e, o = t - 0.0894841775 * n - 1.291485548 * e, c = s * s * s, i = r * r * r, l = o * o * o;
584
- let a = 4.0767416621 * c - 3.3077115913 * i + 0.2309699292 * l, u = -1.2684380046 * c + 2.6097574011 * i - 0.3413193965 * l, f = -0.0041960863 * c - 0.7034186147 * i + 1.707614701 * l;
585
- a = X(a), u = X(u), f = X(f);
586
- const h = et(a) * 255, d = et(u) * 255, g = et(f) * 255;
587
- return [nt(h), nt(d), nt(g)];
588
- }
589
- function Lt(t) {
590
- if (t === void 0) return 1;
591
- if (typeof t == "string" && t.endsWith("%")) {
592
- const e = parseFloat(t);
593
- return Number.isFinite(e) ? X(e / 100) : null;
594
- }
595
- const n = parseFloat(t);
596
- return Number.isFinite(n) ? X(n) : null;
597
- }
598
- function Ot(t) {
599
- let n = Number(t);
600
- return Number.isFinite(n) ? (n > 1 && (n = n / 100), X(n)) : null;
601
- }
602
- function wt(t) {
603
- let n = Number(t);
604
- return Number.isFinite(n) ? (n > 1 && (n = n / 100), n < 0 ? 0 : n) : null;
605
- }
606
- function Pt(t) {
607
- const n = Number(t);
608
- return Number.isFinite(n) ? n : null;
609
- }
610
- function G(t) {
611
- const n = Number(t).toString(16);
612
- return n.length === 1 ? "0" + n : n;
613
- }
614
- function Tt(t, n, e, s = 1) {
615
- t /= 360, n /= 100, e /= 100;
616
- let r, o, c;
617
- if (n === 0)
618
- r = o = c = e;
619
- else {
620
- const i = (u, f, h) => (h < 0 && (h += 1), h > 1 && (h -= 1), h < 0.16666666666666666 ? u + (f - u) * 6 * h : h < 0.5 ? f : h < 0.6666666666666666 ? u + (f - u) * (0.6666666666666666 - h) * 6 : u), l = e < 0.5 ? e * (1 + n) : e + n - e * n, a = 2 * e - l;
621
- r = i(a, l, t + 1 / 3), o = i(a, l, t), c = i(a, l, t - 1 / 3);
622
- }
623
- return [
624
- Math.round(r * 255),
625
- Math.round(o * 255),
626
- Math.round(c * 255),
627
- s
628
- ];
629
- }
630
- function fn(t, n) {
631
- const e = t.length === 9 ? t.substring(0, 7) : t, s = t.length === 9 ? t.substring(7, 9) : null, r = (f) => ({
632
- r: parseInt(f.substring(1, 3), 16),
633
- g: parseInt(f.substring(3, 5), 16),
634
- b: parseInt(f.substring(5, 7), 16)
635
- }), o = ({ r: f, g: h, b: d }) => {
636
- f /= 255, h /= 255, d /= 255;
637
- const g = Math.max(f, h, d), p = Math.min(f, h, d);
638
- let m, A, F = (g + p) / 2;
639
- if (g === p)
640
- m = A = 0;
641
- else {
642
- const b = g - p;
643
- switch (A = F > 0.5 ? b / (2 - g - p) : b / (g + p), g) {
644
- case f:
645
- m = (h - d) / b + (h < d ? 6 : 0);
646
- break;
647
- case h:
648
- m = (d - f) / b + 2;
649
- break;
650
- case d:
651
- m = (f - h) / b + 4;
652
- break;
653
- }
654
- m /= 6;
655
- }
656
- return { h: m, s: A, l: F };
657
- }, c = ({ h: f, s: h, l: d }) => {
658
- let g, p, m;
659
- if (h === 0)
660
- g = p = m = d;
661
- else {
662
- const A = (S, L, R) => (R < 0 && (R += 1), R > 1 && (R -= 1), R < 0.16666666666666666 ? S + (L - S) * 6 * R : R < 0.5 ? L : R < 0.6666666666666666 ? S + (L - S) * (0.6666666666666666 - R) * 6 : S), F = d < 0.5 ? d * (1 + h) : d + h - d * h, b = 2 * d - F;
663
- g = A(b, F, f + 1 / 3), p = A(b, F, f), m = A(b, F, f - 1 / 3);
664
- }
665
- return {
666
- r: Math.round(g * 255),
667
- g: Math.round(p * 255),
668
- b: Math.round(m * 255)
669
- };
670
- }, i = r(e || "#000000"), l = o(i);
671
- l.h += n, l.h = (l.h + 1) % 1;
672
- const a = c(l);
673
- return `#${(a.r << 16 | a.g << 8 | a.b).toString(16).padStart(6, "0")}` + (s || "");
674
- }
675
- function kt({
676
- centerX: t,
677
- centerY: n,
678
- outerPoints: e,
679
- radius: s,
680
- rotation: r
681
- }) {
682
- const o = Math.PI / e, c = r;
683
- let i = "";
684
- const l = [];
685
- for (let a = 0; a < e * 2; a += 1) {
686
- let u = t + Math.cos(a * o + c) * s, f = n + Math.sin(a * o + c) * s;
687
- i += `${u},${f} `, l.push({ x: u, y: f });
688
- }
689
- return {
690
- path: `M${i}Z`,
691
- coordinates: l
692
- };
693
- }
694
- function hn({ plot: t, radius: n, sides: e, rotation: s = 0 }) {
695
- const r = t.x, o = t.y, c = e / 2;
696
- return kt({
697
- centerX: r,
698
- centerY: o,
699
- outerPoints: c,
700
- radius: n + 1,
701
- rotation: s
702
- });
703
- }
704
- function Yt({
705
- centerX: t,
706
- centerY: n,
707
- innerCirclePoints: e,
708
- innerRadius: s,
709
- outerRadius: r
710
- }) {
711
- const o = Math.PI / e, c = 60, i = e * 2;
712
- let l = "";
713
- for (let a = 0; a < i; a += 1) {
714
- let f = a % 2 == 0 ? r : s, h = t + Math.cos(a * o + c) * f, d = n + Math.sin(a * o + c) * f;
715
- l += `${h},${d} `;
716
- }
717
- return l;
718
- }
719
- function dn({ plot: t, radius: n, apexes: e = 5 }) {
720
- const s = t.x, r = t.y, o = e, c = n * 3.5 / o, l = c * 2;
721
- return Yt({
722
- centerX: s,
723
- centerY: r,
724
- innerCirclePoints: o,
725
- innerRadius: c,
726
- outerRadius: l
727
- });
728
- }
729
- function gn({ series: t }) {
730
- if (!Array.isArray(t) || t.length === 0) return "";
731
- const n = Array.from(
732
- new Map(
733
- t.filter(
734
- (u) => u && Number.isFinite(u.x) && Number.isFinite(u.y)
735
- ).map((u) => [`${u.x},${u.y}`, { x: +u.x, y: +u.y }])
736
- ).values()
737
- );
738
- if (n.length === 0) return "";
739
- if (n.length === 1)
740
- return `${Math.round(n[0].x)},${Math.round(n[0].y)} `;
741
- const e = (u, f) => {
742
- const h = u.x - f.x, d = u.y - f.y;
743
- return h * h + d * d;
744
- }, s = (u, f, h) => (f.x - u.x) * (h.y - u.y) - (f.y - u.y) * (h.x - u.x);
745
- let r = n[0];
746
- for (const u of n)
747
- (u.x < r.x || u.x === r.x && u.y < r.y) && (r = u);
748
- const o = [r];
749
- let c = r;
750
- const i = n.length + 2;
751
- let l = 0;
752
- for (; !(++l > i); ) {
753
- let u = n[0] === c ? n[1] : n[0];
754
- for (const f of n) {
755
- if (f === c || f === u) continue;
756
- const h = s(c, u, f);
757
- h < 0 || (h > 0 || e(c, f) > e(c, u)) && (u = f);
758
- }
759
- if (u === r) break;
760
- o.push(u), c = u;
761
- }
762
- let a = "";
763
- for (const u of o)
764
- a += `${Math.round(u.x)},${Math.round(u.y)} `;
765
- return a;
766
- }
767
- function W(t) {
768
- return t * Math.PI / 180;
769
- }
770
- function v(t, n, e) {
771
- return Math.min(Math.max(t, n), e);
772
- }
773
- function Ht(t) {
774
- const n = t.trim().match(
775
- /^rgba?\(\s*([+\-]?\d+)\s*,\s*([+\-]?\d+)\s*,\s*([+\-]?\d+)\s*(?:,\s*([+\-]?[\d.]+)\s*)?\)$/i
776
- );
777
- if (!n) return null;
778
- const e = v(Number.parseInt(n[1], 10), 0, 255), s = v(Number.parseInt(n[2], 10), 0, 255), r = v(Number.parseInt(n[3], 10), 0, 255), o = n[4] === void 0 ? 1 : v(Number.parseFloat(n[4]), 0, 1);
779
- return { red: e, green: s, blue: r, alpha: o };
780
- }
781
- function Ut(t) {
782
- const n = t.trim();
783
- if (!n.startsWith("#")) return null;
784
- const e = n.slice(1);
785
- if (e.length === 3) {
786
- const s = Number.parseInt(e[0] + e[0], 16), r = Number.parseInt(e[1] + e[1], 16), o = Number.parseInt(e[2] + e[2], 16);
787
- return { red: s, green: r, blue: o, alpha: 1 };
788
- }
789
- if (e.length === 6) {
790
- const s = Number.parseInt(e.slice(0, 2), 16), r = Number.parseInt(e.slice(2, 4), 16), o = Number.parseInt(e.slice(4, 6), 16);
791
- return { red: s, green: r, blue: o, alpha: 1 };
792
- }
793
- if (e.length === 8) {
794
- const s = Number.parseInt(e.slice(0, 2), 16), r = Number.parseInt(e.slice(2, 4), 16), o = Number.parseInt(e.slice(4, 6), 16), c = Number.parseInt(e.slice(6, 8), 16) / 255;
795
- return { red: s, green: r, blue: o, alpha: c };
796
- }
797
- return null;
798
- }
799
- function Gt(t) {
800
- const n = t.trim().match(
801
- /^oklch\(\s*([+\-]?[\d.]+%?)\s+([+\-]?[\d.]+)\s+([+\-]?[\d.]+)(?:\s*\/\s*([+\-]?[\d.]+%?))?\s*\)$/i
802
- );
803
- if (!n) return null;
804
- const e = n[1], s = n[2], r = n[3], o = n[4], c = e.endsWith("%") ? v(Number.parseFloat(e) / 100, 0, 1) : v(Number.parseFloat(e), 0, 1), i = Math.max(0, Number.parseFloat(s)), l = Number.parseFloat(r), a = o ? o.endsWith("%") ? v(Number.parseFloat(o) / 100, 0, 1) : v(Number.parseFloat(o), 0, 1) : 1, u = l * Math.PI / 180, f = i * Math.cos(u), h = i * Math.sin(u), d = c + 0.3963377774 * f + 0.2158037573 * h, g = c - 0.1055613458 * f - 0.0638541728 * h, p = c - 0.0894841775 * f - 1.291485548 * h, m = d * d * d, A = g * g * g, F = p * p * p;
805
- let b = 4.0767416621 * m - 3.3077115913 * A + 0.2309699292 * F, S = -1.2684380046 * m + 2.6097574011 * A - 0.3413193965 * F, L = -0.0041960863 * m - 0.7034186147 * A + 1.707614701 * F;
806
- b = v(b, 0, 1), S = v(S, 0, 1), L = v(L, 0, 1);
807
- const R = (x) => {
808
- const $ = x <= 31308e-7 ? 12.92 * x : 1.055 * Math.pow(x, 0.4166666666666667) - 0.055;
809
- return v(Math.round($ * 255), 0, 255);
810
- };
811
- return {
812
- red: R(b),
813
- green: R(S),
814
- blue: R(L),
815
- alpha: a
816
- };
817
- }
818
- function vt(t, n, e) {
819
- const s = t / 255, r = n / 255, o = e / 255, c = (u) => u <= 0.03928 ? u / 12.92 : Math.pow((u + 0.055) / 1.055, 2.4), i = c(s), l = c(r), a = c(o);
820
- return 0.2126 * i + 0.7152 * l + 0.0722 * a;
821
- }
822
- function pn(t) {
823
- if (!t) return "#000000";
824
- const n = Ht(t), e = Ut(t), s = Gt(t), r = n ?? e ?? s;
825
- if (!r)
826
- return "#000000";
827
- const o = vt(
828
- r.red,
829
- r.green,
830
- r.blue
831
- );
832
- return (r.alpha < 1 ? r.alpha * o + (1 - r.alpha) * 1 : o) > 0.3 ? "#000000" : "#FFFFFF";
833
- }
834
- function z(t) {
835
- return t !== null && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && (t.constructor === Object || t.constructor == null);
836
- }
837
- function rt(t) {
838
- return !!t && (t.__v_isRef || t.__v_isReactive || t.__v_isReadonly || t.effect || t.dep || t.deps || t.subs);
839
- }
840
- function dt(t) {
841
- return t === "" ? "#000000" : t === "transparent" ? "#FFFFFF00" : mt(t) ?? t;
842
- }
843
- function st(t, n = /* @__PURE__ */ new WeakSet()) {
844
- const e = Et(t);
845
- if (!z(e) || n.has(e)) return e;
846
- n.add(e);
847
- for (const s in e) {
848
- const r = it(e[s]) ? ct(e[s]) : e[s];
849
- if (s === "color" || s === "backgroundColor") {
850
- typeof r == "string" && (e[s] = dt(r));
851
- continue;
852
- }
853
- if (s === "stroke") {
854
- typeof r == "string" ? e[s] = dt(r) : z(r) && !rt(r) && st(r, n);
855
- continue;
856
- }
857
- if (Array.isArray(r)) {
858
- for (const o of r)
859
- z(o) && !rt(o) && st(o, n);
860
- continue;
861
- }
862
- z(r) && !rt(r) && st(r, n);
863
- }
864
- return e;
865
- }
866
- function mn(t) {
867
- const n = t?.length ?? 0;
868
- if (n < 2) return { x1: 0, y1: 0, x2: 0, y2: 0, slope: 0, trend: 0 };
869
- let e = 0, s = 0, r = 0, o = 0;
870
- for (const { x: M, y: D } of t)
871
- e += M, s += D, r += M * D, o += M * M;
872
- const c = n * o - e * e || 1, i = (n * r - e * s) / c, l = (s - i * e) / n, a = t[0].x, u = t[n - 1].x, f = i * a + l, h = i * u + l;
873
- let d = 0, g = 0, p = 0, m = 0;
874
- for (let M = 0; M < n; M += 1)
875
- d += M, g += t[M].value, p += M * t[M].value, m += M * M;
876
- const A = n * m - d * d || 1, F = (n * p - d * g) / A, b = (g - F * d) / n, S = b, L = F * (n - 1) + b, x = Math.max(
877
- Math.abs(S),
878
- Math.abs(g / n),
879
- Math.abs(L),
880
- 1e-9
881
- ), $ = (L - S) / x;
882
- return { x1: a, y1: f, x2: u, y2: h, slope: i, trend: $ };
883
- }
884
- function Fn(t) {
885
- const n = Math.floor(t.length / 2), e = [...t].sort((s, r) => s - r);
886
- return t.length % 2 !== 0 ? e[n] : (e[n - 1] + e[n]) / 2;
887
- }
888
- function En(t) {
889
- let n = [];
890
- for (let e = 0; e < t.length; e += 1)
891
- n.push(`${E(t[e].x)},${E(t[e].y)} `);
892
- return n.join(" ").trim();
893
- }
894
- function An(t) {
895
- if (t.length < 2) return "0,0";
896
- const n = t.length - 1, e = [`${E(t[0].x)},${E(t[0].y)}`], s = [], r = [], o = [], c = [];
897
- for (let i = 0; i < n; i += 1)
898
- s[i] = t[i + 1].x - t[i].x, r[i] = t[i + 1].y - t[i].y, o[i] = r[i] / s[i];
899
- c[0] = o[0], c[n] = o[n - 1];
900
- for (let i = 1; i < n; i += 1)
901
- if (o[i - 1] * o[i] <= 0)
902
- c[i] = 0;
903
- else {
904
- const l = 2 * o[i - 1] * o[i] / (o[i - 1] + o[i]);
905
- c[i] = l;
906
- }
907
- for (let i = 0; i < n; i += 1) {
908
- const l = t[i].x, a = t[i].y, u = t[i + 1].x, f = t[i + 1].y, h = c[i], d = c[i + 1], g = l + (u - l) / 3, p = a + h * (u - l) / 3, m = u - (u - l) / 3, A = f - d * (u - l) / 3;
909
- e.push(
910
- `C ${E(g)},${E(p)} ${E(m)},${E(A)} ${E(u)},${E(f)}`
911
- );
912
- }
913
- return e.join(" ");
914
- }
915
- function yn(t, n = 0.2) {
916
- function e(c, i) {
917
- const l = i.x - c.x, a = i.y - c.y;
918
- return {
919
- length: Math.sqrt(Math.pow(l, 2) + Math.pow(a, 2)),
920
- angle: Math.atan2(a, l)
921
- };
922
- }
923
- function s(c, i, l, a) {
924
- const h = e(i || c, l || c), d = h.angle + (a ? Math.PI : 0), g = h.length * n, p = c.x + Math.cos(d) * g, m = c.y + Math.sin(d) * g;
925
- return { x: p, y: m };
926
- }
927
- function r(c, i, l) {
928
- const a = s(l[i - 1], l[i - 2], c), u = s(c, l[i - 1], l[i + 1], !0);
929
- return `C ${E(a.x)},${E(a.y)} ${E(u.x)},${E(u.y)} ${E(c.x)},${E(c.y)}`;
930
- }
931
- return t.filter((c) => !!c).reduce(
932
- (c, i, l, a) => l === 0 ? `${E(i.x)},${E(i.y)} ` : `${c} ${r(i, l, a)} `,
933
- ""
934
- );
935
- }
936
- function xn() {
937
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(
938
- /[xy]/g,
939
- function(t) {
940
- const n = Math.random() * 16 | 0;
941
- return (t == "x" ? n : n & 3 | 8).toString(16);
942
- }
943
- );
944
- }
945
- function _(t, n = !1, e = 16, s = !1) {
946
- let r = 0, o = n ? e : 0, c = s ? "center" : "middle";
947
- return t.center.endX > t.cx ? (r = t.center.endX + e + o, c = s ? "left" : "start") : t.center.endX < t.cx ? (r = t.center.endX - e - o, c = s ? "right" : "end") : (r = t.centerX + o, c = s ? "center" : "middle"), { x: r, anchor: c };
948
- }
949
- function Z(t, n = 16, e = 16) {
950
- return t.center.endY > t.cy ? t.center.endY + e : t.center.endY < t.cy ? t.center.endY - n : t.center.endY;
951
- }
952
- function bn({
953
- initX: t,
954
- initY: n,
955
- offset: e,
956
- centerX: s,
957
- centerY: r
958
- }) {
959
- const o = Math.atan2(n - r, t - s);
960
- return {
961
- x: t + e * Math.cos(o),
962
- y: n + e * Math.sin(o)
963
- };
964
- }
965
- function Xt(t) {
966
- const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
967
- n.setAttribute("d", t);
968
- const e = n.getTotalLength();
969
- let s = 0, r = e, o = e / 2;
970
- const c = 0.01;
971
- for (; r - s > c; ) {
972
- const a = (s + r) / 2, f = n.getPointAtLength(a).x;
973
- if (Math.abs(f - o) < c) {
974
- o = a;
975
- break;
976
- } else f < o ? s = a : r = a;
977
- }
978
- const { x: i, y: l } = n.getPointAtLength(o);
979
- return { x: i, y: l };
980
- }
981
- function Cn(t, n = !1, e = 16, s = 16, r = !1, o = !1, c = 0, i = 12, l = !1) {
982
- const { x: a } = Xt(t.path), u = `${_(t).x},${Z(t, e, s) - 4} `;
983
- let f = "", h, d;
984
- a > t.cx ? (h = _(t).x - i, d = Z(t, e, s) - 4, f = `${h},${d}`) : a < t.cx ? (h = _(t).x + i, d = Z(t, e, s) - 4, f = `${h},${d}`) : (h = _(t).x + i, d = Z(t, e, s) - 4, f = `${h},${d}`);
985
- const g = ` ${t.center.endX},${t.center.endY}`;
986
- return l ? o ? `M${f} Q${f} ${g}` : `M${u} Q${f} ${g}` : `M${o ? "" : u}${f}${g}`;
987
- }
988
- function Mn(t) {
989
- return ![null, void 0, NaN].includes(t);
990
- }
991
- function $n(t, n) {
992
- return [...t].map((e) => e[n]).reduce((e, s) => e + s, 0);
993
- }
994
- function Dn(t, n = !0, e = !1) {
995
- if (!t.length) return "M0,0";
996
- let s = "";
997
- return t.forEach((r) => {
998
- if (!r) return "";
999
- s += `${r.x},${r.y} `;
1000
- }), e ? s.trim() : `M${s}${n ? "Z" : ""}`;
1001
- }
1002
- function Sn({ csvContent: t, title: n = "vue-data-ui" }) {
1003
- const e = encodeURI(t), s = document.createElement("a");
1004
- s.setAttribute("href", e), s.setAttribute("download", `${n}.csv`), document.body.appendChild(s), s.click(), s.remove(), window.URL.revokeObjectURL(e);
1005
- }
1006
- function Bn(t) {
1007
- return `data:text/csv;charset=utf-8,${t.map((n) => n.join(",")).join(`
1008
- `)}`;
1009
- }
1010
- function Nn(t, n) {
1011
- if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
1012
- return console.warn("lightenHexColor : Invalid hex color format"), "#000000";
1013
- let e = t.replace("#", "");
1014
- e.length === 3 && (e = e.split("").map((u) => u + u).join(""));
1015
- const s = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), o = parseInt(e.substring(4, 6), 16), c = Math.min(255, s + (255 - s) * n), i = Math.min(255, r + (255 - r) * n), l = Math.min(255, o + (255 - o) * n), a = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(l).toString(16).padStart(2, "0")}`;
1016
- if (e.length === 8) {
1017
- const u = e.substring(6, 8);
1018
- return a + u;
1019
- }
1020
- return a;
1021
- }
1022
- function Rn(t, n) {
1023
- if (!/^#([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(t))
1024
- return console.warn("darkenHexColor: Invalid hex color format"), "#000000";
1025
- let e = t.replace("#", "");
1026
- e.length === 3 && (e = e.split("").map((u) => u + u).join(""));
1027
- const s = parseInt(e.substring(0, 2), 16), r = parseInt(e.substring(2, 4), 16), o = parseInt(e.substring(4, 6), 16), c = Math.max(0, s - s * n), i = Math.max(0, r - r * n), l = Math.max(0, o - o * n), a = `#${Math.round(c).toString(16).padStart(2, "0")}${Math.round(i).toString(16).padStart(2, "0")}${Math.round(l).toString(16).padStart(2, "0")}`;
1028
- if (e.length === 8) {
1029
- const u = e.substring(6, 8);
1030
- return a + u;
1031
- }
1032
- return a;
1033
- }
1034
- function q(t, n) {
1035
- const e = Math.floor(Math.log10(t)), s = t / Math.pow(10, e);
1036
- let r;
1037
- return n ? s < 1.5 ? r = 1 : s < 3 ? r = 2 : s < 7 ? r = 5 : r = 10 : s <= 1 ? r = 1 : s <= 2 ? r = 2 : s <= 5 ? r = 5 : r = 10, r * Math.pow(10, e);
1038
- }
1039
- function In(t, n, e, s = !1) {
1040
- const r = s ? n - t : q(n - t, !1), o = s ? r / (e - 1) : q(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o, l = [];
1041
- for (let a = c; a <= i; a += o)
1042
- l.push(a);
1043
- return {
1044
- min: c,
1045
- max: i,
1046
- tickSize: o,
1047
- ticks: l
1048
- };
1049
- }
1050
- function Ln(t, n, e, s = !1) {
1051
- const r = s ? n - t : q(n - t, !1), o = s ? r / (e - 1) : q(r / (e - 1), !0), c = Math.floor(t / o) * o, i = Math.ceil(n / o) * o;
1052
- let l = [], a = c;
1053
- for (; a <= i; )
1054
- a >= t && a <= n && l.push(a), a += o;
1055
- return l[0] !== t && (l[0] = t), l[l.length - 1] !== n && (l[l.length - 1] = n), {
1056
- min: t,
1057
- max: n,
1058
- tickSize: o,
1059
- ticks: l
1060
- };
1061
- }
1062
- function On(t, n, e, s, r) {
1063
- const o = (h) => {
1064
- let d = parseInt(h.substring(1, 3), 16), g = parseInt(h.substring(3, 5), 16), p = parseInt(h.substring(5, 7), 16), m = 1;
1065
- return h.length === 9 && (m = parseInt(h.substring(7, 9), 16) / 255), { r: d, g, b: p, a: m };
1066
- }, c = ({ r: h, g: d, b: g, a: p }) => {
1067
- const m = (F) => F.toString(16).padStart(2, "0"), A = `#${m(h)}${m(d)}${m(g)}`;
1068
- if (p !== 1) {
1069
- const F = Math.round(p * 255).toString(16).padStart(2, "0");
1070
- return A + F;
1071
- }
1072
- return A;
1073
- }, i = o(t), l = o(n);
1074
- r = Math.min(Math.max(r, e), s);
1075
- const a = (r - e) / (s - e), u = {
1076
- r: Math.round(
1077
- i.r + (l.r - i.r) * a
1078
- ),
1079
- g: Math.round(
1080
- i.g + (l.g - i.g) * a
1081
- ),
1082
- b: Math.round(
1083
- i.b + (l.b - i.b) * a
1084
- )
1085
- }, f = i.a + (l.a - i.a) * a;
1086
- return c({ ...u, a: f });
1087
- }
1088
- function wn({
1089
- p: t = "",
1090
- v: n,
1091
- s: e = "",
1092
- r: s = 0,
1093
- space: r = !1,
1094
- isAnimating: o = !1,
1095
- regex: c = /[^%]/g,
1096
- replacement: i = "-",
1097
- locale: l = null
1098
- }) {
1099
- const a = l ? Number(Number(n).toFixed(s)).toLocaleString(l) : Number(Number(n).toFixed(s)).toLocaleString(), u = a === 1 / 0 ? "∞" : a === -1 / 0 ? "-∞" : a, f = `${t ?? ""}${r ? " " : ""}${[void 0, null].includes(n) ? "-" : u}${r ? " " : ""}${e ?? ""}`;
1100
- return o ? f.replace(c, i) : f;
1101
- }
1102
- function Pn({ source: t, length: n = 3 }) {
1103
- if (!t && t !== 0)
1104
- return "";
1105
- t = String(t);
1106
- const e = t.length > 1 ? t.split(" ") : [t];
1107
- if (e.length === 1 && e[0].length === 1)
1108
- return String(t).toUpperCase();
1109
- if (e.length === 1)
1110
- return t.slice(0, n).toUpperCase();
1111
- {
1112
- const s = [];
1113
- return e.forEach((r, o) => {
1114
- o < n && s.push(r.slice(0, 1));
1115
- }), s.join().replaceAll(",", "").toUpperCase();
1116
- }
1117
- }
1118
- function Tn(t) {
1119
- return !!t && typeof t == "function";
1120
- }
1121
- function kn(t) {
1122
- return typeof t.apply(null, arguments) == "string";
1123
- }
1124
- function Yn(t) {
1125
- return Array.isArray(t) ? t.length === 0 : t ? Object.keys(t).length === 0 : !0;
1126
- }
1127
- function Hn({
1128
- componentName: t,
1129
- type: n,
1130
- property: e = "",
1131
- index: s = "",
1132
- key: r = "",
1133
- warn: o = !0,
1134
- debug: c = !0
1135
- }) {
1136
- if (!c) return;
1137
- const i = `
1138
- > ${$t[n].replace("#COMP#", t).replace("#ATTR#", e).replace("#INDX#", s).replace("#KEY#", r)}
1139
- `;
1140
- if (o)
1141
- console.warn(i);
1142
- else
1143
- throw new Error(i);
1144
- }
1145
- function jt({
1146
- points: t,
1147
- a: n,
1148
- b: e,
1149
- angleStep: s,
1150
- startX: r,
1151
- startY: o
1152
- }) {
1153
- const c = [];
1154
- for (let i = 0; i < t; i++) {
1155
- const l = s * i, a = n + e * l, u = a * Math.cos(l) + r, f = a * Math.sin(l) + o;
1156
- c.push({ x: u, y: f });
1157
- }
1158
- return c;
1159
- }
1160
- function Wt(t) {
1161
- let n = 1 / 0, e = 1 / 0, s = -1 / 0, r = -1 / 0;
1162
- for (const o of t)
1163
- o.x < n && (n = o.x), o.y < e && (e = o.y), o.x > s && (s = o.x), o.y > r && (r = o.y);
1164
- return {
1165
- minX: n,
1166
- minY: e,
1167
- maxX: s,
1168
- maxY: r,
1169
- width: s - n || 1,
1170
- height: r - e || 1
1171
- };
1172
- }
1173
- function Kt(t) {
1174
- if (!t.length) return "";
1175
- let n = `M${t[0].x} ${t[0].y}`;
1176
- for (let e = 1; e < t.length - 2; e += 2) {
1177
- const s = t[e - 1], r = t[e], o = t[e + 1], c = t[e + 2], i = (s.x + r.x) / 2, l = (s.y + r.y) / 2, a = (r.x + o.x) / 2, u = (r.y + o.y) / 2, f = (o.x + c.x) / 2, h = (o.y + c.y) / 2;
1178
- n += ` C${i} ${l}, ${a} ${u}, ${f} ${h}`;
1179
- }
1180
- return n;
1181
- }
1182
- function Un({
1183
- maxPoints: t,
1184
- a: n = 6,
1185
- b: e = 6,
1186
- angleStep: s = 0.07,
1187
- startX: r,
1188
- startY: o,
1189
- boxWidth: c,
1190
- boxHeight: i,
1191
- padding: l = 12
1192
- }) {
1193
- const a = jt({
1194
- points: t,
1195
- a: n,
1196
- b: e,
1197
- angleStep: s,
1198
- startX: 0,
1199
- startY: 0
1200
- }), { minX: u, minY: f, maxX: h, maxY: d, width: g, height: p } = Wt(a), m = (u + h) / 2, A = (f + d) / 2, F = Math.max(1, c - 2 * l), b = Math.max(1, i - 2 * l), S = Math.min(F / g, b / p), L = r - m * S, R = o - A * S;
1201
- return function($) {
1202
- const M = Math.max(2, Math.min(Math.round($), a.length)), D = a.slice(0, M).map((y) => ({ x: y.x * S + L, y: y.y * S + R }));
1203
- return Kt(D);
1204
- };
1205
- }
1206
- function Gn({
1207
- datasetObject: t,
1208
- requiredAttributes: n
1209
- }) {
1210
- let e = [];
1211
- return n.forEach((s) => {
1212
- Object.hasOwn(t, s) || e.push(s);
1213
- }), e;
1214
- }
1215
- const gt = {
1216
- ALICEBLUE: "#F0F8FF",
1217
- ANTIQUEWHITE: "#FAEBD7",
1218
- AQUA: "#00FFFF",
1219
- AQUAMARINE: "#7FFFD4",
1220
- AZURE: "#F0FFFF",
1221
- BEIGE: "#F5F5DC",
1222
- BISQUE: "#FFE4C4",
1223
- BLACK: "#000000",
1224
- BLANCHEDALMOND: "#FFEBCD",
1225
- BLUE: "#0000FF",
1226
- BLUEVIOLET: "#8A2BE2",
1227
- BROWN: "#A52A2A",
1228
- BURLYWOOD: "#DEB887",
1229
- CADETBLUE: "#5F9EA0",
1230
- CHARTREUSE: "#7FFF00",
1231
- CHOCOLATE: "#D2691E",
1232
- CORAL: "#FF7F50",
1233
- CORNFLOWERBLUE: "#6495ED",
1234
- CORNSILK: "#FFF8DC",
1235
- CRIMSON: "#DC143C",
1236
- CYAN: "#00FFFF",
1237
- DARKBLUE: "#00008B",
1238
- DARKCYAN: "#008B8B",
1239
- DARKGOLDENROD: "#B8860B",
1240
- DARKGREY: "#A9A9A9",
1241
- DARKGREEN: "#006400",
1242
- DARKKHAKI: "#BDB76B",
1243
- DARKMAGENTA: "#8B008B",
1244
- DARKOLIVEGREEN: "#556B2F",
1245
- DARKORANGE: "#FF8C00",
1246
- DARKORCHID: "#9932CC",
1247
- DARKRED: "#8B0000",
1248
- DARKSALMON: "#E9967A",
1249
- DARKSEAGREEN: "#8FBC8F",
1250
- DARKSLATEBLUE: "#483D8B",
1251
- DARKSLATEGREY: "#2F4F4F",
1252
- DARKTURQUOISE: "#00CED1",
1253
- DARKVIOLET: "#9400D3",
1254
- DEEPPINK: "#FF1493",
1255
- DEEPSKYBLUE: "#00BFFF",
1256
- DIMGRAY: "#696969",
1257
- DODGERBLUE: "#1E90FF",
1258
- FIREBRICK: "#B22222",
1259
- FLORALWHITE: "#FFFAF0",
1260
- FORESTGREEN: "#228B22",
1261
- FUCHSIA: "#FF00FF",
1262
- GAINSBORO: "#DCDCDC",
1263
- GHOSTWHITE: "#F8F8FF",
1264
- GOLD: "#FFD700",
1265
- GOLDENROD: "#DAA520",
1266
- GREY: "#808080",
1267
- GREEN: "#008000",
1268
- GREENYELLOW: "#ADFF2F",
1269
- HONEYDEW: "#F0FFF0",
1270
- HOTPINK: "#FF69B4",
1271
- INDIANRED: "#CD5C5C",
1272
- INDIGO: "#4B0082",
1273
- IVORY: "#FFFFF0",
1274
- KHAKI: "#F0E68C",
1275
- LAVENDER: "#E6E6FA",
1276
- LAVENDERBLUSH: "#FFF0F5",
1277
- LAWNGREEN: "#7CFC00",
1278
- LEMONCHIFFON: "#FFFACD",
1279
- LIGHTBLUE: "#ADD8E6",
1280
- LIGHTCORAL: "#F08080",
1281
- LIGHTCYAN: "#E0FFFF",
1282
- LIGHTGOLDENRODYELLOW: "#FAFAD2",
1283
- LIGHTGREY: "#D3D3D3",
1284
- LIGHTGREEN: "#90EE90",
1285
- LIGHTPINK: "#FFB6C1",
1286
- LIGHTSALMON: "#FFA07A",
1287
- LIGHTSEAGREEN: "#20B2AA",
1288
- LIGHTSKYBLUE: "#87CEFA",
1289
- LIGHTSLATEGREY: "#778899",
1290
- LIGHTSTEELBLUE: "#B0C4DE",
1291
- LIGHTYELLOW: "#FFFFE0",
1292
- LIME: "#00FF00",
1293
- LIMEGREEN: "#32CD32",
1294
- LINEN: "#FAF0E6",
1295
- MAGENTA: "#FF00FF",
1296
- MAROON: "#800000",
1297
- MEDIUMAQUAMARINE: "#66CDAA",
1298
- MEDIUMBLUE: "#0000CD",
1299
- MEDIUMORCHID: "#BA55D3",
1300
- MEDIUMPURPLE: "#9370D8",
1301
- MEDIUMSEAGREEN: "#3CB371",
1302
- MEDIUMSLATEBLUE: "#7B68EE",
1303
- MEDIUMSPRINGGREEN: "#00FA9A",
1304
- MEDIUMTURQUOISE: "#48D1CC",
1305
- MEDIUMVIOLETRED: "#C71585",
1306
- MIDNIGHTBLUE: "#191970",
1307
- MINTCREAM: "#F5FFFA",
1308
- MISTYROSE: "#FFE4E1",
1309
- MOCCASIN: "#FFE4B5",
1310
- NAVAJOWHITE: "#FFDEAD",
1311
- NAVY: "#000080",
1312
- OLDLACE: "#FDF5E6",
1313
- OLIVE: "#808000",
1314
- OLIVEDRAB: "#6B8E23",
1315
- ORANGE: "#FFA500",
1316
- ORANGERED: "#FF4500",
1317
- ORCHID: "#DA70D6",
1318
- PALEGOLDENROD: "#EEE8AA",
1319
- PALEGREEN: "#98FB98",
1320
- PALETURQUOISE: "#AFEEEE",
1321
- PALEVIOLETRED: "#D87093",
1322
- PAPAYAWHIP: "#FFEFD5",
1323
- PEACHPUFF: "#FFDAB9",
1324
- PERU: "#CD853F",
1325
- PINK: "#FFC0CB",
1326
- PLUM: "#DDA0DD",
1327
- POWDERBLUE: "#B0E0E6",
1328
- PURPLE: "#800080",
1329
- RED: "#FF0000",
1330
- ROSYBROWN: "#BC8F8F",
1331
- ROYALBLUE: "#4169E1",
1332
- SADDLEBROWN: "#8B4513",
1333
- SALMON: "#FA8072",
1334
- SANDYBROWN: "#F4A460",
1335
- SEAGREEN: "#2E8B57",
1336
- SEASHELL: "#FFF5EE",
1337
- SIENNA: "#A0522D",
1338
- SILVER: "#C0C0C0",
1339
- SKYBLUE: "#87CEEB",
1340
- SLATEBLUE: "#6A5ACD",
1341
- SLATEGREY: "#708090",
1342
- SNOW: "#FFFAFA",
1343
- SPRINGGREEN: "#00FF7F",
1344
- STEELBLUE: "#4682B4",
1345
- TAN: "#D2B48C",
1346
- TEAL: "#008080",
1347
- THISTLE: "#D8BFD8",
1348
- TOMATO: "#FF6347",
1349
- TURQUOISE: "#40E0D0",
1350
- VIOLET: "#EE82EE",
1351
- WHEAT: "#F5DEB3",
1352
- WHITE: "#FFFFFF",
1353
- WHITESMOKE: "#F5F5F5",
1354
- YELLOW: "#FFFF00",
1355
- YELLOWGREEN: "#9ACD32",
1356
- REBECCAPURPLE: "#663399"
1357
- };
1358
- function Vt(t) {
1359
- const n = it?.(t) ? ct(t) : t;
1360
- if (typeof n != "string") return n;
1361
- const e = n.trim();
1362
- if (e === "" || e[0] === "#") return e;
1363
- if (e.toLowerCase() === "transparent") return "#FFFFFF00";
1364
- const s = e.toUpperCase(), r = s.replace(/GRAY/g, "GREY");
1365
- return gt[s] || gt[r] || e;
1366
- }
1367
- const ot = "http://www.w3.org/2000/svg";
1368
- function vn(t) {
1369
- if (t.length < 2)
1370
- return 0;
1371
- let n = 0, e = 0;
1372
- for (let r = 1; r < t.length; r++) {
1373
- const o = t[r - 1], c = t[r];
1374
- if ([null, void 0, 0, 1 / 0, -1 / 0].includes(o))
1375
- continue;
1376
- const i = (c - o) / Math.abs(o) * 100;
1377
- n += i, e++;
1378
- }
1379
- return e === 0 ? 0 : n / e;
1380
- }
1381
- function zt({
1382
- content: t,
1383
- fontSize: n,
1384
- fill: e,
1385
- x: s,
1386
- y: r,
1387
- translateY: o = !1
1388
- }) {
1389
- const c = t.split(`
1390
- `), l = c.length * n, a = o ? (l - n) / 2 : 0;
1391
- return c.map(
1392
- (u, f) => `<tspan x="${s}" y="${r - a + f * n}" fill="${e}">${u}</tspan>`
1393
- ).join("");
1394
- }
1395
- function Xn(t) {
1396
- return at(t) ? (zt({
1397
- content: t,
1398
- fontSize: 1,
1399
- fill: "",
1400
- x: 0,
1401
- y: 0
1402
- }).match(/<tspan\b/g) || []).length : 1;
1403
- }
1404
- function jn({
1405
- content: t,
1406
- fontSize: n,
1407
- fill: e,
1408
- x: s,
1409
- autoOffset: r = !1
1410
- }) {
1411
- const o = t.split(`
1412
- `), c = r ? (o.length - 1) * n / 2 : 0;
1413
- return o.map((i, l) => {
1414
- const a = l === 0 ? -c : n;
1415
- return `<tspan x="${s}" dy="${a}" fill="${e}">${i}</tspan>`;
1416
- }).join("");
1417
- }
1418
- function Wn({ content: t, fontSize: n, fill: e, maxWords: s, x: r, y: o }) {
1419
- function c(a, u) {
1420
- const f = a.split(" "), h = [];
1421
- for (let d = 0; d < f.length; d += u)
1422
- h.push(f.slice(d, d + u).join(" "));
1423
- return h;
1424
- }
1425
- let i = "";
1426
- return c(t, s).forEach((a, u) => {
1427
- const f = `<tspan x="${r}" y="${o + u * n}" fill="${e}">${a}</tspan>`;
1428
- i += f;
1429
- }), i;
1430
- }
1431
- function Kn(t) {
1432
- return t.length ? t.map((n) => mt(n)) : [];
1433
- }
1434
- function Vn(t, n = null) {
1435
- const e = t.replace(/[\p{P}\p{S}]+/gu, " ").trim(), c = (/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Thai}\p{Script=Lao}\p{Script=Khmer}\p{Script=Tibetan}\p{Script=Myanmar}\p{Script=Devanagari}]/u.test(
1436
- t
1437
- ) ? [...e] : e.split(/\s+/)).filter((i) => i.trim().length > 0).reduce((i, l) => (i[l] ? i[l] += 1 : i[l] = 1, i), {});
1438
- return Object.keys(c).map((i) => {
1439
- let l = i;
1440
- return typeof n == "function" && typeof n(i) == "string" && (l = n(i)), {
1441
- name: l,
1442
- value: c[i]
1443
- };
1444
- });
1445
- }
1446
- function zn(t) {
1447
- let n = t.reduce(
1448
- (i, l) => i + (l.stackRatio || 0),
1449
- 0
1450
- ), e = t.filter(
1451
- (i) => i.stackRatio === void 0
1452
- ).length, s = 1 - n, r = e > 0 ? s / e : 0, o = t.map((i) => ({
1453
- ...i,
1454
- stackRatio: i.stackRatio !== void 0 ? i.stackRatio : r
1455
- })), c = 0;
1456
- return o = o.map((i, l) => (c += i.stackRatio, {
1457
- ...i,
1458
- stackIndex: l,
1459
- cumulatedStackRatio: c
1460
- })), o;
1461
- }
1462
- function _n(t) {
1463
- function n(a, u, f, h) {
1464
- const d = f - a, g = h - u;
1465
- return Math.sqrt(d * d + g * g);
1466
- }
1467
- function e(a, u, f, h) {
1468
- let g = 0, p = a.x, m = a.y;
1469
- for (let A = 1; A <= 100; A += 1) {
1470
- const F = A / 100, b = 1 - F, S = b * b, L = F * F, R = S * b * a.x + 3 * S * F * u.x + 3 * b * L * f.x + L * F * h.x, x = S * b * a.y + 3 * S * F * u.y + 3 * b * L * f.y + L * F * h.y;
1471
- g += n(p, m, R, x), p = R, m = x;
1472
- }
1473
- return g;
1474
- }
1475
- const s = t.match(/[a-zA-Z][^a-zA-Z]*/g);
1476
- let r = 0, o = 0, c = 0, i = 0, l = 0;
1477
- return s.forEach((a) => {
1478
- const u = a[0], f = a.slice(1).trim().split(/[\s,]+/).map(Number);
1479
- let h = 0;
1480
- switch (u) {
1481
- case "M":
1482
- for (r = f[h++], o = f[h++], c = r, i = o; h < f.length; )
1483
- l += n(
1484
- r,
1485
- o,
1486
- f[h],
1487
- f[h + 1]
1488
- ), r = f[h++], o = f[h++];
1489
- break;
1490
- case "L":
1491
- for (; h < f.length; )
1492
- l += n(
1493
- r,
1494
- o,
1495
- f[h],
1496
- f[h + 1]
1497
- ), r = f[h++], o = f[h++];
1498
- break;
1499
- case "H":
1500
- for (; h < f.length; )
1501
- l += n(
1502
- r,
1503
- o,
1504
- f[h],
1505
- o
1506
- ), r = f[h++];
1507
- break;
1508
- case "V":
1509
- for (; h < f.length; )
1510
- l += n(
1511
- r,
1512
- o,
1513
- r,
1514
- f[h]
1515
- ), o = f[h++];
1516
- break;
1517
- case "C":
1518
- for (; h < f.length; )
1519
- l += e(
1520
- { x: r, y: o },
1521
- { x: f[h], y: f[h + 1] },
1522
- { x: f[h + 2], y: f[h + 3] },
1523
- { x: f[h + 4], y: f[h + 5] }
1524
- ), r = f[h + 4], o = f[h + 5], h += 6;
1525
- break;
1526
- case "Z":
1527
- l += n(r, o, c, i), r = c, o = i;
1528
- break;
1529
- }
1530
- }), l;
1531
- }
1532
- function Zn({
1533
- relator: t,
1534
- adjuster: n,
1535
- source: e,
1536
- threshold: s = 0,
1537
- fallback: r,
1538
- max: o = 24
1539
- }) {
1540
- const c = t / (n / e);
1541
- return c > o ? o : c < s ? r : c;
1542
- }
1543
- function Qn(t) {
1544
- return t.reduce((n, e) => (e.series.forEach((s, r) => {
1545
- ![void 0, null, 1 / 0, -1 / 0].includes(s) && !isNaN(s) && (n[r] = (n[r] || 0) + s);
1546
- }), n), []);
1547
- }
1548
- function _t(t, { value: n, config: e }) {
1549
- let s = !1, r = n;
1550
- if (typeof t == "function")
1551
- try {
1552
- r = t({ value: n, config: e }), ["number", "string"].includes(typeof r) ? s = !0 : r = n;
1553
- } catch (o) {
1554
- console.warn("Formatter could not be applied:", o), s = !1;
1555
- }
1556
- return {
1557
- isValid: s,
1558
- value: r
1559
- };
1560
- }
1561
- function qn(t, n, e, s) {
1562
- const { isValid: r, value: o } = _t(t, { value: n, config: s });
1563
- return r ? o : e;
1564
- }
1565
- function Jn(t, n) {
1566
- return n.split(".").every((e) => t !== null && typeof t == "object" && e in t ? (t = t[e], !0) : !1);
1567
- }
1568
- function te(t, n = [], e = !1) {
1569
- function s(o) {
1570
- return e && o === null ? null : typeof o == "string" && isNaN(Number(o)) || typeof o == "number" && isFinite(o) ? o : 0;
1571
- }
1572
- function r(o) {
1573
- if (Array.isArray(o))
1574
- return o.map((c) => r(c));
1575
- if (typeof o == "object" && o !== null) {
1576
- let c = { ...o };
1577
- return n.forEach((i) => {
1578
- c.hasOwnProperty(i) && ![
1579
- "NAME",
1580
- "name",
1581
- "TITLE",
1582
- "title",
1583
- "DESCRIPTION",
1584
- "description",
1585
- "LABEL",
1586
- "label",
1587
- "TIME",
1588
- "time",
1589
- "PERIOD",
1590
- "period",
1591
- "MONTH",
1592
- "month",
1593
- "YEAR",
1594
- "year",
1595
- "MONTHS",
1596
- "months",
1597
- "YEARS",
1598
- "years",
1599
- "DAY",
1600
- "day",
1601
- "DAYS",
1602
- "days",
1603
- "HOUR",
1604
- "hour",
1605
- "HOURS",
1606
- "hours"
1607
- ].includes(i) && Array.isArray(c[i]) && (c[i] = r(c[i]));
1608
- }), Object.fromEntries(
1609
- Object.entries(c).map(([i, l]) => [
1610
- i,
1611
- r(l)
1612
- ])
1613
- );
1614
- } else
1615
- return s(o);
1616
- }
1617
- return r(t);
1618
- }
1619
- function ne(t, n = 100) {
1620
- return t.length === 9 ? t.substring(0, 7) + ht[n] : t + ht[n];
1621
- }
1622
- function ee({
1623
- series: t,
1624
- center: n,
1625
- maxRadius: e,
1626
- hasGhost: s = !1
1627
- }) {
1628
- const o = 360 / (t.length - (s ? 1 : 0));
1629
- return t.map((i, l) => {
1630
- const u = i * e, f = l * o, h = f + o, d = f + o / 2, g = W(f) - W(90), p = W(h) - W(90), m = W(d) - W(90), A = n.x + u * Math.cos(g), F = n.y + u * Math.sin(g), b = n.x + u * Math.cos(p), S = n.y + u * Math.sin(p), L = n.x + u * Math.cos(m), R = n.y + u * Math.sin(m);
1631
- return {
1632
- path: `
1633
- M ${n.x} ${n.y}
1634
- L ${A} ${F}
1635
- A ${u} ${u} 0 0 1 ${b} ${S}
1636
- Z
1637
- `.trim(),
1638
- middlePoint: { x: L, y: R },
1639
- radius: u
1640
- };
1641
- });
1642
- }
1643
- function re({ data: t, threshold: n }) {
1644
- if (n >= t.length || n < 3)
1645
- return t;
1646
- const e = [], s = (t.length - 2) / (n - 2);
1647
- let r = 0;
1648
- e.push(t[r]);
1649
- for (let o = 0; o < n - 2; o += 1) {
1650
- const c = Math.floor((o + 1) * s) + 1, i = Math.min(
1651
- Math.floor((o + 2) * s) + 1,
1652
- t.length
1653
- ), l = t.slice(c, i);
1654
- let a = 0, u = 0;
1655
- for (const d of l)
1656
- a += d.x, u += d.y;
1657
- a /= l.length, u /= l.length;
1658
- let f = -1, h = r;
1659
- for (let d = c; d < i; d += 1) {
1660
- const g = Math.abs(
1661
- (t[r].x - a) * (t[d].y - t[r].y) - (t[r].x - t[d].x) * (u - t[r].y)
1662
- );
1663
- g > f && (f = g, h = d);
1664
- }
1665
- e.push(t[h]), r = h;
1666
- }
1667
- return e.push(t[t.length - 1]), e;
1668
- }
1669
- function se({ data: t, threshold: n }) {
1670
- if (n >= t.length || n < 3)
1671
- return t;
1672
- const e = [], s = (t.length - 2) / (n - 2);
1673
- let r = 0;
1674
- e.push(t[r]);
1675
- for (let o = 0; o < n - 2; o += 1) {
1676
- const c = Math.floor((o + 1) * s) + 1, i = Math.min(
1677
- Math.floor((o + 2) * s) + 1,
1678
- t.length
1679
- ), l = t.slice(c, i), a = l.reduce((h, d) => h + d, 0) / l.length;
1680
- let u = -1, f = r;
1681
- for (let h = c; h < i; h += 1) {
1682
- const d = Math.abs((t[r] - a) * (h - r));
1683
- d > u && (u = d, f = h);
1684
- }
1685
- e.push(t[f]), r = f;
1686
- }
1687
- return e.push(t[t.length - 1]), e;
1688
- }
1689
- function oe({
1690
- data: t,
1691
- threshold: n,
1692
- key: e = "value"
1693
- }) {
1694
- if (n >= t.length || n < 3)
1695
- return t;
1696
- const s = [], r = (t.length - 2) / (n - 2);
1697
- let o = 0;
1698
- s.push(t[o]);
1699
- for (let c = 0; c < n - 2; c += 1) {
1700
- const i = Math.floor((c + 1) * r) + 1, l = Math.min(
1701
- Math.floor((c + 2) * r) + 1,
1702
- t.length
1703
- ), a = t.slice(i, l), u = a.reduce((d, g) => d + g[e], 0) / a.length;
1704
- let f = -1, h = o;
1705
- for (let d = i; d < l; d += 1) {
1706
- const g = Math.abs((t[o][e] - u) * (d - o));
1707
- g > f && (f = g, h = d);
1708
- }
1709
- s.push(t[h]), o = h;
1710
- }
1711
- return s.push(t[t.length - 1]), s;
1712
- }
1713
- function ie({ radius: t, centerX: n, centerY: e, percentage: s }) {
1714
- s = Math.max(0, Math.min(1, s));
1715
- const r = s * Math.PI, o = n - t, c = e, i = n - t * Math.cos(r), l = e - t * Math.sin(r);
1716
- return `M ${n},${e} L ${o},${c} A ${t},${t} 0 0 1 ${i},${l} Z`.trim();
1717
- }
1718
- function ce({
1719
- svgElement: t,
1720
- x: n,
1721
- y: e,
1722
- offsetY: s = 0,
1723
- element: r
1724
- }) {
1725
- if (!t || !r) return { top: 0, left: 0 };
1726
- const o = t.createSVGPoint();
1727
- o.x = n, o.y = e;
1728
- const c = o.matrixTransform(t.getScreenCTM()), i = t.getBoundingClientRect(), l = r.getBoundingClientRect();
1729
- let a = 0, u = 0;
1730
- return c.x - l.width / 2 < i.left ? a = 0 : c.x + l.width > i.right ? a = -l.width : a = -l.width / 2, c.y - s - l.height < i.top ? u = s : u = -l.height - s, {
1731
- top: c.y + u,
1732
- left: c.x + a
1733
- };
1734
- }
1735
- function ae({ svgElement: t, x: n, y: e, element: s, position: r }) {
1736
- if (!t || !s) return { top: 0, left: 0 };
1737
- const o = t.createSVGPoint();
1738
- o.x = n, o.y = e;
1739
- const c = o.matrixTransform(t.getScreenCTM()), { height: i, width: l } = s.getBoundingClientRect();
1740
- let a = r === "right" ? 0 : -l, u = -(i / 2);
1741
- return {
1742
- top: c.y + u,
1743
- left: c.x + a
1744
- };
1745
- }
1746
- function Q(t) {
1747
- if (t === null || typeof t != "object")
1748
- return t;
1749
- if (t instanceof Date)
1750
- return new Date(t.getTime());
1751
- if (t instanceof RegExp)
1752
- return new RegExp(t.source, t.flags);
1753
- if (t instanceof Map) {
1754
- const e = /* @__PURE__ */ new Map();
1755
- for (const [s, r] of t.entries())
1756
- e.set(s, Q(r));
1757
- return e;
1758
- }
1759
- if (t instanceof Set) {
1760
- const e = /* @__PURE__ */ new Set();
1761
- for (const s of t.values())
1762
- e.add(Q(s));
1763
- return e;
1764
- }
1765
- if (Array.isArray(t))
1766
- return t.map((e) => Q(e));
1767
- const n = {};
1768
- for (const e in t)
1769
- Object.prototype.hasOwnProperty.call(t, e) && (n[e] = Q(t[e]));
1770
- return n;
1771
- }
1772
- function Zt(t) {
1773
- const n = [];
1774
- let e = [];
1775
- for (const s of t)
1776
- !s || s.value == null || Number.isNaN(s.x) || Number.isNaN(s.y) ? (e.length && n.push(e), e = []) : e.push(s);
1777
- return e.length && n.push(e), n;
1778
- }
1779
- function ue(t, n) {
1780
- const e = t.filter((c) => !!c);
1781
- if (!e[0]) return [-10, -10, "", -10, -10].toString();
1782
- const s = { x: e[0].x, y: n }, r = { x: e.at(-1).x, y: n }, o = [];
1783
- return e.forEach((c) => {
1784
- o.push(`${c.x},${c.y} `);
1785
- }), [s.x, s.y, ...o, r.x, r.y].toString();
1786
- }
1787
- function le(t, n) {
1788
- if (!t[0]) return [-10, -10, "", -10, -10].toString();
1789
- const e = Zt(t);
1790
- return e.length ? e.map((s) => {
1791
- const r = { x: s[0].x, y: n }, o = { x: s.at(-1).x, y: n }, c = [];
1792
- return s.forEach((i) => {
1793
- c.push(`${i.x},${i.y} `);
1794
- }), [r.x, r.y, ...c, o.x, o.y].toString();
1795
- }).join(";") : "";
1796
- }
1797
- function Qt(t) {
1798
- const n = [];
1799
- let e = [];
1800
- for (const s of t)
1801
- s.value == null || Number.isNaN(s.x) || Number.isNaN(s.y) ? (e.length > 1 && n.push(e), e = []) : e.push(s);
1802
- return e.length > 1 && n.push(e), n;
1803
- }
1804
- function fe(t) {
1805
- let n = "", e = !1;
1806
- for (let s = 0; s < t.length; s++) {
1807
- const r = t[s];
1808
- if (!V(r))
1809
- continue;
1810
- const o = `${E(r.x)},${E(r.y)}`;
1811
- if (!e)
1812
- n += o, e = !0;
1813
- else {
1814
- const c = t[s - 1], i = V(c) ? "L" : "M";
1815
- n += `${i}${o}`;
1816
- }
1817
- n += " ";
1818
- }
1819
- return n.trim();
1820
- }
1821
- function Ft(t) {
1822
- const n = Number(t);
1823
- return Number.isFinite(n) ? Math.trunc(n) : null;
1824
- }
1825
- function J(t) {
1826
- return `${E(t.x)},${E(t.y)}`;
1827
- }
1828
- function he(t, n = []) {
1829
- const e = Array.isArray(t) ? t : [], s = e.length, r = /* @__PURE__ */ new Set(), o = s - 1;
1830
- for (const f of Array.isArray(n) ? n : []) {
1831
- const h = Ft(f);
1832
- h !== null && (h > 0 && r.add(h - 1), h < o && r.add(h));
1833
- }
1834
- const c = [];
1835
- let i = [], l = !1, a = !1;
1836
- const u = () => {
1837
- i.length >= 2 && c.push({
1838
- path: i.map((f, h) => h === 0 ? f : `L${f}`).join(" "),
1839
- dashed: l
1840
- }), i = [], a = !1;
1841
- };
1842
- for (let f = 0; f < s; f += 1) {
1843
- const h = e[f];
1844
- if (!V(h)) {
1845
- u();
1846
- continue;
1847
- }
1848
- const d = J(h);
1849
- if (!a) {
1850
- i = [d], a = !0;
1851
- continue;
1852
- }
1853
- const g = e[f - 1];
1854
- if (!V(g)) {
1855
- u(), i = [d], a = !0;
1856
- continue;
1857
- }
1858
- const p = r.has(f - 1);
1859
- if (i.length === 1) {
1860
- l = p, i.push(d);
1861
- continue;
1862
- }
1863
- if (p !== l) {
1864
- const m = J(g);
1865
- u(), l = p, i = [m, d], a = !0;
1866
- } else
1867
- i.push(d);
1868
- }
1869
- return u(), c;
1870
- }
1871
- function de(t) {
1872
- const n = Qt(t);
1873
- if (!n.length) return "";
1874
- let e = "";
1875
- for (const [s, r] of n.entries()) {
1876
- if (r.length < 2) continue;
1877
- const o = r.length - 1, c = [], i = [], l = [], a = [];
1878
- for (let u = 0; u < o; u += 1)
1879
- c[u] = r[u + 1].x - r[u].x, i[u] = r[u + 1].y - r[u].y, l[u] = i[u] / c[u];
1880
- a[0] = l[0], a[o] = l[o - 1];
1881
- for (let u = 1; u < o; u += 1)
1882
- if (l[u - 1] * l[u] <= 0)
1883
- a[u] = 0;
1884
- else {
1885
- const f = 2 * l[u - 1] * l[u] / (l[u - 1] + l[u]);
1886
- a[u] = f;
1887
- }
1888
- e += `${s === 0 ? "" : "M"}${E(r[0].x)},${E(r[0].y)} `;
1889
- for (let u = 0; u < o; u += 1) {
1890
- const f = r[u].x, h = r[u].y, d = r[u + 1].x, g = r[u + 1].y, p = a[u], m = a[u + 1], A = f + (d - f) / 3, F = h + p * (d - f) / 3, b = d - (d - f) / 3, S = g - m * (d - f) / 3;
1891
- e += `C${E(A)},${E(F)} ${E(b)},${E(S)} ${E(d)},${E(g)} `;
1892
- }
1893
- }
1894
- return e.trim();
1895
- }
1896
- function V(t) {
1897
- return t != null && t.value != null && Number.isFinite(t.x) && Number.isFinite(t.y);
1898
- }
1899
- function qt(t, n) {
1900
- const e = t - 1, s = /* @__PURE__ */ new Set(), r = Array.isArray(n) ? n : [];
1901
- for (const o of r) {
1902
- const c = Ft(o);
1903
- c !== null && (c > 0 && s.add(c - 1), c < e && s.add(c));
1904
- }
1905
- return s;
1906
- }
1907
- function Jt(t) {
1908
- const n = [];
1909
- let e = [];
1910
- for (let s = 0; s < t.length; s += 1) {
1911
- const r = t[s];
1912
- V(r) ? e.push(s) : (e.length > 1 && n.push(e), e = []);
1913
- }
1914
- return e.length > 1 && n.push(e), n;
1915
- }
1916
- function tn(t, n) {
1917
- const e = n.map((a) => t[a]), s = e.length - 1, r = [], o = [], c = [], i = [];
1918
- for (let a = 0; a < s; a += 1)
1919
- r[a] = e[a + 1].x - e[a].x, o[a] = e[a + 1].y - e[a].y, c[a] = o[a] / r[a];
1920
- i[0] = c[0], i[s] = c[s - 1];
1921
- for (let a = 1; a < s; a += 1)
1922
- c[a - 1] * c[a] <= 0 ? i[a] = 0 : i[a] = 2 * c[a - 1] * c[a] / (c[a - 1] + c[a]);
1923
- const l = new Array(s);
1924
- for (let a = 0; a < s; a += 1) {
1925
- const u = e[a].x, f = e[a].y, h = e[a + 1].x, d = e[a + 1].y, g = i[a], p = i[a + 1], m = u + (h - u) / 3, A = f + g * (h - u) / 3, F = h - (h - u) / 3, b = d - p * (h - u) / 3;
1926
- l[a] = `C${E(m)},${E(A)} ${E(F)},${E(b)} ${E(h)},${E(d)}`;
1927
- }
1928
- return {
1929
- startCoord: J(e[0]),
1930
- commands: l
1931
- };
1932
- }
1933
- function nn(t) {
1934
- const n = [];
1935
- if (!t.length) return n;
1936
- let e = 0, s = t[0];
1937
- for (let r = 1; r < t.length; r += 1)
1938
- t[r] !== s && (n.push({ startEdge: e, endEdge: r - 1, dashed: s }), e = r, s = t[r]);
1939
- return n.push({ startEdge: e, endEdge: t.length - 1, dashed: s }), n;
1940
- }
1941
- function ge(t, n = []) {
1942
- const e = Array.isArray(t) ? t : [];
1943
- if (e.length < 2) return [];
1944
- const s = qt(
1945
- e.length,
1946
- n
1947
- ), r = Jt(e);
1948
- if (!r.length) return [];
1949
- const o = [];
1950
- for (const c of r) {
1951
- const { startCoord: i, commands: l } = tn(
1952
- e,
1953
- c
1954
- ), a = new Array(l.length);
1955
- for (let f = 0; f < l.length; f += 1) {
1956
- const h = c[f];
1957
- a[f] = s.has(h);
1958
- }
1959
- const u = nn(a);
1960
- for (const f of u) {
1961
- const h = f.startEdge, d = h === 0 ? i : J(e[c[h]]), g = l.slice(
1962
- f.startEdge,
1963
- f.endEdge + 1
1964
- ), p = `${d} ${g.join(" ")}`.trim();
1965
- o.push({ path: p, dashed: f.dashed });
1966
- }
1967
- }
1968
- return o;
1969
- }
1970
- function pe(t, n, e = !1, s = !0) {
1971
- function r(c) {
1972
- const i = [];
1973
- let l = [];
1974
- for (const a of c)
1975
- !a || a.value == null || Number.isNaN(a.x) || Number.isNaN(a.y) ? (l.length > 1 && i.push(l), l = []) : l.push(a);
1976
- return l.length > 1 && i.push(l), i;
1977
- }
1978
- return (e ? r(t) : [t]).map((c) => {
1979
- if (c.length < 2) return "";
1980
- const i = c.length - 1, l = [], a = [], u = [], f = [];
1981
- for (let d = 0; d < i; d += 1)
1982
- l[d] = c[d + 1].x - c[d].x, a[d] = c[d + 1].y - c[d].y, u[d] = a[d] / l[d];
1983
- f[0] = u[0], f[i] = u[i - 1];
1984
- for (let d = 1; d < i; d += 1)
1985
- if (u[d - 1] * u[d] <= 0)
1986
- f[d] = 0;
1987
- else {
1988
- const g = 2 * u[d - 1] * u[d] / (u[d - 1] + u[d]);
1989
- f[d] = g;
1990
- }
1991
- let h = `M${c[0].x},${n}`;
1992
- h += ` L${c[0].x},${c[0].y}`;
1993
- for (let d = 0; d < i; d += 1) {
1994
- const g = c[d].x, p = c[d].y, m = c[d + 1].x, A = c[d + 1].y, F = f[d], b = f[d + 1], S = g + (m - g) / 3, L = p + F * (m - g) / 3, R = m - (m - g) / 3, x = A - b * (m - g) / 3;
1995
- h += ` C${S},${L} ${R},${x} ${m},${A}`;
1996
- }
1997
- return h += ` L${c[i].x},${n} ${s ? "Z" : ""}`, h;
1998
- }).filter(Boolean);
1999
- }
2000
- function me(t) {
2001
- return t.toString().toLowerCase().replace(/\s+/g, "-").replace(/[^\w\-]+/g, "").replace(/\-\-+/g, "-").replace(/^-+/, "").replace(/-+$/, "");
2002
- }
2003
- function en(t) {
2004
- return t && typeof t == "object" && !Array.isArray(t) && Object.keys(t).length === 0 ? null : t;
2005
- }
2006
- function pt(t) {
2007
- if (Array.isArray(t))
2008
- return t.map(pt);
2009
- if (t && typeof t == "object" && !Array.isArray(t)) {
2010
- const n = {};
2011
- for (const e in t)
2012
- Object.hasOwn(t, e) && (n[e] = pt(t[e]));
2013
- return en(n);
2014
- }
2015
- return t;
2016
- }
2017
- function Fe(t) {
2018
- return 1 - Math.pow(1 - t, 3);
2019
- }
2020
- function Ee({ values: t, config: n = {} }) {
2021
- const { keepInvalid: e = !0, convertInvalidToZero: s = !1 } = n, r = [];
2022
- let o = 0, c = 0;
2023
- function i(a) {
2024
- return typeof a != "number" || !Number.isFinite(a);
2025
- }
2026
- function l(a) {
2027
- o += a, c += 1, r.push(o / c);
2028
- }
2029
- for (const a of t)
2030
- i(a) ? s && e ? l(0) : !s && e && r.push(a) : l(a);
2031
- return r;
2032
- }
2033
- function Ae({ values: t, config: n = {} }) {
2034
- const { keepInvalid: e = !0, convertInvalidToZero: s = !1 } = n, r = [], o = [];
2035
- function c(l) {
2036
- return typeof l != "number" || !Number.isFinite(l);
2037
- }
2038
- function i(l) {
2039
- o.push(l), o.sort((f, h) => f - h);
2040
- const a = o.length, u = a >> 1;
2041
- a % 2 === 1 ? r.push(o[u]) : r.push((o[u - 1] + o[u]) / 2);
2042
- }
2043
- for (const l of t)
2044
- c(l) ? s && e ? i(0) : !s && e && r.push(l) : i(l);
2045
- return r;
2046
- }
2047
- function ye({
2048
- el: t,
2049
- bounds: n,
2050
- currentFontSize: e,
2051
- minFontSize: s = 6,
2052
- attempts: r = 200,
2053
- padding: o = 1
2054
- }) {
2055
- if (!t || !e) return 0;
2056
- let c = e;
2057
- t.setAttribute("font-size", c);
2058
- const { x: i, y: l, width: a, height: u } = n, f = i + o, h = l + o, d = i + a - o, g = l + u - o;
2059
- let p = t.getBBox();
2060
- if (p.x >= f + o && p.y >= h + o && p.x + p.width <= d - o && p.y + p.height <= g - o)
2061
- return c;
2062
- let m = r;
2063
- for (; m-- > 0 && c > s && (c--, t.setAttribute("font-size", c), p = t.getBBox(), !(p.x >= f + o && p.y >= h + o && p.x + p.width <= d - o && p.y + p.height <= g - o)); )
2064
- ;
2065
- return c < s && (c = 0, t.setAttribute("font-size", c)), c;
2066
- }
2067
- function xe({
2068
- value: t,
2069
- maxDecimals: n = 4,
2070
- fallbackFormatter: e,
2071
- removeTrailingZero: s = !0
2072
- }) {
2073
- if (t === 0)
2074
- return "0";
2075
- const r = Math.abs(t);
2076
- if (r >= 1 && typeof e == "function") {
2077
- const i = e(t);
2078
- return String(i);
2079
- }
2080
- let o;
2081
- if (r < 1) {
2082
- const i = Math.floor(Math.log10(r));
2083
- o = Math.min(Math.max(1 - i, 1), n);
2084
- } else
2085
- o = n;
2086
- let c = t.toFixed(o);
2087
- return s && (c = c.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, "")), c;
2088
- }
2089
- function be(t) {
2090
- const n = [];
2091
- for (let e = 0; e < t; e += 1)
2092
- n.push(e === 0 ? 0 : e === 1 ? 1 : n[e - 1] + n[e - 2]);
2093
- return n;
2094
- }
2095
- function Ce(t, n = 20) {
2096
- t = t.replace(/[\r\n]+/g, " ");
2097
- const e = t.split(" ");
2098
- let s = "", r = "";
2099
- for (let o of e)
2100
- (s + (s ? " " : "") + o).length <= n ? s += (s ? " " : "") + o : (s && (r += (r ? `
2101
- ` : "") + s), s = o);
2102
- return s && (r += (r ? `
2103
- ` : "") + s), r;
2104
- }
2105
- function Me(t) {
2106
- const {
2107
- lineA: n,
2108
- lineB: e,
2109
- colorLineA: s,
2110
- // fill when A is above
2111
- colorLineB: r,
2112
- // fill when B is above
2113
- smoothA: o = !1,
2114
- smoothB: c = !1,
2115
- sampleStepPx: i = 2,
2116
- cutNullValues: l = !0,
2117
- // break across gaps
2118
- merge: a = !0
2119
- // merge into large polygons
2120
- } = t || {};
2121
- if (!Array.isArray(n) || !Array.isArray(e) || !n.length || !e.length)
2122
- return [];
2123
- const u = (x) => Number.isFinite(x);
2124
- function f(x) {
2125
- if (!l)
2126
- return [x.filter((D) => D && u(D.x) && u(D.y))];
2127
- const $ = [];
2128
- let M = [];
2129
- for (const D of x)
2130
- D && u(D.x) && u(D.y) && D.value != null ? M.push({ x: D.x, y: D.y }) : (M.length > 1 && $.push(M), M = []);
2131
- return M.length > 1 && $.push(M), $;
2132
- }
2133
- function h(x) {
2134
- const $ = x.length - 1, M = new Array($), D = new Array($), y = new Array($), I = new Array(x.length);
2135
- for (let C = 0; C < $; C += 1)
2136
- M[C] = x[C + 1].x - x[C].x, D[C] = x[C + 1].y - x[C].y, y[C] = D[C] / M[C];
2137
- I[0] = y[0], I[$] = y[$ - 1];
2138
- for (let C = 1; C < $; C += 1)
2139
- y[C - 1] * y[C] <= 0 ? I[C] = 0 : I[C] = 2 * y[C - 1] * y[C] / (y[C - 1] + y[C]);
2140
- return I;
2141
- }
2142
- function d(x, $, M, D, y) {
2143
- const I = x.x, C = $.x, w = x.y, B = $.y, P = C - I;
2144
- if (P === 0) return w;
2145
- const T = (y - I) / P, O = T * T, Y = O * T, H = 2 * Y - 3 * O + 1, N = Y - 2 * O + T, k = -2 * Y + 3 * O, U = Y - O;
2146
- return H * w + N * (M * P) + k * B + U * (D * P);
2147
- }
2148
- function g(x, $) {
2149
- const M = f(x);
2150
- if (!M.length) return [];
2151
- let D = 1 / 0, y = -1 / 0;
2152
- for (const B of M)
2153
- D = Math.min(D, B[0].x), y = Math.max(y, B[B.length - 1].x);
2154
- if (!u(D) || !u(y) || y <= D) return [];
2155
- const I = Math.max(1, i), C = [];
2156
- for (let B = D; B <= y; B += I) C.push(B);
2157
- C[C.length - 1] < y && C.push(y);
2158
- const w = [];
2159
- for (const B of C) {
2160
- let P = null, T = !1;
2161
- for (const O of M) {
2162
- const Y = O.length - 1;
2163
- if (!(B < O[0].x - 1e-9 || B > O[Y].x + 1e-9)) {
2164
- for (let H = 0; H < Y; H += 1) {
2165
- const N = O[H], k = O[H + 1];
2166
- if (!(B + 1e-9 < N.x || B - 1e-9 > k.x)) {
2167
- if ($) {
2168
- const U = O.__tangents || (O.__tangents = h(O));
2169
- P = d(N, k, U[H], U[H + 1], B);
2170
- } else {
2171
- const U = (B - N.x) / (k.x - N.x || 1);
2172
- P = N.y + U * (k.y - N.y);
2173
- }
2174
- T = !0;
2175
- break;
2176
- }
2177
- }
2178
- if (T) break;
2179
- }
2180
- }
2181
- P == null ? w.push({ x: B, y: null, hole: !0 }) : w.push({ x: B, y: P, hole: !1 });
2182
- }
2183
- return w;
2184
- }
2185
- function p(x, $, M) {
2186
- return x + M * ($ - x);
2187
- }
2188
- function m(x, $) {
2189
- const M = [], D = [], y = Math.min(x.length, $.length);
2190
- for (let I = 0; I < y - 1; I += 1) {
2191
- const C = x[I], w = x[I + 1], B = $[I], P = $[I + 1];
2192
- if (M.push(C), D.push(B), C.hole || w.hole || B.hole || P.hole || C.y == null || w.y == null || B.y == null || P.y == null)
2193
- continue;
2194
- const T = C.y - B.y, O = w.y - P.y;
2195
- if (T > 0 && O < 0 || T < 0 && O > 0) {
2196
- const Y = T / (T - O), H = p(C.x, w.x, Y), N = p(C.y, w.y, Y), k = { x: H, y: N, hole: !1 }, U = { x: H, y: N, hole: !1 };
2197
- M.push(k), D.push(U);
2198
- }
2199
- }
2200
- return y > 0 && (M.push(x[y - 1]), D.push($[y - 1])), { A: M, B: D };
2201
- }
2202
- function A(x, $) {
2203
- const M = [], D = Math.min(x.length, $.length);
2204
- for (let y = 0; y < D - 1; y += 1) {
2205
- const I = x[y], C = x[y + 1], w = $[y], B = $[y + 1];
2206
- if (I.hole || C.hole || w.hole || B.hole || I.y == null || C.y == null || w.y == null || B.y == null)
2207
- continue;
2208
- const P = I.y - w.y, T = C.y - B.y, O = P <= 0 ? I : w, Y = T <= 0 ? C : B, H = T <= 0 ? B : C, N = P <= 0 ? w : I, k = P <= 0 ? s : r, U = [
2209
- `M${O.x},${O.y}`,
2210
- `L${Y.x},${Y.y}`,
2211
- `L${H.x},${H.y}`,
2212
- `L${N.x},${N.y}`,
2213
- "Z"
2214
- ].join(" ");
2215
- M.push({ d: U, color: k });
2216
- }
2217
- return M;
2218
- }
2219
- function F(x, $) {
2220
- const M = [], D = Math.min(x.length, $.length);
2221
- if (D < 2) return M;
2222
- let y = 0;
2223
- for (; y < D - 1; ) {
2224
- for (; y < D - 1; ) {
2225
- const N = x[y], k = $[y], U = x[y + 1], K = $[y + 1];
2226
- if (!N.hole && !k.hole && !U.hole && !K.hole && N.y != null && k.y != null && U.y != null && K.y != null)
2227
- break;
2228
- y += 1;
2229
- }
2230
- if (y >= D - 1) break;
2231
- const I = y, C = Math.sign($[y].y - x[y].y || 0) || 1;
2232
- for (y += 1; y < D - 1; ) {
2233
- const N = x[y], k = $[y], U = x[y + 1], K = $[y + 1];
2234
- if (N.hole || k.hole || U.hole || K.hole || N.y == null || k.y == null || U.y == null || K.y == null || (Math.sign(k.y - N.y || 0) || 1) !== C) break;
2235
- y += 1;
2236
- }
2237
- const w = y + 0, B = C >= 0 ? x : $, P = C >= 0 ? $ : x, T = C >= 0 ? s : r, O = [];
2238
- for (let N = I; N <= w; N += 1)
2239
- O.push(`${B[N].x},${B[N].y}`);
2240
- const Y = [];
2241
- for (let N = w; N >= I; N -= 1)
2242
- Y.push(`${P[N].x},${P[N].y}`);
2243
- const H = `M${O[0]} L${O.slice(1).join(" L")} L${Y.join(" L")} Z`;
2244
- M.push({ d: H, color: T });
2245
- }
2246
- return M;
2247
- }
2248
- const b = g(n, o), S = g(e, c), { A: L, B: R } = m(
2249
- b,
2250
- S
2251
- );
2252
- return a ? F(L, R) : A(L, R);
2253
- }
2254
- function $e(t, n, e = {}) {
2255
- const r = { ...{ bubbles: !0, cancelable: !0, composed: !0 }, ...e }, o = /* @__PURE__ */ new Set([
2256
- "click",
2257
- "mousedown",
2258
- "mouseup",
2259
- "mousemove",
2260
- "mouseover",
2261
- "mouseout",
2262
- "mouseenter",
2263
- "mouseleave",
2264
- "dblclick",
2265
- "contextmenu"
2266
- ]), c = /* @__PURE__ */ new Set(["keydown", "keyup", "keypress"]);
2267
- let i;
2268
- if (o.has(n))
2269
- i = new MouseEvent(n, r);
2270
- else if (c.has(n))
2271
- i = new KeyboardEvent(n, r);
2272
- else if (n === "input")
2273
- try {
2274
- i = new InputEvent(n, r);
2275
- } catch {
2276
- i = new Event(n, r);
2277
- }
2278
- else n.startsWith("custom:") ? i = new CustomEvent(n, { ...r, detail: r.detail }) : i = new Event(n, r);
2279
- return t.dispatchEvent(i), i;
2280
- }
2281
- function De(t, { delta: n = 1, delay: e = 20, disableTransitions: s = !0 } = {}) {
2282
- if (!t || !(t instanceof HTMLElement)) return;
2283
- const r = t.style, o = {
2284
- width: r.width,
2285
- height: r.height,
2286
- transition: r.transition
2287
- }, c = t.getBoundingClientRect(), i = c.width, l = c.height;
2288
- s && (r.transition = "none");
2289
- const a = (u) => /%|em|rem/.test(u);
2290
- r.width = o.width && a(o.width) ? `calc(${o.width} + ${n}px)` : `${Math.max(0, i + n)}px`, r.height = o.height && a(o.height) ? `calc(${o.height} + ${n}px)` : `${Math.max(0, l + n)}px`, t.offsetWidth, setTimeout(() => {
2291
- r.width = o.width, r.height = o.height, t.offsetWidth, requestAnimationFrame(() => {
2292
- s && (r.transition = o.transition);
2293
- });
2294
- }, e);
2295
- }
2296
- function rn(t) {
2297
- let n = null, e = null;
2298
- return (...s) => {
2299
- const r = JSON.stringify(s);
2300
- return r === n || (n = r, e = t(...s)), e;
2301
- };
2302
- }
2303
- const Se = rn(
2304
- (t, n, e, s, r, o, c, i) => {
2305
- if (t)
2306
- return s.length <= 2 ? s.map((F, b) => ({ text: F, absoluteIndex: b })) : s.map((F, b) => ({ text: b === 0 || b === s.length - 1 || c != null && b === c ? F : "", absoluteIndex: b }));
2307
- if (!n)
2308
- return s.map((A, F) => ({ text: A, absoluteIndex: F }));
2309
- const l = Math.max(1, e || 1);
2310
- if (i <= l)
2311
- return s.map((A, F) => ({ text: A, absoluteIndex: F }));
2312
- const a = [];
2313
- for (let A = 0; A < s.length; A += 1) {
2314
- const F = s[A] ?? "";
2315
- if (!F) continue;
2316
- const b = o + A - 1 >= 0 ? r[o + A - 1] ?? "" : null;
2317
- F !== b && a.push(A);
2318
- }
2319
- if (!a.length)
2320
- return s.map((A, F) => ({ text: "", absoluteIndex: F }));
2321
- const u = a.length, f = l, h = Math.max(2, Math.min(f - 3, u)), d = Math.min(u, f + 3);
2322
- let g = Math.min(f, u), p = 1 / 0;
2323
- for (let A = h; A <= d; A += 1) {
2324
- const F = (u - 1) % (A - 1), b = Math.abs(A - f), S = F * 10 + b;
2325
- S < p && (p = S, g = A);
2326
- }
2327
- const m = /* @__PURE__ */ new Set();
2328
- if (g <= 1)
2329
- m.add(a[Math.round((u - 1) / 2)]);
2330
- else {
2331
- const A = (u - 1) / (g - 1);
2332
- for (let F = 0; F < g; F += 1)
2333
- m.add(a[Math.round(F * A)]);
2334
- }
2335
- return s.map((A, F) => ({
2336
- text: m.has(F) ? A : "",
2337
- absoluteIndex: F
2338
- }));
2339
- }
2340
- );
2341
- function Be(t) {
2342
- return String(t).replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
2343
- }
2344
- function Ne(t) {
2345
- if (!t || typeof t != "string")
2346
- return null;
2347
- const n = document.createElementNS(ot, "svg");
2348
- n.setAttribute("xmlns", ot);
2349
- const e = document.createElementNS(ot, "path");
2350
- e.setAttribute("d", t), n.appendChild(e);
2351
- const s = e.getTotalLength(), r = e.getPointAtLength(s / 2);
2352
- return { x: r.x, y: r.y };
2353
- }
2354
- function Re(t, n = "(", e = ")") {
2355
- return `${n}${t}${e}`;
2356
- }
2357
- function Ie(t, n) {
2358
- return n <= 1 ? "0%" : `${t * 100 / (n - 1)}%`;
2359
- }
2360
- function Le(t, n, e) {
2361
- if (!e || !Number.isFinite(t) || !Number.isFinite(n))
2362
- return null;
2363
- if (e.createSVGPoint && e.getScreenCTM) {
2364
- const r = e.createSVGPoint();
2365
- r.x = t, r.y = n;
2366
- const o = e.getScreenCTM();
2367
- if (o) {
2368
- const c = r.matrixTransform(o);
2369
- return !Number.isFinite(c.x) || !Number.isFinite(c.y) ? null : {
2370
- x: c.x,
2371
- y: c.y
2372
- };
2373
- }
2374
- }
2375
- const s = e.getBoundingClientRect();
2376
- return {
2377
- x: s.left + t,
2378
- y: s.top + n
2379
- };
2380
- }
2381
- export {
2382
- Jn as $,
2383
- hn as A,
2384
- Re as B,
2385
- ye as C,
2386
- In as D,
2387
- Ln as E,
2388
- an as F,
2389
- un as G,
2390
- se as H,
2391
- Se as I,
2392
- zn as J,
2393
- E as K,
2394
- de as L,
2395
- fe as M,
2396
- he as N,
2397
- ge as O,
2398
- pe as P,
2399
- le as Q,
2400
- ue as R,
2401
- Me as S,
2402
- Tn as T,
2403
- kn as U,
2404
- Ie as V,
2405
- pn as W,
2406
- ot as X,
2407
- mn as Y,
2408
- zt as Z,
2409
- ae as _,
2410
- Pn as a,
2411
- Bn as a0,
2412
- Sn as a1,
2413
- Zn as a2,
2414
- Le as a3,
2415
- cn as a4,
2416
- Cn as a5,
2417
- Z as a6,
2418
- _ as a7,
2419
- te as a8,
2420
- at as a9,
2421
- De as aA,
2422
- ht as aB,
2423
- oe as aC,
2424
- be as aD,
2425
- Ne as aE,
2426
- Mn as aa,
2427
- $n as ab,
2428
- pt as ac,
2429
- Un as ad,
2430
- bn as ae,
2431
- ie as af,
2432
- Q as ag,
2433
- Dn as ah,
2434
- Fe as ai,
2435
- _n as aj,
2436
- re as ak,
2437
- gn as al,
2438
- yn as am,
2439
- vn as an,
2440
- On as ao,
2441
- Fn as ap,
2442
- Xn as aq,
2443
- Qn as ar,
2444
- jn as as,
2445
- me as at,
2446
- Ce as au,
2447
- $e as av,
2448
- ce as aw,
2449
- ee as ax,
2450
- Xt as ay,
2451
- Be as az,
2452
- En as b,
2453
- An as c,
2454
- Wn as d,
2455
- Vn as e,
2456
- xe as f,
2457
- Ee as g,
2458
- Ae as h,
2459
- ln as i,
2460
- xn as j,
2461
- qn as k,
2462
- wn as l,
2463
- j as m,
2464
- Kn as n,
2465
- Yn as o,
2466
- ft as p,
2467
- Hn as q,
2468
- Gn as r,
2469
- mt as s,
2470
- St as t,
2471
- ne as u,
2472
- fn as v,
2473
- Rn as w,
2474
- Nn as x,
2475
- st as y,
2476
- dn as z
2477
- };