@allurereport/web-components 3.22.0 → 3.22.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 (150) hide show
  1. package/dist/{Attachment-D75lkuAG.js → Attachment-DFk4AiwI.js} +2 -2
  2. package/dist/{Attachment-D75lkuAG.js.map → Attachment-DFk4AiwI.js.map} +1 -1
  3. package/dist/Attachment.js +1 -1
  4. package/dist/{AttachmentCode-BaFv0Nkk.js → AttachmentCode-DLfL9_C7.js} +2 -2
  5. package/dist/{AttachmentCode-BaFv0Nkk.js.map → AttachmentCode-DLfL9_C7.js.map} +1 -1
  6. package/dist/AttachmentImageDiff-Bp1b_UU5.js +2 -0
  7. package/dist/{AttachmentImageDiff-BXiyAOHw.js.map → AttachmentImageDiff-Bp1b_UU5.js.map} +1 -1
  8. package/dist/{AttachmentTable-xY7Ovinb.js → AttachmentTable-B_2qN3O-.js} +2 -2
  9. package/dist/{AttachmentTable-xY7Ovinb.js.map → AttachmentTable-B_2qN3O-.js.map} +1 -1
  10. package/dist/{BarChart-DVqwZDOJ.js → BarChart-Dmhamjn_.js} +2 -2
  11. package/dist/{BarChart-DVqwZDOJ.js.map → BarChart-Dmhamjn_.js.map} +1 -1
  12. package/dist/{BarChartRenderer-DyfCJzro.js → BarChartRenderer-Ip2G__e-.js} +2 -2
  13. package/dist/{BarChartRenderer-DyfCJzro.js.map → BarChartRenderer-Ip2G__e-.js.map} +1 -1
  14. package/dist/ChartWidget.js +1 -1
  15. package/dist/CodeViewer.js +1 -1
  16. package/dist/CurrentStatusChartWidget.js +1 -1
  17. package/dist/DurationDynamicsChartWidget.js +1 -1
  18. package/dist/DurationsChartWidget.js +1 -1
  19. package/dist/{EmptyDataStub-BuH_D_lp.js → EmptyDataStub-CRdg61R2.js} +2 -2
  20. package/dist/{EmptyDataStub-BuH_D_lp.js.map → EmptyDataStub-CRdg61R2.js.map} +1 -1
  21. package/dist/FunnelChartRenderer-tZ8LQJEg.js +2 -0
  22. package/dist/{FunnelChartRenderer-CLesVf61.js.map → FunnelChartRenderer-tZ8LQJEg.js.map} +1 -1
  23. package/dist/Grid.js +1 -1
  24. package/dist/{GridItem-DNsiFecD.js → GridItem-DI1f2R1r.js} +2 -2
  25. package/dist/{GridItem-DNsiFecD.js.map → GridItem-DI1f2R1r.js.map} +1 -1
  26. package/dist/HeatMapChartRenderer-CgQ03Op3.js +2 -0
  27. package/dist/{HeatMapChartRenderer-BrBfW8zd.js.map → HeatMapChartRenderer-CgQ03Op3.js.map} +1 -1
  28. package/dist/{HeatMapWidget-CwCccKA9.js → HeatMapWidget-Dqm7-_SB.js} +2 -2
  29. package/dist/{HeatMapWidget-CwCccKA9.js.map → HeatMapWidget-Dqm7-_SB.js.map} +1 -1
  30. package/dist/HeatMapWidget.js +1 -1
  31. package/dist/{HtmlPreview-NgG4sciW.js → HtmlPreview-u0sa77g5.js} +2 -2
  32. package/dist/{HtmlPreview-NgG4sciW.js.map → HtmlPreview-u0sa77g5.js.map} +1 -1
  33. package/dist/{HttpAttachment-A7AWm-d9.js → HttpAttachment-CkQRcAfa.js} +2 -2
  34. package/dist/{HttpAttachment-A7AWm-d9.js.map → HttpAttachment-CkQRcAfa.js.map} +1 -1
  35. package/dist/{MarkdownPreview-C-NFR_X3.js → MarkdownPreview-BEs6LvOd.js} +2 -2
  36. package/dist/{MarkdownPreview-C-NFR_X3.js.map → MarkdownPreview-BEs6LvOd.js.map} +1 -1
  37. package/dist/{MermaidPreview-DHvqVM10.js → MermaidPreview-4EDQwdX3.js} +2 -2
  38. package/dist/{MermaidPreview-DHvqVM10.js.map → MermaidPreview-4EDQwdX3.js.map} +1 -1
  39. package/dist/PieChartRenderer-Cv4hjlRj.js +2 -0
  40. package/dist/{PieChartRenderer-CBEEPgfv.js.map → PieChartRenderer-Cv4hjlRj.js.map} +1 -1
  41. package/dist/StabilityDistributionWidget.js +1 -1
  42. package/dist/StatusAgePyramidChartWidget.js +1 -1
  43. package/dist/StatusDynamicsChartWidget.js +1 -1
  44. package/dist/StatusTransitionsChartWidget.js +1 -1
  45. package/dist/SuccessRatePieChart.js +1 -1
  46. package/dist/TestBaseGrowthDynamicsChartWidget.js +1 -1
  47. package/dist/TestingPyramidWidget.js +1 -1
  48. package/dist/{Timeline-BkaMlh1L.js → Timeline-BWVXDTn-.js} +2 -2
  49. package/dist/{Timeline-BkaMlh1L.js.map → Timeline-BWVXDTn-.js.map} +1 -1
  50. package/dist/Timeline.js +1 -1
  51. package/dist/TrSeveritiesChartWidget.js +1 -1
  52. package/dist/TreeMapChartRenderer-DAOzpUju.js +2 -0
  53. package/dist/{TreeMapChartRenderer-4eHZtCVj.js.map → TreeMapChartRenderer-DAOzpUju.js.map} +1 -1
  54. package/dist/{TreeMapChartWidget-CWMvuICi.js → TreeMapChartWidget-DKXJlnm9.js} +2 -2
  55. package/dist/{TreeMapChartWidget-CWMvuICi.js.map → TreeMapChartWidget-DKXJlnm9.js.map} +1 -1
  56. package/dist/TreeMapChartWidget.js +1 -1
  57. package/dist/{_baseSlice-DybH-rwG.js → _baseSlice-CBpWu5XB.js} +1 -1
  58. package/dist/{_baseSlice-DybH-rwG.js.map → _baseSlice-CBpWu5XB.js.map} +1 -1
  59. package/dist/{_commonjsHelpers-bbZql6IY.js → _commonjsHelpers-Doe7ti1T.js} +1 -1
  60. package/dist/_commonjsHelpers-Doe7ti1T.js.map +1 -0
  61. package/dist/{_stringToArray-99CYzIaW.js → _stringToArray-aaWSQcKo.js} +2 -2
  62. package/dist/{_stringToArray-99CYzIaW.js.map → _stringToArray-aaWSQcKo.js.map} +1 -1
  63. package/dist/{array-Z5whfZ28.js → array-B0SXO2zY.js} +1 -1
  64. package/dist/{array-Z5whfZ28.js.map → array-B0SXO2zY.js.map} +1 -1
  65. package/dist/{clipboard-CO7bSAxL.js → clipboard-BUUe2rGt.js} +1 -1
  66. package/dist/{clipboard-CO7bSAxL.js.map → clipboard-BUUe2rGt.js.map} +1 -1
  67. package/dist/{clsx-BnvTIEMY.js → clsx-D83172mf.js} +1 -1
  68. package/dist/{clsx-BnvTIEMY.js.map → clsx-D83172mf.js.map} +1 -1
  69. package/dist/{config-DZ-BTm2e.js → config-CgDglkkw.js} +1 -1
  70. package/dist/{config-DZ-BTm2e.js.map → config-CgDglkkw.js.map} +1 -1
  71. package/dist/{constants-BhEoR-GZ.js → constants-D-YBPtws.js} +1 -1
  72. package/dist/{constants-BhEoR-GZ.js.map → constants-D-YBPtws.js.map} +1 -1
  73. package/dist/core.js +1 -1
  74. package/dist/{floating-ui.dom-PEni3-qj.js → floating-ui.dom-B9YqEzUD.js} +1 -1
  75. package/dist/{floating-ui.dom-PEni3-qj.js.map → floating-ui.dom-B9YqEzUD.js.map} +1 -1
  76. package/dist/{identity-DzNdV8kh.js → identity-DBvQ9SaG.js} +1 -1
  77. package/dist/{identity-DzNdV8kh.js.map → identity-DBvQ9SaG.js.map} +1 -1
  78. package/dist/{index-CHmhJlCy.js → index-BLcyRUFW.js} +2 -2
  79. package/dist/{index-CHmhJlCy.js.map → index-BLcyRUFW.js.map} +1 -1
  80. package/dist/{index-CZJiaWZN.js → index-BZ-V3udE.js} +2 -2
  81. package/dist/{index-CZJiaWZN.js.map → index-BZ-V3udE.js.map} +1 -1
  82. package/dist/{index-CMG20_7S.js → index-BzcM2nAl.js} +2 -2
  83. package/dist/{index-CMG20_7S.js.map → index-BzcM2nAl.js.map} +1 -1
  84. package/dist/{index-wexsN8zu.js → index-CCQ13d2t.js} +2 -2
  85. package/dist/{index-wexsN8zu.js.map → index-CCQ13d2t.js.map} +1 -1
  86. package/dist/{index-BrOvQRuo.js → index-CbwuBF9w.js} +2 -2
  87. package/dist/{index-BrOvQRuo.js.map → index-CbwuBF9w.js.map} +1 -1
  88. package/dist/{index-BJ3L12TJ.js → index-Cf1z5wAO.js} +2 -2
  89. package/dist/{index-BJ3L12TJ.js.map → index-Cf1z5wAO.js.map} +1 -1
  90. package/dist/{index-DRO8HSfm.js → index-D2c5viX_.js} +2 -2
  91. package/dist/{index-DRO8HSfm.js.map → index-D2c5viX_.js.map} +1 -1
  92. package/dist/{index-BniCQn-f.js → index-DQIPuqU4.js} +2 -2
  93. package/dist/{index-BniCQn-f.js.map → index-DQIPuqU4.js.map} +1 -1
  94. package/dist/{index-CXgF3Yhl.js → index-DYL-tbfk.js} +2 -2
  95. package/dist/{index-CXgF3Yhl.js.map → index-DYL-tbfk.js.map} +1 -1
  96. package/dist/{index-Dj8HmckV.js → index-Dq7O-bm8.js} +2 -2
  97. package/dist/{index-Dj8HmckV.js.map → index-Dq7O-bm8.js.map} +1 -1
  98. package/dist/{index-CljGQaiY.js → index-k2XcinIa.js} +2 -2
  99. package/dist/{index-CljGQaiY.js.map → index-k2XcinIa.js.map} +1 -1
  100. package/dist/{index-D_2wjrUN.js → index-qMwNH4DY.js} +2 -2
  101. package/dist/{index-D_2wjrUN.js.map → index-qMwNH4DY.js.map} +1 -1
  102. package/dist/{index-DZlENr_C.js → index-uBEpZNBn.js} +2 -2
  103. package/dist/{index-DZlENr_C.js.map → index-uBEpZNBn.js.map} +1 -1
  104. package/dist/index.css +1 -1
  105. package/dist/index.js +1 -1
  106. package/dist/{index.module-BKdNahiA.js → index.module-Bdu_gwCw.js} +2 -2
  107. package/dist/{index.module-BKdNahiA.js.map → index.module-Bdu_gwCw.js.map} +1 -1
  108. package/dist/{line-Dnk6WnzK.js → line-CEBDCBhb.js} +2 -2
  109. package/dist/{line-Dnk6WnzK.js.map → line-CEBDCBhb.js.map} +1 -1
  110. package/dist/{linear-CZyKfBBG.js → linear-C7uKb8Tk.js} +1 -1
  111. package/dist/{linear-CZyKfBBG.js.map → linear-C7uKb8Tk.js.map} +1 -1
  112. package/dist/{nivo-annotations-B2rsOOOb.js → nivo-annotations-OXtu3nXs.js} +2 -2
  113. package/dist/{nivo-annotations-B2rsOOOb.js.map → nivo-annotations-OXtu3nXs.js.map} +1 -1
  114. package/dist/{nivo-axes-Ce1dH5CY.js → nivo-axes-3Cy5TCy7.js} +2 -2
  115. package/dist/{nivo-axes-Ce1dH5CY.js.map → nivo-axes-3Cy5TCy7.js.map} +1 -1
  116. package/dist/{nivo-colors-DSqwed4A.js → nivo-colors-fVDn0-vW.js} +2 -2
  117. package/dist/{nivo-colors-DSqwed4A.js.map → nivo-colors-fVDn0-vW.js.map} +1 -1
  118. package/dist/{nivo-legends-0WTLJ5Sd.js → nivo-legends-BIaWaGVX.js} +2 -2
  119. package/dist/{nivo-legends-0WTLJ5Sd.js.map → nivo-legends-BIaWaGVX.js.map} +1 -1
  120. package/dist/{omit-DhTTm08t.js → omit-Cims_XVO.js} +2 -2
  121. package/dist/{omit-DhTTm08t.js.map → omit-Cims_XVO.js.map} +1 -1
  122. package/dist/{prism-global-DdhG-WkK.js → prism-global-B3qB0vXd.js} +2 -2
  123. package/dist/{prism-global-DdhG-WkK.js.map → prism-global-B3qB0vXd.js.map} +1 -1
  124. package/dist/{successRate-BKeIquyk.js → successRate-rrLYYsum.js} +2 -2
  125. package/dist/{successRate-BKeIquyk.js.map → successRate-rrLYYsum.js.map} +1 -1
  126. package/dist/{time-Dfkn_dVS.js → time-CyaymdXm.js} +1 -1
  127. package/dist/{time-Dfkn_dVS.js.map → time-CyaymdXm.js.map} +1 -1
  128. package/dist/{toNumber-DEBMlvT0.js → toNumber-Cpsf6DxM.js} +2 -2
  129. package/dist/{toNumber-DEBMlvT0.js.map → toNumber-Cpsf6DxM.js.map} +1 -1
  130. package/dist/{toString-CTcEQi-b.js → toString-Ccq3A8Sl.js} +2 -2
  131. package/dist/{toString-CTcEQi-b.js.map → toString-Ccq3A8Sl.js.map} +1 -1
  132. package/dist/{truncate-DRv_tZCJ.js → truncate-Bk-Lghrl.js} +2 -2
  133. package/dist/{truncate-DRv_tZCJ.js.map → truncate-Bk-Lghrl.js.map} +1 -1
  134. package/dist/{upperFirst-D5eOlcn2.js → upperFirst-jXpCKAQr.js} +2 -2
  135. package/dist/{upperFirst-D5eOlcn2.js.map → upperFirst-jXpCKAQr.js.map} +1 -1
  136. package/dist/{useTooltip-DhzO0u9M.js → useTooltip-VGYCawp2.js} +2 -2
  137. package/dist/{useTooltip-DhzO0u9M.js.map → useTooltip-VGYCawp2.js.map} +1 -1
  138. package/dist/{utcTime-wBDrZaMa.js → utcTime-ClVTKNFl.js} +2 -2
  139. package/dist/{utcTime-wBDrZaMa.js.map → utcTime-ClVTKNFl.js.map} +1 -1
  140. package/dist/{utils-C1Oqs14G.js → utils-DKmgmsaJ.js} +2 -2
  141. package/dist/{utils-C1Oqs14G.js.map → utils-DKmgmsaJ.js.map} +1 -1
  142. package/dist/{utils-DNKsxZkE.js → utils-DfVSL1lz.js} +2 -2
  143. package/dist/{utils-DNKsxZkE.js.map → utils-DfVSL1lz.js.map} +1 -1
  144. package/package.json +6 -6
  145. package/dist/AttachmentImageDiff-BXiyAOHw.js +0 -2
  146. package/dist/FunnelChartRenderer-CLesVf61.js +0 -2
  147. package/dist/HeatMapChartRenderer-BrBfW8zd.js +0 -2
  148. package/dist/PieChartRenderer-CBEEPgfv.js +0 -2
  149. package/dist/TreeMapChartRenderer-4eHZtCVj.js +0 -2
  150. package/dist/_commonjsHelpers-bbZql6IY.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./prism-global-DdhG-WkK.js";export{S as SvgIcon,a as allureIcons}from"./index-D_2wjrUN.js";export{B as Button,a as ButtonLink,D as DropdownButton,I as IconButton,S as Spinner}from"./index-CljGQaiY.js";export{A as ArrowButton,C as Counter,L as Label,a as LanguagePicker,b as Link,c as LinkifiedText,d as Loadable,M as MiddleEllipsis,e as Modal,O as OverviewLink,P as PageLoader,R as ReportLogo,f as ReportLogoFull,g as ReportSummaryCard,S as SearchBox,h as StatusLabel,T as ThemeButton,i as Toggle,j as Tree,k as TreeHeader,l as TreeItem,m as TreeItemIcon,n as TreeSection,o as TreeStatusBar,u as useElementTruncation}from"./index-wexsN8zu.js";export{C as Code,H as Heading,T as Text}from"./index-Dj8HmckV.js";export{T as Tooltip,a as TooltipWrapper,u as useTooltip}from"./index-CZJiaWZN.js";export{I as ImageDiff,M as Menu,T as Tag}from"./index-BJ3L12TJ.js";import{W as t}from"./index-CMG20_7S.js";export{I as IconLabel}from"./index-DRO8HSfm.js";export{T as ThemeProvider,u as useTheme}from"./index-DZlENr_C.js";export{E as EmptyView}from"./index-CHmhJlCy.js";import{s as r}from"./Attachment-D75lkuAG.js";export{A as Attachment,b as AttachmentImage,c as AttachmentVideo,L as LazyComponent}from"./Attachment-D75lkuAG.js";export{AttachmentCode}from"./AttachmentCode-BaFv0Nkk.js";export{AttachmentTable}from"./AttachmentTable-xY7Ovinb.js";export{HtmlPreview}from"./HtmlPreview-NgG4sciW.js";export{MarkdownPreview}from"./MarkdownPreview-C-NFR_X3.js";export{MermaidPreview}from"./MermaidPreview-DHvqVM10.js";import{u as s}from"./clsx-BnvTIEMY.js";export{CodeViewer}from"./CodeViewer.js";export{HttpAttachment}from"./HttpAttachment-A7AWm-d9.js";export{G as Grid,a as GridItem}from"./GridItem-DNsiFecD.js";import{a as p}from"./constants-BhEoR-GZ.js";import{useCallback as v,useMemo as y,useState as x}from"preact/hooks";import{forwardRef as _,Fragment as w,createElement as W,useMemo as F,useRef as z,useState as U,useEffect as V,useCallback as Y,memo as N}from"react";import{F as $,$ as X,c as K,R as q,H as Z,l as J,A as Q,z as ee,M as te,J as ie,K as ne,T as oe,I as re,k as ae,L as le,N as se,D as ue,j as he,P as ce,C as de,V as fe,w as pe,n as ge,g as me,h as ve,e as ye,O as xe}from"./nivo-colors-DSqwed4A.js";import{Y as be,j as _e,V as Me,q as Te,W as Ce,h as Se}from"./nivo-axes-Ce1dH5CY.js";import{E as we,L as ke}from"./nivo-legends-0WTLJ5Sd.js";import{g as Ae}from"./_commonjsHelpers-bbZql6IY.js";import{r as Le}from"./toString-CTcEQi-b.js";import{l as De}from"./linear-CZyKfBBG.js";import{Fragment as Pe}from"preact";import{R as We}from"./index-BrOvQRuo.js";export{T as TestingPyramidWidget}from"./index-BrOvQRuo.js";import{P as Be}from"./line-Dnk6WnzK.js";import{E as Ee}from"./EmptyDataStub-BuH_D_lp.js";export{SuccessRatePieChart}from"./SuccessRatePieChart.js";export{c as TreeMapChart,T as TreeMapChartWidget,d as defaultTreeChartConfig,u as useCoverageDiffColors,a as useCoverageDiffTextColors,b as useSuccessRateDistributionColors}from"./TreeMapChartWidget-CWMvuICi.js";export{D as DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL,a as DEFAULT_HEAT_MAP_EMPTY_COLOR,b as DEFAULT_HEAT_MAP_EMPTY_LABEL,c as DEFAULT_HEAT_MAP_FORCE_SQUARE,d as DEFAULT_HEAT_MAP_HEIGHT,e as DEFAULT_HEAT_MAP_VALUE_FORMAT,f as DEFAULT_HEAT_MAP_WIDTH,g as DEFAULT_HEAT_MAP_X_INNER_PADDING,h as DEFAULT_HEAT_MAP_Y_INNER_PADDING,i as HeatMap,H as HeatMapWidget,j as defaultHeatMapAxisLeftConfig,k as defaultHeatMapAxisTopConfig,l as defaultHeatMapLegendConfig,m as defaultHeatMapMarginConfig}from"./HeatMapWidget-CwCccKA9.js";export{StabilityDistributionWidget}from"./StabilityDistributionWidget.js";export{TestBaseGrowthDynamicsChartWidget}from"./TestBaseGrowthDynamicsChartWidget.js";export{StatusAgePyramidChartWidget}from"./StatusAgePyramidChartWidget.js";export{CurrentStatusChartWidget}from"./CurrentStatusChartWidget.js";export{StatusDynamicsChartWidget}from"./StatusDynamicsChartWidget.js";export{StatusTransitionsChartWidget}from"./StatusTransitionsChartWidget.js";export{DurationsChartWidget}from"./DurationsChartWidget.js";export{TrSeveritiesChartWidget}from"./TrSeveritiesChartWidget.js";export{DurationDynamicsChartWidget}from"./DurationDynamicsChartWidget.js";export{T as Timeline}from"./Timeline-BkaMlh1L.js";export{ChartWidget}from"./ChartWidget.js";import"./identity-DzNdV8kh.js";import"node:crypto";import"./utils-C1Oqs14G.js";import"./array-Z5whfZ28.js";import"preact/compat";import"./time-Dfkn_dVS.js";import"./floating-ui.dom-PEni3-qj.js";import"@preact/signals/utils";import"@preact/signals";import"./index-CXgF3Yhl.js";import"./toNumber-DEBMlvT0.js";import"./upperFirst-D5eOlcn2.js";import"./_stringToArray-99CYzIaW.js";import"./_baseSlice-DybH-rwG.js";import"./clipboard-CO7bSAxL.js";import"./index.module-BKdNahiA.js";import"react-dom";import"./nivo-annotations-B2rsOOOb.js";import"./omit-DhTTm08t.js";import"./utcTime-wBDrZaMa.js";import"./successRate-BKeIquyk.js";import"./utils-DNKsxZkE.js";import"./config-DZ-BTm2e.js";import"./index-BniCQn-f.js";import"./truncate-DRv_tZCJ.js";import"./BarChart-DVqwZDOJ.js";import"./useTooltip-DhzO0u9M.js";const je=({children:e})=>s("div",{className:r["wrong-attachment-sign"],children:e});var Ie,He;var Re=/*@__PURE__*/Ae(function(){if(He)return Ie;He=1;var e=Le(),t=0;return Ie=function(i){var n=++t;return e(i)+n}}());const Fe=134217729;function ze(e,t,i,n,o){let r,a,l,s,u=t[0],h=n[0],c=0,d=0;h>u==h>-u?(r=u,u=t[++c]):(r=h,h=n[++d]);let f=0;if(c<e&&d<i)for(h>u==h>-u?(a=u+r,l=r-(a-u),u=t[++c]):(a=h+r,l=r-(a-h),h=n[++d]),r=a,0!==l&&(o[f++]=l);c<e&&d<i;)h>u==h>-u?(a=r+u,s=a-r,l=r-(a-s)+(u-s),u=t[++c]):(a=r+h,s=a-r,l=r-(a-s)+(h-s),h=n[++d]),r=a,0!==l&&(o[f++]=l);for(;c<e;)a=r+u,s=a-r,l=r-(a-s)+(u-s),u=t[++c],r=a,0!==l&&(o[f++]=l);for(;d<i;)a=r+h,s=a-r,l=r-(a-s)+(h-s),h=n[++d],r=a,0!==l&&(o[f++]=l);return 0===r&&0!==f||(o[f++]=r),f}function Ue(e){return new Float64Array(e)}const Oe=Ue(4),Ge=Ue(8),Ve=Ue(12),Ye=Ue(16),Ne=Ue(4);function $e(e,t,i,n,o,r){const a=(t-r)*(i-o),l=(e-o)*(n-r),s=a-l,u=Math.abs(a+l);return Math.abs(s)>=33306690738754716e-32*u?s:-function(e,t,i,n,o,r,a){let l,s,u,h,c,d,f,p,g,m,v,y,x,b,_,M,T,C;const S=e-o,w=i-o,k=t-r,A=n-r;b=S*A,d=Fe*S,f=d-(d-S),p=S-f,d=Fe*A,g=d-(d-A),m=A-g,_=p*m-(b-f*g-p*g-f*m),M=k*w,d=Fe*k,f=d-(d-k),p=k-f,d=Fe*w,g=d-(d-w),m=w-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Oe[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Oe[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Oe[2]=y-(C-c)+(v-c),Oe[3]=C;let L=function(e,t){let i=t[0];for(let n=1;n<e;n++)i+=t[n];return i}(4,Oe),D=22204460492503146e-32*a;if(L>=D||-L>=D)return L;if(c=e-S,l=e-(S+c)+(c-o),c=i-w,u=i-(w+c)+(c-o),c=t-k,s=t-(k+c)+(c-r),c=n-A,h=n-(A+c)+(c-r),0===l&&0===s&&0===u&&0===h)return L;if(D=11093356479670487e-47*a+33306690738754706e-32*Math.abs(L),L+=S*h+A*l-(k*u+w*s),L>=D||-L>=D)return L;b=l*A,d=Fe*l,f=d-(d-l),p=l-f,d=Fe*A,g=d-(d-A),m=A-g,_=p*m-(b-f*g-p*g-f*m),M=s*w,d=Fe*s,f=d-(d-s),p=s-f,d=Fe*w,g=d-(d-w),m=w-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const P=ze(4,Oe,4,Ne,Ge);b=S*h,d=Fe*S,f=d-(d-S),p=S-f,d=Fe*h,g=d-(d-h),m=h-g,_=p*m-(b-f*g-p*g-f*m),M=k*u,d=Fe*k,f=d-(d-k),p=k-f,d=Fe*u,g=d-(d-u),m=u-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const W=ze(P,Ge,4,Ne,Ve);b=l*h,d=Fe*l,f=d-(d-l),p=l-f,d=Fe*h,g=d-(d-h),m=h-g,_=p*m-(b-f*g-p*g-f*m),M=s*u,d=Fe*s,f=d-(d-s),p=s-f,d=Fe*u,g=d-(d-u),m=u-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const B=ze(W,Ve,4,Ne,Ye);return Ye[B-1]}(e,t,i,n,o,r,u)}const Xe=Math.pow(2,-52),Ke=new Uint32Array(512);class qe{static from(e,t=it,i=nt){const n=e.length,o=new Float64Array(2*n);for(let r=0;r<n;r++){const n=e[r];o[2*r]=t(n),o[2*r+1]=i(n)}return new qe(o)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const i=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*i),this._halfedges=new Int32Array(3*i),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:i,_hullTri:n,_hullHash:o}=this,r=e.length>>1;let a=1/0,l=1/0,s=-1/0,u=-1/0;for(let t=0;t<r;t++){const i=e[2*t],n=e[2*t+1];i<a&&(a=i),n<l&&(l=n),i>s&&(s=i),n>u&&(u=n),this._ids[t]=t}const h=(a+s)/2,c=(l+u)/2;let d,f,p;for(let t=0,i=1/0;t<r;t++){const n=Ze(h,c,e[2*t],e[2*t+1]);n<i&&(d=t,i=n)}const g=e[2*d],m=e[2*d+1];for(let t=0,i=1/0;t<r;t++){if(t===d)continue;const n=Ze(g,m,e[2*t],e[2*t+1]);n<i&&n>0&&(f=t,i=n)}let v=e[2*f],y=e[2*f+1],x=1/0;for(let t=0;t<r;t++){if(t===d||t===f)continue;const i=Qe(g,m,v,y,e[2*t],e[2*t+1]);i<x&&(p=t,x=i)}let b=e[2*p],_=e[2*p+1];if(x===1/0){for(let t=0;t<r;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];et(this._ids,this._dists,0,r-1);const t=new Uint32Array(r);let i=0;for(let e=0,n=-1/0;e<r;e++){const o=this._ids[e],r=this._dists[o];r>n&&(t[i++]=o,n=r)}return this.hull=t.subarray(0,i),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if($e(g,m,v,y,b,_)<0){const e=f,t=v,i=y;f=p,v=b,y=_,p=e,b=t,_=i}const M=function(e,t,i,n,o,r){const a=i-e,l=n-t,s=o-e,u=r-t,h=a*a+l*l,c=s*s+u*u,d=.5/(a*u-l*s),f=e+(u*h-l*c)*d,p=t+(a*c-s*h)*d;return{x:f,y:p}}(g,m,v,y,b,_);this._cx=M.x,this._cy=M.y;for(let t=0;t<r;t++)this._dists[t]=Ze(e[2*t],e[2*t+1],M.x,M.y);et(this._ids,this._dists,0,r-1),this._hullStart=d;let T=3;i[d]=t[p]=f,i[f]=t[d]=p,i[p]=t[f]=d,n[d]=0,n[f]=1,n[p]=2,o.fill(-1),o[this._hashKey(g,m)]=d,o[this._hashKey(v,y)]=f,o[this._hashKey(b,_)]=p,this.trianglesLen=0,this._addTriangle(d,f,p,-1,-1,-1);for(let r,a,l=0;l<this._ids.length;l++){const s=this._ids[l],u=e[2*s],h=e[2*s+1];if(l>0&&Math.abs(u-r)<=Xe&&Math.abs(h-a)<=Xe)continue;if(r=u,a=h,s===d||s===f||s===p)continue;let c=0;for(let e=0,t=this._hashKey(u,h);e<this._hashSize&&(c=o[(t+e)%this._hashSize],-1===c||c===i[c]);e++);c=t[c];let g,m=c;for(;g=i[m],$e(u,h,e[2*m],e[2*m+1],e[2*g],e[2*g+1])>=0;)if(m=g,m===c){m=-1;break}if(-1===m)continue;let v=this._addTriangle(m,s,i[m],-1,-1,n[m]);n[s]=this._legalize(v+2),n[m]=v,T++;let y=i[m];for(;g=i[y],$e(u,h,e[2*y],e[2*y+1],e[2*g],e[2*g+1])<0;)v=this._addTriangle(y,s,g,n[s],-1,n[y]),n[s]=this._legalize(v+2),i[y]=y,T--,y=g;if(m===c)for(;g=t[m],$e(u,h,e[2*g],e[2*g+1],e[2*m],e[2*m+1])<0;)v=this._addTriangle(g,s,m,-1,n[m],n[g]),this._legalize(v+2),n[g]=v,i[m]=m,T--,m=g;this._hullStart=t[s]=m,i[m]=t[y]=s,i[s]=y,o[this._hashKey(u,h)]=s,o[this._hashKey(e[2*m],e[2*m+1])]=m}this.hull=new Uint32Array(T);for(let e=0,t=this._hullStart;e<T;e++)this.hull[e]=t,t=i[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const i=e/(Math.abs(e)+Math.abs(t));return(t>0?3-i:1+i)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:i,coords:n}=this;let o=0,r=0;for(;;){const a=i[e],l=e-e%3;if(r=l+(e+2)%3,-1===a){if(0===o)break;e=Ke[--o];continue}const s=a-a%3,u=l+(e+1)%3,h=s+(a+2)%3,c=t[r],d=t[e],f=t[u],p=t[h];if(Je(n[2*c],n[2*c+1],n[2*d],n[2*d+1],n[2*f],n[2*f+1],n[2*p],n[2*p+1])){t[e]=p,t[a]=c;const n=i[h];if(-1===n){let t=this._hullStart;do{if(this._hullTri[t]===h){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,n),this._link(a,i[r]),this._link(r,h);const l=s+(a+1)%3;o<Ke.length&&(Ke[o++]=l)}else{if(0===o)break;e=Ke[--o]}}return r}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,i,n,o,r){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=i,this._link(a,n),this._link(a+1,o),this._link(a+2,r),this.trianglesLen+=3,a}}function Ze(e,t,i,n){const o=e-i,r=t-n;return o*o+r*r}function Je(e,t,i,n,o,r,a,l){const s=e-a,u=t-l,h=i-a,c=n-l,d=o-a,f=r-l,p=h*h+c*c,g=d*d+f*f;return s*(c*g-p*f)-u*(h*g-p*d)+(s*s+u*u)*(h*f-c*d)<0}function Qe(e,t,i,n,o,r){const a=i-e,l=n-t,s=o-e,u=r-t,h=a*a+l*l,c=s*s+u*u,d=.5/(a*u-l*s),f=(u*h-l*c)*d,p=(a*c-s*h)*d;return f*f+p*p}function et(e,t,i,n){if(n-i<=20)for(let o=i+1;o<=n;o++){const n=e[o],r=t[n];let a=o-1;for(;a>=i&&t[e[a]]>r;)e[a+1]=e[a--];e[a+1]=n}else{let o=i+1,r=n;tt(e,i+n>>1,o),t[e[i]]>t[e[n]]&&tt(e,i,n),t[e[o]]>t[e[n]]&&tt(e,o,n),t[e[i]]>t[e[o]]&&tt(e,i,o);const a=e[o],l=t[a];for(;;){do{o++}while(t[e[o]]<l);do{r--}while(t[e[r]]>l);if(r<o)break;tt(e,o,r)}e[i+1]=e[r],e[r]=a,n-o+1>=r-i?(et(e,t,o,n),et(e,t,i,r-1)):(et(e,t,i,r-1),et(e,t,o,n))}}function tt(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function it(e){return e[0]}function nt(e){return e[1]}const ot=1e-6;class rt{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,i){const n=(e=+e)+(i=+i),o=t=+t;if(i<0)throw new Error("negative radius");null===this._x1?this._+=`M${n},${o}`:(Math.abs(this._x1-n)>ot||Math.abs(this._y1-o)>ot)&&(this._+="L"+n+","+o),i&&(this._+=`A${i},${i},0,1,1,${e-i},${t}A${i},${i},0,1,1,${this._x1=n},${this._y1=o}`)}rect(e,t,i,n){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+i}v${+n}h${-i}Z`}value(){return this._||null}}class at{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class lt{constructor(e,[t,i,n,o]=[0,0,960,500]){if(!((n=+n)>=(t=+t)&&(o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=n,this.xmin=t,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:i},vectors:n}=this;let o,r;const a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let n,l,s=0,u=0,h=i.length;s<h;s+=3,u+=2){const h=2*i[s],c=2*i[s+1],d=2*i[s+2],f=e[h],p=e[h+1],g=e[c],m=e[c+1],v=e[d],y=e[d+1],x=g-f,b=m-p,_=v-f,M=y-p,T=2*(x*M-b*_);if(Math.abs(T)<1e-9){if(void 0===o){o=r=0;for(const i of t)o+=e[2*i],r+=e[2*i+1];o/=t.length,r/=t.length}const i=1e9*Math.sign((o-f)*M-(r-p)*_);n=(f+v)/2-i*M,l=(p+y)/2+i*_}else{const e=1/T,t=x*x+b*b,i=_*_+M*M;n=f+(M*t-b*i)*e,l=p+(x*i-_*t)*e}a[u]=n,a[u+1]=l}let l,s,u,h=t[t.length-1],c=4*h,d=e[2*h],f=e[2*h+1];n.fill(0);for(let i=0;i<t.length;++i)h=t[i],l=c,s=d,u=f,c=4*h,d=e[2*h],f=e[2*h+1],n[l+2]=n[c]=u-f,n[l+3]=n[c+1]=d-s}render(e){const t=null==e?e=new rt:void 0,{delaunay:{halfedges:i,inedges:n,hull:o},circumcenters:r,vectors:a}=this;if(o.length<=1)return null;for(let t=0,n=i.length;t<n;++t){const n=i[t];if(n<t)continue;const o=2*Math.floor(t/3),a=2*Math.floor(n/3),l=r[o],s=r[o+1],u=r[a],h=r[a+1];this._renderSegment(l,s,u,h,e)}let l,s=o[o.length-1];for(let t=0;t<o.length;++t){l=s,s=o[t];const i=2*Math.floor(n[s]/3),u=r[i],h=r[i+1],c=4*l,d=this._project(u,h,a[c+2],a[c+3]);d&&this._renderSegment(u,h,d[0],d[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new rt:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const i=null==t?t=new rt:void 0,n=this._clip(e);if(null===n||!n.length)return;t.moveTo(n[0],n[1]);let o=n.length;for(;n[0]===n[o-2]&&n[1]===n[o-1]&&o>1;)o-=2;for(let e=2;e<o;e+=2)n[e]===n[e-2]&&n[e+1]===n[e-1]||t.lineTo(n[e],n[e+1]);return t.closePath(),i&&i.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,i=e.length/2;t<i;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new at;return this.renderCell(e,t),t.value()}_renderSegment(e,t,i,n,o){let r;const a=this._regioncode(e,t),l=this._regioncode(i,n);0===a&&0===l?(o.moveTo(e,t),o.lineTo(i,n)):(r=this._clipSegment(e,t,i,n,a,l))&&(o.moveTo(r[0],r[1]),o.lineTo(r[2],r[3]))}contains(e,t,i){return(t=+t)==t&&(i=+i)==i&&this.delaunay._step(e,t,i)===e}*neighbors(e){const t=this._clip(e);if(t)for(const i of this.delaunay.neighbors(e)){const e=this._clip(i);if(e)e:for(let n=0,o=t.length;n<o;n+=2)for(let r=0,a=e.length;r<a;r+=2)if(t[n]===e[r]&&t[n+1]===e[r+1]&&t[(n+2)%o]===e[(r+a-2)%a]&&t[(n+3)%o]===e[(r+a-1)%a]){yield i;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:i,halfedges:n,triangles:o}}=this,r=i[e];if(-1===r)return null;const a=[];let l=r;do{const i=Math.floor(l/3);if(a.push(t[2*i],t[2*i+1]),l=l%3==2?l-2:l+1,o[l]!==e)break;l=n[l]}while(l!==r&&-1!==l);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:i}=this,n=4*e;return this._simplify(i[n]||i[n+1]?this._clipInfinite(e,t,i[n],i[n+1],i[n+2],i[n+3]):this._clipFinite(e,t))}_clipFinite(e,t){const i=t.length;let n,o,r,a,l=null,s=t[i-2],u=t[i-1],h=this._regioncode(s,u),c=0;for(let d=0;d<i;d+=2)if(n=s,o=u,s=t[d],u=t[d+1],r=h,h=this._regioncode(s,u),0===r&&0===h)a=c,c=0,l?l.push(s,u):l=[s,u];else{let t,i,d,f,p;if(0===r){if(null===(t=this._clipSegment(n,o,s,u,r,h)))continue;[i,d,f,p]=t}else{if(null===(t=this._clipSegment(s,u,n,o,h,r)))continue;[f,p,i,d]=t,a=c,c=this._edgecode(i,d),a&&c&&this._edge(e,a,c,l,l.length),l?l.push(i,d):l=[i,d]}a=c,c=this._edgecode(f,p),a&&c&&this._edge(e,a,c,l,l.length),l?l.push(f,p):l=[f,p]}if(l)a=c,c=this._edgecode(l[0],l[1]),a&&c&&this._edge(e,a,c,l,l.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return l}_clipSegment(e,t,i,n,o,r){const a=o<r;for(a&&([e,t,i,n,o,r]=[i,n,e,t,r,o]);;){if(0===o&&0===r)return a?[i,n,e,t]:[e,t,i,n];if(o&r)return null;let l,s,u=o||r;8&u?(l=e+(i-e)*(this.ymax-t)/(n-t),s=this.ymax):4&u?(l=e+(i-e)*(this.ymin-t)/(n-t),s=this.ymin):2&u?(s=t+(n-t)*(this.xmax-e)/(i-e),l=this.xmax):(s=t+(n-t)*(this.xmin-e)/(i-e),l=this.xmin),o?(e=l,t=s,o=this._regioncode(e,t)):(i=l,n=s,r=this._regioncode(i,n))}}_clipInfinite(e,t,i,n,o,r){let a,l=Array.from(t);if((a=this._project(l[0],l[1],i,n))&&l.unshift(a[0],a[1]),(a=this._project(l[l.length-2],l[l.length-1],o,r))&&l.push(a[0],a[1]),l=this._clipFinite(e,l))for(let t,i=0,n=l.length,o=this._edgecode(l[n-2],l[n-1]);i<n;i+=2)t=o,o=this._edgecode(l[i],l[i+1]),t&&o&&(i=this._edge(e,t,o,l,i),n=l.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(e,t,i,n,o){for(;t!==i;){let i,r;switch(t){case 5:t=4;continue;case 4:t=6,i=this.xmax,r=this.ymin;break;case 6:t=2;continue;case 2:t=10,i=this.xmax,r=this.ymax;break;case 10:t=8;continue;case 8:t=9,i=this.xmin,r=this.ymax;break;case 9:t=1;continue;case 1:t=5,i=this.xmin,r=this.ymin}n[o]===i&&n[o+1]===r||!this.contains(e,i,r)||(n.splice(o,0,i,r),o+=2)}return o}_project(e,t,i,n){let o,r,a,l=1/0;if(n<0){if(t<=this.ymin)return null;(o=(this.ymin-t)/n)<l&&(a=this.ymin,r=e+(l=o)*i)}else if(n>0){if(t>=this.ymax)return null;(o=(this.ymax-t)/n)<l&&(a=this.ymax,r=e+(l=o)*i)}if(i>0){if(e>=this.xmax)return null;(o=(this.xmax-e)/i)<l&&(r=this.xmax,a=t+(l=o)*n)}else if(i<0){if(e<=this.xmin)return null;(o=(this.xmin-e)/i)<l&&(r=this.xmin,a=t+(l=o)*n)}return[r,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const i=(t+2)%e.length,n=(t+4)%e.length;(e[t]===e[i]&&e[i]===e[n]||e[t+1]===e[i+1]&&e[i+1]===e[n+1])&&(e.splice(i,2),t-=2)}e.length||(e=null)}return e}}const st=2*Math.PI,ut=Math.pow;function ht(e){return e[0]}function ct(e){return e[1]}function dt(e,t,i){return[e+Math.sin(e+t)*i,t+Math.cos(e-t)*i]}class ft{static from(e,t=ht,i=ct,n){return new ft("length"in e?function(e,t,i,n){const o=e.length,r=new Float64Array(2*o);for(let a=0;a<o;++a){const o=e[a];r[2*a]=t.call(n,o,a,e),r[2*a+1]=i.call(n,o,a,e)}return r}(e,t,i,n):Float64Array.from(function*(e,t,i,n){let o=0;for(const r of e)yield t.call(n,r,o,e),yield i.call(n,r,o,e),++o}(e,t,i,n)))}constructor(e){this._delaunator=new qe(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:i}=e;for(let e=0;e<t.length;e+=3){const n=2*t[e],o=2*t[e+1],r=2*t[e+2];if((i[r]-i[n])*(i[o+1]-i[n+1])-(i[o]-i[n])*(i[r+1]-i[n+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,i)=>t[2*e]-t[2*i]||t[2*e+1]-t[2*i+1]));const e=this.collinear[0],i=this.collinear[this.collinear.length-1],n=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],o=1e-8*Math.hypot(n[3]-n[1],n[2]-n[0]);for(let e=0,i=t.length/2;e<i;++e){const i=dt(t[2*e],t[2*e+1],o);t[2*e]=i[0],t[2*e+1]=i[1]}this._delaunator=new qe(t)}else delete this.collinear;const i=this.halfedges=this._delaunator.halfedges,n=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,r=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let e=0,t=i.length;e<t;++e){const t=o[e%3==2?e-2:e+1];-1!==i[e]&&-1!==r[t]||(r[t]=e)}for(let e=0,t=n.length;e<t;++e)a[n[e]]=e;n.length<=2&&n.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=n[0],r[n[0]]=1,2===n.length&&(r[n[1]]=0,this.triangles[1]=n[1],this.triangles[2]=n[1]))}voronoi(e){return new lt(this,e)}*neighbors(e){const{inedges:t,hull:i,_hullIndex:n,halfedges:o,triangles:r,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const l=t[e];if(-1===l)return;let s=l,u=-1;do{if(yield u=r[s],s=s%3==2?s-2:s+1,r[s]!==e)return;if(s=o[s],-1===s){const t=i[(n[e]+1)%i.length];return void(t!==u&&(yield t))}}while(s!==l)}find(e,t,i=0){if((e=+e)!=e||(t=+t)!=t)return-1;const n=i;let o;for(;(o=this._step(i,e,t))>=0&&o!==i&&o!==n;)i=o;return o}_step(e,t,i){const{inedges:n,hull:o,_hullIndex:r,halfedges:a,triangles:l,points:s}=this;if(-1===n[e]||!s.length)return(e+1)%(s.length>>1);let u=e,h=ut(t-s[2*e],2)+ut(i-s[2*e+1],2);const c=n[e];let d=c;do{let n=l[d];const c=ut(t-s[2*n],2)+ut(i-s[2*n+1],2);if(c<h&&(h=c,u=n),d=d%3==2?d-2:d+1,l[d]!==e)break;if(d=a[d],-1===d){if(d=o[(r[e]+1)%o.length],d!==n&&ut(t-s[2*d],2)+ut(i-s[2*d+1],2)<h)return d;break}}while(d!==c);return u}render(e){const t=null==e?e=new rt:void 0,{points:i,halfedges:n,triangles:o}=this;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const a=2*o[t],l=2*o[r];e.moveTo(i[a],i[a+1]),e.lineTo(i[l],i[l+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const i=null==e?e=new rt:void 0,{points:n}=this;for(let i=0,o=n.length;i<o;i+=2){const o=n[i],r=n[i+1];e.moveTo(o+t,r),e.arc(o,r,t,0,st)}return i&&i.value()}renderHull(e){const t=null==e?e=new rt:void 0,{hull:i,points:n}=this,o=2*i[0],r=i.length;e.moveTo(n[o],n[o+1]);for(let t=1;t<r;++t){const o=2*i[t];e.lineTo(n[o],n[o+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new at;return this.renderHull(e),e.value()}renderTriangle(e,t){const i=null==t?t=new rt:void 0,{points:n,triangles:o}=this,r=2*o[e*=3],a=2*o[e+1],l=2*o[e+2];return t.moveTo(n[r],n[r+1]),t.lineTo(n[a],n[a+1]),t.lineTo(n[l],n[l+1]),t.closePath(),i&&i.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,i=e.length/3;t<i;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new at;return this.renderTriangle(e,t),t.value()}}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},pt.apply(null,arguments)}function gt(e,t){if(null==e)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}var mt={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},vt=function(e){return[e.x,e.y]},yt=Z,xt="cursor",bt=function(e){var t=e.points,i=e.getNodePosition,n=void 0===i?vt:i,o=e.margin,r=void 0===o?yt:o;return t.map((function(e){var t=n(e),i=t[0],o=t[1];return[i+r.left,o+r.top]}))},_t=function(e){var t=e.points,i=e.getNodePosition,n=void 0===i?vt:i,o=e.width,r=e.height,a=e.margin,l=void 0===a?yt:a,s=e.debug;return F((function(){return function(e){var t=e.points,i=e.width,n=e.height,o=e.margin,r=void 0===o?yt:o,a=e.debug,l=ft.from(t),s=a?l.voronoi([0,0,r.left+i+r.right,r.top+n+r.bottom]):void 0;return{points:t,delaunay:l,voronoi:s}}({points:bt({points:t,margin:l,getNodePosition:n}),width:o,height:r,margin:l,debug:s})}),[n,t,o,r,l,s])},Mt=function(e){var t=e.elementRef,i=e.nodes,n=e.getNodePosition,o=void 0===n?vt:n,r=e.delaunay,a=e.setCurrent,l=e.margin,s=void 0===l?yt:l,u=e.detectionRadius,h=void 0===u?1/0:u,c=e.isInteractive,d=void 0===c||c,f=e.onMouseEnter,p=e.onMouseMove,g=e.onMouseLeave,m=e.onMouseDown,v=e.onMouseUp,y=e.onClick,x=e.onDoubleClick,b=e.onTouchStart,_=e.onTouchMove,M=e.onTouchEnd,T=e.enableTouchCrosshair,C=void 0!==T&&T,S=e.tooltip,w=e.tooltipPosition,k=void 0===w?xt:w,A=e.tooltipAnchor,L=void 0===A?"top":A,D=U(null),P=D[0],W=D[1],B=z(null);V((function(){B.current=P}),[B,P]);var E=Y((function(e){if(!t.current||0===i.length)return null;var n=J(t.current,e),a=n[0],l=n[1],u=r.find(a,l),c=void 0!==u?i[u]:null;if(c&&h!==1/0){var d=o(c),f=d[0],p=d[1];Q(a,l,f+s.left,p+s.top)>h&&(u=null,c=null)}return null===u||null===c?null:[u,c]}),[t,r,i,o,s,h]),j=ee(),I=j.showTooltipAt,H=j.showTooltipFromEvent,R=j.hideTooltip,O=F((function(){if(S)return"cursor"===k?function(e,t){H(S(e),t,L)}:function(e){var t=o(e),i=t[0],n=t[1];I(S(e),[i+s.left,n+s.top],L)}}),[I,H,S,k,L,o,s]),G=Y((function(e){var t=E(e);if(W(t),null==a||a(t?t[1]:null),t){var i=t[1];null==O||O(i,e),null==f||f(t[1],e)}}),[E,W,a,O,f]),N=Y((function(e){var t=E(e);if(W(t),t){var i=t[0],n=t[1];if(null==a||a(n),null==O||O(n,e),B.current){var o=B.current,r=o[0],l=o[1];i!==r?null==g||g(l,e):null==p||p(n,e)}else null==f||f(n,e)}else null==a||a(null),null==R||R(),B.current&&(null==g||g(B.current[1],e))}),[E,W,a,B,f,p,g,O,R]),$=Y((function(e){W(null),null==a||a(null),R(),g&&B.current&&g(B.current[1],e)}),[W,a,B,R,g]),X=Y((function(e){var t=E(e);W(t),t&&(null==m||m(t[1],e))}),[E,W,m]),K=Y((function(e){var t=E(e);W(t),t&&(null==v||v(t[1],e))}),[E,W,v]),q=Y((function(e){var t=E(e);W(t),t&&(null==y||y(t[1],e))}),[E,W,y]),Z=Y((function(e){var t=E(e);W(t),t&&(null==x||x(t[1],e))}),[E,W,x]),te=Y((function(e){var t=E(e);C&&(W(t),null==a||a(t?t[1]:null)),t&&(null==b||b(t[1],e))}),[E,W,a,C,b]),ie=Y((function(e){var t=E(e);C&&(W(t),null==a||a(t?t[1]:null)),t&&(null==_||_(t[1],e))}),[E,W,a,C,_]),ne=Y((function(e){C&&(W(null),null==a||a(null)),M&&B.current&&M(B.current[1],e)}),[C,W,a,M,B]);return{current:P,handleMouseEnter:d?G:void 0,handleMouseMove:d?N:void 0,handleMouseLeave:d?$:void 0,handleMouseDown:d?X:void 0,handleMouseUp:d?K:void 0,handleClick:d?q:void 0,handleDoubleClick:d?Z:void 0,handleTouchStart:d?te:void 0,handleTouchMove:d?ie:void 0,handleTouchEnd:d?ne:void 0}},Tt=["theme"],Ct=function(e){var t=e.data,i=e.width,n=e.height,o=e.margin,r=e.layers,a=void 0===r?mt.layers:r,l=e.xDomain,u=void 0===l?mt.xDomain:l,h=e.yDomain,c=void 0===h?mt.yDomain:h,d=e.enableLinks,f=void 0===d?mt.enableLinks:d,p=e.linkLineWidth,g=void 0===p?mt.linkLineWidth:p,m=e.linkLineColor,v=void 0===m?mt.linkLineColor:m,y=e.enableCells,x=void 0===y?mt.enableCells:y,b=e.cellLineWidth,_=void 0===b?mt.cellLineWidth:b,M=e.cellLineColor,T=void 0===M?mt.cellLineColor:M,C=e.enablePoints,S=void 0===C?mt.enableCells:C,k=e.pointSize,A=void 0===k?mt.pointSize:k,L=e.pointColor,D=void 0===L?mt.pointColor:L,P=e.role,B=void 0===P?mt.role:P,E=e.forwardedRef,j=K(i,n,o),I=j.outerWidth,H=j.outerHeight,R=j.margin,z=function(e){var t=e.data,i=e.width,n=e.height,o=e.xDomain,r=e.yDomain,a=F((function(){return De().domain(o).range([0,i])}),[o,i]),l=F((function(){return De().domain(r).range([0,n])}),[r,n]),s=F((function(){return t.map((function(e){return{x:a(e.x),y:l(e.y),data:e}}))}),[t,a,l]);return F((function(){var e=ft.from(s.map((function(e){return[e.x,e.y]}))),t=e.voronoi([0,0,i,n]);return{points:s,delaunay:e,voronoi:t}}),[s,i,n])}({data:t,width:j.innerWidth,height:j.innerHeight,xDomain:u,yDomain:c}),U=z.points,O=z.delaunay,G=z.voronoi,V={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(V.links=s("path",{stroke:v,strokeWidth:g,fill:"none",d:O.render()},"links")),x&&a.includes("cells")&&(V.cells=s("path",{d:G.render(),fill:"none",stroke:T,strokeWidth:_},"cells")),S&&a.includes("points")&&(V.points=s("path",{stroke:"none",fill:D,d:O.renderPoints(void 0,A/2)},"points")),a.includes("bounds")&&(V.bounds=s("path",{fill:"none",stroke:T,strokeWidth:_,d:G.renderBounds()},"bounds"));var Y=function(e){var t=e.points,i=e.delaunay,n=e.voronoi;return F((function(){return{points:t,delaunay:i,voronoi:n}}),[t,i,n])}({points:U,delaunay:O,voronoi:G});return s(q,{width:I,height:H,margin:R,role:B,ref:E,children:a.map((function(e,t){return void 0!==V[e]?V[e]:"function"==typeof e?s(w,{children:W(e,Y)},t):null}))})},St=_((function(e,t){var i=e.theme,n=gt(e,Tt);return s($,{isInteractive:!1,animate:!1,theme:i,children:s(Ct,pt({},n,{forwardedRef:t}))})})),wt=["defaultWidth","defaultHeight","onResize","debounceResize"];_((function(e,t){var i=e.defaultWidth,n=e.defaultHeight,o=e.onResize,r=e.debounceResize,a=gt(e,wt);return s(X,{defaultWidth:i,defaultHeight:n,onResize:o,debounceResize:r,children:function(e){var i=e.width,n=e.height;return s(St,pt({},a,{width:i,height:n,ref:t}))}})}));var kt=function(e){var t=e.nodes,i=e.width,n=e.height,o=e.margin,r=void 0===o?yt:o,a=e.getNodePosition,l=e.setCurrent,u=e.onMouseEnter,h=e.onMouseMove,c=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,y=e.onTouchEnd,x=e.enableTouchCrosshair,b=void 0!==x&&x,_=e.detectionRadius,M=void 0===_?1/0:_,T=e.tooltip,C=e.tooltipPosition,S=void 0===C?xt:C,w=e.tooltipAnchor,k=void 0===w?"top":w,A=e.debug,L=z(null),D=_t({points:t,getNodePosition:a,width:i,height:n,margin:r,debug:A}),P=D.delaunay,W=D.voronoi,B=Mt({elementRef:L,nodes:t,delaunay:P,margin:r,detectionRadius:M,setCurrent:l,onMouseEnter:u,onMouseMove:h,onMouseLeave:c,onMouseDown:d,onMouseUp:f,onClick:p,onDoubleClick:g,onTouchStart:m,onTouchMove:v,onTouchEnd:y,enableTouchCrosshair:b,tooltip:T,tooltipPosition:S,tooltipAnchor:k}),E=B.current,j=B.handleMouseEnter,I=B.handleMouseMove,H=B.handleMouseLeave,R=B.handleMouseDown,U=B.handleMouseUp,O=B.handleClick,G=B.handleDoubleClick,V=B.handleTouchStart,Y=B.handleTouchMove,N=B.handleTouchEnd,$=F((function(){if(A&&W)return W.render()}),[A,W]);return s("g",{ref:L,transform:"translate("+-r.left+","+-r.top+")",children:[A&&W&&s(Pe,{children:[s("path",{d:$,stroke:"red",strokeWidth:1,opacity:.75}),M<1/0&&s("path",{stroke:"red",strokeWidth:.35,fill:"none",d:P.renderPoints(void 0,M)}),E&&s("path",{fill:"pink",opacity:.35,d:W.renderCell(E[0])})]}),s("rect",{"data-ref":"mesh-interceptor",width:r.left+i+r.right,height:r.top+n+r.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:j,onMouseMove:I,onMouseLeave:H,onMouseDown:R,onMouseUp:U,onTouchStart:V,onTouchMove:Y,onTouchEnd:N,onClick:O,onDoubleClick:G})]})};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},At.apply(null,arguments)}function Lt(e,t){if(null==e)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}var Dt,Pt={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:N((function(e){var t=e.point;return s(oe,{id:s("span",{children:["x: ",s("strong",{children:t.data.xFormatted}),", y:"," ",s("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})})),sliceTooltip:N((function(e){var t=e.slice,i=e.axis,n=te(),o="x"===i?"y":"x";return s(ne,{rows:t.points.map((function(e){return[s(ie,{color:e.seriesColor,style:n.tooltip.chip},"chip"),e.seriesId,s("span",{style:n.tooltip.tableCellValue,children:e.data[o+"Formatted"]},"value")]}))})})),debugMesh:!1,renderWrapper:!0},Wt=At({},Pt,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:be,axisLeft:be,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),Bt=At({},Pt,{pixelRatio:"undefined"!=typeof window&&null!=(Dt=window.devicePixelRatio)?Dt:1,axisTop:null,axisRight:null,axisBottom:be,axisLeft:be});function Et(e){return F((function(){return Be().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y((function(e){return e.y})).curve(xe(e))}),[e])}function jt(e){var t=e.curve,i=e.yScale,n=e.areaBaselineValue;return F((function(){return We().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y1((function(e){return e.y})).curve(xe(t)).y0(i(n))}),[t,i,n])}var It=function(e){var t=e.data,i=e.xScale,n=void 0===i?Pt.xScale:i,o=e.xFormat,r=e.yScale,a=void 0===r?Pt.yScale:r,l=e.yFormat,s=e.width,u=e.height,h=e.colors,c=void 0===h?Pt.colors:h,d=e.curve,f=void 0===d?Pt.curve:d,p=e.areaBaselineValue,g=void 0===p?Pt.areaBaselineValue:p,m=e.pointColor,v=void 0===m?Pt.pointColor:m,y=e.pointBorderColor,x=void 0===y?Pt.pointBorderColor:y,b=e.enableSlices,_=void 0===b?Wt.enableSlices:b,M=e.initialHiddenIds,T=void 0===M?Wt.initialHiddenIds:M,C=U(Re("line"))[0],S=me(o),w=me(l),k=ve(c,"id"),A=te(),L=ye(v,A),D=ye(x,A),P=U(null!=T?T:[]),W=P[0],B=P[1],E=F((function(){return Se(t.filter((function(e){return-1===W.indexOf(e.id)})),n,a,s,u)}),[t,W,n,a,s,u]),j=E.xScale,I=E.yScale,H=E.series,R=F((function(){var e=t.map((function(e){return{id:e.id,label:""+e.id,color:k(e)}})),i=e.map((function(e){return At({},H.find((function(t){return t.id===e.id})),{color:e.color})})).filter((function(e){return Boolean(e.id)}));return{legendData:e.map((function(e){return At({},e,{hidden:!i.find((function(t){return t.id===e.id}))})})).reverse(),series:i}}),[t,H,k]),z=R.legendData,O=R.series,G=Y((function(e){B((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),V=function(e){var t=e.series,i=e.getPointColor,n=e.getPointBorderColor,o=e.formatX,r=e.formatY;return F((function(){return t.reduce((function(e,t,a){return[].concat(e,t.data.filter((function(e){return null!==e.position.x&&null!==e.position.y})).map((function(l,s){var u={id:t.id+"."+s,indexInSeries:s,absIndex:e.length+s,seriesIndex:a,seriesId:t.id,seriesColor:t.color,x:l.position.x,y:l.position.y,data:At({},l.data,{xFormatted:o(l.data.x),yFormatted:r(l.data.y)})};return u.color=i({series:t,point:u}),u.borderColor=n(u),u})))}),[])}),[t,i,n,o,r])}({series:O,getPointColor:L,getPointBorderColor:D,formatX:S,formatY:w}),N=function(e){var t=e.componentId,i=e.enableSlices,n=e.points,o=e.width,r=e.height;return F((function(){if("x"===i){var e=new Map;return n.forEach((function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))})),Array.from(e.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,i,n){var a,l,s=e[0],u=e[1],h=n[i-1],c=n[i+1];return a=h?s-(s-h[0])/2:s,l=c?s-a+(c[0]-s)/2:o-a,{id:"slice:"+t+":"+s,x0:a,x:s,y0:0,y:0,width:l,height:r,points:u.reverse()}}))}if("y"===i){var a=new Map;return n.forEach((function(e){null!==e.data.x&&null!==e.data.y&&(a.has(e.y)?a.get(e.y).push(e):a.set(e.y,[e]))})),Array.from(a.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,i){var n,a,l=e[0],s=e[1],u=i[t-1],h=i[t+1];return n=u?l-(l-u[0])/2:l,a=h?l-n+(h[0]-l)/2:r-n,{id:l,x0:0,x:0,y0:n,y:l,width:o,height:a,points:s.reverse()}}))}return[]}),[t,i,r,n,o])}({componentId:C,enableSlices:_,points:V,width:s,height:u});return{legendData:z,toggleSeries:G,lineGenerator:Et(f),areaGenerator:jt({curve:f,yScale:I,areaBaselineValue:g}),getColor:k,series:O,xScale:j,yScale:I,slices:N,points:V}},Ht=function(e){var t=e.areaBlendMode,i=e.areaOpacity,n=e.color,o=e.fill,r=e.path,a=ue(),l=a.animate,u=a.config,h=re(r),c=he({color:n,config:u,immediate:!l});return s(ae.path,{d:h,fill:o||c.color,fillOpacity:i,strokeWidth:0,style:{mixBlendMode:t}})},Rt=N((function(e){var t=e.areaGenerator,i=e.areaOpacity,n=e.areaBlendMode,o=e.series.slice(0).reverse();return s("g",{children:o.map((function(e){return s(Ht,At({path:t(e.data.map((function(e){return e.position})))},At({areaOpacity:i,areaBlendMode:n},e)),""+e.id)}))})})),Ft=N((function(e){var t=e.lineGenerator,i=e.points,n=e.color,o=e.thickness,r=F((function(){return t(i)}),[t,i]),a=re(r);return s(ae.path,{d:a,fill:"none",strokeWidth:o,stroke:n})})),zt=N((function(e){var t=e.series,i=e.lineGenerator,n=e.lineWidth;return s(Pe,{children:t.slice(0).reverse().map((function(e){var t=e.id,o=e.data,r=e.color;return s(Ft,{points:o.map((function(e){return e.position})),lineGenerator:i,color:r,thickness:n},t)}))})})),Ut=N((function(e){var t=e.slice,i=e.slices,n=e.axis,o=e.debug,r=e.tooltip,a=e.isCurrent,l=e.setCurrent,u=e.onMouseEnter,h=e.onMouseMove,c=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,y=e.onTouchEnd,x=ee(),b=x.showTooltipFromEvent,_=x.hideTooltip,M=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),l(t),null==u||u(t,e)}),[b,r,t,n,l,u]),T=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),null==h||h(t,e)}),[b,r,t,n,h]),C=Y((function(e){_(),l(null),null==c||c(t,e)}),[_,l,c,t]),S=Y((function(e){null==d||d(t,e)}),[t,d]),w=Y((function(e){null==f||f(t,e)}),[t,f]),k=Y((function(e){null==p||p(t,e)}),[t,p]),A=Y((function(e){null==g||g(t,e)}),[t,g]),L=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),l(t),null==m||m(t,e)}),[n,m,l,b,t,r]),D=Y((function(e){var o=e.touches[0],a=document.elementFromPoint(o.clientX,o.clientY),s=null==a?void 0:a.getAttribute("data-ref");if(s){var u=i.find((function(e){return e.id===s}));u&&(b(W(r,{slice:u,axis:n}),e,"right"),l(u))}null==v||v(t,e)}),[n,v,l,b,t,i,r]),P=Y((function(e){_(),l(null),null==y||y(t,e)}),[_,l,y,t]);return s("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:o?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&o?.35:0,onMouseEnter:M,onMouseMove:T,onMouseLeave:C,onMouseDown:S,onMouseUp:w,onClick:k,onDoubleClick:A,onTouchStart:L,onTouchMove:D,onTouchEnd:P,"data-ref":t.id})})),Ot=N((function(e){var t=e.slices,i=e.axis,n=e.debug,o=e.tooltip,r=e.current,a=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,h=e.onMouseLeave,c=e.onMouseDown,d=e.onMouseUp,f=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,m=e.onTouchMove,v=e.onTouchEnd;return s(Pe,{children:t.map((function(e){return s(Ut,{slice:e,slices:t,axis:i,debug:n,tooltip:o,setCurrent:a,isCurrent:null!==r&&r.id===e.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:h,onMouseDown:c,onMouseUp:d,onClick:f,onDoubleClick:p,onTouchStart:g,onTouchMove:m,onTouchEnd:v},e.id)}))})})),Gt=N((function(e){var t=e.points,i=e.symbol,n=e.size,o=e.borderWidth,r=e.enableLabel,a=e.label,l=e.labelYOffset,u=e.isFocusable,h=e.setCurrentPoint,c=e.tooltip,d=e.margin,f=e.ariaLabel,p=e.ariaLabelledBy,g=e.ariaDescribedBy,m=e.ariaHidden,v=e.ariaDisabled,y=le(a),x=ee(),b=x.showTooltipAt,_=x.hideTooltip,M=t.slice(0).sort((function(e,t){return e.indexInSeries-t.indexInSeries})).sort((function(e,t){return t.seriesIndex-e.seriesIndex})).map((function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:r?y(e):null,ariaLabel:f?f(e):void 0,ariaLabelledBy:p?p(e):void 0,ariaDescribedBy:g?g(e):void 0,ariaHidden:m?m(e):void 0,ariaDisabled:v?v(e):void 0,onFocus:u?function(){h(e),b(W(c,{point:e}),[d.left+e.x,d.top+e.y],"top")}:void 0,onBlur:u?function(){h(null),_()}:void 0}}));return s("g",{children:M.map((function(e){return s(se,{x:e.x,y:e.y,datum:e.datum,symbol:i,size:n,color:e.fill,borderWidth:o,borderColor:e.stroke,label:e.label,labelYOffset:l,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:u,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)}))})})),Vt=N((function(e){var t=e.points,i=e.width,n=e.height,o=e.margin,r=e.setCurrent,a=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,h=e.onMouseDown,c=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,p=e.onTouchStart,g=e.onTouchMove,m=e.onTouchEnd,v=e.tooltip,y=e.debug,x=e.enableTouchCrosshair,b=ee(),_=b.showTooltipAt,M=b.hideTooltip,T=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==a||a(e,t)}),[_,v,a,o]),C=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==l||l(e,t)}),[_,v,o.left,o.top,l]),S=Y((function(e,t){M(),null==u||u(e,t)}),[M,u]),w=Y((function(e,t){null==h||h(e,t)}),[h]),k=Y((function(e,t){null==c||c(e,t)}),[c]),A=Y((function(e,t){null==d||d(e,t)}),[d]),L=Y((function(e,t){null==f||f(e,t)}),[f]),D=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==p||p(e,t)}),[o.left,o.top,p,_,v]),P=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==g||g(e,t)}),[o.left,o.top,g,_,v]),B=Y((function(e,t){M(),null==m||m(e,t)}),[m,M]);return s(kt,{nodes:t,width:i,height:n,setCurrent:r,onMouseEnter:T,onMouseMove:C,onMouseLeave:S,onMouseDown:w,onMouseUp:k,onClick:A,onDoubleClick:L,onTouchStart:D,onTouchMove:P,onTouchEnd:B,enableTouchCrosshair:x,debug:y})})),Yt=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Nt(e){var t=e.data,i=e.xScale,n=void 0===i?Wt.xScale:i,o=e.xFormat,r=e.yScale,a=void 0===r?Wt.yScale:r,l=e.yFormat,u=e.curve,h=void 0===u?Wt.curve:u,c=e.margin,d=e.width,f=e.height,p=e.colors,g=void 0===p?Wt.colors:p,m=e.lineWidth,v=void 0===m?Wt.lineWidth:m,y=e.layers,x=void 0===y?Wt.layers:y,b=e.enableArea,_=void 0===b?Wt.enableArea:b,M=e.areaBaselineValue,T=void 0===M?Wt.areaBaselineValue:M,C=e.areaOpacity,S=void 0===C?Wt.areaOpacity:C,k=e.areaBlendMode,A=void 0===k?Wt.areaBlendMode:k,L=e.enablePoints,D=void 0===L?Wt.enablePoints:L,P=e.pointSymbol,W=e.pointSize,B=void 0===W?Wt.pointSize:W,E=e.pointColor,j=void 0===E?Wt.pointColor:E,I=e.pointBorderWidth,H=void 0===I?Wt.pointBorderWidth:I,R=e.pointBorderColor,F=void 0===R?Wt.pointBorderColor:R,z=e.enablePointLabel,O=void 0===z?Wt.enablePointLabel:z,G=e.pointLabel,V=void 0===G?Wt.pointLabel:G,Y=e.pointLabelYOffset,N=e.enableGridX,$=void 0===N?Wt.enableGridX:N,X=e.gridXValues,Z=e.enableGridY,J=void 0===Z?Wt.enableGridY:Z,Q=e.gridYValues,ee=e.axisTop,te=e.axisRight,ie=e.axisBottom,ne=void 0===ie?Wt.axisBottom:ie,oe=e.axisLeft,re=void 0===oe?Wt.axisLeft:oe,ae=e.defs,le=void 0===ae?Wt.defs:ae,se=e.fill,ue=void 0===se?Wt.fill:se,he=e.markers,pe=e.legends,ge=void 0===pe?Wt.legends:pe,me=e.isInteractive,ve=void 0===me?Wt.isInteractive:me,ye=e.useMesh,xe=void 0===ye?Wt.useMesh:ye,be=e.debugMesh,Te=void 0===be?Wt.debugMesh:be,Ce=e.onMouseEnter,Se=e.onMouseMove,ke=e.onMouseLeave,Ae=e.onMouseDown,Le=e.onMouseUp,De=e.onClick,Pe=e.onDoubleClick,We=e.onTouchStart,Be=e.onTouchMove,Ee=e.onTouchEnd,je=e.tooltip,Ie=void 0===je?Wt.tooltip:je,He=e.enableSlices,Re=void 0===He?Wt.enableSlices:He,Fe=e.debugSlices,ze=void 0===Fe?Wt.debugSlices:Fe,Ue=e.sliceTooltip,Oe=void 0===Ue?Wt.sliceTooltip:Ue,Ge=e.enableCrosshair,Ve=void 0===Ge?Wt.enableCrosshair:Ge,Ye=e.crosshairType,Ne=void 0===Ye?Wt.crosshairType:Ye,$e=e.enableTouchCrosshair,Xe=void 0===$e?Wt.enableTouchCrosshair:$e,Ke=e.role,qe=void 0===Ke?Wt.role:Ke,Ze=e.ariaLabel,Je=e.ariaLabelledBy,Qe=e.ariaDescribedBy,et=e.isFocusable,tt=void 0===et?Wt.isFocusable:et,it=e.pointAriaLabel,nt=e.pointAriaLabelledBy,ot=e.pointAriaDescribedBy,rt=e.pointAriaHidden,at=e.pointAriaDisabled,lt=e.initialHiddenIds,st=void 0===lt?Wt.initialHiddenIds:lt,ut=e.forwardedRef,ht=K(d,f,c),ct=ht.margin,dt=ht.innerWidth,ft=ht.innerHeight,pt=ht.outerWidth,gt=ht.outerHeight,mt=It({data:t,xScale:n,xFormat:o,yScale:a,yFormat:l,width:dt,height:ft,colors:g,curve:h,areaBaselineValue:T,pointColor:j,pointBorderColor:F,enableSlices:Re,initialHiddenIds:st}),vt=mt.legendData,yt=mt.toggleSeries,xt=mt.lineGenerator,bt=mt.areaGenerator,_t=mt.series,Mt=mt.xScale,Tt=mt.yScale,Ct=mt.slices,St=mt.points,wt=U(null),kt=wt[0],Lt=wt[1],Dt=U(null),Pt=Dt[0],Bt=Dt[1],Et={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};x.includes("grid")&&($||J)&&(Et.grid=s(_e,{width:dt,height:ft,xScale:$?Mt:null,yScale:J?Tt:null,xValues:X,yValues:Q},"grid")),x.includes("markers")&&Array.isArray(he)&&he.length>0&&(Et.markers=s(ce,{markers:he,width:dt,height:ft,xScale:Mt,yScale:Tt},"markers")),x.includes("axes")&&(Et.axes=s(Me,{xScale:Mt,yScale:Tt,width:dt,height:ft,top:ee,right:te,bottom:ne,left:re},"axes")),x.includes("lines")&&(Et.lines=s(zt,{series:_t,lineGenerator:xt,lineWidth:v},"lines")),x.includes("legends")&&ge.length>0&&(Et.legends=s(w,{children:ge.map((function(e,t){return s(we,At({},e,{containerWidth:dt,containerHeight:ft,data:e.data||vt,toggleSerie:e.toggleSerie?yt:void 0}),t)}))},"legends"));var jt=de(le,_t,ue);_&&(Et.areas=s(Rt,{areaGenerator:bt,areaOpacity:S,areaBlendMode:A,series:_t},"areas")),ve&&!1!==Re&&(Et.slices=s(Ot,{slices:Ct,axis:Re,debug:ze,tooltip:Oe,current:Pt,setCurrent:Bt,onMouseEnter:Ce,onMouseMove:Se,onMouseLeave:ke,onMouseDown:Ae,onMouseUp:Le,onClick:De,onDoubleClick:Pe,onTouchStart:We,onTouchMove:Be,onTouchEnd:Ee},"slices")),D&&(Et.points=s(Gt,{points:St,symbol:P,size:B,borderWidth:H,enableLabel:O,label:V,labelYOffset:Y,isFocusable:tt,setCurrentPoint:Lt,tooltip:Ie,margin:ct,ariaLabel:it,ariaLabelledBy:nt,ariaDescribedBy:ot,ariaHidden:rt,ariaDisabled:at},"points")),ve&&Ve&&(null!==kt&&(Et.crosshair=s(fe,{width:dt,height:ft,x:kt.x,y:kt.y,type:Ne},"crosshair")),null!==Pt&&Re&&(Et.crosshair=s(fe,{width:dt,height:ft,x:Pt.x,y:Pt.y,type:Re},"crosshair"))),ve&&xe&&!1===Re&&(Et.mesh=s(Vt,{points:St,width:dt,height:ft,margin:ct,setCurrent:Lt,onMouseEnter:Ce,onMouseMove:Se,onMouseLeave:ke,onMouseDown:Ae,onMouseUp:Le,onClick:De,onDoubleClick:Pe,onTouchStart:We,onTouchMove:Be,onTouchEnd:Ee,tooltip:Ie,enableTouchCrosshair:Xe,debug:Te},"mesh"));var Ht=At({},e,{innerWidth:dt,innerHeight:ft,series:_t,slices:Ct,points:St,xScale:Mt,yScale:Tt,lineGenerator:xt,areaGenerator:bt,currentPoint:kt,setCurrentPoint:Lt,currentSlice:Pt,setCurrentSlice:Bt});return s(q,{defs:jt,width:pt,height:gt,margin:ct,role:qe,ariaLabel:Ze,ariaLabelledBy:Je,ariaDescribedBy:Qe,isFocusable:tt,ref:ut,children:x.map((function(e,t){return"function"==typeof e?s(w,{children:e(Ht)},t):Et[e]}))})}var $t=_((function(e,t){var i=e.isInteractive,n=void 0===i?Wt.isInteractive:i,o=e.animate,r=void 0===o?Wt.animate:o,a=e.motionConfig,l=void 0===a?Wt.motionConfig:a,u=e.theme,h=e.renderWrapper,c=Lt(e,Yt);return s($,{animate:r,isInteractive:n,motionConfig:l,renderWrapper:h,theme:u,children:s(Nt,At({isInteractive:n},c,{forwardedRef:t}))})})),Xt=["defaultWidth","defaultHeight","onResize","debounceResize"],Kt=_((function(e,t){var i=e.defaultWidth,n=e.defaultHeight,o=e.onResize,r=e.debounceResize,a=Lt(e,Xt);return s(X,{defaultWidth:i,defaultHeight:n,onResize:o,debounceResize:r,children:function(e){var i=e.width,n=e.height;return s($t,At({width:i,height:n},a,{ref:t}))}})})),qt=["isInteractive","renderWrapper","theme"],Zt=function(e){var t=e.width,i=e.height,n=e.margin,o=e.pixelRatio,r=void 0===o?Bt.pixelRatio:o,a=e.data,l=e.xScale,u=void 0===l?Bt.xScale:l,h=e.xFormat,c=e.yScale,d=void 0===c?Bt.yScale:c,f=e.yFormat,p=e.curve,g=void 0===p?Bt.curve:p,m=e.layers,v=void 0===m?Bt.layers:m,y=e.colors,x=void 0===y?Bt.colors:y,b=e.lineWidth,_=void 0===b?Bt.lineWidth:b,M=e.enableArea,T=void 0===M?Bt.enableArea:M,C=e.areaBaselineValue,S=void 0===C?Bt.areaBaselineValue:C,w=e.areaOpacity,k=void 0===w?Bt.areaOpacity:w,A=e.enablePoints,L=void 0===A?Bt.enablePoints:A,D=e.pointSize,P=void 0===D?Bt.pointSize:D,B=e.pointColor,E=void 0===B?Bt.pointColor:B,j=e.pointBorderWidth,I=void 0===j?Bt.pointBorderWidth:j,H=e.pointBorderColor,R=void 0===H?Bt.pointBorderColor:H,O=e.enableGridX,G=void 0===O?Bt.enableGridX:O,N=e.gridXValues,$=e.enableGridY,X=void 0===$?Bt.enableGridY:$,q=e.gridYValues,Z=e.axisTop,Q=e.axisRight,ie=e.axisBottom,ne=void 0===ie?Bt.axisBottom:ie,oe=e.axisLeft,re=void 0===oe?Bt.axisLeft:oe,ae=e.legends,le=void 0===ae?Bt.legends:ae,se=e.isInteractive,ue=void 0===se?Bt.isInteractive:se,he=e.debugMesh,ce=void 0===he?Bt.debugMesh:he,de=e.onMouseLeave,fe=e.onMouseDown,me=e.onMouseUp,ve=e.onClick,ye=e.onDoubleClick,xe=e.tooltip,be=void 0===xe?Bt.tooltip:xe,_e=e.role,Me=e.forwardedRef,Se=z(null),we=K(t,i,n),Ae=we.margin,Le=we.innerWidth,De=we.innerHeight,Pe=we.outerWidth,We=we.outerHeight,Be=te(),Ee=U(null),je=Ee[0],Ie=Ee[1],He=It({data:a,xScale:u,xFormat:h,yScale:d,yFormat:f,width:Le,height:De,colors:x,curve:g,areaBaselineValue:S,pointColor:E,pointBorderColor:R}),Re=He.lineGenerator,Fe=He.areaGenerator,ze=He.series,Ue=He.xScale,Oe=He.yScale,Ge=He.points,Ve=F((function(){return{innerWidth:Le,innerHeight:De,series:ze,points:Ge,xScale:Ue,yScale:Oe,lineWidth:_,lineGenerator:Re,areaGenerator:Fe,currentPoint:je,setCurrentPoint:Ie}}),[Le,De,ze,Ge,Ue,Oe,_,Re,Fe,je,Ie]),Ye=_t({points:Ge,width:Le,height:De,debug:ce}),Ne=Ye.delaunay,$e=Ye.voronoi;V((function(){if(null!==Se.current){Se.current.width=Pe*r,Se.current.height=We*r;var e=Se.current.getContext("2d");e.scale(r,r),e.fillStyle=Be.background,e.fillRect(0,0,Pe,We),e.translate(Ae.left,Ae.top),v.forEach((function(t){var i;"function"==typeof t&&t(e,Ve);var n=null!=(i=Be.grid.line.strokeWidth)?i:0;if("grid"===t&&"string"!=typeof n&&n>0&&(e.lineWidth=n,e.strokeStyle=Be.grid.line.stroke,G&&Te(e,{width:Le,height:De,scale:Ue,axis:"x",values:N}),X&&Te(e,{width:Le,height:De,scale:Oe,axis:"y",values:q})),"axes"===t&&Ce(e,{xScale:Ue,yScale:Oe,width:Le,height:De,top:Z,right:Q,bottom:ne,left:re,theme:Be}),"areas"===t&&!0===T){e.save(),e.globalAlpha=k,Fe.context(e);for(var o=ze.length-1;o>=0;o--)e.fillStyle=ze[o].color,e.beginPath(),Fe(ze[o].data.map((function(e){return e.position}))),e.fill();e.restore()}if("lines"===t&&(Re.context(e),ze.forEach((function(t){e.strokeStyle=t.color,e.lineWidth=_,e.beginPath(),Re(t.data.map((function(e){return e.position}))),e.stroke()}))),"points"===t&&!0===L&&P>0&&Ge.forEach((function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,P/2,0,2*Math.PI),e.fill(),I>0&&(e.strokeStyle=t.borderColor,e.lineWidth=I,e.stroke())})),"mesh"===t&&!0===ce&&void 0!==$e&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()}(e,$e),je&&function(e,t,i){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(i,e),e.fillStyle="pink",e.fill(),e.restore()}(e,$e,je.absIndex)),"legends"===t){var r=ze.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse();le.forEach((function(t){ke(e,At({},t,{data:t.data||r,containerWidth:Le,containerHeight:De,theme:Be}))}))}}))}}),[Se,Le,Pe,De,We,Ae.left,Ae.top,r,v,Be,Re,ze,Ue,Oe,G,N,X,q,Z,Q,ne,re,le,Ge,L,P,I,je,Ve,ce,T,Fe,k,_,$e]);var Xe=Y((function(e){if(!Se.current)return null;var t=J(Se.current,e),i=t[0],n=t[1];if(!pe(Ae.left,Ae.top,Le,De,i,n))return null;var o=Ne.find(i-Ae.left,n-Ae.top);return Ge[o]}),[Se,Ae,Le,De,Ne,Ge]),Ke=ee(),qe=Ke.showTooltipFromEvent,Ze=Ke.hideTooltip,Je=Y((function(e){var t=Xe(e);Ie(t),t?qe(W(be,{point:t}),e):Ze()}),[Xe,Ie,qe,Ze,be]),Qe=Y((function(e){Ze(),Ie(null),je&&(null==de||de(je,e))}),[Ze,Ie,de,je]),et=Y((function(e){if(fe){var t=Xe(e);t&&fe(t,e)}}),[Xe,fe]),tt=Y((function(e){if(me){var t=Xe(e);t&&me(t,e)}}),[Xe,me]),it=Y((function(e){if(ve){var t=Xe(e);t&&ve(t,e)}}),[Xe,ve]),nt=Y((function(e){if(ye){var t=Xe(e);t&&ye(t,e)}}),[Xe,ye]);return s("canvas",{ref:ge(Se,Me),width:Pe*r,height:We*r,style:{width:Pe,height:We,cursor:ue?"auto":"normal"},onMouseEnter:ue?Je:void 0,onMouseMove:ue?Je:void 0,onMouseLeave:ue?Qe:void 0,onMouseDown:ue?et:void 0,onMouseUp:ue?tt:void 0,onClick:ue?it:void 0,onDoubleClick:ue?nt:void 0,role:_e})},Jt=_((function(e,t){var i=e.isInteractive,n=e.renderWrapper,o=e.theme,r=Lt(e,qt);return s($,{isInteractive:i,renderWrapper:n,theme:o,animate:!1,children:s(Zt,At({},r,{forwardedRef:t}))})})),Qt=["defaultWidth","defaultHeight","onResize","debounceResize"];_((function(e,t){var i=e.defaultWidth;e.defaultHeight;var n=e.onResize,o=e.debounceResize,r=Lt(e,Qt);return s(X,{defaultWidth:i,defaultHeight:i,onResize:n,debounceResize:o,children:function(e){var i=e.width,n=e.height;return s(Jt,At({width:i,height:n},r,{ref:t}))}})}));const ei={anchor:"right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"square",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]},ti={tickSize:5,tickPadding:5,tickRotation:45,ticksPosition:"before"},ii={tickSize:5,tickPadding:5,tickRotation:0},ni={top:60,right:110,bottom:60,left:80},oi={type:"point"},ri={type:"linear",min:"auto",max:"auto",reverse:!1},ai={margin:ni,xScale:oi,yScale:ri,axisTop:null,axisRight:null,axisBottom:ti,axisLeft:ii,useMesh:!0,enableArea:!0},li={background:"var(--color-bg-primary)",axis:{ticks:{text:{fill:"var(--color-text-secondary)"}},legend:{text:{fill:"var(--color-text-primary)"}},grid:{line:{stroke:"var(--color-border-default)"}}},legends:{text:{fill:"var(--color-text-secondary)"}},tooltip:{container:{background:"var(--color-bg-raised)",color:"var(--color-text-primary)"}}};var si;!function(e){e.Mesh="Mesh",e.SlicesX="SlicesX",e.SlicesY="SlicesY"}(si||(si={}));const ui=64,hi=(e,t,i)=>{const{constant:n=ui,...o}=i??{};return{type:"symlog",min:e,max:t,constant:n,...o}},ci=(e,t)=>{const i=e.flatMap((e=>e.data)).map((e=>e.y)),n=Math.min(...i),o=Math.max(...i);return hi(n,o,t)},di=({kind:e=si.Mesh,width:t="100%",height:i=400,emptyLabel:n="No data available",emptyAriaLabel:o="No data available",axisBottom:r,rootAriaLabel:a,data:l,...u})=>{const h=(e=>{switch(e){case si.SlicesX:return{useMesh:!1,enableSlices:"x"};case si.SlicesY:return{useMesh:!1,enableSlices:"y"};case si.Mesh:default:return{useMesh:!0,enableSlices:void 0}}})(e),c=v(((t,i)=>{e===si.Mesh?u?.onClick?.(t,i):[si.SlicesX,si.SlicesY].includes(e)&&u?.onSliceClick?.(t,i)}),[e,u]),d=v(((t,i)=>{e===si.Mesh?u?.onTouchEnd?.(t,i):[si.SlicesX,si.SlicesY].includes(e)&&u?.onSliceTouchEnd?.(t,i)}),[e,u]),f=y((()=>{const e=l?.flatMap((e=>e.data?.map((e=>e.x))));return[...new Set(e)].sort(((e,t)=>{const i=e?.toString()||"",n=t?.toString()||"",o=i.split(/(\d+)/).filter(Boolean),r=n.split(/(\d+)/).filter(Boolean);for(let e=0;e<Math.min(o.length,r.length);e++){const t=parseInt(o[e],10),i=parseInt(r[e],10);if(isNaN(t)||isNaN(i)){const t=o[e].localeCompare(r[e]);if(0!==t)return t}else if(t!==i)return t-i}return o.length-r.length}))}),[l]);return!l||0===l.length||l.every((e=>!e.data?.length))?s(Ee,{label:n,width:t,height:i,ariaLabel:o}):s("div",{role:"img","aria-label":a,tabIndex:0,style:{width:t,height:i},children:s(Kt,{...ai,...h,...u,data:l,onClick:c,onTouchEnd:d,axisBottom:{...ti,...r,tickValues:f},theme:li})})},fi=({title:e,mode:i,items:n,slices:o,min:r,max:a,height:l=400,width:u="100%",rootAriaLabel:h,translations:c})=>{const[d,f]=x([]),g=c["no-results"],m=y((()=>hi(r,a,{constant:8})),[a,r]),b=y((()=>i===p.Percent?" >-.2%":" >-.2f"),[i]),_=v((e=>{const t=e.points.reduce(((e,t)=>(e.push(t.data.x),e)),[]);f((()=>t))}),[]);return y((()=>o.filter((e=>d.includes(e.metadata.executionId)))),[o,d]),s(t,{title:e,children:s(di,{kind:si.SlicesX,data:n,height:l,width:u,emptyLabel:g,emptyAriaLabel:g,rootAriaLabel:h,colors:({color:e})=>e,yScale:m,yFormat:b,onSliceClick:_,onSliceTouchEnd:_})})};export{je as AttachmentEmpty,di as TrendChart,si as TrendChartKind,fi as TrendChartWidget,t as Widget,ti as defaultTrendChartAxisBottomConfig,ii as defaultTrendChartAxisLeftConfig,ai as defaultTrendChartConfig,ei as defaultTrendChartLegendConfig,ni as defaultTrendChartMarginConfig,oi as defaultTrendChartXScaleConfig,ri as defaultTrendChartYScaleConfig,hi as makeSymlogScale,ci as makeSymlogScaleBySeries};
