@orangelogic/design-system 2.162.0 → 2.164.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/library/chunks/{AxisLabelRadial.lE2gKah-.js → AxisLabelRadial.fe7zjixN.js} +1 -1
  2. package/library/chunks/{BaseColumnSeries.B57B3iHh.js → BaseColumnSeries.8Mpxz385.js} +1 -1
  3. package/library/chunks/{CandlestickSeries.CmmI426l.js → CandlestickSeries.DuadaOTa.js} +19 -19
  4. package/library/chunks/{Circle.DAhHYhrc.js → Circle.6LomW0ej.js} +1 -1
  5. package/library/chunks/{ColumnSeries.DBgXk-b4.js → ColumnSeries.D1NLfRh5.js} +2 -2
  6. package/library/chunks/{EditableAxisLabel.C6H99qiS.js → EditableAxisLabel.Bi9vxLDV.js} +2 -2
  7. package/library/chunks/{EditableLabel.B7HB7Cu4.js → EditableLabel.CMR3O9E-.js} +1 -1
  8. package/library/chunks/{Gradient.DHhBnhFd.js → Gradient.CquE8_a4.js} +1 -1
  9. package/library/chunks/{LinearGradient.CGx00O8B.js → LinearGradient.CVN1VJp-.js} +9 -9
  10. package/library/chunks/{Picture.DYltTVSo.js → Picture.BYTZ_I8g.js} +1 -1
  11. package/library/chunks/{Polygon.BCrxKagx.js → Polygon.CU2sMltE.js} +1 -1
  12. package/library/chunks/{ProgressPie.CXksPJFv.js → ProgressPie.Dd74dbmm.js} +6 -6
  13. package/library/chunks/{RadialLabel.BYH69FGU.js → RadialLabel.7ka6ND-t.js} +1 -1
  14. package/library/chunks/{Scrollbar.DEv50o4R.js → Scrollbar.DqUnZReo.js} +1 -1
  15. package/library/chunks/Slice.BVI8rfHI.js +34 -0
  16. package/library/chunks/{Slider.BX8g2iGv.js → Slider.DtjYaJOw.js} +1 -1
  17. package/library/chunks/{SpriteResizer.CfIBMSp3.js → SpriteResizer.Ci2Wt2YJ.js} +11 -11
  18. package/library/chunks/{Triangle.CNY8-QfL.js → Triangle.C75emy3D.js} +1 -1
  19. package/library/chunks/{ZoomTools.6jZrzA7x.js → ZoomTools.CA9mtHI8.js} +2 -2
  20. package/library/chunks/_arrayEach.DU4X1H_a.js +8 -0
  21. package/library/chunks/_baseClone.BHNjfIdS.js +215 -0
  22. package/library/chunks/_baseEach.DQk0As2f.js +32 -0
  23. package/library/chunks/{_baseIteratee.BdKyHJ5i.js → _baseIteratee.sC2wLi2m.js} +3 -2
  24. package/library/chunks/{_baseUniq.je-HWbb3.js → _baseUniq.lwMgmtt2.js} +16 -15
  25. package/library/chunks/_baseXor.DixEm6JQ.js +35 -0
  26. package/library/chunks/_flatRest.D3ZVApI5.js +30 -0
  27. package/library/chunks/abnfDiagram-VRR7QNED.DKqYa5p7.js +89 -0
  28. package/library/chunks/{am-chart.CqdmTS0P.js → am-chart.Cr-vMjcY.js} +1577 -1727
  29. package/library/chunks/{animation.S74lUDDc.js → animation.BD-1xugN.js} +1 -1
  30. package/library/chunks/arc.xqNd6x9S.js +84 -0
  31. package/library/chunks/architectureDiagram-ZJ3FMSHR.CBIOk9Kp.js +4757 -0
  32. package/library/chunks/{asset-link-format.DLAzKfhk.js → asset-link-format.0q_MQOYh.js} +691 -635
  33. package/library/chunks/asset-link-format.ClaYu_v8.js +7 -0
  34. package/library/chunks/blockDiagram-677ZJIJ3.CeQxLPwj.js +2428 -0
  35. package/library/chunks/{button.8syoJXYs.js → button.DGyqdBou.js} +2 -2
  36. package/library/chunks/c4Diagram-LMCZKHZV.B73xdpNh.js +1580 -0
  37. package/library/chunks/{capitalize.BTYI3NfM.js → capitalize.CIBKBL10.js} +1 -1
  38. package/library/chunks/{cardinal.BCA_LB0u.js → cardinal.BXTAeOLk.js} +1 -0
  39. package/library/chunks/cardinalClosed.Mdce1x5M.js +59 -0
  40. package/library/chunks/channel.s_XjcUYI.js +5 -0
  41. package/library/chunks/chunk-2Q5K7J3B.Dy1Z-bMH.js +15 -0
  42. package/library/chunks/chunk-32BRIVSS.BbIrVi3j.js +71 -0
  43. package/library/chunks/chunk-5VM5RSS4.D0-lddDM.js +19 -0
  44. package/library/chunks/chunk-EX3LRPZG.L693y8d4.js +1412 -0
  45. package/library/chunks/chunk-JWPE2WC7.BV0i4LDu.js +8 -0
  46. package/library/chunks/chunk-MOJQB5TN.BZstBMYC.js +664 -0
  47. package/library/chunks/chunk-RYQCIY6F.BMsuG7ya.js +314 -0
  48. package/library/chunks/chunk-V7JOEXUC.DcJlyQO0.js +1537 -0
  49. package/library/chunks/chunk-VR4S4FIN.BpryBs7q.js +19 -0
  50. package/library/chunks/chunk-XXDRQBXY.CSOjab1V.js +11 -0
  51. package/library/chunks/classDiagram-OUVF2IWQ.Dvz7CNwe.js +18 -0
  52. package/library/chunks/classDiagram-v2-EOCWNBFH.Dvz7CNwe.js +18 -0
  53. package/library/chunks/cloneDeep.B-5z5SI3.js +51 -0
  54. package/library/chunks/{color-swatch-group.CLv1LSZy.js → color-swatch-group.ChP9amU9.js} +2576 -2723
  55. package/library/chunks/{color-swatch.DsWP2fd-.js → color-swatch.QsHoy_K1.js} +1 -1
  56. package/library/chunks/{colorPicker.GYgA76kc.js → colorPicker.Cg6Zxf8f.js} +5 -5
  57. package/library/chunks/{confirm-popover.C-eHPJaU.js → confirm-popover.D8mdy6KG.js} +2 -2
  58. package/library/chunks/constant.BQ4UJ-kW.js +12 -0
  59. package/library/chunks/cose-bilkent-JH36ORCC.cfzS2XsK.js +2612 -0
  60. package/library/chunks/cynefin-VYW2F7L2.c7H5z9nQ.js +23790 -0
  61. package/library/chunks/cynefinDiagram-TSTJHNR4.C8SgNXWI.js +299 -0
  62. package/library/chunks/cytoscape.esm.Cbrwqewp.js +18786 -0
  63. package/library/chunks/dagre-VKFMJZFB.D5B1cAri.js +343 -0
  64. package/library/chunks/debounce.Bv1rtE8D.js +55 -0
  65. package/library/chunks/defaultLocale.CPy_WVtp.js +171 -0
  66. package/library/chunks/descending.AD5n-tFs.js +10 -0
  67. package/library/chunks/diagram-FQU43EPY.DJukDcLl.js +466 -0
  68. package/library/chunks/diagram-G47NLZAW.BBOvcbcR.js +316 -0
  69. package/library/chunks/diagram-NH7WQ7WH.DOpRwmC2.js +142 -0
  70. package/library/chunks/diagram-OA4YK3LP.Dm5WJs91.js +350 -0
  71. package/library/chunks/diagram-WEI45ONY.COuzdmSR.js +217 -0
  72. package/library/chunks/{dialog.Bzf4-IgH.js → dialog.05FgdLBZ.js} +2 -2
  73. package/library/chunks/{document-viewer.CGyOG1yw.js → document-viewer.Cng07M-1.js} +7 -7
  74. package/library/chunks/{dot-pagination.BdZc-K0r.js → dot-pagination.Pg9O0nIh.js} +1 -1
  75. package/library/chunks/ebnfDiagram-CCIWWBDH.Dz-QBH6Y.js +111 -0
  76. package/library/chunks/erDiagram-Q63AITRT.sSw_w-2B.js +913 -0
  77. package/library/chunks/{exporting.DQhKH1BX.js → exporting.Djsoh75g.js} +11 -11
  78. package/library/chunks/flow.aZRVH3p1.js +1304 -0
  79. package/library/chunks/flowDiagram-23GEKE2U.CMMbuUHf.js +1642 -0
  80. package/library/chunks/{folder-select.BKAuh4GE.js → folder-select.Dw1ZKZAq.js} +160 -140
  81. package/library/chunks/{gantt.tu-w6fQ5.js → gantt.Bv6_3H9y.js} +22 -22
  82. package/library/chunks/ganttDiagram-NO4QXBWP.DZdwd0O4.js +2715 -0
  83. package/library/chunks/gitGraphDiagram-IHSO6WYX.F6mwS3uS.js +818 -0
  84. package/library/chunks/graph.XHMI5hta.js +653 -0
  85. package/library/chunks/{header.e1FLwywx.js → header.DDI0MfJA.js} +1 -1
  86. package/library/chunks/{hierarchy.CTnBzzmQ.js → hierarchy.C4LxmFxx.js} +836 -904
  87. package/library/chunks/{hub-connection.CA_wS_wh.js → hub-connection.BtevPWYb.js} +1 -1
  88. package/library/chunks/{icon-button.DbVIFgu7.js → icon-button.BwmMJ0bI.js} +1 -1
  89. package/library/chunks/{icon.mxNZ85k0.js → icon.D5iM9wXS.js} +1 -1
  90. package/library/chunks/{iframe.DcHjOcLG.js → iframe.Cc-xZIm_.js} +1 -1
  91. package/library/chunks/{image.5mhGPvMN.js → image.BgODrAzQ.js} +2 -2
  92. package/library/chunks/{image.QVlPFadX.js → image.Y5c_hFx8.js} +1 -1
  93. package/library/chunks/{index.BVDhdCk-.js → index.2SOQHTpX.js} +23 -23
  94. package/library/chunks/index.BDn1QW8J.js +167 -0
  95. package/library/chunks/{index.DcjJFMlq.js → index.CrhRU5m8.js} +284 -273
  96. package/library/chunks/index.thKLME8E.js +77 -0
  97. package/library/chunks/infoDiagram-FWYZ7A6U.BnktKL7i.js +24 -0
  98. package/library/chunks/init.DjUOC4st.js +16 -0
  99. package/library/chunks/{input.BcyLZUmv.js → input.DOorVTYZ.js} +2 -2
  100. package/library/chunks/isArrayLikeObject.D7afXo-f.js +86 -0
  101. package/library/chunks/isEmpty.DtTJTUcf.js +27 -0
  102. package/library/chunks/ishikawaDiagram-FXEZZL3T.CFp-9Kes.js +621 -0
  103. package/library/chunks/journeyDiagram-5HDEW3XC.BxO1aPu_.js +837 -0
  104. package/library/chunks/{json.D7WeFaJm.js → json.Dz5QFEi5.js} +3 -3
  105. package/library/chunks/kanban-definition-HUTT4EX6.Bk8vmLFK.js +724 -0
  106. package/library/chunks/katex.DoRnZ_sp.js +11682 -0
  107. package/library/chunks/layout.DZcMFKol.js +1446 -0
  108. package/library/chunks/line.DP-iSN_J.js +157 -0
  109. package/library/chunks/linear.TNHhsH1m.js +215 -0
  110. package/library/chunks/{map.BjtxEozr.js → map.CBcV0WVq.js} +100 -105
  111. package/library/chunks/map.DJnohTgl.js +18 -0
  112. package/library/chunks/markdown.I1AJG75v.js +4180 -0
  113. package/library/chunks/math.D2lKC7md.js +22 -0
  114. package/library/chunks/mermaid.core.Dspbw7Ig.js +13598 -0
  115. package/library/chunks/mindmap-definition-LN4V7U3C.DuCBBYwE.js +808 -0
  116. package/library/chunks/{number.CtCaI0T_.js → number.Cx2ncfJJ.js} +2 -2
  117. package/library/chunks/{option.qN3aaqVI.js → option.DyNR1vzy.js} +2 -2
  118. package/library/chunks/ordinal.bqVaUip-.js +61 -0
  119. package/library/chunks/{pagination.Cupa46TN.js → pagination.qFmncShC.js} +5 -5
  120. package/library/chunks/pegDiagram-2B236MQR.DQrkEdJr.js +97 -0
  121. package/library/chunks/{percent.D_CkaRGb.js → percent.D8mkiJ2G.js} +17 -17
  122. package/library/chunks/pieDiagram-ENE6RG2P.B6nPW8Pj.js +212 -0
  123. package/library/chunks/position-picker.DjnhxIKF.js +4 -0
  124. package/library/chunks/quadrantDiagram-ABIIQ3AL.BFy9moxz.js +1026 -0
  125. package/library/chunks/{radar.BMKaNvJH.js → radar.B3p5bRix.js} +78 -129
  126. package/library/chunks/railroadDiagram-RFXS5EU6.CSao8YZX.js +79 -0
  127. package/library/chunks/range.DdOGybNB.js +9 -0
  128. package/library/chunks/requirementDiagram-TGXJPOKE.CjpliZnF.js +882 -0
  129. package/library/chunks/sankey.BR94A-8L.js +294 -0
  130. package/library/chunks/sankeyDiagram-HTMAVEWB.D8aAxVGe.js +564 -0
  131. package/library/chunks/select.C6_sM3Pr.js +7 -0
  132. package/library/chunks/sequenceDiagram-DBY2YBRQ.Cu9MV3h-.js +2891 -0
  133. package/library/chunks/sizeCapture-X5ZJPWSS.BDByEFcW.js +46 -0
  134. package/library/chunks/{sliceGrouper.C-t5ZRrz.js → sliceGrouper.CcRqQhZX.js} +1 -1
  135. package/library/chunks/stateDiagram-2N3HPSRC.DvrAW9Ck.js +267 -0
  136. package/library/chunks/stateDiagram-v2-6OUMAXLB.CFfuaFM1.js +18 -0
  137. package/library/chunks/step.almIqwJ6.js +51 -0
  138. package/library/chunks/{stock.vF_pji1F.js → stock.CQbn6zW4.js} +9 -9
  139. package/library/chunks/swimlanes-5IMT3BWC.AtMD47q7.js +5332 -0
  140. package/library/chunks/swimlanesDiagram-G3AALYLV.26A1eX7s.js +15 -0
  141. package/library/chunks/{tab-group.kSg5_10g.js → tab-group.1Y71_aN8.js} +3 -3
  142. package/library/chunks/{time.DWfbnPnM.js → time.DYWuX2id.js} +1 -1
  143. package/library/chunks/timeline-definition-FHXFAJF6.CYSh6xl5.js +1058 -0
  144. package/library/chunks/{timeline.gWu0up6r.js → timeline.Czz_uBEd.js} +33 -32
  145. package/library/chunks/toNumber.MuDz8DgU.js +31 -0
  146. package/library/chunks/{toString.Dcbz5jVT.js → toString.B1zKIiZc.js} +1 -1
  147. package/library/chunks/{toast.TDU3wVhq.js → toast.CXEAfCvN.js} +1 -1
  148. package/library/chunks/transformation.8uLv6uwG.js +264 -0
  149. package/library/chunks/{tree.C2dPd6gt.js → tree.vn5sHbdt.js} +123 -117
  150. package/library/chunks/value.BXEGBVFV.js +44 -0
  151. package/library/chunks/{venn.BVBe-JXs.js → venn.B5Jl-c4i.js} +2 -2
  152. package/library/chunks/vennDiagram-L72KCM5P.CSk1WWlu.js +1581 -0
  153. package/library/chunks/wardleyDiagram-EHGQE667.C7UzXYG7.js +675 -0
  154. package/library/chunks/{watch.DOt4Mabe.js → watch.DJF5K-8U.js} +27 -27
  155. package/library/chunks/{wc.DTNpfIc1.js → wc.B2THb2Kk.js} +18 -18
  156. package/library/chunks/xy.BO6U5QrZ.js +294 -0
  157. package/library/chunks/xychartDiagram-FW5EYKEG.idiZWvYS.js +1383 -0
  158. package/library/components/alert.js +2 -2
  159. package/library/components/am-chart.js +3 -3
  160. package/library/components/animated-image.js +2 -2
  161. package/library/components/animation.js +2 -2
  162. package/library/components/array-line-clamp.js +1 -1
  163. package/library/components/asset-link-format.js +8 -7
  164. package/library/components/atoms.js +29 -29
  165. package/library/components/audio.js +3 -3
  166. package/library/components/avatar.js +2 -2
  167. package/library/components/border-input-group.js +1 -1
  168. package/library/components/breadcrumb-item.js +1 -1
  169. package/library/components/breadcrumb.js +1 -1
  170. package/library/components/button.js +3 -3
  171. package/library/components/checkbox.js +195 -18
  172. package/library/components/color-picker.js +4 -4
  173. package/library/components/color-swatch-group.js +5 -5
  174. package/library/components/color-swatch.js +2 -2
  175. package/library/components/confirm-popover.js +3 -3
  176. package/library/components/copy-button.js +2 -2
  177. package/library/components/corner-position-input-group.js +2 -2
  178. package/library/components/cropper.js +4 -4
  179. package/library/components/date-calendar.js +1 -1
  180. package/library/components/details.js +2 -2
  181. package/library/components/dialog.js +3 -3
  182. package/library/components/diff.js +1 -1
  183. package/library/components/divider.js +1 -1
  184. package/library/components/document-viewer.js +3 -3
  185. package/library/components/dot-pagination.js +2 -2
  186. package/library/components/drawer.js +3 -3
  187. package/library/components/dropdown.js +2 -2
  188. package/library/components/dynamic-select.js +6 -6
  189. package/library/components/e-chart.js +1 -1
  190. package/library/components/element-clamp.js +2 -2
  191. package/library/components/file-on-demand.js +350 -374
  192. package/library/components/folder-select.js +5 -5
  193. package/library/components/format-time.js +2 -2
  194. package/library/components/grid-item.js +1 -1
  195. package/library/components/header.js +2 -2
  196. package/library/components/hub-connection.js +2 -2
  197. package/library/components/icon-button.js +2 -2
  198. package/library/components/icon.js +2 -2
  199. package/library/components/iframe.js +2 -2
  200. package/library/components/image-comparer.js +2 -2
  201. package/library/components/image.js +3 -3
  202. package/library/components/include.js +1 -1
  203. package/library/components/input.js +3 -3
  204. package/library/components/line-clamp.js +1 -1
  205. package/library/components/markdown.js +11 -2704
  206. package/library/components/masonry.js +76 -73
  207. package/library/components/menu-item.js +2 -2
  208. package/library/components/molecules.js +3 -3
  209. package/library/components/mutation-observer.js +1 -1
  210. package/library/components/option.js +3 -3
  211. package/library/components/organisms.js +2 -2
  212. package/library/components/padding-input-group.js +1 -1
  213. package/library/components/pagination.js +6 -6
  214. package/library/components/position-picker.js +25 -25
  215. package/library/components/qr-code.js +1 -1
  216. package/library/components/radio-button.js +1 -1
  217. package/library/components/radio-card.js +1 -1
  218. package/library/components/radio-group.js +1 -1
  219. package/library/components/radio.js +2 -2
  220. package/library/components/range.js +1 -1
  221. package/library/components/rating.js +2 -2
  222. package/library/components/resize-observer.js +1 -1
  223. package/library/components/select.js +3 -3
  224. package/library/components/shadow-input-group.js +1 -1
  225. package/library/components/share-option-list.js +2 -2
  226. package/library/components/sidebar.js +3 -3
  227. package/library/components/size-input-group.js +3 -3
  228. package/library/components/split-panel.js +1 -1
  229. package/library/components/step.js +1 -1
  230. package/library/components/stepper-wizard.js +1 -1
  231. package/library/components/stepper.js +1 -1
  232. package/library/components/switch.js +1 -1
  233. package/library/components/tab-group.js +4 -4
  234. package/library/components/tab-panel.js +1 -1
  235. package/library/components/tab.js +2 -2
  236. package/library/components/tag.js +1 -1
  237. package/library/components/textarea.js +1 -1
  238. package/library/components/timecode.js +1 -1
  239. package/library/components/tooltip.js +1 -1
  240. package/library/components/tree-item.js +4 -4
  241. package/library/components/tree.js +2 -2
  242. package/library/components/typeface.js +2 -2
  243. package/library/components/types.js +122327 -120686
  244. package/library/components/video.js +2 -2
  245. package/library/package.json +2 -1
  246. package/library/packages/atoms/src/components/markdown/markdown.d.ts +41 -1
  247. package/library/packages/atoms/src/components/markdown/parser.d.ts +18 -3
  248. package/library/packages/atoms/src/components/markdown/styles.d.ts +17 -0
  249. package/library/packages/atoms/src/components/tree/tree.d.ts +7 -1
  250. package/library/packages/atoms/src/components/tree-item/tree-item.d.ts +11 -1
  251. package/library/packages/events/src/cx-folder-select-loading-change.d.ts +8 -0
  252. package/library/packages/events/src/events.d.ts +1 -0
  253. package/library/packages/hybrid/table-core/src/table/styles/table-frozen.styles.d.ts +8 -0
  254. package/library/packages/hybrid/table-core/src/table/table.d.ts +9 -1
  255. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/FrozenColumns/FrozenColumns.d.ts +14 -1
  256. package/library/packages/hybrid/table-core/src/tabulator-tables/modules/ResizeColumns/ResizeColumns.d.ts +18 -1
  257. package/library/packages/molecules/src/folder-select/components/folder-select-tree/folder-select-tree.d.ts +7 -0
  258. package/library/packages/molecules/src/folder-select/folder-select.d.ts +7 -0
  259. package/library/packages/molecules/src/index.d.ts +1 -0
  260. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.d.ts +124 -0
  261. package/library/packages/molecules/src/markdown-viewer/markdown-viewer.styles.d.ts +6 -0
  262. package/library/packages/molecules/src/masonry/masonry.d.ts +5 -0
  263. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +9 -0
  264. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +30 -0
  265. package/library/packages/tools/src/tiptap/utils/md/editor-controller.d.ts +57 -0
  266. package/library/packages/tools/src/tiptap/utils/md/from-markdown.d.ts +11 -0
  267. package/library/packages/tools/src/tiptap/utils/md/input-rules.d.ts +15 -0
  268. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +13 -0
  269. package/library/packages/tools/src/tiptap/utils/md/to-markdown.d.ts +14 -0
  270. package/library/packages/types/src/asset-link-format.d.ts +19 -0
  271. package/library/packages/types/src/markdown-viewer.d.ts +12 -0
  272. package/library/packages/types/src/tree-item.d.ts +12 -0
  273. package/library/react-web-component.d.ts +86 -8
  274. package/library/utils.js +64 -65
  275. package/package.json +2 -1
  276. package/library/chunks/Slice.C5lVu2g_.js +0 -120
  277. package/library/chunks/_baseXor.VohG8cOH.js +0 -116
  278. package/library/chunks/asset-link-format.QzzboHHE.js +0 -6
  279. package/library/chunks/checkbox.3i2j3PHc.js +0 -198
  280. package/library/chunks/content-builder.BU8X7I6V.js +0 -60
  281. package/library/chunks/debounce.C_J-9zJi.js +0 -82
  282. package/library/chunks/flow.hz0UDjCb.js +0 -1594
  283. package/library/chunks/index.DU0XUO4k.js +0 -176
  284. package/library/chunks/transformation.D1alV_s4.js +0 -189
  285. package/library/chunks/xy.BNgyrwGD.js +0 -333
