@lotte-innovate/ui-component-test 0.1.92 → 0.1.93

Sign up to get free protection for your applications and to get access to all the features.
Files changed (610) hide show
  1. package/dist/globals.css +2 -2
  2. package/dist/lib/Typography/Header/index.mjs +1 -1
  3. package/dist/lib/Typography/Header/index.mjs.map +1 -1
  4. package/dist/lib/Typography/Text/index.mjs +1 -1
  5. package/dist/lib/Typography/Text/index.mjs.map +1 -1
  6. package/dist/lib/components/Accordion/index.mjs +1 -1
  7. package/dist/lib/components/Accordion/index.mjs.map +1 -1
  8. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
  9. package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
  10. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
  11. package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
  12. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
  13. package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
  14. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
  15. package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
  16. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs +1 -1
  17. package/dist/lib/components/AlertDialog/AlertDialogRoot.mjs.map +1 -1
  18. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
  19. package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
  20. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
  21. package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
  22. package/dist/lib/components/AlertDialog/index.d.ts +0 -1
  23. package/dist/lib/components/AspectRatio/index.mjs +1 -1
  24. package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
  25. package/dist/lib/components/Avatar/index.mjs +1 -1
  26. package/dist/lib/components/Avatar/index.mjs.map +1 -1
  27. package/dist/lib/components/Badge/index.mjs +1 -1
  28. package/dist/lib/components/Badge/index.mjs.map +1 -1
  29. package/dist/lib/components/BarChart/index.mjs +1 -1
  30. package/dist/lib/components/BarChart/index.mjs.map +1 -1
  31. package/dist/lib/components/BubbleChart/index.mjs +1 -1
  32. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  33. package/dist/lib/components/Button/index.mjs +1 -1
  34. package/dist/lib/components/Button/index.mjs.map +1 -1
  35. package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
  36. package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
  37. package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
  38. package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
  39. package/dist/lib/components/Callout/CalloutText.mjs +1 -1
  40. package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
  41. package/dist/lib/components/Callout/index.d.ts +0 -1
  42. package/dist/lib/components/Card/index.mjs +1 -1
  43. package/dist/lib/components/Card/index.mjs.map +1 -1
  44. package/dist/lib/components/Checkbox/index.mjs +1 -1
  45. package/dist/lib/components/Checkbox/index.mjs.map +1 -1
  46. package/dist/lib/components/CheckboxCard/index.mjs +1 -1
  47. package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
  48. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs +1 -1
  49. package/dist/lib/components/CheckboxGroup/CheckboxGroupItem.mjs.map +1 -1
  50. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
  51. package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
  52. package/dist/lib/components/CheckboxGroup/index.d.ts +1 -2
  53. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs +1 -1
  54. package/dist/lib/components/ContextMenu/ContextMenuCheckboxItem.mjs.map +1 -1
  55. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
  56. package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
  57. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs +1 -1
  58. package/dist/lib/components/ContextMenu/ContextMenuGroup.mjs.map +1 -1
  59. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
  60. package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
  61. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
  62. package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
  63. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
  64. package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
  65. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs +1 -1
  66. package/dist/lib/components/ContextMenu/ContextMenuRadioGroup.mjs.map +1 -1
  67. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs +1 -1
  68. package/dist/lib/components/ContextMenu/ContextMenuRadioItem.mjs.map +1 -1
  69. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs +1 -1
  70. package/dist/lib/components/ContextMenu/ContextMenuRoot.mjs.map +1 -1
  71. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs +1 -1
  72. package/dist/lib/components/ContextMenu/ContextMenuSeparator.mjs.map +1 -1
  73. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
  74. package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
  75. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs +1 -1
  76. package/dist/lib/components/ContextMenu/ContextMenuSubTrigger.mjs.map +1 -1
  77. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs +1 -1
  78. package/dist/lib/components/ContextMenu/ContextMenuTrigger.mjs.map +1 -1
  79. package/dist/lib/components/ContextMenu/index.d.ts +0 -1
  80. package/dist/lib/components/DataList/DataListItem.mjs +1 -1
  81. package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
  82. package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
  83. package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
  84. package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
  85. package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
  86. package/dist/lib/components/DataList/DataListValue.mjs +1 -1
  87. package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
  88. package/dist/lib/components/DataList/index.d.ts +0 -1
  89. package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
  90. package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
  91. package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
  92. package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
  93. package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
  94. package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
  95. package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
  96. package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
  97. package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
  98. package/dist/lib/components/Dialog/DialogRoot.mjs.map +1 -1
  99. package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
  100. package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
  101. package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
  102. package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
  103. package/dist/lib/components/Dialog/DialogTrigger.mjs +1 -1
  104. package/dist/lib/components/Dialog/DialogTrigger.mjs.map +1 -1
  105. package/dist/lib/components/Dialog/index.d.ts +1 -2
  106. package/dist/lib/components/DoughnutChart/index.mjs +1 -1
  107. package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
  108. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs +1 -1
  109. package/dist/lib/components/DropdownMenu/DropdonMenuRadioGroup.mjs.map +1 -1
  110. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
  111. package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
  112. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs +1 -1
  113. package/dist/lib/components/DropdownMenu/DropdownMenuCheckboxItem.mjs.map +1 -1
  114. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
  115. package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
  116. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
  117. package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
  118. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
  119. package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
  120. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
  121. package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
  122. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs +1 -1
  123. package/dist/lib/components/DropdownMenu/DropdownMenuRadioItem.mjs.map +1 -1
  124. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs +1 -1
  125. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.mjs.map +1 -1
  126. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs +1 -1
  127. package/dist/lib/components/DropdownMenu/DropdownMenuSeparator.mjs.map +1 -1
  128. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs +1 -1
  129. package/dist/lib/components/DropdownMenu/DropdownMenuSub.mjs.map +1 -1
  130. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs +1 -1
  131. package/dist/lib/components/DropdownMenu/DropdownMenuSubTrigger.mjs.map +1 -1
  132. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
  133. package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
  134. package/dist/lib/components/DropdownMenu/index.d.ts +1 -2
  135. package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
  136. package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
  137. package/dist/lib/components/HoverCard/HoverCardRoot.mjs +1 -1
  138. package/dist/lib/components/HoverCard/HoverCardRoot.mjs.map +1 -1
  139. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs +1 -1
  140. package/dist/lib/components/HoverCard/HoverCardTrigger.mjs.map +1 -1
  141. package/dist/lib/components/HoverCard/index.d.ts +1 -2
  142. package/dist/lib/components/IconButton/index.mjs +1 -1
  143. package/dist/lib/components/IconButton/index.mjs.map +1 -1
  144. package/dist/lib/components/Inset/index.mjs +1 -1
  145. package/dist/lib/components/Inset/index.mjs.map +1 -1
  146. package/dist/lib/components/Label/index.mjs +1 -1
  147. package/dist/lib/components/Label/index.mjs.map +1 -1
  148. package/dist/lib/components/LineChart/index.mjs +1 -1
  149. package/dist/lib/components/LineChart/index.mjs.map +1 -1
  150. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs +1 -1
  151. package/dist/lib/components/Menubar/MenubarCheckboxItem.mjs.map +1 -1
  152. package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
  153. package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
  154. package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
  155. package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
  156. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
  157. package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
  158. package/dist/lib/components/Menubar/MenubarMenu.mjs +1 -1
  159. package/dist/lib/components/Menubar/MenubarMenu.mjs.map +1 -1
  160. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs +1 -1
  161. package/dist/lib/components/Menubar/MenubarRadioGroup.mjs.map +1 -1
  162. package/dist/lib/components/Menubar/MenubarRadioItem.mjs +1 -1
  163. package/dist/lib/components/Menubar/MenubarRadioItem.mjs.map +1 -1
  164. package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
  165. package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
  166. package/dist/lib/components/Menubar/MenubarSeparator.mjs +1 -1
  167. package/dist/lib/components/Menubar/MenubarSeparator.mjs.map +1 -1
  168. package/dist/lib/components/Menubar/MenubarSub.mjs +1 -1
  169. package/dist/lib/components/Menubar/MenubarSub.mjs.map +1 -1
  170. package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
  171. package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
  172. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs +1 -1
  173. package/dist/lib/components/Menubar/MenubarSubTrigger.mjs.map +1 -1
  174. package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
  175. package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
  176. package/dist/lib/components/Menubar/index.d.ts +0 -1
  177. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
  178. package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
  179. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs +1 -1
  180. package/dist/lib/components/NavigationMenu/NavigationMenuIndicator.mjs.map +1 -1
  181. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs +1 -1
  182. package/dist/lib/components/NavigationMenu/NavigationMenuItem.mjs.map +1 -1
  183. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
  184. package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
  185. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
  186. package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
  187. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs +1 -1
  188. package/dist/lib/components/NavigationMenu/NavigationMenuRoot.mjs.map +1 -1
  189. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
  190. package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
  191. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
  192. package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
  193. package/dist/lib/components/NavigationMenu/index.d.ts +0 -1
  194. package/dist/lib/components/PieChart/index.mjs +1 -1
  195. package/dist/lib/components/PieChart/index.mjs.map +1 -1
  196. package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
  197. package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
  198. package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
  199. package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
  200. package/dist/lib/components/Popover/PopoverRoot.mjs +1 -1
  201. package/dist/lib/components/Popover/PopoverRoot.mjs.map +1 -1
  202. package/dist/lib/components/Popover/PopoverTrigger.mjs +1 -1
  203. package/dist/lib/components/Popover/PopoverTrigger.mjs.map +1 -1
  204. package/dist/lib/components/Popover/index.d.ts +1 -2
  205. package/dist/lib/components/Progress/index.mjs +1 -1
  206. package/dist/lib/components/Progress/index.mjs.map +1 -1
  207. package/dist/lib/components/RadarChart/index.mjs +1 -1
  208. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  209. package/dist/lib/components/Radio/index.mjs +1 -1
  210. package/dist/lib/components/Radio/index.mjs.map +1 -1
  211. package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
  212. package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
  213. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
  214. package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
  215. package/dist/lib/components/RadioCards/index.d.ts +0 -1
  216. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
  217. package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
  218. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
  219. package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
  220. package/dist/lib/components/RadioGroup/index.d.ts +0 -1
  221. package/dist/lib/components/ScrollArea/index.mjs +1 -1
  222. package/dist/lib/components/ScrollArea/index.mjs.map +1 -1
  223. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs +1 -1
  224. package/dist/lib/components/SegmentedControl/SegmentedControlItem.mjs.map +1 -1
  225. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
  226. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
  227. package/dist/lib/components/SegmentedControl/index.d.ts +1 -2
  228. package/dist/lib/components/Select/index.mjs +1 -1
  229. package/dist/lib/components/Select/index.mjs.map +1 -1
  230. package/dist/lib/components/Separator/index.mjs +1 -1
  231. package/dist/lib/components/Separator/index.mjs.map +1 -1
  232. package/dist/lib/components/Skeleton/index.mjs +1 -1
  233. package/dist/lib/components/Skeleton/index.mjs.map +1 -1
  234. package/dist/lib/components/Slider/index.mjs +1 -1
  235. package/dist/lib/components/Slider/index.mjs.map +1 -1
  236. package/dist/lib/components/Spinner/index.mjs +1 -1
  237. package/dist/lib/components/Spinner/index.mjs.map +1 -1
  238. package/dist/lib/components/TabNav/index.mjs +1 -1
  239. package/dist/lib/components/TabNav/index.mjs.map +1 -1
  240. package/dist/lib/components/Table/index.mjs +1 -1
  241. package/dist/lib/components/Table/index.mjs.map +1 -1
  242. package/dist/lib/components/Tabs/index.mjs +1 -1
  243. package/dist/lib/components/Tabs/index.mjs.map +1 -1
  244. package/dist/lib/components/TextArea/index.mjs +1 -1
  245. package/dist/lib/components/TextArea/index.mjs.map +1 -1
  246. package/dist/lib/components/TextField/index.mjs +1 -1
  247. package/dist/lib/components/TextField/index.mjs.map +1 -1
  248. package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
  249. package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
  250. package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
  251. package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
  252. package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
  253. package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
  254. package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
  255. package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
  256. package/dist/lib/components/Toast/index.d.ts +0 -1
  257. package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
  258. package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
  259. package/dist/lib/components/Toggle/index.mjs +1 -1
  260. package/dist/lib/components/Toggle/index.mjs.map +1 -1
  261. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
  262. package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
  263. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
  264. package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
  265. package/dist/lib/components/ToggleGroup/index.d.ts +0 -1
  266. package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
  267. package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
  268. package/dist/lib/components/Tooltip/index.mjs +1 -1
  269. package/dist/lib/components/Tooltip/index.mjs.map +1 -1
  270. package/dist/lib/constants.d.ts +2 -2
  271. package/dist/node_modules/@radix-ui/number/dist/index.mjs +2 -0
  272. package/dist/node_modules/@radix-ui/number/dist/index.mjs.map +1 -0
  273. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs +2 -0
  274. package/dist/node_modules/@radix-ui/primitive/dist/index.mjs.map +1 -0
  275. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs +2 -0
  276. package/dist/node_modules/@radix-ui/react-accordion/dist/index.mjs.map +1 -0
  277. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs +2 -0
  278. package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs.map +1 -0
  279. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  280. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  281. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
  282. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
  283. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  284. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  285. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  286. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  287. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  288. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  289. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  290. package/dist/node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  291. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs +2 -0
  292. package/dist/node_modules/@radix-ui/react-arrow/dist/index.mjs.map +1 -0
  293. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs +2 -0
  294. package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs.map +1 -0
  295. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs +2 -0
  296. package/dist/node_modules/@radix-ui/react-avatar/dist/index.mjs.map +1 -0
  297. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  298. package/dist/node_modules/@radix-ui/react-avatar/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  299. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
  300. package/dist/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
  301. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs +2 -0
  302. package/dist/node_modules/@radix-ui/react-collapsible/dist/index.mjs.map +1 -0
  303. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs +2 -0
  304. package/dist/node_modules/@radix-ui/react-collection/dist/index.mjs.map +1 -0
  305. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  306. package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  307. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs +2 -0
  308. package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.mjs.map +1 -0
  309. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  310. package/dist/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  311. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs +2 -0
  312. package/dist/node_modules/@radix-ui/react-context-menu/dist/index.mjs.map +1 -0
  313. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  314. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  315. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  316. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  317. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  318. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  319. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
  320. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
  321. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  322. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  323. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  324. package/dist/node_modules/@radix-ui/react-context-menu/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  325. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs +2 -0
  326. package/dist/node_modules/@radix-ui/react-direction/dist/index.mjs.map +1 -0
  327. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  328. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  329. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs +2 -0
  330. package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs.map +1 -0
  331. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  332. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  333. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs +2 -0
  334. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.mjs.map +1 -0
  335. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs +2 -0
  336. package/dist/node_modules/@radix-ui/react-icons/dist/react-icons.esm.mjs.map +1 -0
  337. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs +2 -0
  338. package/dist/node_modules/@radix-ui/react-id/dist/index.mjs.map +1 -0
  339. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs +2 -0
  340. package/dist/node_modules/@radix-ui/react-label/dist/index.mjs.map +1 -0
  341. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +2 -0
  342. package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -0
  343. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs +2 -0
  344. package/dist/node_modules/@radix-ui/react-menubar/dist/index.mjs.map +1 -0
  345. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
  346. package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
  347. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs +2 -0
  348. package/dist/node_modules/@radix-ui/react-popper/dist/index.mjs.map +1 -0
  349. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  350. package/dist/node_modules/@radix-ui/react-popper/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  351. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  352. package/dist/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  353. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  354. package/dist/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  355. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs +2 -0
  356. package/dist/node_modules/@radix-ui/react-primitive/dist/index.mjs.map +1 -0
  357. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs +2 -0
  358. package/dist/node_modules/@radix-ui/react-progress/dist/index.mjs.map +1 -0
  359. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  360. package/dist/node_modules/@radix-ui/react-progress/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  361. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs +2 -0
  362. package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.mjs.map +1 -0
  363. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  364. package/dist/node_modules/@radix-ui/react-roving-focus/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  365. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs +2 -0
  366. package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.mjs.map +1 -0
  367. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  368. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  369. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  370. package/dist/node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  371. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs +2 -0
  372. package/dist/node_modules/@radix-ui/react-slot/dist/index.mjs.map +1 -0
  373. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs +2 -0
  374. package/dist/node_modules/@radix-ui/react-toast/dist/index.mjs.map +1 -0
  375. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs +2 -0
  376. package/dist/node_modules/@radix-ui/react-toggle/dist/index.mjs.map +1 -0
  377. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs +2 -0
  378. package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.mjs.map +1 -0
  379. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  380. package/dist/node_modules/@radix-ui/react-toggle-group/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  381. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
  382. package/dist/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
  383. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs +2 -0
  384. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs.map +1 -0
  385. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs +2 -0
  386. package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.mjs.map +1 -0
  387. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs +2 -0
  388. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs.map +1 -0
  389. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs +2 -0
  390. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs.map +1 -0
  391. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs +2 -0
  392. package/dist/node_modules/@radix-ui/react-use-previous/dist/index.mjs.map +1 -0
  393. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs +2 -0
  394. package/dist/node_modules/@radix-ui/react-use-size/dist/index.mjs.map +1 -0
  395. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs +2 -0
  396. package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs.map +1 -0
  397. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs +2 -0
  398. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-checkbox.props.mjs.map +1 -0
  399. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs +2 -0
  400. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-radio.props.mjs.map +1 -0
  401. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs +2 -0
  402. package/dist/node_modules/@radix-ui/themes/dist/esm/components/base-tab-list.props.mjs.map +1 -0
  403. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +2 -0
  404. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -0
  405. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs +2 -0
  406. package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.props.mjs.map +1 -0
  407. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +2 -0
  408. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -0
  409. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs +2 -0
  410. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.primitive.mjs.map +1 -0
  411. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs +2 -0
  412. package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.props.mjs.map +1 -0
  413. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +2 -0
  414. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -0
  415. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs +2 -0
  416. package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.props.mjs.map +1 -0
  417. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +2 -0
  418. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -0
  419. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs +2 -0
  420. package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.props.mjs.map +1 -0
  421. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +2 -0
  422. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -0
  423. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs +2 -0
  424. package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.props.mjs.map +1 -0
  425. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +2 -0
  426. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -0
  427. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs +2 -0
  428. package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.props.mjs.map +1 -0
  429. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +2 -0
  430. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -0
  431. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs +2 -0
  432. package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.props.mjs.map +1 -0
  433. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +2 -0
  434. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -0
  435. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs +2 -0
  436. package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.props.mjs.map +1 -0
  437. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs +2 -0
  438. package/dist/node_modules/@radix-ui/themes/dist/esm/components/icons.mjs.map +1 -0
  439. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +2 -0
  440. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -0
  441. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs +2 -0
  442. package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.props.mjs.map +1 -0
  443. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +2 -0
  444. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -0
  445. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs +2 -0
  446. package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.props.mjs.map +1 -0
  447. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +2 -0
  448. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -0
  449. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs +2 -0
  450. package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.props.mjs.map +1 -0
  451. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +2 -0
  452. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -0
  453. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs +2 -0
  454. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.props.mjs.map +1 -0
  455. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +2 -0
  456. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -0
  457. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs +2 -0
  458. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.props.mjs.map +1 -0
  459. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +2 -0
  460. package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -0
  461. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +2 -0
  462. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -0
  463. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs +2 -0
  464. package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.props.mjs.map +1 -0
  465. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +2 -0
  466. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -0
  467. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs +2 -0
  468. package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.props.mjs.map +1 -0
  469. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +2 -0
  470. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -0
  471. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs +2 -0
  472. package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.props.mjs.map +1 -0
  473. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +2 -0
  474. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -0
  475. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs +2 -0
  476. package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.props.mjs.map +1 -0
  477. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +2 -0
  478. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -0
  479. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs +2 -0
  480. package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.props.mjs.map +1 -0
  481. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +2 -0
  482. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -0
  483. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs +2 -0
  484. package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.props.mjs.map +1 -0
  485. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +2 -0
  486. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -0
  487. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs +2 -0
  488. package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.props.mjs.map +1 -0
  489. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +2 -0
  490. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -0
  491. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs +2 -0
  492. package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.props.mjs.map +1 -0
  493. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +2 -0
  494. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -0
  495. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +2 -0
  496. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -0
  497. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs +2 -0
  498. package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.props.mjs.map +1 -0
  499. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +2 -0
  500. package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -0
  501. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +2 -0
  502. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -0
  503. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs +2 -0
  504. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.props.mjs.map +1 -0
  505. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +2 -0
  506. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -0
  507. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs +2 -0
  508. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.mjs.map +1 -0
  509. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +2 -0
  510. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -0
  511. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs +2 -0
  512. package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.props.mjs.map +1 -0
  513. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +2 -0
  514. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -0
  515. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs +2 -0
  516. package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.props.mjs.map +1 -0
  517. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs +2 -0
  518. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-margin-props.mjs.map +1 -0
  519. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +2 -0
  520. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -0
  521. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +2 -0
  522. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -0
  523. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs +2 -0
  524. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-matching-gray-color.mjs.map +1 -0
  525. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs +2 -0
  526. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-responsive-styles.mjs.map +1 -0
  527. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs +2 -0
  528. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-subtree.mjs.map +1 -0
  529. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs +2 -0
  530. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.mjs.map +1 -0
  531. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs +2 -0
  532. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/inert.mjs.map +1 -0
  533. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs +2 -0
  534. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.mjs.map +1 -0
  535. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs +2 -0
  536. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/map-prop-values.mjs.map +1 -0
  537. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs +2 -0
  538. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/merge-styles.mjs.map +1 -0
  539. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs +2 -0
  540. package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/require-react-element.mjs.map +1 -0
  541. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs +2 -0
  542. package/dist/node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.mjs.map +1 -0
  543. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs +2 -0
  544. package/dist/node_modules/@radix-ui/themes/dist/esm/props/color.prop.mjs.map +1 -0
  545. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs +2 -0
  546. package/dist/node_modules/@radix-ui/themes/dist/esm/props/gap.props.mjs.map +1 -0
  547. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs +2 -0
  548. package/dist/node_modules/@radix-ui/themes/dist/esm/props/height.props.mjs.map +1 -0
  549. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs +2 -0
  550. package/dist/node_modules/@radix-ui/themes/dist/esm/props/high-contrast.prop.mjs.map +1 -0
  551. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs +2 -0
  552. package/dist/node_modules/@radix-ui/themes/dist/esm/props/layout.props.mjs.map +1 -0
  553. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs +2 -0
  554. package/dist/node_modules/@radix-ui/themes/dist/esm/props/leading-trim.prop.mjs.map +1 -0
  555. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs +2 -0
  556. package/dist/node_modules/@radix-ui/themes/dist/esm/props/margin.props.mjs.map +1 -0
  557. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs +2 -0
  558. package/dist/node_modules/@radix-ui/themes/dist/esm/props/padding.props.mjs.map +1 -0
  559. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs +2 -0
  560. package/dist/node_modules/@radix-ui/themes/dist/esm/props/prop-def.mjs.map +1 -0
  561. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs +2 -0
  562. package/dist/node_modules/@radix-ui/themes/dist/esm/props/radius.prop.mjs.map +1 -0
  563. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs +2 -0
  564. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-align.prop.mjs.map +1 -0
  565. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs +2 -0
  566. package/dist/node_modules/@radix-ui/themes/dist/esm/props/text-wrap.prop.mjs.map +1 -0
  567. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs +2 -0
  568. package/dist/node_modules/@radix-ui/themes/dist/esm/props/truncate.prop.mjs.map +1 -0
  569. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs +2 -0
  570. package/dist/node_modules/@radix-ui/themes/dist/esm/props/weight.prop.mjs.map +1 -0
  571. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs +2 -0
  572. package/dist/node_modules/@radix-ui/themes/dist/esm/props/width.props.mjs.map +1 -0
  573. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs +2 -0
  574. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-checkbox/dist/index.mjs.map +1 -0
  575. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs +2 -0
  576. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-context/dist/index.mjs.map +1 -0
  577. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs +2 -0
  578. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -0
  579. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs +2 -0
  580. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs.map +1 -0
  581. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs +2 -0
  582. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-focus-guards/dist/index.mjs.map +1 -0
  583. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs +2 -0
  584. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-hover-card/dist/index.mjs.map +1 -0
  585. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs +2 -0
  586. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs.map +1 -0
  587. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +2 -0
  588. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -0
  589. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs +2 -0
  590. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-portal/dist/index.mjs.map +1 -0
  591. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs +2 -0
  592. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-presence/dist/index.mjs.map +1 -0
  593. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs +2 -0
  594. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-radio-group/dist/index.mjs.map +1 -0
  595. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs +2 -0
  596. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -0
  597. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs +2 -0
  598. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-slider/dist/index.mjs.map +1 -0
  599. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs +2 -0
  600. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-switch/dist/index.mjs.map +1 -0
  601. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs +2 -0
  602. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tabs/dist/index.mjs.map +1 -0
  603. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs +2 -0
  604. package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-tooltip/dist/index.mjs.map +1 -0
  605. package/dist/node_modules/chart.js/dist/chart.mjs +8 -0
  606. package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -0
  607. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs +8 -0
  608. package/dist/node_modules/chart.js/dist/chunks/helpers.segment.mjs.map +1 -0
  609. package/dist/tsconfig.tsbuildinfo +1 -1
  610. package/package.json +8 -5
