@orangelogic/design-system 2.69.0 → 2.70.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 (220) hide show
  1. package/library/chunks/AxisLabelRadial.BTpA5dYy.js +11 -0
  2. package/library/chunks/BaseColumnSeries.hIO71GLG.js +304 -0
  3. package/library/chunks/CandlestickSeries.w9C0GR9v.js +362 -0
  4. package/library/chunks/Circle.tOnnO-F-.js +17 -0
  5. package/library/chunks/ColumnSeries.Ckz75x1M.js +54 -0
  6. package/library/chunks/EditableAxisLabel.CCMTJT7K.js +445 -0
  7. package/library/chunks/EditableLabel.DPmicdjK.js +119 -0
  8. package/library/chunks/Gradient.BrDBLm8v.js +40 -0
  9. package/library/chunks/LinearGradient.CxfXxvMw.js +37 -0
  10. package/library/chunks/MonotoneXTension.CJMEHHj3.js +139 -0
  11. package/library/chunks/Picture.BNASYM-P.js +49 -0
  12. package/library/chunks/Polygon.Dr-GV2hn.js +70 -0
  13. package/library/chunks/ProgressPie.4mPA6xqm.js +234 -0
  14. package/library/chunks/RadialLabel.HfsGiN4x.js +88 -0
  15. package/library/chunks/Scrollbar.Bgg-RhjP.js +118 -0
  16. package/library/chunks/Slice.Dm56LTKj.js +120 -0
  17. package/library/chunks/Slider.FKJwoPq2.js +19 -0
  18. package/library/chunks/SpriteResizer.-qJDgug8.js +446 -0
  19. package/library/chunks/Triangle.BECgi7mc.js +21 -0
  20. package/library/chunks/ZoomTools.cgwuIB0e.js +199 -0
  21. package/library/chunks/___vite-browser-external_commonjs-proxy.C2tf3HsQ.js +8 -0
  22. package/library/chunks/{_baseUniq.Df-fLIBx.js → _baseUniq.BUihBa8c.js} +56 -53
  23. package/library/chunks/{_commonjsHelpers.ByX85dGu.js → _commonjsHelpers.DQNKXVTB.js} +2 -2
  24. package/library/chunks/accessors.BHk36ecy.js +11 -0
  25. package/library/chunks/am-chart.oZVBmpnn.js +18435 -0
  26. package/library/chunks/{animation.DfUHRQry.js → animation.DU8t6mrk.js} +1 -1
  27. package/library/chunks/{button.SoX-7UYy.js → button.CAAJPQFu.js} +3 -3
  28. package/library/chunks/{capitalize.WSkCXkNE.js → capitalize.CNStXZBq.js} +1 -1
  29. package/library/chunks/cardinal.BCA_LB0u.js +64 -0
  30. package/library/chunks/{color-swatch-group.Dx1fbSJx.js → color-swatch-group.CKHyWM8K.js} +6 -6
  31. package/library/chunks/{color-swatch.B7XXHxx1.js → color-swatch.BkpPCXd6.js} +2 -2
  32. package/library/chunks/colorPicker.C4w_vDjh.js +527 -0
  33. package/library/chunks/{confirm-popover.327ATuQH.js → confirm-popover.ZD74yDWw.js} +3 -3
  34. package/library/chunks/{content-builder.Bxi6k2LA.js → content-builder.B4Tqoc6M.js} +40 -34
  35. package/library/chunks/{cropper.BraEEykE.js → cropper.CQB3_qqG.js} +6937 -6935
  36. package/library/chunks/{dialog.eN3RUbwx.js → dialog.qSV5AjOE.js} +2 -2
  37. package/library/chunks/{dom.CZrJ64Dm.js → dom.BQVKDNd8.js} +1 -1
  38. package/library/chunks/{dot-pagination.Bek4w4zz.js → dot-pagination.BN_0ljfc.js} +2 -2
  39. package/library/chunks/exporting.BdjsEGF8.js +1407 -0
  40. package/library/chunks/{file-on-demand.BiC4cymk.js → file-on-demand.CXE4zf0J.js} +448 -386
  41. package/library/chunks/flow.D0FqdfOy.js +1594 -0
  42. package/library/chunks/{folder-select.DVEFgexx.js → folder-select.CPALQK22.js} +4 -4
  43. package/library/chunks/{form.CO12-VK0.js → form.DgwYWi0O.js} +1 -1
  44. package/library/chunks/gantt.DfUM7Gvb.js +2459 -0
  45. package/library/chunks/{header.Da5yvwdy.js → header.DXZ_5gLY.js} +2 -2
  46. package/library/chunks/hierarchy.5kfBCoGt.js +3561 -0
  47. package/library/chunks/{hub-connection.CfARlehM.js → hub-connection.Ot2odiCz.js} +1 -1
  48. package/library/chunks/{i18n.BMRLOAZR.js → i18n.C0iakJkV.js} +19 -11
  49. package/library/chunks/{iframe.BJizUE1A.js → iframe.BlzVfeBc.js} +2 -2
  50. package/library/chunks/{image.bndP5q2c.js → image.B3WjaCXP.js} +2 -2
  51. package/library/chunks/index.BkoLctE9.js +533 -0
  52. package/library/chunks/index.CZJTjkLp.js +142 -0
  53. package/library/chunks/{index.Bhnf0N8Q.js → index.CmVKj_wl.js} +7 -7
  54. package/library/chunks/index.DU0XUO4k.js +176 -0
  55. package/library/chunks/index.DcjJFMlq.js +1520 -0
  56. package/library/chunks/isObjectLike.z36Fu426.js +34 -0
  57. package/library/chunks/{isSymbol.huJ_Cvxt.js → isSymbol.L0C2ND_U.js} +1 -1
  58. package/library/chunks/json.BjaT7cyo.js +119 -0
  59. package/library/chunks/{list-editor.Du1h2Ms0.js → list-editor.CIAAFPco.js} +251 -222
  60. package/library/chunks/map.DbgNAGxD.js +3037 -0
  61. package/library/chunks/markerjs2.esm.B_9kjmye.js +1912 -0
  62. package/library/chunks/{option.Ce_wlnZj.js → option.ByVbmxUQ.js} +2 -2
  63. package/library/chunks/{pagination.DXu-mFAk.js → pagination.DPQn2fKX.js} +4 -4
  64. package/library/chunks/pdfmake.Bs7cMDH0.js +41224 -0
  65. package/library/chunks/percent.DO4FjAdu.js +902 -0
  66. package/library/chunks/{purify.es.BGaRrCfO.js → purify.es.BIuh5IAZ.js} +115 -115
  67. package/library/chunks/radar.Dd5fJVMg.js +789 -0
  68. package/library/chunks/{responsive.DgQTIrna.js → responsive.DL-wBD4P.js} +1 -1
  69. package/library/chunks/sliceGrouper.DA3aeuJ-.js +93 -0
  70. package/library/chunks/stock.BfI5MUyK.js +12684 -0
  71. package/library/chunks/{string.Cp_XNbnV.js → string.B_rEG27K.js} +1 -1
  72. package/library/chunks/{tab-group.B2pW__9H.js → tab-group.1h51o_Ly.js} +4 -4
  73. package/library/chunks/{table.5eWm9FfN.js → table.wVHv1Xze.js} +348 -327
  74. package/library/chunks/timeline.BxMLjB5J.js +837 -0
  75. package/library/chunks/timer.B39XOBYL.js +123 -0
  76. package/library/chunks/{toString.CRT5zqEU.js → toString.CL_lYXbK.js} +3 -3
  77. package/library/chunks/transform.BuqENXeT.js +50 -0
  78. package/library/chunks/{tree.Zls5YZ8z.js → tree.Bx0IGsWm.js} +2 -2
  79. package/library/chunks/venn.CxFupTb9.js +966 -0
  80. package/library/chunks/vfs_fonts.VJpdcrR6.js +9 -0
  81. package/library/chunks/watch.BCJD77bD.js +547 -0
  82. package/library/chunks/wc.ThQubbN2.js +255 -0
  83. package/library/chunks/xlsx.v-qkA-dg.js +25118 -0
  84. package/library/chunks/xy.q6e68du3.js +333 -0
  85. package/library/components/alert.js +2 -2
  86. package/library/components/am-chart.d.ts +3 -0
  87. package/library/components/am-chart.js +11 -0
  88. package/library/components/animated-image.js +1 -1
  89. package/library/components/animation.js +2 -2
  90. package/library/components/array-line-clamp.js +1 -1
  91. package/library/components/asset-link-format.js +7 -7
  92. package/library/components/atoms.js +166 -162
  93. package/library/components/avatar.js +1 -1
  94. package/library/components/border-input-group.js +1 -1
  95. package/library/components/breadcrumb-item.js +1 -1
  96. package/library/components/breadcrumb.js +1 -1
  97. package/library/components/button.js +4 -4
  98. package/library/components/checkbox.js +2 -2
  99. package/library/components/color-picker.js +4 -4
  100. package/library/components/color-swatch-group.js +7 -7
  101. package/library/components/color-swatch.js +3 -3
  102. package/library/components/confirm-popover.js +4 -4
  103. package/library/components/copy-button.js +2 -2
  104. package/library/components/corner-position-input-group.js +2 -2
  105. package/library/components/cropper.js +1 -1
  106. package/library/components/details.js +3 -2
  107. package/library/components/dialog.js +3 -3
  108. package/library/components/divider.js +1 -1
  109. package/library/components/dot-pagination.js +3 -3
  110. package/library/components/drawer.js +3 -3
  111. package/library/components/dropdown.js +2 -2
  112. package/library/components/dynamic-select.js +32 -30
  113. package/library/components/e-chart.d.ts +3 -0
  114. package/library/components/e-chart.js +47908 -0
  115. package/library/components/element-clamp.js +3 -3
  116. package/library/components/file-on-demand.js +10 -10
  117. package/library/components/folder-select.js +4 -4
  118. package/library/components/format-bytes.js +1 -1
  119. package/library/components/format-date.js +1 -1
  120. package/library/components/format-number.js +1 -1
  121. package/library/components/format-time.js +2 -2
  122. package/library/components/grid-item.js +1 -1
  123. package/library/components/header.js +3 -3
  124. package/library/components/hub-connection.js +2 -2
  125. package/library/components/icon-button.js +1 -1
  126. package/library/components/icon.js +1 -1
  127. package/library/components/iframe.js +3 -3
  128. package/library/components/image-comparer.js +2 -2
  129. package/library/components/image.js +3 -3
  130. package/library/components/include.js +1 -1
  131. package/library/components/input.js +3 -3
  132. package/library/components/line-clamp.js +1 -1
  133. package/library/components/list-editor.js +11 -8
  134. package/library/components/markdown.js +2 -2
  135. package/library/components/masonry.js +2 -2
  136. package/library/components/menu-item.js +2 -2
  137. package/library/components/menu.js +1 -1
  138. package/library/components/molecules.js +5 -5
  139. package/library/components/mutation-observer.js +1 -1
  140. package/library/components/option.js +3 -3
  141. package/library/components/organisms.js +2 -2
  142. package/library/components/pagination.js +5 -5
  143. package/library/components/popup.js +1 -1
  144. package/library/components/position-picker.js +1 -1
  145. package/library/components/progress-bar.js +1 -1
  146. package/library/components/progress-ring.js +1 -1
  147. package/library/components/qr-code.js +1 -1
  148. package/library/components/radio-button.js +1 -1
  149. package/library/components/radio-card.js +1 -1
  150. package/library/components/radio-group.js +2 -2
  151. package/library/components/radio.js +1 -1
  152. package/library/components/range.js +3 -3
  153. package/library/components/rating.js +2 -2
  154. package/library/components/relative-time.js +1 -1
  155. package/library/components/resize-observer.js +1 -1
  156. package/library/components/select.js +4 -4
  157. package/library/components/share-option-list.js +3 -3
  158. package/library/components/sidebar.js +1 -1
  159. package/library/components/size-input-group.js +2 -2
  160. package/library/components/spinner.js +1 -1
  161. package/library/components/split-panel.js +2 -2
  162. package/library/components/stepper.js +1 -1
  163. package/library/components/switch.js +2 -2
  164. package/library/components/tab-group.js +5 -5
  165. package/library/components/tab-panel.js +1 -1
  166. package/library/components/tab.js +2 -2
  167. package/library/components/table.js +5 -5
  168. package/library/components/tag.js +1 -1
  169. package/library/components/textarea.js +2 -2
  170. package/library/components/timecode.js +2 -2
  171. package/library/components/tooltip.js +2 -2
  172. package/library/components/tree-item.js +3 -3
  173. package/library/components/tree.js +3 -3
  174. package/library/components/typeface.js +2 -2
  175. package/library/components/types.js +27684 -27970
  176. package/library/components/video.js +1107 -1110
  177. package/library/package.json +1 -1
  178. package/library/packages/atoms/src/components/am-chart/am-chart.d.ts +45 -0
  179. package/library/packages/atoms/src/components/am-chart/am-chart.styles.d.ts +2 -0
  180. package/library/packages/atoms/src/components/am-chart/am-chart.utils.d.ts +23 -0
  181. package/library/packages/atoms/src/components/e-chart/e-chart-controller.d.ts +30 -0
  182. package/library/packages/atoms/src/components/e-chart/e-chart.d.ts +38 -0
  183. package/library/packages/atoms/src/components/e-chart/e-chart.styles.d.ts +2 -0
  184. package/library/packages/atoms/src/components/table/table.d.ts +21 -0
  185. package/library/packages/atoms/src/components/table/tabulator-tables/core/Tabulator.d.ts +1 -0
  186. package/library/packages/atoms/src/components/table/tabulator-tables/core/tools/DataLoader.d.ts +3 -1
  187. package/library/packages/atoms/src/index.d.ts +2 -0
  188. package/library/packages/events/src/cx-chart-plan-change.d.ts +10 -0
  189. package/library/packages/events/src/cx-dashboard-filter-change.d.ts +6 -0
  190. package/library/packages/events/src/cx-dashboard-table-load-more.d.ts +9 -0
  191. package/library/packages/events/src/cx-e-chart-drill-down.d.ts +16 -0
  192. package/library/packages/events/src/events.d.ts +4 -0
  193. package/library/packages/molecules/src/index.d.ts +1 -0
  194. package/library/packages/molecules/src/list-editor/list-editor.d.ts +7 -0
  195. package/library/packages/molecules/src/stat-card/stat-card.d.ts +81 -0
  196. package/library/packages/molecules/src/stat-card/stat-card.styles.d.ts +2 -0
  197. package/library/packages/molecules/src/storybook/storybook.d.ts +1 -0
  198. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +1 -1
  199. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.d.ts +88 -0
  200. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-builder.styles.d.ts +2 -0
  201. package/library/packages/organisms/src/content-builder/components/chart-plan-builder/chart-plan-schema.d.ts +100 -0
  202. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -2
  203. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.d.ts +83 -0
  204. package/library/packages/organisms/src/dashboard-filter/dashboard-filter.styles.d.ts +2 -0
  205. package/library/packages/organisms/src/dashboard-table/dashboard-table.d.ts +45 -0
  206. package/library/packages/organisms/src/dashboard-table/dashboard-table.styles.d.ts +2 -0
  207. package/library/packages/organisms/src/index.d.ts +3 -0
  208. package/library/packages/services/src/api/endpoints.d.ts +3 -0
  209. package/library/packages/types/src/am-chart.d.ts +22 -0
  210. package/library/packages/types/src/content-builder.d.ts +1 -0
  211. package/library/packages/types/src/stat-card.d.ts +19 -0
  212. package/library/packages/types/src/table.d.ts +4 -0
  213. package/library/packages/utils/src/custom-element/i18n.d.ts +8 -0
  214. package/library/react-web-component.d.ts +280 -4
  215. package/library/utils.js +8 -8
  216. package/package.json +1 -1
  217. package/library/chunks/_baseRest.ClTMQtN1.js +0 -67
  218. package/library/chunks/identity.ByMq8VxU.js +0 -6
  219. package/library/chunks/isObjectLike.D3cpZO39.js +0 -81
  220. package/library/chunks/watch.q1sEjPWL.js +0 -501