@@ -1,32 +1,25 @@
1
- import { D as yi, F as mi, al as xi, x as Zt, I as _i, q as O, am as V, H as qt, C as yt, L as Z, T as K, b as Ue, R as ce, m as G, J as Ke, e as P, a2 as ke, aq as wi, a as X, _ as Ne, G as Ze, bi as Di, a4 as be, ap as Qt, r as ut, b1 as ki, o as Ae, h as Ni, j as bi, aZ as Pe } from "./am-chart.CqdmTS0P.js";
2
- import { N as Ai, h as Pi } from "./index.CZJTjkLp.js";
3
- import { C as Jt } from "./Circle.DAhHYhrc.js";
4
- import { t as Ci, d as Ri } from "./timer.B39XOBYL.js";
5
- import { c as mt, a as xt, i as Ti } from "./index.DU0XUO4k.js";
6
- import { S as zi } from "./Slice.C5lVu2g_.js";
7
- import { R as Li } from "./RadialLabel.BYH69FGU.js";
8
- import { r as Si } from "./accessors.BHk36ecy.js";
9
- import { P as Mi } from "./Polygon.BCrxKagx.js";
10
- import { a as Hi } from "./_commonjsHelpers.DQNKXVTB.js";
11
- import { r as Wi } from "./___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
12
- function Qe(s) {
13
- s.x0 = Math.round(s.x0), s.y0 = Math.round(s.y0), s.x1 = Math.round(s.x1), s.y1 = Math.round(s.y1);
14
- }
15
- function Ft(s, t, e, i, n) {
16
- for (var a = s.children, o, h = -1, r = a.length, l = s.value && (i - t) / s.value; ++h < r; )
17
- o = a[h], o.y0 = e, o.y1 = n, o.x0 = t, o.x1 = t += o.value * l;
18
- }
19
- function Je() {
1
+ import { D as di, F as pi, aj as vi, x as Ut, I as yi, q as E, ak as X, H as Ft, C as yt, L as Z, T as K, b as Ge, R as ae, m as G, J as je, e as P, a0 as xe, ao as mi, a as V, _ as _e, G as Ue, be as xi, a2 as we, an as $t, r as ut, a$ as _i, f as De, h as wi, j as Di, aU as ke } from "./am-chart.Cr-vMjcY.js";
2
+ import { N as ki, h as Ni } from "./index.CZJTjkLp.js";
3
+ import { C as Kt } from "./Circle.6LomW0ej.js";
4
+ import { t as bi, d as Ai } from "./timer.B39XOBYL.js";
5
+ import { i as Pi } from "./index.BDn1QW8J.js";
6
+ import { r as Ci, a as oe, b as $e, t as Ne, s as be } from "./index.thKLME8E.js";
7
+ import { S as Ri } from "./Slice.BVI8rfHI.js";
8
+ import { R as Ti } from "./RadialLabel.7ka6ND-t.js";
9
+ import { P as zi } from "./Polygon.CU2sMltE.js";
10
+ import { a as Li } from "./_commonjsHelpers.DQNKXVTB.js";
11
+ import { r as Si } from "./___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
12
+ function Ke() {
20
13
  var s = 1, t = 1, e = 0, i = !1;
21
14
  function n(o) {
22
15
  var h = o.height + 1;
23
- return o.x0 = o.y0 = e, o.x1 = s, o.y1 = t / h, o.eachBefore(a(t, h)), i && o.eachBefore(Qe), o;
16
+ return o.x0 = o.y0 = e, o.x1 = s, o.y1 = t / h, o.eachBefore(a(t, h)), i && o.eachBefore(Ci), o;
24
17
  }
25
18
  function a(o, h) {
26
19
  return function(r) {
27
- r.children && Ft(r, r.x0, o * (r.depth + 1) / h, r.x1, o * (r.depth + 2) / h);
28
- var l = r.x0, u = r.y0, f = r.x1 - e, c = r.y1 - e;
29
- f < l && (l = f = (l + f) / 2), c < u && (u = c = (u + c) / 2), r.x0 = l, r.y0 = u, r.x1 = f, r.y1 = c;
20
+ r.children && oe(r, r.x0, o * (r.depth + 1) / h, r.x1, o * (r.depth + 2) / h);
21
+ var l = r.x0, u = r.y0, c = r.x1 - e, f = r.y1 - e;
22
+ c < l && (l = c = (l + c) / 2), f < u && (u = f = (u + f) / 2), r.x0 = l, r.y0 = u, r.x1 = c, r.y1 = f;
30
23
  };
31
24
  }
32
25
  return n.round = function(o) {
@@ -37,75 +30,75 @@ function Je() {
37
30
  return arguments.length ? (e = +o, n) : e;
38
31
  }, n;
39
32
  }
40
- function Ii(s, t) {
33
+ function Hi(s, t) {
41
34
  return s.parent === t.parent ? 1 : 2;
42
35
  }
43
- function Yt(s) {
36
+ function Xt(s) {
44
37
  var t = s.children;
45
38
  return t ? t[0] : s.t;
46
39
  }
47
- function Gt(s) {
40
+ function Vt(s) {
48
41
  var t = s.children;
49
42
  return t ? t[t.length - 1] : s.t;
50
43
  }
51
- function Bi(s, t, e) {
44
+ function Wi(s, t, e) {
52
45
  var i = e / (t.i - s.i);
53
46
  t.c -= i, t.s += e, s.c += i, t.z += e, t.m += e;
54
47
  }
55
- function Oi(s) {
48
+ function Mi(s) {
56
49
  for (var t = 0, e = 0, i = s.children, n = i.length, a; --n >= 0; )
57
50
  a = i[n], a.z += t, a.m += t, t += a.s + (e += a.c);
58
51
  }
59
- function Ei(s, t, e) {
52
+ function Ii(s, t, e) {
60
53
  return s.a.parent === t.parent ? s.a : e;
61
54
  }
62
- function At(s, t) {
55
+ function Nt(s, t) {
63
56
  this._ = s, this.parent = null, this.children = null, this.A = null, this.a = this, this.z = 0, this.m = 0, this.c = 0, this.s = 0, this.t = null, this.i = t;
64
57
  }
65
- At.prototype = Object.create(Ai.prototype);
66
- function Fi(s) {
67
- for (var t = new At(s, 0), e, i = [t], n, a, o, h; e = i.pop(); )
58
+ Nt.prototype = Object.create(ki.prototype);
59
+ function Oi(s) {
60
+ for (var t = new Nt(s, 0), e, i = [t], n, a, o, h; e = i.pop(); )
68
61
  if (a = e._.children)
69
62
  for (e.children = new Array(h = a.length), o = h - 1; o >= 0; --o)
70
- i.push(n = e.children[o] = new At(a[o], o)), n.parent = e;
71
- return (t.parent = new At(null, 0)).children = [t], t;
63
+ i.push(n = e.children[o] = new Nt(a[o], o)), n.parent = e;
64
+ return (t.parent = new Nt(null, 0)).children = [t], t;
72
65
  }
73
- function Vi() {
74
- var s = Ii, t = 1, e = 1, i = null;
66
+ function Ei() {
67
+ var s = Hi, t = 1, e = 1, i = null;
75
68
  function n(l) {
76
- var u = Fi(l);
69
+ var u = Oi(l);
77
70
  if (u.eachAfter(a), u.parent.m = -u.z, u.eachBefore(o), i) l.eachBefore(r);
78
71
  else {
79
- var f = l, c = l, g = l;
72
+ var c = l, f = l, g = l;
80
73
  l.eachBefore(function(m) {
81
- m.x < f.x && (f = m), m.x > c.x && (c = m), m.depth > g.depth && (g = m);
74
+ m.x < c.x && (c = m), m.x > f.x && (f = m), m.depth > g.depth && (g = m);
82
75
  });
83
- var v = f === c ? 1 : s(f, c) / 2, d = v - f.x, p = t / (c.x + v + d), y = e / (g.depth || 1);
76
+ var p = c === f ? 1 : s(c, f) / 2, d = p - c.x, v = t / (f.x + p + d), y = e / (g.depth || 1);
84
77
  l.eachBefore(function(m) {
85
- m.x = (m.x + d) * p, m.y = m.depth * y;
78
+ m.x = (m.x + d) * v, m.y = m.depth * y;
86
79
  });
87
80
  }
88
81
  return l;
89
82
  }
90
83
  function a(l) {
91
- var u = l.children, f = l.parent.children, c = l.i ? f[l.i - 1] : null;
84
+ var u = l.children, c = l.parent.children, f = l.i ? c[l.i - 1] : null;
92
85
  if (u) {
93
- Oi(l);
86
+ Mi(l);
94
87
  var g = (u[0].z + u[u.length - 1].z) / 2;
95
- c ? (l.z = c.z + s(l._, c._), l.m = l.z - g) : l.z = g;
96
- } else c && (l.z = c.z + s(l._, c._));
97
- l.parent.A = h(l, c, l.parent.A || f[0]);
88
+ f ? (l.z = f.z + s(l._, f._), l.m = l.z - g) : l.z = g;
89
+ } else f && (l.z = f.z + s(l._, f._));
90
+ l.parent.A = h(l, f, l.parent.A || c[0]);
98
91
  }
99
92
  function o(l) {
100
93
  l._.x = l.z + l.parent.m, l.m += l.parent.m;
101
94
  }
102
- function h(l, u, f) {
95
+ function h(l, u, c) {
103
96
  if (u) {
104
- for (var c = l, g = l, v = u, d = c.parent.children[0], p = c.m, y = g.m, m = v.m, _ = d.m, x; v = Gt(v), c = Yt(c), v && c; )
105
- d = Yt(d), g = Gt(g), g.a = l, x = v.z + m - c.z - p + s(v._, c._), x > 0 && (Bi(Ei(v, l, f), l, x), p += x, y += x), m += v.m, p += c.m, _ += d.m, y += g.m;
106
- v && !Gt(g) && (g.t = v, g.m += m - y), c && !Yt(d) && (d.t = c, d.m += p - _, f = l);
97
+ for (var f = l, g = l, p = u, d = f.parent.children[0], v = f.m, y = g.m, m = p.m, _ = d.m, x; p = Vt(p), f = Xt(f), p && f; )
98
+ d = Xt(d), g = Vt(g), g.a = l, x = p.z + m - f.z - v + s(p._, f._), x > 0 && (Wi(Ii(p, l, c), l, x), v += x, y += x), m += p.m, v += f.m, _ += d.m, y += g.m;
99
+ p && !Vt(g) && (g.t = p, g.m += m - y), f && !Xt(d) && (d.t = f, d.m += v - _, c = l);
107
100
  }
108
- return f;
101
+ return c;
109
102
  }
110
103
  function r(l) {
111
104
  l.x *= t, l.y = l.depth * e;
@@ -118,122 +111,61 @@ function Vi() {
118
111
  return arguments.length ? (i = !0, t = +l[0], e = +l[1], n) : i ? [t, e] : null;
119
112
  }, n;
120
113
  }
121
- function ue(s, t, e, i, n) {
122
- for (var a = s.children, o, h = -1, r = a.length, l = s.value && (n - e) / s.value; ++h < r; )
123
- o = a[h], o.x0 = t, o.x1 = i, o.y0 = e, o.y1 = e += o.value * l;
124
- }
125
- var Xi = (1 + Math.sqrt(5)) / 2;
126
- function qi(s, t, e, i, n, a) {
127
- for (var o = [], h = t.children, r, l, u = 0, f = 0, c = h.length, g, v, d = t.value, p, y, m, _, x, w, k; u < c; ) {
128
- g = n - e, v = a - i;
129
- do
130
- p = h[f++].value;
131
- while (!p && f < c);
132
- for (y = m = p, w = Math.max(v / g, g / v) / (d * s), k = p * p * w, x = Math.max(m / k, k / y); f < c; ++f) {
133
- if (p += l = h[f].value, l < y && (y = l), l > m && (m = l), k = p * p * w, _ = Math.max(m / k, k / y), _ > x) {
134
- p -= l;
135
- break;
136
- }
137
- x = _;
138
- }
139
- o.push(r = { value: p, dice: g < v, children: h.slice(u, f) }), r.dice ? Ft(r, e, i, n, d ? i += v * p / d : a) : ue(r, e, i, d ? e += g * p / d : n, a), d -= p, u = f;
140
- }
141
- return o;
142
- }
143
- const te = function s(t) {
144
- function e(i, n, a, o, h) {
145
- qi(t, i, n, a, o, h);
146
- }
147
- return e.ratio = function(i) {
148
- return s((i = +i) > 1 ? i : 1);
149
- }, e;
150
- }(Xi);
151
- function Ce() {
152
- var s = te, t = !1, e = 1, i = 1, n = [0], a = mt, o = mt, h = mt, r = mt, l = mt;
153
- function u(c) {
154
- return c.x0 = c.y0 = 0, c.x1 = e, c.y1 = i, c.eachBefore(f), n = [0], t && c.eachBefore(Qe), c;
155
- }
156
- function f(c) {
157
- var g = n[c.depth], v = c.x0 + g, d = c.y0 + g, p = c.x1 - g, y = c.y1 - g;
158
- p < v && (v = p = (v + p) / 2), y < d && (d = y = (d + y) / 2), c.x0 = v, c.y0 = d, c.x1 = p, c.y1 = y, c.children && (g = n[c.depth + 1] = a(c) / 2, v += l(c) - g, d += o(c) - g, p -= h(c) - g, y -= r(c) - g, p < v && (v = p = (v + p) / 2), y < d && (d = y = (d + y) / 2), s(c, v, d, p, y));
159
- }
160
- return u.round = function(c) {
161
- return arguments.length ? (t = !!c, u) : t;
162
- }, u.size = function(c) {
163
- return arguments.length ? (e = +c[0], i = +c[1], u) : [e, i];
164
- }, u.tile = function(c) {
165
- return arguments.length ? (s = Si(c), u) : s;
166
- }, u.padding = function(c) {
167
- return arguments.length ? u.paddingInner(c).paddingOuter(c) : u.paddingInner();
168
- }, u.paddingInner = function(c) {
169
- return arguments.length ? (a = typeof c == "function" ? c : xt(+c), u) : a;
170
- }, u.paddingOuter = function(c) {
171
- return arguments.length ? u.paddingTop(c).paddingRight(c).paddingBottom(c).paddingLeft(c) : u.paddingTop();
172
- }, u.paddingTop = function(c) {
173
- return arguments.length ? (o = typeof c == "function" ? c : xt(+c), u) : o;
174
- }, u.paddingRight = function(c) {
175
- return arguments.length ? (h = typeof c == "function" ? c : xt(+c), u) : h;
176
- }, u.paddingBottom = function(c) {
177
- return arguments.length ? (r = typeof c == "function" ? c : xt(+c), u) : r;
178
- }, u.paddingLeft = function(c) {
179
- return arguments.length ? (l = typeof c == "function" ? c : xt(+c), u) : l;
180
- }, u;
181
- }
182
- function Yi(s, t, e, i, n) {
114
+ function Bi(s, t, e, i, n) {
183
115
  var a = s.children, o, h = a.length, r, l = new Array(h + 1);
184
116
  for (l[0] = r = o = 0; o < h; ++o)
185
117
  l[o + 1] = r += a[o].value;
186
118
  u(0, h, s.value, t, e, i, n);
187
- function u(f, c, g, v, d, p, y) {
188
- if (f >= c - 1) {
189
- var m = a[f];
190
- m.x0 = v, m.y0 = d, m.x1 = p, m.y1 = y;
119
+ function u(c, f, g, p, d, v, y) {
120
+ if (c >= f - 1) {
121
+ var m = a[c];
122
+ m.x0 = p, m.y0 = d, m.x1 = v, m.y1 = y;
191
123
  return;
192
124
  }
193
- for (var _ = l[f], x = g / 2 + _, w = f + 1, k = c - 1; w < k; ) {
194
- var A = w + k >>> 1;
195
- l[A] < x ? w = A + 1 : k = A;
125
+ for (var _ = l[c], x = g / 2 + _, w = c + 1, b = f - 1; w < b; ) {
126
+ var A = w + b >>> 1;
127
+ l[A] < x ? w = A + 1 : b = A;
196
128
  }
197
- x - l[w - 1] < l[w] - x && f + 1 < w && --w;
198
- var N = l[w] - _, C = g - N;
199
- if (p - v > y - d) {
200
- var b = g ? (v * C + p * N) / g : p;
201
- u(f, w, N, v, d, b, y), u(w, c, C, b, d, p, y);
129
+ x - l[w - 1] < l[w] - x && c + 1 < w && --w;
130
+ var k = l[w] - _, C = g - k;
131
+ if (v - p > y - d) {
132
+ var N = g ? (p * C + v * k) / g : v;
133
+ u(c, w, k, p, d, N, y), u(w, f, C, N, d, v, y);
202
134
  } else {
203
- var S = g ? (d * C + y * N) / g : y;
204
- u(f, w, N, v, d, p, S), u(w, c, C, v, S, p, y);
135
+ var S = g ? (d * C + y * k) / g : y;
136
+ u(c, w, k, p, d, v, S), u(w, f, C, p, S, v, y);
205
137
  }
206
138
  }
207
139
  }
208
- function Gi(s, t, e, i, n) {
209
- (s.depth & 1 ? ue : Ft)(s, t, e, i, n);
140
+ function Fi(s, t, e, i, n) {
141
+ (s.depth & 1 ? $e : oe)(s, t, e, i, n);
210
142
  }
211
- function ji(s) {
143
+ function Xi(s) {
212
144
  const t = +this._x.call(null, s), e = +this._y.call(null, s);
213
- return ti(this.cover(t, e), t, e, s);
145
+ return Ze(this.cover(t, e), t, e, s);
214
146
  }
215
- function ti(s, t, e, i) {
147
+ function Ze(s, t, e, i) {
216
148
  if (isNaN(t) || isNaN(e)) return s;
217
- var n, a = s._root, o = { data: i }, h = s._x0, r = s._y0, l = s._x1, u = s._y1, f, c, g, v, d, p, y, m;
149
+ var n, a = s._root, o = { data: i }, h = s._x0, r = s._y0, l = s._x1, u = s._y1, c, f, g, p, d, v, y, m;
218
150
  if (!a) return s._root = o, s;
219
151
  for (; a.length; )
220
- if ((d = t >= (f = (h + l) / 2)) ? h = f : l = f, (p = e >= (c = (r + u) / 2)) ? r = c : u = c, n = a, !(a = a[y = p << 1 | d])) return n[y] = o, s;
221
- if (g = +s._x.call(null, a.data), v = +s._y.call(null, a.data), t === g && e === v) return o.next = a, n ? n[y] = o : s._root = o, s;
152
+ if ((d = t >= (c = (h + l) / 2)) ? h = c : l = c, (v = e >= (f = (r + u) / 2)) ? r = f : u = f, n = a, !(a = a[y = v << 1 | d])) return n[y] = o, s;
153
+ if (g = +s._x.call(null, a.data), p = +s._y.call(null, a.data), t === g && e === p) return o.next = a, n ? n[y] = o : s._root = o, s;
222
154
  do
223
- n = n ? n[y] = new Array(4) : s._root = new Array(4), (d = t >= (f = (h + l) / 2)) ? h = f : l = f, (p = e >= (c = (r + u) / 2)) ? r = c : u = c;
224
- while ((y = p << 1 | d) === (m = (v >= c) << 1 | g >= f));
155
+ n = n ? n[y] = new Array(4) : s._root = new Array(4), (d = t >= (c = (h + l) / 2)) ? h = c : l = c, (v = e >= (f = (r + u) / 2)) ? r = f : u = f;
156
+ while ((y = v << 1 | d) === (m = (p >= f) << 1 | g >= c));
225
157
  return n[m] = a, n[y] = o, s;
226
158
  }
227
- function $i(s) {
228
- var t, e, i = s.length, n, a, o = new Array(i), h = new Array(i), r = 1 / 0, l = 1 / 0, u = -1 / 0, f = -1 / 0;
159
+ function Vi(s) {
160
+ var t, e, i = s.length, n, a, o = new Array(i), h = new Array(i), r = 1 / 0, l = 1 / 0, u = -1 / 0, c = -1 / 0;
229
161
  for (e = 0; e < i; ++e)
230
- isNaN(n = +this._x.call(null, t = s[e])) || isNaN(a = +this._y.call(null, t)) || (o[e] = n, h[e] = a, n < r && (r = n), n > u && (u = n), a < l && (l = a), a > f && (f = a));
231
- if (r > u || l > f) return this;
232
- for (this.cover(r, l).cover(u, f), e = 0; e < i; ++e)
233
- ti(this, o[e], h[e], s[e]);
162
+ isNaN(n = +this._x.call(null, t = s[e])) || isNaN(a = +this._y.call(null, t)) || (o[e] = n, h[e] = a, n < r && (r = n), n > u && (u = n), a < l && (l = a), a > c && (c = a));
163
+ if (r > u || l > c) return this;
164
+ for (this.cover(r, l).cover(u, c), e = 0; e < i; ++e)
165
+ Ze(this, o[e], h[e], s[e]);
234
166
  return this;
235
167
  }
236
- function Ui(s, t) {
168
+ function Yi(s, t) {
237
169
  if (isNaN(s = +s) || isNaN(t = +t)) return this;
238
170
  var e = this._x0, i = this._y0, n = this._x1, a = this._y1;
239
171
  if (isNaN(e))
@@ -258,7 +190,7 @@ function Ui(s, t) {
258
190
  }
259
191
  return this._x0 = e, this._y0 = i, this._x1 = n, this._y1 = a, this;
260
192
  }
261
- function Ki() {
193
+ function qi() {
262
194
  var s = [];
263
195
  return this.visit(function(t) {
264
196
  if (!t.length) do
@@ -266,53 +198,53 @@ function Ki() {
266
198
  while (t = t.next);
267
199
  }), s;
268
200
  }
269
- function Zi(s) {
201
+ function Gi(s) {
270
202
  return arguments.length ? this.cover(+s[0][0], +s[0][1]).cover(+s[1][0], +s[1][1]) : isNaN(this._x0) ? void 0 : [[this._x0, this._y0], [this._x1, this._y1]];
271
203
  }
272
- function Y(s, t, e, i, n) {
204
+ function q(s, t, e, i, n) {
273
205
  this.node = s, this.x0 = t, this.y0 = e, this.x1 = i, this.y1 = n;
274
206
  }
275
- function Qi(s, t, e) {
276
- var i, n = this._x0, a = this._y0, o, h, r, l, u = this._x1, f = this._y1, c = [], g = this._root, v, d;
277
- for (g && c.push(new Y(g, n, a, u, f)), e == null ? e = 1 / 0 : (n = s - e, a = t - e, u = s + e, f = t + e, e *= e); v = c.pop(); )
278
- if (!(!(g = v.node) || (o = v.x0) > u || (h = v.y0) > f || (r = v.x1) < n || (l = v.y1) < a))
207
+ function ji(s, t, e) {
208
+ var i, n = this._x0, a = this._y0, o, h, r, l, u = this._x1, c = this._y1, f = [], g = this._root, p, d;
209
+ for (g && f.push(new q(g, n, a, u, c)), e == null ? e = 1 / 0 : (n = s - e, a = t - e, u = s + e, c = t + e, e *= e); p = f.pop(); )
210
+ if (!(!(g = p.node) || (o = p.x0) > u || (h = p.y0) > c || (r = p.x1) < n || (l = p.y1) < a))
279
211
  if (g.length) {
280
- var p = (o + r) / 2, y = (h + l) / 2;
281
- c.push(
282
- new Y(g[3], p, y, r, l),
283
- new Y(g[2], o, y, p, l),
284
- new Y(g[1], p, h, r, y),
285
- new Y(g[0], o, h, p, y)
286
- ), (d = (t >= y) << 1 | s >= p) && (v = c[c.length - 1], c[c.length - 1] = c[c.length - 1 - d], c[c.length - 1 - d] = v);
212
+ var v = (o + r) / 2, y = (h + l) / 2;
213
+ f.push(
214
+ new q(g[3], v, y, r, l),
215
+ new q(g[2], o, y, v, l),
216
+ new q(g[1], v, h, r, y),
217
+ new q(g[0], o, h, v, y)
218
+ ), (d = (t >= y) << 1 | s >= v) && (p = f[f.length - 1], f[f.length - 1] = f[f.length - 1 - d], f[f.length - 1 - d] = p);
287
219
  } else {
288
220
  var m = s - +this._x.call(null, g.data), _ = t - +this._y.call(null, g.data), x = m * m + _ * _;
289
221
  if (x < e) {
290
222
  var w = Math.sqrt(e = x);
291
- n = s - w, a = t - w, u = s + w, f = t + w, i = g.data;
223
+ n = s - w, a = t - w, u = s + w, c = t + w, i = g.data;
292
224
  }
293
225
  }
294
226
  return i;
295
227
  }
296
- function Ji(s) {
297
- if (isNaN(u = +this._x.call(null, s)) || isNaN(f = +this._y.call(null, s))) return this;
298
- var t, e = this._root, i, n, a, o = this._x0, h = this._y0, r = this._x1, l = this._y1, u, f, c, g, v, d, p, y;
228
+ function Ui(s) {
229
+ if (isNaN(u = +this._x.call(null, s)) || isNaN(c = +this._y.call(null, s))) return this;
230
+ var t, e = this._root, i, n, a, o = this._x0, h = this._y0, r = this._x1, l = this._y1, u, c, f, g, p, d, v, y;
299
231
  if (!e) return this;
300
232
  if (e.length) for (; ; ) {
301
- if ((v = u >= (c = (o + r) / 2)) ? o = c : r = c, (d = f >= (g = (h + l) / 2)) ? h = g : l = g, t = e, !(e = e[p = d << 1 | v])) return this;
233
+ if ((p = u >= (f = (o + r) / 2)) ? o = f : r = f, (d = c >= (g = (h + l) / 2)) ? h = g : l = g, t = e, !(e = e[v = d << 1 | p])) return this;
302
234
  if (!e.length) break;
303
- (t[p + 1 & 3] || t[p + 2 & 3] || t[p + 3 & 3]) && (i = t, y = p);
235
+ (t[v + 1 & 3] || t[v + 2 & 3] || t[v + 3 & 3]) && (i = t, y = v);
304
236
  }
305
237
  for (; e.data !== s; ) if (n = e, !(e = e.next)) return this;
306
- return (a = e.next) && delete e.next, n ? (a ? n.next = a : delete n.next, this) : t ? (a ? t[p] = a : delete t[p], (e = t[0] || t[1] || t[2] || t[3]) && e === (t[3] || t[2] || t[1] || t[0]) && !e.length && (i ? i[y] = e : this._root = e), this) : (this._root = a, this);
238
+ return (a = e.next) && delete e.next, n ? (a ? n.next = a : delete n.next, this) : t ? (a ? t[v] = a : delete t[v], (e = t[0] || t[1] || t[2] || t[3]) && e === (t[3] || t[2] || t[1] || t[0]) && !e.length && (i ? i[y] = e : this._root = e), this) : (this._root = a, this);
307
239
  }
308
- function tn(s) {
240
+ function $i(s) {
309
241
  for (var t = 0, e = s.length; t < e; ++t) this.remove(s[t]);
310
242
  return this;
311
243
  }
312
- function en() {
244
+ function Ki() {
313
245
  return this._root;
314
246
  }
315
- function nn() {
247
+ function Zi() {
316
248
  var s = 0;
317
249
  return this.visit(function(t) {
318
250
  if (!t.length) do
@@ -320,22 +252,22 @@ function nn() {
320
252
  while (t = t.next);
321
253
  }), s;
322
254
  }
323
- function sn(s) {
255
+ function Qi(s) {
324
256
  var t = [], e, i = this._root, n, a, o, h, r;
325
- for (i && t.push(new Y(i, this._x0, this._y0, this._x1, this._y1)); e = t.pop(); )
257
+ for (i && t.push(new q(i, this._x0, this._y0, this._x1, this._y1)); e = t.pop(); )
326
258
  if (!s(i = e.node, a = e.x0, o = e.y0, h = e.x1, r = e.y1) && i.length) {
327
259
  var l = (a + h) / 2, u = (o + r) / 2;
328
- (n = i[3]) && t.push(new Y(n, l, u, h, r)), (n = i[2]) && t.push(new Y(n, a, u, l, r)), (n = i[1]) && t.push(new Y(n, l, o, h, u)), (n = i[0]) && t.push(new Y(n, a, o, l, u));
260
+ (n = i[3]) && t.push(new q(n, l, u, h, r)), (n = i[2]) && t.push(new q(n, a, u, l, r)), (n = i[1]) && t.push(new q(n, l, o, h, u)), (n = i[0]) && t.push(new q(n, a, o, l, u));
329
261
  }
330
262
  return this;
331
263
  }
332
- function rn(s) {
264
+ function Ji(s) {
333
265
  var t = [], e = [], i;
334
- for (this._root && t.push(new Y(this._root, this._x0, this._y0, this._x1, this._y1)); i = t.pop(); ) {
266
+ for (this._root && t.push(new q(this._root, this._x0, this._y0, this._x1, this._y1)); i = t.pop(); ) {
335
267
  var n = i.node;
336
268
  if (n.length) {
337
- var a, o = i.x0, h = i.y0, r = i.x1, l = i.y1, u = (o + r) / 2, f = (h + l) / 2;
338
- (a = n[0]) && t.push(new Y(a, o, h, u, f)), (a = n[1]) && t.push(new Y(a, u, h, r, f)), (a = n[2]) && t.push(new Y(a, o, f, u, l)), (a = n[3]) && t.push(new Y(a, u, f, r, l));
269
+ var a, o = i.x0, h = i.y0, r = i.x1, l = i.y1, u = (o + r) / 2, c = (h + l) / 2;
270
+ (a = n[0]) && t.push(new q(a, o, h, u, c)), (a = n[1]) && t.push(new q(a, u, h, r, c)), (a = n[2]) && t.push(new q(a, o, c, u, l)), (a = n[3]) && t.push(new q(a, u, c, r, l));
339
271
  }
340
272
  e.push(i);
341
273
  }
@@ -343,53 +275,53 @@ function rn(s) {
343
275
  s(i.node, i.x0, i.y0, i.x1, i.y1);
344
276
  return this;
345
277
  }
346
- function an(s) {
278
+ function tn(s) {
347
279
  return s[0];
348
280
  }
349
- function on(s) {
281
+ function en(s) {
350
282
  return arguments.length ? (this._x = s, this) : this._x;
351
283
  }
352
- function ln(s) {
284
+ function nn(s) {
353
285
  return s[1];
354
286
  }
355
- function hn(s) {
287
+ function sn(s) {
356
288
  return arguments.length ? (this._y = s, this) : this._y;
357
289
  }
358
- function fe(s, t, e) {
359
- var i = new ge(t ?? an, e ?? ln, NaN, NaN, NaN, NaN);
290
+ function le(s, t, e) {
291
+ var i = new he(t ?? tn, e ?? nn, NaN, NaN, NaN, NaN);
360
292
  return s == null ? i : i.addAll(s);
361
293
  }
362
- function ge(s, t, e, i, n, a) {
294
+ function he(s, t, e, i, n, a) {
363
295
  this._x = s, this._y = t, this._x0 = e, this._y0 = i, this._x1 = n, this._y1 = a, this._root = void 0;
364
296
  }
365
- function Re(s) {
297
+ function Ae(s) {
366
298
  for (var t = { data: s.data }, e = t; s = s.next; ) e = e.next = { data: s.data };
367
299
  return t;
368
300
  }
369
- var U = fe.prototype = ge.prototype;
370
- U.copy = function() {
371
- var s = new ge(this._x, this._y, this._x0, this._y0, this._x1, this._y1), t = this._root, e, i;
301
+ var $ = le.prototype = he.prototype;
302
+ $.copy = function() {
303
+ var s = new he(this._x, this._y, this._x0, this._y0, this._x1, this._y1), t = this._root, e, i;
372
304
  if (!t) return s;
373
- if (!t.length) return s._root = Re(t), s;
305
+ if (!t.length) return s._root = Ae(t), s;
374
306
  for (e = [{ source: t, target: s._root = new Array(4) }]; t = e.pop(); )
375
307
  for (var n = 0; n < 4; ++n)
376
- (i = t.source[n]) && (i.length ? e.push({ source: i, target: t.target[n] = new Array(4) }) : t.target[n] = Re(i));
308
+ (i = t.source[n]) && (i.length ? e.push({ source: i, target: t.target[n] = new Array(4) }) : t.target[n] = Ae(i));
377
309
  return s;
378
310
  };
379
- U.add = ji;
380
- U.addAll = $i;
381
- U.cover = Ui;
382
- U.data = Ki;
383
- U.extent = Zi;
384
- U.find = Qi;
385
- U.remove = Ji;
386
- U.removeAll = tn;
387
- U.root = en;
388
- U.size = nn;
389
- U.visit = sn;
390
- U.visitAfter = rn;
391
- U.x = on;
392
- U.y = hn;
311
+ $.add = Xi;
312
+ $.addAll = Vi;
313
+ $.cover = Yi;
314
+ $.data = qi;
315
+ $.extent = Gi;
316
+ $.find = ji;
317
+ $.remove = Ui;
318
+ $.removeAll = $i;
319
+ $.root = Ki;
320
+ $.size = Zi;
321
+ $.visit = Qi;
322
+ $.visitAfter = Ji;
323
+ $.x = en;
324
+ $.y = sn;
393
325
  function j(s) {
394
326
  return function() {
395
327
  return s;
@@ -398,29 +330,29 @@ function j(s) {
398
330
  function st(s) {
399
331
  return (s() - 0.5) * 1e-6;
400
332
  }
401
- function cn(s) {
333
+ function rn(s) {
402
334
  return s.x + s.vx;
403
335
  }
404
- function un(s) {
336
+ function an(s) {
405
337
  return s.y + s.vy;
406
338
  }
407
- function fn(s) {
339
+ function on(s) {
408
340
  var t, e, i, n = 1, a = 1;
409
341
  typeof s != "function" && (s = j(s == null ? 1 : +s));
410
342
  function o() {
411
- for (var l, u = t.length, f, c, g, v, d, p, y = 0; y < a; ++y)
412
- for (f = fe(t, cn, un).visitAfter(h), l = 0; l < u; ++l)
413
- c = t[l], d = e[c.index], p = d * d, g = c.x + c.vx, v = c.y + c.vy, f.visit(m);
414
- function m(_, x, w, k, A) {
415
- var N = _.data, C = _.r, b = d + C;
416
- if (N) {
417
- if (N.index > c.index) {
418
- var S = g - N.x - N.vx, W = v - N.y - N.vy, B = S * S + W * W;
419
- B < b * b && (S === 0 && (S = st(i), B += S * S), W === 0 && (W = st(i), B += W * W), B = (b - (B = Math.sqrt(B))) / B * n, c.vx += (S *= B) * (b = (C *= C) / (p + C)), c.vy += (W *= B) * b, N.vx -= S * (b = 1 - b), N.vy -= W * b);
343
+ for (var l, u = t.length, c, f, g, p, d, v, y = 0; y < a; ++y)
344
+ for (c = le(t, rn, an).visitAfter(h), l = 0; l < u; ++l)
345
+ f = t[l], d = e[f.index], v = d * d, g = f.x + f.vx, p = f.y + f.vy, c.visit(m);
346
+ function m(_, x, w, b, A) {
347
+ var k = _.data, C = _.r, N = d + C;
348
+ if (k) {
349
+ if (k.index > f.index) {
350
+ var S = g - k.x - k.vx, M = p - k.y - k.vy, O = S * S + M * M;
351
+ O < N * N && (S === 0 && (S = st(i), O += S * S), M === 0 && (M = st(i), O += M * M), O = (N - (O = Math.sqrt(O))) / O * n, f.vx += (S *= O) * (N = (C *= C) / (v + C)), f.vy += (M *= O) * N, k.vx -= S * (N = 1 - N), k.vy -= M * N);
420
352
  }
421
353
  return;
422
354
  }
423
- return x > g + b || k < g - b || w > v + b || A < v - b;
355
+ return x > g + N || b < g - N || w > p + N || A < p - N;
424
356
  }
425
357
  }
426
358
  function h(l) {
@@ -430,8 +362,8 @@ function fn(s) {
430
362
  }
431
363
  function r() {
432
364
  if (t) {
433
- var l, u = t.length, f;
434
- for (e = new Array(u), l = 0; l < u; ++l) f = t[l], e[f.index] = +s(f, l, t);
365
+ var l, u = t.length, c;
366
+ for (e = new Array(u), l = 0; l < u; ++l) c = t[l], e[c.index] = +s(c, l, t);
435
367
  }
436
368
  }
437
369
  return o.initialize = function(l, u) {
@@ -444,109 +376,109 @@ function fn(s) {
444
376
  return arguments.length ? (s = typeof l == "function" ? l : j(+l), r(), o) : s;
445
377
  }, o;
446
378
  }
447
- function gn(s) {
379
+ function ln(s) {
448
380
  return s.index;
449
381
  }
450
- function Te(s, t) {
382
+ function Pe(s, t) {
451
383
  var e = s.get(t);
452
384
  if (!e) throw new Error("node not found: " + t);
453
385
  return e;
454
386
  }
455
- function jt(s) {
456
- var t = gn, e = f, i, n = j(30), a, o, h, r, l, u = 1;
387
+ function Yt(s) {
388
+ var t = ln, e = c, i, n = j(30), a, o, h, r, l, u = 1;
457
389
  s == null && (s = []);
458
- function f(p) {
459
- return 1 / Math.min(h[p.source.index], h[p.target.index]);
390
+ function c(v) {
391
+ return 1 / Math.min(h[v.source.index], h[v.target.index]);
460
392
  }
461
- function c(p) {
393
+ function f(v) {
462
394
  for (var y = 0, m = s.length; y < u; ++y)
463
- for (var _ = 0, x, w, k, A, N, C, b; _ < m; ++_)
464
- x = s[_], w = x.source, k = x.target, A = k.x + k.vx - w.x - w.vx || st(l), N = k.y + k.vy - w.y - w.vy || st(l), C = Math.sqrt(A * A + N * N), C = (C - a[_]) / C * p * i[_], A *= C, N *= C, k.vx -= A * (b = r[_]), k.vy -= N * b, w.vx += A * (b = 1 - b), w.vy += N * b;
395
+ for (var _ = 0, x, w, b, A, k, C, N; _ < m; ++_)
396
+ x = s[_], w = x.source, b = x.target, A = b.x + b.vx - w.x - w.vx || st(l), k = b.y + b.vy - w.y - w.vy || st(l), C = Math.sqrt(A * A + k * k), C = (C - a[_]) / C * v * i[_], A *= C, k *= C, b.vx -= A * (N = r[_]), b.vy -= k * N, w.vx += A * (N = 1 - N), w.vy += k * N;
465
397
  }
466
398
  function g() {
467
399
  if (o) {
468
- var p, y = o.length, m = s.length, _ = new Map(o.map((w, k) => [t(w, k, o), w])), x;
469
- for (p = 0, h = new Array(y); p < m; ++p)
470
- x = s[p], x.index = p, typeof x.source != "object" && (x.source = Te(_, x.source)), typeof x.target != "object" && (x.target = Te(_, x.target)), h[x.source.index] = (h[x.source.index] || 0) + 1, h[x.target.index] = (h[x.target.index] || 0) + 1;
471
- for (p = 0, r = new Array(m); p < m; ++p)
472
- x = s[p], r[p] = h[x.source.index] / (h[x.source.index] + h[x.target.index]);
473
- i = new Array(m), v(), a = new Array(m), d();
400
+ var v, y = o.length, m = s.length, _ = new Map(o.map((w, b) => [t(w, b, o), w])), x;
401
+ for (v = 0, h = new Array(y); v < m; ++v)
402
+ x = s[v], x.index = v, typeof x.source != "object" && (x.source = Pe(_, x.source)), typeof x.target != "object" && (x.target = Pe(_, x.target)), h[x.source.index] = (h[x.source.index] || 0) + 1, h[x.target.index] = (h[x.target.index] || 0) + 1;
403
+ for (v = 0, r = new Array(m); v < m; ++v)
404
+ x = s[v], r[v] = h[x.source.index] / (h[x.source.index] + h[x.target.index]);
405
+ i = new Array(m), p(), a = new Array(m), d();
474
406
  }
475
407
  }
476
- function v() {
408
+ function p() {
477
409
  if (o)
478
- for (var p = 0, y = s.length; p < y; ++p)
479
- i[p] = +e(s[p], p, s);
410
+ for (var v = 0, y = s.length; v < y; ++v)
411
+ i[v] = +e(s[v], v, s);
480
412
  }
481
413
  function d() {
482
414
  if (o)
483
- for (var p = 0, y = s.length; p < y; ++p)
484
- a[p] = +n(s[p], p, s);
485
- }
486
- return c.initialize = function(p, y) {
487
- o = p, l = y, g();
488
- }, c.links = function(p) {
489
- return arguments.length ? (s = p, g(), c) : s;
490
- }, c.id = function(p) {
491
- return arguments.length ? (t = p, c) : t;
492
- }, c.iterations = function(p) {
493
- return arguments.length ? (u = +p, c) : u;
494
- }, c.strength = function(p) {
495
- return arguments.length ? (e = typeof p == "function" ? p : j(+p), v(), c) : e;
496
- }, c.distance = function(p) {
497
- return arguments.length ? (n = typeof p == "function" ? p : j(+p), d(), c) : n;
498
- }, c;
499
- }
500
- const dn = 1664525, pn = 1013904223, ze = 4294967296;
501
- function vn() {
415
+ for (var v = 0, y = s.length; v < y; ++v)
416
+ a[v] = +n(s[v], v, s);
417
+ }
418
+ return f.initialize = function(v, y) {
419
+ o = v, l = y, g();
420
+ }, f.links = function(v) {
421
+ return arguments.length ? (s = v, g(), f) : s;
422
+ }, f.id = function(v) {
423
+ return arguments.length ? (t = v, f) : t;
424
+ }, f.iterations = function(v) {
425
+ return arguments.length ? (u = +v, f) : u;
426
+ }, f.strength = function(v) {
427
+ return arguments.length ? (e = typeof v == "function" ? v : j(+v), p(), f) : e;
428
+ }, f.distance = function(v) {
429
+ return arguments.length ? (n = typeof v == "function" ? v : j(+v), d(), f) : n;
430
+ }, f;
431
+ }
432
+ const hn = 1664525, cn = 1013904223, Ce = 4294967296;
433
+ function un() {
502
434
  let s = 1;
503
- return () => (s = (dn * s + pn) % ze) / ze;
435
+ return () => (s = (hn * s + cn) % Ce) / Ce;
504
436
  }
505
- function yn(s) {
437
+ function fn(s) {
506
438
  return s.x;
507
439
  }
508
- function mn(s) {
440
+ function gn(s) {
509
441
  return s.y;
510
442
  }
511
- var xn = 10, _n = Math.PI * (3 - Math.sqrt(5));
512
- function wn(s) {
513
- var t, e = 1, i = 1e-3, n = 1 - Math.pow(i, 1 / 300), a = 0, o = 0.6, h = /* @__PURE__ */ new Map(), r = Ci(f), l = Ri("tick", "end"), u = vn();
443
+ var dn = 10, pn = Math.PI * (3 - Math.sqrt(5));
444
+ function vn(s) {
445
+ var t, e = 1, i = 1e-3, n = 1 - Math.pow(i, 1 / 300), a = 0, o = 0.6, h = /* @__PURE__ */ new Map(), r = bi(c), l = Ai("tick", "end"), u = un();
514
446
  s == null && (s = []);
515
- function f() {
516
- c(), l.call("tick", t), e < i && (r.stop(), l.call("end", t));
447
+ function c() {
448
+ f(), l.call("tick", t), e < i && (r.stop(), l.call("end", t));
517
449
  }
518
- function c(d) {
519
- var p, y = s.length, m;
450
+ function f(d) {
451
+ var v, y = s.length, m;
520
452
  d === void 0 && (d = 1);
521
453
  for (var _ = 0; _ < d; ++_)
522
454
  for (e += (a - e) * n, h.forEach(function(x) {
523
455
  x(e);
524
- }), p = 0; p < y; ++p)
525
- m = s[p], m.fx == null ? m.x += m.vx *= o : (m.x = m.fx, m.vx = 0), m.fy == null ? m.y += m.vy *= o : (m.y = m.fy, m.vy = 0);
456
+ }), v = 0; v < y; ++v)
457
+ m = s[v], m.fx == null ? m.x += m.vx *= o : (m.x = m.fx, m.vx = 0), m.fy == null ? m.y += m.vy *= o : (m.y = m.fy, m.vy = 0);
526
458
  return t;
527
459
  }
528
460
  function g() {
529
- for (var d = 0, p = s.length, y; d < p; ++d) {
461
+ for (var d = 0, v = s.length, y; d < v; ++d) {
530
462
  if (y = s[d], y.index = d, y.fx != null && (y.x = y.fx), y.fy != null && (y.y = y.fy), isNaN(y.x) || isNaN(y.y)) {
531
- var m = xn * Math.sqrt(0.5 + d), _ = d * _n;
463
+ var m = dn * Math.sqrt(0.5 + d), _ = d * pn;
532
464
  y.x = m * Math.cos(_), y.y = m * Math.sin(_);
533
465
  }
534
466
  (isNaN(y.vx) || isNaN(y.vy)) && (y.vx = y.vy = 0);
535
467
  }
536
468
  }
537
- function v(d) {
469
+ function p(d) {
538
470
  return d.initialize && d.initialize(s, u), d;
539
471
  }
540
472
  return g(), t = {
541
- tick: c,
473
+ tick: f,
542
474
  restart: function() {
543
- return r.restart(f), t;
475
+ return r.restart(c), t;
544
476
  },
545
477
  stop: function() {
546
478
  return r.stop(), t;
547
479
  },
548
480
  nodes: function(d) {
549
- return arguments.length ? (s = d, g(), h.forEach(v), t) : s;
481
+ return arguments.length ? (s = d, g(), h.forEach(p), t) : s;
550
482
  },
551
483
  alpha: function(d) {
552
484
  return arguments.length ? (e = +d, t) : e;
@@ -564,51 +496,51 @@ function wn(s) {
564
496
  return arguments.length ? (o = 1 - d, t) : 1 - o;
565
497
  },
566
498
  randomSource: function(d) {
567
- return arguments.length ? (u = d, h.forEach(v), t) : u;
499
+ return arguments.length ? (u = d, h.forEach(p), t) : u;
568
500
  },
569
- force: function(d, p) {
570
- return arguments.length > 1 ? (p == null ? h.delete(d) : h.set(d, v(p)), t) : h.get(d);
501
+ force: function(d, v) {
502
+ return arguments.length > 1 ? (v == null ? h.delete(d) : h.set(d, p(v)), t) : h.get(d);
571
503
  },
572
- find: function(d, p, y) {
573
- var m = 0, _ = s.length, x, w, k, A, N;
504
+ find: function(d, v, y) {
505
+ var m = 0, _ = s.length, x, w, b, A, k;
574
506
  for (y == null ? y = 1 / 0 : y *= y, m = 0; m < _; ++m)
575
- A = s[m], x = d - A.x, w = p - A.y, k = x * x + w * w, k < y && (N = A, y = k);
576
- return N;
507
+ A = s[m], x = d - A.x, w = v - A.y, b = x * x + w * w, b < y && (k = A, y = b);
508
+ return k;
577
509
  },
578
- on: function(d, p) {
579
- return arguments.length > 1 ? (l.on(d, p), t) : l.on(d);
510
+ on: function(d, v) {
511
+ return arguments.length > 1 ? (l.on(d, v), t) : l.on(d);
580
512
  }
581
513
  };
582
514
  }
583
- function Dn() {
515
+ function yn() {
584
516
  var s, t, e, i, n = j(-30), a, o = 1, h = 1 / 0, r = 0.81;
585
517
  function l(g) {
586
- var v, d = s.length, p = fe(s, yn, mn).visitAfter(f);
587
- for (i = g, v = 0; v < d; ++v) t = s[v], p.visit(c);
518
+ var p, d = s.length, v = le(s, fn, gn).visitAfter(c);
519
+ for (i = g, p = 0; p < d; ++p) t = s[p], v.visit(f);
588
520
  }
589
521
  function u() {
590
522
  if (s) {
591
- var g, v = s.length, d;
592
- for (a = new Array(v), g = 0; g < v; ++g) d = s[g], a[d.index] = +n(d, g, s);
523
+ var g, p = s.length, d;
524
+ for (a = new Array(p), g = 0; g < p; ++g) d = s[g], a[d.index] = +n(d, g, s);
593
525
  }
594
526
  }
595
- function f(g) {
596
- var v = 0, d, p, y = 0, m, _, x;
527
+ function c(g) {
528
+ var p = 0, d, v, y = 0, m, _, x;
597
529
  if (g.length) {
598
530
  for (m = _ = x = 0; x < 4; ++x)
599
- (d = g[x]) && (p = Math.abs(d.value)) && (v += d.value, y += p, m += p * d.x, _ += p * d.y);
531
+ (d = g[x]) && (v = Math.abs(d.value)) && (p += d.value, y += v, m += v * d.x, _ += v * d.y);
600
532
  g.x = m / y, g.y = _ / y;
601
533
  } else {
602
534
  d = g, d.x = d.data.x, d.y = d.data.y;
603
535
  do
604
- v += a[d.data.index];
536
+ p += a[d.data.index];
605
537
  while (d = d.next);
606
538
  }
607
- g.value = v;
539
+ g.value = p;
608
540
  }
609
- function c(g, v, d, p) {
541
+ function f(g, p, d, v) {
610
542
  if (!g.value) return !0;
611
- var y = g.x - t.x, m = g.y - t.y, _ = p - v, x = y * y + m * m;
543
+ var y = g.x - t.x, m = g.y - t.y, _ = v - p, x = y * y + m * m;
612
544
  if (_ * _ / r < x)
613
545
  return x < h && (y === 0 && (y = st(e), x += y * y), m === 0 && (m = st(e), x += m * m), x < o && (x = Math.sqrt(o * x)), t.vx += y * g.value * i / x, t.vy += m * g.value * i / x), !0;
614
546
  if (g.length || x >= h) return;
@@ -617,8 +549,8 @@ function Dn() {
617
549
  g.data !== t && (_ = a[g.data.index] * i / x, t.vx += y * _, t.vy += m * _);
618
550
  while (g = g.next);
619
551
  }
620
- return l.initialize = function(g, v) {
621
- s = g, e = v, u();
552
+ return l.initialize = function(g, p) {
553
+ s = g, e = p, u();
622
554
  }, l.strength = function(g) {
623
555
  return arguments.length ? (n = typeof g == "function" ? g : j(+g), u(), l) : n;
624
556
  }, l.distanceMin = function(g) {
@@ -629,7 +561,7 @@ function Dn() {
629
561
  return arguments.length ? (r = g * g, l) : Math.sqrt(r);
630
562
  }, l;
631
563
  }
632
- function kn(s) {
564
+ function mn(s) {
633
565
  var t = j(0.1), e, i, n;
634
566
  typeof s != "function" && (s = j(s == null ? 0 : +s));
635
567
  function a(h) {
@@ -651,7 +583,7 @@ function kn(s) {
651
583
  return arguments.length ? (s = typeof h == "function" ? h : j(+h), o(), a) : s;
652
584
  }, a;
653
585
  }
654
- function Nn(s) {
586
+ function xn(s) {
655
587
  var t = j(0.1), e, i, n;
656
588
  typeof s != "function" && (s = j(s == null ? 0 : +s));
657
589
  function a(h) {
@@ -673,21 +605,21 @@ function Nn(s) {
673
605
  return arguments.length ? (s = typeof h == "function" ? h : j(+h), o(), a) : s;
674
606
  }, a;
675
607
  }
676
- class ei extends yi {
608
+ class Qe extends di {
677
609
  setupDefaultRules() {
678
610
  super.setupDefaultRules();
679
611
  const t = this._root.interfaceColors, e = this._root.gridLayout, i = this.rule.bind(this);
680
612
  i("Hierarchy").setAll({
681
613
  legendLabelText: "{category}",
682
614
  legendValueText: "{sum.formatNumber('#.#')}",
683
- width: Zt,
684
- height: Zt,
685
- colors: xi.new(this._root, { step: 2 }),
615
+ width: Ut,
616
+ height: Ut,
617
+ colors: vi.new(this._root, { step: 2 }),
686
618
  downDepth: 1,
687
619
  initialDepth: 5,
688
620
  singleBranchOnly: !0,
689
621
  maskContent: !0,
690
- animationEasing: mi(_i)
622
+ animationEasing: pi(yi)
691
623
  }), i("HierarchyNode").setAll({
692
624
  toggleKey: "disabled",
693
625
  setStateOnChildren: !0,
@@ -701,8 +633,8 @@ class ei extends yi {
701
633
  {
702
634
  const n = i("Label", ["hierarchy", "node"]);
703
635
  n.setAll({
704
- centerX: O,
705
- centerY: O,
636
+ centerX: E,
637
+ centerY: E,
706
638
  position: "absolute",
707
639
  paddingBottom: 1,
708
640
  paddingTop: 1,
@@ -712,7 +644,7 @@ class ei extends yi {
712
644
  populateText: !0,
713
645
  oversizedBehavior: "fit",
714
646
  minScale: 0.3
715
- }), V(n, "fill", t, "alternativeText");
647
+ }), X(n, "fill", t, "alternativeText");
716
648
  }
717
649
  {
718
650
  const n = i("HierarchyLink");
@@ -723,7 +655,7 @@ class ei extends yi {
723
655
  strokeOpacity: 1,
724
656
  strength: 0.9,
725
657
  distance: 1.1
726
- }), V(n, "stroke", t, "grid");
658
+ }), X(n, "stroke", t, "grid");
727
659
  }
728
660
  i("Circle", ["linkedhierarchy", "shape"]).setAll({
729
661
  position: "absolute",
@@ -752,15 +684,15 @@ class ei extends yi {
752
684
  cursorOverStyle: "pointer",
753
685
  populateText: !0,
754
686
  text: "{category}:"
755
- }), V(n, "fill", t, "primaryButton");
687
+ }), X(n, "fill", t, "primaryButton");
756
688
  }
757
689
  {
758
690
  const n = i("Label", ["breadcrumb"]).states.create("hover", {});
759
- V(n, "fill", t, "primaryButtonHover");
691
+ X(n, "fill", t, "primaryButtonHover");
760
692
  }
761
693
  {
762
694
  const n = i("Label", ["breadcrumb"]).states.create("down", { stateAnimationDuration: 0 });
763
- V(n, "fill", t, "primaryButtonDown");
695
+ X(n, "fill", t, "primaryButtonDown");
764
696
  }
765
697
  {
766
698
  const n = i("Label", ["breadcrumb", "last"]);
@@ -769,13 +701,13 @@ class ei extends yi {
769
701
  text: "{category}",
770
702
  fontWeight: "bold",
771
703
  cursorOverStyle: "default"
772
- }), V(n, "fill", t, "primaryButton");
704
+ }), X(n, "fill", t, "primaryButton");
773
705
  }
774
706
  {
775
707
  const n = i("RoundedRectangle", ["breadcrumb", "label", "background"]);
776
708
  n.setAll({
777
709
  fillOpacity: 0
778
- }), V(n, "fill", t, "background");
710
+ }), X(n, "fill", t, "background");
779
711
  }
780
712
  i("Partition").setAll({
781
713
  downDepth: 1,
@@ -790,10 +722,10 @@ class ei extends yi {
790
722
  {
791
723
  const n = i("Label", ["partition", "node"]);
792
724
  n.setAll({
793
- x: O,
794
- y: O,
795
- centerY: O,
796
- centerX: O,
725
+ x: E,
726
+ y: E,
727
+ centerY: E,
728
+ centerX: E,
797
729
  paddingBottom: 1,
798
730
  paddingTop: 1,
799
731
  paddingLeft: 1,
@@ -803,7 +735,7 @@ class ei extends yi {
803
735
  text: "{category}",
804
736
  oversizedBehavior: "fit",
805
737
  minScale: 0.4
806
- }), V(n, "fill", t, "alternativeText");
738
+ }), X(n, "fill", t, "alternativeText");
807
739
  }
808
740
  i("Label", ["horizontal", "partition", "node"]).setAll({
809
741
  rotation: 0
@@ -817,7 +749,7 @@ class ei extends yi {
817
749
  cornerRadiusTR: 0,
818
750
  cornerRadiusBL: 0,
819
751
  cornerRadiusTL: 0
820
- }), V(n, "stroke", t, "background");
752
+ }), X(n, "stroke", t, "background");
821
753
  }
822
754
  i("RoundedRectangle", ["partition", "node", "shape", "last"]).setAll({
823
755
  fillOpacity: 0.75
@@ -835,7 +767,7 @@ class ei extends yi {
835
767
  strokeOpacity: 1,
836
768
  strokeWidth: 1,
837
769
  cornerRadius: 0
838
- }), V(n, "stroke", t, "background");
770
+ }), X(n, "stroke", t, "background");
839
771
  }
840
772
  i("Slice", ["sunburst", "node", "shape", "last"]).setAll({
841
773
  fillOpacity: 0.75
@@ -850,18 +782,18 @@ class ei extends yi {
850
782
  paddingTop: 1,
851
783
  paddingLeft: 1,
852
784
  paddingRight: 1,
853
- centerX: O,
785
+ centerX: E,
854
786
  populateText: !0,
855
787
  text: "{category}",
856
788
  oversizedBehavior: "fit",
857
789
  minScale: 0.4,
858
- baseRadius: O,
790
+ baseRadius: E,
859
791
  rotation: 0
860
- }), V(n, "fill", t, "alternativeText");
792
+ }), X(n, "fill", t, "alternativeText");
861
793
  }
862
794
  i("ForceDirected").setAll({
863
- minRadius: qt(1),
864
- maxRadius: qt(8),
795
+ minRadius: Ft(1),
796
+ maxRadius: Ft(8),
865
797
  initialFrames: 500,
866
798
  centerStrength: 0.8,
867
799
  manyBodyStrength: -14,
@@ -894,8 +826,8 @@ class ei extends yi {
894
826
  {
895
827
  const n = i("Label", ["pack", "node"]);
896
828
  n.setAll({
897
- centerY: O,
898
- centerX: O,
829
+ centerY: E,
830
+ centerX: E,
899
831
  paddingBottom: 1,
900
832
  paddingTop: 1,
901
833
  paddingLeft: 1,
@@ -904,7 +836,7 @@ class ei extends yi {
904
836
  text: "{category}",
905
837
  oversizedBehavior: "fit",
906
838
  minScale: 0.4
907
- }), V(n, "fill", t, "alternativeText");
839
+ }), X(n, "fill", t, "alternativeText");
908
840
  }
909
841
  {
910
842
  const n = i("Circle", ["pack", "node", "shape"]);
@@ -912,7 +844,7 @@ class ei extends yi {
912
844
  strokeOpacity: 0.5,
913
845
  fillOpacity: 0.8,
914
846
  strokeWidth: 1
915
- }), V(n, "stroke", t, "background");
847
+ }), X(n, "stroke", t, "background");
916
848
  }
917
849
  i("LinkedHierarchyNode").setAll({
918
850
  draggable: !0
@@ -923,10 +855,10 @@ class ei extends yi {
923
855
  {
924
856
  const n = i("Label", ["treemap", "node"]);
925
857
  n.setAll({
926
- x: O,
927
- y: O,
928
- centerY: O,
929
- centerX: O,
858
+ x: E,
859
+ y: E,
860
+ centerY: E,
861
+ centerX: E,
930
862
  paddingBottom: 1,
931
863
  paddingTop: 1,
932
864
  paddingLeft: 1,
@@ -935,10 +867,10 @@ class ei extends yi {
935
867
  text: "{category}",
936
868
  oversizedBehavior: "fit",
937
869
  minScale: 0.4
938
- }), V(n, "fill", t, "alternativeText");
870
+ }), X(n, "fill", t, "alternativeText");
939
871
  }
940
872
  i("HierarchyNode", ["treemap", "node"]).setAll({
941
- tooltipY: qt(40),
873
+ tooltipY: Ft(40),
942
874
  isMeasured: !1,
943
875
  position: "absolute",
944
876
  cursorOverStyle: "pointer"
@@ -955,7 +887,7 @@ class ei extends yi {
955
887
  cornerRadiusBL: 0,
956
888
  cornerRadiusTL: 0,
957
889
  fillOpacity: 1
958
- }), V(n, "stroke", t, "background");
890
+ }), X(n, "stroke", t, "background");
959
891
  }
960
892
  i("VoronoiTreemap").setAll({
961
893
  type: "polygon",
@@ -970,7 +902,7 @@ class ei extends yi {
970
902
  strokeOpacity: 1,
971
903
  strokeWidth: 1,
972
904
  fillOpacity: 1
973
- }), V(n, "stroke", t, "background");
905
+ }), X(n, "stroke", t, "background");
974
906
  }
975
907
  i("Polygon", ["hierarchy", "node", "shape", "depth1"]).setAll({
976
908
  strokeWidth: 3
@@ -978,8 +910,8 @@ class ei extends yi {
978
910
  {
979
911
  const n = i("Label", ["voronoitreemap"]);
980
912
  n.setAll({
981
- centerY: O,
982
- centerX: O,
913
+ centerY: E,
914
+ centerX: E,
983
915
  paddingBottom: 1,
984
916
  paddingTop: 1,
985
917
  paddingLeft: 1,
@@ -989,15 +921,15 @@ class ei extends yi {
989
921
  oversizedBehavior: "fit",
990
922
  minScale: 0.4,
991
923
  layer: 30
992
- }), V(n, "fill", t, "alternativeText");
924
+ }), X(n, "fill", t, "alternativeText");
993
925
  }
994
926
  }
995
927
  }
996
- class ee extends yt {
928
+ class Zt extends yt {
997
929
  constructor() {
998
- super(...arguments), this.labels = this.addDisposer(new Z(K.new({}), () => Ue._new(this._root, {
930
+ super(...arguments), this.labels = this.addDisposer(new Z(K.new({}), () => Ge._new(this._root, {
999
931
  themeTags: G(this.labels.template.get("themeTags", []), ["label"]),
1000
- background: ce.new(this._root, {
932
+ background: ae.new(this._root, {
1001
933
  themeTags: ["background"]
1002
934
  })
1003
935
  }, [this.labels.template])));
@@ -1013,7 +945,7 @@ class ee extends yt {
1013
945
  }), this.labels.push(e), e;
1014
946
  }
1015
947
  _afterNew() {
1016
- this._defaultThemes.push(ei.new(this._root)), this._settings.themeTags = G(this._settings.themeTags, ["breadcrumb"]), super._afterNew();
948
+ this._defaultThemes.push(Qe.new(this._root)), this._settings.themeTags = G(this._settings.themeTags, ["breadcrumb"]), super._afterNew();
1017
949
  }
1018
950
  _changed() {
1019
951
  if (super._changed(), this.isDirty("series")) {
@@ -1033,8 +965,8 @@ class ee extends yt {
1033
965
  }
1034
966
  }
1035
967
  }
1036
- ee.className = "BreadcrumbBar";
1037
- ee.classNames = yt.classNames.concat([ee.className]);
968
+ Zt.className = "BreadcrumbBar";
969
+ Zt.classNames = yt.classNames.concat([Zt.className]);
1038
970
  class dt extends yt {
1039
971
  _afterNew() {
1040
972
  super._afterNew(), this.states.create("disabled", {}), this.states.create("hover", {}), this.states.create("hoverDisabled", {}), this.on("disabled", () => {
@@ -1058,11 +990,11 @@ class dt extends yt {
1058
990
  }
1059
991
  dt.className = "HierarchyNode";
1060
992
  dt.classNames = yt.classNames.concat([dt.className]);
1061
- class Q extends Ke {
993
+ class Q extends je {
1062
994
  constructor() {
1063
995
  super(...arguments), this.nodesContainer = this.children.push(yt.new(this._root, { isMeasured: !1 })), this._index = 0, this._tag = "hierarchy", this.nodes = this.addDisposer(new Z(K.new({}), () => dt.new(this._root, {
1064
996
  themeTags: G(this.nodes.template.get("themeTags", []), [this._tag, "hierarchy", "node"])
1065
- }, this.nodes.template))), this.labels = this.addDisposer(new Z(K.new({}), () => Ue.new(this._root, {
997
+ }, this.nodes.template))), this.labels = this.addDisposer(new Z(K.new({}), () => Ge.new(this._root, {
1066
998
  themeTags: G(this.labels.template.get("themeTags", []), [this._tag])
1067
999
  }, this.labels.template)));
1068
1000
  }
@@ -1082,13 +1014,13 @@ class Q extends Ke {
1082
1014
  return i.addTag("depth" + a), this.nodesContainer.children.push(i), i.children.push(n), i;
1083
1015
  }
1084
1016
  _afterNew() {
1085
- this._defaultThemes.push(ei.new(this._root)), this.fields.push("category", "childData", "disabled", "fill"), this.children.push(this.bulletsContainer), super._afterNew();
1017
+ this._defaultThemes.push(Qe.new(this._root)), this.fields.push("category", "childData", "disabled", "fill"), this.children.push(this.bulletsContainer), super._afterNew();
1086
1018
  }
1087
1019
  _prepareChildren() {
1088
1020
  if (super._prepareChildren(), this._valuesDirty) {
1089
1021
  this._treeData = {};
1090
1022
  const t = this.dataItems[0];
1091
- if (t && (this._makeHierarchyData(this._treeData, t), this._index = 0, this._rootNode = Pi(this._treeData), this._rootNode)) {
1023
+ if (t && (this._makeHierarchyData(this._treeData, t), this._index = 0, this._rootNode = Ni(this._treeData), this._rootNode)) {
1092
1024
  this._rootNode.sum((i) => i.value);
1093
1025
  const e = this.get("sort");
1094
1026
  e == "descending" ? this._rootNode.sort((i, n) => n.value - i.value) : e == "ascending" && this._rootNode.sort((i, n) => i.value - n.value), this.setPrivateRaw("valueLow", 1 / 0), this.setPrivateRaw("valueHigh", -1 / 0), this.setPrivateRaw("maxDepth", 0), this._updateValues(this._rootNode);
@@ -1163,8 +1095,8 @@ class Q extends Ke {
1163
1095
  if (this.makeNode(t), this._processDataItem(t), e) {
1164
1096
  const l = [];
1165
1097
  t.setRaw("children", l), P(e, (u) => {
1166
- const f = new ke(this, u, this._makeDataItem(u));
1167
- l.push(f), f.setRaw("parent", t), f.setRaw("depth", o + 1), this.dataItems.length == 1 && o == 0 ? (i && f.get("fill") == null && f.setRaw("fill", i.next()), n && f.get("fillPattern") == null && f.setRaw("fillPattern", n.next())) : (f.get("fill") == null && f.setRaw("fill", t.get("fill")), f.get("fillPattern") == null && f.setRaw("fillPattern", t.get("fillPattern"))), this.processDataItem(f);
1098
+ const c = new xe(this, u, this._makeDataItem(u));
1099
+ l.push(c), c.setRaw("parent", t), c.setRaw("depth", o + 1), this.dataItems.length == 1 && o == 0 ? (i && c.get("fill") == null && c.setRaw("fill", i.next()), n && c.get("fillPattern") == null && c.setRaw("fillPattern", n.next())) : (c.get("fill") == null && c.setRaw("fill", t.get("fill")), c.get("fillPattern") == null && c.setRaw("fillPattern", t.get("fillPattern"))), this.processDataItem(c);
1168
1100
  });
1169
1101
  }
1170
1102
  const r = t.get("children");
@@ -1187,17 +1119,17 @@ class Q extends Ke {
1187
1119
  let r = t.get("depth");
1188
1120
  P(a, (l) => {
1189
1121
  let u = !1;
1190
- if (wi(o, (f) => f.dataContext == l ? (u = !0, !1) : !0), !u) {
1191
- const f = new ke(this, l, this._makeDataItem(l));
1192
- if (o.push(f), f.setRaw("parent", t), f.setRaw("depth", r + 1), f.get("fill") == null) {
1193
- let c = t.get("fill");
1194
- if (c == null) {
1122
+ if (mi(o, (c) => c.dataContext == l ? (u = !0, !1) : !0), !u) {
1123
+ const c = new xe(this, l, this._makeDataItem(l));
1124
+ if (o.push(c), c.setRaw("parent", t), c.setRaw("depth", r + 1), c.get("fill") == null) {
1125
+ let f = t.get("fill");
1126
+ if (f == null) {
1195
1127
  const g = this.get("colors");
1196
- g && (c = g.next());
1128
+ g && (f = g.next());
1197
1129
  }
1198
- f.setRaw("fill", c);
1130
+ c.setRaw("fill", f);
1199
1131
  }
1200
- this.processDataItem(f);
1132
+ this.processDataItem(c);
1201
1133
  }
1202
1134
  });
1203
1135
  }
@@ -1210,7 +1142,7 @@ class Q extends Ke {
1210
1142
  e.get("node").set("disabled", e.get("disabled"));
1211
1143
  });
1212
1144
  let n = t.data.value, a = t.value;
1213
- if (n != null && (a = n, t.value = a), X(a)) {
1145
+ if (n != null && (a = n, t.value = a), V(a)) {
1214
1146
  e.setRaw("sum", a), e.setRaw("valuePercentTotal", a / this.dataItems[0].get("sum") * 100);
1215
1147
  let o = 100;
1216
1148
  const h = e.get("parent");
@@ -1237,10 +1169,10 @@ class Q extends Ke {
1237
1169
  n.push(h), this._makeHierarchyData(h, o);
1238
1170
  });
1239
1171
  const a = e.get("valueWorking");
1240
- X(a) && (t.value = a);
1172
+ V(a) && (t.value = a);
1241
1173
  } else {
1242
1174
  const n = e.get("valueWorking");
1243
- X(n) && (t.value = n);
1175
+ V(n) && (t.value = n);
1244
1176
  }
1245
1177
  }
1246
1178
  /**
@@ -1268,14 +1200,14 @@ class Q extends Ke {
1268
1200
  const i = Object.create(null, {
1269
1201
  hideDataItem: { get: () => super.hideDataItem }
1270
1202
  });
1271
- return Ne(this, void 0, void 0, function* () {
1203
+ return _e(this, void 0, void 0, function* () {
1272
1204
  const n = [i.hideDataItem.call(this, t, e)], a = this.states.create("hidden", {});
1273
- if (!X(e)) {
1205
+ if (!V(e)) {
1274
1206
  const u = "stateAnimationDuration";
1275
1207
  e = a.get(u, this.get(u, 0));
1276
1208
  }
1277
1209
  const o = "stateAnimationEasing", h = a.get(o, this.get(o)), r = t.get("children");
1278
- (!r || r.length == 0) && X(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: 0, duration: e, easing: h }).waitForStop());
1210
+ (!r || r.length == 0) && V(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: 0, duration: e, easing: h }).waitForStop());
1279
1211
  const l = t.get("node");
1280
1212
  l.hide(), l.hideTooltip(), r && P(r, (u) => {
1281
1213
  n.push(this.hideDataItem(u));
@@ -1293,11 +1225,11 @@ class Q extends Ke {
1293
1225
  const i = Object.create(null, {
1294
1226
  showDataItem: { get: () => super.showDataItem }
1295
1227
  });
1296
- return Ne(this, void 0, void 0, function* () {
1228
+ return _e(this, void 0, void 0, function* () {
1297
1229
  const n = [i.showDataItem.call(this, t, e)];
1298
- X(e) || (e = this.get("stateAnimationDuration", 0));
1230
+ V(e) || (e = this.get("stateAnimationDuration", 0));
1299
1231
  const a = this.get("stateAnimationEasing"), o = t.get("children");
1300
- (!o || o.length == 0) && X(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: t.get("value"), duration: e, easing: a }).waitForStop()), t.get("node").show(), o && P(o, (r) => {
1232
+ (!o || o.length == 0) && V(t.get("value")) && n.push(t.animate({ key: "valueWorking", to: t.get("value"), duration: e, easing: a }).waitForStop()), t.get("node").show(), o && P(o, (r) => {
1301
1233
  n.push(this.showDataItem(r));
1302
1234
  }), yield Promise.all(n);
1303
1235
  });
@@ -1427,8 +1359,8 @@ class Q extends Ke {
1427
1359
  }
1428
1360
  }
1429
1361
  Q.className = "Hierarchy";
1430
- Q.classNames = Ke.classNames.concat([Q.className]);
1431
- class It extends dt {
1362
+ Q.classNames = je.classNames.concat([Q.className]);
1363
+ class Wt extends dt {
1432
1364
  _afterNew() {
1433
1365
  super._afterNew(), this.states.create("disabled", {}), this.states.create("hover", {}), this.states.create("hoverDisabled", {});
1434
1366
  }
@@ -1452,9 +1384,9 @@ class It extends dt {
1452
1384
  super._onShow(t), this._updateLinks(t);
1453
1385
  }
1454
1386
  }
1455
- It.className = "LinkedHierarchyNode";
1456
- It.classNames = dt.classNames.concat([It.className]);
1457
- class Bt extends Ze {
1387
+ Wt.className = "LinkedHierarchyNode";
1388
+ Wt.classNames = dt.classNames.concat([Wt.className]);
1389
+ class Mt extends Ue {
1458
1390
  constructor() {
1459
1391
  super(...arguments), this.bullets = [];
1460
1392
  }
@@ -1482,12 +1414,12 @@ class Bt extends Ze {
1482
1414
  if (i && n) {
1483
1415
  const a = i.get("node"), o = n.get("node"), h = a.x(), r = a.y(), l = o.x(), u = o.y();
1484
1416
  this._display.moveTo(h, r), this._display.lineTo(l, u);
1485
- const f = (t = a.dataItem) === null || t === void 0 ? void 0 : t.get("outerCircle").get("radius", 0), c = (e = o.dataItem) === null || e === void 0 ? void 0 : e.get("outerCircle").get("radius", 0), g = Math.hypot(l - h, u - r), v = g - f - c;
1417
+ const c = (t = a.dataItem) === null || t === void 0 ? void 0 : t.get("outerCircle").get("radius", 0), f = (e = o.dataItem) === null || e === void 0 ? void 0 : e.get("outerCircle").get("radius", 0), g = Math.hypot(l - h, u - r), p = g - c - f;
1486
1418
  P(this.bullets, (d) => {
1487
- const p = d.get("sprite");
1488
- if (p) {
1419
+ const v = d.get("sprite");
1420
+ if (v) {
1489
1421
  const y = d.get("locationX", 0.5);
1490
- p.set("x", h + f / g * (l - h) + v / g * (l - h) * y), p.set("y", r + f / g * (u - r) + v / g * (u - r) * y), d.get("autoRotate") && p.set("rotation", Math.atan2(u - r, l - h) * 180 / Math.PI + d.get("autoRotateAngle", 0));
1422
+ v.set("x", h + c / g * (l - h) + p / g * (l - h) * y), v.set("y", r + c / g * (u - r) + p / g * (u - r) * y), d.get("autoRotate") && v.set("rotation", Math.atan2(u - r, l - h) * 180 / Math.PI + d.get("autoRotateAngle", 0));
1491
1423
  }
1492
1424
  });
1493
1425
  }
@@ -1529,19 +1461,19 @@ class Bt extends Ze {
1529
1461
  }), this.bullets = [];
1530
1462
  }
1531
1463
  }
1532
- Bt.className = "HierarchyLink";
1533
- Bt.classNames = Ze.classNames.concat([Bt.className]);
1464
+ Mt.className = "HierarchyLink";
1465
+ Mt.classNames = Ue.classNames.concat([Mt.className]);
1534
1466
  class lt extends Q {
1535
1467
  constructor() {
1536
- super(...arguments), this.linkBullets = new Di(), this.nodes = this.addDisposer(new Z(K.new({}), () => It._new(this._root, {
1468
+ super(...arguments), this.linkBullets = new xi(), this.nodes = this.addDisposer(new Z(K.new({}), () => Wt._new(this._root, {
1537
1469
  themeTags: G(this.nodes.template.get("themeTags", []), [this._tag, "linkedhierarchy", "hierarchy", "node"]),
1538
1470
  x: this.width() / 2,
1539
1471
  y: this.height() / 2
1540
- }, [this.nodes.template]))), this.circles = this.addDisposer(new Z(K.new({}), () => Jt._new(this._root, {
1472
+ }, [this.nodes.template]))), this.circles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
1541
1473
  themeTags: G(this.circles.template.get("themeTags", []), [this._tag, "shape"])
1542
- }, [this.circles.template]))), this.outerCircles = this.addDisposer(new Z(K.new({}), () => Jt._new(this._root, {
1474
+ }, [this.circles.template]))), this.outerCircles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
1543
1475
  themeTags: G(this.outerCircles.template.get("themeTags", []), [this._tag, "outer", "shape"])
1544
- }, [this.outerCircles.template]))), this.links = this.addDisposer(new Z(K.new({}), () => Bt._new(this._root, {
1476
+ }, [this.outerCircles.template]))), this.links = this.addDisposer(new Z(K.new({}), () => Mt._new(this._root, {
1545
1477
  themeTags: G(this.links.template.get("themeTags", []), [this._tag, "linkedhierarchy", "hierarchy", "link"])
1546
1478
  }, [this.links.template]))), this.linksContainer = this.children.moveValue(yt.new(this._root, {}), 0);
1547
1479
  }
@@ -1632,7 +1564,7 @@ class lt extends Q {
1632
1564
  const o = e.get("links");
1633
1565
  return o && P(o, (h) => {
1634
1566
  h.get("target") == t && (n = h);
1635
- }), n || (n = this.links.make(), n.series = this, this.links.push(n), this.linksContainer.children.push(n), n.set("source", t), n.set("target", e), n._setDataItem(t), n._handleBullets(this.linkBullets), n.set("stroke", t.get("fill")), i != null && n.set("strength", i), t.get("childLinks").push(n), be(t.get("links"), n), be(e.get("links"), n), this._processLink(n, t, e)), n;
1567
+ }), n || (n = this.links.make(), n.series = this, this.links.push(n), this.linksContainer.children.push(n), n.set("source", t), n.set("target", e), n._setDataItem(t), n._handleBullets(this.linkBullets), n.set("stroke", t.get("fill")), i != null && n.set("strength", i), t.get("childLinks").push(n), we(t.get("links"), n), we(e.get("links"), n), this._processLink(n, t, e)), n;
1636
1568
  }
1637
1569
  /**
1638
1570
  * Unlink two linked data items.
@@ -1644,11 +1576,11 @@ class lt extends Q {
1644
1576
  let i;
1645
1577
  const n = t.get("links");
1646
1578
  n && P(n, (o) => {
1647
- o && o.get("target") == e && (i = o, Qt(n, i));
1579
+ o && o.get("target") == e && (i = o, $t(n, i));
1648
1580
  });
1649
1581
  const a = e.get("links");
1650
1582
  a && P(a, (o) => {
1651
- o && o.get("target") == t && (i = o, Qt(a, i));
1583
+ o && o.get("target") == t && (i = o, $t(a, i));
1652
1584
  }), i && this._disposeLink(i), this._handleUnlink();
1653
1585
  }
1654
1586
  _handleUnlink() {
@@ -1699,9 +1631,9 @@ class lt extends Q {
1699
1631
  }
1700
1632
  lt.className = "LinkedHierarchy";
1701
1633
  lt.classNames = Q.classNames.concat([lt.className]);
1702
- class ie extends lt {
1634
+ class Qt extends lt {
1703
1635
  constructor() {
1704
- super(...arguments), this._tag = "forcedirected", this.d3forceSimulation = wn(), this.collisionForce = fn(20), this.linkForce = jt(), this._nodes = [], this._links = [], this._tick = 0, this._nodesDirty = !1;
1636
+ super(...arguments), this._tag = "forcedirected", this.d3forceSimulation = vn(), this.collisionForce = on(20), this.linkForce = Yt(), this._nodes = [], this._links = [], this._tick = 0, this._nodesDirty = !1;
1705
1637
  }
1706
1638
  _afterNew() {
1707
1639
  super._afterNew(), this.d3forceSimulation.on("tick", () => {
@@ -1738,7 +1670,7 @@ class ie extends lt {
1738
1670
  _updateValues(t) {
1739
1671
  super._updateValues(t), this._nodesDirty = !0;
1740
1672
  const e = this.d3forceSimulation;
1741
- e.force("collision", this.collisionForce), e.nodes(this._nodes), this.linkForce = jt(this._links), e.force("link", this.linkForce);
1673
+ e.force("collision", this.collisionForce), e.nodes(this._nodes), this.linkForce = Yt(this._links), e.force("link", this.linkForce);
1742
1674
  }
1743
1675
  _updateVisuals() {
1744
1676
  super._updateVisuals(), this.restartSimulation(0.3);
@@ -1748,12 +1680,12 @@ class ie extends lt {
1748
1680
  const t = this.d3forceSimulation;
1749
1681
  if (this._sizeDirty) {
1750
1682
  let e = Math.max(50, this.innerWidth()), i = Math.max(50, this.innerHeight()), n = this.get("paddingTop", 0), a = this.get("paddingLeft", 0), o = this.get("centerStrength", 1);
1751
- t.force("x", kn().x(e / 2 + a).strength(o * 100 / e)), t.force("y", Nn().y(i / 2 + n).strength(o * 100 / i));
1683
+ t.force("x", mn().x(e / 2 + a).strength(o * 100 / e)), t.force("y", xn().y(i / 2 + n).strength(o * 100 / i));
1752
1684
  }
1753
1685
  this._nodesDirty && this._updateForces();
1754
1686
  }
1755
1687
  _updateForces() {
1756
- this.d3forceSimulation.force("manybody", Dn().strength((e) => {
1688
+ this.d3forceSimulation.force("manybody", yn().strength((e) => {
1757
1689
  let i = e.dataItem, n = i.get("node"), a = i.get("circle"), o = this.get("manyBodyStrength", -15);
1758
1690
  return a ? a.get("radius", 1) * n.get("scale", 1) * o : 0;
1759
1691
  })), this.collisionForce.radius((e) => {
@@ -1828,16 +1760,16 @@ class ie extends lt {
1828
1760
  _updateRadius(t) {
1829
1761
  let e = (this.innerWidth() + this.innerHeight()) / 2, i = ut(this.get("minRadius", 1), e), n = ut(this.get("maxRadius", 5), e), a = t.get("sum"), o = n;
1830
1762
  const h = this.getPrivate("valueLow", 0), r = this.getPrivate("valueHigh", 0);
1831
- r > 0 && (o = i + (a - h) / (r - h) * (n - i)), X(o) || (o = i);
1763
+ r > 0 && (o = i + (a - h) / (r - h) * (n - i)), V(o) || (o = i);
1832
1764
  const l = this.get("animationDuration", 0), u = this.get("animationEasing");
1833
1765
  t.get("circle").animate({ key: "radius", to: o, duration: l, easing: u });
1834
1766
  }
1835
1767
  _processLink(t, e, i) {
1836
1768
  const n = { link: t, source: e.get("d3ForceNode").index, target: i.get("d3ForceNode").index, sourceDataItem: e, targetDataItem: i };
1837
- this._links.push(n), t.setPrivate("d3Link", n), this.linkForce = jt(this._links), this.d3forceSimulation.force("link", this.linkForce), this.restartSimulation(0.5);
1769
+ this._links.push(n), t.setPrivate("d3Link", n), this.linkForce = Yt(this._links), this.d3forceSimulation.force("link", this.linkForce), this.restartSimulation(0.5);
1838
1770
  }
1839
1771
  _disposeLink(t) {
1840
- super._disposeLink(t), Qt(this._links, t.getPrivate("d3Link"));
1772
+ super._disposeLink(t), $t(this._links, t.getPrivate("d3Link"));
1841
1773
  }
1842
1774
  _handleUnlink() {
1843
1775
  this.restartSimulation(0.5);
@@ -1846,11 +1778,11 @@ class ie extends lt {
1846
1778
  super._onDataClear(), this._nodes = [], this._links = [];
1847
1779
  }
1848
1780
  }
1849
- ie.className = "ForceDirected";
1850
- ie.classNames = lt.classNames.concat([ie.className]);
1851
- class ne extends Q {
1781
+ Qt.className = "ForceDirected";
1782
+ Qt.classNames = lt.classNames.concat([Qt.className]);
1783
+ class Jt extends Q {
1852
1784
  constructor() {
1853
- super(...arguments), this._tag = "pack", this._packLayout = Ti(), this.circles = this.addDisposer(new Z(K.new({}), () => Jt._new(this._root, {
1785
+ super(...arguments), this._tag = "pack", this._packLayout = Pi(), this.circles = this.addDisposer(new Z(K.new({}), () => Kt._new(this._root, {
1854
1786
  themeTags: G(this.circles.template.get("themeTags", []), [this._tag, "shape"])
1855
1787
  }, [this.circles.template])));
1856
1788
  }
@@ -1870,8 +1802,8 @@ class ne extends Q {
1870
1802
  super._updateNode(t);
1871
1803
  const e = t.get("node"), i = t.get("circle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleR", 1), o = n.x * a, h = n.y * a, r = n.r * a, l = this.get("animationDuration", 0), u = this.get("animationEasing");
1872
1804
  if (e.animate({ key: "x", to: o, duration: l, easing: u }), e.animate({ key: "y", to: h, duration: l, easing: u }), i) {
1873
- const f = t.get("fill"), c = t.get("fillPattern");
1874
- i.animate({ key: "radius", to: r, duration: l, easing: u }), i._setDefault("fill", f), i._setDefault("fillPattern", c), i._setDefault("stroke", f);
1805
+ const c = t.get("fill"), f = t.get("fillPattern");
1806
+ i.animate({ key: "radius", to: r, duration: l, easing: u }), i._setDefault("fill", c), i._setDefault("fillPattern", f), i._setDefault("stroke", c);
1875
1807
  }
1876
1808
  }
1877
1809
  _updateNodesScale(t) {
@@ -1907,13 +1839,13 @@ class ne extends Q {
1907
1839
  l.animate({ key: "x", from: l.x(), to: this.width() / 2 - i * o, duration: r, easing: h }), l.animate({ key: "y", from: l.y(), to: this.height() / 2 - n * o, duration: r, easing: h });
1908
1840
  }
1909
1841
  }
1910
- ne.className = "Pack";
1911
- ne.classNames = Q.classNames.concat([ne.className]);
1912
- class kt extends Q {
1842
+ Jt.className = "Pack";
1843
+ Jt.classNames = Q.classNames.concat([Jt.className]);
1844
+ class wt extends Q {
1913
1845
  constructor() {
1914
- super(...arguments), this._tag = "partition", this.rectangles = this.addDisposer(new Z(K.new({}), () => ce._new(this._root, {
1846
+ super(...arguments), this._tag = "partition", this.rectangles = this.addDisposer(new Z(K.new({}), () => ae._new(this._root, {
1915
1847
  themeTags: G(this.rectangles.template.get("themeTags", []), [this._tag, "shape"])
1916
- }, [this.rectangles.template]))), this._partitionLayout = Je();
1848
+ }, [this.rectangles.template]))), this._partitionLayout = Ke();
1917
1849
  }
1918
1850
  _afterNew() {
1919
1851
  this._settings.themeTags = G(this._settings.themeTags, ["partition", this._settings.orientation || "vertical"]), super._afterNew(), this.setPrivate("scaleX", 1), this.setPrivate("scaleY", 1);
@@ -1927,7 +1859,7 @@ class kt extends Q {
1927
1859
  let e = this.innerWidth(), i = this.innerHeight();
1928
1860
  this.get("orientation") == "horizontal" && ([e, i] = [i, e]), t.size([e, i]);
1929
1861
  const n = this.get("nodePadding");
1930
- X(n) && t.padding(n), t(this._rootNode), this._updateNodes(this._rootNode);
1862
+ V(n) && t.padding(n), t(this._rootNode), this._updateNodes(this._rootNode);
1931
1863
  }
1932
1864
  }
1933
1865
  _updateNode(t) {
@@ -1935,11 +1867,11 @@ class kt extends Q {
1935
1867
  const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1);
1936
1868
  let h, r, l, u;
1937
1869
  this.get("orientation") == "horizontal" ? (h = n.y0 * a, r = n.y1 * a, l = n.x0 * o, u = n.x1 * o) : (h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o);
1938
- let f = r - h, c = u - l;
1939
- const g = this.get("animationDuration", 0), v = this.get("animationEasing");
1940
- if (e.animate({ key: "x", to: h, duration: g, easing: v }), e.animate({ key: "y", to: l, duration: g, easing: v }), e.animate({ key: "width", to: f, duration: g, easing: v }), e.animate({ key: "height", to: c, duration: g, easing: v }), i) {
1941
- const d = t.get("fill"), p = t.get("fillPattern");
1942
- i.animate({ key: "width", to: f, duration: g, easing: v }), i.animate({ key: "height", to: c, duration: g, easing: v }), i._setDefault("fill", d), i._setDefault("fillPattern", p), i._setDefault("stroke", d);
1870
+ let c = r - h, f = u - l;
1871
+ const g = this.get("animationDuration", 0), p = this.get("animationEasing");
1872
+ if (e.animate({ key: "x", to: h, duration: g, easing: p }), e.animate({ key: "y", to: l, duration: g, easing: p }), e.animate({ key: "width", to: c, duration: g, easing: p }), e.animate({ key: "height", to: f, duration: g, easing: p }), i) {
1873
+ const d = t.get("fill"), v = t.get("fillPattern");
1874
+ i.animate({ key: "width", to: c, duration: g, easing: p }), i.animate({ key: "height", to: f, duration: g, easing: p }), i._setDefault("fill", d), i._setDefault("fillPattern", v), i._setDefault("stroke", d);
1943
1875
  }
1944
1876
  }
1945
1877
  _updateNodesScale(t) {
@@ -1948,11 +1880,11 @@ class kt extends Q {
1948
1880
  const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1);
1949
1881
  let h, r, l, u;
1950
1882
  this.get("orientation") == "horizontal" ? (h = t.y0 * a, r = t.y1 * a, l = t.x0 * o, u = t.x1 * o) : (h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o);
1951
- const f = r - h, c = u - l;
1952
- i.setAll({ x: h, y: l, width: f, height: c }), n.setAll({ width: f, height: c });
1883
+ const c = r - h, f = u - l;
1884
+ i.setAll({ x: h, y: l, width: c, height: f }), n.setAll({ width: c, height: f });
1953
1885
  const g = t.children;
1954
- g && P(g, (v) => {
1955
- this._updateNodesScale(v);
1886
+ g && P(g, (p) => {
1887
+ this._updateNodesScale(p);
1956
1888
  });
1957
1889
  }
1958
1890
  }
@@ -1975,31 +1907,31 @@ class kt extends Q {
1975
1907
  }
1976
1908
  _zoom(t) {
1977
1909
  let e = 0, i = 0, n = 0, a = 0;
1978
- const o = this.get("upDepth", 0) + 1, h = this.get("topDepth", 0), r = this.innerWidth(), l = this.innerHeight(), u = this.getPrivate("maxDepth", 1), f = l / (u + 1), c = r / (u + 1), g = Math.min(this.get("initialDepth", 1), u);
1979
- let v = this._currentDownDepth;
1980
- if (v == null && (v = this.get("downDepth", 1)), t) {
1910
+ const o = this.get("upDepth", 0) + 1, h = this.get("topDepth", 0), r = this.innerWidth(), l = this.innerHeight(), u = this.getPrivate("maxDepth", 1), c = l / (u + 1), f = r / (u + 1), g = Math.min(this.get("initialDepth", 1), u);
1911
+ let p = this._currentDownDepth;
1912
+ if (p == null && (p = this.get("downDepth", 1)), t) {
1981
1913
  const _ = t.get("d3HierarchyNode");
1982
1914
  let x = _.depth;
1983
- this.get("orientation") == "horizontal" ? (e = _.y0, i = _.y1, n = _.x0, a = _.x1, e = i - c * o, i = e + c * (v + 1), x < h && (n = 0, a = l, e = c * h, i = e + c * g)) : (e = _.x0, i = _.x1, n = _.y0, a = _.y1, n = a - f * o, a = n + f * (v + 1), x < h && (e = 0, i = r, n = f * h, a = n + f * g));
1915
+ this.get("orientation") == "horizontal" ? (e = _.y0, i = _.y1, n = _.x0, a = _.x1, e = i - f * o, i = e + f * (p + 1), x < h && (n = 0, a = l, e = f * h, i = e + f * g)) : (e = _.x0, i = _.x1, n = _.y0, a = _.y1, n = a - c * o, a = n + c * (p + 1), x < h && (e = 0, i = r, n = c * h, a = n + c * g));
1984
1916
  }
1985
- let d = r / (i - e), p = l / (a - n);
1917
+ let d = r / (i - e), v = l / (a - n);
1986
1918
  const y = this.get("animationEasing");
1987
1919
  let m = this.get("animationDuration", 0);
1988
- this.inited || (m = 0), this.animatePrivate({ key: "scaleX", to: d, duration: m, easing: y }), this.animatePrivate({ key: "scaleY", to: p, duration: m, easing: y }), this.animate({ key: "_d", from: 0, to: 1, duration: m, easing: y }), this.nodesContainer.animate({ key: "x", to: -e * d, duration: m, easing: y }), this.nodesContainer.animate({ key: "y", to: -n * p, duration: m, easing: y });
1920
+ this.inited || (m = 0), this.animatePrivate({ key: "scaleX", to: d, duration: m, easing: y }), this.animatePrivate({ key: "scaleY", to: v, duration: m, easing: y }), this.animate({ key: "_d", from: 0, to: 1, duration: m, easing: y }), this.nodesContainer.animate({ key: "x", to: -e * d, duration: m, easing: y }), this.nodesContainer.animate({ key: "y", to: -n * v, duration: m, easing: y });
1989
1921
  }
1990
1922
  }
1991
- kt.className = "Partition";
1992
- kt.classNames = Q.classNames.concat([kt.className]);
1993
- class se extends kt {
1923
+ wt.className = "Partition";
1924
+ wt.classNames = Q.classNames.concat([wt.className]);
1925
+ class te extends wt {
1994
1926
  constructor() {
1995
- super(...arguments), this._tag = "sunburst", this._partitionLayout = Je(), this.slices = this.addDisposer(new Z(K.new({}), () => zi._new(this._root, {
1927
+ super(...arguments), this._tag = "sunburst", this._partitionLayout = Ke(), this.slices = this.addDisposer(new Z(K.new({}), () => Ri._new(this._root, {
1996
1928
  themeTags: G(this.slices.template.get("themeTags", []), [this._tag, "hierarchy", "node", "shape"])
1997
- }, [this.slices.template]))), this.labels = this.addDisposer(new Z(K.new({}), () => Li._new(this._root, {
1929
+ }, [this.slices.template]))), this.labels = this.addDisposer(new Z(K.new({}), () => Ti._new(this._root, {
1998
1930
  themeTags: G(this.labels.template.get("themeTags", []), [this._tag])
1999
1931
  }, [this.labels.template])));
2000
1932
  }
2001
1933
  _afterNew() {
2002
- super._afterNew(), this.nodesContainer.setAll({ x: O, y: O }), this.setPrivateRaw("dx", 0), this.setPrivateRaw("dr", 0);
1934
+ super._afterNew(), this.nodesContainer.setAll({ x: E, y: E }), this.setPrivateRaw("dx", 0), this.setPrivateRaw("dr", 0);
2003
1935
  }
2004
1936
  _prepareChildren() {
2005
1937
  super._prepareChildren(), (this.isPrivateDirty("dr") || this.isPrivateDirty("dx")) && this._rootNode && this._updateNodesScale(this._rootNode);
@@ -2007,41 +1939,41 @@ class se extends kt {
2007
1939
  _updateVisuals() {
2008
1940
  if (this._rootNode) {
2009
1941
  const t = this._partitionLayout;
2010
- let e = ki(0, 0, this.get("startAngle", 0), this.get("endAngle", 360), 1), i = this.innerWidth(), n = this.innerHeight();
1942
+ let e = _i(0, 0, this.get("startAngle", 0), this.get("endAngle", 360), 1), i = this.innerWidth(), n = this.innerHeight();
2011
1943
  const a = i / (e.right - e.left), o = n / (e.bottom - e.top);
2012
- let h = Math.min(a, o), r = ut(this.get("radius", Zt), h), l = ut(this.get("innerRadius", 0), r);
1944
+ let h = Math.min(a, o), r = ut(this.get("radius", Ut), h), l = ut(this.get("innerRadius", 0), r);
2013
1945
  l < 0 && (l = r + l), h = r - l, this.setPrivateRaw("innerRadius", l), this.setPrivateRaw("hierarchySize", h), t.size([h, h]), this.nodesContainer.setAll({
2014
1946
  dy: -r * (e.bottom + e.top) / 2,
2015
1947
  dx: -r * (e.right + e.left) / 2
2016
1948
  });
2017
1949
  const u = this.get("nodePadding");
2018
- X(u) && t.padding(u), t(this._rootNode), this._updateNodes(this._rootNode);
1950
+ V(u) && t.padding(u), t(this._rootNode), this._updateNodes(this._rootNode);
2019
1951
  }
2020
1952
  }
2021
1953
  _updateNode(t) {
2022
1954
  super._updateNode(t);
2023
1955
  const e = t.get("d3HierarchyNode");
2024
1956
  t.get("node").setAll({ x: 0, y: 0 });
2025
- const n = this.get("animationDuration", 0), a = this.get("animationEasing"), o = this.getPrivate("scaleX", 1), h = this.getPrivate("scaleY", 1), r = this.getPrivate("dr", 0), l = this.getPrivate("dx", 0), u = e.x0 * o + l, f = e.x1 * o + l, c = e.y0 * h, g = e.y1 * h, v = this.getPrivate("innerRadius"), d = this.getPrivate("hierarchySize", 0), p = t.get("slice");
2026
- if (p) {
2027
- const y = this.get("startAngle", -90), m = this.get("endAngle", 270), _ = y + u / d * (m - y), x = y + f / d * (m - y) - _;
2028
- let w = v + c, k = v + g;
2029
- w -= r, k -= r, k = Math.max(0, k), w = Math.max(0, w), p.animate({ key: "radius", to: k, duration: n, easing: a }), p.animate({ key: "innerRadius", to: w, duration: n, easing: a }), p.animate({ key: "startAngle", to: _, duration: n, easing: a }), p.animate({ key: "arc", to: x, duration: n, easing: a });
2030
- const A = t.get("fill"), N = t.get("fillPattern");
2031
- p._setDefault("fill", A), p._setDefault("fillPattern", N), p._setDefault("stroke", A);
1957
+ const n = this.get("animationDuration", 0), a = this.get("animationEasing"), o = this.getPrivate("scaleX", 1), h = this.getPrivate("scaleY", 1), r = this.getPrivate("dr", 0), l = this.getPrivate("dx", 0), u = e.x0 * o + l, c = e.x1 * o + l, f = e.y0 * h, g = e.y1 * h, p = this.getPrivate("innerRadius"), d = this.getPrivate("hierarchySize", 0), v = t.get("slice");
1958
+ if (v) {
1959
+ const y = this.get("startAngle", -90), m = this.get("endAngle", 270), _ = y + u / d * (m - y), x = y + c / d * (m - y) - _;
1960
+ let w = p + f, b = p + g;
1961
+ w -= r, b -= r, b = Math.max(0, b), w = Math.max(0, w), v.animate({ key: "radius", to: b, duration: n, easing: a }), v.animate({ key: "innerRadius", to: w, duration: n, easing: a }), v.animate({ key: "startAngle", to: _, duration: n, easing: a }), v.animate({ key: "arc", to: x, duration: n, easing: a });
1962
+ const A = t.get("fill"), k = t.get("fillPattern");
1963
+ v._setDefault("fill", A), v._setDefault("fillPattern", k), v._setDefault("stroke", A);
2032
1964
  }
2033
1965
  }
2034
1966
  _updateNodesScale(t) {
2035
1967
  const e = t.data.dataItem;
2036
1968
  if (e) {
2037
- const i = this.getPrivate("scaleX", 1), n = this.getPrivate("scaleY", 1), a = this.getPrivate("dr", 0), o = this.getPrivate("dx", 0), h = t.x0 * i + o, r = t.x1 * i + o, l = t.y0 * n, u = t.y1 * n, f = this.getPrivate("innerRadius"), c = this.getPrivate("hierarchySize", 0), g = e.get("slice");
1969
+ const i = this.getPrivate("scaleX", 1), n = this.getPrivate("scaleY", 1), a = this.getPrivate("dr", 0), o = this.getPrivate("dx", 0), h = t.x0 * i + o, r = t.x1 * i + o, l = t.y0 * n, u = t.y1 * n, c = this.getPrivate("innerRadius"), f = this.getPrivate("hierarchySize", 0), g = e.get("slice");
2038
1970
  if (g) {
2039
- const d = this.get("startAngle", -90), p = this.get("endAngle", 270), y = d + h / c * (p - d), m = d + r / c * (p - d) - y;
2040
- let _ = f + l, x = f + u;
1971
+ const d = this.get("startAngle", -90), v = this.get("endAngle", 270), y = d + h / f * (v - d), m = d + r / f * (v - d) - y;
1972
+ let _ = c + l, x = c + u;
2041
1973
  _ -= a, x -= a, x = Math.max(0, x), _ = Math.max(0, _), g.setAll({ radius: x, innerRadius: _, startAngle: y, arc: m });
2042
1974
  }
2043
- const v = t.children;
2044
- v && P(v, (d) => {
1975
+ const p = t.children;
1976
+ p && P(p, (d) => {
2045
1977
  this._updateNodesScale(d);
2046
1978
  });
2047
1979
  }
@@ -2059,9 +1991,9 @@ class se extends kt {
2059
1991
  _updateLabel(t) {
2060
1992
  const e = t.get("slice"), i = t.get("label");
2061
1993
  if (e && i) {
2062
- let n = e.get("innerRadius", 0), a = e.get("radius", 0), o = e.get("startAngle", 0), h = Math.abs(e.get("arc", 0)), r = o + h / 2, l = i.get("textType"), u = a - n, f = a * h * Ae;
2063
- n == 0 && h >= 360 && l == "radial" && (a = 1, r = 0, u *= 2, f = u), Math.round(h) >= 360 && l == "radial" && (r = 0), l == "circular" && (u = h * Ae * (n + (a - n) / 2) - 10), i.setAll({ labelAngle: r }), i.setPrivate("radius", a), i.setPrivate("innerRadius", n), i.setAll({
2064
- maxHeight: f,
1994
+ let n = e.get("innerRadius", 0), a = e.get("radius", 0), o = e.get("startAngle", 0), h = Math.abs(e.get("arc", 0)), r = o + h / 2, l = i.get("textType"), u = a - n, c = a * h * De;
1995
+ n == 0 && h >= 360 && l == "radial" && (a = 1, r = 0, u *= 2, c = u), Math.round(h) >= 360 && l == "radial" && (r = 0), l == "circular" && (u = h * De * (n + (a - n) / 2) - 10), i.setAll({ labelAngle: r }), i.setPrivate("radius", a), i.setPrivate("innerRadius", n), i.setAll({
1996
+ maxHeight: c,
2065
1997
  maxWidth: u
2066
1998
  });
2067
1999
  }
@@ -2071,16 +2003,16 @@ class se extends kt {
2071
2003
  const a = t.get("d3HierarchyNode");
2072
2004
  let o = this.get("upDepth", 0), h = this.get("topDepth", 0), r = a.depth, l = this.getPrivate("maxDepth", 1), u = this._currentDownDepth;
2073
2005
  u == null && (u = this.get("downDepth", 1));
2074
- const f = n / (l + 1);
2006
+ const c = n / (l + 1);
2075
2007
  r < h && (r = h), r - o < 0 && (o = r), e = a.x0, i = a.x1;
2076
- let c = u + o + 1;
2077
- c > l - h + 1 && (c = l - h + 1);
2078
- let g = n / (i - e), v = n / (f * c), d = Math.max(r - o, h) * f * v;
2079
- const p = this.get("animationEasing");
2008
+ let f = u + o + 1;
2009
+ f > l - h + 1 && (f = l - h + 1);
2010
+ let g = n / (i - e), p = n / (c * f), d = Math.max(r - o, h) * c * p;
2011
+ const v = this.get("animationEasing");
2080
2012
  let y = this.get("animationDuration", 0);
2081
2013
  this.inited || (y = 0);
2082
2014
  let m = -e * g;
2083
- this.animatePrivate({ key: "scaleX", to: g, duration: y, easing: p }), this.animatePrivate({ key: "scaleY", to: v, duration: y, easing: p }), this.animatePrivate({ key: "dr", to: d, duration: y, easing: p }), this.animatePrivate({ key: "dx", to: m, duration: y, easing: p });
2015
+ this.animatePrivate({ key: "scaleX", to: g, duration: y, easing: v }), this.animatePrivate({ key: "scaleY", to: p, duration: y, easing: v }), this.animatePrivate({ key: "dr", to: d, duration: y, easing: v }), this.animatePrivate({ key: "dx", to: m, duration: y, easing: v });
2084
2016
  }
2085
2017
  _handleSingle(t) {
2086
2018
  const e = t.get("parent");
@@ -2095,8 +2027,8 @@ class se extends kt {
2095
2027
  const e = t.get("sprite");
2096
2028
  if (e) {
2097
2029
  const i = e.dataItem, n = t.get("locationX", 0.5), a = t.get("locationY", 0.5), o = i.get("slice"), h = o.get("arc", 0), r = o.get("startAngle", 0) + o.get("arc", 0) * n, l = o.get("innerRadius", 0), u = l + (o.get("radius", 0) - l) * a;
2098
- let f = Ni(r) * u, c = bi(r) * u;
2099
- Pe(h, 5) === 360 && Pe(l, 2) === 0 && (f = 0, c = 0), e.set("x", f), e.set("y", c);
2030
+ let c = wi(r) * u, f = Di(r) * u;
2031
+ ke(h, 5) === 360 && ke(l, 2) === 0 && (c = 0, f = 0), e.set("x", c), e.set("y", f);
2100
2032
  }
2101
2033
  }
2102
2034
  _makeBullet(t, e, i) {
@@ -2111,11 +2043,11 @@ class se extends kt {
2111
2043
  }
2112
2044
  }
2113
2045
  }
2114
- se.className = "Sunburst";
2115
- se.classNames = kt.classNames.concat([se.className]);
2116
- class re extends lt {
2046
+ te.className = "Sunburst";
2047
+ te.classNames = wt.classNames.concat([te.className]);
2048
+ class ee extends lt {
2117
2049
  constructor() {
2118
- super(...arguments), this._tag = "tree", this._hierarchyLayout = Vi();
2050
+ super(...arguments), this._tag = "tree", this._hierarchyLayout = Ei();
2119
2051
  }
2120
2052
  _prepareChildren() {
2121
2053
  super._prepareChildren(), (this.isDirty("orientation") || this.isDirty("inversed")) && this._updateVisuals();
@@ -2132,11 +2064,11 @@ class re extends lt {
2132
2064
  return this.get("orientation") == "vertical" ? e ? { x: t.x, y: this.innerHeight() - t.y } : { x: t.x, y: t.y } : e ? { x: this.innerWidth() - t.y, y: t.x } : { x: t.y, y: t.x };
2133
2065
  }
2134
2066
  }
2135
- re.className = "Tree";
2136
- re.classNames = lt.classNames.concat([re.className]);
2137
- class ae extends Q {
2067
+ ee.className = "Tree";
2068
+ ee.classNames = lt.classNames.concat([ee.className]);
2069
+ class ie extends Q {
2138
2070
  constructor() {
2139
- super(...arguments), this._tag = "treemap", this.rectangleTemplate = K.new({}), this._treemapLayout = Ce().tile(te), this.rectangles = this.addDisposer(new Z(K.new({}), () => ce._new(this._root, {
2071
+ super(...arguments), this._tag = "treemap", this.rectangleTemplate = K.new({}), this._treemapLayout = Ne().tile(be), this.rectangles = this.addDisposer(new Z(K.new({}), () => ae._new(this._root, {
2140
2072
  themeTags: G(this.rectangles.template.get("themeTags", []), [this._tag, "shape"])
2141
2073
  }, [this.rectangles.template])));
2142
2074
  }
@@ -2148,23 +2080,23 @@ class ae extends Q {
2148
2080
  let t;
2149
2081
  switch (this.get("layoutAlgorithm")) {
2150
2082
  case "squarify":
2151
- t = te;
2083
+ t = be;
2152
2084
  break;
2153
2085
  case "binary":
2154
- t = Yi;
2086
+ t = Bi;
2155
2087
  break;
2156
2088
  case "slice":
2157
- t = ue;
2089
+ t = $e;
2158
2090
  break;
2159
2091
  case "dice":
2160
- t = Ft;
2092
+ t = oe;
2161
2093
  break;
2162
2094
  case "sliceDice":
2163
- t = Gi;
2095
+ t = Fi;
2164
2096
  break;
2165
2097
  }
2166
2098
  if (t) {
2167
- this._treemapLayout = Ce().tile(t), this._updateVisuals();
2099
+ this._treemapLayout = Ne().tile(t), this._updateVisuals();
2168
2100
  const e = this.get("selectedDataItem");
2169
2101
  e && this._zoom(e);
2170
2102
  }
@@ -2176,25 +2108,25 @@ class ae extends Q {
2176
2108
  const t = this._treemapLayout;
2177
2109
  t.size([this.innerWidth(), this.innerHeight()]);
2178
2110
  const e = this.get("nodePaddingLeft"), i = this.get("nodePaddingRight"), n = this.get("nodePaddingTop"), a = this.get("nodePaddingBottom"), o = this.get("nodePaddingInner"), h = this.get("nodePaddingOuter");
2179
- X(e) && t.paddingLeft(e), X(i) && t.paddingRight(i), X(n) && t.paddingTop(n), X(a) && t.paddingBottom(a), X(o) && t.paddingInner(o), X(h) && t.paddingOuter(h), t(this._rootNode), this._updateNodes(this._rootNode);
2111
+ V(e) && t.paddingLeft(e), V(i) && t.paddingRight(i), V(n) && t.paddingTop(n), V(a) && t.paddingBottom(a), V(o) && t.paddingInner(o), V(h) && t.paddingOuter(h), t(this._rootNode), this._updateNodes(this._rootNode);
2180
2112
  }
2181
2113
  }
2182
2114
  _updateNode(t) {
2183
2115
  super._updateNode(t);
2184
- const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o, f = r - h, c = u - l, g = this.get("animationDuration", 0), v = this.get("animationEasing");
2185
- if (e.animate({ key: "x", to: h, duration: g, easing: v }), e.animate({ key: "y", to: l, duration: g, easing: v }), e.animate({ key: "width", to: f, duration: g, easing: v }), e.animate({ key: "height", to: c, duration: g, easing: v }), i) {
2186
- const d = t.get("fill"), p = t.get("fillPattern");
2187
- i.animate({ key: "width", to: f, duration: g, easing: v }), i.animate({ key: "height", to: c, duration: g, easing: v }), i._setDefault("fill", d), i._setDefault("fillPattern", p), i._setDefault("stroke", d);
2116
+ const e = t.get("node"), i = t.get("rectangle"), n = t.get("d3HierarchyNode"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = n.x0 * a, r = n.x1 * a, l = n.y0 * o, u = n.y1 * o, c = r - h, f = u - l, g = this.get("animationDuration", 0), p = this.get("animationEasing");
2117
+ if (e.animate({ key: "x", to: h, duration: g, easing: p }), e.animate({ key: "y", to: l, duration: g, easing: p }), e.animate({ key: "width", to: c, duration: g, easing: p }), e.animate({ key: "height", to: f, duration: g, easing: p }), i) {
2118
+ const d = t.get("fill"), v = t.get("fillPattern");
2119
+ i.animate({ key: "width", to: c, duration: g, easing: p }), i.animate({ key: "height", to: f, duration: g, easing: p }), i._setDefault("fill", d), i._setDefault("fillPattern", v), i._setDefault("stroke", d);
2188
2120
  }
2189
2121
  }
2190
2122
  _updateNodesScale(t) {
2191
2123
  const e = t.data.dataItem;
2192
2124
  if (e) {
2193
- const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o, f = r - h, c = u - l;
2194
- i.setAll({ x: h, y: l, width: f, height: c }), n.setAll({ width: f, height: c });
2125
+ const i = e.get("node"), n = e.get("rectangle"), a = this.getPrivate("scaleX", 1), o = this.getPrivate("scaleY", 1), h = t.x0 * a, r = t.x1 * a, l = t.y0 * o, u = t.y1 * o, c = r - h, f = u - l;
2126
+ i.setAll({ x: h, y: l, width: c, height: f }), n.setAll({ width: c, height: f });
2195
2127
  const g = t.children;
2196
- g && P(g, (v) => {
2197
- this._updateNodesScale(v);
2128
+ g && P(g, (p) => {
2129
+ this._updateNodesScale(p);
2198
2130
  });
2199
2131
  }
2200
2132
  }
@@ -2216,8 +2148,8 @@ class ae extends Q {
2216
2148
  const e = t.get("d3HierarchyNode"), i = this.get("nodePaddingOuter", 0);
2217
2149
  let n = e.x0 + i, a = e.x1 - i, o = e.y0 + i, h = e.y1 - i, r = (this.innerWidth() - i * 2) / (a - n), l = (this.innerHeight() - i * 2) / (h - o);
2218
2150
  const u = this.get("animationEasing");
2219
- let f = this.get("animationDuration", 0);
2220
- this.inited || (f = 0), this.animatePrivate({ key: "scaleX", to: r, duration: f, easing: u }), this.animatePrivate({ key: "scaleY", to: l, duration: f, easing: u }), this.nodesContainer.animate({ key: "x", to: i - n * r, duration: f, easing: u }), this.nodesContainer.animate({ key: "y", to: i - o * l, duration: f, easing: u });
2151
+ let c = this.get("animationDuration", 0);
2152
+ this.inited || (c = 0), this.animatePrivate({ key: "scaleX", to: r, duration: c, easing: u }), this.animatePrivate({ key: "scaleY", to: l, duration: c, easing: u }), this.nodesContainer.animate({ key: "x", to: i - n * r, duration: c, easing: u }), this.nodesContainer.animate({ key: "y", to: i - o * l, duration: c, easing: u });
2221
2153
  }
2222
2154
  }
2223
2155
  _selectDataItem(t, e, i) {
@@ -2239,116 +2171,116 @@ class ae extends Q {
2239
2171
  }), n;
2240
2172
  }
2241
2173
  }
2242
- ae.className = "Treemap";
2243
- ae.classNames = Q.classNames.concat([ae.className]);
2244
- function Pt(s) {
2174
+ ie.className = "Treemap";
2175
+ ie.classNames = Q.classNames.concat([ie.className]);
2176
+ function bt(s) {
2245
2177
  for (var t = -1, e = s.length, i, n = s[e - 1], a = 0; ++t < e; )
2246
2178
  i = n, n = s[t], a += i[1] * n[0] - i[0] * n[1];
2247
2179
  return a / 2;
2248
2180
  }
2249
- function bn(s) {
2181
+ function _n(s) {
2250
2182
  for (var t = -1, e = s.length, i = 0, n = 0, a, o = s[e - 1], h, r = 0; ++t < e; )
2251
2183
  a = o, o = s[t], r += h = a[0] * o[1] - o[0] * a[1], i += (a[0] + o[0]) * h, n += (a[1] + o[1]) * h;
2252
2184
  return r *= 3, [i / r, n / r];
2253
2185
  }
2254
- function ii(s, t) {
2255
- for (var e = s.length, i = s[e - 1], n = t[0], a = t[1], o = i[0], h = i[1], r, l, u = !1, f = 0; f < e; ++f)
2256
- i = s[f], r = i[0], l = i[1], l > a != h > a && n < (o - r) * (a - l) / (h - l) + r && (u = !u), o = r, h = l;
2186
+ function Je(s, t) {
2187
+ for (var e = s.length, i = s[e - 1], n = t[0], a = t[1], o = i[0], h = i[1], r, l, u = !1, c = 0; c < e; ++c)
2188
+ i = s[c], r = i[0], l = i[1], l > a != h > a && n < (o - r) * (a - l) / (h - l) + r && (u = !u), o = r, h = l;
2257
2189
  return u;
2258
2190
  }
2259
- var pt = 0, wt = 0, _t = 0, ni = 1e3, Ot, Dt, Et = 0, ht = 0, Vt = 0, Nt = typeof performance == "object" && performance.now ? performance : Date, si = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(s) {
2191
+ var pt = 0, xt = 0, mt = 0, ti = 1e3, It, _t, Ot = 0, ht = 0, Et = 0, Dt = typeof performance == "object" && performance.now ? performance : Date, ei = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(s) {
2260
2192
  setTimeout(s, 17);
2261
2193
  };
2262
- function ri() {
2263
- return ht || (si(An), ht = Nt.now() + Vt);
2194
+ function ii() {
2195
+ return ht || (ei(wn), ht = Dt.now() + Et);
2264
2196
  }
2265
- function An() {
2197
+ function wn() {
2266
2198
  ht = 0;
2267
2199
  }
2268
- function oe() {
2200
+ function ne() {
2269
2201
  this._call = this._time = this._next = null;
2270
2202
  }
2271
- oe.prototype = ai.prototype = {
2272
- constructor: oe,
2203
+ ne.prototype = ni.prototype = {
2204
+ constructor: ne,
2273
2205
  restart: function(s, t, e) {
2274
2206
  if (typeof s != "function") throw new TypeError("callback is not a function");
2275
- e = (e == null ? ri() : +e) + (t == null ? 0 : +t), !this._next && Dt !== this && (Dt ? Dt._next = this : Ot = this, Dt = this), this._call = s, this._time = e, le();
2207
+ e = (e == null ? ii() : +e) + (t == null ? 0 : +t), !this._next && _t !== this && (_t ? _t._next = this : It = this, _t = this), this._call = s, this._time = e, se();
2276
2208
  },
2277
2209
  stop: function() {
2278
- this._call && (this._call = null, this._time = 1 / 0, le());
2210
+ this._call && (this._call = null, this._time = 1 / 0, se());
2279
2211
  }
2280
2212
  };
2281
- function ai(s, t, e) {
2282
- var i = new oe();
2213
+ function ni(s, t, e) {
2214
+ var i = new ne();
2283
2215
  return i.restart(s, t, e), i;
2284
2216
  }
2285
- function Pn() {
2286
- ri(), ++pt;
2287
- for (var s = Ot, t; s; )
2217
+ function Dn() {
2218
+ ii(), ++pt;
2219
+ for (var s = It, t; s; )
2288
2220
  (t = ht - s._time) >= 0 && s._call.call(null, t), s = s._next;
2289
2221
  --pt;
2290
2222
  }
2291
- function Le() {
2292
- ht = (Et = Nt.now()) + Vt, pt = wt = 0;
2223
+ function Re() {
2224
+ ht = (Ot = Dt.now()) + Et, pt = xt = 0;
2293
2225
  try {
2294
- Pn();
2226
+ Dn();
2295
2227
  } finally {
2296
- pt = 0, Rn(), ht = 0;
2228
+ pt = 0, Nn(), ht = 0;
2297
2229
  }
2298
2230
  }
2299
- function Cn() {
2300
- var s = Nt.now(), t = s - Et;
2301
- t > ni && (Vt -= t, Et = s);
2231
+ function kn() {
2232
+ var s = Dt.now(), t = s - Ot;
2233
+ t > ti && (Et -= t, Ot = s);
2302
2234
  }
2303
- function Rn() {
2304
- for (var s, t = Ot, e, i = 1 / 0; t; )
2305
- t._call ? (i > t._time && (i = t._time), s = t, t = t._next) : (e = t._next, t._next = null, t = s ? s._next = e : Ot = e);
2306
- Dt = s, le(i);
2235
+ function Nn() {
2236
+ for (var s, t = It, e, i = 1 / 0; t; )
2237
+ t._call ? (i > t._time && (i = t._time), s = t, t = t._next) : (e = t._next, t._next = null, t = s ? s._next = e : It = e);
2238
+ _t = s, se(i);
2307
2239
  }
2308
- function le(s) {
2240
+ function se(s) {
2309
2241
  if (!pt) {
2310
- wt && (wt = clearTimeout(wt));
2242
+ xt && (xt = clearTimeout(xt));
2311
2243
  var t = s - ht;
2312
- t > 24 ? (s < 1 / 0 && (wt = setTimeout(Le, s - Nt.now() - Vt)), _t && (_t = clearInterval(_t))) : (_t || (Et = Nt.now(), _t = setInterval(Cn, ni)), pt = 1, si(Le));
2244
+ t > 24 ? (s < 1 / 0 && (xt = setTimeout(Re, s - Dt.now() - Et)), mt && (mt = clearInterval(mt))) : (mt || (Ot = Dt.now(), mt = setInterval(kn, ti)), pt = 1, ei(Re));
2313
2245
  }
2314
2246
  }
2315
- var Tn = { value: () => {
2247
+ var bn = { value: () => {
2316
2248
  } };
2317
- function oi() {
2249
+ function si() {
2318
2250
  for (var s = 0, t = arguments.length, e = {}, i; s < t; ++s) {
2319
2251
  if (!(i = arguments[s] + "") || i in e || /[\s.]/.test(i)) throw new Error("illegal type: " + i);
2320
2252
  e[i] = [];
2321
2253
  }
2322
- return new Ct(e);
2254
+ return new At(e);
2323
2255
  }
2324
- function Ct(s) {
2256
+ function At(s) {
2325
2257
  this._ = s;
2326
2258
  }
2327
- function zn(s, t) {
2259
+ function An(s, t) {
2328
2260
  return s.trim().split(/^|\s+/).map(function(e) {
2329
2261
  var i = "", n = e.indexOf(".");
2330
2262
  if (n >= 0 && (i = e.slice(n + 1), e = e.slice(0, n)), e && !t.hasOwnProperty(e)) throw new Error("unknown type: " + e);
2331
2263
  return { type: e, name: i };
2332
2264
  });
2333
2265
  }
2334
- Ct.prototype = oi.prototype = {
2335
- constructor: Ct,
2266
+ At.prototype = si.prototype = {
2267
+ constructor: At,
2336
2268
  on: function(s, t) {
2337
- var e = this._, i = zn(s + "", e), n, a = -1, o = i.length;
2269
+ var e = this._, i = An(s + "", e), n, a = -1, o = i.length;
2338
2270
  if (arguments.length < 2) {
2339
- for (; ++a < o; ) if ((n = (s = i[a]).type) && (n = Ln(e[n], s.name))) return n;
2271
+ for (; ++a < o; ) if ((n = (s = i[a]).type) && (n = Pn(e[n], s.name))) return n;
2340
2272
  return;
2341
2273
  }
2342
2274
  if (t != null && typeof t != "function") throw new Error("invalid callback: " + t);
2343
2275
  for (; ++a < o; )
2344
- if (n = (s = i[a]).type) e[n] = Se(e[n], s.name, t);
2345
- else if (t == null) for (n in e) e[n] = Se(e[n], s.name, null);
2276
+ if (n = (s = i[a]).type) e[n] = Te(e[n], s.name, t);
2277
+ else if (t == null) for (n in e) e[n] = Te(e[n], s.name, null);
2346
2278
  return this;
2347
2279
  },
2348
2280
  copy: function() {
2349
2281
  var s = {}, t = this._;
2350
2282
  for (var e in t) s[e] = t[e].slice();
2351
- return new Ct(s);
2283
+ return new At(s);
2352
2284
  },
2353
2285
  call: function(s, t) {
2354
2286
  if ((n = arguments.length - 2) > 0) for (var e = new Array(n), i = 0, n, a; i < n; ++i) e[i] = arguments[i + 2];
@@ -2360,81 +2292,81 @@ Ct.prototype = oi.prototype = {
2360
2292
  for (var i = this._[s], n = 0, a = i.length; n < a; ++n) i[n].value.apply(t, e);
2361
2293
  }
2362
2294
  };
2363
- function Ln(s, t) {
2295
+ function Pn(s, t) {
2364
2296
  for (var e = 0, i = s.length, n; e < i; ++e)
2365
2297
  if ((n = s[e]).name === t)
2366
2298
  return n.value;
2367
2299
  }
2368
- function Se(s, t, e) {
2300
+ function Te(s, t, e) {
2369
2301
  for (var i = 0, n = s.length; i < n; ++i)
2370
2302
  if (s[i].name === t) {
2371
- s[i] = Tn, s = s.slice(0, i).concat(s.slice(i + 1));
2303
+ s[i] = bn, s = s.slice(0, i).concat(s.slice(i + 1));
2372
2304
  break;
2373
2305
  }
2374
2306
  return e != null && s.push({ name: t, value: e }), s;
2375
2307
  }
2376
- function Me(s, t) {
2308
+ function ze(s, t) {
2377
2309
  let e, i;
2378
2310
  for (const n of s)
2379
2311
  n != null && (e === void 0 ? n >= n && (e = i = n) : (e > n && (e = n), i < n && (i = n)));
2380
2312
  return [e, i];
2381
2313
  }
2382
- function Sn(s, t, e) {
2314
+ function Cn(s, t, e) {
2383
2315
  return (t[0] - s[0]) * (e[1] - s[1]) - (t[1] - s[1]) * (e[0] - s[0]);
2384
2316
  }
2385
- function Mn(s, t) {
2317
+ function Rn(s, t) {
2386
2318
  return s[0] - t[0] || s[1] - t[1];
2387
2319
  }
2388
- function He(s) {
2320
+ function Le(s) {
2389
2321
  const t = s.length, e = [0, 1];
2390
2322
  let i = 2, n;
2391
2323
  for (n = 2; n < t; ++n) {
2392
- for (; i > 1 && Sn(s[e[i - 2]], s[e[i - 1]], s[n]) <= 0; ) --i;
2324
+ for (; i > 1 && Cn(s[e[i - 2]], s[e[i - 1]], s[n]) <= 0; ) --i;
2393
2325
  e[i++] = n;
2394
2326
  }
2395
2327
  return e.slice(0, i);
2396
2328
  }
2397
- function Hn(s) {
2329
+ function Tn(s) {
2398
2330
  if ((e = s.length) < 3) return null;
2399
2331
  var t, e, i = new Array(e), n = new Array(e);
2400
2332
  for (t = 0; t < e; ++t) i[t] = [+s[t][0], +s[t][1], t];
2401
- for (i.sort(Mn), t = 0; t < e; ++t) n[t] = [i[t][0], -i[t][1]];
2402
- var a = He(i), o = He(n), h = o[0] === a[0], r = o[o.length - 1] === a[a.length - 1], l = [];
2333
+ for (i.sort(Rn), t = 0; t < e; ++t) n[t] = [i[t][0], -i[t][1]];
2334
+ var a = Le(i), o = Le(n), h = o[0] === a[0], r = o[o.length - 1] === a[a.length - 1], l = [];
2403
2335
  for (t = a.length - 1; t >= 0; --t) l.push(s[i[a[t]][2]]);
2404
2336
  for (t = +h; t < o.length - r; ++t) l.push(s[i[o[t]][2]]);
2405
2337
  return l;
2406
2338
  }
2407
- function Wn(s) {
2339
+ function zn(s) {
2408
2340
  for (var t = -1, e = s.length, i = s[e - 1], n, a, o = i[0], h = i[1], r = 0; ++t < e; )
2409
2341
  n = o, a = h, i = s[t], o = i[0], h = i[1], n -= o, a -= h, r += Math.hypot(n, a);
2410
2342
  return r;
2411
2343
  }
2412
2344
  var rt = 1e-10;
2413
- function Rt(s) {
2345
+ function Pt(s) {
2414
2346
  return s <= rt && s >= -rt;
2415
2347
  }
2416
2348
  function vt(s, t) {
2417
2349
  return s.x * t.x + s.y * t.y + s.z * t.z;
2418
2350
  }
2419
- function We(s, t) {
2420
- return Rt(s.x * t.y - s.y * t.x) && Rt(s.y * t.z - s.z * t.y) && Rt(s.z * t.x - s.x * t.z);
2351
+ function Se(s, t) {
2352
+ return Pt(s.x * t.y - s.y * t.x) && Pt(s.y * t.z - s.z * t.y) && Pt(s.z * t.x - s.x * t.z);
2421
2353
  }
2422
- function In(s) {
2354
+ function Ln(s) {
2423
2355
  var t, e, i, n, a, o, h, r;
2424
- if (i = s[s.length - 2], n = s[s.length - 1], a = s[0], o = bt(i, n), h = bt(n, a), e = $t(o, h), t = Math.sign(e), i = n, n = a, a = s[1], o = h, h = bt(n, a), e = $t(o, h), Math.sign(e) === t) {
2356
+ if (i = s[s.length - 2], n = s[s.length - 1], a = s[0], o = kt(i, n), h = kt(n, a), e = qt(o, h), t = Math.sign(e), i = n, n = a, a = s[1], o = h, h = kt(n, a), e = qt(o, h), Math.sign(e) === t) {
2425
2357
  for (r = 2; r < s.length - 1; r++)
2426
- if (i = n, n = a, a = s[r], o = h, h = bt(n, a), e = $t(o, h), Math.sign(e) !== t)
2358
+ if (i = n, n = a, a = s[r], o = h, h = kt(n, a), e = qt(o, h), Math.sign(e) !== t)
2427
2359
  return;
2428
2360
  return t;
2429
2361
  }
2430
2362
  }
2431
- function bt(s, t) {
2363
+ function kt(s, t) {
2432
2364
  return [t[0] - s[0], t[1] - s[1]];
2433
2365
  }
2434
- function $t(s, t) {
2366
+ function qt(s, t) {
2435
2367
  return s[0] * t[1] - s[1] * t[0];
2436
2368
  }
2437
- function Bn(s, t) {
2369
+ function Sn(s, t) {
2438
2370
  this.face = s, this.vert = t, this.nextf = null, this.prevf = null, this.nextv = null, this.prevv = null;
2439
2371
  }
2440
2372
  function at(s) {
@@ -2490,31 +2422,31 @@ et.prototype.crossproduct = function(s) {
2490
2422
  et.prototype.equals = function(s) {
2491
2423
  return this.x === s.x && this.y === s.y && this.z === s.z;
2492
2424
  };
2493
- function de(s) {
2425
+ function ce(s) {
2494
2426
  var t = s.verts[0], e = s.verts[1], i = s.verts[2];
2495
2427
  this.a = t.y * (e.z - i.z) + e.y * (i.z - t.z) + i.y * (t.z - e.z), this.b = t.z * (e.x - i.x) + e.z * (i.x - t.x) + i.z * (t.x - e.x), this.c = t.x * (e.y - i.y) + e.x * (i.y - t.y) + i.x * (t.y - e.y), this.d = -1 * (t.x * (e.y * i.z - i.y * e.z) + e.x * (i.y * t.z - t.y * i.z) + i.x * (t.y * e.z - e.y * t.z));
2496
2428
  }
2497
- de.prototype.getNormZPlane = function() {
2429
+ ce.prototype.getNormZPlane = function() {
2498
2430
  return [
2499
2431
  -1 * (this.a / this.c),
2500
2432
  -1 * (this.b / this.c),
2501
2433
  -1 * (this.d / this.c)
2502
2434
  ];
2503
2435
  };
2504
- de.prototype.getDualPointMappedToPlane = function() {
2505
- var s = this.getNormZPlane(), t = new On(s[0] / 2, s[1] / 2);
2436
+ ce.prototype.getDualPointMappedToPlane = function() {
2437
+ var s = this.getNormZPlane(), t = new Hn(s[0] / 2, s[1] / 2);
2506
2438
  return t;
2507
2439
  };
2508
- function On(s, t) {
2440
+ function Hn(s, t) {
2509
2441
  this.x = s, this.y = t;
2510
2442
  }
2511
- function pe(s, t, e) {
2443
+ function ue(s, t, e) {
2512
2444
  this.x = s, this.y = t, this.z = e;
2513
2445
  }
2514
- pe.prototype.negate = function() {
2446
+ ue.prototype.negate = function() {
2515
2447
  this.x *= -1, this.y *= -1, this.z *= -1;
2516
2448
  };
2517
- pe.prototype.normalize = function() {
2449
+ ue.prototype.normalize = function() {
2518
2450
  var s = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);
2519
2451
  s > 0 && (this.x /= s, this.y /= s, this.z /= s);
2520
2452
  };
@@ -2540,38 +2472,38 @@ function ot(s) {
2540
2472
  }
2541
2473
  ot.prototype.name = "d3WeightedVoronoiError";
2542
2474
  ot.prototype = new Error();
2543
- function $(s, t, e, i) {
2475
+ function U(s, t, e, i) {
2544
2476
  this.conflicts = new at(!0), this.verts = [s, t, e], this.marked = !1;
2545
2477
  var n = s.subtract(t).crossproduct(t.subtract(e));
2546
- this.normal = new pe(-n.x, -n.y, -n.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, i != null && this.orient(i);
2478
+ this.normal = new ue(-n.x, -n.y, -n.z), this.normal.normalize(), this.createEdges(), this.dualPoint = null, i != null && this.orient(i);
2547
2479
  }
2548
- $.prototype.getDualPoint = function() {
2480
+ U.prototype.getDualPoint = function() {
2549
2481
  if (this.dualPoint == null) {
2550
- var s = new de(this);
2482
+ var s = new ce(this);
2551
2483
  this.dualPoint = s.getDualPointMappedToPlane();
2552
2484
  }
2553
2485
  return this.dualPoint;
2554
2486
  };
2555
- $.prototype.isVisibleFromBelow = function() {
2487
+ U.prototype.isVisibleFromBelow = function() {
2556
2488
  return this.normal.z < -14259414393190911e-25;
2557
2489
  };
2558
- $.prototype.createEdges = function() {
2490
+ U.prototype.createEdges = function() {
2559
2491
  this.edges = [], this.edges[0] = new gt(this.verts[0], this.verts[1], this), this.edges[1] = new gt(this.verts[1], this.verts[2], this), this.edges[2] = new gt(this.verts[2], this.verts[0], this), this.edges[0].next = this.edges[1], this.edges[0].prev = this.edges[2], this.edges[1].next = this.edges[2], this.edges[1].prev = this.edges[0], this.edges[2].next = this.edges[0], this.edges[2].prev = this.edges[1];
2560
2492
  };
2561
- $.prototype.orient = function(s) {
2493
+ U.prototype.orient = function(s) {
2562
2494
  if (!(vt(this.normal, s) < vt(this.normal, this.verts[0]))) {
2563
2495
  var t = this.verts[1];
2564
2496
  this.verts[1] = this.verts[2], this.verts[2] = t, this.normal.negate(), this.createEdges();
2565
2497
  }
2566
2498
  };
2567
- $.prototype.getEdge = function(s, t) {
2499
+ U.prototype.getEdge = function(s, t) {
2568
2500
  for (var e = 0; e < 3; e++)
2569
2501
  if (this.edges[e].isEqual(s, t))
2570
2502
  return this.edges[e];
2571
2503
  return null;
2572
2504
  };
2573
- $.prototype.link = function(s, t, e) {
2574
- if (s instanceof $) {
2505
+ U.prototype.link = function(s, t, e) {
2506
+ if (s instanceof U) {
2575
2507
  var i = s.getEdge(t, e);
2576
2508
  if (i === null)
2577
2509
  throw new ot("when linking, twin is null");
@@ -2584,16 +2516,16 @@ $.prototype.link = function(s, t, e) {
2584
2516
  i.twin = n, n.twin = i;
2585
2517
  }
2586
2518
  };
2587
- $.prototype.conflict = function(s) {
2519
+ U.prototype.conflict = function(s) {
2588
2520
  return vt(this.normal, s) > vt(this.normal, this.verts[0]) + rt;
2589
2521
  };
2590
- $.prototype.getHorizon = function() {
2522
+ U.prototype.getHorizon = function() {
2591
2523
  for (var s = 0; s < 3; s++)
2592
2524
  if (this.edges[s].twin !== null && this.edges[s].twin.isHorizon())
2593
2525
  return this.edges[s];
2594
2526
  return null;
2595
2527
  };
2596
- $.prototype.removeConflict = function() {
2528
+ U.prototype.removeConflict = function() {
2597
2529
  this.conflicts.removeAll();
2598
2530
  };
2599
2531
  function it() {
@@ -2621,21 +2553,21 @@ it.prototype.prep = function() {
2621
2553
  var t, e, i, n, a, o, h, r;
2622
2554
  t = this.points[0], e = this.points[1], i = n = null;
2623
2555
  for (var s = 2; s < this.points.length; s++)
2624
- if (!(We(t, this.points[s]) && We(e, this.points[s]))) {
2556
+ if (!(Se(t, this.points[s]) && Se(e, this.points[s]))) {
2625
2557
  i = this.points[s], i.index = 2, this.points[2].index = s, this.points.splice(s, 1, this.points[2]), this.points.splice(2, 1, i);
2626
2558
  break;
2627
2559
  }
2628
2560
  if (i === null)
2629
2561
  throw new ot("Not enough non-planar Points (v2 is null)");
2630
- r = new $(t, e, i);
2562
+ r = new U(t, e, i);
2631
2563
  for (var s = 3; s < this.points.length; s++)
2632
- if (!Rt(vt(r.normal, r.verts[0]) - vt(r.normal, this.points[s]))) {
2564
+ if (!Pt(vt(r.normal, r.verts[0]) - vt(r.normal, this.points[s]))) {
2633
2565
  n = this.points[s], n.index = 3, this.points[3].index = s, this.points.splice(s, 1, this.points[3]), this.points.splice(3, 1, n);
2634
2566
  break;
2635
2567
  }
2636
2568
  if (n === null)
2637
2569
  throw new ot("Not enough non-planar Points (v3 is null)");
2638
- r.orient(n), a = new $(t, i, n, e), o = new $(t, e, n, i), h = new $(e, i, n, t), this.addFacet(r), this.addFacet(a), this.addFacet(o), this.addFacet(h), r.link(a, t, i), r.link(o, t, e), r.link(h, e, i), a.link(o, t, n), a.link(h, i, n), o.link(h, n, e), this.current = 4;
2570
+ r.orient(n), a = new U(t, i, n, e), o = new U(t, e, n, i), h = new U(e, i, n, t), this.addFacet(r), this.addFacet(a), this.addFacet(o), this.addFacet(h), r.link(a, t, i), r.link(o, t, e), r.link(h, e, i), a.link(o, t, n), a.link(h, i, n), o.link(h, n, e), this.current = 4;
2639
2571
  for (var l, s = this.current; s < this.points.length; s++)
2640
2572
  l = this.points[s], r.conflict(l) && this.addConflict(r, l), a.conflict(l) && this.addConflict(a, l), o.conflict(l) && this.addConflict(o, l), h.conflict(l) && this.addConflict(h, l);
2641
2573
  }, // IN: Faces old1 old2 and fn
@@ -2647,7 +2579,7 @@ it.prototype.addConflicts = function(s, t, e) {
2647
2579
  o = a[r], e.conflict(o) && this.addConflict(e, o);
2648
2580
  };
2649
2581
  it.prototype.addConflict = function(s, t) {
2650
- var e = new Bn(s, t);
2582
+ var e = new Sn(s, t);
2651
2583
  s.conflicts.add(e), t.conflicts.add(e);
2652
2584
  };
2653
2585
  it.prototype.removeConflict = function(s) {
@@ -2679,7 +2611,7 @@ it.prototype.compute = function() {
2679
2611
  break;
2680
2612
  }
2681
2613
  for (var i = null, n = null, a = 0; a < this.horizon.length; a++) {
2682
- var o = this.horizon[a], h = new $(s, o.orig, o.dest, o.twin.next.dest);
2614
+ var o = this.horizon[a], h = new U(s, o.orig, o.dest, o.twin.next.dest);
2683
2615
  h.conflicts = new at(!0), this.addFacet(h), this.created.push(h), this.addConflicts(o.iFace, o.twin.iFace, h), h.link(o), i !== null && h.link(i, s, o.orig), i = h, n === null && (n = h);
2684
2616
  }
2685
2617
  if (n !== null && i !== null && i.link(n, s, this.horizon[0].orig), this.created.length != 0) {
@@ -2693,26 +2625,26 @@ it.prototype.compute = function() {
2693
2625
  it.prototype.clear = function() {
2694
2626
  this.points = [], this.facets = [], this.created = [], this.horizon = [], this.visible = [], this.current = 0;
2695
2627
  };
2696
- function En(s, t) {
2697
- for (var e, i = Be(t), n = -1, a = s.length - Be(s), o, h, r = s[a - 1], l, u, f, c; ++n < a; ) {
2628
+ function Wn(s, t) {
2629
+ for (var e, i = We(t), n = -1, a = s.length - We(s), o, h, r = s[a - 1], l, u, c, f; ++n < a; ) {
2698
2630
  for (e = t.slice(), t.length = 0, l = s[n], u = e[(h = e.length - i) - 1], o = -1; ++o < h; )
2699
- f = e[o], Ut(f, r, l) ? (Ut(u, r, l) || (c = Ie(u, f, r, l), isFinite(c[0]) && t.push(c)), t.push(f)) : Ut(u, r, l) && (c = Ie(u, f, r, l), isFinite(c[0]) && t.push(c)), u = f;
2631
+ c = e[o], Gt(c, r, l) ? (Gt(u, r, l) || (f = He(u, c, r, l), isFinite(f[0]) && t.push(f)), t.push(c)) : Gt(u, r, l) && (f = He(u, c, r, l), isFinite(f[0]) && t.push(f)), u = c;
2700
2632
  i && t.push(t[0]), r = l;
2701
2633
  }
2702
2634
  return t;
2703
2635
  }
2704
- function Ut(s, t, e) {
2636
+ function Gt(s, t, e) {
2705
2637
  return (e[0] - t[0]) * (s[1] - t[1]) < (e[1] - t[1]) * (s[0] - t[0]);
2706
2638
  }
2707
- function Ie(s, t, e, i) {
2708
- var n = s[0], a = e[0], o = t[0] - n, h = i[0] - a, r = s[1], l = e[1], u = t[1] - r, f = i[1] - l, c = (h * (r - l) - f * (n - a)) / (f * o - h * u);
2709
- return [n + c * o, r + c * u];
2639
+ function He(s, t, e, i) {
2640
+ var n = s[0], a = e[0], o = t[0] - n, h = i[0] - a, r = s[1], l = e[1], u = t[1] - r, c = i[1] - l, f = (h * (r - l) - c * (n - a)) / (c * o - h * u);
2641
+ return [n + f * o, r + f * u];
2710
2642
  }
2711
- function Be(s) {
2643
+ function We(s) {
2712
2644
  var t = s[0], e = s[s.length - 1];
2713
2645
  return !(t[0] - e[0] || t[1] - e[1]);
2714
2646
  }
2715
- function Fn(s) {
2647
+ function Mn(s) {
2716
2648
  var t = [], e = s, i = s.dest, n = i.originalObject, a = [];
2717
2649
  do {
2718
2650
  e = e.twin.prev;
@@ -2723,31 +2655,31 @@ function Fn(s) {
2723
2655
  } while (e !== s);
2724
2656
  return n.neighbours = a, t;
2725
2657
  }
2726
- function Vn(s, t, e) {
2658
+ function In(s, t, e) {
2727
2659
  var i = new it();
2728
2660
  i.clear(), i.init(t, s);
2729
2661
  for (var n = i.compute(s), a = [], o = [], h = n.length, r = 0; r < h; r++) {
2730
2662
  var l = n[r];
2731
2663
  if (l.isVisibleFromBelow())
2732
2664
  for (var u = 0; u < 3; u++) {
2733
- var f = l.edges[u], c = f.dest, g = c.originalObject;
2734
- if (!o[c.index]) {
2735
- if (o[c.index] = !0, g.isDummy)
2665
+ var c = l.edges[u], f = c.dest, g = f.originalObject;
2666
+ if (!o[f.index]) {
2667
+ if (o[f.index] = !0, g.isDummy)
2736
2668
  continue;
2737
- for (var v = Fn(f), d = [], p = null, y = null, m = 1, _ = 1, x = 0; x < v.length; x++) {
2738
- var w = v[x].getDualPoint(), k = w.x, A = w.y;
2739
- p !== null && (m = p - k, _ = y - A, m < 0 && (m = -m), _ < 0 && (_ = -_)), (m > rt || _ > rt) && (d.push([k, A]), p = k, y = A);
2669
+ for (var p = Mn(c), d = [], v = null, y = null, m = 1, _ = 1, x = 0; x < p.length; x++) {
2670
+ var w = p[x].getDualPoint(), b = w.x, A = w.y;
2671
+ v !== null && (m = v - b, _ = y - A, m < 0 && (m = -m), _ < 0 && (_ = -_)), (m > rt || _ > rt) && (d.push([b, A]), v = b, y = A);
2740
2672
  }
2741
- if (g.nonClippedPolygon = d.reverse(), !g.isDummy && Wn(g.nonClippedPolygon) > 0) {
2742
- var N = En(e, g.nonClippedPolygon);
2743
- g.polygon = N, N.site = g, N.length > 0 && a.push(N);
2673
+ if (g.nonClippedPolygon = d.reverse(), !g.isDummy && zn(g.nonClippedPolygon) > 0) {
2674
+ var k = Wn(e, g.nonClippedPolygon);
2675
+ g.polygon = k, k.site = g, k.length > 0 && a.push(k);
2744
2676
  }
2745
2677
  }
2746
2678
  }
2747
2679
  }
2748
2680
  return a;
2749
2681
  }
2750
- function Xn() {
2682
+ function On() {
2751
2683
  var s = function(r) {
2752
2684
  return r.x;
2753
2685
  }, t = function(r) {
@@ -2767,7 +2699,7 @@ function Xn() {
2767
2699
  var l;
2768
2700
  return l = r.map(function(u) {
2769
2701
  return new et(s(u), t(u), null, e(u), u, !1);
2770
- }), Vn(l, h(), i);
2702
+ }), In(l, h(), i);
2771
2703
  }
2772
2704
  o.x = function(r) {
2773
2705
  return arguments.length ? (s = r, o) : s;
@@ -2776,19 +2708,19 @@ function Xn() {
2776
2708
  }, o.weight = function(r) {
2777
2709
  return arguments.length ? (e = r, o) : e;
2778
2710
  }, o.clip = function(r) {
2779
- var l, u, f;
2780
- return arguments.length ? (u = Me(
2781
- r.map(function(c) {
2782
- return c[0];
2711
+ var l, u, c;
2712
+ return arguments.length ? (u = ze(
2713
+ r.map(function(f) {
2714
+ return f[0];
2783
2715
  })
2784
- ), f = Me(
2785
- r.map(function(c) {
2786
- return c[1];
2716
+ ), c = ze(
2717
+ r.map(function(f) {
2718
+ return f[1];
2787
2719
  })
2788
- ), l = In(r), l === void 0 ? i = Hn(r) : l === 1 ? i = r.reverse() : i = r, n = [
2789
- [u[0], f[0]],
2790
- [u[1], f[1]]
2791
- ], a = [u[1] - u[0], f[1] - f[0]], o) : i;
2720
+ ), l = Ln(r), l === void 0 ? i = Tn(r) : l === 1 ? i = r.reverse() : i = r, n = [
2721
+ [u[0], c[0]],
2722
+ [u[1], c[1]]
2723
+ ], a = [u[1] - u[0], c[1] - c[0]], o) : i;
2792
2724
  }, o.extent = function(r) {
2793
2725
  return arguments.length ? (i = [r[0], [r[0][0], r[1][1]], r[1], [r[1][0], r[0][1]]], n = r, a = [r[1][0] - r[0][0], r[1][1] - r[0][1]], o) : n;
2794
2726
  }, o.size = function(r) {
@@ -2800,8 +2732,8 @@ function Xn() {
2800
2732
  ], n = [[0, 0], r], a = r, o) : a;
2801
2733
  };
2802
2734
  function h() {
2803
- var r, l, u, f, c, g, v, d, p, y, m = [], _ = [];
2804
- r = n[0][0], l = n[1][0], u = n[0][1], f = n[1][1], c = l - r, g = f - u, v = r - c, d = l + c, p = u - g, y = f + g, m[0] = [v, p], m[1] = [v, y], m[2] = [d, y], m[3] = [d, p];
2735
+ var r, l, u, c, f, g, p, d, v, y, m = [], _ = [];
2736
+ r = n[0][0], l = n[1][0], u = n[0][1], c = n[1][1], f = l - r, g = c - u, p = r - f, d = l + f, v = u - g, y = c + g, m[0] = [p, v], m[1] = [p, y], m[2] = [d, y], m[3] = [d, v];
2805
2737
  for (var x = 0; x < 4; x++)
2806
2738
  _.push(
2807
2739
  new et(
@@ -2818,37 +2750,37 @@ function Xn() {
2818
2750
  return o;
2819
2751
  }
2820
2752
  function ct() {
2821
- this.growthChangesLength = li, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = ve(this.growthChangesLength), this.growthChangeWeightsSum = ye(this.growthChangeWeights);
2753
+ this.growthChangesLength = ri, this.totalAvailableArea = NaN, this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights);
2822
2754
  }
2823
- var li = 10;
2824
- function qn(s, t) {
2755
+ var ri = 10;
2756
+ function En(s, t) {
2825
2757
  return s >= t ? 1 : -1;
2826
2758
  }
2827
- function ve(s) {
2759
+ function fe(s) {
2828
2760
  for (var t = 3, e = 1, i = 1, n = t, a = [], o = 0; o < s; o++)
2829
2761
  a.push(n), n -= e, n < i && (n = i);
2830
2762
  return a;
2831
2763
  }
2832
- function ye(s) {
2764
+ function ge(s) {
2833
2765
  for (var t = 0, e = 0; e < s.length; e++)
2834
2766
  t += s[e];
2835
2767
  return t;
2836
2768
  }
2837
2769
  ct.prototype.reset = function() {
2838
- return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength = li, this.growthChangeWeights = ve(this.growthChangesLength), this.growthChangeWeightsSum = ye(this.growthChangeWeights), this.totalAvailableArea = NaN, this;
2770
+ return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this.growthChangesLength = ri, this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights), this.totalAvailableArea = NaN, this;
2839
2771
  };
2840
2772
  ct.prototype.clear = function() {
2841
2773
  return this.lastAreaError = NaN, this.lastGrowth = NaN, this.growthChanges = [], this;
2842
2774
  };
2843
2775
  ct.prototype.length = function(s) {
2844
- return arguments.length ? (parseInt(s) > 0 ? (this.growthChangesLength = Math.floor(parseInt(s)), this.growthChangeWeights = ve(this.growthChangesLength), this.growthChangeWeightsSum = ye(this.growthChangeWeights)) : console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle " + s), this) : this.growthChangesLength;
2776
+ return arguments.length ? (parseInt(s) > 0 ? (this.growthChangesLength = Math.floor(parseInt(s)), this.growthChangeWeights = fe(this.growthChangesLength), this.growthChangeWeightsSum = ge(this.growthChangeWeights)) : console.warn("FlickeringMitigation.length() accepts only positive integers; unable to handle " + s), this) : this.growthChangesLength;
2845
2777
  };
2846
2778
  ct.prototype.totalArea = function(s) {
2847
2779
  return arguments.length ? (parseFloat(s) > 0 ? this.totalAvailableArea = parseFloat(s) : console.warn("FlickeringMitigation.totalArea() accepts only positive numbers; unable to handle " + s), this) : this.totalAvailableArea;
2848
2780
  };
2849
2781
  ct.prototype.add = function(s) {
2850
2782
  var t, e;
2851
- return t = this.lastAreaError, this.lastAreaError = s, isNaN(t) || (e = this.lastGrowth, this.lastGrowth = qn(this.lastAreaError, t)), isNaN(e) || this.growthChanges.unshift(this.lastGrowth != e), this.growthChanges.length > this.growthChangesLength && this.growthChanges.pop(), this;
2783
+ return t = this.lastAreaError, this.lastAreaError = s, isNaN(t) || (e = this.lastGrowth, this.lastGrowth = En(this.lastAreaError, t)), isNaN(e) || this.growthChanges.unshift(this.lastGrowth != e), this.growthChanges.length > this.growthChangesLength && this.growthChanges.pop(), this;
2852
2784
  };
2853
2785
  ct.prototype.ratio = function() {
2854
2786
  var s = 0, t;
@@ -2858,27 +2790,27 @@ ct.prototype.ratio = function() {
2858
2790
  this.growthChanges[e] && (s += this.growthChangeWeights[e]);
2859
2791
  return t = s / this.growthChangeWeightsSum, t;
2860
2792
  };
2861
- function Yn() {
2793
+ function Bn() {
2862
2794
  var s, t, e, i, n, a, o, h;
2863
- function r(u, f, c, g) {
2864
- var v = !1, d, p;
2865
- for (s !== g.clip() && (s = g.clip(), t = g.extent(), v = !0), v && l(), d = e + o * g.prng()(), p = n + h * g.prng()(); !ii(s, [d, p]); )
2866
- d = e + o * g.prng()(), p = n + h * g.prng()();
2867
- return [d, p];
2795
+ function r(u, c, f, g) {
2796
+ var p = !1, d, v;
2797
+ for (s !== g.clip() && (s = g.clip(), t = g.extent(), p = !0), p && l(), d = e + o * g.prng()(), v = n + h * g.prng()(); !Je(s, [d, v]); )
2798
+ d = e + o * g.prng()(), v = n + h * g.prng()();
2799
+ return [d, v];
2868
2800
  }
2869
2801
  function l() {
2870
2802
  e = t[0][0], i = t[1][0], n = t[0][1], a = t[1][1], o = i - e, h = a - n;
2871
2803
  }
2872
2804
  return r;
2873
2805
  }
2874
- function Gn() {
2806
+ function Fn() {
2875
2807
  var s, t, e, i, n;
2876
2808
  function a(h, r, l, u) {
2877
- var f = !1;
2878
- return s !== u.clip() && (s = u.clip(), f |= !0), t !== l && (t = l, f |= !0), f && o(), n;
2809
+ var c = !1;
2810
+ return s !== u.clip() && (s = u.clip(), c |= !0), t !== l && (t = l, c |= !0), c && o(), n;
2879
2811
  }
2880
2812
  function o() {
2881
- e = t.length, i = Pt(s), n = i / e / 2;
2813
+ e = t.length, i = bt(s), n = i / e / 2;
2882
2814
  }
2883
2815
  return a;
2884
2816
  }
@@ -2887,99 +2819,99 @@ function ft(s) {
2887
2819
  }
2888
2820
  ft.prototype.name = "d3VoronoiMapError";
2889
2821
  ft.prototype = new Error();
2890
- function Oe(s) {
2891
- var t = 0.01, e = 50, i = 0.01, n = Math.random, a = Yn(), o = Gn(), h = 1e-10, r = function(D) {
2822
+ function Me(s) {
2823
+ var t = 0.01, e = 50, i = 0.01, n = Math.random, a = Bn(), o = Fn(), h = 1e-10, r = function(D) {
2892
2824
  return D.weight;
2893
- }, l = t, u = e, f = i, c = n, g = a, v = o, d = Xn(), p = new ct(), y = !0, m, _, x, w, k, A, N, C, b, S = ai(xe), W = oi("tick", "end");
2894
- const B = 1, J = 1e3;
2825
+ }, l = t, u = e, c = i, f = n, g = a, p = o, d = On(), v = new ct(), y = !0, m, _, x, w, b, A, k, C, N, S = ni(pe), M = si("tick", "end");
2826
+ const O = 1, J = 1e3;
2895
2827
  var tt;
2896
2828
  function nt(D) {
2897
2829
  return Math.pow(D, 2);
2898
2830
  }
2899
- function me(D, H) {
2900
- return nt(H.x - D.x) + nt(H.y - D.y);
2831
+ function de(D, W) {
2832
+ return nt(W.x - D.x) + nt(W.y - D.y);
2901
2833
  }
2902
- b = {
2903
- tick: _e,
2834
+ N = {
2835
+ tick: ve,
2904
2836
  restart: function() {
2905
- return S.restart(xe), b;
2837
+ return S.restart(pe), N;
2906
2838
  },
2907
2839
  stop: function() {
2908
- return S.stop(), b;
2840
+ return S.stop(), N;
2909
2841
  },
2910
2842
  weight: function(D) {
2911
- return arguments.length ? (r = D, y = !0, b) : r;
2843
+ return arguments.length ? (r = D, y = !0, N) : r;
2912
2844
  },
2913
2845
  convergenceRatio: function(D) {
2914
- return arguments.length ? (l = D, y = !0, b) : l;
2846
+ return arguments.length ? (l = D, y = !0, N) : l;
2915
2847
  },
2916
2848
  maxIterationCount: function(D) {
2917
- return arguments.length ? (u = D, b) : u;
2849
+ return arguments.length ? (u = D, N) : u;
2918
2850
  },
2919
2851
  minWeightRatio: function(D) {
2920
- return arguments.length ? (f = D, y = !0, b) : f;
2852
+ return arguments.length ? (c = D, y = !0, N) : c;
2921
2853
  },
2922
2854
  clip: function(D) {
2923
- return arguments.length ? (d.clip(D), y = !0, b) : d.clip();
2855
+ return arguments.length ? (d.clip(D), y = !0, N) : d.clip();
2924
2856
  },
2925
2857
  extent: function(D) {
2926
- return arguments.length ? (d.extent(D), y = !0, b) : d.extent();
2858
+ return arguments.length ? (d.extent(D), y = !0, N) : d.extent();
2927
2859
  },
2928
2860
  size: function(D) {
2929
- return arguments.length ? (d.size(D), y = !0, b) : d.size();
2861
+ return arguments.length ? (d.size(D), y = !0, N) : d.size();
2930
2862
  },
2931
2863
  prng: function(D) {
2932
- return arguments.length ? (c = D, y = !0, b) : c;
2864
+ return arguments.length ? (f = D, y = !0, N) : f;
2933
2865
  },
2934
2866
  initialPosition: function(D) {
2935
- return arguments.length ? (g = D, y = !0, b) : g;
2867
+ return arguments.length ? (g = D, y = !0, N) : g;
2936
2868
  },
2937
2869
  initialWeight: function(D) {
2938
- return arguments.length ? (v = D, y = !0, b) : v;
2870
+ return arguments.length ? (p = D, y = !0, N) : p;
2939
2871
  },
2940
2872
  state: function() {
2941
- return y && we(), {
2873
+ return y && ye(), {
2942
2874
  ended: C,
2943
2875
  iterationCount: w,
2944
2876
  convergenceRatio: A / _,
2945
- polygons: k
2877
+ polygons: b
2946
2878
  };
2947
2879
  },
2948
- on: function(D, H) {
2949
- return arguments.length === 1 ? W.on(D) : (W.on(D, H), b);
2880
+ on: function(D, W) {
2881
+ return arguments.length === 1 ? M.on(D) : (M.on(D, W), N);
2950
2882
  }
2951
2883
  };
2952
- function xe() {
2953
- _e(), W.call("tick", b), C && (S.stop(), W.call("end", b));
2884
+ function pe() {
2885
+ ve(), M.call("tick", N), C && (S.stop(), M.call("end", N));
2954
2886
  }
2955
- function _e() {
2956
- C || (y && we(), k = ui(k, p.ratio()), w++, A = pi(k), p.add(A), N = A < x, C = N || w >= u);
2887
+ function ve() {
2888
+ C || (y && ye(), b = li(b, v.ratio()), w++, A = fi(b), v.add(A), k = A < x, C = k || w >= u);
2957
2889
  }
2958
- function we() {
2959
- vi(), m = s.length, _ = Math.abs(Pt(d.clip())), x = l * _, p.clear().totalArea(_), w = 0, N = !1, k = hi(s, b), C = !1, y = !1;
2890
+ function ye() {
2891
+ gi(), m = s.length, _ = Math.abs(bt(d.clip())), x = l * _, v.clear().totalArea(_), w = 0, k = !1, b = ai(s, N), C = !1, y = !1;
2960
2892
  }
2961
- function hi(D, H) {
2962
- var M = D.reduce(function(L, I) {
2893
+ function ai(D, W) {
2894
+ var H = D.reduce(function(L, I) {
2963
2895
  return Math.max(L, r(I));
2964
- }, -1 / 0), T = M * f, R, z;
2965
- return R = D.map(function(L, I, E) {
2896
+ }, -1 / 0), T = H * c, R, z;
2897
+ return R = D.map(function(L, I, B) {
2966
2898
  return {
2967
2899
  index: I,
2968
2900
  weight: Math.max(r(L), T),
2969
- initialPosition: g(L, I, E, H),
2970
- initialWeight: v(L, I, E, H),
2901
+ initialPosition: g(L, I, B, W),
2902
+ initialWeight: p(L, I, B, W),
2971
2903
  originalData: L
2972
2904
  };
2973
- }), z = ci(R, H), tt(z), d(z);
2905
+ }), z = oi(R, W), tt(z), d(z);
2974
2906
  }
2975
- function ci(D, H) {
2976
- var M = D.reduce(function(R, z) {
2907
+ function oi(D, W) {
2908
+ var H = D.reduce(function(R, z) {
2977
2909
  return R += z.weight;
2978
2910
  }, 0), T;
2979
2911
  return D.map(function(R, z, L) {
2980
- return T = R.initialPosition, ii(d.clip(), T) || (T = a(R, z, L, H)), {
2912
+ return T = R.initialPosition, Je(d.clip(), T) || (T = a(R, z, L, W)), {
2981
2913
  index: R.index,
2982
- targetedArea: _ * R.weight / M,
2914
+ targetedArea: _ * R.weight / H,
2983
2915
  data: R,
2984
2916
  x: T[0],
2985
2917
  y: T[1],
@@ -2988,88 +2920,88 @@ function Oe(s) {
2988
2920
  };
2989
2921
  });
2990
2922
  }
2991
- function ui(D, H) {
2992
- var M;
2993
- if (fi(D, H), M = D.map(function(T) {
2923
+ function li(D, W) {
2924
+ var H;
2925
+ if (hi(D, W), H = D.map(function(T) {
2994
2926
  return T.site.originalObject;
2995
- }), D = d(M), D.length < m)
2927
+ }), D = d(H), D.length < m)
2996
2928
  throw new ft("at least 1 site has no area, which is not supposed to arise");
2997
- if (gi(D, H), M = D.map(function(T) {
2929
+ if (ci(D, W), H = D.map(function(T) {
2998
2930
  return T.site.originalObject;
2999
- }), D = d(M), D.length < m)
2931
+ }), D = d(H), D.length < m)
3000
2932
  throw new ft("at least 1 site has no area, which is not supposed to arise");
3001
2933
  return D;
3002
2934
  }
3003
- function fi(D, H) {
3004
- var M = [], T = 0.5, R, z, L, I, E, F, q;
3005
- R = T * H, z = 1 - R;
3006
- for (var Xt = 0; Xt < m; Xt++)
3007
- L = D[Xt], I = L.site.originalObject, E = bn(L), F = E[0] - I.x, q = E[1] - I.y, F *= z, q *= z, I.x += F, I.y += q, M.push(I);
3008
- tt(M);
3009
- }
3010
- function gi(D, H) {
3011
- var M = [], T = 0.1, R, z, L, I, E, F;
3012
- R = T * H;
3013
- for (var q = 0; q < m; q++)
3014
- z = D[q], L = z.site.originalObject, I = Pt(z), E = L.targetedArea / I, E = Math.max(E, 1 - T + R), E = Math.min(E, 1 + T - R), F = L.weight * E, F = Math.max(F, h), L.weight = F, M.push(L);
3015
- tt(M);
3016
- }
3017
- function De(D) {
3018
- var H = 0, M, T, R, z, L, I, E;
2935
+ function hi(D, W) {
2936
+ var H = [], T = 0.5, R, z, L, I, B, F, Y;
2937
+ R = T * W, z = 1 - R;
2938
+ for (var Bt = 0; Bt < m; Bt++)
2939
+ L = D[Bt], I = L.site.originalObject, B = _n(L), F = B[0] - I.x, Y = B[1] - I.y, F *= z, Y *= z, I.x += F, I.y += Y, H.push(I);
2940
+ tt(H);
2941
+ }
2942
+ function ci(D, W) {
2943
+ var H = [], T = 0.1, R, z, L, I, B, F;
2944
+ R = T * W;
2945
+ for (var Y = 0; Y < m; Y++)
2946
+ z = D[Y], L = z.site.originalObject, I = bt(z), B = L.targetedArea / I, B = Math.max(B, 1 - T + R), B = Math.min(B, 1 + T - R), F = L.weight * B, F = Math.max(F, h), L.weight = F, H.push(L);
2947
+ tt(H);
2948
+ }
2949
+ function me(D) {
2950
+ var W = 0, H, T, R, z, L, I, B;
3019
2951
  do {
3020
- if (H > J)
2952
+ if (W > J)
3021
2953
  throw new ft("handleOverweighted0 is looping too much");
3022
- M = !1;
2954
+ H = !1;
3023
2955
  for (var F = 0; F < m; F++) {
3024
2956
  T = D[F];
3025
- for (var q = F + 1; q < m; q++)
3026
- if (R = D[q], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = me(T, R), I < z.weight - L.weight) {
3027
- E = I + L.weight / 2, E = Math.max(E, h), z.weight = E, M = !0, H++;
2957
+ for (var Y = F + 1; Y < m; Y++)
2958
+ if (R = D[Y], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = de(T, R), I < z.weight - L.weight) {
2959
+ B = I + L.weight / 2, B = Math.max(B, h), z.weight = B, H = !0, W++;
3028
2960
  break;
3029
2961
  }
3030
- if (M)
2962
+ if (H)
3031
2963
  break;
3032
2964
  }
3033
- } while (M);
2965
+ } while (H);
3034
2966
  }
3035
- function di(D) {
3036
- var H = 0, M, T, R, z, L, I, E;
2967
+ function ui(D) {
2968
+ var W = 0, H, T, R, z, L, I, B;
3037
2969
  do {
3038
- if (H > J)
2970
+ if (W > J)
3039
2971
  throw new ft("handleOverweighted1 is looping too much");
3040
- M = !1;
2972
+ H = !1;
3041
2973
  for (var F = 0; F < m; F++) {
3042
2974
  T = D[F];
3043
- for (var q = F + 1; q < m; q++)
3044
- if (R = D[q], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = me(T, R), I < z.weight - L.weight) {
3045
- E = z.weight - L.weight - I, L.weight += E + h, M = !0, H++;
2975
+ for (var Y = F + 1; Y < m; Y++)
2976
+ if (R = D[Y], T.weight > R.weight ? (z = T, L = R) : (z = R, L = T), I = de(T, R), I < z.weight - L.weight) {
2977
+ B = z.weight - L.weight - I, L.weight += B + h, H = !0, W++;
3046
2978
  break;
3047
2979
  }
3048
- if (M)
2980
+ if (H)
3049
2981
  break;
3050
2982
  }
3051
- } while (M);
2983
+ } while (H);
3052
2984
  }
3053
- function pi(D) {
3054
- for (var H = 0, M, T, R, z = 0; z < m; z++)
3055
- M = D[z], T = M.site.originalObject, R = Pt(M), H += Math.abs(T.targetedArea - R);
3056
- return H;
2985
+ function fi(D) {
2986
+ for (var W = 0, H, T, R, z = 0; z < m; z++)
2987
+ H = D[z], T = H.site.originalObject, R = bt(H), W += Math.abs(T.targetedArea - R);
2988
+ return W;
3057
2989
  }
3058
- function vi() {
3059
- switch (B) {
2990
+ function gi() {
2991
+ switch (O) {
3060
2992
  case 0:
3061
- tt = De;
2993
+ tt = me;
3062
2994
  break;
3063
2995
  case 1:
3064
- tt = di;
2996
+ tt = ui;
3065
2997
  break;
3066
2998
  default:
3067
- console.error("unknown 'handleOverweighted' variant; using variant #1"), tt = De;
2999
+ console.error("unknown 'handleOverweighted' variant; using variant #1"), tt = me;
3068
3000
  }
3069
3001
  }
3070
- return b;
3002
+ return N;
3071
3003
  }
3072
- function jn() {
3004
+ function Xn() {
3073
3005
  var s = 0.01, t = 50, e = 0.01, i = Math.random, n = [
3074
3006
  [0, 0],
3075
3007
  [0, 1],
@@ -3078,16 +3010,16 @@ function jn() {
3078
3010
  ], a = [
3079
3011
  [0, 0],
3080
3012
  [1, 1]
3081
- ], o = [1, 1], h = s, r = t, l = e, u = i, f = [
3013
+ ], o = [1, 1], h = s, r = t, l = e, u = i, c = [
3082
3014
  {
3083
3015
  weight: 1
3084
3016
  },
3085
3017
  {
3086
3018
  weight: 1
3087
3019
  }
3088
- ], c = Oe(f).stop();
3020
+ ], f = Me(c).stop();
3089
3021
  function g(d) {
3090
- v(n, d);
3022
+ p(n, d);
3091
3023
  }
3092
3024
  g.convergenceRatio = function(d) {
3093
3025
  return arguments.length ? (h = d, g) : h;
@@ -3096,60 +3028,60 @@ function jn() {
3096
3028
  }, g.minWeightRatio = function(d) {
3097
3029
  return arguments.length ? (l = d, g) : l;
3098
3030
  }, g.clip = function(d) {
3099
- return arguments.length ? (c.clip(d), n = c.clip(), a = c.extent(), o = c.size(), g) : n;
3031
+ return arguments.length ? (f.clip(d), n = f.clip(), a = f.extent(), o = f.size(), g) : n;
3100
3032
  }, g.extent = function(d) {
3101
- return arguments.length ? (c.extent(d), n = c.clip(), a = c.extent(), o = c.size(), g) : a;
3033
+ return arguments.length ? (f.extent(d), n = f.clip(), a = f.extent(), o = f.size(), g) : a;
3102
3034
  }, g.size = function(d) {
3103
- return arguments.length ? (c.size(d), n = c.clip(), a = c.extent(), o = c.size(), g) : o;
3035
+ return arguments.length ? (f.size(d), n = f.clip(), a = f.extent(), o = f.size(), g) : o;
3104
3036
  }, g.prng = function(d) {
3105
3037
  return arguments.length ? (u = d, g) : u;
3106
3038
  };
3107
- function v(d, p) {
3039
+ function p(d, v) {
3108
3040
  var y;
3109
- if (p.polygon = d, p.height != 0) {
3110
- y = Oe(p.children).clip(d).weight(function(_) {
3041
+ if (v.polygon = d, v.height != 0) {
3042
+ y = Me(v.children).clip(d).weight(function(_) {
3111
3043
  return _.value;
3112
3044
  }).convergenceRatio(h).maxIterationCount(r).minWeightRatio(l).prng(u).stop();
3113
3045
  for (var m = y.state(); !m.ended; )
3114
3046
  y.tick(), m = y.state();
3115
3047
  m.polygons.forEach(function(_) {
3116
- v(_, _.site.originalObject.data.originalData);
3048
+ p(_, _.site.originalObject.data.originalData);
3117
3049
  });
3118
3050
  }
3119
3051
  }
3120
3052
  return g;
3121
3053
  }
3122
- var Tt = { exports: {} }, $n = Tt.exports, Ee;
3123
- function Un() {
3124
- return Ee || (Ee = 1, function(s) {
3054
+ var Ct = { exports: {} }, Vn = Ct.exports, Ie;
3055
+ function Yn() {
3056
+ return Ie || (Ie = 1, function(s) {
3125
3057
  (function(t, e, i) {
3126
3058
  function n(r) {
3127
3059
  var l = this, u = h();
3128
3060
  l.next = function() {
3129
- var f = 2091639 * l.s0 + l.c * 23283064365386963e-26;
3130
- return l.s0 = l.s1, l.s1 = l.s2, l.s2 = f - (l.c = f | 0);
3061
+ var c = 2091639 * l.s0 + l.c * 23283064365386963e-26;
3062
+ return l.s0 = l.s1, l.s1 = l.s2, l.s2 = c - (l.c = c | 0);
3131
3063
  }, l.c = 1, l.s0 = u(" "), l.s1 = u(" "), l.s2 = u(" "), l.s0 -= u(r), l.s0 < 0 && (l.s0 += 1), l.s1 -= u(r), l.s1 < 0 && (l.s1 += 1), l.s2 -= u(r), l.s2 < 0 && (l.s2 += 1), u = null;
3132
3064
  }
3133
3065
  function a(r, l) {
3134
3066
  return l.c = r.c, l.s0 = r.s0, l.s1 = r.s1, l.s2 = r.s2, l;
3135
3067
  }
3136
3068
  function o(r, l) {
3137
- var u = new n(r), f = l && l.state, c = u.next;
3138
- return c.int32 = function() {
3069
+ var u = new n(r), c = l && l.state, f = u.next;
3070
+ return f.int32 = function() {
3139
3071
  return u.next() * 4294967296 | 0;
3140
- }, c.double = function() {
3141
- return c() + (c() * 2097152 | 0) * 11102230246251565e-32;
3142
- }, c.quick = c, f && (typeof f == "object" && a(f, u), c.state = function() {
3072
+ }, f.double = function() {
3073
+ return f() + (f() * 2097152 | 0) * 11102230246251565e-32;
3074
+ }, f.quick = f, c && (typeof c == "object" && a(c, u), f.state = function() {
3143
3075
  return a(u, {});
3144
- }), c;
3076
+ }), f;
3145
3077
  }
3146
3078
  function h() {
3147
3079
  var r = 4022871197, l = function(u) {
3148
3080
  u = String(u);
3149
- for (var f = 0; f < u.length; f++) {
3150
- r += u.charCodeAt(f);
3151
- var c = 0.02519603282416938 * r;
3152
- r = c >>> 0, c -= r, c *= r, r = c >>> 0, c -= r, r += c * 4294967296;
3081
+ for (var c = 0; c < u.length; c++) {
3082
+ r += u.charCodeAt(c);
3083
+ var f = 0.02519603282416938 * r;
3084
+ r = f >>> 0, f -= r, f *= r, r = f >>> 0, f -= r, r += f * 4294967296;
3153
3085
  }
3154
3086
  return (r >>> 0) * 23283064365386963e-26;
3155
3087
  };
@@ -3157,20 +3089,20 @@ function Un() {
3157
3089
  }
3158
3090
  e && e.exports ? e.exports = o : this.alea = o;
3159
3091
  })(
3160
- $n,
3092
+ Vn,
3161
3093
  s
3162
3094
  );
3163
- }(Tt)), Tt.exports;
3095
+ }(Ct)), Ct.exports;
3164
3096
  }
3165
- var zt = { exports: {} }, Kn = zt.exports, Fe;
3166
- function Zn() {
3167
- return Fe || (Fe = 1, function(s) {
3097
+ var Rt = { exports: {} }, qn = Rt.exports, Oe;
3098
+ function Gn() {
3099
+ return Oe || (Oe = 1, function(s) {
3168
3100
  (function(t, e, i) {
3169
3101
  function n(h) {
3170
3102
  var r = this, l = "";
3171
3103
  r.x = 0, r.y = 0, r.z = 0, r.w = 0, r.next = function() {
3172
- var f = r.x ^ r.x << 11;
3173
- return r.x = r.y, r.y = r.z, r.z = r.w, r.w ^= r.w >>> 19 ^ f ^ f >>> 8;
3104
+ var c = r.x ^ r.x << 11;
3105
+ return r.x = r.y, r.y = r.z, r.z = r.w, r.w ^= r.w >>> 19 ^ c ^ c >>> 8;
3174
3106
  }, h === (h | 0) ? r.x = h : l += h;
3175
3107
  for (var u = 0; u < l.length + 64; u++)
3176
3108
  r.x ^= l.charCodeAt(u) | 0, r.next();
@@ -3179,34 +3111,34 @@ function Zn() {
3179
3111
  return r.x = h.x, r.y = h.y, r.z = h.z, r.w = h.w, r;
3180
3112
  }
3181
3113
  function o(h, r) {
3182
- var l = new n(h), u = r && r.state, f = function() {
3114
+ var l = new n(h), u = r && r.state, c = function() {
3183
3115
  return (l.next() >>> 0) / 4294967296;
3184
3116
  };
3185
- return f.double = function() {
3117
+ return c.double = function() {
3186
3118
  do
3187
- var c = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, v = (c + g) / (1 << 21);
3188
- while (v === 0);
3189
- return v;
3190
- }, f.int32 = l.next, f.quick = f, u && (typeof u == "object" && a(u, l), f.state = function() {
3119
+ var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
3120
+ while (p === 0);
3121
+ return p;
3122
+ }, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
3191
3123
  return a(l, {});
3192
- }), f;
3124
+ }), c;
3193
3125
  }
3194
3126
  e && e.exports ? e.exports = o : this.xor128 = o;
3195
3127
  })(
3196
- Kn,
3128
+ qn,
3197
3129
  s
3198
3130
  );
3199
- }(zt)), zt.exports;
3131
+ }(Rt)), Rt.exports;
3200
3132
  }
3201
- var Lt = { exports: {} }, Qn = Lt.exports, Ve;
3202
- function Jn() {
3203
- return Ve || (Ve = 1, function(s) {
3133
+ var Tt = { exports: {} }, jn = Tt.exports, Ee;
3134
+ function Un() {
3135
+ return Ee || (Ee = 1, function(s) {
3204
3136
  (function(t, e, i) {
3205
3137
  function n(h) {
3206
3138
  var r = this, l = "";
3207
3139
  r.next = function() {
3208
- var f = r.x ^ r.x >>> 2;
3209
- return r.x = r.y, r.y = r.z, r.z = r.w, r.w = r.v, (r.d = r.d + 362437 | 0) + (r.v = r.v ^ r.v << 4 ^ (f ^ f << 1)) | 0;
3140
+ var c = r.x ^ r.x >>> 2;
3141
+ return r.x = r.y, r.y = r.z, r.z = r.w, r.w = r.v, (r.d = r.d + 362437 | 0) + (r.v = r.v ^ r.v << 4 ^ (c ^ c << 1)) | 0;
3210
3142
  }, r.x = 0, r.y = 0, r.z = 0, r.w = 0, r.v = 0, h === (h | 0) ? r.x = h : l += h;
3211
3143
  for (var u = 0; u < l.length + 64; u++)
3212
3144
  r.x ^= l.charCodeAt(u) | 0, u == l.length && (r.d = r.x << 10 ^ r.x >>> 4), r.next();
@@ -3215,45 +3147,45 @@ function Jn() {
3215
3147
  return r.x = h.x, r.y = h.y, r.z = h.z, r.w = h.w, r.v = h.v, r.d = h.d, r;
3216
3148
  }
3217
3149
  function o(h, r) {
3218
- var l = new n(h), u = r && r.state, f = function() {
3150
+ var l = new n(h), u = r && r.state, c = function() {
3219
3151
  return (l.next() >>> 0) / 4294967296;
3220
3152
  };
3221
- return f.double = function() {
3153
+ return c.double = function() {
3222
3154
  do
3223
- var c = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, v = (c + g) / (1 << 21);
3224
- while (v === 0);
3225
- return v;
3226
- }, f.int32 = l.next, f.quick = f, u && (typeof u == "object" && a(u, l), f.state = function() {
3155
+ var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
3156
+ while (p === 0);
3157
+ return p;
3158
+ }, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
3227
3159
  return a(l, {});
3228
- }), f;
3160
+ }), c;
3229
3161
  }
3230
3162
  e && e.exports ? e.exports = o : this.xorwow = o;
3231
3163
  })(
3232
- Qn,
3164
+ jn,
3233
3165
  s
3234
3166
  );
3235
- }(Lt)), Lt.exports;
3167
+ }(Tt)), Tt.exports;
3236
3168
  }
3237
- var St = { exports: {} }, ts = St.exports, Xe;
3238
- function es() {
3239
- return Xe || (Xe = 1, function(s) {
3169
+ var zt = { exports: {} }, $n = zt.exports, Be;
3170
+ function Kn() {
3171
+ return Be || (Be = 1, function(s) {
3240
3172
  (function(t, e, i) {
3241
3173
  function n(h) {
3242
3174
  var r = this;
3243
3175
  r.next = function() {
3244
- var u = r.x, f = r.i, c, g;
3245
- return c = u[f], c ^= c >>> 7, g = c ^ c << 24, c = u[f + 1 & 7], g ^= c ^ c >>> 10, c = u[f + 3 & 7], g ^= c ^ c >>> 3, c = u[f + 4 & 7], g ^= c ^ c << 7, c = u[f + 7 & 7], c = c ^ c << 13, g ^= c ^ c << 9, u[f] = g, r.i = f + 1 & 7, g;
3176
+ var u = r.x, c = r.i, f, g;
3177
+ return f = u[c], f ^= f >>> 7, g = f ^ f << 24, f = u[c + 1 & 7], g ^= f ^ f >>> 10, f = u[c + 3 & 7], g ^= f ^ f >>> 3, f = u[c + 4 & 7], g ^= f ^ f << 7, f = u[c + 7 & 7], f = f ^ f << 13, g ^= f ^ f << 9, u[c] = g, r.i = c + 1 & 7, g;
3246
3178
  };
3247
- function l(u, f) {
3248
- var c, g = [];
3249
- if (f === (f | 0))
3250
- g[0] = f;
3179
+ function l(u, c) {
3180
+ var f, g = [];
3181
+ if (c === (c | 0))
3182
+ g[0] = c;
3251
3183
  else
3252
- for (f = "" + f, c = 0; c < f.length; ++c)
3253
- g[c & 7] = g[c & 7] << 15 ^ f.charCodeAt(c) + g[c + 1 & 7] << 13;
3184
+ for (c = "" + c, f = 0; f < c.length; ++f)
3185
+ g[f & 7] = g[f & 7] << 15 ^ c.charCodeAt(f) + g[f + 1 & 7] << 13;
3254
3186
  for (; g.length < 8; ) g.push(0);
3255
- for (c = 0; c < 8 && g[c] === 0; ++c) ;
3256
- for (c == 8 ? g[7] = -1 : g[c], u.x = g, u.i = 0, c = 256; c > 0; --c)
3187
+ for (f = 0; f < 8 && g[f] === 0; ++f) ;
3188
+ for (f == 8 ? g[7] = -1 : g[f], u.x = g, u.i = 0, f = 256; f > 0; --f)
3257
3189
  u.next();
3258
3190
  }
3259
3191
  l(r, h);
@@ -3263,42 +3195,42 @@ function es() {
3263
3195
  }
3264
3196
  function o(h, r) {
3265
3197
  h == null && (h = +/* @__PURE__ */ new Date());
3266
- var l = new n(h), u = r && r.state, f = function() {
3198
+ var l = new n(h), u = r && r.state, c = function() {
3267
3199
  return (l.next() >>> 0) / 4294967296;
3268
3200
  };
3269
- return f.double = function() {
3201
+ return c.double = function() {
3270
3202
  do
3271
- var c = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, v = (c + g) / (1 << 21);
3272
- while (v === 0);
3273
- return v;
3274
- }, f.int32 = l.next, f.quick = f, u && (u.x && a(u, l), f.state = function() {
3203
+ var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
3204
+ while (p === 0);
3205
+ return p;
3206
+ }, c.int32 = l.next, c.quick = c, u && (u.x && a(u, l), c.state = function() {
3275
3207
  return a(l, {});
3276
- }), f;
3208
+ }), c;
3277
3209
  }
3278
3210
  e && e.exports ? e.exports = o : this.xorshift7 = o;
3279
3211
  })(
3280
- ts,
3212
+ $n,
3281
3213
  s
3282
3214
  );
3283
- }(St)), St.exports;
3215
+ }(zt)), zt.exports;
3284
3216
  }
3285
- var Mt = { exports: {} }, is = Mt.exports, qe;
3286
- function ns() {
3287
- return qe || (qe = 1, function(s) {
3217
+ var Lt = { exports: {} }, Zn = Lt.exports, Fe;
3218
+ function Qn() {
3219
+ return Fe || (Fe = 1, function(s) {
3288
3220
  (function(t, e, i) {
3289
3221
  function n(h) {
3290
3222
  var r = this;
3291
3223
  r.next = function() {
3292
- var u = r.w, f = r.X, c = r.i, g, v;
3293
- return r.w = u = u + 1640531527 | 0, v = f[c + 34 & 127], g = f[c = c + 1 & 127], v ^= v << 13, g ^= g << 17, v ^= v >>> 15, g ^= g >>> 12, v = f[c] = v ^ g, r.i = c, v + (u ^ u >>> 16) | 0;
3224
+ var u = r.w, c = r.X, f = r.i, g, p;
3225
+ return r.w = u = u + 1640531527 | 0, p = c[f + 34 & 127], g = c[f = f + 1 & 127], p ^= p << 13, g ^= g << 17, p ^= p >>> 15, g ^= g >>> 12, p = c[f] = p ^ g, r.i = f, p + (u ^ u >>> 16) | 0;
3294
3226
  };
3295
- function l(u, f) {
3296
- var c, g, v, d, p, y = [], m = 128;
3297
- for (f === (f | 0) ? (g = f, f = null) : (f = f + "\0", g = 0, m = Math.max(m, f.length)), v = 0, d = -32; d < m; ++d)
3298
- f && (g ^= f.charCodeAt((d + 32) % f.length)), d === 0 && (p = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, d >= 0 && (p = p + 1640531527 | 0, c = y[d & 127] ^= g + p, v = c == 0 ? v + 1 : 0);
3299
- for (v >= 128 && (y[(f && f.length || 0) & 127] = -1), v = 127, d = 512; d > 0; --d)
3300
- g = y[v + 34 & 127], c = y[v = v + 1 & 127], g ^= g << 13, c ^= c << 17, g ^= g >>> 15, c ^= c >>> 12, y[v] = g ^ c;
3301
- u.w = p, u.X = y, u.i = v;
3227
+ function l(u, c) {
3228
+ var f, g, p, d, v, y = [], m = 128;
3229
+ for (c === (c | 0) ? (g = c, c = null) : (c = c + "\0", g = 0, m = Math.max(m, c.length)), p = 0, d = -32; d < m; ++d)
3230
+ c && (g ^= c.charCodeAt((d + 32) % c.length)), d === 0 && (v = g), g ^= g << 10, g ^= g >>> 15, g ^= g << 4, g ^= g >>> 13, d >= 0 && (v = v + 1640531527 | 0, f = y[d & 127] ^= g + v, p = f == 0 ? p + 1 : 0);
3231
+ for (p >= 128 && (y[(c && c.length || 0) & 127] = -1), p = 127, d = 512; d > 0; --d)
3232
+ g = y[p + 34 & 127], f = y[p = p + 1 & 127], g ^= g << 13, f ^= f << 17, g ^= g >>> 15, f ^= f >>> 12, y[p] = g ^ f;
3233
+ u.w = v, u.X = y, u.i = p;
3302
3234
  }
3303
3235
  l(r, h);
3304
3236
  }
@@ -3307,35 +3239,35 @@ function ns() {
3307
3239
  }
3308
3240
  function o(h, r) {
3309
3241
  h == null && (h = +/* @__PURE__ */ new Date());
3310
- var l = new n(h), u = r && r.state, f = function() {
3242
+ var l = new n(h), u = r && r.state, c = function() {
3311
3243
  return (l.next() >>> 0) / 4294967296;
3312
3244
  };
3313
- return f.double = function() {
3245
+ return c.double = function() {
3314
3246
  do
3315
- var c = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, v = (c + g) / (1 << 21);
3316
- while (v === 0);
3317
- return v;
3318
- }, f.int32 = l.next, f.quick = f, u && (u.X && a(u, l), f.state = function() {
3247
+ var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
3248
+ while (p === 0);
3249
+ return p;
3250
+ }, c.int32 = l.next, c.quick = c, u && (u.X && a(u, l), c.state = function() {
3319
3251
  return a(l, {});
3320
- }), f;
3252
+ }), c;
3321
3253
  }
3322
3254
  e && e.exports ? e.exports = o : this.xor4096 = o;
3323
3255
  })(
3324
- is,
3256
+ Zn,
3325
3257
  // window object or global
3326
3258
  s
3327
3259
  );
3328
- }(Mt)), Mt.exports;
3260
+ }(Lt)), Lt.exports;
3329
3261
  }
3330
- var Ht = { exports: {} }, ss = Ht.exports, Ye;
3331
- function rs() {
3332
- return Ye || (Ye = 1, function(s) {
3262
+ var St = { exports: {} }, Jn = St.exports, Xe;
3263
+ function ts() {
3264
+ return Xe || (Xe = 1, function(s) {
3333
3265
  (function(t, e, i) {
3334
3266
  function n(h) {
3335
3267
  var r = this, l = "";
3336
3268
  r.next = function() {
3337
- var f = r.b, c = r.c, g = r.d, v = r.a;
3338
- return f = f << 25 ^ f >>> 7 ^ c, c = c - g | 0, g = g << 24 ^ g >>> 8 ^ v, v = v - f | 0, r.b = f = f << 20 ^ f >>> 12 ^ c, r.c = c = c - g | 0, r.d = g << 16 ^ c >>> 16 ^ v, r.a = v - f | 0;
3269
+ var c = r.b, f = r.c, g = r.d, p = r.a;
3270
+ return c = c << 25 ^ c >>> 7 ^ f, f = f - g | 0, g = g << 24 ^ g >>> 8 ^ p, p = p - c | 0, r.b = c = c << 20 ^ c >>> 12 ^ f, r.c = f = f - g | 0, r.d = g << 16 ^ f >>> 16 ^ p, r.a = p - c | 0;
3339
3271
  }, r.a = 0, r.b = 0, r.c = -1640531527, r.d = 1367130551, h === Math.floor(h) ? (r.a = h / 4294967296 | 0, r.b = h | 0) : l += h;
3340
3272
  for (var u = 0; u < l.length + 20; u++)
3341
3273
  r.b ^= l.charCodeAt(u) | 0, r.next();
@@ -3344,95 +3276,95 @@ function rs() {
3344
3276
  return r.a = h.a, r.b = h.b, r.c = h.c, r.d = h.d, r;
3345
3277
  }
3346
3278
  function o(h, r) {
3347
- var l = new n(h), u = r && r.state, f = function() {
3279
+ var l = new n(h), u = r && r.state, c = function() {
3348
3280
  return (l.next() >>> 0) / 4294967296;
3349
3281
  };
3350
- return f.double = function() {
3282
+ return c.double = function() {
3351
3283
  do
3352
- var c = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, v = (c + g) / (1 << 21);
3353
- while (v === 0);
3354
- return v;
3355
- }, f.int32 = l.next, f.quick = f, u && (typeof u == "object" && a(u, l), f.state = function() {
3284
+ var f = l.next() >>> 11, g = (l.next() >>> 0) / 4294967296, p = (f + g) / (1 << 21);
3285
+ while (p === 0);
3286
+ return p;
3287
+ }, c.int32 = l.next, c.quick = c, u && (typeof u == "object" && a(u, l), c.state = function() {
3356
3288
  return a(l, {});
3357
- }), f;
3289
+ }), c;
3358
3290
  }
3359
3291
  e && e.exports ? e.exports = o : this.tychei = o;
3360
3292
  })(
3361
- ss,
3293
+ Jn,
3362
3294
  s
3363
3295
  );
3364
- }(Ht)), Ht.exports;
3296
+ }(St)), St.exports;
3365
3297
  }
3366
- var Wt = { exports: {} }, as = Wt.exports, Ge;
3367
- function os() {
3368
- return Ge || (Ge = 1, function(s) {
3298
+ var Ht = { exports: {} }, es = Ht.exports, Ve;
3299
+ function is() {
3300
+ return Ve || (Ve = 1, function(s) {
3369
3301
  (function(t, e, i) {
3370
- var n = 256, a = 6, o = 52, h = "random", r = i.pow(n, a), l = i.pow(2, o), u = l * 2, f = n - 1, c;
3371
- function g(x, w, k) {
3302
+ var n = 256, a = 6, o = 52, h = "random", r = i.pow(n, a), l = i.pow(2, o), u = l * 2, c = n - 1, f;
3303
+ function g(x, w, b) {
3372
3304
  var A = [];
3373
3305
  w = w == !0 ? { entropy: !0 } : w || {};
3374
- var N = y(p(
3306
+ var k = y(v(
3375
3307
  w.entropy ? [x, _(e)] : x ?? m(),
3376
3308
  3
3377
- ), A), C = new v(A), b = function() {
3378
- for (var S = C.g(a), W = r, B = 0; S < l; )
3379
- S = (S + B) * n, W *= n, B = C.g(1);
3309
+ ), A), C = new p(A), N = function() {
3310
+ for (var S = C.g(a), M = r, O = 0; S < l; )
3311
+ S = (S + O) * n, M *= n, O = C.g(1);
3380
3312
  for (; S >= u; )
3381
- S /= 2, W /= 2, B >>>= 1;
3382
- return (S + B) / W;
3313
+ S /= 2, M /= 2, O >>>= 1;
3314
+ return (S + O) / M;
3383
3315
  };
3384
- return b.int32 = function() {
3316
+ return N.int32 = function() {
3385
3317
  return C.g(4) | 0;
3386
- }, b.quick = function() {
3318
+ }, N.quick = function() {
3387
3319
  return C.g(4) / 4294967296;
3388
- }, b.double = b, y(_(C.S), e), (w.pass || k || function(S, W, B, J) {
3320
+ }, N.double = N, y(_(C.S), e), (w.pass || b || function(S, M, O, J) {
3389
3321
  return J && (J.S && d(J, C), S.state = function() {
3390
3322
  return d(C, {});
3391
- }), B ? (i[h] = S, W) : S;
3323
+ }), O ? (i[h] = S, M) : S;
3392
3324
  })(
3393
- b,
3394
3325
  N,
3326
+ k,
3395
3327
  "global" in w ? w.global : this == i,
3396
3328
  w.state
3397
3329
  );
3398
3330
  }
3399
- function v(x) {
3400
- var w, k = x.length, A = this, N = 0, C = A.i = A.j = 0, b = A.S = [];
3401
- for (k || (x = [k++]); N < n; )
3402
- b[N] = N++;
3403
- for (N = 0; N < n; N++)
3404
- b[N] = b[C = f & C + x[N % k] + (w = b[N])], b[C] = w;
3331
+ function p(x) {
3332
+ var w, b = x.length, A = this, k = 0, C = A.i = A.j = 0, N = A.S = [];
3333
+ for (b || (x = [b++]); k < n; )
3334
+ N[k] = k++;
3335
+ for (k = 0; k < n; k++)
3336
+ N[k] = N[C = c & C + x[k % b] + (w = N[k])], N[C] = w;
3405
3337
  (A.g = function(S) {
3406
- for (var W, B = 0, J = A.i, tt = A.j, nt = A.S; S--; )
3407
- W = nt[J = f & J + 1], B = B * n + nt[f & (nt[J] = nt[tt = f & tt + W]) + (nt[tt] = W)];
3408
- return A.i = J, A.j = tt, B;
3338
+ for (var M, O = 0, J = A.i, tt = A.j, nt = A.S; S--; )
3339
+ M = nt[J = c & J + 1], O = O * n + nt[c & (nt[J] = nt[tt = c & tt + M]) + (nt[tt] = M)];
3340
+ return A.i = J, A.j = tt, O;
3409
3341
  })(n);
3410
3342
  }
3411
3343
  function d(x, w) {
3412
3344
  return w.i = x.i, w.j = x.j, w.S = x.S.slice(), w;
3413
3345
  }
3414
- function p(x, w) {
3415
- var k = [], A = typeof x, N;
3346
+ function v(x, w) {
3347
+ var b = [], A = typeof x, k;
3416
3348
  if (w && A == "object")
3417
- for (N in x)
3349
+ for (k in x)
3418
3350
  try {
3419
- k.push(p(x[N], w - 1));
3351
+ b.push(v(x[k], w - 1));
3420
3352
  } catch {
3421
3353
  }
3422
- return k.length ? k : A == "string" ? x : x + "\0";
3354
+ return b.length ? b : A == "string" ? x : x + "\0";
3423
3355
  }
3424
3356
  function y(x, w) {
3425
- for (var k = x + "", A, N = 0; N < k.length; )
3426
- w[f & N] = f & (A ^= w[f & N] * 19) + k.charCodeAt(N++);
3357
+ for (var b = x + "", A, k = 0; k < b.length; )
3358
+ w[c & k] = c & (A ^= w[c & k] * 19) + b.charCodeAt(k++);
3427
3359
  return _(w);
3428
3360
  }
3429
3361
  function m() {
3430
3362
  try {
3431
3363
  var x;
3432
- return c && (x = c.randomBytes) ? x = x(n) : (x = new Uint8Array(n), (t.crypto || t.msCrypto).getRandomValues(x)), _(x);
3364
+ return f && (x = f.randomBytes) ? x = x(n) : (x = new Uint8Array(n), (t.crypto || t.msCrypto).getRandomValues(x)), _(x);
3433
3365
  } catch {
3434
- var w = t.navigator, k = w && w.plugins;
3435
- return [+/* @__PURE__ */ new Date(), t, k, t.screen, _(e)];
3366
+ var w = t.navigator, b = w && w.plugins;
3367
+ return [+/* @__PURE__ */ new Date(), t, b, t.screen, _(e)];
3436
3368
  }
3437
3369
  }
3438
3370
  function _(x) {
@@ -3441,7 +3373,7 @@ function os() {
3441
3373
  if (y(i.random(), e), s.exports) {
3442
3374
  s.exports = g;
3443
3375
  try {
3444
- c = Wi;
3376
+ f = Si;
3445
3377
  } catch {
3446
3378
  }
3447
3379
  } else
@@ -3449,35 +3381,35 @@ function os() {
3449
3381
  })(
3450
3382
  // global: `self` in browsers (including strict mode and web workers),
3451
3383
  // otherwise `this` in Node and other environments
3452
- typeof self < "u" ? self : as,
3384
+ typeof self < "u" ? self : es,
3453
3385
  [],
3454
3386
  // pool: entropy pool starts empty
3455
3387
  Math
3456
3388
  // math: package containing random, pow, and seedrandom
3457
3389
  );
3458
- }(Wt)), Wt.exports;
3459
- }
3460
- var Kt, je;
3461
- function ls() {
3462
- if (je) return Kt;
3463
- je = 1;
3464
- var s = Un(), t = Zn(), e = Jn(), i = es(), n = ns(), a = rs(), o = os();
3465
- return o.alea = s, o.xor128 = t, o.xorwow = e, o.xorshift7 = i, o.xor4096 = n, o.tychei = a, Kt = o, Kt;
3466
- }
3467
- var hs = ls();
3468
- const $e = /* @__PURE__ */ Hi(hs);
3469
- class he extends Q {
3390
+ }(Ht)), Ht.exports;
3391
+ }
3392
+ var jt, Ye;
3393
+ function ns() {
3394
+ if (Ye) return jt;
3395
+ Ye = 1;
3396
+ var s = Yn(), t = Gn(), e = Un(), i = Kn(), n = Qn(), a = ts(), o = is();
3397
+ return o.alea = s, o.xor128 = t, o.xorwow = e, o.xorshift7 = i, o.xor4096 = n, o.tychei = a, jt = o, jt;
3398
+ }
3399
+ var ss = ns();
3400
+ const qe = /* @__PURE__ */ Li(ss);
3401
+ class re extends Q {
3470
3402
  constructor() {
3471
- super(...arguments), this._tag = "voronoitreemap", this.polygons = this.addDisposer(new Z(K.new({}), () => Mi._new(this._root, {
3403
+ super(...arguments), this._tag = "voronoitreemap", this.polygons = this.addDisposer(new Z(K.new({}), () => zi._new(this._root, {
3472
3404
  themeTags: G(this.polygons.template.get("themeTags", []), [this._tag, "shape"])
3473
- }, [this.polygons.template]))), this.voronoi = jn();
3405
+ }, [this.polygons.template]))), this.voronoi = Xn();
3474
3406
  }
3475
3407
  _afterNew() {
3476
3408
  this.nodesContainer.setAll({
3477
- x: O,
3478
- y: O,
3479
- centerX: O,
3480
- centerY: O
3409
+ x: E,
3410
+ y: E,
3411
+ centerX: E,
3412
+ centerY: E
3481
3413
  }), this.nodes.template.setPrivate("trustBounds", !0), super._afterNew();
3482
3414
  }
3483
3415
  _prepareChildren() {
@@ -3485,7 +3417,7 @@ class he extends Q {
3485
3417
  const t = this.innerWidth() / 2, e = this.innerHeight() / 2;
3486
3418
  let i = this._rootNode;
3487
3419
  const n = this.get("selectedDataItem");
3488
- n && (i = n.get("d3HierarchyNode")), this.voronoi.convergenceRatio(this.get("convergenceRatio", 5e-3)), this.voronoi.maxIterationCount(this.get("maxIterationCount", 100)), this.voronoi.minWeightRatio(this.get("minWeightRatio", 5e-3)), this.isDirty("type") && this.get("type") == "polygon" && (this.voronoi.clip(this.getCirclePolygon(1)), this._updateVisuals()), this._sizeDirty && this.get("type") == "rectangle" && (this.voronoi.prng($e("X")), this.voronoi.clip([[-t, -e], [-t, e], [t, e], [t, -e]])(i), this._updateVisuals()), (this._valuesDirty || this.isDirty("selectedDataItem")) && i && (this.voronoi.prng($e("X")), this.voronoi(i), this._updateVisuals());
3420
+ n && (i = n.get("d3HierarchyNode")), this.voronoi.convergenceRatio(this.get("convergenceRatio", 5e-3)), this.voronoi.maxIterationCount(this.get("maxIterationCount", 100)), this.voronoi.minWeightRatio(this.get("minWeightRatio", 5e-3)), this.isDirty("type") && this.get("type") == "polygon" && (this.voronoi.clip(this.getCirclePolygon(1)), this._updateVisuals()), this._sizeDirty && this.get("type") == "rectangle" && (this.voronoi.prng(qe("X")), this.voronoi.clip([[-t, -e], [-t, e], [t, e], [t, -e]])(i), this._updateVisuals()), (this._valuesDirty || this.isDirty("selectedDataItem")) && i && (this.voronoi.prng(qe("X")), this.voronoi(i), this._updateVisuals());
3489
3421
  }
3490
3422
  _updateNode(t) {
3491
3423
  const e = t.get("d3HierarchyNode").polygon, i = t.get("polygon");
@@ -3493,20 +3425,20 @@ class he extends Q {
3493
3425
  let n = [], a = 1;
3494
3426
  this.get("type") == "polygon" && (a = Math.min(this.innerWidth(), this.innerHeight()) / 2);
3495
3427
  let o = 1 / 0, h = -1 / 0;
3496
- for (let f = 0, c = e.length; f < c; f++) {
3497
- const g = e[f];
3498
- let v = g[0] * a, d = g[1] * a;
3499
- n.push([v, d]), o = Math.min(o, v), h = Math.max(h, v);
3428
+ for (let c = 0, f = e.length; c < f; c++) {
3429
+ const g = e[c];
3430
+ let p = g[0] * a, d = g[1] * a;
3431
+ n.push([p, d]), o = Math.min(o, p), h = Math.max(h, p);
3500
3432
  }
3501
3433
  i.set("coordinates", n);
3502
3434
  const r = t.get("fill"), l = t.get("fillPattern");
3503
3435
  i._setDefault("fill", r), i._setDefault("fillPattern", l);
3504
3436
  const u = t.get("label");
3505
3437
  if (u) {
3506
- const f = e.site;
3507
- f && u.setAll({
3508
- x: f.x * a,
3509
- y: f.y * a,
3438
+ const c = e.site;
3439
+ c && u.setAll({
3440
+ x: c.x * a,
3441
+ y: c.y * a,
3510
3442
  maxWidth: Math.abs(h - o)
3511
3443
  });
3512
3444
  }
@@ -3541,21 +3473,21 @@ class he extends Q {
3541
3473
  return n;
3542
3474
  }
3543
3475
  }
3544
- he.className = "VoronoiTreemap";
3545
- he.classNames = Q.classNames.concat([he.className]);
3476
+ re.className = "VoronoiTreemap";
3477
+ re.classNames = Q.classNames.concat([re.className]);
3546
3478
  export {
3547
- ee as BreadcrumbBar,
3548
- ei as DefaultTheme,
3549
- ie as ForceDirected,
3479
+ Zt as BreadcrumbBar,
3480
+ Qe as DefaultTheme,
3481
+ Qt as ForceDirected,
3550
3482
  Q as Hierarchy,
3551
- Bt as HierarchyLink,
3483
+ Mt as HierarchyLink,
3552
3484
  dt as HierarchyNode,
3553
3485
  lt as LinkedHierarchy,
3554
- It as LinkedHierarchyNode,
3555
- ne as Pack,
3556
- kt as Partition,
3557
- se as Sunburst,
3558
- re as Tree,
3559
- ae as Treemap,
3560
- he as VoronoiTreemap
3486
+ Wt as LinkedHierarchyNode,
3487
+ Jt as Pack,
3488
+ wt as Partition,
3489
+ te as Sunburst,
3490
+ ee as Tree,
3491
+ ie as Treemap,
3492
+ re as VoronoiTreemap
3561
3493
  };