1
+ import"./prism-global-B3qB0vXd.js";export{S as SvgIcon,a as allureIcons}from"./index-qMwNH4DY.js";export{B as Button,a as ButtonLink,D as DropdownButton,I as IconButton,S as Spinner}from"./index-k2XcinIa.js";export{A as ArrowButton,C as Counter,L as Label,a as LanguagePicker,b as Link,c as LinkifiedText,d as Loadable,M as MiddleEllipsis,e as Modal,O as OverviewLink,P as PageLoader,R as ReportLogo,f as ReportLogoFull,g as ReportSummaryCard,S as SearchBox,h as StatusLabel,T as ThemeButton,i as Toggle,j as Tree,k as TreeHeader,l as TreeItem,m as TreeItemIcon,n as TreeSection,o as TreeStatusBar,u as useElementTruncation}from"./index-CCQ13d2t.js";export{C as Code,H as Heading,T as Text}from"./index-Dq7O-bm8.js";export{T as Tooltip,a as TooltipWrapper,u as useTooltip}from"./index-BZ-V3udE.js";export{I as ImageDiff,M as Menu,T as Tag}from"./index-Cf1z5wAO.js";import{W as t}from"./index-BzcM2nAl.js";export{I as IconLabel}from"./index-D2c5viX_.js";export{T as ThemeProvider,u as useTheme}from"./index-uBEpZNBn.js";export{E as EmptyView}from"./index-BLcyRUFW.js";import{s as r}from"./Attachment-DFk4AiwI.js";export{A as Attachment,b as AttachmentImage,c as AttachmentVideo,L as LazyComponent}from"./Attachment-DFk4AiwI.js";export{AttachmentCode}from"./AttachmentCode-DLfL9_C7.js";export{AttachmentTable}from"./AttachmentTable-B_2qN3O-.js";export{HtmlPreview}from"./HtmlPreview-u0sa77g5.js";export{MarkdownPreview}from"./MarkdownPreview-BEs6LvOd.js";export{MermaidPreview}from"./MermaidPreview-4EDQwdX3.js";import{u as s}from"./clsx-D83172mf.js";export{CodeViewer}from"./CodeViewer.js";export{HttpAttachment}from"./HttpAttachment-CkQRcAfa.js";export{G as Grid,a as GridItem}from"./GridItem-DI1f2R1r.js";import{a as p}from"./constants-D-YBPtws.js";import{useCallback as v,useMemo as y,useState as x}from"preact/hooks";import{forwardRef as _,Fragment as w,createElement as W,useMemo as F,useRef as z,useState as U,useEffect as V,useCallback as Y,memo as N}from"react";import{F as $,$ as X,c as K,R as q,H as Z,l as J,A as Q,z as ee,M as te,J as ie,K as ne,T as oe,I as re,k as ae,L as le,N as se,D as ue,j as he,P as ce,C as de,V as fe,w as pe,n as ge,g as me,h as ve,e as ye,O as xe}from"./nivo-colors-fVDn0-vW.js";import{Y as be,j as _e,V as Me,q as Te,W as Ce,h as Se}from"./nivo-axes-3Cy5TCy7.js";import{E as we,L as ke}from"./nivo-legends-BIaWaGVX.js";import{g as Ae}from"./_commonjsHelpers-Doe7ti1T.js";import{r as Le}from"./toString-Ccq3A8Sl.js";import{l as De}from"./linear-C7uKb8Tk.js";import{Fragment as Pe}from"preact";import{R as We}from"./index-CbwuBF9w.js";export{T as TestingPyramidWidget}from"./index-CbwuBF9w.js";import{P as Be}from"./line-CEBDCBhb.js";import{E as Ee}from"./EmptyDataStub-CRdg61R2.js";export{SuccessRatePieChart}from"./SuccessRatePieChart.js";export{c as TreeMapChart,T as TreeMapChartWidget,d as defaultTreeChartConfig,u as useCoverageDiffColors,a as useCoverageDiffTextColors,b as useSuccessRateDistributionColors}from"./TreeMapChartWidget-DKXJlnm9.js";export{D as DEFAULT_HEAT_MAP_EMPTY_ARIA_LABEL,a as DEFAULT_HEAT_MAP_EMPTY_COLOR,b as DEFAULT_HEAT_MAP_EMPTY_LABEL,c as DEFAULT_HEAT_MAP_FORCE_SQUARE,d as DEFAULT_HEAT_MAP_HEIGHT,e as DEFAULT_HEAT_MAP_VALUE_FORMAT,f as DEFAULT_HEAT_MAP_WIDTH,g as DEFAULT_HEAT_MAP_X_INNER_PADDING,h as DEFAULT_HEAT_MAP_Y_INNER_PADDING,i as HeatMap,H as HeatMapWidget,j as defaultHeatMapAxisLeftConfig,k as defaultHeatMapAxisTopConfig,l as defaultHeatMapLegendConfig,m as defaultHeatMapMarginConfig}from"./HeatMapWidget-Dqm7-_SB.js";export{StabilityDistributionWidget}from"./StabilityDistributionWidget.js";export{TestBaseGrowthDynamicsChartWidget}from"./TestBaseGrowthDynamicsChartWidget.js";export{StatusAgePyramidChartWidget}from"./StatusAgePyramidChartWidget.js";export{CurrentStatusChartWidget}from"./CurrentStatusChartWidget.js";export{StatusDynamicsChartWidget}from"./StatusDynamicsChartWidget.js";export{StatusTransitionsChartWidget}from"./StatusTransitionsChartWidget.js";export{DurationsChartWidget}from"./DurationsChartWidget.js";export{TrSeveritiesChartWidget}from"./TrSeveritiesChartWidget.js";export{DurationDynamicsChartWidget}from"./DurationDynamicsChartWidget.js";export{T as Timeline}from"./Timeline-BWVXDTn-.js";export{ChartWidget}from"./ChartWidget.js";import"./identity-DBvQ9SaG.js";import"node:crypto";import"./utils-DKmgmsaJ.js";import"./array-B0SXO2zY.js";import"preact/compat";import"./time-CyaymdXm.js";import"./floating-ui.dom-B9YqEzUD.js";import"@preact/signals/utils";import"@preact/signals";import"./index-DYL-tbfk.js";import"./toNumber-Cpsf6DxM.js";import"./upperFirst-jXpCKAQr.js";import"./_stringToArray-aaWSQcKo.js";import"./_baseSlice-CBpWu5XB.js";import"./clipboard-BUUe2rGt.js";import"./index.module-Bdu_gwCw.js";import"react-dom";import"./nivo-annotations-OXtu3nXs.js";import"./omit-Cims_XVO.js";import"./utcTime-ClVTKNFl.js";import"./successRate-rrLYYsum.js";import"./utils-DfVSL1lz.js";import"./config-CgDglkkw.js";import"./index-DQIPuqU4.js";import"./truncate-Bk-Lghrl.js";import"./BarChart-Dmhamjn_.js";import"./useTooltip-VGYCawp2.js";const je=({children:e})=>s("div",{className:r["wrong-attachment-sign"],children:e});var Ie,He;var Re=/*@__PURE__*/Ae(function(){if(He)return Ie;He=1;var e=Le(),t=0;return Ie=function(i){var n=++t;return e(i)+n}}());const Fe=134217729;function ze(e,t,i,n,o){let r,a,l,s,u=t[0],h=n[0],c=0,d=0;h>u==h>-u?(r=u,u=t[++c]):(r=h,h=n[++d]);let f=0;if(c<e&&d<i)for(h>u==h>-u?(a=u+r,l=r-(a-u),u=t[++c]):(a=h+r,l=r-(a-h),h=n[++d]),r=a,0!==l&&(o[f++]=l);c<e&&d<i;)h>u==h>-u?(a=r+u,s=a-r,l=r-(a-s)+(u-s),u=t[++c]):(a=r+h,s=a-r,l=r-(a-s)+(h-s),h=n[++d]),r=a,0!==l&&(o[f++]=l);for(;c<e;)a=r+u,s=a-r,l=r-(a-s)+(u-s),u=t[++c],r=a,0!==l&&(o[f++]=l);for(;d<i;)a=r+h,s=a-r,l=r-(a-s)+(h-s),h=n[++d],r=a,0!==l&&(o[f++]=l);return 0===r&&0!==f||(o[f++]=r),f}function Ue(e){return new Float64Array(e)}const Oe=Ue(4),Ge=Ue(8),Ve=Ue(12),Ye=Ue(16),Ne=Ue(4);function $e(e,t,i,n,o,r){const a=(t-r)*(i-o),l=(e-o)*(n-r),s=a-l,u=Math.abs(a+l);return Math.abs(s)>=33306690738754716e-32*u?s:-function(e,t,i,n,o,r,a){let l,s,u,h,c,d,f,p,g,m,v,y,x,b,_,M,T,C;const S=e-o,w=i-o,k=t-r,A=n-r;b=S*A,d=Fe*S,f=d-(d-S),p=S-f,d=Fe*A,g=d-(d-A),m=A-g,_=p*m-(b-f*g-p*g-f*m),M=k*w,d=Fe*k,f=d-(d-k),p=k-f,d=Fe*w,g=d-(d-w),m=w-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Oe[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Oe[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Oe[2]=y-(C-c)+(v-c),Oe[3]=C;let L=function(e,t){let i=t[0];for(let n=1;n<e;n++)i+=t[n];return i}(4,Oe),D=22204460492503146e-32*a;if(L>=D||-L>=D)return L;if(c=e-S,l=e-(S+c)+(c-o),c=i-w,u=i-(w+c)+(c-o),c=t-k,s=t-(k+c)+(c-r),c=n-A,h=n-(A+c)+(c-r),0===l&&0===s&&0===u&&0===h)return L;if(D=11093356479670487e-47*a+33306690738754706e-32*Math.abs(L),L+=S*h+A*l-(k*u+w*s),L>=D||-L>=D)return L;b=l*A,d=Fe*l,f=d-(d-l),p=l-f,d=Fe*A,g=d-(d-A),m=A-g,_=p*m-(b-f*g-p*g-f*m),M=s*w,d=Fe*s,f=d-(d-s),p=s-f,d=Fe*w,g=d-(d-w),m=w-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const P=ze(4,Oe,4,Ne,Ge);b=S*h,d=Fe*S,f=d-(d-S),p=S-f,d=Fe*h,g=d-(d-h),m=h-g,_=p*m-(b-f*g-p*g-f*m),M=k*u,d=Fe*k,f=d-(d-k),p=k-f,d=Fe*u,g=d-(d-u),m=u-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const W=ze(P,Ge,4,Ne,Ve);b=l*h,d=Fe*l,f=d-(d-l),p=l-f,d=Fe*h,g=d-(d-h),m=h-g,_=p*m-(b-f*g-p*g-f*m),M=s*u,d=Fe*s,f=d-(d-s),p=s-f,d=Fe*u,g=d-(d-u),m=u-g,T=p*m-(M-f*g-p*g-f*m),v=_-T,c=_-v,Ne[0]=_-(v+c)+(c-T),y=b+v,c=y-b,x=b-(y-c)+(v-c),v=x-M,c=x-v,Ne[1]=x-(v+c)+(c-M),C=y+v,c=C-y,Ne[2]=y-(C-c)+(v-c),Ne[3]=C;const B=ze(W,Ve,4,Ne,Ye);return Ye[B-1]}(e,t,i,n,o,r,u)}const Xe=Math.pow(2,-52),Ke=new Uint32Array(512);class qe{static from(e,t=it,i=nt){const n=e.length,o=new Float64Array(2*n);for(let r=0;r<n;r++){const n=e[r];o[2*r]=t(n),o[2*r+1]=i(n)}return new qe(o)}constructor(e){const t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;const i=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*i),this._halfedges=new Int32Array(3*i),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()}update(){const{coords:e,_hullPrev:t,_hullNext:i,_hullTri:n,_hullHash:o}=this,r=e.length>>1;let a=1/0,l=1/0,s=-1/0,u=-1/0;for(let t=0;t<r;t++){const i=e[2*t],n=e[2*t+1];i<a&&(a=i),n<l&&(l=n),i>s&&(s=i),n>u&&(u=n),this._ids[t]=t}const h=(a+s)/2,c=(l+u)/2;let d,f,p;for(let t=0,i=1/0;t<r;t++){const n=Ze(h,c,e[2*t],e[2*t+1]);n<i&&(d=t,i=n)}const g=e[2*d],m=e[2*d+1];for(let t=0,i=1/0;t<r;t++){if(t===d)continue;const n=Ze(g,m,e[2*t],e[2*t+1]);n<i&&n>0&&(f=t,i=n)}let v=e[2*f],y=e[2*f+1],x=1/0;for(let t=0;t<r;t++){if(t===d||t===f)continue;const i=Qe(g,m,v,y,e[2*t],e[2*t+1]);i<x&&(p=t,x=i)}let b=e[2*p],_=e[2*p+1];if(x===1/0){for(let t=0;t<r;t++)this._dists[t]=e[2*t]-e[0]||e[2*t+1]-e[1];et(this._ids,this._dists,0,r-1);const t=new Uint32Array(r);let i=0;for(let e=0,n=-1/0;e<r;e++){const o=this._ids[e],r=this._dists[o];r>n&&(t[i++]=o,n=r)}return this.hull=t.subarray(0,i),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if($e(g,m,v,y,b,_)<0){const e=f,t=v,i=y;f=p,v=b,y=_,p=e,b=t,_=i}const M=function(e,t,i,n,o,r){const a=i-e,l=n-t,s=o-e,u=r-t,h=a*a+l*l,c=s*s+u*u,d=.5/(a*u-l*s),f=e+(u*h-l*c)*d,p=t+(a*c-s*h)*d;return{x:f,y:p}}(g,m,v,y,b,_);this._cx=M.x,this._cy=M.y;for(let t=0;t<r;t++)this._dists[t]=Ze(e[2*t],e[2*t+1],M.x,M.y);et(this._ids,this._dists,0,r-1),this._hullStart=d;let T=3;i[d]=t[p]=f,i[f]=t[d]=p,i[p]=t[f]=d,n[d]=0,n[f]=1,n[p]=2,o.fill(-1),o[this._hashKey(g,m)]=d,o[this._hashKey(v,y)]=f,o[this._hashKey(b,_)]=p,this.trianglesLen=0,this._addTriangle(d,f,p,-1,-1,-1);for(let r,a,l=0;l<this._ids.length;l++){const s=this._ids[l],u=e[2*s],h=e[2*s+1];if(l>0&&Math.abs(u-r)<=Xe&&Math.abs(h-a)<=Xe)continue;if(r=u,a=h,s===d||s===f||s===p)continue;let c=0;for(let e=0,t=this._hashKey(u,h);e<this._hashSize&&(c=o[(t+e)%this._hashSize],-1===c||c===i[c]);e++);c=t[c];let g,m=c;for(;g=i[m],$e(u,h,e[2*m],e[2*m+1],e[2*g],e[2*g+1])>=0;)if(m=g,m===c){m=-1;break}if(-1===m)continue;let v=this._addTriangle(m,s,i[m],-1,-1,n[m]);n[s]=this._legalize(v+2),n[m]=v,T++;let y=i[m];for(;g=i[y],$e(u,h,e[2*y],e[2*y+1],e[2*g],e[2*g+1])<0;)v=this._addTriangle(y,s,g,n[s],-1,n[y]),n[s]=this._legalize(v+2),i[y]=y,T--,y=g;if(m===c)for(;g=t[m],$e(u,h,e[2*g],e[2*g+1],e[2*m],e[2*m+1])<0;)v=this._addTriangle(g,s,m,-1,n[m],n[g]),this._legalize(v+2),n[g]=v,i[m]=m,T--,m=g;this._hullStart=t[s]=m,i[m]=t[y]=s,i[s]=y,o[this._hashKey(u,h)]=s,o[this._hashKey(e[2*m],e[2*m+1])]=m}this.hull=new Uint32Array(T);for(let e=0,t=this._hullStart;e<T;e++)this.hull[e]=t,t=i[t];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(e,t){return Math.floor(function(e,t){const i=e/(Math.abs(e)+Math.abs(t));return(t>0?3-i:1+i)/4}(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize}_legalize(e){const{_triangles:t,_halfedges:i,coords:n}=this;let o=0,r=0;for(;;){const a=i[e],l=e-e%3;if(r=l+(e+2)%3,-1===a){if(0===o)break;e=Ke[--o];continue}const s=a-a%3,u=l+(e+1)%3,h=s+(a+2)%3,c=t[r],d=t[e],f=t[u],p=t[h];if(Je(n[2*c],n[2*c+1],n[2*d],n[2*d+1],n[2*f],n[2*f+1],n[2*p],n[2*p+1])){t[e]=p,t[a]=c;const n=i[h];if(-1===n){let t=this._hullStart;do{if(this._hullTri[t]===h){this._hullTri[t]=e;break}t=this._hullPrev[t]}while(t!==this._hullStart)}this._link(e,n),this._link(a,i[r]),this._link(r,h);const l=s+(a+1)%3;o<Ke.length&&(Ke[o++]=l)}else{if(0===o)break;e=Ke[--o]}}return r}_link(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)}_addTriangle(e,t,i,n,o,r){const a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=i,this._link(a,n),this._link(a+1,o),this._link(a+2,r),this.trianglesLen+=3,a}}function Ze(e,t,i,n){const o=e-i,r=t-n;return o*o+r*r}function Je(e,t,i,n,o,r,a,l){const s=e-a,u=t-l,h=i-a,c=n-l,d=o-a,f=r-l,p=h*h+c*c,g=d*d+f*f;return s*(c*g-p*f)-u*(h*g-p*d)+(s*s+u*u)*(h*f-c*d)<0}function Qe(e,t,i,n,o,r){const a=i-e,l=n-t,s=o-e,u=r-t,h=a*a+l*l,c=s*s+u*u,d=.5/(a*u-l*s),f=(u*h-l*c)*d,p=(a*c-s*h)*d;return f*f+p*p}function et(e,t,i,n){if(n-i<=20)for(let o=i+1;o<=n;o++){const n=e[o],r=t[n];let a=o-1;for(;a>=i&&t[e[a]]>r;)e[a+1]=e[a--];e[a+1]=n}else{let o=i+1,r=n;tt(e,i+n>>1,o),t[e[i]]>t[e[n]]&&tt(e,i,n),t[e[o]]>t[e[n]]&&tt(e,o,n),t[e[i]]>t[e[o]]&&tt(e,i,o);const a=e[o],l=t[a];for(;;){do{o++}while(t[e[o]]<l);do{r--}while(t[e[r]]>l);if(r<o)break;tt(e,o,r)}e[i+1]=e[r],e[r]=a,n-o+1>=r-i?(et(e,t,o,n),et(e,t,i,r-1)):(et(e,t,i,r-1),et(e,t,o,n))}}function tt(e,t,i){const n=e[t];e[t]=e[i],e[i]=n}function it(e){return e[0]}function nt(e){return e[1]}const ot=1e-6;class rt{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(e,t){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(e,t){this._+=`L${this._x1=+e},${this._y1=+t}`}arc(e,t,i){const n=(e=+e)+(i=+i),o=t=+t;if(i<0)throw new Error("negative radius");null===this._x1?this._+=`M${n},${o}`:(Math.abs(this._x1-n)>ot||Math.abs(this._y1-o)>ot)&&(this._+="L"+n+","+o),i&&(this._+=`A${i},${i},0,1,1,${e-i},${t}A${i},${i},0,1,1,${this._x1=n},${this._y1=o}`)}rect(e,t,i,n){this._+=`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${+i}v${+n}h${-i}Z`}value(){return this._||null}}class at{constructor(){this._=[]}moveTo(e,t){this._.push([e,t])}closePath(){this._.push(this._[0].slice())}lineTo(e,t){this._.push([e,t])}value(){return this._.length?this._:null}}class lt{constructor(e,[t,i,n,o]=[0,0,960,500]){if(!((n=+n)>=(t=+t)&&(o=+o)>=(i=+i)))throw new Error("invalid bounds");this.delaunay=e,this._circumcenters=new Float64Array(2*e.points.length),this.vectors=new Float64Array(2*e.points.length),this.xmax=n,this.xmin=t,this.ymax=o,this.ymin=i,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:e,hull:t,triangles:i},vectors:n}=this;let o,r;const a=this.circumcenters=this._circumcenters.subarray(0,i.length/3*2);for(let n,l,s=0,u=0,h=i.length;s<h;s+=3,u+=2){const h=2*i[s],c=2*i[s+1],d=2*i[s+2],f=e[h],p=e[h+1],g=e[c],m=e[c+1],v=e[d],y=e[d+1],x=g-f,b=m-p,_=v-f,M=y-p,T=2*(x*M-b*_);if(Math.abs(T)<1e-9){if(void 0===o){o=r=0;for(const i of t)o+=e[2*i],r+=e[2*i+1];o/=t.length,r/=t.length}const i=1e9*Math.sign((o-f)*M-(r-p)*_);n=(f+v)/2-i*M,l=(p+y)/2+i*_}else{const e=1/T,t=x*x+b*b,i=_*_+M*M;n=f+(M*t-b*i)*e,l=p+(x*i-_*t)*e}a[u]=n,a[u+1]=l}let l,s,u,h=t[t.length-1],c=4*h,d=e[2*h],f=e[2*h+1];n.fill(0);for(let i=0;i<t.length;++i)h=t[i],l=c,s=d,u=f,c=4*h,d=e[2*h],f=e[2*h+1],n[l+2]=n[c]=u-f,n[l+3]=n[c+1]=d-s}render(e){const t=null==e?e=new rt:void 0,{delaunay:{halfedges:i,inedges:n,hull:o},circumcenters:r,vectors:a}=this;if(o.length<=1)return null;for(let t=0,n=i.length;t<n;++t){const n=i[t];if(n<t)continue;const o=2*Math.floor(t/3),a=2*Math.floor(n/3),l=r[o],s=r[o+1],u=r[a],h=r[a+1];this._renderSegment(l,s,u,h,e)}let l,s=o[o.length-1];for(let t=0;t<o.length;++t){l=s,s=o[t];const i=2*Math.floor(n[s]/3),u=r[i],h=r[i+1],c=4*l,d=this._project(u,h,a[c+2],a[c+3]);d&&this._renderSegment(u,h,d[0],d[1],e)}return t&&t.value()}renderBounds(e){const t=null==e?e=new rt:void 0;return e.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),t&&t.value()}renderCell(e,t){const i=null==t?t=new rt:void 0,n=this._clip(e);if(null===n||!n.length)return;t.moveTo(n[0],n[1]);let o=n.length;for(;n[0]===n[o-2]&&n[1]===n[o-1]&&o>1;)o-=2;for(let e=2;e<o;e+=2)n[e]===n[e-2]&&n[e+1]===n[e-1]||t.lineTo(n[e],n[e+1]);return t.closePath(),i&&i.value()}*cellPolygons(){const{delaunay:{points:e}}=this;for(let t=0,i=e.length/2;t<i;++t){const e=this.cellPolygon(t);e&&(e.index=t,yield e)}}cellPolygon(e){const t=new at;return this.renderCell(e,t),t.value()}_renderSegment(e,t,i,n,o){let r;const a=this._regioncode(e,t),l=this._regioncode(i,n);0===a&&0===l?(o.moveTo(e,t),o.lineTo(i,n)):(r=this._clipSegment(e,t,i,n,a,l))&&(o.moveTo(r[0],r[1]),o.lineTo(r[2],r[3]))}contains(e,t,i){return(t=+t)==t&&(i=+i)==i&&this.delaunay._step(e,t,i)===e}*neighbors(e){const t=this._clip(e);if(t)for(const i of this.delaunay.neighbors(e)){const e=this._clip(i);if(e)e:for(let n=0,o=t.length;n<o;n+=2)for(let r=0,a=e.length;r<a;r+=2)if(t[n]===e[r]&&t[n+1]===e[r+1]&&t[(n+2)%o]===e[(r+a-2)%a]&&t[(n+3)%o]===e[(r+a-1)%a]){yield i;break e}}}_cell(e){const{circumcenters:t,delaunay:{inedges:i,halfedges:n,triangles:o}}=this,r=i[e];if(-1===r)return null;const a=[];let l=r;do{const i=Math.floor(l/3);if(a.push(t[2*i],t[2*i+1]),l=l%3==2?l-2:l+1,o[l]!==e)break;l=n[l]}while(l!==r&&-1!==l);return a}_clip(e){if(0===e&&1===this.delaunay.hull.length)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const t=this._cell(e);if(null===t)return null;const{vectors:i}=this,n=4*e;return this._simplify(i[n]||i[n+1]?this._clipInfinite(e,t,i[n],i[n+1],i[n+2],i[n+3]):this._clipFinite(e,t))}_clipFinite(e,t){const i=t.length;let n,o,r,a,l=null,s=t[i-2],u=t[i-1],h=this._regioncode(s,u),c=0;for(let d=0;d<i;d+=2)if(n=s,o=u,s=t[d],u=t[d+1],r=h,h=this._regioncode(s,u),0===r&&0===h)a=c,c=0,l?l.push(s,u):l=[s,u];else{let t,i,d,f,p;if(0===r){if(null===(t=this._clipSegment(n,o,s,u,r,h)))continue;[i,d,f,p]=t}else{if(null===(t=this._clipSegment(s,u,n,o,h,r)))continue;[f,p,i,d]=t,a=c,c=this._edgecode(i,d),a&&c&&this._edge(e,a,c,l,l.length),l?l.push(i,d):l=[i,d]}a=c,c=this._edgecode(f,p),a&&c&&this._edge(e,a,c,l,l.length),l?l.push(f,p):l=[f,p]}if(l)a=c,c=this._edgecode(l[0],l[1]),a&&c&&this._edge(e,a,c,l,l.length);else if(this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return l}_clipSegment(e,t,i,n,o,r){const a=o<r;for(a&&([e,t,i,n,o,r]=[i,n,e,t,r,o]);;){if(0===o&&0===r)return a?[i,n,e,t]:[e,t,i,n];if(o&r)return null;let l,s,u=o||r;8&u?(l=e+(i-e)*(this.ymax-t)/(n-t),s=this.ymax):4&u?(l=e+(i-e)*(this.ymin-t)/(n-t),s=this.ymin):2&u?(s=t+(n-t)*(this.xmax-e)/(i-e),l=this.xmax):(s=t+(n-t)*(this.xmin-e)/(i-e),l=this.xmin),o?(e=l,t=s,o=this._regioncode(e,t)):(i=l,n=s,r=this._regioncode(i,n))}}_clipInfinite(e,t,i,n,o,r){let a,l=Array.from(t);if((a=this._project(l[0],l[1],i,n))&&l.unshift(a[0],a[1]),(a=this._project(l[l.length-2],l[l.length-1],o,r))&&l.push(a[0],a[1]),l=this._clipFinite(e,l))for(let t,i=0,n=l.length,o=this._edgecode(l[n-2],l[n-1]);i<n;i+=2)t=o,o=this._edgecode(l[i],l[i+1]),t&&o&&(i=this._edge(e,t,o,l,i),n=l.length);else this.contains(e,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(e,t,i,n,o){for(;t!==i;){let i,r;switch(t){case 5:t=4;continue;case 4:t=6,i=this.xmax,r=this.ymin;break;case 6:t=2;continue;case 2:t=10,i=this.xmax,r=this.ymax;break;case 10:t=8;continue;case 8:t=9,i=this.xmin,r=this.ymax;break;case 9:t=1;continue;case 1:t=5,i=this.xmin,r=this.ymin}n[o]===i&&n[o+1]===r||!this.contains(e,i,r)||(n.splice(o,0,i,r),o+=2)}return o}_project(e,t,i,n){let o,r,a,l=1/0;if(n<0){if(t<=this.ymin)return null;(o=(this.ymin-t)/n)<l&&(a=this.ymin,r=e+(l=o)*i)}else if(n>0){if(t>=this.ymax)return null;(o=(this.ymax-t)/n)<l&&(a=this.ymax,r=e+(l=o)*i)}if(i>0){if(e>=this.xmax)return null;(o=(this.xmax-e)/i)<l&&(r=this.xmax,a=t+(l=o)*n)}else if(i<0){if(e<=this.xmin)return null;(o=(this.xmin-e)/i)<l&&(r=this.xmin,a=t+(l=o)*n)}return[r,a]}_edgecode(e,t){return(e===this.xmin?1:e===this.xmax?2:0)|(t===this.ymin?4:t===this.ymax?8:0)}_regioncode(e,t){return(e<this.xmin?1:e>this.xmax?2:0)|(t<this.ymin?4:t>this.ymax?8:0)}_simplify(e){if(e&&e.length>4){for(let t=0;t<e.length;t+=2){const i=(t+2)%e.length,n=(t+4)%e.length;(e[t]===e[i]&&e[i]===e[n]||e[t+1]===e[i+1]&&e[i+1]===e[n+1])&&(e.splice(i,2),t-=2)}e.length||(e=null)}return e}}const st=2*Math.PI,ut=Math.pow;function ht(e){return e[0]}function ct(e){return e[1]}function dt(e,t,i){return[e+Math.sin(e+t)*i,t+Math.cos(e-t)*i]}class ft{static from(e,t=ht,i=ct,n){return new ft("length"in e?function(e,t,i,n){const o=e.length,r=new Float64Array(2*o);for(let a=0;a<o;++a){const o=e[a];r[2*a]=t.call(n,o,a,e),r[2*a+1]=i.call(n,o,a,e)}return r}(e,t,i,n):Float64Array.from(function*(e,t,i,n){let o=0;for(const r of e)yield t.call(n,r,o,e),yield i.call(n,r,o,e),++o}(e,t,i,n)))}constructor(e){this._delaunator=new qe(e),this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const e=this._delaunator,t=this.points;if(e.hull&&e.hull.length>2&&function(e){const{triangles:t,coords:i}=e;for(let e=0;e<t.length;e+=3){const n=2*t[e],o=2*t[e+1],r=2*t[e+2];if((i[r]-i[n])*(i[o+1]-i[n+1])-(i[o]-i[n])*(i[r+1]-i[n+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:t.length/2},((e,t)=>t)).sort(((e,i)=>t[2*e]-t[2*i]||t[2*e+1]-t[2*i+1]));const e=this.collinear[0],i=this.collinear[this.collinear.length-1],n=[t[2*e],t[2*e+1],t[2*i],t[2*i+1]],o=1e-8*Math.hypot(n[3]-n[1],n[2]-n[0]);for(let e=0,i=t.length/2;e<i;++e){const i=dt(t[2*e],t[2*e+1],o);t[2*e]=i[0],t[2*e+1]=i[1]}this._delaunator=new qe(t)}else delete this.collinear;const i=this.halfedges=this._delaunator.halfedges,n=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,r=this.inedges.fill(-1),a=this._hullIndex.fill(-1);for(let e=0,t=i.length;e<t;++e){const t=o[e%3==2?e-2:e+1];-1!==i[e]&&-1!==r[t]||(r[t]=e)}for(let e=0,t=n.length;e<t;++e)a[n[e]]=e;n.length<=2&&n.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=n[0],r[n[0]]=1,2===n.length&&(r[n[1]]=0,this.triangles[1]=n[1],this.triangles[2]=n[1]))}voronoi(e){return new lt(this,e)}*neighbors(e){const{inedges:t,hull:i,_hullIndex:n,halfedges:o,triangles:r,collinear:a}=this;if(a){const t=a.indexOf(e);return t>0&&(yield a[t-1]),void(t<a.length-1&&(yield a[t+1]))}const l=t[e];if(-1===l)return;let s=l,u=-1;do{if(yield u=r[s],s=s%3==2?s-2:s+1,r[s]!==e)return;if(s=o[s],-1===s){const t=i[(n[e]+1)%i.length];return void(t!==u&&(yield t))}}while(s!==l)}find(e,t,i=0){if((e=+e)!=e||(t=+t)!=t)return-1;const n=i;let o;for(;(o=this._step(i,e,t))>=0&&o!==i&&o!==n;)i=o;return o}_step(e,t,i){const{inedges:n,hull:o,_hullIndex:r,halfedges:a,triangles:l,points:s}=this;if(-1===n[e]||!s.length)return(e+1)%(s.length>>1);let u=e,h=ut(t-s[2*e],2)+ut(i-s[2*e+1],2);const c=n[e];let d=c;do{let n=l[d];const c=ut(t-s[2*n],2)+ut(i-s[2*n+1],2);if(c<h&&(h=c,u=n),d=d%3==2?d-2:d+1,l[d]!==e)break;if(d=a[d],-1===d){if(d=o[(r[e]+1)%o.length],d!==n&&ut(t-s[2*d],2)+ut(i-s[2*d+1],2)<h)return d;break}}while(d!==c);return u}render(e){const t=null==e?e=new rt:void 0,{points:i,halfedges:n,triangles:o}=this;for(let t=0,r=n.length;t<r;++t){const r=n[t];if(r<t)continue;const a=2*o[t],l=2*o[r];e.moveTo(i[a],i[a+1]),e.lineTo(i[l],i[l+1])}return this.renderHull(e),t&&t.value()}renderPoints(e,t){void 0!==t||e&&"function"==typeof e.moveTo||(t=e,e=null),t=null==t?2:+t;const i=null==e?e=new rt:void 0,{points:n}=this;for(let i=0,o=n.length;i<o;i+=2){const o=n[i],r=n[i+1];e.moveTo(o+t,r),e.arc(o,r,t,0,st)}return i&&i.value()}renderHull(e){const t=null==e?e=new rt:void 0,{hull:i,points:n}=this,o=2*i[0],r=i.length;e.moveTo(n[o],n[o+1]);for(let t=1;t<r;++t){const o=2*i[t];e.lineTo(n[o],n[o+1])}return e.closePath(),t&&t.value()}hullPolygon(){const e=new at;return this.renderHull(e),e.value()}renderTriangle(e,t){const i=null==t?t=new rt:void 0,{points:n,triangles:o}=this,r=2*o[e*=3],a=2*o[e+1],l=2*o[e+2];return t.moveTo(n[r],n[r+1]),t.lineTo(n[a],n[a+1]),t.lineTo(n[l],n[l+1]),t.closePath(),i&&i.value()}*trianglePolygons(){const{triangles:e}=this;for(let t=0,i=e.length/3;t<i;++t)yield this.trianglePolygon(t)}trianglePolygon(e){const t=new at;return this.renderTriangle(e,t),t.value()}}function pt(){return pt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},pt.apply(null,arguments)}function gt(e,t){if(null==e)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}var mt={xDomain:[0,1],yDomain:[0,1],layers:["links","cells","points","bounds"],enableLinks:!1,linkLineWidth:1,linkLineColor:"#bbbbbb",enableCells:!0,cellLineWidth:2,cellLineColor:"#000000",pointSize:4,pointColor:"#666666",role:"img"},vt=function(e){return[e.x,e.y]},yt=Z,xt="cursor",bt=function(e){var t=e.points,i=e.getNodePosition,n=void 0===i?vt:i,o=e.margin,r=void 0===o?yt:o;return t.map((function(e){var t=n(e),i=t[0],o=t[1];return[i+r.left,o+r.top]}))},_t=function(e){var t=e.points,i=e.getNodePosition,n=void 0===i?vt:i,o=e.width,r=e.height,a=e.margin,l=void 0===a?yt:a,s=e.debug;return F((function(){return function(e){var t=e.points,i=e.width,n=e.height,o=e.margin,r=void 0===o?yt:o,a=e.debug,l=ft.from(t),s=a?l.voronoi([0,0,r.left+i+r.right,r.top+n+r.bottom]):void 0;return{points:t,delaunay:l,voronoi:s}}({points:bt({points:t,margin:l,getNodePosition:n}),width:o,height:r,margin:l,debug:s})}),[n,t,o,r,l,s])},Mt=function(e){var t=e.elementRef,i=e.nodes,n=e.getNodePosition,o=void 0===n?vt:n,r=e.delaunay,a=e.setCurrent,l=e.margin,s=void 0===l?yt:l,u=e.detectionRadius,h=void 0===u?1/0:u,c=e.isInteractive,d=void 0===c||c,f=e.onMouseEnter,p=e.onMouseMove,g=e.onMouseLeave,m=e.onMouseDown,v=e.onMouseUp,y=e.onClick,x=e.onDoubleClick,b=e.onTouchStart,_=e.onTouchMove,M=e.onTouchEnd,T=e.enableTouchCrosshair,C=void 0!==T&&T,S=e.tooltip,w=e.tooltipPosition,k=void 0===w?xt:w,A=e.tooltipAnchor,L=void 0===A?"top":A,D=U(null),P=D[0],W=D[1],B=z(null);V((function(){B.current=P}),[B,P]);var E=Y((function(e){if(!t.current||0===i.length)return null;var n=J(t.current,e),a=n[0],l=n[1],u=r.find(a,l),c=void 0!==u?i[u]:null;if(c&&h!==1/0){var d=o(c),f=d[0],p=d[1];Q(a,l,f+s.left,p+s.top)>h&&(u=null,c=null)}return null===u||null===c?null:[u,c]}),[t,r,i,o,s,h]),j=ee(),I=j.showTooltipAt,H=j.showTooltipFromEvent,R=j.hideTooltip,O=F((function(){if(S)return"cursor"===k?function(e,t){H(S(e),t,L)}:function(e){var t=o(e),i=t[0],n=t[1];I(S(e),[i+s.left,n+s.top],L)}}),[I,H,S,k,L,o,s]),G=Y((function(e){var t=E(e);if(W(t),null==a||a(t?t[1]:null),t){var i=t[1];null==O||O(i,e),null==f||f(t[1],e)}}),[E,W,a,O,f]),N=Y((function(e){var t=E(e);if(W(t),t){var i=t[0],n=t[1];if(null==a||a(n),null==O||O(n,e),B.current){var o=B.current,r=o[0],l=o[1];i!==r?null==g||g(l,e):null==p||p(n,e)}else null==f||f(n,e)}else null==a||a(null),null==R||R(),B.current&&(null==g||g(B.current[1],e))}),[E,W,a,B,f,p,g,O,R]),$=Y((function(e){W(null),null==a||a(null),R(),g&&B.current&&g(B.current[1],e)}),[W,a,B,R,g]),X=Y((function(e){var t=E(e);W(t),t&&(null==m||m(t[1],e))}),[E,W,m]),K=Y((function(e){var t=E(e);W(t),t&&(null==v||v(t[1],e))}),[E,W,v]),q=Y((function(e){var t=E(e);W(t),t&&(null==y||y(t[1],e))}),[E,W,y]),Z=Y((function(e){var t=E(e);W(t),t&&(null==x||x(t[1],e))}),[E,W,x]),te=Y((function(e){var t=E(e);C&&(W(t),null==a||a(t?t[1]:null)),t&&(null==b||b(t[1],e))}),[E,W,a,C,b]),ie=Y((function(e){var t=E(e);C&&(W(t),null==a||a(t?t[1]:null)),t&&(null==_||_(t[1],e))}),[E,W,a,C,_]),ne=Y((function(e){C&&(W(null),null==a||a(null)),M&&B.current&&M(B.current[1],e)}),[C,W,a,M,B]);return{current:P,handleMouseEnter:d?G:void 0,handleMouseMove:d?N:void 0,handleMouseLeave:d?$:void 0,handleMouseDown:d?X:void 0,handleMouseUp:d?K:void 0,handleClick:d?q:void 0,handleDoubleClick:d?Z:void 0,handleTouchStart:d?te:void 0,handleTouchMove:d?ie:void 0,handleTouchEnd:d?ne:void 0}},Tt=["theme"],Ct=function(e){var t=e.data,i=e.width,n=e.height,o=e.margin,r=e.layers,a=void 0===r?mt.layers:r,l=e.xDomain,u=void 0===l?mt.xDomain:l,h=e.yDomain,c=void 0===h?mt.yDomain:h,d=e.enableLinks,f=void 0===d?mt.enableLinks:d,p=e.linkLineWidth,g=void 0===p?mt.linkLineWidth:p,m=e.linkLineColor,v=void 0===m?mt.linkLineColor:m,y=e.enableCells,x=void 0===y?mt.enableCells:y,b=e.cellLineWidth,_=void 0===b?mt.cellLineWidth:b,M=e.cellLineColor,T=void 0===M?mt.cellLineColor:M,C=e.enablePoints,S=void 0===C?mt.enableCells:C,k=e.pointSize,A=void 0===k?mt.pointSize:k,L=e.pointColor,D=void 0===L?mt.pointColor:L,P=e.role,B=void 0===P?mt.role:P,E=e.forwardedRef,j=K(i,n,o),I=j.outerWidth,H=j.outerHeight,R=j.margin,z=function(e){var t=e.data,i=e.width,n=e.height,o=e.xDomain,r=e.yDomain,a=F((function(){return De().domain(o).range([0,i])}),[o,i]),l=F((function(){return De().domain(r).range([0,n])}),[r,n]),s=F((function(){return t.map((function(e){return{x:a(e.x),y:l(e.y),data:e}}))}),[t,a,l]);return F((function(){var e=ft.from(s.map((function(e){return[e.x,e.y]}))),t=e.voronoi([0,0,i,n]);return{points:s,delaunay:e,voronoi:t}}),[s,i,n])}({data:t,width:j.innerWidth,height:j.innerHeight,xDomain:u,yDomain:c}),U=z.points,O=z.delaunay,G=z.voronoi,V={links:null,cells:null,points:null,bounds:null};f&&a.includes("links")&&(V.links=s("path",{stroke:v,strokeWidth:g,fill:"none",d:O.render()},"links")),x&&a.includes("cells")&&(V.cells=s("path",{d:G.render(),fill:"none",stroke:T,strokeWidth:_},"cells")),S&&a.includes("points")&&(V.points=s("path",{stroke:"none",fill:D,d:O.renderPoints(void 0,A/2)},"points")),a.includes("bounds")&&(V.bounds=s("path",{fill:"none",stroke:T,strokeWidth:_,d:G.renderBounds()},"bounds"));var Y=function(e){var t=e.points,i=e.delaunay,n=e.voronoi;return F((function(){return{points:t,delaunay:i,voronoi:n}}),[t,i,n])}({points:U,delaunay:O,voronoi:G});return s(q,{width:I,height:H,margin:R,role:B,ref:E,children:a.map((function(e,t){return void 0!==V[e]?V[e]:"function"==typeof e?s(w,{children:W(e,Y)},t):null}))})},St=_((function(e,t){var i=e.theme,n=gt(e,Tt);return s($,{isInteractive:!1,animate:!1,theme:i,children:s(Ct,pt({},n,{forwardedRef:t}))})})),wt=["defaultWidth","defaultHeight","onResize","debounceResize"];_((function(e,t){var i=e.defaultWidth,n=e.defaultHeight,o=e.onResize,r=e.debounceResize,a=gt(e,wt);return s(X,{defaultWidth:i,defaultHeight:n,onResize:o,debounceResize:r,children:function(e){var i=e.width,n=e.height;return s(St,pt({},a,{width:i,height:n,ref:t}))}})}));var kt=function(e){var t=e.nodes,i=e.width,n=e.height,o=e.margin,r=void 0===o?yt:o,a=e.getNodePosition,l=e.setCurrent,u=e.onMouseEnter,h=e.onMouseMove,c=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,y=e.onTouchEnd,x=e.enableTouchCrosshair,b=void 0!==x&&x,_=e.detectionRadius,M=void 0===_?1/0:_,T=e.tooltip,C=e.tooltipPosition,S=void 0===C?xt:C,w=e.tooltipAnchor,k=void 0===w?"top":w,A=e.debug,L=z(null),D=_t({points:t,getNodePosition:a,width:i,height:n,margin:r,debug:A}),P=D.delaunay,W=D.voronoi,B=Mt({elementRef:L,nodes:t,delaunay:P,margin:r,detectionRadius:M,setCurrent:l,onMouseEnter:u,onMouseMove:h,onMouseLeave:c,onMouseDown:d,onMouseUp:f,onClick:p,onDoubleClick:g,onTouchStart:m,onTouchMove:v,onTouchEnd:y,enableTouchCrosshair:b,tooltip:T,tooltipPosition:S,tooltipAnchor:k}),E=B.current,j=B.handleMouseEnter,I=B.handleMouseMove,H=B.handleMouseLeave,R=B.handleMouseDown,U=B.handleMouseUp,O=B.handleClick,G=B.handleDoubleClick,V=B.handleTouchStart,Y=B.handleTouchMove,N=B.handleTouchEnd,$=F((function(){if(A&&W)return W.render()}),[A,W]);return s("g",{ref:L,transform:"translate("+-r.left+","+-r.top+")",children:[A&&W&&s(Pe,{children:[s("path",{d:$,stroke:"red",strokeWidth:1,opacity:.75}),M<1/0&&s("path",{stroke:"red",strokeWidth:.35,fill:"none",d:P.renderPoints(void 0,M)}),E&&s("path",{fill:"pink",opacity:.35,d:W.renderCell(E[0])})]}),s("rect",{"data-ref":"mesh-interceptor",width:r.left+i+r.right,height:r.top+n+r.bottom,fill:"red",opacity:0,style:{cursor:"auto"},onMouseEnter:j,onMouseMove:I,onMouseLeave:H,onMouseDown:R,onMouseUp:U,onTouchStart:V,onTouchMove:Y,onTouchEnd:N,onClick:O,onDoubleClick:G})]})};function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},At.apply(null,arguments)}function Lt(e,t){if(null==e)return{};var i={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;i[n]=e[n]}return i}var Dt,Pt={xScale:{type:"point"},yScale:{type:"linear",min:0,max:"auto"},curve:"linear",colors:{scheme:"nivo"},lineWidth:2,layers:["grid","markers","axes","areas","crosshair","lines","points","slices","mesh","legends"],enablePoints:!0,pointSize:6,pointColor:{from:"series.color"},pointBorderWidth:0,pointBorderColor:{theme:"background"},enableArea:!1,areaBaselineValue:0,areaOpacity:.2,enableGridX:!0,enableGridY:!0,legends:[],isInteractive:!0,tooltip:N((function(e){var t=e.point;return s(oe,{id:s("span",{children:["x: ",s("strong",{children:t.data.xFormatted}),", y:"," ",s("strong",{children:t.data.yFormatted})]}),enableChip:!0,color:t.seriesColor})})),sliceTooltip:N((function(e){var t=e.slice,i=e.axis,n=te(),o="x"===i?"y":"x";return s(ne,{rows:t.points.map((function(e){return[s(ie,{color:e.seriesColor,style:n.tooltip.chip},"chip"),e.seriesId,s("span",{style:n.tooltip.tableCellValue,children:e.data[o+"Formatted"]},"value")]}))})})),debugMesh:!1,renderWrapper:!0},Wt=At({},Pt,{defs:[],fill:[],enablePointLabel:!1,pointLabel:"data.yFormatted",areaBlendMode:"normal",axisTop:null,axisRight:null,axisBottom:be,axisLeft:be,useMesh:!1,enableSlices:!1,debugSlices:!1,enableCrosshair:!0,crosshairType:"bottom-left",enableTouchCrosshair:!1,initialHiddenIds:[],animate:!0,motionConfig:"gentle",role:"img",isFocusable:!1}),Bt=At({},Pt,{pixelRatio:"undefined"!=typeof window&&null!=(Dt=window.devicePixelRatio)?Dt:1,axisTop:null,axisRight:null,axisBottom:be,axisLeft:be});function Et(e){return F((function(){return Be().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y((function(e){return e.y})).curve(xe(e))}),[e])}function jt(e){var t=e.curve,i=e.yScale,n=e.areaBaselineValue;return F((function(){return We().defined((function(e){return null!==e.x&&null!==e.y})).x((function(e){return e.x})).y1((function(e){return e.y})).curve(xe(t)).y0(i(n))}),[t,i,n])}var It=function(e){var t=e.data,i=e.xScale,n=void 0===i?Pt.xScale:i,o=e.xFormat,r=e.yScale,a=void 0===r?Pt.yScale:r,l=e.yFormat,s=e.width,u=e.height,h=e.colors,c=void 0===h?Pt.colors:h,d=e.curve,f=void 0===d?Pt.curve:d,p=e.areaBaselineValue,g=void 0===p?Pt.areaBaselineValue:p,m=e.pointColor,v=void 0===m?Pt.pointColor:m,y=e.pointBorderColor,x=void 0===y?Pt.pointBorderColor:y,b=e.enableSlices,_=void 0===b?Wt.enableSlices:b,M=e.initialHiddenIds,T=void 0===M?Wt.initialHiddenIds:M,C=U(Re("line"))[0],S=me(o),w=me(l),k=ve(c,"id"),A=te(),L=ye(v,A),D=ye(x,A),P=U(null!=T?T:[]),W=P[0],B=P[1],E=F((function(){return Se(t.filter((function(e){return-1===W.indexOf(e.id)})),n,a,s,u)}),[t,W,n,a,s,u]),j=E.xScale,I=E.yScale,H=E.series,R=F((function(){var e=t.map((function(e){return{id:e.id,label:""+e.id,color:k(e)}})),i=e.map((function(e){return At({},H.find((function(t){return t.id===e.id})),{color:e.color})})).filter((function(e){return Boolean(e.id)}));return{legendData:e.map((function(e){return At({},e,{hidden:!i.find((function(t){return t.id===e.id}))})})).reverse(),series:i}}),[t,H,k]),z=R.legendData,O=R.series,G=Y((function(e){B((function(t){return t.indexOf(e)>-1?t.filter((function(t){return t!==e})):[].concat(t,[e])}))}),[]),V=function(e){var t=e.series,i=e.getPointColor,n=e.getPointBorderColor,o=e.formatX,r=e.formatY;return F((function(){return t.reduce((function(e,t,a){return[].concat(e,t.data.filter((function(e){return null!==e.position.x&&null!==e.position.y})).map((function(l,s){var u={id:t.id+"."+s,indexInSeries:s,absIndex:e.length+s,seriesIndex:a,seriesId:t.id,seriesColor:t.color,x:l.position.x,y:l.position.y,data:At({},l.data,{xFormatted:o(l.data.x),yFormatted:r(l.data.y)})};return u.color=i({series:t,point:u}),u.borderColor=n(u),u})))}),[])}),[t,i,n,o,r])}({series:O,getPointColor:L,getPointBorderColor:D,formatX:S,formatY:w}),N=function(e){var t=e.componentId,i=e.enableSlices,n=e.points,o=e.width,r=e.height;return F((function(){if("x"===i){var e=new Map;return n.forEach((function(t){null!==t.data.x&&null!==t.data.y&&(e.has(t.x)?e.get(t.x).push(t):e.set(t.x,[t]))})),Array.from(e.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,i,n){var a,l,s=e[0],u=e[1],h=n[i-1],c=n[i+1];return a=h?s-(s-h[0])/2:s,l=c?s-a+(c[0]-s)/2:o-a,{id:"slice:"+t+":"+s,x0:a,x:s,y0:0,y:0,width:l,height:r,points:u.reverse()}}))}if("y"===i){var a=new Map;return n.forEach((function(e){null!==e.data.x&&null!==e.data.y&&(a.has(e.y)?a.get(e.y).push(e):a.set(e.y,[e]))})),Array.from(a.entries()).sort((function(e,t){return e[0]-t[0]})).map((function(e,t,i){var n,a,l=e[0],s=e[1],u=i[t-1],h=i[t+1];return n=u?l-(l-u[0])/2:l,a=h?l-n+(h[0]-l)/2:r-n,{id:l,x0:0,x:0,y0:n,y:l,width:o,height:a,points:s.reverse()}}))}return[]}),[t,i,r,n,o])}({componentId:C,enableSlices:_,points:V,width:s,height:u});return{legendData:z,toggleSeries:G,lineGenerator:Et(f),areaGenerator:jt({curve:f,yScale:I,areaBaselineValue:g}),getColor:k,series:O,xScale:j,yScale:I,slices:N,points:V}},Ht=function(e){var t=e.areaBlendMode,i=e.areaOpacity,n=e.color,o=e.fill,r=e.path,a=ue(),l=a.animate,u=a.config,h=re(r),c=he({color:n,config:u,immediate:!l});return s(ae.path,{d:h,fill:o||c.color,fillOpacity:i,strokeWidth:0,style:{mixBlendMode:t}})},Rt=N((function(e){var t=e.areaGenerator,i=e.areaOpacity,n=e.areaBlendMode,o=e.series.slice(0).reverse();return s("g",{children:o.map((function(e){return s(Ht,At({path:t(e.data.map((function(e){return e.position})))},At({areaOpacity:i,areaBlendMode:n},e)),""+e.id)}))})})),Ft=N((function(e){var t=e.lineGenerator,i=e.points,n=e.color,o=e.thickness,r=F((function(){return t(i)}),[t,i]),a=re(r);return s(ae.path,{d:a,fill:"none",strokeWidth:o,stroke:n})})),zt=N((function(e){var t=e.series,i=e.lineGenerator,n=e.lineWidth;return s(Pe,{children:t.slice(0).reverse().map((function(e){var t=e.id,o=e.data,r=e.color;return s(Ft,{points:o.map((function(e){return e.position})),lineGenerator:i,color:r,thickness:n},t)}))})})),Ut=N((function(e){var t=e.slice,i=e.slices,n=e.axis,o=e.debug,r=e.tooltip,a=e.isCurrent,l=e.setCurrent,u=e.onMouseEnter,h=e.onMouseMove,c=e.onMouseLeave,d=e.onMouseDown,f=e.onMouseUp,p=e.onClick,g=e.onDoubleClick,m=e.onTouchStart,v=e.onTouchMove,y=e.onTouchEnd,x=ee(),b=x.showTooltipFromEvent,_=x.hideTooltip,M=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),l(t),null==u||u(t,e)}),[b,r,t,n,l,u]),T=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),null==h||h(t,e)}),[b,r,t,n,h]),C=Y((function(e){_(),l(null),null==c||c(t,e)}),[_,l,c,t]),S=Y((function(e){null==d||d(t,e)}),[t,d]),w=Y((function(e){null==f||f(t,e)}),[t,f]),k=Y((function(e){null==p||p(t,e)}),[t,p]),A=Y((function(e){null==g||g(t,e)}),[t,g]),L=Y((function(e){b(W(r,{slice:t,axis:n}),e,"right"),l(t),null==m||m(t,e)}),[n,m,l,b,t,r]),D=Y((function(e){var o=e.touches[0],a=document.elementFromPoint(o.clientX,o.clientY),s=null==a?void 0:a.getAttribute("data-ref");if(s){var u=i.find((function(e){return e.id===s}));u&&(b(W(r,{slice:u,axis:n}),e,"right"),l(u))}null==v||v(t,e)}),[n,v,l,b,t,i,r]),P=Y((function(e){_(),l(null),null==y||y(t,e)}),[_,l,y,t]);return s("rect",{x:t.x0,y:t.y0,width:t.width,height:t.height,stroke:"red",strokeWidth:o?1:0,strokeOpacity:.75,fill:"red",fillOpacity:a&&o?.35:0,onMouseEnter:M,onMouseMove:T,onMouseLeave:C,onMouseDown:S,onMouseUp:w,onClick:k,onDoubleClick:A,onTouchStart:L,onTouchMove:D,onTouchEnd:P,"data-ref":t.id})})),Ot=N((function(e){var t=e.slices,i=e.axis,n=e.debug,o=e.tooltip,r=e.current,a=e.setCurrent,l=e.onMouseEnter,u=e.onMouseMove,h=e.onMouseLeave,c=e.onMouseDown,d=e.onMouseUp,f=e.onClick,p=e.onDoubleClick,g=e.onTouchStart,m=e.onTouchMove,v=e.onTouchEnd;return s(Pe,{children:t.map((function(e){return s(Ut,{slice:e,slices:t,axis:i,debug:n,tooltip:o,setCurrent:a,isCurrent:null!==r&&r.id===e.id,onMouseEnter:l,onMouseMove:u,onMouseLeave:h,onMouseDown:c,onMouseUp:d,onClick:f,onDoubleClick:p,onTouchStart:g,onTouchMove:m,onTouchEnd:v},e.id)}))})})),Gt=N((function(e){var t=e.points,i=e.symbol,n=e.size,o=e.borderWidth,r=e.enableLabel,a=e.label,l=e.labelYOffset,u=e.isFocusable,h=e.setCurrentPoint,c=e.tooltip,d=e.margin,f=e.ariaLabel,p=e.ariaLabelledBy,g=e.ariaDescribedBy,m=e.ariaHidden,v=e.ariaDisabled,y=le(a),x=ee(),b=x.showTooltipAt,_=x.hideTooltip,M=t.slice(0).sort((function(e,t){return e.indexInSeries-t.indexInSeries})).sort((function(e,t){return t.seriesIndex-e.seriesIndex})).map((function(e){return{id:e.id,x:e.x,y:e.y,datum:e.data,fill:e.color,stroke:e.borderColor,label:r?y(e):null,ariaLabel:f?f(e):void 0,ariaLabelledBy:p?p(e):void 0,ariaDescribedBy:g?g(e):void 0,ariaHidden:m?m(e):void 0,ariaDisabled:v?v(e):void 0,onFocus:u?function(){h(e),b(W(c,{point:e}),[d.left+e.x,d.top+e.y],"top")}:void 0,onBlur:u?function(){h(null),_()}:void 0}}));return s("g",{children:M.map((function(e){return s(se,{x:e.x,y:e.y,datum:e.datum,symbol:i,size:n,color:e.fill,borderWidth:o,borderColor:e.stroke,label:e.label,labelYOffset:l,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy,ariaDescribedBy:e.ariaDescribedBy,ariaHidden:e.ariaHidden,ariaDisabled:e.ariaDisabled,isFocusable:u,onFocus:e.onFocus,onBlur:e.onBlur,testId:"line.point."+e.id},e.id)}))})})),Vt=N((function(e){var t=e.points,i=e.width,n=e.height,o=e.margin,r=e.setCurrent,a=e.onMouseEnter,l=e.onMouseMove,u=e.onMouseLeave,h=e.onMouseDown,c=e.onMouseUp,d=e.onClick,f=e.onDoubleClick,p=e.onTouchStart,g=e.onTouchMove,m=e.onTouchEnd,v=e.tooltip,y=e.debug,x=e.enableTouchCrosshair,b=ee(),_=b.showTooltipAt,M=b.hideTooltip,T=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==a||a(e,t)}),[_,v,a,o]),C=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==l||l(e,t)}),[_,v,o.left,o.top,l]),S=Y((function(e,t){M(),null==u||u(e,t)}),[M,u]),w=Y((function(e,t){null==h||h(e,t)}),[h]),k=Y((function(e,t){null==c||c(e,t)}),[c]),A=Y((function(e,t){null==d||d(e,t)}),[d]),L=Y((function(e,t){null==f||f(e,t)}),[f]),D=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==p||p(e,t)}),[o.left,o.top,p,_,v]),P=Y((function(e,t){_(W(v,{point:e}),[e.x+o.left,e.y+o.top],"top"),null==g||g(e,t)}),[o.left,o.top,g,_,v]),B=Y((function(e,t){M(),null==m||m(e,t)}),[m,M]);return s(kt,{nodes:t,width:i,height:n,setCurrent:r,onMouseEnter:T,onMouseMove:C,onMouseLeave:S,onMouseDown:w,onMouseUp:k,onClick:A,onDoubleClick:L,onTouchStart:D,onTouchMove:P,onTouchEnd:B,enableTouchCrosshair:x,debug:y})})),Yt=["isInteractive","animate","motionConfig","theme","renderWrapper"];function Nt(e){var t=e.data,i=e.xScale,n=void 0===i?Wt.xScale:i,o=e.xFormat,r=e.yScale,a=void 0===r?Wt.yScale:r,l=e.yFormat,u=e.curve,h=void 0===u?Wt.curve:u,c=e.margin,d=e.width,f=e.height,p=e.colors,g=void 0===p?Wt.colors:p,m=e.lineWidth,v=void 0===m?Wt.lineWidth:m,y=e.layers,x=void 0===y?Wt.layers:y,b=e.enableArea,_=void 0===b?Wt.enableArea:b,M=e.areaBaselineValue,T=void 0===M?Wt.areaBaselineValue:M,C=e.areaOpacity,S=void 0===C?Wt.areaOpacity:C,k=e.areaBlendMode,A=void 0===k?Wt.areaBlendMode:k,L=e.enablePoints,D=void 0===L?Wt.enablePoints:L,P=e.pointSymbol,W=e.pointSize,B=void 0===W?Wt.pointSize:W,E=e.pointColor,j=void 0===E?Wt.pointColor:E,I=e.pointBorderWidth,H=void 0===I?Wt.pointBorderWidth:I,R=e.pointBorderColor,F=void 0===R?Wt.pointBorderColor:R,z=e.enablePointLabel,O=void 0===z?Wt.enablePointLabel:z,G=e.pointLabel,V=void 0===G?Wt.pointLabel:G,Y=e.pointLabelYOffset,N=e.enableGridX,$=void 0===N?Wt.enableGridX:N,X=e.gridXValues,Z=e.enableGridY,J=void 0===Z?Wt.enableGridY:Z,Q=e.gridYValues,ee=e.axisTop,te=e.axisRight,ie=e.axisBottom,ne=void 0===ie?Wt.axisBottom:ie,oe=e.axisLeft,re=void 0===oe?Wt.axisLeft:oe,ae=e.defs,le=void 0===ae?Wt.defs:ae,se=e.fill,ue=void 0===se?Wt.fill:se,he=e.markers,pe=e.legends,ge=void 0===pe?Wt.legends:pe,me=e.isInteractive,ve=void 0===me?Wt.isInteractive:me,ye=e.useMesh,xe=void 0===ye?Wt.useMesh:ye,be=e.debugMesh,Te=void 0===be?Wt.debugMesh:be,Ce=e.onMouseEnter,Se=e.onMouseMove,ke=e.onMouseLeave,Ae=e.onMouseDown,Le=e.onMouseUp,De=e.onClick,Pe=e.onDoubleClick,We=e.onTouchStart,Be=e.onTouchMove,Ee=e.onTouchEnd,je=e.tooltip,Ie=void 0===je?Wt.tooltip:je,He=e.enableSlices,Re=void 0===He?Wt.enableSlices:He,Fe=e.debugSlices,ze=void 0===Fe?Wt.debugSlices:Fe,Ue=e.sliceTooltip,Oe=void 0===Ue?Wt.sliceTooltip:Ue,Ge=e.enableCrosshair,Ve=void 0===Ge?Wt.enableCrosshair:Ge,Ye=e.crosshairType,Ne=void 0===Ye?Wt.crosshairType:Ye,$e=e.enableTouchCrosshair,Xe=void 0===$e?Wt.enableTouchCrosshair:$e,Ke=e.role,qe=void 0===Ke?Wt.role:Ke,Ze=e.ariaLabel,Je=e.ariaLabelledBy,Qe=e.ariaDescribedBy,et=e.isFocusable,tt=void 0===et?Wt.isFocusable:et,it=e.pointAriaLabel,nt=e.pointAriaLabelledBy,ot=e.pointAriaDescribedBy,rt=e.pointAriaHidden,at=e.pointAriaDisabled,lt=e.initialHiddenIds,st=void 0===lt?Wt.initialHiddenIds:lt,ut=e.forwardedRef,ht=K(d,f,c),ct=ht.margin,dt=ht.innerWidth,ft=ht.innerHeight,pt=ht.outerWidth,gt=ht.outerHeight,mt=It({data:t,xScale:n,xFormat:o,yScale:a,yFormat:l,width:dt,height:ft,colors:g,curve:h,areaBaselineValue:T,pointColor:j,pointBorderColor:F,enableSlices:Re,initialHiddenIds:st}),vt=mt.legendData,yt=mt.toggleSeries,xt=mt.lineGenerator,bt=mt.areaGenerator,_t=mt.series,Mt=mt.xScale,Tt=mt.yScale,Ct=mt.slices,St=mt.points,wt=U(null),kt=wt[0],Lt=wt[1],Dt=U(null),Pt=Dt[0],Bt=Dt[1],Et={grid:null,markers:null,axes:null,areas:null,crosshair:null,lines:null,points:null,slices:null,mesh:null,legends:null};x.includes("grid")&&($||J)&&(Et.grid=s(_e,{width:dt,height:ft,xScale:$?Mt:null,yScale:J?Tt:null,xValues:X,yValues:Q},"grid")),x.includes("markers")&&Array.isArray(he)&&he.length>0&&(Et.markers=s(ce,{markers:he,width:dt,height:ft,xScale:Mt,yScale:Tt},"markers")),x.includes("axes")&&(Et.axes=s(Me,{xScale:Mt,yScale:Tt,width:dt,height:ft,top:ee,right:te,bottom:ne,left:re},"axes")),x.includes("lines")&&(Et.lines=s(zt,{series:_t,lineGenerator:xt,lineWidth:v},"lines")),x.includes("legends")&&ge.length>0&&(Et.legends=s(w,{children:ge.map((function(e,t){return s(we,At({},e,{containerWidth:dt,containerHeight:ft,data:e.data||vt,toggleSerie:e.toggleSerie?yt:void 0}),t)}))},"legends"));var jt=de(le,_t,ue);_&&(Et.areas=s(Rt,{areaGenerator:bt,areaOpacity:S,areaBlendMode:A,series:_t},"areas")),ve&&!1!==Re&&(Et.slices=s(Ot,{slices:Ct,axis:Re,debug:ze,tooltip:Oe,current:Pt,setCurrent:Bt,onMouseEnter:Ce,onMouseMove:Se,onMouseLeave:ke,onMouseDown:Ae,onMouseUp:Le,onClick:De,onDoubleClick:Pe,onTouchStart:We,onTouchMove:Be,onTouchEnd:Ee},"slices")),D&&(Et.points=s(Gt,{points:St,symbol:P,size:B,borderWidth:H,enableLabel:O,label:V,labelYOffset:Y,isFocusable:tt,setCurrentPoint:Lt,tooltip:Ie,margin:ct,ariaLabel:it,ariaLabelledBy:nt,ariaDescribedBy:ot,ariaHidden:rt,ariaDisabled:at},"points")),ve&&Ve&&(null!==kt&&(Et.crosshair=s(fe,{width:dt,height:ft,x:kt.x,y:kt.y,type:Ne},"crosshair")),null!==Pt&&Re&&(Et.crosshair=s(fe,{width:dt,height:ft,x:Pt.x,y:Pt.y,type:Re},"crosshair"))),ve&&xe&&!1===Re&&(Et.mesh=s(Vt,{points:St,width:dt,height:ft,margin:ct,setCurrent:Lt,onMouseEnter:Ce,onMouseMove:Se,onMouseLeave:ke,onMouseDown:Ae,onMouseUp:Le,onClick:De,onDoubleClick:Pe,onTouchStart:We,onTouchMove:Be,onTouchEnd:Ee,tooltip:Ie,enableTouchCrosshair:Xe,debug:Te},"mesh"));var Ht=At({},e,{innerWidth:dt,innerHeight:ft,series:_t,slices:Ct,points:St,xScale:Mt,yScale:Tt,lineGenerator:xt,areaGenerator:bt,currentPoint:kt,setCurrentPoint:Lt,currentSlice:Pt,setCurrentSlice:Bt});return s(q,{defs:jt,width:pt,height:gt,margin:ct,role:qe,ariaLabel:Ze,ariaLabelledBy:Je,ariaDescribedBy:Qe,isFocusable:tt,ref:ut,children:x.map((function(e,t){return"function"==typeof e?s(w,{children:e(Ht)},t):Et[e]}))})}var $t=_((function(e,t){var i=e.isInteractive,n=void 0===i?Wt.isInteractive:i,o=e.animate,r=void 0===o?Wt.animate:o,a=e.motionConfig,l=void 0===a?Wt.motionConfig:a,u=e.theme,h=e.renderWrapper,c=Lt(e,Yt);return s($,{animate:r,isInteractive:n,motionConfig:l,renderWrapper:h,theme:u,children:s(Nt,At({isInteractive:n},c,{forwardedRef:t}))})})),Xt=["defaultWidth","defaultHeight","onResize","debounceResize"],Kt=_((function(e,t){var i=e.defaultWidth,n=e.defaultHeight,o=e.onResize,r=e.debounceResize,a=Lt(e,Xt);return s(X,{defaultWidth:i,defaultHeight:n,onResize:o,debounceResize:r,children:function(e){var i=e.width,n=e.height;return s($t,At({width:i,height:n},a,{ref:t}))}})})),qt=["isInteractive","renderWrapper","theme"],Zt=function(e){var t=e.width,i=e.height,n=e.margin,o=e.pixelRatio,r=void 0===o?Bt.pixelRatio:o,a=e.data,l=e.xScale,u=void 0===l?Bt.xScale:l,h=e.xFormat,c=e.yScale,d=void 0===c?Bt.yScale:c,f=e.yFormat,p=e.curve,g=void 0===p?Bt.curve:p,m=e.layers,v=void 0===m?Bt.layers:m,y=e.colors,x=void 0===y?Bt.colors:y,b=e.lineWidth,_=void 0===b?Bt.lineWidth:b,M=e.enableArea,T=void 0===M?Bt.enableArea:M,C=e.areaBaselineValue,S=void 0===C?Bt.areaBaselineValue:C,w=e.areaOpacity,k=void 0===w?Bt.areaOpacity:w,A=e.enablePoints,L=void 0===A?Bt.enablePoints:A,D=e.pointSize,P=void 0===D?Bt.pointSize:D,B=e.pointColor,E=void 0===B?Bt.pointColor:B,j=e.pointBorderWidth,I=void 0===j?Bt.pointBorderWidth:j,H=e.pointBorderColor,R=void 0===H?Bt.pointBorderColor:H,O=e.enableGridX,G=void 0===O?Bt.enableGridX:O,N=e.gridXValues,$=e.enableGridY,X=void 0===$?Bt.enableGridY:$,q=e.gridYValues,Z=e.axisTop,Q=e.axisRight,ie=e.axisBottom,ne=void 0===ie?Bt.axisBottom:ie,oe=e.axisLeft,re=void 0===oe?Bt.axisLeft:oe,ae=e.legends,le=void 0===ae?Bt.legends:ae,se=e.isInteractive,ue=void 0===se?Bt.isInteractive:se,he=e.debugMesh,ce=void 0===he?Bt.debugMesh:he,de=e.onMouseLeave,fe=e.onMouseDown,me=e.onMouseUp,ve=e.onClick,ye=e.onDoubleClick,xe=e.tooltip,be=void 0===xe?Bt.tooltip:xe,_e=e.role,Me=e.forwardedRef,Se=z(null),we=K(t,i,n),Ae=we.margin,Le=we.innerWidth,De=we.innerHeight,Pe=we.outerWidth,We=we.outerHeight,Be=te(),Ee=U(null),je=Ee[0],Ie=Ee[1],He=It({data:a,xScale:u,xFormat:h,yScale:d,yFormat:f,width:Le,height:De,colors:x,curve:g,areaBaselineValue:S,pointColor:E,pointBorderColor:R}),Re=He.lineGenerator,Fe=He.areaGenerator,ze=He.series,Ue=He.xScale,Oe=He.yScale,Ge=He.points,Ve=F((function(){return{innerWidth:Le,innerHeight:De,series:ze,points:Ge,xScale:Ue,yScale:Oe,lineWidth:_,lineGenerator:Re,areaGenerator:Fe,currentPoint:je,setCurrentPoint:Ie}}),[Le,De,ze,Ge,Ue,Oe,_,Re,Fe,je,Ie]),Ye=_t({points:Ge,width:Le,height:De,debug:ce}),Ne=Ye.delaunay,$e=Ye.voronoi;V((function(){if(null!==Se.current){Se.current.width=Pe*r,Se.current.height=We*r;var e=Se.current.getContext("2d");e.scale(r,r),e.fillStyle=Be.background,e.fillRect(0,0,Pe,We),e.translate(Ae.left,Ae.top),v.forEach((function(t){var i;"function"==typeof t&&t(e,Ve);var n=null!=(i=Be.grid.line.strokeWidth)?i:0;if("grid"===t&&"string"!=typeof n&&n>0&&(e.lineWidth=n,e.strokeStyle=Be.grid.line.stroke,G&&Te(e,{width:Le,height:De,scale:Ue,axis:"x",values:N}),X&&Te(e,{width:Le,height:De,scale:Oe,axis:"y",values:q})),"axes"===t&&Ce(e,{xScale:Ue,yScale:Oe,width:Le,height:De,top:Z,right:Q,bottom:ne,left:re,theme:Be}),"areas"===t&&!0===T){e.save(),e.globalAlpha=k,Fe.context(e);for(var o=ze.length-1;o>=0;o--)e.fillStyle=ze[o].color,e.beginPath(),Fe(ze[o].data.map((function(e){return e.position}))),e.fill();e.restore()}if("lines"===t&&(Re.context(e),ze.forEach((function(t){e.strokeStyle=t.color,e.lineWidth=_,e.beginPath(),Re(t.data.map((function(e){return e.position}))),e.stroke()}))),"points"===t&&!0===L&&P>0&&Ge.forEach((function(t){e.fillStyle=t.color,e.beginPath(),e.arc(t.x,t.y,P/2,0,2*Math.PI),e.fill(),I>0&&(e.strokeStyle=t.borderColor,e.lineWidth=I,e.stroke())})),"mesh"===t&&!0===ce&&void 0!==$e&&(function(e,t){e.save(),e.globalAlpha=.75,e.beginPath(),t.render(e),e.strokeStyle="red",e.lineWidth=1,e.stroke(),e.restore()}(e,$e),je&&function(e,t,i){e.save(),e.globalAlpha=.35,e.beginPath(),t.renderCell(i,e),e.fillStyle="pink",e.fill(),e.restore()}(e,$e,je.absIndex)),"legends"===t){var r=ze.map((function(e){return{id:e.id,label:e.id,color:e.color}})).reverse();le.forEach((function(t){ke(e,At({},t,{data:t.data||r,containerWidth:Le,containerHeight:De,theme:Be}))}))}}))}}),[Se,Le,Pe,De,We,Ae.left,Ae.top,r,v,Be,Re,ze,Ue,Oe,G,N,X,q,Z,Q,ne,re,le,Ge,L,P,I,je,Ve,ce,T,Fe,k,_,$e]);var Xe=Y((function(e){if(!Se.current)return null;var t=J(Se.current,e),i=t[0],n=t[1];if(!pe(Ae.left,Ae.top,Le,De,i,n))return null;var o=Ne.find(i-Ae.left,n-Ae.top);return Ge[o]}),[Se,Ae,Le,De,Ne,Ge]),Ke=ee(),qe=Ke.showTooltipFromEvent,Ze=Ke.hideTooltip,Je=Y((function(e){var t=Xe(e);Ie(t),t?qe(W(be,{point:t}),e):Ze()}),[Xe,Ie,qe,Ze,be]),Qe=Y((function(e){Ze(),Ie(null),je&&(null==de||de(je,e))}),[Ze,Ie,de,je]),et=Y((function(e){if(fe){var t=Xe(e);t&&fe(t,e)}}),[Xe,fe]),tt=Y((function(e){if(me){var t=Xe(e);t&&me(t,e)}}),[Xe,me]),it=Y((function(e){if(ve){var t=Xe(e);t&&ve(t,e)}}),[Xe,ve]),nt=Y((function(e){if(ye){var t=Xe(e);t&&ye(t,e)}}),[Xe,ye]);return s("canvas",{ref:ge(Se,Me),width:Pe*r,height:We*r,style:{width:Pe,height:We,cursor:ue?"auto":"normal"},onMouseEnter:ue?Je:void 0,onMouseMove:ue?Je:void 0,onMouseLeave:ue?Qe:void 0,onMouseDown:ue?et:void 0,onMouseUp:ue?tt:void 0,onClick:ue?it:void 0,onDoubleClick:ue?nt:void 0,role:_e})},Jt=_((function(e,t){var i=e.isInteractive,n=e.renderWrapper,o=e.theme,r=Lt(e,qt);return s($,{isInteractive:i,renderWrapper:n,theme:o,animate:!1,children:s(Zt,At({},r,{forwardedRef:t}))})})),Qt=["defaultWidth","defaultHeight","onResize","debounceResize"];_((function(e,t){var i=e.defaultWidth;e.defaultHeight;var n=e.onResize,o=e.debounceResize,r=Lt(e,Qt);return s(X,{defaultWidth:i,defaultHeight:i,onResize:n,debounceResize:o,children:function(e){var i=e.width,n=e.height;return s(Jt,At({width:i,height:n},r,{ref:t}))}})}));const ei={anchor:"right",direction:"column",justify:!1,translateX:100,translateY:0,itemsSpacing:0,itemDirection:"left-to-right",itemWidth:80,itemHeight:20,itemOpacity:.75,symbolSize:12,symbolShape:"square",symbolBorderColor:"rgba(0, 0, 0, .5)",effects:[{on:"hover",style:{itemBackground:"rgba(0, 0, 0, .03)",itemOpacity:1}}]},ti={tickSize:5,tickPadding:5,tickRotation:45,ticksPosition:"before"},ii={tickSize:5,tickPadding:5,tickRotation:0},ni={top:60,right:110,bottom:60,left:80},oi={type:"point"},ri={type:"linear",min:"auto",max:"auto",reverse:!1},ai={margin:ni,xScale:oi,yScale:ri,axisTop:null,axisRight:null,axisBottom:ti,axisLeft:ii,useMesh:!0,enableArea:!0},li={background:"var(--color-bg-primary)",axis:{ticks:{text:{fill:"var(--color-text-secondary)"}},legend:{text:{fill:"var(--color-text-primary)"}},grid:{line:{stroke:"var(--color-border-default)"}}},legends:{text:{fill:"var(--color-text-secondary)"}},tooltip:{container:{background:"var(--color-bg-raised)",color:"var(--color-text-primary)"}}};var si;!function(e){e.Mesh="Mesh",e.SlicesX="SlicesX",e.SlicesY="SlicesY"}(si||(si={}));const ui=64,hi=(e,t,i)=>{const{constant:n=ui,...o}=i??{};return{type:"symlog",min:e,max:t,constant:n,...o}},ci=(e,t)=>{const i=e.flatMap((e=>e.data)).map((e=>e.y)),n=Math.min(...i),o=Math.max(...i);return hi(n,o,t)},di=({kind:e=si.Mesh,width:t="100%",height:i=400,emptyLabel:n="No data available",emptyAriaLabel:o="No data available",axisBottom:r,rootAriaLabel:a,data:l,...u})=>{const h=(e=>{switch(e){case si.SlicesX:return{useMesh:!1,enableSlices:"x"};case si.SlicesY:return{useMesh:!1,enableSlices:"y"};case si.Mesh:default:return{useMesh:!0,enableSlices:void 0}}})(e),c=v(((t,i)=>{e===si.Mesh?u?.onClick?.(t,i):[si.SlicesX,si.SlicesY].includes(e)&&u?.onSliceClick?.(t,i)}),[e,u]),d=v(((t,i)=>{e===si.Mesh?u?.onTouchEnd?.(t,i):[si.SlicesX,si.SlicesY].includes(e)&&u?.onSliceTouchEnd?.(t,i)}),[e,u]),f=y((()=>{const e=l?.flatMap((e=>e.data?.map((e=>e.x))));return[...new Set(e)].sort(((e,t)=>{const i=e?.toString()||"",n=t?.toString()||"",o=i.split(/(\d+)/).filter(Boolean),r=n.split(/(\d+)/).filter(Boolean);for(let e=0;e<Math.min(o.length,r.length);e++){const t=parseInt(o[e],10),i=parseInt(r[e],10);if(isNaN(t)||isNaN(i)){const t=o[e].localeCompare(r[e]);if(0!==t)return t}else if(t!==i)return t-i}return o.length-r.length}))}),[l]);return!l||0===l.length||l.every((e=>!e.data?.length))?s(Ee,{label:n,width:t,height:i,ariaLabel:o}):s("div",{role:"img","aria-label":a,tabIndex:0,style:{width:t,height:i},children:s(Kt,{...ai,...h,...u,data:l,onClick:c,onTouchEnd:d,axisBottom:{...ti,...r,tickValues:f},theme:li})})},fi=({title:e,mode:i,items:n,slices:o,min:r,max:a,height:l=400,width:u="100%",rootAriaLabel:h,translations:c})=>{const[d,f]=x([]),g=c["no-results"],m=y((()=>hi(r,a,{constant:8})),[a,r]),b=y((()=>i===p.Percent?" >-.2%":" >-.2f"),[i]),_=v((e=>{const t=e.points.reduce(((e,t)=>(e.push(t.data.x),e)),[]);f((()=>t))}),[]);return y((()=>o.filter((e=>d.includes(e.metadata.executionId)))),[o,d]),s(t,{title:e,children:s(di,{kind:si.SlicesX,data:n,height:l,width:u,emptyLabel:g,emptyAriaLabel:g,rootAriaLabel:h,colors:({color:e})=>e,yScale:m,yFormat:b,onSliceClick:_,onSliceTouchEnd:_})})};export{je as AttachmentEmpty,di as TrendChart,si as TrendChartKind,fi as TrendChartWidget,t as Widget,ti as defaultTrendChartAxisBottomConfig,ii as defaultTrendChartAxisLeftConfig,ai as defaultTrendChartConfig,ei as defaultTrendChartLegendConfig,ni as defaultTrendChartMarginConfig,oi as defaultTrendChartXScaleConfig,ri as defaultTrendChartYScaleConfig,hi as makeSymlogScale,ci as makeSymlogScaleBySeries};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./linear-CZyKfBBG.js";import{useRef as n,useState as t,useCallback as e,useEffect as u,useMemo as c}from"react";class i extends Map{constructor(r,n=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=r)for(const[n,t]of r)this.set(n,t)}get(r){return super.get(o(this,r))}has(r){return super.has(o(this,r))}set(r,n){return super.set(function({_intern:r,_key:n},t){const e=n(t);return r.has(e)?r.get(e):(r.set(e,t),t)}(this,r),n)}delete(r){return super.delete(function({_intern:r,_key:n},t){const e=n(t);r.has(e)&&(t=r.get(e),r.delete(e));return t}(this,r))}}function o({_intern:r,_key:n},t){const e=n(t);return r.has(e)?r.get(e):t}function a(r){return null!==r&&"object"==typeof r?r.valueOf():r}const f=Symbol("implicit");function l(){var n=new i,t=[],e=[],u=f;function c(r){let c=n.get(r);if(void 0===c){if(u!==f)return u;n.set(r,c=t.push(r)-1)}return e[c%e.length]}return c.domain=function(r){if(!arguments.length)return t.slice();t=[],n=new i;for(const e of r)n.has(e)||n.set(e,t.push(e)-1);return c},c.range=function(r){return arguments.length?(e=Array.from(r),c):e.slice()},c.unknown=function(r){return arguments.length?(u=r,c):u},c.copy=function(){return l(t,e).unknown(u)},r.apply(c,arguments),c}function s(r,n){return r===n}function p(r,i,o){var a=o&&o.equalityFn||s,f=n(r),l=t({})[1],p=function(r,t,e,i){var o=this,a=n(null),f=n(0),l=n(0),s=n(null),p=n([]),h=n(),m=n(),v=n(r),d=n(!0);v.current=r;var g="undefined"!=typeof window,y=!t&&0!==t&&g;if("function"!=typeof r)throw new TypeError("Expected a function");t=+t||0;var w=!!(e=e||{}).leading,_=!("trailing"in e)||!!e.trailing,k="maxWait"in e,x="debounceOnServer"in e&&!!e.debounceOnServer,b=k?Math.max(+e.maxWait||0,t):null;u((function(){return d.current=!0,function(){d.current=!1}}),[]);var A=c((function(){var r=function(r){var n=p.current,t=h.current;return p.current=h.current=null,f.current=r,l.current=l.current||r,m.current=v.current.apply(t,n)},n=function(r,n){y&&cancelAnimationFrame(s.current),s.current=y?requestAnimationFrame(r):setTimeout(r,n)},e=function(r){if(!d.current)return!1;var n=r-a.current;return!a.current||n>=t||n<0||k&&r-f.current>=b},u=function(n){return s.current=null,_&&p.current?r(n):(p.current=h.current=null,m.current)},c=function r(){var c=Date.now();if(w&&l.current===f.current&&A(),e(c))return u(c);if(d.current){var i=t-(c-a.current),o=k?Math.min(i,b-(c-f.current)):i;n(r,o)}},A=function(){i&&i({})},F=function(){if(g||x){var u=Date.now(),i=e(u);if(p.current=[].slice.call(arguments),h.current=o,a.current=u,i){if(!s.current&&d.current)return f.current=a.current,n(c,t),w?r(a.current):m.current;if(k)return n(c,t),r(a.current)}return s.current||n(c,t),m.current}};return F.cancel=function(){var r=s.current;r&&(y?cancelAnimationFrame(s.current):clearTimeout(s.current)),f.current=0,p.current=a.current=h.current=s.current=null,r&&i&&i({})},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?u(Date.now()):m.current},F}),[w,k,t,b,_,y,g,x,i]);return A}(e((function(r){f.current=r,l({})}),[l]),i,o,l),h=n(r);return a(h.current,r)||(p(r),h.current=r),[f.current,p]}export{p as a,l as o};
2
- //# sourceMappingURL=index.module-BKdNahiA.js.map
1
+ import{a as r}from"./linear-C7uKb8Tk.js";import{useRef as n,useState as t,useCallback as e,useEffect as u,useMemo as c}from"react";class i extends Map{constructor(r,n=a){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=r)for(const[n,t]of r)this.set(n,t)}get(r){return super.get(o(this,r))}has(r){return super.has(o(this,r))}set(r,n){return super.set(function({_intern:r,_key:n},t){const e=n(t);return r.has(e)?r.get(e):(r.set(e,t),t)}(this,r),n)}delete(r){return super.delete(function({_intern:r,_key:n},t){const e=n(t);r.has(e)&&(t=r.get(e),r.delete(e));return t}(this,r))}}function o({_intern:r,_key:n},t){const e=n(t);return r.has(e)?r.get(e):t}function a(r){return null!==r&&"object"==typeof r?r.valueOf():r}const f=Symbol("implicit");function l(){var n=new i,t=[],e=[],u=f;function c(r){let c=n.get(r);if(void 0===c){if(u!==f)return u;n.set(r,c=t.push(r)-1)}return e[c%e.length]}return c.domain=function(r){if(!arguments.length)return t.slice();t=[],n=new i;for(const e of r)n.has(e)||n.set(e,t.push(e)-1);return c},c.range=function(r){return arguments.length?(e=Array.from(r),c):e.slice()},c.unknown=function(r){return arguments.length?(u=r,c):u},c.copy=function(){return l(t,e).unknown(u)},r.apply(c,arguments),c}function s(r,n){return r===n}function p(r,i,o){var a=o&&o.equalityFn||s,f=n(r),l=t({})[1],p=function(r,t,e,i){var o=this,a=n(null),f=n(0),l=n(0),s=n(null),p=n([]),h=n(),m=n(),v=n(r),d=n(!0);v.current=r;var g="undefined"!=typeof window,y=!t&&0!==t&&g;if("function"!=typeof r)throw new TypeError("Expected a function");t=+t||0;var w=!!(e=e||{}).leading,_=!("trailing"in e)||!!e.trailing,k="maxWait"in e,x="debounceOnServer"in e&&!!e.debounceOnServer,b=k?Math.max(+e.maxWait||0,t):null;u((function(){return d.current=!0,function(){d.current=!1}}),[]);var A=c((function(){var r=function(r){var n=p.current,t=h.current;return p.current=h.current=null,f.current=r,l.current=l.current||r,m.current=v.current.apply(t,n)},n=function(r,n){y&&cancelAnimationFrame(s.current),s.current=y?requestAnimationFrame(r):setTimeout(r,n)},e=function(r){if(!d.current)return!1;var n=r-a.current;return!a.current||n>=t||n<0||k&&r-f.current>=b},u=function(n){return s.current=null,_&&p.current?r(n):(p.current=h.current=null,m.current)},c=function r(){var c=Date.now();if(w&&l.current===f.current&&A(),e(c))return u(c);if(d.current){var i=t-(c-a.current),o=k?Math.min(i,b-(c-f.current)):i;n(r,o)}},A=function(){i&&i({})},F=function(){if(g||x){var u=Date.now(),i=e(u);if(p.current=[].slice.call(arguments),h.current=o,a.current=u,i){if(!s.current&&d.current)return f.current=a.current,n(c,t),w?r(a.current):m.current;if(k)return n(c,t),r(a.current)}return s.current||n(c,t),m.current}};return F.cancel=function(){var r=s.current;r&&(y?cancelAnimationFrame(s.current):clearTimeout(s.current)),f.current=0,p.current=a.current=h.current=s.current=null,r&&i&&i({})},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?u(Date.now()):m.current},F}),[w,k,t,b,_,y,g,x,i]);return A}(e((function(r){f.current=r,l({})}),[l]),i,o,l),h=n(r);return a(h.current,r)||(p(r),h.current=r),[f.current,p]}export{p as a,l as o};
2
+ //# sourceMappingURL=index.module-Bdu_gwCw.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module-BKdNahiA.js","sources":["../../../node_modules/internmap/src/index.js","../../../node_modules/d3-scale/src/ordinal.js","../../../node_modules/use-debounce/dist/index.module.js"],"sourcesContent":["export class InternMap extends Map {\n constructor(entries, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (entries != null) for (const [key, value] of entries) this.set(key, value);\n }\n get(key) {\n return super.get(intern_get(this, key));\n }\n has(key) {\n return super.has(intern_get(this, key));\n }\n set(key, value) {\n return super.set(intern_set(this, key), value);\n }\n delete(key) {\n return super.delete(intern_delete(this, key));\n }\n}\n\nexport class InternSet extends Set {\n constructor(values, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (values != null) for (const value of values) this.add(value);\n }\n has(value) {\n return super.has(intern_get(this, value));\n }\n add(value) {\n return super.add(intern_set(this, value));\n }\n delete(value) {\n return super.delete(intern_delete(this, value));\n }\n}\n\nfunction intern_get({_intern, _key}, value) {\n const key = _key(value);\n return _intern.has(key) ? _intern.get(key) : value;\n}\n\nfunction intern_set({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) return _intern.get(key);\n _intern.set(key, value);\n return value;\n}\n\nfunction intern_delete({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) {\n value = _intern.get(key);\n _intern.delete(key);\n }\n return value;\n}\n\nfunction keyof(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n","import {InternMap} from \"d3-array\";\nimport {initRange} from \"./init.js\";\n\nexport const implicit = Symbol(\"implicit\");\n\nexport default function ordinal() {\n var index = new InternMap(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n let i = index.get(d);\n if (i === undefined) {\n if (unknown !== implicit) return unknown;\n index.set(d, i = domain.push(d) - 1);\n }\n return range[i % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = new InternMap();\n for (const value of _) {\n if (index.has(value)) continue;\n index.set(value, domain.push(value) - 1);\n }\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import{useRef as r,useEffect as n,useMemo as t,useState as e,useCallback as u}from\"react\";function c(e,u,c,i){var a=this,o=r(null),f=r(0),l=r(0),v=r(null),m=r([]),d=r(),g=r(),p=r(e),w=r(!0);p.current=e;var s=\"undefined\"!=typeof window,x=!u&&0!==u&&s;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var h=!!(c=c||{}).leading,y=!(\"trailing\"in c)||!!c.trailing,F=\"maxWait\"in c,A=\"debounceOnServer\"in c&&!!c.debounceOnServer,D=F?Math.max(+c.maxWait||0,u):null;n(function(){return w.current=!0,function(){w.current=!1}},[]);var T=t(function(){var r=function(r){var n=m.current,t=d.current;return m.current=d.current=null,f.current=r,l.current=l.current||r,g.current=p.current.apply(t,n)},n=function(r,n){x&&cancelAnimationFrame(v.current),v.current=x?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!w.current)return!1;var n=r-o.current;return!o.current||n>=u||n<0||F&&r-f.current>=D},e=function(n){return v.current=null,y&&m.current?r(n):(m.current=d.current=null,g.current)},c=function r(){var c=Date.now();if(h&&l.current===f.current&&T(),t(c))return e(c);if(w.current){var i=u-(c-o.current),a=F?Math.min(i,D-(c-f.current)):i;n(r,a)}},T=function(){i&&i({})},W=function(){if(s||A){var e=Date.now(),i=t(e);if(m.current=[].slice.call(arguments),d.current=a,o.current=e,i){if(!v.current&&w.current)return f.current=o.current,n(c,u),h?r(o.current):g.current;if(F)return n(c,u),r(o.current)}return v.current||n(c,u),g.current}};return W.cancel=function(){var r=v.current;r&&(x?cancelAnimationFrame(v.current):clearTimeout(v.current)),f.current=0,m.current=o.current=d.current=v.current=null,r&&i&&i({})},W.isPending=function(){return!!v.current},W.flush=function(){return v.current?e(Date.now()):g.current},W},[h,F,u,D,y,x,s,A,i]);return T}function i(r,n){return r===n}function a(n,t,a){var o=a&&a.equalityFn||i,f=r(n),l=e({})[1],v=c(u(function(r){f.current=r,l({})},[l]),t,a,l),m=r(n);return o(m.current,n)||(v(n),m.current=n),[f.current,v]}function o(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i})}export{a as useDebounce,c as useDebouncedCallback,o as useThrottledCallback};\n//# sourceMappingURL=index.module.js.map\n"],"names":["InternMap","Map","constructor","entries","key","keyof","super","Object","defineProperties","this","_intern","value","_key","set","get","intern_get","has","intern_set","delete","intern_delete","valueOf","implicit","Symbol","ordinal","index","domain","range","unknown","scale","d","i","undefined","push","length","_","arguments","slice","Array","from","copy","initRange","apply","e","u","c","a","o","r","f","l","v","m","g","p","w","current","s","window","x","TypeError","h","leading","y","trailing","F","A","debounceOnServer","D","Math","max","maxWait","n","T","t","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","W","call","cancel","clearTimeout","isPending","flush"],"mappings":"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","x_google_ignoreList":[0,1,2]}
1
+ {"version":3,"file":"index.module-Bdu_gwCw.js","sources":["../../../node_modules/internmap/src/index.js","../../../node_modules/d3-scale/src/ordinal.js","../../../node_modules/use-debounce/dist/index.module.js"],"sourcesContent":["export class InternMap extends Map {\n constructor(entries, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (entries != null) for (const [key, value] of entries) this.set(key, value);\n }\n get(key) {\n return super.get(intern_get(this, key));\n }\n has(key) {\n return super.has(intern_get(this, key));\n }\n set(key, value) {\n return super.set(intern_set(this, key), value);\n }\n delete(key) {\n return super.delete(intern_delete(this, key));\n }\n}\n\nexport class InternSet extends Set {\n constructor(values, key = keyof) {\n super();\n Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});\n if (values != null) for (const value of values) this.add(value);\n }\n has(value) {\n return super.has(intern_get(this, value));\n }\n add(value) {\n return super.add(intern_set(this, value));\n }\n delete(value) {\n return super.delete(intern_delete(this, value));\n }\n}\n\nfunction intern_get({_intern, _key}, value) {\n const key = _key(value);\n return _intern.has(key) ? _intern.get(key) : value;\n}\n\nfunction intern_set({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) return _intern.get(key);\n _intern.set(key, value);\n return value;\n}\n\nfunction intern_delete({_intern, _key}, value) {\n const key = _key(value);\n if (_intern.has(key)) {\n value = _intern.get(key);\n _intern.delete(key);\n }\n return value;\n}\n\nfunction keyof(value) {\n return value !== null && typeof value === \"object\" ? value.valueOf() : value;\n}\n","import {InternMap} from \"d3-array\";\nimport {initRange} from \"./init.js\";\n\nexport const implicit = Symbol(\"implicit\");\n\nexport default function ordinal() {\n var index = new InternMap(),\n domain = [],\n range = [],\n unknown = implicit;\n\n function scale(d) {\n let i = index.get(d);\n if (i === undefined) {\n if (unknown !== implicit) return unknown;\n index.set(d, i = domain.push(d) - 1);\n }\n return range[i % range.length];\n }\n\n scale.domain = function(_) {\n if (!arguments.length) return domain.slice();\n domain = [], index = new InternMap();\n for (const value of _) {\n if (index.has(value)) continue;\n index.set(value, domain.push(value) - 1);\n }\n return scale;\n };\n\n scale.range = function(_) {\n return arguments.length ? (range = Array.from(_), scale) : range.slice();\n };\n\n scale.unknown = function(_) {\n return arguments.length ? (unknown = _, scale) : unknown;\n };\n\n scale.copy = function() {\n return ordinal(domain, range).unknown(unknown);\n };\n\n initRange.apply(scale, arguments);\n\n return scale;\n}\n","import{useRef as r,useEffect as n,useMemo as t,useState as e,useCallback as u}from\"react\";function c(e,u,c,i){var a=this,o=r(null),f=r(0),l=r(0),v=r(null),m=r([]),d=r(),g=r(),p=r(e),w=r(!0);p.current=e;var s=\"undefined\"!=typeof window,x=!u&&0!==u&&s;if(\"function\"!=typeof e)throw new TypeError(\"Expected a function\");u=+u||0;var h=!!(c=c||{}).leading,y=!(\"trailing\"in c)||!!c.trailing,F=\"maxWait\"in c,A=\"debounceOnServer\"in c&&!!c.debounceOnServer,D=F?Math.max(+c.maxWait||0,u):null;n(function(){return w.current=!0,function(){w.current=!1}},[]);var T=t(function(){var r=function(r){var n=m.current,t=d.current;return m.current=d.current=null,f.current=r,l.current=l.current||r,g.current=p.current.apply(t,n)},n=function(r,n){x&&cancelAnimationFrame(v.current),v.current=x?requestAnimationFrame(r):setTimeout(r,n)},t=function(r){if(!w.current)return!1;var n=r-o.current;return!o.current||n>=u||n<0||F&&r-f.current>=D},e=function(n){return v.current=null,y&&m.current?r(n):(m.current=d.current=null,g.current)},c=function r(){var c=Date.now();if(h&&l.current===f.current&&T(),t(c))return e(c);if(w.current){var i=u-(c-o.current),a=F?Math.min(i,D-(c-f.current)):i;n(r,a)}},T=function(){i&&i({})},W=function(){if(s||A){var e=Date.now(),i=t(e);if(m.current=[].slice.call(arguments),d.current=a,o.current=e,i){if(!v.current&&w.current)return f.current=o.current,n(c,u),h?r(o.current):g.current;if(F)return n(c,u),r(o.current)}return v.current||n(c,u),g.current}};return W.cancel=function(){var r=v.current;r&&(x?cancelAnimationFrame(v.current):clearTimeout(v.current)),f.current=0,m.current=o.current=d.current=v.current=null,r&&i&&i({})},W.isPending=function(){return!!v.current},W.flush=function(){return v.current?e(Date.now()):g.current},W},[h,F,u,D,y,x,s,A,i]);return T}function i(r,n){return r===n}function a(n,t,a){var o=a&&a.equalityFn||i,f=r(n),l=e({})[1],v=c(u(function(r){f.current=r,l({})},[l]),t,a,l),m=r(n);return o(m.current,n)||(v(n),m.current=n),[f.current,v]}function o(r,n,t){var e=void 0===t?{}:t,u=e.leading,i=e.trailing;return c(r,n,{maxWait:n,leading:void 0===u||u,trailing:void 0===i||i})}export{a as useDebounce,c as useDebouncedCallback,o as useThrottledCallback};\n//# sourceMappingURL=index.module.js.map\n"],"names":["InternMap","Map","constructor","entries","key","keyof","super","Object","defineProperties","this","_intern","value","_key","set","get","intern_get","has","intern_set","delete","intern_delete","valueOf","implicit","Symbol","ordinal","index","domain","range","unknown","scale","d","i","undefined","push","length","_","arguments","slice","Array","from","copy","initRange","apply","e","u","c","a","o","r","f","l","v","m","g","p","w","current","s","window","x","TypeError","h","leading","y","trailing","F","A","debounceOnServer","D","Math","max","maxWait","n","T","t","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","W","call","cancel","clearTimeout","isPending","flush"],"mappings":"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","x_google_ignoreList":[0,1,2]}
@@ -1,2 +1,2 @@
1
- import{w as n,a as t,c as o}from"./array-Z5whfZ28.js";import{v as u}from"./nivo-colors-DSqwed4A.js";function r(n){return n[0]}function e(n){return n[1]}function l(l,f){var i=o(!0),c=null,a=u,p=null,y=n(g);function g(n){var o,u,r,e=(n=t(n)).length,g=!1;for(null==c&&(p=a(r=y())),o=0;o<=e;++o)!(o<e&&i(u=n[o],o,n))===g&&((g=!g)?p.lineStart():p.lineEnd()),g&&p.point(+l(u,o,n),+f(u,o,n));if(r)return p=null,r+""||null}return l="function"==typeof l?l:void 0===l?r:o(l),f="function"==typeof f?f:void 0===f?e:o(f),g.x=function(n){return arguments.length?(l="function"==typeof n?n:o(+n),g):l},g.y=function(n){return arguments.length?(f="function"==typeof n?n:o(+n),g):f},g.defined=function(n){return arguments.length?(i="function"==typeof n?n:o(!!n),g):i},g.curve=function(n){return arguments.length?(a=n,null!=c&&(p=a(c)),g):a},g.context=function(n){return arguments.length?(null==n?c=p=null:p=a(c=n),g):c},g}export{l as P,r as x,e as y};
2
- //# sourceMappingURL=line-Dnk6WnzK.js.map
1
+ import{w as n,a as t,c as o}from"./array-B0SXO2zY.js";import{v as u}from"./nivo-colors-fVDn0-vW.js";function r(n){return n[0]}function e(n){return n[1]}function l(l,f){var i=o(!0),c=null,a=u,p=null,y=n(g);function g(n){var o,u,r,e=(n=t(n)).length,g=!1;for(null==c&&(p=a(r=y())),o=0;o<=e;++o)!(o<e&&i(u=n[o],o,n))===g&&((g=!g)?p.lineStart():p.lineEnd()),g&&p.point(+l(u,o,n),+f(u,o,n));if(r)return p=null,r+""||null}return l="function"==typeof l?l:void 0===l?r:o(l),f="function"==typeof f?f:void 0===f?e:o(f),g.x=function(n){return arguments.length?(l="function"==typeof n?n:o(+n),g):l},g.y=function(n){return arguments.length?(f="function"==typeof n?n:o(+n),g):f},g.defined=function(n){return arguments.length?(i="function"==typeof n?n:o(!!n),g):i},g.curve=function(n){return arguments.length?(a=n,null!=c&&(p=a(c)),g):a},g.context=function(n){return arguments.length?(null==n?c=p=null:p=a(c=n),g):c},g}export{l as P,r as x,e as y};
2
+ //# sourceMappingURL=line-CEBDCBhb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"line-Dnk6WnzK.js","sources":["../../../node_modules/d3-shape/src/point.js","../../../node_modules/d3-shape/src/line.js"],"sourcesContent":["export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n"],"names":["x","p","y","P","defined","constant","context","curve","curveLinear","output","path","withPath","line","data","i","d","buffer","n","array","length","defined0","lineStart","lineEnd","point","undefined","pointX","pointY","_","arguments"],"mappings":"oGAAO,SAASA,EAAEC,GAChB,OAAOA,EAAE,EACX,CAEO,SAASC,EAAED,GAChB,OAAOA,EAAE,EACX,CCAe,SAAAE,EAASH,EAAGE,GACzB,IAAIE,EAAUC,GAAS,GACnBC,EAAU,KACVC,EAAQC,EACRC,EAAS,KACTC,EAAOC,EAASC,GAKpB,SAASA,EAAKC,GACZ,IAAIC,EAEAC,EAEAC,EAHAC,GAAKJ,EAAOK,EAAML,IAAOM,OAEzBC,GAAW,EAKf,IAFe,MAAXd,IAAiBG,EAASF,EAAMS,EAASN,MAExCI,EAAI,EAAGA,GAAKG,IAAKH,IACdA,EAAIG,GAAKb,EAAQW,EAAIF,EAAKC,GAAIA,EAAGD,MAAWO,KAC5CA,GAAYA,GAAUX,EAAOY,YAC5BZ,EAAOa,WAEVF,GAAUX,EAAOc,OAAOvB,EAAEe,EAAGD,EAAGD,IAAQX,EAAEa,EAAGD,EAAGD,IAGtD,GAAIG,EAAQ,OAAOP,EAAS,KAAMO,EAAS,IAAM,IACnD,CAsBA,OA3CAhB,EAAiB,mBAANA,EAAmBA,OAAWwB,IAANxB,EAAmByB,EAASpB,EAASL,GACxEE,EAAiB,mBAANA,EAAmBA,OAAWsB,IAANtB,EAAmBwB,EAASrB,EAASH,GAsBxEU,EAAKZ,EAAI,SAAS2B,GAChB,OAAOC,UAAUT,QAAUnB,EAAiB,mBAAN2B,EAAmBA,EAAItB,GAAUsB,GAAIf,GAAQZ,CACrF,EAEAY,EAAKV,EAAI,SAASyB,GAChB,OAAOC,UAAUT,QAAUjB,EAAiB,mBAANyB,EAAmBA,EAAItB,GAAUsB,GAAIf,GAAQV,CACrF,EAEAU,EAAKR,QAAU,SAASuB,GACtB,OAAOC,UAAUT,QAAUf,EAAuB,mBAANuB,EAAmBA,EAAItB,IAAWsB,GAAIf,GAAQR,CAC5F,EAEAQ,EAAKL,MAAQ,SAASoB,GACpB,OAAOC,UAAUT,QAAUZ,EAAQoB,EAAc,MAAXrB,IAAoBG,EAASF,EAAMD,IAAWM,GAAQL,CAC9F,EAEAK,EAAKN,QAAU,SAASqB,GACtB,OAAOC,UAAUT,QAAe,MAALQ,EAAYrB,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAUqB,GAAIf,GAAQN,CACxG,EAEOM,CACT","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"line-CEBDCBhb.js","sources":["../../../node_modules/d3-shape/src/point.js","../../../node_modules/d3-shape/src/line.js"],"sourcesContent":["export function x(p) {\n return p[0];\n}\n\nexport function y(p) {\n return p[1];\n}\n","import array from \"./array.js\";\nimport constant from \"./constant.js\";\nimport curveLinear from \"./curve/linear.js\";\nimport {withPath} from \"./path.js\";\nimport {x as pointX, y as pointY} from \"./point.js\";\n\nexport default function(x, y) {\n var defined = constant(true),\n context = null,\n curve = curveLinear,\n output = null,\n path = withPath(line);\n\n x = typeof x === \"function\" ? x : (x === undefined) ? pointX : constant(x);\n y = typeof y === \"function\" ? y : (y === undefined) ? pointY : constant(y);\n\n function line(data) {\n var i,\n n = (data = array(data)).length,\n d,\n defined0 = false,\n buffer;\n\n if (context == null) output = curve(buffer = path());\n\n for (i = 0; i <= n; ++i) {\n if (!(i < n && defined(d = data[i], i, data)) === defined0) {\n if (defined0 = !defined0) output.lineStart();\n else output.lineEnd();\n }\n if (defined0) output.point(+x(d, i, data), +y(d, i, data));\n }\n\n if (buffer) return output = null, buffer + \"\" || null;\n }\n\n line.x = function(_) {\n return arguments.length ? (x = typeof _ === \"function\" ? _ : constant(+_), line) : x;\n };\n\n line.y = function(_) {\n return arguments.length ? (y = typeof _ === \"function\" ? _ : constant(+_), line) : y;\n };\n\n line.defined = function(_) {\n return arguments.length ? (defined = typeof _ === \"function\" ? _ : constant(!!_), line) : defined;\n };\n\n line.curve = function(_) {\n return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;\n };\n\n line.context = function(_) {\n return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;\n };\n\n return line;\n}\n"],"names":["x","p","y","P","defined","constant","context","curve","curveLinear","output","path","withPath","line","data","i","d","buffer","n","array","length","defined0","lineStart","lineEnd","point","undefined","pointX","pointY","_","arguments"],"mappings":"oGAAO,SAASA,EAAEC,GAChB,OAAOA,EAAE,EACX,CAEO,SAASC,EAAED,GAChB,OAAOA,EAAE,EACX,CCAe,SAAAE,EAASH,EAAGE,GACzB,IAAIE,EAAUC,GAAS,GACnBC,EAAU,KACVC,EAAQC,EACRC,EAAS,KACTC,EAAOC,EAASC,GAKpB,SAASA,EAAKC,GACZ,IAAIC,EAEAC,EAEAC,EAHAC,GAAKJ,EAAOK,EAAML,IAAOM,OAEzBC,GAAW,EAKf,IAFe,MAAXd,IAAiBG,EAASF,EAAMS,EAASN,MAExCI,EAAI,EAAGA,GAAKG,IAAKH,IACdA,EAAIG,GAAKb,EAAQW,EAAIF,EAAKC,GAAIA,EAAGD,MAAWO,KAC5CA,GAAYA,GAAUX,EAAOY,YAC5BZ,EAAOa,WAEVF,GAAUX,EAAOc,OAAOvB,EAAEe,EAAGD,EAAGD,IAAQX,EAAEa,EAAGD,EAAGD,IAGtD,GAAIG,EAAQ,OAAOP,EAAS,KAAMO,EAAS,IAAM,IACnD,CAsBA,OA3CAhB,EAAiB,mBAANA,EAAmBA,OAAWwB,IAANxB,EAAmByB,EAASpB,EAASL,GACxEE,EAAiB,mBAANA,EAAmBA,OAAWsB,IAANtB,EAAmBwB,EAASrB,EAASH,GAsBxEU,EAAKZ,EAAI,SAAS2B,GAChB,OAAOC,UAAUT,QAAUnB,EAAiB,mBAAN2B,EAAmBA,EAAItB,GAAUsB,GAAIf,GAAQZ,CACrF,EAEAY,EAAKV,EAAI,SAASyB,GAChB,OAAOC,UAAUT,QAAUjB,EAAiB,mBAANyB,EAAmBA,EAAItB,GAAUsB,GAAIf,GAAQV,CACrF,EAEAU,EAAKR,QAAU,SAASuB,GACtB,OAAOC,UAAUT,QAAUf,EAAuB,mBAANuB,EAAmBA,EAAItB,IAAWsB,GAAIf,GAAQR,CAC5F,EAEAQ,EAAKL,MAAQ,SAASoB,GACpB,OAAOC,UAAUT,QAAUZ,EAAQoB,EAAc,MAAXrB,IAAoBG,EAASF,EAAMD,IAAWM,GAAQL,CAC9F,EAEAK,EAAKN,QAAU,SAASqB,GACtB,OAAOC,UAAUT,QAAe,MAALQ,EAAYrB,EAAUG,EAAS,KAAOA,EAASF,EAAMD,EAAUqB,GAAIf,GAAQN,CACxG,EAEOM,CACT","x_google_ignoreList":[0,1]}
@@ -1,2 +1,2 @@
1
1
  function t(t,n,r){t.prototype=n.prototype=r,r.constructor=t}function n(t,n){var r=Object.create(t.prototype);for(var e in n)r[e]=n[e];return r}function r(){}var e=.7,i=1/e,a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s=/^#([0-9a-f]{3,8})$/,l=new RegExp(`^rgb\\(${a},${a},${a}\\)$`),c=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),h=new RegExp(`^rgba\\(${a},${a},${a},${o}\\)$`),f=new RegExp(`^rgba\\(${u},${u},${u},${o}\\)$`),g=new RegExp(`^hsl\\(${o},${u},${u}\\)$`),d=new RegExp(`^hsla\\(${o},${u},${u},${o}\\)$`),p={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(){return this.rgb().formatHex()}function y(){return this.rgb().formatRgb()}function b(t){var n,r;return t=(t+"").trim().toLowerCase(),(n=s.exec(t))?(r=n[1].length,n=parseInt(n[1],16),6===r?w(n):3===r?new N(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===r?v(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===r?v(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=l.exec(t))?new N(n[1],n[2],n[3],1):(n=c.exec(t))?new N(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=h.exec(t))?v(n[1],n[2],n[3],n[4]):(n=f.exec(t))?v(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=g.exec(t))?q(n[1],n[2]/100,n[3]/100,1):(n=d.exec(t))?q(n[1],n[2]/100,n[3]/100,n[4]):p.hasOwnProperty(t)?w(p[t]):"transparent"===t?new N(NaN,NaN,NaN,0):null}function w(t){return new N(t>>16&255,t>>8&255,255&t,1)}function v(t,n,r,e){return e<=0&&(t=n=r=NaN),new N(t,n,r,e)}function M(t){return t instanceof r||(t=b(t)),t?new N((t=t.rgb()).r,t.g,t.b,t.opacity):new N}function x(t,n,r,e){return 1===arguments.length?M(t):new N(t,n,r,null==e?1:e)}function N(t,n,r,e){this.r=+t,this.g=+n,this.b=+r,this.opacity=+e}function k(){return`#${j(this.r)}${j(this.g)}${j(this.b)}`}function $(){const t=A(this.opacity);return`${1===t?"rgb(":"rgba("}${E(this.r)}, ${E(this.g)}, ${E(this.b)}${1===t?")":`, ${t})`}`}function A(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function E(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function j(t){return((t=E(t))<16?"0":"")+t.toString(16)}function q(t,n,r,e){return e<=0?t=n=r=NaN:r<=0||r>=1?t=n=NaN:n<=0&&(t=NaN),new R(t,n,r,e)}function S(t){if(t instanceof R)return new R(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=b(t)),!t)return new R;if(t instanceof R)return t;var n=(t=t.rgb()).r/255,e=t.g/255,i=t.b/255,a=Math.min(n,e,i),o=Math.max(n,e,i),u=NaN,s=o-a,l=(o+a)/2;return s?(u=n===o?(e-i)/s+6*(e<i):e===o?(i-n)/s+2:(n-e)/s+4,s/=l<.5?o+a:2-o-a,u*=60):s=l>0&&l<1?0:u,new R(u,s,l,t.opacity)}function R(t,n,r,e){this.h=+t,this.s=+n,this.l=+r,this.opacity=+e}function z(t){return(t=(t||0)%360)<0?t+360:t}function H(t){return Math.max(0,Math.min(1,t||0))}function C(t,n,r){return 255*(t<60?n+(r-n)*t/60:t<180?r:t<240?n+(r-n)*(240-t)/60:n)}t(r,b,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:m,formatHex:m,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return S(this).formatHsl()},formatRgb:y,toString:y}),t(N,x,n(r,{brighter(t){return t=null==t?i:Math.pow(i,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?e:Math.pow(e,t),new N(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new N(E(this.r),E(this.g),E(this.b),A(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:k,formatHex:k,formatHex8:function(){return`#${j(this.r)}${j(this.g)}${j(this.b)}${j(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$,toString:$})),t(R,(function(t,n,r,e){return 1===arguments.length?S(t):new R(t,n,r,null==e?1:e)}),n(r,{brighter(t){return t=null==t?i:Math.pow(i,t),new R(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?e:Math.pow(e,t),new R(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,e=r+(r<.5?r:1-r)*n,i=2*r-e;return new N(C(t>=240?t-240:t+120,i,e),C(t,i,e),C(t<120?t+240:t-120,i,e),this.opacity)},clamp(){return new R(z(this.h),H(this.s),H(this.l),A(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=A(this.opacity);return`${1===t?"hsl(":"hsla("}${z(this.h)}, ${100*H(this.s)}%, ${100*H(this.l)}%${1===t?")":`, ${t})`}`}}));var O=t=>()=>t;function P(t,n){return function(r){return t+r*n}}function D(t,n){var r=n-t;return r?P(t,r>180||r<-180?r-360*Math.round(r/360):r):O(isNaN(t)?n:t)}function I(t){return 1==(t=+t)?F:function(n,r){return r-n?function(t,n,r){return t=Math.pow(t,r),n=Math.pow(n,r)-t,r=1/r,function(e){return Math.pow(t+e*n,r)}}(n,r,t):O(isNaN(n)?r:n)}}function F(t,n){var r=n-t;return r?P(t,r):O(isNaN(t)?n:t)}var L=function t(n){var r=I(n);function e(t,n){var e=r((t=x(t)).r,(n=x(n)).r),i=r(t.g,n.g),a=r(t.b,n.b),o=F(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=i(n),t.b=a(n),t.opacity=o(n),t+""}}return e.gamma=t,e}(1);var B,T=(B=function(t){var n=t.length-1;return function(r){var e=r<=0?r=0:r>=1?(r=1,n-1):Math.floor(r*n),i=t[e],a=t[e+1],o=e>0?t[e-1]:2*i-a,u=e<n-1?t[e+2]:2*a-i;return function(t,n,r,e,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*n+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*e+o*i)/6}((r-e/n)*n,o,i,a,u)}},function(t){var n,r,e=t.length,i=new Array(e),a=new Array(e),o=new Array(e);for(n=0;n<e;++n)r=x(t[n]),i[n]=r.r||0,a[n]=r.g||0,o[n]=r.b||0;return i=B(i),a=B(a),o=B(o),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=o(t),r+""}});function V(t,n){n||(n=[]);var r,e=t?Math.min(n.length,t.length):0,i=n.slice();return function(a){for(r=0;r<e;++r)i[r]=t[r]*(1-a)+n[r]*a;return i}}function X(t,n){var r,e=n?n.length:0,i=t?Math.min(e,t.length):0,a=new Array(i),o=new Array(e);for(r=0;r<i;++r)a[r]=Q(t[r],n[r]);for(;r<e;++r)o[r]=n[r];return function(t){for(r=0;r<i;++r)o[r]=a[r](t);return o}}function G(t,n){var r=new Date;return t=+t,n=+n,function(e){return r.setTime(t*(1-e)+n*e),r}}function U(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function Y(t,n){var r,e={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)r in t?e[r]=Q(t[r],n[r]):i[r]=n[r];return function(t){for(r in e)i[r]=e[r](t);return i}}var Z=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,J=new RegExp(Z.source,"g");function K(t,n){var r,e,i,a=Z.lastIndex=J.lastIndex=0,o=-1,u=[],s=[];for(t+="",n+="";(r=Z.exec(t))&&(e=J.exec(n));)(i=e.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(r=r[0])===(e=e[0])?u[o]?u[o]+=e:u[++o]=e:(u[++o]=null,s.push({i:o,x:U(r,e)})),a=J.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var r,e=0;e<n;++e)u[(r=s[e]).i]=r.x(t);return u.join("")})}function Q(t,n){var r,e,i=typeof n;return null==n||"boolean"===i?O(n):("number"===i?U:"string"===i?(r=b(n))?(n=r,L):K:n instanceof b?L:n instanceof Date?G:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?X:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Y:U:V))(t,n)}function W(t,n){return t=+t,n=+n,function(r){return Math.round(t*(1-r)+n*r)}}function _(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function tt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function nt(t){let n,r,e;function i(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<0?i=n+1:a=n}while(i<a)}return i}return 2!==t.length?(n=_,r=(n,r)=>_(t(n),r),e=(n,r)=>t(n)-r):(n=t===_||t===tt?t:rt,r=t,e=t),{left:i,center:function(t,n,r=0,a=t.length){const o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i=0,a=t.length){if(i<a){if(0!==n(e,e))return a;do{const n=i+a>>>1;r(t[n],e)<=0?i=n+1:a=n}while(i<a)}return i}}}function rt(){return 0}const et=nt(_).right;nt((function(t){return null===t?NaN:+t})).center;const it=Math.sqrt(50),at=Math.sqrt(10),ot=Math.sqrt(2);function ut(t,n,r){const e=(n-t)/Math.max(0,r),i=Math.floor(Math.log10(e)),a=e/Math.pow(10,i),o=a>=it?10:a>=at?5:a>=ot?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(t*l),s=Math.round(n*l),u/l<t&&++u,s/l>n&&--s,l=-l):(l=Math.pow(10,i)*o,u=Math.round(t/l),s=Math.round(n/l),u*l<t&&++u,s*l>n&&--s),s<u&&.5<=r&&r<2?ut(t,n,2*r):[u,s,l]}function st(t,n,r){if(!((r=+r)>0))return[];if((t=+t)===(n=+n))return[t];const e=n<t,[i,a,o]=e?ut(n,t,r):ut(t,n,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(e)if(o<0)for(let t=0;t<u;++t)s[t]=(a-t)/-o;else for(let t=0;t<u;++t)s[t]=(a-t)*o;else if(o<0)for(let t=0;t<u;++t)s[t]=(i+t)/-o;else for(let t=0;t<u;++t)s[t]=(i+t)*o;return s}function lt(t,n,r){return ut(t=+t,n=+n,r=+r)[2]}function ct(t,n,r){r=+r;const e=(n=+n)<(t=+t),i=e?lt(n,t,r):lt(t,n,r);return(e?-1:1)*(i<0?1/-i:i)}function ht(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function ft(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}function gt(t){return+t}var dt=[0,1];function pt(t){return t}function mt(t,n){return(n-=t=+t)?function(r){return(r-t)/n}:(r=isNaN(n)?NaN:.5,function(){return r});var r}function yt(t,n,r){var e=t[0],i=t[1],a=n[0],o=n[1];return i<e?(e=mt(i,e),a=r(o,a)):(e=mt(e,i),a=r(a,o)),function(t){return a(e(t))}}function bt(t,n,r){var e=Math.min(t.length,n.length)-1,i=new Array(e),a=new Array(e),o=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<e;)i[o]=mt(t[o],t[o+1]),a[o]=r(n[o],n[o+1]);return function(n){var r=et(t,n,1,e)-1;return a[r](i[r](n))}}function wt(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function vt(){var t,n,r,e,i,a,o=dt,u=dt,s=Q,l=pt;function c(){var t,n,r,s=Math.min(o.length,u.length);return l!==pt&&(t=o[0],n=o[s-1],t>n&&(r=t,t=n,n=r),l=function(r){return Math.max(t,Math.min(n,r))}),e=s>2?bt:yt,i=a=null,h}function h(n){return null==n||isNaN(n=+n)?r:(i||(i=e(o.map(t),u,s)))(t(l(n)))}return h.invert=function(r){return l(n((a||(a=e(u,o.map(t),U)))(r)))},h.domain=function(t){return arguments.length?(o=Array.from(t,gt),c()):o.slice()},h.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},h.rangeRound=function(t){return u=Array.from(t),s=W,c()},h.clamp=function(t){return arguments.length?(l=!!t||pt,c()):l!==pt},h.interpolate=function(t){return arguments.length?(s=t,c()):s},h.unknown=function(t){return arguments.length?(r=t,h):r},function(r,e){return t=r,n=e,c()}}function Mt(){return vt()(pt,pt)}function xt(t,n){if((r=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var r,e=t.slice(0,r);return[e.length>1?e[0]+e.slice(2):e,+t.slice(r+1)]}function Nt(t){return(t=xt(Math.abs(t)))?t[1]:NaN}var kt,$t=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function At(t){if(!(n=$t.exec(t)))throw new Error("invalid format: "+t);var n;return new Et({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function Et(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function jt(t,n){var r=xt(t,n);if(!r)return t+"";var e=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+e:e.length>i+1?e.slice(0,i+1)+"."+e.slice(i+1):e+new Array(i-e.length+2).join("0")}At.prototype=Et.prototype,Et.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var qt={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>jt(100*t,n),r:jt,s:function(t,n){var r=xt(t,n);if(!r)return t+"";var e=r[0],i=r[1],a=i-(kt=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=e.length;return a===o?e:a>o?e+new Array(a-o+1).join("0"):a>0?e.slice(0,a)+"."+e.slice(a):"0."+new Array(1-a).join("0")+xt(t,Math.max(0,n+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function St(t){return t}var Rt,zt,Ht,Ct=Array.prototype.map,Ot=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Pt(t){var n,r,e=void 0===t.grouping||void 0===t.thousands?St:(n=Ct.call(t.grouping,Number),r=t.thousands+"",function(t,e){for(var i=t.length,a=[],o=0,u=n[0],s=0;i>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>e));)u=n[o=(o+1)%n.length];return a.reverse().join(r)}),i=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",o=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?St:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Ct.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=At(t)).fill,r=t.align,h=t.sign,f=t.symbol,g=t.zero,d=t.width,p=t.comma,m=t.precision,y=t.trim,b=t.type;"n"===b?(p=!0,b="g"):qt[b]||(void 0===m&&(m=12),y=!0,b="g"),(g||"0"===n&&"="===r)&&(g=!0,n="0",r="=");var w="$"===f?i:"#"===f&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",v="$"===f?a:/[%p]/.test(b)?s:"",M=qt[b],x=/[defgprs%]/.test(b);function N(t){var i,a,s,f=w,N=v;if("c"===b)N=M(t)+N,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:M(Math.abs(t),m),y&&(t=function(t){t:for(var n,r=t.length,e=1,i=-1;e<r;++e)switch(t[e]){case".":i=n=e;break;case"0":0===i&&(i=e),n=e;break;default:if(!+t[e])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==h&&(k=!1),f=(k?"("===h?h:l:"-"===h||"("===h?"":h)+f,N=("s"===b?Ot[8+kt/3]:"")+N+(k&&"("===h?")":""),x)for(i=-1,a=t.length;++i<a;)if(48>(s=t.charCodeAt(i))||s>57){N=(46===s?o+t.slice(i+1):t.slice(i))+N,t=t.slice(0,i);break}}p&&!g&&(t=e(t,1/0));var $=f.length+t.length+N.length,A=$<d?new Array(d-$+1).join(n):"";switch(p&&g&&(t=e(A+t,A.length?d-N.length:1/0),A=""),r){case"<":t=f+t+N+A;break;case"=":t=f+A+t+N;break;case"^":t=A.slice(0,$=A.length>>1)+f+t+N+A.slice($);break;default:t=A+f+t+N}return u(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),N.toString=function(){return t+""},N}return{format:h,formatPrefix:function(t,n){var r=h(((t=At(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Nt(n)/3))),i=Math.pow(10,-e),a=Ot[8+e/3];return function(t){return r(i*t)+a}}}}function Dt(t,n,r,e){var i,a=ct(t,n,r);switch((e=At(null==e?",f":e)).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nt(n)/3)))-Nt(Math.abs(t)))}(a,o))||(e.precision=i),Ht(e,o);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Nt(n)-Nt(t))+1}(a,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=i-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(i=function(t){return Math.max(0,-Nt(Math.abs(t)))}(a))||(e.precision=i-2*("%"===e.type))}return zt(e)}function It(t){var n=t.domain;return t.ticks=function(t){var r=n();return st(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var e=n();return Dt(e[0],e[e.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var e,i,a=n(),o=0,u=a.length-1,s=a[o],l=a[u],c=10;for(l<s&&(i=s,s=l,l=i,i=o,o=u,u=i);c-- >0;){if((i=lt(s,l,r))===e)return a[o]=s,a[u]=l,n(a);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}e=i}return t},t}function Ft(){var t=Mt();return t.copy=function(){return wt(t,Ft())},ht.apply(t,arguments),It(t)}Rt=Pt({thousands:",",grouping:[3],currency:["$",""]}),zt=Rt.format,Ht=Rt.formatPrefix;export{pt as A,ft as B,r as C,T as D,x as E,N as R,ht as a,nt as b,Mt as c,wt as d,vt as e,st as f,At as g,zt as h,L as i,It as j,U as k,Ft as l,b as m,K as n,Q as o,_ as p,t as q,M as r,n as s,ct as t,e as u,W as v,i as w,F as x,D as y,et as z};
2
- //# sourceMappingURL=linear-CZyKfBBG.js.map
2
+ //# sourceMappingURL=linear-C7uKb8Tk.js.map