laif-ds 0.2.21 → 0.2.23

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 (246) hide show
  1. package/dist/_virtual/index4.js +5 -5
  2. package/dist/_virtual/index5.js +5 -5
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/_virtual/index7.js +2 -2
  5. package/dist/components/ui/app-select.js +92 -109
  6. package/dist/components/ui/gantt/constants/DimensionsSettings.js +6 -6
  7. package/dist/components/ui/gantt/constants/DragStepOptions.js +9 -9
  8. package/dist/components/ui/message-input.js +23 -23
  9. package/dist/components/ui/sidebar.js +1 -1
  10. package/dist/components/ui/textarea.js +18 -15
  11. package/dist/index.d.ts +6 -7
  12. package/dist/lib/audio-utils.js +2 -2
  13. package/dist/node_modules/@date-fns/tz/date/index.js +2 -7
  14. package/dist/node_modules/@date-fns/tz/date/mini.js +32 -27
  15. package/dist/node_modules/@date-fns/tz/tzName/index.js +12 -0
  16. package/dist/node_modules/@date-fns/tz/tzOffset/index.js +11 -12
  17. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +137 -139
  18. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +238 -235
  19. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +88 -83
  20. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +70 -69
  21. package/dist/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +13 -13
  22. package/dist/node_modules/@lexical/code/LexicalCode.prod.js +3 -3
  23. package/dist/node_modules/@lexical/dragon/LexicalDragon.prod.js +2 -2
  24. package/dist/node_modules/@lexical/history/LexicalHistory.prod.js +9 -9
  25. package/dist/node_modules/@lexical/html/LexicalHtml.prod.js +6 -6
  26. package/dist/node_modules/@lexical/list/LexicalList.prod.js +48 -48
  27. package/dist/node_modules/@lexical/markdown/LexicalMarkdown.prod.js +29 -29
  28. package/dist/node_modules/@lexical/react/LexicalCheckListPlugin.prod.js +1 -1
  29. package/dist/node_modules/@lexical/react/LexicalClearEditorPlugin.prod.js +2 -2
  30. package/dist/node_modules/@lexical/react/LexicalComposer.prod.js +10 -10
  31. package/dist/node_modules/@lexical/react/LexicalComposerContext.prod.js +2 -2
  32. package/dist/node_modules/@lexical/react/LexicalContentEditable.prod.js +17 -17
  33. package/dist/node_modules/@lexical/react/LexicalErrorBoundary.prod.js +4 -4
  34. package/dist/node_modules/@lexical/react/LexicalHistoryPlugin.prod.js +4 -4
  35. package/dist/node_modules/@lexical/react/LexicalListPlugin.prod.js +5 -5
  36. package/dist/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +4 -4
  37. package/dist/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +20 -20
  38. package/dist/node_modules/@lexical/react/useLexicalEditable.prod.js +7 -7
  39. package/dist/node_modules/@lexical/rich-text/LexicalRichText.prod.js +43 -43
  40. package/dist/node_modules/@lexical/table/LexicalTable.prod.js +16 -16
  41. package/dist/node_modules/@lexical/utils/LexicalUtils.prod.js +3 -3
  42. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +43 -42
  43. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +1 -1
  44. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +2 -2
  45. package/dist/node_modules/@radix-ui/react-select/dist/index.js +2 -2
  46. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +183 -175
  47. package/dist/node_modules/@shikijs/core/dist/index.js +195 -175
  48. package/dist/node_modules/@shikijs/langs/dist/asciidoc.js +2 -2
  49. package/dist/node_modules/@shikijs/langs/dist/cobol.js +1 -1
  50. package/dist/node_modules/@shikijs/langs/dist/erlang.js +5 -3
  51. package/dist/node_modules/@shikijs/langs/dist/fsharp.js +1 -1
  52. package/dist/node_modules/@shikijs/langs/dist/gdscript.js +1 -1
  53. package/dist/node_modules/@shikijs/langs/dist/go.js +1 -1
  54. package/dist/node_modules/@shikijs/langs/dist/haxe.js +1 -1
  55. package/dist/node_modules/@shikijs/langs/dist/julia.js +1 -1
  56. package/dist/node_modules/@shikijs/langs/dist/latex.js +1 -1
  57. package/dist/node_modules/@shikijs/langs/dist/lean.js +1 -1
  58. package/dist/node_modules/@shikijs/langs/dist/markdown.js +1 -1
  59. package/dist/node_modules/@shikijs/langs/dist/marko.js +5 -5
  60. package/dist/node_modules/@shikijs/langs/dist/mermaid.js +1 -1
  61. package/dist/node_modules/@shikijs/langs/dist/nextflow.js +1 -1
  62. package/dist/node_modules/@shikijs/langs/dist/purescript.js +1 -1
  63. package/dist/node_modules/@shikijs/langs/dist/r.js +1 -1
  64. package/dist/node_modules/@shikijs/langs/dist/sql.js +1 -1
  65. package/dist/node_modules/@shikijs/langs/dist/swift.js +2 -2
  66. package/dist/node_modules/@shikijs/langs/dist/templ.js +1 -1
  67. package/dist/node_modules/@shikijs/langs/dist/tex.js +1 -1
  68. package/dist/node_modules/@shikijs/langs/dist/vue-vine.js +21 -0
  69. package/dist/node_modules/@shikijs/langs/dist/vue.js +1 -1
  70. package/dist/node_modules/@shikijs/langs/dist/zig.js +1 -1
  71. package/dist/node_modules/@shikijs/themes/dist/andromeeda.js +1 -1
  72. package/dist/node_modules/@shikijs/themes/dist/catppuccin-frappe.js +1 -1
  73. package/dist/node_modules/@shikijs/themes/dist/catppuccin-latte.js +1 -1
  74. package/dist/node_modules/@shikijs/themes/dist/catppuccin-macchiato.js +1 -1
  75. package/dist/node_modules/@shikijs/themes/dist/catppuccin-mocha.js +1 -1
  76. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-hard.js +1 -1
  77. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-medium.js +1 -1
  78. package/dist/node_modules/@shikijs/themes/dist/gruvbox-dark-soft.js +1 -1
  79. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-hard.js +1 -1
  80. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-medium.js +1 -1
  81. package/dist/node_modules/@shikijs/themes/dist/gruvbox-light-soft.js +1 -1
  82. package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +215 -208
  83. package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +1 -1
  84. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  85. package/dist/node_modules/classnames/index.js +2 -2
  86. package/dist/node_modules/d3-interpolate/src/rgb.js +2 -2
  87. package/dist/node_modules/dayjs/dayjs.min.js +14 -14
  88. package/dist/node_modules/dayjs/locale/it.js +4 -4
  89. package/dist/node_modules/dayjs/plugin/isoWeek.js +4 -4
  90. package/dist/node_modules/dayjs/plugin/localizedFormat.js +10 -10
  91. package/dist/node_modules/decimal.js-light/decimal.js +2 -2
  92. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +2 -2
  93. package/dist/node_modules/es-toolkit/dist/array/flatten.js +2 -2
  94. package/dist/node_modules/es-toolkit/dist/array/uniqBy.js +2 -2
  95. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +2 -2
  96. package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +2 -2
  97. package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +2 -2
  98. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +2 -2
  99. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +2 -2
  100. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +2 -2
  101. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +2 -2
  102. package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -2
  103. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +2 -2
  104. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +2 -2
  105. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +2 -2
  106. package/dist/node_modules/es-toolkit/dist/compat/array/uniqBy.js +2 -2
  107. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +2 -2
  108. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +14 -15
  109. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +2 -2
  110. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +2 -2
  111. package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +11 -11
  112. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +2 -2
  113. package/dist/node_modules/es-toolkit/dist/compat/object/has.js +2 -2
  114. package/dist/node_modules/es-toolkit/dist/compat/object/property.js +2 -2
  115. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +2 -2
  116. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +2 -2
  117. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +2 -2
  118. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatch.js +2 -2
  119. package/dist/node_modules/es-toolkit/dist/compat/predicate/isMatchWith.js +2 -2
  120. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +2 -2
  121. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +2 -2
  122. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +2 -2
  123. package/dist/node_modules/es-toolkit/dist/compat/predicate/matches.js +2 -2
  124. package/dist/node_modules/es-toolkit/dist/compat/predicate/matchesProperty.js +2 -2
  125. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +2 -2
  126. package/dist/node_modules/es-toolkit/dist/compat/util/iteratee.js +2 -2
  127. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +2 -2
  128. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +2 -2
  129. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +2 -2
  130. package/dist/node_modules/es-toolkit/dist/function/debounce.js +15 -15
  131. package/dist/node_modules/es-toolkit/dist/function/identity.js +2 -2
  132. package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -10
  133. package/dist/node_modules/es-toolkit/dist/object/cloneDeep.js +2 -2
  134. package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +3 -3
  135. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +2 -2
  136. package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +2 -2
  137. package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +2 -2
  138. package/dist/node_modules/eventemitter3/index2.js +3 -3
  139. package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
  140. package/dist/node_modules/immer/dist/immer.js +213 -216
  141. package/dist/node_modules/lexical/Lexical.prod.js +212 -212
  142. package/dist/node_modules/lodash/_baseCreate.js +2 -2
  143. package/dist/node_modules/lodash/_cloneBuffer.js +2 -2
  144. package/dist/node_modules/lodash/_defineProperty.js +2 -2
  145. package/dist/node_modules/lodash/_isMasked.js +2 -2
  146. package/dist/node_modules/lodash/_nodeUtil.js +4 -4
  147. package/dist/node_modules/lodash/isArguments.js +2 -2
  148. package/dist/node_modules/lodash/isBuffer.js +2 -2
  149. package/dist/node_modules/lodash/lodash.js +16 -16
  150. package/dist/node_modules/prismjs/components/prism-cpp.js +2 -2
  151. package/dist/node_modules/prismjs/components/prism-java.js +2 -2
  152. package/dist/node_modules/prismjs/components/prism-rust.js +2 -2
  153. package/dist/node_modules/prismjs/components/prism-typescript.js +2 -2
  154. package/dist/node_modules/prismjs/prism.js +8 -8
  155. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +183 -164
  156. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +14 -14
  157. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +10 -7
  158. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +6 -6
  159. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +30 -30
  160. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -1
  161. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +5 -5
  162. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +9 -9
  163. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  164. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -11
  165. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -1
  166. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -12
  167. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +19 -19
  168. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +9 -9
  169. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +10 -10
  170. package/dist/node_modules/react-hook-form/dist/index.esm.js +150 -117
  171. package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +48 -48
  172. package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +9 -9
  173. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +43 -39
  174. package/dist/node_modules/react-resizable-panels/dist/react-resizable-panels.browser.js +95 -94
  175. package/dist/node_modules/react-window/dist/index.esm.js +2 -2
  176. package/dist/node_modules/recharts/es6/animation/AnimationManager.js +14 -14
  177. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +49 -0
  178. package/dist/node_modules/recharts/es6/animation/createDefaultAnimationManager.js +9 -0
  179. package/dist/node_modules/recharts/es6/animation/useAnimationManager.js +12 -0
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +5 -5
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +55 -58
  182. package/dist/node_modules/recharts/es6/component/Legend.js +32 -27
  183. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +44 -40
  184. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +15 -23
  185. package/dist/node_modules/recharts/es6/context/useTooltipAxis.js +8 -7
  186. package/dist/node_modules/recharts/es6/shape/Curve.js +10 -10
  187. package/dist/node_modules/recharts/es6/shape/Rectangle.js +136 -99
  188. package/dist/node_modules/recharts/es6/shape/Symbols.js +55 -53
  189. package/dist/node_modules/recharts/es6/state/legendSlice.js +5 -4
  190. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +352 -307
  191. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +9 -9
  192. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +26 -0
  193. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +117 -0
  194. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +4 -4
  195. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +10 -4
  196. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +33 -32
  197. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +108 -0
  198. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxis.js +13 -0
  199. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +5 -0
  200. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +9 -0
  201. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +40 -143
  202. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +68 -63
  203. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +7 -0
  204. package/dist/node_modules/recharts/es6/util/ChartUtils.js +58 -57
  205. package/dist/node_modules/recharts/es6/util/DataUtils.js +34 -26
  206. package/dist/node_modules/recharts/es6/util/ReactUtils.js +20 -15
  207. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +11 -0
  208. package/dist/node_modules/recharts/es6/util/getSliced.js +7 -0
  209. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +44 -44
  210. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +7 -0
  211. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +328 -0
  212. package/dist/node_modules/recharts/es6/util/types.js +22 -332
  213. package/dist/node_modules/recharts/es6/util/useAnimationId.js +10 -0
  214. package/dist/node_modules/recharts/es6/util/useElementOffset.js +20 -16
  215. package/dist/node_modules/remeda/dist/hasAtLeast-F1Oj_xBB.js +9 -0
  216. package/dist/node_modules/remeda/dist/lazyDataLastImpl-BDhrIOwR.js +8 -0
  217. package/dist/node_modules/remeda/dist/omit-HZOiLuMO.js +19 -0
  218. package/dist/node_modules/remeda/dist/purry-DH9cw9sy.js +11 -0
  219. package/dist/node_modules/shiki/dist/langs.js +225 -220
  220. package/dist/node_modules/shiki/dist/themes.js +60 -60
  221. package/dist/node_modules/sonner/dist/index.js +309 -305
  222. package/dist/node_modules/style-to-object/cjs/index.js +1 -1
  223. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +169 -168
  224. package/dist/node_modules/unified/lib/callable-instance.js +2 -2
  225. package/dist/node_modules/unified/lib/index.js +1 -1
  226. package/dist/node_modules/unist-util-is/lib/index.js +2 -2
  227. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +2 -2
  228. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +2 -2
  229. package/dist/node_modules/vfile-message/lib/index.js +1 -1
  230. package/dist/styles.v3.css +1 -1
  231. package/package.json +1 -1
  232. package/dist/_virtual/isEqual.js +0 -8
  233. package/dist/_virtual/isEqual2.js +0 -5
  234. package/dist/_virtual/isEqualWith.js +0 -5
  235. package/dist/_virtual/isPlainObject.js +0 -5
  236. package/dist/_virtual/noop.js +0 -5
  237. package/dist/node_modules/es-toolkit/compat/isEqual.js +0 -9
  238. package/dist/node_modules/es-toolkit/dist/predicate/isEqual.js +0 -18
  239. package/dist/node_modules/es-toolkit/dist/predicate/isEqualWith.js +0 -139
  240. package/dist/node_modules/es-toolkit/dist/predicate/isPlainObject.js +0 -18
  241. package/dist/node_modules/recharts/es6/animation/Animate.js +0 -270
  242. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +0 -98
  243. package/dist/node_modules/remeda/dist/chunk-AIG3BDKO.js +0 -9
  244. package/dist/node_modules/remeda/dist/chunk-D6FCK2GA.js +0 -8
  245. package/dist/node_modules/remeda/dist/chunk-KI5X74E2.js +0 -19
  246. package/dist/node_modules/remeda/dist/chunk-WIMGWYZL.js +0 -11
