@orbcharts/core 3.0.0-alpha.51 → 3.0.0-alpha.53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +547 -544
  3. package/dist/orbcharts-core.umd.js +2 -2
  4. package/dist/src/types/ContextObserverMultiGrid.d.ts +2 -1
  5. package/dist/vite.config.d.ts +1 -1
  6. package/package.json +41 -41
  7. package/src/AbstractChart.ts +48 -48
  8. package/src/GridChart.ts +20 -20
  9. package/src/MultiGridChart.ts +20 -20
  10. package/src/MultiValueChart.ts +20 -20
  11. package/src/RelationshipChart.ts +20 -20
  12. package/src/SeriesChart.ts +20 -20
  13. package/src/TreeChart.ts +20 -20
  14. package/src/base/createBaseChart.ts +369 -369
  15. package/src/base/createBasePlugin.ts +95 -95
  16. package/src/defaults.ts +226 -226
  17. package/src/defineGridPlugin.ts +3 -3
  18. package/src/defineMultiGridPlugin.ts +3 -3
  19. package/src/defineMultiValuePlugin.ts +3 -3
  20. package/src/defineNoneDataPlugin.ts +4 -4
  21. package/src/defineRelationshipPlugin.ts +3 -3
  22. package/src/defineSeriesPlugin.ts +3 -3
  23. package/src/defineTreePlugin.ts +3 -3
  24. package/src/grid/computeGridData.ts +134 -134
  25. package/src/grid/createGridContextObserver.ts +155 -155
  26. package/src/grid/gridObservables.ts +607 -604
  27. package/src/index.ts +21 -21
  28. package/src/multiGrid/computeMultiGridData.ts +130 -130
  29. package/src/multiGrid/createMultiGridContextObserver.ts +41 -40
  30. package/src/multiGrid/multiGridObservables.ts +365 -364
  31. package/src/multiValue/computeMultiValueData.ts +143 -143
  32. package/src/multiValue/createMultiValueContextObserver.ts +12 -12
  33. package/src/relationship/computeRelationshipData.ts +118 -118
  34. package/src/relationship/createRelationshipContextObserver.ts +12 -12
  35. package/src/series/computeSeriesData.ts +90 -90
  36. package/src/series/createSeriesContextObserver.ts +93 -93
  37. package/src/series/seriesObservables.ts +175 -175
  38. package/src/tree/computeTreeData.ts +132 -132
  39. package/src/tree/createTreeContextObserver.ts +61 -61
  40. package/src/tree/treeObservables.ts +94 -94
  41. package/src/types/Chart.ts +50 -50
  42. package/src/types/ChartParams.ts +51 -51
  43. package/src/types/ComputedData.ts +83 -83
  44. package/src/types/ComputedDataGrid.ts +13 -13
  45. package/src/types/ComputedDataMultiGrid.ts +2 -2
  46. package/src/types/ComputedDataMultiValue.ts +9 -9
  47. package/src/types/ComputedDataRelationship.ts +19 -19
  48. package/src/types/ComputedDataSeries.ts +7 -7
  49. package/src/types/ComputedDataTree.ts +19 -19
  50. package/src/types/ContextObserver.ts +38 -38
  51. package/src/types/ContextObserverGrid.ts +42 -42
  52. package/src/types/ContextObserverMultiGrid.ts +16 -15
  53. package/src/types/ContextObserverMultiValue.ts +4 -4
  54. package/src/types/ContextObserverRelationship.ts +4 -4
  55. package/src/types/ContextObserverSeries.ts +29 -29
  56. package/src/types/ContextObserverTree.ts +11 -11
  57. package/src/types/ContextSubject.ts +18 -18
  58. package/src/types/Data.ts +45 -45
  59. package/src/types/DataFormatter.ts +74 -74
  60. package/src/types/DataFormatterGrid.ts +67 -67
  61. package/src/types/DataFormatterMultiGrid.ts +44 -44
  62. package/src/types/DataFormatterMultiValue.ts +23 -23
  63. package/src/types/DataFormatterRelationship.ts +25 -25
  64. package/src/types/DataFormatterSeries.ts +20 -20
  65. package/src/types/DataFormatterTree.ts +12 -12
  66. package/src/types/DataGrid.ts +11 -11
  67. package/src/types/DataMultiGrid.ts +6 -6
  68. package/src/types/DataMultiValue.ts +12 -12
  69. package/src/types/DataRelationship.ts +27 -27
  70. package/src/types/DataSeries.ts +11 -11
  71. package/src/types/DataTree.ts +20 -20
  72. package/src/types/Event.ts +153 -153
  73. package/src/types/Layout.ts +11 -11
  74. package/src/types/Padding.ts +5 -5
  75. package/src/types/Plugin.ts +60 -60
  76. package/src/types/TransformData.ts +7 -7
  77. package/src/types/index.ts +37 -37
  78. package/src/utils/commonUtils.ts +50 -50
  79. package/src/utils/d3Utils.ts +89 -89
  80. package/src/utils/index.ts +4 -4
  81. package/src/utils/observables.ts +201 -201
  82. package/src/utils/orbchartsUtils.ts +349 -349
  83. package/tsconfig.json +13 -13
  84. package/vite.config.js +22 -44