@@ -0,0 +1,8 @@
1
+ import{K as t,d as e,a3 as i,ac as s,ad as n,k as o,ae as a,af as r,Q as h,F as l,ag as c,a7 as u,Y as g,$ as f,C as p,j as m,h as x,ah as b,ai as _,D as y,p as v,T as w,P as M,E as k,aL as D,g as S,t as C,aG as A,o as P,aM as L,ay as T,H as O,a0 as I,Z as E,M as z,x as R,O as F,R as V,S as B,U as H,b as W,V as N,W as j,X as $,i as U,v as Y,a6 as X,a8 as K,a9 as q,aa as G,aj as J,a as Z,az as Q,a2 as tt,aA as et,aB as it,aC as st,a1 as nt,aE as ot,aF as at,aw as rt,at as ht,au as lt,r as ct,z as dt,G as ut,I as gt,a5 as ft,f as pt,al as mt,am as xt,an as bt,B as _t,aD as yt,aH as vt,aI as wt,aJ as Mt,aN as kt,ab as Dt,aO as St,_ as Ct,e as At,u as Pt,l as Lt,J as Tt,N as Ot,a4 as It,ao as Et,ap as zt,aq as Rt,ax as Ft,aK as Vt,s as Bt,aP as Ht,c as Wt,m as Nt,n as jt,y as $t,A as Ut,ak as Yt,L as Xt,ar as Kt,as as qt}from"./chunks/helpers.segment.mjs";export{aL as Ticks,d as defaults}from"./chunks/helpers.segment.mjs";import"@kurkle/color";
2
+ /*!
3
+ * Chart.js v4.4.5
4
+ * https://www.chartjs.org
5
+ * (c) 2024 Chart.js Contributors
6
+ * Released under the MIT License
7
+ */class Gt{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=ct.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Jt=new Gt;const Zt="transparent",Qt={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Wt(t||Zt),n=s.valid&&Wt(e||Zt);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class te{constructor(t,e,i,s){const n=e[i];s=Z([t.to,s,n,t.from]);const o=Z([t.from,n,s]);this._active=!0,this._fn=t.fn||Qt[t.type||typeof o],this._easing=At[t.easing]||At.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Z([t.to,e,s,t.from]),this._from=Z([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class ee{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!U(t))return;const i=Object.keys(e.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach((e=>{const n=t[e];if(!U(n))return;const o={};for(const t of i)o[t]=n[t];(W(n.properties)&&n.properties||[e]).forEach((t=>{t!==e&&s.has(t)||s.set(t,o)}))}))}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(!i)return void(t.options=e);i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}}));return i}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let r;for(r=o.length-1;r>=0;--r){const h=o[r];if("$"===h.charAt(0))continue;if("options"===h){s.push(...this._animateOptions(t,e));continue}const l=e[h];let c=n[h];const d=i.get(h);if(c){if(d&&c.active()){c.update(d,l,a);continue}c.cancel()}d&&d.duration?(n[h]=c=new te(d,t,h,l),s.push(c)):t[h]=l}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Jt.add(this._chart,i),!0):void 0}}function ie(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,o=void 0===i.max?e:0;return{start:s?o:n,end:s?n:o}}function se(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,o;for(n=0,o=s.length;n<o;++n)i.push(s[n].index);return i}function ne(t,e,i,s={}){const n=t.keys,o="single"===s.mode;let a,r,h,l;if(null!==e){for(a=0,r=n.length;a<r;++a){if(h=+n[a],h===i){if(s.all)continue;break}l=t.values[h],S(l)&&(o||0===e||Bt(e)===Bt(l))&&(e+=l)}return e}}function oe(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function ae(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function re(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function he(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:o,vScale:a,index:r}=s,h=o.axis,l=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(o,a,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[h]:o,[l]:d}=i;u=(i._stacks||(i._stacks={}))[l]=ae(n,c,o),u[r]=d,u._top=re(u,a,!0,s.type),u._bottom=re(u,a,!1,s.type);(u._visualValues||(u._visualValues={}))[r]=d}}function le(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function ce(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const de=t=>"reset"===t||"none"===t,ue=(t,e)=>e?t:Object.assign({},t);class ge{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=oe(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&ce(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=Y(i.xAxisID,le(t,"x")),o=e.yAxisID=Y(i.yAxisID,le(t,"y")),a=e.rAxisID=Y(i.rAxisID,le(t,"r")),r=e.indexAxis,h=e.iAxisID=s(r,n,o,a),l=e.vAxisID=s(r,o,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(l)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Pt(this._data,this),t._stacked&&ce(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(U(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:s}=e,n="x"===i.axis?"x":"y",o="x"===s.axis?"x":"y",a=Object.keys(t),r=new Array(a.length);let h,l,c;for(h=0,l=a.length;h<l;++h)c=a[h],r[h]={[n]:c,[o]:t[c]};return r}(e,t)}else if(i!==e){if(i){Pt(i,this);const t=this._cachedMeta;ce(t),t._parsed=[]}e&&Object.isExtensible(e)&&Lt(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=oe(e.vScale,e),e.stack!==i.stack&&(s=!0,ce(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&(he(this,e._parsed),e._stacked=oe(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:o}=i,a=n.axis;let r,h,l,c=0===t&&e===s.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,l=s;else{l=W(s[t])?this.parseArrayData(i,s,t,e):U(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===h[a]||d&&h[a]<d[a];for(r=0;r<e;++r)i._parsed[r+t]=h=l[r],c&&(n()&&(c=!1),d=h);i._sorted=c}o&&he(this,l)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:o}=t,a=n.axis,r=o.axis,h=n.getLabels(),l=n===o,c=new Array(s);let d,u,g;for(d=0,u=s;d<u;++d)g=d+i,c[d]={[a]:l||n.parse(h[g],g),[r]:o.parse(e[g],g)};return c}parseArrayData(t,e,i,s){const{xScale:n,yScale:o}=t,a=new Array(s);let r,h,l,c;for(r=0,h=s;r<h;++r)l=r+i,c=e[l],a[r]={x:n.parse(c[0],l),y:o.parse(c[1],l)};return a}parseObjectData(t,e,i,s){const{xScale:n,yScale:o}=t,{xAxisKey:a="x",yAxisKey:r="y"}=this._parsing,h=new Array(s);let l,c,d,u;for(l=0,c=s;l<c;++l)d=l+i,u=e[d],h[l]={x:n.parse(pt(u,a),d),y:o.parse(pt(u,r),d)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,o=e[t.axis];return ne({keys:se(s,!0),values:e._stacks[t.axis]._visualValues},o,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let o=null===n?NaN:n;const a=s&&i._stacks[e.axis];s&&a&&(s.values=a,o=ne(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,o=s.length,a=this._getOtherScale(t),r=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:se(i,!0),values:null})(e,i,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:l,max:c}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let d,u;function g(){u=s[d];const e=u[a.axis];return!S(u[t.axis])||l>e||c<e}for(d=0;d<o&&(g()||(this.updateRangeFromParsed(h,t,u,r),!n));++d);if(n)for(d=o-1;d>=0;--d)if(!g()){this.updateRangeFromParsed(h,t,u,r);break}return h}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,o;for(s=0,n=e.length;s<n;++s)o=e[s][t.axis],S(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return U(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(Y(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=ie(t,i),n=ie(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,o=[],a=this._drawStart||0,r=this._drawCount||s.length-a,h=this.options.drawActiveElementsOnTop;let l;for(i.dataset&&i.dataset.draw(t,n,a,r),l=a;l<a+r;++l){const e=s[l];e.hidden||(e.active&&h?o.push(e):e.draw(t,n))}for(l=0;l<o.length;++l)o[l].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return m(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return m(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,i="default",s){const n="active"===i,o=this._cachedDataOpts,a=t+"-"+i,r=o[a],h=this.enableOptionSharing&&x(s);if(r)return ue(r,h);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=n?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),c),g=Object.keys(e.elements[t]),f=l.resolveNamedOptions(u,g,(()=>this.getContext(s,n,i)),d);return f.$shared&&(f.$shared=h,o[a]=Object.freeze(ue(f,h))),f}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,o=`animation-${e}`,a=n[o];if(a)return a;let r;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),o=s.getOptionScopes(this.getDataset(),n);r=s.createResolver(o,this.getContext(t,i,e))}const h=new ee(s,r&&r.animations);return r&&r._cacheable&&(n[o]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||de(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),o=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:o}}updateElement(t,e,i,s){de(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!de(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,o=Math.min(n,s);o&&this.parse(0,o),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,o=t+e;let a;const r=t=>{for(t.length+=e,a=t.length-1;a>=o;a--)t[a]=t[a-e]};for(r(n),a=t;a<o;++a)n[a]=new this.dataElementType;this._parsing&&r(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&ce(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}class fe extends ge{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:s,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,o,a=t=>+i[t];if(U(i[t])){const{key:t="value"}=this._parsing;a=e=>+pt(i[e],t)}for(n=t,o=t+e;n<o;++n)s._parsed[n]=a(n)}}_getRotation(){return C(this.options.rotation-90)}_getCircumference(){return C(this.options.circumference)}_getRotationExtents(){let t=w,e=-w;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),o=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,o=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),r=Math.min(Nt(this.options.cutout,a),1),h=this._getRingWeight(this.index),{circumference:l,rotation:c}=this._getRotationExtents(),{ratioX:d,ratioY:u,offsetX:g,offsetY:f}=function(t,e,i){let s=1,n=1,o=0,a=0;if(e<w){const r=t,h=r+e,l=Math.cos(r),c=Math.sin(r),d=Math.cos(h),u=Math.sin(h),g=(t,e,s)=>v(t,r,h,!0)?1:Math.max(e,e*i,s,s*i),f=(t,e,s)=>v(t,r,h,!0)?-1:Math.min(e,e*i,s,s*i),p=g(0,l,d),m=g(O,c,u),x=f(M,l,d),b=f(M+O,c,u);s=(p-x)/2,n=(m-b)/2,o=-(p+x)/2,a=-(m+b)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}(c,l,r),p=(i.width-o)/d,m=(i.height-o)/u,x=Math.max(Math.min(p,m)/2,0),b=jt(this.options.radius,x),_=(b-Math.max(b*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=g*b,this.offsetY=f*b,s.total=this.calculateTotal(),this.outerRadius=b-_*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-_*h,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/w)}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.chartArea,r=o.options.animation,h=(a.left+a.right)/2,l=(a.top+a.bottom)/2,c=n&&r.animateScale,d=c?0:this.innerRadius,u=c?0:this.outerRadius,{sharedOptions:g,includeOptions:f}=this._getSharedOptions(e,s);let p,m=this._getRotation();for(p=0;p<e;++p)m+=this._circumference(p,n);for(p=e;p<e+i;++p){const e=this._circumference(p,n),i=t[p],o={x:h+this.offsetX,y:l+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};f&&(o.options=g||this.resolveDataElementOptions(p,i.active?"active":s)),m+=e,this.updateElement(i,p,o,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?w*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=P(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,o,a,r;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){o=i.getDatasetMeta(s),t=o.data,a=o.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)r=a.resolveDataElementOptions(s),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(Y(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class pe extends ge{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map(((e,n)=>{const o=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:s,lineWidth:o.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=P(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return $t.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),o=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-o*this.index,this.innerRadius=this.outerRadius-o}updateElements(t,e,i,s){const n="reset"===s,o=this.chart,a=o.options.animation,r=this._cachedMeta.rScale,h=r.xCenter,l=r.yCenter,c=r.getIndexAngle(0)-.5*M;let d,u=c;const g=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,g);for(d=e;d<e+i;d++){const e=t[d];let i=u,f=u+this._computeAngle(d,s,g),p=o.getDataVisibility(d)?r.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=f,n&&(a.animateScale&&(p=0),a.animateRotate&&(i=f=c));const m={x:h,y:l,innerRadius:0,outerRadius:p,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++})),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?C(this.resolveDataElementOptions(t,e).angle||i):0}}function me(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class xe{static override(t){Object.assign(xe.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return me()}parse(){return me()}format(){return me()}add(){return me()}diff(){return me()}startOf(){return me()}endOf(){return me()}}var be={_date:xe};function _e(t,e,i,s){const{controller:n,data:o,_sorted:a}=t,r=n._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&a&&o.length){const t=r._reversePixels?Ut:_t;if(!s)return t(o,e,i);if(n._sharedOptions){const s=o[0],n="function"==typeof s.getRange&&s.getRange(e);if(n){const s=t(o,e,i-n),a=t(o,e,i+n);return{lo:s.lo,hi:a.hi}}}}return{lo:0,hi:o.length-1}}function ye(t,e,i,s,n){const o=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=o.length;t<i;++t){const{index:i,data:r}=o[t],{lo:h,hi:l}=_e(o[t],e,a,n);for(let t=h;t<=l;++t){const e=r[t];e.skip||s(e,i,t)}}}function ve(t,e,i,s,n){const o=[];if(!n&&!t.isPointInArea(e))return o;return ye(t,i,e,(function(i,a,r){(n||p(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&o.push({element:i,datasetIndex:a,index:r})}),!0),o}function we(t,e,i,s,n,o){let a=[];const r=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,o=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(o,2))}}(i);let h=Number.POSITIVE_INFINITY;return ye(t,i,e,(function(i,l,c){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!(!!o||t.isPointInArea(u))&&!d)return;const g=r(e,u);g<h?(a=[{element:i,datasetIndex:l,index:c}],h=g):g===h&&a.push({element:i,datasetIndex:l,index:c})})),a}function Me(t,e,i,s,n,o){return o||t.isPointInArea(e)?"r"!==i||s?we(t,e,i,s,n,o):function(t,e,i,s){let n=[];return ye(t,i,e,(function(t,i,o){const{startAngle:a,endAngle:r}=t.getProps(["startAngle","endAngle"],s),{angle:h}=y(t,{x:e.x,y:e.y});v(h,a,r)&&n.push({element:t,datasetIndex:i,index:o})})),n}(t,e,i,n):[]}function ke(t,e,i,s,n){const o=[],a="x"===i?"inXRange":"inYRange";let r=!1;return ye(t,i,e,((t,s,h)=>{t[a]&&t[a](e[i],n)&&(o.push({element:t,datasetIndex:s,index:h}),r=r||t.inRange(e.x,e.y,n))})),s&&!r?[]:o}var De={evaluateInteractionItems:ye,modes:{index(t,e,i,s){const n=dt(e,t),o=i.axis||"x",a=i.includeInvisible||!1,r=i.intersect?ve(t,n,o,s,a):Me(t,n,o,!1,s,a),h=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,i=t.data[e];i&&!i.skip&&h.push({element:i,datasetIndex:t.index,index:e})})),h):[]},dataset(t,e,i,s){const n=dt(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;let r=i.intersect?ve(t,n,o,s,a):Me(t,n,o,!1,s,a);if(r.length>0){const e=r[0].datasetIndex,i=t.getDatasetMeta(e).data;r=[];for(let t=0;t<i.length;++t)r.push({element:i[t],datasetIndex:e,index:t})}return r},point:(t,e,i,s)=>ve(t,dt(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=dt(e,t),o=i.axis||"xy",a=i.includeInvisible||!1;return Me(t,n,o,i.intersect,s,a)},x:(t,e,i,s)=>ke(t,dt(e,t),"x",i.intersect,s),y:(t,e,i,s)=>ke(t,dt(e,t),"y",i.intersect,s)}};const Se=["left","top","right","bottom"];function Ce(t,e){return t.filter((t=>t.pos===e))}function Ae(t,e){return t.filter((t=>-1===Se.indexOf(t.pos)&&t.box.axis===e))}function Pe(t,e){return t.sort(((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight}))}function Le(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Se.includes(s))continue;const o=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let o,a,r;for(o=0,a=t.length;o<a;++o){r=t[o];const{fullSize:a}=r.box,h=i[r.stack],l=h&&r.stackWeight/h.weight;r.horizontal?(r.width=l?l*s:a&&e.availableWidth,r.height=n):(r.width=s,r.height=l?l*n:a&&e.availableHeight)}return i}function Te(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Oe(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function Ie(t,e,i,s){const{pos:n,box:o}=i,a=t.maxPadding;if(!U(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?o.height:o.width),i.size=e.size/e.count,t[n]+=i.size}o.getPadding&&Oe(a,o.getPadding());const r=Math.max(0,e.outerWidth-Te(a,t,"left","right")),h=Math.max(0,e.outerHeight-Te(a,t,"top","bottom")),l=r!==t.w,c=h!==t.h;return t.w=r,t.h=h,i.horizontal?{same:l,other:c}:{same:c,other:l}}function Ee(t,e){const i=e.maxPadding;function s(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{s[t]=Math.max(e[t],i[t])})),s}return s(t?["left","right"]:["top","bottom"])}function ze(t,e,i,s){const n=[];let o,a,r,h,l,c;for(o=0,a=t.length,l=0;o<a;++o){r=t[o],h=r.box,h.update(r.width||e.w,r.height||e.h,Ee(r.horizontal,e));const{same:a,other:d}=Ie(e,i,r,s);l|=a&&n.length,c=c||d,h.fullSize||n.push(r)}return l&&ze(n,e,i,s)||c}function Re(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Fe(t,e,i,s){const n=i.padding;let{x:o,y:a}=e;for(const r of t){const t=r.box,h=s[r.stack]||{count:1,placed:0,weight:1},l=r.stackWeight/h.weight||1;if(r.horizontal){const s=e.w*l,o=h.size||t.height;x(h.start)&&(a=h.start),t.fullSize?Re(t,n.left,a,i.outerWidth-n.right-n.left,o):Re(t,e.left+h.placed,a,s,o),h.start=a,h.placed+=s,a=t.bottom}else{const s=e.h*l,a=h.size||t.width;x(h.start)&&(o=h.start),t.fullSize?Re(t,o,n.top,a,i.outerHeight-n.bottom-n.top):Re(t,o,e.top+h.placed,a,s),h.start=o,h.placed+=s,o=t.right}}e.x=o,e.y=a}var Ve={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=k(t.options.layout.padding),o=Math.max(e-n.width,0),a=Math.max(i-n.height,0),r=function(t){const e=function(t){const e=[];let i,s,n,o,a,r;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:o,options:{stack:a,stackWeight:r=1}}=n),e.push({index:i,box:n,pos:o,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&o+a,stackWeight:r});return e}(t),i=Pe(e.filter((t=>t.box.fullSize)),!0),s=Pe(Ce(e,"left"),!0),n=Pe(Ce(e,"right")),o=Pe(Ce(e,"top"),!0),a=Pe(Ce(e,"bottom")),r=Ae(e,"x"),h=Ae(e,"y");return{fullSize:i,leftAndTop:s.concat(o),rightAndBottom:n.concat(h).concat(a).concat(r),chartArea:Ce(e,"chartArea"),vertical:s.concat(n).concat(h),horizontal:o.concat(a).concat(r)}}(t.boxes),h=r.vertical,c=r.horizontal;l(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=h.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/d,hBoxMaxHeight:a/2}),g=Object.assign({},n);Oe(g,k(s));const f=Object.assign({maxPadding:g,w:o,h:a,x:n.left,y:n.top},n),p=Le(h.concat(c),u);ze(r.fullSize,f,u,p),ze(h,f,u,p),ze(c,f,u,p)&&ze(h,f,u,p),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(f),Fe(r.leftAndTop,f,u,p),f.x+=f.w,f.y+=f.h,Fe(r.rightAndBottom,f,u,p),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},l(r.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})}))}};class Be{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class He extends Be{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const We="$chartjs",Ne={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},je=t=>null===t||""===t;const $e=!!t&&{passive:!0};function Ue(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,$e)}function Ye(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function Xe(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Ye(i.addedNodes,s),e=e&&!Ye(i.removedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function Ke(t,e,i){const s=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||Ye(i.removedNodes,s),e=e&&!Ye(i.addedNodes,s);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const qe=new Map;let Ge=0;function Je(){const t=window.devicePixelRatio;t!==Ge&&(Ge=t,qe.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function Ze(t,e,i){const s=t.canvas,n=s&&gt(s);if(!n)return;const o=Xt(((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||o(i,s)}));return a.observe(n),function(t,e){qe.size||window.addEventListener("resize",Je),qe.set(t,e)}(t,o),a}function Qe(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){qe.delete(t),qe.size||window.removeEventListener("resize",Je)}(t)}function ti(t,e,i){const s=t.canvas,n=Xt((e=>{null!==t.ctx&&i(function(t,e){const i=Ne[t.type]||t.type,{x:s,y:n}=dt(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,$e)}(s,e,n),n}class ei extends Be{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[We]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",je(n)){const e=Tt(t,"width");void 0!==e&&(t.width=e)}if(je(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Tt(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[We])return!1;const i=e[We].initial;["height","width"].forEach((t=>{const s=i[t];o(s)?e.removeAttribute(t):e.setAttribute(t,s)}));const s=i.style||{};return Object.keys(s).forEach((t=>{e.style[t]=s[t]})),e.width=e.width,delete e[We],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:Xe,detach:Ke,resize:Ze}[e]||ti;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:Qe,detach:Qe,resize:Qe}[e]||Ue)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return ut(t,e,i,s)}isAttached(t){const e=t&&gt(t);return!(!e||!e.isConnected)}}function ii(t){return!z()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?He:ei}class si{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return R(this.x)&&R(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach((t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),s}}function ni(t,e){const i=t.options.ticks,s=function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=Math.min(i.maxTicksLimit||s,s),a=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],r=a.length,h=a[0],l=a[r-1],c=[];if(r>n)return function(t,e,i,s){let n,o=0,a=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===a&&(e.push(t[n]),o++,a=i[o*s])}(e,c,a,r/n),c;const d=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const o=Ot(s);for(let t=0,e=o.length-1;t<e;t++){const e=o[t];if(e>n)return e}return Math.max(n,1)}(a,e,n);if(r>0){let t,i;const s=r>1?Math.round((l-h)/(r-1)):null;for(oi(e,c,d,o(s)?0:h-s,h),t=0,i=r-1;t<i;t++)oi(e,c,d,a[t],a[t+1]);return oi(e,c,d,l,o(s)?e.length:l+s),c}return oi(e,c,d),c}function oi(t,e,i,s,n){const o=Y(s,0),a=Math.min(Y(n,t.length),t.length);let r,h,l,c=0;for(i=Math.ceil(i),n&&(r=n-s,i=r/Math.floor(r/i)),l=o;l<0;)c++,l=Math.round(o+c*i);for(h=Math.max(o,0);h<a;h++)h===l&&(e.push(t[h]),c++,l=Math.round(o+c*i))}const ai=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,ri=(t,e)=>Math.min(e||t,t);function hi(t,e){const i=[],s=t.length/e,n=t.length;let o=0;for(;o<n;o+=s)i.push(t[Math.floor(o)]);return i}function li(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),o=t._startPixel,a=t._endPixel,r=1e-6;let h,l=t.getPixelForTick(n);if(!(i&&(h=1===s?Math.max(l-o,a-l):0===e?(t.getPixelForTick(1)-l)/2:(l-t.getPixelForTick(n-1))/2,l+=n<e?h:-h,l<o-r||l>a+r)))return l}function ci(t){return t.drawTicks?t.tickLength:0}function di(t,e){if(!t.display)return 0;const i=I(t.font,e),s=k(t.padding);return(W(t.text)?t.text.length:1)*i.lineHeight+s.height}function ui(t,e,i){let s=nt(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class gi extends si{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=F(t,Number.POSITIVE_INFINITY),e=F(e,Number.NEGATIVE_INFINITY),i=F(i,Number.POSITIVE_INFINITY),s=F(s,Number.NEGATIVE_INFINITY),{min:F(t,i),max:F(e,s),minDefined:S(t),maxDefined:S(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:o}=this.getUserBounds();if(n&&o)return{min:i,max:s};const a=this.getMatchingVisibleMetas();for(let r=0,h=a.length;r<h;++r)e=a[r].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),o||(s=Math.max(s,e.max));return i=o&&i>s?s:i,s=n&&i>s?i:s,{min:F(i,F(s,i)),max:F(s,F(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){h(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=V(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=a<this.ticks.length;this._convertTicksToLabels(r?hi(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=ni(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){h(this.options.afterUpdate,[this])}beforeSetDimensions(){h(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){h(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),h(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){h(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=h(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){h(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){h(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=ri(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,n=e.maxRotation;let o,a,r,h=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const l=this._getLabelSizes(),c=l.widest.width,d=l.highest.height,u=B(this.chart.width-c,0,this.maxWidth);o=t.offset?this.maxWidth/i:u/(i-1),c+6>o&&(o=u/(i-(t.offset?.5:1)),a=this.maxHeight-ci(t.grid)-e.padding-di(t.title,this.chart.options.font),r=Math.sqrt(c*c+d*d),h=H(Math.min(Math.asin(B((l.highest.height+6)/o,-1,1)),Math.asin(B(a/r,-1,1))-Math.asin(B(d/r,-1,1)))),h=Math.max(s,Math.min(n,h))),this.labelRotation=h}afterCalculateLabelRotation(){h(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){h(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const o=di(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=ci(n)+o):(t.height=this.maxHeight,t.width=ci(n)+o),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:o}=this._getLabelSizes(),r=2*i.padding,h=C(this.labelRotation),l=Math.cos(h),c=Math.sin(h);if(a){const e=i.mirror?0:c*n.width+l*o.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=i.mirror?0:l*n.width+c*o.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,s,c,l)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:o},position:a}=this.options,r=0!==this.labelRotation,h="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,l=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,d=0;r?h?(c=s*t.width,d=i*e.height):(c=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,d=e.width/2),this.paddingLeft=Math.max((c-a+o)*this.width/(this.width-a),0),this.paddingRight=Math.max((d-l+o)*this.width/(this.width-l),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+o,this.paddingBottom=s+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){h(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)o(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=hi(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:n}=this,a=[],r=[],h=Math.floor(e/ri(e,i));let c,d,u,g,f,p,m,x,b,_,y,v=0,w=0;for(c=0;c<e;c+=h){if(g=t[c].label,f=this._resolveTickFontOptions(c),s.font=p=f.string,m=n[p]=n[p]||{data:{},gc:[]},x=f.lineHeight,b=_=0,o(g)||W(g)){if(W(g))for(d=0,u=g.length;d<u;++d)y=g[d],o(y)||W(y)||(b=N(s,m.data,m.gc,b,y),_+=x)}else b=N(s,m.data,m.gc,b,g),_=x;a.push(b),r.push(_),v=Math.max(b,v),w=Math.max(_,w)}!function(t,e){l(t,(t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}}))}(n,e);const M=a.indexOf(v),k=r.indexOf(w),D=t=>({width:a[t]||0,height:r[t]||0});return{first:D(0),last:D(e-1),widest:D(M),highest:D(k),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return j(this._alignToPixels?$(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return m(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=(i=this.chart.getContext(),m(i,{scale:this,type:"scale"})));var i}_tickSize(){const t=this.options.ticks,e=C(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),o=t.autoSkipPadding||0,a=n?n.widest.width+o:0,r=n?n.highest.height+o:0;return this.isHorizontal()?r*i>a*s?a/i:r/s:r*s<a*i?r/i:a/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:o,border:a}=s,r=n.offset,h=this.isHorizontal(),l=this.ticks.length+(r?1:0),c=ci(n),d=[],u=a.setContext(this.getContext()),g=u.display?u.width:0,f=g/2,p=function(t){return $(i,t,g)};let m,x,b,_,y,v,w,M,k,D,S,C;if("top"===o)m=p(this.bottom),v=this.bottom-c,M=m-f,D=p(t.top)+f,C=t.bottom;else if("bottom"===o)m=p(this.top),D=t.top,C=p(t.bottom)-f,v=m+f,M=this.top+c;else if("left"===o)m=p(this.right),y=this.right-c,w=m-f,k=p(t.left)+f,S=t.right;else if("right"===o)m=p(this.left),k=t.left,S=p(t.right)-f,y=m+f,w=this.left+c;else if("x"===e){if("center"===o)m=p((t.top+t.bottom)/2+.5);else if(U(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}D=t.top,C=t.bottom,v=m+f,M=v+c}else if("y"===e){if("center"===o)m=p((t.left+t.right)/2);else if(U(o)){const t=Object.keys(o)[0],e=o[t];m=p(this.chart.scales[t].getPixelForValue(e))}y=m-f,w=y-c,k=t.left,S=t.right}const A=Y(s.ticks.maxTicksLimit,l),P=Math.max(1,Math.ceil(l/A));for(x=0;x<l;x+=P){const t=this.getContext(x),e=n.setContext(t),s=a.setContext(t),o=e.lineWidth,l=e.color,c=s.dash||[],u=s.dashOffset,g=e.tickWidth,f=e.tickColor,p=e.tickBorderDash||[],m=e.tickBorderDashOffset;b=li(this,x,r),void 0!==b&&(_=$(i,b,o),h?y=w=k=S=_:v=M=D=C=_,d.push({tx1:y,ty1:v,tx2:w,ty2:M,x1:k,y1:D,x2:S,y2:C,width:o,color:l,borderDash:c,borderDashOffset:u,tickWidth:g,tickColor:f,tickBorderDash:p,tickBorderDashOffset:m}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,o=this.isHorizontal(),a=this.ticks,{align:r,crossAlign:h,padding:l,mirror:c}=n,d=ci(i.grid),u=d+l,g=c?-l:u,f=-C(this.labelRotation),p=[];let m,x,b,_,y,v,w,M,D,S,A,P,L="middle";if("top"===s)v=this.bottom-g,w=this._getXAxisLabelAlignment();else if("bottom"===s)v=this.top+g,w=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,y=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);w=t.textAlign,y=t.x}else if("x"===e){if("center"===s)v=(t.top+t.bottom)/2+u;else if(U(s)){const t=Object.keys(s)[0],e=s[t];v=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)y=(t.left+t.right)/2-u;else if(U(s)){const t=Object.keys(s)[0],e=s[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===r?L="top":"end"===r&&(L="bottom"));const T=this._getLabelSizes();for(m=0,x=a.length;m<x;++m){b=a[m],_=b.label;const t=n.setContext(this.getContext(m));M=this.getPixelForTick(m)+n.labelOffset,D=this._resolveTickFontOptions(m),S=D.lineHeight,A=W(_)?_.length:1;const e=A/2,i=t.color,r=t.textStrokeColor,l=t.textStrokeWidth;let d,u=w;if(o?(y=M,"inner"===w&&(u=m===x-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),P="top"===s?"near"===h||0!==f?-A*S+S/2:"center"===h?-T.highest.height/2-e*S+S:-T.highest.height+S/2:"near"===h||0!==f?S/2:"center"===h?T.highest.height/2-e*S:T.highest.height-A*S,c&&(P*=-1),0===f||t.showLabelBackdrop||(y+=S/2*Math.sin(f))):(v=M,P=(1-A)*S/2),t.showLabelBackdrop){const e=k(t.backdropPadding),i=T.heights[m],s=T.widths[m];let n=P-e.top,o=0-e.left;switch(L){case"middle":n-=i/2;break;case"bottom":n-=i}switch(w){case"center":o-=s/2;break;case"right":o-=s;break;case"inner":m===x-1?o-=s:m>0&&(o-=s/2)}d={left:o,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}p.push({label:_,font:D,textOffset:P,options:{rotation:f,color:i,strokeColor:r,strokeWidth:l,textAlign:u,textBaseline:L,translation:[y,v],backdrop:d}})}return p}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-C(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,o=t+n,a=this._getLabelSizes().widest.width;let r,h;return"left"===e?s?(h=this.right+n,"near"===i?r="left":"center"===i?(r="center",h+=a/2):(r="right",h+=a)):(h=this.right-o,"near"===i?r="right":"center"===i?(r="center",h-=a/2):(r="left",h=this.left)):"right"===e?s?(h=this.left+n,"near"===i?r="right":"center"===i?(r="center",h-=a/2):(r="left",h-=a)):(h=this.left+o,"near"===i?r="left":"center"===i?(r="center",h+=a/2):(r="right",h=this.right)):r="right",{textAlign:r,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));if(i>=0){return e.setContext(this.getContext(i)).lineWidth}return 0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,o;const a=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,o=s.length;n<o;++n){const t=s[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:s}}=this,n=i.setContext(this.getContext()),o=i.display?n.width:0;if(!o)return;const a=s.setContext(this.getContext(0)).lineWidth,r=this._borderValue;let h,l,c,d;this.isHorizontal()?(h=$(t,this.left,o)-o/2,l=$(t,this.right,a)+a/2,c=d=r):(c=$(t,this.top,o)-o/2,d=$(t,this.bottom,a)+a/2,h=l=r),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(h,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&g(e,i);const s=this.getLabelItems(t);for(const t of s){const i=t.options,s=t.font,n=t.label,o=t.textOffset;E(e,n,0,o,s,i)}i&&f(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=I(i.font),o=k(i.padding),a=i.align;let r=n.lineHeight/2;"bottom"===e||"center"===e||U(e)?(r+=o.bottom,W(i.text)&&(r+=n.lineHeight*(i.text.length-1))):r+=o.top;const{titleX:h,titleY:l,maxWidth:c,rotation:d}=function(t,e,i,s){const{top:n,left:o,bottom:a,right:r,chart:h}=t,{chartArea:l,scales:c}=h;let d,u,g,f=0;const p=a-n,m=r-o;if(t.isHorizontal()){if(u=tt(s,o,r),U(i)){const t=Object.keys(i)[0],s=i[t];g=c[t].getPixelForValue(s)+p-e}else g="center"===i?(l.bottom+l.top)/2+p-e:ai(t,i,e);d=r-o}else{if(U(i)){const t=Object.keys(i)[0],s=i[t];u=c[t].getPixelForValue(s)-m+e}else u="center"===i?(l.left+l.right)/2-m+e:ai(t,i,e);g=tt(s,a,n),f="left"===i?-O:O}return{titleX:u,titleY:g,maxWidth:d,rotation:f}}(this,r,e,a);E(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:ui(a,e,s),textBaseline:"middle",translation:[h,l]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=Y(t.grid&&t.grid.z,-1),s=Y(t.border&&t.border.z,0);return this._isVisible()&&this.draw===gi.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,o;for(n=0,o=e.length;n<o;++n){const o=e[n];o[i]!==this.id||t&&o.type!==t||s.push(o)}return s}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return I(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class fi{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const i=Object.getPrototypeOf(t);let s;(function(t){return"id"in t&&"defaults"in t})(i)&&(s=this.register(i));const n=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in n||(n[o]=t,function(t,i,s){const n=It(Object.create(null),[s?e.get(s):{},e.get(i),t.defaults]);e.set(i,n),t.defaultRoutes&&function(t,i){Object.keys(i).forEach((s=>{const n=s.split("."),o=n.pop(),a=[t].concat(n).join("."),r=i[s].split("."),h=r.pop(),l=r.join(".");e.route(a,o,l,h)}))}(i,t.defaultRoutes);t.descriptors&&e.describe(i,t.descriptors)}(t,a,s),this.override&&e.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const s=this.items,n=t.id,o=this.scope;n in s&&delete s[n],o&&n in e[o]&&(delete e[o][n],this.override&&delete i[n])}}class pi{constructor(){this.controllers=new fi(ge,"datasets",!0),this.elements=new fi(si,"elements"),this.plugins=new fi(Object,"plugins"),this.scales=new fi(gi,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach((e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):l(e,(e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)}))}))}_exec(t,e,i){const s=ft(t);h(i["before"+s],[],i),e[t](i),h(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var mi=new pi;class xi{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),o=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin,o=t[i],a=[e,s,n.options];if(!1===h(o,a,t)&&s.cancelable)return!1}return!0}invalidate(){o(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=Y(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(mi.plugins.items);for(let t=0;t<s.length;t++)i.push(mi.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const o=[],a=t.getContext();for(const r of e){const e=r.id,h=bi(s[e],n);null!==h&&o.push({plugin:r,options:_i(t.config,{plugin:r,local:i[e]},h,a)})}return o}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function bi(t,e){return e||!1!==t?!0===t?{}:t:null}function _i(t,{plugin:e,local:i},s,n){const o=t.pluginScopeKeys(e),a=t.getOptionScopes(s,o);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function yi(t,i){const s=e.datasets[t]||{};return((i.datasets||{})[t]||{}).indexAxis||i.indexAxis||s.indexAxis||"x"}function vi(t){if("x"===t||"y"===t||"r"===t)return t}function wi(t,...e){if(vi(t))return t;for(const s of e){const e=s.axis||("top"===(i=s.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&vi(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function Mi(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function ki(t,s){const n=i[t.type]||{scales:{}},o=s.scales||{},a=yi(t.type,s),r=Object.create(null);return Object.keys(o).forEach((i=>{const s=o[i];if(!U(s))return console.error(`Invalid scale configuration for scale: ${i}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${i}`);const h=wi(i,s,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return Mi(t,"x",i[0])||Mi(t,"y",i[0])}return{}}(i,t),e.scales[s.type]),l=function(t,e){return t===e?"_index_":"_value_"}(h,a),c=n.scales||{};r[i]=Dt(Object.create(null),[{axis:h},s,c[h],c[l]])})),t.data.datasets.forEach((e=>{const n=e.type||t.type,a=e.indexAxis||yi(n,s),h=(i[n]||{}).scales||{};Object.keys(h).forEach((t=>{const i=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),s=e[i+"AxisID"]||i;r[s]=r[s]||Object.create(null),Dt(r[s],[{axis:i},o[s],h[t]])}))})),Object.keys(r).forEach((t=>{const i=r[t];Dt(i,[e.scales[i.type],e.scale])})),r}function Di(t){const e=t.options||(t.options={});e.plugins=Y(e.plugins,{}),e.scales=ki(t,e)}function Si(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Ci=new Map,Ai=new Set;function Pi(t,e){let i=Ci.get(t);return i||(i=e(),Ci.set(t,i),Ai.add(i)),i}const Li=(t,e,i)=>{const s=pt(e,i);void 0!==s&&t.add(s)};class Ti{constructor(t){this._config=function(t){return(t=t||{}).data=Si(t.data),Di(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Si(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Di(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Pi(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return Pi(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return Pi(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return Pi(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,s,n){const{options:o,type:a}=this,r=this._cachedScopes(t,n),h=r.get(s);if(h)return h;const l=new Set;s.forEach((s=>{t&&(l.add(t),s.forEach((e=>Li(l,t,e)))),s.forEach((t=>Li(l,o,t))),s.forEach((t=>Li(l,i[a]||{},t))),s.forEach((t=>Li(l,e,t))),s.forEach((t=>Li(l,X,t)))}));const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Ai.has(s)&&r.set(s,c),c}chartOptionScopes(){const{options:t,type:s}=this;return[t,i[s]||{},e.datasets[s]||{},{type:s},e,X]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:o,subPrefixes:a}=Oi(this._resolverCache,t,s);let r=o;if(function(t,e){const{isScriptable:i,isIndexable:s}=G(t);for(const n of e){const e=i(n),o=s(n),a=(o||e)&&t[n];if(e&&(u(a)||Ii(a))||o&&W(a))return!0}return!1}(o,e)){n.$shared=!1,i=u(i)?i():i;const e=this.createResolver(t,i,a);r=K(o,i,e)}for(const t of e)n[t]=r[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=Oi(this._resolverCache,t,i);return U(e)?K(n,e,void 0,s):n}}function Oi(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let o=s.get(n);if(!o){o={resolver:q(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},s.set(n,o)}return o}const Ii=t=>U(t)&&Object.getOwnPropertyNames(t).some((e=>u(t[e])));const Ei=["top","bottom","left","right","chartArea"];function zi(t,e){return"top"===t||"bottom"===t||-1===Ei.indexOf(t)&&"x"===e}function Ri(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function Fi(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),h(i&&i.onComplete,[t],e)}function Vi(t){const e=t.chart,i=e.options.animation;h(i&&i.onProgress,[t],e)}function Bi(t){return z()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Hi={},Wi=t=>{const e=Bi(t);return Object.values(Hi).filter((t=>t.canvas===e)).pop()};function Ni(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const o=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=o)}}}function ji(t,e,i){return t.options.clip?t[i]:e[i]}class $i{static defaults=e;static instances=Hi;static overrides=i;static registry=mi;static version="4.4.5";static getChart=Wi;static register(...t){mi.add(...t),Ui()}static unregister(...t){mi.remove(...t),Ui()}constructor(t,e){const i=this.config=new Ti(e),o=Bi(t),a=Wi(o);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||ii(o)),this.platform.updateConfig(i);const h=this.platform.acquireContext(o,r.aspectRatio),l=h&&h.canvas,c=l&&l.height,d=l&&l.width;this.id=s(),this.ctx=h,this.canvas=l,this.width=d,this.height=c,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new xi,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=n((t=>this.update(t)),r.resizeDelay||0),this._dataChanges=[],Hi[this.id]=this,h&&l?(Jt.listen(this,"complete",Fi),Jt.listen(this,"progress",Vi),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return o(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return mi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():a(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return r(this.canvas,this.ctx),this}stop(){return Jt.stop(this),this}resize(t,e){Jt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,o=this.platform.getMaximumSize(s,t,e,n),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,a(this,r,!0)&&(this.notifyPlugins("resize",{size:o}),h(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};l(t,((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],s=wi(t,i),n="r"===s,o="x"===s;return{options:i,dposition:n?"chartArea":o?"bottom":"left",dtype:n?"radialLinear":o?"category":"linear"}})))),l(n,(e=>{const n=e.options,o=n.id,a=wi(o,n),r=Y(n.type,e.dtype);void 0!==n.position&&zi(n.position,a)===zi(e.dposition)||(n.position=e.dposition),s[o]=!0;let h=null;if(o in i&&i[o].type===r)h=i[o];else{h=new(mi.getScale(r))({id:o,type:r,ctx:this.ctx,chart:this}),i[h.id]=h}h.init(n,t)})),l(s,((t,e)=>{t||delete i[e]})),l(i,(t=>{Ve.configure(this,t,t.options),Ve.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort(((t,e)=>t.index-e.index)),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(Ri("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,i)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(i)}))}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=i.length;s<n;s++){const n=i[s];let o=this.getDatasetMeta(s);const a=n.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(s),o=this.getDatasetMeta(s)),o.type=a,o.indexAxis=n.indexAxis||yi(a,this.options),o.order=n.order||0,o.index=s,o.label=""+n.label,o.visible=this.isDatasetVisible(s),o.controller)o.controller.updateIndex(s),o.controller.linkScales();else{const i=mi.getController(a),{datasetElementType:n,dataElementType:r}=e.datasets[a];Object.assign(i,{dataElementType:mi.getElement(r),datasetElementType:n&&mi.getElement(n)}),o.controller=new i(this,s),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){l(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),o=Math.max(+e.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),s||l(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ri("z","_idx"));const{_active:a,_lastEvent:r}=this;r?this._eventHandler(r,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){l(this.scales,(t=>{Ve.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);c(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e){Ni(t,s,"_removeElements"===i?-n:n)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),s=i(0);for(let t=1;t<e;t++)if(!c(s,i(t)))return;return Array.from(s).map((t=>t.split(","))).map((t=>({method:t[1],start:+t[2],count:+t[3]})))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Ve.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],l(this.boxes,(t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))}),this),this._layers.forEach(((t,e)=>{t._idx=e})),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,u(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Jt.has(this)?this.attached&&!Jt.running(this)&&Jt.start(this):(this.draw(),Fi({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,s=!i.disabled,n=function(t,e){const{xScale:i,yScale:s}=t;return i&&s?{left:ji(i,e,"left"),right:ji(i,e,"right"),top:ji(s,e,"top"),bottom:ji(s,e,"bottom")}:e}(t,this.chartArea),o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(s&&g(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),s&&f(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return p(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=De.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter((t=>t&&t._dataset===e)).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=m(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),o=n.controller._resolveAnimations(void 0,s);x(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?s:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Jt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),r(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Hi[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};l(this.options.events,(t=>i(t,s)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let o;const a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",o)};o=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){l(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},l(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,o,a,r;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),a=0,r=t.length;a<r;++a){o=t[a];const e=o&&this.getDatasetMeta(o.datasetIndex).controller;e&&e[s+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!b(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),o=n(e,t),a=i?t:n(t,e);o.length&&this.updateHoverStyle(o,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,o=e,a=this._getActiveElements(t,s,i,o),r=_(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,r);i&&(this._lastEvent=null,h(n.onHover,[t,a,this],this),r&&h(n.onClick,[t,a,this],this));const c=!b(a,s);return(c||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function Ui(){return l($i.instances,(t=>t._plugins.invalidate()))}function Yi(t,e,i,s){const n=(o=t.options.borderRadius,Yt(o,["outerStart","outerEnd","innerStart","innerEnd"]));var o;const a=(i-e)/2,r=Math.min(a,s*e/2),h=t=>{const e=(i-Math.min(a,t))*s/2;return B(t,0,Math.min(a,e))};return{outerStart:h(n.outerStart),outerEnd:h(n.outerEnd),innerStart:B(n.innerStart,0,r),innerEnd:B(n.innerEnd,0,r)}}function Xi(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function Ki(t,e,i,s,n,o){const{x:a,y:r,startAngle:h,pixelMargin:l,innerRadius:c}=e,d=Math.max(e.outerRadius+s+i-l,0),u=c>0?c+s+i+l:0;let g=0;const f=n-h;if(s){const t=((c>0?c-s:0)+(d>0?d-s:0))/2;g=(f-(0!==t?f*t/(t+s):f))/2}const p=(f-Math.max(.001,f*d-i/M)/d)/2,m=h+p+g,x=n-p-g,{outerStart:b,outerEnd:_,innerStart:y,innerEnd:v}=Yi(e,u,d,x-m),w=d-b,k=d-_,D=m+b/w,S=x-_/k,C=u+y,A=u+v,P=m+y/C,L=x-v/A;if(t.beginPath(),o){const e=(D+S)/2;if(t.arc(a,r,d,D,e),t.arc(a,r,d,e,S),_>0){const e=Xi(k,S,a,r);t.arc(e.x,e.y,_,S,x+O)}const i=Xi(A,x,a,r);if(t.lineTo(i.x,i.y),v>0){const e=Xi(A,L,a,r);t.arc(e.x,e.y,v,x+O,L+Math.PI)}const s=(x-v/u+(m+y/u))/2;if(t.arc(a,r,u,x-v/u,s,!0),t.arc(a,r,u,s,m+y/u,!0),y>0){const e=Xi(C,P,a,r);t.arc(e.x,e.y,y,P+Math.PI,m-O)}const n=Xi(w,m,a,r);if(t.lineTo(n.x,n.y),b>0){const e=Xi(w,D,a,r);t.arc(e.x,e.y,b,m-O,D)}}else{t.moveTo(a,r);const e=Math.cos(D)*d+a,i=Math.sin(D)*d+r;t.lineTo(e,i);const s=Math.cos(S)*d+a,n=Math.sin(S)*d+r;t.lineTo(s,n)}t.closePath()}function qi(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r,options:h}=e,{borderWidth:l,borderJoinStyle:c,borderDash:d,borderDashOffset:u}=h,g="inner"===h.borderAlign;if(!l)return;t.setLineDash(d||[]),t.lineDashOffset=u,g?(t.lineWidth=2*l,t.lineJoin=c||"round"):(t.lineWidth=l,t.lineJoin=c||"bevel");let f=e.endAngle;if(o){Ki(t,e,i,s,f,n);for(let e=0;e<o;++e)t.stroke();isNaN(r)||(f=a+(r%w||w))}g&&function(t,e,i){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:h}=e;let l=n/r;t.beginPath(),t.arc(o,a,r,s-l,i+l),h>n?(l=n/h,t.arc(o,a,h,i+l,s-l,!0)):t.arc(o,a,n,i+O,s-O),t.closePath(),t.clip()}(t,e,f),o||(Ki(t,e,i,s,f,n),t.stroke())}class Gi extends si{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:n,distance:o}=y(s,{x:t,y:e}),{startAngle:a,endAngle:r,innerRadius:h,outerRadius:l,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=Y(c,r-a),g=v(n,a,r)&&a!==r,f=u>=w||g,p=J(o,h+d,l+d);return f&&p}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:r,spacing:h}=this.options,l=(s+n)/2,c=(o+a+h+r)/2;return{x:e+Math.cos(l)*c,y:i+Math.sin(l)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/4,n=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>w?Math.floor(i/w):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*s,Math.sin(a)*s);const r=s*(1-Math.sin(Math.min(M,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,s,n){const{fullCircles:o,startAngle:a,circumference:r}=e;let h=e.endAngle;if(o){Ki(t,e,i,s,h,n);for(let e=0;e<o;++e)t.fill();isNaN(r)||(h=a+(r%w||w))}Ki(t,e,i,s,h,n),t.fill()}(t,this,r,n,o),qi(t,this,r,n,o),t.restore()}}function Ji(t,e,i=e){t.lineCap=Y(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Y(i.borderDash,e.borderDash)),t.lineDashOffset=Y(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Y(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Y(i.borderWidth,e.borderWidth),t.strokeStyle=Y(i.borderColor,e.borderColor)}function Zi(t,e,i){t.lineTo(i.x,i.y)}function Qi(t,e,i={}){const s=t.length,{start:n=0,end:o=s-1}=i,{start:a,end:r}=e,h=Math.max(n,a),l=Math.min(o,r),c=n<a&&o<a||n>r&&o>r;return{count:s,start:h,loop:e.loop,ilen:l<h&&!c?s+l-h:l-h}}function ts(t,e,i,s){const{points:n,options:o}=e,{count:a,start:r,loop:h,ilen:l}=Qi(n,i,s),c=function(t){return t.stepped?Kt:t.tension||"monotone"===t.cubicInterpolationMode?qt:Zi}(o);let d,u,g,{move:f=!0,reverse:p}=s||{};for(d=0;d<=l;++d)u=n[(r+(p?l-d:d))%a],u.skip||(f?(t.moveTo(u.x,u.y),f=!1):c(t,g,u,p,o.stepped),g=u);return h&&(u=n[(r+(p?l:0))%a],c(t,g,u,p,o.stepped)),!!h}function es(t,e,i,s){const n=e.points,{count:o,start:a,ilen:r}=Qi(n,i,s),{move:h=!0,reverse:l}=s||{};let c,d,u,g,f,p,m=0,x=0;const b=t=>(a+(l?r-t:t))%o,_=()=>{g!==f&&(t.lineTo(m,f),t.lineTo(m,g),t.lineTo(m,p))};for(h&&(d=n[b(0)],t.moveTo(d.x,d.y)),c=0;c<=r;++c){if(d=n[b(c)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<g?g=i:i>f&&(f=i),m=(x*m+e)/++x):(_(),t.lineTo(e,i),u=s,x=0,g=f=i),p=i}_()}function is(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return!(t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i)?es:ts}const ss="function"==typeof Path2D;function ns(t,e,i,s){ss&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),Ji(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:o}=e,a=is(e);for(const r of n)Ji(t,o,r.style),t.beginPath(),a(t,e,r,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}class os extends si{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;mt(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=xt(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,o=bt(this,{property:e,start:s,end:s});if(!o.length)return;const a=[],r=function(t){return t.stepped?Et:t.tension||"monotone"===t.cubicInterpolationMode?zt:Rt}(i);let h,l;for(h=0,l=o.length;h<l;++h){const{start:l,end:c}=o[h],d=n[l],u=n[c];if(d===u){a.push(d);continue}const g=r(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);g[e]=t[e],a.push(g)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return is(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=is(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of s)o&=n(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),ns(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}const as=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],rs=as.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function hs(t){return as[t%as.length]}function ls(t){return rs[t%rs.length]}function cs(t){let e=0;return(i,s)=>{const n=t.getDatasetMeta(s).controller;n instanceof fe?e=function(t,e){return t.backgroundColor=t.data.map((()=>hs(e++))),e}(i,e):n instanceof pe?e=function(t,e){return t.backgroundColor=t.data.map((()=>ls(e++))),e}(i,e):n&&(e=function(t,e){return t.borderColor=hs(e),t.backgroundColor=ls(e),++e}(i,e))}}function ds(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var us={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,i,s){if(!s.enabled)return;const{data:{datasets:n},options:o}=t.config,{elements:a}=o,r=ds(n)||(h=o)&&(h.borderColor||h.backgroundColor)||a&&ds(a)||"rgba(0,0,0,0.1)"!==e.borderColor||"rgba(0,0,0,0.1)"!==e.backgroundColor;var h;if(!s.forceOverride&&r)return;const l=cs(t);n.forEach(l)}};function gs(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function fs(t){t.data.datasets.forEach((t=>{gs(t)}))}var ps={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void fs(t);const s=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:a,indexAxis:r}=e,h=t.getDatasetMeta(n),l=a||e.data;if("y"===Z([r,t.options.indexAxis]))return;if(!h.controller.supportsDecimation)return;const c=t.scales[h.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let{start:d,count:u}=function(t,e){const i=e.length;let s,n=0;const{iScale:o}=t,{min:a,max:r,minDefined:h,maxDefined:l}=o.getUserBounds();return h&&(n=B(_t(e,o.axis,a).lo,0,i-1)),s=l?B(_t(e,o.axis,r).hi+1,n,i)-n:i-n,{start:n,count:s}}(h,l);if(u<=(i.threshold||4*s))return void gs(e);let g;switch(o(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":g=function(t,e,i,s,n){const o=n.samples||s;if(o>=i)return t.slice(e,e+i);const a=[],r=(i-2)/(o-2);let h=0;const l=e+i-1;let c,d,u,g,f,p=e;for(a[h++]=t[p],c=0;c<o-2;c++){let s,n=0,o=0;const l=Math.floor((c+1)*r)+1+e,m=Math.min(Math.floor((c+2)*r)+1,i)+e,x=m-l;for(s=l;s<m;s++)n+=t[s].x,o+=t[s].y;n/=x,o/=x;const b=Math.floor(c*r)+1+e,_=Math.min(Math.floor((c+1)*r)+1,i)+e,{x:y,y:v}=t[p];for(u=g=-1,s=b;s<_;s++)g=.5*Math.abs((y-n)*(t[s].y-v)-(y-t[s].x)*(o-v)),g>u&&(u=g,d=t[s],f=s);a[h++]=d,p=f}return a[h++]=t[l],a}(l,d,u,s,i);break;case"min-max":g=function(t,e,i,s){let n,a,r,h,l,c,d,u,g,f,p=0,m=0;const x=[],b=e+i-1,_=t[e].x,y=t[b].x-_;for(n=e;n<e+i;++n){a=t[n],r=(a.x-_)/y*s,h=a.y;const e=0|r;if(e===l)h<g?(g=h,c=n):h>f&&(f=h,d=n),p=(m*p+a.x)/++m;else{const i=n-1;if(!o(c)&&!o(d)){const e=Math.min(c,d),s=Math.max(c,d);e!==u&&e!==i&&x.push({...t[e],x:p}),s!==u&&s!==i&&x.push({...t[s],x:p})}n>0&&i!==u&&x.push(t[i]),x.push(a),l=e,m=0,g=f=h,c=d=u=n}}return x}(l,d,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=g}))},destroy(t){fs(t)}};function ms(t,e,i,s){if(s)return;let n=e[t],o=i[t];return"angle"===t&&(n=T(n),o=T(o)),{property:t,start:n,end:o}}function xs(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function bs(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function _s(t,e){let i=[],s=!1;return W(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,o=[];return e.segments.forEach((({start:t,end:e})=>{e=xs(t,e,n);const a=n[t],r=n[e];null!==s?(o.push({x:a.x,y:s}),o.push({x:r.x,y:s})):null!==i&&(o.push({x:i,y:a.y}),o.push({x:i,y:r.y}))})),o}(t,e),i.length?new os({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function ys(t){return t&&!1!==t.fill}function vs(t,e,i){let s=t[e].fill;const n=[e];let o;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!S(s))return s;if(o=t[s],!o)return!1;if(o.visible)return s;n.push(s),s=o.fill}return!1}function ws(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=Y(i&&i.target,i);void 0===s&&(s=!!e.backgroundColor);if(!1===s||null===s)return!1;if(!0===s)return"origin";return s}(t);if(U(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return S(n)&&Math.floor(n)===n?function(t,e,i,s){"-"!==t&&"+"!==t||(i=e+i);if(i===e||i<0||i>=s)return!1;return i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Ms(t,e,i){const s=[];for(let n=0;n<i.length;n++){const o=i[n],{first:a,last:r,point:h}=ks(o,e,"x");if(!(!h||a&&r))if(a)s.unshift(h);else if(t.push(h),!r)break}t.push(...s)}function ks(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],o=t.segments,a=t.points;let r=!1,h=!1;for(let t=0;t<o.length;t++){const e=o[t],s=a[e.start][i],l=a[e.end][i];if(J(n,s,l)){r=n===s,h=n===l;break}}return{first:r,last:h,point:s}}class Ds{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:o}=this;return e=e||{start:0,end:w},t.arc(s,n,o,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function Ss(t){const{chart:e,fill:i,line:s}=t;if(S(i))return function(t,e){const i=t.getDatasetMeta(e),s=i&&t.isDatasetVisible(e);return s?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],o=s.segments,a=s.points,r=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);r.push(_s({x:null,y:e.bottom},s));for(let t=0;t<o.length;t++){const e=o[t];for(let t=e.start;t<=e.end;t++)Ms(n,a[t],r)}return new os({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){const e=t.scale||{};if(e.getPointPositionForValue)return function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,o=s.reverse?e.max:e.min,a=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:U(t)?t.value:e.getBaseValue(),s}(i,e,o),r=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,o);return new Ds({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)r.push(e.getPointPositionForValue(t,a));return r}(t);return function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:U(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(S(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof Ds?n:_s(n,s)}function Cs(t,e,i){const s=Ss(e),{line:n,scale:o,axis:a}=e,r=n.options,h=r.fill,l=r.backgroundColor,{above:c=l,below:d=l}=h||{};s&&n.points.length&&(g(t,i),function(t,e){const{line:i,target:s,above:n,below:o,area:a,scale:r}=e,h=i._loop?"angle":e.axis;t.save(),"x"===h&&o!==n&&(As(t,s,a.top),Ps(t,{line:i,target:s,color:n,scale:r,property:h}),t.restore(),t.save(),As(t,s,a.bottom));Ps(t,{line:i,target:s,color:o,scale:r,property:h}),t.restore()}(t,{line:n,target:s,above:c,below:d,area:i,scale:o,axis:a}),f(t))}function As(t,e,i){const{segments:s,points:n}=e;let o=!0,a=!1;t.beginPath();for(const r of s){const{start:s,end:h}=r,l=n[s],c=n[xs(s,h,n)];o?(t.moveTo(l.x,l.y),o=!1):(t.lineTo(l.x,i),t.lineTo(l.x,l.y)),a=!!e.pathSegment(t,r,{move:a}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ps(t,e){const{line:i,target:s,property:n,color:o,scale:a}=e,r=function(t,e,i){const s=t.segments,n=t.points,o=e.points,a=[];for(const t of s){let{start:s,end:r}=t;r=xs(s,r,n);const h=ms(i,n[s],n[r],t.loop);if(!e.segments){a.push({source:t,target:h,start:n[s],end:n[r]});continue}const l=bt(e,h);for(const e of l){const s=ms(i,o[e.start],o[e.end],e.loop),r=Ft(t,n,s);for(const t of r)a.push({source:t,target:e,start:{[i]:bs(h,s,"start",Math.max)},end:{[i]:bs(h,s,"end",Math.min)}})}}return a}(i,s,n);for(const{source:e,target:h,start:l,end:c}of r){const{style:{backgroundColor:r=o}={}}=e,d=!0!==s;t.save(),t.fillStyle=r,Ls(t,a,d&&ms(n,l,c)),t.beginPath();const u=!!i.pathSegment(t,e);let g;if(d){u?t.closePath():Ts(t,s,c,n);const e=!!s.pathSegment(t,h,{move:u,reverse:!0});g=u&&e,g||Ts(t,s,l,n)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function Ls(t,e,i){const{top:s,bottom:n}=e.chart.chartArea,{property:o,start:a,end:r}=i||{};"x"===o&&(t.beginPath(),t.rect(a,s,r-a,n-s),t.clip())}function Ts(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var Os={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let o,a,r,h;for(a=0;a<s;++a)o=t.getDatasetMeta(a),r=o.dataset,h=null,r&&r.options&&r instanceof os&&(h={visible:t.isDatasetVisible(a),index:a,fill:ws(r,a,s),chart:t,axis:o.controller.options.indexAxis,scale:o.vScale,line:r}),o.$filler=h,n.push(h);for(a=0;a<s;++a)h=n[a],h&&!1!==h.fill&&(h.fill=vs(n,a,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),o=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(o,i.axis),s&&i.fill&&Cs(t.ctx,i,o))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;ys(i)&&Cs(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;ys(s)&&"beforeDatasetDraw"===i.drawTime&&Cs(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Is=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class Es extends si{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=h(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,i)=>t.sort(e,i,this.chart.data)))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=I(i.font),n=s.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:r}=Is(i,n);let h,l;e.font=s.string,this.isHorizontal()?(h=this.maxWidth,l=this._fitRows(o,n,a,r)+10):(l=this.maxHeight,h=this._fitCols(o,s,a,r)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(l,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.lineWidths=[0],l=s+a;let c=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-l;return this.legendItems.forEach(((t,g)=>{const f=i+e/2+n.measureText(t.text).width;(0===g||h[h.length-1]+f+2*a>o)&&(c+=l,h[h.length-(g>0?0:1)]=0,u+=l,d++),r[g]={left:0,top:u,row:d,width:f,height:s},h[h.length-1]+=f+a})),c}_fitCols(t,e,i,s){const{ctx:n,maxHeight:o,options:{labels:{padding:a}}}=this,r=this.legendHitBoxes=[],h=this.columnSizes=[],l=o-t;let c=a,d=0,u=0,g=0,f=0;return this.legendItems.forEach(((t,o)=>{const{itemWidth:p,itemHeight:m}=function(t,e,i,s,n){const o=function(t,e,i,s){let n=t.text;n&&"string"!=typeof n&&(n=n.reduce(((t,e)=>t.length>e.length?t:e)));return e+i.size/2+s.measureText(n).width}(s,t,e,i),a=function(t,e,i){let s=t;"string"!=typeof e.text&&(s=zs(e,i));return s}(n,s,e.lineHeight);return{itemWidth:o,itemHeight:a}}(i,e,n,t,s);o>0&&u+m+2*a>l&&(c+=d+a,h.push({width:d,height:u}),g+=d+a,f++,d=u=0),r[o]={left:g,top:u,col:f,width:p,height:m},d=Math.max(d,p),u+=m+a})),c+=d,h.push({width:d,height:u}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,o=Q(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=tt(i,this.left+s,this.right-this.lineWidths[n]);for(const r of e)n!==r.row&&(n=r.row,a=tt(i,this.left+s,this.right-this.lineWidths[n])),r.top+=this.top+t+s,r.left=o.leftForLtr(o.x(a),r.width),a+=r.width+s}else{let n=0,a=tt(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const r of e)r.col!==n&&(n=r.col,a=tt(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),r.top=a,r.left+=this.left+s,r.left=o.leftForLtr(o.x(r.left),r.width),a+=r.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;g(t,this),this._draw(),f(t)}}_draw(){const{options:t,columnSizes:i,lineWidths:s,ctx:n}=this,{align:o,labels:a}=t,r=e.color,h=Q(t.rtl,this.left,this.width),l=I(a.font),{padding:c}=a,d=l.size,u=d/2;let g;this.drawTitle(),n.textAlign=h.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=l.string;const{boxWidth:f,boxHeight:p,itemHeight:m}=Is(a,d),x=this.isHorizontal(),b=this._computeTitleHeight();g=x?{x:tt(o,this.left+c,this.right-s[0]),y:this.top+c+b,line:0}:{x:this.left+c,y:tt(o,this.top+b+c,this.bottom-i[0].height),line:0},et(this.ctx,t.textDirection);const _=m+c;this.legendItems.forEach(((e,y)=>{n.strokeStyle=e.fontColor,n.fillStyle=e.fontColor;const v=n.measureText(e.text).width,w=h.textAlign(e.textAlign||(e.textAlign=a.textAlign)),M=f+u+v;let k=g.x,D=g.y;h.setWidth(this.width),x?y>0&&k+M+c>this.right&&(D=g.y+=_,g.line++,k=g.x=tt(o,this.left+c,this.right-s[g.line])):y>0&&D+_>this.bottom&&(k=g.x=k+i[g.line].width+c,g.line++,D=g.y=tt(o,this.top+b+c,this.bottom-i[g.line].height));if(function(t,e,i){if(isNaN(f)||f<=0||isNaN(p)||p<0)return;n.save();const s=Y(i.lineWidth,1);if(n.fillStyle=Y(i.fillStyle,r),n.lineCap=Y(i.lineCap,"butt"),n.lineDashOffset=Y(i.lineDashOffset,0),n.lineJoin=Y(i.lineJoin,"miter"),n.lineWidth=s,n.strokeStyle=Y(i.strokeStyle,r),n.setLineDash(Y(i.lineDash,[])),a.usePointStyle){const o={radius:p*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:s},r=h.xPlus(t,f/2);yt(n,o,r,e+u,a.pointStyleWidth&&f)}else{const o=e+Math.max((d-p)/2,0),a=h.leftForLtr(t,f),r=rt(i.borderRadius);n.beginPath(),Object.values(r).some((t=>0!==t))?lt(n,{x:a,y:o,w:f,h:p,radius:r}):n.rect(a,o,f,p),n.fill(),0!==s&&n.stroke()}n.restore()}(h.x(k),D,e),k=it(w,k+f+u,x?k+M:this.right,t.rtl),function(t,e,i){E(n,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})}(h.x(k),D,e),x)g.x+=M+c;else if("string"!=typeof e.text){const t=l.lineHeight;g.y+=zs(e,t)+c}else g.y+=_})),st(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=I(e.font),s=k(e.padding);if(!e.display)return;const n=Q(t.rtl,this.left,this.width),o=this.ctx,a=e.position,r=i.size/2,h=s.top+r;let l,c=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),l=this.top+h,c=tt(t.align,c,this.right-d);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);l=h+tt(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=tt(a,c,c+d);o.textAlign=n.textAlign(nt(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,E(o,e.text,u,l,i)}_computeTitleHeight(){const t=this.options.title,e=I(t.font),i=k(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(J(t,this.left,this.right)&&J(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],J(t,s.left,s.left+s.width)&&J(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){if(("mousemove"===t||"mouseout"===t)&&(e.onHover||e.onLeave))return!0;if(e.onClick&&("click"===t||"mouseup"===t))return!0;return!1}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const o=this._hoveredItem,a=(n=i,null!==(s=o)&&null!==n&&s.datasetIndex===n.datasetIndex&&s.index===n.index);o&&!a&&h(e.onLeave,[t,o,this],this),this._hoveredItem=i,i&&!a&&h(e.onHover,[t,i,this],this)}else i&&h(e.onClick,[t,i,this],this);var s,n}}function zs(t,e){return e*(t.text?t.text.length:0)}var Rs={id:"legend",_element:Es,start(t,e,i){const s=t.legend=new Es({ctx:t.ctx,options:i,chart:t});Ve.configure(t,s,i),Ve.addBox(t,s)},stop(t){Ve.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Ve.configure(t,s,i),s.options=i},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:n,color:o,useBorderRadius:a,borderRadius:r}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const h=t.controller.getStyle(i?0:void 0),l=k(h.borderWidth);return{text:e[t.index].label,fillStyle:h.backgroundColor,fontColor:o,hidden:!t.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:h.borderColor,pointStyle:s||h.pointStyle,rotation:h.rotation,textAlign:n||h.textAlign,borderRadius:a&&(r||h.borderRadius),datasetIndex:t.index}}),this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class Fs extends si{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=W(i.text)?i.text.length:1;this._padding=k(i.padding);const n=s*I(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:o}=this,a=o.align;let r,h,l,c=0;return this.isHorizontal()?(h=tt(a,i,n),l=e+t,r=n-i):("left"===o.position?(h=i+t,l=tt(a,s,e),c=-.5*M):(h=n-t,l=tt(a,e,s),c=.5*M),r=s-e),{titleX:h,titleY:l,maxWidth:r,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=I(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:o,maxWidth:a,rotation:r}=this._drawArgs(s);E(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:r,textAlign:nt(e.align),textBaseline:"middle",translation:[n,o]})}}var Vs={id:"title",_element:Fs,start(t,e,i){!function(t,e){const i=new Fs({ctx:t.ctx,options:e,chart:t});Ve.configure(t,i,e),Ve.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Ve.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Ve.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Bs=new WeakMap;var Hs={id:"subtitle",start(t,e,i){const s=new Fs({ctx:t.ctx,options:i,chart:t});Ve.configure(t,s,i),Ve.addBox(t,s),Bs.set(t,s)},stop(t){Ve.removeBox(t,Bs.get(t)),Bs.delete(t)},beforeUpdate(t,e,i){const s=Bs.get(t);Ve.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ws={average(t){if(!t.length)return!1;let e,i,s=new Set,n=0,o=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s.add(t.x),n+=t.y,++o}}if(0===o||0===s.size)return!1;return{x:[...s].reduce(((t,e)=>t+e))/s.size,y:n/o}},nearest(t,e){if(!t.length)return!1;let i,s,n,o=e.x,a=e.y,r=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=s.getCenterPoint(),i=ot(e,t);i<r&&(r=i,n=s)}}if(n){const t=n.tooltipPosition();o=t.x,a=t.y}return{x:o,y:a}}};function Ns(t,e){return e&&(W(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function js(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function $s(t,e){const{element:i,datasetIndex:s,index:n}=e,o=t.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:t,label:a,parsed:o.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function Us(t,e){const i=t.chart.ctx,{body:s,footer:n,title:o}=t,{boxWidth:a,boxHeight:r}=e,h=I(e.bodyFont),c=I(e.titleFont),d=I(e.footerFont),u=o.length,g=n.length,f=s.length,p=k(e.padding);let m=p.height,x=0,b=s.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);if(b+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*c.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),b){m+=f*(e.displayColors?Math.max(r,h.lineHeight):h.lineHeight)+(b-f)*h.lineHeight+(b-1)*e.bodySpacing}g&&(m+=e.footerMarginTop+g*d.lineHeight+(g-1)*e.footerSpacing);let _=0;const y=function(t){x=Math.max(x,i.measureText(t).width+_)};return i.save(),i.font=c.string,l(t.title,y),i.font=h.string,l(t.beforeBody.concat(t.afterBody),y),_=e.displayColors?a+2+e.boxPadding:0,l(s,(t=>{l(t.before,y),l(t.lines,y),l(t.after,y)})),_=0,i.font=d.string,l(t.footer,y),i.restore(),x+=p.width,{width:x,height:m}}function Ys(t,e,i,s){const{x:n,width:o}=i,{width:a,chartArea:{left:r,right:h}}=t;let l="center";return"center"===s?l=n<=(r+h)/2?"left":"right":n<=o/2?l="left":n>=a-o/2&&(l="right"),function(t,e,i,s){const{x:n,width:o}=s,a=i.caretSize+i.caretPadding;return"left"===t&&n+o+a>e.width||"right"===t&&n-o-a<0||void 0}(l,t,e,i)&&(l="center"),l}function Xs(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||Ys(t,e,i,s),yAlign:s}}function Ks(t,e,i,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=t,{xAlign:r,yAlign:h}=i,l=n+o,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:g}=rt(a);let f=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,r);const p=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,h,l);return"center"===h?"left"===r?f+=l:"right"===r&&(f-=l):"left"===r?f-=Math.max(c,u)+n:"right"===r&&(f+=Math.max(d,g)+n),{x:B(f,0,s.width-e.width),y:B(p,0,s.height-e.height)}}function qs(t,e,i){const s=k(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function Gs(t){return Ns([],js(t))}function Js(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const Zs={beforeTitle:at,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:at,beforeBody:at,beforeLabel:at,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return o(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:at,afterBody:at,beforeFooter:at,footer:at,afterFooter:at};function Qs(t,e,i,s){const n=t[e].call(i,s);return void 0===n?Zs[e].call(i,s):n}class tn extends si{static positioners=Ws;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ee(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=(t=this.chart.getContext(),e=this,i=this._tooltipItems,m(t,{tooltip:e,tooltipItems:i,type:"tooltip"})));var t,e,i}getTitle(t,e){const{callbacks:i}=e,s=Qs(i,"beforeTitle",this,t),n=Qs(i,"title",this,t),o=Qs(i,"afterTitle",this,t);let a=[];return a=Ns(a,js(s)),a=Ns(a,js(n)),a=Ns(a,js(o)),a}getBeforeBody(t,e){return Gs(Qs(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return l(t,(t=>{const e={before:[],lines:[],after:[]},n=Js(i,t);Ns(e.before,js(Qs(n,"beforeLabel",this,t))),Ns(e.lines,Qs(n,"label",this,t)),Ns(e.after,js(Qs(n,"afterLabel",this,t))),s.push(e)})),s}getAfterBody(t,e){return Gs(Qs(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=Qs(i,"beforeFooter",this,t),n=Qs(i,"footer",this,t),o=Qs(i,"afterFooter",this,t);let a=[];return a=Ns(a,js(s)),a=Ns(a,js(n)),a=Ns(a,js(o)),a}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],o=[];let a,r,h=[];for(a=0,r=e.length;a<r;++a)h.push($s(this.chart,e[a]));return t.filter&&(h=h.filter(((e,s,n)=>t.filter(e,s,n,i)))),t.itemSort&&(h=h.sort(((e,s)=>t.itemSort(e,s,i)))),l(h,(e=>{const i=Js(t.callbacks,e);s.push(Qs(i,"labelColor",this,e)),n.push(Qs(i,"labelPointStyle",this,e)),o.push(Qs(i,"labelTextColor",this,e))})),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=o,this.dataPoints=h,h}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,o=[];if(s.length){const t=Ws[i.position].call(this,s,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const e=this._size=Us(this,i),a=Object.assign({},t,e),r=Xs(this.chart,i,a),h=Ks(i,a,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,n={opacity:1,x:h.x,y:h.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=o,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:r,topRight:h,bottomLeft:l,bottomRight:c}=rt(a),{x:d,y:u}=t,{width:g,height:f}=e;let p,m,x,b,_,y;return"center"===n?(_=u+f/2,"left"===s?(p=d,m=p-o,b=_+o,y=_-o):(p=d+g,m=p+o,b=_-o,y=_+o),x=p):(m="left"===s?d+Math.max(r,l)+o:"right"===s?d+g-Math.max(h,c)-o:this.caretX,"top"===n?(b=u,_=b-o,p=m-o,x=m+o):(b=u+f,_=b+o,p=m+o,x=m-o),y=b),{x1:p,x2:m,x3:x,y1:b,y2:_,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let o,a,r;if(n){const h=Q(i.rtl,this.x,this.width);for(t.x=qs(this,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",o=I(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,r=0;r<n;++r)e.fillText(s[r],h.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,r+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,n){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:r,boxWidth:h}=n,l=I(n.bodyFont),c=qs(this,"left",n),d=s.x(c),u=r<l.lineHeight?(l.lineHeight-r)/2:0,g=e.y+u;if(n.usePointStyle){const e={radius:Math.min(h,r)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=s.leftForLtr(d,h)+h/2,l=g+r/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,ht(t,e,i,l),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,ht(t,e,i,l)}else{t.lineWidth=U(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const e=s.leftForLtr(d,h),i=s.leftForLtr(s.xPlus(d,1),h-2),a=rt(o.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,lt(t,{x:e,y:g,w:h,h:r,radius:a}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),lt(t,{x:i,y:g+1,w:h-2,h:r-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,g,h,r),t.strokeRect(e,g,h,r),t.fillStyle=o.backgroundColor,t.fillRect(i,g+1,h-2,r-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:o,displayColors:a,boxHeight:r,boxWidth:h,boxPadding:c}=i,d=I(i.bodyFont);let u=d.lineHeight,g=0;const f=Q(i.rtl,this.x,this.width),p=function(i){e.fillText(i,f.x(t.x+g),t.y+u/2),t.y+=u+n},m=f.textAlign(o);let x,b,_,y,v,w,M;for(e.textAlign=o,e.textBaseline="middle",e.font=d.string,t.x=qs(this,m,i),e.fillStyle=i.bodyColor,l(this.beforeBody,p),g=a&&"right"!==m?"center"===o?h/2+c:h+2+c:0,y=0,w=s.length;y<w;++y){for(x=s[y],b=this.labelTextColors[y],e.fillStyle=b,l(x.before,p),_=x.lines,a&&_.length&&(this._drawColorBox(e,t,y,f,i),u=Math.max(d.lineHeight,r)),v=0,M=_.length;v<M;++v)p(_[v]),u=d.lineHeight;l(x.after,p)}g=0,u=d.lineHeight,l(this.afterBody,p),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let o,a;if(n){const r=Q(i.rtl,this.x,this.width);for(t.x=qs(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=r.textAlign(i.footerAlign),e.textBaseline="middle",o=I(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<n;++a)e.fillText(s[a],r.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:o}=this,{x:a,y:r}=t,{width:h,height:l}=i,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:g}=rt(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+c,r),"top"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+h-d,r),e.quadraticCurveTo(a+h,r,a+h,r+d),"center"===o&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(a+h,r+l-g),e.quadraticCurveTo(a+h,r+l,a+h-g,r+l),"bottom"===o&&this.drawCaret(t,e,i,s),e.lineTo(a+u,r+l),e.quadraticCurveTo(a,r+l,a,r+l-u),"center"===o&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(a,r+c),e.quadraticCurveTo(a,r,a+c,r),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Ws[t.position].call(this,this._active,this._eventPosition);if(!i)return;const o=this._size=Us(this,t),a=Object.assign({},i,this._size),r=Xs(e,t,a),h=Ks(t,a,r,e);s._to===h.x&&n._to===h.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=o.width,this.height=o.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=k(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),et(t,e.textDirection),n.y+=o.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),st(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!b(i,s),o=this._positionChanged(s,e);(n||o)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],o=this._getActiveElements(t,n,e,i),a=this._positionChanged(o,t),r=e||!b(o,n)||a;return r&&(this._active=o,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const o=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,o=Ws[n.position].call(this,t,e);return!1!==o&&(i!==o.x||s!==o.y)}}var en={id:"tooltip",_element:tn,positioners:Ws,afterInit(t,e,i){i&&(t.tooltip=new tn({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Zs},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},sn=Object.freeze({__proto__:null,Colors:us,Decimation:ps,Filler:Os,Legend:Rs,SubTitle:Hs,Title:Vs,Tooltip:en});function nn(t,e,{horizontal:i,minRotation:s}){const n=C(s),o=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/o,a)}class on extends gi{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return o(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const o=t=>s=e?s:t,a=t=>n=i?n:t;if(t){const t=Bt(s),e=Bt(n);t<0&&e<0?a(0):t>0&&e>0&&o(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);a(n+e),t||o(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:a,max:r,precision:h,count:l,maxTicks:c,maxDigits:d,includeBounds:u}=t,g=n||1,f=c-1,{min:p,max:m}=e,x=!o(a),b=!o(r),_=!o(l),y=(m-p)/(d+1);let v,w,M,k,D=vt((m-p)/f/g)*g;if(D<1e-14&&!x&&!b)return[{value:p},{value:m}];k=Math.ceil(m/D)-Math.floor(p/D),k>f&&(D=vt(k*D/f/g)*g),o(h)||(v=Math.pow(10,h),D=Math.ceil(D*v)/v),"ticks"===s?(w=Math.floor(p/D)*D,M=Math.ceil(m/D)*D):(w=p,M=m),x&&b&&n&&wt((r-a)/n,D/1e3)?(k=Math.round(Math.min((r-a)/D,c)),D=(r-a)/k,w=a,M=r):_?(w=x?a:w,M=b?r:M,k=l-1,D=(M-w)/k):(k=(M-w)/D,k=Mt(k,Math.round(k),D/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Vt(D),Vt(w));v=Math.pow(10,o(h)?S:h),w=Math.round(w*v)/v,M=Math.round(M*v)/v;let C=0;for(x&&(u&&w!==a?(i.push({value:a}),w<a&&C++,Mt(Math.round((w+C*D)*v)/v,a,nn(a,y,t))&&C++):w<a&&C++);C<k;++C){const t=Math.round((w+C*D)*v)/v;if(b&&t>r)break;i.push({value:t})}return b&&u&&M!==r?i.length&&Mt(i[i.length-1].value,r,nn(r,y,t))?i[i.length-1].value=r:i.push({value:r}):b&&M!==r||i.push({value:M}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&A(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return P(t,this.chart.options.locale,this.options.ticks.format)}}class an extends on{static id="linear";static defaults={ticks:{callback:D.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=S(t)?t:0,this.max=S(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=C(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const rn=t=>Math.floor(L(t)),hn=(t,e)=>Math.pow(10,rn(t)+e);function ln(t){return 1===t/Math.pow(10,rn(t))}function cn(t,e,i){const s=Math.pow(10,i),n=Math.floor(t/s);return Math.ceil(e/s)-n}function dn(t,{min:e,max:i}){e=F(t.min,e);const s=[],n=rn(e);let o=function(t,e){let i=rn(e-t);for(;cn(t,e,i)>10;)i++;for(;cn(t,e,i)<10;)i--;return Math.min(i,rn(t))}(e,i),a=o<0?Math.pow(10,Math.abs(o)):1;const r=Math.pow(10,o),h=n>o?Math.pow(10,n):0,l=Math.round((e-h)*a)/a,c=Math.floor((e-h)/r/10)*r*10;let d=Math.floor((l-c)/Math.pow(10,o)),u=F(t.min,Math.round((h+c+d*Math.pow(10,o))*a)/a);for(;u<i;)s.push({value:u,major:ln(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,a=o>=0?1:a),u=Math.round((h+c+d*Math.pow(10,o))*a)/a;const g=F(t.max,u);return s.push({value:g,major:ln(g),significand:d}),s}class un extends gi{static id="logarithmic";static defaults={ticks:{callback:D.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=on.prototype.parse.apply(this,[t,e]);if(0!==i)return S(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=S(t)?Math.max(0,t):null,this.max=S(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!S(this._userMin)&&(this.min=t===hn(this.min,0)?hn(this.min,-1):hn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,o=t=>s=e?s:t;i===s&&(i<=0?(n(1),o(10)):(n(hn(i,-1)),o(hn(s,1)))),i<=0&&n(hn(s,-1)),s<=0&&o(hn(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=dn({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&A(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":P(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=L(t),this._valueRange=L(this.max)-L(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(L(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function gn(t){const i=t.ticks;if(i.display&&t.display){const t=k(i.backdropPadding);return Y(i.font&&i.font.size,e.font.size)+t.height}return 0}function fn(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function pn(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],o=t._pointLabels.length,a=t.options.pointLabels,r=a.centerPointLabels?M/o:0;for(let d=0;d<o;d++){const o=a.setContext(t.getPointLabelContext(d));n[d]=o.padding;const u=t.getPointPosition(d,t.drawingArea+n[d],r),g=I(o.font),f=(h=t.ctx,l=g,c=t._pointLabels[d],c=W(c)?c:[c],{w:kt(h,l.string,c),h:c.length*l.lineHeight});s[d]=f;const p=T(t.getIndexAngle(d)+r),m=Math.round(H(p));mn(i,e,p,fn(m,u.x,f.w,0,180),fn(m,u.y,f.h,90,270))}var h,l,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,o=t.options,{centerPointLabels:a,display:r}=o.pointLabels,h={extra:gn(o)/2,additionalAngle:a?M/n:0};let l;for(let o=0;o<n;o++){h.padding=i[o],h.size=e[o];const n=xn(t,o,h);s.push(n),"auto"===r&&(n.visible=bn(n,l),n.visible&&(l=n))}return s}(t,s,n)}function mn(t,e,i,s,n){const o=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let r=0,h=0;s.start<e.l?(r=(e.l-s.start)/o,t.l=Math.min(t.l,e.l-r)):s.end>e.r&&(r=(s.end-e.r)/o,t.r=Math.max(t.r,e.r+r)),n.start<e.t?(h=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-h)):n.end>e.b&&(h=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+h))}function xn(t,e,i){const s=t.drawingArea,{extra:n,additionalAngle:o,padding:a,size:r}=i,h=t.getPointPosition(e,s+n+a,o),l=Math.round(H(T(h.angle+O))),c=function(t,e,i){90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e);return t}(h.y,r.h,l),d=function(t){if(0===t||180===t)return"center";if(t<180)return"left";return"right"}(l),u=function(t,e,i){"right"===i?t-=e:"center"===i&&(t-=e/2);return t}(h.x,r.w,d);return{visible:!0,x:h.x,y:c,textAlign:d,left:u,top:c,right:u+r.w,bottom:c+r.h}}function bn(t,e){if(!e)return!0;const{left:i,top:s,right:n,bottom:o}=t;return!(p({x:i,y:s},e)||p({x:i,y:o},e)||p({x:n,y:s},e)||p({x:n,y:o},e))}function _n(t,e,i){const{left:s,top:n,right:a,bottom:r}=i,{backdropColor:h}=e;if(!o(h)){const i=rt(e.borderRadius),o=k(e.backdropPadding);t.fillStyle=h;const l=s-o.left,c=n-o.top,d=a-s+o.width,u=r-n+o.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),lt(t,{x:l,y:c,w:d,h:u,radius:i}),t.fill()):t.fillRect(l,c,d,u)}}function yn(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,w);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let o=1;o<s;o++)i=t.getPointPosition(o,e),n.lineTo(i.x,i.y)}}class vn extends on{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:D.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=k(gn(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=S(t)&&!isNaN(t)?t:0,this.max=S(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/gn(this.options))}generateTickLabels(t){on.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=h(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?pn(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){const e=w/(this._pointLabels.length||1),i=this.options.startAngle||0;return T(t*e+C(i))}getDistanceFromCenterForValue(t){if(o(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(o(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return m(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-O+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),yn(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s,border:n}=e,o=this._pointLabels.length;let a,r,h;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=t._pointLabelItems[n];if(!e.visible)continue;const o=s.setContext(t.getPointLabelContext(n));_n(i,o,e);const a=I(o.font),{x:r,y:h,textAlign:l}=e;E(i,t._pointLabels[n],r,h+a.lineHeight/2,a,{color:o.color,textAlign:l,textBaseline:"middle"})}}(this,o),s.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){r=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),a=s.setContext(i),h=n.setContext(i);!function(t,e,i,s,n){const o=t.ctx,a=e.circular,{color:r,lineWidth:h}=e;!a&&!s||!r||!h||i<0||(o.save(),o.strokeStyle=r,o.lineWidth=h,o.setLineDash(n.dash||[]),o.lineDashOffset=n.dashOffset,o.beginPath(),yn(t,i,a,s),o.closePath(),o.stroke(),o.restore())}(this,a,r,o,h)}})),i.display){for(t.save(),a=o-1;a>=0;a--){const s=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:o}=s;o&&n&&(t.lineWidth=o,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,r=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),h=this.getPointPosition(a,r),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((s,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const r=i.setContext(this.getContext(a)),h=I(r.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),r.showLabelBackdrop){t.font=h.string,o=t.measureText(s.label).width,t.fillStyle=r.backdropColor;const e=k(r.backdropPadding);t.fillRect(-o/2-e.left,-n-h.size/2-e.top,o+e.width,h.size+e.height)}E(t,s.label,0,-n,h,{color:r.color,strokeColor:r.textStrokeColor,strokeWidth:r.textStrokeWidth})})),t.restore()}drawTitle(){}}const wn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Mn=Object.keys(wn);function kn(t,e){return t-e}function Dn(t,e){if(o(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof s&&(r=s(r)),S(r)||(r="string"==typeof s?i.parse(r,s):i.parse(r)),null===r?null:(n&&(r="week"!==n||!R(a)&&!0!==a?i.startOf(r,n):i.startOf(r,"isoWeek",a)),+r)}function Sn(t,e,i,s){const n=Mn.length;for(let o=Mn.indexOf(t);o<n-1;++o){const t=wn[Mn[o]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Mn[o]}return Mn[n-1]}function Cn(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=Ht(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function An(t,e,i){const s=[],n={},o=e.length;let a,r;for(a=0;a<o;++a)r=e[a],n[r]=a,s.push({value:r,major:!1});return 0!==o&&i?function(t,e,i,s){const n=t._adapter,o=+n.startOf(e[0].value,s),a=e[e.length-1].value;let r,h;for(r=o;r<=a;r=+n.add(r,1,s))h=i[r],h>=0&&(e[h].major=!0);return e}(t,s,n,i):s}class Pn extends gi{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),s=this._adapter=new be._date(t.adapters.date);s.init(e),Dt(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Dn(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:o,maxDefined:a}=this.getUserBounds();function r(t){o||isNaN(t.min)||(s=Math.min(s,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}o&&a||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),s=S(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=S(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,o=this.max,a=St(s,n,o);return this._unit=e.unit||(i.autoSkip?Sn(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let o=Mn.length-1;o>=Mn.indexOf(i);o--){const i=Mn[o];if(wn[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Mn[i?Mn.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Mn.indexOf(t)+1,i=Mn.length;e<i;++e)if(wn[Mn[e]].common)return Mn[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&a.reverse(),An(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;s=B(s,0,o),n=B(n,0,o),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,o=n.unit||Sn(n.minUnit,e,i,this._getLabelCapacity(e)),a=Y(s.ticks.stepSize,1),r="week"===o&&n.isoWeekday,h=R(r)||!0===r,l={};let c,d,u=e;if(h&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,h?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const g="data"===s.ticks.source&&this.getDataTimestamps();for(c=u,d=0;c<i;c=+t.add(c,a,o),d++)Cn(l,c,g);return c!==i&&"ticks"!==s.bounds&&1!==d||Cn(l,c,g),Object.keys(l).sort(kn).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,s=this._unit,n=e||i[s];return this._adapter.format(t,n)}_tickFormatFunction(t,e,i,s){const n=this.options,o=n.ticks.callback;if(o)return h(o,[t,e,i],this);const a=n.time.displayFormats,r=this._unit,l=this._majorUnit,c=r&&a[r],d=l&&a[l],u=i[e],g=l&&d&&u&&u.major;return this._adapter.format(t,s||(g?d:c))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=C(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),o=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*o,h:i*o+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,An(this,[t],this._majorUnit),s),o=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Dn(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Ct(t.sort(kn))}}function Ln(t,e,i){let s,n,o,a,r=0,h=t.length-1;i?(e>=t[r].pos&&e<=t[h].pos&&({lo:r,hi:h}=_t(t,"pos",e)),({pos:s,time:o}=t[r]),({pos:n,time:a}=t[h])):(e>=t[r].time&&e<=t[h].time&&({lo:r,hi:h}=_t(t,"time",e)),({time:s,pos:o}=t[r]),({time:n,pos:a}=t[h]));const l=n-s;return l?o+(a-o)*(e-s)/l:o}class Tn extends Pn{static id="timeseries";static defaults=Pn.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Ln(e,this.min),this._tableRange=Ln(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let o,a,r,h,l;for(o=0,a=t.length;o<a;++o)h=t[o],h>=e&&h<=i&&s.push(h);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=s.length;o<a;++o)l=s[o+1],r=s[o-1],h=s[o],Math.round((l+r)/2)!==h&&n.push({time:h,pos:o/(a-1)});return n}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Ln(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Ln(this._table,i*this._tableRange+this._minPos,!0)}}export{te as Animation,ee as Animations,Gi as ArcElement,Be as BasePlatform,He as BasicPlatform,$i as Chart,us as Colors,ge as DatasetController,ps as Decimation,ei as DomPlatform,fe as DoughnutController,si as Element,Os as Filler,De as Interaction,Rs as Legend,os as LineElement,an as LinearScale,un as LogarithmicScale,pe as PolarAreaController,vn as RadialLinearScale,gi as Scale,Hs as SubTitle,Pn as TimeScale,Tn as TimeSeriesScale,Vs as Title,en as Tooltip,be as _adapters,ii as _detectPlatform,Jt as animator,Ve as layouts,sn as plugins,mi as registry};
8
+ //# sourceMappingURL=chart.mjs.map