@@ -0,0 +1,1520 @@
1
+ import { T as zt, d as Yt, t as Ut, n as Kt } from "./timer.B39XOBYL.js";
2
+ var W = "http://www.w3.org/1999/xhtml";
3
+ const ut = {
4
+ svg: "http://www.w3.org/2000/svg",
5
+ xhtml: W,
6
+ xlink: "http://www.w3.org/1999/xlink",
7
+ xml: "http://www.w3.org/XML/1998/namespace",
8
+ xmlns: "http://www.w3.org/2000/xmlns/"
9
+ };
10
+ function Y(t) {
11
+ var n = t += "", e = n.indexOf(":");
12
+ return e >= 0 && (n = t.slice(0, e)) !== "xmlns" && (t = t.slice(e + 1)), ut.hasOwnProperty(n) ? { space: ut[n], local: t } : t;
13
+ }
14
+ function Gt(t) {
15
+ return function() {
16
+ var n = this.ownerDocument, e = this.namespaceURI;
17
+ return e === W && n.documentElement.namespaceURI === W ? n.createElement(t) : n.createElementNS(e, t);
18
+ };
19
+ }
20
+ function Wt(t) {
21
+ return function() {
22
+ return this.ownerDocument.createElementNS(t.space, t.local);
23
+ };
24
+ }
25
+ function bt(t) {
26
+ var n = Y(t);
27
+ return (n.local ? Wt : Gt)(n);
28
+ }
29
+ function Jt() {
30
+ }
31
+ function nt(t) {
32
+ return t == null ? Jt : function() {
33
+ return this.querySelector(t);
34
+ };
35
+ }
36
+ function Qt(t) {
37
+ typeof t != "function" && (t = nt(t));
38
+ for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
39
+ for (var s = n[i], o = s.length, a = r[i] = new Array(o), u, f, l = 0; l < o; ++l)
40
+ (u = s[l]) && (f = t.call(u, u.__data__, l, s)) && ("__data__" in u && (f.__data__ = u.__data__), a[l] = f);
41
+ return new y(r, this._parents);
42
+ }
43
+ function Zt(t) {
44
+ return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
45
+ }
46
+ function jt() {
47
+ return [];
48
+ }
49
+ function Nt(t) {
50
+ return t == null ? jt : function() {
51
+ return this.querySelectorAll(t);
52
+ };
53
+ }
54
+ function tn(t) {
55
+ return function() {
56
+ return Zt(t.apply(this, arguments));
57
+ };
58
+ }
59
+ function nn(t) {
60
+ typeof t == "function" ? t = tn(t) : t = Nt(t);
61
+ for (var n = this._groups, e = n.length, r = [], i = [], s = 0; s < e; ++s)
62
+ for (var o = n[s], a = o.length, u, f = 0; f < a; ++f)
63
+ (u = o[f]) && (r.push(t.call(u, u.__data__, f, o)), i.push(u));
64
+ return new y(r, i);
65
+ }
66
+ function At(t) {
67
+ return function() {
68
+ return this.matches(t);
69
+ };
70
+ }
71
+ function $t(t) {
72
+ return function(n) {
73
+ return n.matches(t);
74
+ };
75
+ }
76
+ var en = Array.prototype.find;
77
+ function rn(t) {
78
+ return function() {
79
+ return en.call(this.children, t);
80
+ };
81
+ }
82
+ function sn() {
83
+ return this.firstElementChild;
84
+ }
85
+ function on(t) {
86
+ return this.select(t == null ? sn : rn(typeof t == "function" ? t : $t(t)));
87
+ }
88
+ var an = Array.prototype.filter;
89
+ function un() {
90
+ return Array.from(this.children);
91
+ }
92
+ function fn(t) {
93
+ return function() {
94
+ return an.call(this.children, t);
95
+ };
96
+ }
97
+ function ln(t) {
98
+ return this.selectAll(t == null ? un : fn(typeof t == "function" ? t : $t(t)));
99
+ }
100
+ function cn(t) {
101
+ typeof t != "function" && (t = At(t));
102
+ for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
103
+ for (var s = n[i], o = s.length, a = r[i] = [], u, f = 0; f < o; ++f)
104
+ (u = s[f]) && t.call(u, u.__data__, f, s) && a.push(u);
105
+ return new y(r, this._parents);
106
+ }
107
+ function St(t) {
108
+ return new Array(t.length);
109
+ }
110
+ function hn() {
111
+ return new y(this._enter || this._groups.map(St), this._parents);
112
+ }
113
+ function V(t, n) {
114
+ this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = n;
115
+ }
116
+ V.prototype = {
117
+ constructor: V,
118
+ appendChild: function(t) {
119
+ return this._parent.insertBefore(t, this._next);
120
+ },
121
+ insertBefore: function(t, n) {
122
+ return this._parent.insertBefore(t, n);
123
+ },
124
+ querySelector: function(t) {
125
+ return this._parent.querySelector(t);
126
+ },
127
+ querySelectorAll: function(t) {
128
+ return this._parent.querySelectorAll(t);
129
+ }
130
+ };
131
+ function dn(t) {
132
+ return function() {
133
+ return t;
134
+ };
135
+ }
136
+ function pn(t, n, e, r, i, s) {
137
+ for (var o = 0, a, u = n.length, f = s.length; o < f; ++o)
138
+ (a = n[o]) ? (a.__data__ = s[o], r[o] = a) : e[o] = new V(t, s[o]);
139
+ for (; o < u; ++o)
140
+ (a = n[o]) && (i[o] = a);
141
+ }
142
+ function _n(t, n, e, r, i, s, o) {
143
+ var a, u, f = /* @__PURE__ */ new Map(), l = n.length, c = s.length, h = new Array(l), d;
144
+ for (a = 0; a < l; ++a)
145
+ (u = n[a]) && (h[a] = d = o.call(u, u.__data__, a, n) + "", f.has(d) ? i[a] = u : f.set(d, u));
146
+ for (a = 0; a < c; ++a)
147
+ d = o.call(t, s[a], a, s) + "", (u = f.get(d)) ? (r[a] = u, u.__data__ = s[a], f.delete(d)) : e[a] = new V(t, s[a]);
148
+ for (a = 0; a < l; ++a)
149
+ (u = n[a]) && f.get(h[a]) === u && (i[a] = u);
150
+ }
151
+ function gn(t) {
152
+ return t.__data__;
153
+ }
154
+ function xn(t, n) {
155
+ if (!arguments.length) return Array.from(this, gn);
156
+ var e = n ? _n : pn, r = this._parents, i = this._groups;
157
+ typeof t != "function" && (t = dn(t));
158
+ for (var s = i.length, o = new Array(s), a = new Array(s), u = new Array(s), f = 0; f < s; ++f) {
159
+ var l = r[f], c = i[f], h = c.length, d = yn(t.call(l, l && l.__data__, f, r)), p = d.length, _ = a[f] = new Array(p), $ = o[f] = new Array(p), Bt = u[f] = new Array(h);
160
+ e(l, c, _, $, Bt, d, n);
161
+ for (var k = 0, q = 0, ot, at; k < p; ++k)
162
+ if (ot = _[k]) {
163
+ for (k >= q && (q = k + 1); !(at = $[q]) && ++q < p; ) ;
164
+ ot._next = at || null;
165
+ }
166
+ }
167
+ return o = new y(o, r), o._enter = a, o._exit = u, o;
168
+ }
169
+ function yn(t) {
170
+ return typeof t == "object" && "length" in t ? t : Array.from(t);
171
+ }
172
+ function wn() {
173
+ return new y(this._exit || this._groups.map(St), this._parents);
174
+ }
175
+ function vn(t, n, e) {
176
+ var r = this.enter(), i = this, s = this.exit();
177
+ return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), n != null && (i = n(i), i && (i = i.selection())), e == null ? s.remove() : e(s), r && i ? r.merge(i).order() : i;
178
+ }
179
+ function mn(t) {
180
+ for (var n = t.selection ? t.selection() : t, e = this._groups, r = n._groups, i = e.length, s = r.length, o = Math.min(i, s), a = new Array(i), u = 0; u < o; ++u)
181
+ for (var f = e[u], l = r[u], c = f.length, h = a[u] = new Array(c), d, p = 0; p < c; ++p)
182
+ (d = f[p] || l[p]) && (h[p] = d);
183
+ for (; u < i; ++u)
184
+ a[u] = e[u];
185
+ return new y(a, this._parents);
186
+ }
187
+ function bn() {
188
+ for (var t = this._groups, n = -1, e = t.length; ++n < e; )
189
+ for (var r = t[n], i = r.length - 1, s = r[i], o; --i >= 0; )
190
+ (o = r[i]) && (s && o.compareDocumentPosition(s) ^ 4 && s.parentNode.insertBefore(o, s), s = o);
191
+ return this;
192
+ }
193
+ function Nn(t) {
194
+ t || (t = An);
195
+ function n(c, h) {
196
+ return c && h ? t(c.__data__, h.__data__) : !c - !h;
197
+ }
198
+ for (var e = this._groups, r = e.length, i = new Array(r), s = 0; s < r; ++s) {
199
+ for (var o = e[s], a = o.length, u = i[s] = new Array(a), f, l = 0; l < a; ++l)
200
+ (f = o[l]) && (u[l] = f);
201
+ u.sort(n);
202
+ }
203
+ return new y(i, this._parents).order();
204
+ }
205
+ function An(t, n) {
206
+ return t < n ? -1 : t > n ? 1 : t >= n ? 0 : NaN;
207
+ }
208
+ function $n() {
209
+ var t = arguments[0];
210
+ return arguments[0] = this, t.apply(null, arguments), this;
211
+ }
212
+ function Sn() {
213
+ return Array.from(this);
214
+ }
215
+ function En() {
216
+ for (var t = this._groups, n = 0, e = t.length; n < e; ++n)
217
+ for (var r = t[n], i = 0, s = r.length; i < s; ++i) {
218
+ var o = r[i];
219
+ if (o) return o;
220
+ }
221
+ return null;
222
+ }
223
+ function Cn() {
224
+ let t = 0;
225
+ for (const n of this) ++t;
226
+ return t;
227
+ }
228
+ function Rn() {
229
+ return !this.node();
230
+ }
231
+ function kn(t) {
232
+ for (var n = this._groups, e = 0, r = n.length; e < r; ++e)
233
+ for (var i = n[e], s = 0, o = i.length, a; s < o; ++s)
234
+ (a = i[s]) && t.call(a, a.__data__, s, i);
235
+ return this;
236
+ }
237
+ function Mn(t) {
238
+ return function() {
239
+ this.removeAttribute(t);
240
+ };
241
+ }
242
+ function Tn(t) {
243
+ return function() {
244
+ this.removeAttributeNS(t.space, t.local);
245
+ };
246
+ }
247
+ function In(t, n) {
248
+ return function() {
249
+ this.setAttribute(t, n);
250
+ };
251
+ }
252
+ function Hn(t, n) {
253
+ return function() {
254
+ this.setAttributeNS(t.space, t.local, n);
255
+ };
256
+ }
257
+ function Fn(t, n) {
258
+ return function() {
259
+ var e = n.apply(this, arguments);
260
+ e == null ? this.removeAttribute(t) : this.setAttribute(t, e);
261
+ };
262
+ }
263
+ function qn(t, n) {
264
+ return function() {
265
+ var e = n.apply(this, arguments);
266
+ e == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, e);
267
+ };
268
+ }
269
+ function Xn(t, n) {
270
+ var e = Y(t);
271
+ if (arguments.length < 2) {
272
+ var r = this.node();
273
+ return e.local ? r.getAttributeNS(e.space, e.local) : r.getAttribute(e);
274
+ }
275
+ return this.each((n == null ? e.local ? Tn : Mn : typeof n == "function" ? e.local ? qn : Fn : e.local ? Hn : In)(e, n));
276
+ }
277
+ function Et(t) {
278
+ return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
279
+ }
280
+ function Dn(t) {
281
+ return function() {
282
+ this.style.removeProperty(t);
283
+ };
284
+ }
285
+ function Ln(t, n, e) {
286
+ return function() {
287
+ this.style.setProperty(t, n, e);
288
+ };
289
+ }
290
+ function Pn(t, n, e) {
291
+ return function() {
292
+ var r = n.apply(this, arguments);
293
+ r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, e);
294
+ };
295
+ }
296
+ function On(t, n, e) {
297
+ return arguments.length > 1 ? this.each((n == null ? Dn : typeof n == "function" ? Pn : Ln)(t, n, e ?? "")) : R(this.node(), t);
298
+ }
299
+ function R(t, n) {
300
+ return t.style.getPropertyValue(n) || Et(t).getComputedStyle(t, null).getPropertyValue(n);
301
+ }
302
+ function Vn(t) {
303
+ return function() {
304
+ delete this[t];
305
+ };
306
+ }
307
+ function Bn(t, n) {
308
+ return function() {
309
+ this[t] = n;
310
+ };
311
+ }
312
+ function zn(t, n) {
313
+ return function() {
314
+ var e = n.apply(this, arguments);
315
+ e == null ? delete this[t] : this[t] = e;
316
+ };
317
+ }
318
+ function Yn(t, n) {
319
+ return arguments.length > 1 ? this.each((n == null ? Vn : typeof n == "function" ? zn : Bn)(t, n)) : this.node()[t];
320
+ }
321
+ function Ct(t) {
322
+ return t.trim().split(/^|\s+/);
323
+ }
324
+ function et(t) {
325
+ return t.classList || new Rt(t);
326
+ }
327
+ function Rt(t) {
328
+ this._node = t, this._names = Ct(t.getAttribute("class") || "");
329
+ }
330
+ Rt.prototype = {
331
+ add: function(t) {
332
+ var n = this._names.indexOf(t);
333
+ n < 0 && (this._names.push(t), this._node.setAttribute("class", this._names.join(" ")));
334
+ },
335
+ remove: function(t) {
336
+ var n = this._names.indexOf(t);
337
+ n >= 0 && (this._names.splice(n, 1), this._node.setAttribute("class", this._names.join(" ")));
338
+ },
339
+ contains: function(t) {
340
+ return this._names.indexOf(t) >= 0;
341
+ }
342
+ };
343
+ function kt(t, n) {
344
+ for (var e = et(t), r = -1, i = n.length; ++r < i; ) e.add(n[r]);
345
+ }
346
+ function Mt(t, n) {
347
+ for (var e = et(t), r = -1, i = n.length; ++r < i; ) e.remove(n[r]);
348
+ }
349
+ function Un(t) {
350
+ return function() {
351
+ kt(this, t);
352
+ };
353
+ }
354
+ function Kn(t) {
355
+ return function() {
356
+ Mt(this, t);
357
+ };
358
+ }
359
+ function Gn(t, n) {
360
+ return function() {
361
+ (n.apply(this, arguments) ? kt : Mt)(this, t);
362
+ };
363
+ }
364
+ function Wn(t, n) {
365
+ var e = Ct(t + "");
366
+ if (arguments.length < 2) {
367
+ for (var r = et(this.node()), i = -1, s = e.length; ++i < s; ) if (!r.contains(e[i])) return !1;
368
+ return !0;
369
+ }
370
+ return this.each((typeof n == "function" ? Gn : n ? Un : Kn)(e, n));
371
+ }
372
+ function Jn() {
373
+ this.textContent = "";
374
+ }
375
+ function Qn(t) {
376
+ return function() {
377
+ this.textContent = t;
378
+ };
379
+ }
380
+ function Zn(t) {
381
+ return function() {
382
+ var n = t.apply(this, arguments);
383
+ this.textContent = n ?? "";
384
+ };
385
+ }
386
+ function jn(t) {
387
+ return arguments.length ? this.each(t == null ? Jn : (typeof t == "function" ? Zn : Qn)(t)) : this.node().textContent;
388
+ }
389
+ function te() {
390
+ this.innerHTML = "";
391
+ }
392
+ function ne(t) {
393
+ return function() {
394
+ this.innerHTML = t;
395
+ };
396
+ }
397
+ function ee(t) {
398
+ return function() {
399
+ var n = t.apply(this, arguments);
400
+ this.innerHTML = n ?? "";
401
+ };
402
+ }
403
+ function re(t) {
404
+ return arguments.length ? this.each(t == null ? te : (typeof t == "function" ? ee : ne)(t)) : this.node().innerHTML;
405
+ }
406
+ function ie() {
407
+ this.nextSibling && this.parentNode.appendChild(this);
408
+ }
409
+ function se() {
410
+ return this.each(ie);
411
+ }
412
+ function oe() {
413
+ this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
414
+ }
415
+ function ae() {
416
+ return this.each(oe);
417
+ }
418
+ function ue(t) {
419
+ var n = typeof t == "function" ? t : bt(t);
420
+ return this.select(function() {
421
+ return this.appendChild(n.apply(this, arguments));
422
+ });
423
+ }
424
+ function fe() {
425
+ return null;
426
+ }
427
+ function le(t, n) {
428
+ var e = typeof t == "function" ? t : bt(t), r = n == null ? fe : typeof n == "function" ? n : nt(n);
429
+ return this.select(function() {
430
+ return this.insertBefore(e.apply(this, arguments), r.apply(this, arguments) || null);
431
+ });
432
+ }
433
+ function ce() {
434
+ var t = this.parentNode;
435
+ t && t.removeChild(this);
436
+ }
437
+ function he() {
438
+ return this.each(ce);
439
+ }
440
+ function de() {
441
+ var t = this.cloneNode(!1), n = this.parentNode;
442
+ return n ? n.insertBefore(t, this.nextSibling) : t;
443
+ }
444
+ function pe() {
445
+ var t = this.cloneNode(!0), n = this.parentNode;
446
+ return n ? n.insertBefore(t, this.nextSibling) : t;
447
+ }
448
+ function _e(t) {
449
+ return this.select(t ? pe : de);
450
+ }
451
+ function ge(t) {
452
+ return arguments.length ? this.property("__data__", t) : this.node().__data__;
453
+ }
454
+ function xe(t) {
455
+ return function(n) {
456
+ t.call(this, n, this.__data__);
457
+ };
458
+ }
459
+ function ye(t) {
460
+ return t.trim().split(/^|\s+/).map(function(n) {
461
+ var e = "", r = n.indexOf(".");
462
+ return r >= 0 && (e = n.slice(r + 1), n = n.slice(0, r)), { type: n, name: e };
463
+ });
464
+ }
465
+ function we(t) {
466
+ return function() {
467
+ var n = this.__on;
468
+ if (n) {
469
+ for (var e = 0, r = -1, i = n.length, s; e < i; ++e)
470
+ s = n[e], (!t.type || s.type === t.type) && s.name === t.name ? this.removeEventListener(s.type, s.listener, s.options) : n[++r] = s;
471
+ ++r ? n.length = r : delete this.__on;
472
+ }
473
+ };
474
+ }
475
+ function ve(t, n, e) {
476
+ return function() {
477
+ var r = this.__on, i, s = xe(n);
478
+ if (r) {
479
+ for (var o = 0, a = r.length; o < a; ++o)
480
+ if ((i = r[o]).type === t.type && i.name === t.name) {
481
+ this.removeEventListener(i.type, i.listener, i.options), this.addEventListener(i.type, i.listener = s, i.options = e), i.value = n;
482
+ return;
483
+ }
484
+ }
485
+ this.addEventListener(t.type, s, e), i = { type: t.type, name: t.name, value: n, listener: s, options: e }, r ? r.push(i) : this.__on = [i];
486
+ };
487
+ }
488
+ function me(t, n, e) {
489
+ var r = ye(t + ""), i, s = r.length, o;
490
+ if (arguments.length < 2) {
491
+ var a = this.node().__on;
492
+ if (a) {
493
+ for (var u = 0, f = a.length, l; u < f; ++u)
494
+ for (i = 0, l = a[u]; i < s; ++i)
495
+ if ((o = r[i]).type === l.type && o.name === l.name)
496
+ return l.value;
497
+ }
498
+ return;
499
+ }
500
+ for (a = n ? ve : we, i = 0; i < s; ++i) this.each(a(r[i], n, e));
501
+ return this;
502
+ }
503
+ function Tt(t, n, e) {
504
+ var r = Et(t), i = r.CustomEvent;
505
+ typeof i == "function" ? i = new i(n, e) : (i = r.document.createEvent("Event"), e ? (i.initEvent(n, e.bubbles, e.cancelable), i.detail = e.detail) : i.initEvent(n, !1, !1)), t.dispatchEvent(i);
506
+ }
507
+ function be(t, n) {
508
+ return function() {
509
+ return Tt(this, t, n);
510
+ };
511
+ }
512
+ function Ne(t, n) {
513
+ return function() {
514
+ return Tt(this, t, n.apply(this, arguments));
515
+ };
516
+ }
517
+ function Ae(t, n) {
518
+ return this.each((typeof n == "function" ? Ne : be)(t, n));
519
+ }
520
+ function* $e() {
521
+ for (var t = this._groups, n = 0, e = t.length; n < e; ++n)
522
+ for (var r = t[n], i = 0, s = r.length, o; i < s; ++i)
523
+ (o = r[i]) && (yield o);
524
+ }
525
+ var Se = [null];
526
+ function y(t, n) {
527
+ this._groups = t, this._parents = n;
528
+ }
529
+ function H() {
530
+ return new y([[document.documentElement]], Se);
531
+ }
532
+ function Ee() {
533
+ return this;
534
+ }
535
+ y.prototype = H.prototype = {
536
+ constructor: y,
537
+ select: Qt,
538
+ selectAll: nn,
539
+ selectChild: on,
540
+ selectChildren: ln,
541
+ filter: cn,
542
+ data: xn,
543
+ enter: hn,
544
+ exit: wn,
545
+ join: vn,
546
+ merge: mn,
547
+ selection: Ee,
548
+ order: bn,
549
+ sort: Nn,
550
+ call: $n,
551
+ nodes: Sn,
552
+ node: En,
553
+ size: Cn,
554
+ empty: Rn,
555
+ each: kn,
556
+ attr: Xn,
557
+ style: On,
558
+ property: Yn,
559
+ classed: Wn,
560
+ text: jn,
561
+ html: re,
562
+ raise: se,
563
+ lower: ae,
564
+ append: ue,
565
+ insert: le,
566
+ remove: he,
567
+ clone: _e,
568
+ datum: ge,
569
+ on: me,
570
+ dispatch: Ae,
571
+ [Symbol.iterator]: $e
572
+ };
573
+ function rt(t, n, e) {
574
+ t.prototype = n.prototype = e, e.constructor = t;
575
+ }
576
+ function It(t, n) {
577
+ var e = Object.create(t.prototype);
578
+ for (var r in n) e[r] = n[r];
579
+ return e;
580
+ }
581
+ function F() {
582
+ }
583
+ var M = 0.7, B = 1 / M, C = "\\s*([+-]?\\d+)\\s*", T = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", v = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Ce = /^#([0-9a-f]{3,8})$/, Re = new RegExp(`^rgb\\(${C},${C},${C}\\)$`), ke = new RegExp(`^rgb\\(${v},${v},${v}\\)$`), Me = new RegExp(`^rgba\\(${C},${C},${C},${T}\\)$`), Te = new RegExp(`^rgba\\(${v},${v},${v},${T}\\)$`), Ie = new RegExp(`^hsl\\(${T},${v},${v}\\)$`), He = new RegExp(`^hsla\\(${T},${v},${v},${T}\\)$`), ft = {
584
+ aliceblue: 15792383,
585
+ antiquewhite: 16444375,
586
+ aqua: 65535,
587
+ aquamarine: 8388564,
588
+ azure: 15794175,
589
+ beige: 16119260,
590
+ bisque: 16770244,
591
+ black: 0,
592
+ blanchedalmond: 16772045,
593
+ blue: 255,
594
+ blueviolet: 9055202,
595
+ brown: 10824234,
596
+ burlywood: 14596231,
597
+ cadetblue: 6266528,
598
+ chartreuse: 8388352,
599
+ chocolate: 13789470,
600
+ coral: 16744272,
601
+ cornflowerblue: 6591981,
602
+ cornsilk: 16775388,
603
+ crimson: 14423100,
604
+ cyan: 65535,
605
+ darkblue: 139,
606
+ darkcyan: 35723,
607
+ darkgoldenrod: 12092939,
608
+ darkgray: 11119017,
609
+ darkgreen: 25600,
610
+ darkgrey: 11119017,
611
+ darkkhaki: 12433259,
612
+ darkmagenta: 9109643,
613
+ darkolivegreen: 5597999,
614
+ darkorange: 16747520,
615
+ darkorchid: 10040012,
616
+ darkred: 9109504,
617
+ darksalmon: 15308410,
618
+ darkseagreen: 9419919,
619
+ darkslateblue: 4734347,
620
+ darkslategray: 3100495,
621
+ darkslategrey: 3100495,
622
+ darkturquoise: 52945,
623
+ darkviolet: 9699539,
624
+ deeppink: 16716947,
625
+ deepskyblue: 49151,
626
+ dimgray: 6908265,
627
+ dimgrey: 6908265,
628
+ dodgerblue: 2003199,
629
+ firebrick: 11674146,
630
+ floralwhite: 16775920,
631
+ forestgreen: 2263842,
632
+ fuchsia: 16711935,
633
+ gainsboro: 14474460,
634
+ ghostwhite: 16316671,
635
+ gold: 16766720,
636
+ goldenrod: 14329120,
637
+ gray: 8421504,
638
+ green: 32768,
639
+ greenyellow: 11403055,
640
+ grey: 8421504,
641
+ honeydew: 15794160,
642
+ hotpink: 16738740,
643
+ indianred: 13458524,
644
+ indigo: 4915330,
645
+ ivory: 16777200,
646
+ khaki: 15787660,
647
+ lavender: 15132410,
648
+ lavenderblush: 16773365,
649
+ lawngreen: 8190976,
650
+ lemonchiffon: 16775885,
651
+ lightblue: 11393254,
652
+ lightcoral: 15761536,
653
+ lightcyan: 14745599,
654
+ lightgoldenrodyellow: 16448210,
655
+ lightgray: 13882323,
656
+ lightgreen: 9498256,
657
+ lightgrey: 13882323,
658
+ lightpink: 16758465,
659
+ lightsalmon: 16752762,
660
+ lightseagreen: 2142890,
661
+ lightskyblue: 8900346,
662
+ lightslategray: 7833753,
663
+ lightslategrey: 7833753,
664
+ lightsteelblue: 11584734,
665
+ lightyellow: 16777184,
666
+ lime: 65280,
667
+ limegreen: 3329330,
668
+ linen: 16445670,
669
+ magenta: 16711935,
670
+ maroon: 8388608,
671
+ mediumaquamarine: 6737322,
672
+ mediumblue: 205,
673
+ mediumorchid: 12211667,
674
+ mediumpurple: 9662683,
675
+ mediumseagreen: 3978097,
676
+ mediumslateblue: 8087790,
677
+ mediumspringgreen: 64154,
678
+ mediumturquoise: 4772300,
679
+ mediumvioletred: 13047173,
680
+ midnightblue: 1644912,
681
+ mintcream: 16121850,
682
+ mistyrose: 16770273,
683
+ moccasin: 16770229,
684
+ navajowhite: 16768685,
685
+ navy: 128,
686
+ oldlace: 16643558,
687
+ olive: 8421376,
688
+ olivedrab: 7048739,
689
+ orange: 16753920,
690
+ orangered: 16729344,
691
+ orchid: 14315734,
692
+ palegoldenrod: 15657130,
693
+ palegreen: 10025880,
694
+ paleturquoise: 11529966,
695
+ palevioletred: 14381203,
696
+ papayawhip: 16773077,
697
+ peachpuff: 16767673,
698
+ peru: 13468991,
699
+ pink: 16761035,
700
+ plum: 14524637,
701
+ powderblue: 11591910,
702
+ purple: 8388736,
703
+ rebeccapurple: 6697881,
704
+ red: 16711680,
705
+ rosybrown: 12357519,
706
+ royalblue: 4286945,
707
+ saddlebrown: 9127187,
708
+ salmon: 16416882,
709
+ sandybrown: 16032864,
710
+ seagreen: 3050327,
711
+ seashell: 16774638,
712
+ sienna: 10506797,
713
+ silver: 12632256,
714
+ skyblue: 8900331,
715
+ slateblue: 6970061,
716
+ slategray: 7372944,
717
+ slategrey: 7372944,
718
+ snow: 16775930,
719
+ springgreen: 65407,
720
+ steelblue: 4620980,
721
+ tan: 13808780,
722
+ teal: 32896,
723
+ thistle: 14204888,
724
+ tomato: 16737095,
725
+ turquoise: 4251856,
726
+ violet: 15631086,
727
+ wheat: 16113331,
728
+ white: 16777215,
729
+ whitesmoke: 16119285,
730
+ yellow: 16776960,
731
+ yellowgreen: 10145074
732
+ };
733
+ rt(F, I, {
734
+ copy(t) {
735
+ return Object.assign(new this.constructor(), this, t);
736
+ },
737
+ displayable() {
738
+ return this.rgb().displayable();
739
+ },
740
+ hex: lt,
741
+ // Deprecated! Use color.formatHex.
742
+ formatHex: lt,
743
+ formatHex8: Fe,
744
+ formatHsl: qe,
745
+ formatRgb: ct,
746
+ toString: ct
747
+ });
748
+ function lt() {
749
+ return this.rgb().formatHex();
750
+ }
751
+ function Fe() {
752
+ return this.rgb().formatHex8();
753
+ }
754
+ function qe() {
755
+ return Ht(this).formatHsl();
756
+ }
757
+ function ct() {
758
+ return this.rgb().formatRgb();
759
+ }
760
+ function I(t) {
761
+ var n, e;
762
+ return t = (t + "").trim().toLowerCase(), (n = Ce.exec(t)) ? (e = n[1].length, n = parseInt(n[1], 16), e === 6 ? ht(n) : e === 3 ? new g(n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, (n & 15) << 4 | n & 15, 1) : e === 8 ? X(n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, (n & 255) / 255) : e === 4 ? X(n >> 12 & 15 | n >> 8 & 240, n >> 8 & 15 | n >> 4 & 240, n >> 4 & 15 | n & 240, ((n & 15) << 4 | n & 15) / 255) : null) : (n = Re.exec(t)) ? new g(n[1], n[2], n[3], 1) : (n = ke.exec(t)) ? new g(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, 1) : (n = Me.exec(t)) ? X(n[1], n[2], n[3], n[4]) : (n = Te.exec(t)) ? X(n[1] * 255 / 100, n[2] * 255 / 100, n[3] * 255 / 100, n[4]) : (n = Ie.exec(t)) ? _t(n[1], n[2] / 100, n[3] / 100, 1) : (n = He.exec(t)) ? _t(n[1], n[2] / 100, n[3] / 100, n[4]) : ft.hasOwnProperty(t) ? ht(ft[t]) : t === "transparent" ? new g(NaN, NaN, NaN, 0) : null;
763
+ }
764
+ function ht(t) {
765
+ return new g(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
766
+ }
767
+ function X(t, n, e, r) {
768
+ return r <= 0 && (t = n = e = NaN), new g(t, n, e, r);
769
+ }
770
+ function Xe(t) {
771
+ return t instanceof F || (t = I(t)), t ? (t = t.rgb(), new g(t.r, t.g, t.b, t.opacity)) : new g();
772
+ }
773
+ function J(t, n, e, r) {
774
+ return arguments.length === 1 ? Xe(t) : new g(t, n, e, r ?? 1);
775
+ }
776
+ function g(t, n, e, r) {
777
+ this.r = +t, this.g = +n, this.b = +e, this.opacity = +r;
778
+ }
779
+ rt(g, J, It(F, {
780
+ brighter(t) {
781
+ return t = t == null ? B : Math.pow(B, t), new g(this.r * t, this.g * t, this.b * t, this.opacity);
782
+ },
783
+ darker(t) {
784
+ return t = t == null ? M : Math.pow(M, t), new g(this.r * t, this.g * t, this.b * t, this.opacity);
785
+ },
786
+ rgb() {
787
+ return this;
788
+ },
789
+ clamp() {
790
+ return new g(E(this.r), E(this.g), E(this.b), z(this.opacity));
791
+ },
792
+ displayable() {
793
+ return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
794
+ },
795
+ hex: dt,
796
+ // Deprecated! Use color.formatHex.
797
+ formatHex: dt,
798
+ formatHex8: De,
799
+ formatRgb: pt,
800
+ toString: pt
801
+ }));
802
+ function dt() {
803
+ return `#${S(this.r)}${S(this.g)}${S(this.b)}`;
804
+ }
805
+ function De() {
806
+ return `#${S(this.r)}${S(this.g)}${S(this.b)}${S((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
807
+ }
808
+ function pt() {
809
+ const t = z(this.opacity);
810
+ return `${t === 1 ? "rgb(" : "rgba("}${E(this.r)}, ${E(this.g)}, ${E(this.b)}${t === 1 ? ")" : `, ${t})`}`;
811
+ }
812
+ function z(t) {
813
+ return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
814
+ }
815
+ function E(t) {
816
+ return Math.max(0, Math.min(255, Math.round(t) || 0));
817
+ }
818
+ function S(t) {
819
+ return t = E(t), (t < 16 ? "0" : "") + t.toString(16);
820
+ }
821
+ function _t(t, n, e, r) {
822
+ return r <= 0 ? t = n = e = NaN : e <= 0 || e >= 1 ? t = n = NaN : n <= 0 && (t = NaN), new x(t, n, e, r);
823
+ }
824
+ function Ht(t) {
825
+ if (t instanceof x) return new x(t.h, t.s, t.l, t.opacity);
826
+ if (t instanceof F || (t = I(t)), !t) return new x();
827
+ if (t instanceof x) return t;
828
+ t = t.rgb();
829
+ var n = t.r / 255, e = t.g / 255, r = t.b / 255, i = Math.min(n, e, r), s = Math.max(n, e, r), o = NaN, a = s - i, u = (s + i) / 2;
830
+ return a ? (n === s ? o = (e - r) / a + (e < r) * 6 : e === s ? o = (r - n) / a + 2 : o = (n - e) / a + 4, a /= u < 0.5 ? s + i : 2 - s - i, o *= 60) : a = u > 0 && u < 1 ? 0 : o, new x(o, a, u, t.opacity);
831
+ }
832
+ function Le(t, n, e, r) {
833
+ return arguments.length === 1 ? Ht(t) : new x(t, n, e, r ?? 1);
834
+ }
835
+ function x(t, n, e, r) {
836
+ this.h = +t, this.s = +n, this.l = +e, this.opacity = +r;
837
+ }
838
+ rt(x, Le, It(F, {
839
+ brighter(t) {
840
+ return t = t == null ? B : Math.pow(B, t), new x(this.h, this.s, this.l * t, this.opacity);
841
+ },
842
+ darker(t) {
843
+ return t = t == null ? M : Math.pow(M, t), new x(this.h, this.s, this.l * t, this.opacity);
844
+ },
845
+ rgb() {
846
+ var t = this.h % 360 + (this.h < 0) * 360, n = isNaN(t) || isNaN(this.s) ? 0 : this.s, e = this.l, r = e + (e < 0.5 ? e : 1 - e) * n, i = 2 * e - r;
847
+ return new g(
848
+ K(t >= 240 ? t - 240 : t + 120, i, r),
849
+ K(t, i, r),
850
+ K(t < 120 ? t + 240 : t - 120, i, r),
851
+ this.opacity
852
+ );
853
+ },
854
+ clamp() {
855
+ return new x(gt(this.h), D(this.s), D(this.l), z(this.opacity));
856
+ },
857
+ displayable() {
858
+ return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
859
+ },
860
+ formatHsl() {
861
+ const t = z(this.opacity);
862
+ return `${t === 1 ? "hsl(" : "hsla("}${gt(this.h)}, ${D(this.s) * 100}%, ${D(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
863
+ }
864
+ }));
865
+ function gt(t) {
866
+ return t = (t || 0) % 360, t < 0 ? t + 360 : t;
867
+ }
868
+ function D(t) {
869
+ return Math.max(0, Math.min(1, t || 0));
870
+ }
871
+ function K(t, n, e) {
872
+ return (t < 60 ? n + (e - n) * t / 60 : t < 180 ? e : t < 240 ? n + (e - n) * (240 - t) / 60 : n) * 255;
873
+ }
874
+ const Ft = (t) => () => t;
875
+ function Pe(t, n) {
876
+ return function(e) {
877
+ return t + e * n;
878
+ };
879
+ }
880
+ function Oe(t, n, e) {
881
+ return t = Math.pow(t, e), n = Math.pow(n, e) - t, e = 1 / e, function(r) {
882
+ return Math.pow(t + r * n, e);
883
+ };
884
+ }
885
+ function Ve(t) {
886
+ return (t = +t) == 1 ? qt : function(n, e) {
887
+ return e - n ? Oe(n, e, t) : Ft(isNaN(n) ? e : n);
888
+ };
889
+ }
890
+ function qt(t, n) {
891
+ var e = n - t;
892
+ return e ? Pe(t, e) : Ft(isNaN(t) ? n : t);
893
+ }
894
+ const xt = function t(n) {
895
+ var e = Ve(n);
896
+ function r(i, s) {
897
+ var o = e((i = J(i)).r, (s = J(s)).r), a = e(i.g, s.g), u = e(i.b, s.b), f = qt(i.opacity, s.opacity);
898
+ return function(l) {
899
+ return i.r = o(l), i.g = a(l), i.b = u(l), i.opacity = f(l), i + "";
900
+ };
901
+ }
902
+ return r.gamma = t, r;
903
+ }(1);
904
+ function A(t, n) {
905
+ return t = +t, n = +n, function(e) {
906
+ return t * (1 - e) + n * e;
907
+ };
908
+ }
909
+ var Q = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, G = new RegExp(Q.source, "g");
910
+ function Be(t) {
911
+ return function() {
912
+ return t;
913
+ };
914
+ }
915
+ function ze(t) {
916
+ return function(n) {
917
+ return t(n) + "";
918
+ };
919
+ }
920
+ function Ye(t, n) {
921
+ var e = Q.lastIndex = G.lastIndex = 0, r, i, s, o = -1, a = [], u = [];
922
+ for (t = t + "", n = n + ""; (r = Q.exec(t)) && (i = G.exec(n)); )
923
+ (s = i.index) > e && (s = n.slice(e, s), a[o] ? a[o] += s : a[++o] = s), (r = r[0]) === (i = i[0]) ? a[o] ? a[o] += i : a[++o] = i : (a[++o] = null, u.push({ i: o, x: A(r, i) })), e = G.lastIndex;
924
+ return e < n.length && (s = n.slice(e), a[o] ? a[o] += s : a[++o] = s), a.length < 2 ? u[0] ? ze(u[0].x) : Be(n) : (n = u.length, function(f) {
925
+ for (var l = 0, c; l < n; ++l) a[(c = u[l]).i] = c.x(f);
926
+ return a.join("");
927
+ });
928
+ }
929
+ var yt = 180 / Math.PI, Z = {
930
+ translateX: 0,
931
+ translateY: 0,
932
+ rotate: 0,
933
+ skewX: 0,
934
+ scaleX: 1,
935
+ scaleY: 1
936
+ };
937
+ function Xt(t, n, e, r, i, s) {
938
+ var o, a, u;
939
+ return (o = Math.sqrt(t * t + n * n)) && (t /= o, n /= o), (u = t * e + n * r) && (e -= t * u, r -= n * u), (a = Math.sqrt(e * e + r * r)) && (e /= a, r /= a, u /= a), t * r < n * e && (t = -t, n = -n, u = -u, o = -o), {
940
+ translateX: i,
941
+ translateY: s,
942
+ rotate: Math.atan2(n, t) * yt,
943
+ skewX: Math.atan(u) * yt,
944
+ scaleX: o,
945
+ scaleY: a
946
+ };
947
+ }
948
+ var L;
949
+ function Ue(t) {
950
+ const n = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
951
+ return n.isIdentity ? Z : Xt(n.a, n.b, n.c, n.d, n.e, n.f);
952
+ }
953
+ function Ke(t) {
954
+ return t == null || (L || (L = document.createElementNS("http://www.w3.org/2000/svg", "g")), L.setAttribute("transform", t), !(t = L.transform.baseVal.consolidate())) ? Z : (t = t.matrix, Xt(t.a, t.b, t.c, t.d, t.e, t.f));
955
+ }
956
+ function Dt(t, n, e, r) {
957
+ function i(f) {
958
+ return f.length ? f.pop() + " " : "";
959
+ }
960
+ function s(f, l, c, h, d, p) {
961
+ if (f !== c || l !== h) {
962
+ var _ = d.push("translate(", null, n, null, e);
963
+ p.push({ i: _ - 4, x: A(f, c) }, { i: _ - 2, x: A(l, h) });
964
+ } else (c || h) && d.push("translate(" + c + n + h + e);
965
+ }
966
+ function o(f, l, c, h) {
967
+ f !== l ? (f - l > 180 ? l += 360 : l - f > 180 && (f += 360), h.push({ i: c.push(i(c) + "rotate(", null, r) - 2, x: A(f, l) })) : l && c.push(i(c) + "rotate(" + l + r);
968
+ }
969
+ function a(f, l, c, h) {
970
+ f !== l ? h.push({ i: c.push(i(c) + "skewX(", null, r) - 2, x: A(f, l) }) : l && c.push(i(c) + "skewX(" + l + r);
971
+ }
972
+ function u(f, l, c, h, d, p) {
973
+ if (f !== c || l !== h) {
974
+ var _ = d.push(i(d) + "scale(", null, ",", null, ")");
975
+ p.push({ i: _ - 4, x: A(f, c) }, { i: _ - 2, x: A(l, h) });
976
+ } else (c !== 1 || h !== 1) && d.push(i(d) + "scale(" + c + "," + h + ")");
977
+ }
978
+ return function(f, l) {
979
+ var c = [], h = [];
980
+ return f = t(f), l = t(l), s(f.translateX, f.translateY, l.translateX, l.translateY, c, h), o(f.rotate, l.rotate, c, h), a(f.skewX, l.skewX, c, h), u(f.scaleX, f.scaleY, l.scaleX, l.scaleY, c, h), f = l = null, function(d) {
981
+ for (var p = -1, _ = h.length, $; ++p < _; ) c[($ = h[p]).i] = $.x(d);
982
+ return c.join("");
983
+ };
984
+ };
985
+ }
986
+ var Ge = Dt(Ue, "px, ", "px)", "deg)"), We = Dt(Ke, ", ", ")", ")");
987
+ function wt(t, n, e) {
988
+ var r = new zt();
989
+ return n = n == null ? 0 : +n, r.restart((i) => {
990
+ r.stop(), t(i + n);
991
+ }, n, e), r;
992
+ }
993
+ var Je = Yt("start", "end", "cancel", "interrupt"), Qe = [], Lt = 0, vt = 1, j = 2, P = 3, mt = 4, tt = 5, O = 6;
994
+ function U(t, n, e, r, i, s) {
995
+ var o = t.__transition;
996
+ if (!o) t.__transition = {};
997
+ else if (e in o) return;
998
+ Ze(t, e, {
999
+ name: n,
1000
+ index: r,
1001
+ // For context during callback.
1002
+ group: i,
1003
+ // For context during callback.
1004
+ on: Je,
1005
+ tween: Qe,
1006
+ time: s.time,
1007
+ delay: s.delay,
1008
+ duration: s.duration,
1009
+ ease: s.ease,
1010
+ timer: null,
1011
+ state: Lt
1012
+ });
1013
+ }
1014
+ function it(t, n) {
1015
+ var e = w(t, n);
1016
+ if (e.state > Lt) throw new Error("too late; already scheduled");
1017
+ return e;
1018
+ }
1019
+ function m(t, n) {
1020
+ var e = w(t, n);
1021
+ if (e.state > P) throw new Error("too late; already running");
1022
+ return e;
1023
+ }
1024
+ function w(t, n) {
1025
+ var e = t.__transition;
1026
+ if (!e || !(e = e[n])) throw new Error("transition not found");
1027
+ return e;
1028
+ }
1029
+ function Ze(t, n, e) {
1030
+ var r = t.__transition, i;
1031
+ r[n] = e, e.timer = Ut(s, 0, e.time);
1032
+ function s(f) {
1033
+ e.state = vt, e.timer.restart(o, e.delay, e.time), e.delay <= f && o(f - e.delay);
1034
+ }
1035
+ function o(f) {
1036
+ var l, c, h, d;
1037
+ if (e.state !== vt) return u();
1038
+ for (l in r)
1039
+ if (d = r[l], d.name === e.name) {
1040
+ if (d.state === P) return wt(o);
1041
+ d.state === mt ? (d.state = O, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[l]) : +l < n && (d.state = O, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[l]);
1042
+ }
1043
+ if (wt(function() {
1044
+ e.state === P && (e.state = mt, e.timer.restart(a, e.delay, e.time), a(f));
1045
+ }), e.state = j, e.on.call("start", t, t.__data__, e.index, e.group), e.state === j) {
1046
+ for (e.state = P, i = new Array(h = e.tween.length), l = 0, c = -1; l < h; ++l)
1047
+ (d = e.tween[l].value.call(t, t.__data__, e.index, e.group)) && (i[++c] = d);
1048
+ i.length = c + 1;
1049
+ }
1050
+ }
1051
+ function a(f) {
1052
+ for (var l = f < e.duration ? e.ease.call(null, f / e.duration) : (e.timer.restart(u), e.state = tt, 1), c = -1, h = i.length; ++c < h; )
1053
+ i[c].call(t, l);
1054
+ e.state === tt && (e.on.call("end", t, t.__data__, e.index, e.group), u());
1055
+ }
1056
+ function u() {
1057
+ e.state = O, e.timer.stop(), delete r[n];
1058
+ for (var f in r) return;
1059
+ delete t.__transition;
1060
+ }
1061
+ }
1062
+ function je(t, n) {
1063
+ var e = t.__transition, r, i, s = !0, o;
1064
+ if (e) {
1065
+ n = n == null ? null : n + "";
1066
+ for (o in e) {
1067
+ if ((r = e[o]).name !== n) {
1068
+ s = !1;
1069
+ continue;
1070
+ }
1071
+ i = r.state > j && r.state < tt, r.state = O, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete e[o];
1072
+ }
1073
+ s && delete t.__transition;
1074
+ }
1075
+ }
1076
+ function tr(t) {
1077
+ return this.each(function() {
1078
+ je(this, t);
1079
+ });
1080
+ }
1081
+ function nr(t, n) {
1082
+ var e, r;
1083
+ return function() {
1084
+ var i = m(this, t), s = i.tween;
1085
+ if (s !== e) {
1086
+ r = e = s;
1087
+ for (var o = 0, a = r.length; o < a; ++o)
1088
+ if (r[o].name === n) {
1089
+ r = r.slice(), r.splice(o, 1);
1090
+ break;
1091
+ }
1092
+ }
1093
+ i.tween = r;
1094
+ };
1095
+ }
1096
+ function er(t, n, e) {
1097
+ var r, i;
1098
+ if (typeof e != "function") throw new Error();
1099
+ return function() {
1100
+ var s = m(this, t), o = s.tween;
1101
+ if (o !== r) {
1102
+ i = (r = o).slice();
1103
+ for (var a = { name: n, value: e }, u = 0, f = i.length; u < f; ++u)
1104
+ if (i[u].name === n) {
1105
+ i[u] = a;
1106
+ break;
1107
+ }
1108
+ u === f && i.push(a);
1109
+ }
1110
+ s.tween = i;
1111
+ };
1112
+ }
1113
+ function rr(t, n) {
1114
+ var e = this._id;
1115
+ if (t += "", arguments.length < 2) {
1116
+ for (var r = w(this.node(), e).tween, i = 0, s = r.length, o; i < s; ++i)
1117
+ if ((o = r[i]).name === t)
1118
+ return o.value;
1119
+ return null;
1120
+ }
1121
+ return this.each((n == null ? nr : er)(e, t, n));
1122
+ }
1123
+ function st(t, n, e) {
1124
+ var r = t._id;
1125
+ return t.each(function() {
1126
+ var i = m(this, r);
1127
+ (i.value || (i.value = {}))[n] = e.apply(this, arguments);
1128
+ }), function(i) {
1129
+ return w(i, r).value[n];
1130
+ };
1131
+ }
1132
+ function Pt(t, n) {
1133
+ var e;
1134
+ return (typeof n == "number" ? A : n instanceof I ? xt : (e = I(n)) ? (n = e, xt) : Ye)(t, n);
1135
+ }
1136
+ function ir(t) {
1137
+ return function() {
1138
+ this.removeAttribute(t);
1139
+ };
1140
+ }
1141
+ function sr(t) {
1142
+ return function() {
1143
+ this.removeAttributeNS(t.space, t.local);
1144
+ };
1145
+ }
1146
+ function or(t, n, e) {
1147
+ var r, i = e + "", s;
1148
+ return function() {
1149
+ var o = this.getAttribute(t);
1150
+ return o === i ? null : o === r ? s : s = n(r = o, e);
1151
+ };
1152
+ }
1153
+ function ar(t, n, e) {
1154
+ var r, i = e + "", s;
1155
+ return function() {
1156
+ var o = this.getAttributeNS(t.space, t.local);
1157
+ return o === i ? null : o === r ? s : s = n(r = o, e);
1158
+ };
1159
+ }
1160
+ function ur(t, n, e) {
1161
+ var r, i, s;
1162
+ return function() {
1163
+ var o, a = e(this), u;
1164
+ return a == null ? void this.removeAttribute(t) : (o = this.getAttribute(t), u = a + "", o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a)));
1165
+ };
1166
+ }
1167
+ function fr(t, n, e) {
1168
+ var r, i, s;
1169
+ return function() {
1170
+ var o, a = e(this), u;
1171
+ return a == null ? void this.removeAttributeNS(t.space, t.local) : (o = this.getAttributeNS(t.space, t.local), u = a + "", o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a)));
1172
+ };
1173
+ }
1174
+ function lr(t, n) {
1175
+ var e = Y(t), r = e === "transform" ? We : Pt;
1176
+ return this.attrTween(t, typeof n == "function" ? (e.local ? fr : ur)(e, r, st(this, "attr." + t, n)) : n == null ? (e.local ? sr : ir)(e) : (e.local ? ar : or)(e, r, n));
1177
+ }
1178
+ function cr(t, n) {
1179
+ return function(e) {
1180
+ this.setAttribute(t, n.call(this, e));
1181
+ };
1182
+ }
1183
+ function hr(t, n) {
1184
+ return function(e) {
1185
+ this.setAttributeNS(t.space, t.local, n.call(this, e));
1186
+ };
1187
+ }
1188
+ function dr(t, n) {
1189
+ var e, r;
1190
+ function i() {
1191
+ var s = n.apply(this, arguments);
1192
+ return s !== r && (e = (r = s) && hr(t, s)), e;
1193
+ }
1194
+ return i._value = n, i;
1195
+ }
1196
+ function pr(t, n) {
1197
+ var e, r;
1198
+ function i() {
1199
+ var s = n.apply(this, arguments);
1200
+ return s !== r && (e = (r = s) && cr(t, s)), e;
1201
+ }
1202
+ return i._value = n, i;
1203
+ }
1204
+ function _r(t, n) {
1205
+ var e = "attr." + t;
1206
+ if (arguments.length < 2) return (e = this.tween(e)) && e._value;
1207
+ if (n == null) return this.tween(e, null);
1208
+ if (typeof n != "function") throw new Error();
1209
+ var r = Y(t);
1210
+ return this.tween(e, (r.local ? dr : pr)(r, n));
1211
+ }
1212
+ function gr(t, n) {
1213
+ return function() {
1214
+ it(this, t).delay = +n.apply(this, arguments);
1215
+ };
1216
+ }
1217
+ function xr(t, n) {
1218
+ return n = +n, function() {
1219
+ it(this, t).delay = n;
1220
+ };
1221
+ }
1222
+ function yr(t) {
1223
+ var n = this._id;
1224
+ return arguments.length ? this.each((typeof t == "function" ? gr : xr)(n, t)) : w(this.node(), n).delay;
1225
+ }
1226
+ function wr(t, n) {
1227
+ return function() {
1228
+ m(this, t).duration = +n.apply(this, arguments);
1229
+ };
1230
+ }
1231
+ function vr(t, n) {
1232
+ return n = +n, function() {
1233
+ m(this, t).duration = n;
1234
+ };
1235
+ }
1236
+ function mr(t) {
1237
+ var n = this._id;
1238
+ return arguments.length ? this.each((typeof t == "function" ? wr : vr)(n, t)) : w(this.node(), n).duration;
1239
+ }
1240
+ function br(t, n) {
1241
+ if (typeof n != "function") throw new Error();
1242
+ return function() {
1243
+ m(this, t).ease = n;
1244
+ };
1245
+ }
1246
+ function Nr(t) {
1247
+ var n = this._id;
1248
+ return arguments.length ? this.each(br(n, t)) : w(this.node(), n).ease;
1249
+ }
1250
+ function Ar(t, n) {
1251
+ return function() {
1252
+ var e = n.apply(this, arguments);
1253
+ if (typeof e != "function") throw new Error();
1254
+ m(this, t).ease = e;
1255
+ };
1256
+ }
1257
+ function $r(t) {
1258
+ if (typeof t != "function") throw new Error();
1259
+ return this.each(Ar(this._id, t));
1260
+ }
1261
+ function Sr(t) {
1262
+ typeof t != "function" && (t = At(t));
1263
+ for (var n = this._groups, e = n.length, r = new Array(e), i = 0; i < e; ++i)
1264
+ for (var s = n[i], o = s.length, a = r[i] = [], u, f = 0; f < o; ++f)
1265
+ (u = s[f]) && t.call(u, u.__data__, f, s) && a.push(u);
1266
+ return new N(r, this._parents, this._name, this._id);
1267
+ }
1268
+ function Er(t) {
1269
+ if (t._id !== this._id) throw new Error();
1270
+ for (var n = this._groups, e = t._groups, r = n.length, i = e.length, s = Math.min(r, i), o = new Array(r), a = 0; a < s; ++a)
1271
+ for (var u = n[a], f = e[a], l = u.length, c = o[a] = new Array(l), h, d = 0; d < l; ++d)
1272
+ (h = u[d] || f[d]) && (c[d] = h);
1273
+ for (; a < r; ++a)
1274
+ o[a] = n[a];
1275
+ return new N(o, this._parents, this._name, this._id);
1276
+ }
1277
+ function Cr(t) {
1278
+ return (t + "").trim().split(/^|\s+/).every(function(n) {
1279
+ var e = n.indexOf(".");
1280
+ return e >= 0 && (n = n.slice(0, e)), !n || n === "start";
1281
+ });
1282
+ }
1283
+ function Rr(t, n, e) {
1284
+ var r, i, s = Cr(n) ? it : m;
1285
+ return function() {
1286
+ var o = s(this, t), a = o.on;
1287
+ a !== r && (i = (r = a).copy()).on(n, e), o.on = i;
1288
+ };
1289
+ }
1290
+ function kr(t, n) {
1291
+ var e = this._id;
1292
+ return arguments.length < 2 ? w(this.node(), e).on.on(t) : this.each(Rr(e, t, n));
1293
+ }
1294
+ function Mr(t) {
1295
+ return function() {
1296
+ var n = this.parentNode;
1297
+ for (var e in this.__transition) if (+e !== t) return;
1298
+ n && n.removeChild(this);
1299
+ };
1300
+ }
1301
+ function Tr() {
1302
+ return this.on("end.remove", Mr(this._id));
1303
+ }
1304
+ function Ir(t) {
1305
+ var n = this._name, e = this._id;
1306
+ typeof t != "function" && (t = nt(t));
1307
+ for (var r = this._groups, i = r.length, s = new Array(i), o = 0; o < i; ++o)
1308
+ for (var a = r[o], u = a.length, f = s[o] = new Array(u), l, c, h = 0; h < u; ++h)
1309
+ (l = a[h]) && (c = t.call(l, l.__data__, h, a)) && ("__data__" in l && (c.__data__ = l.__data__), f[h] = c, U(f[h], n, e, h, f, w(l, e)));
1310
+ return new N(s, this._parents, n, e);
1311
+ }
1312
+ function Hr(t) {
1313
+ var n = this._name, e = this._id;
1314
+ typeof t != "function" && (t = Nt(t));
1315
+ for (var r = this._groups, i = r.length, s = [], o = [], a = 0; a < i; ++a)
1316
+ for (var u = r[a], f = u.length, l, c = 0; c < f; ++c)
1317
+ if (l = u[c]) {
1318
+ for (var h = t.call(l, l.__data__, c, u), d, p = w(l, e), _ = 0, $ = h.length; _ < $; ++_)
1319
+ (d = h[_]) && U(d, n, e, _, h, p);
1320
+ s.push(h), o.push(l);
1321
+ }
1322
+ return new N(s, o, n, e);
1323
+ }
1324
+ var Fr = H.prototype.constructor;
1325
+ function qr() {
1326
+ return new Fr(this._groups, this._parents);
1327
+ }
1328
+ function Xr(t, n) {
1329
+ var e, r, i;
1330
+ return function() {
1331
+ var s = R(this, t), o = (this.style.removeProperty(t), R(this, t));
1332
+ return s === o ? null : s === e && o === r ? i : i = n(e = s, r = o);
1333
+ };
1334
+ }
1335
+ function Ot(t) {
1336
+ return function() {
1337
+ this.style.removeProperty(t);
1338
+ };
1339
+ }
1340
+ function Dr(t, n, e) {
1341
+ var r, i = e + "", s;
1342
+ return function() {
1343
+ var o = R(this, t);
1344
+ return o === i ? null : o === r ? s : s = n(r = o, e);
1345
+ };
1346
+ }
1347
+ function Lr(t, n, e) {
1348
+ var r, i, s;
1349
+ return function() {
1350
+ var o = R(this, t), a = e(this), u = a + "";
1351
+ return a == null && (u = a = (this.style.removeProperty(t), R(this, t))), o === u ? null : o === r && u === i ? s : (i = u, s = n(r = o, a));
1352
+ };
1353
+ }
1354
+ function Pr(t, n) {
1355
+ var e, r, i, s = "style." + n, o = "end." + s, a;
1356
+ return function() {
1357
+ var u = m(this, t), f = u.on, l = u.value[s] == null ? a || (a = Ot(n)) : void 0;
1358
+ (f !== e || i !== l) && (r = (e = f).copy()).on(o, i = l), u.on = r;
1359
+ };
1360
+ }
1361
+ function Or(t, n, e) {
1362
+ var r = (t += "") == "transform" ? Ge : Pt;
1363
+ return n == null ? this.styleTween(t, Xr(t, r)).on("end.style." + t, Ot(t)) : typeof n == "function" ? this.styleTween(t, Lr(t, r, st(this, "style." + t, n))).each(Pr(this._id, t)) : this.styleTween(t, Dr(t, r, n), e).on("end.style." + t, null);
1364
+ }
1365
+ function Vr(t, n, e) {
1366
+ return function(r) {
1367
+ this.style.setProperty(t, n.call(this, r), e);
1368
+ };
1369
+ }
1370
+ function Br(t, n, e) {
1371
+ var r, i;
1372
+ function s() {
1373
+ var o = n.apply(this, arguments);
1374
+ return o !== i && (r = (i = o) && Vr(t, o, e)), r;
1375
+ }
1376
+ return s._value = n, s;
1377
+ }
1378
+ function zr(t, n, e) {
1379
+ var r = "style." + (t += "");
1380
+ if (arguments.length < 2) return (r = this.tween(r)) && r._value;
1381
+ if (n == null) return this.tween(r, null);
1382
+ if (typeof n != "function") throw new Error();
1383
+ return this.tween(r, Br(t, n, e ?? ""));
1384
+ }
1385
+ function Yr(t) {
1386
+ return function() {
1387
+ this.textContent = t;
1388
+ };
1389
+ }
1390
+ function Ur(t) {
1391
+ return function() {
1392
+ var n = t(this);
1393
+ this.textContent = n ?? "";
1394
+ };
1395
+ }
1396
+ function Kr(t) {
1397
+ return this.tween("text", typeof t == "function" ? Ur(st(this, "text", t)) : Yr(t == null ? "" : t + ""));
1398
+ }
1399
+ function Gr(t) {
1400
+ return function(n) {
1401
+ this.textContent = t.call(this, n);
1402
+ };
1403
+ }
1404
+ function Wr(t) {
1405
+ var n, e;
1406
+ function r() {
1407
+ var i = t.apply(this, arguments);
1408
+ return i !== e && (n = (e = i) && Gr(i)), n;
1409
+ }
1410
+ return r._value = t, r;
1411
+ }
1412
+ function Jr(t) {
1413
+ var n = "text";
1414
+ if (arguments.length < 1) return (n = this.tween(n)) && n._value;
1415
+ if (t == null) return this.tween(n, null);
1416
+ if (typeof t != "function") throw new Error();
1417
+ return this.tween(n, Wr(t));
1418
+ }
1419
+ function Qr() {
1420
+ for (var t = this._name, n = this._id, e = Vt(), r = this._groups, i = r.length, s = 0; s < i; ++s)
1421
+ for (var o = r[s], a = o.length, u, f = 0; f < a; ++f)
1422
+ if (u = o[f]) {
1423
+ var l = w(u, n);
1424
+ U(u, t, e, f, o, {
1425
+ time: l.time + l.delay + l.duration,
1426
+ delay: 0,
1427
+ duration: l.duration,
1428
+ ease: l.ease
1429
+ });
1430
+ }
1431
+ return new N(r, this._parents, t, e);
1432
+ }
1433
+ function Zr() {
1434
+ var t, n, e = this, r = e._id, i = e.size();
1435
+ return new Promise(function(s, o) {
1436
+ var a = { value: o }, u = { value: function() {
1437
+ --i === 0 && s();
1438
+ } };
1439
+ e.each(function() {
1440
+ var f = m(this, r), l = f.on;
1441
+ l !== t && (n = (t = l).copy(), n._.cancel.push(a), n._.interrupt.push(a), n._.end.push(u)), f.on = n;
1442
+ }), i === 0 && s();
1443
+ });
1444
+ }
1445
+ var jr = 0;
1446
+ function N(t, n, e, r) {
1447
+ this._groups = t, this._parents = n, this._name = e, this._id = r;
1448
+ }
1449
+ function Vt() {
1450
+ return ++jr;
1451
+ }
1452
+ var b = H.prototype;
1453
+ N.prototype = {
1454
+ constructor: N,
1455
+ select: Ir,
1456
+ selectAll: Hr,
1457
+ selectChild: b.selectChild,
1458
+ selectChildren: b.selectChildren,
1459
+ filter: Sr,
1460
+ merge: Er,
1461
+ selection: qr,
1462
+ transition: Qr,
1463
+ call: b.call,
1464
+ nodes: b.nodes,
1465
+ node: b.node,
1466
+ size: b.size,
1467
+ empty: b.empty,
1468
+ each: b.each,
1469
+ on: kr,
1470
+ attr: lr,
1471
+ attrTween: _r,
1472
+ style: Or,
1473
+ styleTween: zr,
1474
+ text: Kr,
1475
+ textTween: Jr,
1476
+ remove: Tr,
1477
+ tween: rr,
1478
+ delay: yr,
1479
+ duration: mr,
1480
+ ease: Nr,
1481
+ easeVarying: $r,
1482
+ end: Zr,
1483
+ [Symbol.iterator]: b[Symbol.iterator]
1484
+ };
1485
+ function ti(t) {
1486
+ return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
1487
+ }
1488
+ var ni = {
1489
+ time: null,
1490
+ // Set on use.
1491
+ delay: 0,
1492
+ duration: 250,
1493
+ ease: ti
1494
+ };
1495
+ function ei(t, n) {
1496
+ for (var e; !(e = t.__transition) || !(e = e[n]); )
1497
+ if (!(t = t.parentNode))
1498
+ throw new Error(`transition ${n} not found`);
1499
+ return e;
1500
+ }
1501
+ function ri(t) {
1502
+ var n, e;
1503
+ t instanceof N ? (n = t._id, t = t._name) : (n = Vt(), (e = ni).time = Kt(), t = t == null ? null : t + "");
1504
+ for (var r = this._groups, i = r.length, s = 0; s < i; ++s)
1505
+ for (var o = r[s], a = o.length, u, f = 0; f < a; ++f)
1506
+ (u = o[f]) && U(u, t, n, f, o, e || ei(u, n));
1507
+ return new N(r, this._parents, t, n);
1508
+ }
1509
+ H.prototype.interrupt = tr;
1510
+ H.prototype.transition = ri;
1511
+ export {
1512
+ y as S,
1513
+ xt as a,
1514
+ Ye as b,
1515
+ Ft as c,
1516
+ I as d,
1517
+ je as e,
1518
+ A as i,
1519
+ Se as r
1520
+ };