@pibit.ai/cure-design-system 0.6.42 → 0.6.44

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 (333) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +6 -0
  2. package/dist/_virtual/index.js +4 -0
  3. package/dist/_virtual/index2.js +5 -0
  4. package/dist/_virtual/index3.js +7 -0
  5. package/dist/_virtual/index4.js +4 -0
  6. package/dist/_virtual/index5.js +4 -0
  7. package/dist/_virtual/react-is.development.js +4 -0
  8. package/dist/_virtual/react-is.production.min.js +4 -0
  9. package/dist/_virtual/use-sync-external-store-shim.development.js +4 -0
  10. package/dist/_virtual/use-sync-external-store-shim.production.js +4 -0
  11. package/dist/_virtual/use-sync-external-store-with-selector.development.js +4 -0
  12. package/dist/_virtual/use-sync-external-store-with-selector.production.js +4 -0
  13. package/dist/_virtual/with-selector.development.js +4 -0
  14. package/dist/_virtual/with-selector.js +5 -0
  15. package/dist/_virtual/with-selector.production.js +4 -0
  16. package/dist/_virtual/with-selector2.js +4 -0
  17. package/dist/_virtual/with-selector3.js +2 -0
  18. package/dist/_virtual/with-selector4.js +4 -0
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +127 -125
  22. package/dist/node_modules/@reduxjs/toolkit/dist/redux-toolkit.modern.js +846 -0
  23. package/dist/node_modules/d3-array/src/ascending.js +6 -0
  24. package/dist/node_modules/d3-array/src/bisect.js +9 -0
  25. package/dist/node_modules/d3-array/src/bisector.js +37 -0
  26. package/dist/node_modules/d3-array/src/descending.js +6 -0
  27. package/dist/node_modules/d3-array/src/max.js +9 -0
  28. package/dist/node_modules/d3-array/src/min.js +9 -0
  29. package/dist/node_modules/d3-array/src/number.js +11 -0
  30. package/dist/node_modules/d3-array/src/quantile.js +24 -0
  31. package/dist/node_modules/d3-array/src/quickselect.js +25 -0
  32. package/dist/node_modules/d3-array/src/range.js +9 -0
  33. package/dist/node_modules/d3-array/src/sort.js +16 -0
  34. package/dist/node_modules/d3-array/src/ticks.js +32 -0
  35. package/dist/node_modules/d3-color/src/color.js +305 -0
  36. package/dist/node_modules/d3-color/src/define.js +12 -0
  37. package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
  38. package/dist/node_modules/d3-format/src/exponent.js +7 -0
  39. package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
  40. package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
  41. package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
  42. package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
  43. package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
  44. package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
  45. package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
  46. package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
  47. package/dist/node_modules/d3-format/src/identity.js +6 -0
  48. package/dist/node_modules/d3-format/src/locale.js +68 -0
  49. package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
  50. package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
  51. package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
  52. package/dist/node_modules/d3-interpolate/src/array.js +13 -0
  53. package/dist/node_modules/d3-interpolate/src/color.js +24 -0
  54. package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
  55. package/dist/node_modules/d3-interpolate/src/date.js +9 -0
  56. package/dist/node_modules/d3-interpolate/src/number.js +8 -0
  57. package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
  58. package/dist/node_modules/d3-interpolate/src/object.js +14 -0
  59. package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
  60. package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
  61. package/dist/node_modules/d3-interpolate/src/round.js +8 -0
  62. package/dist/node_modules/d3-interpolate/src/string.js +24 -0
  63. package/dist/node_modules/d3-interpolate/src/value.js +16 -0
  64. package/dist/node_modules/d3-path/src/path.js +64 -0
  65. package/dist/node_modules/d3-scale/src/band.js +51 -0
  66. package/dist/node_modules/d3-scale/src/constant.js +8 -0
  67. package/dist/node_modules/d3-scale/src/continuous.js +75 -0
  68. package/dist/node_modules/d3-scale/src/diverging.js +68 -0
  69. package/dist/node_modules/d3-scale/src/identity.js +18 -0
  70. package/dist/node_modules/d3-scale/src/init.js +32 -0
  71. package/dist/node_modules/d3-scale/src/linear.js +39 -0
  72. package/dist/node_modules/d3-scale/src/log.js +86 -0
  73. package/dist/node_modules/d3-scale/src/nice.js +8 -0
  74. package/dist/node_modules/d3-scale/src/number.js +6 -0
  75. package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
  76. package/dist/node_modules/d3-scale/src/pow.js +37 -0
  77. package/dist/node_modules/d3-scale/src/quantile.js +38 -0
  78. package/dist/node_modules/d3-scale/src/quantize.js +31 -0
  79. package/dist/node_modules/d3-scale/src/radial.js +37 -0
  80. package/dist/node_modules/d3-scale/src/sequential.js +70 -0
  81. package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
  82. package/dist/node_modules/d3-scale/src/symlog.js +29 -0
  83. package/dist/node_modules/d3-scale/src/threshold.js +23 -0
  84. package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
  85. package/dist/node_modules/d3-scale/src/time.js +46 -0
  86. package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
  87. package/dist/node_modules/d3-shape/src/area.js +56 -0
  88. package/dist/node_modules/d3-shape/src/array.js +6 -0
  89. package/dist/node_modules/d3-shape/src/constant.js +8 -0
  90. package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
  91. package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
  92. package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
  93. package/dist/node_modules/d3-shape/src/curve/bump.js +43 -0
  94. package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
  95. package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
  96. package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
  97. package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
  98. package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
  99. package/dist/node_modules/d3-shape/src/line.js +29 -0
  100. package/dist/node_modules/d3-shape/src/noop.js +5 -0
  101. package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
  102. package/dist/node_modules/d3-shape/src/offset/none.js +9 -0
  103. package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
  104. package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
  105. package/dist/node_modules/d3-shape/src/order/none.js +7 -0
  106. package/dist/node_modules/d3-shape/src/path.js +18 -0
  107. package/dist/node_modules/d3-shape/src/point.js +10 -0
  108. package/dist/node_modules/d3-shape/src/stack.js +35 -0
  109. package/dist/node_modules/d3-time/src/day.js +26 -0
  110. package/dist/node_modules/d3-time/src/duration.js +10 -0
  111. package/dist/node_modules/d3-time/src/hour.js +18 -0
  112. package/dist/node_modules/d3-time/src/interval.js +31 -0
  113. package/dist/node_modules/d3-time/src/millisecond.js +14 -0
  114. package/dist/node_modules/d3-time/src/minute.js +18 -0
  115. package/dist/node_modules/d3-time/src/month.js +17 -0
  116. package/dist/node_modules/d3-time/src/second.js +11 -0
  117. package/dist/node_modules/d3-time/src/ticks.js +54 -0
  118. package/dist/node_modules/d3-time/src/week.js +48 -0
  119. package/dist/node_modules/d3-time/src/year.js +27 -0
  120. package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
  121. package/dist/node_modules/d3-time-format/src/locale.js +478 -0
  122. package/dist/node_modules/decimal.js-light/decimal.js +472 -0
  123. package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +6 -0
  124. package/dist/node_modules/es-toolkit/dist/array/flatten.js +12 -0
  125. package/dist/node_modules/es-toolkit/dist/compat/_internal/baseToString.js +16 -0
  126. package/dist/node_modules/es-toolkit/dist/compat/_internal/compareValues.js +17 -0
  127. package/dist/node_modules/es-toolkit/dist/compat/_internal/hasOwn.js +7 -0
  128. package/dist/node_modules/es-toolkit/dist/compat/_internal/isDeepKey.js +15 -0
  129. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIndex.js +14 -0
  130. package/dist/node_modules/es-toolkit/dist/compat/_internal/isIterateeCall.js +10 -0
  131. package/dist/node_modules/es-toolkit/dist/compat/_internal/isKey.js +8 -0
  132. package/dist/node_modules/es-toolkit/dist/compat/_internal/objectValues.js +8 -0
  133. package/dist/node_modules/es-toolkit/dist/compat/_internal/toKey.js +7 -0
  134. package/dist/node_modules/es-toolkit/dist/compat/array/orderBy.js +35 -0
  135. package/dist/node_modules/es-toolkit/dist/compat/array/sortBy.js +10 -0
  136. package/dist/node_modules/es-toolkit/dist/compat/function/debounce.js +16 -0
  137. package/dist/node_modules/es-toolkit/dist/compat/function/throttle.js +12 -0
  138. package/dist/node_modules/es-toolkit/dist/compat/math/range.js +12 -0
  139. package/dist/node_modules/es-toolkit/dist/compat/object/get.js +39 -0
  140. package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +7 -0
  141. package/dist/node_modules/es-toolkit/dist/compat/predicate/isObject.js +6 -0
  142. package/dist/node_modules/es-toolkit/dist/compat/predicate/isSymbol.js +6 -0
  143. package/dist/node_modules/es-toolkit/dist/compat/util/eq.js +6 -0
  144. package/dist/node_modules/es-toolkit/dist/compat/util/toFinite.js +7 -0
  145. package/dist/node_modules/es-toolkit/dist/compat/util/toNumber.js +7 -0
  146. package/dist/node_modules/es-toolkit/dist/compat/util/toPath.js +38 -0
  147. package/dist/node_modules/es-toolkit/dist/compat/util/toString.js +7 -0
  148. package/dist/node_modules/es-toolkit/dist/function/debounce.js +29 -0
  149. package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +6 -0
  150. package/dist/node_modules/eventemitter3/index.js +5 -0
  151. package/dist/node_modules/eventemitter3/index2.js +111 -0
  152. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +5 -5
  153. package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +9 -9
  154. package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +3 -3
  155. package/dist/node_modules/immer/dist/immer.js +575 -0
  156. package/dist/node_modules/internmap/src/index.js +35 -0
  157. package/dist/node_modules/react-is/cjs/react-is.development.js +98 -0
  158. package/dist/node_modules/react-is/cjs/react-is.production.min.js +81 -0
  159. package/dist/node_modules/react-is/index.js +10 -0
  160. package/dist/node_modules/react-redux/dist/react-redux.js +137 -0
  161. package/dist/node_modules/recharts/es6/animation/AnimatedItems.js +78 -0
  162. package/dist/node_modules/recharts/es6/animation/AnimationControllerImpl.js +21 -0
  163. package/dist/node_modules/recharts/es6/animation/AnimationHandle.js +179 -0
  164. package/dist/node_modules/recharts/es6/animation/JavascriptAnimate.js +84 -0
  165. package/dist/node_modules/recharts/es6/animation/easing.js +89 -0
  166. package/dist/node_modules/recharts/es6/animation/matchBy.js +105 -0
  167. package/dist/node_modules/recharts/es6/animation/timeoutController.js +13 -0
  168. package/dist/node_modules/recharts/es6/animation/useAnimationController.js +11 -0
  169. package/dist/node_modules/recharts/es6/animation/useAnimationStartSnapshot.js +20 -0
  170. package/dist/node_modules/recharts/es6/cartesian/cartesianViewBoxToTrapezoid.js +14 -0
  171. package/dist/node_modules/recharts/es6/cartesian/getCartesianPosition.js +141 -0
  172. package/dist/node_modules/recharts/es6/chart/CategoricalChart.js +62 -0
  173. package/dist/node_modules/recharts/es6/chart/PieChart.js +62 -0
  174. package/dist/node_modules/recharts/es6/chart/PolarChart.js +144 -0
  175. package/dist/node_modules/recharts/es6/chart/RechartsWrapper.js +297 -0
  176. package/dist/node_modules/recharts/es6/component/Cell.js +5 -0
  177. package/dist/node_modules/recharts/es6/component/Label.js +262 -0
  178. package/dist/node_modules/recharts/es6/component/LabelList.js +101 -0
  179. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +219 -0
  180. package/dist/node_modules/recharts/es6/component/Text.js +240 -0
  181. package/dist/node_modules/recharts/es6/component/responsiveContainerUtils.js +43 -0
  182. package/dist/node_modules/recharts/es6/container/ClipPathProvider.js +63 -0
  183. package/dist/node_modules/recharts/es6/container/Layer.js +42 -0
  184. package/dist/node_modules/recharts/es6/container/RootSurface.js +90 -0
  185. package/dist/node_modules/recharts/es6/container/Surface.js +51 -0
  186. package/dist/node_modules/recharts/es6/context/PanoramaContext.js +5 -0
  187. package/dist/node_modules/recharts/es6/context/RegisterGraphicalItemId.js +12 -0
  188. package/dist/node_modules/recharts/es6/context/accessibilityContext.js +8 -0
  189. package/dist/node_modules/recharts/es6/context/chartDataContext.js +14 -0
  190. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +44 -0
  191. package/dist/node_modules/recharts/es6/context/legendPortalContext.js +5 -0
  192. package/dist/node_modules/recharts/es6/context/tooltipContext.js +33 -0
  193. package/dist/node_modules/recharts/es6/context/tooltipPortalContext.js +5 -0
  194. package/dist/node_modules/recharts/es6/hooks.js +6 -0
  195. package/dist/node_modules/recharts/es6/polar/Pie.js +486 -0
  196. package/dist/node_modules/recharts/es6/polar/defaultPolarAngleAxisProps.js +13 -0
  197. package/dist/node_modules/recharts/es6/polar/defaultPolarRadiusAxisProps.js +15 -0
  198. package/dist/node_modules/recharts/es6/shape/Curve.js +128 -0
  199. package/dist/node_modules/recharts/es6/shape/Sector.js +151 -0
  200. package/dist/node_modules/recharts/es6/state/RechartsReduxContext.js +5 -0
  201. package/dist/node_modules/recharts/es6/state/RechartsStoreProvider.js +20 -0
  202. package/dist/node_modules/recharts/es6/state/ReportChartProps.js +12 -0
  203. package/dist/node_modules/recharts/es6/state/ReportEventSettings.js +13 -0
  204. package/dist/node_modules/recharts/es6/state/ReportMainChartProps.js +15 -0
  205. package/dist/node_modules/recharts/es6/state/ReportPolarOptions.js +12 -0
  206. package/dist/node_modules/recharts/es6/state/SetGraphicalItem.js +17 -0
  207. package/dist/node_modules/recharts/es6/state/SetLegendPayload.js +18 -0
  208. package/dist/node_modules/recharts/es6/state/SetTooltipEntrySettings.js +18 -0
  209. package/dist/node_modules/recharts/es6/state/brushSlice.js +27 -0
  210. package/dist/node_modules/recharts/es6/state/cartesianAxisSlice.js +148 -0
  211. package/dist/node_modules/recharts/es6/state/chartDataSlice.js +35 -0
  212. package/dist/node_modules/recharts/es6/state/errorBarSlice.js +26 -0
  213. package/dist/node_modules/recharts/es6/state/eventSettingsSlice.js +19 -0
  214. package/dist/node_modules/recharts/es6/state/externalEventsMiddleware.js +58 -0
  215. package/dist/node_modules/recharts/es6/state/graphicalItemsSlice.js +61 -0
  216. package/dist/node_modules/recharts/es6/state/hooks.js +19 -0
  217. package/dist/node_modules/recharts/es6/state/keyboardEventsMiddleware.js +119 -0
  218. package/dist/node_modules/recharts/es6/state/layoutSlice.js +38 -0
  219. package/dist/node_modules/recharts/es6/state/legendSlice.js +57 -0
  220. package/dist/node_modules/recharts/es6/state/mouseEventsMiddleware.js +52 -0
  221. package/dist/node_modules/recharts/es6/state/optionsSlice.js +28 -0
  222. package/dist/node_modules/recharts/es6/state/polarAxisSlice.js +31 -0
  223. package/dist/node_modules/recharts/es6/state/polarOptionsSlice.js +12 -0
  224. package/dist/node_modules/recharts/es6/state/reduxDevtoolsJsonStringifyReplacer.js +6 -0
  225. package/dist/node_modules/recharts/es6/state/referenceElementsSlice.js +44 -0
  226. package/dist/node_modules/recharts/es6/state/renderedTicksSlice.js +26 -0
  227. package/dist/node_modules/recharts/es6/state/rootPropsSlice.js +28 -0
  228. package/dist/node_modules/recharts/es6/state/selectors/arrayEqualityCheck.js +16 -0
  229. package/dist/node_modules/recharts/es6/state/selectors/axisSelectors.js +925 -0
  230. package/dist/node_modules/recharts/es6/state/selectors/brushSelectors.js +14 -0
  231. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveLabel.js +9 -0
  232. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineActiveTooltipIndex.js +41 -0
  233. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineAxisRangeWithReverse.js +7 -0
  234. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCheckedDomain.js +22 -0
  235. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineConfiguredScale.js +27 -0
  236. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineCoordinateForDefaultIndex.js +24 -0
  237. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineDisplayedStackedData.js +20 -0
  238. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineInverseScaleFunction.js +8 -0
  239. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineRealScaleType.js +20 -0
  240. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipInteractionState.js +78 -0
  241. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayload.js +137 -0
  242. package/dist/node_modules/recharts/es6/state/selectors/combiners/combineTooltipPayloadConfigurations.js +20 -0
  243. package/dist/node_modules/recharts/es6/state/selectors/containerSelectors.js +7 -0
  244. package/dist/node_modules/recharts/es6/state/selectors/dataSelectors.js +27 -0
  245. package/dist/node_modules/recharts/es6/state/selectors/legendSelectors.js +11 -0
  246. package/dist/node_modules/recharts/es6/state/selectors/numberDomainEqualityCheck.js +4 -0
  247. package/dist/node_modules/recharts/es6/state/selectors/pickAxisId.js +4 -0
  248. package/dist/node_modules/recharts/es6/state/selectors/pickAxisType.js +4 -0
  249. package/dist/node_modules/recharts/es6/state/selectors/pieSelectors.js +78 -0
  250. package/dist/node_modules/recharts/es6/state/selectors/polarAxisSelectors.js +147 -0
  251. package/dist/node_modules/recharts/es6/state/selectors/polarSelectors.js +36 -0
  252. package/dist/node_modules/recharts/es6/state/selectors/rootPropsSelectors.js +10 -0
  253. package/dist/node_modules/recharts/es6/state/selectors/selectActivePropsFromChartPointer.js +11 -0
  254. package/dist/node_modules/recharts/es6/state/selectors/selectAllAxes.js +6 -0
  255. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffset.js +11 -0
  256. package/dist/node_modules/recharts/es6/state/selectors/selectChartOffsetInternal.js +123 -0
  257. package/dist/node_modules/recharts/es6/state/selectors/selectPlotArea.js +15 -0
  258. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisId.js +4 -0
  259. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipAxisType.js +8 -0
  260. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipEventType.js +17 -0
  261. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipPayloadSearcher.js +4 -0
  262. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipSettings.js +4 -0
  263. package/dist/node_modules/recharts/es6/state/selectors/selectTooltipState.js +4 -0
  264. package/dist/node_modules/recharts/es6/state/selectors/selectors.js +62 -0
  265. package/dist/node_modules/recharts/es6/state/selectors/tooltipSelectors.js +107 -0
  266. package/dist/node_modules/recharts/es6/state/selectors/touchSelectors.js +15 -0
  267. package/dist/node_modules/recharts/es6/state/store.js +79 -0
  268. package/dist/node_modules/recharts/es6/state/tooltipSlice.js +106 -0
  269. package/dist/node_modules/recharts/es6/state/touchEventsMiddleware.js +72 -0
  270. package/dist/node_modules/recharts/es6/state/types/StackedGraphicalItem.js +6 -0
  271. package/dist/node_modules/recharts/es6/state/zIndexSlice.js +102 -0
  272. package/dist/node_modules/recharts/es6/synchronisation/useChartSynchronisation.js +183 -0
  273. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +71 -0
  274. package/dist/node_modules/recharts/es6/util/ChartUtils.js +185 -0
  275. package/dist/node_modules/recharts/es6/util/Constants.js +7 -0
  276. package/dist/node_modules/recharts/es6/util/DOMUtils.js +89 -0
  277. package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
  278. package/dist/node_modules/recharts/es6/util/Events.js +7 -0
  279. package/dist/node_modules/recharts/es6/util/Global.js +6 -0
  280. package/dist/node_modules/recharts/es6/util/LRUCache.js +44 -0
  281. package/dist/node_modules/recharts/es6/util/LogUtils.js +14 -0
  282. package/dist/node_modules/recharts/es6/util/PolarUtils.js +113 -0
  283. package/dist/node_modules/recharts/es6/util/ReactUtils.js +24 -0
  284. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +151 -0
  285. package/dist/node_modules/recharts/es6/util/createEventProxy.js +15 -0
  286. package/dist/node_modules/recharts/es6/util/excludeEventProps.js +10 -0
  287. package/dist/node_modules/recharts/es6/util/getActiveCoordinate.js +141 -0
  288. package/dist/node_modules/recharts/es6/util/getAxisTypeBasedOnLayout.js +10 -0
  289. package/dist/node_modules/recharts/es6/util/getClassNameFromUnknown.js +6 -0
  290. package/dist/node_modules/recharts/es6/util/getRelativeCoordinate.js +31 -0
  291. package/dist/node_modules/recharts/es6/util/getSliced.js +6 -0
  292. package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +131 -0
  293. package/dist/node_modules/recharts/es6/util/isWellBehavedNumber.js +10 -0
  294. package/dist/node_modules/recharts/es6/util/propsAreEqual.js +43 -0
  295. package/dist/node_modules/recharts/es6/util/resolveDefaultProps.js +45 -0
  296. package/dist/node_modules/recharts/es6/util/round.js +17 -0
  297. package/dist/node_modules/recharts/es6/util/scale/RechartsScale.js +44 -0
  298. package/dist/node_modules/recharts/es6/util/scale/createCategoricalInverse.js +29 -0
  299. package/dist/node_modules/recharts/es6/util/scale/getNiceTickValues.js +119 -0
  300. package/dist/node_modules/recharts/es6/util/scale/util/arithmetic.js +14 -0
  301. package/dist/node_modules/recharts/es6/util/stacks/getStackSeriesIdentifier.js +6 -0
  302. package/dist/node_modules/recharts/es6/util/svgPropertiesAndEvents.js +12 -0
  303. package/dist/node_modules/recharts/es6/util/svgPropertiesNoEvents.js +340 -0
  304. package/dist/node_modules/recharts/es6/util/types.js +25 -0
  305. package/dist/node_modules/recharts/es6/util/useAnimationId.js +9 -0
  306. package/dist/node_modules/recharts/es6/util/useId.js +51 -0
  307. package/dist/node_modules/recharts/es6/util/usePrefersReducedMotion.js +58 -0
  308. package/dist/node_modules/recharts/es6/util/useReportScale.js +57 -0
  309. package/dist/node_modules/recharts/es6/util/useUniqueId.js +8 -0
  310. package/dist/node_modules/recharts/es6/zIndex/DefaultZIndexes.js +70 -0
  311. package/dist/node_modules/recharts/es6/zIndex/ZIndexLayer.js +47 -0
  312. package/dist/node_modules/recharts/es6/zIndex/ZIndexPortal.js +40 -0
  313. package/dist/node_modules/recharts/es6/zIndex/zIndexSelectors.js +21 -0
  314. package/dist/node_modules/redux/dist/redux.js +258 -0
  315. package/dist/node_modules/redux-thunk/dist/redux-thunk.js +8 -0
  316. package/dist/node_modules/reselect/dist/reselect.js +226 -0
  317. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +67 -0
  318. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +66 -0
  319. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +67 -0
  320. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +55 -0
  321. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +66 -0
  322. package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +65 -0
  323. package/dist/node_modules/use-sync-external-store/shim/index.js +10 -0
  324. package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -0
  325. package/dist/node_modules/use-sync-external-store/with-selector.js +10 -0
  326. package/dist/node_modules/victory-vendor/es/d3-scale.js +47 -0
  327. package/dist/primitives/donut-chart/donut-chart.d.ts +35 -0
  328. package/dist/primitives/donut-chart/donut-chart.d.ts.map +1 -0
  329. package/dist/primitives/donut-chart/donut-chart.js +121 -0
  330. package/dist/primitives/donut-chart/index.d.ts +2 -0
  331. package/dist/primitives/donut-chart/index.d.ts.map +1 -0
  332. package/dist/styles/components.css +1 -1
  333. package/package.json +2 -1
