@primer/components 29.0.0-rc.f749c85e → 29.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (856) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/dist/browser.esm.js +240 -194
  3. package/dist/browser.esm.js.map +1 -1
  4. package/dist/browser.umd.js +339 -293
  5. package/dist/browser.umd.js.map +1 -1
  6. package/lib/ActionList/Divider.js +1 -1
  7. package/lib/ActionList/Header.js +2 -2
  8. package/lib/ActionList/Item.js +10 -10
  9. package/lib/ActionList/List.js +1 -1
  10. package/lib/AvatarPair.js +1 -1
  11. package/lib/AvatarStack.js +1 -1
  12. package/lib/BranchName.js +1 -1
  13. package/lib/Breadcrumb.js +2 -2
  14. package/lib/Button/Button.js +1 -1
  15. package/lib/Button/ButtonClose.js +1 -1
  16. package/lib/Button/ButtonInvisible.js +1 -1
  17. package/lib/Button/ButtonTableList.js +1 -1
  18. package/lib/CircleBadge.js +1 -1
  19. package/lib/CircleOcticon.js +1 -1
  20. package/lib/CounterLabel.js +2 -2
  21. package/lib/Dialog/ConfirmationDialog.js +1 -1
  22. package/lib/Dialog/Dialog.js +5 -5
  23. package/lib/Dialog.js +4 -4
  24. package/lib/Dropdown.js +2 -2
  25. package/lib/DropdownStyles.js +6 -6
  26. package/lib/FilterList.js +1 -1
  27. package/lib/FilteredActionList/FilteredActionList.js +2 -2
  28. package/lib/Flash.js +1 -1
  29. package/lib/Label.js +2 -2
  30. package/lib/Link.js +1 -1
  31. package/lib/Overlay.js +1 -1
  32. package/lib/Pagehead.js +1 -1
  33. package/lib/Pagination/Pagination.js +1 -1
  34. package/lib/Popover.js +1 -1
  35. package/lib/ProgressBar.js +1 -1
  36. package/lib/SelectMenu/SelectMenuDivider.js +1 -1
  37. package/lib/SelectMenu/SelectMenuFilter.js +1 -1
  38. package/lib/SelectMenu/SelectMenuFooter.js +1 -1
  39. package/lib/SelectMenu/SelectMenuHeader.js +2 -2
  40. package/lib/SelectMenu/SelectMenuItem.js +1 -1
  41. package/lib/SelectMenu/SelectMenuList.js +1 -1
  42. package/lib/SelectMenu/SelectMenuLoadingAnimation.js +1 -1
  43. package/lib/SelectMenu/SelectMenuModal.js +2 -2
  44. package/lib/SelectMenu/SelectMenuTab.js +1 -1
  45. package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
  46. package/lib/SideNav.js +5 -5
  47. package/lib/StateLabel.js +1 -1
  48. package/lib/SubNav.js +1 -1
  49. package/lib/TabNav.js +2 -2
  50. package/lib/TextInput.js +2 -2
  51. package/lib/Timeline.js +16 -19
  52. package/lib/Tooltip.js +1 -1
  53. package/lib/UnderlineNav.js +2 -2
  54. package/lib/theme-preval.d.ts +12 -6
  55. package/lib/theme-preval.js +2930 -1738
  56. package/lib/utils/testing.d.ts +4707 -2355
  57. package/lib-esm/ActionList/Divider.js +1 -1
  58. package/lib-esm/ActionList/Header.js +2 -2
  59. package/lib-esm/ActionList/Item.js +10 -10
  60. package/lib-esm/ActionList/List.js +1 -1
  61. package/lib-esm/AvatarPair.js +1 -1
  62. package/lib-esm/AvatarStack.js +1 -1
  63. package/lib-esm/BranchName.js +1 -1
  64. package/lib-esm/Breadcrumb.js +2 -2
  65. package/lib-esm/Button/Button.js +1 -1
  66. package/lib-esm/Button/ButtonClose.js +1 -1
  67. package/lib-esm/Button/ButtonInvisible.js +1 -1
  68. package/lib-esm/Button/ButtonTableList.js +1 -1
  69. package/lib-esm/CircleBadge.js +1 -1
  70. package/lib-esm/CircleOcticon.js +1 -1
  71. package/lib-esm/CounterLabel.js +2 -2
  72. package/lib-esm/Dialog/ConfirmationDialog.js +1 -1
  73. package/lib-esm/Dialog/Dialog.js +5 -5
  74. package/lib-esm/Dialog.js +4 -4
  75. package/lib-esm/Dropdown.js +2 -2
  76. package/lib-esm/DropdownStyles.js +6 -6
  77. package/lib-esm/FilterList.js +1 -1
  78. package/lib-esm/FilteredActionList/FilteredActionList.js +2 -2
  79. package/lib-esm/Flash.js +1 -1
  80. package/lib-esm/Label.js +2 -2
  81. package/lib-esm/Link.js +1 -1
  82. package/lib-esm/Overlay.js +1 -1
  83. package/lib-esm/Pagehead.js +1 -1
  84. package/lib-esm/Pagination/Pagination.js +1 -1
  85. package/lib-esm/Popover.js +1 -1
  86. package/lib-esm/ProgressBar.js +1 -1
  87. package/lib-esm/SelectMenu/SelectMenuDivider.js +1 -1
  88. package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
  89. package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
  90. package/lib-esm/SelectMenu/SelectMenuHeader.js +2 -2
  91. package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
  92. package/lib-esm/SelectMenu/SelectMenuList.js +1 -1
  93. package/lib-esm/SelectMenu/SelectMenuLoadingAnimation.js +1 -1
  94. package/lib-esm/SelectMenu/SelectMenuModal.js +2 -2
  95. package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
  96. package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
  97. package/lib-esm/SideNav.js +5 -5
  98. package/lib-esm/StateLabel.js +1 -1
  99. package/lib-esm/SubNav.js +1 -1
  100. package/lib-esm/TabNav.js +2 -2
  101. package/lib-esm/TextInput.js +2 -2
  102. package/lib-esm/Timeline.js +12 -17
  103. package/lib-esm/Tooltip.js +1 -1
  104. package/lib-esm/UnderlineNav.js +2 -2
  105. package/lib-esm/theme-preval.d.ts +12 -6
  106. package/lib-esm/theme-preval.js +2930 -1738
  107. package/lib-esm/utils/testing.d.ts +4707 -2355
  108. package/package.json +3 -2
  109. package/.changeset/README.md +0 -8
  110. package/.changeset/config.json +0 -10
  111. package/.devcontainer/devcontainer.json +0 -8
  112. package/.eslintrc.json +0 -105
  113. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
  114. package/.github/ISSUE_TEMPLATE/new_component_proposal_template.md +0 -41
  115. package/.github/dependabot.yml +0 -18
  116. package/.github/pull_request_template.md +0 -18
  117. package/.github/workflows/ci.yml +0 -31
  118. package/.github/workflows/deploy_preview.yml +0 -47
  119. package/.github/workflows/deploy_production.yml +0 -70
  120. package/.github/workflows/release.yml +0 -35
  121. package/.github/workflows/release_canary.yml +0 -70
  122. package/.github/workflows/release_candidate.yml +0 -60
  123. package/.github/workflows/size.yml +0 -13
  124. package/.github/workflows/stale.yml +0 -26
  125. package/.gitignore +0 -10
  126. package/.npmrc +0 -4
  127. package/.nvmrc +0 -1
  128. package/.storybook/main.js +0 -11
  129. package/.storybook/preview.js +0 -11
  130. package/.vscode/launch.json +0 -21
  131. package/.vscode/settings.json +0 -13
  132. package/@types/@styled-system/index.d.ts +0 -0
  133. package/@types/@styled-system/prop-types/index.d.ts +0 -1
  134. package/@types/@styled-system/props/index.d.ts +0 -1
  135. package/@types/jest-styled-components/index.d.ts +0 -1
  136. package/CODEOWNERS +0 -2
  137. package/babel-defines.js +0 -13
  138. package/babel.config.js +0 -39
  139. package/contributor-docs/CODE_OF_CONDUCT.md +0 -76
  140. package/contributor-docs/CONTRIBUTING.md +0 -274
  141. package/contributor-docs/adrs/adr-001-typescript.md +0 -23
  142. package/contributor-docs/adrs/adr-002-behavior-isolation.md +0 -106
  143. package/contributor-docs/behaviors.md +0 -132
  144. package/contributor-docs/component-contents-api-patterns.md +0 -315
  145. package/contributor-docs/principles.md +0 -39
  146. package/docs/.eslintrc +0 -0
  147. package/docs/.gitignore +0 -91
  148. package/docs/components/PropsList.js +0 -5
  149. package/docs/components/State.js +0 -9
  150. package/docs/components/constants.js +0 -34
  151. package/docs/components/index.js +0 -2
  152. package/docs/content/ActionList.mdx +0 -72
  153. package/docs/content/ActionMenu.mdx +0 -80
  154. package/docs/content/AnchoredOverlay.mdx +0 -35
  155. package/docs/content/Avatar.mdx +0 -33
  156. package/docs/content/AvatarStack.mdx +0 -43
  157. package/docs/content/BorderBox.md +0 -46
  158. package/docs/content/Box.md +0 -74
  159. package/docs/content/BranchName.md +0 -18
  160. package/docs/content/Breadcrumbs.md +0 -52
  161. package/docs/content/Buttons.md +0 -54
  162. package/docs/content/CircleBadge.md +0 -45
  163. package/docs/content/CircleOcticon.md +0 -18
  164. package/docs/content/CounterLabel.md +0 -30
  165. package/docs/content/Details.md +0 -105
  166. package/docs/content/Dialog.md +0 -108
  167. package/docs/content/Dialog2.mdx +0 -179
  168. package/docs/content/Dropdown.md +0 -72
  169. package/docs/content/DropdownMenu.mdx +0 -49
  170. package/docs/content/FilterList.md +0 -44
  171. package/docs/content/FilteredSearch.md +0 -39
  172. package/docs/content/Flash.md +0 -42
  173. package/docs/content/Flex.md +0 -58
  174. package/docs/content/FormGroup.md +0 -44
  175. package/docs/content/Grid.md +0 -59
  176. package/docs/content/Header.md +0 -79
  177. package/docs/content/Heading.md +0 -22
  178. package/docs/content/Label.md +0 -40
  179. package/docs/content/LabelGroup.md +0 -31
  180. package/docs/content/Link.md +0 -37
  181. package/docs/content/Overlay.mdx +0 -90
  182. package/docs/content/Pagehead.md +0 -27
  183. package/docs/content/Pagination.md +0 -187
  184. package/docs/content/PointerBox.md +0 -81
  185. package/docs/content/Popover.md +0 -137
  186. package/docs/content/Portal.mdx +0 -71
  187. package/docs/content/Position.md +0 -97
  188. package/docs/content/ProgressBar.mdx +0 -29
  189. package/docs/content/SelectMenu.md +0 -433
  190. package/docs/content/SelectPanel.mdx +0 -67
  191. package/docs/content/SideNav.md +0 -179
  192. package/docs/content/Spinner.mdx +0 -32
  193. package/docs/content/StateLabel.md +0 -33
  194. package/docs/content/StyledOcticon.md +0 -34
  195. package/docs/content/SubNav.md +0 -102
  196. package/docs/content/TabNav.md +0 -50
  197. package/docs/content/Text.md +0 -29
  198. package/docs/content/TextInput.md +0 -32
  199. package/docs/content/Timeline.md +0 -138
  200. package/docs/content/Tooltip.md +0 -41
  201. package/docs/content/Truncate.md +0 -65
  202. package/docs/content/UnderlineNav.md +0 -53
  203. package/docs/content/anchoredPosition.mdx +0 -163
  204. package/docs/content/core-concepts.md +0 -70
  205. package/docs/content/focusTrap.mdx +0 -103
  206. package/docs/content/focusZone.mdx +0 -145
  207. package/docs/content/getting-started.md +0 -134
  208. package/docs/content/index.md +0 -33
  209. package/docs/content/linting.md +0 -35
  210. package/docs/content/overriding-styles.mdx +0 -80
  211. package/docs/content/philosophy.md +0 -23
  212. package/docs/content/primer-theme.md +0 -89
  213. package/docs/content/ssr.mdx +0 -41
  214. package/docs/content/system-props.mdx +0 -37
  215. package/docs/content/theme-reference.md +0 -8
  216. package/docs/content/theming.md +0 -250
  217. package/docs/content/useOnEscapePress.mdx +0 -56
  218. package/docs/content/useOnOutsideClick.mdx +0 -57
  219. package/docs/content/useOpenAndCloseFocus.mdx +0 -49
  220. package/docs/content/useOverlay.mdx +0 -62
  221. package/docs/content/useSafeTimeout.mdx +0 -32
  222. package/docs/gatsby-config.js +0 -30
  223. package/docs/gatsby-node.js +0 -101
  224. package/docs/package-lock.json +0 -20979
  225. package/docs/package.json +0 -35
  226. package/docs/src/@primer/gatsby-theme-doctocat/components/hero.js +0 -21
  227. package/docs/src/@primer/gatsby-theme-doctocat/components/live-code.js +0 -84
  228. package/docs/src/@primer/gatsby-theme-doctocat/components/live-preview-wrapper.js +0 -39
  229. package/docs/src/@primer/gatsby-theme-doctocat/components/nav-dropdown.js +0 -48
  230. package/docs/src/@primer/gatsby-theme-doctocat/components/wrap-page-element.js +0 -25
  231. package/docs/src/@primer/gatsby-theme-doctocat/live-code-scope.js +0 -54
  232. package/docs/src/@primer/gatsby-theme-doctocat/nav.yml +0 -132
  233. package/docs/src/@primer/gatsby-theme-doctocat/primer-components-hero.svg +0 -1411
  234. package/docs/src/props.js +0 -77
  235. package/jest.config.js +0 -13
  236. package/lib/__tests__/ActionList.d.ts +0 -1
  237. package/lib/__tests__/ActionList.js +0 -67
  238. package/lib/__tests__/ActionMenu.d.ts +0 -1
  239. package/lib/__tests__/ActionMenu.js +0 -154
  240. package/lib/__tests__/AnchoredOverlay.d.ts +0 -1
  241. package/lib/__tests__/AnchoredOverlay.js +0 -161
  242. package/lib/__tests__/Avatar.d.ts +0 -1
  243. package/lib/__tests__/Avatar.js +0 -70
  244. package/lib/__tests__/AvatarStack.d.ts +0 -1
  245. package/lib/__tests__/AvatarStack.js +0 -71
  246. package/lib/__tests__/BorderBox.d.ts +0 -1
  247. package/lib/__tests__/BorderBox.js +0 -61
  248. package/lib/__tests__/Box.d.ts +0 -1
  249. package/lib/__tests__/Box.js +0 -81
  250. package/lib/__tests__/BranchName.d.ts +0 -1
  251. package/lib/__tests__/BranchName.js +0 -39
  252. package/lib/__tests__/Breadcrumb.d.ts +0 -1
  253. package/lib/__tests__/Breadcrumb.js +0 -42
  254. package/lib/__tests__/BreadcrumbItem.d.ts +0 -1
  255. package/lib/__tests__/BreadcrumbItem.js +0 -52
  256. package/lib/__tests__/Button.d.ts +0 -1
  257. package/lib/__tests__/Button.js +0 -152
  258. package/lib/__tests__/Caret.d.ts +0 -1
  259. package/lib/__tests__/Caret.js +0 -52
  260. package/lib/__tests__/CircleBadge.d.ts +0 -1
  261. package/lib/__tests__/CircleBadge.js +0 -87
  262. package/lib/__tests__/CircleOcticon.d.ts +0 -1
  263. package/lib/__tests__/CircleOcticon.js +0 -74
  264. package/lib/__tests__/CounterLabel.d.ts +0 -1
  265. package/lib/__tests__/CounterLabel.js +0 -61
  266. package/lib/__tests__/Details.d.ts +0 -1
  267. package/lib/__tests__/Details.js +0 -120
  268. package/lib/__tests__/Dialog.d.ts +0 -1
  269. package/lib/__tests__/Dialog.js +0 -188
  270. package/lib/__tests__/Dropdown.d.ts +0 -1
  271. package/lib/__tests__/Dropdown.js +0 -70
  272. package/lib/__tests__/DropdownMenu.d.ts +0 -1
  273. package/lib/__tests__/DropdownMenu.js +0 -153
  274. package/lib/__tests__/FilterList.d.ts +0 -1
  275. package/lib/__tests__/FilterList.js +0 -39
  276. package/lib/__tests__/FilterListItem.d.ts +0 -1
  277. package/lib/__tests__/FilterListItem.js +0 -49
  278. package/lib/__tests__/FilteredSearch.d.ts +0 -1
  279. package/lib/__tests__/FilteredSearch.js +0 -39
  280. package/lib/__tests__/Flash.d.ts +0 -1
  281. package/lib/__tests__/Flash.js +0 -65
  282. package/lib/__tests__/Flex.d.ts +0 -1
  283. package/lib/__tests__/Flex.js +0 -77
  284. package/lib/__tests__/FormGroup.d.ts +0 -1
  285. package/lib/__tests__/FormGroup.js +0 -58
  286. package/lib/__tests__/Grid.d.ts +0 -1
  287. package/lib/__tests__/Grid.js +0 -107
  288. package/lib/__tests__/Header.d.ts +0 -1
  289. package/lib/__tests__/Header.js +0 -63
  290. package/lib/__tests__/Heading.d.ts +0 -1
  291. package/lib/__tests__/Heading.js +0 -112
  292. package/lib/__tests__/Label.d.ts +0 -1
  293. package/lib/__tests__/Label.js +0 -49
  294. package/lib/__tests__/LabelGroup.d.ts +0 -1
  295. package/lib/__tests__/LabelGroup.js +0 -41
  296. package/lib/__tests__/Link.d.ts +0 -1
  297. package/lib/__tests__/Link.js +0 -73
  298. package/lib/__tests__/Overlay.d.ts +0 -1
  299. package/lib/__tests__/Overlay.js +0 -145
  300. package/lib/__tests__/Pagehead.d.ts +0 -1
  301. package/lib/__tests__/Pagehead.js +0 -40
  302. package/lib/__tests__/Pagination/Pagination.d.ts +0 -1
  303. package/lib/__tests__/Pagination/Pagination.js +0 -50
  304. package/lib/__tests__/Pagination/PaginationModel.d.ts +0 -1
  305. package/lib/__tests__/Pagination/PaginationModel.js +0 -186
  306. package/lib/__tests__/PointerBox.d.ts +0 -1
  307. package/lib/__tests__/PointerBox.js +0 -49
  308. package/lib/__tests__/Popover.d.ts +0 -1
  309. package/lib/__tests__/Popover.js +0 -70
  310. package/lib/__tests__/Portal.d.ts +0 -1
  311. package/lib/__tests__/Portal.js +0 -124
  312. package/lib/__tests__/Position.d.ts +0 -1
  313. package/lib/__tests__/Position.js +0 -149
  314. package/lib/__tests__/ProgressBar.d.ts +0 -1
  315. package/lib/__tests__/ProgressBar.js +0 -71
  316. package/lib/__tests__/SelectMenu.d.ts +0 -1
  317. package/lib/__tests__/SelectMenu.js +0 -155
  318. package/lib/__tests__/SelectPanel.d.ts +0 -1
  319. package/lib/__tests__/SelectPanel.js +0 -83
  320. package/lib/__tests__/SideNav.d.ts +0 -1
  321. package/lib/__tests__/SideNav.js +0 -75
  322. package/lib/__tests__/Spinner.d.ts +0 -1
  323. package/lib/__tests__/Spinner.js +0 -56
  324. package/lib/__tests__/StateLabel.d.ts +0 -1
  325. package/lib/__tests__/StateLabel.js +0 -74
  326. package/lib/__tests__/StyledOcticon.d.ts +0 -1
  327. package/lib/__tests__/StyledOcticon.js +0 -43
  328. package/lib/__tests__/SubNav.d.ts +0 -1
  329. package/lib/__tests__/SubNav.js +0 -65
  330. package/lib/__tests__/SubNavLink.d.ts +0 -1
  331. package/lib/__tests__/SubNavLink.js +0 -52
  332. package/lib/__tests__/TabNav.d.ts +0 -1
  333. package/lib/__tests__/TabNav.js +0 -53
  334. package/lib/__tests__/Text.d.ts +0 -1
  335. package/lib/__tests__/Text.js +0 -108
  336. package/lib/__tests__/TextInput.d.ts +0 -1
  337. package/lib/__tests__/TextInput.js +0 -81
  338. package/lib/__tests__/ThemeProvider.d.ts +0 -1
  339. package/lib/__tests__/ThemeProvider.js +0 -444
  340. package/lib/__tests__/Timeline.d.ts +0 -1
  341. package/lib/__tests__/Timeline.js +0 -80
  342. package/lib/__tests__/Tooltip.d.ts +0 -1
  343. package/lib/__tests__/Tooltip.js +0 -72
  344. package/lib/__tests__/Truncate.d.ts +0 -1
  345. package/lib/__tests__/Truncate.js +0 -66
  346. package/lib/__tests__/UnderlineNav.d.ts +0 -1
  347. package/lib/__tests__/UnderlineNav.js +0 -75
  348. package/lib/__tests__/UnderlineNavLink.d.ts +0 -1
  349. package/lib/__tests__/UnderlineNavLink.js +0 -54
  350. package/lib/__tests__/behaviors/anchoredPosition.d.ts +0 -1
  351. package/lib/__tests__/behaviors/anchoredPosition.js +0 -390
  352. package/lib/__tests__/behaviors/focusTrap.d.ts +0 -1
  353. package/lib/__tests__/behaviors/focusTrap.js +0 -234
  354. package/lib/__tests__/behaviors/focusZone.d.ts +0 -1
  355. package/lib/__tests__/behaviors/focusZone.js +0 -570
  356. package/lib/__tests__/behaviors/iterateFocusableElements.d.ts +0 -1
  357. package/lib/__tests__/behaviors/iterateFocusableElements.js +0 -55
  358. package/lib/__tests__/filterObject.d.ts +0 -1
  359. package/lib/__tests__/filterObject.js +0 -30
  360. package/lib/__tests__/hooks/useAnchoredPosition.d.ts +0 -1
  361. package/lib/__tests__/hooks/useAnchoredPosition.js +0 -54
  362. package/lib/__tests__/hooks/useOnEscapePress.d.ts +0 -1
  363. package/lib/__tests__/hooks/useOnEscapePress.js +0 -32
  364. package/lib/__tests__/hooks/useOnOutsideClick.d.ts +0 -1
  365. package/lib/__tests__/hooks/useOnOutsideClick.js +0 -87
  366. package/lib/__tests__/hooks/useOpenAndCloseFocus.d.ts +0 -1
  367. package/lib/__tests__/hooks/useOpenAndCloseFocus.js +0 -60
  368. package/lib/__tests__/hooks/useProvidedStateOrCreate.d.ts +0 -1
  369. package/lib/__tests__/hooks/useProvidedStateOrCreate.js +0 -45
  370. package/lib/__tests__/theme.d.ts +0 -1
  371. package/lib/__tests__/theme.js +0 -36
  372. package/lib/__tests__/themeGet.d.ts +0 -1
  373. package/lib/__tests__/themeGet.js +0 -25
  374. package/lib/__tests__/useSafeTimeout.d.ts +0 -1
  375. package/lib/__tests__/useSafeTimeout.js +0 -45
  376. package/lib/stories/ActionList.stories.d.ts +0 -40
  377. package/lib/stories/ActionList.stories.js +0 -382
  378. package/lib/stories/ActionMenu.stories.d.ts +0 -29
  379. package/lib/stories/ActionMenu.stories.js +0 -338
  380. package/lib/stories/AnchoredOverlay.stories.d.ts +0 -6
  381. package/lib/stories/AnchoredOverlay.stories.js +0 -127
  382. package/lib/stories/AvatarStack.stories.d.ts +0 -8
  383. package/lib/stories/AvatarStack.stories.js +0 -49
  384. package/lib/stories/Button.stories.d.ts +0 -57
  385. package/lib/stories/Button.stories.js +0 -114
  386. package/lib/stories/ConfirmationDialog.stories.d.ts +0 -7
  387. package/lib/stories/ConfirmationDialog.stories.js +0 -111
  388. package/lib/stories/Dialog.stories.d.ts +0 -13
  389. package/lib/stories/Dialog.stories.js +0 -265
  390. package/lib/stories/DropdownMenu.stories.d.ts +0 -12
  391. package/lib/stories/DropdownMenu.stories.js +0 -122
  392. package/lib/stories/Overlay.stories.d.ts +0 -7
  393. package/lib/stories/Overlay.stories.js +0 -185
  394. package/lib/stories/Portal.stories.d.ts +0 -8
  395. package/lib/stories/Portal.stories.js +0 -104
  396. package/lib/stories/SelectPanel.stories.d.ts +0 -32
  397. package/lib/stories/SelectPanel.stories.js +0 -342
  398. package/lib/stories/ThemeProvider.stories.d.ts +0 -6
  399. package/lib/stories/ThemeProvider.stories.js +0 -102
  400. package/lib/stories/useAnchoredPosition.stories.d.ts +0 -8
  401. package/lib/stories/useAnchoredPosition.stories.js +0 -351
  402. package/lib/stories/useFocusTrap.stories.d.ts +0 -9
  403. package/lib/stories/useFocusTrap.stories.js +0 -356
  404. package/lib/stories/useFocusZone.stories.d.ts +0 -12
  405. package/lib/stories/useFocusZone.stories.js +0 -599
  406. package/lib-esm/__tests__/ActionList.d.ts +0 -1
  407. package/lib-esm/__tests__/ActionList.js +0 -54
  408. package/lib-esm/__tests__/ActionMenu.d.ts +0 -1
  409. package/lib-esm/__tests__/ActionMenu.js +0 -141
  410. package/lib-esm/__tests__/AnchoredOverlay.d.ts +0 -1
  411. package/lib-esm/__tests__/AnchoredOverlay.js +0 -135
  412. package/lib-esm/__tests__/Avatar.d.ts +0 -1
  413. package/lib-esm/__tests__/Avatar.js +0 -58
  414. package/lib-esm/__tests__/AvatarStack.d.ts +0 -1
  415. package/lib-esm/__tests__/AvatarStack.js +0 -57
  416. package/lib-esm/__tests__/BorderBox.d.ts +0 -1
  417. package/lib-esm/__tests__/BorderBox.js +0 -49
  418. package/lib-esm/__tests__/Box.d.ts +0 -1
  419. package/lib-esm/__tests__/Box.js +0 -69
  420. package/lib-esm/__tests__/BranchName.d.ts +0 -1
  421. package/lib-esm/__tests__/BranchName.js +0 -28
  422. package/lib-esm/__tests__/Breadcrumb.d.ts +0 -1
  423. package/lib-esm/__tests__/Breadcrumb.js +0 -31
  424. package/lib-esm/__tests__/BreadcrumbItem.d.ts +0 -1
  425. package/lib-esm/__tests__/BreadcrumbItem.js +0 -41
  426. package/lib-esm/__tests__/Button.d.ts +0 -1
  427. package/lib-esm/__tests__/Button.js +0 -141
  428. package/lib-esm/__tests__/Caret.d.ts +0 -1
  429. package/lib-esm/__tests__/Caret.js +0 -42
  430. package/lib-esm/__tests__/CircleBadge.d.ts +0 -1
  431. package/lib-esm/__tests__/CircleBadge.js +0 -73
  432. package/lib-esm/__tests__/CircleOcticon.d.ts +0 -1
  433. package/lib-esm/__tests__/CircleOcticon.js +0 -61
  434. package/lib-esm/__tests__/CounterLabel.d.ts +0 -1
  435. package/lib-esm/__tests__/CounterLabel.js +0 -49
  436. package/lib-esm/__tests__/Details.d.ts +0 -1
  437. package/lib-esm/__tests__/Details.js +0 -109
  438. package/lib-esm/__tests__/Dialog.d.ts +0 -1
  439. package/lib-esm/__tests__/Dialog.js +0 -174
  440. package/lib-esm/__tests__/Dropdown.d.ts +0 -1
  441. package/lib-esm/__tests__/Dropdown.js +0 -59
  442. package/lib-esm/__tests__/DropdownMenu.d.ts +0 -1
  443. package/lib-esm/__tests__/DropdownMenu.js +0 -139
  444. package/lib-esm/__tests__/FilterList.d.ts +0 -1
  445. package/lib-esm/__tests__/FilterList.js +0 -28
  446. package/lib-esm/__tests__/FilterListItem.d.ts +0 -1
  447. package/lib-esm/__tests__/FilterListItem.js +0 -38
  448. package/lib-esm/__tests__/FilteredSearch.d.ts +0 -1
  449. package/lib-esm/__tests__/FilteredSearch.js +0 -28
  450. package/lib-esm/__tests__/Flash.d.ts +0 -1
  451. package/lib-esm/__tests__/Flash.js +0 -53
  452. package/lib-esm/__tests__/Flex.d.ts +0 -1
  453. package/lib-esm/__tests__/Flex.js +0 -66
  454. package/lib-esm/__tests__/FormGroup.d.ts +0 -1
  455. package/lib-esm/__tests__/FormGroup.js +0 -47
  456. package/lib-esm/__tests__/Grid.d.ts +0 -1
  457. package/lib-esm/__tests__/Grid.js +0 -96
  458. package/lib-esm/__tests__/Header.d.ts +0 -1
  459. package/lib-esm/__tests__/Header.js +0 -52
  460. package/lib-esm/__tests__/Heading.d.ts +0 -1
  461. package/lib-esm/__tests__/Heading.js +0 -101
  462. package/lib-esm/__tests__/Label.d.ts +0 -1
  463. package/lib-esm/__tests__/Label.js +0 -38
  464. package/lib-esm/__tests__/LabelGroup.d.ts +0 -1
  465. package/lib-esm/__tests__/LabelGroup.js +0 -28
  466. package/lib-esm/__tests__/Link.d.ts +0 -1
  467. package/lib-esm/__tests__/Link.js +0 -62
  468. package/lib-esm/__tests__/Overlay.d.ts +0 -1
  469. package/lib-esm/__tests__/Overlay.js +0 -123
  470. package/lib-esm/__tests__/Pagehead.d.ts +0 -1
  471. package/lib-esm/__tests__/Pagehead.js +0 -28
  472. package/lib-esm/__tests__/Pagination/Pagination.d.ts +0 -1
  473. package/lib-esm/__tests__/Pagination/Pagination.js +0 -37
  474. package/lib-esm/__tests__/Pagination/PaginationModel.d.ts +0 -1
  475. package/lib-esm/__tests__/Pagination/PaginationModel.js +0 -182
  476. package/lib-esm/__tests__/PointerBox.d.ts +0 -1
  477. package/lib-esm/__tests__/PointerBox.js +0 -38
  478. package/lib-esm/__tests__/Popover.d.ts +0 -1
  479. package/lib-esm/__tests__/Popover.js +0 -56
  480. package/lib-esm/__tests__/Portal.d.ts +0 -1
  481. package/lib-esm/__tests__/Portal.js +0 -104
  482. package/lib-esm/__tests__/Position.d.ts +0 -1
  483. package/lib-esm/__tests__/Position.js +0 -138
  484. package/lib-esm/__tests__/ProgressBar.d.ts +0 -1
  485. package/lib-esm/__tests__/ProgressBar.js +0 -60
  486. package/lib-esm/__tests__/SelectMenu.d.ts +0 -1
  487. package/lib-esm/__tests__/SelectMenu.js +0 -145
  488. package/lib-esm/__tests__/SelectPanel.d.ts +0 -1
  489. package/lib-esm/__tests__/SelectPanel.js +0 -67
  490. package/lib-esm/__tests__/SideNav.d.ts +0 -1
  491. package/lib-esm/__tests__/SideNav.js +0 -63
  492. package/lib-esm/__tests__/Spinner.d.ts +0 -1
  493. package/lib-esm/__tests__/Spinner.js +0 -45
  494. package/lib-esm/__tests__/StateLabel.d.ts +0 -1
  495. package/lib-esm/__tests__/StateLabel.js +0 -63
  496. package/lib-esm/__tests__/StyledOcticon.d.ts +0 -1
  497. package/lib-esm/__tests__/StyledOcticon.js +0 -31
  498. package/lib-esm/__tests__/SubNav.d.ts +0 -1
  499. package/lib-esm/__tests__/SubNav.js +0 -52
  500. package/lib-esm/__tests__/SubNavLink.d.ts +0 -1
  501. package/lib-esm/__tests__/SubNavLink.js +0 -41
  502. package/lib-esm/__tests__/TabNav.d.ts +0 -1
  503. package/lib-esm/__tests__/TabNav.js +0 -42
  504. package/lib-esm/__tests__/Text.d.ts +0 -1
  505. package/lib-esm/__tests__/Text.js +0 -95
  506. package/lib-esm/__tests__/TextInput.d.ts +0 -1
  507. package/lib-esm/__tests__/TextInput.js +0 -70
  508. package/lib-esm/__tests__/ThemeProvider.d.ts +0 -1
  509. package/lib-esm/__tests__/ThemeProvider.js +0 -408
  510. package/lib-esm/__tests__/Timeline.d.ts +0 -1
  511. package/lib-esm/__tests__/Timeline.js +0 -69
  512. package/lib-esm/__tests__/Tooltip.d.ts +0 -1
  513. package/lib-esm/__tests__/Tooltip.js +0 -61
  514. package/lib-esm/__tests__/Truncate.d.ts +0 -1
  515. package/lib-esm/__tests__/Truncate.js +0 -55
  516. package/lib-esm/__tests__/UnderlineNav.d.ts +0 -1
  517. package/lib-esm/__tests__/UnderlineNav.js +0 -62
  518. package/lib-esm/__tests__/UnderlineNavLink.d.ts +0 -1
  519. package/lib-esm/__tests__/UnderlineNavLink.js +0 -43
  520. package/lib-esm/__tests__/behaviors/anchoredPosition.d.ts +0 -1
  521. package/lib-esm/__tests__/behaviors/anchoredPosition.js +0 -388
  522. package/lib-esm/__tests__/behaviors/focusTrap.d.ts +0 -1
  523. package/lib-esm/__tests__/behaviors/focusTrap.js +0 -227
  524. package/lib-esm/__tests__/behaviors/focusZone.d.ts +0 -1
  525. package/lib-esm/__tests__/behaviors/focusZone.js +0 -487
  526. package/lib-esm/__tests__/behaviors/iterateFocusableElements.d.ts +0 -1
  527. package/lib-esm/__tests__/behaviors/iterateFocusableElements.js +0 -48
  528. package/lib-esm/__tests__/filterObject.d.ts +0 -1
  529. package/lib-esm/__tests__/filterObject.js +0 -27
  530. package/lib-esm/__tests__/hooks/useAnchoredPosition.d.ts +0 -1
  531. package/lib-esm/__tests__/hooks/useAnchoredPosition.js +0 -46
  532. package/lib-esm/__tests__/hooks/useOnEscapePress.d.ts +0 -1
  533. package/lib-esm/__tests__/hooks/useOnEscapePress.js +0 -23
  534. package/lib-esm/__tests__/hooks/useOnOutsideClick.d.ts +0 -1
  535. package/lib-esm/__tests__/hooks/useOnOutsideClick.js +0 -68
  536. package/lib-esm/__tests__/hooks/useOpenAndCloseFocus.d.ts +0 -1
  537. package/lib-esm/__tests__/hooks/useOpenAndCloseFocus.js +0 -52
  538. package/lib-esm/__tests__/hooks/useProvidedStateOrCreate.d.ts +0 -1
  539. package/lib-esm/__tests__/hooks/useProvidedStateOrCreate.js +0 -36
  540. package/lib-esm/__tests__/theme.d.ts +0 -1
  541. package/lib-esm/__tests__/theme.js +0 -33
  542. package/lib-esm/__tests__/themeGet.d.ts +0 -1
  543. package/lib-esm/__tests__/themeGet.js +0 -22
  544. package/lib-esm/__tests__/useSafeTimeout.d.ts +0 -1
  545. package/lib-esm/__tests__/useSafeTimeout.js +0 -39
  546. package/lib-esm/stories/ActionList.stories.d.ts +0 -40
  547. package/lib-esm/stories/ActionList.stories.js +0 -334
  548. package/lib-esm/stories/ActionMenu.stories.d.ts +0 -29
  549. package/lib-esm/stories/ActionMenu.stories.js +0 -293
  550. package/lib-esm/stories/AnchoredOverlay.stories.d.ts +0 -6
  551. package/lib-esm/stories/AnchoredOverlay.stories.js +0 -101
  552. package/lib-esm/stories/AvatarStack.stories.d.ts +0 -8
  553. package/lib-esm/stories/AvatarStack.stories.js +0 -32
  554. package/lib-esm/stories/Button.stories.d.ts +0 -57
  555. package/lib-esm/stories/Button.stories.js +0 -78
  556. package/lib-esm/stories/ConfirmationDialog.stories.d.ts +0 -7
  557. package/lib-esm/stories/ConfirmationDialog.stories.js +0 -86
  558. package/lib-esm/stories/Dialog.stories.d.ts +0 -13
  559. package/lib-esm/stories/Dialog.stories.js +0 -240
  560. package/lib-esm/stories/DropdownMenu.stories.d.ts +0 -12
  561. package/lib-esm/stories/DropdownMenu.stories.js +0 -94
  562. package/lib-esm/stories/Overlay.stories.d.ts +0 -7
  563. package/lib-esm/stories/Overlay.stories.js +0 -154
  564. package/lib-esm/stories/Portal.stories.d.ts +0 -8
  565. package/lib-esm/stories/Portal.stories.js +0 -68
  566. package/lib-esm/stories/SelectPanel.stories.d.ts +0 -32
  567. package/lib-esm/stories/SelectPanel.stories.js +0 -284
  568. package/lib-esm/stories/ThemeProvider.stories.d.ts +0 -6
  569. package/lib-esm/stories/ThemeProvider.stories.js +0 -83
  570. package/lib-esm/stories/useAnchoredPosition.stories.d.ts +0 -8
  571. package/lib-esm/stories/useAnchoredPosition.stories.js +0 -313
  572. package/lib-esm/stories/useFocusTrap.stories.d.ts +0 -9
  573. package/lib-esm/stories/useFocusTrap.stories.js +0 -309
  574. package/lib-esm/stories/useFocusZone.stories.d.ts +0 -12
  575. package/lib-esm/stories/useFocusZone.stories.js +0 -554
  576. package/migrating.md +0 -250
  577. package/now.json +0 -17
  578. package/package-lock.json +0 -28656
  579. package/rollup.config.js +0 -36
  580. package/script/build +0 -19
  581. package/script/setup +0 -12
  582. package/src/ActionList/Divider.tsx +0 -25
  583. package/src/ActionList/Group.tsx +0 -45
  584. package/src/ActionList/Header.tsx +0 -74
  585. package/src/ActionList/Item.tsx +0 -460
  586. package/src/ActionList/List.tsx +0 -253
  587. package/src/ActionList/index.ts +0 -21
  588. package/src/ActionMenu.tsx +0 -106
  589. package/src/AnchoredOverlay/AnchoredOverlay.tsx +0 -180
  590. package/src/AnchoredOverlay/index.ts +0 -2
  591. package/src/Avatar.tsx +0 -46
  592. package/src/AvatarPair.tsx +0 -31
  593. package/src/AvatarStack.tsx +0 -161
  594. package/src/BaseStyles.tsx +0 -53
  595. package/src/BorderBox.tsx +0 -18
  596. package/src/Box.tsx +0 -54
  597. package/src/BranchName.tsx +0 -19
  598. package/src/Breadcrumb.tsx +0 -87
  599. package/src/Button/Button.tsx +0 -40
  600. package/src/Button/ButtonBase.tsx +0 -43
  601. package/src/Button/ButtonClose.tsx +0 -40
  602. package/src/Button/ButtonDanger.tsx +0 -43
  603. package/src/Button/ButtonGroup.tsx +0 -55
  604. package/src/Button/ButtonInvisible.tsx +0 -27
  605. package/src/Button/ButtonOutline.tsx +0 -43
  606. package/src/Button/ButtonPrimary.tsx +0 -41
  607. package/src/Button/ButtonStyles.tsx +0 -36
  608. package/src/Button/ButtonTableList.tsx +0 -58
  609. package/src/Button/index.ts +0 -16
  610. package/src/Caret.tsx +0 -133
  611. package/src/CircleBadge.tsx +0 -55
  612. package/src/CircleOcticon.tsx +0 -37
  613. package/src/CounterLabel.tsx +0 -52
  614. package/src/Details.tsx +0 -23
  615. package/src/Dialog/ConfirmationDialog.tsx +0 -184
  616. package/src/Dialog/Dialog.tsx +0 -419
  617. package/src/Dialog.tsx +0 -149
  618. package/src/Dropdown.tsx +0 -158
  619. package/src/DropdownMenu/DropdownButton.tsx +0 -15
  620. package/src/DropdownMenu/DropdownMenu.tsx +0 -115
  621. package/src/DropdownMenu/index.ts +0 -4
  622. package/src/DropdownStyles.ts +0 -128
  623. package/src/FilterList.tsx +0 -81
  624. package/src/FilteredActionList/FilteredActionList.tsx +0 -152
  625. package/src/FilteredActionList/index.ts +0 -2
  626. package/src/FilteredSearch.tsx +0 -28
  627. package/src/Flash.tsx +0 -77
  628. package/src/Flex.tsx +0 -15
  629. package/src/FormGroup.tsx +0 -27
  630. package/src/Grid.tsx +0 -15
  631. package/src/Header.tsx +0 -84
  632. package/src/Heading.tsx +0 -21
  633. package/src/Label.tsx +0 -75
  634. package/src/LabelGroup.tsx +0 -18
  635. package/src/Link.tsx +0 -46
  636. package/src/Overlay.tsx +0 -194
  637. package/src/Pagehead.tsx +0 -17
  638. package/src/Pagination/Pagination.tsx +0 -214
  639. package/src/Pagination/index.ts +0 -4
  640. package/src/Pagination/model.tsx +0 -187
  641. package/src/PointerBox.tsx +0 -31
  642. package/src/Popover.tsx +0 -236
  643. package/src/Portal/Portal.tsx +0 -96
  644. package/src/Portal/index.ts +0 -5
  645. package/src/Position.tsx +0 -63
  646. package/src/ProgressBar.tsx +0 -52
  647. package/src/SelectMenu/SelectMenu.tsx +0 -125
  648. package/src/SelectMenu/SelectMenuContext.tsx +0 -9
  649. package/src/SelectMenu/SelectMenuDivider.tsx +0 -25
  650. package/src/SelectMenu/SelectMenuFilter.tsx +0 -51
  651. package/src/SelectMenu/SelectMenuFooter.tsx +0 -28
  652. package/src/SelectMenu/SelectMenuHeader.tsx +0 -50
  653. package/src/SelectMenu/SelectMenuItem.tsx +0 -137
  654. package/src/SelectMenu/SelectMenuList.tsx +0 -42
  655. package/src/SelectMenu/SelectMenuLoadingAnimation.tsx +0 -24
  656. package/src/SelectMenu/SelectMenuModal.tsx +0 -121
  657. package/src/SelectMenu/SelectMenuTab.tsx +0 -88
  658. package/src/SelectMenu/SelectMenuTabPanel.tsx +0 -30
  659. package/src/SelectMenu/SelectMenuTabs.tsx +0 -44
  660. package/src/SelectMenu/hooks/useKeyboardNav.js +0 -90
  661. package/src/SelectMenu/index.ts +0 -15
  662. package/src/SelectPanel/SelectPanel.tsx +0 -173
  663. package/src/SelectPanel/index.ts +0 -2
  664. package/src/SideNav.tsx +0 -193
  665. package/src/Spinner.tsx +0 -59
  666. package/src/StateLabel.tsx +0 -110
  667. package/src/StyledOcticon.tsx +0 -24
  668. package/src/SubNav.tsx +0 -129
  669. package/src/TabNav.tsx +0 -77
  670. package/src/Text.tsx +0 -13
  671. package/src/TextInput.tsx +0 -183
  672. package/src/ThemeProvider.tsx +0 -176
  673. package/src/Timeline.tsx +0 -141
  674. package/src/Tooltip.tsx +0 -263
  675. package/src/Truncate.tsx +0 -36
  676. package/src/UnderlineNav.tsx +0 -110
  677. package/src/__tests__/.eslintrc.json +0 -11
  678. package/src/__tests__/ActionList.tsx +0 -49
  679. package/src/__tests__/ActionMenu.tsx +0 -138
  680. package/src/__tests__/AnchoredOverlay.tsx +0 -151
  681. package/src/__tests__/Avatar.tsx +0 -45
  682. package/src/__tests__/AvatarStack.tsx +0 -45
  683. package/src/__tests__/BorderBox.tsx +0 -44
  684. package/src/__tests__/Box.tsx +0 -43
  685. package/src/__tests__/BranchName.tsx +0 -27
  686. package/src/__tests__/Breadcrumb.tsx +0 -31
  687. package/src/__tests__/BreadcrumbItem.tsx +0 -32
  688. package/src/__tests__/Button.tsx +0 -129
  689. package/src/__tests__/Caret.tsx +0 -36
  690. package/src/__tests__/CircleBadge.tsx +0 -69
  691. package/src/__tests__/CircleOcticon.tsx +0 -52
  692. package/src/__tests__/CounterLabel.tsx +0 -51
  693. package/src/__tests__/Details.tsx +0 -116
  694. package/src/__tests__/Dialog.tsx +0 -157
  695. package/src/__tests__/Dropdown.tsx +0 -57
  696. package/src/__tests__/DropdownMenu.tsx +0 -138
  697. package/src/__tests__/FilterList.tsx +0 -27
  698. package/src/__tests__/FilterListItem.tsx +0 -32
  699. package/src/__tests__/FilteredSearch.tsx +0 -27
  700. package/src/__tests__/Flash.tsx +0 -46
  701. package/src/__tests__/Flex.tsx +0 -59
  702. package/src/__tests__/FormGroup.tsx +0 -39
  703. package/src/__tests__/Grid.tsx +0 -83
  704. package/src/__tests__/Header.tsx +0 -50
  705. package/src/__tests__/Heading.tsx +0 -92
  706. package/src/__tests__/Label.tsx +0 -35
  707. package/src/__tests__/LabelGroup.tsx +0 -31
  708. package/src/__tests__/Link.tsx +0 -48
  709. package/src/__tests__/Overlay.tsx +0 -103
  710. package/src/__tests__/Pagehead.tsx +0 -24
  711. package/src/__tests__/Pagination/Pagination.tsx +0 -31
  712. package/src/__tests__/Pagination/PaginationModel.tsx +0 -133
  713. package/src/__tests__/Pagination/__snapshots__/Pagination.tsx.snap +0 -184
  714. package/src/__tests__/PointerBox.tsx +0 -35
  715. package/src/__tests__/Popover.tsx +0 -69
  716. package/src/__tests__/Portal.tsx +0 -103
  717. package/src/__tests__/Position.tsx +0 -118
  718. package/src/__tests__/ProgressBar.tsx +0 -41
  719. package/src/__tests__/SelectMenu.tsx +0 -142
  720. package/src/__tests__/SelectPanel.tsx +0 -65
  721. package/src/__tests__/SideNav.tsx +0 -63
  722. package/src/__tests__/Spinner.tsx +0 -44
  723. package/src/__tests__/StateLabel.tsx +0 -50
  724. package/src/__tests__/StyledOcticon.tsx +0 -28
  725. package/src/__tests__/SubNav.tsx +0 -51
  726. package/src/__tests__/SubNavLink.tsx +0 -32
  727. package/src/__tests__/TabNav.tsx +0 -33
  728. package/src/__tests__/Text.tsx +0 -79
  729. package/src/__tests__/TextInput.tsx +0 -50
  730. package/src/__tests__/ThemeProvider.tsx +0 -441
  731. package/src/__tests__/Timeline.tsx +0 -59
  732. package/src/__tests__/Tooltip.tsx +0 -53
  733. package/src/__tests__/Truncate.tsx +0 -45
  734. package/src/__tests__/UnderlineNav.tsx +0 -59
  735. package/src/__tests__/UnderlineNavLink.tsx +0 -32
  736. package/src/__tests__/__snapshots__/ActionList.tsx.snap +0 -27
  737. package/src/__tests__/__snapshots__/ActionMenu.tsx.snap +0 -80
  738. package/src/__tests__/__snapshots__/AnchoredOverlay.tsx.snap +0 -332
  739. package/src/__tests__/__snapshots__/Avatar.tsx.snap +0 -19
  740. package/src/__tests__/__snapshots__/AvatarStack.tsx.snap +0 -377
  741. package/src/__tests__/__snapshots__/BorderBox.tsx.snap +0 -14
  742. package/src/__tests__/__snapshots__/Box.tsx.snap +0 -201
  743. package/src/__tests__/__snapshots__/BranchName.tsx.snap +0 -17
  744. package/src/__tests__/__snapshots__/Breadcrumb.tsx.snap +0 -29
  745. package/src/__tests__/__snapshots__/BreadcrumbItem.tsx.snap +0 -79
  746. package/src/__tests__/__snapshots__/Button.tsx.snap +0 -832
  747. package/src/__tests__/__snapshots__/Caret.tsx.snap +0 -373
  748. package/src/__tests__/__snapshots__/CircleBadge.tsx.snap +0 -141
  749. package/src/__tests__/__snapshots__/CircleOcticon.tsx.snap +0 -64
  750. package/src/__tests__/__snapshots__/CounterLabel.tsx.snap +0 -22
  751. package/src/__tests__/__snapshots__/Details.tsx.snap +0 -15
  752. package/src/__tests__/__snapshots__/Dialog.tsx.snap +0 -200
  753. package/src/__tests__/__snapshots__/Dropdown.tsx.snap +0 -249
  754. package/src/__tests__/__snapshots__/DropdownMenu.tsx.snap +0 -106
  755. package/src/__tests__/__snapshots__/FilterList.tsx.snap +0 -13
  756. package/src/__tests__/__snapshots__/FilterListItem.tsx.snap +0 -80
  757. package/src/__tests__/__snapshots__/FilteredSearch.tsx.snap +0 -32
  758. package/src/__tests__/__snapshots__/Flash.tsx.snap +0 -32
  759. package/src/__tests__/__snapshots__/Flex.tsx.snap +0 -130
  760. package/src/__tests__/__snapshots__/FormGroup.tsx.snap +0 -25
  761. package/src/__tests__/__snapshots__/Grid.tsx.snap +0 -178
  762. package/src/__tests__/__snapshots__/Header.tsx.snap +0 -79
  763. package/src/__tests__/__snapshots__/Heading.tsx.snap +0 -13
  764. package/src/__tests__/__snapshots__/Label.tsx.snap +0 -74
  765. package/src/__tests__/__snapshots__/LabelGroup.tsx.snap +0 -15
  766. package/src/__tests__/__snapshots__/Link.tsx.snap +0 -213
  767. package/src/__tests__/__snapshots__/Pagehead.tsx.snap +0 -15
  768. package/src/__tests__/__snapshots__/PointerBox.tsx.snap +0 -174
  769. package/src/__tests__/__snapshots__/Popover.tsx.snap +0 -4687
  770. package/src/__tests__/__snapshots__/Position.tsx.snap +0 -44
  771. package/src/__tests__/__snapshots__/ProgressBar.tsx.snap +0 -53
  772. package/src/__tests__/__snapshots__/SelectMenu.tsx.snap +0 -469
  773. package/src/__tests__/__snapshots__/SelectPanel.tsx.snap +0 -123
  774. package/src/__tests__/__snapshots__/SideNav.tsx.snap +0 -143
  775. package/src/__tests__/__snapshots__/Spinner.tsx.snap +0 -33
  776. package/src/__tests__/__snapshots__/StateLabel.tsx.snap +0 -409
  777. package/src/__tests__/__snapshots__/StyledOcticon.tsx.snap +0 -25
  778. package/src/__tests__/__snapshots__/SubNav.tsx.snap +0 -44
  779. package/src/__tests__/__snapshots__/SubNavLink.tsx.snap +0 -199
  780. package/src/__tests__/__snapshots__/TabNav.tsx.snap +0 -58
  781. package/src/__tests__/__snapshots__/Text.tsx.snap +0 -7
  782. package/src/__tests__/__snapshots__/TextInput.tsx.snap +0 -440
  783. package/src/__tests__/__snapshots__/ThemeProvider.tsx.snap +0 -15
  784. package/src/__tests__/__snapshots__/Timeline.tsx.snap +0 -157
  785. package/src/__tests__/__snapshots__/Tooltip.tsx.snap +0 -227
  786. package/src/__tests__/__snapshots__/Truncate.tsx.snap +0 -17
  787. package/src/__tests__/__snapshots__/UnderlineNav.tsx.snap +0 -59
  788. package/src/__tests__/__snapshots__/UnderlineNavLink.tsx.snap +0 -130
  789. package/src/__tests__/behaviors/anchoredPosition.ts +0 -295
  790. package/src/__tests__/behaviors/focusTrap.tsx +0 -236
  791. package/src/__tests__/behaviors/focusZone.tsx +0 -549
  792. package/src/__tests__/behaviors/iterateFocusableElements.tsx +0 -61
  793. package/src/__tests__/filterObject.ts +0 -54
  794. package/src/__tests__/hooks/useAnchoredPosition.tsx +0 -31
  795. package/src/__tests__/hooks/useOnEscapePress.tsx +0 -16
  796. package/src/__tests__/hooks/useOnOutsideClick.tsx +0 -48
  797. package/src/__tests__/hooks/useOpenAndCloseFocus.tsx +0 -48
  798. package/src/__tests__/hooks/useProvidedStateOrCreate.tsx +0 -39
  799. package/src/__tests__/theme.ts +0 -41
  800. package/src/__tests__/themeGet.ts +0 -15
  801. package/src/__tests__/useSafeTimeout.tsx +0 -36
  802. package/src/behaviors/anchoredPosition.ts +0 -442
  803. package/src/behaviors/focusTrap.ts +0 -184
  804. package/src/behaviors/focusZone.ts +0 -713
  805. package/src/constants.ts +0 -62
  806. package/src/hooks/index.ts +0 -11
  807. package/src/hooks/useAnchoredPosition.ts +0 -53
  808. package/src/hooks/useCombinedRefs.ts +0 -40
  809. package/src/hooks/useDetails.tsx +0 -54
  810. package/src/hooks/useDialog.ts +0 -121
  811. package/src/hooks/useFocusTrap.ts +0 -80
  812. package/src/hooks/useFocusZone.ts +0 -64
  813. package/src/hooks/useOnEscapePress.ts +0 -63
  814. package/src/hooks/useOnOutsideClick.tsx +0 -82
  815. package/src/hooks/useOpenAndCloseFocus.ts +0 -27
  816. package/src/hooks/useOverlay.tsx +0 -32
  817. package/src/hooks/useProvidedRefOrCreate.ts +0 -14
  818. package/src/hooks/useProvidedStateOrCreate.ts +0 -27
  819. package/src/hooks/useRenderForcingRef.ts +0 -22
  820. package/src/hooks/useResizeObserver.ts +0 -11
  821. package/src/hooks/useSafeTimeout.ts +0 -38
  822. package/src/hooks/useScrollFlash.ts +0 -21
  823. package/src/index.ts +0 -165
  824. package/src/polyfills/eventListenerSignal.ts +0 -66
  825. package/src/stories/ActionList.stories.tsx +0 -364
  826. package/src/stories/ActionMenu.stories.tsx +0 -322
  827. package/src/stories/AnchoredOverlay.stories.tsx +0 -117
  828. package/src/stories/AvatarStack.stories.tsx +0 -37
  829. package/src/stories/Button.stories.tsx +0 -88
  830. package/src/stories/ConfirmationDialog.stories.tsx +0 -105
  831. package/src/stories/Dialog.stories.tsx +0 -240
  832. package/src/stories/DropdownMenu.stories.tsx +0 -84
  833. package/src/stories/Overlay.stories.tsx +0 -186
  834. package/src/stories/Portal.stories.tsx +0 -109
  835. package/src/stories/SelectPanel.stories.tsx +0 -300
  836. package/src/stories/ThemeProvider.stories.tsx +0 -104
  837. package/src/stories/useAnchoredPosition.stories.tsx +0 -320
  838. package/src/stories/useFocusTrap.stories.tsx +0 -400
  839. package/src/stories/useFocusZone.stories.tsx +0 -663
  840. package/src/sx.ts +0 -9
  841. package/src/theme-preval.js +0 -120
  842. package/src/theme.ts +0 -3
  843. package/src/utils/deprecate.tsx +0 -73
  844. package/src/utils/isNumeric.tsx +0 -4
  845. package/src/utils/iterateFocusableElements.ts +0 -121
  846. package/src/utils/ssr.tsx +0 -1
  847. package/src/utils/test-deprecations.tsx +0 -19
  848. package/src/utils/test-helpers.tsx +0 -7
  849. package/src/utils/test-matchers.tsx +0 -109
  850. package/src/utils/testing.tsx +0 -243
  851. package/src/utils/theme.js +0 -64
  852. package/src/utils/types.ts +0 -90
  853. package/src/utils/uniqueId.ts +0 -6
  854. package/src/utils/userAgent.ts +0 -7
  855. package/stats.html +0 -3279
  856. package/tsconfig.json +0 -20
