apexcharts 8.2.0 → 8.3.1

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 (256) hide show
  1. package/README.md +7 -7
  2. package/dist/apexcharts.common.js +2 -2
  3. package/dist/apexcharts.core.js +19793 -19713
  4. package/dist/apexcharts.core.min.js +2 -2
  5. package/dist/apexcharts.css +38 -8
  6. package/dist/apexcharts.esm.js +1882 -1625
  7. package/dist/apexcharts.full.js +22044 -21634
  8. package/dist/apexcharts.full.min.js +2 -2
  9. package/dist/apexcharts.js +21414 -21124
  10. package/dist/apexcharts.min.js +2 -2
  11. package/dist/apexcharts.ssr.common.js +2 -2
  12. package/dist/apexcharts.ssr.esm.js +21413 -21123
  13. package/dist/area.common.js +2 -2
  14. package/dist/area.esm.js +91 -40
  15. package/dist/bar.common.js +2 -2
  16. package/dist/bar.esm.js +478 -406
  17. package/dist/bar.js +2 -2
  18. package/dist/boxPlot.common.js +2 -2
  19. package/dist/boxPlot.esm.js +409 -334
  20. package/dist/bubble.common.js +2 -2
  21. package/dist/bubble.esm.js +91 -40
  22. package/dist/candlestick.common.js +2 -2
  23. package/dist/candlestick.esm.js +409 -334
  24. package/dist/candlestick.js +2 -2
  25. package/dist/column.common.js +2 -2
  26. package/dist/column.esm.js +478 -406
  27. package/dist/core.common.js +2 -2
  28. package/dist/core.esm.js +19793 -19713
  29. package/dist/donut.common.js +2 -2
  30. package/dist/donut.esm.js +3 -9
  31. package/dist/dumbbell.common.js +2 -2
  32. package/dist/dumbbell.esm.js +478 -406
  33. package/dist/features/all.common.js +2 -2
  34. package/dist/features/all.esm.js +442 -324
  35. package/dist/features/annotations.common.js +2 -2
  36. package/dist/features/annotations.esm.js +65 -48
  37. package/dist/features/annotations.js +2 -2
  38. package/dist/features/context-menu.common.js +1 -1
  39. package/dist/features/context-menu.esm.js +1 -1
  40. package/dist/features/context-menu.js +1 -1
  41. package/dist/features/drilldown.common.js +2 -2
  42. package/dist/features/drilldown.esm.js +4 -2
  43. package/dist/features/drilldown.js +2 -2
  44. package/dist/features/dumbbell.common.js +1 -1
  45. package/dist/features/dumbbell.esm.js +1 -1
  46. package/dist/features/dumbbell.js +1 -1
  47. package/dist/features/exports.common.js +2 -2
  48. package/dist/features/exports.esm.js +10 -4
  49. package/dist/features/exports.js +2 -2
  50. package/dist/features/facet.common.js +1 -1
  51. package/dist/features/facet.esm.js +1 -1
  52. package/dist/features/facet.js +1 -1
  53. package/dist/features/highlight-filter.common.js +2 -2
  54. package/dist/features/highlight-filter.esm.js +14 -9
  55. package/dist/features/highlight-filter.js +2 -2
  56. package/dist/features/history.common.js +1 -1
  57. package/dist/features/history.esm.js +1 -1
  58. package/dist/features/history.js +1 -1
  59. package/dist/features/ink.common.js +1 -1
  60. package/dist/features/ink.esm.js +1 -1
  61. package/dist/features/ink.js +1 -1
  62. package/dist/features/keyboard.common.js +2 -2
  63. package/dist/features/keyboard.esm.js +97 -145
  64. package/dist/features/keyboard.js +2 -2
  65. package/dist/features/legend.common.js +2 -2
  66. package/dist/features/legend.esm.js +64 -44
  67. package/dist/features/legend.js +2 -2
  68. package/dist/features/link.common.js +1 -1
  69. package/dist/features/link.esm.js +1 -1
  70. package/dist/features/link.js +1 -1
  71. package/dist/features/marks.common.js +1 -1
  72. package/dist/features/marks.esm.js +1 -1
  73. package/dist/features/marks.js +1 -1
  74. package/dist/features/measure.common.js +1 -1
  75. package/dist/features/measure.esm.js +1 -1
  76. package/dist/features/measure.js +1 -1
  77. package/dist/features/morph.common.js +2 -2
  78. package/dist/features/morph.esm.js +9 -5
  79. package/dist/features/morph.js +2 -2
  80. package/dist/features/perspectives.common.js +2 -2
  81. package/dist/features/perspectives.esm.js +4 -1
  82. package/dist/features/perspectives.js +2 -2
  83. package/dist/features/raincloud.common.js +2 -2
  84. package/dist/features/raincloud.esm.js +26 -27
  85. package/dist/features/raincloud.js +2 -2
  86. package/dist/features/renderer-canvas.common.js +2 -2
  87. package/dist/features/renderer-canvas.esm.js +2 -1
  88. package/dist/features/renderer-canvas.js +2 -2
  89. package/dist/features/stats.common.js +2 -2
  90. package/dist/features/stats.esm.js +52 -59
  91. package/dist/features/stats.js +2 -2
  92. package/dist/features/storyboard.common.js +2 -2
  93. package/dist/features/storyboard.esm.js +4 -1
  94. package/dist/features/storyboard.js +2 -2
  95. package/dist/features/streamgraph.common.js +2 -2
  96. package/dist/features/streamgraph.esm.js +48 -14
  97. package/dist/features/streamgraph.js +2 -2
  98. package/dist/features/toolbar.common.js +2 -2
  99. package/dist/features/toolbar.esm.js +148 -18
  100. package/dist/features/toolbar.js +2 -2
  101. package/dist/features/trellis.common.js +2 -2
  102. package/dist/features/trellis.esm.js +150 -63
  103. package/dist/features/trellis.js +2 -2
  104. package/dist/features/waterfall.common.js +1 -1
  105. package/dist/features/waterfall.esm.js +1 -1
  106. package/dist/features/waterfall.js +1 -1
  107. package/dist/features/weave.common.js +2 -2
  108. package/dist/features/weave.esm.js +13 -12
  109. package/dist/features/weave.js +2 -2
  110. package/dist/full.common.js +2 -2
  111. package/dist/full.esm.js +1068 -842
  112. package/dist/heatmap.common.js +2 -2
  113. package/dist/heatmap.esm.js +3 -17
  114. package/dist/heatmap.js +2 -2
  115. package/dist/histogram.common.js +2 -2
  116. package/dist/histogram.esm.js +529 -464
  117. package/dist/icicle.common.js +2 -2
  118. package/dist/icicle.esm.js +80 -46
  119. package/dist/icicle.js +2 -2
  120. package/dist/line.common.js +2 -2
  121. package/dist/line.esm.js +91 -40
  122. package/dist/line.js +2 -2
  123. package/dist/locales/en.json +2 -1
  124. package/dist/locales/ro.json +3 -2
  125. package/dist/pictograms.common.js +1 -1
  126. package/dist/pictograms.esm.js +1 -1
  127. package/dist/pictograms.js +1 -1
  128. package/dist/pie.common.js +2 -2
  129. package/dist/pie.esm.js +3 -9
  130. package/dist/pie.js +2 -2
  131. package/dist/polarArea.common.js +2 -2
  132. package/dist/polarArea.esm.js +3 -9
  133. package/dist/radar.common.js +2 -2
  134. package/dist/radar.esm.js +5 -4
  135. package/dist/radar.js +2 -2
  136. package/dist/radialBar.common.js +2 -2
  137. package/dist/radialBar.esm.js +5 -12
  138. package/dist/radialBar.js +2 -2
  139. package/dist/raincloud.common.js +2 -2
  140. package/dist/raincloud.esm.js +97 -52
  141. package/dist/rangeArea.common.js +2 -2
  142. package/dist/rangeArea.esm.js +91 -40
  143. package/dist/rangeBar.common.js +2 -2
  144. package/dist/rangeBar.esm.js +478 -406
  145. package/dist/scatter.common.js +2 -2
  146. package/dist/scatter.esm.js +91 -40
  147. package/dist/streamgraph.common.js +2 -2
  148. package/dist/streamgraph.esm.js +138 -53
  149. package/dist/sunburst.common.js +2 -2
  150. package/dist/sunburst.esm.js +116 -94
  151. package/dist/sunburst.js +2 -2
  152. package/dist/treemap.common.js +2 -2
  153. package/dist/treemap.esm.js +138 -104
  154. package/dist/treemap.js +2 -2
  155. package/dist/unit-shapes.common.js +1 -1
  156. package/dist/unit-shapes.esm.js +1 -1
  157. package/dist/unit-shapes.js +1 -1
  158. package/dist/unit.common.js +2 -2
  159. package/dist/unit.esm.js +280 -202
  160. package/dist/unit.js +2 -2
  161. package/dist/violin.common.js +2 -2
  162. package/dist/violin.esm.js +72 -26
  163. package/dist/violin.js +2 -2
  164. package/dist/waterfall.common.js +2 -2
  165. package/dist/waterfall.esm.js +477 -405
  166. package/package.json +1 -1
  167. package/src/apexcharts.js +40 -59
  168. package/src/assets/apexcharts.css +38 -8
  169. package/src/charts/Bar.js +62 -55
  170. package/src/charts/BarStacked.js +80 -88
  171. package/src/charts/BoxCandleStick.js +28 -31
  172. package/src/charts/Icicle.js +68 -47
  173. package/src/charts/Line.js +118 -42
  174. package/src/charts/Pie.js +2 -8
  175. package/src/charts/Radar.js +5 -7
  176. package/src/charts/Radial.js +2 -6
  177. package/src/charts/RangeBar.js +47 -43
  178. package/src/charts/Sunburst.js +101 -98
  179. package/src/charts/Treemap.js +150 -88
  180. package/src/charts/Unit.js +368 -250
  181. package/src/charts/Violin.js +48 -30
  182. package/src/charts/common/Breadcrumb.js +2 -2
  183. package/src/charts/common/Hierarchy.js +32 -11
  184. package/src/charts/common/Jitter.js +32 -7
  185. package/src/charts/common/Stats.js +30 -23
  186. package/src/charts/common/bar/DataLabels.js +76 -81
  187. package/src/charts/common/bar/Helpers.js +43 -7
  188. package/src/charts/common/line/Helpers.js +12 -15
  189. package/src/charts/common/partition/NodeTooltip.js +29 -7
  190. package/src/charts/common/partition/Partition.js +33 -1
  191. package/src/charts/common/treemap/Helpers.js +3 -11
  192. package/src/charts/common/treemap/Nested.js +2 -3
  193. package/src/features/raincloud.js +16 -10
  194. package/src/features/stats.js +67 -62
  195. package/src/locales/en.json +2 -1
  196. package/src/locales/ro.json +3 -2
  197. package/src/modules/Animations.js +102 -95
  198. package/src/modules/AxisMapping.js +47 -12
  199. package/src/modules/Core.js +4 -0
  200. package/src/modules/CoreUtils.js +18 -42
  201. package/src/modules/Data.js +23 -24
  202. package/src/modules/DataLabels.js +6 -6
  203. package/src/modules/Exports.js +12 -5
  204. package/src/modules/Fill.js +17 -8
  205. package/src/modules/Filters.js +50 -50
  206. package/src/modules/Graphics.js +69 -51
  207. package/src/modules/Markers.js +3 -1
  208. package/src/modules/MorphTypeChange.js +13 -7
  209. package/src/modules/Range.js +44 -29
  210. package/src/modules/RendererController.js +17 -3
  211. package/src/modules/Scales.js +32 -9
  212. package/src/modules/Series.js +41 -19
  213. package/src/modules/Theme.js +1 -1
  214. package/src/modules/Toolbar.js +3 -2
  215. package/src/modules/UnitMarkRegistry.js +0 -5
  216. package/src/modules/ZoomPanSelection.js +123 -2
  217. package/src/modules/accessibility/KeyboardNavigation.js +114 -186
  218. package/src/modules/animations/Easing.js +2 -1
  219. package/src/modules/animations/LengthTransition.js +22 -2
  220. package/src/modules/annotations/Helpers.js +68 -52
  221. package/src/modules/axes/Grid.js +21 -7
  222. package/src/modules/axes/YAxis.js +8 -9
  223. package/src/modules/dimensions/Dimensions.js +9 -3
  224. package/src/modules/dimensions/Grid.js +2 -2
  225. package/src/modules/dimensions/XAxis.js +2 -5
  226. package/src/modules/drilldown/Breadcrumb.js +5 -2
  227. package/src/modules/helpers/Destroy.js +1 -1
  228. package/src/modules/helpers/UpdateHelpers.js +33 -15
  229. package/src/modules/highlightFilter/HighlightFilter.js +8 -9
  230. package/src/modules/highlightFilter/TreemapPart.js +2 -2
  231. package/src/modules/legend/HeatmapGradientLegend.js +76 -45
  232. package/src/modules/legend/Helpers.js +8 -1
  233. package/src/modules/legend/Legend.js +11 -12
  234. package/src/modules/license/LicenseEnforcer.js +5 -0
  235. package/src/modules/settings/Defaults.js +28 -56
  236. package/src/modules/settings/Globals.js +5 -0
  237. package/src/modules/settings/Options.js +7 -7
  238. package/src/modules/settings/TypeAliases.js +33 -16
  239. package/src/modules/streamgraph/StreamLabels.js +1 -0
  240. package/src/modules/tooltip/Labels.js +73 -76
  241. package/src/modules/tooltip/Marker.js +25 -21
  242. package/src/modules/tooltip/Position.js +88 -51
  243. package/src/modules/tooltip/Tooltip.js +242 -255
  244. package/src/modules/tooltip/Utils.js +71 -130
  245. package/src/modules/tooltip/constants.js +5 -5
  246. package/src/modules/trellis/Trellis.js +6 -0
  247. package/src/modules/trellis/TrellisChrome.js +18 -7
  248. package/src/modules/trellis/TrellisSync.js +2 -0
  249. package/src/modules/trellis/TrellisTooltip.js +2 -11
  250. package/src/modules/weave/WeaveHost.js +18 -12
  251. package/src/renderers/canvas/CanvasGraphics.js +1 -0
  252. package/src/ssr/DOMShim.js +10 -0
  253. package/src/svg/SVGFilter.js +26 -17
  254. package/src/types/internal.d.ts +9 -3
  255. package/src/utils/Utils.js +0 -14
  256. package/types/apexcharts.d.ts +33 -12
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * ApexCharts v8.2.0
2
+ * ApexCharts v8.3.1
3
3
  * (c) 2018-2026 ApexCharts
4
4
  */