@@ -0,0 +1,846 @@
1
+ var Ne = Object.defineProperty;
2
+ var ge = (e, t, r) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var A = (e, t, r) => ge(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { isPlainObject as K, combineReducers as De, applyMiddleware as ve, compose as P, createStore as Oe, isAction as q } from "../../../redux/dist/redux.js";
5
+ import { __DO_NOT_USE__ActionTypes as Nt } from "../../../redux/dist/redux.js";
6
+ import { produce as Y, isDraftable as Z, isDraft as ke } from "../../../immer/dist/immer.js";
7
+ import { current as Dt, freeze as vt } from "../../../immer/dist/immer.js";
8
+ import { thunk as _e, withExtraArgument as Ce } from "../../../redux-thunk/dist/redux-thunk.js";
9
+ const Te = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ : function() {
10
+ if (arguments.length !== 0)
11
+ return typeof arguments[0] == "object" ? P : P.apply(null, arguments);
12
+ }, Me = (e) => e && typeof e.match == "function";
13
+ function M(e, t) {
14
+ function r(...n) {
15
+ if (t) {
16
+ let o = t(...n);
17
+ if (!o) throw new Error(process.env.NODE_ENV === "production" ? y(0) : "prepareAction did not return an object");
18
+ return {
19
+ type: e,
20
+ payload: o.payload,
21
+ ..."meta" in o && { meta: o.meta },
22
+ ..."error" in o && { error: o.error }
23
+ };
24
+ }
25
+ return {
26
+ type: e,
27
+ payload: n[0]
28
+ };
29
+ }
30
+ return r.toString = () => `${e}`, r.type = e, r.match = (n) => q(n) && n.type === e, r;
31
+ }
32
+ function Se(e) {
33
+ return typeof e == "function" && "type" in e && Me(e);
34
+ }
35
+ function Ve(e) {
36
+ const t = e ? `${e}`.split("/") : [], r = t[t.length - 1] || "actionCreator";
37
+ return `Detected an action creator with type "${e || "unknown"}" being dispatched.
38
+ Make sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`;
39
+ }
40
+ function Ae(e = {}) {
41
+ if (process.env.NODE_ENV === "production") return () => (r) => (n) => r(n);
42
+ const { isActionCreator: t = Se } = e;
43
+ return () => (r) => (n) => (t(n) && console.warn(Ve(n.type)), r(n));
44
+ }
45
+ function ee(e, t) {
46
+ let r = 0;
47
+ return {
48
+ measureTime(n) {
49
+ const o = Date.now();
50
+ try {
51
+ return n();
52
+ } finally {
53
+ r += Date.now() - o;
54
+ }
55
+ },
56
+ warnIfExceeded() {
57
+ r > e && console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms.
58
+ If your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.
59
+ It is disabled in production builds, so you don't need to worry about that.`);
60
+ }
61
+ };
62
+ }
63
+ var te = class S extends Array {
64
+ constructor(...t) {
65
+ super(...t), Object.setPrototypeOf(this, S.prototype);
66
+ }
67
+ static get [Symbol.species]() {
68
+ return S;
69
+ }
70
+ concat(...t) {
71
+ return super.concat.apply(this, t);
72
+ }
73
+ prepend(...t) {
74
+ return t.length === 1 && Array.isArray(t[0]) ? new S(...t[0].concat(this)) : new S(...t.concat(this));
75
+ }
76
+ };
77
+ function H(e) {
78
+ return Z(e) ? Y(e, () => {
79
+ }) : e;
80
+ }
81
+ function R(e, t, r) {
82
+ return e.has(t) ? e.get(t) : e.set(t, r(t)).get(t);
83
+ }
84
+ function Re(e) {
85
+ return typeof e != "object" || e == null || Object.isFrozen(e);
86
+ }
87
+ function xe(e, t, r) {
88
+ const n = re(e, t, r);
89
+ return { detectMutations() {
90
+ return ne(e, t, n, r);
91
+ } };
92
+ }
93
+ function re(e, t = [], r, n = "", o = /* @__PURE__ */ new Map()) {
94
+ const i = { value: r };
95
+ if (!e(r)) {
96
+ const s = o.get(r);
97
+ if (s) return s;
98
+ i.children = {}, o.set(r, i);
99
+ const c = t.length > 0;
100
+ for (const d in r) {
101
+ const u = n ? n + "." + d : d;
102
+ c && t.some((a) => a instanceof RegExp ? a.test(u) : u === a) || (i.children[d] = re(e, t, r[d], u, o));
103
+ }
104
+ o.delete(r);
105
+ }
106
+ return i;
107
+ }
108
+ function ne(e, t = [], r, n, o = !1, i = "", s = /* @__PURE__ */ new Map()) {
109
+ const c = r ? r.value : void 0, d = c === n;
110
+ if (o && !d && !Number.isNaN(n)) return {
111
+ wasMutated: !0,
112
+ path: i
113
+ };
114
+ if (e(c) || e(n)) return { wasMutated: !1 };
115
+ let u = s.get(r);
116
+ if (!u)
117
+ u = /* @__PURE__ */ new Set(), s.set(r, u);
118
+ else if (u.has(n)) return { wasMutated: !1 };
119
+ u.add(n);
120
+ const a = {};
121
+ for (let p in r.children) a[p] = !0;
122
+ for (let p in n) a[p] = !0;
123
+ const f = t.length > 0;
124
+ for (let p in a) {
125
+ const l = i ? i + "." + p : p;
126
+ if (f && t.some((w) => w instanceof RegExp ? w.test(l) : l === w))
127
+ continue;
128
+ const E = ne(e, t, r.children[p], n[p], d, l, s);
129
+ if (E.wasMutated) return E;
130
+ }
131
+ return { wasMutated: !1 };
132
+ }
133
+ function $e(e = {}) {
134
+ if (process.env.NODE_ENV === "production") return () => (t) => (r) => t(r);
135
+ {
136
+ let t = function(c, d, u, a) {
137
+ return JSON.stringify(c, r(d, a), u);
138
+ }, r = function(c, d) {
139
+ let u = [], a = [];
140
+ return d || (d = function(f, p) {
141
+ return u[0] === p ? "[Circular ~]" : "[Circular ~." + a.slice(0, u.indexOf(p)).join(".") + "]";
142
+ }), function(f, p) {
143
+ if (u.length > 0) {
144
+ var l = u.indexOf(this);
145
+ ~l ? (u.splice(l + 1), a.splice(l, 1 / 0, f)) : (u.push(this), a.push(f)), ~u.indexOf(p) && (p = d.call(this, f, p));
146
+ } else u.push(p);
147
+ return c == null ? p : c.call(this, f, p);
148
+ };
149
+ }, { isImmutable: n = Re, ignoredPaths: o, warnAfter: i = 32 } = e;
150
+ const s = xe.bind(null, n, o);
151
+ return ({ getState: c }) => {
152
+ let d = c(), u = s(d), a;
153
+ return (f) => (p) => {
154
+ const l = ee(i, "ImmutableStateInvariantMiddleware");
155
+ l.measureTime(() => {
156
+ if (d = c(), a = u.detectMutations(), u = s(d), a.wasMutated) throw new Error(process.env.NODE_ENV === "production" ? y(19) : `A state mutation was detected between dispatches, in the path '${a.path || ""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
157
+ });
158
+ const E = f(p);
159
+ return l.measureTime(() => {
160
+ if (d = c(), a = u.detectMutations(), u = s(d), a.wasMutated) throw new Error(process.env.NODE_ENV === "production" ? y(20) : `A state mutation was detected inside a dispatch, in the path: ${a.path || ""}. Take a look at the reducer(s) handling the action ${t(p)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`);
161
+ }), l.warnIfExceeded(), E;
162
+ };
163
+ };
164
+ }
165
+ }
166
+ function oe(e) {
167
+ const t = typeof e;
168
+ return e == null || t === "string" || t === "boolean" || t === "number" || Array.isArray(e) || K(e);
169
+ }
170
+ function z(e, t = "", r = oe, n, o = [], i) {
171
+ let s;
172
+ if (!r(e)) return {
173
+ keyPath: t || "<root>",
174
+ value: e
175
+ };
176
+ if (typeof e != "object" || e === null || i != null && i.has(e)) return !1;
177
+ const c = n != null ? n(e) : Object.entries(e), d = o.length > 0;
178
+ for (const [u, a] of c) {
179
+ const f = t ? t + "." + u : u;
180
+ if (!(d && o.some((p) => p instanceof RegExp ? p.test(f) : f === p))) {
181
+ if (!r(a)) return {
182
+ keyPath: f,
183
+ value: a
184
+ };
185
+ if (typeof a == "object" && (s = z(a, f, r, n, o, i), s))
186
+ return s;
187
+ }
188
+ }
189
+ return i && ie(e) && i.add(e), !1;
190
+ }
191
+ function ie(e) {
192
+ if (!Object.isFrozen(e)) return !1;
193
+ for (const t of Object.values(e))
194
+ if (!(typeof t != "object" || t === null) && !ie(t))
195
+ return !1;
196
+ return !0;
197
+ }
198
+ function je(e = {}) {
199
+ if (process.env.NODE_ENV === "production") return () => (t) => (r) => t(r);
200
+ {
201
+ const { isSerializable: t = oe, getEntries: r, ignoredActions: n = [], ignoredActionPaths: o = ["meta.arg", "meta.baseQueryMeta"], ignoredPaths: i = [], warnAfter: s = 32, ignoreState: c = !1, ignoreActions: d = !1, disableCache: u = !1 } = e, a = !u && WeakSet ? /* @__PURE__ */ new WeakSet() : void 0;
202
+ return (f) => (p) => (l) => {
203
+ if (!q(l)) return p(l);
204
+ const E = p(l), w = ee(s, "SerializableStateInvariantMiddleware");
205
+ return !d && !(n.length && n.indexOf(l.type) !== -1) && w.measureTime(() => {
206
+ const g = z(l, "", t, r, o, a);
207
+ if (g) {
208
+ const { keyPath: b, value: v } = g;
209
+ console.error(`A non-serializable value was detected in an action, in the path: \`${b}\`. Value:`, v, `
210
+ Take a look at the logic that dispatched this action: `, l, `
211
+ (See https://redux.js.org/faq/actions#why-should-type-be-a-string-why-should-my-action-types-be-constants)`, `
212
+ (To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)`);
213
+ }
214
+ }), c || (w.measureTime(() => {
215
+ const g = z(f.getState(), "", t, r, i, a);
216
+ if (g) {
217
+ const { keyPath: b, value: v } = g;
218
+ console.error(`A non-serializable value was detected in the state, in the path: \`${b}\`. Value:`, v, `
219
+ Take a look at the reducer(s) handling this action type: ${l.type}.
220
+ (See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`);
221
+ }
222
+ }), w.warnIfExceeded()), E;
223
+ };
224
+ }
225
+ }
226
+ function x(e) {
227
+ return typeof e == "boolean";
228
+ }
229
+ const Le = () => function(t) {
230
+ const { thunk: r = !0, immutableCheck: n = !0, serializableCheck: o = !0, actionCreatorCheck: i = !0 } = t ?? {};
231
+ let s = new te();
232
+ if (r && (x(r) ? s.push(_e) : s.push(Ce(r.extraArgument))), process.env.NODE_ENV !== "production") {
233
+ if (n) {
234
+ let c = {};
235
+ x(n) || (c = n), s.unshift($e(c));
236
+ }
237
+ if (o) {
238
+ let c = {};
239
+ x(o) || (c = o), s.push(je(c));
240
+ }
241
+ if (i) {
242
+ let c = {};
243
+ x(i) || (c = i), s.unshift(Ae(c));
244
+ }
245
+ }
246
+ return s;
247
+ }, se = "RTK_autoBatch", ht = () => (e) => ({
248
+ payload: e,
249
+ meta: { [se]: !0 }
250
+ }), X = (e) => (t) => {
251
+ setTimeout(t, e);
252
+ }, Ie = (e, t) => (r) => {
253
+ let n = !1, o, i;
254
+ const s = () => {
255
+ n || (n = !0, cancelAnimationFrame(o), clearTimeout(i), r());
256
+ };
257
+ o = e(s), i = setTimeout(s, t);
258
+ }, Pe = (e = { type: "raf" }) => (t) => (...r) => {
259
+ const n = t(...r);
260
+ let o = !0, i = !1, s = !1;
261
+ const c = /* @__PURE__ */ new Set(), d = e.type === "tick" ? queueMicrotask : e.type === "raf" ? typeof window < "u" && window.requestAnimationFrame ? Ie(window.requestAnimationFrame, 100) : X(10) : e.type === "callback" ? e.queueNotification : X(e.timeout), u = () => {
262
+ s = !1, i && (i = !1, c.forEach((a) => a()));
263
+ };
264
+ return Object.assign({}, n, {
265
+ subscribe(a) {
266
+ const f = () => o && a(), p = n.subscribe(f);
267
+ return c.add(a), () => {
268
+ p(), c.delete(a);
269
+ };
270
+ },
271
+ dispatch(a) {
272
+ var f;
273
+ try {
274
+ return o = !((f = a == null ? void 0 : a.meta) != null && f[se]), i = !o, i && (s || (s = !0, d(u))), n.dispatch(a);
275
+ } finally {
276
+ o = !0;
277
+ }
278
+ }
279
+ });
280
+ }, ze = (e) => function(r) {
281
+ const { autoBatch: n = !0 } = r ?? {};
282
+ let o = new te(e);
283
+ return n && o.push(Pe(typeof n == "object" ? n : void 0)), o;
284
+ };
285
+ function wt(e) {
286
+ const t = Le(), { reducer: r = void 0, middleware: n, devTools: o = !0, duplicateMiddlewareCheck: i = !0, preloadedState: s = void 0, enhancers: c = void 0 } = e || {};
287
+ let d;
288
+ if (typeof r == "function") d = r;
289
+ else if (K(r)) d = De(r);
290
+ else throw new Error(process.env.NODE_ENV === "production" ? y(1) : "`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");
291
+ if (process.env.NODE_ENV !== "production" && n && typeof n != "function") throw new Error(process.env.NODE_ENV === "production" ? y(2) : "`middleware` field must be a callback");
292
+ let u;
293
+ if (typeof n == "function") {
294
+ if (u = n(t), process.env.NODE_ENV !== "production" && !Array.isArray(u)) throw new Error(process.env.NODE_ENV === "production" ? y(3) : "when using a middleware builder function, an array of middleware must be returned");
295
+ } else u = t();
296
+ if (process.env.NODE_ENV !== "production" && u.some((w) => typeof w != "function")) throw new Error(process.env.NODE_ENV === "production" ? y(4) : "each middleware provided to configureStore must be a function");
297
+ if (process.env.NODE_ENV !== "production" && i) {
298
+ let w = /* @__PURE__ */ new Set();
299
+ u.forEach((g) => {
300
+ if (w.has(g)) throw new Error(process.env.NODE_ENV === "production" ? y(42) : "Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");
301
+ w.add(g);
302
+ });
303
+ }
304
+ let a = P;
305
+ o && (a = Te({
306
+ trace: process.env.NODE_ENV !== "production",
307
+ ...typeof o == "object" && o
308
+ }));
309
+ const f = ve(...u), p = ze(f);
310
+ if (process.env.NODE_ENV !== "production" && c && typeof c != "function") throw new Error(process.env.NODE_ENV === "production" ? y(5) : "`enhancers` field must be a callback");
311
+ let l = typeof c == "function" ? c(p) : p();
312
+ if (process.env.NODE_ENV !== "production" && !Array.isArray(l)) throw new Error(process.env.NODE_ENV === "production" ? y(6) : "`enhancers` callback must return an array");
313
+ if (process.env.NODE_ENV !== "production" && l.some((w) => typeof w != "function")) throw new Error(process.env.NODE_ENV === "production" ? y(7) : "each enhancer provided to configureStore must be a function");
314
+ process.env.NODE_ENV !== "production" && u.length && !l.includes(f) && console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");
315
+ const E = a(...l);
316
+ return Oe(d, s, E);
317
+ }
318
+ function ae(e) {
319
+ const t = {}, r = [];
320
+ let n;
321
+ const o = {
322
+ addCase(i, s) {
323
+ if (process.env.NODE_ENV !== "production") {
324
+ if (r.length > 0) throw new Error(process.env.NODE_ENV === "production" ? y(26) : "`builder.addCase` should only be called before calling `builder.addMatcher`");
325
+ if (n) throw new Error(process.env.NODE_ENV === "production" ? y(27) : "`builder.addCase` should only be called before calling `builder.addDefaultCase`");
326
+ }
327
+ const c = typeof i == "string" ? i : i.type;
328
+ if (!c) throw new Error(process.env.NODE_ENV === "production" ? y(28) : "`builder.addCase` cannot be called with an empty action type");
329
+ if (c in t) throw new Error(process.env.NODE_ENV === "production" ? y(29) : `\`builder.addCase\` cannot be called with two reducers for the same action type '${c}'`);
330
+ return t[c] = s, o;
331
+ },
332
+ addAsyncThunk(i, s) {
333
+ if (process.env.NODE_ENV !== "production" && n)
334
+ throw new Error(process.env.NODE_ENV === "production" ? y(43) : "`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");
335
+ return s.pending && (t[i.pending.type] = s.pending), s.rejected && (t[i.rejected.type] = s.rejected), s.fulfilled && (t[i.fulfilled.type] = s.fulfilled), s.settled && r.push({
336
+ matcher: i.settled,
337
+ reducer: s.settled
338
+ }), o;
339
+ },
340
+ addMatcher(i, s) {
341
+ if (process.env.NODE_ENV !== "production" && n)
342
+ throw new Error(process.env.NODE_ENV === "production" ? y(30) : "`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");
343
+ return r.push({
344
+ matcher: i,
345
+ reducer: s
346
+ }), o;
347
+ },
348
+ addDefaultCase(i) {
349
+ if (process.env.NODE_ENV !== "production" && n)
350
+ throw new Error(process.env.NODE_ENV === "production" ? y(31) : "`builder.addDefaultCase` can only be called once");
351
+ return n = i, o;
352
+ }
353
+ };
354
+ return e(o), [
355
+ t,
356
+ r,
357
+ n
358
+ ];
359
+ }
360
+ function Be(e) {
361
+ return typeof e == "function";
362
+ }
363
+ function Fe(e, t) {
364
+ if (process.env.NODE_ENV !== "production" && typeof t == "object")
365
+ throw new Error(process.env.NODE_ENV === "production" ? y(8) : "The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");
366
+ let [r, n, o] = ae(t), i;
367
+ if (Be(e)) i = () => H(e());
368
+ else {
369
+ const c = H(e);
370
+ i = () => c;
371
+ }
372
+ function s(c = i(), d) {
373
+ let u = [r[d.type], ...n.filter(({ matcher: a }) => a(d)).map(({ reducer: a }) => a)];
374
+ return u.filter((a) => !!a).length === 0 && (u = [o]), u.reduce((a, f) => {
375
+ if (f)
376
+ if (ke(a)) {
377
+ const p = f(a, d);
378
+ return p === void 0 ? a : p;
379
+ } else {
380
+ if (Z(a))
381
+ return Y(a, (p) => f(p, d));
382
+ {
383
+ const p = f(a, d);
384
+ if (p === void 0) {
385
+ if (a === null) return a;
386
+ throw new Error(process.env.NODE_ENV === "production" ? y(9) : "A case reducer on a non-draftable value must not return undefined");
387
+ }
388
+ return p;
389
+ }
390
+ }
391
+ return a;
392
+ }, c);
393
+ }
394
+ return s.getInitialState = i, s;
395
+ }
396
+ let qe = "ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW", We = (e = 21) => {
397
+ let t = "", r = e;
398
+ for (; r--; ) t += qe[Math.random() * 64 | 0];
399
+ return t;
400
+ };
401
+ const Ue = /* @__PURE__ */ Symbol.for("rtk-slice-createasyncthunk");
402
+ function He(e, t) {
403
+ return `${e}/${t}`;
404
+ }
405
+ function Xe({ creators: e } = {}) {
406
+ var r;
407
+ const t = (r = e == null ? void 0 : e.asyncThunk) == null ? void 0 : r[Ue];
408
+ return function(o) {
409
+ const { name: i, reducerPath: s = i } = o;
410
+ if (!i) throw new Error(process.env.NODE_ENV === "production" ? y(11) : "`name` is a required option for createSlice");
411
+ typeof process < "u" && process.env.NODE_ENV === "development" && o.initialState === void 0 && console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");
412
+ const c = (typeof o.reducers == "function" ? o.reducers(Qe()) : o.reducers) || {}, d = Object.keys(c), u = {
413
+ sliceCaseReducersByName: {},
414
+ sliceCaseReducersByType: {},
415
+ actionCreators: {},
416
+ sliceMatchers: []
417
+ }, a = {
418
+ addCase(h, m) {
419
+ const N = typeof h == "string" ? h : h.type;
420
+ if (!N) throw new Error(process.env.NODE_ENV === "production" ? y(12) : "`context.addCase` cannot be called with an empty action type");
421
+ if (N in u.sliceCaseReducersByType) throw new Error(process.env.NODE_ENV === "production" ? y(13) : "`context.addCase` cannot be called with two reducers for the same action type: " + N);
422
+ return u.sliceCaseReducersByType[N] = m, a;
423
+ },
424
+ addMatcher(h, m) {
425
+ return u.sliceMatchers.push({
426
+ matcher: h,
427
+ reducer: m
428
+ }), a;
429
+ },
430
+ exposeAction(h, m) {
431
+ return u.actionCreators[h] = m, a;
432
+ },
433
+ exposeCaseReducer(h, m) {
434
+ return u.sliceCaseReducersByName[h] = m, a;
435
+ }
436
+ };
437
+ d.forEach((h) => {
438
+ const m = c[h], N = {
439
+ reducerName: h,
440
+ type: He(i, h),
441
+ createNotation: typeof o.reducers == "function"
442
+ };
443
+ Ke(m) ? Ze(N, m, a, t) : Ge(N, m, a);
444
+ });
445
+ function f() {
446
+ if (process.env.NODE_ENV !== "production" && typeof o.extraReducers == "object")
447
+ throw new Error(process.env.NODE_ENV === "production" ? y(14) : "The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");
448
+ const [h = {}, m = [], N = void 0] = typeof o.extraReducers == "function" ? ae(o.extraReducers) : [o.extraReducers], O = {
449
+ ...h,
450
+ ...u.sliceCaseReducersByType
451
+ };
452
+ return Fe(o.initialState, (k) => {
453
+ for (let D in O) k.addCase(D, O[D]);
454
+ for (let D of u.sliceMatchers) k.addMatcher(D.matcher, D.reducer);
455
+ for (let D of m) k.addMatcher(D.matcher, D.reducer);
456
+ N && k.addDefaultCase(N);
457
+ });
458
+ }
459
+ const p = (h) => h, l = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new WeakMap();
460
+ let w;
461
+ function g(h, m) {
462
+ return w || (w = f()), w(h, m);
463
+ }
464
+ function b() {
465
+ return w || (w = f()), w.getInitialState();
466
+ }
467
+ function v(h, m = !1) {
468
+ function N(k) {
469
+ let D = k[h];
470
+ if (typeof D > "u") {
471
+ if (m) D = R(E, N, b);
472
+ else if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV === "production" ? y(15) : "selectSlice returned undefined for an uninjected slice reducer");
473
+ }
474
+ return D;
475
+ }
476
+ function O(k = p) {
477
+ return R(R(l, m, () => /* @__PURE__ */ new WeakMap()), k, () => {
478
+ const D = {};
479
+ for (const [me, be] of Object.entries(o.selectors ?? {})) D[me] = Je(be, k, () => R(E, k, b), m);
480
+ return D;
481
+ });
482
+ }
483
+ return {
484
+ reducerPath: h,
485
+ getSelectors: O,
486
+ get selectors() {
487
+ return O(N);
488
+ },
489
+ selectSlice: N
490
+ };
491
+ }
492
+ const _ = {
493
+ name: i,
494
+ reducer: g,
495
+ actions: u.actionCreators,
496
+ caseReducers: u.sliceCaseReducersByName,
497
+ getInitialState: b,
498
+ ...v(s),
499
+ injectInto(h, { reducerPath: m, ...N } = {}) {
500
+ const O = m ?? s;
501
+ return h.inject({
502
+ reducerPath: O,
503
+ reducer: g
504
+ }, N), {
505
+ ..._,
506
+ ...v(O, !0)
507
+ };
508
+ }
509
+ };
510
+ return _;
511
+ };
512
+ }
513
+ function Je(e, t, r, n) {
514
+ function o(i, ...s) {
515
+ let c = t(i);
516
+ if (typeof c > "u") {
517
+ if (n) c = r();
518
+ else if (process.env.NODE_ENV !== "production") throw new Error(process.env.NODE_ENV === "production" ? y(16) : "selectState returned undefined for an uninjected slice reducer");
519
+ }
520
+ return e(c, ...s);
521
+ }
522
+ return o.unwrapped = e, o;
523
+ }
524
+ const Et = /* @__PURE__ */ Xe();
525
+ function Qe() {
526
+ function e(t, r) {
527
+ return {
528
+ _reducerDefinitionType: "asyncThunk",
529
+ payloadCreator: t,
530
+ ...r
531
+ };
532
+ }
533
+ return e.withTypes = () => e, {
534
+ reducer(t) {
535
+ return Object.assign({ [t.name](...r) {
536
+ return t(...r);
537
+ } }[t.name], { _reducerDefinitionType: "reducer" });
538
+ },
539
+ preparedReducer(t, r) {
540
+ return {
541
+ _reducerDefinitionType: "reducerWithPrepare",
542
+ prepare: t,
543
+ reducer: r
544
+ };
545
+ },
546
+ asyncThunk: e
547
+ };
548
+ }
549
+ function Ge({ type: e, reducerName: t, createNotation: r }, n, o) {
550
+ let i, s;
551
+ if ("reducer" in n) {
552
+ if (r && !Ye(n)) throw new Error(process.env.NODE_ENV === "production" ? y(17) : "Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");
553
+ i = n.reducer, s = n.prepare;
554
+ } else i = n;
555
+ o.addCase(e, i).exposeCaseReducer(t, i).exposeAction(t, s ? M(e, s) : M(e));
556
+ }
557
+ function Ke(e) {
558
+ return e._reducerDefinitionType === "asyncThunk";
559
+ }
560
+ function Ye(e) {
561
+ return e._reducerDefinitionType === "reducerWithPrepare";
562
+ }
563
+ function Ze({ type: e, reducerName: t }, r, n, o) {
564
+ if (!o) throw new Error(process.env.NODE_ENV === "production" ? y(18) : "Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");
565
+ const { payloadCreator: i, fulfilled: s, pending: c, rejected: d, settled: u, options: a } = r, f = o(e, i, a);
566
+ n.exposeAction(t, f), s && n.addCase(f.fulfilled, s), c && n.addCase(f.pending, c), d && n.addCase(f.rejected, d), u && n.addMatcher(f.settled, u), n.exposeCaseReducer(t, {
567
+ fulfilled: s || $,
568
+ pending: c || $,
569
+ rejected: d || $,
570
+ settled: u || $
571
+ });
572
+ }
573
+ function $() {
574
+ }
575
+ const et = "task", ce = "listener", ue = "completed", W = "cancelled", tt = `task-${W}`, rt = `task-${ue}`, B = `${ce}-${W}`, nt = `${ce}-${ue}`;
576
+ var I = class {
577
+ constructor(e) {
578
+ A(this, "code");
579
+ A(this, "name", "TaskAbortError");
580
+ A(this, "message");
581
+ this.code = e, this.message = `${et} ${W} (reason: ${e})`;
582
+ }
583
+ };
584
+ const U = (e, t) => {
585
+ if (typeof e != "function") throw new TypeError(process.env.NODE_ENV === "production" ? y(32) : `${t} is not a function`);
586
+ }, j = () => {
587
+ }, le = (e, t = j) => (e.catch(t), e), de = (e, t) => (e.addEventListener("abort", t, { once: !0 }), () => e.removeEventListener("abort", t)), C = (e) => {
588
+ if (e.aborted) throw new I(e.reason);
589
+ };
590
+ function fe(e, t) {
591
+ let r = j;
592
+ return new Promise((n, o) => {
593
+ const i = () => o(new I(e.reason));
594
+ if (e.aborted) {
595
+ i();
596
+ return;
597
+ }
598
+ r = de(e, i), t.finally(() => r()).then(n, o);
599
+ }).finally(() => {
600
+ r = j;
601
+ });
602
+ }
603
+ const ot = async (e, t) => {
604
+ try {
605
+ return await Promise.resolve(), {
606
+ status: "ok",
607
+ value: await e()
608
+ };
609
+ } catch (r) {
610
+ return {
611
+ status: r instanceof I ? "cancelled" : "rejected",
612
+ error: r
613
+ };
614
+ } finally {
615
+ t == null || t();
616
+ }
617
+ }, L = (e) => (t) => le(fe(e, t).then((r) => (C(e), r))), pe = (e) => {
618
+ const t = L(e);
619
+ return (r) => t(new Promise((n) => setTimeout(n, r)));
620
+ }, { assign: T } = Object, J = {}, V = "listenerMiddleware", it = (e, t) => {
621
+ const r = (n) => de(e, () => n.abort(e.reason));
622
+ return (n, o) => {
623
+ U(n, "taskExecutor");
624
+ const i = new AbortController();
625
+ r(i);
626
+ const s = ot(async () => {
627
+ C(e), C(i.signal);
628
+ const c = await n({
629
+ pause: L(i.signal),
630
+ delay: pe(i.signal),
631
+ signal: i.signal
632
+ });
633
+ return C(i.signal), c;
634
+ }, () => i.abort(rt));
635
+ return o != null && o.autoJoin && t.push(s.catch(j)), {
636
+ result: L(e)(s),
637
+ cancel() {
638
+ i.abort(tt);
639
+ }
640
+ };
641
+ };
642
+ }, st = (e, t) => {
643
+ const r = async (n, o) => {
644
+ C(t);
645
+ let i = () => {
646
+ };
647
+ const s = [new Promise((c, d) => {
648
+ let u = e({
649
+ predicate: n,
650
+ effect: (a, f) => {
651
+ f.unsubscribe(), c([
652
+ a,
653
+ f.getState(),
654
+ f.getOriginalState()
655
+ ]);
656
+ }
657
+ });
658
+ i = () => {
659
+ u(), d();
660
+ };
661
+ })];
662
+ o != null && s.push(new Promise((c) => setTimeout(c, o, null)));
663
+ try {
664
+ const c = await fe(t, Promise.race(s));
665
+ return C(t), c;
666
+ } finally {
667
+ i();
668
+ }
669
+ };
670
+ return ((n, o) => le(r(n, o)));
671
+ }, he = (e) => {
672
+ let { type: t, actionCreator: r, matcher: n, predicate: o, effect: i } = e;
673
+ if (t) o = M(t).match;
674
+ else if (r)
675
+ t = r.type, o = r.match;
676
+ else if (n) o = n;
677
+ else if (!o) throw new Error(process.env.NODE_ENV === "production" ? y(21) : "Creating or removing a listener requires one of the known fields for matching an action");
678
+ return U(i, "options.listener"), {
679
+ predicate: o,
680
+ type: t,
681
+ effect: i
682
+ };
683
+ }, we = /* @__PURE__ */ T((e) => {
684
+ const { type: t, predicate: r, effect: n } = he(e);
685
+ return {
686
+ id: We(),
687
+ effect: n,
688
+ type: t,
689
+ predicate: r,
690
+ pending: /* @__PURE__ */ new Set(),
691
+ unsubscribe: () => {
692
+ throw new Error(process.env.NODE_ENV === "production" ? y(22) : "Unsubscribe not initialized");
693
+ }
694
+ };
695
+ }, { withTypes: () => we }), Q = (e, t) => {
696
+ const { type: r, effect: n, predicate: o } = he(t);
697
+ return Array.from(e.values()).find((i) => (typeof r == "string" ? i.type === r : i.predicate === o) && i.effect === n);
698
+ }, F = (e) => {
699
+ e.pending.forEach((t) => {
700
+ t.abort(B);
701
+ });
702
+ }, at = (e, t) => () => {
703
+ for (const r of t.keys()) F(r);
704
+ e.clear();
705
+ }, G = (e, t, r) => {
706
+ try {
707
+ e(t, r);
708
+ } catch (n) {
709
+ setTimeout(() => {
710
+ throw n;
711
+ }, 0);
712
+ }
713
+ }, Ee = /* @__PURE__ */ T(/* @__PURE__ */ M(`${V}/add`), { withTypes: () => Ee }), ct = /* @__PURE__ */ M(`${V}/removeAll`), ye = /* @__PURE__ */ T(/* @__PURE__ */ M(`${V}/remove`), { withTypes: () => ye }), ut = (...e) => {
714
+ console.error(`${V}/error`, ...e);
715
+ }, yt = (e = {}) => {
716
+ const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), n = (l) => {
717
+ const E = r.get(l) ?? 0;
718
+ r.set(l, E + 1);
719
+ }, o = (l) => {
720
+ const E = r.get(l) ?? 1;
721
+ E === 1 ? r.delete(l) : r.set(l, E - 1);
722
+ }, { extra: i, onError: s = ut } = e;
723
+ U(s, "onError");
724
+ const c = (l) => (l.unsubscribe = () => t.delete(l.id), t.set(l.id, l), (E) => {
725
+ l.unsubscribe(), E != null && E.cancelActive && F(l);
726
+ }), d = ((l) => {
727
+ const E = Q(t, l) ?? we(l);
728
+ return c(E);
729
+ });
730
+ T(d, { withTypes: () => d });
731
+ const u = (l) => {
732
+ const E = Q(t, l);
733
+ return E && (E.unsubscribe(), l.cancelActive && F(E)), !!E;
734
+ };
735
+ T(u, { withTypes: () => u });
736
+ const a = async (l, E, w, g) => {
737
+ const b = new AbortController(), v = st(d, b.signal), _ = [];
738
+ try {
739
+ l.pending.add(b), n(l), await Promise.resolve(l.effect(E, T({}, w, {
740
+ getOriginalState: g,
741
+ condition: (h, m) => v(h, m).then(Boolean),
742
+ take: v,
743
+ delay: pe(b.signal),
744
+ pause: L(b.signal),
745
+ extra: i,
746
+ signal: b.signal,
747
+ fork: it(b.signal, _),
748
+ unsubscribe: l.unsubscribe,
749
+ subscribe: () => {
750
+ t.set(l.id, l);
751
+ },
752
+ cancelActiveListeners: () => {
753
+ l.pending.forEach((h, m, N) => {
754
+ h !== b && (h.abort(B), N.delete(h));
755
+ });
756
+ },
757
+ cancel: () => {
758
+ b.abort(B), l.pending.delete(b);
759
+ },
760
+ throwIfCancelled: () => {
761
+ C(b.signal);
762
+ }
763
+ })));
764
+ } catch (h) {
765
+ h instanceof I || G(s, h, { raisedBy: "effect" });
766
+ } finally {
767
+ await Promise.all(_), b.abort(nt), o(l), l.pending.delete(b);
768
+ }
769
+ }, f = at(t, r);
770
+ return {
771
+ middleware: (l) => (E) => (w) => {
772
+ if (!q(w)) return E(w);
773
+ if (Ee.match(w)) return d(w.payload);
774
+ if (ct.match(w)) {
775
+ f();
776
+ return;
777
+ }
778
+ if (ye.match(w)) return u(w.payload);
779
+ let g = l.getState();
780
+ const b = () => {
781
+ if (g === J) throw new Error(process.env.NODE_ENV === "production" ? y(23) : `${V}: getOriginalState can only be called synchronously`);
782
+ return g;
783
+ };
784
+ let v;
785
+ try {
786
+ if (v = E(w), t.size > 0) {
787
+ const _ = l.getState(), h = Array.from(t.values());
788
+ for (const m of h) {
789
+ let N = !1;
790
+ try {
791
+ N = m.predicate(w, _, g);
792
+ } catch (O) {
793
+ N = !1, G(s, O, { raisedBy: "predicate" });
794
+ }
795
+ N && a(m, w, l, b);
796
+ }
797
+ }
798
+ } finally {
799
+ g = J;
800
+ }
801
+ return v;
802
+ },
803
+ startListening: d,
804
+ stopListening: u,
805
+ clearListeners: f
806
+ };
807
+ };
808
+ function y(e) {
809
+ return `Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `;
810
+ }
811
+ export {
812
+ se as SHOULD_AUTOBATCH,
813
+ I as TaskAbortError,
814
+ te as Tuple,
815
+ Nt as __DO_NOT_USE__ActionTypes,
816
+ Ee as addListener,
817
+ ve as applyMiddleware,
818
+ Pe as autoBatchEnhancer,
819
+ Xe as buildCreateSlice,
820
+ ct as clearAllListeners,
821
+ De as combineReducers,
822
+ P as compose,
823
+ wt as configureStore,
824
+ M as createAction,
825
+ Ae as createActionCreatorInvariantMiddleware,
826
+ $e as createImmutableStateInvariantMiddleware,
827
+ yt as createListenerMiddleware,
828
+ Y as createNextState,
829
+ Fe as createReducer,
830
+ je as createSerializableStateInvariantMiddleware,
831
+ Et as createSlice,
832
+ Oe as createStore,
833
+ Dt as current,
834
+ z as findNonSerializableValue,
835
+ y as formatProdErrorMessage,
836
+ vt as freeze,
837
+ q as isAction,
838
+ Se as isActionCreator,
839
+ ke as isDraft,
840
+ Re as isImmutableDefault,
841
+ oe as isPlain,
842
+ K as isPlainObject,
843
+ We as nanoid,
844
+ ht as prepareAutoBatched,
845
+ ye as removeListener
846
+ };