@@ -1,4 +1,4 @@
1
- const vi = {
1
+ const bi = {
2
2
  // preset: {} // 預設為空
3
3
  }, Hn = {
4
4
  top: 60,
@@ -34,12 +34,12 @@ const vi = {
34
34
  },
35
35
  transitionDuration: 800,
36
36
  transitionEase: "easeCubic"
37
- }, bi = 800, wi = 500, tt = {
37
+ }, wi = 800, xi = 500, tt = {
38
38
  position: "left",
39
39
  scaleDomain: [0, "auto"],
40
40
  scaleRange: [0, 0.9],
41
41
  label: ""
42
- }, xi = {
42
+ }, _i = {
43
43
  position: "bottom",
44
44
  scaleDomain: [0, "auto"],
45
45
  scalePadding: 0.5,
@@ -78,7 +78,7 @@ const qn = {
78
78
  rowLabels: [],
79
79
  columnLabels: [],
80
80
  valueAxis: { ...tt },
81
- groupAxis: { ...xi },
81
+ groupAxis: { ..._i },
82
82
  separateSeries: !1
83
83
  // slotIndex: 0,
84
84
  // seriesSlotIndexes: null
@@ -142,12 +142,12 @@ Jn.visibleFilter.toString = () => "(datum, context) => true";
142
142
  function Yt(t, e) {
143
143
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
144
144
  }
145
- function _i(t, e) {
145
+ function $i(t, e) {
146
146
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
147
147
  }
148
148
  function Kn(t) {
149
149
  let e, n, r;
150
- t.length !== 2 ? (e = Yt, n = (u, l) => Yt(t(u), l), r = (u, l) => t(u) - l) : (e = t === Yt || t === _i ? t : $i, n = t, r = t);
150
+ t.length !== 2 ? (e = Yt, n = (u, l) => Yt(t(u), l), r = (u, l) => t(u) - l) : (e = t === Yt || t === $i ? t : Di, n = t, r = t);
151
151
  function i(u, l, s = 0, f = u.length) {
152
152
  if (s < f) {
153
153
  if (e(l, l) !== 0) return f;
@@ -174,16 +174,16 @@ function Kn(t) {
174
174
  }
175
175
  return { left: i, center: o, right: a };
176
176
  }
177
- function $i() {
177
+ function Di() {
178
178
  return 0;
179
179
  }
180
- function Di(t) {
180
+ function Ai(t) {
181
181
  return t === null ? NaN : +t;
182
182
  }
183
- const Ai = Kn(Yt), Zn = Ai.right;
184
- Kn(Di).center;
183
+ const Si = Kn(Yt), Zn = Si.right;
184
+ Kn(Ai).center;
185
185
  class un extends Map {
186
- constructor(e, n = Ci) {
186
+ constructor(e, n = Pi) {
187
187
  if (super(), Object.defineProperties(this, { _intern: { value: /* @__PURE__ */ new Map() }, _key: { value: n } }), e != null) for (const [r, i] of e) this.set(r, i);
188
188
  }
189
189
  get(e) {
@@ -193,34 +193,34 @@ class un extends Map {
193
193
  return super.has(sn(this, e));
194
194
  }
195
195
  set(e, n) {
196
- return super.set(Si(this, e), n);
196
+ return super.set(Mi(this, e), n);
197
197
  }
198
198
  delete(e) {
199
- return super.delete(Mi(this, e));
199
+ return super.delete(Ci(this, e));
200
200
  }
201
201
  }
202
202
  function sn({ _intern: t, _key: e }, n) {
203
203
  const r = e(n);
204
204
  return t.has(r) ? t.get(r) : n;
205
205
  }
206
- function Si({ _intern: t, _key: e }, n) {
206
+ function Mi({ _intern: t, _key: e }, n) {
207
207
  const r = e(n);
208
208
  return t.has(r) ? t.get(r) : (t.set(r, n), n);
209
209
  }
210
- function Mi({ _intern: t, _key: e }, n) {
210
+ function Ci({ _intern: t, _key: e }, n) {
211
211
  const r = e(n);
212
212
  return t.has(r) && (n = t.get(r), t.delete(r)), n;
213
213
  }
214
- function Ci(t) {
214
+ function Pi(t) {
215
215
  return t !== null && typeof t == "object" ? t.valueOf() : t;
216
216
  }
217
- const Pi = Math.sqrt(50), Fi = Math.sqrt(10), Ei = Math.sqrt(2);
217
+ const Fi = Math.sqrt(50), Ei = Math.sqrt(10), Li = Math.sqrt(2);
218
218
  function Kt(t, e, n) {
219
- const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / Math.pow(10, i), o = a >= Pi ? 10 : a >= Fi ? 5 : a >= Ei ? 2 : 1;
219
+ const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / Math.pow(10, i), o = a >= Fi ? 10 : a >= Ei ? 5 : a >= Li ? 2 : 1;
220
220
  let u, l, s;
221
221
  return i < 0 ? (s = Math.pow(10, -i) / o, u = Math.round(t * s), l = Math.round(e * s), u / s < t && ++u, l / s > e && --l, s = -s) : (s = Math.pow(10, i) * o, u = Math.round(t / s), l = Math.round(e / s), u * s < t && ++u, l * s > e && --l), l < u && 0.5 <= n && n < 2 ? Kt(t, e, n * 2) : [u, l, s];
222
222
  }
223
- function Li(t, e, n) {
223
+ function Ti(t, e, n) {
224
224
  if (e = +e, t = +t, n = +n, !(n > 0)) return [];
225
225
  if (t === e) return [t];
226
226
  const r = e < t, [i, a, o] = r ? Kt(e, t, n) : Kt(t, e, n);
@@ -236,18 +236,18 @@ function Li(t, e, n) {
236
236
  function $e(t, e, n) {
237
237
  return e = +e, t = +t, n = +n, Kt(t, e, n)[2];
238
238
  }
239
- function Ti(t, e, n) {
239
+ function Oi(t, e, n) {
240
240
  e = +e, t = +t, n = +n;
241
241
  const r = e < t, i = r ? $e(e, t, n) : $e(t, e, n);
242
242
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
243
243
  }
244
- function Oi(t, e, n) {
244
+ function Ni(t, e, n) {
245
245
  t = +t, e = +e, n = (i = arguments.length) < 2 ? (e = t, t = 0, 1) : i < 3 ? 1 : +n;
246
246
  for (var r = -1, i = Math.max(0, Math.ceil((e - t) / n)) | 0, a = new Array(i); ++r < i; )
247
247
  a[r] = t + r * n;
248
248
  return a;
249
249
  }
250
- var Ni = { value: () => {
250
+ var ki = { value: () => {
251
251
  } };
252
252
  function Qn() {
253
253
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
@@ -259,7 +259,7 @@ function Qn() {
259
259
  function Bt(t) {
260
260
  this._ = t;
261
261
  }
262
- function ki(t, e) {
262
+ function Ii(t, e) {
263
263
  return t.trim().split(/^|\s+/).map(function(n) {
264
264
  var r = "", i = n.indexOf(".");
265
265
  if (i >= 0 && (r = n.slice(i + 1), n = n.slice(0, i)), n && !e.hasOwnProperty(n)) throw new Error("unknown type: " + n);
@@ -269,9 +269,9 @@ function ki(t, e) {
269
269
  Bt.prototype = Qn.prototype = {
270
270
  constructor: Bt,
271
271
  on: function(t, e) {
272
- var n = this._, r = ki(t + "", n), i, a = -1, o = r.length;
272
+ var n = this._, r = Ii(t + "", n), i, a = -1, o = r.length;
273
273
  if (arguments.length < 2) {
274
- for (; ++a < o; ) if ((i = (t = r[a]).type) && (i = Ii(n[i], t.name))) return i;
274
+ for (; ++a < o; ) if ((i = (t = r[a]).type) && (i = Ri(n[i], t.name))) return i;
275
275
  return;
276
276
  }
277
277
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
@@ -295,7 +295,7 @@ Bt.prototype = Qn.prototype = {
295
295
  for (var r = this._[t], i = 0, a = r.length; i < a; ++i) r[i].value.apply(e, n);
296
296
  }
297
297
  };
298
- function Ii(t, e) {
298
+ function Ri(t, e) {
299
299
  for (var n = 0, r = t.length, i; n < r; ++n)
300
300
  if ((i = t[n]).name === e)
301
301
  return i.value;
@@ -303,7 +303,7 @@ function Ii(t, e) {
303
303
  function ln(t, e, n) {
304
304
  for (var r = 0, i = t.length; r < i; ++r)
305
305
  if (t[r].name === e) {
306
- t[r] = Ni, t = t.slice(0, r).concat(t.slice(r + 1));
306
+ t[r] = ki, t = t.slice(0, r).concat(t.slice(r + 1));
307
307
  break;
308
308
  }
309
309
  return n != null && t.push({ name: e, value: n }), t;
@@ -320,53 +320,53 @@ function le(t) {
320
320
  var e = t += "", n = e.indexOf(":");
321
321
  return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), cn.hasOwnProperty(e) ? { space: cn[e], local: t } : t;
322
322
  }
323
- function Ri(t) {
323
+ function Gi(t) {
324
324
  return function() {
325
325
  var e = this.ownerDocument, n = this.namespaceURI;
326
326
  return n === De && e.documentElement.namespaceURI === De ? e.createElement(t) : e.createElementNS(n, t);
327
327
  };
328
328
  }
329
- function Gi(t) {
329
+ function Vi(t) {
330
330
  return function() {
331
331
  return this.ownerDocument.createElementNS(t.space, t.local);
332
332
  };
333
333
  }
334
334
  function tr(t) {
335
335
  var e = le(t);
336
- return (e.local ? Gi : Ri)(e);
336
+ return (e.local ? Vi : Gi)(e);
337
337
  }
338
- function Vi() {
338
+ function zi() {
339
339
  }
340
340
  function Ge(t) {
341
- return t == null ? Vi : function() {
341
+ return t == null ? zi : function() {
342
342
  return this.querySelector(t);
343
343
  };
344
344
  }
345
- function zi(t) {
345
+ function Ui(t) {
346
346
  typeof t != "function" && (t = Ge(t));
347
347
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
348
348
  for (var a = e[i], o = a.length, u = r[i] = new Array(o), l, s, f = 0; f < o; ++f)
349
349
  (l = a[f]) && (s = t.call(l, l.__data__, f, a)) && ("__data__" in l && (s.__data__ = l.__data__), u[f] = s);
350
350
  return new z(r, this._parents);
351
351
  }
352
- function Ui(t) {
352
+ function Hi(t) {
353
353
  return t == null ? [] : Array.isArray(t) ? t : Array.from(t);
354
354
  }
355
- function Hi() {
355
+ function Xi() {
356
356
  return [];
357
357
  }
358
358
  function er(t) {
359
- return t == null ? Hi : function() {
359
+ return t == null ? Xi : function() {
360
360
  return this.querySelectorAll(t);
361
361
  };
362
362
  }
363
- function Xi(t) {
363
+ function qi(t) {
364
364
  return function() {
365
- return Ui(t.apply(this, arguments));
365
+ return Hi(t.apply(this, arguments));
366
366
  };
367
367
  }
368
- function qi(t) {
369
- typeof t == "function" ? t = Xi(t) : t = er(t);
368
+ function Yi(t) {
369
+ typeof t == "function" ? t = qi(t) : t = er(t);
370
370
  for (var e = this._groups, n = e.length, r = [], i = [], a = 0; a < n; ++a)
371
371
  for (var o = e[a], u = o.length, l, s = 0; s < u; ++s)
372
372
  (l = o[s]) && (r.push(t.call(l, l.__data__, s, o)), i.push(l));
@@ -382,31 +382,31 @@ function rr(t) {
382
382
  return e.matches(t);
383
383
  };
384
384
  }
385
- var Yi = Array.prototype.find;
386
- function Bi(t) {
385
+ var Bi = Array.prototype.find;
386
+ function Wi(t) {
387
387
  return function() {
388
- return Yi.call(this.children, t);
388
+ return Bi.call(this.children, t);
389
389
  };
390
390
  }
391
- function Wi() {
391
+ function ji() {
392
392
  return this.firstElementChild;
393
393
  }
394
- function ji(t) {
395
- return this.select(t == null ? Wi : Bi(typeof t == "function" ? t : rr(t)));
394
+ function Ji(t) {
395
+ return this.select(t == null ? ji : Wi(typeof t == "function" ? t : rr(t)));
396
396
  }
397
- var Ji = Array.prototype.filter;
398
- function Ki() {
397
+ var Ki = Array.prototype.filter;
398
+ function Zi() {
399
399
  return Array.from(this.children);
400
400
  }
401
- function Zi(t) {
401
+ function Qi(t) {
402
402
  return function() {
403
- return Ji.call(this.children, t);
403
+ return Ki.call(this.children, t);
404
404
  };
405
405
  }
406
- function Qi(t) {
407
- return this.selectAll(t == null ? Ki : Zi(typeof t == "function" ? t : rr(t)));
408
- }
409
406
  function ta(t) {
407
+ return this.selectAll(t == null ? Zi : Qi(typeof t == "function" ? t : rr(t)));
408
+ }
409
+ function ea(t) {
410
410
  typeof t != "function" && (t = nr(t));
411
411
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
412
412
  for (var a = e[i], o = a.length, u = r[i] = [], l, s = 0; s < o; ++s)
@@ -416,7 +416,7 @@ function ta(t) {
416
416
  function ir(t) {
417
417
  return new Array(t.length);
418
418
  }
419
- function ea() {
419
+ function na() {
420
420
  return new z(this._enter || this._groups.map(ir), this._parents);
421
421
  }
422
422
  function Zt(t, e) {
@@ -437,18 +437,18 @@ Zt.prototype = {
437
437
  return this._parent.querySelectorAll(t);
438
438
  }
439
439
  };
440
- function na(t) {
440
+ function ra(t) {
441
441
  return function() {
442
442
  return t;
443
443
  };
444
444
  }
445
- function ra(t, e, n, r, i, a) {
445
+ function ia(t, e, n, r, i, a) {
446
446
  for (var o = 0, u, l = e.length, s = a.length; o < s; ++o)
447
447
  (u = e[o]) ? (u.__data__ = a[o], r[o] = u) : n[o] = new Zt(t, a[o]);
448
448
  for (; o < l; ++o)
449
449
  (u = e[o]) && (i[o] = u);
450
450
  }
451
- function ia(t, e, n, r, i, a, o) {
451
+ function aa(t, e, n, r, i, a, o) {
452
452
  var u, l, s = /* @__PURE__ */ new Map(), f = e.length, c = a.length, h = new Array(f), d;
453
453
  for (u = 0; u < f; ++u)
454
454
  (l = e[u]) && (h[u] = d = o.call(l, l.__data__, u, e) + "", s.has(d) ? i[u] = l : s.set(d, l));
@@ -457,15 +457,15 @@ function ia(t, e, n, r, i, a, o) {
457
457
  for (u = 0; u < f; ++u)
458
458
  (l = e[u]) && s.get(h[u]) === l && (i[u] = l);
459
459
  }
460
- function aa(t) {
460
+ function oa(t) {
461
461
  return t.__data__;
462
462
  }
463
- function oa(t, e) {
464
- if (!arguments.length) return Array.from(this, aa);
465
- var n = e ? ia : ra, r = this._parents, i = this._groups;
466
- typeof t != "function" && (t = na(t));
463
+ function ua(t, e) {
464
+ if (!arguments.length) return Array.from(this, oa);
465
+ var n = e ? aa : ia, r = this._parents, i = this._groups;
466
+ typeof t != "function" && (t = ra(t));
467
467
  for (var a = i.length, o = new Array(a), u = new Array(a), l = new Array(a), s = 0; s < a; ++s) {
468
- var f = r[s], c = i[s], h = c.length, d = ua(t.call(f, f && f.__data__, s, r)), p = d.length, m = u[s] = new Array(p), b = o[s] = new Array(p), w = l[s] = new Array(h);
468
+ var f = r[s], c = i[s], h = c.length, d = sa(t.call(f, f && f.__data__, s, r)), p = d.length, m = u[s] = new Array(p), b = o[s] = new Array(p), w = l[s] = new Array(h);
469
469
  n(f, c, m, b, w, d, e);
470
470
  for (var x = 0, _ = 0, $, A; x < p; ++x)
471
471
  if ($ = m[x]) {
@@ -475,17 +475,17 @@ function oa(t, e) {
475
475
  }
476
476
  return o = new z(o, r), o._enter = u, o._exit = l, o;
477
477
  }
478
- function ua(t) {
478
+ function sa(t) {
479
479
  return typeof t == "object" && "length" in t ? t : Array.from(t);
480
480
  }
481
- function sa() {
481
+ function la() {
482
482
  return new z(this._exit || this._groups.map(ir), this._parents);
483
483
  }
484
- function la(t, e, n) {
484
+ function ca(t, e, n) {
485
485
  var r = this.enter(), i = this, a = this.exit();
486
486
  return typeof t == "function" ? (r = t(r), r && (r = r.selection())) : r = r.append(t + ""), e != null && (i = e(i), i && (i = i.selection())), n == null ? a.remove() : n(a), r && i ? r.merge(i).order() : i;
487
487
  }
488
- function ca(t) {
488
+ function fa(t) {
489
489
  for (var e = t.selection ? t.selection() : t, n = this._groups, r = e._groups, i = n.length, a = r.length, o = Math.min(i, a), u = new Array(i), l = 0; l < o; ++l)
490
490
  for (var s = n[l], f = r[l], c = s.length, h = u[l] = new Array(c), d, p = 0; p < c; ++p)
491
491
  (d = s[p] || f[p]) && (h[p] = d);
@@ -493,14 +493,14 @@ function ca(t) {
493
493
  u[l] = n[l];
494
494
  return new z(u, this._parents);
495
495
  }
496
- function fa() {
496
+ function ha() {
497
497
  for (var t = this._groups, e = -1, n = t.length; ++e < n; )
498
498
  for (var r = t[e], i = r.length - 1, a = r[i], o; --i >= 0; )
499
499
  (o = r[i]) && (a && o.compareDocumentPosition(a) ^ 4 && a.parentNode.insertBefore(o, a), a = o);
500
500
  return this;
501
501
  }
502
- function ha(t) {
503
- t || (t = da);
502
+ function da(t) {
503
+ t || (t = pa);
504
504
  function e(c, h) {
505
505
  return c && h ? t(c.__data__, h.__data__) : !c - !h;
506
506
  }
@@ -511,17 +511,17 @@ function ha(t) {
511
511
  }
512
512
  return new z(i, this._parents).order();
513
513
  }
514
- function da(t, e) {
514
+ function pa(t, e) {
515
515
  return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
516
516
  }
517
- function pa() {
517
+ function ma() {
518
518
  var t = arguments[0];
519
519
  return arguments[0] = this, t.apply(null, arguments), this;
520
520
  }
521
- function ma() {
521
+ function ga() {
522
522
  return Array.from(this);
523
523
  }
524
- function ga() {
524
+ function ya() {
525
525
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
526
526
  for (var r = t[e], i = 0, a = r.length; i < a; ++i) {
527
527
  var o = r[i];
@@ -529,103 +529,103 @@ function ga() {
529
529
  }
530
530
  return null;
531
531
  }
532
- function ya() {
532
+ function va() {
533
533
  let t = 0;
534
534
  for (const e of this) ++t;
535
535
  return t;
536
536
  }
537
- function va() {
537
+ function ba() {
538
538
  return !this.node();
539
539
  }
540
- function ba(t) {
540
+ function wa(t) {
541
541
  for (var e = this._groups, n = 0, r = e.length; n < r; ++n)
542
542
  for (var i = e[n], a = 0, o = i.length, u; a < o; ++a)
543
543
  (u = i[a]) && t.call(u, u.__data__, a, i);
544
544
  return this;
545
545
  }
546
- function wa(t) {
546
+ function xa(t) {
547
547
  return function() {
548
548
  this.removeAttribute(t);
549
549
  };
550
550
  }
551
- function xa(t) {
551
+ function _a(t) {
552
552
  return function() {
553
553
  this.removeAttributeNS(t.space, t.local);
554
554
  };
555
555
  }
556
- function _a(t, e) {
556
+ function $a(t, e) {
557
557
  return function() {
558
558
  this.setAttribute(t, e);
559
559
  };
560
560
  }
561
- function $a(t, e) {
561
+ function Da(t, e) {
562
562
  return function() {
563
563
  this.setAttributeNS(t.space, t.local, e);
564
564
  };
565
565
  }
566
- function Da(t, e) {
566
+ function Aa(t, e) {
567
567
  return function() {
568
568
  var n = e.apply(this, arguments);
569
569
  n == null ? this.removeAttribute(t) : this.setAttribute(t, n);
570
570
  };
571
571
  }
572
- function Aa(t, e) {
572
+ function Sa(t, e) {
573
573
  return function() {
574
574
  var n = e.apply(this, arguments);
575
575
  n == null ? this.removeAttributeNS(t.space, t.local) : this.setAttributeNS(t.space, t.local, n);
576
576
  };
577
577
  }
578
- function Sa(t, e) {
578
+ function Ma(t, e) {
579
579
  var n = le(t);
580
580
  if (arguments.length < 2) {
581
581
  var r = this.node();
582
582
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
583
583
  }
584
- return this.each((e == null ? n.local ? xa : wa : typeof e == "function" ? n.local ? Aa : Da : n.local ? $a : _a)(n, e));
584
+ return this.each((e == null ? n.local ? _a : xa : typeof e == "function" ? n.local ? Sa : Aa : n.local ? Da : $a)(n, e));
585
585
  }
586
586
  function ar(t) {
587
587
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
588
588
  }
589
- function Ma(t) {
589
+ function Ca(t) {
590
590
  return function() {
591
591
  this.style.removeProperty(t);
592
592
  };
593
593
  }
594
- function Ca(t, e, n) {
594
+ function Pa(t, e, n) {
595
595
  return function() {
596
596
  this.style.setProperty(t, e, n);
597
597
  };
598
598
  }
599
- function Pa(t, e, n) {
599
+ function Fa(t, e, n) {
600
600
  return function() {
601
601
  var r = e.apply(this, arguments);
602
602
  r == null ? this.style.removeProperty(t) : this.style.setProperty(t, r, n);
603
603
  };
604
604
  }
605
- function Fa(t, e, n) {
606
- return arguments.length > 1 ? this.each((e == null ? Ma : typeof e == "function" ? Pa : Ca)(t, e, n ?? "")) : yt(this.node(), t);
605
+ function Ea(t, e, n) {
606
+ return arguments.length > 1 ? this.each((e == null ? Ca : typeof e == "function" ? Fa : Pa)(t, e, n ?? "")) : yt(this.node(), t);
607
607
  }
608
608
  function yt(t, e) {
609
609
  return t.style.getPropertyValue(e) || ar(t).getComputedStyle(t, null).getPropertyValue(e);
610
610
  }
611
- function Ea(t) {
611
+ function La(t) {
612
612
  return function() {
613
613
  delete this[t];
614
614
  };
615
615
  }
616
- function La(t, e) {
616
+ function Ta(t, e) {
617
617
  return function() {
618
618
  this[t] = e;
619
619
  };
620
620
  }
621
- function Ta(t, e) {
621
+ function Oa(t, e) {
622
622
  return function() {
623
623
  var n = e.apply(this, arguments);
624
624
  n == null ? delete this[t] : this[t] = n;
625
625
  };
626
626
  }
627
- function Oa(t, e) {
628
- return arguments.length > 1 ? this.each((e == null ? Ea : typeof e == "function" ? Ta : La)(t, e)) : this.node()[t];
627
+ function Na(t, e) {
628
+ return arguments.length > 1 ? this.each((e == null ? La : typeof e == "function" ? Oa : Ta)(t, e)) : this.node()[t];
629
629
  }
630
630
  function or(t) {
631
631
  return t.trim().split(/^|\s+/);
@@ -655,123 +655,123 @@ function sr(t, e) {
655
655
  function lr(t, e) {
656
656
  for (var n = Ve(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
657
657
  }
658
- function Na(t) {
658
+ function ka(t) {
659
659
  return function() {
660
660
  sr(this, t);
661
661
  };
662
662
  }
663
- function ka(t) {
663
+ function Ia(t) {
664
664
  return function() {
665
665
  lr(this, t);
666
666
  };
667
667
  }
668
- function Ia(t, e) {
668
+ function Ra(t, e) {
669
669
  return function() {
670
670
  (e.apply(this, arguments) ? sr : lr)(this, t);
671
671
  };
672
672
  }
673
- function Ra(t, e) {
673
+ function Ga(t, e) {
674
674
  var n = or(t + "");
675
675
  if (arguments.length < 2) {
676
676
  for (var r = Ve(this.node()), i = -1, a = n.length; ++i < a; ) if (!r.contains(n[i])) return !1;
677
677
  return !0;
678
678
  }
679
- return this.each((typeof e == "function" ? Ia : e ? Na : ka)(n, e));
679
+ return this.each((typeof e == "function" ? Ra : e ? ka : Ia)(n, e));
680
680
  }
681
- function Ga() {
681
+ function Va() {
682
682
  this.textContent = "";
683
683
  }
684
- function Va(t) {
684
+ function za(t) {
685
685
  return function() {
686
686
  this.textContent = t;
687
687
  };
688
688
  }
689
- function za(t) {
689
+ function Ua(t) {
690
690
  return function() {
691
691
  var e = t.apply(this, arguments);
692
692
  this.textContent = e ?? "";
693
693
  };
694
694
  }
695
- function Ua(t) {
696
- return arguments.length ? this.each(t == null ? Ga : (typeof t == "function" ? za : Va)(t)) : this.node().textContent;
695
+ function Ha(t) {
696
+ return arguments.length ? this.each(t == null ? Va : (typeof t == "function" ? Ua : za)(t)) : this.node().textContent;
697
697
  }
698
- function Ha() {
698
+ function Xa() {
699
699
  this.innerHTML = "";
700
700
  }
701
- function Xa(t) {
701
+ function qa(t) {
702
702
  return function() {
703
703
  this.innerHTML = t;
704
704
  };
705
705
  }
706
- function qa(t) {
706
+ function Ya(t) {
707
707
  return function() {
708
708
  var e = t.apply(this, arguments);
709
709
  this.innerHTML = e ?? "";
710
710
  };
711
711
  }
712
- function Ya(t) {
713
- return arguments.length ? this.each(t == null ? Ha : (typeof t == "function" ? qa : Xa)(t)) : this.node().innerHTML;
714
- }
715
- function Ba() {
716
- this.nextSibling && this.parentNode.appendChild(this);
712
+ function Ba(t) {
713
+ return arguments.length ? this.each(t == null ? Xa : (typeof t == "function" ? Ya : qa)(t)) : this.node().innerHTML;
717
714
  }
718
715
  function Wa() {
719
- return this.each(Ba);
716
+ this.nextSibling && this.parentNode.appendChild(this);
720
717
  }
721
718
  function ja() {
722
- this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
719
+ return this.each(Wa);
723
720
  }
724
721
  function Ja() {
725
- return this.each(ja);
722
+ this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
723
+ }
724
+ function Ka() {
725
+ return this.each(Ja);
726
726
  }
727
- function Ka(t) {
727
+ function Za(t) {
728
728
  var e = typeof t == "function" ? t : tr(t);
729
729
  return this.select(function() {
730
730
  return this.appendChild(e.apply(this, arguments));
731
731
  });
732
732
  }
733
- function Za() {
733
+ function Qa() {
734
734
  return null;
735
735
  }
736
- function Qa(t, e) {
737
- var n = typeof t == "function" ? t : tr(t), r = e == null ? Za : typeof e == "function" ? e : Ge(e);
736
+ function to(t, e) {
737
+ var n = typeof t == "function" ? t : tr(t), r = e == null ? Qa : typeof e == "function" ? e : Ge(e);
738
738
  return this.select(function() {
739
739
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
740
740
  });
741
741
  }
742
- function to() {
742
+ function eo() {
743
743
  var t = this.parentNode;
744
744
  t && t.removeChild(this);
745
745
  }
746
- function eo() {
747
- return this.each(to);
748
- }
749
746
  function no() {
747
+ return this.each(eo);
748
+ }
749
+ function ro() {
750
750
  var t = this.cloneNode(!1), e = this.parentNode;
751
751
  return e ? e.insertBefore(t, this.nextSibling) : t;
752
752
  }
753
- function ro() {
753
+ function io() {
754
754
  var t = this.cloneNode(!0), e = this.parentNode;
755
755
  return e ? e.insertBefore(t, this.nextSibling) : t;
756
756
  }
757
- function io(t) {
758
- return this.select(t ? ro : no);
759
- }
760
757
  function ao(t) {
761
- return arguments.length ? this.property("__data__", t) : this.node().__data__;
758
+ return this.select(t ? io : ro);
762
759
  }
763
760
  function oo(t) {
761
+ return arguments.length ? this.property("__data__", t) : this.node().__data__;
762
+ }
763
+ function uo(t) {
764
764
  return function(e) {
765
765
  t.call(this, e, this.__data__);
766
766
  };
767
767
  }
768
- function uo(t) {
768
+ function so(t) {
769
769
  return t.trim().split(/^|\s+/).map(function(e) {
770
770
  var n = "", r = e.indexOf(".");
771
771
  return r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: n };
772
772
  });
773
773
  }
774
- function so(t) {
774
+ function lo(t) {
775
775
  return function() {
776
776
  var e = this.__on;
777
777
  if (e) {
@@ -781,9 +781,9 @@ function so(t) {
781
781
  }
782
782
  };
783
783
  }
784
- function lo(t, e, n) {
784
+ function co(t, e, n) {
785
785
  return function() {
786
- var r = this.__on, i, a = oo(e);
786
+ var r = this.__on, i, a = uo(e);
787
787
  if (r) {
788
788
  for (var o = 0, u = r.length; o < u; ++o)
789
789
  if ((i = r[o]).type === t.type && i.name === t.name) {
@@ -794,8 +794,8 @@ function lo(t, e, n) {
794
794
  this.addEventListener(t.type, a, n), i = { type: t.type, name: t.name, value: e, listener: a, options: n }, r ? r.push(i) : this.__on = [i];
795
795
  };
796
796
  }
797
- function co(t, e, n) {
798
- var r = uo(t + ""), i, a = r.length, o;
797
+ function fo(t, e, n) {
798
+ var r = so(t + ""), i, a = r.length, o;
799
799
  if (arguments.length < 2) {
800
800
  var u = this.node().__on;
801
801
  if (u) {
@@ -806,27 +806,27 @@ function co(t, e, n) {
806
806
  }
807
807
  return;
808
808
  }
809
- for (u = e ? lo : so, i = 0; i < a; ++i) this.each(u(r[i], e, n));
809
+ for (u = e ? co : lo, i = 0; i < a; ++i) this.each(u(r[i], e, n));
810
810
  return this;
811
811
  }
812
812
  function cr(t, e, n) {
813
813
  var r = ar(t), i = r.CustomEvent;
814
814
  typeof i == "function" ? i = new i(e, n) : (i = r.document.createEvent("Event"), n ? (i.initEvent(e, n.bubbles, n.cancelable), i.detail = n.detail) : i.initEvent(e, !1, !1)), t.dispatchEvent(i);
815
815
  }
816
- function fo(t, e) {
816
+ function ho(t, e) {
817
817
  return function() {
818
818
  return cr(this, t, e);
819
819
  };
820
820
  }
821
- function ho(t, e) {
821
+ function po(t, e) {
822
822
  return function() {
823
823
  return cr(this, t, e.apply(this, arguments));
824
824
  };
825
825
  }
826
- function po(t, e) {
827
- return this.each((typeof e == "function" ? ho : fo)(t, e));
826
+ function mo(t, e) {
827
+ return this.each((typeof e == "function" ? po : ho)(t, e));
828
828
  }
829
- function* mo() {
829
+ function* go() {
830
830
  for (var t = this._groups, e = 0, n = t.length; e < n; ++e)
831
831
  for (var r = t[e], i = 0, a = r.length, o; i < a; ++i)
832
832
  (o = r[i]) && (yield o);
@@ -838,46 +838,46 @@ function z(t, e) {
838
838
  function Nt() {
839
839
  return new z([[document.documentElement]], fr);
840
840
  }
841
- function go() {
841
+ function yo() {
842
842
  return this;
843
843
  }
844
844
  z.prototype = Nt.prototype = {
845
845
  constructor: z,
846
- select: zi,
847
- selectAll: qi,
848
- selectChild: ji,
849
- selectChildren: Qi,
850
- filter: ta,
851
- data: oa,
852
- enter: ea,
853
- exit: sa,
854
- join: la,
855
- merge: ca,
856
- selection: go,
857
- order: fa,
858
- sort: ha,
859
- call: pa,
860
- nodes: ma,
861
- node: ga,
862
- size: ya,
863
- empty: va,
864
- each: ba,
865
- attr: Sa,
866
- style: Fa,
867
- property: Oa,
868
- classed: Ra,
869
- text: Ua,
870
- html: Ya,
871
- raise: Wa,
872
- lower: Ja,
873
- append: Ka,
874
- insert: Qa,
875
- remove: eo,
876
- clone: io,
877
- datum: ao,
878
- on: co,
879
- dispatch: po,
880
- [Symbol.iterator]: mo
846
+ select: Ui,
847
+ selectAll: Yi,
848
+ selectChild: Ji,
849
+ selectChildren: ta,
850
+ filter: ea,
851
+ data: ua,
852
+ enter: na,
853
+ exit: la,
854
+ join: ca,
855
+ merge: fa,
856
+ selection: yo,
857
+ order: ha,
858
+ sort: da,
859
+ call: ma,
860
+ nodes: ga,
861
+ node: ya,
862
+ size: va,
863
+ empty: ba,
864
+ each: wa,
865
+ attr: Ma,
866
+ style: Ea,
867
+ property: Na,
868
+ classed: Ga,
869
+ text: Ha,
870
+ html: Ba,
871
+ raise: ja,
872
+ lower: Ka,
873
+ append: Za,
874
+ insert: to,
875
+ remove: no,
876
+ clone: ao,
877
+ datum: oo,
878
+ on: fo,
879
+ dispatch: mo,
880
+ [Symbol.iterator]: go
881
881
  };
882
882
  function Vt(t) {
883
883
  return typeof t == "string" ? new z([[document.querySelector(t)]], [document.documentElement]) : new z([[t]], fr);
@@ -892,7 +892,7 @@ function hr(t, e) {
892
892
  }
893
893
  function kt() {
894
894
  }
895
- var Et = 0.7, Qt = 1 / Et, mt = "\\s*([+-]?\\d+)\\s*", Lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", B = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", yo = /^#([0-9a-f]{3,8})$/, vo = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), bo = new RegExp(`^rgb\\(${B},${B},${B}\\)$`), wo = new RegExp(`^rgba\\(${mt},${mt},${mt},${Lt}\\)$`), xo = new RegExp(`^rgba\\(${B},${B},${B},${Lt}\\)$`), _o = new RegExp(`^hsl\\(${Lt},${B},${B}\\)$`), $o = new RegExp(`^hsla\\(${Lt},${B},${B},${Lt}\\)$`), fn = {
895
+ var Et = 0.7, Qt = 1 / Et, mt = "\\s*([+-]?\\d+)\\s*", Lt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", B = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", vo = /^#([0-9a-f]{3,8})$/, bo = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), wo = new RegExp(`^rgb\\(${B},${B},${B}\\)$`), xo = new RegExp(`^rgba\\(${mt},${mt},${mt},${Lt}\\)$`), _o = new RegExp(`^rgba\\(${B},${B},${B},${Lt}\\)$`), $o = new RegExp(`^hsl\\(${Lt},${B},${B}\\)$`), Do = new RegExp(`^hsla\\(${Lt},${B},${B},${Lt}\\)$`), fn = {
896
896
  aliceblue: 15792383,
897
897
  antiquewhite: 16444375,
898
898
  aqua: 65535,
@@ -1052,18 +1052,18 @@ ze(kt, ft, {
1052
1052
  hex: hn,
1053
1053
  // Deprecated! Use color.formatHex.
1054
1054
  formatHex: hn,
1055
- formatHex8: Do,
1056
- formatHsl: Ao,
1055
+ formatHex8: Ao,
1056
+ formatHsl: So,
1057
1057
  formatRgb: dn,
1058
1058
  toString: dn
1059
1059
  });
1060
1060
  function hn() {
1061
1061
  return this.rgb().formatHex();
1062
1062
  }
1063
- function Do() {
1063
+ function Ao() {
1064
1064
  return this.rgb().formatHex8();
1065
1065
  }
1066
- function Ao() {
1066
+ function So() {
1067
1067
  return dr(this).formatHsl();
1068
1068
  }
1069
1069
  function dn() {
@@ -1071,7 +1071,7 @@ function dn() {
1071
1071
  }
1072
1072
  function ft(t) {
1073
1073
  var e, n;
1074
- return t = (t + "").trim().toLowerCase(), (e = yo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? pn(e) : n === 3 ? new G(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? zt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? zt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = vo.exec(t)) ? new G(e[1], e[2], e[3], 1) : (e = bo.exec(t)) ? new G(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = wo.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = xo.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = _o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, 1) : (e = $o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, e[4]) : fn.hasOwnProperty(t) ? pn(fn[t]) : t === "transparent" ? new G(NaN, NaN, NaN, 0) : null;
1074
+ return t = (t + "").trim().toLowerCase(), (e = vo.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? pn(e) : n === 3 ? new G(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? zt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? zt(e >> 12 & 15 | e >> 8 & 240, e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, ((e & 15) << 4 | e & 15) / 255) : null) : (e = bo.exec(t)) ? new G(e[1], e[2], e[3], 1) : (e = wo.exec(t)) ? new G(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = xo.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = _o.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = $o.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, 1) : (e = Do.exec(t)) ? yn(e[1], e[2] / 100, e[3] / 100, e[4]) : fn.hasOwnProperty(t) ? pn(fn[t]) : t === "transparent" ? new G(NaN, NaN, NaN, 0) : null;
1075
1075
  }
1076
1076
  function pn(t) {
1077
1077
  return new G(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
@@ -1079,11 +1079,11 @@ function pn(t) {
1079
1079
  function zt(t, e, n, r) {
1080
1080
  return r <= 0 && (t = e = n = NaN), new G(t, e, n, r);
1081
1081
  }
1082
- function So(t) {
1082
+ function Mo(t) {
1083
1083
  return t instanceof kt || (t = ft(t)), t ? (t = t.rgb(), new G(t.r, t.g, t.b, t.opacity)) : new G();
1084
1084
  }
1085
1085
  function Ae(t, e, n, r) {
1086
- return arguments.length === 1 ? So(t) : new G(t, e, n, r ?? 1);
1086
+ return arguments.length === 1 ? Mo(t) : new G(t, e, n, r ?? 1);
1087
1087
  }
1088
1088
  function G(t, e, n, r) {
1089
1089
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
@@ -1107,14 +1107,14 @@ ze(G, Ae, hr(kt, {
1107
1107
  hex: mn,
1108
1108
  // Deprecated! Use color.formatHex.
1109
1109
  formatHex: mn,
1110
- formatHex8: Mo,
1110
+ formatHex8: Co,
1111
1111
  formatRgb: gn,
1112
1112
  toString: gn
1113
1113
  }));
1114
1114
  function mn() {
1115
1115
  return `#${st(this.r)}${st(this.g)}${st(this.b)}`;
1116
1116
  }
1117
- function Mo() {
1117
+ function Co() {
1118
1118
  return `#${st(this.r)}${st(this.g)}${st(this.b)}${st((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1119
1119
  }
1120
1120
  function gn() {
@@ -1141,13 +1141,13 @@ function dr(t) {
1141
1141
  var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = Math.min(e, n, r), a = Math.max(e, n, r), o = NaN, u = a - i, l = (a + i) / 2;
1142
1142
  return u ? (e === a ? o = (n - r) / u + (n < r) * 6 : n === a ? o = (r - e) / u + 2 : o = (e - n) / u + 4, u /= l < 0.5 ? a + i : 2 - a - i, o *= 60) : u = l > 0 && l < 1 ? 0 : o, new X(o, u, l, t.opacity);
1143
1143
  }
1144
- function Co(t, e, n, r) {
1144
+ function Po(t, e, n, r) {
1145
1145
  return arguments.length === 1 ? dr(t) : new X(t, e, n, r ?? 1);
1146
1146
  }
1147
1147
  function X(t, e, n, r) {
1148
1148
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1149
1149
  }
1150
- ze(X, Co, hr(kt, {
1150
+ ze(X, Po, hr(kt, {
1151
1151
  brighter(t) {
1152
1152
  return t = t == null ? Qt : Math.pow(Qt, t), new X(this.h, this.s, this.l * t, this.opacity);
1153
1153
  },
@@ -1184,27 +1184,27 @@ function ye(t, e, n) {
1184
1184
  return (t < 60 ? e + (n - e) * t / 60 : t < 180 ? n : t < 240 ? e + (n - e) * (240 - t) / 60 : e) * 255;
1185
1185
  }
1186
1186
  const Ue = (t) => () => t;
1187
- function Po(t, e) {
1187
+ function Fo(t, e) {
1188
1188
  return function(n) {
1189
1189
  return t + n * e;
1190
1190
  };
1191
1191
  }
1192
- function Fo(t, e, n) {
1192
+ function Eo(t, e, n) {
1193
1193
  return t = Math.pow(t, n), e = Math.pow(e, n) - t, n = 1 / n, function(r) {
1194
1194
  return Math.pow(t + r * e, n);
1195
1195
  };
1196
1196
  }
1197
- function Eo(t) {
1197
+ function Lo(t) {
1198
1198
  return (t = +t) == 1 ? pr : function(e, n) {
1199
- return n - e ? Fo(e, n, t) : Ue(isNaN(e) ? n : e);
1199
+ return n - e ? Eo(e, n, t) : Ue(isNaN(e) ? n : e);
1200
1200
  };
1201
1201
  }
1202
1202
  function pr(t, e) {
1203
1203
  var n = e - t;
1204
- return n ? Po(t, n) : Ue(isNaN(t) ? e : t);
1204
+ return n ? Fo(t, n) : Ue(isNaN(t) ? e : t);
1205
1205
  }
1206
1206
  const ee = function t(e) {
1207
- var n = Eo(e);
1207
+ var n = Lo(e);
1208
1208
  function r(i, a) {
1209
1209
  var o = n((i = Ae(i)).r, (a = Ae(a)).r), u = n(i.g, a.g), l = n(i.b, a.b), s = pr(i.opacity, a.opacity);
1210
1210
  return function(f) {
@@ -1213,7 +1213,7 @@ const ee = function t(e) {
1213
1213
  }
1214
1214
  return r.gamma = t, r;
1215
1215
  }(1);
1216
- function Lo(t, e) {
1216
+ function To(t, e) {
1217
1217
  e || (e = []);
1218
1218
  var n = t ? Math.min(e.length, t.length) : 0, r = e.slice(), i;
1219
1219
  return function(a) {
@@ -1221,10 +1221,10 @@ function Lo(t, e) {
1221
1221
  return r;
1222
1222
  };
1223
1223
  }
1224
- function To(t) {
1224
+ function Oo(t) {
1225
1225
  return ArrayBuffer.isView(t) && !(t instanceof DataView);
1226
1226
  }
1227
- function Oo(t, e) {
1227
+ function No(t, e) {
1228
1228
  var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), a = new Array(n), o;
1229
1229
  for (o = 0; o < r; ++o) i[o] = He(t[o], e[o]);
1230
1230
  for (; o < n; ++o) a[o] = e[o];
@@ -1233,7 +1233,7 @@ function Oo(t, e) {
1233
1233
  return a;
1234
1234
  };
1235
1235
  }
1236
- function No(t, e) {
1236
+ function ko(t, e) {
1237
1237
  var n = /* @__PURE__ */ new Date();
1238
1238
  return t = +t, e = +e, function(r) {
1239
1239
  return n.setTime(t * (1 - r) + e * r), n;
@@ -1244,7 +1244,7 @@ function H(t, e) {
1244
1244
  return t * (1 - n) + e * n;
1245
1245
  };
1246
1246
  }
1247
- function ko(t, e) {
1247
+ function Io(t, e) {
1248
1248
  var n = {}, r = {}, i;
1249
1249
  (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {});
1250
1250
  for (i in e)
@@ -1255,12 +1255,12 @@ function ko(t, e) {
1255
1255
  };
1256
1256
  }
1257
1257
  var Se = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, ve = new RegExp(Se.source, "g");
1258
- function Io(t) {
1258
+ function Ro(t) {
1259
1259
  return function() {
1260
1260
  return t;
1261
1261
  };
1262
1262
  }
1263
- function Ro(t) {
1263
+ function Go(t) {
1264
1264
  return function(e) {
1265
1265
  return t(e) + "";
1266
1266
  };
@@ -1269,16 +1269,16 @@ function mr(t, e) {
1269
1269
  var n = Se.lastIndex = ve.lastIndex = 0, r, i, a, o = -1, u = [], l = [];
1270
1270
  for (t = t + "", e = e + ""; (r = Se.exec(t)) && (i = ve.exec(e)); )
1271
1271
  (a = i.index) > n && (a = e.slice(n, a), u[o] ? u[o] += a : u[++o] = a), (r = r[0]) === (i = i[0]) ? u[o] ? u[o] += i : u[++o] = i : (u[++o] = null, l.push({ i: o, x: H(r, i) })), n = ve.lastIndex;
1272
- return n < e.length && (a = e.slice(n), u[o] ? u[o] += a : u[++o] = a), u.length < 2 ? l[0] ? Ro(l[0].x) : Io(e) : (e = l.length, function(s) {
1272
+ return n < e.length && (a = e.slice(n), u[o] ? u[o] += a : u[++o] = a), u.length < 2 ? l[0] ? Go(l[0].x) : Ro(e) : (e = l.length, function(s) {
1273
1273
  for (var f = 0, c; f < e; ++f) u[(c = l[f]).i] = c.x(s);
1274
1274
  return u.join("");
1275
1275
  });
1276
1276
  }
1277
1277
  function He(t, e) {
1278
1278
  var n = typeof e, r;
1279
- return e == null || n === "boolean" ? Ue(e) : (n === "number" ? H : n === "string" ? (r = ft(e)) ? (e = r, ee) : mr : e instanceof ft ? ee : e instanceof Date ? No : To(e) ? Lo : Array.isArray(e) ? Oo : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? ko : H)(t, e);
1279
+ return e == null || n === "boolean" ? Ue(e) : (n === "number" ? H : n === "string" ? (r = ft(e)) ? (e = r, ee) : mr : e instanceof ft ? ee : e instanceof Date ? ko : Oo(e) ? To : Array.isArray(e) ? No : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? Io : H)(t, e);
1280
1280
  }
1281
- function Go(t, e) {
1281
+ function Vo(t, e) {
1282
1282
  return t = +t, e = +e, function(n) {
1283
1283
  return Math.round(t * (1 - n) + e * n);
1284
1284
  };
@@ -1303,11 +1303,11 @@ function gr(t, e, n, r, i, a) {
1303
1303
  };
1304
1304
  }
1305
1305
  var Ht;
1306
- function Vo(t) {
1306
+ function zo(t) {
1307
1307
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1308
1308
  return e.isIdentity ? Me : gr(e.a, e.b, e.c, e.d, e.e, e.f);
1309
1309
  }
1310
- function zo(t) {
1310
+ function Uo(t) {
1311
1311
  return t == null || (Ht || (Ht = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ht.setAttribute("transform", t), !(t = Ht.transform.baseVal.consolidate())) ? Me : (t = t.matrix, gr(t.a, t.b, t.c, t.d, t.e, t.f));
1312
1312
  }
1313
1313
  function yr(t, e, n, r) {
@@ -1340,13 +1340,13 @@ function yr(t, e, n, r) {
1340
1340
  };
1341
1341
  };
1342
1342
  }
1343
- var Uo = yr(Vo, "px, ", "px)", "deg)"), Ho = yr(zo, ", ", ")", ")"), vt = 0, Mt = 0, St = 0, vr = 1e3, ne, Ct, re = 0, ht = 0, ce = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, br = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1343
+ var Ho = yr(zo, "px, ", "px)", "deg)"), Xo = yr(Uo, ", ", ")", ")"), vt = 0, Mt = 0, St = 0, vr = 1e3, ne, Ct, re = 0, ht = 0, ce = 0, Tt = typeof performance == "object" && performance.now ? performance : Date, br = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1344
1344
  setTimeout(t, 17);
1345
1345
  };
1346
1346
  function Xe() {
1347
- return ht || (br(Xo), ht = Tt.now() + ce);
1347
+ return ht || (br(qo), ht = Tt.now() + ce);
1348
1348
  }
1349
- function Xo() {
1349
+ function qo() {
1350
1350
  ht = 0;
1351
1351
  }
1352
1352
  function ie() {
@@ -1366,7 +1366,7 @@ function wr(t, e, n) {
1366
1366
  var r = new ie();
1367
1367
  return r.restart(t, e, n), r;
1368
1368
  }
1369
- function qo() {
1369
+ function Yo() {
1370
1370
  Xe(), ++vt;
1371
1371
  for (var t = ne, e; t; )
1372
1372
  (e = ht - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
@@ -1375,16 +1375,16 @@ function qo() {
1375
1375
  function wn() {
1376
1376
  ht = (re = Tt.now()) + ce, vt = Mt = 0;
1377
1377
  try {
1378
- qo();
1378
+ Yo();
1379
1379
  } finally {
1380
- vt = 0, Bo(), ht = 0;
1380
+ vt = 0, Wo(), ht = 0;
1381
1381
  }
1382
1382
  }
1383
- function Yo() {
1383
+ function Bo() {
1384
1384
  var t = Tt.now(), e = t - re;
1385
1385
  e > vr && (ce -= e, re = t);
1386
1386
  }
1387
- function Bo() {
1387
+ function Wo() {
1388
1388
  for (var t, e = ne, n, r = 1 / 0; e; )
1389
1389
  e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : ne = n);
1390
1390
  Ct = t, Ce(r);
@@ -1393,7 +1393,7 @@ function Ce(t) {
1393
1393
  if (!vt) {
1394
1394
  Mt && (Mt = clearTimeout(Mt));
1395
1395
  var e = t - ht;
1396
- e > 24 ? (t < 1 / 0 && (Mt = setTimeout(wn, t - Tt.now() - ce)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Yo, vr)), vt = 1, br(wn));
1396
+ e > 24 ? (t < 1 / 0 && (Mt = setTimeout(wn, t - Tt.now() - ce)), St && (St = clearInterval(St))) : (St || (re = Tt.now(), St = setInterval(Bo, vr)), vt = 1, br(wn));
1397
1397
  }
1398
1398
  }
1399
1399
  function xn(t, e, n) {
@@ -1402,19 +1402,19 @@ function xn(t, e, n) {
1402
1402
  r.stop(), t(i + e);
1403
1403
  }, e, n), r;
1404
1404
  }
1405
- var Wo = Qn("start", "end", "cancel", "interrupt"), jo = [], xr = 0, _n = 1, Pe = 2, Wt = 3, $n = 4, Fe = 5, jt = 6;
1405
+ var jo = Qn("start", "end", "cancel", "interrupt"), Jo = [], xr = 0, _n = 1, Pe = 2, Wt = 3, $n = 4, Fe = 5, jt = 6;
1406
1406
  function fe(t, e, n, r, i, a) {
1407
1407
  var o = t.__transition;
1408
1408
  if (!o) t.__transition = {};
1409
1409
  else if (n in o) return;
1410
- Jo(t, n, {
1410
+ Ko(t, n, {
1411
1411
  name: e,
1412
1412
  index: r,
1413
1413
  // For context during callback.
1414
1414
  group: i,
1415
1415
  // For context during callback.
1416
- on: Wo,
1417
- tween: jo,
1416
+ on: jo,
1417
+ tween: Jo,
1418
1418
  time: a.time,
1419
1419
  delay: a.delay,
1420
1420
  duration: a.duration,
@@ -1438,7 +1438,7 @@ function q(t, e) {
1438
1438
  if (!n || !(n = n[e])) throw new Error("transition not found");
1439
1439
  return n;
1440
1440
  }
1441
- function Jo(t, e, n) {
1441
+ function Ko(t, e, n) {
1442
1442
  var r = t.__transition, i;
1443
1443
  r[e] = n, n.timer = wr(a, 0, n.time);
1444
1444
  function a(s) {
@@ -1471,7 +1471,7 @@ function Jo(t, e, n) {
1471
1471
  delete t.__transition;
1472
1472
  }
1473
1473
  }
1474
- function Ko(t, e) {
1474
+ function Zo(t, e) {
1475
1475
  var n = t.__transition, r, i, a = !0, o;
1476
1476
  if (n) {
1477
1477
  e = e == null ? null : e + "";
@@ -1485,12 +1485,12 @@ function Ko(t, e) {
1485
1485
  a && delete t.__transition;
1486
1486
  }
1487
1487
  }
1488
- function Zo(t) {
1488
+ function Qo(t) {
1489
1489
  return this.each(function() {
1490
- Ko(this, t);
1490
+ Zo(this, t);
1491
1491
  });
1492
1492
  }
1493
- function Qo(t, e) {
1493
+ function tu(t, e) {
1494
1494
  var n, r;
1495
1495
  return function() {
1496
1496
  var i = j(this, t), a = i.tween;
@@ -1505,7 +1505,7 @@ function Qo(t, e) {
1505
1505
  i.tween = r;
1506
1506
  };
1507
1507
  }
1508
- function tu(t, e, n) {
1508
+ function eu(t, e, n) {
1509
1509
  var r, i;
1510
1510
  if (typeof n != "function") throw new Error();
1511
1511
  return function() {
@@ -1522,7 +1522,7 @@ function tu(t, e, n) {
1522
1522
  a.tween = i;
1523
1523
  };
1524
1524
  }
1525
- function eu(t, e) {
1525
+ function nu(t, e) {
1526
1526
  var n = this._id;
1527
1527
  if (t += "", arguments.length < 2) {
1528
1528
  for (var r = q(this.node(), n).tween, i = 0, a = r.length, o; i < a; ++i)
@@ -1530,7 +1530,7 @@ function eu(t, e) {
1530
1530
  return o.value;
1531
1531
  return null;
1532
1532
  }
1533
- return this.each((e == null ? Qo : tu)(n, t, e));
1533
+ return this.each((e == null ? tu : eu)(n, t, e));
1534
1534
  }
1535
1535
  function Ye(t, e, n) {
1536
1536
  var r = t._id;
@@ -1545,139 +1545,139 @@ function _r(t, e) {
1545
1545
  var n;
1546
1546
  return (typeof e == "number" ? H : e instanceof ft ? ee : (n = ft(e)) ? (e = n, ee) : mr)(t, e);
1547
1547
  }
1548
- function nu(t) {
1548
+ function ru(t) {
1549
1549
  return function() {
1550
1550
  this.removeAttribute(t);
1551
1551
  };
1552
1552
  }
1553
- function ru(t) {
1553
+ function iu(t) {
1554
1554
  return function() {
1555
1555
  this.removeAttributeNS(t.space, t.local);
1556
1556
  };
1557
1557
  }
1558
- function iu(t, e, n) {
1558
+ function au(t, e, n) {
1559
1559
  var r, i = n + "", a;
1560
1560
  return function() {
1561
1561
  var o = this.getAttribute(t);
1562
1562
  return o === i ? null : o === r ? a : a = e(r = o, n);
1563
1563
  };
1564
1564
  }
1565
- function au(t, e, n) {
1565
+ function ou(t, e, n) {
1566
1566
  var r, i = n + "", a;
1567
1567
  return function() {
1568
1568
  var o = this.getAttributeNS(t.space, t.local);
1569
1569
  return o === i ? null : o === r ? a : a = e(r = o, n);
1570
1570
  };
1571
1571
  }
1572
- function ou(t, e, n) {
1572
+ function uu(t, e, n) {
1573
1573
  var r, i, a;
1574
1574
  return function() {
1575
1575
  var o, u = n(this), l;
1576
1576
  return u == null ? void this.removeAttribute(t) : (o = this.getAttribute(t), l = u + "", o === l ? null : o === r && l === i ? a : (i = l, a = e(r = o, u)));
1577
1577
  };
1578
1578
  }
1579
- function uu(t, e, n) {
1579
+ function su(t, e, n) {
1580
1580
  var r, i, a;
1581
1581
  return function() {
1582
1582
  var o, u = n(this), l;
1583
1583
  return u == null ? void this.removeAttributeNS(t.space, t.local) : (o = this.getAttributeNS(t.space, t.local), l = u + "", o === l ? null : o === r && l === i ? a : (i = l, a = e(r = o, u)));
1584
1584
  };
1585
1585
  }
1586
- function su(t, e) {
1587
- var n = le(t), r = n === "transform" ? Ho : _r;
1588
- return this.attrTween(t, typeof e == "function" ? (n.local ? uu : ou)(n, r, Ye(this, "attr." + t, e)) : e == null ? (n.local ? ru : nu)(n) : (n.local ? au : iu)(n, r, e));
1589
- }
1590
1586
  function lu(t, e) {
1587
+ var n = le(t), r = n === "transform" ? Xo : _r;
1588
+ return this.attrTween(t, typeof e == "function" ? (n.local ? su : uu)(n, r, Ye(this, "attr." + t, e)) : e == null ? (n.local ? iu : ru)(n) : (n.local ? ou : au)(n, r, e));
1589
+ }
1590
+ function cu(t, e) {
1591
1591
  return function(n) {
1592
1592
  this.setAttribute(t, e.call(this, n));
1593
1593
  };
1594
1594
  }
1595
- function cu(t, e) {
1595
+ function fu(t, e) {
1596
1596
  return function(n) {
1597
1597
  this.setAttributeNS(t.space, t.local, e.call(this, n));
1598
1598
  };
1599
1599
  }
1600
- function fu(t, e) {
1600
+ function hu(t, e) {
1601
1601
  var n, r;
1602
1602
  function i() {
1603
1603
  var a = e.apply(this, arguments);
1604
- return a !== r && (n = (r = a) && cu(t, a)), n;
1604
+ return a !== r && (n = (r = a) && fu(t, a)), n;
1605
1605
  }
1606
1606
  return i._value = e, i;
1607
1607
  }
1608
- function hu(t, e) {
1608
+ function du(t, e) {
1609
1609
  var n, r;
1610
1610
  function i() {
1611
1611
  var a = e.apply(this, arguments);
1612
- return a !== r && (n = (r = a) && lu(t, a)), n;
1612
+ return a !== r && (n = (r = a) && cu(t, a)), n;
1613
1613
  }
1614
1614
  return i._value = e, i;
1615
1615
  }
1616
- function du(t, e) {
1616
+ function pu(t, e) {
1617
1617
  var n = "attr." + t;
1618
1618
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1619
1619
  if (e == null) return this.tween(n, null);
1620
1620
  if (typeof e != "function") throw new Error();
1621
1621
  var r = le(t);
1622
- return this.tween(n, (r.local ? fu : hu)(r, e));
1622
+ return this.tween(n, (r.local ? hu : du)(r, e));
1623
1623
  }
1624
- function pu(t, e) {
1624
+ function mu(t, e) {
1625
1625
  return function() {
1626
1626
  qe(this, t).delay = +e.apply(this, arguments);
1627
1627
  };
1628
1628
  }
1629
- function mu(t, e) {
1629
+ function gu(t, e) {
1630
1630
  return e = +e, function() {
1631
1631
  qe(this, t).delay = e;
1632
1632
  };
1633
1633
  }
1634
- function gu(t) {
1634
+ function yu(t) {
1635
1635
  var e = this._id;
1636
- return arguments.length ? this.each((typeof t == "function" ? pu : mu)(e, t)) : q(this.node(), e).delay;
1636
+ return arguments.length ? this.each((typeof t == "function" ? mu : gu)(e, t)) : q(this.node(), e).delay;
1637
1637
  }
1638
- function yu(t, e) {
1638
+ function vu(t, e) {
1639
1639
  return function() {
1640
1640
  j(this, t).duration = +e.apply(this, arguments);
1641
1641
  };
1642
1642
  }
1643
- function vu(t, e) {
1643
+ function bu(t, e) {
1644
1644
  return e = +e, function() {
1645
1645
  j(this, t).duration = e;
1646
1646
  };
1647
1647
  }
1648
- function bu(t) {
1648
+ function wu(t) {
1649
1649
  var e = this._id;
1650
- return arguments.length ? this.each((typeof t == "function" ? yu : vu)(e, t)) : q(this.node(), e).duration;
1650
+ return arguments.length ? this.each((typeof t == "function" ? vu : bu)(e, t)) : q(this.node(), e).duration;
1651
1651
  }
1652
- function wu(t, e) {
1652
+ function xu(t, e) {
1653
1653
  if (typeof e != "function") throw new Error();
1654
1654
  return function() {
1655
1655
  j(this, t).ease = e;
1656
1656
  };
1657
1657
  }
1658
- function xu(t) {
1658
+ function _u(t) {
1659
1659
  var e = this._id;
1660
- return arguments.length ? this.each(wu(e, t)) : q(this.node(), e).ease;
1660
+ return arguments.length ? this.each(xu(e, t)) : q(this.node(), e).ease;
1661
1661
  }
1662
- function _u(t, e) {
1662
+ function $u(t, e) {
1663
1663
  return function() {
1664
1664
  var n = e.apply(this, arguments);
1665
1665
  if (typeof n != "function") throw new Error();
1666
1666
  j(this, t).ease = n;
1667
1667
  };
1668
1668
  }
1669
- function $u(t) {
1669
+ function Du(t) {
1670
1670
  if (typeof t != "function") throw new Error();
1671
- return this.each(_u(this._id, t));
1671
+ return this.each($u(this._id, t));
1672
1672
  }
1673
- function Du(t) {
1673
+ function Au(t) {
1674
1674
  typeof t != "function" && (t = nr(t));
1675
1675
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
1676
1676
  for (var a = e[i], o = a.length, u = r[i] = [], l, s = 0; s < o; ++s)
1677
1677
  (l = a[s]) && t.call(l, l.__data__, s, a) && u.push(l);
1678
1678
  return new nt(r, this._parents, this._name, this._id);
1679
1679
  }
1680
- function Au(t) {
1680
+ function Su(t) {
1681
1681
  if (t._id !== this._id) throw new Error();
1682
1682
  for (var e = this._groups, n = t._groups, r = e.length, i = n.length, a = Math.min(r, i), o = new Array(r), u = 0; u < a; ++u)
1683
1683
  for (var l = e[u], s = n[u], f = l.length, c = o[u] = new Array(f), h, d = 0; d < f; ++d)
@@ -1686,34 +1686,34 @@ function Au(t) {
1686
1686
  o[u] = e[u];
1687
1687
  return new nt(o, this._parents, this._name, this._id);
1688
1688
  }
1689
- function Su(t) {
1689
+ function Mu(t) {
1690
1690
  return (t + "").trim().split(/^|\s+/).every(function(e) {
1691
1691
  var n = e.indexOf(".");
1692
1692
  return n >= 0 && (e = e.slice(0, n)), !e || e === "start";
1693
1693
  });
1694
1694
  }
1695
- function Mu(t, e, n) {
1696
- var r, i, a = Su(e) ? qe : j;
1695
+ function Cu(t, e, n) {
1696
+ var r, i, a = Mu(e) ? qe : j;
1697
1697
  return function() {
1698
1698
  var o = a(this, t), u = o.on;
1699
1699
  u !== r && (i = (r = u).copy()).on(e, n), o.on = i;
1700
1700
  };
1701
1701
  }
1702
- function Cu(t, e) {
1702
+ function Pu(t, e) {
1703
1703
  var n = this._id;
1704
- return arguments.length < 2 ? q(this.node(), n).on.on(t) : this.each(Mu(n, t, e));
1704
+ return arguments.length < 2 ? q(this.node(), n).on.on(t) : this.each(Cu(n, t, e));
1705
1705
  }
1706
- function Pu(t) {
1706
+ function Fu(t) {
1707
1707
  return function() {
1708
1708
  var e = this.parentNode;
1709
1709
  for (var n in this.__transition) if (+n !== t) return;
1710
1710
  e && e.removeChild(this);
1711
1711
  };
1712
1712
  }
1713
- function Fu() {
1714
- return this.on("end.remove", Pu(this._id));
1713
+ function Eu() {
1714
+ return this.on("end.remove", Fu(this._id));
1715
1715
  }
1716
- function Eu(t) {
1716
+ function Lu(t) {
1717
1717
  var e = this._name, n = this._id;
1718
1718
  typeof t != "function" && (t = Ge(t));
1719
1719
  for (var r = this._groups, i = r.length, a = new Array(i), o = 0; o < i; ++o)
@@ -1721,7 +1721,7 @@ function Eu(t) {
1721
1721
  (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), s[h] = c, fe(s[h], e, n, h, s, q(f, n)));
1722
1722
  return new nt(a, this._parents, e, n);
1723
1723
  }
1724
- function Lu(t) {
1724
+ function Tu(t) {
1725
1725
  var e = this._name, n = this._id;
1726
1726
  typeof t != "function" && (t = er(t));
1727
1727
  for (var r = this._groups, i = r.length, a = [], o = [], u = 0; u < i; ++u)
@@ -1733,11 +1733,11 @@ function Lu(t) {
1733
1733
  }
1734
1734
  return new nt(a, o, e, n);
1735
1735
  }
1736
- var Tu = Nt.prototype.constructor;
1737
- function Ou() {
1738
- return new Tu(this._groups, this._parents);
1736
+ var Ou = Nt.prototype.constructor;
1737
+ function Nu() {
1738
+ return new Ou(this._groups, this._parents);
1739
1739
  }
1740
- function Nu(t, e) {
1740
+ function ku(t, e) {
1741
1741
  var n, r, i;
1742
1742
  return function() {
1743
1743
  var a = yt(this, t), o = (this.style.removeProperty(t), yt(this, t));
@@ -1749,86 +1749,86 @@ function $r(t) {
1749
1749
  this.style.removeProperty(t);
1750
1750
  };
1751
1751
  }
1752
- function ku(t, e, n) {
1752
+ function Iu(t, e, n) {
1753
1753
  var r, i = n + "", a;
1754
1754
  return function() {
1755
1755
  var o = yt(this, t);
1756
1756
  return o === i ? null : o === r ? a : a = e(r = o, n);
1757
1757
  };
1758
1758
  }
1759
- function Iu(t, e, n) {
1759
+ function Ru(t, e, n) {
1760
1760
  var r, i, a;
1761
1761
  return function() {
1762
1762
  var o = yt(this, t), u = n(this), l = u + "";
1763
1763
  return u == null && (l = u = (this.style.removeProperty(t), yt(this, t))), o === l ? null : o === r && l === i ? a : (i = l, a = e(r = o, u));
1764
1764
  };
1765
1765
  }
1766
- function Ru(t, e) {
1766
+ function Gu(t, e) {
1767
1767
  var n, r, i, a = "style." + e, o = "end." + a, u;
1768
1768
  return function() {
1769
1769
  var l = j(this, t), s = l.on, f = l.value[a] == null ? u || (u = $r(e)) : void 0;
1770
1770
  (s !== n || i !== f) && (r = (n = s).copy()).on(o, i = f), l.on = r;
1771
1771
  };
1772
1772
  }
1773
- function Gu(t, e, n) {
1774
- var r = (t += "") == "transform" ? Uo : _r;
1775
- return e == null ? this.styleTween(t, Nu(t, r)).on("end.style." + t, $r(t)) : typeof e == "function" ? this.styleTween(t, Iu(t, r, Ye(this, "style." + t, e))).each(Ru(this._id, t)) : this.styleTween(t, ku(t, r, e), n).on("end.style." + t, null);
1776
- }
1777
1773
  function Vu(t, e, n) {
1774
+ var r = (t += "") == "transform" ? Ho : _r;
1775
+ return e == null ? this.styleTween(t, ku(t, r)).on("end.style." + t, $r(t)) : typeof e == "function" ? this.styleTween(t, Ru(t, r, Ye(this, "style." + t, e))).each(Gu(this._id, t)) : this.styleTween(t, Iu(t, r, e), n).on("end.style." + t, null);
1776
+ }
1777
+ function zu(t, e, n) {
1778
1778
  return function(r) {
1779
1779
  this.style.setProperty(t, e.call(this, r), n);
1780
1780
  };
1781
1781
  }
1782
- function zu(t, e, n) {
1782
+ function Uu(t, e, n) {
1783
1783
  var r, i;
1784
1784
  function a() {
1785
1785
  var o = e.apply(this, arguments);
1786
- return o !== i && (r = (i = o) && Vu(t, o, n)), r;
1786
+ return o !== i && (r = (i = o) && zu(t, o, n)), r;
1787
1787
  }
1788
1788
  return a._value = e, a;
1789
1789
  }
1790
- function Uu(t, e, n) {
1790
+ function Hu(t, e, n) {
1791
1791
  var r = "style." + (t += "");
1792
1792
  if (arguments.length < 2) return (r = this.tween(r)) && r._value;
1793
1793
  if (e == null) return this.tween(r, null);
1794
1794
  if (typeof e != "function") throw new Error();
1795
- return this.tween(r, zu(t, e, n ?? ""));
1795
+ return this.tween(r, Uu(t, e, n ?? ""));
1796
1796
  }
1797
- function Hu(t) {
1797
+ function Xu(t) {
1798
1798
  return function() {
1799
1799
  this.textContent = t;
1800
1800
  };
1801
1801
  }
1802
- function Xu(t) {
1802
+ function qu(t) {
1803
1803
  return function() {
1804
1804
  var e = t(this);
1805
1805
  this.textContent = e ?? "";
1806
1806
  };
1807
1807
  }
1808
- function qu(t) {
1809
- return this.tween("text", typeof t == "function" ? Xu(Ye(this, "text", t)) : Hu(t == null ? "" : t + ""));
1810
- }
1811
1808
  function Yu(t) {
1809
+ return this.tween("text", typeof t == "function" ? qu(Ye(this, "text", t)) : Xu(t == null ? "" : t + ""));
1810
+ }
1811
+ function Bu(t) {
1812
1812
  return function(e) {
1813
1813
  this.textContent = t.call(this, e);
1814
1814
  };
1815
1815
  }
1816
- function Bu(t) {
1816
+ function Wu(t) {
1817
1817
  var e, n;
1818
1818
  function r() {
1819
1819
  var i = t.apply(this, arguments);
1820
- return i !== n && (e = (n = i) && Yu(i)), e;
1820
+ return i !== n && (e = (n = i) && Bu(i)), e;
1821
1821
  }
1822
1822
  return r._value = t, r;
1823
1823
  }
1824
- function Wu(t) {
1824
+ function ju(t) {
1825
1825
  var e = "text";
1826
1826
  if (arguments.length < 1) return (e = this.tween(e)) && e._value;
1827
1827
  if (t == null) return this.tween(e, null);
1828
1828
  if (typeof t != "function") throw new Error();
1829
- return this.tween(e, Bu(t));
1829
+ return this.tween(e, Wu(t));
1830
1830
  }
1831
- function ju() {
1831
+ function Ju() {
1832
1832
  for (var t = this._name, e = this._id, n = Dr(), r = this._groups, i = r.length, a = 0; a < i; ++a)
1833
1833
  for (var o = r[a], u = o.length, l, s = 0; s < u; ++s)
1834
1834
  if (l = o[s]) {
@@ -1842,7 +1842,7 @@ function ju() {
1842
1842
  }
1843
1843
  return new nt(r, this._parents, t, n);
1844
1844
  }
1845
- function Ju() {
1845
+ function Ku() {
1846
1846
  var t, e, n = this, r = n._id, i = n.size();
1847
1847
  return new Promise(function(a, o) {
1848
1848
  var u = { value: o }, l = { value: function() {
@@ -1854,73 +1854,73 @@ function Ju() {
1854
1854
  }), i === 0 && a();
1855
1855
  });
1856
1856
  }
1857
- var Ku = 0;
1857
+ var Zu = 0;
1858
1858
  function nt(t, e, n, r) {
1859
1859
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1860
1860
  }
1861
1861
  function Dr() {
1862
- return ++Ku;
1862
+ return ++Zu;
1863
1863
  }
1864
1864
  var Q = Nt.prototype;
1865
1865
  nt.prototype = {
1866
1866
  constructor: nt,
1867
- select: Eu,
1868
- selectAll: Lu,
1867
+ select: Lu,
1868
+ selectAll: Tu,
1869
1869
  selectChild: Q.selectChild,
1870
1870
  selectChildren: Q.selectChildren,
1871
- filter: Du,
1872
- merge: Au,
1873
- selection: Ou,
1874
- transition: ju,
1871
+ filter: Au,
1872
+ merge: Su,
1873
+ selection: Nu,
1874
+ transition: Ju,
1875
1875
  call: Q.call,
1876
1876
  nodes: Q.nodes,
1877
1877
  node: Q.node,
1878
1878
  size: Q.size,
1879
1879
  empty: Q.empty,
1880
1880
  each: Q.each,
1881
- on: Cu,
1882
- attr: su,
1883
- attrTween: du,
1884
- style: Gu,
1885
- styleTween: Uu,
1886
- text: qu,
1887
- textTween: Wu,
1888
- remove: Fu,
1889
- tween: eu,
1890
- delay: gu,
1891
- duration: bu,
1892
- ease: xu,
1893
- easeVarying: $u,
1894
- end: Ju,
1881
+ on: Pu,
1882
+ attr: lu,
1883
+ attrTween: pu,
1884
+ style: Vu,
1885
+ styleTween: Hu,
1886
+ text: Yu,
1887
+ textTween: ju,
1888
+ remove: Eu,
1889
+ tween: nu,
1890
+ delay: yu,
1891
+ duration: wu,
1892
+ ease: _u,
1893
+ easeVarying: Du,
1894
+ end: Ku,
1895
1895
  [Symbol.iterator]: Q[Symbol.iterator]
1896
1896
  };
1897
- function Zu(t) {
1897
+ function Qu(t) {
1898
1898
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
1899
1899
  }
1900
- var Qu = {
1900
+ var ts = {
1901
1901
  time: null,
1902
1902
  // Set on use.
1903
1903
  delay: 0,
1904
1904
  duration: 250,
1905
- ease: Zu
1905
+ ease: Qu
1906
1906
  };
1907
- function ts(t, e) {
1907
+ function es(t, e) {
1908
1908
  for (var n; !(n = t.__transition) || !(n = n[e]); )
1909
1909
  if (!(t = t.parentNode))
1910
1910
  throw new Error(`transition ${e} not found`);
1911
1911
  return n;
1912
1912
  }
1913
- function es(t) {
1913
+ function ns(t) {
1914
1914
  var e, n;
1915
- t instanceof nt ? (e = t._id, t = t._name) : (e = Dr(), (n = Qu).time = Xe(), t = t == null ? null : t + "");
1915
+ t instanceof nt ? (e = t._id, t = t._name) : (e = Dr(), (n = ts).time = Xe(), t = t == null ? null : t + "");
1916
1916
  for (var r = this._groups, i = r.length, a = 0; a < i; ++a)
1917
1917
  for (var o = r[a], u = o.length, l, s = 0; s < u; ++s)
1918
- (l = o[s]) && fe(l, t, e, s, o, n || ts(l, e));
1918
+ (l = o[s]) && fe(l, t, e, s, o, n || es(l, e));
1919
1919
  return new nt(r, this._parents, t, e);
1920
1920
  }
1921
- Nt.prototype.interrupt = Zo;
1922
- Nt.prototype.transition = es;
1923
- function ns(t) {
1921
+ Nt.prototype.interrupt = Qo;
1922
+ Nt.prototype.transition = ns;
1923
+ function rs(t) {
1924
1924
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
1925
1925
  }
1926
1926
  function ae(t, e) {
@@ -1934,23 +1934,23 @@ function ae(t, e) {
1934
1934
  function bt(t) {
1935
1935
  return t = ae(Math.abs(t)), t ? t[1] : NaN;
1936
1936
  }
1937
- function rs(t, e) {
1937
+ function is(t, e) {
1938
1938
  return function(n, r) {
1939
1939
  for (var i = n.length, a = [], o = 0, u = t[0], l = 0; i > 0 && u > 0 && (l + u + 1 > r && (u = Math.max(1, r - l)), a.push(n.substring(i -= u, i + u)), !((l += u + 1) > r)); )
1940
1940
  u = t[o = (o + 1) % t.length];
1941
1941
  return a.reverse().join(e);
1942
1942
  };
1943
1943
  }
1944
- function is(t) {
1944
+ function as(t) {
1945
1945
  return function(e) {
1946
1946
  return e.replace(/[0-9]/g, function(n) {
1947
1947
  return t[+n];
1948
1948
  });
1949
1949
  };
1950
1950
  }
1951
- var as = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1951
+ var os = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1952
1952
  function oe(t) {
1953
- if (!(e = as.exec(t))) throw new Error("invalid format: " + t);
1953
+ if (!(e = os.exec(t))) throw new Error("invalid format: " + t);
1954
1954
  var e;
1955
1955
  return new Be({
1956
1956
  fill: e[1],
@@ -1972,7 +1972,7 @@ function Be(t) {
1972
1972
  Be.prototype.toString = function() {
1973
1973
  return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
1974
1974
  };
1975
- function os(t) {
1975
+ function us(t) {
1976
1976
  t: for (var e = t.length, n = 1, r = -1, i; n < e; ++n)
1977
1977
  switch (t[n]) {
1978
1978
  case ".":
@@ -1989,7 +1989,7 @@ function os(t) {
1989
1989
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1990
1990
  }
1991
1991
  var Ar;
1992
- function us(t, e) {
1992
+ function ss(t, e) {
1993
1993
  var n = ae(t, e);
1994
1994
  if (!n) return t + "";
1995
1995
  var r = n[0], i = n[1], a = i - (Ar = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
@@ -2005,14 +2005,14 @@ const An = {
2005
2005
  "%": (t, e) => (t * 100).toFixed(e),
2006
2006
  b: (t) => Math.round(t).toString(2),
2007
2007
  c: (t) => t + "",
2008
- d: ns,
2008
+ d: rs,
2009
2009
  e: (t, e) => t.toExponential(e),
2010
2010
  f: (t, e) => t.toFixed(e),
2011
2011
  g: (t, e) => t.toPrecision(e),
2012
2012
  o: (t) => Math.round(t).toString(8),
2013
2013
  p: (t, e) => Dn(t * 100, e),
2014
2014
  r: Dn,
2015
- s: us,
2015
+ s: ss,
2016
2016
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2017
2017
  x: (t) => Math.round(t).toString(16)
2018
2018
  };
@@ -2020,8 +2020,8 @@ function Sn(t) {
2020
2020
  return t;
2021
2021
  }
2022
2022
  var Mn = Array.prototype.map, Cn = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2023
- function ss(t) {
2024
- var e = t.grouping === void 0 || t.thousands === void 0 ? Sn : rs(Mn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? Sn : is(Mn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + "";
2023
+ function ls(t) {
2024
+ var e = t.grouping === void 0 || t.thousands === void 0 ? Sn : is(Mn.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", a = t.numerals === void 0 ? Sn : as(Mn.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", l = t.nan === void 0 ? "NaN" : t.nan + "";
2025
2025
  function s(c) {
2026
2026
  c = oe(c);
2027
2027
  var h = c.fill, d = c.align, p = c.sign, m = c.symbol, b = c.zero, w = c.width, x = c.comma, _ = c.precision, $ = c.trim, A = c.type;
@@ -2035,7 +2035,7 @@ function ss(t) {
2035
2035
  else {
2036
2036
  v = +v;
2037
2037
  var Y = v < 0 || 1 / v < 0;
2038
- if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = os(v)), Y && +v == 0 && p !== "+" && (Y = !1), I = (Y ? p === "(" ? p : u : p === "-" || p === "(" ? "" : p) + I, O = (A === "s" ? Cn[8 + Ar / 3] : "") + O + (Y && p === "(" ? ")" : ""), C) {
2038
+ if (v = isNaN(v) ? l : S(Math.abs(v), _), $ && (v = us(v)), Y && +v == 0 && p !== "+" && (Y = !1), I = (Y ? p === "(" ? p : u : p === "-" || p === "(" ? "" : p) + I, O = (A === "s" ? Cn[8 + Ar / 3] : "") + O + (Y && p === "(" ? ")" : ""), C) {
2039
2039
  for (V = -1, K = v.length; ++V < K; )
2040
2040
  if (ut = v.charCodeAt(V), 48 > ut || ut > 57) {
2041
2041
  O = (ut === 46 ? i + v.slice(V + 1) : v.slice(V)) + O, v = v.slice(0, V);
@@ -2077,21 +2077,21 @@ function ss(t) {
2077
2077
  };
2078
2078
  }
2079
2079
  var Xt, We, Sr;
2080
- ls({
2080
+ cs({
2081
2081
  thousands: ",",
2082
2082
  grouping: [3],
2083
2083
  currency: ["$", ""]
2084
2084
  });
2085
- function ls(t) {
2086
- return Xt = ss(t), We = Xt.format, Sr = Xt.formatPrefix, Xt;
2087
- }
2088
2085
  function cs(t) {
2086
+ return Xt = ls(t), We = Xt.format, Sr = Xt.formatPrefix, Xt;
2087
+ }
2088
+ function fs(t) {
2089
2089
  return Math.max(0, -bt(Math.abs(t)));
2090
2090
  }
2091
- function fs(t, e) {
2091
+ function hs(t, e) {
2092
2092
  return Math.max(0, Math.max(-8, Math.min(8, Math.floor(bt(e) / 3))) * 3 - bt(Math.abs(t)));
2093
2093
  }
2094
- function hs(t, e) {
2094
+ function ds(t, e) {
2095
2095
  return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, bt(e) - bt(t)) + 1;
2096
2096
  }
2097
2097
  function he(t, e) {
@@ -2138,7 +2138,7 @@ function Cr() {
2138
2138
  function c() {
2139
2139
  var h = e().length, d = i < r, p = d ? i : r, m = d ? r : i;
2140
2140
  a = (m - p) / Math.max(1, h - l + s * 2), u && (a = Math.floor(a)), p += (m - p - a * (h - l)) * f, o = a * (1 - l), u && (p = Math.round(p), o = Math.round(o));
2141
- var b = Oi(h).map(function(w) {
2141
+ var b = Ni(h).map(function(w) {
2142
2142
  return p + a * w;
2143
2143
  });
2144
2144
  return n(d ? b.reverse() : b);
@@ -2173,15 +2173,15 @@ function Pr(t) {
2173
2173
  return Pr(e());
2174
2174
  }, t;
2175
2175
  }
2176
- function ds() {
2176
+ function ps() {
2177
2177
  return Pr(Cr.apply(null, arguments).paddingInner(1));
2178
2178
  }
2179
- function ps(t) {
2179
+ function ms(t) {
2180
2180
  return function() {
2181
2181
  return t;
2182
2182
  };
2183
2183
  }
2184
- function ms(t) {
2184
+ function gs(t) {
2185
2185
  return +t;
2186
2186
  }
2187
2187
  var Fn = [0, 1];
@@ -2191,21 +2191,21 @@ function pt(t) {
2191
2191
  function Ee(t, e) {
2192
2192
  return (e -= t = +t) ? function(n) {
2193
2193
  return (n - t) / e;
2194
- } : ps(isNaN(e) ? NaN : 0.5);
2194
+ } : ms(isNaN(e) ? NaN : 0.5);
2195
2195
  }
2196
- function gs(t, e) {
2196
+ function ys(t, e) {
2197
2197
  var n;
2198
2198
  return t > e && (n = t, t = e, e = n), function(r) {
2199
2199
  return Math.max(t, Math.min(e, r));
2200
2200
  };
2201
2201
  }
2202
- function ys(t, e, n) {
2202
+ function vs(t, e, n) {
2203
2203
  var r = t[0], i = t[1], a = e[0], o = e[1];
2204
2204
  return i < r ? (r = Ee(i, r), a = n(o, a)) : (r = Ee(r, i), a = n(a, o)), function(u) {
2205
2205
  return a(r(u));
2206
2206
  };
2207
2207
  }
2208
- function vs(t, e, n) {
2208
+ function bs(t, e, n) {
2209
2209
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), a = new Array(r), o = -1;
2210
2210
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++o < r; )
2211
2211
  i[o] = Ee(t[o], t[o + 1]), a[o] = n(e[o], e[o + 1]);
@@ -2214,14 +2214,14 @@ function vs(t, e, n) {
2214
2214
  return a[l](i[l](u));
2215
2215
  };
2216
2216
  }
2217
- function bs(t, e) {
2217
+ function ws(t, e) {
2218
2218
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2219
2219
  }
2220
- function ws() {
2220
+ function xs() {
2221
2221
  var t = Fn, e = Fn, n = He, r, i, a, o = pt, u, l, s;
2222
2222
  function f() {
2223
2223
  var h = Math.min(t.length, e.length);
2224
- return o !== pt && (o = gs(t[0], t[h - 1])), u = h > 2 ? vs : ys, l = s = null, c;
2224
+ return o !== pt && (o = ys(t[0], t[h - 1])), u = h > 2 ? bs : vs, l = s = null, c;
2225
2225
  }
2226
2226
  function c(h) {
2227
2227
  return h == null || isNaN(h = +h) ? a : (l || (l = u(t.map(r), e, n)))(r(o(h)));
@@ -2229,11 +2229,11 @@ function ws() {
2229
2229
  return c.invert = function(h) {
2230
2230
  return o(i((s || (s = u(e, t.map(r), H)))(h)));
2231
2231
  }, c.domain = function(h) {
2232
- return arguments.length ? (t = Array.from(h, ms), f()) : t.slice();
2232
+ return arguments.length ? (t = Array.from(h, gs), f()) : t.slice();
2233
2233
  }, c.range = function(h) {
2234
2234
  return arguments.length ? (e = Array.from(h), f()) : e.slice();
2235
2235
  }, c.rangeRound = function(h) {
2236
- return e = Array.from(h), n = Go, f();
2236
+ return e = Array.from(h), n = Vo, f();
2237
2237
  }, c.clamp = function(h) {
2238
2238
  return arguments.length ? (o = h ? !0 : pt, f()) : o !== pt;
2239
2239
  }, c.interpolate = function(h) {
@@ -2244,27 +2244,27 @@ function ws() {
2244
2244
  return r = h, i = d, f();
2245
2245
  };
2246
2246
  }
2247
- function xs() {
2248
- return ws()(pt, pt);
2247
+ function _s() {
2248
+ return xs()(pt, pt);
2249
2249
  }
2250
- function _s(t, e, n, r) {
2251
- var i = Ti(t, e, n), a;
2250
+ function $s(t, e, n, r) {
2251
+ var i = Oi(t, e, n), a;
2252
2252
  switch (r = oe(r ?? ",f"), r.type) {
2253
2253
  case "s": {
2254
2254
  var o = Math.max(Math.abs(t), Math.abs(e));
2255
- return r.precision == null && !isNaN(a = fs(i, o)) && (r.precision = a), Sr(r, o);
2255
+ return r.precision == null && !isNaN(a = hs(i, o)) && (r.precision = a), Sr(r, o);
2256
2256
  }
2257
2257
  case "":
2258
2258
  case "e":
2259
2259
  case "g":
2260
2260
  case "p":
2261
2261
  case "r": {
2262
- r.precision == null && !isNaN(a = hs(i, Math.max(Math.abs(t), Math.abs(e)))) && (r.precision = a - (r.type === "e"));
2262
+ r.precision == null && !isNaN(a = ds(i, Math.max(Math.abs(t), Math.abs(e)))) && (r.precision = a - (r.type === "e"));
2263
2263
  break;
2264
2264
  }
2265
2265
  case "f":
2266
2266
  case "%": {
2267
- r.precision == null && !isNaN(a = cs(i)) && (r.precision = a - (r.type === "%") * 2);
2267
+ r.precision == null && !isNaN(a = fs(i)) && (r.precision = a - (r.type === "%") * 2);
2268
2268
  break;
2269
2269
  }
2270
2270
  }
@@ -2274,10 +2274,10 @@ function Fr(t) {
2274
2274
  var e = t.domain;
2275
2275
  return t.ticks = function(n) {
2276
2276
  var r = e();
2277
- return Li(r[0], r[r.length - 1], n ?? 10);
2277
+ return Ti(r[0], r[r.length - 1], n ?? 10);
2278
2278
  }, t.tickFormat = function(n, r) {
2279
2279
  var i = e();
2280
- return _s(i[0], i[i.length - 1], n ?? 10, r);
2280
+ return $s(i[0], i[i.length - 1], n ?? 10, r);
2281
2281
  }, t.nice = function(n) {
2282
2282
  n == null && (n = 10);
2283
2283
  var r = e(), i = 0, a = r.length - 1, o = r[i], u = r[a], l, s, f = 10;
@@ -2296,9 +2296,9 @@ function Fr(t) {
2296
2296
  }, t;
2297
2297
  }
2298
2298
  function Er() {
2299
- var t = xs();
2299
+ var t = _s();
2300
2300
  return t.copy = function() {
2301
- return bs(t, Er());
2301
+ return ws(t, Er());
2302
2302
  }, he.apply(t, arguments), Fr(t);
2303
2303
  }
2304
2304
  function Lr() {
@@ -2412,17 +2412,17 @@ function Or({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid"
2412
2412
  const r = e.seriesDirection === "row" ? e.rowLabels : e.columnLabels;
2413
2413
  return t.map((i, a) => r[a] != null ? r[a] : je(n, a));
2414
2414
  }
2415
- function $s({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2415
+ function Ds({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2416
2416
  const i = e.seriesDirection === "row" ? e.rowLabels : e.columnLabels;
2417
2417
  return t.map((a, o) => i[o] != null ? i[o] : je(`${n}_grid${r}`, o));
2418
2418
  }
2419
- function Ds({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2419
+ function As({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "grid" }) {
2420
2420
  if (t[0] == null)
2421
2421
  return [];
2422
2422
  const r = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
2423
2423
  return t[0].map((i, a) => r[a] != null ? r[a] : Tr(n, a));
2424
2424
  }
2425
- function As({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2425
+ function Ss({ transposedDataGrid: t, dataFormatterGrid: e, chartType: n = "multiGrid", gridIndex: r = 0 }) {
2426
2426
  if (t[0] == null)
2427
2427
  return [];
2428
2428
  const i = e.seriesDirection === "row" ? e.columnLabels : e.rowLabels;
@@ -2455,7 +2455,7 @@ function pc(t, e = 2) {
2455
2455
  const r = t.flat().filter((i, a) => a == e).filter((i) => (i == null || et(i) && i.value == null) === !1).map((i) => typeof i == "number" ? i : i.value);
2456
2456
  return It(r);
2457
2457
  }
2458
- function Ss(t, e) {
2458
+ function Ms(t, e) {
2459
2459
  if (t === "row")
2460
2460
  return Object.assign([], e);
2461
2461
  const n = e.length, r = e.reduce((a, o) => Math.max(a, o.length), 0), i = new Array(r).fill(null).map(() => new Array(n).fill(null));
@@ -2504,7 +2504,7 @@ function Te(t, e, n) {
2504
2504
  };
2505
2505
  });
2506
2506
  }
2507
- const Ms = (t) => {
2507
+ const Cs = (t) => {
2508
2508
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
2509
2509
  if (!e.length)
2510
2510
  return [];
@@ -2566,7 +2566,7 @@ function J(t, e) {
2566
2566
  }
2567
2567
  t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
2568
2568
  }
2569
- function Cs(t, e, n, r) {
2569
+ function Ps(t, e, n, r) {
2570
2570
  function i(a) {
2571
2571
  return a instanceof n ? a : new n(function(o) {
2572
2572
  o(a);
@@ -2688,7 +2688,7 @@ function ot(t, e, n) {
2688
2688
  function gt(t) {
2689
2689
  return this instanceof gt ? (this.v = t, this) : new gt(t);
2690
2690
  }
2691
- function Ps(t, e, n) {
2691
+ function Fs(t, e, n) {
2692
2692
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2693
2693
  var r = n.apply(t, e || []), i, a = [];
2694
2694
  return i = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), u("next"), u("throw"), u("return", o), i[Symbol.asyncIterator] = function() {
@@ -2726,7 +2726,7 @@ function Ps(t, e, n) {
2726
2726
  d(p), a.shift(), a.length && l(a[0][0], a[0][1]);
2727
2727
  }
2728
2728
  }
2729
- function Fs(t) {
2729
+ function Es(t) {
2730
2730
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
2731
2731
  var e = t[Symbol.asyncIterator], n;
2732
2732
  return e ? e.call(t) : (t = typeof wt == "function" ? wt(t) : t[Symbol.iterator](), n = {}, r("next"), r("throw"), r("return"), n[Symbol.asyncIterator] = function() {
@@ -2896,7 +2896,7 @@ var Ke = function(t) {
2896
2896
  J(e, t);
2897
2897
  function e(n) {
2898
2898
  var r = t.call(this) || this;
2899
- return r.isStopped = !1, n ? (r.destination = n, Rr(n) && n.add(r)) : r.destination = Os, r;
2899
+ return r.isStopped = !1, n ? (r.destination = n, Rr(n) && n.add(r)) : r.destination = Ns, r;
2900
2900
  }
2901
2901
  return e.create = function(n, r, i) {
2902
2902
  return new Ot(n, r, i);
@@ -2923,11 +2923,11 @@ var Ke = function(t) {
2923
2923
  this.unsubscribe();
2924
2924
  }
2925
2925
  }, e;
2926
- }(Rt), Es = Function.prototype.bind;
2926
+ }(Rt), Ls = Function.prototype.bind;
2927
2927
  function we(t, e) {
2928
- return Es.call(t, e);
2928
+ return Ls.call(t, e);
2929
2929
  }
2930
- var Ls = function() {
2930
+ var Ts = function() {
2931
2931
  function t(e) {
2932
2932
  this.partialObserver = e;
2933
2933
  }
@@ -2978,20 +2978,20 @@ var Ls = function() {
2978
2978
  complete: n.complete && we(n.complete, u)
2979
2979
  }) : o = n;
2980
2980
  }
2981
- return a.destination = new Ls(o), a;
2981
+ return a.destination = new Ts(o), a;
2982
2982
  }
2983
2983
  return e;
2984
2984
  }(Ke);
2985
2985
  function qt(t) {
2986
2986
  zr(t);
2987
2987
  }
2988
- function Ts(t) {
2988
+ function Os(t) {
2989
2989
  throw t;
2990
2990
  }
2991
- var Os = {
2991
+ var Ns = {
2992
2992
  closed: !0,
2993
2993
  next: Ne,
2994
- error: Ts,
2994
+ error: Os,
2995
2995
  complete: Ne
2996
2996
  }, Ze = function() {
2997
2997
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
@@ -2999,7 +2999,7 @@ var Os = {
2999
2999
  function _t(t) {
3000
3000
  return t;
3001
3001
  }
3002
- function Ns(t) {
3002
+ function ks(t) {
3003
3003
  return t.length === 0 ? _t : t.length === 1 ? t[0] : function(n) {
3004
3004
  return t.reduce(function(r, i) {
3005
3005
  return i(r);
@@ -3014,7 +3014,7 @@ var F = function() {
3014
3014
  var n = new t();
3015
3015
  return n.source = this, n.operator = e, n;
3016
3016
  }, t.prototype.subscribe = function(e, n, r) {
3017
- var i = this, a = Is(e) ? e : new Ot(e, n, r);
3017
+ var i = this, a = Rs(e) ? e : new Ot(e, n, r);
3018
3018
  return Jt(function() {
3019
3019
  var o = i, u = o.operator, l = o.source;
3020
3020
  a.add(u ? u.call(a, l) : l ? i._subscribe(a) : i._trySubscribe(a));
@@ -3049,7 +3049,7 @@ var F = function() {
3049
3049
  }, t.prototype.pipe = function() {
3050
3050
  for (var e = [], n = 0; n < arguments.length; n++)
3051
3051
  e[n] = arguments[n];
3052
- return Ns(e)(this);
3052
+ return ks(e)(this);
3053
3053
  }, t.prototype.toPromise = function(e) {
3054
3054
  var n = this;
3055
3055
  return e = On(e), new e(function(r, i) {
@@ -3070,18 +3070,18 @@ function On(t) {
3070
3070
  var e;
3071
3071
  return (e = t ?? Gr.Promise) !== null && e !== void 0 ? e : Promise;
3072
3072
  }
3073
- function ks(t) {
3074
- return t && L(t.next) && L(t.error) && L(t.complete);
3075
- }
3076
3073
  function Is(t) {
3077
- return t && t instanceof Ke || ks(t) && Rr(t);
3074
+ return t && L(t.next) && L(t.error) && L(t.complete);
3078
3075
  }
3079
3076
  function Rs(t) {
3077
+ return t && t instanceof Ke || Is(t) && Rr(t);
3078
+ }
3079
+ function Gs(t) {
3080
3080
  return L(t == null ? void 0 : t.lift);
3081
3081
  }
3082
3082
  function k(t) {
3083
3083
  return function(e) {
3084
- if (Rs(e))
3084
+ if (Gs(e))
3085
3085
  return e.lift(function(n) {
3086
3086
  try {
3087
3087
  return t(n, this);
@@ -3093,9 +3093,9 @@ function k(t) {
3093
3093
  };
3094
3094
  }
3095
3095
  function N(t, e, n, r, i) {
3096
- return new Gs(t, e, n, r, i);
3096
+ return new Vs(t, e, n, r, i);
3097
3097
  }
3098
- var Gs = function(t) {
3098
+ var Vs = function(t) {
3099
3099
  J(e, t);
3100
3100
  function e(n, r, i, a, o, u) {
3101
3101
  var l = t.call(this, n) || this;
@@ -3130,7 +3130,7 @@ var Gs = function(t) {
3130
3130
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
3131
3131
  }
3132
3132
  }, e;
3133
- }(Ke), Vs = Je(function(t) {
3133
+ }(Ke), zs = Je(function(t) {
3134
3134
  return function() {
3135
3135
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3136
3136
  };
@@ -3145,7 +3145,7 @@ var Gs = function(t) {
3145
3145
  return r.operator = n, r;
3146
3146
  }, e.prototype._throwIfClosed = function() {
3147
3147
  if (this.closed)
3148
- throw new Vs();
3148
+ throw new zs();
3149
3149
  }, e.prototype.next = function(n) {
3150
3150
  var r = this;
3151
3151
  Jt(function() {
@@ -3260,7 +3260,7 @@ var Gs = function(t) {
3260
3260
  return (Qe.delegate || Date).now();
3261
3261
  },
3262
3262
  delegate: void 0
3263
- }, zs = function(t) {
3263
+ }, Us = function(t) {
3264
3264
  J(e, t);
3265
3265
  function e(n, r, i) {
3266
3266
  n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Qe);
@@ -3283,7 +3283,7 @@ var Gs = function(t) {
3283
3283
  s && a.splice(0, s + 1);
3284
3284
  }
3285
3285
  }, e;
3286
- }(P), Us = function(t) {
3286
+ }(P), Hs = function(t) {
3287
3287
  J(e, t);
3288
3288
  function e(n, r) {
3289
3289
  return t.call(this) || this;
@@ -3302,7 +3302,7 @@ var Gs = function(t) {
3302
3302
  return ((e == null ? void 0 : e.clearInterval) || clearInterval)(t);
3303
3303
  },
3304
3304
  delegate: void 0
3305
- }, Hs = function(t) {
3305
+ }, Xs = function(t) {
3306
3306
  J(e, t);
3307
3307
  function e(n, r) {
3308
3308
  var i = t.call(this, n, r) || this;
@@ -3344,14 +3344,14 @@ var Gs = function(t) {
3344
3344
  this.work = this.state = this.scheduler = null, this.pending = !1, ue(a, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
3345
3345
  }
3346
3346
  }, e;
3347
- }(Us), In = function() {
3347
+ }(Hs), In = function() {
3348
3348
  function t(e, n) {
3349
3349
  n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
3350
3350
  }
3351
3351
  return t.prototype.schedule = function(e, n, r) {
3352
3352
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
3353
3353
  }, t.now = Qe.now, t;
3354
- }(), Xs = function(t) {
3354
+ }(), qs = function(t) {
3355
3355
  J(e, t);
3356
3356
  function e(n, r) {
3357
3357
  r === void 0 && (r = In.now);
@@ -3376,7 +3376,7 @@ var Gs = function(t) {
3376
3376
  throw i;
3377
3377
  }
3378
3378
  }, e;
3379
- }(In), tn = new Xs(Hs), qs = tn, en = new F(function(t) {
3379
+ }(In), tn = new qs(Xs), Ys = tn, en = new F(function(t) {
3380
3380
  return t.complete();
3381
3381
  });
3382
3382
  function Ur(t) {
@@ -3385,7 +3385,7 @@ function Ur(t) {
3385
3385
  function nn(t) {
3386
3386
  return t[t.length - 1];
3387
3387
  }
3388
- function Ys(t) {
3388
+ function Bs(t) {
3389
3389
  return L(nn(t)) ? t.pop() : void 0;
3390
3390
  }
3391
3391
  function $t(t) {
@@ -3409,15 +3409,15 @@ function Br(t) {
3409
3409
  function Wr(t) {
3410
3410
  return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
3411
3411
  }
3412
- function Bs() {
3412
+ function Ws() {
3413
3413
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3414
3414
  }
3415
- var jr = Bs();
3415
+ var jr = Ws();
3416
3416
  function Jr(t) {
3417
3417
  return L(t == null ? void 0 : t[jr]);
3418
3418
  }
3419
3419
  function Kr(t) {
3420
- return Ps(this, arguments, function() {
3420
+ return Fs(this, arguments, function() {
3421
3421
  var n, r, i, a;
3422
3422
  return kr(this, function(o) {
3423
3423
  switch (o.label) {
@@ -3455,21 +3455,21 @@ function U(t) {
3455
3455
  return t;
3456
3456
  if (t != null) {
3457
3457
  if (Yr(t))
3458
- return Ws(t);
3459
- if (Xr(t))
3460
3458
  return js(t);
3461
- if (qr(t))
3459
+ if (Xr(t))
3462
3460
  return Js(t);
3461
+ if (qr(t))
3462
+ return Ks(t);
3463
3463
  if (Br(t))
3464
3464
  return Qr(t);
3465
3465
  if (Jr(t))
3466
- return Ks(t);
3467
- if (Zr(t))
3468
3466
  return Zs(t);
3467
+ if (Zr(t))
3468
+ return Qs(t);
3469
3469
  }
3470
3470
  throw Wr(t);
3471
3471
  }
3472
- function Ws(t) {
3472
+ function js(t) {
3473
3473
  return new F(function(e) {
3474
3474
  var n = t[Ze]();
3475
3475
  if (L(n.subscribe))
@@ -3477,14 +3477,14 @@ function Ws(t) {
3477
3477
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3478
3478
  });
3479
3479
  }
3480
- function js(t) {
3480
+ function Js(t) {
3481
3481
  return new F(function(e) {
3482
3482
  for (var n = 0; n < t.length && !e.closed; n++)
3483
3483
  e.next(t[n]);
3484
3484
  e.complete();
3485
3485
  });
3486
3486
  }
3487
- function Js(t) {
3487
+ function Ks(t) {
3488
3488
  return new F(function(e) {
3489
3489
  t.then(function(n) {
3490
3490
  e.closed || (e.next(n), e.complete());
@@ -3493,7 +3493,7 @@ function Js(t) {
3493
3493
  }).then(null, zr);
3494
3494
  });
3495
3495
  }
3496
- function Ks(t) {
3496
+ function Zs(t) {
3497
3497
  return new F(function(e) {
3498
3498
  var n, r;
3499
3499
  try {
@@ -3516,22 +3516,22 @@ function Ks(t) {
3516
3516
  }
3517
3517
  function Qr(t) {
3518
3518
  return new F(function(e) {
3519
- Qs(t, e).catch(function(n) {
3519
+ tl(t, e).catch(function(n) {
3520
3520
  return e.error(n);
3521
3521
  });
3522
3522
  });
3523
3523
  }
3524
- function Zs(t) {
3524
+ function Qs(t) {
3525
3525
  return Qr(Kr(t));
3526
3526
  }
3527
- function Qs(t, e) {
3527
+ function tl(t, e) {
3528
3528
  var n, r, i, a;
3529
- return Cs(this, void 0, void 0, function() {
3529
+ return Ps(this, void 0, void 0, function() {
3530
3530
  var o, u;
3531
3531
  return kr(this, function(l) {
3532
3532
  switch (l.label) {
3533
3533
  case 0:
3534
- l.trys.push([0, 5, 6, 11]), n = Fs(t), l.label = 1;
3534
+ l.trys.push([0, 5, 6, 11]), n = Es(t), l.label = 1;
3535
3535
  case 1:
3536
3536
  return [4, n.next()];
3537
3537
  case 2:
@@ -3594,13 +3594,13 @@ function ei(t, e) {
3594
3594
  }, e));
3595
3595
  });
3596
3596
  }
3597
- function tl(t, e) {
3598
- return U(t).pipe(ei(e), ti(e));
3599
- }
3600
3597
  function el(t, e) {
3601
3598
  return U(t).pipe(ei(e), ti(e));
3602
3599
  }
3603
3600
  function nl(t, e) {
3601
+ return U(t).pipe(ei(e), ti(e));
3602
+ }
3603
+ function rl(t, e) {
3604
3604
  return new F(function(n) {
3605
3605
  var r = 0;
3606
3606
  return e.schedule(function() {
@@ -3608,7 +3608,7 @@ function nl(t, e) {
3608
3608
  });
3609
3609
  });
3610
3610
  }
3611
- function rl(t, e) {
3611
+ function il(t, e) {
3612
3612
  return new F(function(n) {
3613
3613
  var r;
3614
3614
  return it(n, e, function() {
@@ -3641,28 +3641,28 @@ function ni(t, e) {
3641
3641
  });
3642
3642
  });
3643
3643
  }
3644
- function il(t, e) {
3644
+ function al(t, e) {
3645
3645
  return ni(Kr(t), e);
3646
3646
  }
3647
- function al(t, e) {
3647
+ function ol(t, e) {
3648
3648
  if (t != null) {
3649
3649
  if (Yr(t))
3650
- return tl(t, e);
3650
+ return el(t, e);
3651
3651
  if (Xr(t))
3652
- return nl(t, e);
3652
+ return rl(t, e);
3653
3653
  if (qr(t))
3654
- return el(t, e);
3654
+ return nl(t, e);
3655
3655
  if (Br(t))
3656
3656
  return ni(t, e);
3657
3657
  if (Jr(t))
3658
- return rl(t, e);
3659
- if (Zr(t))
3660
3658
  return il(t, e);
3659
+ if (Zr(t))
3660
+ return al(t, e);
3661
3661
  }
3662
3662
  throw Wr(t);
3663
3663
  }
3664
3664
  function Dt(t, e) {
3665
- return e ? al(t, e) : U(t);
3665
+ return e ? ol(t, e) : U(t);
3666
3666
  }
3667
3667
  function Ft() {
3668
3668
  for (var t = [], e = 0; e < arguments.length; e++)
@@ -3675,7 +3675,7 @@ var ri = Je(function(t) {
3675
3675
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
3676
3676
  };
3677
3677
  });
3678
- function ol(t) {
3678
+ function ul(t) {
3679
3679
  return t instanceof Date && !isNaN(t);
3680
3680
  }
3681
3681
  function D(t, e) {
@@ -3686,23 +3686,23 @@ function D(t, e) {
3686
3686
  }));
3687
3687
  });
3688
3688
  }
3689
- var ul = Array.isArray;
3690
- function sl(t, e) {
3691
- return ul(e) ? t.apply(void 0, ot([], at(e))) : t(e);
3689
+ var sl = Array.isArray;
3690
+ function ll(t, e) {
3691
+ return sl(e) ? t.apply(void 0, ot([], at(e))) : t(e);
3692
3692
  }
3693
- function ll(t) {
3693
+ function cl(t) {
3694
3694
  return D(function(e) {
3695
- return sl(t, e);
3695
+ return ll(t, e);
3696
3696
  });
3697
3697
  }
3698
- var cl = Array.isArray, fl = Object.getPrototypeOf, hl = Object.prototype, dl = Object.keys;
3699
- function pl(t) {
3698
+ var fl = Array.isArray, hl = Object.getPrototypeOf, dl = Object.prototype, pl = Object.keys;
3699
+ function ml(t) {
3700
3700
  if (t.length === 1) {
3701
3701
  var e = t[0];
3702
- if (cl(e))
3702
+ if (fl(e))
3703
3703
  return { args: e, keys: null };
3704
- if (ml(e)) {
3705
- var n = dl(e);
3704
+ if (gl(e)) {
3705
+ var n = pl(e);
3706
3706
  return {
3707
3707
  args: n.map(function(r) {
3708
3708
  return e[r];
@@ -3713,10 +3713,10 @@ function pl(t) {
3713
3713
  }
3714
3714
  return { args: t, keys: null };
3715
3715
  }
3716
- function ml(t) {
3717
- return t && typeof t == "object" && fl(t) === hl;
3716
+ function gl(t) {
3717
+ return t && typeof t == "object" && hl(t) === dl;
3718
3718
  }
3719
- function gl(t, e) {
3719
+ function yl(t, e) {
3720
3720
  return t.reduce(function(n, r, i) {
3721
3721
  return n[r] = e[i], n;
3722
3722
  }, {});
@@ -3724,15 +3724,15 @@ function gl(t, e) {
3724
3724
  function R() {
3725
3725
  for (var t = [], e = 0; e < arguments.length; e++)
3726
3726
  t[e] = arguments[e];
3727
- var n = $t(t), r = Ys(t), i = pl(t), a = i.args, o = i.keys;
3727
+ var n = $t(t), r = Bs(t), i = ml(t), a = i.args, o = i.keys;
3728
3728
  if (a.length === 0)
3729
3729
  return Dt([], n);
3730
- var u = new F(yl(a, n, o ? function(l) {
3731
- return gl(o, l);
3730
+ var u = new F(vl(a, n, o ? function(l) {
3731
+ return yl(o, l);
3732
3732
  } : _t));
3733
- return r ? u.pipe(ll(r)) : u;
3733
+ return r ? u.pipe(cl(r)) : u;
3734
3734
  }
3735
- function yl(t, e, n) {
3735
+ function vl(t, e, n) {
3736
3736
  return n === void 0 && (n = _t), function(r) {
3737
3737
  Rn(e, function() {
3738
3738
  for (var i = t.length, a = new Array(i), o = i, u = i, l = function(f) {
@@ -3752,7 +3752,7 @@ function yl(t, e, n) {
3752
3752
  function Rn(t, e, n) {
3753
3753
  t ? it(n, t, e) : e();
3754
3754
  }
3755
- function vl(t, e, n, r, i, a, o, u) {
3755
+ function bl(t, e, n, r, i, a, o, u) {
3756
3756
  var l = [], s = 0, f = 0, c = !1, h = function() {
3757
3757
  c && !l.length && !s && e.complete();
3758
3758
  }, d = function(m) {
@@ -3790,35 +3790,35 @@ function ii(t, e, n) {
3790
3790
  return e(r, a, i, o);
3791
3791
  })(U(t(r, i)));
3792
3792
  }, n) : (typeof e == "number" && (n = e), k(function(r, i) {
3793
- return vl(r, i, t, n);
3793
+ return bl(r, i, t, n);
3794
3794
  }));
3795
3795
  }
3796
3796
  function rn(t) {
3797
3797
  return t === void 0 && (t = 1 / 0), ii(_t, t);
3798
3798
  }
3799
- function bl() {
3799
+ function wl() {
3800
3800
  return rn(1);
3801
3801
  }
3802
3802
  function Gn() {
3803
3803
  for (var t = [], e = 0; e < arguments.length; e++)
3804
3804
  t[e] = arguments[e];
3805
- return bl()(Dt(t, $t(t)));
3805
+ return wl()(Dt(t, $t(t)));
3806
3806
  }
3807
- function wl(t) {
3807
+ function xl(t) {
3808
3808
  return new F(function(e) {
3809
3809
  U(t()).subscribe(e);
3810
3810
  });
3811
3811
  }
3812
- function xl(t, e, n) {
3813
- return wl(function() {
3812
+ function _l(t, e, n) {
3813
+ return xl(function() {
3814
3814
  return t() ? e : n;
3815
3815
  });
3816
3816
  }
3817
- function _l(t, e, n) {
3818
- n === void 0 && (n = qs);
3817
+ function $l(t, e, n) {
3818
+ n === void 0 && (n = Ys);
3819
3819
  var r = -1;
3820
3820
  return e != null && (Ur(e) ? n = e : r = e), new F(function(i) {
3821
- var a = ol(t) ? +t - n.now() : t;
3821
+ var a = ul(t) ? +t - n.now() : t;
3822
3822
  a < 0 && (a = 0);
3823
3823
  var o = 0;
3824
3824
  return n.schedule(function() {
@@ -3826,15 +3826,15 @@ function _l(t, e, n) {
3826
3826
  }, a);
3827
3827
  });
3828
3828
  }
3829
- function $l() {
3829
+ function Dl() {
3830
3830
  for (var t = [], e = 0; e < arguments.length; e++)
3831
3831
  t[e] = arguments[e];
3832
3832
  var n = $t(t), r = Hr(t, 1 / 0), i = t;
3833
3833
  return i.length ? i.length === 1 ? U(i[0]) : rn(r)(Dt(i, n)) : en;
3834
3834
  }
3835
- var Dl = Array.isArray;
3836
- function Al(t) {
3837
- return t.length === 1 && Dl(t[0]) ? t[0] : t;
3835
+ var Al = Array.isArray;
3836
+ function Sl(t) {
3837
+ return t.length === 1 && Al(t[0]) ? t[0] : t;
3838
3838
  }
3839
3839
  function Vn(t, e) {
3840
3840
  return k(function(n, r) {
@@ -3852,7 +3852,7 @@ function ai(t) {
3852
3852
  })), i && (r.unsubscribe(), r = null, a.subscribe(n));
3853
3853
  });
3854
3854
  }
3855
- function Sl(t, e) {
3855
+ function Ml(t, e) {
3856
3856
  return e === void 0 && (e = tn), k(function(n, r) {
3857
3857
  var i = null, a = null, o = null, u = function() {
3858
3858
  if (i) {
@@ -3878,7 +3878,7 @@ function Sl(t, e) {
3878
3878
  }));
3879
3879
  });
3880
3880
  }
3881
- function Ml(t) {
3881
+ function Cl(t) {
3882
3882
  return k(function(e, n) {
3883
3883
  var r = !1;
3884
3884
  e.subscribe(N(n, function(i) {
@@ -3888,7 +3888,7 @@ function Ml(t) {
3888
3888
  }));
3889
3889
  });
3890
3890
  }
3891
- function Cl(t) {
3891
+ function Pl(t) {
3892
3892
  return t <= 0 ? function() {
3893
3893
  return en;
3894
3894
  } : k(function(e, n) {
@@ -3899,7 +3899,7 @@ function Cl(t) {
3899
3899
  });
3900
3900
  }
3901
3901
  function W(t, e) {
3902
- return e === void 0 && (e = _t), t = t ?? Pl, k(function(n, r) {
3902
+ return e === void 0 && (e = _t), t = t ?? Fl, k(function(n, r) {
3903
3903
  var i, a = !0;
3904
3904
  n.subscribe(N(r, function(o) {
3905
3905
  var u = e(o);
@@ -3907,11 +3907,11 @@ function W(t, e) {
3907
3907
  }));
3908
3908
  });
3909
3909
  }
3910
- function Pl(t, e) {
3910
+ function Fl(t, e) {
3911
3911
  return t === e;
3912
3912
  }
3913
- function Fl(t) {
3914
- return t === void 0 && (t = El), k(function(e, n) {
3913
+ function El(t) {
3914
+ return t === void 0 && (t = Ll), k(function(e, n) {
3915
3915
  var r = !1;
3916
3916
  e.subscribe(N(n, function(i) {
3917
3917
  r = !0, n.next(i);
@@ -3920,29 +3920,29 @@ function Fl(t) {
3920
3920
  }));
3921
3921
  });
3922
3922
  }
3923
- function El() {
3923
+ function Ll() {
3924
3924
  return new ri();
3925
3925
  }
3926
- function Ll(t, e) {
3926
+ function Tl(t, e) {
3927
3927
  var n = arguments.length >= 2;
3928
3928
  return function(r) {
3929
- return r.pipe(_t, Cl(1), n ? Ml(e) : Fl(function() {
3929
+ return r.pipe(_t, Pl(1), n ? Cl(e) : El(function() {
3930
3930
  return new ri();
3931
3931
  }));
3932
3932
  };
3933
3933
  }
3934
- function Tl() {
3934
+ function Ol() {
3935
3935
  for (var t = [], e = 0; e < arguments.length; e++)
3936
3936
  t[e] = arguments[e];
3937
3937
  var n = $t(t), r = Hr(t, 1 / 0);
3938
- return t = Al(t), k(function(i, a) {
3938
+ return t = Sl(t), k(function(i, a) {
3939
3939
  rn(r)(Dt(ot([i], at(t)), n)).subscribe(a);
3940
3940
  });
3941
3941
  }
3942
- function Ol() {
3942
+ function Nl() {
3943
3943
  for (var t = [], e = 0; e < arguments.length; e++)
3944
3944
  t[e] = arguments[e];
3945
- return Tl.apply(void 0, ot([], at(t)));
3945
+ return Ol.apply(void 0, ot([], at(t)));
3946
3946
  }
3947
3947
  function Ie(t) {
3948
3948
  t === void 0 && (t = {});
@@ -3997,7 +3997,7 @@ function g(t, e, n) {
3997
3997
  var r, i = !1;
3998
3998
  return r = t, Ie({
3999
3999
  connector: function() {
4000
- return new zs(r, e, n);
4000
+ return new Us(r, e, n);
4001
4001
  },
4002
4002
  resetOnError: !0,
4003
4003
  resetOnComplete: !1,
@@ -4037,7 +4037,7 @@ function M(t) {
4037
4037
  }, Ne)), !n.closed && e.subscribe(n);
4038
4038
  });
4039
4039
  }
4040
- function Nl(t, e) {
4040
+ function kl(t, e) {
4041
4041
  return k(function(n, r) {
4042
4042
  var i = e ?? {}, a = i.leading, o = a === void 0 ? !0 : a, u = i.trailing, l = u === void 0 ? !1 : u, s = !1, f = null, c = null, h = !1, d = function() {
4043
4043
  c == null || c.unsubscribe(), c = null, l && (b(), h && r.complete());
@@ -4059,10 +4059,10 @@ function Nl(t, e) {
4059
4059
  }));
4060
4060
  });
4061
4061
  }
4062
- function kl(t, e, n) {
4062
+ function Il(t, e, n) {
4063
4063
  e === void 0 && (e = tn);
4064
- var r = _l(t, e);
4065
- return Nl(function() {
4064
+ var r = $l(t, e);
4065
+ return kl(function() {
4066
4066
  return r;
4067
4067
  }, n);
4068
4068
  }
@@ -4117,7 +4117,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4117
4117
  return h == null ? [] : c.filter((d) => d.categoryLabel === h);
4118
4118
  }
4119
4119
  return new F((c) => (R({
4120
- target: $l(a, o, i),
4120
+ target: Dl(a, o, i),
4121
4121
  datumList: t,
4122
4122
  fullChartParams: e
4123
4123
  }).pipe(
@@ -4145,7 +4145,7 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4145
4145
  i.push(r), n.set(r.groupLabel, i);
4146
4146
  }), n;
4147
4147
  })
4148
- ), Il = ({ datumList$: t }) => t.pipe(
4148
+ ), Rl = ({ datumList$: t }) => t.pipe(
4149
4149
  D((e) => {
4150
4150
  const n = /* @__PURE__ */ new Map();
4151
4151
  return e.filter((r) => r.categoryLabel != null).forEach((r) => {
@@ -4167,15 +4167,15 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4167
4167
  return e;
4168
4168
  return n || 14;
4169
4169
  })
4170
- ), Rl = ({ fullDataFormatter$: t }) => t.pipe(
4170
+ ), Gl = ({ fullDataFormatter$: t }) => t.pipe(
4171
4171
  D((e) => e.separateSeries),
4172
4172
  W()
4173
- ), Gl = ({ computedData$: t }) => t.pipe(
4173
+ ), Vl = ({ computedData$: t }) => t.pipe(
4174
4174
  D((e) => e.filter((n) => n.length).map((n) => n[0].seriesLabel)),
4175
4175
  W((e, n) => JSON.stringify(e).length === JSON.stringify(n).length)
4176
4176
  ), zn = ({ computedData$: t }) => t.pipe(
4177
4177
  D((e) => e.map((n) => n.filter((r) => r.visible != !1)))
4178
- ), Vl = ({ computedData$: t, fullDataFormatter$: e }) => R({
4178
+ ), zl = ({ computedData$: t, fullDataFormatter$: e }) => R({
4179
4179
  computedData: t,
4180
4180
  fullDataFormatter: e
4181
4181
  }).pipe(
@@ -4189,28 +4189,28 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4189
4189
  r.flat().sort((i, a) => i.seq - a.seq)
4190
4190
  ];
4191
4191
  })
4192
- ), zl = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
4192
+ ), Ul = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
4193
4193
  computedData: t,
4194
4194
  fullDataFormatter: e,
4195
4195
  layout: n
4196
4196
  }).pipe(
4197
4197
  T(async (i) => i),
4198
4198
  D((i) => i.fullDataFormatter.separateSeries ? Ln(i.layout, i.fullDataFormatter.container, i.computedData.length) : Ln(i.layout, i.fullDataFormatter.container, 1))
4199
- ), Ul = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => R({
4199
+ ), Hl = ({ seriesContainerPosition$: t, seriesLabels$: e, separateSeries$: n }) => R({
4200
4200
  seriesContainerPosition: t,
4201
4201
  seriesLabels: e,
4202
4202
  separateSeries: n
4203
4203
  }).pipe(
4204
4204
  T(async (r) => r),
4205
4205
  D((r) => r.separateSeries ? new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[a] ?? r.seriesContainerPosition[0]])) : new Map(r.seriesLabels.map((i, a) => [i, r.seriesContainerPosition[0]])))
4206
- ), Hl = ({ subject: t, observer: e }) => {
4206
+ ), Xl = ({ subject: t, observer: e }) => {
4207
4207
  const n = ge(e.fullChartParams$).pipe(
4208
4208
  g(1)
4209
- ), r = Rl({
4209
+ ), r = Gl({
4210
4210
  fullDataFormatter$: e.fullDataFormatter$
4211
4211
  }), i = zn({
4212
4212
  computedData$: e.computedData$
4213
- }), a = Vl({
4213
+ }), a = zl({
4214
4214
  computedData$: e.computedData$,
4215
4215
  fullDataFormatter$: e.fullDataFormatter$
4216
4216
  }).pipe(
@@ -4227,19 +4227,19 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4227
4227
  event$: t.event$
4228
4228
  }).pipe(
4229
4229
  g(1)
4230
- ), s = Gl({
4230
+ ), s = Vl({
4231
4231
  computedData$: e.computedData$
4232
4232
  }), f = an({
4233
4233
  datumList$: u
4234
4234
  }).pipe(
4235
4235
  g(1)
4236
- ), c = zl({
4236
+ ), c = Ul({
4237
4237
  computedData$: e.computedData$,
4238
4238
  fullDataFormatter$: e.fullDataFormatter$,
4239
4239
  layout$: e.layout$
4240
4240
  }).pipe(
4241
4241
  g(1)
4242
- ), h = Ul({
4242
+ ), h = Hl({
4243
4243
  seriesContainerPosition$: c,
4244
4244
  seriesLabels$: s,
4245
4245
  separateSeries$: r
@@ -4274,12 +4274,12 @@ const me = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4274
4274
  return Er().domain([c, h]).range([0, n]);
4275
4275
  }, mc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4276
4276
  let r = [0, e];
4277
- return ds().domain(t).range(r).padding(n);
4277
+ return ps().domain(t).range(r).padding(n);
4278
4278
  }, gc = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4279
4279
  let a = t.map((o, u) => u);
4280
4280
  return r && a.reverse(), Lr().domain([-0, e + 0]).range(a);
4281
4281
  };
4282
- function Xl(t) {
4282
+ function ql(t) {
4283
4283
  return new F((e) => {
4284
4284
  const n = new ResizeObserver((r) => {
4285
4285
  const i = r[0];
@@ -4297,7 +4297,7 @@ function Un(t, e, n) {
4297
4297
  return ct(i, o);
4298
4298
  })), r;
4299
4299
  }
4300
- const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4300
+ const Yl = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4301
4301
  const r = new P(), i = t.type;
4302
4302
  return function(o, u) {
4303
4303
  Vt(o).selectAll("svg").remove();
@@ -4314,7 +4314,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4314
4314
  chartParams$: new P(),
4315
4315
  event$: new P()
4316
4316
  }, h = ((y) => {
4317
- const S = y || vi, C = S.preset ? S.preset : {};
4317
+ const S = y || bi, C = S.preset ? S.preset : {};
4318
4318
  return {
4319
4319
  name: C.name ?? "",
4320
4320
  description: C.description ?? "",
@@ -4339,22 +4339,22 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4339
4339
  );
4340
4340
  b.pipe(
4341
4341
  M(r),
4342
- Ll()
4342
+ Tl()
4343
4343
  ).subscribe((y) => {
4344
4344
  s.attr("transform", `translate(${y.left}, ${y.top})`);
4345
4345
  }), b.subscribe((y) => {
4346
4346
  s.transition().attr("transform", `translate(${y.left}, ${y.top})`);
4347
4347
  });
4348
- const w = Xl(o).pipe(
4348
+ const w = ql(o).pipe(
4349
4349
  M(r),
4350
4350
  Ie()
4351
4351
  ), x = Ft().pipe(
4352
- Ol(
4352
+ Nl(
4353
4353
  w.pipe(
4354
- Sl(250)
4354
+ Ml(250)
4355
4355
  ),
4356
4356
  w.pipe(
4357
- kl(250)
4357
+ Il(250)
4358
4358
  )
4359
4359
  ),
4360
4360
  W((y, S) => JSON.stringify(y) === JSON.stringify(S)),
@@ -4365,7 +4365,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4365
4365
  }).pipe(
4366
4366
  M(r),
4367
4367
  T(async (y) => {
4368
- const S = y.rootSize.width > 0 ? y.rootSize.width : bi, C = y.rootSize.height > 0 ? y.rootSize.height : wi;
4368
+ const S = y.rootSize.width > 0 ? y.rootSize.width : wi, C = y.rootSize.height > 0 ? y.rootSize.height : xi;
4369
4369
  return {
4370
4370
  width: S - y.mergedPadding.left - y.mergedPadding.right,
4371
4371
  height: C - y.mergedPadding.top - y.mergedPadding.bottom,
@@ -4442,7 +4442,7 @@ const ql = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4442
4442
  class At {
4443
4443
  constructor({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r }, i, a) {
4444
4444
  this.data$ = new P(), this.dataFormatter$ = new P(), this.plugins$ = new P(), this.chartParams$ = new P(), this.event$ = new P();
4445
- const u = ql({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, a);
4445
+ const u = Yl({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, a);
4446
4446
  this.selection = u.selection, this.destroy = u.destroy, this.data$ = u.data$, this.dataFormatter$ = u.dataFormatter$, this.plugins$ = u.plugins$, this.chartParams$ = u.chartParams$, this.event$ = u.event$;
4447
4447
  }
4448
4448
  }
@@ -4451,8 +4451,8 @@ class yc extends At {
4451
4451
  super(
4452
4452
  {
4453
4453
  defaultDataFormatter: Xn,
4454
- computedDataFn: Ms,
4455
- contextObserverFn: Hl
4454
+ computedDataFn: Cs,
4455
+ contextObserverFn: Xl
4456
4456
  },
4457
4457
  e,
4458
4458
  n
@@ -4486,12 +4486,12 @@ function ui(t, e) {
4486
4486
  data: l.data ?? {},
4487
4487
  value: l.value
4488
4488
  }));
4489
- return Ss(e.seriesDirection, i);
4489
+ return Ms(e.seriesDirection, i);
4490
4490
  } catch {
4491
4491
  return [];
4492
4492
  }
4493
4493
  }
4494
- const Yl = (t) => {
4494
+ const Bl = (t) => {
4495
4495
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
4496
4496
  if (!e.length)
4497
4497
  return [];
@@ -4501,7 +4501,7 @@ const Yl = (t) => {
4501
4501
  transposedDataGrid: a,
4502
4502
  dataFormatterGrid: n.grid,
4503
4503
  chartType: "grid"
4504
- }), u = Ds({
4504
+ }), u = As({
4505
4505
  transposedDataGrid: a,
4506
4506
  dataFormatterGrid: n.grid,
4507
4507
  chartType: "grid"
@@ -4689,13 +4689,10 @@ const Yl = (t) => {
4689
4689
  ), di = ({ fullDataFormatter$: t, layout$: e }) => {
4690
4690
  const n = new P();
4691
4691
  function r({ xAxisPosition: i, yAxisPosition: a, width: o, height: u }) {
4692
- if ((i === "bottom" || i === "top") && (a === "left" || a === "right"))
4693
- return { width: o, height: u };
4694
- if ((i === "left" || i === "right") && (a === "bottom" || a === "top"))
4695
- return {
4696
- width: u,
4697
- height: o
4698
- };
4692
+ return (i === "bottom" || i === "top") && (a === "left" || a === "right") ? { width: o, height: u } : (i === "left" || i === "right") && (a === "bottom" || a === "top") ? {
4693
+ width: u,
4694
+ height: o
4695
+ } : { width: o, height: u };
4699
4696
  }
4700
4697
  return new F((i) => {
4701
4698
  R({
@@ -4723,7 +4720,7 @@ const Yl = (t) => {
4723
4720
  D((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4724
4721
  ), gi = ({ computedLayoutData$: t }) => t.pipe(
4725
4722
  D((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4726
- ), Bl = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
4723
+ ), Wl = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
4727
4724
  computedData: t,
4728
4725
  fullDataFormatter: e,
4729
4726
  layout: n
@@ -4754,16 +4751,16 @@ const Yl = (t) => {
4754
4751
  })
4755
4752
  );
4756
4753
  return t.pipe(
4757
- T((r) => xl(() => r, e, n))
4754
+ T((r) => _l(() => r, e, n))
4758
4755
  );
4759
- }, Wl = ({ subject: t, observer: e }) => {
4756
+ }, jl = ({ subject: t, observer: e }) => {
4760
4757
  const n = ge(e.fullChartParams$).pipe(
4761
4758
  g(1)
4762
4759
  ), r = e.fullDataFormatter$.pipe(
4763
4760
  D((_) => _.grid.separateSeries),
4764
4761
  W(),
4765
4762
  g(1)
4766
- ), i = Bl({
4763
+ ), i = Wl({
4767
4764
  computedData$: e.computedData$,
4768
4765
  fullDataFormatter$: e.fullDataFormatter$,
4769
4766
  layout$: e.layout$
@@ -4860,15 +4857,15 @@ class vc extends At {
4860
4857
  super(
4861
4858
  {
4862
4859
  defaultDataFormatter: Yn,
4863
- computedDataFn: Yl,
4864
- contextObserverFn: Wl
4860
+ computedDataFn: Bl,
4861
+ contextObserverFn: jl
4865
4862
  },
4866
4863
  e,
4867
4864
  n
4868
4865
  );
4869
4866
  }
4870
4867
  }
4871
- const jl = (t) => {
4868
+ const Jl = (t) => {
4872
4869
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
4873
4870
  if (!e.length)
4874
4871
  return [];
@@ -4878,7 +4875,7 @@ const jl = (t) => {
4878
4875
  transposedDataGrid: c,
4879
4876
  dataFormatterGrid: o[h],
4880
4877
  chartType: "multiGrid"
4881
- })) : u.map((c, h) => $s({
4878
+ })) : u.map((c, h) => Ds({
4882
4879
  transposedDataGrid: c,
4883
4880
  dataFormatterGrid: o[h],
4884
4881
  chartType: "multiGrid",
@@ -4891,7 +4888,7 @@ const jl = (t) => {
4891
4888
  s.set(c, d), f++;
4892
4889
  }
4893
4890
  }), i = u.map((c, h) => {
4894
- const d = l[h], p = As({
4891
+ const d = l[h], p = Ss({
4895
4892
  transposedDataGrid: c,
4896
4893
  dataFormatterGrid: o[h],
4897
4894
  chartType: "multiGrid",
@@ -4923,7 +4920,7 @@ const jl = (t) => {
4923
4920
  throw Error(a);
4924
4921
  }
4925
4922
  return i;
4926
- }, Jl = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4923
+ }, Kl = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4927
4924
  const a = new P(), o = me({
4928
4925
  datumList$: e.pipe(
4929
4926
  D((l) => l.flat().flat()),
@@ -4933,7 +4930,7 @@ const jl = (t) => {
4933
4930
  event$: i
4934
4931
  }).pipe(
4935
4932
  g(1)
4936
- ), u = Kl({
4933
+ ), u = vi({
4937
4934
  computedData$: e,
4938
4935
  fullDataFormatter$: t,
4939
4936
  layout$: n
@@ -5069,7 +5066,7 @@ const jl = (t) => {
5069
5066
  });
5070
5067
  })
5071
5068
  );
5072
- }, Kl = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
5069
+ }, vi = ({ computedData$: t, fullDataFormatter$: e, layout$: n }) => R({
5073
5070
  computedData: t,
5074
5071
  fullDataFormatter: e,
5075
5072
  layout: n
@@ -5081,18 +5078,19 @@ const jl = (t) => {
5081
5078
  return s + d;
5082
5079
  }, 0) || 1, o = Te(r.layout, r.fullDataFormatter.container, a);
5083
5080
  let u = 0;
5084
- return r.computedData.map((s, f) => {
5081
+ const l = r.computedData.map((s, f) => {
5085
5082
  const c = r.fullDataFormatter.gridList[f] ?? i, h = s.map((d, p) => {
5086
5083
  const m = o[u];
5087
5084
  return c.separateSeries && (u += 1), m;
5088
5085
  });
5089
5086
  return !c.separateSeries && r.fullDataFormatter.separateGrid && (u += 1), h;
5090
5087
  });
5088
+ return console.log("gridContainerPositionArr", l), l;
5091
5089
  })
5092
5090
  ), Zl = ({ subject: t, observer: e }) => {
5093
5091
  const n = ge(e.fullChartParams$).pipe(
5094
5092
  g(1)
5095
- ), r = Jl({
5093
+ ), r = Kl({
5096
5094
  fullDataFormatter$: e.fullDataFormatter$,
5097
5095
  computedData$: e.computedData$,
5098
5096
  layout$: e.layout$,
@@ -5100,7 +5098,11 @@ const jl = (t) => {
5100
5098
  event$: t.event$
5101
5099
  }).pipe(
5102
5100
  g(1)
5103
- );
5101
+ ), i = vi({
5102
+ computedData$: e.computedData$,
5103
+ fullDataFormatter$: e.fullDataFormatter$,
5104
+ layout$: e.layout$
5105
+ });
5104
5106
  return {
5105
5107
  fullParams$: e.fullParams$,
5106
5108
  fullChartParams$: e.fullChartParams$,
@@ -5108,6 +5110,7 @@ const jl = (t) => {
5108
5110
  computedData$: e.computedData$,
5109
5111
  layout$: e.layout$,
5110
5112
  textSizePx$: n,
5113
+ multiGridContainerPosition$: i,
5111
5114
  multiGridEachDetail$: r
5112
5115
  // multiGridContainer$
5113
5116
  };
@@ -5117,7 +5120,7 @@ class bc extends At {
5117
5120
  super(
5118
5121
  {
5119
5122
  defaultDataFormatter: Bn,
5120
- computedDataFn: jl,
5123
+ computedDataFn: Jl,
5121
5124
  contextObserverFn: Zl
5122
5125
  },
5123
5126
  e,
@@ -5459,7 +5462,7 @@ const rc = (t) => {
5459
5462
  fullDataFormatter$: e.fullDataFormatter$
5460
5463
  }).pipe(
5461
5464
  g(1)
5462
- ), o = Il({
5465
+ ), o = Rl({
5463
5466
  datumList$: r
5464
5467
  }).pipe(
5465
5468
  g(1)
@@ -5543,17 +5546,17 @@ export {
5543
5546
  _c as TreeChart,
5544
5547
  Te as calcGridContainerLayout,
5545
5548
  Ln as calcSeriesContainerLayout,
5546
- Il as categoryDataMapObservable,
5549
+ Rl as categoryDataMapObservable,
5547
5550
  xt as createAxisLinearScale,
5548
5551
  mc as createAxisPointScale,
5549
5552
  gc as createAxisQuantizeScale,
5550
5553
  de as createDefaultDatumId,
5551
5554
  Tr as createDefaultGroupLabel,
5552
5555
  je as createDefaultSeriesLabel,
5553
- Ds as createGridGroupLabels,
5556
+ As as createGridGroupLabels,
5554
5557
  Or as createGridSeriesLabels,
5555
- As as createMultiGridGroupLabels,
5556
- $s as createMultiGridSeriesLabels,
5558
+ Ss as createMultiGridGroupLabels,
5559
+ Ds as createMultiGridSeriesLabels,
5557
5560
  Ac as defineGridPlugin,
5558
5561
  Sc as defineMultiGridPlugin,
5559
5562
  Mc as defineMultiValuePlugin,
@@ -5577,5 +5580,5 @@ export {
5577
5580
  pe as seriesColorPredicate,
5578
5581
  an as seriesDataMapObservable,
5579
5582
  ge as textSizePxObservable,
5580
- Ss as transposeData
5583
+ Ms as transposeData
5581
5584
  };