package/stats.html DELETED
@@ -1,3279 +0,0 @@
1
-
2
- <!DOCTYPE html>
3
- <html lang="en">
4
- <head>
5
- <meta charset="UTF-8" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <meta http-equiv="X-UA-Compatible" content="ie=edge" />
8
- <title>RollUp Visualizer</title>
9
- <style>
10
- :root {
11
- --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
12
- "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
13
- "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
14
- --background-color: #f7eedf;
15
- --text-color: #333;
16
- }
17
-
18
- @media (prefers-color-scheme: dark) {
19
- :root {
20
- --background-color: #2b2d42;
21
- --text-color: #edf2f4;
22
- }
23
- }
24
- html {
25
- box-sizing: border-box;
26
- }
27
-
28
- *,
29
- *:before,
30
- *:after {
31
- box-sizing: inherit;
32
- }
33
-
34
- html {
35
- background-color: var(--background-color);
36
- color: var(--text-color);
37
- font-family: var(--font-family);
38
- }
39
-
40
- body {
41
- padding: 0;
42
- margin: 0;
43
- }
44
-
45
- html,
46
- body {
47
- height: 100%;
48
- width: 100%;
49
- overflow: hidden;
50
- }
51
-
52
- body {
53
- display: flex;
54
- flex-direction: column;
55
- }
56
-
57
- svg {
58
- vertical-align: middle;
59
- width: 100%;
60
- height: 100%;
61
- max-height: 100vh;
62
- }
63
-
64
- main {
65
- flex-grow: 1;
66
- height: 100vh;
67
- padding: 20px;
68
- }
69
-
70
- .tooltip {
71
- position: absolute;
72
- z-index: 1070;
73
- border: 2px solid;
74
- border-radius: 5px;
75
- padding: 5px;
76
- white-space: nowrap;
77
- font-size: 0.875rem;
78
- background-color: var(--background-color);
79
- color: var(--text-color);
80
- }
81
-
82
- .tooltip-hidden {
83
- visibility: hidden;
84
- opacity: 0;
85
- }
86
-
87
- .sidebar {
88
- position: fixed;
89
- top: 0;
90
- left: 0;
91
- right: 0;
92
- display: flex;
93
- flex-direction: row;
94
- font-size: 0.7rem;
95
- align-items: center;
96
- margin: 0 50px;
97
- height: 20px;
98
- }
99
-
100
- .size-selectors {
101
- display: flex;
102
- flex-direction: row;
103
- align-items: center;
104
- }
105
-
106
- .size-selector {
107
- display: flex;
108
- flex-direction: row;
109
- align-items: center;
110
- justify-content: center;
111
- margin-right: 1rem;
112
- }
113
- .size-selector input {
114
- margin: 0 0.3rem 0 0;
115
- }
116
-
117
- .filters {
118
- flex: 1;
119
- display: flex;
120
- flex-direction: row;
121
- align-items: center;
122
- }
123
-
124
- .module-filters {
125
- display: flex;
126
- }
127
-
128
- .module-filter {
129
- display: flex;
130
- flex-direction: row;
131
- align-items: center;
132
- justify-content: center;
133
- flex: 1;
134
- }
135
- .module-filter input {
136
- flex: 1;
137
- height: 1rem;
138
- padding: 0.01rem;
139
- font-size: 0.7rem;
140
- margin-left: 0.3rem;
141
- }
142
- .module-filter + .module-filter {
143
- margin-left: 0.5rem;
144
- }
145
- </style>
146
- </head>
147
- <body>
148
- <main></main>
149
- <script>
150
- /*<!--*/
151
- var drawChart = (function (exports) {
152
- 'use strict';
153
-
154
- var n,u$1,i$1,t$1,o$2,r$1={},f$1=[],e$1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c$1(n,l){for(var u in l)n[u]=l[u];return n}function s$1(n){var l=n.parentNode;l&&l.removeChild(n);}function a$1(n,l,u){var i,t,o,r=arguments,f={};for(o in l)"key"==o?i=l[o]:"ref"==o?t=l[o]:f[o]=l[o];if(arguments.length>3)for(u=[u],o=3;o<arguments.length;o++)u.push(r[o]);if(null!=u&&(f.children=u),"function"==typeof n&&null!=n.defaultProps)for(o in n.defaultProps)void 0===f[o]&&(f[o]=n.defaultProps[o]);return v$1(n,f,i,t,null)}function v$1(l,u,i,t,o){var r={type:l,props:u,key:i,ref:t,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++n.__v:o};return null!=n.vnode&&n.vnode(r),r}function y$1(n){return n.children}function p$1(n,l){this.props=n,this.context=l;}function d$1(n,l){if(null==l)return n.__?d$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?d$1(n):null}function _(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return _(n)}}function k$1(l){(!l.__d&&(l.__d=!0)&&u$1.push(l)&&!b$1.__r++||t$1!==n.debounceRendering)&&((t$1=n.debounceRendering)||i$1)(b$1);}function b$1(){for(var n;b$1.__r=u$1.length;)n=u$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),u$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=c$1({},t)).__v=t.__v+1,I(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?d$1(t):o,t.__h),T(u,t),t.__e!=o&&_(t)));});}function m$1(n,l,u,i,t,o,e,c,s,a){var h,p,_,k,b,m,w,A=i&&i.__k||f$1,P=A.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(k=u.__k[h]=null==(k=l[h])||"boolean"==typeof k?null:"string"==typeof k||"number"==typeof k||"bigint"==typeof k?v$1(null,k,null,null,k):Array.isArray(k)?v$1(y$1,{children:k},null,null,null):k.__b>0?v$1(k.type,k.props,k.key,null,k.__v):k)){if(k.__=u,k.__b=u.__b+1,null===(_=A[h])||_&&k.key==_.key&&k.type===_.type)A[h]=void 0;else for(p=0;p<P;p++){if((_=A[p])&&k.key==_.key&&k.type===_.type){A[p]=void 0;break}_=null;}I(n,k,_=_||r$1,t,o,e,c,s,a),b=k.__e,(p=k.ref)&&_.ref!=p&&(w||(w=[]),_.ref&&w.push(_.ref,null,k),w.push(p,k.__c||b,k)),null!=b?(null==m&&(m=b),"function"==typeof k.type&&null!=k.__k&&k.__k===_.__k?k.__d=s=g$1(k,s,n):s=x$1(n,k,_,A,b,s),a||"option"!==u.type?"function"==typeof u.type&&(u.__d=s):n.value=""):s&&_.__e==s&&s.parentNode!=n&&(s=d$1(_));}for(u.__e=m,h=P;h--;)null!=A[h]&&("function"==typeof u.type&&null!=A[h].__e&&A[h].__e==u.__d&&(u.__d=d$1(i,h+1)),L(A[h],A[h]));if(w)for(h=0;h<w.length;h++)z(w[h],w[++h],w[++h]);}function g$1(n,l,u){var i,t;for(i=0;i<n.__k.length;i++)(t=n.__k[i])&&(t.__=n,l="function"==typeof t.type?g$1(t,l,u):x$1(u,t,t,n.__k,t.__e,l));return l}function x$1(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function A$1(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||C$1(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||C$1(n,o,l[o],u[o],i);}function P(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||e$1.test(l)?u:u+"px";}function C$1(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||P(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||P(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?H:$,o):n.removeEventListener(l,o?H:$,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function $(l){this.l[l.type+!1](n.event?n.event(l):l);}function H(l){this.l[l.type+!0](n.event?n.event(l):l);}function I(l,u,i,t,o,r,f,e,s){var a,v,h,d,_,k,b,g,w,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(s=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(a=n.__b)&&a(u);try{n:if("function"==typeof P){if(g=u.props,w=(a=P.contextType)&&t[a.__c],x=a?w?w.props.value:a.__:t,i.__c?b=(v=u.__c=i.__c).__=v.__E:("prototype"in P&&P.prototype.render?u.__c=v=new P(g,x):(u.__c=v=new p$1(g,x),v.constructor=P,v.render=M),w&&w.sub(v),v.props=g,v.state||(v.state={}),v.context=x,v.__n=t,h=v.__d=!0,v.__h=[]),null==v.__s&&(v.__s=v.state),null!=P.getDerivedStateFromProps&&(v.__s==v.state&&(v.__s=c$1({},v.__s)),c$1(v.__s,P.getDerivedStateFromProps(g,v.__s))),d=v.props,_=v.state,h)null==P.getDerivedStateFromProps&&null!=v.componentWillMount&&v.componentWillMount(),null!=v.componentDidMount&&v.__h.push(v.componentDidMount);else {if(null==P.getDerivedStateFromProps&&g!==d&&null!=v.componentWillReceiveProps&&v.componentWillReceiveProps(g,x),!v.__e&&null!=v.shouldComponentUpdate&&!1===v.shouldComponentUpdate(g,v.__s,x)||u.__v===i.__v){v.props=g,v.state=v.__s,u.__v!==i.__v&&(v.__d=!1),v.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),v.__h.length&&f.push(v);break n}null!=v.componentWillUpdate&&v.componentWillUpdate(g,v.__s,x),null!=v.componentDidUpdate&&v.__h.push(function(){v.componentDidUpdate(d,_,k);});}v.context=x,v.props=g,v.state=v.__s,(a=n.__r)&&a(u),v.__d=!1,v.__v=u,v.__P=l,a=v.render(v.props,v.state,v.context),v.state=v.__s,null!=v.getChildContext&&(t=c$1(c$1({},t),v.getChildContext())),h||null==v.getSnapshotBeforeUpdate||(k=v.getSnapshotBeforeUpdate(d,_)),A=null!=a&&a.type===y$1&&null==a.key?a.props.children:a,m$1(l,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,s),v.base=u.__e,u.__h=null,v.__h.length&&f.push(v),b&&(v.__E=v.__=null),v.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=j$1(i.__e,u,i,t,o,r,f,s);(a=n.diffed)&&a(u);}catch(l){u.__v=null,(s||null!=r)&&(u.__e=e,u.__h=!!s,r[r.indexOf(e)]=null),n.__e(l,u,i);}}function T(l,u){n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u);});}catch(l){n.__e(l,u.__v);}});}function j$1(n,l,u,i,t,o,e,c){var a,v,h,y,p=u.props,d=l.props,_=l.type,k=0;if("svg"===_&&(t=!0),null!=o)for(;k<o.length;k++)if((a=o[k])&&(a===n||(_?a.localName==_:3==a.nodeType))){n=a,o[k]=null;break}if(null==n){if(null===_)return document.createTextNode(d);n=t?document.createElementNS("http://www.w3.org/2000/svg",_):document.createElement(_,d.is&&d),o=null,c=!1;}if(null===_)p===d||c&&n.data===d||(n.data=d);else {if(o=o&&f$1.slice.call(n.childNodes),v=(p=u.props||r$1).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=o)for(p={},y=0;y<n.attributes.length;y++)p[n.attributes[y].name]=n.attributes[y].value;(h||v)&&(h&&(v&&h.__html==v.__html||h.__html===n.innerHTML)||(n.innerHTML=h&&h.__html||""));}if(A$1(n,d,p,t,c),h)l.__k=[];else if(k=l.props.children,m$1(n,Array.isArray(k)?k:[k],l,u,i,t&&"foreignObject"!==_,o,e,n.firstChild,c),null!=o)for(k=o.length;k--;)null!=o[k]&&s$1(o[k]);c||("value"in d&&void 0!==(k=d.value)&&(k!==n.value||"progress"===_&&!k)&&C$1(n,"value",k,p.value,!1),"checked"in d&&void 0!==(k=d.checked)&&k!==n.checked&&C$1(n,"checked",k,p.checked,!1));}return n}function z(l,u,i){try{"function"==typeof l?l(u):l.current=u;}catch(l){n.__e(l,i);}}function L(l,u,i){var t,o,r;if(n.unmount&&n.unmount(l),(t=l.ref)&&(t.current&&t.current!==l.__e||z(t,null,u)),i||"function"==typeof l.type||(i=null!=(o=l.__e)),l.__e=l.__d=void 0,null!=(t=l.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(l){n.__e(l,u);}t.base=t.__P=null;}if(t=l.__k)for(r=0;r<t.length;r++)t[r]&&L(t[r],u,i);null!=o&&s$1(o);}function M(n,l,u){return this.constructor(n,u)}function N(l,u,i){var t,o,e;n.__&&n.__(l,u),o=(t="function"==typeof i)?null:i&&i.__k||u.__k,e=[],I(u,l=(!t&&i||u).__k=a$1(y$1,null,[l]),o||r$1,r$1,void 0!==u.ownerSVGElement,!t&&i?[i]:o?null:u.firstChild?f$1.slice.call(u.childNodes):null,e,!t&&i?i:o?o.__e:u.firstChild,t),T(e,l);}function q(n,l){var u={__c:l="__cC"+o$2++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,i;return this.getChildContext||(u=[],(i={})[l]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(k$1);},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n);};}),n.children}};return u.Provider.__=u.Consumer.contextType=u}n={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n},__v:0},p$1.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c$1({},this.state),"function"==typeof n&&(n=n(c$1({},u),this.props)),n&&c$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),k$1(this));},p$1.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),k$1(this));},p$1.prototype.render=y$1,u$1=[],i$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b$1.__r=0,o$2=0;
155
-
156
- function o$1(_,o,e,n$1,t){var f={};for(var l in o)"ref"!=l&&(f[l]=o[l]);var s,u,a={type:_,props:f,key:e,ref:o&&o.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++n.__v,__source:n$1,__self:t};if("function"==typeof _&&(s=_.defaultProps))for(u in s)void 0===f[u]&&(f[u]=s[u]);return n.vnode&&n.vnode(a),a}
157
-
158
- function count$1(node) {
159
- var sum = 0,
160
- children = node.children,
161
- i = children && children.length;
162
- if (!i) sum = 1;
163
- else while (--i >= 0) sum += children[i].value;
164
- node.value = sum;
165
- }
166
-
167
- function node_count() {
168
- return this.eachAfter(count$1);
169
- }
170
-
171
- function node_each(callback, that) {
172
- let index = -1;
173
- for (const node of this) {
174
- callback.call(that, node, ++index, this);
175
- }
176
- return this;
177
- }
178
-
179
- function node_eachBefore(callback, that) {
180
- var node = this, nodes = [node], children, i, index = -1;
181
- while (node = nodes.pop()) {
182
- callback.call(that, node, ++index, this);
183
- if (children = node.children) {
184
- for (i = children.length - 1; i >= 0; --i) {
185
- nodes.push(children[i]);
186
- }
187
- }
188
- }
189
- return this;
190
- }
191
-
192
- function node_eachAfter(callback, that) {
193
- var node = this, nodes = [node], next = [], children, i, n, index = -1;
194
- while (node = nodes.pop()) {
195
- next.push(node);
196
- if (children = node.children) {
197
- for (i = 0, n = children.length; i < n; ++i) {
198
- nodes.push(children[i]);
199
- }
200
- }
201
- }
202
- while (node = next.pop()) {
203
- callback.call(that, node, ++index, this);
204
- }
205
- return this;
206
- }
207
-
208
- function node_find(callback, that) {
209
- let index = -1;
210
- for (const node of this) {
211
- if (callback.call(that, node, ++index, this)) {
212
- return node;
213
- }
214
- }
215
- }
216
-
217
- function node_sum(value) {
218
- return this.eachAfter(function(node) {
219
- var sum = +value(node.data) || 0,
220
- children = node.children,
221
- i = children && children.length;
222
- while (--i >= 0) sum += children[i].value;
223
- node.value = sum;
224
- });
225
- }
226
-
227
- function node_sort(compare) {
228
- return this.eachBefore(function(node) {
229
- if (node.children) {
230
- node.children.sort(compare);
231
- }
232
- });
233
- }
234
-
235
- function node_path(end) {
236
- var start = this,
237
- ancestor = leastCommonAncestor(start, end),
238
- nodes = [start];
239
- while (start !== ancestor) {
240
- start = start.parent;
241
- nodes.push(start);
242
- }
243
- var k = nodes.length;
244
- while (end !== ancestor) {
245
- nodes.splice(k, 0, end);
246
- end = end.parent;
247
- }
248
- return nodes;
249
- }
250
-
251
- function leastCommonAncestor(a, b) {
252
- if (a === b) return a;
253
- var aNodes = a.ancestors(),
254
- bNodes = b.ancestors(),
255
- c = null;
256
- a = aNodes.pop();
257
- b = bNodes.pop();
258
- while (a === b) {
259
- c = a;
260
- a = aNodes.pop();
261
- b = bNodes.pop();
262
- }
263
- return c;
264
- }
265
-
266
- function node_ancestors() {
267
- var node = this, nodes = [node];
268
- while (node = node.parent) {
269
- nodes.push(node);
270
- }
271
- return nodes;
272
- }
273
-
274
- function node_descendants() {
275
- return Array.from(this);
276
- }
277
-
278
- function node_leaves() {
279
- var leaves = [];
280
- this.eachBefore(function(node) {
281
- if (!node.children) {
282
- leaves.push(node);
283
- }
284
- });
285
- return leaves;
286
- }
287
-
288
- function node_links() {
289
- var root = this, links = [];
290
- root.each(function(node) {
291
- if (node !== root) { // Don’t include the root’s parent, if any.
292
- links.push({source: node.parent, target: node});
293
- }
294
- });
295
- return links;
296
- }
297
-
298
- function* node_iterator() {
299
- var node = this, current, next = [node], children, i, n;
300
- do {
301
- current = next.reverse(), next = [];
302
- while (node = current.pop()) {
303
- yield node;
304
- if (children = node.children) {
305
- for (i = 0, n = children.length; i < n; ++i) {
306
- next.push(children[i]);
307
- }
308
- }
309
- }
310
- } while (next.length);
311
- }
312
-
313
- function hierarchy(data, children) {
314
- if (data instanceof Map) {
315
- data = [undefined, data];
316
- if (children === undefined) children = mapChildren;
317
- } else if (children === undefined) {
318
- children = objectChildren;
319
- }
320
-
321
- var root = new Node$1(data),
322
- node,
323
- nodes = [root],
324
- child,
325
- childs,
326
- i,
327
- n;
328
-
329
- while (node = nodes.pop()) {
330
- if ((childs = children(node.data)) && (n = (childs = Array.from(childs)).length)) {
331
- node.children = childs;
332
- for (i = n - 1; i >= 0; --i) {
333
- nodes.push(child = childs[i] = new Node$1(childs[i]));
334
- child.parent = node;
335
- child.depth = node.depth + 1;
336
- }
337
- }
338
- }
339
-
340
- return root.eachBefore(computeHeight);
341
- }
342
-
343
- function node_copy() {
344
- return hierarchy(this).eachBefore(copyData);
345
- }
346
-
347
- function objectChildren(d) {
348
- return d.children;
349
- }
350
-
351
- function mapChildren(d) {
352
- return Array.isArray(d) ? d[1] : null;
353
- }
354
-
355
- function copyData(node) {
356
- if (node.data.value !== undefined) node.value = node.data.value;
357
- node.data = node.data.data;
358
- }
359
-
360
- function computeHeight(node) {
361
- var height = 0;
362
- do node.height = height;
363
- while ((node = node.parent) && (node.height < ++height));
364
- }
365
-
366
- function Node$1(data) {
367
- this.data = data;
368
- this.depth =
369
- this.height = 0;
370
- this.parent = null;
371
- }
372
-
373
- Node$1.prototype = hierarchy.prototype = {
374
- constructor: Node$1,
375
- count: node_count,
376
- each: node_each,
377
- eachAfter: node_eachAfter,
378
- eachBefore: node_eachBefore,
379
- find: node_find,
380
- sum: node_sum,
381
- sort: node_sort,
382
- path: node_path,
383
- ancestors: node_ancestors,
384
- descendants: node_descendants,
385
- leaves: node_leaves,
386
- links: node_links,
387
- copy: node_copy,
388
- [Symbol.iterator]: node_iterator
389
- };
390
-
391
- function required(f) {
392
- if (typeof f !== "function") throw new Error;
393
- return f;
394
- }
395
-
396
- function constantZero() {
397
- return 0;
398
- }
399
-
400
- function constant(x) {
401
- return function() {
402
- return x;
403
- };
404
- }
405
-
406
- function roundNode(node) {
407
- node.x0 = Math.round(node.x0);
408
- node.y0 = Math.round(node.y0);
409
- node.x1 = Math.round(node.x1);
410
- node.y1 = Math.round(node.y1);
411
- }
412
-
413
- function treemapDice(parent, x0, y0, x1, y1) {
414
- var nodes = parent.children,
415
- node,
416
- i = -1,
417
- n = nodes.length,
418
- k = parent.value && (x1 - x0) / parent.value;
419
-
420
- while (++i < n) {
421
- node = nodes[i], node.y0 = y0, node.y1 = y1;
422
- node.x0 = x0, node.x1 = x0 += node.value * k;
423
- }
424
- }
425
-
426
- function treemapSlice(parent, x0, y0, x1, y1) {
427
- var nodes = parent.children,
428
- node,
429
- i = -1,
430
- n = nodes.length,
431
- k = parent.value && (y1 - y0) / parent.value;
432
-
433
- while (++i < n) {
434
- node = nodes[i], node.x0 = x0, node.x1 = x1;
435
- node.y0 = y0, node.y1 = y0 += node.value * k;
436
- }
437
- }
438
-
439
- var phi = (1 + Math.sqrt(5)) / 2;
440
-
441
- function squarifyRatio(ratio, parent, x0, y0, x1, y1) {
442
- var rows = [],
443
- nodes = parent.children,
444
- row,
445
- nodeValue,
446
- i0 = 0,
447
- i1 = 0,
448
- n = nodes.length,
449
- dx, dy,
450
- value = parent.value,
451
- sumValue,
452
- minValue,
453
- maxValue,
454
- newRatio,
455
- minRatio,
456
- alpha,
457
- beta;
458
-
459
- while (i0 < n) {
460
- dx = x1 - x0, dy = y1 - y0;
461
-
462
- // Find the next non-empty node.
463
- do sumValue = nodes[i1++].value; while (!sumValue && i1 < n);
464
- minValue = maxValue = sumValue;
465
- alpha = Math.max(dy / dx, dx / dy) / (value * ratio);
466
- beta = sumValue * sumValue * alpha;
467
- minRatio = Math.max(maxValue / beta, beta / minValue);
468
-
469
- // Keep adding nodes while the aspect ratio maintains or improves.
470
- for (; i1 < n; ++i1) {
471
- sumValue += nodeValue = nodes[i1].value;
472
- if (nodeValue < minValue) minValue = nodeValue;
473
- if (nodeValue > maxValue) maxValue = nodeValue;
474
- beta = sumValue * sumValue * alpha;
475
- newRatio = Math.max(maxValue / beta, beta / minValue);
476
- if (newRatio > minRatio) { sumValue -= nodeValue; break; }
477
- minRatio = newRatio;
478
- }
479
-
480
- // Position and record the row orientation.
481
- rows.push(row = {value: sumValue, dice: dx < dy, children: nodes.slice(i0, i1)});
482
- if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += dy * sumValue / value : y1);
483
- else treemapSlice(row, x0, y0, value ? x0 += dx * sumValue / value : x1, y1);
484
- value -= sumValue, i0 = i1;
485
- }
486
-
487
- return rows;
488
- }
489
-
490
- var squarify = (function custom(ratio) {
491
-
492
- function squarify(parent, x0, y0, x1, y1) {
493
- squarifyRatio(ratio, parent, x0, y0, x1, y1);
494
- }
495
-
496
- squarify.ratio = function(x) {
497
- return custom((x = +x) > 1 ? x : 1);
498
- };
499
-
500
- return squarify;
501
- })(phi);
502
-
503
- function treemap() {
504
- var tile = squarify,
505
- round = false,
506
- dx = 1,
507
- dy = 1,
508
- paddingStack = [0],
509
- paddingInner = constantZero,
510
- paddingTop = constantZero,
511
- paddingRight = constantZero,
512
- paddingBottom = constantZero,
513
- paddingLeft = constantZero;
514
-
515
- function treemap(root) {
516
- root.x0 =
517
- root.y0 = 0;
518
- root.x1 = dx;
519
- root.y1 = dy;
520
- root.eachBefore(positionNode);
521
- paddingStack = [0];
522
- if (round) root.eachBefore(roundNode);
523
- return root;
524
- }
525
-
526
- function positionNode(node) {
527
- var p = paddingStack[node.depth],
528
- x0 = node.x0 + p,
529
- y0 = node.y0 + p,
530
- x1 = node.x1 - p,
531
- y1 = node.y1 - p;
532
- if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
533
- if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
534
- node.x0 = x0;
535
- node.y0 = y0;
536
- node.x1 = x1;
537
- node.y1 = y1;
538
- if (node.children) {
539
- p = paddingStack[node.depth + 1] = paddingInner(node) / 2;
540
- x0 += paddingLeft(node) - p;
541
- y0 += paddingTop(node) - p;
542
- x1 -= paddingRight(node) - p;
543
- y1 -= paddingBottom(node) - p;
544
- if (x1 < x0) x0 = x1 = (x0 + x1) / 2;
545
- if (y1 < y0) y0 = y1 = (y0 + y1) / 2;
546
- tile(node, x0, y0, x1, y1);
547
- }
548
- }
549
-
550
- treemap.round = function(x) {
551
- return arguments.length ? (round = !!x, treemap) : round;
552
- };
553
-
554
- treemap.size = function(x) {
555
- return arguments.length ? (dx = +x[0], dy = +x[1], treemap) : [dx, dy];
556
- };
557
-
558
- treemap.tile = function(x) {
559
- return arguments.length ? (tile = required(x), treemap) : tile;
560
- };
561
-
562
- treemap.padding = function(x) {
563
- return arguments.length ? treemap.paddingInner(x).paddingOuter(x) : treemap.paddingInner();
564
- };
565
-
566
- treemap.paddingInner = function(x) {
567
- return arguments.length ? (paddingInner = typeof x === "function" ? x : constant(+x), treemap) : paddingInner;
568
- };
569
-
570
- treemap.paddingOuter = function(x) {
571
- return arguments.length ? treemap.paddingTop(x).paddingRight(x).paddingBottom(x).paddingLeft(x) : treemap.paddingTop();
572
- };
573
-
574
- treemap.paddingTop = function(x) {
575
- return arguments.length ? (paddingTop = typeof x === "function" ? x : constant(+x), treemap) : paddingTop;
576
- };
577
-
578
- treemap.paddingRight = function(x) {
579
- return arguments.length ? (paddingRight = typeof x === "function" ? x : constant(+x), treemap) : paddingRight;
580
- };
581
-
582
- treemap.paddingBottom = function(x) {
583
- return arguments.length ? (paddingBottom = typeof x === "function" ? x : constant(+x), treemap) : paddingBottom;
584
- };
585
-
586
- treemap.paddingLeft = function(x) {
587
- return arguments.length ? (paddingLeft = typeof x === "function" ? x : constant(+x), treemap) : paddingLeft;
588
- };
589
-
590
- return treemap;
591
- }
592
-
593
- var treemapResquarify = (function custom(ratio) {
594
-
595
- function resquarify(parent, x0, y0, x1, y1) {
596
- if ((rows = parent._squarify) && (rows.ratio === ratio)) {
597
- var rows,
598
- row,
599
- nodes,
600
- i,
601
- j = -1,
602
- n,
603
- m = rows.length,
604
- value = parent.value;
605
-
606
- while (++j < m) {
607
- row = rows[j], nodes = row.children;
608
- for (i = row.value = 0, n = nodes.length; i < n; ++i) row.value += nodes[i].value;
609
- if (row.dice) treemapDice(row, x0, y0, x1, value ? y0 += (y1 - y0) * row.value / value : y1);
610
- else treemapSlice(row, x0, y0, value ? x0 += (x1 - x0) * row.value / value : x1, y1);
611
- value -= row.value;
612
- }
613
- } else {
614
- parent._squarify = rows = squarifyRatio(ratio, parent, x0, y0, x1, y1);
615
- rows.ratio = ratio;
616
- }
617
- }
618
-
619
- resquarify.ratio = function(x) {
620
- return custom((x = +x) > 1 ? x : 1);
621
- };
622
-
623
- return resquarify;
624
- })(phi);
625
-
626
- const isModuleTree = (mod) => "children" in mod;
627
-
628
- let count = 0;
629
- class Id {
630
- constructor(id) {
631
- this._id = id;
632
- const url = new URL(window.location.href);
633
- url.hash = id;
634
- this._href = url.toString();
635
- }
636
- get id() {
637
- return this._id;
638
- }
639
- get href() {
640
- return this._href;
641
- }
642
- toString() {
643
- return `url(${this.href})`;
644
- }
645
- }
646
- function generateUniqueId(name) {
647
- count += 1;
648
- const id = ["O", name, count].filter(Boolean).join("-");
649
- return new Id(id);
650
- }
651
-
652
- const LABELS = {
653
- renderedLength: "Rendered",
654
- gzipLength: "Gzip",
655
- brotliLength: "Brotli",
656
- };
657
- const getAvailableSizeOptions = (options) => {
658
- const availableSizeProperties = ["renderedLength"];
659
- if (options.gzip) {
660
- availableSizeProperties.push("gzipLength");
661
- }
662
- if (options.brotli) {
663
- availableSizeProperties.push("brotliLength");
664
- }
665
- return availableSizeProperties;
666
- };
667
-
668
- var t,u,r,o=0,i=[],c=n.__b,f=n.__r,e=n.diffed,a=n.__c,v=n.unmount;function m(t,r){n.__h&&n.__h(u,t,o||r),o=0;var i=u.__H||(u.__H={__:[],__h:[]});return t>=i.__.length&&i.__.push({}),i.__[t]}function l(n){return o=1,p(w,n)}function p(n,r,o){var i=m(t++,2);return i.t=n,i.__c||(i.__=[o?o(r):w(void 0,r),function(n){var t=i.t(i.__[0],n);i.__[0]!==t&&(i.__=[t,i.__[1]],i.__c.setState({}));}],i.__c=u),i.__}function y(r,o){var i=m(t++,3);!n.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__H.__h.push(i));}function h(r,o){var i=m(t++,4);!n.__s&&k(i.__H,o)&&(i.__=r,i.__H=o,u.__h.push(i));}function s(n){return o=5,d(function(){return {current:n}},[])}function d(n,u){var r=m(t++,7);return k(r.__H,u)&&(r.__=n(),r.__H=u,r.__h=n),r.__}function F(n){var r=u.context[n.__c],o=m(t++,9);return o.__c=n,r?(null==o.__&&(o.__=!0,r.sub(u)),r.props.value):n.__}function x(){i.forEach(function(t){if(t.__P)try{t.__H.__h.forEach(g),t.__H.__h.forEach(j),t.__H.__h=[];}catch(u){t.__H.__h=[],n.__e(u,t.__v);}}),i=[];}n.__b=function(n){u=null,c&&c(n);},n.__r=function(n){f&&f(n),t=0;var r=(u=n.__c).__H;r&&(r.__h.forEach(g),r.__h.forEach(j),r.__h=[]);},n.diffed=function(t){e&&e(t);var o=t.__c;o&&o.__H&&o.__H.__h.length&&(1!==i.push(o)&&r===n.requestAnimationFrame||((r=n.requestAnimationFrame)||function(n){var t,u=function(){clearTimeout(r),b&&cancelAnimationFrame(t),setTimeout(n);},r=setTimeout(u,100);b&&(t=requestAnimationFrame(u));})(x)),u=void 0;},n.__c=function(t,u){u.some(function(t){try{t.__h.forEach(g),t.__h=t.__h.filter(function(n){return !n.__||j(n)});}catch(r){u.some(function(n){n.__h&&(n.__h=[]);}),u=[],n.__e(r,t.__v);}}),a&&a(t,u);},n.unmount=function(t){v&&v(t);var u=t.__c;if(u&&u.__H)try{u.__H.__.forEach(g);}catch(t){n.__e(t,u.__v);}};var b="function"==typeof requestAnimationFrame;function g(n){var t=u;"function"==typeof n.__c&&n.__c(),u=t;}function j(n){var t=u;n.__c=n.__(),u=t;}function k(n,t){return !n||n.length!==t.length||t.some(function(t,u){return t!==n[u]})}function w(n,t){return "function"==typeof t?t(n):t}
669
-
670
- const SideBar = ({ availableSizeProperties, sizeProperty, setSizeProperty, onExcludeChange, onIncludeChange, }) => {
671
- const [includeValue, setIncludeValue] = l("");
672
- const [excludeValue, setExcludeValue] = l("");
673
- const handleSizePropertyChange = (sizeProp) => () => {
674
- if (sizeProp !== sizeProperty) {
675
- setSizeProperty(sizeProp);
676
- }
677
- };
678
- const handleIncludeChange = (event) => {
679
- const value = event.currentTarget.value;
680
- setIncludeValue(value);
681
- onIncludeChange(value);
682
- };
683
- const handleExcludeChange = (event) => {
684
- const value = event.currentTarget.value;
685
- setExcludeValue(value);
686
- onExcludeChange(value);
687
- };
688
- return (o$1("aside", Object.assign({ className: "sidebar" }, { children: [o$1("div", Object.assign({ className: "size-selectors" }, { children: availableSizeProperties.length > 1 &&
689
- availableSizeProperties.map((sizeProp) => {
690
- const id = `selector-${sizeProp}`;
691
- return (o$1("div", Object.assign({ className: "size-selector" }, { children: [o$1("input", { type: "radio", id: id, checked: sizeProp === sizeProperty, onChange: handleSizePropertyChange(sizeProp) }, void 0),
692
- o$1("label", Object.assign({ htmlFor: id }, { children: LABELS[sizeProp] }), void 0)] }), sizeProp));
693
- }) }), void 0),
694
- o$1("div", Object.assign({ className: "module-filters" }, { children: [o$1("div", Object.assign({ className: "module-filter" }, { children: [o$1("label", Object.assign({ htmlFor: "module-filter-exclude" }, { children: "Exclude" }), void 0),
695
- o$1("input", { type: "text", id: "module-filter-exclude", value: excludeValue, onInput: handleExcludeChange }, void 0)] }), void 0),
696
- o$1("div", Object.assign({ className: "module-filter" }, { children: [o$1("label", Object.assign({ htmlFor: "module-filter-include" }, { children: "Include" }), void 0),
697
- o$1("input", { type: "text", id: "module-filter-include", value: includeValue, onInput: handleIncludeChange }, void 0)] }), void 0)] }), void 0)] }), void 0));
698
- };
699
-
700
- const throttleFilter = (callback, limit) => {
701
- let waiting = false;
702
- return (val) => {
703
- if (!waiting) {
704
- callback(val);
705
- waiting = true;
706
- setTimeout(() => {
707
- waiting = false;
708
- }, limit);
709
- }
710
- };
711
- };
712
- const useFilter = () => {
713
- const [includeFilter, setIncludeFilter] = l("");
714
- const [excludeFilter, setExcludeFilter] = l("");
715
- const setIncludeFilterTrottled = d(() => throttleFilter(setIncludeFilter, 200), []);
716
- const setExcludeFilterTrottled = d(() => throttleFilter(setExcludeFilter, 200), []);
717
- const isModuleIncluded = d(() => {
718
- if (includeFilter === "") {
719
- return () => true;
720
- }
721
- try {
722
- const re = new RegExp(includeFilter);
723
- return ({ id }) => re.test(id);
724
- }
725
- catch (err) {
726
- return () => false;
727
- }
728
- }, [includeFilter]);
729
- const isModuleExcluded = d(() => {
730
- if (excludeFilter === "") {
731
- return () => false;
732
- }
733
- try {
734
- const re = new RegExp(excludeFilter);
735
- return ({ id }) => re.test(id);
736
- }
737
- catch (err) {
738
- return () => false;
739
- }
740
- }, [excludeFilter]);
741
- const isDefaultInclude = includeFilter === "";
742
- const getModuleFilterMultiplier = d(() => {
743
- return (data) => {
744
- if (isDefaultInclude) {
745
- return isModuleExcluded(data) ? 0 : 1;
746
- }
747
- return isModuleExcluded(data) && !isModuleIncluded(data) ? 0 : 1;
748
- };
749
- }, [isDefaultInclude, isModuleExcluded, isModuleIncluded]);
750
- return {
751
- getModuleFilterMultiplier,
752
- includeFilter,
753
- excludeFilter,
754
- setExcludeFilter: setExcludeFilterTrottled,
755
- setIncludeFilter: setIncludeFilterTrottled,
756
- };
757
- };
758
-
759
- function ascending(a, b) {
760
- return a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
761
- }
762
-
763
- function bisector(f) {
764
- let delta = f;
765
- let compare = f;
766
-
767
- if (f.length === 1) {
768
- delta = (d, x) => f(d) - x;
769
- compare = ascendingComparator(f);
770
- }
771
-
772
- function left(a, x, lo, hi) {
773
- if (lo == null) lo = 0;
774
- if (hi == null) hi = a.length;
775
- while (lo < hi) {
776
- const mid = (lo + hi) >>> 1;
777
- if (compare(a[mid], x) < 0) lo = mid + 1;
778
- else hi = mid;
779
- }
780
- return lo;
781
- }
782
-
783
- function right(a, x, lo, hi) {
784
- if (lo == null) lo = 0;
785
- if (hi == null) hi = a.length;
786
- while (lo < hi) {
787
- const mid = (lo + hi) >>> 1;
788
- if (compare(a[mid], x) > 0) hi = mid;
789
- else lo = mid + 1;
790
- }
791
- return lo;
792
- }
793
-
794
- function center(a, x, lo, hi) {
795
- if (lo == null) lo = 0;
796
- if (hi == null) hi = a.length;
797
- const i = left(a, x, lo, hi - 1);
798
- return i > lo && delta(a[i - 1], x) > -delta(a[i], x) ? i - 1 : i;
799
- }
800
-
801
- return {left, center, right};
802
- }
803
-
804
- function ascendingComparator(f) {
805
- return (d, x) => ascending(f(d), x);
806
- }
807
-
808
- function number$1(x) {
809
- return x === null ? NaN : +x;
810
- }
811
-
812
- const ascendingBisect = bisector(ascending);
813
- const bisectRight = ascendingBisect.right;
814
- bisector(number$1).center;
815
-
816
- function getAugmentedNamespace(n) {
817
- if (n.__esModule) return n;
818
- var a = Object.defineProperty({}, '__esModule', {value: true});
819
- Object.keys(n).forEach(function (k) {
820
- var d = Object.getOwnPropertyDescriptor(n, k);
821
- Object.defineProperty(a, k, d.get ? d : {
822
- enumerable: true,
823
- get: function () {
824
- return n[k];
825
- }
826
- });
827
- });
828
- return a;
829
- }
830
-
831
- function createCommonjsModule(fn) {
832
- var module = { exports: {} };
833
- return fn(module, module.exports), module.exports;
834
- }
835
-
836
- var internmap = createCommonjsModule(function (module, exports) {
837
- // https://github.com/mbostock/internmap/ v1.0.1 Copyright 2021 Mike Bostock
838
- (function (global, factory) {
839
- factory(exports) ;
840
- }(this, (function (exports) {
841
- class InternMap extends Map {
842
- constructor(entries, key = keyof) {
843
- super();
844
- Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});
845
- if (entries != null) for (const [key, value] of entries) this.set(key, value);
846
- }
847
- get(key) {
848
- return super.get(intern_get(this, key));
849
- }
850
- has(key) {
851
- return super.has(intern_get(this, key));
852
- }
853
- set(key, value) {
854
- return super.set(intern_set(this, key), value);
855
- }
856
- delete(key) {
857
- return super.delete(intern_delete(this, key));
858
- }
859
- }
860
-
861
- class InternSet extends Set {
862
- constructor(values, key = keyof) {
863
- super();
864
- Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});
865
- if (values != null) for (const value of values) this.add(value);
866
- }
867
- has(value) {
868
- return super.has(intern_get(this, value));
869
- }
870
- add(value) {
871
- return super.add(intern_set(this, value));
872
- }
873
- delete(value) {
874
- return super.delete(intern_delete(this, value));
875
- }
876
- }
877
-
878
- function intern_get({_intern, _key}, value) {
879
- const key = _key(value);
880
- return _intern.has(key) ? _intern.get(key) : value;
881
- }
882
-
883
- function intern_set({_intern, _key}, value) {
884
- const key = _key(value);
885
- if (_intern.has(key)) return _intern.get(key);
886
- _intern.set(key, value);
887
- return value;
888
- }
889
-
890
- function intern_delete({_intern, _key}, value) {
891
- const key = _key(value);
892
- if (_intern.has(key)) {
893
- value = _intern.get(value);
894
- _intern.delete(key);
895
- }
896
- return value;
897
- }
898
-
899
- function keyof(value) {
900
- return value !== null && typeof value === "object" ? value.valueOf() : value;
901
- }
902
-
903
- exports.InternMap = InternMap;
904
- exports.InternSet = InternSet;
905
-
906
- Object.defineProperty(exports, '__esModule', { value: true });
907
-
908
- })));
909
- });
910
-
911
- function identity$1(x) {
912
- return x;
913
- }
914
-
915
- function group(values, ...keys) {
916
- return nest(values, identity$1, identity$1, keys);
917
- }
918
-
919
- function nest(values, map, reduce, keys) {
920
- return (function regroup(values, i) {
921
- if (i >= keys.length) return reduce(values);
922
- const groups = new internmap.InternMap();
923
- const keyof = keys[i++];
924
- let index = -1;
925
- for (const value of values) {
926
- const key = keyof(value, ++index, values);
927
- const group = groups.get(key);
928
- if (group) group.push(value);
929
- else groups.set(key, [value]);
930
- }
931
- for (const [key, values] of groups) {
932
- groups.set(key, regroup(values, i));
933
- }
934
- return map(groups);
935
- })(values, 0);
936
- }
937
-
938
- var e10 = Math.sqrt(50),
939
- e5 = Math.sqrt(10),
940
- e2 = Math.sqrt(2);
941
-
942
- function ticks(start, stop, count) {
943
- var reverse,
944
- i = -1,
945
- n,
946
- ticks,
947
- step;
948
-
949
- stop = +stop, start = +start, count = +count;
950
- if (start === stop && count > 0) return [start];
951
- if (reverse = stop < start) n = start, start = stop, stop = n;
952
- if ((step = tickIncrement(start, stop, count)) === 0 || !isFinite(step)) return [];
953
-
954
- if (step > 0) {
955
- let r0 = Math.round(start / step), r1 = Math.round(stop / step);
956
- if (r0 * step < start) ++r0;
957
- if (r1 * step > stop) --r1;
958
- ticks = new Array(n = r1 - r0 + 1);
959
- while (++i < n) ticks[i] = (r0 + i) * step;
960
- } else {
961
- step = -step;
962
- let r0 = Math.round(start * step), r1 = Math.round(stop * step);
963
- if (r0 / step < start) ++r0;
964
- if (r1 / step > stop) --r1;
965
- ticks = new Array(n = r1 - r0 + 1);
966
- while (++i < n) ticks[i] = (r0 + i) / step;
967
- }
968
-
969
- if (reverse) ticks.reverse();
970
-
971
- return ticks;
972
- }
973
-
974
- function tickIncrement(start, stop, count) {
975
- var step = (stop - start) / Math.max(0, count),
976
- power = Math.floor(Math.log(step) / Math.LN10),
977
- error = step / Math.pow(10, power);
978
- return power >= 0
979
- ? (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1) * Math.pow(10, power)
980
- : -Math.pow(10, -power) / (error >= e10 ? 10 : error >= e5 ? 5 : error >= e2 ? 2 : 1);
981
- }
982
-
983
- function tickStep(start, stop, count) {
984
- var step0 = Math.abs(stop - start) / Math.max(0, count),
985
- step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)),
986
- error = step0 / step1;
987
- if (error >= e10) step1 *= 10;
988
- else if (error >= e5) step1 *= 5;
989
- else if (error >= e2) step1 *= 2;
990
- return stop < start ? -step1 : step1;
991
- }
992
-
993
- const TOP_PADDING = 20;
994
- const PADDING = 2;
995
-
996
- const Node = ({ node, onMouseOver, onClick, selected }) => {
997
- const { getModuleColor } = F(StaticContext);
998
- const { backgroundColor, fontColor } = getModuleColor(node);
999
- const { x0, x1, y1, y0, data, children = null } = node;
1000
- const textRef = s();
1001
- const textRectRef = s();
1002
- const width = x1 - x0;
1003
- const height = y1 - y0;
1004
- const textProps = {
1005
- "font-size": "0.7em",
1006
- "dominant-baseline": "middle",
1007
- "text-anchor": "middle",
1008
- x: width / 2,
1009
- };
1010
- if (children != null) {
1011
- textProps.y = (TOP_PADDING + PADDING) / 2;
1012
- }
1013
- else {
1014
- textProps.y = height / 2;
1015
- }
1016
- h(() => {
1017
- if (width == 0 || height == 0) {
1018
- return;
1019
- }
1020
- if (textRectRef.current == null) {
1021
- textRectRef.current = textRef.current.getBoundingClientRect();
1022
- }
1023
- let scale = 1;
1024
- if (children != null) {
1025
- scale = Math.min((width * 0.9) / textRectRef.current.width, Math.min(height, TOP_PADDING + PADDING) / textRectRef.current.height);
1026
- scale = Math.min(1, scale);
1027
- textRef.current.setAttribute("y", String(Math.min(TOP_PADDING + PADDING, height) / 2 / scale));
1028
- textRef.current.setAttribute("x", String(width / 2 / scale));
1029
- }
1030
- else {
1031
- scale = Math.min((width * 0.9) / textRectRef.current.width, (height * 0.9) / textRectRef.current.height);
1032
- scale = Math.min(1, scale);
1033
- textRef.current.setAttribute("y", String(height / 2 / scale));
1034
- textRef.current.setAttribute("x", String(width / 2 / scale));
1035
- }
1036
- textRef.current.setAttribute("transform", `scale(${scale.toFixed(2)})`);
1037
- }, [children, height, width]);
1038
- if (width == 0 || height == 0) {
1039
- return null;
1040
- }
1041
- return (o$1("g", Object.assign({ className: "node", transform: `translate(${x0},${y0})`, onClick: (event) => {
1042
- event.stopPropagation();
1043
- onClick(node);
1044
- }, onMouseOver: (event) => {
1045
- event.stopPropagation();
1046
- onMouseOver(node);
1047
- } }, { children: [o$1("rect", { fill: backgroundColor, rx: 2, ry: 2, width: x1 - x0, height: y1 - y0, stroke: selected ? "#fff" : undefined, "stroke-width": selected ? 2 : undefined }, void 0),
1048
- o$1("text", Object.assign({ ref: textRef, fill: fontColor, onClick: (event) => {
1049
- var _a;
1050
- if (((_a = window.getSelection()) === null || _a === void 0 ? void 0 : _a.toString()) !== "") {
1051
- event.stopPropagation();
1052
- }
1053
- } }, textProps, { children: data.name }), void 0)] }), void 0));
1054
- };
1055
-
1056
- const TreeMap = ({ root, onNodeHover, selectedNode, onNodeClick }) => {
1057
- const { width, height, getModuleIds } = F(StaticContext);
1058
- console.time("layering");
1059
- // this will make groups by height
1060
- const nestedData = d(() => {
1061
- const nestedDataMap = group(root.descendants(), (d) => d.height);
1062
- const nestedData = Array.from(nestedDataMap, ([key, values]) => ({
1063
- key,
1064
- values,
1065
- }));
1066
- nestedData.sort((a, b) => b.key - a.key);
1067
- return nestedData;
1068
- }, [root]);
1069
- console.timeEnd("layering");
1070
- return (o$1("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: `0 0 ${width} ${height}` }, { children: nestedData.map(({ key, values }) => {
1071
- return (o$1("g", Object.assign({ className: "layer" }, { children: values.map((node) => {
1072
- return (o$1(Node, { node: node, onMouseOver: onNodeHover, selected: selectedNode === node, onClick: onNodeClick }, getModuleIds(node.data).nodeUid.id));
1073
- }) }), key));
1074
- }) }), void 0));
1075
- };
1076
-
1077
- /*!
1078
- * bytes
1079
- * Copyright(c) 2012-2014 TJ Holowaychuk
1080
- * Copyright(c) 2015 Jed Watson
1081
- * MIT Licensed
1082
- */
1083
- var format_1 = format;
1084
-
1085
- /**
1086
- * Module variables.
1087
- * @private
1088
- */
1089
-
1090
- var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
1091
-
1092
- var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
1093
-
1094
- var map = {
1095
- b: 1,
1096
- kb: 1 << 10,
1097
- mb: 1 << 20,
1098
- gb: 1 << 30,
1099
- tb: Math.pow(1024, 4),
1100
- pb: Math.pow(1024, 5),
1101
- };
1102
-
1103
- /**
1104
- * Format the given value in bytes into a string.
1105
- *
1106
- * If the value is negative, it is kept as such. If it is a float,
1107
- * it is rounded.
1108
- *
1109
- * @param {number} value
1110
- * @param {object} [options]
1111
- * @param {number} [options.decimalPlaces=2]
1112
- * @param {number} [options.fixedDecimals=false]
1113
- * @param {string} [options.thousandsSeparator=]
1114
- * @param {string} [options.unit=]
1115
- * @param {string} [options.unitSeparator=]
1116
- *
1117
- * @returns {string|null}
1118
- * @public
1119
- */
1120
-
1121
- function format(value, options) {
1122
- if (!Number.isFinite(value)) {
1123
- return null;
1124
- }
1125
-
1126
- var mag = Math.abs(value);
1127
- var thousandsSeparator = (options && options.thousandsSeparator) || '';
1128
- var unitSeparator = (options && options.unitSeparator) || '';
1129
- var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;
1130
- var fixedDecimals = Boolean(options && options.fixedDecimals);
1131
- var unit = (options && options.unit) || '';
1132
-
1133
- if (!unit || !map[unit.toLowerCase()]) {
1134
- if (mag >= map.pb) {
1135
- unit = 'PB';
1136
- } else if (mag >= map.tb) {
1137
- unit = 'TB';
1138
- } else if (mag >= map.gb) {
1139
- unit = 'GB';
1140
- } else if (mag >= map.mb) {
1141
- unit = 'MB';
1142
- } else if (mag >= map.kb) {
1143
- unit = 'KB';
1144
- } else {
1145
- unit = 'B';
1146
- }
1147
- }
1148
-
1149
- var val = value / map[unit.toLowerCase()];
1150
- var str = val.toFixed(decimalPlaces);
1151
-
1152
- if (!fixedDecimals) {
1153
- str = str.replace(formatDecimalsRegExp, '$1');
1154
- }
1155
-
1156
- if (thousandsSeparator) {
1157
- str = str.replace(formatThousandsRegExp, thousandsSeparator);
1158
- }
1159
-
1160
- return str + unitSeparator + unit;
1161
- }
1162
-
1163
- const Tooltip_marginX = 10;
1164
- const Tooltip_marginY = 30;
1165
- const SOURCEMAP_RENDERED = (o$1("span", { children: [" ", o$1("b", { children: LABELS.renderedLength }, void 0), " is a number of characters in the file after individual and ", o$1("br", {}, void 0), " whole bundle transformations according to sourcemap."] }, void 0));
1166
- const RENDRED = (o$1("span", { children: [o$1("b", { children: LABELS.renderedLength }, void 0), " is a byte size of individual file after transformations and treeshake."] }, void 0));
1167
- const COMPRESSED = (o$1("span", { children: [o$1("b", { children: LABELS.gzipLength }, void 0), " and ", o$1("b", { children: LABELS.brotliLength }, void 0), " is a byte size of individual file after individual", " ", "transformations,", o$1("br", {}, void 0), " treeshake and compression."] }, void 0));
1168
- const Tooltip = ({ node, visible, root, sizeProperty }) => {
1169
- const { availableSizeProperties, getModuleSize, data } = F(StaticContext);
1170
- const ref = s();
1171
- const [style, setStyle] = l({});
1172
- const content = d(() => {
1173
- if (!node)
1174
- return null;
1175
- const mainSize = getModuleSize(node.data, sizeProperty);
1176
- const percentageNum = (100 * mainSize) / getModuleSize(root.data, sizeProperty);
1177
- const percentage = percentageNum.toFixed(2);
1178
- const percentageString = percentage + "%";
1179
- const path = node
1180
- .ancestors()
1181
- .reverse()
1182
- .map((d) => d.data.name)
1183
- .join("/");
1184
- let dataNode = null;
1185
- if (!isModuleTree(node.data)) {
1186
- const mainUid = data.nodeParts[node.data.uid].mainUid;
1187
- dataNode = data.nodeMetas[mainUid];
1188
- }
1189
- return (o$1(y$1, { children: [o$1("div", { children: path }, void 0),
1190
- availableSizeProperties.map((sizeProp) => {
1191
- if (sizeProp === sizeProperty) {
1192
- return (o$1("div", { children: [o$1("b", { children: [LABELS[sizeProp], ": ", format_1(mainSize)] }, void 0), " ", "(", percentageString, ")"] }, void 0));
1193
- }
1194
- else {
1195
- return (o$1("div", { children: [LABELS[sizeProp], ": ", format_1(getModuleSize(node.data, sizeProp))] }, void 0));
1196
- }
1197
- }),
1198
- o$1("br", {}, void 0),
1199
- dataNode && dataNode.importedBy.length > 0 && (o$1("div", { children: [o$1("div", { children: [o$1("b", { children: "Imported By" }, void 0), ":"] }, void 0),
1200
- dataNode.importedBy.map(({ uid }) => {
1201
- const id = data.nodeMetas[uid].id;
1202
- return o$1("div", { children: id }, id);
1203
- })] }, void 0)),
1204
- o$1("br", {}, void 0),
1205
- o$1("small", { children: data.options.sourcemap ? SOURCEMAP_RENDERED : RENDRED }, void 0),
1206
- (data.options.gzip || data.options.brotli) && (o$1(y$1, { children: [o$1("br", {}, void 0),
1207
- o$1("small", { children: COMPRESSED }, void 0)] }, void 0))] }, void 0));
1208
- }, [availableSizeProperties, data, getModuleSize, node, root.data, sizeProperty]);
1209
- const updatePosition = (mouseCoords) => {
1210
- const pos = {
1211
- left: mouseCoords.x + Tooltip_marginX,
1212
- top: mouseCoords.y + Tooltip_marginY,
1213
- };
1214
- const boundingRect = ref.current.getBoundingClientRect();
1215
- if (pos.left + boundingRect.width > window.innerWidth) {
1216
- // Shifting horizontally
1217
- pos.left = window.innerWidth - boundingRect.width;
1218
- }
1219
- if (pos.top + boundingRect.height > window.innerHeight) {
1220
- // Flipping vertically
1221
- pos.top = mouseCoords.y - Tooltip_marginY - boundingRect.height;
1222
- }
1223
- setStyle(pos);
1224
- };
1225
- y(() => {
1226
- const handleMouseMove = (event) => {
1227
- updatePosition({
1228
- x: event.pageX,
1229
- y: event.pageY,
1230
- });
1231
- };
1232
- document.addEventListener("mousemove", handleMouseMove, true);
1233
- return () => {
1234
- document.removeEventListener("mousemove", handleMouseMove, true);
1235
- };
1236
- }, []);
1237
- return (o$1("div", Object.assign({ className: `tooltip ${visible ? "" : "tooltip-hidden"}`, ref: ref, style: style }, { children: content }), void 0));
1238
- };
1239
-
1240
- const Chart = ({ root, sizeProperty, selectedNode, setSelectedNode }) => {
1241
- const [showTooltip, setShowTooltip] = l(false);
1242
- const [tooltipNode, setTooltipNode] = l(undefined);
1243
- y(() => {
1244
- const handleMouseOut = () => {
1245
- setShowTooltip(false);
1246
- };
1247
- document.addEventListener("mouseover", handleMouseOut);
1248
- return () => {
1249
- document.removeEventListener("mouseover", handleMouseOut);
1250
- };
1251
- }, []);
1252
- return (o$1(y$1, { children: [o$1(TreeMap, { root: root, onNodeHover: (node) => {
1253
- setTooltipNode(node);
1254
- setShowTooltip(true);
1255
- }, selectedNode: selectedNode, onNodeClick: (node) => {
1256
- setSelectedNode(selectedNode === node ? undefined : node);
1257
- } }, void 0),
1258
- o$1(Tooltip, { visible: showTooltip, node: tooltipNode, root: root, sizeProperty: sizeProperty }, void 0)] }, void 0));
1259
- };
1260
-
1261
- const Main = () => {
1262
- const { availableSizeProperties, rawHierarchy, getModuleSize, layout, data } = F(StaticContext);
1263
- const [sizeProperty, setSizeProperty] = l(availableSizeProperties[0]);
1264
- const [selectedNode, setSelectedNode] = l(undefined);
1265
- const { getModuleFilterMultiplier, setExcludeFilter, setIncludeFilter } = useFilter();
1266
- console.time("getNodeSizeMultiplier");
1267
- const getNodeSizeMultiplier = d(() => {
1268
- const rootSize = getModuleSize(rawHierarchy.data, sizeProperty);
1269
- const selectedSize = selectedNode ? getModuleSize(selectedNode.data, sizeProperty) : 1;
1270
- const multiplier = rootSize * 0.2 > selectedSize ? (rootSize * 0.2) / selectedSize : 3;
1271
- if (selectedNode === undefined) {
1272
- return () => 1;
1273
- }
1274
- else if (isModuleTree(selectedNode.data)) {
1275
- const leaves = new Set(selectedNode.leaves().map((d) => d.data));
1276
- return (node) => {
1277
- if (leaves.has(node)) {
1278
- return multiplier;
1279
- }
1280
- return 1;
1281
- };
1282
- }
1283
- else {
1284
- return (node) => {
1285
- if (node === selectedNode.data) {
1286
- return multiplier;
1287
- }
1288
- return 1;
1289
- };
1290
- }
1291
- }, [getModuleSize, rawHierarchy.data, selectedNode, sizeProperty]);
1292
- console.timeEnd("getNodeSizeMultiplier");
1293
- console.time("root hierarchy compute");
1294
- // root here always be the same as rawHierarchy even after layouting
1295
- const root = d(() => {
1296
- const rootWithSizesAndSorted = rawHierarchy
1297
- .sum((node) => {
1298
- if (isModuleTree(node))
1299
- return 0;
1300
- const ownSize = getModuleSize(node, sizeProperty);
1301
- const zoomMultiplier = getNodeSizeMultiplier(node);
1302
- const filterMultiplier = getModuleFilterMultiplier(data.nodeMetas[data.nodeParts[node.uid].mainUid]);
1303
- return ownSize * zoomMultiplier * filterMultiplier;
1304
- })
1305
- .sort((a, b) => getModuleSize(a.data, sizeProperty) - getModuleSize(b.data, sizeProperty));
1306
- return layout(rootWithSizesAndSorted);
1307
- }, [data, getModuleFilterMultiplier, getModuleSize, getNodeSizeMultiplier, layout, rawHierarchy, sizeProperty]);
1308
- console.timeEnd("root hierarchy compute");
1309
- return (o$1(y$1, { children: [o$1(SideBar, { sizeProperty: sizeProperty, availableSizeProperties: availableSizeProperties, setSizeProperty: setSizeProperty, onExcludeChange: setExcludeFilter, onIncludeChange: setIncludeFilter }, void 0),
1310
- o$1(Chart, { root: root, sizeProperty: sizeProperty, selectedNode: selectedNode, setSelectedNode: setSelectedNode }, void 0)] }, void 0));
1311
- };
1312
-
1313
- function initRange(domain, range) {
1314
- switch (arguments.length) {
1315
- case 0: break;
1316
- case 1: this.range(domain); break;
1317
- default: this.range(range).domain(domain); break;
1318
- }
1319
- return this;
1320
- }
1321
-
1322
- function initInterpolator(domain, interpolator) {
1323
- switch (arguments.length) {
1324
- case 0: break;
1325
- case 1: {
1326
- if (typeof domain === "function") this.interpolator(domain);
1327
- else this.range(domain);
1328
- break;
1329
- }
1330
- default: {
1331
- this.domain(domain);
1332
- if (typeof interpolator === "function") this.interpolator(interpolator);
1333
- else this.range(interpolator);
1334
- break;
1335
- }
1336
- }
1337
- return this;
1338
- }
1339
-
1340
- function define(constructor, factory, prototype) {
1341
- constructor.prototype = factory.prototype = prototype;
1342
- prototype.constructor = constructor;
1343
- }
1344
-
1345
- function extend(parent, definition) {
1346
- var prototype = Object.create(parent.prototype);
1347
- for (var key in definition) prototype[key] = definition[key];
1348
- return prototype;
1349
- }
1350
-
1351
- function Color() {}
1352
-
1353
- var darker = 0.7;
1354
- var brighter = 1 / darker;
1355
-
1356
- var reI = "\\s*([+-]?\\d+)\\s*",
1357
- reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
1358
- reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
1359
- reHex = /^#([0-9a-f]{3,8})$/,
1360
- reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
1361
- reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
1362
- reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
1363
- reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
1364
- reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
1365
- reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
1366
-
1367
- var named = {
1368
- aliceblue: 0xf0f8ff,
1369
- antiquewhite: 0xfaebd7,
1370
- aqua: 0x00ffff,
1371
- aquamarine: 0x7fffd4,
1372
- azure: 0xf0ffff,
1373
- beige: 0xf5f5dc,
1374
- bisque: 0xffe4c4,
1375
- black: 0x000000,
1376
- blanchedalmond: 0xffebcd,
1377
- blue: 0x0000ff,
1378
- blueviolet: 0x8a2be2,
1379
- brown: 0xa52a2a,
1380
- burlywood: 0xdeb887,
1381
- cadetblue: 0x5f9ea0,
1382
- chartreuse: 0x7fff00,
1383
- chocolate: 0xd2691e,
1384
- coral: 0xff7f50,
1385
- cornflowerblue: 0x6495ed,
1386
- cornsilk: 0xfff8dc,
1387
- crimson: 0xdc143c,
1388
- cyan: 0x00ffff,
1389
- darkblue: 0x00008b,
1390
- darkcyan: 0x008b8b,
1391
- darkgoldenrod: 0xb8860b,
1392
- darkgray: 0xa9a9a9,
1393
- darkgreen: 0x006400,
1394
- darkgrey: 0xa9a9a9,
1395
- darkkhaki: 0xbdb76b,
1396
- darkmagenta: 0x8b008b,
1397
- darkolivegreen: 0x556b2f,
1398
- darkorange: 0xff8c00,
1399
- darkorchid: 0x9932cc,
1400
- darkred: 0x8b0000,
1401
- darksalmon: 0xe9967a,
1402
- darkseagreen: 0x8fbc8f,
1403
- darkslateblue: 0x483d8b,
1404
- darkslategray: 0x2f4f4f,
1405
- darkslategrey: 0x2f4f4f,
1406
- darkturquoise: 0x00ced1,
1407
- darkviolet: 0x9400d3,
1408
- deeppink: 0xff1493,
1409
- deepskyblue: 0x00bfff,
1410
- dimgray: 0x696969,
1411
- dimgrey: 0x696969,
1412
- dodgerblue: 0x1e90ff,
1413
- firebrick: 0xb22222,
1414
- floralwhite: 0xfffaf0,
1415
- forestgreen: 0x228b22,
1416
- fuchsia: 0xff00ff,
1417
- gainsboro: 0xdcdcdc,
1418
- ghostwhite: 0xf8f8ff,
1419
- gold: 0xffd700,
1420
- goldenrod: 0xdaa520,
1421
- gray: 0x808080,
1422
- green: 0x008000,
1423
- greenyellow: 0xadff2f,
1424
- grey: 0x808080,
1425
- honeydew: 0xf0fff0,
1426
- hotpink: 0xff69b4,
1427
- indianred: 0xcd5c5c,
1428
- indigo: 0x4b0082,
1429
- ivory: 0xfffff0,
1430
- khaki: 0xf0e68c,
1431
- lavender: 0xe6e6fa,
1432
- lavenderblush: 0xfff0f5,
1433
- lawngreen: 0x7cfc00,
1434
- lemonchiffon: 0xfffacd,
1435
- lightblue: 0xadd8e6,
1436
- lightcoral: 0xf08080,
1437
- lightcyan: 0xe0ffff,
1438
- lightgoldenrodyellow: 0xfafad2,
1439
- lightgray: 0xd3d3d3,
1440
- lightgreen: 0x90ee90,
1441
- lightgrey: 0xd3d3d3,
1442
- lightpink: 0xffb6c1,
1443
- lightsalmon: 0xffa07a,
1444
- lightseagreen: 0x20b2aa,
1445
- lightskyblue: 0x87cefa,
1446
- lightslategray: 0x778899,
1447
- lightslategrey: 0x778899,
1448
- lightsteelblue: 0xb0c4de,
1449
- lightyellow: 0xffffe0,
1450
- lime: 0x00ff00,
1451
- limegreen: 0x32cd32,
1452
- linen: 0xfaf0e6,
1453
- magenta: 0xff00ff,
1454
- maroon: 0x800000,
1455
- mediumaquamarine: 0x66cdaa,
1456
- mediumblue: 0x0000cd,
1457
- mediumorchid: 0xba55d3,
1458
- mediumpurple: 0x9370db,
1459
- mediumseagreen: 0x3cb371,
1460
- mediumslateblue: 0x7b68ee,
1461
- mediumspringgreen: 0x00fa9a,
1462
- mediumturquoise: 0x48d1cc,
1463
- mediumvioletred: 0xc71585,
1464
- midnightblue: 0x191970,
1465
- mintcream: 0xf5fffa,
1466
- mistyrose: 0xffe4e1,
1467
- moccasin: 0xffe4b5,
1468
- navajowhite: 0xffdead,
1469
- navy: 0x000080,
1470
- oldlace: 0xfdf5e6,
1471
- olive: 0x808000,
1472
- olivedrab: 0x6b8e23,
1473
- orange: 0xffa500,
1474
- orangered: 0xff4500,
1475
- orchid: 0xda70d6,
1476
- palegoldenrod: 0xeee8aa,
1477
- palegreen: 0x98fb98,
1478
- paleturquoise: 0xafeeee,
1479
- palevioletred: 0xdb7093,
1480
- papayawhip: 0xffefd5,
1481
- peachpuff: 0xffdab9,
1482
- peru: 0xcd853f,
1483
- pink: 0xffc0cb,
1484
- plum: 0xdda0dd,
1485
- powderblue: 0xb0e0e6,
1486
- purple: 0x800080,
1487
- rebeccapurple: 0x663399,
1488
- red: 0xff0000,
1489
- rosybrown: 0xbc8f8f,
1490
- royalblue: 0x4169e1,
1491
- saddlebrown: 0x8b4513,
1492
- salmon: 0xfa8072,
1493
- sandybrown: 0xf4a460,
1494
- seagreen: 0x2e8b57,
1495
- seashell: 0xfff5ee,
1496
- sienna: 0xa0522d,
1497
- silver: 0xc0c0c0,
1498
- skyblue: 0x87ceeb,
1499
- slateblue: 0x6a5acd,
1500
- slategray: 0x708090,
1501
- slategrey: 0x708090,
1502
- snow: 0xfffafa,
1503
- springgreen: 0x00ff7f,
1504
- steelblue: 0x4682b4,
1505
- tan: 0xd2b48c,
1506
- teal: 0x008080,
1507
- thistle: 0xd8bfd8,
1508
- tomato: 0xff6347,
1509
- turquoise: 0x40e0d0,
1510
- violet: 0xee82ee,
1511
- wheat: 0xf5deb3,
1512
- white: 0xffffff,
1513
- whitesmoke: 0xf5f5f5,
1514
- yellow: 0xffff00,
1515
- yellowgreen: 0x9acd32
1516
- };
1517
-
1518
- define(Color, color, {
1519
- copy: function(channels) {
1520
- return Object.assign(new this.constructor, this, channels);
1521
- },
1522
- displayable: function() {
1523
- return this.rgb().displayable();
1524
- },
1525
- hex: color_formatHex, // Deprecated! Use color.formatHex.
1526
- formatHex: color_formatHex,
1527
- formatHsl: color_formatHsl,
1528
- formatRgb: color_formatRgb,
1529
- toString: color_formatRgb
1530
- });
1531
-
1532
- function color_formatHex() {
1533
- return this.rgb().formatHex();
1534
- }
1535
-
1536
- function color_formatHsl() {
1537
- return hslConvert(this).formatHsl();
1538
- }
1539
-
1540
- function color_formatRgb() {
1541
- return this.rgb().formatRgb();
1542
- }
1543
-
1544
- function color(format) {
1545
- var m, l;
1546
- format = (format + "").trim().toLowerCase();
1547
- return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000
1548
- : l === 3 ? new Rgb((m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), ((m & 0xf) << 4) | (m & 0xf), 1) // #f00
1549
- : l === 8 ? rgba(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000
1550
- : l === 4 ? rgba((m >> 12 & 0xf) | (m >> 8 & 0xf0), (m >> 8 & 0xf) | (m >> 4 & 0xf0), (m >> 4 & 0xf) | (m & 0xf0), (((m & 0xf) << 4) | (m & 0xf)) / 0xff) // #f000
1551
- : null) // invalid hex
1552
- : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)
1553
- : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)
1554
- : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)
1555
- : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)
1556
- : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)
1557
- : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)
1558
- : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins
1559
- : format === "transparent" ? new Rgb(NaN, NaN, NaN, 0)
1560
- : null;
1561
- }
1562
-
1563
- function rgbn(n) {
1564
- return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);
1565
- }
1566
-
1567
- function rgba(r, g, b, a) {
1568
- if (a <= 0) r = g = b = NaN;
1569
- return new Rgb(r, g, b, a);
1570
- }
1571
-
1572
- function rgbConvert(o) {
1573
- if (!(o instanceof Color)) o = color(o);
1574
- if (!o) return new Rgb;
1575
- o = o.rgb();
1576
- return new Rgb(o.r, o.g, o.b, o.opacity);
1577
- }
1578
-
1579
- function rgb(r, g, b, opacity) {
1580
- return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);
1581
- }
1582
-
1583
- function Rgb(r, g, b, opacity) {
1584
- this.r = +r;
1585
- this.g = +g;
1586
- this.b = +b;
1587
- this.opacity = +opacity;
1588
- }
1589
-
1590
- define(Rgb, rgb, extend(Color, {
1591
- brighter: function(k) {
1592
- k = k == null ? brighter : Math.pow(brighter, k);
1593
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1594
- },
1595
- darker: function(k) {
1596
- k = k == null ? darker : Math.pow(darker, k);
1597
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
1598
- },
1599
- rgb: function() {
1600
- return this;
1601
- },
1602
- displayable: function() {
1603
- return (-0.5 <= this.r && this.r < 255.5)
1604
- && (-0.5 <= this.g && this.g < 255.5)
1605
- && (-0.5 <= this.b && this.b < 255.5)
1606
- && (0 <= this.opacity && this.opacity <= 1);
1607
- },
1608
- hex: rgb_formatHex, // Deprecated! Use color.formatHex.
1609
- formatHex: rgb_formatHex,
1610
- formatRgb: rgb_formatRgb,
1611
- toString: rgb_formatRgb
1612
- }));
1613
-
1614
- function rgb_formatHex() {
1615
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
1616
- }
1617
-
1618
- function rgb_formatRgb() {
1619
- var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
1620
- return (a === 1 ? "rgb(" : "rgba(")
1621
- + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", "
1622
- + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", "
1623
- + Math.max(0, Math.min(255, Math.round(this.b) || 0))
1624
- + (a === 1 ? ")" : ", " + a + ")");
1625
- }
1626
-
1627
- function hex(value) {
1628
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
1629
- return (value < 16 ? "0" : "") + value.toString(16);
1630
- }
1631
-
1632
- function hsla(h, s, l, a) {
1633
- if (a <= 0) h = s = l = NaN;
1634
- else if (l <= 0 || l >= 1) h = s = NaN;
1635
- else if (s <= 0) h = NaN;
1636
- return new Hsl(h, s, l, a);
1637
- }
1638
-
1639
- function hslConvert(o) {
1640
- if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
1641
- if (!(o instanceof Color)) o = color(o);
1642
- if (!o) return new Hsl;
1643
- if (o instanceof Hsl) return o;
1644
- o = o.rgb();
1645
- var r = o.r / 255,
1646
- g = o.g / 255,
1647
- b = o.b / 255,
1648
- min = Math.min(r, g, b),
1649
- max = Math.max(r, g, b),
1650
- h = NaN,
1651
- s = max - min,
1652
- l = (max + min) / 2;
1653
- if (s) {
1654
- if (r === max) h = (g - b) / s + (g < b) * 6;
1655
- else if (g === max) h = (b - r) / s + 2;
1656
- else h = (r - g) / s + 4;
1657
- s /= l < 0.5 ? max + min : 2 - max - min;
1658
- h *= 60;
1659
- } else {
1660
- s = l > 0 && l < 1 ? 0 : h;
1661
- }
1662
- return new Hsl(h, s, l, o.opacity);
1663
- }
1664
-
1665
- function hsl(h, s, l, opacity) {
1666
- return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);
1667
- }
1668
-
1669
- function Hsl(h, s, l, opacity) {
1670
- this.h = +h;
1671
- this.s = +s;
1672
- this.l = +l;
1673
- this.opacity = +opacity;
1674
- }
1675
-
1676
- define(Hsl, hsl, extend(Color, {
1677
- brighter: function(k) {
1678
- k = k == null ? brighter : Math.pow(brighter, k);
1679
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
1680
- },
1681
- darker: function(k) {
1682
- k = k == null ? darker : Math.pow(darker, k);
1683
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
1684
- },
1685
- rgb: function() {
1686
- var h = this.h % 360 + (this.h < 0) * 360,
1687
- s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
1688
- l = this.l,
1689
- m2 = l + (l < 0.5 ? l : 1 - l) * s,
1690
- m1 = 2 * l - m2;
1691
- return new Rgb(
1692
- hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2),
1693
- hsl2rgb(h, m1, m2),
1694
- hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2),
1695
- this.opacity
1696
- );
1697
- },
1698
- displayable: function() {
1699
- return (0 <= this.s && this.s <= 1 || isNaN(this.s))
1700
- && (0 <= this.l && this.l <= 1)
1701
- && (0 <= this.opacity && this.opacity <= 1);
1702
- },
1703
- formatHsl: function() {
1704
- var a = this.opacity; a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
1705
- return (a === 1 ? "hsl(" : "hsla(")
1706
- + (this.h || 0) + ", "
1707
- + (this.s || 0) * 100 + "%, "
1708
- + (this.l || 0) * 100 + "%"
1709
- + (a === 1 ? ")" : ", " + a + ")");
1710
- }
1711
- }));
1712
-
1713
- /* From FvD 13.37, CSS Color Module Level 3 */
1714
- function hsl2rgb(h, m1, m2) {
1715
- return (h < 60 ? m1 + (m2 - m1) * h / 60
1716
- : h < 180 ? m2
1717
- : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60
1718
- : m1) * 255;
1719
- }
1720
-
1721
- const radians = Math.PI / 180;
1722
- const degrees = 180 / Math.PI;
1723
-
1724
- // https://observablehq.com/@mbostock/lab-and-rgb
1725
- const K = 18,
1726
- Xn = 0.96422,
1727
- Yn = 1,
1728
- Zn = 0.82521,
1729
- t0 = 4 / 29,
1730
- t1 = 6 / 29,
1731
- t2 = 3 * t1 * t1,
1732
- t3 = t1 * t1 * t1;
1733
-
1734
- function labConvert(o) {
1735
- if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
1736
- if (o instanceof Hcl) return hcl2lab(o);
1737
- if (!(o instanceof Rgb)) o = rgbConvert(o);
1738
- var r = rgb2lrgb(o.r),
1739
- g = rgb2lrgb(o.g),
1740
- b = rgb2lrgb(o.b),
1741
- y = xyz2lab((0.2225045 * r + 0.7168786 * g + 0.0606169 * b) / Yn), x, z;
1742
- if (r === g && g === b) x = z = y; else {
1743
- x = xyz2lab((0.4360747 * r + 0.3850649 * g + 0.1430804 * b) / Xn);
1744
- z = xyz2lab((0.0139322 * r + 0.0971045 * g + 0.7141733 * b) / Zn);
1745
- }
1746
- return new Lab(116 * y - 16, 500 * (x - y), 200 * (y - z), o.opacity);
1747
- }
1748
-
1749
- function gray(l, opacity) {
1750
- return new Lab(l, 0, 0, opacity == null ? 1 : opacity);
1751
- }
1752
-
1753
- function lab(l, a, b, opacity) {
1754
- return arguments.length === 1 ? labConvert(l) : new Lab(l, a, b, opacity == null ? 1 : opacity);
1755
- }
1756
-
1757
- function Lab(l, a, b, opacity) {
1758
- this.l = +l;
1759
- this.a = +a;
1760
- this.b = +b;
1761
- this.opacity = +opacity;
1762
- }
1763
-
1764
- define(Lab, lab, extend(Color, {
1765
- brighter: function(k) {
1766
- return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
1767
- },
1768
- darker: function(k) {
1769
- return new Lab(this.l - K * (k == null ? 1 : k), this.a, this.b, this.opacity);
1770
- },
1771
- rgb: function() {
1772
- var y = (this.l + 16) / 116,
1773
- x = isNaN(this.a) ? y : y + this.a / 500,
1774
- z = isNaN(this.b) ? y : y - this.b / 200;
1775
- x = Xn * lab2xyz(x);
1776
- y = Yn * lab2xyz(y);
1777
- z = Zn * lab2xyz(z);
1778
- return new Rgb(
1779
- lrgb2rgb( 3.1338561 * x - 1.6168667 * y - 0.4906146 * z),
1780
- lrgb2rgb(-0.9787684 * x + 1.9161415 * y + 0.0334540 * z),
1781
- lrgb2rgb( 0.0719453 * x - 0.2289914 * y + 1.4052427 * z),
1782
- this.opacity
1783
- );
1784
- }
1785
- }));
1786
-
1787
- function xyz2lab(t) {
1788
- return t > t3 ? Math.pow(t, 1 / 3) : t / t2 + t0;
1789
- }
1790
-
1791
- function lab2xyz(t) {
1792
- return t > t1 ? t * t * t : t2 * (t - t0);
1793
- }
1794
-
1795
- function lrgb2rgb(x) {
1796
- return 255 * (x <= 0.0031308 ? 12.92 * x : 1.055 * Math.pow(x, 1 / 2.4) - 0.055);
1797
- }
1798
-
1799
- function rgb2lrgb(x) {
1800
- return (x /= 255) <= 0.04045 ? x / 12.92 : Math.pow((x + 0.055) / 1.055, 2.4);
1801
- }
1802
-
1803
- function hclConvert(o) {
1804
- if (o instanceof Hcl) return new Hcl(o.h, o.c, o.l, o.opacity);
1805
- if (!(o instanceof Lab)) o = labConvert(o);
1806
- if (o.a === 0 && o.b === 0) return new Hcl(NaN, 0 < o.l && o.l < 100 ? 0 : NaN, o.l, o.opacity);
1807
- var h = Math.atan2(o.b, o.a) * degrees;
1808
- return new Hcl(h < 0 ? h + 360 : h, Math.sqrt(o.a * o.a + o.b * o.b), o.l, o.opacity);
1809
- }
1810
-
1811
- function lch(l, c, h, opacity) {
1812
- return arguments.length === 1 ? hclConvert(l) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
1813
- }
1814
-
1815
- function hcl(h, c, l, opacity) {
1816
- return arguments.length === 1 ? hclConvert(h) : new Hcl(h, c, l, opacity == null ? 1 : opacity);
1817
- }
1818
-
1819
- function Hcl(h, c, l, opacity) {
1820
- this.h = +h;
1821
- this.c = +c;
1822
- this.l = +l;
1823
- this.opacity = +opacity;
1824
- }
1825
-
1826
- function hcl2lab(o) {
1827
- if (isNaN(o.h)) return new Lab(o.l, 0, 0, o.opacity);
1828
- var h = o.h * radians;
1829
- return new Lab(o.l, Math.cos(h) * o.c, Math.sin(h) * o.c, o.opacity);
1830
- }
1831
-
1832
- define(Hcl, hcl, extend(Color, {
1833
- brighter: function(k) {
1834
- return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
1835
- },
1836
- darker: function(k) {
1837
- return new Hcl(this.h, this.c, this.l - K * (k == null ? 1 : k), this.opacity);
1838
- },
1839
- rgb: function() {
1840
- return hcl2lab(this).rgb();
1841
- }
1842
- }));
1843
-
1844
- var A = -0.14861,
1845
- B = +1.78277,
1846
- C = -0.29227,
1847
- D = -0.90649,
1848
- E = +1.97294,
1849
- ED = E * D,
1850
- EB = E * B,
1851
- BC_DA = B * C - D * A;
1852
-
1853
- function cubehelixConvert(o) {
1854
- if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
1855
- if (!(o instanceof Rgb)) o = rgbConvert(o);
1856
- var r = o.r / 255,
1857
- g = o.g / 255,
1858
- b = o.b / 255,
1859
- l = (BC_DA * b + ED * r - EB * g) / (BC_DA + ED - EB),
1860
- bl = b - l,
1861
- k = (E * (g - l) - C * bl) / D,
1862
- s = Math.sqrt(k * k + bl * bl) / (E * l * (1 - l)), // NaN if l=0 or l=1
1863
- h = s ? Math.atan2(k, bl) * degrees - 120 : NaN;
1864
- return new Cubehelix(h < 0 ? h + 360 : h, s, l, o.opacity);
1865
- }
1866
-
1867
- function cubehelix(h, s, l, opacity) {
1868
- return arguments.length === 1 ? cubehelixConvert(h) : new Cubehelix(h, s, l, opacity == null ? 1 : opacity);
1869
- }
1870
-
1871
- function Cubehelix(h, s, l, opacity) {
1872
- this.h = +h;
1873
- this.s = +s;
1874
- this.l = +l;
1875
- this.opacity = +opacity;
1876
- }
1877
-
1878
- define(Cubehelix, cubehelix, extend(Color, {
1879
- brighter: function(k) {
1880
- k = k == null ? brighter : Math.pow(brighter, k);
1881
- return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
1882
- },
1883
- darker: function(k) {
1884
- k = k == null ? darker : Math.pow(darker, k);
1885
- return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
1886
- },
1887
- rgb: function() {
1888
- var h = isNaN(this.h) ? 0 : (this.h + 120) * radians,
1889
- l = +this.l,
1890
- a = isNaN(this.s) ? 0 : this.s * l * (1 - l),
1891
- cosh = Math.cos(h),
1892
- sinh = Math.sin(h);
1893
- return new Rgb(
1894
- 255 * (l + a * (A * cosh + B * sinh)),
1895
- 255 * (l + a * (C * cosh + D * sinh)),
1896
- 255 * (l + a * (E * cosh)),
1897
- this.opacity
1898
- );
1899
- }
1900
- }));
1901
-
1902
- var src = /*#__PURE__*/Object.freeze({
1903
- __proto__: null,
1904
- color: color,
1905
- rgb: rgb,
1906
- hsl: hsl,
1907
- lab: lab,
1908
- hcl: hcl,
1909
- lch: lch,
1910
- gray: gray,
1911
- cubehelix: cubehelix
1912
- });
1913
-
1914
- var require$$0 = /*@__PURE__*/getAugmentedNamespace(src);
1915
-
1916
- var d3Interpolate = createCommonjsModule(function (module, exports) {
1917
- // https://d3js.org/d3-interpolate/ v2.0.1 Copyright 2020 Mike Bostock
1918
- (function (global, factory) {
1919
- factory(exports, require$$0) ;
1920
- }(this, function (exports, d3Color) {
1921
- function basis(t1, v0, v1, v2, v3) {
1922
- var t2 = t1 * t1, t3 = t2 * t1;
1923
- return ((1 - 3 * t1 + 3 * t2 - t3) * v0
1924
- + (4 - 6 * t2 + 3 * t3) * v1
1925
- + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2
1926
- + t3 * v3) / 6;
1927
- }
1928
-
1929
- function basis$1(values) {
1930
- var n = values.length - 1;
1931
- return function(t) {
1932
- var i = t <= 0 ? (t = 0) : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),
1933
- v1 = values[i],
1934
- v2 = values[i + 1],
1935
- v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,
1936
- v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;
1937
- return basis((t - i / n) * n, v0, v1, v2, v3);
1938
- };
1939
- }
1940
-
1941
- function basisClosed(values) {
1942
- var n = values.length;
1943
- return function(t) {
1944
- var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),
1945
- v0 = values[(i + n - 1) % n],
1946
- v1 = values[i % n],
1947
- v2 = values[(i + 1) % n],
1948
- v3 = values[(i + 2) % n];
1949
- return basis((t - i / n) * n, v0, v1, v2, v3);
1950
- };
1951
- }
1952
-
1953
- var constant = x => () => x;
1954
-
1955
- function linear(a, d) {
1956
- return function(t) {
1957
- return a + t * d;
1958
- };
1959
- }
1960
-
1961
- function exponential(a, b, y) {
1962
- return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function(t) {
1963
- return Math.pow(a + t * b, y);
1964
- };
1965
- }
1966
-
1967
- function hue(a, b) {
1968
- var d = b - a;
1969
- return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);
1970
- }
1971
-
1972
- function gamma(y) {
1973
- return (y = +y) === 1 ? nogamma : function(a, b) {
1974
- return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);
1975
- };
1976
- }
1977
-
1978
- function nogamma(a, b) {
1979
- var d = b - a;
1980
- return d ? linear(a, d) : constant(isNaN(a) ? b : a);
1981
- }
1982
-
1983
- var rgb = (function rgbGamma(y) {
1984
- var color = gamma(y);
1985
-
1986
- function rgb(start, end) {
1987
- var r = color((start = d3Color.rgb(start)).r, (end = d3Color.rgb(end)).r),
1988
- g = color(start.g, end.g),
1989
- b = color(start.b, end.b),
1990
- opacity = nogamma(start.opacity, end.opacity);
1991
- return function(t) {
1992
- start.r = r(t);
1993
- start.g = g(t);
1994
- start.b = b(t);
1995
- start.opacity = opacity(t);
1996
- return start + "";
1997
- };
1998
- }
1999
-
2000
- rgb.gamma = rgbGamma;
2001
-
2002
- return rgb;
2003
- })(1);
2004
-
2005
- function rgbSpline(spline) {
2006
- return function(colors) {
2007
- var n = colors.length,
2008
- r = new Array(n),
2009
- g = new Array(n),
2010
- b = new Array(n),
2011
- i, color;
2012
- for (i = 0; i < n; ++i) {
2013
- color = d3Color.rgb(colors[i]);
2014
- r[i] = color.r || 0;
2015
- g[i] = color.g || 0;
2016
- b[i] = color.b || 0;
2017
- }
2018
- r = spline(r);
2019
- g = spline(g);
2020
- b = spline(b);
2021
- color.opacity = 1;
2022
- return function(t) {
2023
- color.r = r(t);
2024
- color.g = g(t);
2025
- color.b = b(t);
2026
- return color + "";
2027
- };
2028
- };
2029
- }
2030
-
2031
- var rgbBasis = rgbSpline(basis$1);
2032
- var rgbBasisClosed = rgbSpline(basisClosed);
2033
-
2034
- function numberArray(a, b) {
2035
- if (!b) b = [];
2036
- var n = a ? Math.min(b.length, a.length) : 0,
2037
- c = b.slice(),
2038
- i;
2039
- return function(t) {
2040
- for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;
2041
- return c;
2042
- };
2043
- }
2044
-
2045
- function isNumberArray(x) {
2046
- return ArrayBuffer.isView(x) && !(x instanceof DataView);
2047
- }
2048
-
2049
- function array(a, b) {
2050
- return (isNumberArray(b) ? numberArray : genericArray)(a, b);
2051
- }
2052
-
2053
- function genericArray(a, b) {
2054
- var nb = b ? b.length : 0,
2055
- na = a ? Math.min(nb, a.length) : 0,
2056
- x = new Array(na),
2057
- c = new Array(nb),
2058
- i;
2059
-
2060
- for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);
2061
- for (; i < nb; ++i) c[i] = b[i];
2062
-
2063
- return function(t) {
2064
- for (i = 0; i < na; ++i) c[i] = x[i](t);
2065
- return c;
2066
- };
2067
- }
2068
-
2069
- function date(a, b) {
2070
- var d = new Date;
2071
- return a = +a, b = +b, function(t) {
2072
- return d.setTime(a * (1 - t) + b * t), d;
2073
- };
2074
- }
2075
-
2076
- function number(a, b) {
2077
- return a = +a, b = +b, function(t) {
2078
- return a * (1 - t) + b * t;
2079
- };
2080
- }
2081
-
2082
- function object(a, b) {
2083
- var i = {},
2084
- c = {},
2085
- k;
2086
-
2087
- if (a === null || typeof a !== "object") a = {};
2088
- if (b === null || typeof b !== "object") b = {};
2089
-
2090
- for (k in b) {
2091
- if (k in a) {
2092
- i[k] = value(a[k], b[k]);
2093
- } else {
2094
- c[k] = b[k];
2095
- }
2096
- }
2097
-
2098
- return function(t) {
2099
- for (k in i) c[k] = i[k](t);
2100
- return c;
2101
- };
2102
- }
2103
-
2104
- var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,
2105
- reB = new RegExp(reA.source, "g");
2106
-
2107
- function zero(b) {
2108
- return function() {
2109
- return b;
2110
- };
2111
- }
2112
-
2113
- function one(b) {
2114
- return function(t) {
2115
- return b(t) + "";
2116
- };
2117
- }
2118
-
2119
- function string(a, b) {
2120
- var bi = reA.lastIndex = reB.lastIndex = 0, // scan index for next number in b
2121
- am, // current match in a
2122
- bm, // current match in b
2123
- bs, // string preceding current number in b, if any
2124
- i = -1, // index in s
2125
- s = [], // string constants and placeholders
2126
- q = []; // number interpolators
2127
-
2128
- // Coerce inputs to strings.
2129
- a = a + "", b = b + "";
2130
-
2131
- // Interpolate pairs of numbers in a & b.
2132
- while ((am = reA.exec(a))
2133
- && (bm = reB.exec(b))) {
2134
- if ((bs = bm.index) > bi) { // a string precedes the next number in b
2135
- bs = b.slice(bi, bs);
2136
- if (s[i]) s[i] += bs; // coalesce with previous string
2137
- else s[++i] = bs;
2138
- }
2139
- if ((am = am[0]) === (bm = bm[0])) { // numbers in a & b match
2140
- if (s[i]) s[i] += bm; // coalesce with previous string
2141
- else s[++i] = bm;
2142
- } else { // interpolate non-matching numbers
2143
- s[++i] = null;
2144
- q.push({i: i, x: number(am, bm)});
2145
- }
2146
- bi = reB.lastIndex;
2147
- }
2148
-
2149
- // Add remains of b.
2150
- if (bi < b.length) {
2151
- bs = b.slice(bi);
2152
- if (s[i]) s[i] += bs; // coalesce with previous string
2153
- else s[++i] = bs;
2154
- }
2155
-
2156
- // Special optimization for only a single match.
2157
- // Otherwise, interpolate each of the numbers and rejoin the string.
2158
- return s.length < 2 ? (q[0]
2159
- ? one(q[0].x)
2160
- : zero(b))
2161
- : (b = q.length, function(t) {
2162
- for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);
2163
- return s.join("");
2164
- });
2165
- }
2166
-
2167
- function value(a, b) {
2168
- var t = typeof b, c;
2169
- return b == null || t === "boolean" ? constant(b)
2170
- : (t === "number" ? number
2171
- : t === "string" ? ((c = d3Color.color(b)) ? (b = c, rgb) : string)
2172
- : b instanceof d3Color.color ? rgb
2173
- : b instanceof Date ? date
2174
- : isNumberArray(b) ? numberArray
2175
- : Array.isArray(b) ? genericArray
2176
- : typeof b.valueOf !== "function" && typeof b.toString !== "function" || isNaN(b) ? object
2177
- : number)(a, b);
2178
- }
2179
-
2180
- function discrete(range) {
2181
- var n = range.length;
2182
- return function(t) {
2183
- return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
2184
- };
2185
- }
2186
-
2187
- function hue$1(a, b) {
2188
- var i = hue(+a, +b);
2189
- return function(t) {
2190
- var x = i(t);
2191
- return x - 360 * Math.floor(x / 360);
2192
- };
2193
- }
2194
-
2195
- function round(a, b) {
2196
- return a = +a, b = +b, function(t) {
2197
- return Math.round(a * (1 - t) + b * t);
2198
- };
2199
- }
2200
-
2201
- var degrees = 180 / Math.PI;
2202
-
2203
- var identity = {
2204
- translateX: 0,
2205
- translateY: 0,
2206
- rotate: 0,
2207
- skewX: 0,
2208
- scaleX: 1,
2209
- scaleY: 1
2210
- };
2211
-
2212
- function decompose(a, b, c, d, e, f) {
2213
- var scaleX, scaleY, skewX;
2214
- if (scaleX = Math.sqrt(a * a + b * b)) a /= scaleX, b /= scaleX;
2215
- if (skewX = a * c + b * d) c -= a * skewX, d -= b * skewX;
2216
- if (scaleY = Math.sqrt(c * c + d * d)) c /= scaleY, d /= scaleY, skewX /= scaleY;
2217
- if (a * d < b * c) a = -a, b = -b, skewX = -skewX, scaleX = -scaleX;
2218
- return {
2219
- translateX: e,
2220
- translateY: f,
2221
- rotate: Math.atan2(b, a) * degrees,
2222
- skewX: Math.atan(skewX) * degrees,
2223
- scaleX: scaleX,
2224
- scaleY: scaleY
2225
- };
2226
- }
2227
-
2228
- var svgNode;
2229
-
2230
- /* eslint-disable no-undef */
2231
- function parseCss(value) {
2232
- const m = new (typeof DOMMatrix === "function" ? DOMMatrix : WebKitCSSMatrix)(value + "");
2233
- return m.isIdentity ? identity : decompose(m.a, m.b, m.c, m.d, m.e, m.f);
2234
- }
2235
-
2236
- function parseSvg(value) {
2237
- if (value == null) return identity;
2238
- if (!svgNode) svgNode = document.createElementNS("http://www.w3.org/2000/svg", "g");
2239
- svgNode.setAttribute("transform", value);
2240
- if (!(value = svgNode.transform.baseVal.consolidate())) return identity;
2241
- value = value.matrix;
2242
- return decompose(value.a, value.b, value.c, value.d, value.e, value.f);
2243
- }
2244
-
2245
- function interpolateTransform(parse, pxComma, pxParen, degParen) {
2246
-
2247
- function pop(s) {
2248
- return s.length ? s.pop() + " " : "";
2249
- }
2250
-
2251
- function translate(xa, ya, xb, yb, s, q) {
2252
- if (xa !== xb || ya !== yb) {
2253
- var i = s.push("translate(", null, pxComma, null, pxParen);
2254
- q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});
2255
- } else if (xb || yb) {
2256
- s.push("translate(" + xb + pxComma + yb + pxParen);
2257
- }
2258
- }
2259
-
2260
- function rotate(a, b, s, q) {
2261
- if (a !== b) {
2262
- if (a - b > 180) b += 360; else if (b - a > 180) a += 360; // shortest path
2263
- q.push({i: s.push(pop(s) + "rotate(", null, degParen) - 2, x: number(a, b)});
2264
- } else if (b) {
2265
- s.push(pop(s) + "rotate(" + b + degParen);
2266
- }
2267
- }
2268
-
2269
- function skewX(a, b, s, q) {
2270
- if (a !== b) {
2271
- q.push({i: s.push(pop(s) + "skewX(", null, degParen) - 2, x: number(a, b)});
2272
- } else if (b) {
2273
- s.push(pop(s) + "skewX(" + b + degParen);
2274
- }
2275
- }
2276
-
2277
- function scale(xa, ya, xb, yb, s, q) {
2278
- if (xa !== xb || ya !== yb) {
2279
- var i = s.push(pop(s) + "scale(", null, ",", null, ")");
2280
- q.push({i: i - 4, x: number(xa, xb)}, {i: i - 2, x: number(ya, yb)});
2281
- } else if (xb !== 1 || yb !== 1) {
2282
- s.push(pop(s) + "scale(" + xb + "," + yb + ")");
2283
- }
2284
- }
2285
-
2286
- return function(a, b) {
2287
- var s = [], // string constants and placeholders
2288
- q = []; // number interpolators
2289
- a = parse(a), b = parse(b);
2290
- translate(a.translateX, a.translateY, b.translateX, b.translateY, s, q);
2291
- rotate(a.rotate, b.rotate, s, q);
2292
- skewX(a.skewX, b.skewX, s, q);
2293
- scale(a.scaleX, a.scaleY, b.scaleX, b.scaleY, s, q);
2294
- a = b = null; // gc
2295
- return function(t) {
2296
- var i = -1, n = q.length, o;
2297
- while (++i < n) s[(o = q[i]).i] = o.x(t);
2298
- return s.join("");
2299
- };
2300
- };
2301
- }
2302
-
2303
- var interpolateTransformCss = interpolateTransform(parseCss, "px, ", "px)", "deg)");
2304
- var interpolateTransformSvg = interpolateTransform(parseSvg, ", ", ")", ")");
2305
-
2306
- var epsilon2 = 1e-12;
2307
-
2308
- function cosh(x) {
2309
- return ((x = Math.exp(x)) + 1 / x) / 2;
2310
- }
2311
-
2312
- function sinh(x) {
2313
- return ((x = Math.exp(x)) - 1 / x) / 2;
2314
- }
2315
-
2316
- function tanh(x) {
2317
- return ((x = Math.exp(2 * x)) - 1) / (x + 1);
2318
- }
2319
-
2320
- var zoom = (function zoomRho(rho, rho2, rho4) {
2321
-
2322
- // p0 = [ux0, uy0, w0]
2323
- // p1 = [ux1, uy1, w1]
2324
- function zoom(p0, p1) {
2325
- var ux0 = p0[0], uy0 = p0[1], w0 = p0[2],
2326
- ux1 = p1[0], uy1 = p1[1], w1 = p1[2],
2327
- dx = ux1 - ux0,
2328
- dy = uy1 - uy0,
2329
- d2 = dx * dx + dy * dy,
2330
- i,
2331
- S;
2332
-
2333
- // Special case for u0 ≅ u1.
2334
- if (d2 < epsilon2) {
2335
- S = Math.log(w1 / w0) / rho;
2336
- i = function(t) {
2337
- return [
2338
- ux0 + t * dx,
2339
- uy0 + t * dy,
2340
- w0 * Math.exp(rho * t * S)
2341
- ];
2342
- };
2343
- }
2344
-
2345
- // General case.
2346
- else {
2347
- var d1 = Math.sqrt(d2),
2348
- b0 = (w1 * w1 - w0 * w0 + rho4 * d2) / (2 * w0 * rho2 * d1),
2349
- b1 = (w1 * w1 - w0 * w0 - rho4 * d2) / (2 * w1 * rho2 * d1),
2350
- r0 = Math.log(Math.sqrt(b0 * b0 + 1) - b0),
2351
- r1 = Math.log(Math.sqrt(b1 * b1 + 1) - b1);
2352
- S = (r1 - r0) / rho;
2353
- i = function(t) {
2354
- var s = t * S,
2355
- coshr0 = cosh(r0),
2356
- u = w0 / (rho2 * d1) * (coshr0 * tanh(rho * s + r0) - sinh(r0));
2357
- return [
2358
- ux0 + u * dx,
2359
- uy0 + u * dy,
2360
- w0 * coshr0 / cosh(rho * s + r0)
2361
- ];
2362
- };
2363
- }
2364
-
2365
- i.duration = S * 1000 * rho / Math.SQRT2;
2366
-
2367
- return i;
2368
- }
2369
-
2370
- zoom.rho = function(_) {
2371
- var _1 = Math.max(1e-3, +_), _2 = _1 * _1, _4 = _2 * _2;
2372
- return zoomRho(_1, _2, _4);
2373
- };
2374
-
2375
- return zoom;
2376
- })(Math.SQRT2, 2, 4);
2377
-
2378
- function hsl(hue) {
2379
- return function(start, end) {
2380
- var h = hue((start = d3Color.hsl(start)).h, (end = d3Color.hsl(end)).h),
2381
- s = nogamma(start.s, end.s),
2382
- l = nogamma(start.l, end.l),
2383
- opacity = nogamma(start.opacity, end.opacity);
2384
- return function(t) {
2385
- start.h = h(t);
2386
- start.s = s(t);
2387
- start.l = l(t);
2388
- start.opacity = opacity(t);
2389
- return start + "";
2390
- };
2391
- }
2392
- }
2393
-
2394
- var hsl$1 = hsl(hue);
2395
- var hslLong = hsl(nogamma);
2396
-
2397
- function lab(start, end) {
2398
- var l = nogamma((start = d3Color.lab(start)).l, (end = d3Color.lab(end)).l),
2399
- a = nogamma(start.a, end.a),
2400
- b = nogamma(start.b, end.b),
2401
- opacity = nogamma(start.opacity, end.opacity);
2402
- return function(t) {
2403
- start.l = l(t);
2404
- start.a = a(t);
2405
- start.b = b(t);
2406
- start.opacity = opacity(t);
2407
- return start + "";
2408
- };
2409
- }
2410
-
2411
- function hcl(hue) {
2412
- return function(start, end) {
2413
- var h = hue((start = d3Color.hcl(start)).h, (end = d3Color.hcl(end)).h),
2414
- c = nogamma(start.c, end.c),
2415
- l = nogamma(start.l, end.l),
2416
- opacity = nogamma(start.opacity, end.opacity);
2417
- return function(t) {
2418
- start.h = h(t);
2419
- start.c = c(t);
2420
- start.l = l(t);
2421
- start.opacity = opacity(t);
2422
- return start + "";
2423
- };
2424
- }
2425
- }
2426
-
2427
- var hcl$1 = hcl(hue);
2428
- var hclLong = hcl(nogamma);
2429
-
2430
- function cubehelix(hue) {
2431
- return (function cubehelixGamma(y) {
2432
- y = +y;
2433
-
2434
- function cubehelix(start, end) {
2435
- var h = hue((start = d3Color.cubehelix(start)).h, (end = d3Color.cubehelix(end)).h),
2436
- s = nogamma(start.s, end.s),
2437
- l = nogamma(start.l, end.l),
2438
- opacity = nogamma(start.opacity, end.opacity);
2439
- return function(t) {
2440
- start.h = h(t);
2441
- start.s = s(t);
2442
- start.l = l(Math.pow(t, y));
2443
- start.opacity = opacity(t);
2444
- return start + "";
2445
- };
2446
- }
2447
-
2448
- cubehelix.gamma = cubehelixGamma;
2449
-
2450
- return cubehelix;
2451
- })(1);
2452
- }
2453
-
2454
- var cubehelix$1 = cubehelix(hue);
2455
- var cubehelixLong = cubehelix(nogamma);
2456
-
2457
- function piecewise(interpolate, values) {
2458
- if (values === undefined) values = interpolate, interpolate = value;
2459
- var i = 0, n = values.length - 1, v = values[0], I = new Array(n < 0 ? 0 : n);
2460
- while (i < n) I[i] = interpolate(v, v = values[++i]);
2461
- return function(t) {
2462
- var i = Math.max(0, Math.min(n - 1, Math.floor(t *= n)));
2463
- return I[i](t - i);
2464
- };
2465
- }
2466
-
2467
- function quantize(interpolator, n) {
2468
- var samples = new Array(n);
2469
- for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
2470
- return samples;
2471
- }
2472
-
2473
- exports.interpolate = value;
2474
- exports.interpolateArray = array;
2475
- exports.interpolateBasis = basis$1;
2476
- exports.interpolateBasisClosed = basisClosed;
2477
- exports.interpolateCubehelix = cubehelix$1;
2478
- exports.interpolateCubehelixLong = cubehelixLong;
2479
- exports.interpolateDate = date;
2480
- exports.interpolateDiscrete = discrete;
2481
- exports.interpolateHcl = hcl$1;
2482
- exports.interpolateHclLong = hclLong;
2483
- exports.interpolateHsl = hsl$1;
2484
- exports.interpolateHslLong = hslLong;
2485
- exports.interpolateHue = hue$1;
2486
- exports.interpolateLab = lab;
2487
- exports.interpolateNumber = number;
2488
- exports.interpolateNumberArray = numberArray;
2489
- exports.interpolateObject = object;
2490
- exports.interpolateRgb = rgb;
2491
- exports.interpolateRgbBasis = rgbBasis;
2492
- exports.interpolateRgbBasisClosed = rgbBasisClosed;
2493
- exports.interpolateRound = round;
2494
- exports.interpolateString = string;
2495
- exports.interpolateTransformCss = interpolateTransformCss;
2496
- exports.interpolateTransformSvg = interpolateTransformSvg;
2497
- exports.interpolateZoom = zoom;
2498
- exports.piecewise = piecewise;
2499
- exports.quantize = quantize;
2500
-
2501
- Object.defineProperty(exports, '__esModule', { value: true });
2502
-
2503
- }));
2504
- });
2505
-
2506
- function constants(x) {
2507
- return function() {
2508
- return x;
2509
- };
2510
- }
2511
-
2512
- function number(x) {
2513
- return +x;
2514
- }
2515
-
2516
- var unit = [0, 1];
2517
-
2518
- function identity(x) {
2519
- return x;
2520
- }
2521
-
2522
- function normalize(a, b) {
2523
- return (b -= (a = +a))
2524
- ? function(x) { return (x - a) / b; }
2525
- : constants(isNaN(b) ? NaN : 0.5);
2526
- }
2527
-
2528
- function clamper(a, b) {
2529
- var t;
2530
- if (a > b) t = a, a = b, b = t;
2531
- return function(x) { return Math.max(a, Math.min(b, x)); };
2532
- }
2533
-
2534
- // normalize(a, b)(x) takes a domain value x in [a,b] and returns the corresponding parameter t in [0,1].
2535
- // interpolate(a, b)(t) takes a parameter t in [0,1] and returns the corresponding range value x in [a,b].
2536
- function bimap(domain, range, interpolate) {
2537
- var d0 = domain[0], d1 = domain[1], r0 = range[0], r1 = range[1];
2538
- if (d1 < d0) d0 = normalize(d1, d0), r0 = interpolate(r1, r0);
2539
- else d0 = normalize(d0, d1), r0 = interpolate(r0, r1);
2540
- return function(x) { return r0(d0(x)); };
2541
- }
2542
-
2543
- function polymap(domain, range, interpolate) {
2544
- var j = Math.min(domain.length, range.length) - 1,
2545
- d = new Array(j),
2546
- r = new Array(j),
2547
- i = -1;
2548
-
2549
- // Reverse descending domains.
2550
- if (domain[j] < domain[0]) {
2551
- domain = domain.slice().reverse();
2552
- range = range.slice().reverse();
2553
- }
2554
-
2555
- while (++i < j) {
2556
- d[i] = normalize(domain[i], domain[i + 1]);
2557
- r[i] = interpolate(range[i], range[i + 1]);
2558
- }
2559
-
2560
- return function(x) {
2561
- var i = bisectRight(domain, x, 1, j) - 1;
2562
- return r[i](d[i](x));
2563
- };
2564
- }
2565
-
2566
- function copy$1(source, target) {
2567
- return target
2568
- .domain(source.domain())
2569
- .range(source.range())
2570
- .interpolate(source.interpolate())
2571
- .clamp(source.clamp())
2572
- .unknown(source.unknown());
2573
- }
2574
-
2575
- function transformer$1() {
2576
- var domain = unit,
2577
- range = unit,
2578
- interpolate = d3Interpolate.interpolate,
2579
- transform,
2580
- untransform,
2581
- unknown,
2582
- clamp = identity,
2583
- piecewise,
2584
- output,
2585
- input;
2586
-
2587
- function rescale() {
2588
- var n = Math.min(domain.length, range.length);
2589
- if (clamp !== identity) clamp = clamper(domain[0], domain[n - 1]);
2590
- piecewise = n > 2 ? polymap : bimap;
2591
- output = input = null;
2592
- return scale;
2593
- }
2594
-
2595
- function scale(x) {
2596
- return x == null || isNaN(x = +x) ? unknown : (output || (output = piecewise(domain.map(transform), range, interpolate)))(transform(clamp(x)));
2597
- }
2598
-
2599
- scale.invert = function(y) {
2600
- return clamp(untransform((input || (input = piecewise(range, domain.map(transform), d3Interpolate.interpolateNumber)))(y)));
2601
- };
2602
-
2603
- scale.domain = function(_) {
2604
- return arguments.length ? (domain = Array.from(_, number), rescale()) : domain.slice();
2605
- };
2606
-
2607
- scale.range = function(_) {
2608
- return arguments.length ? (range = Array.from(_), rescale()) : range.slice();
2609
- };
2610
-
2611
- scale.rangeRound = function(_) {
2612
- return range = Array.from(_), interpolate = d3Interpolate.interpolateRound, rescale();
2613
- };
2614
-
2615
- scale.clamp = function(_) {
2616
- return arguments.length ? (clamp = _ ? true : identity, rescale()) : clamp !== identity;
2617
- };
2618
-
2619
- scale.interpolate = function(_) {
2620
- return arguments.length ? (interpolate = _, rescale()) : interpolate;
2621
- };
2622
-
2623
- scale.unknown = function(_) {
2624
- return arguments.length ? (unknown = _, scale) : unknown;
2625
- };
2626
-
2627
- return function(t, u) {
2628
- transform = t, untransform = u;
2629
- return rescale();
2630
- };
2631
- }
2632
-
2633
- function continuous() {
2634
- return transformer$1()(identity, identity);
2635
- }
2636
-
2637
- var d3Format = createCommonjsModule(function (module, exports) {
2638
- // https://d3js.org/d3-format/ v2.0.0 Copyright 2020 Mike Bostock
2639
- (function (global, factory) {
2640
- factory(exports) ;
2641
- }(this, (function (exports) {
2642
- function formatDecimal(x) {
2643
- return Math.abs(x = Math.round(x)) >= 1e21
2644
- ? x.toLocaleString("en").replace(/,/g, "")
2645
- : x.toString(10);
2646
- }
2647
-
2648
- // Computes the decimal coefficient and exponent of the specified number x with
2649
- // significant digits p, where x is positive and p is in [1, 21] or undefined.
2650
- // For example, formatDecimalParts(1.23) returns ["123", 0].
2651
- function formatDecimalParts(x, p) {
2652
- if ((i = (x = p ? x.toExponential(p - 1) : x.toExponential()).indexOf("e")) < 0) return null; // NaN, ±Infinity
2653
- var i, coefficient = x.slice(0, i);
2654
-
2655
- // The string returned by toExponential either has the form \d\.\d+e[-+]\d+
2656
- // (e.g., 1.2e+3) or the form \de[-+]\d+ (e.g., 1e+3).
2657
- return [
2658
- coefficient.length > 1 ? coefficient[0] + coefficient.slice(2) : coefficient,
2659
- +x.slice(i + 1)
2660
- ];
2661
- }
2662
-
2663
- function exponent(x) {
2664
- return x = formatDecimalParts(Math.abs(x)), x ? x[1] : NaN;
2665
- }
2666
-
2667
- function formatGroup(grouping, thousands) {
2668
- return function(value, width) {
2669
- var i = value.length,
2670
- t = [],
2671
- j = 0,
2672
- g = grouping[0],
2673
- length = 0;
2674
-
2675
- while (i > 0 && g > 0) {
2676
- if (length + g + 1 > width) g = Math.max(1, width - length);
2677
- t.push(value.substring(i -= g, i + g));
2678
- if ((length += g + 1) > width) break;
2679
- g = grouping[j = (j + 1) % grouping.length];
2680
- }
2681
-
2682
- return t.reverse().join(thousands);
2683
- };
2684
- }
2685
-
2686
- function formatNumerals(numerals) {
2687
- return function(value) {
2688
- return value.replace(/[0-9]/g, function(i) {
2689
- return numerals[+i];
2690
- });
2691
- };
2692
- }
2693
-
2694
- // [[fill]align][sign][symbol][0][width][,][.precision][~][type]
2695
- var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
2696
-
2697
- function formatSpecifier(specifier) {
2698
- if (!(match = re.exec(specifier))) throw new Error("invalid format: " + specifier);
2699
- var match;
2700
- return new FormatSpecifier({
2701
- fill: match[1],
2702
- align: match[2],
2703
- sign: match[3],
2704
- symbol: match[4],
2705
- zero: match[5],
2706
- width: match[6],
2707
- comma: match[7],
2708
- precision: match[8] && match[8].slice(1),
2709
- trim: match[9],
2710
- type: match[10]
2711
- });
2712
- }
2713
-
2714
- formatSpecifier.prototype = FormatSpecifier.prototype; // instanceof
2715
-
2716
- function FormatSpecifier(specifier) {
2717
- this.fill = specifier.fill === undefined ? " " : specifier.fill + "";
2718
- this.align = specifier.align === undefined ? ">" : specifier.align + "";
2719
- this.sign = specifier.sign === undefined ? "-" : specifier.sign + "";
2720
- this.symbol = specifier.symbol === undefined ? "" : specifier.symbol + "";
2721
- this.zero = !!specifier.zero;
2722
- this.width = specifier.width === undefined ? undefined : +specifier.width;
2723
- this.comma = !!specifier.comma;
2724
- this.precision = specifier.precision === undefined ? undefined : +specifier.precision;
2725
- this.trim = !!specifier.trim;
2726
- this.type = specifier.type === undefined ? "" : specifier.type + "";
2727
- }
2728
-
2729
- FormatSpecifier.prototype.toString = function() {
2730
- return this.fill
2731
- + this.align
2732
- + this.sign
2733
- + this.symbol
2734
- + (this.zero ? "0" : "")
2735
- + (this.width === undefined ? "" : Math.max(1, this.width | 0))
2736
- + (this.comma ? "," : "")
2737
- + (this.precision === undefined ? "" : "." + Math.max(0, this.precision | 0))
2738
- + (this.trim ? "~" : "")
2739
- + this.type;
2740
- };
2741
-
2742
- // Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
2743
- function formatTrim(s) {
2744
- out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
2745
- switch (s[i]) {
2746
- case ".": i0 = i1 = i; break;
2747
- case "0": if (i0 === 0) i0 = i; i1 = i; break;
2748
- default: if (!+s[i]) break out; if (i0 > 0) i0 = 0; break;
2749
- }
2750
- }
2751
- return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
2752
- }
2753
-
2754
- var prefixExponent;
2755
-
2756
- function formatPrefixAuto(x, p) {
2757
- var d = formatDecimalParts(x, p);
2758
- if (!d) return x + "";
2759
- var coefficient = d[0],
2760
- exponent = d[1],
2761
- i = exponent - (prefixExponent = Math.max(-8, Math.min(8, Math.floor(exponent / 3))) * 3) + 1,
2762
- n = coefficient.length;
2763
- return i === n ? coefficient
2764
- : i > n ? coefficient + new Array(i - n + 1).join("0")
2765
- : i > 0 ? coefficient.slice(0, i) + "." + coefficient.slice(i)
2766
- : "0." + new Array(1 - i).join("0") + formatDecimalParts(x, Math.max(0, p + i - 1))[0]; // less than 1y!
2767
- }
2768
-
2769
- function formatRounded(x, p) {
2770
- var d = formatDecimalParts(x, p);
2771
- if (!d) return x + "";
2772
- var coefficient = d[0],
2773
- exponent = d[1];
2774
- return exponent < 0 ? "0." + new Array(-exponent).join("0") + coefficient
2775
- : coefficient.length > exponent + 1 ? coefficient.slice(0, exponent + 1) + "." + coefficient.slice(exponent + 1)
2776
- : coefficient + new Array(exponent - coefficient.length + 2).join("0");
2777
- }
2778
-
2779
- var formatTypes = {
2780
- "%": (x, p) => (x * 100).toFixed(p),
2781
- "b": (x) => Math.round(x).toString(2),
2782
- "c": (x) => x + "",
2783
- "d": formatDecimal,
2784
- "e": (x, p) => x.toExponential(p),
2785
- "f": (x, p) => x.toFixed(p),
2786
- "g": (x, p) => x.toPrecision(p),
2787
- "o": (x) => Math.round(x).toString(8),
2788
- "p": (x, p) => formatRounded(x * 100, p),
2789
- "r": formatRounded,
2790
- "s": formatPrefixAuto,
2791
- "X": (x) => Math.round(x).toString(16).toUpperCase(),
2792
- "x": (x) => Math.round(x).toString(16)
2793
- };
2794
-
2795
- function identity(x) {
2796
- return x;
2797
- }
2798
-
2799
- var map = Array.prototype.map,
2800
- prefixes = ["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];
2801
-
2802
- function formatLocale(locale) {
2803
- var group = locale.grouping === undefined || locale.thousands === undefined ? identity : formatGroup(map.call(locale.grouping, Number), locale.thousands + ""),
2804
- currencyPrefix = locale.currency === undefined ? "" : locale.currency[0] + "",
2805
- currencySuffix = locale.currency === undefined ? "" : locale.currency[1] + "",
2806
- decimal = locale.decimal === undefined ? "." : locale.decimal + "",
2807
- numerals = locale.numerals === undefined ? identity : formatNumerals(map.call(locale.numerals, String)),
2808
- percent = locale.percent === undefined ? "%" : locale.percent + "",
2809
- minus = locale.minus === undefined ? "−" : locale.minus + "",
2810
- nan = locale.nan === undefined ? "NaN" : locale.nan + "";
2811
-
2812
- function newFormat(specifier) {
2813
- specifier = formatSpecifier(specifier);
2814
-
2815
- var fill = specifier.fill,
2816
- align = specifier.align,
2817
- sign = specifier.sign,
2818
- symbol = specifier.symbol,
2819
- zero = specifier.zero,
2820
- width = specifier.width,
2821
- comma = specifier.comma,
2822
- precision = specifier.precision,
2823
- trim = specifier.trim,
2824
- type = specifier.type;
2825
-
2826
- // The "n" type is an alias for ",g".
2827
- if (type === "n") comma = true, type = "g";
2828
-
2829
- // The "" type, and any invalid type, is an alias for ".12~g".
2830
- else if (!formatTypes[type]) precision === undefined && (precision = 12), trim = true, type = "g";
2831
-
2832
- // If zero fill is specified, padding goes after sign and before digits.
2833
- if (zero || (fill === "0" && align === "=")) zero = true, fill = "0", align = "=";
2834
-
2835
- // Compute the prefix and suffix.
2836
- // For SI-prefix, the suffix is lazily computed.
2837
- var prefix = symbol === "$" ? currencyPrefix : symbol === "#" && /[boxX]/.test(type) ? "0" + type.toLowerCase() : "",
2838
- suffix = symbol === "$" ? currencySuffix : /[%p]/.test(type) ? percent : "";
2839
-
2840
- // What format function should we use?
2841
- // Is this an integer type?
2842
- // Can this type generate exponential notation?
2843
- var formatType = formatTypes[type],
2844
- maybeSuffix = /[defgprs%]/.test(type);
2845
-
2846
- // Set the default precision if not specified,
2847
- // or clamp the specified precision to the supported range.
2848
- // For significant precision, it must be in [1, 21].
2849
- // For fixed precision, it must be in [0, 20].
2850
- precision = precision === undefined ? 6
2851
- : /[gprs]/.test(type) ? Math.max(1, Math.min(21, precision))
2852
- : Math.max(0, Math.min(20, precision));
2853
-
2854
- function format(value) {
2855
- var valuePrefix = prefix,
2856
- valueSuffix = suffix,
2857
- i, n, c;
2858
-
2859
- if (type === "c") {
2860
- valueSuffix = formatType(value) + valueSuffix;
2861
- value = "";
2862
- } else {
2863
- value = +value;
2864
-
2865
- // Determine the sign. -0 is not less than 0, but 1 / -0 is!
2866
- var valueNegative = value < 0 || 1 / value < 0;
2867
-
2868
- // Perform the initial formatting.
2869
- value = isNaN(value) ? nan : formatType(Math.abs(value), precision);
2870
-
2871
- // Trim insignificant zeros.
2872
- if (trim) value = formatTrim(value);
2873
-
2874
- // If a negative value rounds to zero after formatting, and no explicit positive sign is requested, hide the sign.
2875
- if (valueNegative && +value === 0 && sign !== "+") valueNegative = false;
2876
-
2877
- // Compute the prefix and suffix.
2878
- valuePrefix = (valueNegative ? (sign === "(" ? sign : minus) : sign === "-" || sign === "(" ? "" : sign) + valuePrefix;
2879
- valueSuffix = (type === "s" ? prefixes[8 + prefixExponent / 3] : "") + valueSuffix + (valueNegative && sign === "(" ? ")" : "");
2880
-
2881
- // Break the formatted value into the integer “value” part that can be
2882
- // grouped, and fractional or exponential “suffix” part that is not.
2883
- if (maybeSuffix) {
2884
- i = -1, n = value.length;
2885
- while (++i < n) {
2886
- if (c = value.charCodeAt(i), 48 > c || c > 57) {
2887
- valueSuffix = (c === 46 ? decimal + value.slice(i + 1) : value.slice(i)) + valueSuffix;
2888
- value = value.slice(0, i);
2889
- break;
2890
- }
2891
- }
2892
- }
2893
- }
2894
-
2895
- // If the fill character is not "0", grouping is applied before padding.
2896
- if (comma && !zero) value = group(value, Infinity);
2897
-
2898
- // Compute the padding.
2899
- var length = valuePrefix.length + value.length + valueSuffix.length,
2900
- padding = length < width ? new Array(width - length + 1).join(fill) : "";
2901
-
2902
- // If the fill character is "0", grouping is applied after padding.
2903
- if (comma && zero) value = group(padding + value, padding.length ? width - valueSuffix.length : Infinity), padding = "";
2904
-
2905
- // Reconstruct the final output based on the desired alignment.
2906
- switch (align) {
2907
- case "<": value = valuePrefix + value + valueSuffix + padding; break;
2908
- case "=": value = valuePrefix + padding + value + valueSuffix; break;
2909
- case "^": value = padding.slice(0, length = padding.length >> 1) + valuePrefix + value + valueSuffix + padding.slice(length); break;
2910
- default: value = padding + valuePrefix + value + valueSuffix; break;
2911
- }
2912
-
2913
- return numerals(value);
2914
- }
2915
-
2916
- format.toString = function() {
2917
- return specifier + "";
2918
- };
2919
-
2920
- return format;
2921
- }
2922
-
2923
- function formatPrefix(specifier, value) {
2924
- var f = newFormat((specifier = formatSpecifier(specifier), specifier.type = "f", specifier)),
2925
- e = Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3,
2926
- k = Math.pow(10, -e),
2927
- prefix = prefixes[8 + e / 3];
2928
- return function(value) {
2929
- return f(k * value) + prefix;
2930
- };
2931
- }
2932
-
2933
- return {
2934
- format: newFormat,
2935
- formatPrefix: formatPrefix
2936
- };
2937
- }
2938
-
2939
- var locale;
2940
-
2941
- defaultLocale({
2942
- thousands: ",",
2943
- grouping: [3],
2944
- currency: ["$", ""]
2945
- });
2946
-
2947
- function defaultLocale(definition) {
2948
- locale = formatLocale(definition);
2949
- exports.format = locale.format;
2950
- exports.formatPrefix = locale.formatPrefix;
2951
- return locale;
2952
- }
2953
-
2954
- function precisionFixed(step) {
2955
- return Math.max(0, -exponent(Math.abs(step)));
2956
- }
2957
-
2958
- function precisionPrefix(step, value) {
2959
- return Math.max(0, Math.max(-8, Math.min(8, Math.floor(exponent(value) / 3))) * 3 - exponent(Math.abs(step)));
2960
- }
2961
-
2962
- function precisionRound(step, max) {
2963
- step = Math.abs(step), max = Math.abs(max) - step;
2964
- return Math.max(0, exponent(max) - exponent(step)) + 1;
2965
- }
2966
-
2967
- exports.FormatSpecifier = FormatSpecifier;
2968
- exports.formatDefaultLocale = defaultLocale;
2969
- exports.formatLocale = formatLocale;
2970
- exports.formatSpecifier = formatSpecifier;
2971
- exports.precisionFixed = precisionFixed;
2972
- exports.precisionPrefix = precisionPrefix;
2973
- exports.precisionRound = precisionRound;
2974
-
2975
- Object.defineProperty(exports, '__esModule', { value: true });
2976
-
2977
- })));
2978
- });
2979
-
2980
- function tickFormat(start, stop, count, specifier) {
2981
- var step = tickStep(start, stop, count),
2982
- precision;
2983
- specifier = d3Format.formatSpecifier(specifier == null ? ",f" : specifier);
2984
- switch (specifier.type) {
2985
- case "s": {
2986
- var value = Math.max(Math.abs(start), Math.abs(stop));
2987
- if (specifier.precision == null && !isNaN(precision = d3Format.precisionPrefix(step, value))) specifier.precision = precision;
2988
- return d3Format.formatPrefix(specifier, value);
2989
- }
2990
- case "":
2991
- case "e":
2992
- case "g":
2993
- case "p":
2994
- case "r": {
2995
- if (specifier.precision == null && !isNaN(precision = d3Format.precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
2996
- break;
2997
- }
2998
- case "f":
2999
- case "%": {
3000
- if (specifier.precision == null && !isNaN(precision = d3Format.precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
3001
- break;
3002
- }
3003
- }
3004
- return d3Format.format(specifier);
3005
- }
3006
-
3007
- function linearish(scale) {
3008
- var domain = scale.domain;
3009
-
3010
- scale.ticks = function(count) {
3011
- var d = domain();
3012
- return ticks(d[0], d[d.length - 1], count == null ? 10 : count);
3013
- };
3014
-
3015
- scale.tickFormat = function(count, specifier) {
3016
- var d = domain();
3017
- return tickFormat(d[0], d[d.length - 1], count == null ? 10 : count, specifier);
3018
- };
3019
-
3020
- scale.nice = function(count) {
3021
- if (count == null) count = 10;
3022
-
3023
- var d = domain();
3024
- var i0 = 0;
3025
- var i1 = d.length - 1;
3026
- var start = d[i0];
3027
- var stop = d[i1];
3028
- var prestep;
3029
- var step;
3030
- var maxIter = 10;
3031
-
3032
- if (stop < start) {
3033
- step = start, start = stop, stop = step;
3034
- step = i0, i0 = i1, i1 = step;
3035
- }
3036
-
3037
- while (maxIter-- > 0) {
3038
- step = tickIncrement(start, stop, count);
3039
- if (step === prestep) {
3040
- d[i0] = start;
3041
- d[i1] = stop;
3042
- return domain(d);
3043
- } else if (step > 0) {
3044
- start = Math.floor(start / step) * step;
3045
- stop = Math.ceil(stop / step) * step;
3046
- } else if (step < 0) {
3047
- start = Math.ceil(start * step) / step;
3048
- stop = Math.floor(stop * step) / step;
3049
- } else {
3050
- break;
3051
- }
3052
- prestep = step;
3053
- }
3054
-
3055
- return scale;
3056
- };
3057
-
3058
- return scale;
3059
- }
3060
-
3061
- function linear() {
3062
- var scale = continuous();
3063
-
3064
- scale.copy = function() {
3065
- return copy$1(scale, linear());
3066
- };
3067
-
3068
- initRange.apply(scale, arguments);
3069
-
3070
- return linearish(scale);
3071
- }
3072
-
3073
- function transformer() {
3074
- var x0 = 0,
3075
- x1 = 1,
3076
- t0,
3077
- t1,
3078
- k10,
3079
- transform,
3080
- interpolator = identity,
3081
- clamp = false,
3082
- unknown;
3083
-
3084
- function scale(x) {
3085
- return x == null || isNaN(x = +x) ? unknown : interpolator(k10 === 0 ? 0.5 : (x = (transform(x) - t0) * k10, clamp ? Math.max(0, Math.min(1, x)) : x));
3086
- }
3087
-
3088
- scale.domain = function(_) {
3089
- return arguments.length ? ([x0, x1] = _, t0 = transform(x0 = +x0), t1 = transform(x1 = +x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0), scale) : [x0, x1];
3090
- };
3091
-
3092
- scale.clamp = function(_) {
3093
- return arguments.length ? (clamp = !!_, scale) : clamp;
3094
- };
3095
-
3096
- scale.interpolator = function(_) {
3097
- return arguments.length ? (interpolator = _, scale) : interpolator;
3098
- };
3099
-
3100
- function range(interpolate) {
3101
- return function(_) {
3102
- var r0, r1;
3103
- return arguments.length ? ([r0, r1] = _, interpolator = interpolate(r0, r1), scale) : [interpolator(0), interpolator(1)];
3104
- };
3105
- }
3106
-
3107
- scale.range = range(d3Interpolate.interpolate);
3108
-
3109
- scale.rangeRound = range(d3Interpolate.interpolateRound);
3110
-
3111
- scale.unknown = function(_) {
3112
- return arguments.length ? (unknown = _, scale) : unknown;
3113
- };
3114
-
3115
- return function(t) {
3116
- transform = t, t0 = t(x0), t1 = t(x1), k10 = t0 === t1 ? 0 : 1 / (t1 - t0);
3117
- return scale;
3118
- };
3119
- }
3120
-
3121
- function copy(source, target) {
3122
- return target
3123
- .domain(source.domain())
3124
- .interpolator(source.interpolator())
3125
- .clamp(source.clamp())
3126
- .unknown(source.unknown());
3127
- }
3128
-
3129
- function sequential() {
3130
- var scale = linearish(transformer()(identity));
3131
-
3132
- scale.copy = function() {
3133
- return copy(scale, sequential());
3134
- };
3135
-
3136
- return initInterpolator.apply(scale, arguments);
3137
- }
3138
-
3139
- const COLOR_BASE = "#cecece";
3140
-
3141
- // https://www.w3.org/TR/WCAG20/#relativeluminancedef
3142
- const rc = 0.2126;
3143
- const gc = 0.7152;
3144
- const bc = 0.0722;
3145
- // low-gamma adjust coefficient
3146
- const lowc = 1 / 12.92;
3147
- function adjustGamma(p) {
3148
- return Math.pow((p + 0.055) / 1.055, 2.4);
3149
- }
3150
- function relativeLuminance(o) {
3151
- const rsrgb = o.r / 255;
3152
- const gsrgb = o.g / 255;
3153
- const bsrgb = o.b / 255;
3154
- const r = rsrgb <= 0.03928 ? rsrgb * lowc : adjustGamma(rsrgb);
3155
- const g = gsrgb <= 0.03928 ? gsrgb * lowc : adjustGamma(gsrgb);
3156
- const b = bsrgb <= 0.03928 ? bsrgb * lowc : adjustGamma(bsrgb);
3157
- return r * rc + g * gc + b * bc;
3158
- }
3159
- const createRainbowColor = (root) => {
3160
- const colorParentMap = new Map();
3161
- colorParentMap.set(root, COLOR_BASE);
3162
- if (root.children != null) {
3163
- const colorScale = sequential([0, root.children.length - 1], (n) => hsl(360 * n, 0.6, 0.85));
3164
- root.children.forEach((c, id) => {
3165
- colorParentMap.set(c, colorScale(id).toString());
3166
- });
3167
- }
3168
- const colorMap = new Map();
3169
- const lightScale = linear().domain([0, root.height]).range([0.9, 0.3]);
3170
- const getBackgroundColor = (node) => {
3171
- const parents = node.ancestors();
3172
- const colorStr = parents.length === 1 ? colorParentMap.get(parents[0]) : colorParentMap.get(parents[parents.length - 2]);
3173
- const hslColor = hsl(colorStr);
3174
- hslColor.l = lightScale(node.depth);
3175
- return hslColor;
3176
- };
3177
- return (node) => {
3178
- if (!colorMap.has(node)) {
3179
- const backgroundColor = getBackgroundColor(node);
3180
- const l = relativeLuminance(backgroundColor.rgb());
3181
- const fontColor = l > 0.179 ? "#000" : "#fff";
3182
- colorMap.set(node, {
3183
- backgroundColor: backgroundColor.toString(),
3184
- fontColor,
3185
- });
3186
- }
3187
- return colorMap.get(node);
3188
- };
3189
- };
3190
-
3191
- const StaticContext = q({});
3192
- const drawChart = (parentNode, data, width, height) => {
3193
- const availableSizeProperties = getAvailableSizeOptions(data.options);
3194
- console.time("layout create");
3195
- const layout = treemap()
3196
- .size([width, height])
3197
- .paddingOuter(PADDING)
3198
- .paddingTop(TOP_PADDING)
3199
- .paddingInner(PADDING)
3200
- .round(true)
3201
- .tile(treemapResquarify);
3202
- console.timeEnd("layout create");
3203
- console.time("rawHierarchy create");
3204
- const rawHierarchy = hierarchy(data.tree);
3205
- console.timeEnd("rawHierarchy create");
3206
- const nodeSizesCache = new Map();
3207
- const nodeIdsCache = new Map();
3208
- const getModuleSize = (node, sizeKey) => { var _a, _b; return (_b = (_a = nodeSizesCache.get(node)) === null || _a === void 0 ? void 0 : _a[sizeKey]) !== null && _b !== void 0 ? _b : 0; };
3209
- console.time("rawHierarchy eachAfter cache");
3210
- rawHierarchy.eachAfter((node) => {
3211
- var _a;
3212
- const nodeData = node.data;
3213
- nodeIdsCache.set(nodeData, {
3214
- nodeUid: generateUniqueId("node"),
3215
- clipUid: generateUniqueId("clip"),
3216
- });
3217
- const sizes = { renderedLength: 0, gzipLength: 0, brotliLength: 0 };
3218
- if (isModuleTree(nodeData)) {
3219
- for (const sizeKey of availableSizeProperties) {
3220
- sizes[sizeKey] = nodeData.children.reduce((acc, child) => getModuleSize(child, sizeKey) + acc, 0);
3221
- }
3222
- }
3223
- else {
3224
- for (const sizeKey of availableSizeProperties) {
3225
- sizes[sizeKey] = (_a = data.nodeParts[nodeData.uid][sizeKey]) !== null && _a !== void 0 ? _a : 0;
3226
- }
3227
- }
3228
- nodeSizesCache.set(nodeData, sizes);
3229
- });
3230
- console.timeEnd("rawHierarchy eachAfter cache");
3231
- const getModuleIds = (node) => nodeIdsCache.get(node);
3232
- console.time("color");
3233
- const getModuleColor = createRainbowColor(rawHierarchy);
3234
- console.timeEnd("color");
3235
- N(o$1(StaticContext.Provider, Object.assign({ value: {
3236
- data,
3237
- availableSizeProperties,
3238
- width,
3239
- height,
3240
- getModuleSize,
3241
- getModuleIds,
3242
- getModuleColor,
3243
- rawHierarchy,
3244
- layout,
3245
- } }, { children: o$1(Main, {}, void 0) }), void 0), parentNode);
3246
- };
3247
-
3248
- exports.StaticContext = StaticContext;
3249
- exports.default = drawChart;
3250
-
3251
- Object.defineProperty(exports, '__esModule', { value: true });
3252
-
3253
- return exports;
3254
-
3255
- }({}));
3256
- //# sourceMappingURL=treemap.js.map
3257
-
3258
- /*-->*/
3259
- </script>
3260
- <script>
3261
- /*<!--*/
3262
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"browser.umd.js","children":[{"name":"node_modules","children":[{"name":"object-assign/index.js","uid":"85e0-279"},{"name":"@styled-system","children":[{"name":"core/dist/index.esm.js","uid":"85e0-281"},{"name":"layout/dist/index.esm.js","uid":"85e0-283"},{"name":"color/dist/index.esm.js","uid":"85e0-285"},{"name":"typography/dist/index.esm.js","uid":"85e0-287"},{"name":"flexbox/dist/index.esm.js","uid":"85e0-289"},{"name":"grid/dist/index.esm.js","uid":"85e0-291"},{"name":"border/dist/index.esm.js","uid":"85e0-293"},{"name":"background/dist/index.esm.js","uid":"85e0-295"},{"name":"position/dist/index.esm.js","uid":"85e0-297"},{"name":"space/dist/index.esm.js","uid":"85e0-299"},{"name":"shadow/dist/index.esm.js","uid":"85e0-301"},{"name":"css/dist/index.esm.js","uid":"85e0-303"},{"name":"variant/dist/index.esm.js","uid":"85e0-305"},{"name":"theme-get/dist/index.esm.js","uid":"85e0-311"}]},{"name":"styled-system/dist/index.esm.js","uid":"85e0-307"},{"name":"deepmerge/dist/cjs.js","uid":"85e0-315"},{"name":"@primer/octicons-react/dist/index.esm.js","uid":"85e0-371"},{"name":"@react-aria/ssr/dist/module.js","uid":"85e0-393"},{"name":"classnames/index.js","uid":"85e0-427"}]},{"name":"src","children":[{"uid":"85e0-309","name":"constants.ts"},{"uid":"85e0-313","name":"BaseStyles.tsx"},{"uid":"85e0-317","name":"ThemeProvider.tsx"},{"uid":"85e0-319","name":"sx.ts"},{"uid":"85e0-321","name":"Box.tsx"},{"uid":"85e0-323","name":"BorderBox.tsx"},{"uid":"85e0-325","name":"Flex.tsx"},{"uid":"85e0-327","name":"Grid.tsx"},{"uid":"85e0-329","name":"Position.tsx"},{"name":"hooks","children":[{"uid":"85e0-331","name":"useDetails.tsx"},{"uid":"85e0-333","name":"useOnOutsideClick.tsx"},{"uid":"85e0-337","name":"useOpenAndCloseFocus.ts"},{"uid":"85e0-339","name":"useOnEscapePress.ts"},{"uid":"85e0-341","name":"useProvidedRefOrCreate.ts"},{"uid":"85e0-343","name":"useOverlay.tsx"},{"uid":"85e0-377","name":"useAnchoredPosition.ts"},{"uid":"85e0-379","name":"useResizeObserver.ts"},{"uid":"85e0-383","name":"useFocusTrap.ts"},{"uid":"85e0-387","name":"useFocusZone.ts"},{"uid":"85e0-391","name":"useCombinedRefs.ts"},{"uid":"85e0-417","name":"useRenderForcingRef.ts"},{"uid":"85e0-419","name":"useProvidedStateOrCreate.ts"},{"uid":"85e0-447","name":"useDialog.ts"},{"uid":"85e0-537","name":"useSafeTimeout.ts"}]},{"name":"utils","children":[{"uid":"85e0-335","name":"iterateFocusableElements.ts"},{"uid":"85e0-347","name":"userAgent.ts"},{"uid":"85e0-349","name":"uniqueId.ts"},{"uid":"85e0-439","name":"isNumeric.tsx"}]},{"name":"polyfills/eventListenerSignal.ts","uid":"85e0-345"},{"name":"behaviors","children":[{"uid":"85e0-351","name":"focusZone.ts"},{"uid":"85e0-375","name":"anchoredPosition.ts"},{"uid":"85e0-381","name":"focusTrap.ts"}]},{"name":"Button","children":[{"uid":"85e0-353","name":"ButtonStyles.tsx"},{"uid":"85e0-355","name":"ButtonBase.tsx"},{"uid":"85e0-357","name":"Button.tsx"},{"uid":"85e0-359","name":"ButtonDanger.tsx"},{"uid":"85e0-361","name":"ButtonGroup.tsx"},{"uid":"85e0-363","name":"ButtonOutline.tsx"},{"uid":"85e0-365","name":"ButtonPrimary.tsx"},{"uid":"85e0-367","name":"ButtonInvisible.tsx"},{"uid":"85e0-369","name":"ButtonTableList.tsx"},{"uid":"85e0-373","name":"ButtonClose.tsx"}]},{"uid":"85e0-385","name":"StyledOcticon.tsx"},{"name":"Portal/Portal.tsx","uid":"85e0-389"},{"name":"Dialog","children":[{"uid":"85e0-395","name":"Dialog.tsx"},{"uid":"85e0-397","name":"ConfirmationDialog.tsx"}]},{"name":"ActionList","children":[{"uid":"85e0-399","name":"Header.tsx"},{"uid":"85e0-401","name":"Group.tsx"},{"uid":"85e0-405","name":"Divider.tsx"},{"uid":"85e0-407","name":"Item.tsx"},{"uid":"85e0-409","name":"List.tsx"},{"uid":"85e0-411","name":"index.ts"}]},{"uid":"85e0-403","name":"Truncate.tsx"},{"uid":"85e0-413","name":"Overlay.tsx"},{"name":"AnchoredOverlay/AnchoredOverlay.tsx","uid":"85e0-415"},{"uid":"85e0-421","name":"ActionMenu.tsx"},{"uid":"85e0-423","name":"Avatar.tsx"},{"uid":"85e0-425","name":"AvatarPair.tsx"},{"uid":"85e0-429","name":"AvatarStack.tsx"},{"uid":"85e0-431","name":"BranchName.tsx"},{"uid":"85e0-433","name":"Breadcrumb.tsx"},{"uid":"85e0-435","name":"Caret.tsx"},{"uid":"85e0-437","name":"CircleBadge.tsx"},{"uid":"85e0-441","name":"CircleOcticon.tsx"},{"uid":"85e0-443","name":"CounterLabel.tsx"},{"uid":"85e0-445","name":"Details.tsx"},{"uid":"85e0-449","name":"Text.tsx"},{"uid":"85e0-451","name":"Dialog.tsx"},{"uid":"85e0-453","name":"DropdownStyles.ts"},{"uid":"85e0-455","name":"Dropdown.tsx"},{"name":"DropdownMenu","children":[{"uid":"85e0-457","name":"DropdownButton.tsx"},{"uid":"85e0-459","name":"DropdownMenu.tsx"}]},{"uid":"85e0-461","name":"FilteredSearch.tsx"},{"uid":"85e0-463","name":"FilterList.tsx"},{"uid":"85e0-465","name":"Flash.tsx"},{"uid":"85e0-467","name":"FormGroup.tsx"},{"uid":"85e0-469","name":"Header.tsx"},{"uid":"85e0-471","name":"Heading.tsx"},{"uid":"85e0-473","name":"LabelGroup.tsx"},{"uid":"85e0-475","name":"Label.tsx"},{"uid":"85e0-477","name":"Link.tsx"},{"uid":"85e0-479","name":"Pagehead.tsx"},{"name":"Pagination","children":[{"uid":"85e0-481","name":"Pagination.tsx"},{"uid":"85e0-483","name":"model.tsx"}]},{"uid":"85e0-485","name":"PointerBox.tsx"},{"uid":"85e0-487","name":"Popover.tsx"},{"uid":"85e0-489","name":"ProgressBar.tsx"},{"name":"SelectMenu","children":[{"name":"hooks/useKeyboardNav.js","uid":"85e0-491"},{"uid":"85e0-493","name":"SelectMenuContext.tsx"},{"uid":"85e0-495","name":"SelectMenuDivider.tsx"},{"uid":"85e0-499","name":"SelectMenuFilter.tsx"},{"uid":"85e0-501","name":"SelectMenuFooter.tsx"},{"uid":"85e0-503","name":"SelectMenuHeader.tsx"},{"uid":"85e0-505","name":"SelectMenuItem.tsx"},{"uid":"85e0-507","name":"SelectMenuList.tsx"},{"uid":"85e0-511","name":"SelectMenuLoadingAnimation.tsx"},{"uid":"85e0-513","name":"SelectMenuModal.tsx"},{"uid":"85e0-515","name":"SelectMenuTab.tsx"},{"uid":"85e0-517","name":"SelectMenuTabPanel.tsx"},{"uid":"85e0-519","name":"SelectMenuTabs.tsx"},{"uid":"85e0-521","name":"SelectMenu.tsx"}]},{"uid":"85e0-497","name":"TextInput.tsx"},{"uid":"85e0-509","name":"Spinner.tsx"},{"uid":"85e0-523","name":"SideNav.tsx"},{"uid":"85e0-525","name":"StateLabel.tsx"},{"uid":"85e0-527","name":"SubNav.tsx"},{"uid":"85e0-529","name":"TabNav.tsx"},{"uid":"85e0-531","name":"Timeline.tsx"},{"uid":"85e0-533","name":"Tooltip.tsx"},{"uid":"85e0-535","name":"UnderlineNav.tsx"}]}]}],"isRoot":true},"nodeParts":{"85e0-279":{"renderedLength":2244,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-278"},"85e0-281":{"renderedLength":5698,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-280"},"85e0-283":{"renderedLength":916,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-282"},"85e0-285":{"renderedLength":271,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-284"},"85e0-287":{"renderedLength":630,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-286"},"85e0-289":{"renderedLength":351,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-288"},"85e0-291":{"renderedLength":695,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-290"},"85e0-293":{"renderedLength":2880,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-292"},"85e0-295":{"renderedLength":388,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-294"},"85e0-297":{"renderedLength":632,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-296"},"85e0-299":{"renderedLength":3241,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-298"},"85e0-301":{"renderedLength":184,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-300"},"85e0-303":{"renderedLength":6227,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-302"},"85e0-305":{"renderedLength":981,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-304"},"85e0-307":{"renderedLength":2977,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-306"},"85e0-309":{"renderedLength":580,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-308"},"85e0-311":{"renderedLength":204,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-310"},"85e0-313":{"renderedLength":1268,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-312"},"85e0-315":{"renderedLength":4230,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-314"},"85e0-317":{"renderedLength":6909,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-316"},"85e0-319":{"renderedLength":56,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-318"},"85e0-321":{"renderedLength":157,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-320"},"85e0-323":{"renderedLength":398,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-322"},"85e0-325":{"renderedLength":219,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-324"},"85e0-327":{"renderedLength":219,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-326"},"85e0-329":{"renderedLength":1901,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-328"},"85e0-331":{"renderedLength":1451,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-330"},"85e0-333":{"renderedLength":2405,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-332"},"85e0-335":{"renderedLength":3948,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-334"},"85e0-337":{"renderedLength":668,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-336"},"85e0-339":{"renderedLength":2230,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-338"},"85e0-341":{"renderedLength":799,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-340"},"85e0-343":{"renderedLength":515,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-342"},"85e0-345":{"renderedLength":1624,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-344"},"85e0-347":{"renderedLength":162,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-346"},"85e0-349":{"renderedLength":232,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-348"},"85e0-351":{"renderedLength":23655,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-350"},"85e0-353":{"renderedLength":447,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-352"},"85e0-355":{"renderedLength":585,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-354"},"85e0-357":{"renderedLength":931,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-356"},"85e0-359":{"renderedLength":1226,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-358"},"85e0-361":{"renderedLength":848,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-360"},"85e0-363":{"renderedLength":1227,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-362"},"85e0-365":{"renderedLength":1150,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-364"},"85e0-367":{"renderedLength":418,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-366"},"85e0-369":{"renderedLength":889,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-368"},"85e0-371":{"renderedLength":10607,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-370"},"85e0-373":{"renderedLength":721,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-372"},"85e0-375":{"renderedLength":13391,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-374"},"85e0-377":{"renderedLength":1580,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-376"},"85e0-379":{"renderedLength":297,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-378"},"85e0-381":{"renderedLength":6237,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-380"},"85e0-383":{"renderedLength":2375,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-382"},"85e0-385":{"renderedLength":366,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-384"},"85e0-387":{"renderedLength":1749,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-386"},"85e0-389":{"renderedLength":3396,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-388"},"85e0-391":{"renderedLength":1177,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-390"},"85e0-393":{"renderedLength":2324,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-392"},"85e0-395":{"renderedLength":9282,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-394"},"85e0-397":{"renderedLength":5242,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-396"},"85e0-399":{"renderedLength":1311,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-398"},"85e0-401":{"renderedLength":470,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-400"},"85e0-403":{"renderedLength":500,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-402"},"85e0-405":{"renderedLength":772,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-404"},"85e0-407":{"renderedLength":11137,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-406"},"85e0-409":{"renderedLength":6789,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-408"},"85e0-411":{"renderedLength":350,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-410"},"85e0-413":{"renderedLength":6970,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-412"},"85e0-415":{"renderedLength":3281,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-414"},"85e0-417":{"renderedLength":682,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-416"},"85e0-419":{"renderedLength":1222,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-418"},"85e0-421":{"renderedLength":2399,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-420"},"85e0-423":{"renderedLength":650,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-422"},"85e0-425":{"renderedLength":988,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-424"},"85e0-427":{"renderedLength":1228,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-426"},"85e0-429":{"renderedLength":3614,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-428"},"85e0-431":{"renderedLength":359,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-430"},"85e0-433":{"renderedLength":2001,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-432"},"85e0-435":{"renderedLength":3161,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-434"},"85e0-437":{"renderedLength":915,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-436"},"85e0-439":{"renderedLength":143,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-438"},"85e0-441":{"renderedLength":824,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-440"},"85e0-443":{"renderedLength":912,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-442"},"85e0-445":{"renderedLength":247,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-444"},"85e0-447":{"renderedLength":2609,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-446"},"85e0-449":{"renderedLength":112,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-448"},"85e0-451":{"renderedLength":3497,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-450"},"85e0-453":{"renderedLength":2437,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-452"},"85e0-455":{"renderedLength":3565,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-454"},"85e0-457":{"renderedLength":367,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-456"},"85e0-459":{"renderedLength":2802,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-458"},"85e0-461":{"renderedLength":546,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-460"},"85e0-463":{"renderedLength":2032,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-462"},"85e0-465":{"renderedLength":1439,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-464"},"85e0-467":{"renderedLength":516,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-466"},"85e0-469":{"renderedLength":1571,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-468"},"85e0-471":{"renderedLength":253,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-470"},"85e0-473":{"renderedLength":205,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-472"},"85e0-475":{"renderedLength":1362,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-474"},"85e0-477":{"renderedLength":819,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-476"},"85e0-479":{"renderedLength":295,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-478"},"85e0-481":{"renderedLength":4448,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-480"},"85e0-483":{"renderedLength":5248,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-482"},"85e0-485":{"renderedLength":643,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-484"},"85e0-487":{"renderedLength":4417,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-486"},"85e0-489":{"renderedLength":1009,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-488"},"85e0-491":{"renderedLength":2582,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-490"},"85e0-493":{"renderedLength":59,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-492"},"85e0-495":{"renderedLength":569,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-494"},"85e0-497":{"renderedLength":3524,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-496"},"85e0-499":{"renderedLength":1406,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-498"},"85e0-501":{"renderedLength":593,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-500"},"85e0-503":{"renderedLength":1296,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-502"},"85e0-505":{"renderedLength":2842,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-504"},"85e0-507":{"renderedLength":768,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-506"},"85e0-509":{"renderedLength":1188,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-508"},"85e0-511":{"renderedLength":532,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-510"},"85e0-513":{"renderedLength":2298,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-512"},"85e0-515":{"renderedLength":2458,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-514"},"85e0-517":{"renderedLength":736,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-516"},"85e0-519":{"renderedLength":766,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-518"},"85e0-521":{"renderedLength":2516,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-520"},"85e0-523":{"renderedLength":3916,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-522"},"85e0-525":{"renderedLength":2510,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-524"},"85e0-527":{"renderedLength":3017,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-526"},"85e0-529":{"renderedLength":1623,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-528"},"85e0-531":{"renderedLength":3105,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-530"},"85e0-533":{"renderedLength":4882,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-532"},"85e0-535":{"renderedLength":2608,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-534"},"85e0-537":{"renderedLength":849,"gzipLength":0,"brotliLength":0,"mainUid":"85e0-536"}},"nodeMetas":{"85e0-278":{"id":"/node_modules/object-assign/index.js","moduleParts":{"browser.umd.js":"85e0-279"},"imported":[{"uid":"85e0-553"}],"importedBy":[{"uid":"85e0-280"}]},"85e0-280":{"id":"/node_modules/@styled-system/core/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-281"},"imported":[{"uid":"85e0-278"}],"importedBy":[{"uid":"85e0-310"},{"uid":"85e0-306"},{"uid":"85e0-282"},{"uid":"85e0-284"},{"uid":"85e0-286"},{"uid":"85e0-288"},{"uid":"85e0-290"},{"uid":"85e0-292"},{"uid":"85e0-294"},{"uid":"85e0-296"},{"uid":"85e0-298"},{"uid":"85e0-300"},{"uid":"85e0-304"}]},"85e0-282":{"id":"/node_modules/@styled-system/layout/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-283"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-284":{"id":"/node_modules/@styled-system/color/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-285"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-286":{"id":"/node_modules/@styled-system/typography/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-287"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-288":{"id":"/node_modules/@styled-system/flexbox/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-289"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-290":{"id":"/node_modules/@styled-system/grid/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-291"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-292":{"id":"/node_modules/@styled-system/border/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-293"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-294":{"id":"/node_modules/@styled-system/background/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-295"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-296":{"id":"/node_modules/@styled-system/position/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-297"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-298":{"id":"/node_modules/@styled-system/space/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-299"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-300":{"id":"/node_modules/@styled-system/shadow/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-301"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-302":{"id":"/node_modules/@styled-system/css/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-303"},"imported":[],"importedBy":[{"uid":"85e0-318"},{"uid":"85e0-304"}]},"85e0-304":{"id":"/node_modules/@styled-system/variant/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-305"},"imported":[{"uid":"85e0-280"},{"uid":"85e0-302"}],"importedBy":[{"uid":"85e0-306"}]},"85e0-306":{"id":"/node_modules/styled-system/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-307"},"imported":[{"uid":"85e0-280"},{"uid":"85e0-282"},{"uid":"85e0-284"},{"uid":"85e0-286"},{"uid":"85e0-288"},{"uid":"85e0-290"},{"uid":"85e0-292"},{"uid":"85e0-294"},{"uid":"85e0-296"},{"uid":"85e0-298"},{"uid":"85e0-300"},{"uid":"85e0-304"}],"importedBy":[{"uid":"85e0-308"},{"uid":"85e0-320"},{"uid":"85e0-434"},{"uid":"85e0-464"},{"uid":"85e0-474"},{"uid":"85e0-476"},{"uid":"85e0-488"},{"uid":"85e0-524"},{"uid":"85e0-496"},{"uid":"85e0-402"},{"uid":"85e0-354"},{"uid":"85e0-512"}]},"85e0-308":{"id":"/src/constants.ts","moduleParts":{"browser.umd.js":"85e0-309"},"imported":[{"uid":"85e0-310"},{"uid":"85e0-306"},{"uid":"85e0-539"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-312"},{"uid":"85e0-396"},{"uid":"85e0-422"},{"uid":"85e0-424"},{"uid":"85e0-428"},{"uid":"85e0-430"},{"uid":"85e0-432"},{"uid":"85e0-436"},{"uid":"85e0-442"},{"uid":"85e0-444"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-460"},{"uid":"85e0-462"},{"uid":"85e0-464"},{"uid":"85e0-466"},{"uid":"85e0-468"},{"uid":"85e0-470"},{"uid":"85e0-472"},{"uid":"85e0-474"},{"uid":"85e0-476"},{"uid":"85e0-412"},{"uid":"85e0-478"},{"uid":"85e0-486"},{"uid":"85e0-488"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-384"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-448"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-402"},{"uid":"85e0-534"},{"uid":"85e0-394"},{"uid":"85e0-408"},{"uid":"85e0-406"},{"uid":"85e0-404"},{"uid":"85e0-356"},{"uid":"85e0-358"},{"uid":"85e0-360"},{"uid":"85e0-362"},{"uid":"85e0-364"},{"uid":"85e0-366"},{"uid":"85e0-368"},{"uid":"85e0-372"},{"uid":"85e0-452"},{"uid":"85e0-480"},{"uid":"85e0-520"},{"uid":"85e0-398"},{"uid":"85e0-354"},{"uid":"85e0-494"},{"uid":"85e0-498"},{"uid":"85e0-500"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-506"},{"uid":"85e0-510"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"},{"uid":"85e0-352"}]},"85e0-310":{"id":"/node_modules/@styled-system/theme-get/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-311"},"imported":[{"uid":"85e0-280"}],"importedBy":[{"uid":"85e0-308"}]},"85e0-312":{"id":"/src/BaseStyles.tsx","moduleParts":{"browser.umd.js":"85e0-313"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-314":{"id":"/node_modules/deepmerge/dist/cjs.js","moduleParts":{"browser.umd.js":"85e0-315"},"imported":[{"uid":"85e0-553"}],"importedBy":[{"uid":"85e0-316"}]},"85e0-316":{"id":"/src/ThemeProvider.tsx","moduleParts":{"browser.umd.js":"85e0-317"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-539"},{"uid":"85e0-314"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-396"},{"uid":"85e0-412"},{"uid":"85e0-406"}]},"85e0-318":{"id":"/src/sx.ts","moduleParts":{"browser.umd.js":"85e0-319"},"imported":[{"uid":"85e0-302"}],"importedBy":[{"uid":"85e0-320"},{"uid":"85e0-422"},{"uid":"85e0-428"},{"uid":"85e0-430"},{"uid":"85e0-432"},{"uid":"85e0-436"},{"uid":"85e0-442"},{"uid":"85e0-444"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-460"},{"uid":"85e0-462"},{"uid":"85e0-464"},{"uid":"85e0-466"},{"uid":"85e0-468"},{"uid":"85e0-470"},{"uid":"85e0-472"},{"uid":"85e0-474"},{"uid":"85e0-476"},{"uid":"85e0-412"},{"uid":"85e0-478"},{"uid":"85e0-486"},{"uid":"85e0-488"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-384"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-448"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-402"},{"uid":"85e0-534"},{"uid":"85e0-394"},{"uid":"85e0-400"},{"uid":"85e0-406"},{"uid":"85e0-356"},{"uid":"85e0-358"},{"uid":"85e0-360"},{"uid":"85e0-362"},{"uid":"85e0-364"},{"uid":"85e0-366"},{"uid":"85e0-368"},{"uid":"85e0-372"},{"uid":"85e0-480"},{"uid":"85e0-520"},{"uid":"85e0-398"},{"uid":"85e0-494"},{"uid":"85e0-498"},{"uid":"85e0-500"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-506"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"}]},"85e0-320":{"id":"/src/Box.tsx","moduleParts":{"browser.umd.js":"85e0-321"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-322"},{"uid":"85e0-324"},{"uid":"85e0-326"},{"uid":"85e0-328"},{"uid":"85e0-396"},{"uid":"85e0-432"},{"uid":"85e0-440"},{"uid":"85e0-450"},{"uid":"85e0-486"},{"uid":"85e0-522"},{"uid":"85e0-526"},{"uid":"85e0-530"},{"uid":"85e0-394"},{"uid":"85e0-360"},{"uid":"85e0-480"}]},"85e0-322":{"id":"/src/BorderBox.tsx","moduleParts":{"browser.umd.js":"85e0-323"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-320"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-484"}]},"85e0-324":{"id":"/src/Flex.tsx","moduleParts":{"browser.umd.js":"85e0-325"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-320"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-326":{"id":"/src/Grid.tsx","moduleParts":{"browser.umd.js":"85e0-327"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-320"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-328":{"id":"/src/Position.tsx","moduleParts":{"browser.umd.js":"85e0-329"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-320"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-330":{"id":"/src/hooks/useDetails.tsx","moduleParts":{"browser.umd.js":"85e0-331"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-454"}]},"85e0-332":{"id":"/src/hooks/useOnOutsideClick.tsx","moduleParts":{"browser.umd.js":"85e0-333"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-342"},{"uid":"85e0-551"}]},"85e0-334":{"id":"/src/utils/iterateFocusableElements.ts","moduleParts":{"browser.umd.js":"85e0-335"},"imported":[],"importedBy":[{"uid":"85e0-336"},{"uid":"85e0-350"},{"uid":"85e0-380"}]},"85e0-336":{"id":"/src/hooks/useOpenAndCloseFocus.ts","moduleParts":{"browser.umd.js":"85e0-337"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-334"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-342"},{"uid":"85e0-551"}]},"85e0-338":{"id":"/src/hooks/useOnEscapePress.ts","moduleParts":{"browser.umd.js":"85e0-339"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-342"},{"uid":"85e0-551"}]},"85e0-340":{"id":"/src/hooks/useProvidedRefOrCreate.ts","moduleParts":{"browser.umd.js":"85e0-341"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-342"},{"uid":"85e0-386"},{"uid":"85e0-551"},{"uid":"85e0-458"},{"uid":"85e0-382"},{"uid":"85e0-376"}]},"85e0-342":{"id":"/src/hooks/useOverlay.tsx","moduleParts":{"browser.umd.js":"85e0-343"},"imported":[{"uid":"85e0-332"},{"uid":"85e0-336"},{"uid":"85e0-338"},{"uid":"85e0-340"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-551"}]},"85e0-344":{"id":"/src/polyfills/eventListenerSignal.ts","moduleParts":{"browser.umd.js":"85e0-345"},"imported":[],"importedBy":[{"uid":"85e0-350"},{"uid":"85e0-380"}]},"85e0-346":{"id":"/src/utils/userAgent.ts","moduleParts":{"browser.umd.js":"85e0-347"},"imported":[],"importedBy":[{"uid":"85e0-350"}]},"85e0-348":{"id":"/src/utils/uniqueId.ts","moduleParts":{"browser.umd.js":"85e0-349"},"imported":[],"importedBy":[{"uid":"85e0-350"}]},"85e0-350":{"id":"/src/behaviors/focusZone.ts","moduleParts":{"browser.umd.js":"85e0-351"},"imported":[{"uid":"85e0-334"},{"uid":"85e0-344"},{"uid":"85e0-346"},{"uid":"85e0-348"}],"importedBy":[{"uid":"85e0-396"},{"uid":"85e0-394"},{"uid":"85e0-386"},{"uid":"85e0-408"},{"uid":"85e0-406"}]},"85e0-352":{"id":"/src/Button/ButtonStyles.tsx","moduleParts":{"browser.umd.js":"85e0-353"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"}],"importedBy":[{"uid":"85e0-354"}]},"85e0-354":{"id":"/src/Button/ButtonBase.tsx","moduleParts":{"browser.umd.js":"85e0-355"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-352"}],"importedBy":[{"uid":"85e0-356"},{"uid":"85e0-358"},{"uid":"85e0-362"},{"uid":"85e0-364"},{"uid":"85e0-366"}]},"85e0-356":{"id":"/src/Button/Button.tsx","moduleParts":{"browser.umd.js":"85e0-357"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-354"}],"importedBy":[{"uid":"85e0-540"},{"uid":"85e0-456"}]},"85e0-358":{"id":"/src/Button/ButtonDanger.tsx","moduleParts":{"browser.umd.js":"85e0-359"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-354"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-360":{"id":"/src/Button/ButtonGroup.tsx","moduleParts":{"browser.umd.js":"85e0-361"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-362":{"id":"/src/Button/ButtonOutline.tsx","moduleParts":{"browser.umd.js":"85e0-363"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-354"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-364":{"id":"/src/Button/ButtonPrimary.tsx","moduleParts":{"browser.umd.js":"85e0-365"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-354"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-366":{"id":"/src/Button/ButtonInvisible.tsx","moduleParts":{"browser.umd.js":"85e0-367"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-354"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-368":{"id":"/src/Button/ButtonTableList.tsx","moduleParts":{"browser.umd.js":"85e0-369"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-540"}]},"85e0-370":{"id":"/node_modules/@primer/octicons-react/dist/index.esm.js","moduleParts":{"browser.umd.js":"85e0-371"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-524"},{"uid":"85e0-394"},{"uid":"85e0-406"},{"uid":"85e0-372"},{"uid":"85e0-456"},{"uid":"85e0-504"}]},"85e0-372":{"id":"/src/Button/ButtonClose.tsx","moduleParts":{"browser.umd.js":"85e0-373"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-370"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-540"},{"uid":"85e0-450"}]},"85e0-374":{"id":"/src/behaviors/anchoredPosition.ts","moduleParts":{"browser.umd.js":"85e0-375"},"imported":[],"importedBy":[{"uid":"85e0-376"}]},"85e0-376":{"id":"/src/hooks/useAnchoredPosition.ts","moduleParts":{"browser.umd.js":"85e0-377"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-374"},{"uid":"85e0-340"},{"uid":"85e0-378"}],"importedBy":[{"uid":"85e0-551"}]},"85e0-378":{"id":"/src/hooks/useResizeObserver.ts","moduleParts":{"browser.umd.js":"85e0-379"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-376"}]},"85e0-380":{"id":"/src/behaviors/focusTrap.ts","moduleParts":{"browser.umd.js":"85e0-381"},"imported":[{"uid":"85e0-334"},{"uid":"85e0-344"}],"importedBy":[{"uid":"85e0-382"}]},"85e0-382":{"id":"/src/hooks/useFocusTrap.ts","moduleParts":{"browser.umd.js":"85e0-383"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-380"},{"uid":"85e0-340"}],"importedBy":[{"uid":"85e0-394"},{"uid":"85e0-414"}]},"85e0-384":{"id":"/src/StyledOcticon.tsx","moduleParts":{"browser.umd.js":"85e0-385"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-436"},{"uid":"85e0-524"},{"uid":"85e0-394"},{"uid":"85e0-456"},{"uid":"85e0-504"}]},"85e0-386":{"id":"/src/hooks/useFocusZone.ts","moduleParts":{"browser.umd.js":"85e0-387"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-350"},{"uid":"85e0-340"}],"importedBy":[{"uid":"85e0-396"},{"uid":"85e0-394"},{"uid":"85e0-414"}]},"85e0-388":{"id":"/src/Portal/Portal.tsx","moduleParts":{"browser.umd.js":"85e0-389"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-549"}],"importedBy":[{"uid":"85e0-552"}]},"85e0-390":{"id":"/src/hooks/useCombinedRefs.ts","moduleParts":{"browser.umd.js":"85e0-391"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-450"},{"uid":"85e0-412"},{"uid":"85e0-394"}]},"85e0-392":{"id":"/node_modules/@react-aria/ssr/dist/module.js","moduleParts":{"browser.umd.js":"85e0-393"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-544"},{"uid":"85e0-394"},{"uid":"85e0-406"},{"uid":"85e0-414"}]},"85e0-394":{"id":"/src/Dialog/Dialog.tsx","moduleParts":{"browser.umd.js":"85e0-395"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-540"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-551"},{"uid":"85e0-382"},{"uid":"85e0-318"},{"uid":"85e0-384"},{"uid":"85e0-370"},{"uid":"85e0-386"},{"uid":"85e0-350"},{"uid":"85e0-552"},{"uid":"85e0-390"},{"uid":"85e0-392"}],"importedBy":[{"uid":"85e0-396"}]},"85e0-396":{"id":"/src/Dialog/ConfirmationDialog.tsx","moduleParts":{"browser.umd.js":"85e0-397"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-549"},{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-316"},{"uid":"85e0-350"},{"uid":"85e0-308"},{"uid":"85e0-394"},{"uid":"85e0-386"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-398":{"id":"/src/ActionList/Header.tsx","moduleParts":{"browser.umd.js":"85e0-399"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-400"},{"uid":"85e0-406"}]},"85e0-400":{"id":"/src/ActionList/Group.tsx","moduleParts":{"browser.umd.js":"85e0-401"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-318"},{"uid":"85e0-398"}],"importedBy":[{"uid":"85e0-410"},{"uid":"85e0-408"}]},"85e0-402":{"id":"/src/Truncate.tsx","moduleParts":{"browser.umd.js":"85e0-403"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-406"}]},"85e0-404":{"id":"/src/ActionList/Divider.tsx","moduleParts":{"browser.umd.js":"85e0-405"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"}],"importedBy":[{"uid":"85e0-410"},{"uid":"85e0-420"},{"uid":"85e0-408"},{"uid":"85e0-406"}]},"85e0-406":{"id":"/src/ActionList/Item.tsx","moduleParts":{"browser.umd.js":"85e0-407"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-370"},{"uid":"85e0-547"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-402"},{"uid":"85e0-548"},{"uid":"85e0-398"},{"uid":"85e0-404"},{"uid":"85e0-316"},{"uid":"85e0-350"},{"uid":"85e0-392"}],"importedBy":[{"uid":"85e0-410"},{"uid":"85e0-420"},{"uid":"85e0-408"}]},"85e0-408":{"id":"/src/ActionList/List.tsx","moduleParts":{"browser.umd.js":"85e0-409"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-400"},{"uid":"85e0-406"},{"uid":"85e0-404"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-350"}],"importedBy":[{"uid":"85e0-410"},{"uid":"85e0-420"},{"uid":"85e0-458"}]},"85e0-410":{"id":"/src/ActionList/index.ts","moduleParts":{"browser.umd.js":"85e0-411"},"imported":[{"uid":"85e0-408"},{"uid":"85e0-400"},{"uid":"85e0-406"},{"uid":"85e0-404"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-412":{"id":"/src/Overlay.tsx","moduleParts":{"browser.umd.js":"85e0-413"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-548"},{"uid":"85e0-547"},{"uid":"85e0-308"},{"uid":"85e0-551"},{"uid":"85e0-552"},{"uid":"85e0-318"},{"uid":"85e0-390"},{"uid":"85e0-316"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-414"}]},"85e0-414":{"id":"/src/AnchoredOverlay/AnchoredOverlay.tsx","moduleParts":{"browser.umd.js":"85e0-415"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-412"},{"uid":"85e0-382"},{"uid":"85e0-386"},{"uid":"85e0-551"},{"uid":"85e0-392"}],"importedBy":[{"uid":"85e0-550"}]},"85e0-416":{"id":"/src/hooks/useRenderForcingRef.ts","moduleParts":{"browser.umd.js":"85e0-417"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-551"}]},"85e0-418":{"id":"/src/hooks/useProvidedStateOrCreate.ts","moduleParts":{"browser.umd.js":"85e0-419"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-420"},{"uid":"85e0-458"}]},"85e0-420":{"id":"/src/ActionMenu.tsx","moduleParts":{"browser.umd.js":"85e0-421"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-408"},{"uid":"85e0-406"},{"uid":"85e0-404"},{"uid":"85e0-540"},{"uid":"85e0-547"},{"uid":"85e0-550"},{"uid":"85e0-418"},{"uid":"85e0-551"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-422":{"id":"/src/Avatar.tsx","moduleParts":{"browser.umd.js":"85e0-423"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-424"}]},"85e0-424":{"id":"/src/AvatarPair.tsx","moduleParts":{"browser.umd.js":"85e0-425"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-422"},{"uid":"85e0-308"},{"uid":"85e0-538"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-426":{"id":"/node_modules/classnames/index.js","moduleParts":{"browser.umd.js":"85e0-427"},"imported":[{"uid":"85e0-553"},{"uid":"85e0-554"}],"importedBy":[{"uid":"85e0-428"},{"uid":"85e0-432"},{"uid":"85e0-486"},{"uid":"85e0-522"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-534"},{"uid":"85e0-514"}]},"85e0-428":{"id":"/src/AvatarStack.tsx","moduleParts":{"browser.umd.js":"85e0-429"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-538"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-430":{"id":"/src/BranchName.tsx","moduleParts":{"browser.umd.js":"85e0-431"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-432":{"id":"/src/Breadcrumb.tsx","moduleParts":{"browser.umd.js":"85e0-433"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-434":{"id":"/src/Caret.tsx","moduleParts":{"browser.umd.js":"85e0-435"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-306"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-484"}]},"85e0-436":{"id":"/src/CircleBadge.tsx","moduleParts":{"browser.umd.js":"85e0-437"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-384"},{"uid":"85e0-318"},{"uid":"85e0-438"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-438":{"id":"/src/utils/isNumeric.tsx","moduleParts":{"browser.umd.js":"85e0-439"},"imported":[],"importedBy":[{"uid":"85e0-436"}]},"85e0-440":{"id":"/src/CircleOcticon.tsx","moduleParts":{"browser.umd.js":"85e0-441"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-320"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-442":{"id":"/src/CounterLabel.tsx","moduleParts":{"browser.umd.js":"85e0-443"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-444":{"id":"/src/Details.tsx","moduleParts":{"browser.umd.js":"85e0-445"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-454"}]},"85e0-446":{"id":"/src/hooks/useDialog.ts","moduleParts":{"browser.umd.js":"85e0-447"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-450"}]},"85e0-448":{"id":"/src/Text.tsx","moduleParts":{"browser.umd.js":"85e0-449"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-450"}]},"85e0-450":{"id":"/src/Dialog.tsx","moduleParts":{"browser.umd.js":"85e0-451"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-372"},{"uid":"85e0-308"},{"uid":"85e0-320"},{"uid":"85e0-446"},{"uid":"85e0-318"},{"uid":"85e0-448"},{"uid":"85e0-390"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-452":{"id":"/src/DropdownStyles.ts","moduleParts":{"browser.umd.js":"85e0-453"},"imported":[{"uid":"85e0-308"}],"importedBy":[{"uid":"85e0-454"}]},"85e0-454":{"id":"/src/Dropdown.tsx","moduleParts":{"browser.umd.js":"85e0-455"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-540"},{"uid":"85e0-308"},{"uid":"85e0-444"},{"uid":"85e0-452"},{"uid":"85e0-330"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-456":{"id":"/src/DropdownMenu/DropdownButton.tsx","moduleParts":{"browser.umd.js":"85e0-457"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-370"},{"uid":"85e0-356"},{"uid":"85e0-384"}],"importedBy":[{"uid":"85e0-541"},{"uid":"85e0-458"}]},"85e0-458":{"id":"/src/DropdownMenu/DropdownMenu.tsx","moduleParts":{"browser.umd.js":"85e0-459"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-408"},{"uid":"85e0-456"},{"uid":"85e0-550"},{"uid":"85e0-340"},{"uid":"85e0-418"}],"importedBy":[{"uid":"85e0-541"}]},"85e0-460":{"id":"/src/FilteredSearch.tsx","moduleParts":{"browser.umd.js":"85e0-461"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-462":{"id":"/src/FilterList.tsx","moduleParts":{"browser.umd.js":"85e0-463"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-464":{"id":"/src/Flash.tsx","moduleParts":{"browser.umd.js":"85e0-465"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-466":{"id":"/src/FormGroup.tsx","moduleParts":{"browser.umd.js":"85e0-467"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-468":{"id":"/src/Header.tsx","moduleParts":{"browser.umd.js":"85e0-469"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-470":{"id":"/src/Heading.tsx","moduleParts":{"browser.umd.js":"85e0-471"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-539"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-472":{"id":"/src/LabelGroup.tsx","moduleParts":{"browser.umd.js":"85e0-473"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-474":{"id":"/src/Label.tsx","moduleParts":{"browser.umd.js":"85e0-475"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-476":{"id":"/src/Link.tsx","moduleParts":{"browser.umd.js":"85e0-477"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-522"}]},"85e0-478":{"id":"/src/Pagehead.tsx","moduleParts":{"browser.umd.js":"85e0-479"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-480":{"id":"/src/Pagination/Pagination.tsx","moduleParts":{"browser.umd.js":"85e0-481"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-482"}],"importedBy":[{"uid":"85e0-542"}]},"85e0-482":{"id":"/src/Pagination/model.tsx","moduleParts":{"browser.umd.js":"85e0-483"},"imported":[],"importedBy":[{"uid":"85e0-480"}]},"85e0-484":{"id":"/src/PointerBox.tsx","moduleParts":{"browser.umd.js":"85e0-485"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-322"},{"uid":"85e0-434"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-486":{"id":"/src/Popover.tsx","moduleParts":{"browser.umd.js":"85e0-487"},"imported":[{"uid":"85e0-426"},{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-488":{"id":"/src/ProgressBar.tsx","moduleParts":{"browser.umd.js":"85e0-489"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-490":{"id":"/src/SelectMenu/hooks/useKeyboardNav.js","moduleParts":{"browser.umd.js":"85e0-491"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-492":{"id":"/src/SelectMenu/SelectMenuContext.tsx","moduleParts":{"browser.umd.js":"85e0-493"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-520"},{"uid":"85e0-498"},{"uid":"85e0-504"},{"uid":"85e0-514"},{"uid":"85e0-516"}]},"85e0-494":{"id":"/src/SelectMenu/SelectMenuDivider.tsx","moduleParts":{"browser.umd.js":"85e0-495"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-496":{"id":"/src/TextInput.tsx","moduleParts":{"browser.umd.js":"85e0-497"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-498"}]},"85e0-498":{"id":"/src/SelectMenu/SelectMenuFilter.tsx","moduleParts":{"browser.umd.js":"85e0-499"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-496"},{"uid":"85e0-492"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-500":{"id":"/src/SelectMenu/SelectMenuFooter.tsx","moduleParts":{"browser.umd.js":"85e0-501"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-502":{"id":"/src/SelectMenu/SelectMenuHeader.tsx","moduleParts":{"browser.umd.js":"85e0-503"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-504":{"id":"/src/SelectMenu/SelectMenuItem.tsx","moduleParts":{"browser.umd.js":"85e0-505"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-370"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-384"},{"uid":"85e0-318"},{"uid":"85e0-492"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-506":{"id":"/src/SelectMenu/SelectMenuList.tsx","moduleParts":{"browser.umd.js":"85e0-507"},"imported":[{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"},{"uid":"85e0-516"}]},"85e0-508":{"id":"/src/Spinner.tsx","moduleParts":{"browser.umd.js":"85e0-509"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-510"}]},"85e0-510":{"id":"/src/SelectMenu/SelectMenuLoadingAnimation.tsx","moduleParts":{"browser.umd.js":"85e0-511"},"imported":[{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-508"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-512":{"id":"/src/SelectMenu/SelectMenuModal.tsx","moduleParts":{"browser.umd.js":"85e0-513"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-514":{"id":"/src/SelectMenu/SelectMenuTab.tsx","moduleParts":{"browser.umd.js":"85e0-515"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-492"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-516":{"id":"/src/SelectMenu/SelectMenuTabPanel.tsx","moduleParts":{"browser.umd.js":"85e0-517"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-492"},{"uid":"85e0-506"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-518":{"id":"/src/SelectMenu/SelectMenuTabs.tsx","moduleParts":{"browser.umd.js":"85e0-519"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-520"}]},"85e0-520":{"id":"/src/SelectMenu/SelectMenu.tsx","moduleParts":{"browser.umd.js":"85e0-521"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"},{"uid":"85e0-490"},{"uid":"85e0-492"},{"uid":"85e0-494"},{"uid":"85e0-498"},{"uid":"85e0-500"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-506"},{"uid":"85e0-510"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"}],"importedBy":[{"uid":"85e0-543"}]},"85e0-522":{"id":"/src/SideNav.tsx","moduleParts":{"browser.umd.js":"85e0-523"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-308"},{"uid":"85e0-548"},{"uid":"85e0-320"},{"uid":"85e0-476"},{"uid":"85e0-547"},{"uid":"85e0-426"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-524":{"id":"/src/StateLabel.tsx","moduleParts":{"browser.umd.js":"85e0-525"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-370"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-306"},{"uid":"85e0-308"},{"uid":"85e0-384"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-526":{"id":"/src/SubNav.tsx","moduleParts":{"browser.umd.js":"85e0-527"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-320"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-528":{"id":"/src/TabNav.tsx","moduleParts":{"browser.umd.js":"85e0-529"},"imported":[{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-530":{"id":"/src/Timeline.tsx","moduleParts":{"browser.umd.js":"85e0-531"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-548"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-320"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-532":{"id":"/src/Tooltip.tsx","moduleParts":{"browser.umd.js":"85e0-533"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-534":{"id":"/src/UnderlineNav.tsx","moduleParts":{"browser.umd.js":"85e0-535"},"imported":[{"uid":"85e0-546"},{"uid":"85e0-426"},{"uid":"85e0-547"},{"uid":"85e0-548"},{"uid":"85e0-308"},{"uid":"85e0-318"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-536":{"id":"/src/hooks/useSafeTimeout.ts","moduleParts":{"browser.umd.js":"85e0-537"},"imported":[{"uid":"85e0-547"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-538":{"id":"/src/index.ts","moduleParts":{},"imported":[{"uid":"85e0-539"},{"uid":"85e0-308"},{"uid":"85e0-312"},{"uid":"85e0-316"},{"uid":"85e0-322"},{"uid":"85e0-320"},{"uid":"85e0-324"},{"uid":"85e0-326"},{"uid":"85e0-328"},{"uid":"85e0-330"},{"uid":"85e0-536"},{"uid":"85e0-332"},{"uid":"85e0-336"},{"uid":"85e0-338"},{"uid":"85e0-342"},{"uid":"85e0-396"},{"uid":"85e0-410"},{"uid":"85e0-420"},{"uid":"85e0-422"},{"uid":"85e0-424"},{"uid":"85e0-428"},{"uid":"85e0-430"},{"uid":"85e0-432"},{"uid":"85e0-540"},{"uid":"85e0-434"},{"uid":"85e0-436"},{"uid":"85e0-440"},{"uid":"85e0-442"},{"uid":"85e0-444"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-541"},{"uid":"85e0-460"},{"uid":"85e0-462"},{"uid":"85e0-464"},{"uid":"85e0-466"},{"uid":"85e0-468"},{"uid":"85e0-470"},{"uid":"85e0-472"},{"uid":"85e0-474"},{"uid":"85e0-476"},{"uid":"85e0-412"},{"uid":"85e0-478"},{"uid":"85e0-542"},{"uid":"85e0-484"},{"uid":"85e0-486"},{"uid":"85e0-488"},{"uid":"85e0-543"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-384"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-448"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-402"},{"uid":"85e0-534"},{"uid":"85e0-544"}],"importedBy":[{"uid":"85e0-424"},{"uid":"85e0-428"}],"isEntry":true},"85e0-539":{"id":"/src/theme.ts","moduleParts":{},"imported":[{"uid":"85e0-545"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-308"},{"uid":"85e0-316"},{"uid":"85e0-470"}]},"85e0-540":{"id":"/src/Button/index.ts","moduleParts":{},"imported":[{"uid":"85e0-356"},{"uid":"85e0-358"},{"uid":"85e0-360"},{"uid":"85e0-362"},{"uid":"85e0-364"},{"uid":"85e0-366"},{"uid":"85e0-368"},{"uid":"85e0-372"}],"importedBy":[{"uid":"85e0-538"},{"uid":"85e0-420"},{"uid":"85e0-454"},{"uid":"85e0-394"}]},"85e0-541":{"id":"/src/DropdownMenu/index.ts","moduleParts":{},"imported":[{"uid":"85e0-458"},{"uid":"85e0-456"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-542":{"id":"/src/Pagination/index.ts","moduleParts":{},"imported":[{"uid":"85e0-480"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-543":{"id":"/src/SelectMenu/index.ts","moduleParts":{},"imported":[{"uid":"85e0-520"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-544":{"id":"/src/utils/ssr.tsx","moduleParts":{},"imported":[{"uid":"85e0-392"}],"importedBy":[{"uid":"85e0-538"}]},"85e0-545":{"id":"/src/theme-preval.js","moduleParts":{},"imported":[{"uid":"85e0-553"}],"importedBy":[{"uid":"85e0-539"}]},"85e0-546":{"id":"\u0000rollupPluginBabelHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-312"},{"uid":"85e0-328"},{"uid":"85e0-396"},{"uid":"85e0-420"},{"uid":"85e0-424"},{"uid":"85e0-428"},{"uid":"85e0-432"},{"uid":"85e0-440"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-412"},{"uid":"85e0-484"},{"uid":"85e0-488"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-526"},{"uid":"85e0-496"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-534"},{"uid":"85e0-394"},{"uid":"85e0-408"},{"uid":"85e0-406"},{"uid":"85e0-372"},{"uid":"85e0-458"},{"uid":"85e0-456"},{"uid":"85e0-480"},{"uid":"85e0-520"},{"uid":"85e0-398"},{"uid":"85e0-414"},{"uid":"85e0-498"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"}]},"85e0-547":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-312"},{"uid":"85e0-316"},{"uid":"85e0-328"},{"uid":"85e0-330"},{"uid":"85e0-536"},{"uid":"85e0-332"},{"uid":"85e0-336"},{"uid":"85e0-338"},{"uid":"85e0-396"},{"uid":"85e0-420"},{"uid":"85e0-424"},{"uid":"85e0-428"},{"uid":"85e0-432"},{"uid":"85e0-434"},{"uid":"85e0-440"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-462"},{"uid":"85e0-412"},{"uid":"85e0-484"},{"uid":"85e0-488"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-384"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-534"},{"uid":"85e0-340"},{"uid":"85e0-394"},{"uid":"85e0-386"},{"uid":"85e0-408"},{"uid":"85e0-400"},{"uid":"85e0-406"},{"uid":"85e0-404"},{"uid":"85e0-418"},{"uid":"85e0-372"},{"uid":"85e0-446"},{"uid":"85e0-390"},{"uid":"85e0-458"},{"uid":"85e0-456"},{"uid":"85e0-480"},{"uid":"85e0-520"},{"uid":"85e0-370"},{"uid":"85e0-392"},{"uid":"85e0-382"},{"uid":"85e0-398"},{"uid":"85e0-414"},{"uid":"85e0-376"},{"uid":"85e0-416"},{"uid":"85e0-388"},{"uid":"85e0-490"},{"uid":"85e0-492"},{"uid":"85e0-498"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-510"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"},{"uid":"85e0-378"}],"isExternal":true},"85e0-548":{"id":"styled-components","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-312"},{"uid":"85e0-316"},{"uid":"85e0-322"},{"uid":"85e0-320"},{"uid":"85e0-324"},{"uid":"85e0-326"},{"uid":"85e0-328"},{"uid":"85e0-396"},{"uid":"85e0-422"},{"uid":"85e0-424"},{"uid":"85e0-428"},{"uid":"85e0-430"},{"uid":"85e0-432"},{"uid":"85e0-434"},{"uid":"85e0-436"},{"uid":"85e0-442"},{"uid":"85e0-444"},{"uid":"85e0-450"},{"uid":"85e0-454"},{"uid":"85e0-460"},{"uid":"85e0-462"},{"uid":"85e0-464"},{"uid":"85e0-466"},{"uid":"85e0-468"},{"uid":"85e0-470"},{"uid":"85e0-472"},{"uid":"85e0-474"},{"uid":"85e0-476"},{"uid":"85e0-412"},{"uid":"85e0-478"},{"uid":"85e0-486"},{"uid":"85e0-488"},{"uid":"85e0-522"},{"uid":"85e0-508"},{"uid":"85e0-524"},{"uid":"85e0-384"},{"uid":"85e0-526"},{"uid":"85e0-528"},{"uid":"85e0-496"},{"uid":"85e0-448"},{"uid":"85e0-530"},{"uid":"85e0-532"},{"uid":"85e0-402"},{"uid":"85e0-534"},{"uid":"85e0-394"},{"uid":"85e0-408"},{"uid":"85e0-400"},{"uid":"85e0-406"},{"uid":"85e0-404"},{"uid":"85e0-356"},{"uid":"85e0-358"},{"uid":"85e0-360"},{"uid":"85e0-362"},{"uid":"85e0-364"},{"uid":"85e0-366"},{"uid":"85e0-368"},{"uid":"85e0-372"},{"uid":"85e0-480"},{"uid":"85e0-520"},{"uid":"85e0-398"},{"uid":"85e0-354"},{"uid":"85e0-494"},{"uid":"85e0-498"},{"uid":"85e0-500"},{"uid":"85e0-502"},{"uid":"85e0-504"},{"uid":"85e0-506"},{"uid":"85e0-510"},{"uid":"85e0-512"},{"uid":"85e0-514"},{"uid":"85e0-516"},{"uid":"85e0-518"},{"uid":"85e0-352"}],"isExternal":true},"85e0-549":{"id":"react-dom","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-396"},{"uid":"85e0-388"}],"isExternal":true},"85e0-550":{"id":"/src/AnchoredOverlay/index.ts","moduleParts":{},"imported":[{"uid":"85e0-414"}],"importedBy":[{"uid":"85e0-420"},{"uid":"85e0-458"}]},"85e0-551":{"id":"/src/hooks/index.ts","moduleParts":{},"imported":[{"uid":"85e0-332"},{"uid":"85e0-340"},{"uid":"85e0-338"},{"uid":"85e0-336"},{"uid":"85e0-376"},{"uid":"85e0-342"},{"uid":"85e0-416"}],"importedBy":[{"uid":"85e0-420"},{"uid":"85e0-412"},{"uid":"85e0-394"},{"uid":"85e0-414"}]},"85e0-552":{"id":"/src/Portal/index.ts","moduleParts":{},"imported":[{"uid":"85e0-388"}],"importedBy":[{"uid":"85e0-412"},{"uid":"85e0-394"}]},"85e0-553":{"id":"\u0000commonjsHelpers.js","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-545"},{"uid":"85e0-314"},{"uid":"85e0-426"},{"uid":"85e0-278"}]},"85e0-554":{"id":"\u0000/node_modules/classnames/index.js?commonjs-module","moduleParts":{},"imported":[],"importedBy":[{"uid":"85e0-426"}]}},"env":{"rollup":"2.56.3"},"options":{"gzip":false,"brotli":false,"sourcemap":true}};
3263
-
3264
- const run = () => {
3265
- const width = window.innerWidth;
3266
- const height = window.innerHeight;
3267
-
3268
- const chartNode = document.querySelector("main");
3269
- drawChart.default(chartNode, data, width, height);
3270
- };
3271
-
3272
- window.addEventListener('resize', run);
3273
-
3274
- document.addEventListener('DOMContentLoaded', run);
3275
- /*-->*/
3276
- </script>
3277
- </body>
3278
- </html>
3279
-