5
- "use strict";var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&a(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&a(e,r,t[r]);return e},o=(e,n)=>t(e,r(n));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const c=u(require("apexcharts/core")),h=c.__apex_Graphics,d=c.__apex_CoreUtils,g=c.__apex_Series,f=c.__apex_Utils,p=c.__apex_Animations_prefersReducedMotion,v=c.__apex_DataLabels,b=c.__apex_BrowserAPIs_BrowserAPIs,m=c.__apex_Environment_Environment,y=c.__apex_Easing_resolveEasing,A=c.__apex_PathMorphing_parsePath,_=c.__apex_PathMorphing_arrayToPath;function w(e,t,r){if(!e||"string"!=typeof e)return null;const n=A(e);if(!n.length||"M"!==n[0][0])return null;for(let e=1;e<n.length;e++)if("M"===n[e][0])return null;let l=n,i=null;if(r){if(n.length<5)return null;if(i=n.slice(-3),l=n.slice(0,-3),"Z"!==i[2][0])return null;if("L"!==i[1][0])return null;if("L"!==i[0][0]&&"C"!==i[0][0])return null}else if("Z"===n[n.length-1][0])return null;if(l.length!==t||l.length<2)return null;const a=l[1][0];if("L"!==a&&"C"!==a)return null;for(let e=2;e<l.length;e++)if(l[e][0]!==a)return null;const s=l.map(e=>"C"===e[0]?[Number(e[5]),Number(e[6])]:[Number(e[1]),Number(e[2])]);for(const e of s)if(!isFinite(e[0])||!isFinite(e[1]))return null;return{body:l,closing:i,segType:a,anchors:s}}function x(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function k(e,t,r){const n=e,l=[t[1],t[2]],i=[t[3],t[4]],a=[t[5],t[6]],s=x(n,l,r),o=x(l,i,r),u=x(i,a,r),c=x(s,o,r),h=x(o,u,r),d=x(c,h,r);return{first:["C",s[0],s[1],c[0],c[1],d[0],d[1]],second:["C",h[0],h[1],u[0],u[1],a[0],a[1]],mid:d}}function S(e,t,r){const n=[t[1],t[2]],l=x(e,n,r);return{first:["L",l[0],l[1]],second:["L",n[0],n[1]],mid:l}}function M(e,t){const{body:r,closing:n,segType:l,anchors:i}=e,a=i.length,s=t.length,o=e=>"C"===l?["C",e[0],e[1],e[0],e[1],e[0],e[1]]:["L",e[0],e[1]],u=[["M",i[0][0],i[0][1]]];let c=0;for(;c<s&&0!==t[c];)c++;for(let e=1;e<=c;e++)u.push(o(i[0]));let h=c+1;for(let e=0;e<a-1;e++){let n=0;for(;h+n<s&&-1===t[h+n];)n++;const a=r[e+1];if(n){const t=n+1;let r=i[e],s=a;for(let e=0;e<n;e++){const n=1/(t-e),i="C"===l?k(r,s,n):S(r,s,n);u.push(i.first),r=i.mid,s=i.second}u.push(s)}else u.push(a.slice());h+=n+1}for(;h<s;)u.push(o(i[a-1])),h++;return n&&n.forEach(e=>u.push(e.slice())),u}function $(e,t,r,n,l,i){const a=w(e,n,i);if(!a)return null;const s=w(t,l,i);if(!s)return null;if(a.segType!==s.segType)return null;if((a.closing||s.closing)&&(!a.closing||!s.closing||a.closing[0][0]!==s.closing[0][0]))return null;const o=r.map(e=>e.oldJ),u=r.map(e=>e.newJ);return{from:_(M(a,o)),toInterp:_(M(s,u))}}function E(e,t,r){var n,l,i,a;if(null==(n=e.axisFlags)?void 0:n.isXNumeric){const n=null==(i=null==(l=e.seriesData)?void 0:l.seriesX)?void 0:i[t];if(n&&n.length&&null!=n[r])return"x:"+n[r]}const s=null==(a=e.globals.labels)?void 0:a[r];return null!=s&&""!==String(s)?"c:"+(Array.isArray(s)?s.join(" "):String(s)):"j:"+r}function P(e){const t=new Map;return e.map(e=>{const r=t.get(e)||0;return t.set(e,r+1),0===r?e:`${e}#${r}`})}function L(e,t,r=!1,n=!1){var l,i;if(!function(e){var t;const r=e.config.chart.animations;if(!r||!1===r.enabled)return!1;if(!r.dynamicAnimation||!1===r.dynamicAnimation.enabled)return!1;const n=null!=(t=r.largeDatasetThreshold)?t:0;return!(n>0&&e.globals.dataPoints>n||!(m.isBrowser()&&e.globals.dataChanged&&e.globals.shouldAnimate))}(e))return null;const a=e.globals.prevStreamFrame;if(!a)return null;const s=null==(l=a.seriesY)?void 0:l[t],o=null==(i=e.seriesData.series)?void 0:i[t];if(!Array.isArray(s)||!Array.isArray(o))return null;if(!s.length||!o.length)return null;const u=P(s.map((e,r)=>function(e,t,r){var n,l;if(e.isXNumeric){const l=null==(n=e.seriesX)?void 0:n[t];if(l&&l.length&&null!=l[r])return"x:"+l[r]}const i=null==(l=e.labels)?void 0:l[r];return null!=i&&""!==String(i)?"c:"+(Array.isArray(i)?i.join(" "):String(i)):"j:"+r}(a,t,r))),c=P(o.map((r,n)=>E(e,t,n))),h=function(e,t){const r=new Map;e.forEach((e,t)=>{r.has(e)||r.set(e,t)});const n=new Array(t.length),l=new Set;let i=-1,a=!0,s=e.length===t.length;t.forEach((e,t)=>{const o=r.has(e)&&!l.has(r.get(e))?r.get(e):-1;n[t]=o,-1!==o&&(l.add(o),o<i&&(a=!1),i=o),o!==t&&(s=!1)});const o=[];for(let t=0;t<e.length;t++)l.has(t)||o.push(t);return{toOld:n,exits:o,ordered:a,changed:!s}}(u,c);return(h.ordered||n)&&(h.changed||r)?{join:h,oldKeys:u,newKeys:c}:null}function D(e,{type:t,realIndex:r,pathFromLine:n,pathFromArea:l,linePaths:i,areaPaths:a}){var s,o;const u=L(e,r);if(!u)return null;const{join:c,oldKeys:h,newKeys:d}=u,g=e.globals.prevStreamFrame;if(!g)return null;const f=null==(s=g.seriesY)?void 0:s[r],p=null==(o=e.seriesData.series)?void 0:o[r];if(f.length<2||p.length<2)return null;if(f.some(e=>null===e)||p.some(e=>null===e))return null;const v=function(e,t){const r=new Set(e.exits),n=[];let l=0;for(let t=0;t<e.toOld.length;t++){const i=e.toOld[t];if(-1!==i){for(;l<i;)r.has(l)&&n.push({oldJ:l,newJ:-1}),l++;n.push({oldJ:i,newJ:t}),l=i+1}else n.push({oldJ:-1,newJ:t})}for(;l<t;)r.has(l)&&n.push({oldJ:l,newJ:-1}),l++;return n}(c,h.length),b={};return Array.isArray(i)&&1===i.length&&n&&(b.line=$(n,i[0],v,h.length,d.length,!1)),"area"===t&&Array.isArray(a)&&1===a.length&&l&&(b.area=$(l,a[0],v,h.length,d.length,!0)),b.line||b.area?b:null}const T=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function C(e,t){const{ax:r,bx:n,ay:l,by:i}=t,a=[],s=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g;let o;for(;null!==(o=s.exec(e));){const e=o[1].toUpperCase(),t=(o[2].match(T)||[]).map(parseFloat);if("Z"===e){a.push("z");continue}if("H"===e){for(const e of t)a.push(`H ${r*e+n}`);continue}if("V"===e){for(const e of t)a.push(`V ${l*e+i}`);continue}if("A"===e){for(let e=0;e+6<t.length;e+=7)a.push(`A ${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${r*t[e+5]+n} ${l*t[e+6]+i}`);continue}const s=[];for(let e=0;e+1<t.length;e+=2)s.push(`${r*t[e]+n} ${l*t[e+1]+i}`);s.length&&a.push(`${e} ${s.join(" ")}`)}return a.join(" ")}const F="apexcharts-highlight-part",O={f:1,o:0},j={f:0,o:0},N=e=>({f:e,o:e<1?1:0}),I=e=>"number"==typeof e&&e==e&&e!==1/0&&e!==-1/0,B=(e,t,r)=>r>=1?t:e+(t-e)*r,z=e=>e&&"object"==typeof e&&!Array.isArray(e),H=(e,t="fill-opacity")=>{var r;const n=null==(r=e.instance)?void 0:r._cmd,l=parseFloat(n?n[t.replace("-o","O")]:e.getAttribute(t));return isFinite(l)?l:1};function R(e){const t="string"==typeof e?e.trim():"";let r,n=null;return(r=/^rgba\(([^,]+,[^,]+,[^,]+),([^)]+)\)$/i.exec(t))?n=[`rgb(${r[1]})`,parseFloat(r[2])]:(r=/^color-mix\(in srgb, (.+) ([\d.]+)%, transparent\)$/.exec(t))?n=[r[1],parseFloat(r[2])/100]:(r=/^(#[\da-f]{6})([\da-f]{2})$/i.exec(t))&&(n=[r[1],parseInt(r[2],16)/255]),n&&n[1]>0&&n[1]<1?n:[e,1]}function W(e,t){const r=null!=e&&t?e/t:null;return{value:null!=e?e:null,total:null!=t?t:null,share:r,overflow:null!=r&&(r<0?"sign":r>1)}}function Y(e){let t=parseFloat(e.getAttribute("x")),r=parseFloat(e.getAttribute("y"));return String(e.getAttribute("transform")||"").replace(/translate\(\s*([^\s,)]+)[\s,]*([^\s,)]*)\s*\)/g,(e,n,l)=>(t+=parseFloat(n)||0,r+=parseFloat(l)||0,"")),[t,r]}const q=["mousemove","mousedown","mouseup","mouseover","mouseout","click","touchstart","touchmove","touchend"];function X(e,t){const r=e._apxHits||(e._apxHits=new Set);if(!e._apxHitStop){e._apxHitStop=!0;const t=e=>{r.has(e.relatedTarget)&&e.stopImmediatePropagation()};["mouseout","mouseleave","mouseover","mouseenter"].forEach(r=>e.addEventListener(r,t,!0))}r.add(t),q.forEach(r=>t.addEventListener(r,t=>{t.stopPropagation();const n="mouseover"===r,l="mouseout"===r;(n||l)&&t.relatedTarget===e||(Z(e,r,t),n&&Z(e,"mouseenter",t),l&&Z(e,"mouseleave",t))},{passive:!0}))}function G(e,t){const r=()=>{const r=e.getAttribute("filter");r?t.setAttribute("filter",r):t.removeAttribute("filter")};r(),m.isBrowser()&&"undefined"!=typeof MutationObserver&&new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["filter"]})}function V(e,t){const r=e.parentNode,n=Array.from(r.childNodes);r.insertBefore(t,n[n.indexOf(e)+1]||null)}const J=(e,t)=>e.setAttribute("class",`${e.getAttribute("class")||""} ${t}`.trim());function Z(e,t,r){try{const n=r.touches?{bubbles:!0,cancelable:!0,touches:Array.from(r.touches),targetTouches:Array.from(r.targetTouches),changedTouches:Array.from(r.changedTouches)}:"mouseenter"===t||"mouseleave"===t?{clientX:r.clientX,clientY:r.clientY,screenX:r.screenX,screenY:r.screenY,relatedTarget:r.relatedTarget,buttons:r.buttons}:r;e.dispatchEvent(new r.constructor(t,n))}catch(e){}}function U(e){if(!z(e))return e;const t=e,{highlightData:r,highlight:a}=t,s=((e,t)=>{var r={};for(var a in e)l.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&n)for(var a of n(e))t.indexOf(a)<0&&i.call(e,a)&&(r[a]=e[a]);return r})(t,["highlightData","highlight"]);return["data","children"].forEach(e=>{Array.isArray(s[e])&&(s[e]=s[e].map(ee))}),s}function K(e){const t=[];return(e||[]).forEach(e=>(z(e)&&Array.isArray(e.data)?e.data:[]).forEach(e=>{z(e)&&void 0!==e.x&&(void 0!==e.y||Array.isArray(e.children))&&t.push(e)})),t}const Q=e=>z(e)&&("highlight"in e||"highlightData"in e||[e.data,e.children].some(e=>Array.isArray(e)&&e.some(Q))),ee=e=>z(e)&&("highlight"in e||Array.isArray(e.children))?U(e):e;function te(e,t){if("number"==typeof t)return t;const r=e.config&&e.config.series||[];for(let e=0;e<r.length;e++)if(r[e]&&r[e].name===t)return e;return-1}function re(e){return!!(e&&e.weaveHighlights&&e.weaveHighlights.records.length)}function ne(e,t){if(!re(e))return null;let r=null;for(const n of e.weaveHighlights.records)for(const l of n.entries)te(e,l.series)===t&&(r=l.values);return r}const le="p:",ie=["pie","donut","polarArea"];function ae(e,t){var r;const n=e.w.highlightData;if(!n)return;if(e._render!==t&&e._beginRender(t,"p:"),!n.active&&!(null==(r=e._prev())?void 0:r.size))return;n.active&&"polarArea"===t.chartType&&"clamp"!==e.cfg.axis&&n.parts.forEach(e=>{I(e[0])&&(t.maxY=Math.max(t.maxY,e[0]))});const l=t.animatePaths,i=t.drawArcs,a=t.getSliceMovers,u=t.getHoverOutlinePath,c={arcs:[],movers:[],reach:[],ap:l};t.animatePaths=(e,r)=>{const n=s({},r);l.call(t,e,r),n.run=r.dur,c.arcs[r.i]={a:n,el:e}},t.drawArcs=(...r)=>{const n=i.apply(t,r);return function(e,t,r,n){var l,i,a,u,c,d,g,p,v,b;const y=e.w,A=y.globals,_=e.cfg,w=y.highlightData,x=w.active,k=e._prev(),S=t.chartType,M="polarArea"===S,$=A.radialSize,E="donut"===S?t.donutSize:0,P=x?null!=(l=_.fadeOpacity)?l:.2:1,L=!0===(null==(i=e.ctx.morphTypeChange)?void 0:i.isActive()),D=!A.dataChanged||!A.shouldAnimate,T="area"===(null==(a=_.pie)?void 0:a.encoding),C=y.seriesData.series,I="part"===(null!=(c=null==(u=_.dataLabels)?void 0:u.value)?c:"part"),z=t.strokeWidth>0&&(null!=(g=null==(d=_.outline)?void 0:d.width)?g:1)>0?{opacity:null!=(v=null==(p=_.outline)?void 0:p.opacity)?v:1}:null,q=null==(b=A.prevHighlightLabels)?void 0:b.get(-1),V=[],J=(e,t)=>{var r,n;return(null==(r=e.classList)?void 0:r.contains(t))||` ${null==(n=e.getAttribute)?void 0:n.call(e,"class")} `.indexOf(` ${t} `)>-1};Array.from(r.node.childNodes).filter(e=>J(e,"apexcharts-pie-series")).forEach(r=>{var l,i,a,u,c,d;const g=Array.from(r.childNodes).find(e=>J(e,"apexcharts-pie-area"));if(!g)return;const p=Number(g.getAttribute("j")),v=le+p,b=D||null==k?void 0:k.get(v);if(!x&&!b)return;const S=n.arcs[p],Y=C[p],Z=x?null==(l=w.parts[p])?void 0:l[0]:null,U=t.sliceSizes[p],K=M?U:$,Q=m.isBrowser()&&!!S&&S.a.run>0&&!L,ee=+(null==S?void 0:S.a.animBeginArr[p])||0,te=null!=Z&&Y>0?Z/Y:null;let re=null,ne=!1;if(null!=te&&te>0)if(ne=te>1,M)re=Math.min($,U*te);else{const e=Math.min(te,1);re=T?Math.sqrt(E*E+e*($*$-E*E)):E+($-E)*e}const ie=null!=(i=null==b?void 0:b.lr)?i:null==b?void 0:b.fr;let ae=re;const se=null==re&&null!=ie&&Q;se&&(ae=A.collapsedSeriesIndices.indexOf(p)>-1?ie*$:x?E:K);const oe=se&&!x;let ue=ae,he=!1;null!=ae&&Q&&!D&&(null!=ie?ue=ie*$:b||"baseline"===_.enter?ue=E:(he=!0,ue=M?null!=(a=S.a.prevSize)?a:U:$),se||Math.abs(S.a.prevEndAngle-S.a.prevStartAngle)>.01||(ue=ae,he=!1));let de=null,ge=null;const fe=e=>{const t=g.getAttribute("transform");t&&(e.setAttribute("transform",t),e.classList.add("apexcharts-slice-mover"),e.style.transition=g.style.transition),(n.movers[p]=n.movers[p]||[]).push(e)},pe=(e,r,l,i)=>{if(S&&!L)n.ap.call(e,r,o(s({},S.a),{size:l,prevSize:D?void 0:i,isTrack:!0}));else{const n=Number(g.getAttribute("data:angle"));r.attr({d:e.getPiePath({me:e,startAngle:Number(g.getAttribute("data:startAngle")),angle:n>=t.fullAngle?t.fullAngle-.01:n,size:l}),"stroke-width":e.strokeWidth})}},ve=g.getAttribute("fill"),[be,me]=R(ve),ye=H(g),Ae=!!ve&&"none"!==ve&&!/^url\(/i.test(ve),_e=Ae?me*ye:ye,we=Ae?he?_e:null!=ie&&null!=(u=b.al)?u:1:ye,xe=Ae?oe?_e:1:ye;if(null!=ae){const l=ce(t,K);de=new h(y).drawPath({d:"",fill:be,stroke:g.getAttribute("stroke"),strokeWidth:0,fillOpacity:we,classes:`${F} apexcharts-pie-highlight-part`});const i=de.node;if(i.setAttribute("pointer-events","none"),null!=te&&i.setAttribute("data:hl-share",String(te)),r.appendChild(i),fe(i),Q&&!D&&i.setAttribute("d",l.getChangedPath(S.a.prevStartAngle,S.a.prevEndAngle,ue)),pe(l,de,ae,ue),ne&&!se&&i.classList.add("apexcharts-highlight-overflow"),G(g,i),ne&&!se||se&&(null==b?void 0:b.edge)){ge=new h(y).drawPath({d:"",fill:"none",stroke:"#fff",strokeWidth:1,strokeDashArray:3,classes:`${F} apexcharts-highlight-edge`}),ge.node.setAttribute("pointer-events","none"),ge.node.setAttribute("stroke-opacity","0"),r.appendChild(ge.node),fe(ge.node);pe(ce(t,K,{strokeWidth:{value:1}}),ge,M?U:$-2,M?null==S?void 0:S.a.prevSize:$-2)}if(M&&ne&&!se&&(i.removeAttribute("pointer-events"),X(g,i),n.reach[p]=ae),L){const t=[i,null==ge?void 0:ge.node].filter(Boolean),r=e=>t.forEach(t=>t.setAttribute("opacity",e));r(0),e._tween(e.ctx.morphTypeChange.getSpeed(),y.config.chart.animations.dynamicAnimation.speed,r,()=>t.forEach(e=>e.removeAttribute("opacity")))}}const ke={d:null,fr:null,f:P,edge:!1,c:!x,al:xe};e._targets.set(v,ke);const Se=ne&&null!=re?.75:0,Me=D?Se:(null==b?void 0:b.edge)?.75:0,$e=null!=ue?ue:0,Ee=null!=ae?ae:0;e._fade(g,D?N(P):he?j:b?{f:b.f,o:null!=(c=b.o)?c:N(b.f).o}:O,oe?j:N(P),{delayMs:ee,speed:null==S?void 0:S.a.run,el:null==S?void 0:S.el},{anim:Q,force:!!de&&($e!==Ee||Me!==Se||we!==xe),outline:z&&o(s({},z),{color:A.colors[p]}),also:e=>{de&&(ke.lr=B($e,Ee,e)/$,ke.la=B(we,xe,e),de.node.setAttribute("fill-opacity",String(ke.la))),null==ge||ge.node.setAttribute("stroke-opacity",String(B(Me,Se,e)))},land:oe?O:void 0,done:se?()=>{null==de||de.remove(),null==ge||ge.remove(),ke.lr=null}:void 0,rec:ke}),null!=re&&Object.assign(ke,{fr:re/$,edge:ne,n:de.node});const Pe=t.sliceLabelGroups[p],Le=Pe&&Array.from(Pe.childNodes).find(e=>J(e,"apexcharts-pie-label"));if(Le&&x){if(null==Z&&I)return t.sliceLabels=t.sliceLabels.filter(e=>e.node!==Pe),null==(d=Pe.parentNode)||d.removeChild(Pe),void delete t.sliceLabelGroups[p];!function(e,t,r,n,l,i,a,s,o){var u,c;const d=e.config.dataLabels.formatter;if(null!=i){const t=null!=(c=null==(u=e.globals.seriesPercent[l])?void 0:u[0])?c:0,r=a?t*i/a:0;n.textContent=String(d?d(r,{seriesIndex:l,dataPointIndex:l,series:e.seriesData.series,w:e,highlight:W(i,a)}):r+"%")}const g=parseFloat(n.getAttribute("font-size"))||12,p=Number(r.getAttribute("data:startAngle")),v=Number(r.getAttribute("data:angle"));if(null!=i&&null!=s&&s-o>=1.2*g){const r=e.config.plotOptions.pie.dataLabels.offset,l=f.polarToCartesian(t.centerX,t.centerY,"donut"===t.chartType?(o+s)/2+r:s/1.25+r,(p+v/2)%t.fullAngle);n.setAttribute("x",l.x),n.setAttribute("y",l.y)}const b=new h(e).getTextRects(n.textContent,n.getAttribute("font-size"),n.getAttribute("font-family"),void 0,!0,n.getAttribute("font-weight")),m=parseFloat(n.getAttribute("x")),y=parseFloat(n.getAttribute("y")),A=null!=s&&[[m-b.width/2,y-.75*b.height],[m+b.width/2,y-.75*b.height],[m-b.width/2,y+.25*b.height],[m+b.width/2,y+.25*b.height]].every(([e,r])=>{const n=e-t.centerX,l=r-t.centerY,i=Math.hypot(n,l),a=((180*Math.atan2(l,n)/Math.PI+90-p)%360+360)%360;return i>=o&&i<=s&&a<=v});A||(n.setAttribute("fill",e.config.chart.foreColor),n.removeAttribute("filter"))}(y,t,g,Le,p,I?Z:null,Y,re,E)}Le&&Q&&!D&&q&&V.push({t:Le,src:q.get(p),el:S.el,delayMs:ee,arc:S})}),V.length&&(e._ride=()=>function(e,t){t.forEach(({t:t,src:r,el:n,delayMs:l,arc:i})=>{if(!t.isConnected)return;const[a,s]=Y(t),o=r?r.x-a:0,u=r?r.y-s:0;r&&Math.abs(o)<.5&&Math.abs(u)<.5||e._tween(l,i.a.run,e=>{const n=1-e;n>0&&r?t.setAttribute("transform",`translate(${o*n} ${u*n})`):t.removeAttribute("transform"),r||(e<1?t.setAttribute("opacity",String(e)):t.removeAttribute("opacity"))},void 0,void 0,n)})}(e,V))}(e,t,n,c),n},t.getSliceMovers=e=>a.call(t,e).concat(c.movers[e]||[]),t.getHoverOutlinePath=e=>{const r=t.sliceSizes;if(!(c.reach[e]>r[e]))return u.call(t,e);t.sliceSizes=r.slice(),t.sliceSizes[e]=c.reach[e];try{return u.call(t,e)}finally{t.sliceSizes=r}},se(e,t)}function se(e,t){const r=t.renderInnerDataLabels,n=t.printInnerLabels;t.renderInnerDataLabels=(n,l,i)=>oe(e,()=>r.call(t,n,ue(e,l,0),i)),t.printInnerLabels=(r,l,i,a)=>oe(e,()=>n.call(t,ue(e,r,a?+a.parentNode.getAttribute("rel")-1:-1),l,i,a))}function oe(e,t){var r,n;const l=e.w.globals,i=e.w.highlightData;if(!(null==i?void 0:i.active)||"part"!==(null!=(n=null==(r=e.cfg.dataLabels)?void 0:r.total)?n:"part"))return t();const a=l.seriesTotals;l.seriesTotals=i.parts.map(e=>{var t;return null!=(t=e[0])?t:0});try{return t()}finally{l.seriesTotals=a}}function ue(e,t,r){var n,l;const i=e.w,a=i.highlightData;if(!(null==a?void 0:a.active))return t;const u=i.seriesData.series,c=a.parts.map(e=>e[0]),h=r>-1&&"part"===(null!=(l=null==(n=e.cfg.dataLabels)?void 0:n.value)?l:"part")?c[r]:null,d=e=>e.reduce((e,t)=>e+(I(t)?t:0),0),g=t.total.formatter,f=t.value.formatter;return o(s({},t),{total:o(s({},t.total),{formatter:g&&(e=>g(e,{highlight:W(d(c),d(u))}))}),value:o(s({},t.value),{formatter:(e,t)=>f(null!=h?h:e,t,{highlight:r>-1?W(c[r],u[r]):void 0})})})}const ce=(e,t,r)=>Object.create(e,s({getSliceExtent:{value:r=>e.getSliceExtent(o(s({},r),{size:t}))}},r));const he="r:",de="r:o",ge=["length","baseWidth","tipWidth","offsetY"],fe=.45,pe=`${F} apexcharts-radialbar-highlight-lane`;function ve(e,t){var r,n,l,i,a,o,u;const c=e.w,h=c.highlightData,d=null==(n=null==(r=e.ctx.lastUpdateOptions)?void 0:r.tooltip)?void 0:n.enabled;if(null!=d?e._tipUser=d:e._tipOn&&(c.config.tooltip.enabled=!1),e._tipOn=!1,!h)return;e._render!==t&&e._beginRender(t,he),function(e){const t=e.ctx.morphTypeChange;if(!t||t._hfOut)return;t._hfOut=!0;const r=t.captureBeforeDestroy;t.captureBeforeDestroy=n=>{const l=function(e,t){var r,n,l,i,a;const s=e.w,o=s.globals,u=null==(r=s.dom.baseEl)?void 0:r.querySelector(".apexcharts-radialbar");if("radialBar"!==t&&"gauge"!==t||!u)return null;const c=e.ctx.morphTypeChange,h=null!=(l=null==(n=o.circleGeometry)?void 0:n.cx)?l:0,d=null!=(a=null==(i=o.circleGeometry)?void 0:i.cy)?a:0,g=new Map,f=new Set,p=new Set;u.querySelectorAll(".apexcharts-radial-series .apexcharts-radialbar-area").forEach(t=>{var r,n,l,i;const a=t.parentNode,s=+a.getAttribute("data:realIndex"),o=he+t.getAttribute("j"),u=null!=(n=e._targets.get(o))?n:null==(r=e._prev())?void 0:r.get(o),v=a.querySelector(".apexcharts-radialbar-highlight-part");if(!(v||(null==u?void 0:u.s)>0||(null!=(i=null!=(l=null==u?void 0:u.lf)?l:null==u?void 0:u.f)?i:1)<1))return;f.add(t);const b=null==v?void 0:v.getAttribute("d"),m=+(null==v?void 0:v.getAttribute("stroke-width"));let y=null;if(b&&m>0&&"0"!==v.getAttribute("opacity"))y=c._radialArcToFilledSegment(b,m,h,d)||b,p.add(v);else{const e=/M\s*(-?[\d.e]+)\s+(-?[\d.e]+)/.exec(t.getAttribute("d")||"");e&&(y=`M ${e[1]} ${e[2]} L ${e[1]} ${e[2]} Z`)}y&&g.set(s,y)});const v=[...u.getElementsByClassName(F)];return g.size||v.length?(v.forEach(e=>p.has(e)||e.closest(".apexcharts-tracks")||f.add(e)),{marks:g,ghost:()=>{const e="data-hf-ghost";f.forEach(t=>t.setAttribute(e,""));const t=s.dom.Paper.node.cloneNode(!0);f.forEach(t=>t.removeAttribute(e));const r=new Set(t.querySelectorAll(`[${e}]`)),n=new Set;r.forEach(r=>{r.removeAttribute(e);for(let e=r.parentNode;e&&e!==t;e=e.parentNode)n.add(e)});const l=e=>[...e.children].forEach(e=>{r.has(e)||(n.has(e)?l(e):"defs"!==e.tagName.toLowerCase()&&e.remove())});return l(t),t.removeAttribute("id"),[t,...t.querySelectorAll("*")].forEach(e=>{e.id&&(e.id+="-hf"),[...e.attributes].forEach(t=>{t.value.includes("url(#")&&e.setAttribute(t.name,t.value.replace(/url\(#([^)]+)\)/g,"url(#$1-hf)"))})}),t}}):null}(e,null==n?void 0:n.fromType);if(!l)return r.call(t,n);const i=t._captureFromDOM;let a;t._captureFromDOM=e=>{const r=i.call(t,e);return r.marks.forEach(e=>{var t;e.d=null!=(t=l.marks.get(e.realIndex))?t:e.d}),r};try{a=r.call(t,n)}finally{t._captureFromDOM=i}const s=t._snapshot;return!a||!s||t._ghost||s.pieceOut||s.pieceIn||(t._ghost=l.ghost()),a}}(e);const g=c.config.plotOptions.radialBar;if(e._ind=null!=(i=null==(l=e.cfg.radialBar)?void 0:l.indicator)?i:"needle"===g.shape?"needle":"arc","lanes"!==e._ind||"needle"!==g.shape||(null==(a=g.needle)?void 0:a.showValueArc)||(e._ind="needle"),!h.active&&!(null==(o=e._prev())?void 0:o.size))return;const f=c.config.tooltip;h.active&&!f.enabled&&null==e._tipUser&&m.isBrowser()&&(f.enabled=!0,e._tipOn=!0),se(e,t),function(e,t){const r=t.renderInnerDataLabels,n=t.printInnerLabels;t.renderInnerDataLabels=(n,l,i)=>{const a=r(n||t.dataLabelsGroup,l,i);return ye(e,t,l,-1,a),a},t.printInnerLabels=(r,l,i,a)=>{n(r,l,i,a),ye(e,t,r,a?+a.parentNode.getAttribute("rel")-1:-1)}}(e,t);const p=t.drawNeedle;t.drawNeedle=r=>{const n=p.call(t,r);return function(e,t,r){var n,l;const i=e.w,a=i.globals,s=i.highlightData.active,o=!a.dataChanged||!a.shouldAnimate,u=o||null==(n=e._prev())?void 0:n.get(de);if(!s&&!u)return;const c=s?null!=(l=e.cfg.fadeOpacity)?l:.2:1,h=o?c:u?u.f:1,d={d:null,f:c,c:!s};e._targets.set(de,d);const g=e=>{d.lf=e,e<1?r.node.setAttribute("opacity",String(e)):r.node.removeAttribute("opacity")},f=e.ctx.morphTypeChange,p=(null==f?void 0:f.isActive())?{delay:f.getSpeed(),speed:i.config.chart.animations.dynamicAnimation.speed}:t.needleMotion();p&&h!==c?(d.run=!0,e._tween(p.delay||0,p.speed,e=>g(B(h,c,e)),()=>d.run=!1,p.ease)):g(c);s&&m.isBrowser()&&Promise.resolve().then(()=>{var e;const t=i.dom.baseEl,n=null==t?void 0:t.querySelector(".apexcharts-radialbar-slice-0");n&&r.node.isConnected&&(X(n,r.node),null==(e=t.querySelector(".apexcharts-radialbar-hollow"))||e.setAttribute("pointer-events","none"))})}(e,t,n),n};const v=t.animatePaths;t.animatePaths=(r,n)=>{const l=s({},n);v.call(t,r,n),n.isTrack||(l.run=n.dur,be(e,t,r,l,v))},!0===(null==(u=e.ctx.morphTypeChange)?void 0:u.isActive())&&Promise.resolve().then(()=>{var r;e._render!==t||c.globals.isDestroyed||null==(r=c.dom.baseEl)||r.querySelectorAll(".apexcharts-radial-series .apexcharts-radialbar-area").forEach(r=>be(e,t,r.instance,null,v))})}function be(e,t,r,n,l){var i,a,u,c,d,g;const p=e.w,v=p.globals,b=e.cfg,y=p.highlightData,A=y.active,_=r.node,w=n?n.i:Number(_.getAttribute("j")),x=he+w,k=!n,S=!v.dataChanged||!v.shouldAnimate,M=e._prev(),$=S||null==M?void 0:M.get(x),E=p.config.plotOptions.radialBar,P=e._ind,L=_.getAttribute("stroke"),D=_.getAttribute("fill"),T=L&&"transparent"!==L?L:k&&D&&"none"!==D?D:null,C=0===w&&("needle"===P||!T),N=p.seriesData.series[w],z=A&&v.collapsedSeriesIndices.indexOf(w)<0&&null!=(a=null==(i=y.parts[w])?void 0:i[0])?a:null,R=t.startAngle,W=n?n.endAngle:t._arcEnd(N),Y=n?n.run:0,q=m.isBrowser()&&Y>0,Z=n&&+n.animBeginArr[w]||0,U=null!=(u=b.fadeOpacity)?u:.2,K=A&&!C&&!!T,Q={f:U,o:0},ee=n?n.size:Math.hypot(_.getAttribute("data:cx")-v.circleGeometry.cx,_.getAttribute("data:cy")-v.circleGeometry.cy);if("lanes"===P&&T)return function(e,t,r,n){var l,i,a,u,c,d,g;const{i:f,c:p,prev:v,mount:b,pv:y,whole:A,wholeEnd:_,run:w,anim:x,delayMs:k,size:S}=n,M=e.w,$=M.globals,E=e.cfg,P=M.config.plotOptions.radialBar,L=M.highlightData.active,D=r.node,T=!p,C=t.startAngle,O=L&&$.collapsedSeriesIndices.indexOf(f)<0?1:0,j=T?m.isBrowser()&&!!O:x&&!b,N=!T&&x&&b,z=T?0:j?null!=(l=null==v?void 0:v.s)?l:0:O,R=T?{delayMs:e.ctx.morphTypeChange.getSpeed(),speed:M.config.chart.animations.dynamicAnimation.speed}:{delayMs:k,speed:w};0===f&&function(e,t){var r;const n=null==(r=e._render)?void 0:r._hfLine,l=null==n?void 0:n.rec;if(!l||l.run||l.lf===l.f)return;const i=l.lf,a=()=>{var e,t;if(l.run=!1,l.f)return;l.done=!0;const r=null==(e=n.node)?void 0:e.previousSibling;null!=l.hold&&r&&r.textContent===l.pv&&(r.textContent=l.vt=l.hold),null==(t=n.node)||t.remove(),n.node=null};if(!t)return l.lf=l.f,_e(n),void a();l.run=!0,e._tween(t.delayMs,t.speed,e=>{l.lf=B(i,l.f,e),_e(n)},a,void 0,t.el)}(e,j?o(s({},R),{el:r}):null);if(!O&&!z)return;const W=null!=y?t._arcEnd(y):C,Y=_,q=O?W:Y;let Z=Y,U=q;T?U="baseline"===E.enter?C:Y:j?(Z=null!=(i=null==v?void 0:v.we)?i:I(p.prevEndAngle)?p.prevEndAngle:Y,U=null!=(a=null==v?void 0:v.e)?a:"baseline"===E.enter?C:Z):N&&(Z=U=C);const K=O?null!=(d=null==(c=null==(u=E.radialBar)?void 0:u.lanes)?void 0:c.opacity)?d:fe:1,Q=T?1:j?v?v.f:1:K,ee=T?t.getStrokeWidth({size:$.circleGeometry.r,series:M.seriesData.series}):Number(D.getAttribute("stroke-width")),te=D.getAttribute("stroke-opacity"),re=e=>{var t;const r=new h(M).drawPath({d:"",stroke:n.paint,strokeWidth:ee,fill:"none",strokeOpacity:H(D,"stroke-opacity"),strokeDashArray:null!=(t=D.getAttribute("stroke-dasharray"))?t:0,classes:`${pe} ${e}`});return r.node.setAttribute("aria-hidden","true"),G(D,r.node),r},ne=re("apexcharts-radialbar-highlight-whole"),le=re("apexcharts-radialbar-highlight-part");V(D,ne.node),V(ne.node,le.node),ne.node.setAttribute("pointer-events","none"),O&&W-Y>.01?X(D,le.node):le.node.setAttribute("pointer-events","none");null!=y&&(y>(null!=A?A:0)||y>("number"==typeof P.max?P.max:100))&&J(le.node,"apexcharts-highlight-overflow");const ie=M.seriesData.series.length,ae=function(e){var t,r;if(e._hfTracks)return e._hfTracks;const n=(e,t)=>{var r;return` ${null==(r=e.getAttribute)?void 0:r.call(e,"class")} `.includes(` ${t} `)},l=[...(null==(r=null==(t=e.w.dom.Paper)?void 0:t.node)?void 0:r.childNodes)||[]];let i=[];for(let e=l.length-1;e>=0&&!i.length;e--){const t=[...l[e].childNodes||[]].find(e=>n(e,"apexcharts-tracks"));t&&(i=[...t.childNodes].map(e=>[...e.childNodes].find(e=>n(e,"apexcharts-radialbar-area"))))}return e._hfTracks=i}(t)[P.inverseOrder?ie-1-f:f],se=ae&&[ae.getAttribute("d"),ae.getAttribute("stroke-width")],oe=se?(parseFloat(se[1])||0)/(ee||1):0;let ue=null;if(ae){ue=new h(M).drawPath({d:"",stroke:ae.getAttribute("stroke"),strokeWidth:0,fill:"none",strokeOpacity:null!=(g=ae.getAttribute("stroke-opacity"))?g:1,classes:`${F} apexcharts-radialbar-highlight-track`});const e=ae.getAttribute("filter");e&&ue.node.setAttribute("filter",e),ue.node.setAttribute("pointer-events","none"),ue.node.setAttribute("aria-hidden","true"),V(ae,ue.node)}const ce=S-ee/2,de=S+ee/2,ge=ie<2,ve=ge?Math.max(2,.12*ee):Math.max(1,Math.min(.08*ee,t.margin/3)),be=ge?0:Math.max(0,(3*ve-t.margin)/2),ye=Math.max(.5,(ee-ve)/2-be),Ae=(e,r)=>{const n=e-C;return n>.01?t.getPiePath({me:t,startAngle:C,angle:n===t.fullAngle?t.fullAngle-.01:n,size:r}):""},we=e=>{const r=t.trackStartAngle;let n=t.trackEndAngle;Math.abs(n)+Math.abs(r)>=360&&(n=360-Math.abs(t.startAngle)-.1);const l=n<r?t.fullAngle+n-r:n-r;return t.getPiePath({me:t,startAngle:r,angle:l===t.fullAngle?l-.01:l,size:e})},xe=(e,t,r)=>{e.setAttribute("d",t),e.setAttribute("stroke-width",String(r))},ke={d:null,c:!L,f:K,cx:p?p.centerX:$.circleGeometry.cx,cy:p?p.centerY:$.circleGeometry.cy};e._targets.set(he+f,ke);const Se=(e,t,r)=>{ke.s=e,ke.we=t,ke.e=r;const n=de-be*e,l=ce+e*(de-be-ye-ce),i=ce+be*e,a=i+e*ye;ke.mid=(l+a)/2,xe(ne.node,Ae(t,(l+n)/2),n-l),xe(le.node,a>i?Ae(r,(i+a)/2):"",a-i),ae&&(e?(xe(ae,we((l+n)/2),(n-l)*oe),xe(ue.node,we((i+a)/2),(a-i)*oe)):(xe(ae,se[0],se[1]),xe(ue.node,"",0)))},Me=[ne.node,le.node,null==ue?void 0:ue.node].filter(Boolean);let $e=!T;const Ee=()=>{$e=!0,D.setAttribute("stroke-opacity","0"),Me.forEach(e=>e.removeAttribute("opacity"))};$e?Ee():Me.forEach(e=>e.setAttribute("opacity","0"));Se(z,Z,U);let Pe=!1;(j||N)&&ne.animate(R.speed,R.delayMs).during(e=>{Pe||($e||Ee(),Se(B(z,O,e),B(Z,Y,e),B(U,q,e)))});if(e._fade(ne.node,{f:Q,o:0},{f:K,o:0},o(s({},R),{el:ne}),{attr:"stroke-opacity",anim:j,force:j,done:O?void 0:()=>{Pe=!0,Me.forEach(e=>e.remove()),ae&&xe(ae,se[0],se[1]),null==te?D.removeAttribute("stroke-opacity"):D.setAttribute("stroke-opacity",te),ke.s=0},rec:ke}),m.isBrowser()){const t=t=>{e._lane=[f,me(D,t,ke)]};["mouseover","mousemove","mousedown","touchstart","touchmove"].forEach(e=>D.addEventListener(e,t,!0))}}(e,t,r,{i:w,c:n,prev:$,mount:S,pv:z,whole:N,wholeEnd:W,run:Y,anim:q,delayMs:Z,size:ee,paint:T}),void(0===w&&xe(e,t,r,!1,z,S,k,n));const te=K&&null!=z?t._arcEnd(z):null,re=null!=te&&te-R>.01,ne=null!=(c=null==$?void 0:$.e)?c:null,le=!re&&null!=ne&&q,ie=le&&!K,ae=re?te:le?ie?W:R:null;let se=ae,oe=!1;null!=ae&&q&&!S&&(null!=ne?se=ne:$||"baseline"===b.enter?se=R:(oe=!0,se=I(n.prevEndAngle)?n.prevEndAngle:W));const ue=e=>{const r=e-R;return t.getPiePath({me:t,startAngle:R,angle:r===t.fullAngle?t.fullAngle-.01:r,size:ee})};let ce=null;if(null!=ae&&T){ce=new h(p).drawPath({d:"",stroke:T,strokeWidth:k?t.getStrokeWidth({size:v.circleGeometry.r,series:p.seriesData.series}):Number(_.getAttribute("stroke-width")),fill:"none",strokeOpacity:H(_,"stroke-opacity"),strokeDashArray:null!=(d=_.getAttribute("stroke-dasharray"))?d:0,classes:`${F} apexcharts-radialbar-highlight-part`});const e=ce.node;e.setAttribute("aria-hidden","true"),V(_,e),re&&z>("number"==typeof E.max?E.max:100)&&J(e,"apexcharts-highlight-overflow"),G(_,e),re&&te-W>.01?X(_,e):e.setAttribute("pointer-events","none"),n&&q&&!S?(e.setAttribute("d",ue(se)),l.call(t,ce,o(s({},n),{endAngle:ae,prevStartAngle:R,prevEndAngle:se,isTrack:!0}))):n?l.call(t,ce,o(s({},n),{endAngle:ae,dur:Y,isTrack:!0})):e.setAttribute("d",ue(ae))}const de=re&&te-W>.01?.75:0,ge=S?de:null!=(g=null==$?void 0:$.tk)?g:0;let ve=null;if(ce&&(de||ge&&q)){const e=Number(ce.node.getAttribute("stroke-width"))||0,t=n?n.centerX:v.circleGeometry.cx,r=n?n.centerY:v.circleGeometry.cy;ve=new h(p).drawPath({d:"",fill:"none",stroke:"#fff",strokeWidth:1,strokeDashArray:3,classes:`${F} apexcharts-highlight-edge apexcharts-radialbar-highlight-edge`});const l=ve.node;l.setAttribute("pointer-events","none"),l.setAttribute("aria-hidden","true"),l.setAttribute("stroke-opacity",String(ge)),V(ce.node,l);const i=n=>{const i=f.polarToCartesian(t,r,ee-e/2,n),a=f.polarToCartesian(t,r,ee+e/2,n);l.setAttribute("d",`M ${i.x} ${i.y} L ${a.x} ${a.y}`)},a=q?I(n.prevEndAngle)&&!S?n.prevEndAngle:R:W;i(a),a!==W&&ve.animate(Y,Z).during(e=>i(B(a,W,e)))}const be=[];ce&&k&&be.push(ce.node),ve&&k&&be.push(ve.node);const ye={d:null,e:null,f:K?U:1,c:!A};if(T&&(A||$)){e._targets.set(x,ye);const t=null!=se?se:0,l=null!=ae?ae:0;ce&&(ye.e=l),ce&&n&&q&&!S&&t!==l&&(ye.e=t,ce.animate(Y,Z).during(e=>null!=ye.e&&(ye.e=B(t,l,e))));const i=p.config.chart.animations.dynamicAnimation.speed;e._fade(_,S&&!k?K?Q:O:oe?j:$?{f:$.f,o:0}:O,ie?j:K?Q:O,k?{delayMs:e.ctx.morphTypeChange.getSpeed(),speed:i}:{delayMs:Z,speed:Y,el:r},{attr:"stroke-opacity",anim:k?m.isBrowser():q,force:!!ce&&(k||t!==l||ge!==de),also:e=>{ve&&(ye.tk=B(ge,de,e),ve.node.setAttribute("stroke-opacity",String(ye.tk))),be.forEach(t=>e<1?t.setAttribute("opacity",e):t.removeAttribute("opacity"))},land:ie?O:void 0,done:le||ve&&!de?()=>{le&&(null==ce||ce.remove(),ye.e=null),null==ve||ve.remove(),ye.tk=0}:void 0,rec:ye}),ce&&(ye.n=ce.node)}0===w&&xe(e,t,r,C,z,S,k,n)}function me(e,t,r){var n,l;const i=(null==(n=t.touches)?void 0:n[0])||t,a=null==(l=e.getScreenCTM)?void 0:l.call(e);if(!(a&&r.s>0))return"part";const s=i.clientX-a.e,o=i.clientY-a.f,u=a.a*a.d-a.b*a.c||1,c=(a.d*s-a.c*o)/u,h=(a.a*o-a.b*s)/u;return Math.hypot(c-r.cx,h-r.cy)>r.mid?"whole":"part"}function ye(e,t,r,n,l){var i,a,s;const o=e.w,u=o.globals;if("lanes"!==e._ind)return;const c=o.highlightData.active;let h=t._hfLine;if(!h){const n=!u.dataChanged||!u.shouldAnimate,l=n||null==(i=e._prev())?void 0:i.get("r:w"),s=c?we(e,r,-1):"",o=s?1:0,d=n||!m.isBrowser()?o:null!=(a=null==l?void 0:l.f)?a:0;if(h=t._hfLine={node:null,rec:null},!o&&!d)return;h.rec={d:null,c:!c,t:s||(null==l?void 0:l.t)||"",f:o,lf:d,o0:d,pv:o?null:null==l?void 0:l.vt},e._targets.set("r:w",h.rec)}const d=h.rec;if(l){if(h.node=null,!d||!d.lf&&d.done)return;const t=l.node.childNodes,n=r.value.show?t[t.length-1]:null;if(!n)return;null==d.pv||d.done||(d.hold=n.textContent,n.textContent=d.pv),d.vt=n.textContent;const i=Ae(o,r,n,(c?we(e,r,-1):"")||d.t);l.add(i),h.node=i.node}else if(c){const t=we(e,r,n),l=null==(s=o.dom.baseEl)?void 0:s.querySelector(".apexcharts-datalabel-value");!h.node&&t&&n>-1&&l&&(h.node=Ae(o,r,l,t).node,l.parentNode.appendChild(h.node)),h.node&&(h.node.textContent=t),d&&l&&(d.vt=l.textContent)}_e(h)}function Ae(e,t,r,n){const l=parseFloat(t.value.fontSize)||14,i=Math.max(11,Math.round(l/2)),a=new h(e).drawText({x:+r.getAttribute("x"),y:+r.getAttribute("y")+l/4+4+.8*i,text:n,textAnchor:"middle",fontSize:i+"px",fontFamily:t.value.fontFamily,fontWeight:400,foreColor:r.getAttribute("fill"),cssClass:"apexcharts-datalabel-whole"});return a.node.setAttribute("aria-hidden","true"),a}function _e(e){var t,r,n;null==(n=e.node)||n.setAttribute("fill-opacity",String(.6*(null!=(r=null==(t=e.rec)?void 0:t.lf)?r:1)))}function we(e,t,r){var n,l;const i=e.w,a=e.cfg.dataLabels||{},u=i.seriesData.series,c=i.highlightData.parts.map(e=>e[0]),h=r>-1?r:u.length<2?0:-1,d=(e,t)=>{const r=String(e(t)),n=String(e(o(s({},t),{lane:"whole"})));return n!==r?n:"/ "+r};if(h>-1)return"part"===(null!=(n=a.value)?n:"part")&&I(c[h])?d(e=>t.value.formatter(u[h],i,e),{highlight:W(c[h],u[h])}):"";if(!t.total.show||"part"!==(null!=(l=a.total)?l:"part")||!t.total.formatter||!c.some(I))return"";const g=e=>e.reduce((e,t)=>e+(I(t)?t:0),0);return d(e=>t.total.formatter(i,e),{highlight:W(g(c),g(u))})}function xe(e,t,r,n,l,i,a,s){var o,u,c;const d=e.w,g=d.globals,f=e.cfg,p=d.highlightData.active,v=i||null==(o=e._prev())?void 0:o.get("r:n"),y=n&&null!=l?t._angleAtValue(l):null;if(null==y&&!v)return;const A=d.config.plotOptions.radialBar,_=a?null:"needle"===A.shape?t.needleMotion():s&&s.run>0&&m.isBrowser()?{speed:s.run,delay:+s.animBeginArr[0]||0}:null;let w,x=1,k=y,S=1;const M=null==y;if(M){if(!_)return;w=v.ang,x=v.op,k=p&&n?t.startAngle:t._angleAtValue(d.seriesData.series[0]),S=0}else _?i?w=t.startAngle:v?(w=v.ang,x=v.op):(w=t._angleAtValue(g.dataChanged?g.previousPaths[0]:d.seriesData.series[0]),x=0):w=k;const $=g.circleGeometry,E=(null==(u=f.radialBar)?void 0:u.needle)||{},P=A.needle||{},L={};ge.forEach(e=>{var t;return L[e]=null!=(t=E[e])?t:P[e]});const D=null!=(c=E.color)?c:g.colors[0],{path:T,cx:C,cy:O}=t.needlePath({size:$.r,centerX:$.cx,centerY:$.cy,series:d.seriesData.series},L),j=new h(d),N=j.group({class:"apexcharts-gauge-needle-highlight"});M||!m.isBrowser()?N.node.setAttribute("pointer-events","none"):X(r.node,N.node),N.node.setAttribute("aria-hidden","true"),N.node.setAttribute("transform-origin",`${C} ${O}`),N.add(j.drawPath({d:T,stroke:D,strokeWidth:0,fill:D,classes:`${F} apexcharts-gauge-needle-highlight-shape`})),null!=l&&l>("number"==typeof A.max?A.max:100)&&J(N.node,"apexcharts-highlight-overflow");const I=r.node.parentNode.parentNode;I.insertBefore(N.node,I.childNodes[0]||null);const z=()=>{const e=[...I.childNodes].filter(e=>e!==N.node),t=e.findIndex(e=>{var t;return` ${null==(t=e.getAttribute)?void 0:t.call(e,"class")} `.includes(" apexcharts-radialbar-hollow ")});return!(t<0||N.node.parentNode!==I)&&(I.insertBefore(N.node,e[t+1]||null),!0)};z()||Promise.resolve().then(z);const H={d:null,ang:w,op:x,c:!p};e._targets.set("r:n",H);const R=(e,t)=>{H.ang=e,H.op=t,N.node.setAttribute("transform",`rotate(${e})`),t<1?N.node.setAttribute("opacity",String(t)):N.node.removeAttribute("opacity")},W=e=>R(w+(k-w)*e,B(x,S,e)),Y=()=>{H.run=!1,M?N.remove():R(k,S)};if(a)return R(k,0),void e._tween(e.ctx.morphTypeChange.getSpeed(),d.config.chart.animations.dynamicAnimation.speed,e=>R(k,e),Y);if(!_||w===k&&x===S)return W(1),void Y();H.run=!0,W(0);const q=_;if(q.ease){const r=performance.now(),n=l=>{if(g.isDestroyed||e._render!==t)return;const i=Math.max(0,Math.min(1,(l-r)/q.speed));W(q.ease(i)),i<1?b.requestAnimationFrame(n):Y()};b.requestAnimationFrame(n)}else N.animate(q.speed,q.delay||0).during(e=>W(e)).after(Y)}const ke="apexcharts-highlight-tile",Se="apexcharts-highlight-overflow",Me=/^url\(/i;function $e(e,t){var r,n,l;const i=e.w,a=i.globals,o=i.highlightData;if(!o)return;e._beginRender(t,"t:"),e._tmDefs.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),e._tmDefs=[];const u=e._tiles=new Map,c=o.active,d=i.seriesData.series;!function(e,t,r){const n=l=>{var i,a;const s=l.children;if(!s||!s.length){const e=null==(i=null==t?void 0:t[l._si])?void 0:i[l._di];return l.highlight=t?W(I(e)?e:null,null==(a=r[l._si])?void 0:a[l._di]):void 0,l.highlight}let o=null;if(s.forEach(e=>{const t=n(e);!t||null==t.value||t.value*(t.total||0)<0||(o=(o||0)+Math.abs(t.value))}),!t)return l.highlight=void 0;const u=e._subtreeArea(l),c=null!=o&&u?o/u:null;return l.highlight={value:o,total:u,share:c,overflow:null!=c&&c>1},l.highlight};(e.roots||[]).forEach(n)}(t,c?o.parts:null,d);const g=e._prev();if(!c&&!(null==g?void 0:g.size))return;const f=new Map;null==g||g.forEach(e=>f.set(e.ij,e)),null==(r=a.prevTreemapView)||r.querySelectorAll(`.${ke}`).forEach(e=>{e.classList.remove(ke,Se),e.removeAttribute("data:hl-share")});const p=e.cfg,v=c?null!=(n=p.fadeOpacity)?n:.2:1,b=!0===(null==(l=e.ctx.morphTypeChange)?void 0:l.isActive()),m=t.dynamicAnim,y=b||!!(a.dataChanged&&m.enabled&&a.shouldAnimate),A=b?e.ctx.morphTypeChange.getSpeed():m.speed,_=i.config.chart.foreColor;let w=!1;c&&function(e,t){const r=t._showParentTooltip;t._showParentTooltip=(n,l)=>{var i,a,s;r.call(t,n,l);const o=l.highlight,u=e.cfg.tooltip||{};if(null==(null==o?void 0:o.value)||!1===u.show||"function"==typeof(null==(a=null==(i=e.w.config.plotOptions.treemap.parents)?void 0:i.tooltip)?void 0:a.formatter))return;const c=null==(s=t._tip())?void 0:s.querySelector(".apexcharts-tooltip-text-y-value");if(!c)return;let h=`/ ${t._formatValue(o.total)}`;u.share&&o.total&&(h+=` \xb7 ${Math.round(100*o.share)}%`),c.innerHTML=`${t._formatValue(o.value)} <span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">${h}</span>`}}(e,t);let x=null;const k=t.helpers.calculateDataLabels;t.helpers.calculateDataLabels=e=>{const r=k.call(t.helpers,e),n=x=u.get(e.i+"|"+e.j);if(r&&n){const e=function(e){const t=[];return function e(r){"text"===String(r.tagName||r.nodeName).toLowerCase()&&t.push(r),Array.from(r.childNodes||[]).forEach(e)}(e),t}(r.node);n.lb=e.filter(e=>/^(#fff|#ffffff|white)$/i.test(e.getAttribute("fill")||""));const t=e[0],[,l,,i]=n.r;if(t&&i>l){const e=parseFloat(t.getAttribute("font-size"))||12;n.need=(i-parseFloat(t.getAttribute("y"))+.9*e)/(i-l)}Ee(n,_)}return r};const S=t.rotateToFitLabel;return t.rotateToFitLabel=(...e)=>{S.apply(t,e);const r=x;if(x=null,(null==r?void 0:r.lb)&&/rotate/.test(e[0].node.getAttribute("transform")||"")){const t=new h(i).getTextRects(e[2],String(e[1])).width;r.need=.5+t/2/(e[6]-e[4]),r.tone=null,Ee(r,_)}},(t,r,n,l,h)=>{var m,x,k,S;const M="t:"+h._key,$=r+"|"+n,E=null==(m=d[r])?void 0:m[n],P=y?(null==g?void 0:g.get(M))||(E?void 0:f.get($)):void 0;if(!c&&!P)return;if(Me.test(l))return void(c&&!w&&(w=!0,e._warn("fill","treemap tiles with a gradient, pattern or image fill are drawn without their parts.")));const L=c?null==(x=o.parts[r])?void 0:x[n]:null;if(!E&&!P)return;const D=I(L)&&E?L/E:null;let T=c?{s:null==D||D<0?0:Math.min(D,1),f:v,c:l}:{s:1,f:0,c:l},C=T;if(P)C={s:P.s,f:P.f,c:P.col},!E&&c&&(T=s({},C));else if(y){const e=null==(k=a.previousPaths[r])?void 0:k[n];(b||(null==(S=null==e?void 0:e.rect)?void 0:S.width)>0)&&(C="baseline"===p.enter?{s:0,f:1,c:T.c}:{s:1,f:0,c:T.c},b||!e.fill||Me.test(e.fill)||(C.c=e.fill))}const F=C.s!==T.s||C.f!==T.f||C.c!==T.c;if(!c&&!F)return;const O=i.dom.Paper.gradient("linear",e=>{for(let t=0;t<4;t++)e.stop(0,l,1)});O.from(0,1).to(0,0),e._tmDefs.push(O.node);const j=Array.from(O.node.childNodes),N=t.node;c&&(N.setAttribute("class",`${N.getAttribute("class")||""} ${ke}${null!=D&&D>1?" "+Se:""}`.trim()),N.setAttribute("data:hl-share",null==D?"":String(D)));const z={s:T.s,f:T.f,col:T.c,c:!c,ij:$,run:!1,base:l,r:h.rect,lb:null,need:.5,tone:null};e._targets.set(M,z),u.set($,z);const H=function(e,t){const r=Pe(e),n=Pe(t);return e!==t&&r&&n?e=>e>=1?t:`rgba(${[0,1,2].map(t=>Math.round(B(r[t],n[t],e))).join(",")},${+B(r[3],n[3],e).toFixed(3)})`:r=>r>=1?t:e}(C.c,T.c),R=e=>{z.ls=e.s,z.lf=e.f,z.lc=e.c,j.forEach((t,r)=>{t.setAttribute("offset",String(0===r?0:3===r?1:e.s)),t.setAttribute("stop-color",e.c),t.setAttribute("stop-opacity",String(r<2?1:e.f))}),Ee(z,_)},W=()=>{var e;z.run=!1,R(T),!c&&N.isConnected&&(N.setAttribute("fill",l),null==(e=O.node.parentNode)||e.removeChild(O.node))};if(y&&F){z.run=!0,R(C);let t=null,r=!1;const n={finish(){e._live.delete(n),c?R({s:z.ls,f:t=T.f,c:z.lc}):(r=!0,W())}};e._hold(n),O.animate(A,0).during(e=>r||R({s:B(C.s,T.s,e),f:null!=t?t:B(C.f,T.f,e),c:H(e)})).after(()=>{e._live.delete(n),r||W()})}else R(T);return O.url()}}function Ee(e,t){var r;const n=(null!=(r=e.ls)?r:e.s)>=e.need-1e-9;e.lb&&e.tone!==n&&(e.tone=n,e.lb.forEach(e=>{null==e._apxFill&&(e._apxFill=e.getAttribute("fill")),e.setAttribute("fill",n?e._apxFill:t)}))}function Pe(e){var t;const r=String(e).trim();let n=/^#([\da-f]+)$/i.exec(r);if(n){let e=n[1];return e.length<5&&(e=e.replace(/./g,"$&$&")),6!==e.length&&8!==e.length?null:[0,2,4,6].map(t=>t<e.length?parseInt(e.slice(t,t+2),16)/(6===t?255:1):1)}if(n=/^rgba?\(([^)]*)\)$/i.exec(r),!n)return null;const l=n[1].split(/[\s,/]+/).filter(Boolean).map(parseFloat);return l.length>=3&&l.every(isFinite)?[l[0],l[1],l[2],null!=(t=l[3])?t:1]:null}["prevHighlightParts","prevHighlightLabels"].forEach(e=>{-1===g.HELD.indexOf(e)&&g.HELD.push(e)});const Le="apexcharts-flip-x",De="apexcharts-flip-y",Te="apexcharts-flip-held",Ce="apexcharts-highlight-label-exit",Fe="b:",Oe={f:1,o:0},je={f:1,o:1},Ne={f:0,o:1};function Ie(e){if(!e)return!1;if(Array.isArray(e.highlightData))return!0;const t=e.data;if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++){const r=t[e];if(z(r)){if("highlight"in r)return!0}else if(null!=r)return!1}return!1}function Be(e,t,r){return z(e)&&"highlight"in e?e.highlight:t?t[r]:null}function ze(e,t){let r=1/0,n=-1/0;return String(e).replace(/([MLQCT])([^MLQCTZz]*)/g,(e,l,i)=>{const a=i.trim().split(/[\s,]+/).filter(Boolean).map(Number);for(let e=t;e<a.length;e+=2)a[e]<r&&(r=a[e]),a[e]>n&&(n=a[e]);return""}),[r,n]}function He(e,t){let r=-1,n=1/0;return e.forEach((e,l)=>{null!=e&&Math.abs(e-t)<n&&(n=Math.abs(e-t),r=l)}),r}function Re(e){const t=e.previousElementSibling;return t&&"rect"===t.tagName.toLowerCase()?[t,e]:[e]}function We(e,t){return null!=t&&0!==t&&e/t>1}function Ye(e,t){const r=z(e)?e.y:Array.isArray(e)?e[1]:e;return"number"==typeof r?r:null!=t?t:null}function qe(e,t,r){return e?e.replace(/([MLQCT])([^MLQCTZz]*)/g,(e,r,n)=>{const l=n.trim().split(/[\s,]+/).filter(Boolean).map(Number);for(let e=0;e+1<l.length;e+=2)l[e]=t(l[e]);return`${r} ${l.join(" ")} `}):e}c.default.registerFeatures({highlightFilter:class{constructor(e,t){var r,n,l,i;this.w=e,this.ctx=t,this._targets=new Map,this._render=null,this._seen=new Set,this._seriesEls=new Map,this._cu=null,this._stk=new Map,this._stkPrev=[],this._br=null,this._held=!1,this._warned=new Set,this._rows=[],this._level=null,this._live=new Set,this._sig="",this._drawnSig="",this._ride=null,this._tiles=null,this._tmDefs=[],this._tipUser=null==(n=null==(r=t.opts)?void 0:r.tooltip)?void 0:n.enabled,this._tipOn=!1,this._ind=void 0,this._lane=null,this._onRender=()=>this.afterRender(),null==(l=t.events)||l.addEventListener("mounted",this._onRender),null==(i=t.events)||i.addEventListener("updated",this._onRender)}get cfg(){return this.w.config.highlightFilter||{}}isActive(){var e;return!!(null==(e=this.w.highlightData)?void 0:e.active)}canDrawParts(){const e=this.w,t=e.config,r=t.chart.type;return e.globals.axisCharts?!(e.globals.comboCharts||"bar"!==r&&"line"!==r&&"area"!==r&&"treemap"!==r||e.rangeData.seriesRange.length||"histogram"===t.chart.requestedType):ie.indexOf(r)>-1||"radialBar"===r}callerCarriesParts(){const e=this.w;return e.globals.axisCharts?(e.config.series||[]).some(Ie):Array.isArray(this.cfg.data)||K(e.config.series||[]).some(e=>"highlight"in e)}valueAt(e,t){var r,n,l;const i=null==(l=null==(n=null==(r=this.w.highlightData)?void 0:r.parts)?void 0:n[e])?void 0:l[this.w.globals.axisCharts?t:0];return null==i?null:i}_warn(e,t){this._warned.has(e)||(this._warned.add(e),console.warn("ApexCharts highlightFilter: "+t))}parse(){var e,t,r;const n=this.w,l=n.config,i=this.cfg,a=l.series||[],s=n.seriesData.series||[];if(!n.globals.axisCharts)return this._parseCircle();const o=!!l.chart.stacked,u=l.chart.type,c="bar"===u,h=function(e,t){const r=e.w.globals;if("treemap"!==t||!r.treemapRoots)return!1;const n=r.treemapRawSeries||[];n.some(e=>Array.isArray(null==e?void 0:e.highlightData))&&e._warn("nested","on a nested treemap put the part on each leaf as { x, y, highlight }; highlightData is ignored.");const l=e=>z(e)&&Array.isArray(e.children)&&e.children.length>0&&("highlight"in e||e.children.some(l));return n.some(e=>((null==e?void 0:e.data)||[]).some(l))&&e._warn("parent","a parent's highlight is ignored: parents add up their leaves' parts."),!0}(this,u),d=re(n);let g=!1;for(let t=0;t<a.length;t++)if(h?Q({data:null==(e=a[t])?void 0:e.data}):Ie(a[t])||d&&ne(n,t)){g=!0;break}let f=n.globals.axisCharts&&this.canDrawParts();g&&!f&&this._unsupported();const p=(n.globals.seriesYAxisMap||[]).map((e,t)=>e&&e.length?t:-1).filter(e=>e>-1);g&&f&&o&&(p.length>1||p.some(e=>{var t;return null==(t=l.yaxis[e])?void 0:t.logarithmic}))&&(f=!1,this._warn("stack","parts are not drawn on a stacked chart with more than one y axis or a logarithmic y axis."));const v=!(!1===i.enabled||!g||!f);if(!v)return void this._inactive(f);const b=[];let m=!1,y=!1;const A=n.globals;for(let e=0;e<s.length;e++){const t=a[e]||{},r=Array.isArray(t.data)?t.data:[],l=!h&&Array.isArray(t.highlightData),i=h?null:l?t.highlightData:d?ne(n,e):null,o=A.collapsedSeriesIndices.indexOf(e)>-1||A.ancillaryCollapsedSeriesIndices.indexOf(e)>-1;i&&!o&&i.length!==r.length&&(l?m=!0:y=!0);const u=[],c=s[e]?s[e].length:0;for(let e=0;e<c;e++){const t=Be(r[e],i,e);u.push(I(t)?o?0:t:null)}b.push(u)}v&&m&&this._warn("length","highlightData and data differ in length; the extra entries are ignored and the missing ones read as null."),v&&y&&this._warn("plugged-length","a plugin registered highlight parts that do not line up with the series data; the extra entries are ignored and the missing ones read as null.");const _=a.some(e=>Array.isArray(null==e?void 0:e.highlightData));_&&(null==(t=l.chart.dataReducer)?void 0:t.enabled)&&this._warn("reducer","highlightData cannot follow chart.dataReducer; put the part on each point as { x, y, highlight } instead."),_&&(null==(r=l.chart.streaming)?void 0:r.enabled)&&this._warn("stream","highlightData cannot follow chart.streaming; put the part on each point as { x, y, highlight } instead.");const w=v&&"clamp"!==i.axis&&"treemap"!==u&&!l.plotOptions.bar.isFunnel&&!(o&&"100%"===l.chart.stackType);let x=null;if(o&&c)x=(e,t)=>this._barKey(e,t);else if(o){const e=n.seriesData.seriesX;x=(t,r)=>{var l;return String(n.axisFlags.isXNumeric?null==(l=e[t])?void 0:l[r]:r)}}const k=w?this._runningExt(b,x,c):null;this._publish(b,k)}_unsupported(){const e=this.w.config.chart;this._warn("type",`parts are not drawn on this chart (type "${e.requestedType||e.type}"). Supported: column, bar, line and area (stacked too), funnel, pie, donut, polarArea, radialBar, gauge and treemap.`)}_inactive(e){e||(this._targets=new Map),this.w.highlightData={active:!1,parts:[],ext:null,capture:()=>this.capture()},this._sig="",this._rows=[]}_parseCircle(){const e=this.w,t=e.config,r=this.cfg,n=e.globals,l=(e.seriesData.series||[]).length,i=K(t.series);let a=i.some(e=>"highlight"in e);a&&i.length!==l&&(this._warn("points","per-point highlight values do not line up with the slices; use highlightFilter.data instead."),a=!1);let s=Array.isArray(r.data)?r.data:null;s&&s.length!==l&&(this._warn("length",`highlightFilter.data has ${s.length} values for ${l} slices; it is ignored until they match.`),s=null),s&&s.some(e=>Array.isArray(e))&&(s.some(e=>Array.isArray(e)&&1!==e.length)?(this._warn("rows","highlightFilter.data takes one value per slice (or ring); a row of several values is ignored."),s=null):s=s.map(e=>Array.isArray(e)?e[0]:e));const o=t.chart.type,u=ie.indexOf(o)>-1||"radialBar"===o,c=a||!!s;if(c&&!u&&this._unsupported(),!1===r.enabled||!c||!u)return void this._inactive(u);const h=[];for(let e=0;e<l;e++){const t=a?i[e]:null,r=t&&"highlight"in t?t.highlight:s?s[e]:null;h.push([I(r)?n.collapsedSeriesIndices.indexOf(e)>-1?0:r:null])}this._publish(h,null)}_publish(e,t){const r=this.w.globals;this.w.highlightData={active:!0,parts:e,ext:t,capture:()=>this.capture()};const n=this._rows,l=[];for(let t=0;t<e.length;t++){const i=r.collapsedSeriesIndices.indexOf(t)>-1||r.ancillaryCollapsedSeriesIndices.indexOf(t)>-1;l.push(i&&t<n.length?n[t]:e[t].join(","))}this._rows=l,this._sig="#"+l.join("|")}capture(){const e=this.w.globals,t=new Map;this._targets.forEach((e,r)=>{var n,l,i,a,u,c,h;if(e.c&&!e.run)return;const d=e.n,g=!!(null==d?void 0:d.isConnected);t.set(r,o(s({},e),{d:g&&d.getAttribute("d")||e.d,a:(null==(n=e.m)?void 0:n.isConnected)&&e.m.getAttribute("d")||e.a,flip:g?d.classList.contains(De)||d.classList.contains(Le):e.flip,f:null!=(l=e.lf)?l:e.f,o:null!=(i=e.lo)?i:e.o,s:null!=(a=e.ls)?a:e.s,col:null!=(u=e.lc)?u:e.col,al:null!=(c=e.la)?c:e.al,k:null!=(h=e.lk)?h:e.k,n:null,m:null,g:null,lb:null}))}),e.prevHighlightParts=t,e.prevHighlightLabels=this._captureLabels(),this._targets=new Map}_prev(){return this.w.globals.prevHighlightParts}_animates(){const e=this.ctx.renderer;return(!e||!e.kind||"svg"===e.kind)&&this._animatesUpdate()&&!!this.w.globals.shouldAnimate}_animatesUpdate(){const e=this.w,t=e.config.chart.animations;return!(!(m.isBrowser()&&t.enabled&&t.dynamicAnimation.enabled&&e.globals.dataChanged)||p())}_tween(e,t,r,n,l,i){const a=this.w,s=l||function(e){var t,r;const n=e.config.chart.animations;return y(null!=(r=null==(t=n.dynamicAnimation)?void 0:t.easing)?r:n.easing)}(a),o=this._live;let u=!1;const c={finish(){u||(u=!0,o.delete(c),r(1),n&&n())}};this._hold(c);const h=performance.now()+e,d=e=>{if(u)return;if(a.globals.isDestroyed)return u=!0,void o.delete(c);const n=Math.max(0,Math.min(1,(e-h)/t));r(s(n)),n<1?b.requestAnimationFrame(d):c.finish()};r(0),i?i.animate(t,e).during(e=>u||r(e)).after(()=>c.finish()):b.requestAnimationFrame(d)}_hold(e){const t=this._live,r=this.w.globals;t.add(e),r.highlightTween={finish:()=>Array.from(t).forEach(e=>e.finish())}}bar(e,t){var r,n,l,i,a,o,u,c;const h=this.w,d=h.highlightData;if(!d)return;this._render!==e&&this._beginRender(e,Fe);const g=this._prev(),f=d.active;if(!f&&!(null==g?void 0:g.size))return;const{j:p,realIndex:v}=t,b=Fe+`${v}::${E(h,v,p)}`;this._seen.add(b);const m=null==g?void 0:g.get(b),y=f?null==(r=d.parts[v])?void 0:r[p]:null;if(!f&&!m)return;const A=this.cfg,_=f?null!=(n=A.fadeOpacity)?n:.2:1,w=null==(l=h.seriesData.series[v])?void 0:l[p],x=!!h.config.chart.stacked,k=f&&x?this._stackGeometry(e,t,y,w,m):null==y?null:this._barGeometry(e,t,y,w),S={paint:(r,n)=>this._paintBar(t,r,n,{key:b,prev:m,geo:k,fadeTo:_,active:f,whole:w,bar:x?e:null})};if(f){const e={};"part"===(null!=(a=null==(i=A.dataLabels)?void 0:i.value)?a:"part")&&Object.assign(e,null==y?{hide:!0}:s({val:null!=(o=null==k?void 0:k.val)?o:y},null==k?void 0:k.label)),x&&"part"===(null!=(c=null==(u=A.dataLabels)?void 0:u.total)?c:"part")&&(e.total=k.total(null!=e.val?e.val<0:w<0)),S.label=e}return S}_beginRender(e,t){var r;this._render=e,this._targets=new Map,this._seen=new Set,this._seriesEls=new Map,this._cu=new d(this.w),this._stk=new Map,this._stkPrev=[],this._br=null,this._held=!1,t===Fe&&!this.w.config.chart.stacked&&(null==(r=this._prev())?void 0:r.size)&&Promise.resolve().then(()=>this._orphans())}_orphans(){const e=this.w,t=this._prev();t&&!e.globals.isDestroyed&&this._animates()&&t.forEach((t,r)=>{var n;if(this._seen.has(r)||0!==r.indexOf(Fe))return;const l=r.slice(2),i=this._seriesEls.get(l.slice(0,l.indexOf("::")));if(!i)return;const a=Array.from(i.querySelectorAll(".apexcharts-bar-ghost")).find(e=>e.getAttribute("data:ghostKey")===l);if(!a)return;if(a.setAttribute("fill-opacity",String(t.f)),!t.d)return;const s=new h(e,this.ctx).drawPath({d:t.d,stroke:"none",strokeWidth:0,fill:R(a.getAttribute("fill"))[0],fillOpacity:null!=(n=t.al)?n:1,classes:`${F} apexcharts-highlight-ghost`}).node;s.setAttribute("pointer-events","none"),s.setAttribute("clip-path",a.getAttribute("clip-path")||""),a.after(s);const o=a.style.transformOrigin||"",u=/^(left|right)/.test(o),c=parseFloat(a.getAttribute("data:ghostEdge")||""),[d]=ze(t.d,u?0:1),g=s.style;g.transformBox="fill-box",g.transformOrigin=isFinite(c)?u?c-d+"px 50%":`50% ${c-d}px`:o;const f=()=>{a.parentNode&&!e.globals.isDestroyed?(g.transform=a.style.transform,g.opacity=a.style.opacity,b.requestAnimationFrame(f)):s.remove()};f()})}_barGeometry(e,t,r,n){const l=this.w,{j:i,realIndex:a,translationsIndex:s,paths:o}=t,u=e.barHelpers,c=u.getStrokeWidth(t.i,i,a);if(e.isFunnel){const e=n?Math.min(Math.abs(r/n),1):0,t=l.layout.gridWidth/2;return{pathTo:qe(o.pathTo,r=>t+(r-t)*e),base:qe(o.pathTo,()=>t),overflow:!1}}const h=l.config.yaxis[l.globals.seriesYAxisReverseMap[a]],d=(null==h?void 0:h.logarithmic)&&!l.globals.invalidLogScale&&this._cu?Math.max(0,this._cu.getLogValAtSeriesIndex(r,a)):r;if(e.isHorizontal){const e=t.zeroW,l=u.getXForValue(d,t.zeroW),s=this._rect(u,{a:o.barYPosition,len:o.barHeight,v1:e,v2:l,strokeWidth:c,realIndex:a,j:i,dir:d>=0?1:-1,horizontal:!0});return{pathTo:s.pathTo,base:s.base,overflow:We(r,n),label:{x:l,barWidth:Math.abs(l-e)}}}const g=t.zeroH,f=u.getYForValue(d,t.zeroH,s),p=this._rect(u,{a:o.barXPosition,len:o.barWidth,v1:g,v2:f,strokeWidth:c,realIndex:a,j:i,dir:d>=0?1:-1,horizontal:!1});return{pathTo:p.pathTo,base:p.base,overflow:We(r,n),label:{y:f,barHeight:Math.abs(f-g)}}}_rect(e,t){const r=((Array.isArray(t.strokeWidth)?t.strokeWidth[t.realIndex]:t.strokeWidth)||0)/2,n=t.v2-t.v1;if(Math.abs(n)<2*r){const l=t.v1+n/2,i=r*t.dir*(e.barCtx.isReversed?-1:1)*(t.horizontal?-1:1);t=o(s({},t),{v1:l+i,v2:l-i})}return e.barRect(t)}_stackGeometry(e,t,r,n,l){var i,a;const s=this.w,{j:o,realIndex:u,translationsIndex:c,paths:h}=t,d=e.barHelpers,g=e.isHorizontal,p=g?t.zeroW:t.zeroH;this._br||(this._br=d.createBorderRadiusArr(((null==(i=s.highlightData)?void 0:i.parts)||[]).map(e=>e.map(e=>null!=e?e:0))),f.isSafari()&&(this._br=this._br.map(e=>e.map(()=>"none"))));const v=this._br,b=this._barKey(u,o);let m=this._stk.get(b);m||(m={p:p,n:p,raw:0,any:!1},this._stk.set(b,m));const y="100%"===s.config.chart.stackType,A=s.seriesData.stackedSeriesTotals[o],_=null==r?null:y?A?100*r/A:0:r,w=null!=_?_:0,x=null!=_?_<0:null!=(null==l?void 0:l.s)?l.s<0:n<0,k=(e,t)=>g?d.getXForValue(e,t):d.getYForValue(e,t,c);let S=x?m.n:m.p,M=k(w,S);x?m.n=M:m.p=M,null!=r&&(m.raw+=r,m.any=!0);const $=m.raw,E=m.any,P={p:m.p,n:m.n};let L=!1;if(y){const e=k(100,p),t=k(-100,p),r=Math.min(e,t),n=Math.max(e,t),l=e=>Math.min(n,Math.max(r,e));L=l(M)!==M,S=l(S),M=l(M),P.p=l(P.p),P.n=l(P.n)}const D=d.arrBorderRadius;let T;d.arrBorderRadius=v;try{T=this._rect(d,{a:g?h.barYPosition:h.barXPosition,len:g?s.globals.barHeight:s.globals.barWidth,v1:S,v2:M,strokeWidth:g?d.getStrokeWidth(t.i,o,u):e.strokeWidth,realIndex:u,j:o,dir:x?-1:1,horizontal:g})}finally{d.arrBorderRadius=D}return{pathTo:null==r?null:T.pathTo,square:T.squarePathTo,base:T.base,flip:null!=r&&e.cornerFlip(null==(a=v[u])?void 0:a[o],w),s:x?-1:1,overflow:L,val:_,label:g?{x:M,barWidth:Math.abs(M-S)}:{y:M,barHeight:Math.abs(M-S)},total:e=>!!E&&{val:$,edge:e?P.n:P.p}}}_barKey(e,t){var r;const n=this.w;return n.labelData.seriesGroupIndex[e]+"|"+(!n.config.plotOptions.bar.horizontal&&n.axisFlags.isXNumeric?null==(r=n.seriesData.seriesX[e])?void 0:r[t]:t)}line(e,t,r,n,l,i,a){var u,c;const h=this.w,d=h.highlightData;if(!d||"line"!==t&&"area"!==t)return;this._render!==e&&this._beginRender(e,"l:");const g=this._prev(),f=d.active;if(!f&&!(null==g?void 0:g.size))return;const p="l:"+l,v=null==g?void 0:g.get(p);if(!f&&!v)return;const b=h.globals,m=this._animates(),A="area"===t,_=f&&d.parts[l]||[],w=_.some(e=>null!=e),x=f&&e._shapeOnly,k=(e,t)=>e&&(e._cmd?e._cmd[t]:e.node.getAttribute(t)),S=e.marks||[],M=A?S.find(e=>"none"!==k(e,"fill")):null,$=S.find(e=>e!==M),[E,P]=M&&h.config.chart.stacked?R(k(M,"fill")):[M&&k(M,"fill"),1],L=S.concat(A?S.filter(e=>e!==M&&!e._cmd).map(e=>e.node.nextElementSibling).filter(e=>/#forecastMask/.test((null==e?void 0:e.getAttribute("clip-path"))||"")).map(e=>({node:e})):[]),T=f&&!x&&(w||h.config.chart.stacked)?this._lineBuild(e,t,r,n,l,i,this._partRow(_,n,l)):null;let F=x?{d:a.linePaths.join(" "),a:a.areaPaths.join(" ")}:w?{d:T.linePaths.join(" "),a:T.areaPaths.join(" "),num:T.numericXY}:null;const O=!F&&!!(null==v?void 0:v.d)&&m,j=f&&m&&(O||F&&!(null==v?void 0:v.d)&&(v||"baseline"===this.cfg.enter))?this._lineBase(e,t,r,n,l,i,w?_:null):null;T&&h.config.chart.stacked&&(this._swap(e,()=>e._recordStackTops(l,T.yArrj)),this._stkPrev.push(T.yArrj)),O&&(F=f?j:{d:a.linePaths.join(" "),a:a.areaPaths.join(" ")});const N=O&&!f;let I=F;const z={};let H=null,W=!1;if(F&&m)if(null==v?void 0:v.d){if(I={d:v.d,a:v.a||F.a},!O)if(H=function(e,t,r,n){var l;const i=e.globals,a=i.prevStreamFrame;if(!a||!i.dataChanged||!(null==(l=e.axisFlags)?void 0:l.isXNumeric))return null;const s=a.seriesX[t],o=a.seriesY[t],u=e.seriesData.seriesX[t],c=e.seriesData.series[t];if(!(s&&o&&u&&c))return null;if(s.length<3||u.length<3)return null;let h=-1;for(let e=0;e<s.length;e++)if(s[e]===u[0]){h=e;break}if(-1===h)return null;const d=Math.min(s.length-h,u.length);if(d<2)return null;const g=u.length-d;if(0===h&&0===g)return null;for(let e=0;e<d;e++){if(s[h+e]!==u[e])return null;const t=o[h+e],r=c[e];if(t!==r&&(null!=t||null!=r))return null}const f=a.xPixels[t],p=a.yPixels[t];if(!f||!p)return null;let v=-1,b=-1;for(let e=0;e<d;e++)null!=f[h+e]&&null!=p[h+e]&&null!=r[e]&&null!=n[e]&&(-1===v&&(v=e),b=e);if(-1===v||b<=v)return null;const m=r[v],y=r[b],A=f[h+v],_=f[h+b];if(Math.abs(y-m)<1e-6)return null;const w=(_-A)/(y-m),x=A-w*m;if(!isFinite(w)||!isFinite(x))return null;if(Math.abs(w-1)>.02)return null;if(Math.abs(x)<.5)return null;let k=v,S=v;for(let e=v;e<=b;e++){const t=n[e];null!=t&&null!=p[h+e]&&(t<n[k]&&(k=e),t>n[S]&&(S=e))}let M=1,$=0;const E=n[k],P=n[S];if(Math.abs(P-E)>1e-6?(M=(p[h+S]-p[h+k])/(P-E),$=p[h+k]-M*E):$=p[h+k]-E,!isFinite(M)||!isFinite($)||M<.2||M>5)return null;const L=Math.floor((v+b)/2);if(L!==v&&L!==b&&null!=r[L]&&null!=f[h+L]){const e=w*r[L]+x;if(Math.abs(e-f[h+L])>1.5)return null;if(null!=n[L]&&null!=p[h+L]){const e=M*n[L]+$;if(Math.abs(e-p[h+L])>1.5)return null}}return i.streamScrolled=!0,{ax:w,bx:x,ay:M,by:$}}(h,l,a.xArrj,a.yArrj),H)I={d:C(F.d,H),a:C(F.a,H)};else{const e=T||a,r=D(h,{type:t,realIndex:l,pathFromLine:v.d,pathFromArea:v.a||"",linePaths:e.linePaths,areaPaths:e.areaPaths});(null==r?void 0:r.line)&&([I.d,z.d]=[r.line.from,r.line.toInterp]),(null==r?void 0:r.area)&&([I.a,z.a]=[r.area.from,r.area.toInterp])}}else j?I=j:(W=!0,I={d:(null==$?void 0:$.node.getAttribute("pathFrom"))||F.d,a:(null==M?void 0:M.node.getAttribute("pathFrom"))||F.a});let Y=null,q=null,X=null;if(F){const r=this._partGroup(e.elSeries,"apexcharts-line-highlight"),i=F.num,a={i:n,j:"h",realIndex:l,delay:n,speed:h.config.chart.animations.dynamicAnimation.speed,cls:`apexcharts-${t} apexcharts-line-highlight-part`,chartType:t,clip:`url(#gridRectMask${b.cuid})`,scroll:!!H};if(M&&(Y=this._emitPart(r,o(s({},a),{from:I.a,to:F.a,interp:z.a,paint:E,num:i&&{xs:i.xs,ys:i.ys,closeY:i.areaCloseY}}))),$){const t=o(s({},a),{from:I.d,to:F.d,interp:z.d,paint:"none",stroke:k($,"stroke"),width:e.strokeWidth,num:i&&{xs:i.xs,ys:i.ys}});q=this._emitPart(r,t),null==q||q.attr("fill-rule","evenodd");const n=!$._cmd&&$.node.getAttribute("clip-path");if(q&&n&&n.indexOf("nonForecast")>-1){const e=h.config.forecastDataPoints;q.attr("clip-path",n),X=this._emitPart(r,o(s({},t),{j:"hf",clip:`url(#forecastMask${b.cuid})`})),null==X||X.attr({"fill-rule":"evenodd","stroke-dasharray":e.dashArray,"stroke-width":e.strokeWidth||void 0})}}const u=this.ctx.renderer;u&&u.kind&&"svg"!==u.kind||!h.config.chart.animations.enabled||b.resized||b.dataChanged||[q,A&&$].forEach(e=>{const t=e&&e.node.getAttribute("stroke-dasharray");!e||t&&"0"!==t||e.node.setAttribute("stroke-dasharray","none")})}const G={d:null,a:null,f:1,o:f?1:0,n:O?null==q?void 0:q.node:null,m:O?null==Y?void 0:Y.node:null,c:!f};this._targets.set(p,G);const V=W?P:(null==v?void 0:v.d)&&null!=(u=v.al)?u:1,J=N?P:1;G.al=J,this._fadeLine(t,L,W?Ne:v?{f:v.f,o:null!=(c=v.o)?c:0}:Oe,N?Ne:f?je:Oe,{width:e.strokeWidth,also:Y&&(V<1||J<1)?e=>{const t=B(V,J,e);G.la=t,Y.node.setAttribute("fill-opacity",String(t))}:void 0,force:!!Y&&V!==J,land:N?Oe:void 0,done:O?()=>{null==q||q.remove(),null==X||X.remove(),null==Y||Y.remove()}:void 0,rec:G,ease:H?y("linear"):void 0}),F&&!O&&Object.assign(G,{d:F.d,a:F.a,n:null==q?void 0:q.node,m:null==Y?void 0:Y.node}),this._lineLabels(e,t,n,l,_,T,a)}_partRow(e,t,r){const n=this.w,l=this._cu,i=n.config.yaxis[n.globals.seriesYAxisReverseMap[r]],a=(null==i?void 0:i.logarithmic)&&!n.globals.invalidLogScale?e.map(e=>l.getLogValAtSeriesIndex(e,r)):e.slice(),s=n.config.fill.type,o=a.length-1;return"gradient"!==s&&"gradient"!==s[t]||null==a[o]||!a.every(e=>e===a[0])||(a[o]+=1e-6),a}_lineBuild(e,t,r,n,l,i,a){const s=this.w.globals.pointsArray,o=s[l],u=o?o.length:0,c=[e._shapeOnly,e.appendPathFrom],h=r.slice();h[n]=a,e._shapeOnly=!0;try{const r=this._swap(e,()=>e._buildSeriesPaths(t,h,n,l,i));return r.S=h,r}finally{[e._shapeOnly,e.appendPathFrom]=c,o?o.length=u:delete s[l]}}_swap(e,t){if(!this.w.config.chart.stacked)return t();const r=[e.prevSeriesYByX,e.prevSeriesY];e.prevSeriesYByX=this._stk,e.prevSeriesY=this._stkPrev;try{return t()}finally{[e.prevSeriesYByX,e.prevSeriesY]=r}}_lineBase(e,t,r,n,l,i,a){const s=(a||r[n]).map(e=>null==e?null:0),o=this._lineBuild(e,t,r,n,l,i,s);return{d:o.linePaths.join(" "),a:o.areaPaths.join(" "),num:o.numericXY}}_fadeLine(e,t,r,n,l){var i,a,s,o,u,c,h;const d=this.cfg,g=null!=(i=d.fadeOpacity)?i:.2,f=null!=(s=null==(a=d.outline)?void 0:a.width)?s:1,p=null!=(u=null==(o=d.outline)?void 0:o.opacity)?u:1,v=null!=(h=null==(c=d.line)?void 0:c.dashArray)?h:4,b=l.rec,m=["fill-opacity","stroke-opacity","stroke-width","stroke-dasharray"],y=t.map(t=>{var r;const n=t.node,l=m.map(e=>n.getAttribute(e)),i=parseFloat(null!=(r=l[0])?r:"1");return{node:n,own:l,k:isFinite(i)?i:1,fill:"area"===e&&"none"!==(t._cmd?t._cmd.fill:n.getAttribute("fill"))}}),A=(t,r)=>{b.lf=t,b.lo=r,y.forEach(({node:n,own:i,k:a,fill:s})=>{t>=1&&r<=0?m.forEach((e,t)=>null==i[t]?n.removeAttribute(e):n.setAttribute(e,i[t])):s?n.setAttribute("fill-opacity",String(a*t*B(1,g,r))):"area"===e?(n.setAttribute("stroke-opacity",String(t*B(1,p,r))),n.setAttribute("stroke-width",String(B(l.width,f,r)))):(n.setAttribute("stroke-opacity",String(t)),n.setAttribute("stroke-dasharray",r<1?`${v} ${v*r}`:String(v)))})},_=e=>{A(B(r.f,n.f,e),B(r.o,n.o,e)),l.also&&l.also(e)},w=()=>{b.run=!1,l.land&&A(l.land.f,l.land.o),l.done&&l.done()};this._animates()&&(r.f!==n.f||r.o!==n.o||l.done||l.force)?(b.run=!0,this._tween(0,this.w.config.chart.animations.dynamicAnimation.speed,_,w,l.ease)):(_(1),w())}_lineLabels(e,t,r,n,l,i,a){var s,o,u,c;const h=this.w,d=h.globals,g=e.elDataLabelsWrap;if(!h.config.dataLabels.enabled||!(null==g?void 0:g.node)||e._shapeOnly)return;const f=(null==(s=h.highlightData)?void 0:s.active)&&"part"===(null!=(u=null==(o=this.cfg.dataLabels)?void 0:o.value)?u:"part");if(f){const a=g.node;for(;a.firstChild;)a.removeChild(a.firstChild);const s=d.dataLabelsRects;if(s[n]=[],d.lastDrawnDataLabelsIndexes[n]=[],i&&l.some(e=>null!=e)){const a=new v(h,this.ctx);for(let o=0;o<i.xArrj.length-1;o++){const u=e.lineHelpers.calculatePoints({series:i.S,x:i.xArrj[o+1],y:i.yArrj[o+1],realIndex:n,i:r,j:o,prevY:i.yArrj[0]});u.x.forEach((e,r)=>{if(null==l[o?o+1:r])return void s[n].push({x:NaN,y:NaN,width:0,height:0});const i=a.drawDataLabel({type:t,pos:{x:o?[e]:r?[NaN,e]:[e,NaN],y:u.y},i:n,j:o?o+1:1,row:l});i&&g.add(i)})}}}const p=f?null==i?void 0:i.xArrj:a.xArrj,b=f?null==i?void 0:i.yArrj:a.yArrj;if(!this._animates()||!p||L(h,n))return;const m=d.riseLabels;if(null==m?void 0:m.has(n)){const e=new Map(m);e.delete(n),d.riseLabels=e.size?e:null}const y=d.prevStreamFrame,A=null==(c=d.prevHighlightLabels)?void 0:c.get(n);Promise.resolve().then(()=>{var e,t;return this._rideLabels(g.node,p,b,A,[null==(e=null==y?void 0:y.xPixels)?void 0:e[n],null==(t=null==y?void 0:y.yPixels)?void 0:t[n]])})}_captureLabels(){const e=this.w,t=e.config.chart.type,r=e.dom.baseEl,n=ie.indexOf(t)>-1;if(!e.config.dataLabels.enabled||"line"!==t&&"area"!==t&&!n||!r||!m.isBrowser())return null;const l=new Map;if(n){const e=new Map;return r.querySelectorAll(".apexcharts-pie-label").forEach(t=>{const[r,n]=Y(t);e.set(Number(t.parentNode.getAttribute("data:slice")),{x:r,y:n})}),l.set(-1,e),l}return r.querySelectorAll(".apexcharts-datalabels[data\\:realIndex]").forEach(t=>{const r=Number(t.getAttribute("data:realIndex")),n=e.globals.seriesXvalues[r]||[],i=new Map;t.querySelectorAll(`text.apexcharts-datalabel, text.${Ce}`).forEach(e=>{var t;const r=He(n,parseFloat(e.getAttribute("cx")));if(r<0)return;const[l,a]=Y(e);i.set(r,{x:l,y:a,o:parseFloat(null!=(t=e.getAttribute("opacity"))?t:"1"),els:Re(e)})}),l.set(r,i)}),l}_rideLabels(e,t,r,n,l){const i=this.w;if(i.globals.isDestroyed||!e.isConnected)return;const[a,s]=l,o=[],u=new Set,c=e=>"number"==typeof e&&isFinite(e);if(e.querySelectorAll("text.apexcharts-datalabel").forEach(e=>{const l=He(t,parseFloat(e.getAttribute("cx")));if(l<0)return;const[i,h]=Y(e),d=null==n?void 0:n.get(l);let g=0,f=0,p=0;d?(u.add(l),g=d.x-i,f=d.y-h,p=d.o):!(null==n?void 0:n.size)&&[null==a?void 0:a[l],null==s?void 0:s[l],t[l],r[l]].every(c)&&(g=a[l]-t[l],f=s[l]-r[l]),(p<1||Math.abs(g)>.01||Math.abs(f)>.01)&&o.push({els:Re(e),dx:g,dy:f,o:p,to:1})}),null==n||n.forEach((t,r)=>{if(u.has(r))return;const n=t.els.map(t=>{const r=t.cloneNode(!0);return r.setAttribute("class",Ce),r.setAttribute("pointer-events","none"),r.removeAttribute("transform"),e.appendChild(r),r}),[l,i]=Y(n[n.length-1]);o.push({els:n,dx:t.x-l,dy:t.y-i,o:t.o,to:0,out:!0})}),!o.length)return;o.forEach(e=>{e.bases=e.els.map(e=>e.getAttribute("transform")||""),e.ops=e.els.map(t=>{var r;return parseFloat(null!=(r=t.getAttribute("opacity"))?r:"1")/(e.out&&e.o>0?e.o:1)})});this._tween(0,i.config.chart.animations.dynamicAnimation.speed,e=>o.forEach(({els:t,dx:r,dy:n,o:l,to:i,out:a,bases:s,ops:o})=>t.forEach((t,u)=>{const c=s[u],h=a?1:1-e;h?t.setAttribute("transform",`translate(${r*h} ${n*h}) ${c}`.trim()):c?t.setAttribute("transform",c):t.removeAttribute("transform");const d=B(l,i,e),g=o[u];d>=1&&g>=1?t.removeAttribute("opacity"):t.setAttribute("opacity",String(g*d))})),()=>o.forEach(e=>e.out&&e.els.forEach(e=>e.remove())))}_paintBar(e,t,r,n){var l,i,a,s,o,u,c,d,g,f;const p=this.w,v=this.cfg,b=this._animates(),{key:m,prev:y,geo:A,fadeTo:_,active:w,bar:x}=n,k=r.elSeries;this._seriesEls.set(String(e.realIndex),k.node);let S=(null==A?void 0:A.pathTo)||null;const M=!S&&!!(null==y?void 0:y.d)&&b;M&&(S=this._exitTo(y,w,r.pathTo,null==A?void 0:A.base));const $=S&&!M?this._from(y,null==A?void 0:A.base,r.pathFrom,!!x):null;let E=$?$.d:(null==y?void 0:y.d)||null;const P=M&&!w;let L="apexcharts-bar-highlight-part",D=!1,T=null;if(x&&S){if(E&&E!==S){const e=x._pathToInterp;x._pathToInterp=null;const t=x.cornerMorph(E,S,M?void 0:A.square);t!==S&&(E=t,T=x._pathToInterp),x._pathToInterp=e}const e=x.isHorizontal?Le:De,r=t.node.classList.contains(e);D=M?w?!!y.flip:r:A.flip;const n=(null==y?void 0:y.d)?!!y.flip:!!(null==$?void 0:$.cover)&&r;(D||b&&n)&&(L+=" "+e),!D&&b&&n&&(L+=" "+Te,this._settleHeld(x))}const C="string"==typeof r.fill&&"none"!==r.fill&&r.fill.indexOf("url")<0?r.fill:p.globals.colors[p.config.plotOptions.bar.distributed?e.j:e.realIndex],[I,z]=R(r.fill&&"none"!==r.fill?r.fill:C),W=e.j>0&&r.elBarShadows?r.elBarShadows.node.lastElementChild:null,Y=y?y.f:1,q=this._partGroup(k,"apexcharts-bar-highlight"),X=S?this._emitPart(q,{i:e.i,j:e.j,realIndex:e.realIndex,from:E||S,to:S,interp:T,paint:I,delay:r.delay,speed:r.speed,cls:L,chartType:"bar",clip:`url(#gridRectBarMask${p.globals.cuid})`}):null,G=H(t.node),V=(null==$?void 0:$.cover)&&b?z:(null==y?void 0:y.d)&&null!=(l=y.al)?l:1,J=P?z:1,Z=n.whole||(null==y?void 0:y.o)?null!=(a=null==(i=v.outline)?void 0:i.width)?a:1:0,U=t.node,K=U.getAttribute("stroke"),Q=(null==$?void 0:$.cover)&&b?1:(null==y?void 0:y.d)&&null!=(s=y.k)?s:0,ee=P?1:0,te=!!X&&Z>0&&(Q>0||ee>0)&&parseFloat(U.getAttribute("stroke-width"))>0&&!!K&&"none"!==K&&"transparent"!==K,re=H(U,"stroke-opacity"),ne={};te&&(["stroke","stroke-width","stroke-opacity","stroke-dasharray"].forEach(e=>{var t;ne[e]=X.node.getAttribute(e),X.node.setAttribute(e,null!=(t=U.getAttribute(e))?t:"")}),U.hasAttribute("stroke-dasharray")||X.node.removeAttribute("stroke-dasharray"));const le={d:null,f:_,base:null!=(o=null==A?void 0:A.base)?o:null==y?void 0:y.base,edge:!1,s:null!=(u=null==A?void 0:A.s)?u:null==y?void 0:y.s,n:M?null==X?void 0:X.node:null,c:!w,al:J,k:te?ee:0};this._targets.set(m,le);const ie=P?j:N(_);if(this._fade(t.node,(null==$?void 0:$.cover)&&b?j:y?{f:y.f,o:null!=(c=y.o)?c:N(y.f).o}:O,n.whole?ie:{f:ie.f,o:0},r,{outline:Z>0?{color:C,width:Z,opacity:null!=(g=null==(d=v.outline)?void 0:d.opacity)?g:1}:null,also:e=>{null==W||W.setAttribute("fill-opacity",String(B(Y,_,e))),(e=>{const t=B(V,J,e);if(le.la=t,X&&(G<1||V<1||J<1)&&X.node.setAttribute("fill-opacity",String(G*t)),!te)return;const r=B(Q,ee,e);le.lk=r,r>0||e<1?(X.node.setAttribute("stroke-opacity",String(re*r)),!(le.lo>0)&&r>0&&U.setAttribute("stroke-opacity","0")):X.attr(ne)})(e)},force:!!X&&(V!==J||te),land:P?O:void 0,done:M?()=>null==X?void 0:X.remove():void 0,rec:le}),!X||!S||M)return;if((null==A?void 0:A.overflow)&&X.node.classList.add("apexcharts-highlight-overflow"),(null==A?void 0:A.overflow)&&!x){const e=new h(p,this.ctx).drawPath({d:r.pathTo,stroke:"#fff",strokeWidth:1,fill:"none",strokeDashArray:3,classes:`${F} apexcharts-highlight-edge`});e.attr("clip-path",`url(#gridRectBarMask${p.globals.cuid})`),e.node.setAttribute("pointer-events","none"),q.add(e);const t=t=>e.node.setAttribute("stroke-opacity",String(.75*t));b&&!(null==y?void 0:y.edge)?this._tween(r.delayMs,r.speed,t):t(1)}const ae=null==(f=this.ctx.renderer)?void 0:f.kind;ae&&"svg"!==ae||p.config.plotOptions.bar.isFunnel||this._hitProxy(q,S,r.pathTo,t.node,!!p.globals.isBarHorizontal),r.labels&&this._contrastLabels(r.labels,S),Object.assign(le,{d:S,base:null==A?void 0:A.base,edge:!!(null==A?void 0:A.overflow)&&!x,s:null==A?void 0:A.s,flip:D,n:X.node})}_hitProxy(e,t,r,n,l){const i=l?0:1,[a,s]=ze(t,i),[o,u]=ze(r,i),[c,d]=ze(t,i?0:1);if(!(s-a>.5&&d-c>.5))return;const g=[];u-o>.5?(a<o&&g.push([a,Math.min(s,o)]),s>u&&g.push([Math.max(a,u),s])):g.push([a,s]);const f=new h(this.w,this.ctx);for(const[t,r]of g){if(r-t<.5)continue;const i=f.drawPath({d:l?`M ${t} ${c} L ${r} ${c} L ${r} ${d} L ${t} ${d} Z`:`M ${c} ${t} L ${d} ${t} L ${d} ${r} L ${c} ${r} Z`,stroke:"none",strokeWidth:0,fill:"none",classes:"apexcharts-highlight-hit"}).node;i.setAttribute("pointer-events","all"),i.setAttribute("clip-path",`url(#gridRectBarMask${this.w.globals.cuid})`),X(n,i),e.add(i)}}_settleHeld(e){if(this._held)return;this._held=!0;const t=this.w;Promise.resolve().then(()=>{var r;t.globals.isDestroyed||(null==(r=t.dom.baseEl)?void 0:r.querySelector(`.apexcharts-series > .${Te}`))||e.settleHeldMirrors()})}_from(e,t,r,n){var l;return(null==e?void 0:e.d)?{d:e.d,cover:!1}:t&&(e||"baseline"===this.cfg.enter||n&&(!this.w.globals.dataChanged||(null==(l=this._prev())?void 0:l.size)))?{d:t,cover:!1}:r?{d:r,cover:!0}:null}_exitTo(e,t,r,n){return t?n||e.base||e.d:r}_partGroup(e,t){let r=e.node._apxHighlight;return r&&r.node.parentNode===e.node||(r=new h(this.w,this.ctx).group({class:t}),e.node._apxHighlight=r),e.add(r),r}_emitPart(e,t){const r=this.w,n=function(e,t){const r=e&&e.renderer;return r&&r.kind&&"svg"!==r.kind?r:t}(this.ctx,new h(r,this.ctx)).renderPaths({i:t.i,j:t.j,realIndex:t.realIndex,pathFrom:t.from,pathTo:t.to,pathToInterp:t.interp||void 0,pathToNumeric:t.num,scrollMorph:!!t.scroll,stroke:t.stroke||"none",strokeWidth:t.width||0,fill:t.paint,animationDelay:t.delay,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:t.speed,className:`${F} ${t.cls}`,chartType:t.chartType,bindEventsOnPaths:!1});return n&&n.node?(n.attr("clip-path",t.clip),n.node.setAttribute("pointer-events","none"),n.node.setAttribute("index",String(t.realIndex)),n.node.setAttribute("j",String(t.j)),e.add(n),n):null}_fade(e,t,r,n,l){var i;const a=l.attr||"fill-opacity",s=H(e,a),o=l.outline,u=l.rec||{},c=o&&null==o.width?["stroke","stroke-opacity"]:["stroke","stroke-width","stroke-opacity"],h=c.map(t=>e.getAttribute(t)),d=(t,r)=>{u.lf=t,u.lo=o?r:0,e.setAttribute(a,String(s*t)),o&&(r<=0?c.forEach((t,r)=>null==h[r]?e.removeAttribute(t):e.setAttribute(t,h[r])):(e.setAttribute("stroke",o.color),null!=o.width&&e.setAttribute("stroke-width",String(o.width)),e.setAttribute("stroke-opacity",String(o.opacity*Math.min(1,r)))))},g=e=>{d(B(t.f,r.f,e),B(t.o,r.o,e)),l.also&&l.also(e)},f=()=>{u.run=!1,l.land&&d(l.land.f,l.land.o),l.done&&l.done()};(null!=(i=l.anim)?i:this._animates())&&(t.f!==r.f||t.o!==r.o||l.done||l.force)?(u.run=!0,this._tween(n.delayMs,n.speed,g,f,l.curve,n.el)):(g(1),f())}_runningExt(e,t,r){if(!t)return e;const n=new Map;return e.map((e,l)=>e.map((e,i)=>{if(null==e)return null;const a=t(l,i)+(r&&e<0?"-":"+"),s=(n.get(a)||0)+e;return n.set(a,s),s}))}_contrastLabels(e,t){const r=this.w,n=e.node;if(!n||/rotate\((?!0\))/.test(n.getAttribute("transform")||""))return;const[l,i]=ze(t,0),[a,s]=ze(t,1),o=new h(r);n.querySelectorAll("text").forEach(e=>{const t=(e.getAttribute("fill")||"").toLowerCase();if("#fff"!==t&&"#ffffff"!==t&&"white"!==t)return;const n=o.getTextRects(e.textContent,e.getAttribute("font-size"),e.getAttribute("font-family"),void 0,!0,e.getAttribute("font-weight")),u=parseFloat(e.getAttribute("x")),c=parseFloat(e.getAttribute("y")),h=e.getAttribute("text-anchor"),d="middle"===h?u-n.width/2:"end"===h?u-n.width:u;d>=l-1&&d+n.width<=i+1&&c-.75*n.height>=a-1&&c+.25*n.height<=s+1||e.setAttribute("fill",r.config.chart.foreColor)})}tooltipRow(e,t,r,n){var l,i,a,u,c,h,d,g,p,v,b;const m=this.w,y=this.cfg,A=y.tooltip||{},_=m.globals.axisCharts,w=this.isActive()&&!1!==A.show&&(null!=r||!_)&&!!e.yValue,x=_||"lanes"!==this._ind||"radialBar"!==m.config.chart.type?void 0:(null==(l=this._lane)?void 0:l[0])===t?this._lane[1]:"part";if(e.marker&&function(e,t,r=.2,n){const l=e.style,i=e.firstElementChild;if(!t){if(!e._apxHl)return;return e._apxHl=!1,l.background=l.boxShadow=l.borderRadius="",void(i&&(i.style.display=""))}e._apxHl=!0;const a="#"===t.charAt(0)?f.hexToRgba(t,r):`color-mix(in srgb, ${t} ${100*r}%, transparent)`;l.background="part"===n?t:n?a:`linear-gradient(90deg, ${t} 50%, ${a} 50%)`,l.boxShadow=`inset 0 0 0 1px ${t}`,l.borderRadius="3px",i&&(i.style.display="none")}(e.marker,w&&!m.config.tooltip.fillSeriesColor?(null==(a=null==(i=this._tiles)?void 0:i.get(t+"|"+r))?void 0:a.base)||m.globals.colors[t]:null,x?null!=(h=null==(c=null==(u=y.radialBar)?void 0:u.lanes)?void 0:c.opacity)?h:fe:y.fadeOpacity,x),!w)return;const k=this.valueAt(t,r),S=m.seriesData.series,M=_?null==(d=S[t])?void 0:d[r]:S[t],$=_?{series:S,seriesIndex:t,dataPointIndex:r,w:m}:o(s({},m),{w:m,series:S,seriesIndex:t,dataPointIndex:t,highlight:W(k,M),lane:x});if("function"==typeof A.formatter)return void(e.yValue.innerHTML=String(null!=(g=A.formatter(k,null!=M?M:null,$))?g:""));const E='<span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">';if("whole"===x){if(null!=k){const t=null!=(b=null==(v=null==(p=m.globals.locale)?void 0:p.highlightFilter)?void 0:v.part)?b:"part";e.yValue.innerHTML+=` ${E}(${t} ${n.yLbFormatter(k,$)})</span>`}return}let P=e.yValue.innerHTML;null!=k&&(P=`/ ${P}`,A.share&&M&&(P+=` \xb7 ${Math.round(k/M*100)}%`)),e.yValue.innerHTML=(null==k?"":`${n.yLbFormatter(k,$)} `)+`${E}${P}</span>`}drillView(e){Array.isArray(null==e?void 0:e.series)&&(e.series=e.series.map(U),this._level={series:e.series,base:this.w.globals.initialSeries}),e&&null!=this.cfg.data&&(e.highlightFilter=o(s({},e.highlightFilter),{data:null}))}_drilled(){var e;const t=this._level;return!!(t&&((null==(e=this.ctx.drilldown)?void 0:e.depth)||0)>0&&this.w.globals.initialSeries===t.base)}_fire(e){var t;const r=null==(t=this.w.config.chart.events)?void 0:t.highlightFilterChanged;"function"==typeof r&&r(this.ctx,{active:"clear"!==e,phase:e})}pie(e){"radialBar"===e.chartType?ve(this,e):ae(this,e)}treemap(e){return $e(this,e)}afterRender(){this._tipOn&&(this._tipOn=!1,this.w.config.tooltip.enabled=!1);const e=this._ride;this._ride=null;const t=this.w.globals.circleTween;!e||t&&!t.done||e();const r=this._drawnSig,n=this._sig;r!==n&&(this._drawnSig=n,this._fire(r?n?"update":"clear":"enter"))}set(e,t={}){var r;const n=this.w,l=n.globals;if(!l.axisCharts)return this._setCircle(e,t);const i=t.series||this._rawSeries();if("treemap"===n.config.chart.type&&l.treemapRoots)return this._apply(function(e,t,r){const n=e.w;return t.map((e,t)=>{const l=U(e),i=Array.isArray(null==r?void 0:r[t])?r[t]:null;if("function"!=typeof r&&!i)return l;let a=0;const u=l=>{var c,h,d;if(z(l)&&Array.isArray(l.children)&&l.children.length)return o(s({},l),{children:l.children.map(u)});const g=a++,f=z(l)?s({},l):{x:"",y:l};return f.highlight="function"==typeof r?r({seriesIndex:t,dataPointIndex:g,seriesName:e.name,x:null!=(c=f.x)?c:f.name,value:"number"==typeof(null!=(h=f.y)?h:f.value)?null!=(d=f.y)?d:f.value:null,datum:l,w:n}):null==i?void 0:i[g],f};return Array.isArray(l.data)&&(l.data=l.data.map(u)),l})}(this,i,e),t);const a=!t.series&&!!l.dataReducerRawSeries&&!!(null==(r=n.config.chart.dataReducer)?void 0:r.enabled),u=i.map((r,l)=>{const i=Array.isArray(r.data)?r.data:[],u="function"==typeof e?i.map((i,s)=>{var o;return e({seriesIndex:l,dataPointIndex:s,seriesName:r.name,x:z(i)?i.x:Array.isArray(i)?i[0]:n.labelData.labels[s],value:Ye(i,t.series||a?null:null==(o=n.seriesData.series[l])?void 0:o[s]),datum:i,w:n})}):Array.isArray(null==e?void 0:e[l])?e[l]:null,c=U(r);return u&&(a&&c.data.every(e=>"number"!=typeof e)?c.data=c.data.map((e,t)=>null==e?e:Array.isArray(e)?{x:e[0],y:e[1],highlight:u[t]}:o(s({},e),{highlight:u[t]})):c.highlightData=u),c});return this._apply(u,t)}clear(e={}){return this.w.globals.axisCharts?this._apply(this._rawSeries().map(U),e):this._setCircle(null,e)}_setCircle(e,t){const r=this.w,n=t.series||this._rawSeries(),l={};if((t.series||n.some(Q))&&(l.series=n.map(U)),"function"==typeof e){const l=K(n),i=t.series?[]:r.seriesData.series,a=r.seriesData.seriesNames,s=l.length||n.length,o=[];for(let t=0;t<s;t++){const s=l.length?l[t]:n[t];o.push(e({seriesIndex:t,dataPointIndex:t,seriesName:l.length?String(s.x):a[t],x:l.length?s.x:a[t],value:Ye(s,i[t]),datum:s,w:r}))}e=o}return l.highlightFilter={data:Array.isArray(e)?e:null},this.ctx.updateOptions(l,!1,!1!==t.animate,!0,!this._drilled())}_apply(e,t){const r=this._drilled();return r&&this._level&&(this._level.series=e.map(U)),this.ctx.updateSeries(e,!1!==t.animate,!r)}_rawSeries(){var e,t;const r=this.w.globals;return(this._drilled()&&(null==(e=this._level)?void 0:e.series)||r.treemapRawSeries||(r.dataReducerRawSeries&&(null==(t=this.w.config.chart.dataReducer)?void 0:t.enabled)?r.initialSeries:null)||r.initialSeries||this.w.config.series).map(e=>z(e)?s({},e):e)}teardown(){var e,t;Array.from(this._live).forEach(e=>e.finish()),this._live.clear(),this._targets=new Map,this._render=null,this._cu=null,this._level=null,this._seriesEls=new Map,this._tiles=null,this._tmDefs=[],null==(e=this.ctx.events)||e.removeEventListener("mounted",this._onRender),null==(t=this.ctx.events)||t.removeEventListener("updated",this._onRender)}}}),Object.defineProperty(exports,"default",{enumerable:!0,get:()=>c.default});
5
+ "use strict";var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,a=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,s=(e,t)=>{for(var r in t||(t={}))l.call(t,r)&&a(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&a(e,r,t[r]);return e},o=(e,n)=>t(e,r(n));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function u(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const c=u(require("apexcharts/core")),h=c.__apex_Graphics,d=c.__apex_CoreUtils,g=c.__apex_Series,f=c.__apex_Utils,p=c.__apex_Animations_prefersReducedMotion,v=c.__apex_DataLabels,b=c.__apex_BrowserAPIs_BrowserAPIs,m=c.__apex_Environment_Environment,y=c.__apex_Easing_resolveEasing,A=c.__apex_PathMorphing_parsePath,_=c.__apex_PathMorphing_arrayToPath;function w(e,t,r){if(!e||"string"!=typeof e)return null;const n=A(e);if(!n.length||"M"!==n[0][0])return null;for(let e=1;e<n.length;e++)if("M"===n[e][0])return null;let l=n,i=null;if(r){if(n.length<5)return null;if(i=n.slice(-3),l=n.slice(0,-3),"Z"!==i[2][0])return null;if("L"!==i[1][0])return null;if("L"!==i[0][0]&&"C"!==i[0][0])return null}else if("Z"===n[n.length-1][0])return null;if(l.length!==t||l.length<2)return null;const a=l[1][0];if("L"!==a&&"C"!==a)return null;for(let e=2;e<l.length;e++)if(l[e][0]!==a)return null;const s=l.map(e=>"C"===e[0]?[Number(e[5]),Number(e[6])]:[Number(e[1]),Number(e[2])]);for(const e of s)if(!isFinite(e[0])||!isFinite(e[1]))return null;return{body:l,closing:i,segType:a,anchors:s}}function x(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function k(e,t,r){const n=e,l=[t[1],t[2]],i=[t[3],t[4]],a=[t[5],t[6]],s=x(n,l,r),o=x(l,i,r),u=x(i,a,r),c=x(s,o,r),h=x(o,u,r),d=x(c,h,r);return{first:["C",s[0],s[1],c[0],c[1],d[0],d[1]],second:["C",h[0],h[1],u[0],u[1],a[0],a[1]],mid:d}}function S(e,t,r){const n=[t[1],t[2]],l=x(e,n,r);return{first:["L",l[0],l[1]],second:["L",n[0],n[1]],mid:l}}function M(e,t){const{body:r,closing:n,segType:l,anchors:i}=e,a=i.length,s=t.length,o=e=>"C"===l?["C",e[0],e[1],e[0],e[1],e[0],e[1]]:["L",e[0],e[1]],u=[["M",i[0][0],i[0][1]]];let c=0;for(;c<s&&0!==t[c];)c++;for(let e=1;e<=c;e++)u.push(o(i[0]));let h=c+1;for(let e=0;e<a-1;e++){let n=0;for(;h+n<s&&-1===t[h+n];)n++;const a=r[e+1];if(n){const t=n+1;let r=i[e],s=a;for(let e=0;e<n;e++){const n=1/(t-e),i="C"===l?k(r,s,n):S(r,s,n);u.push(i.first),r=i.mid,s=i.second}u.push(s)}else u.push(a.slice());h+=n+1}for(;h<s;)u.push(o(i[a-1])),h++;return n&&n.forEach(e=>u.push(e.slice())),u}function $(e,t,r,n,l,i){const a=w(e,n,i);if(!a)return null;const s=w(t,l,i);if(!s)return null;if(a.segType!==s.segType)return null;if((a.closing||s.closing)&&(!a.closing||!s.closing||a.closing[0][0]!==s.closing[0][0]))return null;const o=r.map(e=>e.oldJ),u=r.map(e=>e.newJ);return{from:_(M(a,o)),toInterp:_(M(s,u))}}function E(e){const t=new Map;return e.map(e=>{const r=t.get(e)||0;return t.set(e,r+1),0===r?e:`${e}#${r}`})}function P(e,t,r=0|(r=>null==(r=e.seriesData.series[t])?void 0:r.length)()){return E(Array.from({length:r},(r,n)=>function(e,t,r){var n,l,i,a;if(null==(n=e.axisFlags)?void 0:n.isXNumeric){const n=null==(i=null==(l=e.seriesData)?void 0:l.seriesX)?void 0:i[t];if(n&&n.length&&null!=n[r])return"x:"+n[r]}const s=null==(a=e.globals.labels)?void 0:a[r];return null!=s&&""!==String(s)?"c:"+(Array.isArray(s)?s.join(" "):String(s)):"j:"+r}(e,t,n)))}function D(e,t,r=!1,n=!1){var l,i;if(!function(e){var t;const r=e.config.chart.animations;if(!r||!1===r.enabled)return!1;if(!r.dynamicAnimation||!1===r.dynamicAnimation.enabled)return!1;const n=null!=(t=r.largeDatasetThreshold)?t:0;return!(n>0&&e.globals.dataPoints>n||!(m.isBrowser()&&e.globals.dataChanged&&e.globals.shouldAnimate))}(e))return null;const a=e.globals.prevStreamFrame;if(!a)return null;const s=null==(l=a.seriesY)?void 0:l[t],o=null==(i=e.seriesData.series)?void 0:i[t];if(!Array.isArray(s)||!Array.isArray(o))return null;if(!s.length||!o.length)return null;const u=E(s.map((e,r)=>function(e,t,r){var n,l;if(e.isXNumeric){const l=null==(n=e.seriesX)?void 0:n[t];if(l&&l.length&&null!=l[r])return"x:"+l[r]}const i=null==(l=e.labels)?void 0:l[r];return null!=i&&""!==String(i)?"c:"+(Array.isArray(i)?i.join(" "):String(i)):"j:"+r}(a,t,r))),c=P(e,t),h=function(e,t){const r=new Map;e.forEach((e,t)=>{r.has(e)||r.set(e,t)});const n=new Array(t.length),l=new Set;let i=-1,a=!0,s=e.length===t.length;t.forEach((e,t)=>{const o=r.has(e)&&!l.has(r.get(e))?r.get(e):-1;n[t]=o,-1!==o&&(l.add(o),o<i&&(a=!1),i=o),o!==t&&(s=!1)});const o=[];for(let t=0;t<e.length;t++)l.has(t)||o.push(t);return{toOld:n,exits:o,ordered:a,changed:!s}}(u,c);return(h.ordered||n)&&(h.changed||r)?{join:h,oldKeys:u,newKeys:c}:null}function L(e,{type:t,realIndex:r,pathFromLine:n,pathFromArea:l,linePaths:i,areaPaths:a}){var s,o;const u=D(e,r);if(!u)return null;const{join:c,oldKeys:h,newKeys:d}=u,g=e.globals.prevStreamFrame;if(!g)return null;const f=null==(s=g.seriesY)?void 0:s[r],p=null==(o=e.seriesData.series)?void 0:o[r];if(f.length<2||p.length<2)return null;if(f.some(e=>null===e)||p.some(e=>null===e))return null;const v=function(e,t){const r=new Set(e.exits),n=[];let l=0;for(let t=0;t<e.toOld.length;t++){const i=e.toOld[t];if(-1!==i){for(;l<i;)r.has(l)&&n.push({oldJ:l,newJ:-1}),l++;n.push({oldJ:i,newJ:t}),l=i+1}else n.push({oldJ:-1,newJ:t})}for(;l<t;)r.has(l)&&n.push({oldJ:l,newJ:-1}),l++;return n}(c,h.length),b={};return Array.isArray(i)&&1===i.length&&n&&(b.line=$(n,i[0],v,h.length,d.length,!1)),"area"===t&&Array.isArray(a)&&1===a.length&&l&&(b.area=$(l,a[0],v,h.length,d.length,!0)),b.line||b.area?b:null}const T=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;function C(e,t){const{ax:r,bx:n,ay:l,by:i}=t,a=[],s=/([MmLlHhVvCcSsQqTtAaZz])([^MmLlHhVvCcSsQqTtAaZz]*)/g;let o;for(;null!==(o=s.exec(e));){const e=o[1].toUpperCase(),t=(o[2].match(T)||[]).map(parseFloat);if("Z"===e){a.push("z");continue}if("H"===e){for(const e of t)a.push(`H ${r*e+n}`);continue}if("V"===e){for(const e of t)a.push(`V ${l*e+i}`);continue}if("A"===e){for(let e=0;e+6<t.length;e+=7)a.push(`A ${t[e]} ${t[e+1]} ${t[e+2]} ${t[e+3]} ${t[e+4]} ${r*t[e+5]+n} ${l*t[e+6]+i}`);continue}const s=[];for(let e=0;e+1<t.length;e+=2)s.push(`${r*t[e]+n} ${l*t[e+1]+i}`);s.length&&a.push(`${e} ${s.join(" ")}`)}return a.join(" ")}const F="apexcharts-highlight-part",O={f:1,o:0},j={f:0,o:0},N=e=>({f:e,o:e<1?1:0}),I=e=>"number"==typeof e&&e==e&&e!==1/0&&e!==-1/0,B=(e,t,r)=>r>=1?t:e+(t-e)*r,z=e=>e&&"object"==typeof e&&!Array.isArray(e),H=(e,t="fill-opacity")=>{var r;const n=null==(r=e.instance)?void 0:r._cmd,l=parseFloat(n?n[t.replace("-o","O")]:e.getAttribute(t));return isFinite(l)?l:1};function R(e){const t="string"==typeof e?e.trim():"";let r,n=null;return(r=/^rgba\(([^,]+,[^,]+,[^,]+),([^)]+)\)$/i.exec(t))?n=[`rgb(${r[1]})`,parseFloat(r[2])]:(r=/^color-mix\(in srgb, (.+) ([\d.]+)%, transparent\)$/.exec(t))?n=[r[1],parseFloat(r[2])/100]:(r=/^(#[\da-f]{6})([\da-f]{2})$/i.exec(t))&&(n=[r[1],parseInt(r[2],16)/255]),n&&n[1]>0&&n[1]<1?n:[e,1]}function W(e,t){const r=null!=e&&t?e/t:null;return{value:null!=e?e:null,total:null!=t?t:null,share:r,overflow:null!=r&&(r<0?"sign":r>1)}}function Y(e){let t=parseFloat(e.getAttribute("x")),r=parseFloat(e.getAttribute("y"));return String(e.getAttribute("transform")||"").replace(/translate\(\s*([^\s,)]+)[\s,]*([^\s,)]*)\s*\)/g,(e,n,l)=>(t+=parseFloat(n)||0,r+=parseFloat(l)||0,"")),[t,r]}const q=["mousemove","mousedown","mouseup","mouseover","mouseout","click","touchstart","touchmove","touchend"];function X(e,t){const r=e._apxHits||(e._apxHits=new Set);if(!e._apxHitStop){e._apxHitStop=!0;const t=e=>{r.has(e.relatedTarget)&&e.stopImmediatePropagation()};["mouseout","mouseleave","mouseover","mouseenter"].forEach(r=>e.addEventListener(r,t,!0))}r.add(t),q.forEach(r=>t.addEventListener(r,t=>{t.stopPropagation();const n="mouseover"===r,l="mouseout"===r;(n||l)&&t.relatedTarget===e||(Z(e,r,t),n&&Z(e,"mouseenter",t),l&&Z(e,"mouseleave",t))},{passive:!0}))}function G(e,t){const r=()=>{const r=e.getAttribute("filter");r?t.setAttribute("filter",r):t.removeAttribute("filter")};r(),m.isBrowser()&&"undefined"!=typeof MutationObserver&&new MutationObserver(r).observe(e,{attributes:!0,attributeFilter:["filter"]})}function V(e,t){const r=e.parentNode,n=Array.from(r.childNodes);r.insertBefore(t,n[n.indexOf(e)+1]||null)}const J=(e,t)=>e.setAttribute("class",`${e.getAttribute("class")||""} ${t}`.trim());function Z(e,t,r){try{const n=r.touches?{bubbles:!0,cancelable:!0,touches:Array.from(r.touches),targetTouches:Array.from(r.targetTouches),changedTouches:Array.from(r.changedTouches)}:"mouseenter"===t||"mouseleave"===t?{clientX:r.clientX,clientY:r.clientY,screenX:r.screenX,screenY:r.screenY,relatedTarget:r.relatedTarget,buttons:r.buttons}:r;e.dispatchEvent(new r.constructor(t,n))}catch(e){}}function U(e){if(!z(e))return e;const t=e,{highlightData:r,highlight:a}=t,s=((e,t)=>{var r={};for(var a in e)l.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&n)for(var a of n(e))t.indexOf(a)<0&&i.call(e,a)&&(r[a]=e[a]);return r})(t,["highlightData","highlight"]);return["data","children"].forEach(e=>{Array.isArray(s[e])&&(s[e]=s[e].map(ee))}),s}function K(e){const t=[];return(e||[]).forEach(e=>(z(e)&&Array.isArray(e.data)?e.data:[]).forEach(e=>{z(e)&&void 0!==e.x&&(void 0!==e.y||Array.isArray(e.children))&&t.push(e)})),t}const Q=e=>z(e)&&("highlight"in e||"highlightData"in e||[e.data,e.children].some(e=>Array.isArray(e)&&e.some(Q))),ee=e=>z(e)&&("highlight"in e||Array.isArray(e.children))?U(e):e;function te(e,t){if("number"==typeof t)return t;const r=e.config&&e.config.series||[];for(let e=0;e<r.length;e++)if(r[e]&&r[e].name===t)return e;return-1}function re(e){return!!(e&&e.weaveHighlights&&e.weaveHighlights.records.length)}function ne(e,t){if(!re(e))return null;let r=null;for(const n of e.weaveHighlights.records)for(const l of n.entries)te(e,l.series)===t&&(r=l.values);return r}const le="p:",ie=["pie","donut","polarArea"];function ae(e,t){var r;const n=e.w.highlightData;if(!n)return;if(e._render!==t&&e._beginRender(t,"p:"),!n.active&&!(null==(r=e._prev())?void 0:r.size))return;n.active&&"polarArea"===t.chartType&&"clamp"!==e.cfg.axis&&n.parts.forEach(e=>{I(e[0])&&(t.maxY=Math.max(t.maxY,e[0]))});const l=t.animatePaths,i=t.drawArcs,a=t.getSliceMovers,u=t.getHoverOutlinePath,c={arcs:[],movers:[],reach:[],ap:l};t.animatePaths=(e,r)=>{const n=s({},r);l.call(t,e,r),n.run=r.dur,c.arcs[r.i]={a:n,el:e}},t.drawArcs=(...r)=>{const n=i.apply(t,r);return function(e,t,r,n){var l,i,a,u,c,d,g,p,v,b;const y=e.w,A=y.globals,_=e.cfg,w=y.highlightData,x=w.active,k=e._prev(),S=t.chartType,M="polarArea"===S,$=A.radialSize,E="donut"===S?t.donutSize:0,P=x?null!=(l=_.fadeOpacity)?l:.2:1,D=!0===(null==(i=e.ctx.morphTypeChange)?void 0:i.isActive()),L=!A.dataChanged||!A.shouldAnimate,T="area"===(null==(a=_.pie)?void 0:a.encoding),C=y.seriesData.series,I="part"===(null!=(c=null==(u=_.dataLabels)?void 0:u.value)?c:"part"),z=t.strokeWidth>0&&(null!=(g=null==(d=_.outline)?void 0:d.width)?g:1)>0?{opacity:null!=(v=null==(p=_.outline)?void 0:p.opacity)?v:1}:null,q=null==(b=A.prevHighlightLabels)?void 0:b.get(-1),V=[],J=(e,t)=>{var r,n;return(null==(r=e.classList)?void 0:r.contains(t))||` ${null==(n=e.getAttribute)?void 0:n.call(e,"class")} `.indexOf(` ${t} `)>-1};Array.from(r.node.childNodes).filter(e=>J(e,"apexcharts-pie-series")).forEach(r=>{var l,i,a,u,c,d;const g=Array.from(r.childNodes).find(e=>J(e,"apexcharts-pie-area"));if(!g)return;const p=Number(g.getAttribute("j")),v=le+p,b=L||null==k?void 0:k.get(v);if(!x&&!b)return;const S=n.arcs[p],Y=C[p],Z=x?null==(l=w.parts[p])?void 0:l[0]:null,U=t.sliceSizes[p],K=M?U:$,Q=m.isBrowser()&&!!S&&S.a.run>0&&!D,ee=+(null==S?void 0:S.a.animBeginArr[p])||0,te=null!=Z&&Y>0?Z/Y:null;let re=null,ne=!1;if(null!=te&&te>0)if(ne=te>1,M)re=Math.min($,U*te);else{const e=Math.min(te,1);re=T?Math.sqrt(E*E+e*($*$-E*E)):E+($-E)*e}const ie=null!=(i=null==b?void 0:b.lr)?i:null==b?void 0:b.fr;let ae=re;const se=null==re&&null!=ie&&Q;se&&(ae=A.collapsedSeriesIndices.indexOf(p)>-1?ie*$:x?E:K);const oe=se&&!x;let ue=ae,he=!1;null!=ae&&Q&&!L&&(null!=ie?ue=ie*$:b||"baseline"===_.enter?ue=E:(he=!0,ue=M?null!=(a=S.a.prevSize)?a:U:$),se||Math.abs(S.a.prevEndAngle-S.a.prevStartAngle)>.01||(ue=ae,he=!1));let de=null,ge=null;const fe=e=>{const t=g.getAttribute("transform");t&&(e.setAttribute("transform",t),e.classList.add("apexcharts-slice-mover"),e.style.transition=g.style.transition),(n.movers[p]=n.movers[p]||[]).push(e)},pe=(e,r,l,i)=>{if(S&&!D)n.ap.call(e,r,o(s({},S.a),{size:l,prevSize:L?void 0:i,isTrack:!0}));else{const n=Number(g.getAttribute("data:angle"));r.attr({d:e.getPiePath({me:e,startAngle:Number(g.getAttribute("data:startAngle")),angle:n>=t.fullAngle?t.fullAngle-.01:n,size:l}),"stroke-width":e.strokeWidth})}},ve=g.getAttribute("fill"),[be,me]=R(ve),ye=H(g),Ae=!!ve&&"none"!==ve&&!/^url\(/i.test(ve),_e=Ae?me*ye:ye,we=Ae?he?_e:null!=ie&&null!=(u=b.al)?u:1:ye,xe=Ae?oe?_e:1:ye;if(null!=ae){const l=ce(t,K);de=new h(y).drawPath({d:"",fill:be,stroke:g.getAttribute("stroke"),strokeWidth:0,fillOpacity:we,classes:`${F} apexcharts-pie-highlight-part`});const i=de.node;if(i.setAttribute("pointer-events","none"),null!=te&&i.setAttribute("data:hl-share",String(te)),r.appendChild(i),fe(i),Q&&!L&&i.setAttribute("d",l.getChangedPath(S.a.prevStartAngle,S.a.prevEndAngle,ue)),pe(l,de,ae,ue),ne&&!se&&i.classList.add("apexcharts-highlight-overflow"),G(g,i),ne&&!se||se&&(null==b?void 0:b.edge)){ge=new h(y).drawPath({d:"",fill:"none",stroke:"#fff",strokeWidth:1,strokeDashArray:3,classes:`${F} apexcharts-highlight-edge`}),ge.node.setAttribute("pointer-events","none"),ge.node.setAttribute("stroke-opacity","0"),r.appendChild(ge.node),fe(ge.node);pe(ce(t,K,{strokeWidth:{value:1}}),ge,M?U:$-2,M?null==S?void 0:S.a.prevSize:$-2)}if(M&&ne&&!se&&(i.removeAttribute("pointer-events"),X(g,i),n.reach[p]=ae),D){const t=[i,null==ge?void 0:ge.node].filter(Boolean),r=e=>t.forEach(t=>t.setAttribute("opacity",e));r(0),e._tween(e.ctx.morphTypeChange.getSpeed(),y.config.chart.animations.dynamicAnimation.speed,r,()=>t.forEach(e=>e.removeAttribute("opacity")))}}const ke={d:null,fr:null,f:P,edge:!1,c:!x,al:xe};e._targets.set(v,ke);const Se=ne&&null!=re?.75:0,Me=L?Se:(null==b?void 0:b.edge)?.75:0,$e=null!=ue?ue:0,Ee=null!=ae?ae:0;e._fade(g,L?N(P):he?j:b?{f:b.f,o:null!=(c=b.o)?c:N(b.f).o}:O,oe?j:N(P),{delayMs:ee,speed:null==S?void 0:S.a.run,el:null==S?void 0:S.el},{anim:Q,force:!!de&&($e!==Ee||Me!==Se||we!==xe),outline:z&&o(s({},z),{color:A.colors[p]}),also:e=>{de&&(ke.lr=B($e,Ee,e)/$,ke.la=B(we,xe,e),de.node.setAttribute("fill-opacity",String(ke.la))),null==ge||ge.node.setAttribute("stroke-opacity",String(B(Me,Se,e)))},land:oe?O:void 0,done:se?()=>{null==de||de.remove(),null==ge||ge.remove(),ke.lr=null}:void 0,rec:ke}),null!=re&&Object.assign(ke,{fr:re/$,edge:ne,n:de.node});const Pe=t.sliceLabelGroups[p],De=Pe&&Array.from(Pe.childNodes).find(e=>J(e,"apexcharts-pie-label"));if(De&&x){if(null==Z&&I)return t.sliceLabels=t.sliceLabels.filter(e=>e.node!==Pe),null==(d=Pe.parentNode)||d.removeChild(Pe),void delete t.sliceLabelGroups[p];!function(e,t,r,n,l,i,a,s,o){var u,c;const d=e.config.dataLabels.formatter;if(null!=i){const t=null!=(c=null==(u=e.globals.seriesPercent[l])?void 0:u[0])?c:0,r=a?t*i/a:0;n.textContent=String(d?d(r,{seriesIndex:l,dataPointIndex:l,series:e.seriesData.series,w:e,highlight:W(i,a)}):r+"%")}const g=parseFloat(n.getAttribute("font-size"))||12,p=Number(r.getAttribute("data:startAngle")),v=Number(r.getAttribute("data:angle"));if(null!=i&&null!=s&&s-o>=1.2*g){const r=e.config.plotOptions.pie.dataLabels.offset,l=f.polarToCartesian(t.centerX,t.centerY,"donut"===t.chartType?(o+s)/2+r:s/1.25+r,(p+v/2)%t.fullAngle);n.setAttribute("x",l.x),n.setAttribute("y",l.y)}const b=new h(e).getTextRects(n.textContent,n.getAttribute("font-size"),n.getAttribute("font-family"),void 0,!0,n.getAttribute("font-weight")),m=parseFloat(n.getAttribute("x")),y=parseFloat(n.getAttribute("y")),A=null!=s&&[[m-b.width/2,y-.75*b.height],[m+b.width/2,y-.75*b.height],[m-b.width/2,y+.25*b.height],[m+b.width/2,y+.25*b.height]].every(([e,r])=>{const n=e-t.centerX,l=r-t.centerY,i=Math.hypot(n,l),a=((180*Math.atan2(l,n)/Math.PI+90-p)%360+360)%360;return i>=o&&i<=s&&a<=v});A||(n.setAttribute("fill",e.config.chart.foreColor),n.removeAttribute("filter"))}(y,t,g,De,p,I?Z:null,Y,re,E)}De&&Q&&!L&&q&&V.push({t:De,src:q.get(p),el:S.el,delayMs:ee,arc:S})}),V.length&&(e._ride=()=>function(e,t){t.forEach(({t:t,src:r,el:n,delayMs:l,arc:i})=>{if(!t.isConnected)return;const[a,s]=Y(t),o=r?r.x-a:0,u=r?r.y-s:0;r&&Math.abs(o)<.5&&Math.abs(u)<.5||e._tween(l,i.a.run,e=>{const n=1-e;n>0&&r?t.setAttribute("transform",`translate(${o*n} ${u*n})`):t.removeAttribute("transform"),r||(e<1?t.setAttribute("opacity",String(e)):t.removeAttribute("opacity"))},void 0,void 0,n)})}(e,V))}(e,t,n,c),n},t.getSliceMovers=e=>a.call(t,e).concat(c.movers[e]||[]),t.getHoverOutlinePath=e=>{const r=t.sliceSizes;if(!(c.reach[e]>r[e]))return u.call(t,e);t.sliceSizes=r.slice(),t.sliceSizes[e]=c.reach[e];try{return u.call(t,e)}finally{t.sliceSizes=r}},se(e,t)}function se(e,t){const r=t.renderInnerDataLabels,n=t.printInnerLabels;t.renderInnerDataLabels=(n,l,i)=>oe(e,()=>r.call(t,n,ue(e,l,0),i)),t.printInnerLabels=(r,l,i,a)=>oe(e,()=>n.call(t,ue(e,r,a?+a.parentNode.getAttribute("rel")-1:-1),l,i,a))}function oe(e,t){var r,n;const l=e.w.globals,i=e.w.highlightData;if(!(null==i?void 0:i.active)||"part"!==(null!=(n=null==(r=e.cfg.dataLabels)?void 0:r.total)?n:"part"))return t();const a=l.seriesTotals;l.seriesTotals=i.parts.map(e=>{var t;return null!=(t=e[0])?t:0});try{return t()}finally{l.seriesTotals=a}}function ue(e,t,r){var n,l;const i=e.w,a=i.highlightData;if(!(null==a?void 0:a.active))return t;const u=i.seriesData.series,c=a.parts.map(e=>e[0]),h=r>-1&&"part"===(null!=(l=null==(n=e.cfg.dataLabels)?void 0:n.value)?l:"part")?c[r]:null,d=e=>e.reduce((e,t)=>e+(I(t)?t:0),0),g=t.total.formatter,f=t.value.formatter;return o(s({},t),{total:o(s({},t.total),{formatter:g&&(e=>g(e,{highlight:W(d(c),d(u))}))}),value:o(s({},t.value),{formatter:(e,t)=>f(null!=h?h:e,t,{highlight:r>-1?W(c[r],u[r]):void 0})})})}const ce=(e,t,r)=>Object.create(e,s({getSliceExtent:{value:r=>e.getSliceExtent(o(s({},r),{size:t}))}},r));const he="r:",de="r:o",ge=["length","baseWidth","tipWidth","offsetY"],fe=.45,pe=`${F} apexcharts-radialbar-highlight-lane`;function ve(e,t){var r,n,l,i,a,o,u;const c=e.w,h=c.highlightData,d=null==(n=null==(r=e.ctx.lastUpdateOptions)?void 0:r.tooltip)?void 0:n.enabled;if(null!=d?e._tipUser=d:e._tipOn&&(c.config.tooltip.enabled=!1),e._tipOn=!1,!h)return;e._render!==t&&e._beginRender(t,he),function(e){const t=e.ctx.morphTypeChange;if(!t||t._hfOut)return;t._hfOut=!0;const r=t.captureBeforeDestroy;t.captureBeforeDestroy=n=>{const l=function(e,t){var r,n,l,i,a;const s=e.w,o=s.globals,u=null==(r=s.dom.baseEl)?void 0:r.querySelector(".apexcharts-radialbar");if("radialBar"!==t&&"gauge"!==t||!u)return null;const c=e.ctx.morphTypeChange,h=null!=(l=null==(n=o.circleGeometry)?void 0:n.cx)?l:0,d=null!=(a=null==(i=o.circleGeometry)?void 0:i.cy)?a:0,g=new Map,f=new Set,p=new Set;u.querySelectorAll(".apexcharts-radial-series .apexcharts-radialbar-area").forEach(t=>{var r,n,l,i;const a=t.parentNode,s=+a.getAttribute("data:realIndex"),o=he+t.getAttribute("j"),u=null!=(n=e._targets.get(o))?n:null==(r=e._prev())?void 0:r.get(o),v=a.querySelector(".apexcharts-radialbar-highlight-part");if(!(v||(null==u?void 0:u.s)>0||(null!=(i=null!=(l=null==u?void 0:u.lf)?l:null==u?void 0:u.f)?i:1)<1))return;f.add(t);const b=null==v?void 0:v.getAttribute("d"),m=+(null==v?void 0:v.getAttribute("stroke-width"));let y=null;if(b&&m>0&&"0"!==v.getAttribute("opacity"))y=c._radialArcToFilledSegment(b,m,h,d)||b,p.add(v);else{const e=/M\s*(-?[\d.e]+)\s+(-?[\d.e]+)/.exec(t.getAttribute("d")||"");e&&(y=`M ${e[1]} ${e[2]} L ${e[1]} ${e[2]} Z`)}y&&g.set(s,y)});const v=[...u.getElementsByClassName(F)];return g.size||v.length?(v.forEach(e=>p.has(e)||e.closest(".apexcharts-tracks")||f.add(e)),{marks:g,ghost:()=>{const e="data-hf-ghost";f.forEach(t=>t.setAttribute(e,""));const t=s.dom.Paper.node.cloneNode(!0);f.forEach(t=>t.removeAttribute(e));const r=new Set(t.querySelectorAll(`[${e}]`)),n=new Set;r.forEach(r=>{r.removeAttribute(e);for(let e=r.parentNode;e&&e!==t;e=e.parentNode)n.add(e)});const l=e=>[...e.children].forEach(e=>{r.has(e)||(n.has(e)?l(e):"defs"!==e.tagName.toLowerCase()&&e.remove())});return l(t),t.removeAttribute("id"),[t,...t.querySelectorAll("*")].forEach(e=>{e.id&&(e.id+="-hf"),[...e.attributes].forEach(t=>{t.value.includes("url(#")&&e.setAttribute(t.name,t.value.replace(/url\(#([^)]+)\)/g,"url(#$1-hf)"))})}),t}}):null}(e,null==n?void 0:n.fromType);if(!l)return r.call(t,n);const i=t._captureFromDOM;let a;t._captureFromDOM=e=>{const r=i.call(t,e);return r.marks.forEach(e=>{var t;e.d=null!=(t=l.marks.get(e.realIndex))?t:e.d}),r};try{a=r.call(t,n)}finally{t._captureFromDOM=i}const s=t._snapshot;return!a||!s||t._ghost||s.pieceOut||s.pieceIn||(t._ghost=l.ghost()),a}}(e);const g=c.config.plotOptions.radialBar;if(e._ind=null!=(i=null==(l=e.cfg.radialBar)?void 0:l.indicator)?i:"needle"===g.shape?"needle":"arc","lanes"!==e._ind||"needle"!==g.shape||(null==(a=g.needle)?void 0:a.showValueArc)||(e._ind="needle"),!h.active&&!(null==(o=e._prev())?void 0:o.size))return;const f=c.config.tooltip;h.active&&!f.enabled&&null==e._tipUser&&m.isBrowser()&&(f.enabled=!0,e._tipOn=!0),se(e,t),function(e,t){const r=t.renderInnerDataLabels,n=t.printInnerLabels;t.renderInnerDataLabels=(n,l,i)=>{const a=r(n||t.dataLabelsGroup,l,i);return ye(e,t,l,-1,a),a},t.printInnerLabels=(r,l,i,a)=>{n(r,l,i,a),ye(e,t,r,a?+a.parentNode.getAttribute("rel")-1:-1)}}(e,t);const p=t.drawNeedle;t.drawNeedle=r=>{const n=p.call(t,r);return function(e,t,r){var n,l;const i=e.w,a=i.globals,s=i.highlightData.active,o=!a.dataChanged||!a.shouldAnimate,u=o||null==(n=e._prev())?void 0:n.get(de);if(!s&&!u)return;const c=s?null!=(l=e.cfg.fadeOpacity)?l:.2:1,h=o?c:u?u.f:1,d={d:null,f:c,c:!s};e._targets.set(de,d);const g=e=>{d.lf=e,e<1?r.node.setAttribute("opacity",String(e)):r.node.removeAttribute("opacity")},f=e.ctx.morphTypeChange,p=(null==f?void 0:f.isActive())?{delay:f.getSpeed(),speed:i.config.chart.animations.dynamicAnimation.speed}:t.needleMotion();p&&h!==c?(d.run=!0,e._tween(p.delay||0,p.speed,e=>g(B(h,c,e)),()=>d.run=!1,p.ease)):g(c);s&&m.isBrowser()&&Promise.resolve().then(()=>{var e;const t=i.dom.baseEl,n=null==t?void 0:t.querySelector(".apexcharts-radialbar-slice-0");n&&r.node.isConnected&&(X(n,r.node),null==(e=t.querySelector(".apexcharts-radialbar-hollow"))||e.setAttribute("pointer-events","none"))})}(e,t,n),n};const v=t.animatePaths;t.animatePaths=(r,n)=>{const l=s({},n);v.call(t,r,n),n.isTrack||(l.run=n.dur,be(e,t,r,l,v))},!0===(null==(u=e.ctx.morphTypeChange)?void 0:u.isActive())&&Promise.resolve().then(()=>{var r;e._render!==t||c.globals.isDestroyed||null==(r=c.dom.baseEl)||r.querySelectorAll(".apexcharts-radial-series .apexcharts-radialbar-area").forEach(r=>be(e,t,r.instance,null,v))})}function be(e,t,r,n,l){var i,a,u,c,d,g;const p=e.w,v=p.globals,b=e.cfg,y=p.highlightData,A=y.active,_=r.node,w=n?n.i:Number(_.getAttribute("j")),x=he+w,k=!n,S=!v.dataChanged||!v.shouldAnimate,M=e._prev(),$=S||null==M?void 0:M.get(x),E=p.config.plotOptions.radialBar,P=e._ind,D=_.getAttribute("stroke"),L=_.getAttribute("fill"),T=D&&"transparent"!==D?D:k&&L&&"none"!==L?L:null,C=0===w&&("needle"===P||!T),N=p.seriesData.series[w],z=A&&v.collapsedSeriesIndices.indexOf(w)<0&&null!=(a=null==(i=y.parts[w])?void 0:i[0])?a:null,R=t.startAngle,W=n?n.endAngle:t._arcEnd(N),Y=n?n.run:0,q=m.isBrowser()&&Y>0,Z=n&&+n.animBeginArr[w]||0,U=null!=(u=b.fadeOpacity)?u:.2,K=A&&!C&&!!T,Q={f:U,o:0},ee=n?n.size:Math.hypot(_.getAttribute("data:cx")-v.circleGeometry.cx,_.getAttribute("data:cy")-v.circleGeometry.cy);if("lanes"===P&&T)return function(e,t,r,n){var l,i,a,u,c,d,g;const{i:f,c:p,prev:v,mount:b,pv:y,whole:A,wholeEnd:_,run:w,anim:x,delayMs:k,size:S}=n,M=e.w,$=M.globals,E=e.cfg,P=M.config.plotOptions.radialBar,D=M.highlightData.active,L=r.node,T=!p,C=t.startAngle,O=D&&$.collapsedSeriesIndices.indexOf(f)<0?1:0,j=T?m.isBrowser()&&!!O:x&&!b,N=!T&&x&&b,z=T?0:j?null!=(l=null==v?void 0:v.s)?l:0:O,R=T?{delayMs:e.ctx.morphTypeChange.getSpeed(),speed:M.config.chart.animations.dynamicAnimation.speed}:{delayMs:k,speed:w};0===f&&function(e,t){var r;const n=null==(r=e._render)?void 0:r._hfLine,l=null==n?void 0:n.rec;if(!l||l.run||l.lf===l.f)return;const i=l.lf,a=()=>{var e,t;if(l.run=!1,l.f)return;l.done=!0;const r=null==(e=n.node)?void 0:e.previousSibling;null!=l.hold&&r&&r.textContent===l.pv&&(r.textContent=l.vt=l.hold),null==(t=n.node)||t.remove(),n.node=null};if(!t)return l.lf=l.f,_e(n),void a();l.run=!0,e._tween(t.delayMs,t.speed,e=>{l.lf=B(i,l.f,e),_e(n)},a,void 0,t.el)}(e,j?o(s({},R),{el:r}):null);if(!O&&!z)return;const W=null!=y?t._arcEnd(y):C,Y=_,q=O?W:Y;let Z=Y,U=q;T?U="baseline"===E.enter?C:Y:j?(Z=null!=(i=null==v?void 0:v.we)?i:I(p.prevEndAngle)?p.prevEndAngle:Y,U=null!=(a=null==v?void 0:v.e)?a:"baseline"===E.enter?C:Z):N&&(Z=U=C);const K=O?null!=(d=null==(c=null==(u=E.radialBar)?void 0:u.lanes)?void 0:c.opacity)?d:fe:1,Q=T?1:j?v?v.f:1:K,ee=T?t.getStrokeWidth({size:$.circleGeometry.r,series:M.seriesData.series}):Number(L.getAttribute("stroke-width")),te=L.getAttribute("stroke-opacity"),re=e=>{var t;const r=new h(M).drawPath({d:"",stroke:n.paint,strokeWidth:ee,fill:"none",strokeOpacity:H(L,"stroke-opacity"),strokeDashArray:null!=(t=L.getAttribute("stroke-dasharray"))?t:0,classes:`${pe} ${e}`});return r.node.setAttribute("aria-hidden","true"),G(L,r.node),r},ne=re("apexcharts-radialbar-highlight-whole"),le=re("apexcharts-radialbar-highlight-part");V(L,ne.node),V(ne.node,le.node),ne.node.setAttribute("pointer-events","none"),O&&W-Y>.01?X(L,le.node):le.node.setAttribute("pointer-events","none");null!=y&&(y>(null!=A?A:0)||y>("number"==typeof P.max?P.max:100))&&J(le.node,"apexcharts-highlight-overflow");const ie=M.seriesData.series.length,ae=function(e){var t,r;if(e._hfTracks)return e._hfTracks;const n=(e,t)=>{var r;return` ${null==(r=e.getAttribute)?void 0:r.call(e,"class")} `.includes(` ${t} `)},l=[...(null==(r=null==(t=e.w.dom.Paper)?void 0:t.node)?void 0:r.childNodes)||[]];let i=[];for(let e=l.length-1;e>=0&&!i.length;e--){const t=[...l[e].childNodes||[]].find(e=>n(e,"apexcharts-tracks"));t&&(i=[...t.childNodes].map(e=>[...e.childNodes].find(e=>n(e,"apexcharts-radialbar-area"))))}return e._hfTracks=i}(t)[P.inverseOrder?ie-1-f:f],se=ae&&[ae.getAttribute("d"),ae.getAttribute("stroke-width")],oe=se?(parseFloat(se[1])||0)/(ee||1):0;let ue=null;if(ae){ue=new h(M).drawPath({d:"",stroke:ae.getAttribute("stroke"),strokeWidth:0,fill:"none",strokeOpacity:null!=(g=ae.getAttribute("stroke-opacity"))?g:1,classes:`${F} apexcharts-radialbar-highlight-track`});const e=ae.getAttribute("filter");e&&ue.node.setAttribute("filter",e),ue.node.setAttribute("pointer-events","none"),ue.node.setAttribute("aria-hidden","true"),V(ae,ue.node)}const ce=S-ee/2,de=S+ee/2,ge=ie<2,ve=ge?Math.max(2,.12*ee):Math.max(1,Math.min(.08*ee,t.margin/3)),be=ge?0:Math.max(0,(3*ve-t.margin)/2),ye=Math.max(.5,(ee-ve)/2-be),Ae=(e,r)=>{const n=e-C;return n>.01?t.getPiePath({me:t,startAngle:C,angle:n===t.fullAngle?t.fullAngle-.01:n,size:r}):""},we=e=>{const r=t.trackStartAngle;let n=t.trackEndAngle;Math.abs(n)+Math.abs(r)>=360&&(n=360-Math.abs(t.startAngle)-.1);const l=n<r?t.fullAngle+n-r:n-r;return t.getPiePath({me:t,startAngle:r,angle:l===t.fullAngle?l-.01:l,size:e})},xe=(e,t,r)=>{e.setAttribute("d",t),e.setAttribute("stroke-width",String(r))},ke={d:null,c:!D,f:K,cx:p?p.centerX:$.circleGeometry.cx,cy:p?p.centerY:$.circleGeometry.cy};e._targets.set(he+f,ke);const Se=(e,t,r)=>{ke.s=e,ke.we=t,ke.e=r;const n=de-be*e,l=ce+e*(de-be-ye-ce),i=ce+be*e,a=i+e*ye;ke.mid=(l+a)/2,xe(ne.node,Ae(t,(l+n)/2),n-l),xe(le.node,a>i?Ae(r,(i+a)/2):"",a-i),ae&&(e?(xe(ae,we((l+n)/2),(n-l)*oe),xe(ue.node,we((i+a)/2),(a-i)*oe)):(xe(ae,se[0],se[1]),xe(ue.node,"",0)))},Me=[ne.node,le.node,null==ue?void 0:ue.node].filter(Boolean);let $e=!T;const Ee=()=>{$e=!0,L.setAttribute("stroke-opacity","0"),Me.forEach(e=>e.removeAttribute("opacity"))};$e?Ee():Me.forEach(e=>e.setAttribute("opacity","0"));Se(z,Z,U);let Pe=!1;(j||N)&&ne.animate(R.speed,R.delayMs).during(e=>{Pe||($e||Ee(),Se(B(z,O,e),B(Z,Y,e),B(U,q,e)))});if(e._fade(ne.node,{f:Q,o:0},{f:K,o:0},o(s({},R),{el:ne}),{attr:"stroke-opacity",anim:j,force:j,done:O?void 0:()=>{Pe=!0,Me.forEach(e=>e.remove()),ae&&xe(ae,se[0],se[1]),null==te?L.removeAttribute("stroke-opacity"):L.setAttribute("stroke-opacity",te),ke.s=0},rec:ke}),m.isBrowser()){const t=t=>{e._lane=[f,me(L,t,ke)]};["mouseover","mousemove","mousedown","touchstart","touchmove"].forEach(e=>L.addEventListener(e,t,!0))}}(e,t,r,{i:w,c:n,prev:$,mount:S,pv:z,whole:N,wholeEnd:W,run:Y,anim:q,delayMs:Z,size:ee,paint:T}),void(0===w&&xe(e,t,r,!1,z,S,k,n));const te=K&&null!=z?t._arcEnd(z):null,re=null!=te&&te-R>.01,ne=null!=(c=null==$?void 0:$.e)?c:null,le=!re&&null!=ne&&q,ie=le&&!K,ae=re?te:le?ie?W:R:null;let se=ae,oe=!1;null!=ae&&q&&!S&&(null!=ne?se=ne:$||"baseline"===b.enter?se=R:(oe=!0,se=I(n.prevEndAngle)?n.prevEndAngle:W));const ue=e=>{const r=e-R;return t.getPiePath({me:t,startAngle:R,angle:r===t.fullAngle?t.fullAngle-.01:r,size:ee})};let ce=null;if(null!=ae&&T){ce=new h(p).drawPath({d:"",stroke:T,strokeWidth:k?t.getStrokeWidth({size:v.circleGeometry.r,series:p.seriesData.series}):Number(_.getAttribute("stroke-width")),fill:"none",strokeOpacity:H(_,"stroke-opacity"),strokeDashArray:null!=(d=_.getAttribute("stroke-dasharray"))?d:0,classes:`${F} apexcharts-radialbar-highlight-part`});const e=ce.node;e.setAttribute("aria-hidden","true"),V(_,e),re&&z>("number"==typeof E.max?E.max:100)&&J(e,"apexcharts-highlight-overflow"),G(_,e),re&&te-W>.01?X(_,e):e.setAttribute("pointer-events","none"),n&&q&&!S?(e.setAttribute("d",ue(se)),l.call(t,ce,o(s({},n),{endAngle:ae,prevStartAngle:R,prevEndAngle:se,isTrack:!0}))):n?l.call(t,ce,o(s({},n),{endAngle:ae,dur:Y,isTrack:!0})):e.setAttribute("d",ue(ae))}const de=re&&te-W>.01?.75:0,ge=S?de:null!=(g=null==$?void 0:$.tk)?g:0;let ve=null;if(ce&&(de||ge&&q)){const e=Number(ce.node.getAttribute("stroke-width"))||0,t=n?n.centerX:v.circleGeometry.cx,r=n?n.centerY:v.circleGeometry.cy;ve=new h(p).drawPath({d:"",fill:"none",stroke:"#fff",strokeWidth:1,strokeDashArray:3,classes:`${F} apexcharts-highlight-edge apexcharts-radialbar-highlight-edge`});const l=ve.node;l.setAttribute("pointer-events","none"),l.setAttribute("aria-hidden","true"),l.setAttribute("stroke-opacity",String(ge)),V(ce.node,l);const i=n=>{const i=f.polarToCartesian(t,r,ee-e/2,n),a=f.polarToCartesian(t,r,ee+e/2,n);l.setAttribute("d",`M ${i.x} ${i.y} L ${a.x} ${a.y}`)},a=q?I(n.prevEndAngle)&&!S?n.prevEndAngle:R:W;i(a),a!==W&&ve.animate(Y,Z).during(e=>i(B(a,W,e)))}const be=[];ce&&k&&be.push(ce.node),ve&&k&&be.push(ve.node);const ye={d:null,e:null,f:K?U:1,c:!A};if(T&&(A||$)){e._targets.set(x,ye);const t=null!=se?se:0,l=null!=ae?ae:0;ce&&(ye.e=l),ce&&n&&q&&!S&&t!==l&&(ye.e=t,ce.animate(Y,Z).during(e=>null!=ye.e&&(ye.e=B(t,l,e))));const i=p.config.chart.animations.dynamicAnimation.speed;e._fade(_,S&&!k?K?Q:O:oe?j:$?{f:$.f,o:0}:O,ie?j:K?Q:O,k?{delayMs:e.ctx.morphTypeChange.getSpeed(),speed:i}:{delayMs:Z,speed:Y,el:r},{attr:"stroke-opacity",anim:k?m.isBrowser():q,force:!!ce&&(k||t!==l||ge!==de),also:e=>{ve&&(ye.tk=B(ge,de,e),ve.node.setAttribute("stroke-opacity",String(ye.tk))),be.forEach(t=>e<1?t.setAttribute("opacity",e):t.removeAttribute("opacity"))},land:ie?O:void 0,done:le||ve&&!de?()=>{le&&(null==ce||ce.remove(),ye.e=null),null==ve||ve.remove(),ye.tk=0}:void 0,rec:ye}),ce&&(ye.n=ce.node)}0===w&&xe(e,t,r,C,z,S,k,n)}function me(e,t,r){var n,l;const i=(null==(n=t.touches)?void 0:n[0])||t,a=null==(l=e.getScreenCTM)?void 0:l.call(e);if(!(a&&r.s>0))return"part";const s=i.clientX-a.e,o=i.clientY-a.f,u=a.a*a.d-a.b*a.c||1,c=(a.d*s-a.c*o)/u,h=(a.a*o-a.b*s)/u;return Math.hypot(c-r.cx,h-r.cy)>r.mid?"whole":"part"}function ye(e,t,r,n,l){var i,a,s;const o=e.w,u=o.globals;if("lanes"!==e._ind)return;const c=o.highlightData.active;let h=t._hfLine;if(!h){const n=!u.dataChanged||!u.shouldAnimate,l=n||null==(i=e._prev())?void 0:i.get("r:w"),s=c?we(e,r,-1):"",o=s?1:0,d=n||!m.isBrowser()?o:null!=(a=null==l?void 0:l.f)?a:0;if(h=t._hfLine={node:null,rec:null},!o&&!d)return;h.rec={d:null,c:!c,t:s||(null==l?void 0:l.t)||"",f:o,lf:d,o0:d,pv:o?null:null==l?void 0:l.vt},e._targets.set("r:w",h.rec)}const d=h.rec;if(l){if(h.node=null,!d||!d.lf&&d.done)return;const t=l.node.childNodes,n=r.value.show?t[t.length-1]:null;if(!n)return;null==d.pv||d.done||(d.hold=n.textContent,n.textContent=d.pv),d.vt=n.textContent;const i=Ae(o,r,n,(c?we(e,r,-1):"")||d.t);l.add(i),h.node=i.node}else if(c){const t=we(e,r,n),l=null==(s=o.dom.baseEl)?void 0:s.querySelector(".apexcharts-datalabel-value");!h.node&&t&&n>-1&&l&&(h.node=Ae(o,r,l,t).node,l.parentNode.appendChild(h.node)),h.node&&(h.node.textContent=t),d&&l&&(d.vt=l.textContent)}_e(h)}function Ae(e,t,r,n){const l=parseFloat(t.value.fontSize)||14,i=Math.max(11,Math.round(l/2)),a=new h(e).drawText({x:+r.getAttribute("x"),y:+r.getAttribute("y")+l/4+4+.8*i,text:n,textAnchor:"middle",fontSize:i+"px",fontFamily:t.value.fontFamily,fontWeight:400,foreColor:r.getAttribute("fill"),cssClass:"apexcharts-datalabel-whole"});return a.node.setAttribute("aria-hidden","true"),a}function _e(e){var t,r,n;null==(n=e.node)||n.setAttribute("fill-opacity",String(.6*(null!=(r=null==(t=e.rec)?void 0:t.lf)?r:1)))}function we(e,t,r){var n,l;const i=e.w,a=e.cfg.dataLabels||{},u=i.seriesData.series,c=i.highlightData.parts.map(e=>e[0]),h=r>-1?r:u.length<2?0:-1,d=(e,t)=>{const r=String(e(t)),n=String(e(o(s({},t),{lane:"whole"})));return n!==r?n:"/ "+r};if(h>-1)return"part"===(null!=(n=a.value)?n:"part")&&I(c[h])?d(e=>t.value.formatter(u[h],i,e),{highlight:W(c[h],u[h])}):"";if(!t.total.show||"part"!==(null!=(l=a.total)?l:"part")||!t.total.formatter||!c.some(I))return"";const g=e=>e.reduce((e,t)=>e+(I(t)?t:0),0);return d(e=>t.total.formatter(i,e),{highlight:W(g(c),g(u))})}function xe(e,t,r,n,l,i,a,s){var o,u,c;const d=e.w,g=d.globals,f=e.cfg,p=d.highlightData.active,v=i||null==(o=e._prev())?void 0:o.get("r:n"),y=n&&null!=l?t._angleAtValue(l):null;if(null==y&&!v)return;const A=d.config.plotOptions.radialBar,_=a?null:"needle"===A.shape?t.needleMotion():s&&s.run>0&&m.isBrowser()?{speed:s.run,delay:+s.animBeginArr[0]||0}:null;let w,x=1,k=y,S=1;const M=null==y;if(M){if(!_)return;w=v.ang,x=v.op,k=p&&n?t.startAngle:t._angleAtValue(d.seriesData.series[0]),S=0}else _?i?w=t.startAngle:v?(w=v.ang,x=v.op):(w=t._angleAtValue(g.dataChanged?g.previousPaths[0]:d.seriesData.series[0]),x=0):w=k;const $=g.circleGeometry,E=(null==(u=f.radialBar)?void 0:u.needle)||{},P=A.needle||{},D={};ge.forEach(e=>{var t;return D[e]=null!=(t=E[e])?t:P[e]});const L=null!=(c=E.color)?c:g.colors[0],{path:T,cx:C,cy:O}=t.needlePath({size:$.r,centerX:$.cx,centerY:$.cy,series:d.seriesData.series},D),j=new h(d),N=j.group({class:"apexcharts-gauge-needle-highlight"});M||!m.isBrowser()?N.node.setAttribute("pointer-events","none"):X(r.node,N.node),N.node.setAttribute("aria-hidden","true"),N.node.setAttribute("transform-origin",`${C} ${O}`),N.add(j.drawPath({d:T,stroke:L,strokeWidth:0,fill:L,classes:`${F} apexcharts-gauge-needle-highlight-shape`})),null!=l&&l>("number"==typeof A.max?A.max:100)&&J(N.node,"apexcharts-highlight-overflow");const I=r.node.parentNode.parentNode;I.insertBefore(N.node,I.childNodes[0]||null);const z=()=>{const e=[...I.childNodes].filter(e=>e!==N.node),t=e.findIndex(e=>{var t;return` ${null==(t=e.getAttribute)?void 0:t.call(e,"class")} `.includes(" apexcharts-radialbar-hollow ")});return!(t<0||N.node.parentNode!==I)&&(I.insertBefore(N.node,e[t+1]||null),!0)};z()||Promise.resolve().then(z);const H={d:null,ang:w,op:x,c:!p};e._targets.set("r:n",H);const R=(e,t)=>{H.ang=e,H.op=t,N.node.setAttribute("transform",`rotate(${e})`),t<1?N.node.setAttribute("opacity",String(t)):N.node.removeAttribute("opacity")},W=e=>R(w+(k-w)*e,B(x,S,e)),Y=()=>{H.run=!1,M?N.remove():R(k,S)};if(a)return R(k,0),void e._tween(e.ctx.morphTypeChange.getSpeed(),d.config.chart.animations.dynamicAnimation.speed,e=>R(k,e),Y);if(!_||w===k&&x===S)return W(1),void Y();H.run=!0,W(0);const q=_;if(q.ease){const r=performance.now(),n=l=>{if(g.isDestroyed||e._render!==t)return;const i=Math.max(0,Math.min(1,(l-r)/q.speed));W(q.ease(i)),i<1?b.requestAnimationFrame(n):Y()};b.requestAnimationFrame(n)}else N.animate(q.speed,q.delay||0).during(e=>W(e)).after(Y)}const ke="apexcharts-highlight-tile",Se="apexcharts-highlight-overflow",Me=/^url\(/i;function $e(e,t){var r,n,l;const i=e.w,a=i.globals,o=i.highlightData;if(!o)return;e._beginRender(t,"t:"),e._tmDefs.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),e._tmDefs=[];const u=e._tiles=new Map,c=o.active,d=i.seriesData.series;!function(e,t,r){const n=l=>{var i,a;const s=l.children;if(!s||!s.length){const e=null==(i=null==t?void 0:t[l._si])?void 0:i[l._di];return l.highlight=t?W(I(e)?e:null,null==(a=r[l._si])?void 0:a[l._di]):void 0,l.highlight}let o=null;if(s.forEach(e=>{const t=n(e);!t||null==t.value||t.value*(t.total||0)<0||(o=(o||0)+Math.abs(t.value))}),!t)return l.highlight=void 0;const u=e._subtreeArea(l),c=null!=o&&u?o/u:null;return l.highlight={value:o,total:u,share:c,overflow:null!=c&&c>1},l.highlight};(e.roots||[]).forEach(n)}(t,c?o.parts:null,d);const g=e._prev();if(!c&&!(null==g?void 0:g.size))return;const f=new Map;null==g||g.forEach(e=>f.set(e.ij,e)),null==(r=a.prevTreemapView)||r.querySelectorAll(`.${ke}`).forEach(e=>{e.classList.remove(ke,Se),e.removeAttribute("data:hl-share")});const p=e.cfg,v=c?null!=(n=p.fadeOpacity)?n:.2:1,b=!0===(null==(l=e.ctx.morphTypeChange)?void 0:l.isActive()),m=t.dynamicAnim,y=b||!!(a.dataChanged&&m.enabled&&a.shouldAnimate),A=b?e.ctx.morphTypeChange.getSpeed():m.speed,_=i.config.chart.foreColor;let w=!1;c&&function(e,t){const r=t._showParentTooltip;t._showParentTooltip=(n,l)=>{var i,a,s;r.call(t,n,l);const o=l.highlight,u=e.cfg.tooltip||{};if(null==(null==o?void 0:o.value)||!1===u.show||"function"==typeof(null==(a=null==(i=e.w.config.plotOptions.treemap.parents)?void 0:i.tooltip)?void 0:a.formatter))return;const c=null==(s=t._tip())?void 0:s.querySelector(".apexcharts-tooltip-text-y-value");if(!c)return;let h=`/ ${t._formatValue(o.total,l._si)}`;u.share&&o.total&&(h+=` \xb7 ${Math.round(100*o.share)}%`),c.innerHTML=`${t._formatValue(o.value,l._si)} <span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">${h}</span>`}}(e,t);let x=null;const k=t.helpers.calculateDataLabels;t.helpers.calculateDataLabels=e=>{const r=k.call(t.helpers,e),n=x=u.get(e.i+"|"+e.j);if(r&&n){const e=function(e){const t=[];return function e(r){"text"===String(r.tagName||r.nodeName).toLowerCase()&&t.push(r),Array.from(r.childNodes||[]).forEach(e)}(e),t}(r.node);n.lb=e.filter(e=>/^(#fff|#ffffff|white)$/i.test(e.getAttribute("fill")||""));const t=e[0],[,l,,i]=n.r;if(t&&i>l){const e=parseFloat(t.getAttribute("font-size"))||12;n.need=(i-parseFloat(t.getAttribute("y"))+.9*e)/(i-l)}Ee(n,_)}return r};const S=t.rotateToFitLabel;return t.rotateToFitLabel=(...e)=>{S.apply(t,e);const r=x;if(x=null,(null==r?void 0:r.lb)&&/rotate/.test(e[0].node.getAttribute("transform")||"")){const t=new h(i).getTextRects(e[2],String(e[1])).width;r.need=.5+t/2/(e[6]-e[4]),r.tone=null,Ee(r,_)}},(t,r,n,l,h)=>{var m,x,k,S;const M="t:"+h._key,$=r+"|"+n,E=null==(m=d[r])?void 0:m[n],P=y?(null==g?void 0:g.get(M))||(E?void 0:f.get($)):void 0;if(!c&&!P)return;if(Me.test(l))return void(c&&!w&&(w=!0,e._warn("fill","treemap tiles with a gradient, pattern or image fill are drawn without their parts.")));const D=c?null==(x=o.parts[r])?void 0:x[n]:null;if(!E&&!P)return;const L=I(D)&&E?D/E:null;let T=c?{s:null==L||L<0?0:Math.min(L,1),f:v,c:l}:{s:1,f:0,c:l},C=T;if(P)C={s:P.s,f:P.f,c:P.col},!E&&c&&(T=s({},C));else if(y){const e=null==(k=a.previousPaths[r])?void 0:k[n];(b||(null==(S=null==e?void 0:e.rect)?void 0:S.width)>0)&&(C="baseline"===p.enter?{s:0,f:1,c:T.c}:{s:1,f:0,c:T.c},b||!e.fill||Me.test(e.fill)||(C.c=e.fill))}const F=C.s!==T.s||C.f!==T.f||C.c!==T.c;if(!c&&!F)return;const O=i.dom.Paper.gradient("linear",e=>{for(let t=0;t<4;t++)e.stop(0,l,1)});O.from(0,1).to(0,0),e._tmDefs.push(O.node);const j=Array.from(O.node.childNodes),N=t.node;c&&(N.setAttribute("class",`${N.getAttribute("class")||""} ${ke}${null!=L&&L>1?" "+Se:""}`.trim()),N.setAttribute("data:hl-share",null==L?"":String(L)));const z={s:T.s,f:T.f,col:T.c,c:!c,ij:$,run:!1,base:l,r:h.rect,lb:null,need:.5,tone:null};e._targets.set(M,z),u.set($,z);const H=function(e,t){const r=Pe(e),n=Pe(t);return e!==t&&r&&n?e=>e>=1?t:`rgba(${[0,1,2].map(t=>Math.round(B(r[t],n[t],e))).join(",")},${+B(r[3],n[3],e).toFixed(3)})`:r=>r>=1?t:e}(C.c,T.c),R=e=>{z.ls=e.s,z.lf=e.f,z.lc=e.c,j.forEach((t,r)=>{t.setAttribute("offset",String(0===r?0:3===r?1:e.s)),t.setAttribute("stop-color",e.c),t.setAttribute("stop-opacity",String(r<2?1:e.f))}),Ee(z,_)},W=()=>{var e;z.run=!1,R(T),!c&&N.isConnected&&(N.setAttribute("fill",l),null==(e=O.node.parentNode)||e.removeChild(O.node))};if(y&&F){z.run=!0,R(C);let t=null,r=!1;const n={finish(){e._live.delete(n),c?R({s:z.ls,f:t=T.f,c:z.lc}):(r=!0,W())}};e._hold(n),O.animate(A,0).during(e=>r||R({s:B(C.s,T.s,e),f:null!=t?t:B(C.f,T.f,e),c:H(e)})).after(()=>{e._live.delete(n),r||W()})}else R(T);return O.url()}}function Ee(e,t){var r;const n=(null!=(r=e.ls)?r:e.s)>=e.need-1e-9;e.lb&&e.tone!==n&&(e.tone=n,e.lb.forEach(e=>{null==e._apxFill&&(e._apxFill=e.getAttribute("fill")),e.setAttribute("fill",n?e._apxFill:t)}))}function Pe(e){var t;const r=String(e).trim();let n=/^#([\da-f]+)$/i.exec(r);if(n){let e=n[1];return e.length<5&&(e=e.replace(/./g,"$&$&")),6!==e.length&&8!==e.length?null:[0,2,4,6].map(t=>t<e.length?parseInt(e.slice(t,t+2),16)/(6===t?255:1):1)}if(n=/^rgba?\(([^)]*)\)$/i.exec(r),!n)return null;const l=n[1].split(/[\s,/]+/).filter(Boolean).map(parseFloat);return l.length>=3&&l.every(isFinite)?[l[0],l[1],l[2],null!=(t=l[3])?t:1]:null}["prevHighlightParts","prevHighlightLabels"].forEach(e=>{-1===g.HELD.indexOf(e)&&g.HELD.push(e)});const De="apexcharts-flip-x",Le="apexcharts-flip-y",Te="apexcharts-flip-held",Ce="apexcharts-highlight-label-exit",Fe="b:",Oe={f:1,o:0},je={f:1,o:1},Ne={f:0,o:1};function Ie(e){if(!e)return!1;if(Array.isArray(e.highlightData))return!0;const t=e.data;if(!Array.isArray(t))return!1;for(let e=0;e<t.length;e++){const r=t[e];if(z(r)){if("highlight"in r)return!0}else if(null!=r)return!1}return!1}function Be(e,t,r){return z(e)&&"highlight"in e?e.highlight:t?t[r]:null}function ze(e,t){let r=1/0,n=-1/0;return String(e).replace(/([MLQCT])([^MLQCTZz]*)/g,(e,l,i)=>{const a=i.trim().split(/[\s,]+/).filter(Boolean).map(Number);for(let e=t;e<a.length;e+=2)a[e]<r&&(r=a[e]),a[e]>n&&(n=a[e]);return""}),[r,n]}function He(e,t){let r=-1,n=1/0;return e.forEach((e,l)=>{null!=e&&Math.abs(e-t)<n&&(n=Math.abs(e-t),r=l)}),r}function Re(e){const t=e.previousElementSibling;return t&&"rect"===t.tagName.toLowerCase()?[t,e]:[e]}function We(e,t){return null!=t&&0!==t&&e/t>1}function Ye(e,t){const r=z(e)?e.y:Array.isArray(e)?e[1]:e;return"number"==typeof r?r:null!=t?t:null}function qe(e,t,r){return e?e.replace(/([MLQCT])([^MLQCTZz]*)/g,(e,r,n)=>{const l=n.trim().split(/[\s,]+/).filter(Boolean).map(Number);for(let e=0;e+1<l.length;e+=2)l[e]=t(l[e]);return`${r} ${l.join(" ")} `}):e}c.default.registerFeatures({highlightFilter:class{constructor(e,t){var r,n,l,i;this.w=e,this.ctx=t,this._targets=new Map,this._render=null,this._seen=new Set,this._seriesEls=new Map,this._cu=null,this._stk=new Map,this._stkPrev=[],this._br=null,this._held=!1,this._warned=new Set,this._rows=[],this._level=null,this._live=new Set,this._sig="",this._drawnSig="",this._ride=null,this._tiles=null,this._tmDefs=[],this._tipUser=null==(n=null==(r=t.opts)?void 0:r.tooltip)?void 0:n.enabled,this._tipOn=!1,this._ind=void 0,this._lane=null,this._onRender=()=>this.afterRender(),null==(l=t.events)||l.addEventListener("mounted",this._onRender),null==(i=t.events)||i.addEventListener("updated",this._onRender)}get cfg(){return this.w.config.highlightFilter||{}}isActive(){var e;return!!(null==(e=this.w.highlightData)?void 0:e.active)}canDrawParts(){const e=this.w,t=e.config,r=t.chart.type;return e.globals.axisCharts?!(e.globals.comboCharts||"bar"!==r&&"line"!==r&&"area"!==r&&"treemap"!==r||e.rangeData.seriesRange.length||"histogram"===t.chart.requestedType):ie.indexOf(r)>-1||"radialBar"===r}callerCarriesParts(){const e=this.w;return e.globals.axisCharts?(e.config.series||[]).some(Ie):Array.isArray(this.cfg.data)||K(e.config.series||[]).some(e=>"highlight"in e)}valueAt(e,t){var r,n,l;const i=null==(l=null==(n=null==(r=this.w.highlightData)?void 0:r.parts)?void 0:n[e])?void 0:l[this.w.globals.axisCharts?t:0];return null==i?null:i}_warn(e,t){this._warned.has(e)||(this._warned.add(e),console.warn("ApexCharts highlightFilter: "+t))}parse(){var e,t,r;const n=this.w,l=n.config,i=this.cfg,a=l.series||[],s=n.seriesData.series||[];if(!n.globals.axisCharts)return this._parseCircle();const o=!!l.chart.stacked,u=l.chart.type,c="bar"===u,h=function(e,t){const r=e.w.globals;if("treemap"!==t||!r.treemapRoots)return!1;const n=r.treemapRawSeries||[];n.some(e=>Array.isArray(null==e?void 0:e.highlightData))&&e._warn("nested","on a nested treemap put the part on each leaf as { x, y, highlight }; highlightData is ignored.");const l=e=>z(e)&&Array.isArray(e.children)&&e.children.length>0&&("highlight"in e||e.children.some(l));return n.some(e=>((null==e?void 0:e.data)||[]).some(l))&&e._warn("parent","a parent's highlight is ignored: parents add up their leaves' parts."),!0}(this,u),d=re(n);let g=!1;for(let t=0;t<a.length;t++)if(h?Q({data:null==(e=a[t])?void 0:e.data}):Ie(a[t])||d&&ne(n,t)){g=!0;break}let f=n.globals.axisCharts&&this.canDrawParts();g&&!f&&this._unsupported();const p=(n.globals.seriesYAxisMap||[]).map((e,t)=>e&&e.length?t:-1).filter(e=>e>-1);g&&f&&o&&(p.length>1||p.some(e=>{var t;return null==(t=l.yaxis[e])?void 0:t.logarithmic}))&&(f=!1,this._warn("stack","parts are not drawn on a stacked chart with more than one y axis or a logarithmic y axis."));const v=!(!1===i.enabled||!g||!f);if(!v)return void this._inactive(f);const b=[];let m=!1,y=!1;const A=n.globals;for(let e=0;e<s.length;e++){const t=a[e]||{},r=Array.isArray(t.data)?t.data:[],l=!h&&Array.isArray(t.highlightData),i=h?null:l?t.highlightData:d?ne(n,e):null,o=A.collapsedSeriesIndices.indexOf(e)>-1||A.ancillaryCollapsedSeriesIndices.indexOf(e)>-1;i&&!o&&i.length!==r.length&&(l?m=!0:y=!0);const u=[],c=s[e]?s[e].length:0;for(let e=0;e<c;e++){const t=Be(r[e],i,e);u.push(I(t)?o?0:t:null)}b.push(u)}v&&m&&this._warn("length","highlightData and data differ in length; the extra entries are ignored and the missing ones read as null."),v&&y&&this._warn("plugged-length","a plugin registered highlight parts that do not line up with the series data; the extra entries are ignored and the missing ones read as null.");const _=a.some(e=>Array.isArray(null==e?void 0:e.highlightData));_&&(null==(t=l.chart.dataReducer)?void 0:t.enabled)&&this._warn("reducer","highlightData cannot follow chart.dataReducer; put the part on each point as { x, y, highlight } instead."),_&&(null==(r=l.chart.streaming)?void 0:r.enabled)&&this._warn("stream","highlightData cannot follow chart.streaming; put the part on each point as { x, y, highlight } instead.");const w=v&&"clamp"!==i.axis&&"treemap"!==u&&!l.plotOptions.bar.isFunnel&&!(o&&"100%"===l.chart.stackType);let x=null;if(o&&c)x=(e,t)=>this._barKey(e,t);else if(o){const e=n.seriesData.seriesX;x=(t,r)=>{var l;return String(n.axisFlags.isXNumeric?null==(l=e[t])?void 0:l[r]:r)}}const k=w?this._runningExt(b,x,c):null;this._publish(b,k)}_unsupported(){const e=this.w.config.chart;this._warn("type",`parts are not drawn on this chart (type "${e.requestedType||e.type}"). Supported: column, bar, line and area (stacked too), funnel, pie, donut, polarArea, radialBar, gauge and treemap.`)}_inactive(e){e||(this._targets=new Map),this.w.highlightData={active:!1,parts:[],ext:null,capture:()=>this.capture()},this._sig="",this._rows=[]}_parseCircle(){const e=this.w,t=e.config,r=this.cfg,n=e.globals,l=(e.seriesData.series||[]).length,i=K(t.series);let a=i.some(e=>"highlight"in e);a&&i.length!==l&&(this._warn("points","per-point highlight values do not line up with the slices; use highlightFilter.data instead."),a=!1);let s=Array.isArray(r.data)?r.data:null;s&&s.length!==l&&(this._warn("length",`highlightFilter.data has ${s.length} values for ${l} slices; it is ignored until they match.`),s=null),s&&s.some(e=>Array.isArray(e))&&(s.some(e=>Array.isArray(e)&&1!==e.length)?(this._warn("rows","highlightFilter.data takes one value per slice (or ring); a row of several values is ignored."),s=null):s=s.map(e=>Array.isArray(e)?e[0]:e));const o=t.chart.type,u=ie.indexOf(o)>-1||"radialBar"===o,c=a||!!s;if(c&&!u&&this._unsupported(),!1===r.enabled||!c||!u)return void this._inactive(u);const h=[];for(let e=0;e<l;e++){const t=a?i[e]:null,r=t&&"highlight"in t?t.highlight:s?s[e]:null;h.push([I(r)?n.collapsedSeriesIndices.indexOf(e)>-1?0:r:null])}this._publish(h,null)}_publish(e,t){const r=this.w.globals;this.w.highlightData={active:!0,parts:e,ext:t,capture:()=>this.capture()};const n=this._rows,l=[];for(let t=0;t<e.length;t++){const i=r.collapsedSeriesIndices.indexOf(t)>-1||r.ancillaryCollapsedSeriesIndices.indexOf(t)>-1;l.push(i&&t<n.length?n[t]:e[t].join(","))}this._rows=l,this._sig="#"+l.join("|")}capture(){const e=this.w.globals,t=new Map;this._targets.forEach((e,r)=>{var n,l,i,a,u,c,h;if(e.c&&!e.run)return;const d=e.n,g=!!(null==d?void 0:d.isConnected);t.set(r,o(s({},e),{d:g&&d.getAttribute("d")||e.d,a:(null==(n=e.m)?void 0:n.isConnected)&&e.m.getAttribute("d")||e.a,flip:g?d.classList.contains(Le)||d.classList.contains(De):e.flip,f:null!=(l=e.lf)?l:e.f,o:null!=(i=e.lo)?i:e.o,s:null!=(a=e.ls)?a:e.s,col:null!=(u=e.lc)?u:e.col,al:null!=(c=e.la)?c:e.al,k:null!=(h=e.lk)?h:e.k,n:null,m:null,g:null,lb:null}))}),e.prevHighlightParts=t,e.prevHighlightLabels=this._captureLabels(),this._targets=new Map}_prev(){return this.w.globals.prevHighlightParts}_animates(){const e=this.ctx.renderer;return(!e||!e.kind||"svg"===e.kind)&&this._animatesUpdate()&&!!this.w.globals.shouldAnimate}_animatesUpdate(){const e=this.w,t=e.config.chart.animations;return!(!(m.isBrowser()&&t.enabled&&t.dynamicAnimation.enabled&&e.globals.dataChanged)||p())}_tween(e,t,r,n,l,i){const a=this.w,s=l||function(e){var t,r;const n=e.config.chart.animations;return y(null!=(r=null==(t=n.dynamicAnimation)?void 0:t.easing)?r:n.easing)}(a),o=this._live;let u=!1;const c={finish(){u||(u=!0,o.delete(c),r(1),n&&n())}};this._hold(c);const h=performance.now()+e,d=e=>{if(u)return;if(a.globals.isDestroyed)return u=!0,void o.delete(c);const n=Math.max(0,Math.min(1,(e-h)/t));r(s(n)),n<1?b.requestAnimationFrame(d):c.finish()};r(0),i?i.animate(t,e).during(e=>u||r(e)).after(()=>c.finish()):b.requestAnimationFrame(d)}_hold(e){const t=this._live,r=this.w.globals;t.add(e),r.highlightTween={finish:()=>Array.from(t).forEach(e=>e.finish())}}bar(e,t){var r,n,l,i,a,o,u,c;const h=this.w,d=h.highlightData;if(!d)return;this._render!==e&&this._beginRender(e,Fe);const g=this._prev(),f=d.active;if(!f&&!(null==g?void 0:g.size))return;const{j:p,realIndex:v}=t,b=Fe+`${v}::${e._keys(v)[p]}`;this._seen.add(b);const m=null==g?void 0:g.get(b),y=f?null==(r=d.parts[v])?void 0:r[p]:null;if(!f&&!m)return;const A=this.cfg,_=f?null!=(n=A.fadeOpacity)?n:.2:1,w=null==(l=h.seriesData.series[v])?void 0:l[p],x=!!h.config.chart.stacked,k=f&&x?this._stackGeometry(e,t,y,w,m):null==y?null:this._barGeometry(e,t,y,w),S={paint:(r,n)=>this._paintBar(t,r,n,{key:b,prev:m,geo:k,fadeTo:_,active:f,whole:w,bar:x?e:null})};if(f){const e={};"part"===(null!=(a=null==(i=A.dataLabels)?void 0:i.value)?a:"part")&&Object.assign(e,null==y?{hide:!0}:s({val:null!=(o=null==k?void 0:k.val)?o:y},null==k?void 0:k.label)),x&&"part"===(null!=(c=null==(u=A.dataLabels)?void 0:u.total)?c:"part")&&(e.total=k.total(null!=e.val?e.val<0:w<0)),S.label=e}return S}_beginRender(e,t){var r;this._render=e,this._targets=new Map,this._seen=new Set,this._seriesEls=new Map,this._cu=new d(this.w),this._stk=new Map,this._stkPrev=[],this._br=null,this._held=!1,t===Fe&&!this.w.config.chart.stacked&&(null==(r=this._prev())?void 0:r.size)&&Promise.resolve().then(()=>this._orphans())}_orphans(){const e=this.w,t=this._prev();t&&!e.globals.isDestroyed&&this._animates()&&t.forEach((t,r)=>{var n;if(this._seen.has(r)||0!==r.indexOf(Fe))return;const l=r.slice(2),i=this._seriesEls.get(l.slice(0,l.indexOf("::")));if(!i)return;const a=Array.from(i.querySelectorAll(".apexcharts-bar-ghost")).find(e=>e.getAttribute("data:ghostKey")===l);if(!a)return;if(a.setAttribute("fill-opacity",String(t.f)),!t.d)return;const s=new h(e,this.ctx).drawPath({d:t.d,stroke:"none",strokeWidth:0,fill:R(a.getAttribute("fill"))[0],fillOpacity:null!=(n=t.al)?n:1,classes:`${F} apexcharts-highlight-ghost`}).node;s.setAttribute("pointer-events","none"),s.setAttribute("clip-path",a.getAttribute("clip-path")||""),a.after(s);const o=a.style.transformOrigin||"",u=/^(left|right)/.test(o),c=parseFloat(a.getAttribute("data:ghostEdge")||""),[d]=ze(t.d,u?0:1),g=s.style;g.transformBox="fill-box",g.transformOrigin=isFinite(c)?u?c-d+"px 50%":`50% ${c-d}px`:o;const f=()=>{a.parentNode&&!e.globals.isDestroyed?(g.transform=a.style.transform,g.opacity=a.style.opacity,b.requestAnimationFrame(f)):s.remove()};f()})}_barGeometry(e,t,r,n){const l=this.w,{j:i,realIndex:a,translationsIndex:s,paths:o}=t,u=e.barHelpers,c=u.getStrokeWidth(t.i,i,a);if(e.isFunnel){const e=n?Math.min(Math.abs(r/n),1):0,t=l.layout.gridWidth/2;return{pathTo:qe(o.pathTo,r=>t+(r-t)*e),base:qe(o.pathTo,()=>t),overflow:!1}}const h=l.config.yaxis[l.globals.seriesYAxisReverseMap[a]],d=(null==h?void 0:h.logarithmic)&&!l.globals.invalidLogScale&&this._cu?Math.max(0,this._cu.getLogValAtSeriesIndex(r,a)):r;if(e.isHorizontal){const e=t.zeroW,l=u.getXForValue(d,t.zeroW),s=this._rect(u,{a:o.barYPosition,len:o.barHeight,v1:e,v2:l,strokeWidth:c,realIndex:a,j:i,dir:d>=0?1:-1,horizontal:!0});return{pathTo:s.pathTo,base:s.base,overflow:We(r,n),label:{x:l,barWidth:Math.abs(l-e)}}}const g=t.zeroH,f=u.getYForValue(d,t.zeroH,s),p=this._rect(u,{a:o.barXPosition,len:o.barWidth,v1:g,v2:f,strokeWidth:c,realIndex:a,j:i,dir:d>=0?1:-1,horizontal:!1});return{pathTo:p.pathTo,base:p.base,overflow:We(r,n),label:{y:f,barHeight:Math.abs(f-g)}}}_rect(e,t){const r=((Array.isArray(t.strokeWidth)?t.strokeWidth[t.realIndex]:t.strokeWidth)||0)/2,n=t.v2-t.v1;if(Math.abs(n)<2*r){const l=t.v1+n/2,i=r*t.dir*(e.barCtx.isReversed?-1:1)*(t.horizontal?-1:1);t=o(s({},t),{v1:l+i,v2:l-i})}return e.barRect(t)}_stackGeometry(e,t,r,n,l){var i,a;const s=this.w,{j:o,realIndex:u,translationsIndex:c,paths:h}=t,d=e.barHelpers,g=e.isHorizontal,p=g?t.zeroW:t.zeroH;this._br||(this._br=d.createBorderRadiusArr(((null==(i=s.highlightData)?void 0:i.parts)||[]).map(e=>e.map(e=>null!=e?e:0))),f.isSafari()&&(this._br=this._br.map(e=>e.map(()=>"none"))));const v=this._br,b=this._barKey(u,o);let m=this._stk.get(b);m||(m={p:p,n:p,raw:0,any:!1},this._stk.set(b,m));const y="100%"===s.config.chart.stackType,A=s.seriesData.stackedSeriesTotals[o],_=null==r?null:y?A?100*r/A:0:r,w=null!=_?_:0,x=null!=_?_<0:null!=(null==l?void 0:l.s)?l.s<0:n<0,k=(e,t)=>g?d.getXForValue(e,t):d.getYForValue(e,t,c);let S=x?m.n:m.p,M=k(w,S);x?m.n=M:m.p=M,null!=r&&(m.raw+=r,m.any=!0);const $=m.raw,E=m.any,P={p:m.p,n:m.n};let D=!1;if(y){const e=k(100,p),t=k(-100,p),r=Math.min(e,t),n=Math.max(e,t),l=e=>Math.min(n,Math.max(r,e));D=l(M)!==M,S=l(S),M=l(M),P.p=l(P.p),P.n=l(P.n)}const L=d.arrBorderRadius;let T;d.arrBorderRadius=v;try{T=this._rect(d,{a:g?h.barYPosition:h.barXPosition,len:g?s.globals.barHeight:s.globals.barWidth,v1:S,v2:M,strokeWidth:g?d.getStrokeWidth(t.i,o,u):e.strokeWidth,realIndex:u,j:o,dir:x?-1:1,horizontal:g})}finally{d.arrBorderRadius=L}return{pathTo:null==r?null:T.pathTo,square:T.squarePathTo,base:T.base,flip:null!=r&&e.cornerFlip(null==(a=v[u])?void 0:a[o],w),s:x?-1:1,overflow:D,val:_,label:g?{x:M,barWidth:Math.abs(M-S)}:{y:M,barHeight:Math.abs(M-S)},total:e=>!!E&&{val:$,edge:e?P.n:P.p}}}_barKey(e,t){var r;const n=this.w;return n.labelData.seriesGroupIndex[e]+"|"+(n.axisFlags.isXNumeric?null==(r=n.seriesData.seriesX[e])?void 0:r[t]:t)}line(e,t,r,n,l,i,a){var u,c;const h=this.w,d=h.highlightData;if(!d||"line"!==t&&"area"!==t)return;this._render!==e&&this._beginRender(e,"l:");const g=this._prev(),f=d.active;if(!f&&!(null==g?void 0:g.size))return;const p="l:"+l,v=null==g?void 0:g.get(p);if(!f&&!v)return;const b=h.globals,m=this._animates(),A="area"===t,_=f&&d.parts[l]||[],w=_.some(e=>null!=e),x=f&&e._shapeOnly,k=(e,t)=>e&&(e._cmd?e._cmd[t]:e.node.getAttribute(t)),S=e.marks||[],M=A?S.find(e=>"none"!==k(e,"fill")):null,$=S.find(e=>e!==M),[E,P]=M&&h.config.chart.stacked?R(k(M,"fill")):[M&&k(M,"fill"),1],D=S.concat(A?S.filter(e=>e!==M&&!e._cmd).map(e=>e.node.nextElementSibling).filter(e=>/#forecastMask/.test((null==e?void 0:e.getAttribute("clip-path"))||"")).map(e=>({node:e})):[]),T=f&&!x&&(w||h.config.chart.stacked)?this._lineBuild(e,t,r,n,l,i,this._partRow(_,n,l)):null;let F=x?{d:a.linePaths.join(" "),a:a.areaPaths.join(" ")}:w?{d:T.linePaths.join(" "),a:T.areaPaths.join(" "),num:T.numericXY}:null;const O=!F&&!!(null==v?void 0:v.d)&&m,j=f&&m&&(O||F&&!(null==v?void 0:v.d)&&(v||"baseline"===this.cfg.enter))?this._lineBase(e,t,r,n,l,i,w?_:null):null;T&&h.config.chart.stacked&&(this._swap(e,()=>e._recordStackTops(l,T.yArrj,T.S[n])),this._stkPrev.push(T.yArrj)),O&&(F=f?j:{d:a.linePaths.join(" "),a:a.areaPaths.join(" ")});const N=O&&!f;let I=F;const z={};let H=null,W=!1;if(F&&m)if(null==v?void 0:v.d){if(I={d:v.d,a:v.a||F.a},!O)if(H=function(e,t,r,n){var l;const i=e.globals,a=i.prevStreamFrame;if(!a||!i.dataChanged||!(null==(l=e.axisFlags)?void 0:l.isXNumeric))return null;const s=a.seriesX[t],o=a.seriesY[t],u=e.seriesData.seriesX[t],c=e.seriesData.series[t];if(!(s&&o&&u&&c))return null;if(s.length<3||u.length<3)return null;let h=-1;for(let e=0;e<s.length;e++)if(s[e]===u[0]){h=e;break}if(-1===h)return null;const d=Math.min(s.length-h,u.length);if(d<2)return null;const g=u.length-d;if(0===h&&0===g)return null;for(let e=0;e<d;e++){if(s[h+e]!==u[e])return null;const t=o[h+e],r=c[e];if(t!==r&&(null!=t||null!=r))return null}const f=a.xPixels[t],p=a.yPixels[t];if(!f||!p)return null;let v=-1,b=-1;for(let e=0;e<d;e++)null!=f[h+e]&&null!=p[h+e]&&null!=r[e]&&null!=n[e]&&(-1===v&&(v=e),b=e);if(-1===v||b<=v)return null;const m=r[v],y=r[b],A=f[h+v],_=f[h+b];if(Math.abs(y-m)<1e-6)return null;const w=(_-A)/(y-m),x=A-w*m;if(!isFinite(w)||!isFinite(x))return null;if(Math.abs(w-1)>.02)return null;if(Math.abs(x)<.5)return null;let k=v,S=v;for(let e=v;e<=b;e++){const t=n[e];null!=t&&null!=p[h+e]&&(t<n[k]&&(k=e),t>n[S]&&(S=e))}let M=1,$=0;const E=n[k],P=n[S];if(Math.abs(P-E)>1e-6?(M=(p[h+S]-p[h+k])/(P-E),$=p[h+k]-M*E):$=p[h+k]-E,!isFinite(M)||!isFinite($)||M<.2||M>5)return null;const D=Math.floor((v+b)/2);if(D!==v&&D!==b&&null!=r[D]&&null!=f[h+D]){const e=w*r[D]+x;if(Math.abs(e-f[h+D])>1.5)return null;if(null!=n[D]&&null!=p[h+D]){const e=M*n[D]+$;if(Math.abs(e-p[h+D])>1.5)return null}}return i.streamScrolled=!0,{ax:w,bx:x,ay:M,by:$}}(h,l,a.xArrj,a.yArrj),H)I={d:C(F.d,H),a:C(F.a,H)};else{const e=T||a,r=L(h,{type:t,realIndex:l,pathFromLine:v.d,pathFromArea:v.a||"",linePaths:e.linePaths,areaPaths:e.areaPaths});(null==r?void 0:r.line)&&([I.d,z.d]=[r.line.from,r.line.toInterp]),(null==r?void 0:r.area)&&([I.a,z.a]=[r.area.from,r.area.toInterp])}}else j?I=j:(W=!0,I={d:(null==$?void 0:$.node.getAttribute("pathFrom"))||F.d,a:(null==M?void 0:M.node.getAttribute("pathFrom"))||F.a});let Y=null,q=null,X=null;if(F){const r=this._partGroup(e.elSeries,"apexcharts-line-highlight"),i=F.num,a={i:n,j:"h",realIndex:l,delay:n,speed:h.config.chart.animations.dynamicAnimation.speed,cls:`apexcharts-${t} apexcharts-line-highlight-part`,chartType:t,clip:`url(#gridRectMask${b.cuid})`,scroll:!!H};if(M&&(Y=this._emitPart(r,o(s({},a),{from:I.a,to:F.a,interp:z.a,paint:E,num:i&&{xs:i.xs,ys:i.ys,closeY:i.areaCloseY}}))),$){const t=o(s({},a),{from:I.d,to:F.d,interp:z.d,paint:"none",stroke:k($,"stroke"),width:e.strokeWidth,num:i&&{xs:i.xs,ys:i.ys}});q=this._emitPart(r,t),null==q||q.attr("fill-rule","evenodd");const n=!$._cmd&&$.node.getAttribute("clip-path");if(q&&n&&n.indexOf("nonForecast")>-1){const e=h.config.forecastDataPoints;q.attr("clip-path",n),X=this._emitPart(r,o(s({},t),{j:"hf",clip:`url(#forecastMask${b.cuid})`})),null==X||X.attr({"fill-rule":"evenodd","stroke-dasharray":e.dashArray,"stroke-width":e.strokeWidth||void 0})}}const u=this.ctx.renderer;u&&u.kind&&"svg"!==u.kind||!h.config.chart.animations.enabled||b.resized||b.dataChanged||[q,A&&$].forEach(e=>{const t=e&&e.node.getAttribute("stroke-dasharray");!e||t&&"0"!==t||e.node.setAttribute("stroke-dasharray","none")})}const G={d:null,a:null,f:1,o:f?1:0,n:O?null==q?void 0:q.node:null,m:O?null==Y?void 0:Y.node:null,c:!f};this._targets.set(p,G);const V=W?P:(null==v?void 0:v.d)&&null!=(u=v.al)?u:1,J=N?P:1;G.al=J,this._fadeLine(t,D,W?Ne:v?{f:v.f,o:null!=(c=v.o)?c:0}:Oe,N?Ne:f?je:Oe,{width:e.strokeWidth,also:Y&&(V<1||J<1)?e=>{const t=B(V,J,e);G.la=t,Y.node.setAttribute("fill-opacity",String(t))}:void 0,force:!!Y&&V!==J,land:N?Oe:void 0,done:O?()=>{null==q||q.remove(),null==X||X.remove(),null==Y||Y.remove()}:void 0,rec:G,ease:H?y("linear"):void 0}),F&&!O&&Object.assign(G,{d:F.d,a:F.a,n:null==q?void 0:q.node,m:null==Y?void 0:Y.node}),this._lineLabels(e,t,n,l,_,T,a)}_partRow(e,t,r){const n=this.w,l=this._cu,i=n.config.yaxis[n.globals.seriesYAxisReverseMap[r]],a=(null==i?void 0:i.logarithmic)&&!n.globals.invalidLogScale?e.map(e=>l.getLogValAtSeriesIndex(e,r)):e.slice(),s=n.config.fill.type,o=a.length-1;return"gradient"!==s&&"gradient"!==s[t]||null==a[o]||!a.every(e=>e===a[0])||(a[o]+=1e-6),a}_lineBuild(e,t,r,n,l,i,a){const s=this.w.globals.pointsArray,o=s[l],u=o?o.length:0,c=[e._shapeOnly,e.appendPathFrom],h=r.slice();h[n]=a,e._shapeOnly=!0;try{const r=this._swap(e,()=>e._buildSeriesPaths(t,h,n,l,i));return r.S=h,r}finally{[e._shapeOnly,e.appendPathFrom]=c,o?o.length=u:delete s[l]}}_swap(e,t){if(!this.w.config.chart.stacked)return t();const r=[e.prevSeriesYByX,e.prevSeriesY];e.prevSeriesYByX=this._stk,e.prevSeriesY=this._stkPrev;try{return t()}finally{[e.prevSeriesYByX,e.prevSeriesY]=r}}_lineBase(e,t,r,n,l,i,a){const s=(a||r[n]).map(e=>null==e?null:0),o=this._lineBuild(e,t,r,n,l,i,s);return{d:o.linePaths.join(" "),a:o.areaPaths.join(" "),num:o.numericXY}}_fadeLine(e,t,r,n,l){var i,a,s,o,u,c,h;const d=this.cfg,g=null!=(i=d.fadeOpacity)?i:.2,f=null!=(s=null==(a=d.outline)?void 0:a.width)?s:1,p=null!=(u=null==(o=d.outline)?void 0:o.opacity)?u:1,v=null!=(h=null==(c=d.line)?void 0:c.dashArray)?h:4,b=l.rec,m=["fill-opacity","stroke-opacity","stroke-width","stroke-dasharray"],y=t.map(t=>{var r;const n=t.node,l=m.map(e=>n.getAttribute(e)),i=parseFloat(null!=(r=l[0])?r:"1");return{node:n,own:l,k:isFinite(i)?i:1,fill:"area"===e&&"none"!==(t._cmd?t._cmd.fill:n.getAttribute("fill"))}}),A=(t,r)=>{b.lf=t,b.lo=r,y.forEach(({node:n,own:i,k:a,fill:s})=>{t>=1&&r<=0?m.forEach((e,t)=>null==i[t]?n.removeAttribute(e):n.setAttribute(e,i[t])):s?n.setAttribute("fill-opacity",String(a*t*B(1,g,r))):"area"===e?(n.setAttribute("stroke-opacity",String(t*B(1,p,r))),n.setAttribute("stroke-width",String(B(l.width,f,r)))):(n.setAttribute("stroke-opacity",String(t)),n.setAttribute("stroke-dasharray",r<1?`${v} ${v*r}`:String(v)))})},_=e=>{A(B(r.f,n.f,e),B(r.o,n.o,e)),l.also&&l.also(e)},w=()=>{b.run=!1,l.land&&A(l.land.f,l.land.o),l.done&&l.done()};this._animates()&&(r.f!==n.f||r.o!==n.o||l.done||l.force)?(b.run=!0,this._tween(0,this.w.config.chart.animations.dynamicAnimation.speed,_,w,l.ease)):(_(1),w())}_lineLabels(e,t,r,n,l,i,a){var s,o,u,c;const h=this.w,d=h.globals,g=e.elDataLabelsWrap;if(!h.config.dataLabels.enabled||!(null==g?void 0:g.node)||e._shapeOnly)return;const f=(null==(s=h.highlightData)?void 0:s.active)&&"part"===(null!=(u=null==(o=this.cfg.dataLabels)?void 0:o.value)?u:"part");if(f){const a=g.node;for(;a.firstChild;)a.removeChild(a.firstChild);const s=d.dataLabelsRects;if(s[n]=[],d.lastDrawnDataLabelsIndexes[n]=[],i&&l.some(e=>null!=e)){const a=new v(h,this.ctx);for(let o=0;o<i.xArrj.length-1;o++){const u=e.lineHelpers.calculatePoints({series:i.S,x:i.xArrj[o+1],y:i.yArrj[o+1],realIndex:n,i:r,j:o,prevY:i.yArrj[0]});u.x.forEach((e,r)=>{if(null==l[o?o+1:r])return void s[n].push({x:NaN,y:NaN,width:0,height:0});const i=a.drawDataLabel({type:t,pos:{x:o?[e]:r?[NaN,e]:[e,NaN],y:u.y},i:n,j:o?o+1:1,row:l});i&&g.add(i)})}}}const p=f?null==i?void 0:i.xArrj:a.xArrj,b=f?null==i?void 0:i.yArrj:a.yArrj;if(!this._animates()||!p||D(h,n))return;const m=d.riseLabels;if(null==m?void 0:m.has(n)){const e=new Map(m);e.delete(n),d.riseLabels=e.size?e:null}const y=d.prevStreamFrame,A=null==(c=d.prevHighlightLabels)?void 0:c.get(n);Promise.resolve().then(()=>{var e,t;return this._rideLabels(g.node,p,b,A,[null==(e=null==y?void 0:y.xPixels)?void 0:e[n],null==(t=null==y?void 0:y.yPixels)?void 0:t[n]])})}_captureLabels(){const e=this.w,t=e.config.chart.type,r=e.dom.baseEl,n=ie.indexOf(t)>-1;if(!e.config.dataLabels.enabled||"line"!==t&&"area"!==t&&!n||!r||!m.isBrowser())return null;const l=new Map;if(n){const e=new Map;return r.querySelectorAll(".apexcharts-pie-label").forEach(t=>{const[r,n]=Y(t);e.set(Number(t.parentNode.getAttribute("data:slice")),{x:r,y:n})}),l.set(-1,e),l}return r.querySelectorAll(".apexcharts-datalabels[data\\:realIndex]").forEach(t=>{const r=Number(t.getAttribute("data:realIndex")),n=e.globals.seriesXvalues[r]||[],i=new Map;t.querySelectorAll(`text.apexcharts-datalabel, text.${Ce}`).forEach(e=>{var t;const r=He(n,parseFloat(e.getAttribute("cx")));if(r<0)return;const[l,a]=Y(e);i.set(r,{x:l,y:a,o:parseFloat(null!=(t=e.getAttribute("opacity"))?t:"1"),els:Re(e)})}),l.set(r,i)}),l}_rideLabels(e,t,r,n,l){const i=this.w;if(i.globals.isDestroyed||!e.isConnected)return;const[a,s]=l,o=[],u=new Set,c=e=>"number"==typeof e&&isFinite(e);if(e.querySelectorAll("text.apexcharts-datalabel").forEach(e=>{const l=He(t,parseFloat(e.getAttribute("cx")));if(l<0)return;const[i,h]=Y(e),d=null==n?void 0:n.get(l);let g=0,f=0,p=0;d?(u.add(l),g=d.x-i,f=d.y-h,p=d.o):!(null==n?void 0:n.size)&&[null==a?void 0:a[l],null==s?void 0:s[l],t[l],r[l]].every(c)&&(g=a[l]-t[l],f=s[l]-r[l]),(p<1||Math.abs(g)>.01||Math.abs(f)>.01)&&o.push({els:Re(e),dx:g,dy:f,o:p,to:1})}),null==n||n.forEach((t,r)=>{if(u.has(r))return;const n=t.els.map(t=>{const r=t.cloneNode(!0);return r.setAttribute("class",Ce),r.setAttribute("pointer-events","none"),r.removeAttribute("transform"),e.appendChild(r),r}),[l,i]=Y(n[n.length-1]);o.push({els:n,dx:t.x-l,dy:t.y-i,o:t.o,to:0,out:!0})}),!o.length)return;o.forEach(e=>{e.bases=e.els.map(e=>e.getAttribute("transform")||""),e.ops=e.els.map(t=>{var r;return parseFloat(null!=(r=t.getAttribute("opacity"))?r:"1")/(e.out&&e.o>0?e.o:1)})});this._tween(0,i.config.chart.animations.dynamicAnimation.speed,e=>o.forEach(({els:t,dx:r,dy:n,o:l,to:i,out:a,bases:s,ops:o})=>t.forEach((t,u)=>{const c=s[u],h=a?1:1-e;h?t.setAttribute("transform",`translate(${r*h} ${n*h}) ${c}`.trim()):c?t.setAttribute("transform",c):t.removeAttribute("transform");const d=B(l,i,e),g=o[u];d>=1&&g>=1?t.removeAttribute("opacity"):t.setAttribute("opacity",String(g*d))})),()=>o.forEach(e=>e.out&&e.els.forEach(e=>e.remove())))}_paintBar(e,t,r,n){var l,i,a,s,o,u,c,d,g,f;const p=this.w,v=this.cfg,b=this._animates(),{key:m,prev:y,geo:A,fadeTo:_,active:w,bar:x}=n,k=r.elSeries;this._seriesEls.set(String(e.realIndex),k.node);let S=(null==A?void 0:A.pathTo)||null;const M=!S&&!!(null==y?void 0:y.d)&&b;M&&(S=this._exitTo(y,w,r.pathTo,null==A?void 0:A.base));const $=S&&!M?this._from(y,null==A?void 0:A.base,r.pathFrom,!!x):null;let E=$?$.d:(null==y?void 0:y.d)||null;const P=M&&!w;let D="apexcharts-bar-highlight-part",L=!1,T=null;if(x&&S){if(E&&E!==S){const e=x._pathToInterp;x._pathToInterp=null;const t=x.cornerMorph(E,S,M?void 0:A.square);t!==S&&(E=t,T=x._pathToInterp),x._pathToInterp=e}const e=x.isHorizontal?De:Le,r=t.node.classList.contains(e);L=M?w?!!y.flip:r:A.flip;const n=(null==y?void 0:y.d)?!!y.flip:!!(null==$?void 0:$.cover)&&r;(L||b&&n)&&(D+=" "+e),!L&&b&&n&&(D+=" "+Te,this._settleHeld(x))}const C="string"==typeof r.fill&&"none"!==r.fill&&r.fill.indexOf("url")<0?r.fill:p.globals.colors[p.config.plotOptions.bar.distributed?e.j:e.realIndex],[I,z]=R(r.fill&&"none"!==r.fill?r.fill:C),W=e.j>0&&r.elBarShadows?r.elBarShadows.node.lastElementChild:null,Y=y?y.f:1,q=this._partGroup(k,"apexcharts-bar-highlight"),X=S?this._emitPart(q,{i:e.i,j:e.j,realIndex:e.realIndex,from:E||S,to:S,interp:T,paint:I,delay:r.delay,speed:r.speed,cls:D,chartType:"bar",clip:`url(#gridRectBarMask${p.globals.cuid})`}):null,G=H(t.node),V=(null==$?void 0:$.cover)&&b?z:(null==y?void 0:y.d)&&null!=(l=y.al)?l:1,J=P?z:1,Z=n.whole||(null==y?void 0:y.o)?null!=(a=null==(i=v.outline)?void 0:i.width)?a:1:0,U=t.node,K=U.getAttribute("stroke"),Q=(null==$?void 0:$.cover)&&b?1:(null==y?void 0:y.d)&&null!=(s=y.k)?s:0,ee=P?1:0,te=!!X&&Z>0&&(Q>0||ee>0)&&parseFloat(U.getAttribute("stroke-width"))>0&&!!K&&"none"!==K&&"transparent"!==K,re=H(U,"stroke-opacity"),ne={};te&&(["stroke","stroke-width","stroke-opacity","stroke-dasharray"].forEach(e=>{var t;ne[e]=X.node.getAttribute(e),X.node.setAttribute(e,null!=(t=U.getAttribute(e))?t:"")}),U.hasAttribute("stroke-dasharray")||X.node.removeAttribute("stroke-dasharray"));const le={d:null,f:_,base:null!=(o=null==A?void 0:A.base)?o:null==y?void 0:y.base,edge:!1,s:null!=(u=null==A?void 0:A.s)?u:null==y?void 0:y.s,n:M?null==X?void 0:X.node:null,c:!w,al:J,k:te?ee:0};this._targets.set(m,le);const ie=P?j:N(_);if(this._fade(t.node,(null==$?void 0:$.cover)&&b?j:y?{f:y.f,o:null!=(c=y.o)?c:N(y.f).o}:O,n.whole?ie:{f:ie.f,o:0},r,{outline:Z>0?{color:C,width:Z,opacity:null!=(g=null==(d=v.outline)?void 0:d.opacity)?g:1}:null,also:e=>{null==W||W.setAttribute("fill-opacity",String(B(Y,_,e))),(e=>{const t=B(V,J,e);if(le.la=t,X&&(G<1||V<1||J<1)&&X.node.setAttribute("fill-opacity",String(G*t)),!te)return;const r=B(Q,ee,e);le.lk=r,r>0||e<1?(X.node.setAttribute("stroke-opacity",String(re*r)),!(le.lo>0)&&r>0&&U.setAttribute("stroke-opacity","0")):X.attr(ne)})(e)},force:!!X&&(V!==J||te),land:P?O:void 0,done:M?()=>null==X?void 0:X.remove():void 0,rec:le}),!X||!S||M)return;if((null==A?void 0:A.overflow)&&X.node.classList.add("apexcharts-highlight-overflow"),(null==A?void 0:A.overflow)&&!x){const e=new h(p,this.ctx).drawPath({d:r.pathTo,stroke:"#fff",strokeWidth:1,fill:"none",strokeDashArray:3,classes:`${F} apexcharts-highlight-edge`});e.attr("clip-path",`url(#gridRectBarMask${p.globals.cuid})`),e.node.setAttribute("pointer-events","none"),q.add(e);const t=t=>e.node.setAttribute("stroke-opacity",String(.75*t));b&&!(null==y?void 0:y.edge)?this._tween(r.delayMs,r.speed,t):t(1)}const ae=null==(f=this.ctx.renderer)?void 0:f.kind;ae&&"svg"!==ae||p.config.plotOptions.bar.isFunnel||this._hitProxy(q,S,r.pathTo,t.node,!!p.globals.isBarHorizontal),r.labels&&this._contrastLabels(r.labels,S),Object.assign(le,{d:S,base:null==A?void 0:A.base,edge:!!(null==A?void 0:A.overflow)&&!x,s:null==A?void 0:A.s,flip:L,n:X.node})}_hitProxy(e,t,r,n,l){const i=l?0:1,[a,s]=ze(t,i),[o,u]=ze(r,i),[c,d]=ze(t,i?0:1);if(!(s-a>.5&&d-c>.5))return;const g=[];u-o>.5?(a<o&&g.push([a,Math.min(s,o)]),s>u&&g.push([Math.max(a,u),s])):g.push([a,s]);const f=new h(this.w,this.ctx);for(const[t,r]of g){if(r-t<.5)continue;const i=f.drawPath({d:l?`M ${t} ${c} L ${r} ${c} L ${r} ${d} L ${t} ${d} Z`:`M ${c} ${t} L ${d} ${t} L ${d} ${r} L ${c} ${r} Z`,stroke:"none",strokeWidth:0,fill:"none",classes:"apexcharts-highlight-hit"}).node;i.setAttribute("pointer-events","all"),i.setAttribute("clip-path",`url(#gridRectBarMask${this.w.globals.cuid})`),X(n,i),e.add(i)}}_settleHeld(e){if(this._held)return;this._held=!0;const t=this.w;Promise.resolve().then(()=>{var r;t.globals.isDestroyed||(null==(r=t.dom.baseEl)?void 0:r.querySelector(`.apexcharts-series > .${Te}`))||e.settleHeldMirrors()})}_from(e,t,r,n){var l;return(null==e?void 0:e.d)?{d:e.d,cover:!1}:t&&(e||"baseline"===this.cfg.enter||n&&(!this.w.globals.dataChanged||(null==(l=this._prev())?void 0:l.size)))?{d:t,cover:!1}:r?{d:r,cover:!0}:null}_exitTo(e,t,r,n){return t?n||e.base||e.d:r}_partGroup(e,t){let r=e.node._apxHighlight;return r&&r.node.parentNode===e.node||(r=new h(this.w,this.ctx).group({class:t}),e.node._apxHighlight=r),e.add(r),r}_emitPart(e,t){const r=this.w,n=function(e,t){const r=e&&e.renderer;return r&&r.kind&&"svg"!==r.kind?r:t}(this.ctx,new h(r,this.ctx)).renderPaths({i:t.i,j:t.j,realIndex:t.realIndex,pathFrom:t.from,pathTo:t.to,pathToInterp:t.interp||void 0,pathToNumeric:t.num,scrollMorph:!!t.scroll,stroke:t.stroke||"none",strokeWidth:t.width||0,fill:t.paint,animationDelay:t.delay,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:t.speed,className:`${F} ${t.cls}`,chartType:t.chartType,bindEventsOnPaths:!1});return n&&n.node?(n.attr("clip-path",t.clip),n.node.setAttribute("pointer-events","none"),n.node.setAttribute("index",String(t.realIndex)),n.node.setAttribute("j",String(t.j)),e.add(n),n):null}_fade(e,t,r,n,l){var i;const a=l.attr||"fill-opacity",s=H(e,a),o=l.outline,u=l.rec||{},c=o&&null==o.width?["stroke","stroke-opacity"]:["stroke","stroke-width","stroke-opacity"],h=c.map(t=>e.getAttribute(t)),d=(t,r)=>{u.lf=t,u.lo=o?r:0,e.setAttribute(a,String(s*t)),o&&(r<=0?c.forEach((t,r)=>null==h[r]?e.removeAttribute(t):e.setAttribute(t,h[r])):(e.setAttribute("stroke",o.color),null!=o.width&&e.setAttribute("stroke-width",String(o.width)),e.setAttribute("stroke-opacity",String(o.opacity*Math.min(1,r)))))},g=e=>{d(B(t.f,r.f,e),B(t.o,r.o,e)),l.also&&l.also(e)},f=()=>{u.run=!1,l.land&&d(l.land.f,l.land.o),l.done&&l.done()};(null!=(i=l.anim)?i:this._animates())&&(t.f!==r.f||t.o!==r.o||l.done||l.force)?(u.run=!0,this._tween(n.delayMs,n.speed,g,f,l.curve,n.el)):(g(1),f())}_runningExt(e,t,r){if(!t)return e;const n=new Map;return e.map((e,l)=>e.map((e,i)=>{if(null==e)return null;const a=t(l,i)+(r&&e<0?"-":"+"),s=(n.get(a)||0)+e;return n.set(a,s),s}))}_contrastLabels(e,t){const r=this.w,n=e.node;if(!n||/rotate\((?!0\))/.test(n.getAttribute("transform")||""))return;const[l,i]=ze(t,0),[a,s]=ze(t,1),o=new h(r);n.querySelectorAll("text").forEach(e=>{const t=(e.getAttribute("fill")||"").toLowerCase();if("#fff"!==t&&"#ffffff"!==t&&"white"!==t)return;const n=o.getTextRects(e.textContent,e.getAttribute("font-size"),e.getAttribute("font-family"),void 0,!0,e.getAttribute("font-weight")),u=parseFloat(e.getAttribute("x")),c=parseFloat(e.getAttribute("y")),h=e.getAttribute("text-anchor"),d="middle"===h?u-n.width/2:"end"===h?u-n.width:u;d>=l-1&&d+n.width<=i+1&&c-.75*n.height>=a-1&&c+.25*n.height<=s+1||e.setAttribute("fill",r.config.chart.foreColor)})}tooltipRow(e,t,r,n){var l,i,a,u,c,h,d,g,p,v,b;const m=this.w,y=this.cfg,A=y.tooltip||{},_=m.globals.axisCharts,w=this.isActive()&&!1!==A.show&&(null!=r||!_)&&!!e.yValue,x=_||"lanes"!==this._ind||"radialBar"!==m.config.chart.type?void 0:(null==(l=this._lane)?void 0:l[0])===t?this._lane[1]:"part";if(e.marker&&function(e,t,r=.2,n){const l=e.style,i=e.firstElementChild;if(!t){if(!e._apxHl)return;return e._apxHl=!1,l.background=l.boxShadow=l.borderRadius="",void(i&&(i.style.display=""))}e._apxHl=!0;const a="#"===t.charAt(0)?f.hexToRgba(t,r):`color-mix(in srgb, ${t} ${100*r}%, transparent)`;l.background="part"===n?t:n?a:`linear-gradient(90deg, ${t} 50%, ${a} 50%)`,l.boxShadow=`inset 0 0 0 1px ${t}`,l.borderRadius="3px",i&&(i.style.display="none")}(e.marker,w&&!m.config.tooltip.fillSeriesColor?(null==(a=null==(i=this._tiles)?void 0:i.get(t+"|"+r))?void 0:a.base)||m.globals.colors[t]:null,x?null!=(h=null==(c=null==(u=y.radialBar)?void 0:u.lanes)?void 0:c.opacity)?h:fe:y.fadeOpacity,x),!w)return;const k=this.valueAt(t,r),S=m.seriesData.series,M=_?null==(d=S[t])?void 0:d[r]:S[t],$=_?{series:S,seriesIndex:t,dataPointIndex:r,w:m}:o(s({},m),{w:m,series:S,seriesIndex:t,dataPointIndex:t,highlight:W(k,M),lane:x});if("function"==typeof A.formatter)return void(e.yValue.innerHTML=String(null!=(g=A.formatter(k,null!=M?M:null,$))?g:""));const E='<span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">';if("whole"===x){if(null!=k){const t=null!=(b=null==(v=null==(p=m.globals.locale)?void 0:p.highlightFilter)?void 0:v.part)?b:"part";e.yValue.innerHTML+=` ${E}(${t} ${n.yLbFormatter(k,$)})</span>`}return}let P=e.yValue.innerHTML;null!=k&&(P=`/ ${P}`,A.share&&M&&(P+=` \xb7 ${Math.round(k/M*100)}%`)),e.yValue.innerHTML=(null==k?"":`${n.yLbFormatter(k,$)} `)+`${E}${P}</span>`}drillView(e){Array.isArray(null==e?void 0:e.series)&&(e.series=e.series.map(U),this._level={series:e.series,base:this.w.globals.initialSeries}),e&&null!=this.cfg.data&&(e.highlightFilter=o(s({},e.highlightFilter),{data:null}))}_drilled(){var e;const t=this._level;return!!(t&&((null==(e=this.ctx.drilldown)?void 0:e.depth)||0)>0&&this.w.globals.initialSeries===t.base)}_fire(e){var t;const r=null==(t=this.w.config.chart.events)?void 0:t.highlightFilterChanged;"function"==typeof r&&r(this.ctx,{active:"clear"!==e,phase:e})}pie(e){"radialBar"===e.chartType?ve(this,e):ae(this,e)}treemap(e){return $e(this,e)}afterRender(){this._tipOn&&(this._tipOn=!1,this.w.config.tooltip.enabled=!1);const e=this._ride;this._ride=null;const t=this.w.globals.circleTween;!e||t&&!t.done||e();const r=this._drawnSig,n=this._sig;r!==n&&(this._drawnSig=n,this._fire(r?n?"update":"clear":"enter"))}set(e,t={}){var r;const n=this.w,l=n.globals;if(!l.axisCharts)return this._setCircle(e,t);const i=t.series||this._rawSeries();if("treemap"===n.config.chart.type&&l.treemapRoots)return this._apply(function(e,t,r){const n=e.w;return t.map((e,t)=>{const l=U(e),i=Array.isArray(null==r?void 0:r[t])?r[t]:null;if("function"!=typeof r&&!i)return l;let a=0;const u=l=>{var c,h,d;if(z(l)&&Array.isArray(l.children)&&l.children.length)return o(s({},l),{children:l.children.map(u)});const g=a++,f=z(l)?s({},l):{x:"",y:l};return f.highlight="function"==typeof r?r({seriesIndex:t,dataPointIndex:g,seriesName:e.name,x:null!=(c=f.x)?c:f.name,value:"number"==typeof(null!=(h=f.y)?h:f.value)?null!=(d=f.y)?d:f.value:null,datum:l,w:n}):null==i?void 0:i[g],f};return Array.isArray(l.data)&&(l.data=l.data.map(u)),l})}(this,i,e),t);const a=!t.series&&!!l.dataReducerRawSeries&&!!(null==(r=n.config.chart.dataReducer)?void 0:r.enabled),u=i.map((r,l)=>{const i=Array.isArray(r.data)?r.data:[],u="function"==typeof e?i.map((i,s)=>{var o;return e({seriesIndex:l,dataPointIndex:s,seriesName:r.name,x:z(i)?i.x:Array.isArray(i)?i[0]:n.labelData.labels[s],value:Ye(i,t.series||a?null:null==(o=n.seriesData.series[l])?void 0:o[s]),datum:i,w:n})}):Array.isArray(null==e?void 0:e[l])?e[l]:null,c=U(r);return u&&(a&&c.data.every(e=>"number"!=typeof e)?c.data=c.data.map((e,t)=>null==e?e:Array.isArray(e)?{x:e[0],y:e[1],highlight:u[t]}:o(s({},e),{highlight:u[t]})):c.highlightData=u),c});return this._apply(u,t)}clear(e={}){return this.w.globals.axisCharts?this._apply(this._rawSeries().map(U),e):this._setCircle(null,e)}_setCircle(e,t){const r=this.w,n=t.series||this._rawSeries(),l={};if((t.series||n.some(Q))&&(l.series=n.map(U)),"function"==typeof e){const l=K(n),i=t.series?[]:r.seriesData.series,a=r.seriesData.seriesNames,s=l.length||n.length,o=[];for(let t=0;t<s;t++){const s=l.length?l[t]:n[t];o.push(e({seriesIndex:t,dataPointIndex:t,seriesName:l.length?String(s.x):a[t],x:l.length?s.x:a[t],value:Ye(s,i[t]),datum:s,w:r}))}e=o}return l.highlightFilter={data:Array.isArray(e)?e:null},this.ctx.updateOptions(l,!1,!1!==t.animate,!0,!this._drilled())}_apply(e,t){const r=this._drilled();return r&&this._level&&(this._level.series=e.map(U)),this.ctx.updateSeries(e,!1!==t.animate,!r)}_rawSeries(){var e,t;const r=this.w.globals;return(this._drilled()&&(null==(e=this._level)?void 0:e.series)||r.treemapRawSeries||(r.dataReducerRawSeries&&(null==(t=this.w.config.chart.dataReducer)?void 0:t.enabled)?r.initialSeries:null)||r.initialSeries||this.w.config.series).map(e=>z(e)?s({},e):e)}teardown(){var e,t;Array.from(this._live).forEach(e=>e.finish()),this._live.clear(),this._targets=new Map,this._render=null,this._cu=null,this._level=null,this._seriesEls=new Map,this._tiles=null,this._tmDefs=[],null==(e=this.ctx.events)||e.removeEventListener("mounted",this._onRender),null==(t=this.ctx.events)||t.removeEventListener("updated",this._onRender)}}}),Object.defineProperty(exports,"default",{enumerable:!0,get:()=>c.default});
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
30
30
  return target;
31
31
  };
32
32
  /*!
33
- * ApexCharts v8.2.0
33
+ * ApexCharts v8.3.1
34
34
  * (c) 2018-2026 ApexCharts
35
35
  */
36
36
  import * as _core from "apexcharts/core";
@@ -255,6 +255,11 @@ function uniquifyKeys(keys) {
255
255
  return count === 0 ? k : `${k}#${count}`;
256
256
  });
257
257
  }
258
+ function seriesKeys(w, realIndex, n = ((_a) => (_a = w.seriesData.series[realIndex]) == null ? void 0 : _a.length)() | 0) {
259
+ return uniquifyKeys(
260
+ Array.from({ length: n }, (_, j) => datumKey(w, realIndex, j))
261
+ );
262
+ }
258
263
  function seriesJoin(w, realIndex, includeIdentity = false, allowReorder = false) {
259
264
  var _a, _b;
260
265
  if (!lengthTransitionEnabled(w)) return null;
@@ -267,7 +272,7 @@ function seriesJoin(w, realIndex, includeIdentity = false, allowReorder = false)
267
272
  const oldKeys = uniquifyKeys(
268
273
  oldY.map((_, j) => frameDatumKey(frame, realIndex, j))
269
274
  );
270
- const newKeys = uniquifyKeys(newY.map((_, j) => datumKey(w, realIndex, j)));
275
+ const newKeys = seriesKeys(w, realIndex);
271
276
  const join = joinKeys(oldKeys, newKeys);
272
277
  if (!join.ordered && !allowReorder) return null;
273
278
  if (!join.changed && !includeIdentity) return null;
@@ -2284,9 +2289,9 @@ function wrapParentTip(hf, tm) {
2284
2289
  }
2285
2290
  const v = (_c = tm._tip()) == null ? void 0 : _c.querySelector(".apexcharts-tooltip-text-y-value");
2286
2291
  if (!v) return;
2287
- let rest = `/ ${tm._formatValue(h.total)}`;
2292
+ let rest = `/ ${tm._formatValue(h.total, node._si)}`;
2288
2293
  if (tt.share && h.total) rest += ` · ${Math.round(h.share * 100)}%`;
2289
- v.innerHTML = `${tm._formatValue(h.value)} <span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">${rest}</span>`;
2294
+ v.innerHTML = `${tm._formatValue(h.value, node._si)} <span class="apexcharts-highlight-total" style="font-weight: 400; opacity: 0.6">${rest}</span>`;
2290
2295
  };
2291
2296
  }
2292
2297
  function tone(rec, fore) {
@@ -2824,7 +2829,7 @@ class HighlightFilter {
2824
2829
  const active = hd.active;
2825
2830
  if (!active && !(prevMap == null ? void 0 : prevMap.size)) return void 0;
2826
2831
  const { j, realIndex } = o;
2827
- const key = BAR + `${realIndex}::${datumKey(w, realIndex, j)}`;
2832
+ const key = BAR + `${realIndex}::${bar._keys(realIndex)[j]}`;
2828
2833
  this._seen.add(key);
2829
2834
  const prev = prevMap == null ? void 0 : prevMap.get(key);
2830
2835
  const p = active ? (_a = hd.parts[realIndex]) == null ? void 0 : _a[j] : null;
@@ -3134,14 +3139,14 @@ class HighlightFilter {
3134
3139
  }
3135
3140
  /**
3136
3141
  * The stack a stacked bar datum joins, as the renderer resolves it
3137
- * (BarStacked drawStackedColumnPaths): its series group, then its x value
3138
- * on a numeric or datetime column axis, else its index.
3142
+ * (BarStacked): its series group, then its x value on a numeric or
3143
+ * datetime axis, else its index.
3139
3144
  * @param {number} i @param {number} j
3140
3145
  */
3141
3146
  _barKey(i, j) {
3142
3147
  var _a;
3143
3148
  const w = this.w;
3144
- return w.labelData.seriesGroupIndex[i] + "|" + (!w.config.plotOptions.bar.horizontal && w.axisFlags.isXNumeric ? (_a = w.seriesData.seriesX[i]) == null ? void 0 : _a[j] : j);
3149
+ return w.labelData.seriesGroupIndex[i] + "|" + (w.axisFlags.isXNumeric ? (_a = w.seriesData.seriesX[i]) == null ? void 0 : _a[j] : j);
3145
3150
  }
3146
3151
  /**
3147
3152
  * Line.draw, once per series right after its whole has been rendered and
@@ -3205,7 +3210,7 @@ class HighlightFilter {
3205
3210
  const exit = !to && !!(prev == null ? void 0 : prev.d) && animate;
3206
3211
  const base = active && animate && (exit || to && !(prev == null ? void 0 : prev.d) && (prev || this.cfg.enter === "baseline")) ? this._lineBase(ln, type, series, i, realIndex, ti, has ? raw : null) : null;
3207
3212
  if (pp && w.config.chart.stacked) {
3208
- this._swap(ln, () => ln._recordStackTops(realIndex, pp.yArrj));
3213
+ this._swap(ln, () => ln._recordStackTops(realIndex, pp.yArrj, pp.S[i]));
3209
3214
  this._stkPrev.push(pp.yArrj);
3210
3215
  }
3211
3216
  if (exit) {