@@ -1,148 +1,45 @@
1
1
  "use client";
2
- import { createSelector as i } from "../../../../reselect/dist/reselect.js";
3
- import H from "../../../../../_virtual/sortBy.js";
4
- import { useAppSelector as $ } from "../hooks.js";
5
- import { getTooltipEntry as P, getValueByDataKey as v } from "../../util/ChartUtils.js";
6
- import { findEntryInArray as q } from "../../util/DataUtils.js";
7
- import { selectChartDataWithIndexes as z } from "./dataSelectors.js";
8
- import { selectTooltipAxis as B, selectTooltipDisplayedData as G, selectTooltipAxisTicks as s } from "./tooltipSelectors.js";
9
- import { selectChartName as J } from "./rootPropsSelectors.js";
10
- import { selectChartLayout as M } from "../../context/chartLayoutContext.js";
11
- import { selectChartOffset as Q } from "./selectChartOffset.js";
12
- import { selectChartWidth as R, selectChartHeight as U } from "./containerSelectors.js";
13
- import { combineActiveLabel as X } from "./combiners/combineActiveLabel.js";
14
- import { combineTooltipInteractionState as Y } from "./combiners/combineTooltipInteractionState.js";
15
- import { combineActiveTooltipIndex as Z } from "./combiners/combineActiveTooltipIndex.js";
16
- import { combineCoordinateForDefaultIndex as V } from "./combiners/combineCoordinateForDefaultIndex.js";
17
- import { combineTooltipPayloadConfigurations as ee } from "./combiners/combineTooltipPayloadConfigurations.js";
18
- import { selectTooltipPayloadSearcher as S } from "./selectTooltipPayloadSearcher.js";
19
- import { selectTooltipState as m } from "./selectTooltipState.js";
20
- function K(e, t) {
21
- var r = Object.keys(e);
22
- if (Object.getOwnPropertySymbols) {
23
- var a = Object.getOwnPropertySymbols(e);
24
- t && (a = a.filter(function(c) {
25
- return Object.getOwnPropertyDescriptor(e, c).enumerable;
26
- })), r.push.apply(r, a);
2
+ import { createSelector as r } from "../../../../reselect/dist/reselect.js";
3
+ import d from "../../../../../_virtual/sortBy.js";
4
+ import { useAppSelector as u } from "../hooks.js";
5
+ import { selectChartDataWithIndexes as T } from "./dataSelectors.js";
6
+ import { selectTooltipDisplayedData as y, selectTooltipAxisTicks as a } from "./tooltipSelectors.js";
7
+ import { selectChartName as h } from "./rootPropsSelectors.js";
8
+ import { selectChartLayout as I } from "../../context/chartLayoutContext.js";
9
+ import { selectChartOffsetInternal as x } from "./selectChartOffsetInternal.js";
10
+ import { selectChartWidth as C, selectChartHeight as A } from "./containerSelectors.js";
11
+ import { combineActiveLabel as b } from "./combiners/combineActiveLabel.js";
12
+ import { combineTooltipInteractionState as D } from "./combiners/combineTooltipInteractionState.js";
13
+ import { combineActiveTooltipIndex as S } from "./combiners/combineActiveTooltipIndex.js";
14
+ import { combineCoordinateForDefaultIndex as _ } from "./combiners/combineCoordinateForDefaultIndex.js";
15
+ import { combineTooltipPayloadConfigurations as k } from "./combiners/combineTooltipPayloadConfigurations.js";
16
+ import { selectTooltipPayloadSearcher as p } from "./selectTooltipPayloadSearcher.js";
17
+ import { selectTooltipState as l } from "./selectTooltipState.js";
18
+ import { combineTooltipPayload as K } from "./combiners/combineTooltipPayload.js";
19
+ import { selectTooltipAxisDataKey as g } from "./selectTooltipAxis.js";
20
+ var X = () => u(h), c = (t, e) => e, s = (t, e, o) => o, n = (t, e, o, i) => i;
21
+ r(a, (t) => d(t, (e) => e.coordinate));
22
+ var m = r([l, c, s, n], D), v = r([m, y], S), Y = (t, e, o) => {
23
+ if (e != null) {
24
+ var i = l(t);
25
+ return e === "axis" ? o === "hover" ? i.axisInteraction.hover.dataKey : i.axisInteraction.click.dataKey : o === "hover" ? i.itemInteraction.hover.dataKey : i.itemInteraction.click.dataKey;
27
26
  }
28
- return r;
29
- }
30
- function D(e) {
31
- for (var t = 1; t < arguments.length; t++) {
32
- var r = arguments[t] != null ? arguments[t] : {};
33
- t % 2 ? K(Object(r), !0).forEach(function(a) {
34
- te(e, a, r[a]);
35
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : K(Object(r)).forEach(function(a) {
36
- Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(r, a));
37
- });
38
- }
39
- return e;
40
- }
41
- function te(e, t, r) {
42
- return (t = re(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
43
- }
44
- function re(e) {
45
- var t = ae(e, "string");
46
- return typeof t == "symbol" ? t : t + "";
47
- }
48
- function ae(e, t) {
49
- if (typeof e != "object" || !e) return e;
50
- var r = e[Symbol.toPrimitive];
51
- if (r !== void 0) {
52
- var a = r.call(e, t);
53
- if (typeof a != "object") return a;
54
- throw new TypeError("@@toPrimitive must return a primitive value.");
55
- }
56
- return (t === "string" ? String : Number)(e);
57
- }
58
- var Ie = () => $(J), y = (e, t) => t, j = (e, t, r) => r, b = (e, t, r, a) => a;
59
- function oe(e, t, r) {
60
- return Array.isArray(e) && e && t + r !== 0 ? e.slice(t, r + 1) : e;
61
- }
62
- i(s, (e) => H(e, (t) => t.coordinate));
63
- var h = i([m, y, j, b], Y), I = i([h, G], Z), Ce = (e, t, r) => {
64
- if (t != null) {
65
- var a = m(e);
66
- return t === "axis" ? r === "hover" ? a.axisInteraction.hover.dataKey : a.axisInteraction.click.dataKey : r === "hover" ? a.itemInteraction.hover.dataKey : a.itemInteraction.click.dataKey;
67
- }
68
- }, C = i([m, y, j, b], ee), ie = i([R, U, M, Q, s, b, C, S], V), we = i([h, ie], (e, t) => {
69
- var r;
70
- return (r = e.coordinate) !== null && r !== void 0 ? r : t;
71
- }), ne = i(s, I, X);
72
- function le(e, t) {
73
- return e ?? t;
74
- }
75
- var ce = (e, t, r, a, c, g, w) => {
76
- if (!(t == null || g == null)) {
77
- var {
78
- chartData: E,
79
- computedData: _,
80
- dataStartIndex: A,
81
- dataEndIndex: k
82
- } = r, x = [];
83
- return e.reduce((u, N) => {
84
- var d, {
85
- dataDefinedOnItem: F,
86
- settings: o
87
- } = N, L = le(F, E), f = oe(L, A, k), T = (d = o?.dataKey) !== null && d !== void 0 ? d : a?.dataKey, O = o?.nameKey, n;
88
- if (a != null && a.dataKey && !(a != null && a.allowDuplicatedCategory) && Array.isArray(f) && /*
89
- * If the tooltipEventType is 'axis', we should search for the dataKey in the sliced data
90
- * because thanks to allowDuplicatedCategory=false, the order of elements in the array
91
- * no longer matches the order of elements in the original data
92
- * and so we need to search by the active dataKey + label rather than by index.
93
- *
94
- * On the other hand the tooltipEventType 'item' should always search by index
95
- * because we get the index from interacting over the individual elements
96
- * which is always accurate, irrespective of the allowDuplicatedCategory setting.
97
- */
98
- w === "axis" ? n = q(f, a.dataKey, c) : n = g(f, t, _, O), Array.isArray(n))
99
- n.forEach((l) => {
100
- var W = D(D({}, o), {}, {
101
- name: l.name,
102
- unit: l.unit,
103
- // color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
104
- color: void 0,
105
- // color and fill are erased to keep 100% the identical behaviour to recharts 2.x - but there's nothing stopping us from returning them here. It's technically a breaking change.
106
- fill: void 0
107
- });
108
- u.push(P({
109
- tooltipEntrySettings: W,
110
- dataKey: l.dataKey,
111
- payload: l.payload,
112
- // @ts-expect-error getValueByDataKey does not validate the output type
113
- value: v(l.payload, l.dataKey),
114
- name: l.name
115
- }));
116
- });
117
- else {
118
- var p;
119
- u.push(P({
120
- tooltipEntrySettings: o,
121
- dataKey: T,
122
- payload: n,
123
- // @ts-expect-error getValueByDataKey does not validate the output type
124
- value: v(n, T),
125
- // @ts-expect-error getValueByDataKey does not validate the output type
126
- name: (p = v(n, O)) !== null && p !== void 0 ? p : o?.name
127
- }));
128
- }
129
- return u;
130
- }, x);
131
- }
132
- }, Ee = i([C, I, z, B, ne, S, y], ce), _e = i([h], (e) => ({
133
- isActive: e.active,
134
- activeIndex: e.index
27
+ }, f = r([l, c, s, n], k), P = r([C, A, I, x, a, n, f, p], _), Z = r([m, P], (t, e) => {
28
+ var o;
29
+ return (o = t.coordinate) !== null && o !== void 0 ? o : e;
30
+ }), L = r(a, v, b), $ = r([f, v, T, g, L, p, c], K), tt = r([m], (t) => ({
31
+ isActive: t.active,
32
+ activeIndex: t.index
135
33
  }));
136
34
  export {
137
- ce as combineTooltipPayload,
138
- we as selectActiveCoordinate,
139
- I as selectActiveIndex,
140
- ne as selectActiveLabel,
141
- ie as selectCoordinateForDefaultIndex,
142
- _e as selectIsTooltipActive,
143
- Ce as selectTooltipDataKey,
144
- h as selectTooltipInteractionState,
145
- Ee as selectTooltipPayload,
146
- C as selectTooltipPayloadConfigurations,
147
- Ie as useChartName
35
+ Z as selectActiveCoordinate,
36
+ v as selectActiveIndex,
37
+ L as selectActiveLabel,
38
+ P as selectCoordinateForDefaultIndex,
39
+ tt as selectIsTooltipActive,
40
+ Y as selectTooltipDataKey,
41
+ m as selectTooltipInteractionState,
42
+ $ as selectTooltipPayload,
43
+ f as selectTooltipPayloadConfigurations,
44
+ X as useChartName
148
45
  };
@@ -1,75 +1,80 @@
1
1
  "use client";
2
2
  import { createSelector as e } from "../../../../reselect/dist/reselect.js";
3
- import { selectAxisSettings as L, combineScaleFunction as P, combineDisplayedData as O, selectHasBar as W, combineRealScaleType as w, selectAxisRange as F, combineDuplicateDomain as H, combineCategoricalDomain as z, combineAxisDomainWithNiceTicks as K, combineGraphicalItemsData as U, combineAppliedValues as j, combineAxisDomain as q, combineNiceTicks as J, combineGraphicalItemsSettings as M, combineNumericalDomain as Q, itemAxisPredicate as X, getDomainDefinition as Y, combineDomainOfStackGroups as Z, combineAppliedNumericalValuesIncludingErrorValues as _, mergeDomains as $, combineStackGroups as ee, filterGraphicalNotStackedItems as ie, combineDotsDomain as te, combineLinesDomain as oe, combineAreasDomain as re, selectReferenceDots as ae, filterReferenceElements as u, selectReferenceLines as le, selectReferenceAreas as se } from "./axisSelectors.js";
4
- import { selectChartLayout as c } from "../../context/chartLayoutContext.js";
5
- import { isCategoricalAxis as ce } from "../../util/ChartUtils.js";
6
- import { selectChartDataWithIndexes as I } from "./dataSelectors.js";
7
- import { selectChartName as ne, selectStackOffsetType as y } from "./rootPropsSelectors.js";
8
- import { mathSign as me } from "../../util/DataUtils.js";
9
- import { combineAxisRangeWithReverse as pe } from "./combiners/combineAxisRangeWithReverse.js";
10
- import { selectDefaultTooltipEventType as ve, selectValidateTooltipEventTypes as fe, combineTooltipEventType as Te } from "./selectTooltipEventType.js";
11
- import { combineActiveLabel as de } from "./combiners/combineActiveLabel.js";
12
- import { selectTooltipSettings as ue } from "./selectTooltipSettings.js";
13
- import { combineTooltipInteractionState as Ae } from "./combiners/combineTooltipInteractionState.js";
14
- import { combineActiveTooltipIndex as xe } from "./combiners/combineActiveTooltipIndex.js";
15
- import { combineCoordinateForDefaultIndex as De } from "./combiners/combineCoordinateForDefaultIndex.js";
16
- import { selectChartWidth as be, selectChartHeight as ge } from "./containerSelectors.js";
17
- import { selectChartOffset as he } from "./selectChartOffset.js";
18
- import { combineTooltipPayloadConfigurations as Ie } from "./combiners/combineTooltipPayloadConfigurations.js";
19
- import { selectTooltipPayloadSearcher as ye } from "./selectTooltipPayloadSearcher.js";
20
- import { selectTooltipState as R } from "./selectTooltipState.js";
21
- var t = (i) => {
22
- var o = c(i);
23
- return o === "horizontal" ? "xAxis" : o === "vertical" ? "yAxis" : o === "centric" ? "angleAxis" : "radiusAxis";
24
- }, p = (i) => i.tooltip.settings.axisId, r = (i) => {
25
- var o = t(i), l = p(i);
26
- return L(i, o, l);
27
- }, A = e([r, c, W, ne, t], w), Re = e([(i) => i.graphicalItems.cartesianItems, (i) => i.graphicalItems.polarItems], (i, o) => [...i, ...o]), Se = e([t, p], X), f = e([Re, r, Se], M), Ce = e([f], U), v = e([Ce, I], O), x = e([v, r, f], j), ke = e([r], Y), Ge = e([v, f, y], ee), Ne = e([Ge, I, t], Z), Ee = e([f], ie), Ve = e([v, r, Ee, t], _), Be = e([ae, t, p], u), Le = e([Be, t], te), Pe = e([se, t, p], u), Oe = e([Pe, t], re), We = e([le, t, p], u), we = e([We, t], oe), Fe = e([Le, we, Oe], $), He = e([r, ke, Ne, Ve, Fe], Q), S = e([r, c, v, x, y, t, He], q), ze = e([S, r, A], J), Ke = e([r, S, ze, t], K), C = (i) => {
28
- var o = t(i), l = p(i), a = !1;
29
- return F(i, o, l, a);
30
- }, Ue = e([r, C], pe), je = e([r, A, Ke, Ue], P), qe = e([c, x, r, t], H), Je = e([c, x, r, t], z), Me = (i, o, l, a, n, b, g, h) => {
31
- if (o) {
3
+ import { combineScaleFunction as W, combineDisplayedData as F, selectHasBar as H, combineRealScaleType as K, selectAxisRange as U, combineDuplicateDomain as j, combineCategoricalDomain as q, combineAxisDomainWithNiceTicks as z, combineGraphicalItemsData as J, combineAppliedValues as M, combineAxisDomain as Q, combineNiceTicks as X, combineGraphicalItemsSettings as Y, combineNumericalDomain as Z, itemAxisPredicate as _, getDomainDefinition as $, combineDomainOfStackGroups as ee, selectAllErrorBarSettings as te, combineAppliedNumericalValuesIncludingErrorValues as ie, mergeDomains as oe, combineStackGroups as ae, filterGraphicalNotStackedItems as re, combineDotsDomain as le, combineLinesDomain as ce, combineAreasDomain as se, selectReferenceDots as ne, filterReferenceElements as A, selectReferenceLines as me, selectReferenceAreas as pe } from "./axisSelectors.js";
4
+ import { selectChartLayout as s } from "../../context/chartLayoutContext.js";
5
+ import { isCategoricalAxis as fe } from "../../util/ChartUtils.js";
6
+ import { selectChartDataWithIndexes as d } from "./dataSelectors.js";
7
+ import { selectChartName as de, selectStackOffsetType as y } from "./rootPropsSelectors.js";
8
+ import { mathSign as ve } from "../../util/DataUtils.js";
9
+ import { combineAxisRangeWithReverse as Te } from "./combiners/combineAxisRangeWithReverse.js";
10
+ import { selectDefaultTooltipEventType as ue, selectValidateTooltipEventTypes as Ae, combineTooltipEventType as De } from "./selectTooltipEventType.js";
11
+ import { combineActiveLabel as be } from "./combiners/combineActiveLabel.js";
12
+ import { selectTooltipSettings as xe } from "./selectTooltipSettings.js";
13
+ import { combineTooltipInteractionState as he } from "./combiners/combineTooltipInteractionState.js";
14
+ import { combineActiveTooltipIndex as ge } from "./combiners/combineActiveTooltipIndex.js";
15
+ import { combineCoordinateForDefaultIndex as Se } from "./combiners/combineCoordinateForDefaultIndex.js";
16
+ import { selectChartWidth as Ie, selectChartHeight as ye } from "./containerSelectors.js";
17
+ import { selectChartOffsetInternal as Re } from "./selectChartOffsetInternal.js";
18
+ import { combineTooltipPayloadConfigurations as ke } from "./combiners/combineTooltipPayloadConfigurations.js";
19
+ import { selectTooltipPayloadSearcher as R } from "./selectTooltipPayloadSearcher.js";
20
+ import { selectTooltipState as k } from "./selectTooltipState.js";
21
+ import { combineTooltipPayload as Ce } from "./combiners/combineTooltipPayload.js";
22
+ import { selectTooltipAxisId as p } from "./selectTooltipAxisId.js";
23
+ import { selectTooltipAxisType as i } from "./selectTooltipAxisType.js";
24
+ import { selectTooltipAxis as o, selectTooltipAxisDataKey as Ge } from "./selectTooltipAxis.js";
25
+ import { combineDisplayedStackedData as Ee } from "./combiners/combineDisplayedStackedData.js";
26
+ import { isStacked as C } from "../types/StackedGraphicalItem.js";
27
+ var D = e([o, s, H, de, i], K), Ne = e([(t) => t.graphicalItems.cartesianItems, (t) => t.graphicalItems.polarItems], (t, a) => [...t, ...a]), Pe = e([i, p], _), f = e([Ne, o, Pe], Y), Be = e([f], (t) => t.filter(C)), Le = e([f], J), v = e([Le, d], F), Ve = e([Be, d, o], Ee), b = e([v, o, f], M), we = e([o], $), Oe = e([f], (t) => t.filter(C)), We = e([Ve, Oe, y], ae), Fe = e([We, d, i], ee), He = e([f], re), Ke = e([v, o, He, te, i], ie), Ue = e([ne, i, p], A), je = e([Ue, i], le), qe = e([pe, i, p], A), ze = e([qe, i], se), Je = e([me, i, p], A), Me = e([Je, i], ce), Qe = e([je, Me, ze], oe), Xe = e([o, we, Fe, Ke, Qe, s, i], Z), G = e([o, s, v, b, y, i, Xe], Q), Ye = e([G, o, D], X), Ze = e([o, G, Ye, i], z), E = (t) => {
28
+ var a = i(t), l = p(t), r = !1;
29
+ return U(t, a, l, r);
30
+ }, _e = e([o, E], Te), $e = e([o, D, Ze, _e], W), et = e([s, b, o, i], j), tt = e([s, b, o, i], q), it = (t, a, l, r, n, g, S, I) => {
31
+ if (a) {
32
32
  var {
33
- type: E
34
- } = o, V = ce(i, h);
35
- if (a) {
36
- var B = l === "scaleBand" && a.bandwidth ? a.bandwidth() / 2 : 2, s = E === "category" && a.bandwidth ? a.bandwidth() / B : 0;
37
- return s = h === "angleAxis" && n != null && n?.length >= 2 ? me(n[0] - n[1]) * 2 * s : s, V && g ? g.map((m, d) => ({
38
- coordinate: a(m) + s,
33
+ type: V
34
+ } = a, w = fe(t, I);
35
+ if (r) {
36
+ var O = l === "scaleBand" && r.bandwidth ? r.bandwidth() / 2 : 2, c = V === "category" && r.bandwidth ? r.bandwidth() / O : 0;
37
+ return c = I === "angleAxis" && n != null && n?.length >= 2 ? ve(n[0] - n[1]) * 2 * c : c, w && S ? S.map((m, u) => ({
38
+ coordinate: r(m) + c,
39
39
  value: m,
40
- index: d,
41
- offset: s
42
- })) : a.domain().map((m, d) => ({
43
- coordinate: a(m) + s,
44
- value: b ? b[m] : m,
45
- index: d,
46
- offset: s
40
+ index: u,
41
+ offset: c
42
+ })) : r.domain().map((m, u) => ({
43
+ coordinate: r(m) + c,
44
+ value: g ? g[m] : m,
45
+ index: u,
46
+ offset: c
47
47
  }));
48
48
  }
49
49
  }
50
- }, k = e([c, r, A, je, C, qe, Je, t], Me), G = e([ve, fe, ue], (i, o, l) => Te(l.shared, i, o)), N = (i) => i.tooltip.settings.trigger, D = (i) => i.tooltip.settings.defaultIndex, T = e([R, G, N, D], Ae), Qe = e([T, v], xe);
51
- e([k, Qe], de);
52
- e([T], (i) => {
53
- if (i)
54
- return i.dataKey;
50
+ }, N = e([s, o, D, $e, E, et, tt, i], it), x = e([ue, Ae, xe], (t, a, l) => De(l.shared, t, a)), P = (t) => t.tooltip.settings.trigger, h = (t) => t.tooltip.settings.defaultIndex, T = e([k, x, P, h], he), B = e([T, v], ge), ot = e([N, B], be);
51
+ e([T], (t) => {
52
+ if (t)
53
+ return t.dataKey;
54
+ });
55
+ var L = e([k, x, P, h], ke), at = e([Ie, ye, s, Re, N, h, L, R], Se);
56
+ e([T, at], (t, a) => t != null && t.coordinate ? t.coordinate : a);
57
+ e([T], (t) => t.active);
58
+ var rt = e([L, B, d, Ge, ot, R, x], Ce);
59
+ e([rt], (t) => {
60
+ if (t != null) {
61
+ var a = t.map((l) => l.payload).filter((l) => l != null);
62
+ return Array.from(new Set(a));
63
+ }
55
64
  });
56
- var Xe = e([R, G, N, D], Ie), Ye = e([be, ge, c, he, k, D, Xe, ye], De);
57
- e([T, Ye], (i, o) => i != null && i.coordinate ? i.coordinate : o);
58
- e([T], (i) => i.active);
59
65
  export {
60
- Qe as selectActiveTooltipIndex,
66
+ ot as selectActiveLabel,
67
+ B as selectActiveTooltipIndex,
68
+ rt as selectActiveTooltipPayload,
61
69
  f as selectAllGraphicalItemsSettings,
62
- Re as selectAllUnfilteredGraphicalItems,
63
- r as selectTooltipAxis,
64
- S as selectTooltipAxisDomain,
65
- Ke as selectTooltipAxisDomainIncludingNiceTicks,
66
- p as selectTooltipAxisId,
67
- Ue as selectTooltipAxisRangeWithReverse,
68
- A as selectTooltipAxisRealScaleType,
69
- je as selectTooltipAxisScale,
70
- k as selectTooltipAxisTicks,
71
- t as selectTooltipAxisType,
72
- Je as selectTooltipCategoricalDomain,
70
+ Ne as selectAllUnfilteredGraphicalItems,
71
+ G as selectTooltipAxisDomain,
72
+ Ze as selectTooltipAxisDomainIncludingNiceTicks,
73
+ _e as selectTooltipAxisRangeWithReverse,
74
+ D as selectTooltipAxisRealScaleType,
75
+ $e as selectTooltipAxisScale,
76
+ N as selectTooltipAxisTicks,
77
+ tt as selectTooltipCategoricalDomain,
73
78
  v as selectTooltipDisplayedData,
74
- Ce as selectTooltipGraphicalItemsData
79
+ Le as selectTooltipGraphicalItemsData
75
80
  };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ function t(n) {
3
+ return n.stackId != null && n.dataKey != null;
4
+ }
5
+ export {
6
+ t as isStacked
7
+ };
@@ -1,14 +1,15 @@
1
1
  "use client";
2
- import y from "../../../../_virtual/sortBy.js";
2
+ import d from "../../../../_virtual/sortBy.js";
3
3
  import b from "../../../../_virtual/get.js";
4
- import { isNullish as h, isNumOrStr as d, isNumber as p, isNan as g } from "./DataUtils.js";
5
- import P from "../../../d3-shape/src/stack.js";
6
- import w from "../../../d3-shape/src/order/none.js";
7
- import M from "../../../d3-shape/src/offset/wiggle.js";
8
- import S from "../../../d3-shape/src/offset/silhouette.js";
9
- import E from "../../../d3-shape/src/offset/none.js";
10
- import D from "../../../d3-shape/src/offset/expand.js";
11
- function l(r, t) {
4
+ import { isNullish as l, isNumOrStr as P, isNumber as p, isNan as y } from "./DataUtils.js";
5
+ import { getSliced as w } from "./getSliced.js";
6
+ import M from "../../../d3-shape/src/stack.js";
7
+ import S from "../../../d3-shape/src/order/none.js";
8
+ import E from "../../../d3-shape/src/offset/wiggle.js";
9
+ import D from "../../../d3-shape/src/offset/silhouette.js";
10
+ import _ from "../../../d3-shape/src/offset/none.js";
11
+ import k from "../../../d3-shape/src/offset/expand.js";
12
+ function g(r, t) {
12
13
  var n = Object.keys(r);
13
14
  if (Object.getOwnPropertySymbols) {
14
15
  var a = Object.getOwnPropertySymbols(r);
@@ -21,22 +22,22 @@ function l(r, t) {
21
22
  function u(r) {
22
23
  for (var t = 1; t < arguments.length; t++) {
23
24
  var n = arguments[t] != null ? arguments[t] : {};
24
- t % 2 ? l(Object(n), !0).forEach(function(a) {
25
- _(r, a, n[a]);
26
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : l(Object(n)).forEach(function(a) {
25
+ t % 2 ? g(Object(n), !0).forEach(function(a) {
26
+ x(r, a, n[a]);
27
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(n)) : g(Object(n)).forEach(function(a) {
27
28
  Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(n, a));
28
29
  });
29
30
  }
30
31
  return r;
31
32
  }
32
- function _(r, t, n) {
33
- return (t = k(t)) in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
33
+ function x(r, t, n) {
34
+ return (t = I(t)) in r ? Object.defineProperty(r, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = n, r;
34
35
  }
35
- function k(r) {
36
- var t = x(r, "string");
36
+ function I(r) {
37
+ var t = A(r, "string");
37
38
  return typeof t == "symbol" ? t : t + "";
38
39
  }
39
- function x(r, t) {
40
+ function A(r, t) {
40
41
  if (typeof r != "object" || !r) return r;
41
42
  var n = r[Symbol.toPrimitive];
42
43
  if (n !== void 0) {
@@ -46,10 +47,10 @@ function x(r, t) {
46
47
  }
47
48
  return (t === "string" ? String : Number)(r);
48
49
  }
49
- function I(r, t, n) {
50
- return h(r) || h(t) ? n : d(t) ? b(r, t, n) : typeof t == "function" ? t(r) : n;
50
+ function N(r, t, n) {
51
+ return l(r) || l(t) ? n : P(t) ? b(r, t, n) : typeof t == "function" ? t(r) : n;
51
52
  }
52
- var X = (r, t, n) => {
53
+ var H = (r, t, n) => {
53
54
  if (t && n) {
54
55
  var {
55
56
  width: a,
@@ -69,71 +70,71 @@ var X = (r, t, n) => {
69
70
  });
70
71
  }
71
72
  return r;
72
- }, q = (r, t) => r === "horizontal" && t === "xAxis" || r === "vertical" && t === "yAxis" || r === "centric" && t === "angleAxis" || r === "radial" && t === "radiusAxis", O = 1e-4, z = (r) => {
73
+ }, J = (r, t) => r === "horizontal" && t === "xAxis" || r === "vertical" && t === "yAxis" || r === "centric" && t === "angleAxis" || r === "radial" && t === "radiusAxis", O = 1e-4, Q = (r) => {
73
74
  var t = r.domain();
74
75
  if (!(!t || t.length <= 2)) {
75
76
  var n = t.length, a = r.range(), f = Math.min(a[0], a[1]) - O, e = Math.max(a[0], a[1]) + O, o = r(t[0]), i = r(t[n - 1]);
76
77
  (o < f || o > e || i < f || i > e) && r.domain([t[0], t[n - 1]]);
77
78
  }
78
- }, A = (r) => {
79
+ }, s = (r) => {
79
80
  var t = r.length;
80
81
  if (!(t <= 0))
81
82
  for (var n = 0, a = r[0].length; n < a; ++n)
82
83
  for (var f = 0, e = 0, o = 0; o < t; ++o) {
83
- var i = g(r[o][n][1]) ? r[o][n][0] : r[o][n][1];
84
+ var i = y(r[o][n][1]) ? r[o][n][0] : r[o][n][1];
84
85
  i >= 0 ? (r[o][n][0] = f, r[o][n][1] = f + i, f = r[o][n][1]) : (r[o][n][0] = e, r[o][n][1] = e + i, e = r[o][n][1]);
85
86
  }
86
- }, N = (r) => {
87
+ }, B = (r) => {
87
88
  var t = r.length;
88
89
  if (!(t <= 0))
89
90
  for (var n = 0, a = r[0].length; n < a; ++n)
90
91
  for (var f = 0, e = 0; e < t; ++e) {
91
- var o = g(r[e][n][1]) ? r[e][n][0] : r[e][n][1];
92
+ var o = y(r[e][n][1]) ? r[e][n][0] : r[e][n][1];
92
93
  o >= 0 ? (r[e][n][0] = f, r[e][n][1] = f + o, f = r[e][n][1]) : (r[e][n][0] = 0, r[e][n][1] = 0);
93
94
  }
94
- }, s = {
95
- sign: A,
95
+ }, F = {
96
+ sign: s,
96
97
  // @ts-expect-error definitelytyped types are incorrect
97
- expand: D,
98
+ expand: k,
98
99
  // @ts-expect-error definitelytyped types are incorrect
99
- none: E,
100
+ none: _,
100
101
  // @ts-expect-error definitelytyped types are incorrect
101
- silhouette: S,
102
+ silhouette: D,
102
103
  // @ts-expect-error definitelytyped types are incorrect
103
- wiggle: M,
104
- positive: N
105
- }, H = (r, t, n) => {
106
- var a = s[n], f = P().keys(t).value((e, o) => +I(e, o, 0)).order(w).offset(a);
104
+ wiggle: E,
105
+ positive: B
106
+ }, Y = (r, t, n) => {
107
+ var a = F[n], f = M().keys(t).value((e, o) => +N(e, o, 0)).order(S).offset(a);
107
108
  return f(r);
108
- }, B = (r) => {
109
+ }, L = (r) => {
109
110
  var t = r.flat(2).filter(p);
110
111
  return [Math.min(...t), Math.max(...t)];
111
- }, F = (r) => [r[0] === 1 / 0 ? 0 : r[0], r[1] === -1 / 0 ? 0 : r[1]], J = (r, t, n) => {
112
+ }, V = (r) => [r[0] === 1 / 0 ? 0 : r[0], r[1] === -1 / 0 ? 0 : r[1]], Z = (r, t, n) => {
112
113
  if (r != null)
113
- return F(Object.keys(r).reduce((a, f) => {
114
+ return V(Object.keys(r).reduce((a, f) => {
114
115
  var e = r[f], {
115
116
  stackedData: o
116
- } = e, i = o.reduce((v, c) => {
117
- var m = B(c.slice(t, n + 1));
118
- return [Math.min(v[0], m[0]), Math.max(v[1], m[1])];
117
+ } = e, i = o.reduce((m, v) => {
118
+ var c = w(v, t, n), h = L(c);
119
+ return [Math.min(m[0], h[0]), Math.max(m[1], h[1])];
119
120
  }, [1 / 0, -1 / 0]);
120
121
  return [Math.min(i[0], a[0]), Math.max(i[1], a[1])];
121
122
  }, [1 / 0, -1 / 0]));
122
- }, Q = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, Y = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, Z = (r, t, n) => {
123
+ }, T = /^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, j = /^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/, rr = (r, t, n) => {
123
124
  if (r && r.scale && r.scale.bandwidth) {
124
125
  var a = r.scale.bandwidth();
125
126
  return a;
126
127
  }
127
128
  if (r && t && t.length >= 2) {
128
- for (var f = y(t, (m) => m.coordinate), e = 1 / 0, o = 1, i = f.length; o < i; o++) {
129
- var v = f[o], c = f[o - 1];
130
- e = Math.min((v.coordinate || 0) - (c.coordinate || 0), e);
129
+ for (var f = d(t, (c) => c.coordinate), e = 1 / 0, o = 1, i = f.length; o < i; o++) {
130
+ var m = f[o], v = f[o - 1];
131
+ e = Math.min((m.coordinate || 0) - (v.coordinate || 0), e);
131
132
  }
132
133
  return e === 1 / 0 ? 0 : e;
133
134
  }
134
135
  return 0;
135
136
  };
136
- function T(r) {
137
+ function tr(r) {
137
138
  var {
138
139
  tooltipEntrySettings: t,
139
140
  dataKey: n,
@@ -149,16 +150,16 @@ function T(r) {
149
150
  });
150
151
  }
151
152
  export {
152
- Y as MAX_VALUE_REG,
153
- Q as MIN_VALUE_REG,
154
- X as appendOffsetOfLegend,
155
- z as checkDomainOfScale,
156
- Z as getBandSizeOfAxis,
157
- J as getDomainOfStackGroups,
158
- H as getStackedData,
159
- T as getTooltipEntry,
160
- I as getValueByDataKey,
161
- q as isCategoricalAxis,
162
- N as offsetPositive,
163
- A as offsetSign
153
+ j as MAX_VALUE_REG,
154
+ T as MIN_VALUE_REG,
155
+ H as appendOffsetOfLegend,
156
+ Q as checkDomainOfScale,
157
+ rr as getBandSizeOfAxis,
158
+ Z as getDomainOfStackGroups,
159
+ Y as getStackedData,
160
+ tr as getTooltipEntry,
161
+ N as getValueByDataKey,
162
+ J as isCategoricalAxis,
163
+ B as offsetPositive,
164
+ s as offsetSign
164
165
  };
@@ -1,42 +1,50 @@
1
1
  "use client";
2
- import g from "../../../../_virtual/get.js";
3
- var c = (r) => r === 0 ? 0 : r > 0 ? 1 : -1, i = (r) => typeof r == "number" && r != +r, o = (r) => typeof r == "string" && r.indexOf("%") === r.length - 1, u = (r) => (typeof r == "number" || r instanceof Number) && !i(r), h = (r) => u(r) || typeof r == "string", l = function(n, t) {
4
- var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
2
+ import o from "../../../../_virtual/get.js";
3
+ var l = (r) => r === 0 ? 0 : r > 0 ? 1 : -1, f = (r) => typeof r == "number" && r != +r, g = (r) => typeof r == "string" && r.indexOf("%") === r.length - 1, u = (r) => (typeof r == "number" || r instanceof Number) && !f(r), h = (r) => u(r) || typeof r == "string", c = 0, p = (r) => {
4
+ var n = ++c;
5
+ return "".concat(r || "").concat(n);
6
+ }, v = function(n, e) {
7
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, a = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !1;
5
8
  if (!u(n) && typeof n != "string")
6
- return e;
7
- var f;
8
- if (o(n)) {
9
- if (t == null)
10
- return e;
11
- var a = n.indexOf("%");
12
- f = t * parseFloat(n.slice(0, a)) / 100;
9
+ return t;
10
+ var i;
11
+ if (g(n)) {
12
+ if (e == null)
13
+ return t;
14
+ var s = n.indexOf("%");
15
+ i = e * parseFloat(n.slice(0, s)) / 100;
13
16
  } else
14
- f = +n;
15
- return i(f) && (f = e), s && t != null && f > t && (f = t), f;
16
- }, p = (r) => {
17
+ i = +n;
18
+ return f(i) && (i = t), a && e != null && i > e && (i = e), i;
19
+ }, N = (r) => {
17
20
  if (!Array.isArray(r))
18
21
  return !1;
19
- for (var n = r.length, t = {}, e = 0; e < n; e++)
20
- if (!t[r[e]])
21
- t[r[e]] = !0;
22
+ for (var n = r.length, e = {}, t = 0; t < n; t++)
23
+ if (!e[r[t]])
24
+ e[r[t]] = !0;
22
25
  else
23
26
  return !0;
24
27
  return !1;
25
28
  };
26
- function v(r, n, t) {
29
+ function b(r, n, e) {
30
+ return u(r) && u(n) ? r + e * (n - r) : n;
31
+ }
32
+ function A(r, n, e) {
27
33
  if (!(!r || !r.length))
28
- return r.find((e) => e && (typeof n == "function" ? n(e) : g(e, n)) === t);
34
+ return r.find((t) => t && (typeof n == "function" ? n(t) : o(t, n)) === e);
29
35
  }
30
- var m = (r) => r === null || typeof r > "u", N = (r) => m(r) ? r : "".concat(r.charAt(0).toUpperCase()).concat(r.slice(1));
36
+ var m = (r) => r === null || typeof r > "u", x = (r) => m(r) ? r : "".concat(r.charAt(0).toUpperCase()).concat(r.slice(1));
31
37
  export {
32
- v as findEntryInArray,
33
- l as getPercentValue,
34
- p as hasDuplicate,
35
- i as isNan,
38
+ A as findEntryInArray,
39
+ v as getPercentValue,
40
+ N as hasDuplicate,
41
+ b as interpolate,
42
+ f as isNan,
36
43
  m as isNullish,
37
44
  h as isNumOrStr,
38
45
  u as isNumber,
39
- o as isPercent,
40
- c as mathSign,
41
- N as upperFirst
46
+ g as isPercent,
47
+ l as mathSign,
48
+ p as uniqueId,
49
+ x as upperFirst
42
50
  };