@orbcharts/core 3.0.0-alpha.28 → 3.0.0-alpha.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/orbcharts-core.es.js +1047 -1044
  2. package/dist/orbcharts-core.umd.js +2 -2
  3. package/dist/src/defaults.d.ts +2 -3
  4. package/dist/src/grid/computeGridData.d.ts +3 -0
  5. package/dist/src/types/ComputedData.d.ts +1 -1
  6. package/dist/src/types/ComputedDataGrid.d.ts +2 -0
  7. package/dist/src/types/Data.d.ts +1 -1
  8. package/dist/src/types/DataFormatter.d.ts +0 -2
  9. package/dist/src/types/DataFormatterGrid.d.ts +2 -4
  10. package/dist/src/types/DataFormatterMultiGrid.d.ts +2 -1
  11. package/dist/src/types/DataFormatterMultiValue.d.ts +2 -1
  12. package/dist/src/types/DataFormatterRelationship.d.ts +2 -1
  13. package/dist/src/types/DataFormatterSeries.d.ts +2 -3
  14. package/dist/src/types/DataFormatterTree.d.ts +2 -1
  15. package/dist/src/utils/orbchartsUtils.d.ts +18 -5
  16. package/package.json +1 -1
  17. package/src/defaults.ts +30 -44
  18. package/src/grid/computeGridData.ts +31 -23
  19. package/src/multiGrid/computeMultiGridData.ts +37 -27
  20. package/src/multiValue/computeMultiValueData.ts +6 -3
  21. package/src/relationship/computeRelationshipData.ts +4 -2
  22. package/src/series/computeSeriesData.ts +7 -8
  23. package/src/tree/computeTreeData.ts +5 -3
  24. package/src/types/ComputedData.ts +1 -1
  25. package/src/types/ComputedDataGrid.ts +2 -0
  26. package/src/types/Data.ts +1 -1
  27. package/src/types/DataFormatter.ts +0 -4
  28. package/src/types/DataFormatterGrid.ts +4 -3
  29. package/src/types/DataFormatterMultiGrid.ts +6 -5
  30. package/src/types/DataFormatterMultiValue.ts +2 -1
  31. package/src/types/DataFormatterRelationship.ts +2 -1
  32. package/src/types/DataFormatterSeries.ts +4 -3
  33. package/src/types/DataFormatterTree.ts +2 -1
  34. package/src/utils/orbchartsUtils.ts +64 -11
@@ -1,13 +1,13 @@
1
- const Kr = {
1
+ const Zr = {
2
2
  preset: {}
3
3
  // 預設為空
4
- }, On = {
4
+ }, kn = {
5
5
  top: 60,
6
6
  right: 60,
7
7
  bottom: 60,
8
8
  left: 60
9
- }, en = {
10
- padding: On,
9
+ }, tn = {
10
+ padding: kn,
11
11
  highlightTarget: "datum",
12
12
  // highlightDefault: HIGHLIGHT_DEFAULT,
13
13
  highlightDefault: null,
@@ -34,33 +34,20 @@ const Kr = {
34
34
  },
35
35
  transitionDuration: 800,
36
36
  transitionEase: "easeCubic"
37
- }, Zr = 800, Jr = 500, _t = {
38
- // ...GLOBAL_DEFAULT,
39
- type: "",
40
- // 後面需複蓋掉否則會有問題
41
- visibleFilter: (t, e, n, r) => !0,
42
- tooltipContentFormat: (t, e, n, r) => {
43
- if (typeof t == "object") {
44
- if (t.tooltipContent)
45
- return t.tooltipContent;
46
- if (t.value)
47
- return String(t.value);
48
- } else return typeof t == "number" ? String(t) : "";
49
- }
50
- }, K = {
37
+ }, Jr = 800, Qr = 500, K = {
51
38
  position: "left",
52
39
  scaleDomain: [0, "auto"],
53
40
  scaleRange: [0, 0.9],
54
41
  label: ""
55
- }, Qr = {
42
+ }, ti = {
56
43
  position: "bottom",
57
44
  scaleDomain: [0, "auto"],
58
45
  scalePadding: 0.5,
59
46
  label: ""
60
- }, ti = {
61
- ..._t,
47
+ }, ei = {
62
48
  // ...DATA_FORMATTER_WITH_VALUE,
63
49
  type: "series",
50
+ visibleFilter: (t, e, n, r) => !0,
64
51
  unitLabel: "",
65
52
  seriesLabels: [],
66
53
  // mapSeries: (datum, rowIndex, columnIndex, { data, dataFormatter }) => {
@@ -69,12 +56,18 @@ const Kr = {
69
56
  // : rowIndex
70
57
  // return dataFormatter.seriesLabels[seriesIndex]
71
58
  // },
72
- colorsPredicate: (t, e, n, { chartParams: r }) => e < r.colors[r.colorScheme].series.length ? r.colors[r.colorScheme].series[e] : r.colors[r.colorScheme].series[e % r.colors[r.colorScheme].series.length],
59
+ // colorsPredicate: (datum, rowIndex, columnIndex, { chartParams }) => {
60
+ // return rowIndex < chartParams.colors[chartParams.colorScheme].series.length
61
+ // ? chartParams.colors[chartParams.colorScheme].series[rowIndex]
62
+ // : chartParams.colors[chartParams.colorScheme].series[
63
+ // rowIndex % chartParams.colors[chartParams.colorScheme].series.length
64
+ // ]
65
+ // },
73
66
  sort: null
74
- }, ye = {
75
- ..._t,
67
+ }, In = {
76
68
  // ...DATA_FORMATTER_WITH_VALUE,
77
69
  type: "grid",
70
+ visibleFilter: (t, e, n, r) => !0,
78
71
  grid: {
79
72
  // rowUnitLabel: '',
80
73
  rowLabels: [],
@@ -85,43 +78,44 @@ const Kr = {
85
78
  seriesType: "row"
86
79
  },
87
80
  valueAxis: { ...K },
88
- groupAxis: { ...Qr },
81
+ groupAxis: { ...ti }
89
82
  // visibleGroupRange: null,
90
- colorsPredicate: (t, e, n, { chartParams: r, dataFormatter: i }) => {
91
- const o = i.grid.seriesType === "row" ? e : n;
92
- return r.colors[r.colorScheme].series[o];
93
- }
94
- }, ei = {
95
- ..._t,
83
+ // colorsPredicate: (datum, rowIndex, columnIndex, { chartParams, dataFormatter }) => {
84
+ // const seriesIndex = dataFormatter.grid.seriesType === 'row' ? rowIndex : columnIndex
85
+ // return chartParams.colors[chartParams.colorScheme].series[seriesIndex]
86
+ // },
87
+ }, On = {
96
88
  type: "multiGrid",
89
+ visibleFilter: (t, e, n, r) => !0,
97
90
  multiGrid: [
98
91
  {
99
- ...ye
100
- },
101
- // @Q@ 暫時性的邏輯,之後colorsPredicate移除掉後,這邊也要移除(但colors使用的seriesIndex要接續前一組grid)
102
- {
103
- ...ye,
104
- colorsPredicate: (t, e, n, { chartParams: r, dataFormatter: i }) => {
105
- const o = i.grid.seriesType === "row" ? e : n, a = r.colors[r.colorScheme].series.length - 1 - o;
106
- return r.colors[r.colorScheme].series[a];
107
- }
92
+ ...In
108
93
  }
94
+ // // @Q@ 暫時性的邏輯,之後colorsPredicate移除掉後,這邊也要移除(但colors使用的seriesIndex要接續前一組grid)
95
+ // {
96
+ // ...DATA_FORMATTER_GRID_DEFAULT,
97
+ // colorsPredicate: (datum, rowIndex, columnIndex, { data, chartParams, dataFormatter }) => {
98
+ // const seriesIndex = dataFormatter.grid.seriesType === 'row' ? rowIndex : columnIndex
99
+ // const reverseIndex = chartParams.colors[chartParams.colorScheme].series.length - 1 - seriesIndex
100
+ // return chartParams.colors[chartParams.colorScheme].series[reverseIndex]
101
+ // },
102
+ // }
109
103
  ]
110
104
  // visibleGroupRange: null,
111
105
  }, ni = {
112
- ..._t,
113
106
  type: "multiValue",
107
+ visibleFilter: (t, e, n, r) => !0,
114
108
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
115
109
  multiValue: [],
116
110
  xAxis: { ...K },
117
111
  yAxis: { ...K }
118
112
  }, ri = {
119
- ..._t,
120
- type: "tree"
113
+ type: "tree",
114
+ visibleFilter: (t, e, n, r) => !0
121
115
  // labelFormat: (datum: any) => (datum && datum.label) ?? '',
122
116
  }, ii = {
123
- ..._t,
124
- type: "relationship"
117
+ type: "relationship",
118
+ visibleFilter: (t, e, n, r) => !0
125
119
  // node: {
126
120
  // // labelFormat: (node: any) => (node && node.label) ?? '',
127
121
  // descriptionFormat: (node: any) => (node && node.label) ?? ''
@@ -131,15 +125,15 @@ const Kr = {
131
125
  // descriptionFormat: (edge: any) => (edge && edge.label) ?? ''
132
126
  // },
133
127
  };
134
- function Wt(t, e) {
128
+ function Yt(t, e) {
135
129
  return t == null || e == null ? NaN : t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN;
136
130
  }
137
131
  function oi(t, e) {
138
132
  return t == null || e == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
139
133
  }
140
- function In(t) {
134
+ function Rn(t) {
141
135
  let e, n, r;
142
- t.length !== 2 ? (e = Wt, n = (u, s) => Wt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Wt || t === oi ? t : ai, n = t, r = t);
136
+ t.length !== 2 ? (e = Yt, n = (u, s) => Yt(t(u), s), r = (u, s) => t(u) - s) : (e = t === Yt || t === oi ? t : ai, n = t, r = t);
143
137
  function i(u, s, l = 0, f = u.length) {
144
138
  if (l < f) {
145
139
  if (e(s, s) !== 0) return f;
@@ -172,17 +166,17 @@ function ai() {
172
166
  function ui(t) {
173
167
  return t === null ? NaN : +t;
174
168
  }
175
- const si = In(Wt), Rn = si.right;
176
- In(ui).center;
177
- class nn extends Map {
169
+ const si = Rn(Yt), Ln = si.right;
170
+ Rn(ui).center;
171
+ class en extends Map {
178
172
  constructor(e, n = fi) {
179
173
  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);
180
174
  }
181
175
  get(e) {
182
- return super.get(rn(this, e));
176
+ return super.get(nn(this, e));
183
177
  }
184
178
  has(e) {
185
- return super.has(rn(this, e));
179
+ return super.has(nn(this, e));
186
180
  }
187
181
  set(e, n) {
188
182
  return super.set(li(this, e), n);
@@ -191,7 +185,7 @@ class nn extends Map {
191
185
  return super.delete(ci(this, e));
192
186
  }
193
187
  }
194
- function rn({ _intern: t, _key: e }, n) {
188
+ function nn({ _intern: t, _key: e }, n) {
195
189
  const r = e(n);
196
190
  return t.has(r) ? t.get(r) : n;
197
191
  }
@@ -207,15 +201,15 @@ function fi(t) {
207
201
  return t !== null && typeof t == "object" ? t.valueOf() : t;
208
202
  }
209
203
  const hi = Math.sqrt(50), di = Math.sqrt(10), pi = Math.sqrt(2);
210
- function Jt(t, e, n) {
204
+ function Zt(t, e, n) {
211
205
  const r = (e - t) / Math.max(0, n), i = Math.floor(Math.log10(r)), o = r / Math.pow(10, i), a = o >= hi ? 10 : o >= di ? 5 : o >= pi ? 2 : 1;
212
206
  let u, s, l;
213
- return i < 0 ? (l = Math.pow(10, -i) / a, u = Math.round(t * l), s = Math.round(e * l), u / l < t && ++u, s / l > e && --s, l = -l) : (l = Math.pow(10, i) * a, u = Math.round(t / l), s = Math.round(e / l), u * l < t && ++u, s * l > e && --s), s < u && 0.5 <= n && n < 2 ? Jt(t, e, n * 2) : [u, s, l];
207
+ return i < 0 ? (l = Math.pow(10, -i) / a, u = Math.round(t * l), s = Math.round(e * l), u / l < t && ++u, s / l > e && --s, l = -l) : (l = Math.pow(10, i) * a, u = Math.round(t / l), s = Math.round(e / l), u * l < t && ++u, s * l > e && --s), s < u && 0.5 <= n && n < 2 ? Zt(t, e, n * 2) : [u, s, l];
214
208
  }
215
209
  function mi(t, e, n) {
216
210
  if (e = +e, t = +t, n = +n, !(n > 0)) return [];
217
211
  if (t === e) return [t];
218
- const r = e < t, [i, o, a] = r ? Jt(e, t, n) : Jt(t, e, n);
212
+ const r = e < t, [i, o, a] = r ? Zt(e, t, n) : Zt(t, e, n);
219
213
  if (!(o >= i)) return [];
220
214
  const u = o - i + 1, s = new Array(u);
221
215
  if (r)
@@ -225,12 +219,12 @@ function mi(t, e, n) {
225
219
  else for (let l = 0; l < u; ++l) s[l] = (i + l) * a;
226
220
  return s;
227
221
  }
228
- function we(t, e, n) {
229
- return e = +e, t = +t, n = +n, Jt(t, e, n)[2];
222
+ function ve(t, e, n) {
223
+ return e = +e, t = +t, n = +n, Zt(t, e, n)[2];
230
224
  }
231
225
  function gi(t, e, n) {
232
226
  e = +e, t = +t, n = +n;
233
- const r = e < t, i = r ? we(e, t, n) : we(t, e, n);
227
+ const r = e < t, i = r ? ve(e, t, n) : ve(t, e, n);
234
228
  return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
235
229
  }
236
230
  function vi(t, e, n) {
@@ -241,7 +235,7 @@ function vi(t, e, n) {
241
235
  }
242
236
  var yi = { value: () => {
243
237
  } };
244
- function Ln() {
238
+ function Vn() {
245
239
  for (var t = 0, e = arguments.length, n = {}, r; t < e; ++t) {
246
240
  if (!(r = arguments[t] + "") || r in n || /[\s.]/.test(r)) throw new Error("illegal type: " + r);
247
241
  n[r] = [];
@@ -258,7 +252,7 @@ function wi(t, e) {
258
252
  return { type: n, name: r };
259
253
  });
260
254
  }
261
- Bt.prototype = Ln.prototype = {
255
+ Bt.prototype = Vn.prototype = {
262
256
  constructor: Bt,
263
257
  on: function(t, e) {
264
258
  var n = this._, r = wi(t + "", n), i, o = -1, a = r.length;
@@ -268,8 +262,8 @@ Bt.prototype = Ln.prototype = {
268
262
  }
269
263
  if (e != null && typeof e != "function") throw new Error("invalid callback: " + e);
270
264
  for (; ++o < a; )
271
- if (i = (t = r[o]).type) n[i] = on(n[i], t.name, e);
272
- else if (e == null) for (i in n) n[i] = on(n[i], t.name, null);
265
+ if (i = (t = r[o]).type) n[i] = rn(n[i], t.name, e);
266
+ else if (e == null) for (i in n) n[i] = rn(n[i], t.name, null);
273
267
  return this;
274
268
  },
275
269
  copy: function() {
@@ -292,7 +286,7 @@ function xi(t, e) {
292
286
  if ((i = t[n]).name === e)
293
287
  return i.value;
294
288
  }
295
- function on(t, e, n) {
289
+ function rn(t, e, n) {
296
290
  for (var r = 0, i = t.length; r < i; ++r)
297
291
  if (t[r].name === e) {
298
292
  t[r] = yi, t = t.slice(0, r).concat(t.slice(r + 1));
@@ -300,22 +294,22 @@ function on(t, e, n) {
300
294
  }
301
295
  return n != null && t.push({ name: e, value: n }), t;
302
296
  }
303
- var xe = "http://www.w3.org/1999/xhtml";
304
- const an = {
297
+ var ye = "http://www.w3.org/1999/xhtml";
298
+ const on = {
305
299
  svg: "http://www.w3.org/2000/svg",
306
- xhtml: xe,
300
+ xhtml: ye,
307
301
  xlink: "http://www.w3.org/1999/xlink",
308
302
  xml: "http://www.w3.org/XML/1998/namespace",
309
303
  xmlns: "http://www.w3.org/2000/xmlns/"
310
304
  };
311
- function le(t) {
305
+ function se(t) {
312
306
  var e = t += "", n = e.indexOf(":");
313
- return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), an.hasOwnProperty(e) ? { space: an[e], local: t } : t;
307
+ return n >= 0 && (e = t.slice(0, n)) !== "xmlns" && (t = t.slice(n + 1)), on.hasOwnProperty(e) ? { space: on[e], local: t } : t;
314
308
  }
315
309
  function bi(t) {
316
310
  return function() {
317
311
  var e = this.ownerDocument, n = this.namespaceURI;
318
- return n === xe && e.documentElement.namespaceURI === xe ? e.createElement(t) : e.createElementNS(n, t);
312
+ return n === ye && e.documentElement.namespaceURI === ye ? e.createElement(t) : e.createElementNS(n, t);
319
313
  };
320
314
  }
321
315
  function _i(t) {
@@ -323,19 +317,19 @@ function _i(t) {
323
317
  return this.ownerDocument.createElementNS(t.space, t.local);
324
318
  };
325
319
  }
326
- function Vn(t) {
327
- var e = le(t);
320
+ function Gn(t) {
321
+ var e = se(t);
328
322
  return (e.local ? _i : bi)(e);
329
323
  }
330
324
  function $i() {
331
325
  }
332
- function Ne(t) {
326
+ function Fe(t) {
333
327
  return t == null ? $i : function() {
334
328
  return this.querySelector(t);
335
329
  };
336
330
  }
337
331
  function Ai(t) {
338
- typeof t != "function" && (t = Ne(t));
332
+ typeof t != "function" && (t = Fe(t));
339
333
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
340
334
  for (var o = e[i], a = o.length, u = r[i] = new Array(a), s, l, f = 0; f < a; ++f)
341
335
  (s = o[f]) && (l = t.call(s, s.__data__, f, o)) && ("__data__" in s && (l.__data__ = s.__data__), u[f] = l);
@@ -347,7 +341,7 @@ function Si(t) {
347
341
  function Di() {
348
342
  return [];
349
343
  }
350
- function Gn(t) {
344
+ function zn(t) {
351
345
  return t == null ? Di : function() {
352
346
  return this.querySelectorAll(t);
353
347
  };
@@ -357,65 +351,65 @@ function Mi(t) {
357
351
  return Si(t.apply(this, arguments));
358
352
  };
359
353
  }
360
- function Ci(t) {
361
- typeof t == "function" ? t = Mi(t) : t = Gn(t);
354
+ function Ei(t) {
355
+ typeof t == "function" ? t = Mi(t) : t = zn(t);
362
356
  for (var e = this._groups, n = e.length, r = [], i = [], o = 0; o < n; ++o)
363
357
  for (var a = e[o], u = a.length, s, l = 0; l < u; ++l)
364
358
  (s = a[l]) && (r.push(t.call(s, s.__data__, l, a)), i.push(s));
365
359
  return new V(r, i);
366
360
  }
367
- function zn(t) {
361
+ function Hn(t) {
368
362
  return function() {
369
363
  return this.matches(t);
370
364
  };
371
365
  }
372
- function Hn(t) {
366
+ function Un(t) {
373
367
  return function(e) {
374
368
  return e.matches(t);
375
369
  };
376
370
  }
377
- var Ei = Array.prototype.find;
371
+ var Ci = Array.prototype.find;
378
372
  function Pi(t) {
379
373
  return function() {
380
- return Ei.call(this.children, t);
374
+ return Ci.call(this.children, t);
381
375
  };
382
376
  }
383
- function Ti() {
377
+ function Fi() {
384
378
  return this.firstElementChild;
385
379
  }
386
- function Fi(t) {
387
- return this.select(t == null ? Ti : Pi(typeof t == "function" ? t : Hn(t)));
380
+ function Ti(t) {
381
+ return this.select(t == null ? Fi : Pi(typeof t == "function" ? t : Un(t)));
388
382
  }
389
383
  var Ni = Array.prototype.filter;
390
384
  function ki() {
391
385
  return Array.from(this.children);
392
386
  }
393
- function Oi(t) {
387
+ function Ii(t) {
394
388
  return function() {
395
389
  return Ni.call(this.children, t);
396
390
  };
397
391
  }
398
- function Ii(t) {
399
- return this.selectAll(t == null ? ki : Oi(typeof t == "function" ? t : Hn(t)));
392
+ function Oi(t) {
393
+ return this.selectAll(t == null ? ki : Ii(typeof t == "function" ? t : Un(t)));
400
394
  }
401
395
  function Ri(t) {
402
- typeof t != "function" && (t = zn(t));
396
+ typeof t != "function" && (t = Hn(t));
403
397
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
404
398
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
405
399
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
406
400
  return new V(r, this._parents);
407
401
  }
408
- function Un(t) {
402
+ function Xn(t) {
409
403
  return new Array(t.length);
410
404
  }
411
405
  function Li() {
412
- return new V(this._enter || this._groups.map(Un), this._parents);
406
+ return new V(this._enter || this._groups.map(Xn), this._parents);
413
407
  }
414
- function Qt(t, e) {
408
+ function Jt(t, e) {
415
409
  this.ownerDocument = t.ownerDocument, this.namespaceURI = t.namespaceURI, this._next = null, this._parent = t, this.__data__ = e;
416
410
  }
417
- Qt.prototype = {
418
- constructor: Qt,
411
+ Jt.prototype = {
412
+ constructor: Jt,
419
413
  appendChild: function(t) {
420
414
  return this._parent.insertBefore(t, this._next);
421
415
  },
@@ -436,7 +430,7 @@ function Vi(t) {
436
430
  }
437
431
  function Gi(t, e, n, r, i, o) {
438
432
  for (var a = 0, u, s = e.length, l = o.length; a < l; ++a)
439
- (u = e[a]) ? (u.__data__ = o[a], r[a] = u) : n[a] = new Qt(t, o[a]);
433
+ (u = e[a]) ? (u.__data__ = o[a], r[a] = u) : n[a] = new Jt(t, o[a]);
440
434
  for (; a < s; ++a)
441
435
  (u = e[a]) && (i[a] = u);
442
436
  }
@@ -445,7 +439,7 @@ function zi(t, e, n, r, i, o, a) {
445
439
  for (u = 0; u < f; ++u)
446
440
  (s = e[u]) && (h[u] = d = a.call(s, s.__data__, u, e) + "", l.has(d) ? i[u] = s : l.set(d, s));
447
441
  for (u = 0; u < c; ++u)
448
- d = a.call(t, o[u], u, o) + "", (s = l.get(d)) ? (r[u] = s, s.__data__ = o[u], l.delete(d)) : n[u] = new Qt(t, o[u]);
442
+ d = a.call(t, o[u], u, o) + "", (s = l.get(d)) ? (r[u] = s, s.__data__ = o[u], l.delete(d)) : n[u] = new Jt(t, o[u]);
449
443
  for (u = 0; u < f; ++u)
450
444
  (s = e[u]) && l.get(h[u]) === s && (i[u] = s);
451
445
  }
@@ -457,12 +451,12 @@ function Ui(t, e) {
457
451
  var n = e ? zi : Gi, r = this._parents, i = this._groups;
458
452
  typeof t != "function" && (t = Vi(t));
459
453
  for (var o = i.length, a = new Array(o), u = new Array(o), s = new Array(o), l = 0; l < o; ++l) {
460
- var f = r[l], c = i[l], h = c.length, d = Xi(t.call(f, f && f.__data__, l, r)), m = d.length, p = u[l] = new Array(m), g = a[l] = new Array(m), _ = s[l] = new Array(h);
461
- n(f, c, p, g, _, d, e);
462
- for (var S = 0, b = 0, D, w; S < m; ++S)
463
- if (D = p[S]) {
464
- for (S >= b && (b = S + 1); !(w = g[b]) && ++b < m; ) ;
465
- D._next = w || null;
454
+ var f = r[l], c = i[l], h = c.length, d = Xi(t.call(f, f && f.__data__, l, r)), m = d.length, p = u[l] = new Array(m), g = a[l] = new Array(m), b = s[l] = new Array(h);
455
+ n(f, c, p, g, b, d, e);
456
+ for (var D = 0, x = 0, M, y; D < m; ++D)
457
+ if (M = p[D]) {
458
+ for (D >= x && (x = D + 1); !(y = g[x]) && ++x < m; ) ;
459
+ M._next = y || null;
466
460
  }
467
461
  }
468
462
  return a = new V(a, r), a._enter = u, a._exit = s, a;
@@ -471,13 +465,13 @@ function Xi(t) {
471
465
  return typeof t == "object" && "length" in t ? t : Array.from(t);
472
466
  }
473
467
  function Yi() {
474
- return new V(this._exit || this._groups.map(Un), this._parents);
468
+ return new V(this._exit || this._groups.map(Xn), this._parents);
475
469
  }
476
- function Wi(t, e, n) {
470
+ function Bi(t, e, n) {
477
471
  var r = this.enter(), i = this, o = this.exit();
478
472
  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 ? o.remove() : n(o), r && i ? r.merge(i).order() : i;
479
473
  }
480
- function Bi(t) {
474
+ function Wi(t) {
481
475
  for (var e = t.selection ? t.selection() : t, n = this._groups, r = e._groups, i = n.length, o = r.length, a = Math.min(i, o), u = new Array(i), s = 0; s < a; ++s)
482
476
  for (var l = n[s], f = r[s], c = l.length, h = u[s] = new Array(c), d, m = 0; m < c; ++m)
483
477
  (d = l[m] || f[m]) && (h[m] = d);
@@ -568,14 +562,14 @@ function so(t, e) {
568
562
  };
569
563
  }
570
564
  function lo(t, e) {
571
- var n = le(t);
565
+ var n = se(t);
572
566
  if (arguments.length < 2) {
573
567
  var r = this.node();
574
568
  return n.local ? r.getAttributeNS(n.space, n.local) : r.getAttribute(n);
575
569
  }
576
570
  return this.each((e == null ? n.local ? io : ro : typeof e == "function" ? n.local ? so : uo : n.local ? ao : oo)(n, e));
577
571
  }
578
- function Xn(t) {
572
+ function Yn(t) {
579
573
  return t.ownerDocument && t.ownerDocument.defaultView || t.document && t || t.defaultView;
580
574
  }
581
575
  function co(t) {
@@ -598,7 +592,7 @@ function po(t, e, n) {
598
592
  return arguments.length > 1 ? this.each((e == null ? co : typeof e == "function" ? ho : fo)(t, e, n ?? "")) : vt(this.node(), t);
599
593
  }
600
594
  function vt(t, e) {
601
- return t.style.getPropertyValue(e) || Xn(t).getComputedStyle(t, null).getPropertyValue(e);
595
+ return t.style.getPropertyValue(e) || Yn(t).getComputedStyle(t, null).getPropertyValue(e);
602
596
  }
603
597
  function mo(t) {
604
598
  return function() {
@@ -619,14 +613,14 @@ function vo(t, e) {
619
613
  function yo(t, e) {
620
614
  return arguments.length > 1 ? this.each((e == null ? mo : typeof e == "function" ? vo : go)(t, e)) : this.node()[t];
621
615
  }
622
- function Yn(t) {
616
+ function Bn(t) {
623
617
  return t.trim().split(/^|\s+/);
624
618
  }
625
- function ke(t) {
619
+ function Te(t) {
626
620
  return t.classList || new Wn(t);
627
621
  }
628
622
  function Wn(t) {
629
- this._node = t, this._names = Yn(t.getAttribute("class") || "");
623
+ this._node = t, this._names = Bn(t.getAttribute("class") || "");
630
624
  }
631
625
  Wn.prototype = {
632
626
  add: function(t) {
@@ -641,31 +635,31 @@ Wn.prototype = {
641
635
  return this._names.indexOf(t) >= 0;
642
636
  }
643
637
  };
644
- function Bn(t, e) {
645
- for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
646
- }
647
638
  function qn(t, e) {
648
- for (var n = ke(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
639
+ for (var n = Te(t), r = -1, i = e.length; ++r < i; ) n.add(e[r]);
640
+ }
641
+ function jn(t, e) {
642
+ for (var n = Te(t), r = -1, i = e.length; ++r < i; ) n.remove(e[r]);
649
643
  }
650
644
  function wo(t) {
651
645
  return function() {
652
- Bn(this, t);
646
+ qn(this, t);
653
647
  };
654
648
  }
655
649
  function xo(t) {
656
650
  return function() {
657
- qn(this, t);
651
+ jn(this, t);
658
652
  };
659
653
  }
660
654
  function bo(t, e) {
661
655
  return function() {
662
- (e.apply(this, arguments) ? Bn : qn)(this, t);
656
+ (e.apply(this, arguments) ? qn : jn)(this, t);
663
657
  };
664
658
  }
665
659
  function _o(t, e) {
666
- var n = Yn(t + "");
660
+ var n = Bn(t + "");
667
661
  if (arguments.length < 2) {
668
- for (var r = ke(this.node()), i = -1, o = n.length; ++i < o; ) if (!r.contains(n[i])) return !1;
662
+ for (var r = Te(this.node()), i = -1, o = n.length; ++i < o; ) if (!r.contains(n[i])) return !1;
669
663
  return !0;
670
664
  }
671
665
  return this.each((typeof e == "function" ? bo : e ? wo : xo)(n, e));
@@ -690,25 +684,25 @@ function Do(t) {
690
684
  function Mo() {
691
685
  this.innerHTML = "";
692
686
  }
693
- function Co(t) {
687
+ function Eo(t) {
694
688
  return function() {
695
689
  this.innerHTML = t;
696
690
  };
697
691
  }
698
- function Eo(t) {
692
+ function Co(t) {
699
693
  return function() {
700
694
  var e = t.apply(this, arguments);
701
695
  this.innerHTML = e ?? "";
702
696
  };
703
697
  }
704
698
  function Po(t) {
705
- return arguments.length ? this.each(t == null ? Mo : (typeof t == "function" ? Eo : Co)(t)) : this.node().innerHTML;
699
+ return arguments.length ? this.each(t == null ? Mo : (typeof t == "function" ? Co : Eo)(t)) : this.node().innerHTML;
706
700
  }
707
- function To() {
701
+ function Fo() {
708
702
  this.nextSibling && this.parentNode.appendChild(this);
709
703
  }
710
- function Fo() {
711
- return this.each(To);
704
+ function To() {
705
+ return this.each(Fo);
712
706
  }
713
707
  function No() {
714
708
  this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
@@ -716,17 +710,17 @@ function No() {
716
710
  function ko() {
717
711
  return this.each(No);
718
712
  }
719
- function Oo(t) {
720
- var e = typeof t == "function" ? t : Vn(t);
713
+ function Io(t) {
714
+ var e = typeof t == "function" ? t : Gn(t);
721
715
  return this.select(function() {
722
716
  return this.appendChild(e.apply(this, arguments));
723
717
  });
724
718
  }
725
- function Io() {
719
+ function Oo() {
726
720
  return null;
727
721
  }
728
722
  function Ro(t, e) {
729
- var n = typeof t == "function" ? t : Vn(t), r = e == null ? Io : typeof e == "function" ? e : Ne(e);
723
+ var n = typeof t == "function" ? t : Gn(t), r = e == null ? Oo : typeof e == "function" ? e : Fe(e);
730
724
  return this.select(function() {
731
725
  return this.insertBefore(n.apply(this, arguments), r.apply(this, arguments) || null);
732
726
  });
@@ -763,7 +757,7 @@ function Yo(t) {
763
757
  return r >= 0 && (n = e.slice(r + 1), e = e.slice(0, r)), { type: e, name: n };
764
758
  });
765
759
  }
766
- function Wo(t) {
760
+ function Bo(t) {
767
761
  return function() {
768
762
  var e = this.__on;
769
763
  if (e) {
@@ -773,7 +767,7 @@ function Wo(t) {
773
767
  }
774
768
  };
775
769
  }
776
- function Bo(t, e, n) {
770
+ function Wo(t, e, n) {
777
771
  return function() {
778
772
  var r = this.__on, i, o = Xo(e);
779
773
  if (r) {
@@ -798,21 +792,21 @@ function qo(t, e, n) {
798
792
  }
799
793
  return;
800
794
  }
801
- for (u = e ? Bo : Wo, i = 0; i < o; ++i) this.each(u(r[i], e, n));
795
+ for (u = e ? Wo : Bo, i = 0; i < o; ++i) this.each(u(r[i], e, n));
802
796
  return this;
803
797
  }
804
- function jn(t, e, n) {
805
- var r = Xn(t), i = r.CustomEvent;
798
+ function Kn(t, e, n) {
799
+ var r = Yn(t), i = r.CustomEvent;
806
800
  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);
807
801
  }
808
802
  function jo(t, e) {
809
803
  return function() {
810
- return jn(this, t, e);
804
+ return Kn(this, t, e);
811
805
  };
812
806
  }
813
807
  function Ko(t, e) {
814
808
  return function() {
815
- return jn(this, t, e.apply(this, arguments));
809
+ return Kn(this, t, e.apply(this, arguments));
816
810
  };
817
811
  }
818
812
  function Zo(t, e) {
@@ -823,12 +817,12 @@ function* Jo() {
823
817
  for (var r = t[e], i = 0, o = r.length, a; i < o; ++i)
824
818
  (a = r[i]) && (yield a);
825
819
  }
826
- var Kn = [null];
820
+ var Zn = [null];
827
821
  function V(t, e) {
828
822
  this._groups = t, this._parents = e;
829
823
  }
830
824
  function It() {
831
- return new V([[document.documentElement]], Kn);
825
+ return new V([[document.documentElement]], Zn);
832
826
  }
833
827
  function Qo() {
834
828
  return this;
@@ -836,15 +830,15 @@ function Qo() {
836
830
  V.prototype = It.prototype = {
837
831
  constructor: V,
838
832
  select: Ai,
839
- selectAll: Ci,
840
- selectChild: Fi,
841
- selectChildren: Ii,
833
+ selectAll: Ei,
834
+ selectChild: Ti,
835
+ selectChildren: Oi,
842
836
  filter: Ri,
843
837
  data: Ui,
844
838
  enter: Li,
845
839
  exit: Yi,
846
- join: Wi,
847
- merge: Bi,
840
+ join: Bi,
841
+ merge: Wi,
848
842
  selection: Qo,
849
843
  order: qi,
850
844
  sort: ji,
@@ -860,9 +854,9 @@ V.prototype = It.prototype = {
860
854
  classed: _o,
861
855
  text: Do,
862
856
  html: Po,
863
- raise: Fo,
857
+ raise: To,
864
858
  lower: ko,
865
- append: Oo,
859
+ append: Io,
866
860
  insert: Ro,
867
861
  remove: Vo,
868
862
  clone: Ho,
@@ -871,20 +865,20 @@ V.prototype = It.prototype = {
871
865
  dispatch: Zo,
872
866
  [Symbol.iterator]: Jo
873
867
  };
874
- function Gt(t) {
875
- return typeof t == "string" ? new V([[document.querySelector(t)]], [document.documentElement]) : new V([[t]], Kn);
868
+ function Vt(t) {
869
+ return typeof t == "string" ? new V([[document.querySelector(t)]], [document.documentElement]) : new V([[t]], Zn);
876
870
  }
877
- function Oe(t, e, n) {
871
+ function Ne(t, e, n) {
878
872
  t.prototype = e.prototype = n, n.constructor = t;
879
873
  }
880
- function Zn(t, e) {
874
+ function Jn(t, e) {
881
875
  var n = Object.create(t.prototype);
882
876
  for (var r in e) n[r] = e[r];
883
877
  return n;
884
878
  }
885
- function Rt() {
879
+ function Ot() {
886
880
  }
887
- var Ft = 0.7, te = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Nt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, ea = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), na = new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ra = new RegExp(`^rgba\\(${mt},${mt},${mt},${Nt}\\)$`), ia = new RegExp(`^rgba\\(${Y},${Y},${Y},${Nt}\\)$`), oa = new RegExp(`^hsl\\(${Nt},${Y},${Y}\\)$`), aa = new RegExp(`^hsla\\(${Nt},${Y},${Y},${Nt}\\)$`), un = {
881
+ var Ft = 0.7, Qt = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Tt = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", ta = /^#([0-9a-f]{3,8})$/, ea = new RegExp(`^rgb\\(${mt},${mt},${mt}\\)$`), na = new RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), ra = new RegExp(`^rgba\\(${mt},${mt},${mt},${Tt}\\)$`), ia = new RegExp(`^rgba\\(${Y},${Y},${Y},${Tt}\\)$`), oa = new RegExp(`^hsl\\(${Tt},${Y},${Y}\\)$`), aa = new RegExp(`^hsla\\(${Tt},${Y},${Y},${Tt}\\)$`), an = {
888
882
  aliceblue: 15792383,
889
883
  antiquewhite: 16444375,
890
884
  aqua: 65535,
@@ -1034,55 +1028,55 @@ var Ft = 0.7, te = 1 / Ft, mt = "\\s*([+-]?\\d+)\\s*", Nt = "\\s*([+-]?(?:\\d*\\
1034
1028
  yellow: 16776960,
1035
1029
  yellowgreen: 10145074
1036
1030
  };
1037
- Oe(Rt, st, {
1031
+ Ne(Ot, lt, {
1038
1032
  copy(t) {
1039
1033
  return Object.assign(new this.constructor(), this, t);
1040
1034
  },
1041
1035
  displayable() {
1042
1036
  return this.rgb().displayable();
1043
1037
  },
1044
- hex: sn,
1038
+ hex: un,
1045
1039
  // Deprecated! Use color.formatHex.
1046
- formatHex: sn,
1040
+ formatHex: un,
1047
1041
  formatHex8: ua,
1048
1042
  formatHsl: sa,
1049
- formatRgb: ln,
1050
- toString: ln
1043
+ formatRgb: sn,
1044
+ toString: sn
1051
1045
  });
1052
- function sn() {
1046
+ function un() {
1053
1047
  return this.rgb().formatHex();
1054
1048
  }
1055
1049
  function ua() {
1056
1050
  return this.rgb().formatHex8();
1057
1051
  }
1058
1052
  function sa() {
1059
- return Jn(this).formatHsl();
1053
+ return Qn(this).formatHsl();
1060
1054
  }
1061
- function ln() {
1055
+ function sn() {
1062
1056
  return this.rgb().formatRgb();
1063
1057
  }
1064
- function st(t) {
1058
+ function lt(t) {
1065
1059
  var e, n;
1066
- return t = (t + "").trim().toLowerCase(), (e = ta.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? cn(e) : n === 3 ? new L(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 = ea.exec(t)) ? new L(e[1], e[2], e[3], 1) : (e = na.exec(t)) ? new L(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = ra.exec(t)) ? zt(e[1], e[2], e[3], e[4]) : (e = ia.exec(t)) ? zt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = oa.exec(t)) ? dn(e[1], e[2] / 100, e[3] / 100, 1) : (e = aa.exec(t)) ? dn(e[1], e[2] / 100, e[3] / 100, e[4]) : un.hasOwnProperty(t) ? cn(un[t]) : t === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
1060
+ return t = (t + "").trim().toLowerCase(), (e = ta.exec(t)) ? (n = e[1].length, e = parseInt(e[1], 16), n === 6 ? ln(e) : n === 3 ? new L(e >> 8 & 15 | e >> 4 & 240, e >> 4 & 15 | e & 240, (e & 15) << 4 | e & 15, 1) : n === 8 ? Gt(e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, (e & 255) / 255) : n === 4 ? Gt(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 = ea.exec(t)) ? new L(e[1], e[2], e[3], 1) : (e = na.exec(t)) ? new L(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, 1) : (e = ra.exec(t)) ? Gt(e[1], e[2], e[3], e[4]) : (e = ia.exec(t)) ? Gt(e[1] * 255 / 100, e[2] * 255 / 100, e[3] * 255 / 100, e[4]) : (e = oa.exec(t)) ? hn(e[1], e[2] / 100, e[3] / 100, 1) : (e = aa.exec(t)) ? hn(e[1], e[2] / 100, e[3] / 100, e[4]) : an.hasOwnProperty(t) ? ln(an[t]) : t === "transparent" ? new L(NaN, NaN, NaN, 0) : null;
1067
1061
  }
1068
- function cn(t) {
1062
+ function ln(t) {
1069
1063
  return new L(t >> 16 & 255, t >> 8 & 255, t & 255, 1);
1070
1064
  }
1071
- function zt(t, e, n, r) {
1065
+ function Gt(t, e, n, r) {
1072
1066
  return r <= 0 && (t = e = n = NaN), new L(t, e, n, r);
1073
1067
  }
1074
1068
  function la(t) {
1075
- return t instanceof Rt || (t = st(t)), t ? (t = t.rgb(), new L(t.r, t.g, t.b, t.opacity)) : new L();
1069
+ return t instanceof Ot || (t = lt(t)), t ? (t = t.rgb(), new L(t.r, t.g, t.b, t.opacity)) : new L();
1076
1070
  }
1077
- function be(t, e, n, r) {
1071
+ function we(t, e, n, r) {
1078
1072
  return arguments.length === 1 ? la(t) : new L(t, e, n, r ?? 1);
1079
1073
  }
1080
1074
  function L(t, e, n, r) {
1081
1075
  this.r = +t, this.g = +e, this.b = +n, this.opacity = +r;
1082
1076
  }
1083
- Oe(L, be, Zn(Rt, {
1077
+ Ne(L, we, Jn(Ot, {
1084
1078
  brighter(t) {
1085
- return t = t == null ? te : Math.pow(te, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
1079
+ return t = t == null ? Qt : Math.pow(Qt, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
1086
1080
  },
1087
1081
  darker(t) {
1088
1082
  return t = t == null ? Ft : Math.pow(Ft, t), new L(this.r * t, this.g * t, this.b * t, this.opacity);
@@ -1091,57 +1085,57 @@ Oe(L, be, Zn(Rt, {
1091
1085
  return this;
1092
1086
  },
1093
1087
  clamp() {
1094
- return new L(ut(this.r), ut(this.g), ut(this.b), ee(this.opacity));
1088
+ return new L(st(this.r), st(this.g), st(this.b), te(this.opacity));
1095
1089
  },
1096
1090
  displayable() {
1097
1091
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
1098
1092
  },
1099
- hex: fn,
1093
+ hex: cn,
1100
1094
  // Deprecated! Use color.formatHex.
1101
- formatHex: fn,
1095
+ formatHex: cn,
1102
1096
  formatHex8: ca,
1103
- formatRgb: hn,
1104
- toString: hn
1097
+ formatRgb: fn,
1098
+ toString: fn
1105
1099
  }));
1106
- function fn() {
1107
- return `#${at(this.r)}${at(this.g)}${at(this.b)}`;
1100
+ function cn() {
1101
+ return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}`;
1108
1102
  }
1109
1103
  function ca() {
1110
- return `#${at(this.r)}${at(this.g)}${at(this.b)}${at((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1104
+ return `#${ut(this.r)}${ut(this.g)}${ut(this.b)}${ut((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
1111
1105
  }
1112
- function hn() {
1113
- const t = ee(this.opacity);
1114
- return `${t === 1 ? "rgb(" : "rgba("}${ut(this.r)}, ${ut(this.g)}, ${ut(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1106
+ function fn() {
1107
+ const t = te(this.opacity);
1108
+ return `${t === 1 ? "rgb(" : "rgba("}${st(this.r)}, ${st(this.g)}, ${st(this.b)}${t === 1 ? ")" : `, ${t})`}`;
1115
1109
  }
1116
- function ee(t) {
1110
+ function te(t) {
1117
1111
  return isNaN(t) ? 1 : Math.max(0, Math.min(1, t));
1118
1112
  }
1119
- function ut(t) {
1113
+ function st(t) {
1120
1114
  return Math.max(0, Math.min(255, Math.round(t) || 0));
1121
1115
  }
1122
- function at(t) {
1123
- return t = ut(t), (t < 16 ? "0" : "") + t.toString(16);
1116
+ function ut(t) {
1117
+ return t = st(t), (t < 16 ? "0" : "") + t.toString(16);
1124
1118
  }
1125
- function dn(t, e, n, r) {
1119
+ function hn(t, e, n, r) {
1126
1120
  return r <= 0 ? t = e = n = NaN : n <= 0 || n >= 1 ? t = e = NaN : e <= 0 && (t = NaN), new U(t, e, n, r);
1127
1121
  }
1128
- function Jn(t) {
1122
+ function Qn(t) {
1129
1123
  if (t instanceof U) return new U(t.h, t.s, t.l, t.opacity);
1130
- if (t instanceof Rt || (t = st(t)), !t) return new U();
1124
+ if (t instanceof Ot || (t = lt(t)), !t) return new U();
1131
1125
  if (t instanceof U) return t;
1132
1126
  t = t.rgb();
1133
1127
  var e = t.r / 255, n = t.g / 255, r = t.b / 255, i = Math.min(e, n, r), o = Math.max(e, n, r), a = NaN, u = o - i, s = (o + i) / 2;
1134
1128
  return u ? (e === o ? a = (n - r) / u + (n < r) * 6 : n === o ? a = (r - e) / u + 2 : a = (e - n) / u + 4, u /= s < 0.5 ? o + i : 2 - o - i, a *= 60) : u = s > 0 && s < 1 ? 0 : a, new U(a, u, s, t.opacity);
1135
1129
  }
1136
1130
  function fa(t, e, n, r) {
1137
- return arguments.length === 1 ? Jn(t) : new U(t, e, n, r ?? 1);
1131
+ return arguments.length === 1 ? Qn(t) : new U(t, e, n, r ?? 1);
1138
1132
  }
1139
1133
  function U(t, e, n, r) {
1140
1134
  this.h = +t, this.s = +e, this.l = +n, this.opacity = +r;
1141
1135
  }
1142
- Oe(U, fa, Zn(Rt, {
1136
+ Ne(U, fa, Jn(Ot, {
1143
1137
  brighter(t) {
1144
- return t = t == null ? te : Math.pow(te, t), new U(this.h, this.s, this.l * t, this.opacity);
1138
+ return t = t == null ? Qt : Math.pow(Qt, t), new U(this.h, this.s, this.l * t, this.opacity);
1145
1139
  },
1146
1140
  darker(t) {
1147
1141
  return t = t == null ? Ft : Math.pow(Ft, t), new U(this.h, this.s, this.l * t, this.opacity);
@@ -1149,33 +1143,33 @@ Oe(U, fa, Zn(Rt, {
1149
1143
  rgb() {
1150
1144
  var t = this.h % 360 + (this.h < 0) * 360, e = isNaN(t) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < 0.5 ? n : 1 - n) * e, i = 2 * n - r;
1151
1145
  return new L(
1152
- de(t >= 240 ? t - 240 : t + 120, i, r),
1153
- de(t, i, r),
1154
- de(t < 120 ? t + 240 : t - 120, i, r),
1146
+ he(t >= 240 ? t - 240 : t + 120, i, r),
1147
+ he(t, i, r),
1148
+ he(t < 120 ? t + 240 : t - 120, i, r),
1155
1149
  this.opacity
1156
1150
  );
1157
1151
  },
1158
1152
  clamp() {
1159
- return new U(pn(this.h), Ht(this.s), Ht(this.l), ee(this.opacity));
1153
+ return new U(dn(this.h), zt(this.s), zt(this.l), te(this.opacity));
1160
1154
  },
1161
1155
  displayable() {
1162
1156
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
1163
1157
  },
1164
1158
  formatHsl() {
1165
- const t = ee(this.opacity);
1166
- return `${t === 1 ? "hsl(" : "hsla("}${pn(this.h)}, ${Ht(this.s) * 100}%, ${Ht(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
1159
+ const t = te(this.opacity);
1160
+ return `${t === 1 ? "hsl(" : "hsla("}${dn(this.h)}, ${zt(this.s) * 100}%, ${zt(this.l) * 100}%${t === 1 ? ")" : `, ${t})`}`;
1167
1161
  }
1168
1162
  }));
1169
- function pn(t) {
1163
+ function dn(t) {
1170
1164
  return t = (t || 0) % 360, t < 0 ? t + 360 : t;
1171
1165
  }
1172
- function Ht(t) {
1166
+ function zt(t) {
1173
1167
  return Math.max(0, Math.min(1, t || 0));
1174
1168
  }
1175
- function de(t, e, n) {
1169
+ function he(t, e, n) {
1176
1170
  return (t < 60 ? e + (n - e) * t / 60 : t < 180 ? n : t < 240 ? e + (n - e) * (240 - t) / 60 : e) * 255;
1177
1171
  }
1178
- const Ie = (t) => () => t;
1172
+ const ke = (t) => () => t;
1179
1173
  function ha(t, e) {
1180
1174
  return function(n) {
1181
1175
  return t + n * e;
@@ -1187,18 +1181,18 @@ function da(t, e, n) {
1187
1181
  };
1188
1182
  }
1189
1183
  function pa(t) {
1190
- return (t = +t) == 1 ? Qn : function(e, n) {
1191
- return n - e ? da(e, n, t) : Ie(isNaN(e) ? n : e);
1184
+ return (t = +t) == 1 ? tr : function(e, n) {
1185
+ return n - e ? da(e, n, t) : ke(isNaN(e) ? n : e);
1192
1186
  };
1193
1187
  }
1194
- function Qn(t, e) {
1188
+ function tr(t, e) {
1195
1189
  var n = e - t;
1196
- return n ? ha(t, n) : Ie(isNaN(t) ? e : t);
1190
+ return n ? ha(t, n) : ke(isNaN(t) ? e : t);
1197
1191
  }
1198
- const ne = function t(e) {
1192
+ const ee = function t(e) {
1199
1193
  var n = pa(e);
1200
1194
  function r(i, o) {
1201
- var a = n((i = be(i)).r, (o = be(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = Qn(i.opacity, o.opacity);
1195
+ var a = n((i = we(i)).r, (o = we(o)).r), u = n(i.g, o.g), s = n(i.b, o.b), l = tr(i.opacity, o.opacity);
1202
1196
  return function(f) {
1203
1197
  return i.r = a(f), i.g = u(f), i.b = s(f), i.opacity = l(f), i + "";
1204
1198
  };
@@ -1218,7 +1212,7 @@ function ga(t) {
1218
1212
  }
1219
1213
  function va(t, e) {
1220
1214
  var n = e ? e.length : 0, r = t ? Math.min(n, t.length) : 0, i = new Array(r), o = new Array(n), a;
1221
- for (a = 0; a < r; ++a) i[a] = Re(t[a], e[a]);
1215
+ for (a = 0; a < r; ++a) i[a] = Ie(t[a], e[a]);
1222
1216
  for (; a < n; ++a) o[a] = e[a];
1223
1217
  return function(u) {
1224
1218
  for (a = 0; a < r; ++a) o[a] = i[a](u);
@@ -1240,13 +1234,13 @@ function wa(t, e) {
1240
1234
  var n = {}, r = {}, i;
1241
1235
  (t === null || typeof t != "object") && (t = {}), (e === null || typeof e != "object") && (e = {});
1242
1236
  for (i in e)
1243
- i in t ? n[i] = Re(t[i], e[i]) : r[i] = e[i];
1237
+ i in t ? n[i] = Ie(t[i], e[i]) : r[i] = e[i];
1244
1238
  return function(o) {
1245
1239
  for (i in n) r[i] = n[i](o);
1246
1240
  return r;
1247
1241
  };
1248
1242
  }
1249
- var _e = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, pe = new RegExp(_e.source, "g");
1243
+ var xe = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, de = new RegExp(xe.source, "g");
1250
1244
  function xa(t) {
1251
1245
  return function() {
1252
1246
  return t;
@@ -1257,25 +1251,25 @@ function ba(t) {
1257
1251
  return t(e) + "";
1258
1252
  };
1259
1253
  }
1260
- function tr(t, e) {
1261
- var n = _e.lastIndex = pe.lastIndex = 0, r, i, o, a = -1, u = [], s = [];
1262
- for (t = t + "", e = e + ""; (r = _e.exec(t)) && (i = pe.exec(e)); )
1263
- (o = i.index) > n && (o = e.slice(n, o), u[a] ? u[a] += o : u[++a] = o), (r = r[0]) === (i = i[0]) ? u[a] ? u[a] += i : u[++a] = i : (u[++a] = null, s.push({ i: a, x: H(r, i) })), n = pe.lastIndex;
1254
+ function er(t, e) {
1255
+ var n = xe.lastIndex = de.lastIndex = 0, r, i, o, a = -1, u = [], s = [];
1256
+ for (t = t + "", e = e + ""; (r = xe.exec(t)) && (i = de.exec(e)); )
1257
+ (o = i.index) > n && (o = e.slice(n, o), u[a] ? u[a] += o : u[++a] = o), (r = r[0]) === (i = i[0]) ? u[a] ? u[a] += i : u[++a] = i : (u[++a] = null, s.push({ i: a, x: H(r, i) })), n = de.lastIndex;
1264
1258
  return n < e.length && (o = e.slice(n), u[a] ? u[a] += o : u[++a] = o), u.length < 2 ? s[0] ? ba(s[0].x) : xa(e) : (e = s.length, function(l) {
1265
1259
  for (var f = 0, c; f < e; ++f) u[(c = s[f]).i] = c.x(l);
1266
1260
  return u.join("");
1267
1261
  });
1268
1262
  }
1269
- function Re(t, e) {
1263
+ function Ie(t, e) {
1270
1264
  var n = typeof e, r;
1271
- return e == null || n === "boolean" ? Ie(e) : (n === "number" ? H : n === "string" ? (r = st(e)) ? (e = r, ne) : tr : e instanceof st ? ne : e instanceof Date ? ya : ga(e) ? ma : Array.isArray(e) ? va : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? wa : H)(t, e);
1265
+ return e == null || n === "boolean" ? ke(e) : (n === "number" ? H : n === "string" ? (r = lt(e)) ? (e = r, ee) : er : e instanceof lt ? ee : e instanceof Date ? ya : ga(e) ? ma : Array.isArray(e) ? va : typeof e.valueOf != "function" && typeof e.toString != "function" || isNaN(e) ? wa : H)(t, e);
1272
1266
  }
1273
1267
  function _a(t, e) {
1274
1268
  return t = +t, e = +e, function(n) {
1275
1269
  return Math.round(t * (1 - n) + e * n);
1276
1270
  };
1277
1271
  }
1278
- var mn = 180 / Math.PI, $e = {
1272
+ var pn = 180 / Math.PI, be = {
1279
1273
  translateX: 0,
1280
1274
  translateY: 0,
1281
1275
  rotate: 0,
@@ -1283,26 +1277,26 @@ var mn = 180 / Math.PI, $e = {
1283
1277
  scaleX: 1,
1284
1278
  scaleY: 1
1285
1279
  };
1286
- function er(t, e, n, r, i, o) {
1280
+ function nr(t, e, n, r, i, o) {
1287
1281
  var a, u, s;
1288
1282
  return (a = Math.sqrt(t * t + e * e)) && (t /= a, e /= a), (s = t * n + e * r) && (n -= t * s, r -= e * s), (u = Math.sqrt(n * n + r * r)) && (n /= u, r /= u, s /= u), t * r < e * n && (t = -t, e = -e, s = -s, a = -a), {
1289
1283
  translateX: i,
1290
1284
  translateY: o,
1291
- rotate: Math.atan2(e, t) * mn,
1292
- skewX: Math.atan(s) * mn,
1285
+ rotate: Math.atan2(e, t) * pn,
1286
+ skewX: Math.atan(s) * pn,
1293
1287
  scaleX: a,
1294
1288
  scaleY: u
1295
1289
  };
1296
1290
  }
1297
- var Ut;
1291
+ var Ht;
1298
1292
  function $a(t) {
1299
1293
  const e = new (typeof DOMMatrix == "function" ? DOMMatrix : WebKitCSSMatrix)(t + "");
1300
- return e.isIdentity ? $e : er(e.a, e.b, e.c, e.d, e.e, e.f);
1294
+ return e.isIdentity ? be : nr(e.a, e.b, e.c, e.d, e.e, e.f);
1301
1295
  }
1302
1296
  function Aa(t) {
1303
- return t == null || (Ut || (Ut = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ut.setAttribute("transform", t), !(t = Ut.transform.baseVal.consolidate())) ? $e : (t = t.matrix, er(t.a, t.b, t.c, t.d, t.e, t.f));
1297
+ return t == null || (Ht || (Ht = document.createElementNS("http://www.w3.org/2000/svg", "g")), Ht.setAttribute("transform", t), !(t = Ht.transform.baseVal.consolidate())) ? be : (t = t.matrix, nr(t.a, t.b, t.c, t.d, t.e, t.f));
1304
1298
  }
1305
- function nr(t, e, n, r) {
1299
+ function rr(t, e, n, r) {
1306
1300
  function i(l) {
1307
1301
  return l.length ? l.pop() + " " : "";
1308
1302
  }
@@ -1332,70 +1326,70 @@ function nr(t, e, n, r) {
1332
1326
  };
1333
1327
  };
1334
1328
  }
1335
- var Sa = nr($a, "px, ", "px)", "deg)"), Da = nr(Aa, ", ", ")", ")"), yt = 0, Ct = 0, Mt = 0, rr = 1e3, re, Et, ie = 0, lt = 0, ce = 0, kt = typeof performance == "object" && performance.now ? performance : Date, ir = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1329
+ var Sa = rr($a, "px, ", "px)", "deg)"), Da = rr(Aa, ", ", ")", ")"), yt = 0, Mt = 0, Dt = 0, ir = 1e3, ne, Et, re = 0, ct = 0, le = 0, Nt = typeof performance == "object" && performance.now ? performance : Date, or = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(t) {
1336
1330
  setTimeout(t, 17);
1337
1331
  };
1338
- function Le() {
1339
- return lt || (ir(Ma), lt = kt.now() + ce);
1332
+ function Oe() {
1333
+ return ct || (or(Ma), ct = Nt.now() + le);
1340
1334
  }
1341
1335
  function Ma() {
1342
- lt = 0;
1336
+ ct = 0;
1343
1337
  }
1344
- function oe() {
1338
+ function ie() {
1345
1339
  this._call = this._time = this._next = null;
1346
1340
  }
1347
- oe.prototype = or.prototype = {
1348
- constructor: oe,
1341
+ ie.prototype = ar.prototype = {
1342
+ constructor: ie,
1349
1343
  restart: function(t, e, n) {
1350
1344
  if (typeof t != "function") throw new TypeError("callback is not a function");
1351
- n = (n == null ? Le() : +n) + (e == null ? 0 : +e), !this._next && Et !== this && (Et ? Et._next = this : re = this, Et = this), this._call = t, this._time = n, Ae();
1345
+ n = (n == null ? Oe() : +n) + (e == null ? 0 : +e), !this._next && Et !== this && (Et ? Et._next = this : ne = this, Et = this), this._call = t, this._time = n, _e();
1352
1346
  },
1353
1347
  stop: function() {
1354
- this._call && (this._call = null, this._time = 1 / 0, Ae());
1348
+ this._call && (this._call = null, this._time = 1 / 0, _e());
1355
1349
  }
1356
1350
  };
1357
- function or(t, e, n) {
1358
- var r = new oe();
1351
+ function ar(t, e, n) {
1352
+ var r = new ie();
1359
1353
  return r.restart(t, e, n), r;
1360
1354
  }
1361
- function Ca() {
1362
- Le(), ++yt;
1363
- for (var t = re, e; t; )
1364
- (e = lt - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1355
+ function Ea() {
1356
+ Oe(), ++yt;
1357
+ for (var t = ne, e; t; )
1358
+ (e = ct - t._time) >= 0 && t._call.call(void 0, e), t = t._next;
1365
1359
  --yt;
1366
1360
  }
1367
- function gn() {
1368
- lt = (ie = kt.now()) + ce, yt = Ct = 0;
1361
+ function mn() {
1362
+ ct = (re = Nt.now()) + le, yt = Mt = 0;
1369
1363
  try {
1370
- Ca();
1364
+ Ea();
1371
1365
  } finally {
1372
- yt = 0, Pa(), lt = 0;
1366
+ yt = 0, Pa(), ct = 0;
1373
1367
  }
1374
1368
  }
1375
- function Ea() {
1376
- var t = kt.now(), e = t - ie;
1377
- e > rr && (ce -= e, ie = t);
1369
+ function Ca() {
1370
+ var t = Nt.now(), e = t - re;
1371
+ e > ir && (le -= e, re = t);
1378
1372
  }
1379
1373
  function Pa() {
1380
- for (var t, e = re, n, r = 1 / 0; e; )
1381
- e._call ? (r > e._time && (r = e._time), t = e, e = e._next) : (n = e._next, e._next = null, e = t ? t._next = n : re = n);
1382
- Et = t, Ae(r);
1374
+ for (var t, e = ne, n, r = 1 / 0; e; )
1375
+ 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);
1376
+ Et = t, _e(r);
1383
1377
  }
1384
- function Ae(t) {
1378
+ function _e(t) {
1385
1379
  if (!yt) {
1386
- Ct && (Ct = clearTimeout(Ct));
1387
- var e = t - lt;
1388
- e > 24 ? (t < 1 / 0 && (Ct = setTimeout(gn, t - kt.now() - ce)), Mt && (Mt = clearInterval(Mt))) : (Mt || (ie = kt.now(), Mt = setInterval(Ea, rr)), yt = 1, ir(gn));
1380
+ Mt && (Mt = clearTimeout(Mt));
1381
+ var e = t - ct;
1382
+ e > 24 ? (t < 1 / 0 && (Mt = setTimeout(mn, t - Nt.now() - le)), Dt && (Dt = clearInterval(Dt))) : (Dt || (re = Nt.now(), Dt = setInterval(Ca, ir)), yt = 1, or(mn));
1389
1383
  }
1390
1384
  }
1391
- function vn(t, e, n) {
1392
- var r = new oe();
1385
+ function gn(t, e, n) {
1386
+ var r = new ie();
1393
1387
  return e = e == null ? 0 : +e, r.restart((i) => {
1394
1388
  r.stop(), t(i + e);
1395
1389
  }, e, n), r;
1396
1390
  }
1397
- var Ta = Ln("start", "end", "cancel", "interrupt"), Fa = [], ar = 0, yn = 1, Se = 2, qt = 3, wn = 4, De = 5, jt = 6;
1398
- function fe(t, e, n, r, i, o) {
1391
+ var Fa = Vn("start", "end", "cancel", "interrupt"), Ta = [], ur = 0, vn = 1, $e = 2, Wt = 3, yn = 4, Ae = 5, qt = 6;
1392
+ function ce(t, e, n, r, i, o) {
1399
1393
  var a = t.__transition;
1400
1394
  if (!a) t.__transition = {};
1401
1395
  else if (n in a) return;
@@ -1405,24 +1399,24 @@ function fe(t, e, n, r, i, o) {
1405
1399
  // For context during callback.
1406
1400
  group: i,
1407
1401
  // For context during callback.
1408
- on: Ta,
1409
- tween: Fa,
1402
+ on: Fa,
1403
+ tween: Ta,
1410
1404
  time: o.time,
1411
1405
  delay: o.delay,
1412
1406
  duration: o.duration,
1413
1407
  ease: o.ease,
1414
1408
  timer: null,
1415
- state: ar
1409
+ state: ur
1416
1410
  });
1417
1411
  }
1418
- function Ve(t, e) {
1412
+ function Re(t, e) {
1419
1413
  var n = X(t, e);
1420
- if (n.state > ar) throw new Error("too late; already scheduled");
1414
+ if (n.state > ur) throw new Error("too late; already scheduled");
1421
1415
  return n;
1422
1416
  }
1423
- function W(t, e) {
1417
+ function B(t, e) {
1424
1418
  var n = X(t, e);
1425
- if (n.state > qt) throw new Error("too late; already running");
1419
+ if (n.state > Wt) throw new Error("too late; already running");
1426
1420
  return n;
1427
1421
  }
1428
1422
  function X(t, e) {
@@ -1432,33 +1426,33 @@ function X(t, e) {
1432
1426
  }
1433
1427
  function Na(t, e, n) {
1434
1428
  var r = t.__transition, i;
1435
- r[e] = n, n.timer = or(o, 0, n.time);
1429
+ r[e] = n, n.timer = ar(o, 0, n.time);
1436
1430
  function o(l) {
1437
- n.state = yn, n.timer.restart(a, n.delay, n.time), n.delay <= l && a(l - n.delay);
1431
+ n.state = vn, n.timer.restart(a, n.delay, n.time), n.delay <= l && a(l - n.delay);
1438
1432
  }
1439
1433
  function a(l) {
1440
1434
  var f, c, h, d;
1441
- if (n.state !== yn) return s();
1435
+ if (n.state !== vn) return s();
1442
1436
  for (f in r)
1443
1437
  if (d = r[f], d.name === n.name) {
1444
- if (d.state === qt) return vn(a);
1445
- d.state === wn ? (d.state = jt, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[f]) : +f < e && (d.state = jt, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[f]);
1438
+ if (d.state === Wt) return gn(a);
1439
+ d.state === yn ? (d.state = qt, d.timer.stop(), d.on.call("interrupt", t, t.__data__, d.index, d.group), delete r[f]) : +f < e && (d.state = qt, d.timer.stop(), d.on.call("cancel", t, t.__data__, d.index, d.group), delete r[f]);
1446
1440
  }
1447
- if (vn(function() {
1448
- n.state === qt && (n.state = wn, n.timer.restart(u, n.delay, n.time), u(l));
1449
- }), n.state = Se, n.on.call("start", t, t.__data__, n.index, n.group), n.state === Se) {
1450
- for (n.state = qt, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1441
+ if (gn(function() {
1442
+ n.state === Wt && (n.state = yn, n.timer.restart(u, n.delay, n.time), u(l));
1443
+ }), n.state = $e, n.on.call("start", t, t.__data__, n.index, n.group), n.state === $e) {
1444
+ for (n.state = Wt, i = new Array(h = n.tween.length), f = 0, c = -1; f < h; ++f)
1451
1445
  (d = n.tween[f].value.call(t, t.__data__, n.index, n.group)) && (i[++c] = d);
1452
1446
  i.length = c + 1;
1453
1447
  }
1454
1448
  }
1455
1449
  function u(l) {
1456
- for (var f = l < n.duration ? n.ease.call(null, l / n.duration) : (n.timer.restart(s), n.state = De, 1), c = -1, h = i.length; ++c < h; )
1450
+ for (var f = l < n.duration ? n.ease.call(null, l / n.duration) : (n.timer.restart(s), n.state = Ae, 1), c = -1, h = i.length; ++c < h; )
1457
1451
  i[c].call(t, f);
1458
- n.state === De && (n.on.call("end", t, t.__data__, n.index, n.group), s());
1452
+ n.state === Ae && (n.on.call("end", t, t.__data__, n.index, n.group), s());
1459
1453
  }
1460
1454
  function s() {
1461
- n.state = jt, n.timer.stop(), delete r[e];
1455
+ n.state = qt, n.timer.stop(), delete r[e];
1462
1456
  for (var l in r) return;
1463
1457
  delete t.__transition;
1464
1458
  }
@@ -1472,20 +1466,20 @@ function ka(t, e) {
1472
1466
  o = !1;
1473
1467
  continue;
1474
1468
  }
1475
- i = r.state > Se && r.state < De, r.state = jt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[a];
1469
+ i = r.state > $e && r.state < Ae, r.state = qt, r.timer.stop(), r.on.call(i ? "interrupt" : "cancel", t, t.__data__, r.index, r.group), delete n[a];
1476
1470
  }
1477
1471
  o && delete t.__transition;
1478
1472
  }
1479
1473
  }
1480
- function Oa(t) {
1474
+ function Ia(t) {
1481
1475
  return this.each(function() {
1482
1476
  ka(this, t);
1483
1477
  });
1484
1478
  }
1485
- function Ia(t, e) {
1479
+ function Oa(t, e) {
1486
1480
  var n, r;
1487
1481
  return function() {
1488
- var i = W(this, t), o = i.tween;
1482
+ var i = B(this, t), o = i.tween;
1489
1483
  if (o !== n) {
1490
1484
  r = n = o;
1491
1485
  for (var a = 0, u = r.length; a < u; ++a)
@@ -1501,7 +1495,7 @@ function Ra(t, e, n) {
1501
1495
  var r, i;
1502
1496
  if (typeof n != "function") throw new Error();
1503
1497
  return function() {
1504
- var o = W(this, t), a = o.tween;
1498
+ var o = B(this, t), a = o.tween;
1505
1499
  if (a !== r) {
1506
1500
  i = (r = a).slice();
1507
1501
  for (var u = { name: e, value: n }, s = 0, l = i.length; s < l; ++s)
@@ -1522,20 +1516,20 @@ function La(t, e) {
1522
1516
  return a.value;
1523
1517
  return null;
1524
1518
  }
1525
- return this.each((e == null ? Ia : Ra)(n, t, e));
1519
+ return this.each((e == null ? Oa : Ra)(n, t, e));
1526
1520
  }
1527
- function Ge(t, e, n) {
1521
+ function Le(t, e, n) {
1528
1522
  var r = t._id;
1529
1523
  return t.each(function() {
1530
- var i = W(this, r);
1524
+ var i = B(this, r);
1531
1525
  (i.value || (i.value = {}))[e] = n.apply(this, arguments);
1532
1526
  }), function(i) {
1533
1527
  return X(i, r).value[e];
1534
1528
  };
1535
1529
  }
1536
- function ur(t, e) {
1530
+ function sr(t, e) {
1537
1531
  var n;
1538
- return (typeof e == "number" ? H : e instanceof st ? ne : (n = st(e)) ? (e = n, ne) : tr)(t, e);
1532
+ return (typeof e == "number" ? H : e instanceof lt ? ee : (n = lt(e)) ? (e = n, ee) : er)(t, e);
1539
1533
  }
1540
1534
  function Va(t) {
1541
1535
  return function() {
@@ -1576,15 +1570,15 @@ function Xa(t, e, n) {
1576
1570
  };
1577
1571
  }
1578
1572
  function Ya(t, e) {
1579
- var n = le(t), r = n === "transform" ? Da : ur;
1580
- return this.attrTween(t, typeof e == "function" ? (n.local ? Xa : Ua)(n, r, Ge(this, "attr." + t, e)) : e == null ? (n.local ? Ga : Va)(n) : (n.local ? Ha : za)(n, r, e));
1573
+ var n = se(t), r = n === "transform" ? Da : sr;
1574
+ return this.attrTween(t, typeof e == "function" ? (n.local ? Xa : Ua)(n, r, Le(this, "attr." + t, e)) : e == null ? (n.local ? Ga : Va)(n) : (n.local ? Ha : za)(n, r, e));
1581
1575
  }
1582
- function Wa(t, e) {
1576
+ function Ba(t, e) {
1583
1577
  return function(n) {
1584
1578
  this.setAttribute(t, e.call(this, n));
1585
1579
  };
1586
1580
  }
1587
- function Ba(t, e) {
1581
+ function Wa(t, e) {
1588
1582
  return function(n) {
1589
1583
  this.setAttributeNS(t.space, t.local, e.call(this, n));
1590
1584
  };
@@ -1593,7 +1587,7 @@ function qa(t, e) {
1593
1587
  var n, r;
1594
1588
  function i() {
1595
1589
  var o = e.apply(this, arguments);
1596
- return o !== r && (n = (r = o) && Ba(t, o)), n;
1590
+ return o !== r && (n = (r = o) && Wa(t, o)), n;
1597
1591
  }
1598
1592
  return i._value = e, i;
1599
1593
  }
@@ -1601,7 +1595,7 @@ function ja(t, e) {
1601
1595
  var n, r;
1602
1596
  function i() {
1603
1597
  var o = e.apply(this, arguments);
1604
- return o !== r && (n = (r = o) && Wa(t, o)), n;
1598
+ return o !== r && (n = (r = o) && Ba(t, o)), n;
1605
1599
  }
1606
1600
  return i._value = e, i;
1607
1601
  }
@@ -1610,17 +1604,17 @@ function Ka(t, e) {
1610
1604
  if (arguments.length < 2) return (n = this.tween(n)) && n._value;
1611
1605
  if (e == null) return this.tween(n, null);
1612
1606
  if (typeof e != "function") throw new Error();
1613
- var r = le(t);
1607
+ var r = se(t);
1614
1608
  return this.tween(n, (r.local ? qa : ja)(r, e));
1615
1609
  }
1616
1610
  function Za(t, e) {
1617
1611
  return function() {
1618
- Ve(this, t).delay = +e.apply(this, arguments);
1612
+ Re(this, t).delay = +e.apply(this, arguments);
1619
1613
  };
1620
1614
  }
1621
1615
  function Ja(t, e) {
1622
1616
  return e = +e, function() {
1623
- Ve(this, t).delay = e;
1617
+ Re(this, t).delay = e;
1624
1618
  };
1625
1619
  }
1626
1620
  function Qa(t) {
@@ -1629,12 +1623,12 @@ function Qa(t) {
1629
1623
  }
1630
1624
  function tu(t, e) {
1631
1625
  return function() {
1632
- W(this, t).duration = +e.apply(this, arguments);
1626
+ B(this, t).duration = +e.apply(this, arguments);
1633
1627
  };
1634
1628
  }
1635
1629
  function eu(t, e) {
1636
1630
  return e = +e, function() {
1637
- W(this, t).duration = e;
1631
+ B(this, t).duration = e;
1638
1632
  };
1639
1633
  }
1640
1634
  function nu(t) {
@@ -1644,7 +1638,7 @@ function nu(t) {
1644
1638
  function ru(t, e) {
1645
1639
  if (typeof e != "function") throw new Error();
1646
1640
  return function() {
1647
- W(this, t).ease = e;
1641
+ B(this, t).ease = e;
1648
1642
  };
1649
1643
  }
1650
1644
  function iu(t) {
@@ -1655,7 +1649,7 @@ function ou(t, e) {
1655
1649
  return function() {
1656
1650
  var n = e.apply(this, arguments);
1657
1651
  if (typeof n != "function") throw new Error();
1658
- W(this, t).ease = n;
1652
+ B(this, t).ease = n;
1659
1653
  };
1660
1654
  }
1661
1655
  function au(t) {
@@ -1663,7 +1657,7 @@ function au(t) {
1663
1657
  return this.each(ou(this._id, t));
1664
1658
  }
1665
1659
  function uu(t) {
1666
- typeof t != "function" && (t = zn(t));
1660
+ typeof t != "function" && (t = Hn(t));
1667
1661
  for (var e = this._groups, n = e.length, r = new Array(n), i = 0; i < n; ++i)
1668
1662
  for (var o = e[i], a = o.length, u = r[i] = [], s, l = 0; l < a; ++l)
1669
1663
  (s = o[l]) && t.call(s, s.__data__, l, o) && u.push(s);
@@ -1685,7 +1679,7 @@ function lu(t) {
1685
1679
  });
1686
1680
  }
1687
1681
  function cu(t, e, n) {
1688
- var r, i, o = lu(e) ? Ve : W;
1682
+ var r, i, o = lu(e) ? Re : B;
1689
1683
  return function() {
1690
1684
  var a = o(this, t), u = a.on;
1691
1685
  u !== r && (i = (r = u).copy()).on(e, n), a.on = i;
@@ -1707,20 +1701,20 @@ function du() {
1707
1701
  }
1708
1702
  function pu(t) {
1709
1703
  var e = this._name, n = this._id;
1710
- typeof t != "function" && (t = Ne(t));
1704
+ typeof t != "function" && (t = Fe(t));
1711
1705
  for (var r = this._groups, i = r.length, o = new Array(i), a = 0; a < i; ++a)
1712
1706
  for (var u = r[a], s = u.length, l = o[a] = new Array(s), f, c, h = 0; h < s; ++h)
1713
- (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, fe(l[h], e, n, h, l, X(f, n)));
1707
+ (f = u[h]) && (c = t.call(f, f.__data__, h, u)) && ("__data__" in f && (c.__data__ = f.__data__), l[h] = c, ce(l[h], e, n, h, l, X(f, n)));
1714
1708
  return new J(o, this._parents, e, n);
1715
1709
  }
1716
1710
  function mu(t) {
1717
1711
  var e = this._name, n = this._id;
1718
- typeof t != "function" && (t = Gn(t));
1712
+ typeof t != "function" && (t = zn(t));
1719
1713
  for (var r = this._groups, i = r.length, o = [], a = [], u = 0; u < i; ++u)
1720
1714
  for (var s = r[u], l = s.length, f, c = 0; c < l; ++c)
1721
1715
  if (f = s[c]) {
1722
1716
  for (var h = t.call(f, f.__data__, c, s), d, m = X(f, n), p = 0, g = h.length; p < g; ++p)
1723
- (d = h[p]) && fe(d, e, n, p, h, m);
1717
+ (d = h[p]) && ce(d, e, n, p, h, m);
1724
1718
  o.push(h), a.push(f);
1725
1719
  }
1726
1720
  return new J(o, a, e, n);
@@ -1736,7 +1730,7 @@ function yu(t, e) {
1736
1730
  return o === a ? null : o === n && a === r ? i : i = e(n = o, r = a);
1737
1731
  };
1738
1732
  }
1739
- function sr(t) {
1733
+ function lr(t) {
1740
1734
  return function() {
1741
1735
  this.style.removeProperty(t);
1742
1736
  };
@@ -1758,13 +1752,13 @@ function xu(t, e, n) {
1758
1752
  function bu(t, e) {
1759
1753
  var n, r, i, o = "style." + e, a = "end." + o, u;
1760
1754
  return function() {
1761
- var s = W(this, t), l = s.on, f = s.value[o] == null ? u || (u = sr(e)) : void 0;
1755
+ var s = B(this, t), l = s.on, f = s.value[o] == null ? u || (u = lr(e)) : void 0;
1762
1756
  (l !== n || i !== f) && (r = (n = l).copy()).on(a, i = f), s.on = r;
1763
1757
  };
1764
1758
  }
1765
1759
  function _u(t, e, n) {
1766
- var r = (t += "") == "transform" ? Sa : ur;
1767
- return e == null ? this.styleTween(t, yu(t, r)).on("end.style." + t, sr(t)) : typeof e == "function" ? this.styleTween(t, xu(t, r, Ge(this, "style." + t, e))).each(bu(this._id, t)) : this.styleTween(t, wu(t, r, e), n).on("end.style." + t, null);
1760
+ var r = (t += "") == "transform" ? Sa : sr;
1761
+ return e == null ? this.styleTween(t, yu(t, r)).on("end.style." + t, lr(t)) : typeof e == "function" ? this.styleTween(t, xu(t, r, Le(this, "style." + t, e))).each(bu(this._id, t)) : this.styleTween(t, wu(t, r, e), n).on("end.style." + t, null);
1768
1762
  }
1769
1763
  function $u(t, e, n) {
1770
1764
  return function(r) {
@@ -1797,10 +1791,10 @@ function Mu(t) {
1797
1791
  this.textContent = e ?? "";
1798
1792
  };
1799
1793
  }
1800
- function Cu(t) {
1801
- return this.tween("text", typeof t == "function" ? Mu(Ge(this, "text", t)) : Du(t == null ? "" : t + ""));
1802
- }
1803
1794
  function Eu(t) {
1795
+ return this.tween("text", typeof t == "function" ? Mu(Le(this, "text", t)) : Du(t == null ? "" : t + ""));
1796
+ }
1797
+ function Cu(t) {
1804
1798
  return function(e) {
1805
1799
  this.textContent = t.call(this, e);
1806
1800
  };
@@ -1809,23 +1803,23 @@ function Pu(t) {
1809
1803
  var e, n;
1810
1804
  function r() {
1811
1805
  var i = t.apply(this, arguments);
1812
- return i !== n && (e = (n = i) && Eu(i)), e;
1806
+ return i !== n && (e = (n = i) && Cu(i)), e;
1813
1807
  }
1814
1808
  return r._value = t, r;
1815
1809
  }
1816
- function Tu(t) {
1810
+ function Fu(t) {
1817
1811
  var e = "text";
1818
1812
  if (arguments.length < 1) return (e = this.tween(e)) && e._value;
1819
1813
  if (t == null) return this.tween(e, null);
1820
1814
  if (typeof t != "function") throw new Error();
1821
1815
  return this.tween(e, Pu(t));
1822
1816
  }
1823
- function Fu() {
1824
- for (var t = this._name, e = this._id, n = lr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1817
+ function Tu() {
1818
+ for (var t = this._name, e = this._id, n = cr(), r = this._groups, i = r.length, o = 0; o < i; ++o)
1825
1819
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1826
1820
  if (s = a[l]) {
1827
1821
  var f = X(s, e);
1828
- fe(s, t, n, l, a, {
1822
+ ce(s, t, n, l, a, {
1829
1823
  time: f.time + f.delay + f.duration,
1830
1824
  delay: 0,
1831
1825
  duration: f.duration,
@@ -1841,7 +1835,7 @@ function Nu() {
1841
1835
  --i === 0 && o();
1842
1836
  } };
1843
1837
  n.each(function() {
1844
- var l = W(this, r), f = l.on;
1838
+ var l = B(this, r), f = l.on;
1845
1839
  f !== t && (e = (t = f).copy(), e._.cancel.push(u), e._.interrupt.push(u), e._.end.push(s)), l.on = e;
1846
1840
  }), i === 0 && o();
1847
1841
  });
@@ -1850,7 +1844,7 @@ var ku = 0;
1850
1844
  function J(t, e, n, r) {
1851
1845
  this._groups = t, this._parents = e, this._name = n, this._id = r;
1852
1846
  }
1853
- function lr() {
1847
+ function cr() {
1854
1848
  return ++ku;
1855
1849
  }
1856
1850
  var j = It.prototype;
@@ -1863,7 +1857,7 @@ J.prototype = {
1863
1857
  filter: uu,
1864
1858
  merge: su,
1865
1859
  selection: vu,
1866
- transition: Fu,
1860
+ transition: Tu,
1867
1861
  call: j.call,
1868
1862
  nodes: j.nodes,
1869
1863
  node: j.node,
@@ -1875,8 +1869,8 @@ J.prototype = {
1875
1869
  attrTween: Ka,
1876
1870
  style: _u,
1877
1871
  styleTween: Su,
1878
- text: Cu,
1879
- textTween: Tu,
1872
+ text: Eu,
1873
+ textTween: Fu,
1880
1874
  remove: du,
1881
1875
  tween: La,
1882
1876
  delay: Qa,
@@ -1886,15 +1880,15 @@ J.prototype = {
1886
1880
  end: Nu,
1887
1881
  [Symbol.iterator]: j[Symbol.iterator]
1888
1882
  };
1889
- function Ou(t) {
1883
+ function Iu(t) {
1890
1884
  return ((t *= 2) <= 1 ? t * t * t : (t -= 2) * t * t + 2) / 2;
1891
1885
  }
1892
- var Iu = {
1886
+ var Ou = {
1893
1887
  time: null,
1894
1888
  // Set on use.
1895
1889
  delay: 0,
1896
1890
  duration: 250,
1897
- ease: Ou
1891
+ ease: Iu
1898
1892
  };
1899
1893
  function Ru(t, e) {
1900
1894
  for (var n; !(n = t.__transition) || !(n = n[e]); )
@@ -1904,18 +1898,18 @@ function Ru(t, e) {
1904
1898
  }
1905
1899
  function Lu(t) {
1906
1900
  var e, n;
1907
- t instanceof J ? (e = t._id, t = t._name) : (e = lr(), (n = Iu).time = Le(), t = t == null ? null : t + "");
1901
+ t instanceof J ? (e = t._id, t = t._name) : (e = cr(), (n = Ou).time = Oe(), t = t == null ? null : t + "");
1908
1902
  for (var r = this._groups, i = r.length, o = 0; o < i; ++o)
1909
1903
  for (var a = r[o], u = a.length, s, l = 0; l < u; ++l)
1910
- (s = a[l]) && fe(s, t, e, l, a, n || Ru(s, e));
1904
+ (s = a[l]) && ce(s, t, e, l, a, n || Ru(s, e));
1911
1905
  return new J(r, this._parents, t, e);
1912
1906
  }
1913
- It.prototype.interrupt = Oa;
1907
+ It.prototype.interrupt = Ia;
1914
1908
  It.prototype.transition = Lu;
1915
1909
  function Vu(t) {
1916
1910
  return Math.abs(t = Math.round(t)) >= 1e21 ? t.toLocaleString("en").replace(/,/g, "") : t.toString(10);
1917
1911
  }
1918
- function ae(t, e) {
1912
+ function oe(t, e) {
1919
1913
  if ((n = (t = e ? t.toExponential(e - 1) : t.toExponential()).indexOf("e")) < 0) return null;
1920
1914
  var n, r = t.slice(0, n);
1921
1915
  return [
@@ -1924,7 +1918,7 @@ function ae(t, e) {
1924
1918
  ];
1925
1919
  }
1926
1920
  function wt(t) {
1927
- return t = ae(Math.abs(t)), t ? t[1] : NaN;
1921
+ return t = oe(Math.abs(t)), t ? t[1] : NaN;
1928
1922
  }
1929
1923
  function Gu(t, e) {
1930
1924
  return function(n, r) {
@@ -1941,10 +1935,10 @@ function zu(t) {
1941
1935
  };
1942
1936
  }
1943
1937
  var Hu = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
1944
- function ue(t) {
1938
+ function ae(t) {
1945
1939
  if (!(e = Hu.exec(t))) throw new Error("invalid format: " + t);
1946
1940
  var e;
1947
- return new ze({
1941
+ return new Ve({
1948
1942
  fill: e[1],
1949
1943
  align: e[2],
1950
1944
  sign: e[3],
@@ -1957,11 +1951,11 @@ function ue(t) {
1957
1951
  type: e[10]
1958
1952
  });
1959
1953
  }
1960
- ue.prototype = ze.prototype;
1961
- function ze(t) {
1954
+ ae.prototype = Ve.prototype;
1955
+ function Ve(t) {
1962
1956
  this.fill = t.fill === void 0 ? " " : t.fill + "", this.align = t.align === void 0 ? ">" : t.align + "", this.sign = t.sign === void 0 ? "-" : t.sign + "", this.symbol = t.symbol === void 0 ? "" : t.symbol + "", this.zero = !!t.zero, this.width = t.width === void 0 ? void 0 : +t.width, this.comma = !!t.comma, this.precision = t.precision === void 0 ? void 0 : +t.precision, this.trim = !!t.trim, this.type = t.type === void 0 ? "" : t.type + "";
1963
1957
  }
1964
- ze.prototype.toString = function() {
1958
+ Ve.prototype.toString = function() {
1965
1959
  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;
1966
1960
  };
1967
1961
  function Uu(t) {
@@ -1980,20 +1974,20 @@ function Uu(t) {
1980
1974
  }
1981
1975
  return r > 0 ? t.slice(0, r) + t.slice(i + 1) : t;
1982
1976
  }
1983
- var cr;
1977
+ var fr;
1984
1978
  function Xu(t, e) {
1985
- var n = ae(t, e);
1979
+ var n = oe(t, e);
1986
1980
  if (!n) return t + "";
1987
- var r = n[0], i = n[1], o = i - (cr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1988
- return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + ae(t, Math.max(0, e + o - 1))[0];
1981
+ var r = n[0], i = n[1], o = i - (fr = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, a = r.length;
1982
+ return o === a ? r : o > a ? r + new Array(o - a + 1).join("0") : o > 0 ? r.slice(0, o) + "." + r.slice(o) : "0." + new Array(1 - o).join("0") + oe(t, Math.max(0, e + o - 1))[0];
1989
1983
  }
1990
- function xn(t, e) {
1991
- var n = ae(t, e);
1984
+ function wn(t, e) {
1985
+ var n = oe(t, e);
1992
1986
  if (!n) return t + "";
1993
1987
  var r = n[0], i = n[1];
1994
1988
  return i < 0 ? "0." + new Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + new Array(i - r.length + 2).join("0");
1995
1989
  }
1996
- const bn = {
1990
+ const xn = {
1997
1991
  "%": (t, e) => (t * 100).toFixed(e),
1998
1992
  b: (t) => Math.round(t).toString(2),
1999
1993
  c: (t) => t + "",
@@ -2002,65 +1996,65 @@ const bn = {
2002
1996
  f: (t, e) => t.toFixed(e),
2003
1997
  g: (t, e) => t.toPrecision(e),
2004
1998
  o: (t) => Math.round(t).toString(8),
2005
- p: (t, e) => xn(t * 100, e),
2006
- r: xn,
1999
+ p: (t, e) => wn(t * 100, e),
2000
+ r: wn,
2007
2001
  s: Xu,
2008
2002
  X: (t) => Math.round(t).toString(16).toUpperCase(),
2009
2003
  x: (t) => Math.round(t).toString(16)
2010
2004
  };
2011
- function _n(t) {
2005
+ function bn(t) {
2012
2006
  return t;
2013
2007
  }
2014
- var $n = Array.prototype.map, An = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2008
+ var _n = Array.prototype.map, $n = ["y", "z", "a", "f", "p", "n", "µ", "m", "", "k", "M", "G", "T", "P", "E", "Z", "Y"];
2015
2009
  function Yu(t) {
2016
- var e = t.grouping === void 0 || t.thousands === void 0 ? _n : Gu($n.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 + "", o = t.numerals === void 0 ? _n : zu($n.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", s = t.nan === void 0 ? "NaN" : t.nan + "";
2010
+ var e = t.grouping === void 0 || t.thousands === void 0 ? bn : Gu(_n.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 + "", o = t.numerals === void 0 ? bn : zu(_n.call(t.numerals, String)), a = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", s = t.nan === void 0 ? "NaN" : t.nan + "";
2017
2011
  function l(c) {
2018
- c = ue(c);
2019
- var h = c.fill, d = c.align, m = c.sign, p = c.symbol, g = c.zero, _ = c.width, S = c.comma, b = c.precision, D = c.trim, w = c.type;
2020
- w === "n" ? (S = !0, w = "g") : bn[w] || (b === void 0 && (b = 12), D = !0, w = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
2021
- var M = p === "$" ? n : p === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", v = p === "$" ? r : /[%p]/.test(w) ? a : "", $ = bn[w], x = /[defgprs%]/.test(w);
2022
- b = b === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
2023
- function T(y) {
2024
- var N = M, C = v, z, ht, dt;
2025
- if (w === "c")
2026
- C = $(y) + C, y = "";
2012
+ c = ae(c);
2013
+ var h = c.fill, d = c.align, m = c.sign, p = c.symbol, g = c.zero, b = c.width, D = c.comma, x = c.precision, M = c.trim, y = c.type;
2014
+ y === "n" ? (D = !0, y = "g") : xn[y] || (x === void 0 && (x = 12), M = !0, y = "g"), (g || h === "0" && d === "=") && (g = !0, h = "0", d = "=");
2015
+ var P = p === "$" ? n : p === "#" && /[boxX]/.test(y) ? "0" + y.toLowerCase() : "", w = p === "$" ? r : /[%p]/.test(y) ? a : "", _ = xn[y], $ = /[defgprs%]/.test(y);
2016
+ x = x === void 0 ? 6 : /[gprs]/.test(y) ? Math.max(1, Math.min(21, x)) : Math.max(0, Math.min(20, x));
2017
+ function A(v) {
2018
+ var F = P, T = w, z, tt, dt;
2019
+ if (y === "c")
2020
+ T = _(v) + T, v = "";
2027
2021
  else {
2028
- y = +y;
2029
- var B = y < 0 || 1 / y < 0;
2030
- if (y = isNaN(y) ? s : $(Math.abs(y), b), D && (y = Uu(y)), B && +y == 0 && m !== "+" && (B = !1), N = (B ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + N, C = (w === "s" ? An[8 + cr / 3] : "") + C + (B && m === "(" ? ")" : ""), x) {
2031
- for (z = -1, ht = y.length; ++z < ht; )
2032
- if (dt = y.charCodeAt(z), 48 > dt || dt > 57) {
2033
- C = (dt === 46 ? i + y.slice(z + 1) : y.slice(z)) + C, y = y.slice(0, z);
2022
+ v = +v;
2023
+ var W = v < 0 || 1 / v < 0;
2024
+ if (v = isNaN(v) ? s : _(Math.abs(v), x), M && (v = Uu(v)), W && +v == 0 && m !== "+" && (W = !1), F = (W ? m === "(" ? m : u : m === "-" || m === "(" ? "" : m) + F, T = (y === "s" ? $n[8 + fr / 3] : "") + T + (W && m === "(" ? ")" : ""), $) {
2025
+ for (z = -1, tt = v.length; ++z < tt; )
2026
+ if (dt = v.charCodeAt(z), 48 > dt || dt > 57) {
2027
+ T = (dt === 46 ? i + v.slice(z + 1) : v.slice(z)) + T, v = v.slice(0, z);
2034
2028
  break;
2035
2029
  }
2036
2030
  }
2037
2031
  }
2038
- S && !g && (y = e(y, 1 / 0));
2039
- var it = N.length + y.length + C.length, q = it < _ ? new Array(_ - it + 1).join(h) : "";
2040
- switch (S && g && (y = e(q + y, q.length ? _ - C.length : 1 / 0), q = ""), d) {
2032
+ D && !g && (v = e(v, 1 / 0));
2033
+ var ot = F.length + v.length + T.length, q = ot < b ? new Array(b - ot + 1).join(h) : "";
2034
+ switch (D && g && (v = e(q + v, q.length ? b - T.length : 1 / 0), q = ""), d) {
2041
2035
  case "<":
2042
- y = N + y + C + q;
2036
+ v = F + v + T + q;
2043
2037
  break;
2044
2038
  case "=":
2045
- y = N + q + y + C;
2039
+ v = F + q + v + T;
2046
2040
  break;
2047
2041
  case "^":
2048
- y = q.slice(0, it = q.length >> 1) + N + y + C + q.slice(it);
2042
+ v = q.slice(0, ot = q.length >> 1) + F + v + T + q.slice(ot);
2049
2043
  break;
2050
2044
  default:
2051
- y = q + N + y + C;
2045
+ v = q + F + v + T;
2052
2046
  break;
2053
2047
  }
2054
- return o(y);
2048
+ return o(v);
2055
2049
  }
2056
- return T.toString = function() {
2050
+ return A.toString = function() {
2057
2051
  return c + "";
2058
- }, T;
2052
+ }, A;
2059
2053
  }
2060
2054
  function f(c, h) {
2061
- var d = l((c = ue(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(wt(h) / 3))) * 3, p = Math.pow(10, -m), g = An[8 + m / 3];
2062
- return function(_) {
2063
- return d(p * _) + g;
2055
+ var d = l((c = ae(c), c.type = "f", c)), m = Math.max(-8, Math.min(8, Math.floor(wt(h) / 3))) * 3, p = Math.pow(10, -m), g = $n[8 + m / 3];
2056
+ return function(b) {
2057
+ return d(p * b) + g;
2064
2058
  };
2065
2059
  }
2066
2060
  return {
@@ -2068,16 +2062,16 @@ function Yu(t) {
2068
2062
  formatPrefix: f
2069
2063
  };
2070
2064
  }
2071
- var Xt, He, fr;
2072
- Wu({
2065
+ var Ut, Ge, hr;
2066
+ Bu({
2073
2067
  thousands: ",",
2074
2068
  grouping: [3],
2075
2069
  currency: ["$", ""]
2076
2070
  });
2077
- function Wu(t) {
2078
- return Xt = Yu(t), He = Xt.format, fr = Xt.formatPrefix, Xt;
2079
- }
2080
2071
  function Bu(t) {
2072
+ return Ut = Yu(t), Ge = Ut.format, hr = Ut.formatPrefix, Ut;
2073
+ }
2074
+ function Wu(t) {
2081
2075
  return Math.max(0, -wt(Math.abs(t)));
2082
2076
  }
2083
2077
  function qu(t, e) {
@@ -2086,7 +2080,7 @@ function qu(t, e) {
2086
2080
  function ju(t, e) {
2087
2081
  return t = Math.abs(t), e = Math.abs(e) - t, Math.max(0, wt(e) - wt(t)) + 1;
2088
2082
  }
2089
- function he(t, e) {
2083
+ function fe(t, e) {
2090
2084
  switch (arguments.length) {
2091
2085
  case 0:
2092
2086
  break;
@@ -2099,20 +2093,20 @@ function he(t, e) {
2099
2093
  }
2100
2094
  return this;
2101
2095
  }
2102
- const Sn = Symbol("implicit");
2103
- function hr() {
2104
- var t = new nn(), e = [], n = [], r = Sn;
2096
+ const An = Symbol("implicit");
2097
+ function dr() {
2098
+ var t = new en(), e = [], n = [], r = An;
2105
2099
  function i(o) {
2106
2100
  let a = t.get(o);
2107
2101
  if (a === void 0) {
2108
- if (r !== Sn) return r;
2102
+ if (r !== An) return r;
2109
2103
  t.set(o, a = e.push(o) - 1);
2110
2104
  }
2111
2105
  return n[a % n.length];
2112
2106
  }
2113
2107
  return i.domain = function(o) {
2114
2108
  if (!arguments.length) return e.slice();
2115
- e = [], t = new nn();
2109
+ e = [], t = new en();
2116
2110
  for (const a of o)
2117
2111
  t.has(a) || t.set(a, e.push(a) - 1);
2118
2112
  return i;
@@ -2121,17 +2115,17 @@ function hr() {
2121
2115
  }, i.unknown = function(o) {
2122
2116
  return arguments.length ? (r = o, i) : r;
2123
2117
  }, i.copy = function() {
2124
- return hr(e, n).unknown(r);
2125
- }, he.apply(i, arguments), i;
2118
+ return dr(e, n).unknown(r);
2119
+ }, fe.apply(i, arguments), i;
2126
2120
  }
2127
- function dr() {
2128
- var t = hr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2121
+ function pr() {
2122
+ var t = dr().unknown(void 0), e = t.domain, n = t.range, r = 0, i = 1, o, a, u = !1, s = 0, l = 0, f = 0.5;
2129
2123
  delete t.unknown;
2130
2124
  function c() {
2131
2125
  var h = e().length, d = i < r, m = d ? i : r, p = d ? r : i;
2132
2126
  o = (p - m) / Math.max(1, h - s + l * 2), u && (o = Math.floor(o)), m += (p - m - o * (h - s)) * f, a = o * (1 - s), u && (m = Math.round(m), a = Math.round(a));
2133
- var g = vi(h).map(function(_) {
2134
- return m + o * _;
2127
+ var g = vi(h).map(function(b) {
2128
+ return m + o * b;
2135
2129
  });
2136
2130
  return n(d ? g.reverse() : g);
2137
2131
  }
@@ -2156,17 +2150,17 @@ function dr() {
2156
2150
  }, t.align = function(h) {
2157
2151
  return arguments.length ? (f = Math.max(0, Math.min(1, h)), c()) : f;
2158
2152
  }, t.copy = function() {
2159
- return dr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2160
- }, he.apply(c(), arguments);
2153
+ return pr(e(), [r, i]).round(u).paddingInner(s).paddingOuter(l).align(f);
2154
+ }, fe.apply(c(), arguments);
2161
2155
  }
2162
- function pr(t) {
2156
+ function mr(t) {
2163
2157
  var e = t.copy;
2164
2158
  return t.padding = t.paddingOuter, delete t.paddingInner, delete t.paddingOuter, t.copy = function() {
2165
- return pr(e());
2159
+ return mr(e());
2166
2160
  }, t;
2167
2161
  }
2168
2162
  function Ku() {
2169
- return pr(dr.apply(null, arguments).paddingInner(1));
2163
+ return mr(pr.apply(null, arguments).paddingInner(1));
2170
2164
  }
2171
2165
  function Zu(t) {
2172
2166
  return function() {
@@ -2176,11 +2170,11 @@ function Zu(t) {
2176
2170
  function Ju(t) {
2177
2171
  return +t;
2178
2172
  }
2179
- var Dn = [0, 1];
2173
+ var Sn = [0, 1];
2180
2174
  function pt(t) {
2181
2175
  return t;
2182
2176
  }
2183
- function Me(t, e) {
2177
+ function Se(t, e) {
2184
2178
  return (e -= t = +t) ? function(n) {
2185
2179
  return (n - t) / e;
2186
2180
  } : Zu(isNaN(e) ? NaN : 0.5);
@@ -2193,16 +2187,16 @@ function Qu(t, e) {
2193
2187
  }
2194
2188
  function ts(t, e, n) {
2195
2189
  var r = t[0], i = t[1], o = e[0], a = e[1];
2196
- return i < r ? (r = Me(i, r), o = n(a, o)) : (r = Me(r, i), o = n(o, a)), function(u) {
2190
+ return i < r ? (r = Se(i, r), o = n(a, o)) : (r = Se(r, i), o = n(o, a)), function(u) {
2197
2191
  return o(r(u));
2198
2192
  };
2199
2193
  }
2200
2194
  function es(t, e, n) {
2201
2195
  var r = Math.min(t.length, e.length) - 1, i = new Array(r), o = new Array(r), a = -1;
2202
2196
  for (t[r] < t[0] && (t = t.slice().reverse(), e = e.slice().reverse()); ++a < r; )
2203
- i[a] = Me(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
2197
+ i[a] = Se(t[a], t[a + 1]), o[a] = n(e[a], e[a + 1]);
2204
2198
  return function(u) {
2205
- var s = Rn(t, u, 1, r) - 1;
2199
+ var s = Ln(t, u, 1, r) - 1;
2206
2200
  return o[s](i[s](u));
2207
2201
  };
2208
2202
  }
@@ -2210,7 +2204,7 @@ function ns(t, e) {
2210
2204
  return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown());
2211
2205
  }
2212
2206
  function rs() {
2213
- var t = Dn, e = Dn, n = Re, r, i, o, a = pt, u, s, l;
2207
+ var t = Sn, e = Sn, n = Ie, r, i, o, a = pt, u, s, l;
2214
2208
  function f() {
2215
2209
  var h = Math.min(t.length, e.length);
2216
2210
  return a !== pt && (a = Qu(t[0], t[h - 1])), u = h > 2 ? es : ts, s = l = null, c;
@@ -2241,10 +2235,10 @@ function is() {
2241
2235
  }
2242
2236
  function os(t, e, n, r) {
2243
2237
  var i = gi(t, e, n), o;
2244
- switch (r = ue(r ?? ",f"), r.type) {
2238
+ switch (r = ae(r ?? ",f"), r.type) {
2245
2239
  case "s": {
2246
2240
  var a = Math.max(Math.abs(t), Math.abs(e));
2247
- return r.precision == null && !isNaN(o = qu(i, a)) && (r.precision = o), fr(r, a);
2241
+ return r.precision == null && !isNaN(o = qu(i, a)) && (r.precision = o), hr(r, a);
2248
2242
  }
2249
2243
  case "":
2250
2244
  case "e":
@@ -2256,13 +2250,13 @@ function os(t, e, n, r) {
2256
2250
  }
2257
2251
  case "f":
2258
2252
  case "%": {
2259
- r.precision == null && !isNaN(o = Bu(i)) && (r.precision = o - (r.type === "%") * 2);
2253
+ r.precision == null && !isNaN(o = Wu(i)) && (r.precision = o - (r.type === "%") * 2);
2260
2254
  break;
2261
2255
  }
2262
2256
  }
2263
- return He(r);
2257
+ return Ge(r);
2264
2258
  }
2265
- function mr(t) {
2259
+ function gr(t) {
2266
2260
  var e = t.domain;
2267
2261
  return t.ticks = function(n) {
2268
2262
  var r = e();
@@ -2274,7 +2268,7 @@ function mr(t) {
2274
2268
  n == null && (n = 10);
2275
2269
  var r = e(), i = 0, o = r.length - 1, a = r[i], u = r[o], s, l, f = 10;
2276
2270
  for (u < a && (l = a, a = u, u = l, l = i, i = o, o = l); f-- > 0; ) {
2277
- if (l = we(a, u, n), l === s)
2271
+ if (l = ve(a, u, n), l === s)
2278
2272
  return r[i] = a, r[o] = u, e(r);
2279
2273
  if (l > 0)
2280
2274
  a = Math.floor(a / l) * l, u = Math.ceil(u / l) * l;
@@ -2287,16 +2281,16 @@ function mr(t) {
2287
2281
  return t;
2288
2282
  }, t;
2289
2283
  }
2290
- function gr() {
2284
+ function vr() {
2291
2285
  var t = is();
2292
2286
  return t.copy = function() {
2293
- return ns(t, gr());
2294
- }, he.apply(t, arguments), mr(t);
2287
+ return ns(t, vr());
2288
+ }, fe.apply(t, arguments), gr(t);
2295
2289
  }
2296
- function vr() {
2290
+ function yr() {
2297
2291
  var t = 0, e = 1, n = 1, r = [0.5], i = [0, 1], o;
2298
2292
  function a(s) {
2299
- return s != null && s <= s ? i[Rn(r, s, 0, n)] : o;
2293
+ return s != null && s <= s ? i[Ln(r, s, 0, n)] : o;
2300
2294
  }
2301
2295
  function u() {
2302
2296
  var s = -1;
@@ -2315,19 +2309,19 @@ function vr() {
2315
2309
  }, a.thresholds = function() {
2316
2310
  return r.slice();
2317
2311
  }, a.copy = function() {
2318
- return vr().domain([t, e]).range(i).unknown(o);
2319
- }, he.apply(mr(a), arguments);
2312
+ return yr().domain([t, e]).range(i).unknown(o);
2313
+ }, fe.apply(gr(a), arguments);
2320
2314
  }
2321
- function Pt(t, e, n) {
2315
+ function Ct(t, e, n) {
2322
2316
  this.k = t, this.x = e, this.y = n;
2323
2317
  }
2324
- Pt.prototype = {
2325
- constructor: Pt,
2318
+ Ct.prototype = {
2319
+ constructor: Ct,
2326
2320
  scale: function(t) {
2327
- return t === 1 ? this : new Pt(this.k * t, this.x, this.y);
2321
+ return t === 1 ? this : new Ct(this.k * t, this.x, this.y);
2328
2322
  },
2329
2323
  translate: function(t, e) {
2330
- return t === 0 & e === 0 ? this : new Pt(this.k, this.x + this.k * t, this.y + this.k * e);
2324
+ return t === 0 & e === 0 ? this : new Ct(this.k, this.x + this.k * t, this.y + this.k * e);
2331
2325
  },
2332
2326
  apply: function(t) {
2333
2327
  return [t[0] * this.k + this.x, t[1] * this.k + this.y];
@@ -2357,14 +2351,14 @@ Pt.prototype = {
2357
2351
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
2358
2352
  }
2359
2353
  };
2360
- Pt.prototype;
2354
+ Ct.prototype;
2361
2355
  function Z(t) {
2362
2356
  return Object.prototype.toString.call(t) === "[object Object]";
2363
2357
  }
2364
- function Il(t) {
2358
+ function Rl(t) {
2365
2359
  return !!t && !t.nodename && t.constructor != String && t.constructor != RegExp && t.constructor != Array && /function/i.test(t + "");
2366
2360
  }
2367
- function ot(t, e) {
2361
+ function at(t, e) {
2368
2362
  if (Z(t) === !1 || Z(e) === !1)
2369
2363
  return Object.assign({}, e);
2370
2364
  const n = (r, i) => {
@@ -2379,7 +2373,7 @@ function ot(t, e) {
2379
2373
  };
2380
2374
  return n(t, e);
2381
2375
  }
2382
- function Rl(t = 0) {
2376
+ function Ll(t = 0) {
2383
2377
  try {
2384
2378
  let e = t.toString().split(".");
2385
2379
  return e[0] = e[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","), e.join(".");
@@ -2387,54 +2381,55 @@ function Rl(t = 0) {
2387
2381
  console.error(e);
2388
2382
  }
2389
2383
  }
2390
- function Ll(t, e) {
2391
- return e instanceof Function ? e(t) : He(e)(t);
2384
+ function Vl(t, e) {
2385
+ return e instanceof Function ? e(t) : Ge(e)(t);
2392
2386
  }
2393
- function Ue(t, e, n) {
2394
- return `${t}_${e}_${n}`;
2387
+ function ze(t, e, n, r) {
2388
+ let i = `${t}_${e}_${n}`;
2389
+ return r != null && (i += `_${r}`), i;
2395
2390
  }
2396
- function yr(t, e) {
2391
+ function wr(t, e) {
2397
2392
  return `${t}_series${e}`;
2398
2393
  }
2399
2394
  function as(t, e) {
2400
2395
  return `${t}_group${e}`;
2401
2396
  }
2402
- function us(t, e) {
2403
- const n = e.grid.seriesType === "row" ? e.grid.rowLabels : e.grid.columnLabels;
2404
- return t.map((r, i) => n[i] != null ? n[i] : yr("grid", i));
2397
+ function us({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2398
+ const i = e.grid.seriesType === "row" ? e.grid.rowLabels : e.grid.columnLabels;
2399
+ return t.map((o, a) => i[a] != null ? i[a] : wr(`${n}_grid${r}`, a));
2405
2400
  }
2406
- function ss(t, e) {
2401
+ function ss({ transposedDataGrid: t, dataFormatter: e, chartType: n = "grid", gridIndex: r = 0 }) {
2407
2402
  if (t[0] == null)
2408
2403
  return [];
2409
- const n = e.grid.seriesType === "row" ? e.grid.columnLabels : e.grid.rowLabels;
2410
- return t[0].map((r, i) => n[i] != null ? n[i] : as("grid", i));
2404
+ const i = e.grid.seriesType === "row" ? e.grid.columnLabels : e.grid.rowLabels;
2405
+ return t[0].map((o, a) => i[a] != null ? i[a] : as(`${n}_grid${r}`, a));
2411
2406
  }
2412
- function Lt(t) {
2407
+ function Rt(t) {
2413
2408
  const e = [0, 0];
2414
2409
  return t.length ? t.reduce((r, i) => [
2415
2410
  i < r[0] ? i : r[0],
2416
2411
  i > r[1] ? i : r[1]
2417
2412
  ], [t[0], t[0]]) : e;
2418
2413
  }
2419
- function Ce(t) {
2414
+ function De(t) {
2420
2415
  const e = t.filter((n) => n != null && n.value != null).map((n) => n.value);
2421
- return Lt(e);
2416
+ return Rt(e);
2422
2417
  }
2423
- function Vl(t) {
2418
+ function Gl(t) {
2424
2419
  const n = (t[0] && Array.isArray(t[0]) ? t.flat() : t).filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2425
- return Lt(n);
2420
+ return Rt(n);
2426
2421
  }
2427
- function Mn(t) {
2422
+ function Dn(t) {
2428
2423
  const n = t.flat().filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2429
- return Lt(n);
2424
+ return Rt(n);
2430
2425
  }
2431
- function Gl(t) {
2426
+ function zl(t) {
2432
2427
  const n = t.flat().flat().filter((r) => (r == null || Z(r) && r.value == null) === !1).map((r) => typeof r == "number" ? r : r.value);
2433
- return Lt(n);
2428
+ return Rt(n);
2434
2429
  }
2435
- function zl(t, e = 2) {
2430
+ function Hl(t, e = 2) {
2436
2431
  const r = t.flat().filter((i, o) => o == e).filter((i) => (i == null || Z(i) && i.value == null) === !1).map((i) => typeof i == "number" ? i : i.value);
2437
- return Lt(r);
2432
+ return Rt(r);
2438
2433
  }
2439
2434
  function ls(t, e) {
2440
2435
  if (t === "row")
@@ -2445,6 +2440,9 @@ function ls(t, e) {
2445
2440
  i[a][o] = e[o][a];
2446
2441
  return i;
2447
2442
  }
2443
+ function He(t, e) {
2444
+ return t < e.colors[e.colorScheme].series.length ? e.colors[e.colorScheme].series[t] : e.colors[e.colorScheme].series[t % e.colors[e.colorScheme].series.length];
2445
+ }
2448
2446
  function cs(t, e) {
2449
2447
  const n = /* @__PURE__ */ new Map();
2450
2448
  let r = Object.assign([], t), i = [];
@@ -2482,13 +2480,14 @@ const fs = (t) => {
2482
2480
  } else
2483
2481
  return (s, l, f) => s.length;
2484
2482
  })(n.sort != null), a = (u, s, l, f, c) => {
2485
- const h = Ue(n.type, s, l), d = n.seriesLabels[s] || yr("series", s), m = n.colorsPredicate(u, s, l, t), p = n.visibleFilter(u, s, l, t);
2483
+ const h = ze(n.type, s, l), d = n.seriesLabels[s] || wr("series", s), m = He(s, r), p = n.visibleFilter(u, s, l, t);
2486
2484
  return typeof u == "number" ? {
2487
2485
  id: h,
2488
2486
  index: f,
2489
2487
  sortedIndex: c,
2490
2488
  label: h,
2491
- tooltipContent: n.tooltipContentFormat(u, s, l, t),
2489
+ description: "",
2490
+ // tooltipContent: dataFormatter.tooltipContentFormat(detailData, rowIndex, columnIndex, context),
2492
2491
  data: {},
2493
2492
  value: u,
2494
2493
  // valueLabel: formatValueToLabel(detailData, dataFormatter.valueFormat),
@@ -2501,7 +2500,8 @@ const fs = (t) => {
2501
2500
  index: f,
2502
2501
  sortedIndex: c,
2503
2502
  label: u.label ? u.label : h,
2504
- tooltipContent: u.tooltipContent ? u.tooltipContent : n.tooltipContentFormat(u, s, l, t),
2503
+ description: u.description,
2504
+ // tooltipContent: detailData.tooltipContent ? detailData.tooltipContent : dataFormatter.tooltipContentFormat(detailData, rowIndex, columnIndex, context),
2505
2505
  data: u.data ?? {},
2506
2506
  value: u.value,
2507
2507
  // valueLabel: formatValueToLabel(detailData.value, dataFormatter.valueFormat),
@@ -2527,17 +2527,17 @@ const fs = (t) => {
2527
2527
  }
2528
2528
  return i;
2529
2529
  };
2530
- var Ee = function(t, e) {
2531
- return Ee = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2530
+ var Me = function(t, e) {
2531
+ return Me = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
2532
2532
  n.__proto__ = r;
2533
2533
  } || function(n, r) {
2534
2534
  for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
2535
- }, Ee(t, e);
2535
+ }, Me(t, e);
2536
2536
  };
2537
2537
  function Q(t, e) {
2538
2538
  if (typeof e != "function" && e !== null)
2539
2539
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
2540
- Ee(t, e);
2540
+ Me(t, e);
2541
2541
  function n() {
2542
2542
  this.constructor = t;
2543
2543
  }
@@ -2570,7 +2570,7 @@ function hs(t, e, n, r) {
2570
2570
  l((r = r.apply(t, e || [])).next());
2571
2571
  });
2572
2572
  }
2573
- function wr(t, e) {
2573
+ function xr(t, e) {
2574
2574
  var n = { label: 0, sent: function() {
2575
2575
  if (o[0] & 1) throw o[1];
2576
2576
  return o[1];
@@ -2640,7 +2640,7 @@ function xt(t) {
2640
2640
  };
2641
2641
  throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
2642
2642
  }
2643
- function nt(t, e) {
2643
+ function rt(t, e) {
2644
2644
  var n = typeof Symbol == "function" && t[Symbol.iterator];
2645
2645
  if (!n) return t;
2646
2646
  var r = n.call(t), i, o = [], a;
@@ -2657,7 +2657,7 @@ function nt(t, e) {
2657
2657
  }
2658
2658
  return o;
2659
2659
  }
2660
- function rt(t, e, n) {
2660
+ function it(t, e, n) {
2661
2661
  if (n || arguments.length === 2) for (var r = 0, i = e.length, o; r < i; r++)
2662
2662
  (o || !(r in e)) && (o || (o = Array.prototype.slice.call(e, 0, r)), o[r] = e[r]);
2663
2663
  return t.concat(o || Array.prototype.slice.call(e));
@@ -2678,8 +2678,8 @@ function ds(t, e, n) {
2678
2678
  }
2679
2679
  function u(d, m) {
2680
2680
  r[d] && (i[d] = function(p) {
2681
- return new Promise(function(g, _) {
2682
- o.push([d, p, g, _]) > 1 || s(d, p);
2681
+ return new Promise(function(g, b) {
2682
+ o.push([d, p, g, b]) > 1 || s(d, p);
2683
2683
  });
2684
2684
  }, m && (i[d] = m(i[d])));
2685
2685
  }
@@ -2722,16 +2722,16 @@ function ps(t) {
2722
2722
  }, a);
2723
2723
  }
2724
2724
  }
2725
- function F(t) {
2725
+ function N(t) {
2726
2726
  return typeof t == "function";
2727
2727
  }
2728
- function Xe(t) {
2728
+ function Ue(t) {
2729
2729
  var e = function(r) {
2730
2730
  Error.call(r), r.stack = new Error().stack;
2731
2731
  }, n = t(e);
2732
2732
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
2733
2733
  }
2734
- var me = Xe(function(t) {
2734
+ var pe = Ue(function(t) {
2735
2735
  return function(n) {
2736
2736
  t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
2737
2737
  ` + n.map(function(r, i) {
@@ -2740,13 +2740,13 @@ var me = Xe(function(t) {
2740
2740
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
2741
2741
  };
2742
2742
  });
2743
- function se(t, e) {
2743
+ function ue(t, e) {
2744
2744
  if (t) {
2745
2745
  var n = t.indexOf(e);
2746
2746
  0 <= n && t.splice(n, 1);
2747
2747
  }
2748
2748
  }
2749
- var Vt = function() {
2749
+ var Lt = function() {
2750
2750
  function t(e) {
2751
2751
  this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
2752
2752
  }
@@ -2774,11 +2774,11 @@ var Vt = function() {
2774
2774
  else
2775
2775
  a.remove(this);
2776
2776
  var f = this.initialTeardown;
2777
- if (F(f))
2777
+ if (N(f))
2778
2778
  try {
2779
2779
  f();
2780
2780
  } catch (p) {
2781
- o = p instanceof me ? p.errors : [p];
2781
+ o = p instanceof pe ? p.errors : [p];
2782
2782
  }
2783
2783
  var c = this._finalizers;
2784
2784
  if (c) {
@@ -2787,9 +2787,9 @@ var Vt = function() {
2787
2787
  for (var h = xt(c), d = h.next(); !d.done; d = h.next()) {
2788
2788
  var m = d.value;
2789
2789
  try {
2790
- Cn(m);
2790
+ Mn(m);
2791
2791
  } catch (p) {
2792
- o = o ?? [], p instanceof me ? o = rt(rt([], nt(o)), nt(p.errors)) : o.push(p);
2792
+ o = o ?? [], p instanceof pe ? o = it(it([], rt(o)), rt(p.errors)) : o.push(p);
2793
2793
  }
2794
2794
  }
2795
2795
  } catch (p) {
@@ -2803,13 +2803,13 @@ var Vt = function() {
2803
2803
  }
2804
2804
  }
2805
2805
  if (o)
2806
- throw new me(o);
2806
+ throw new pe(o);
2807
2807
  }
2808
2808
  }, t.prototype.add = function(e) {
2809
2809
  var n;
2810
2810
  if (e && e !== this)
2811
2811
  if (this.closed)
2812
- Cn(e);
2812
+ Mn(e);
2813
2813
  else {
2814
2814
  if (e instanceof t) {
2815
2815
  if (e.closed || e._hasParent(this))
@@ -2826,57 +2826,57 @@ var Vt = function() {
2826
2826
  this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
2827
2827
  }, t.prototype._removeParent = function(e) {
2828
2828
  var n = this._parentage;
2829
- n === e ? this._parentage = null : Array.isArray(n) && se(n, e);
2829
+ n === e ? this._parentage = null : Array.isArray(n) && ue(n, e);
2830
2830
  }, t.prototype.remove = function(e) {
2831
2831
  var n = this._finalizers;
2832
- n && se(n, e), e instanceof t && e._removeParent(this);
2832
+ n && ue(n, e), e instanceof t && e._removeParent(this);
2833
2833
  }, t.EMPTY = function() {
2834
2834
  var e = new t();
2835
2835
  return e.closed = !0, e;
2836
2836
  }(), t;
2837
- }(), xr = Vt.EMPTY;
2838
- function br(t) {
2839
- return t instanceof Vt || t && "closed" in t && F(t.remove) && F(t.add) && F(t.unsubscribe);
2837
+ }(), br = Lt.EMPTY;
2838
+ function _r(t) {
2839
+ return t instanceof Lt || t && "closed" in t && N(t.remove) && N(t.add) && N(t.unsubscribe);
2840
2840
  }
2841
- function Cn(t) {
2842
- F(t) ? t() : t.unsubscribe();
2841
+ function Mn(t) {
2842
+ N(t) ? t() : t.unsubscribe();
2843
2843
  }
2844
- var _r = {
2844
+ var $r = {
2845
2845
  onUnhandledError: null,
2846
2846
  onStoppedNotification: null,
2847
2847
  Promise: void 0,
2848
2848
  useDeprecatedSynchronousErrorHandling: !1,
2849
2849
  useDeprecatedNextContext: !1
2850
- }, $r = {
2850
+ }, Ar = {
2851
2851
  setTimeout: function(t, e) {
2852
2852
  for (var n = [], r = 2; r < arguments.length; r++)
2853
2853
  n[r - 2] = arguments[r];
2854
- return setTimeout.apply(void 0, rt([t, e], nt(n)));
2854
+ return setTimeout.apply(void 0, it([t, e], rt(n)));
2855
2855
  },
2856
2856
  clearTimeout: function(t) {
2857
- var e = $r.delegate;
2857
+ var e = Ar.delegate;
2858
2858
  return ((e == null ? void 0 : e.clearTimeout) || clearTimeout)(t);
2859
2859
  },
2860
2860
  delegate: void 0
2861
2861
  };
2862
- function Ar(t) {
2863
- $r.setTimeout(function() {
2862
+ function Sr(t) {
2863
+ Ar.setTimeout(function() {
2864
2864
  throw t;
2865
2865
  });
2866
2866
  }
2867
- function Pe() {
2867
+ function Ee() {
2868
2868
  }
2869
- function Kt(t) {
2869
+ function jt(t) {
2870
2870
  t();
2871
2871
  }
2872
- var Ye = function(t) {
2872
+ var Xe = function(t) {
2873
2873
  Q(e, t);
2874
2874
  function e(n) {
2875
2875
  var r = t.call(this) || this;
2876
- return r.isStopped = !1, n ? (r.destination = n, br(n) && n.add(r)) : r.destination = ys, r;
2876
+ return r.isStopped = !1, n ? (r.destination = n, _r(n) && n.add(r)) : r.destination = ys, r;
2877
2877
  }
2878
2878
  return e.create = function(n, r, i) {
2879
- return new Ot(n, r, i);
2879
+ return new kt(n, r, i);
2880
2880
  }, e.prototype.next = function(n) {
2881
2881
  this.isStopped || this._next(n);
2882
2882
  }, e.prototype.error = function(n) {
@@ -2900,8 +2900,8 @@ var Ye = function(t) {
2900
2900
  this.unsubscribe();
2901
2901
  }
2902
2902
  }, e;
2903
- }(Vt), ms = Function.prototype.bind;
2904
- function ge(t, e) {
2903
+ }(Lt), ms = Function.prototype.bind;
2904
+ function me(t, e) {
2905
2905
  return ms.call(t, e);
2906
2906
  }
2907
2907
  var gs = function() {
@@ -2914,7 +2914,7 @@ var gs = function() {
2914
2914
  try {
2915
2915
  n.next(e);
2916
2916
  } catch (r) {
2917
- Yt(r);
2917
+ Xt(r);
2918
2918
  }
2919
2919
  }, t.prototype.error = function(e) {
2920
2920
  var n = this.partialObserver;
@@ -2922,24 +2922,24 @@ var gs = function() {
2922
2922
  try {
2923
2923
  n.error(e);
2924
2924
  } catch (r) {
2925
- Yt(r);
2925
+ Xt(r);
2926
2926
  }
2927
2927
  else
2928
- Yt(e);
2928
+ Xt(e);
2929
2929
  }, t.prototype.complete = function() {
2930
2930
  var e = this.partialObserver;
2931
2931
  if (e.complete)
2932
2932
  try {
2933
2933
  e.complete();
2934
2934
  } catch (n) {
2935
- Yt(n);
2935
+ Xt(n);
2936
2936
  }
2937
2937
  }, t;
2938
- }(), Ot = function(t) {
2938
+ }(), kt = function(t) {
2939
2939
  Q(e, t);
2940
2940
  function e(n, r, i) {
2941
2941
  var o = t.call(this) || this, a;
2942
- if (F(n) || !n)
2942
+ if (N(n) || !n)
2943
2943
  a = {
2944
2944
  next: n ?? void 0,
2945
2945
  error: r ?? void 0,
@@ -2947,43 +2947,43 @@ var gs = function() {
2947
2947
  };
2948
2948
  else {
2949
2949
  var u;
2950
- o && _r.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2950
+ o && $r.useDeprecatedNextContext ? (u = Object.create(n), u.unsubscribe = function() {
2951
2951
  return o.unsubscribe();
2952
2952
  }, a = {
2953
- next: n.next && ge(n.next, u),
2954
- error: n.error && ge(n.error, u),
2955
- complete: n.complete && ge(n.complete, u)
2953
+ next: n.next && me(n.next, u),
2954
+ error: n.error && me(n.error, u),
2955
+ complete: n.complete && me(n.complete, u)
2956
2956
  }) : a = n;
2957
2957
  }
2958
2958
  return o.destination = new gs(a), o;
2959
2959
  }
2960
2960
  return e;
2961
- }(Ye);
2962
- function Yt(t) {
2963
- Ar(t);
2961
+ }(Xe);
2962
+ function Xt(t) {
2963
+ Sr(t);
2964
2964
  }
2965
2965
  function vs(t) {
2966
2966
  throw t;
2967
2967
  }
2968
2968
  var ys = {
2969
2969
  closed: !0,
2970
- next: Pe,
2970
+ next: Ee,
2971
2971
  error: vs,
2972
- complete: Pe
2973
- }, We = function() {
2972
+ complete: Ee
2973
+ }, Ye = function() {
2974
2974
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
2975
2975
  }();
2976
- function $t(t) {
2976
+ function _t(t) {
2977
2977
  return t;
2978
2978
  }
2979
2979
  function ws(t) {
2980
- return t.length === 0 ? $t : t.length === 1 ? t[0] : function(n) {
2980
+ return t.length === 0 ? _t : t.length === 1 ? t[0] : function(n) {
2981
2981
  return t.reduce(function(r, i) {
2982
2982
  return i(r);
2983
2983
  }, n);
2984
2984
  };
2985
2985
  }
2986
- var P = function() {
2986
+ var C = function() {
2987
2987
  function t(e) {
2988
2988
  e && (this._subscribe = e);
2989
2989
  }
@@ -2991,8 +2991,8 @@ var P = function() {
2991
2991
  var n = new t();
2992
2992
  return n.source = this, n.operator = e, n;
2993
2993
  }, t.prototype.subscribe = function(e, n, r) {
2994
- var i = this, o = bs(e) ? e : new Ot(e, n, r);
2995
- return Kt(function() {
2994
+ var i = this, o = bs(e) ? e : new kt(e, n, r);
2995
+ return jt(function() {
2996
2996
  var a = i, u = a.operator, s = a.source;
2997
2997
  o.add(u ? u.call(o, s) : s ? i._subscribe(o) : i._trySubscribe(o));
2998
2998
  }), o;
@@ -3005,7 +3005,7 @@ var P = function() {
3005
3005
  }, t.prototype.forEach = function(e, n) {
3006
3006
  var r = this;
3007
3007
  return n = En(n), new n(function(i, o) {
3008
- var a = new Ot({
3008
+ var a = new kt({
3009
3009
  next: function(u) {
3010
3010
  try {
3011
3011
  e(u);
@@ -3021,7 +3021,7 @@ var P = function() {
3021
3021
  }, t.prototype._subscribe = function(e) {
3022
3022
  var n;
3023
3023
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e);
3024
- }, t.prototype[We] = function() {
3024
+ }, t.prototype[Ye] = function() {
3025
3025
  return this;
3026
3026
  }, t.prototype.pipe = function() {
3027
3027
  for (var e = [], n = 0; n < arguments.length; n++)
@@ -3045,18 +3045,18 @@ var P = function() {
3045
3045
  }();
3046
3046
  function En(t) {
3047
3047
  var e;
3048
- return (e = t ?? _r.Promise) !== null && e !== void 0 ? e : Promise;
3048
+ return (e = t ?? $r.Promise) !== null && e !== void 0 ? e : Promise;
3049
3049
  }
3050
3050
  function xs(t) {
3051
- return t && F(t.next) && F(t.error) && F(t.complete);
3051
+ return t && N(t.next) && N(t.error) && N(t.complete);
3052
3052
  }
3053
3053
  function bs(t) {
3054
- return t && t instanceof Ye || xs(t) && br(t);
3054
+ return t && t instanceof Xe || xs(t) && _r(t);
3055
3055
  }
3056
3056
  function _s(t) {
3057
- return F(t == null ? void 0 : t.lift);
3057
+ return N(t == null ? void 0 : t.lift);
3058
3058
  }
3059
- function I(t) {
3059
+ function O(t) {
3060
3060
  return function(e) {
3061
3061
  if (_s(e))
3062
3062
  return e.lift(function(n) {
@@ -3069,7 +3069,7 @@ function I(t) {
3069
3069
  throw new TypeError("Unable to lift unknown Observable type");
3070
3070
  };
3071
3071
  }
3072
- function O(t, e, n, r, i) {
3072
+ function I(t, e, n, r, i) {
3073
3073
  return new $s(t, e, n, r, i);
3074
3074
  }
3075
3075
  var $s = function(t) {
@@ -3107,7 +3107,7 @@ var $s = function(t) {
3107
3107
  t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
3108
3108
  }
3109
3109
  }, e;
3110
- }(Ye), As = Xe(function(t) {
3110
+ }(Xe), As = Ue(function(t) {
3111
3111
  return function() {
3112
3112
  t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
3113
3113
  };
@@ -3118,14 +3118,14 @@ var $s = function(t) {
3118
3118
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
3119
3119
  }
3120
3120
  return e.prototype.lift = function(n) {
3121
- var r = new Pn(this, this);
3121
+ var r = new Cn(this, this);
3122
3122
  return r.operator = n, r;
3123
3123
  }, e.prototype._throwIfClosed = function() {
3124
3124
  if (this.closed)
3125
3125
  throw new As();
3126
3126
  }, e.prototype.next = function(n) {
3127
3127
  var r = this;
3128
- Kt(function() {
3128
+ jt(function() {
3129
3129
  var i, o;
3130
3130
  if (r._throwIfClosed(), !r.isStopped) {
3131
3131
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
@@ -3147,7 +3147,7 @@ var $s = function(t) {
3147
3147
  });
3148
3148
  }, e.prototype.error = function(n) {
3149
3149
  var r = this;
3150
- Kt(function() {
3150
+ jt(function() {
3151
3151
  if (r._throwIfClosed(), !r.isStopped) {
3152
3152
  r.hasError = r.isStopped = !0, r.thrownError = n;
3153
3153
  for (var i = r.observers; i.length; )
@@ -3156,7 +3156,7 @@ var $s = function(t) {
3156
3156
  });
3157
3157
  }, e.prototype.complete = function() {
3158
3158
  var n = this;
3159
- Kt(function() {
3159
+ jt(function() {
3160
3160
  if (n._throwIfClosed(), !n.isStopped) {
3161
3161
  n.isStopped = !0;
3162
3162
  for (var r = n.observers; r.length; )
@@ -3178,19 +3178,19 @@ var $s = function(t) {
3178
3178
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
3179
3179
  }, e.prototype._innerSubscribe = function(n) {
3180
3180
  var r = this, i = this, o = i.hasError, a = i.isStopped, u = i.observers;
3181
- return o || a ? xr : (this.currentObservers = null, u.push(n), new Vt(function() {
3182
- r.currentObservers = null, se(u, n);
3181
+ return o || a ? br : (this.currentObservers = null, u.push(n), new Lt(function() {
3182
+ r.currentObservers = null, ue(u, n);
3183
3183
  }));
3184
3184
  }, e.prototype._checkFinalizedStatuses = function(n) {
3185
3185
  var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
3186
3186
  i ? n.error(o) : a && n.complete();
3187
3187
  }, e.prototype.asObservable = function() {
3188
- var n = new P();
3188
+ var n = new C();
3189
3189
  return n.source = this, n;
3190
3190
  }, e.create = function(n, r) {
3191
- return new Pn(n, r);
3191
+ return new Cn(n, r);
3192
3192
  }, e;
3193
- }(P), Pn = function(t) {
3193
+ }(C), Cn = function(t) {
3194
3194
  Q(e, t);
3195
3195
  function e(n, r) {
3196
3196
  var i = t.call(this) || this;
@@ -3207,7 +3207,7 @@ var $s = function(t) {
3207
3207
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
3208
3208
  }, e.prototype._subscribe = function(n) {
3209
3209
  var r, i;
3210
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : xr;
3210
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : br;
3211
3211
  }, e;
3212
3212
  }(E), Be = {
3213
3213
  now: function() {
@@ -3245,14 +3245,14 @@ var $s = function(t) {
3245
3245
  return e.prototype.schedule = function(n, r) {
3246
3246
  return this;
3247
3247
  }, e;
3248
- }(Vt), Te = {
3248
+ }(Lt), Ce = {
3249
3249
  setInterval: function(t, e) {
3250
3250
  for (var n = [], r = 2; r < arguments.length; r++)
3251
3251
  n[r - 2] = arguments[r];
3252
- return setInterval.apply(void 0, rt([t, e], nt(n)));
3252
+ return setInterval.apply(void 0, it([t, e], rt(n)));
3253
3253
  },
3254
3254
  clearInterval: function(t) {
3255
- var e = Te.delegate;
3255
+ var e = Ce.delegate;
3256
3256
  return ((e == null ? void 0 : e.clearInterval) || clearInterval)(t);
3257
3257
  },
3258
3258
  delegate: void 0
@@ -3270,11 +3270,11 @@ var $s = function(t) {
3270
3270
  var o = this.id, a = this.scheduler;
3271
3271
  return o != null && (this.id = this.recycleAsyncId(a, o, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(a, this.id, r), this;
3272
3272
  }, e.prototype.requestAsyncId = function(n, r, i) {
3273
- return i === void 0 && (i = 0), Te.setInterval(n.flush.bind(n, this), i);
3273
+ return i === void 0 && (i = 0), Ce.setInterval(n.flush.bind(n, this), i);
3274
3274
  }, e.prototype.recycleAsyncId = function(n, r, i) {
3275
3275
  if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
3276
3276
  return r;
3277
- r != null && Te.clearInterval(r);
3277
+ r != null && Ce.clearInterval(r);
3278
3278
  }, e.prototype.execute = function(n, r) {
3279
3279
  if (this.closed)
3280
3280
  return new Error("executing a cancelled action");
@@ -3295,20 +3295,20 @@ var $s = function(t) {
3295
3295
  }, e.prototype.unsubscribe = function() {
3296
3296
  if (!this.closed) {
3297
3297
  var n = this, r = n.id, i = n.scheduler, o = i.actions;
3298
- this.work = this.state = this.scheduler = null, this.pending = !1, se(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
3298
+ this.work = this.state = this.scheduler = null, this.pending = !1, ue(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
3299
3299
  }
3300
3300
  }, e;
3301
- }(Ds), Tn = function() {
3301
+ }(Ds), Pn = function() {
3302
3302
  function t(e, n) {
3303
3303
  n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
3304
3304
  }
3305
3305
  return t.prototype.schedule = function(e, n, r) {
3306
3306
  return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
3307
3307
  }, t.now = Be.now, t;
3308
- }(), Cs = function(t) {
3308
+ }(), Es = function(t) {
3309
3309
  Q(e, t);
3310
3310
  function e(n, r) {
3311
- r === void 0 && (r = Tn.now);
3311
+ r === void 0 && (r = Pn.now);
3312
3312
  var i = t.call(this, n, r) || this;
3313
3313
  return i.actions = [], i._active = !1, i;
3314
3314
  }
@@ -3330,50 +3330,50 @@ var $s = function(t) {
3330
3330
  throw i;
3331
3331
  }
3332
3332
  }, e;
3333
- }(Tn), qe = new Cs(Ms), Es = qe, je = new P(function(t) {
3333
+ }(Pn), We = new Es(Ms), Cs = We, qe = new C(function(t) {
3334
3334
  return t.complete();
3335
3335
  });
3336
- function Sr(t) {
3337
- return t && F(t.schedule);
3336
+ function Dr(t) {
3337
+ return t && N(t.schedule);
3338
3338
  }
3339
- function Ke(t) {
3339
+ function je(t) {
3340
3340
  return t[t.length - 1];
3341
3341
  }
3342
3342
  function Ps(t) {
3343
- return F(Ke(t)) ? t.pop() : void 0;
3343
+ return N(je(t)) ? t.pop() : void 0;
3344
3344
  }
3345
- function At(t) {
3346
- return Sr(Ke(t)) ? t.pop() : void 0;
3345
+ function $t(t) {
3346
+ return Dr(je(t)) ? t.pop() : void 0;
3347
3347
  }
3348
- function Dr(t, e) {
3349
- return typeof Ke(t) == "number" ? t.pop() : e;
3348
+ function Mr(t, e) {
3349
+ return typeof je(t) == "number" ? t.pop() : e;
3350
3350
  }
3351
- var Mr = function(t) {
3351
+ var Er = function(t) {
3352
3352
  return t && typeof t.length == "number" && typeof t != "function";
3353
3353
  };
3354
3354
  function Cr(t) {
3355
- return F(t == null ? void 0 : t.then);
3356
- }
3357
- function Er(t) {
3358
- return F(t[We]);
3355
+ return N(t == null ? void 0 : t.then);
3359
3356
  }
3360
3357
  function Pr(t) {
3361
- return Symbol.asyncIterator && F(t == null ? void 0 : t[Symbol.asyncIterator]);
3358
+ return N(t[Ye]);
3359
+ }
3360
+ function Fr(t) {
3361
+ return Symbol.asyncIterator && N(t == null ? void 0 : t[Symbol.asyncIterator]);
3362
3362
  }
3363
3363
  function Tr(t) {
3364
3364
  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.");
3365
3365
  }
3366
- function Ts() {
3366
+ function Fs() {
3367
3367
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
3368
3368
  }
3369
- var Fr = Ts();
3370
- function Nr(t) {
3371
- return F(t == null ? void 0 : t[Fr]);
3372
- }
3369
+ var Nr = Fs();
3373
3370
  function kr(t) {
3371
+ return N(t == null ? void 0 : t[Nr]);
3372
+ }
3373
+ function Ir(t) {
3374
3374
  return ds(this, arguments, function() {
3375
3375
  var n, r, i, o;
3376
- return wr(this, function(a) {
3376
+ return xr(this, function(a) {
3377
3377
  switch (a.label) {
3378
3378
  case 0:
3379
3379
  n = t.getReader(), a.label = 1;
@@ -3402,53 +3402,53 @@ function kr(t) {
3402
3402
  });
3403
3403
  }
3404
3404
  function Or(t) {
3405
- return F(t == null ? void 0 : t.getReader);
3405
+ return N(t == null ? void 0 : t.getReader);
3406
3406
  }
3407
3407
  function G(t) {
3408
- if (t instanceof P)
3408
+ if (t instanceof C)
3409
3409
  return t;
3410
3410
  if (t != null) {
3411
+ if (Pr(t))
3412
+ return Ts(t);
3411
3413
  if (Er(t))
3412
- return Fs(t);
3413
- if (Mr(t))
3414
3414
  return Ns(t);
3415
3415
  if (Cr(t))
3416
3416
  return ks(t);
3417
- if (Pr(t))
3418
- return Ir(t);
3419
- if (Nr(t))
3420
- return Os(t);
3421
- if (Or(t))
3417
+ if (Fr(t))
3418
+ return Rr(t);
3419
+ if (kr(t))
3422
3420
  return Is(t);
3421
+ if (Or(t))
3422
+ return Os(t);
3423
3423
  }
3424
3424
  throw Tr(t);
3425
3425
  }
3426
- function Fs(t) {
3427
- return new P(function(e) {
3428
- var n = t[We]();
3429
- if (F(n.subscribe))
3426
+ function Ts(t) {
3427
+ return new C(function(e) {
3428
+ var n = t[Ye]();
3429
+ if (N(n.subscribe))
3430
3430
  return n.subscribe(e);
3431
3431
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
3432
3432
  });
3433
3433
  }
3434
3434
  function Ns(t) {
3435
- return new P(function(e) {
3435
+ return new C(function(e) {
3436
3436
  for (var n = 0; n < t.length && !e.closed; n++)
3437
3437
  e.next(t[n]);
3438
3438
  e.complete();
3439
3439
  });
3440
3440
  }
3441
3441
  function ks(t) {
3442
- return new P(function(e) {
3442
+ return new C(function(e) {
3443
3443
  t.then(function(n) {
3444
3444
  e.closed || (e.next(n), e.complete());
3445
3445
  }, function(n) {
3446
3446
  return e.error(n);
3447
- }).then(null, Ar);
3447
+ }).then(null, Sr);
3448
3448
  });
3449
3449
  }
3450
- function Os(t) {
3451
- return new P(function(e) {
3450
+ function Is(t) {
3451
+ return new C(function(e) {
3452
3452
  var n, r;
3453
3453
  try {
3454
3454
  for (var i = xt(t), o = i.next(); !o.done; o = i.next()) {
@@ -3468,21 +3468,21 @@ function Os(t) {
3468
3468
  e.complete();
3469
3469
  });
3470
3470
  }
3471
- function Ir(t) {
3472
- return new P(function(e) {
3471
+ function Rr(t) {
3472
+ return new C(function(e) {
3473
3473
  Rs(t, e).catch(function(n) {
3474
3474
  return e.error(n);
3475
3475
  });
3476
3476
  });
3477
3477
  }
3478
- function Is(t) {
3479
- return Ir(kr(t));
3478
+ function Os(t) {
3479
+ return Rr(Ir(t));
3480
3480
  }
3481
3481
  function Rs(t, e) {
3482
3482
  var n, r, i, o;
3483
3483
  return hs(this, void 0, void 0, function() {
3484
3484
  var a, u;
3485
- return wr(this, function(s) {
3485
+ return xr(this, function(s) {
3486
3486
  switch (s.label) {
3487
3487
  case 0:
3488
3488
  s.trys.push([0, 5, 6, 11]), n = ps(t), s.label = 1;
@@ -3516,7 +3516,7 @@ function Rs(t, e) {
3516
3516
  });
3517
3517
  });
3518
3518
  }
3519
- function tt(t, e, n, r, i) {
3519
+ function et(t, e, n, r, i) {
3520
3520
  r === void 0 && (r = 0), i === void 0 && (i = !1);
3521
3521
  var o = e.schedule(function() {
3522
3522
  n(), i ? t.add(this.schedule(null, r)) : this.unsubscribe();
@@ -3524,38 +3524,38 @@ function tt(t, e, n, r, i) {
3524
3524
  if (t.add(o), !i)
3525
3525
  return o;
3526
3526
  }
3527
- function Rr(t, e) {
3528
- return e === void 0 && (e = 0), I(function(n, r) {
3529
- n.subscribe(O(r, function(i) {
3530
- return tt(r, t, function() {
3527
+ function Lr(t, e) {
3528
+ return e === void 0 && (e = 0), O(function(n, r) {
3529
+ n.subscribe(I(r, function(i) {
3530
+ return et(r, t, function() {
3531
3531
  return r.next(i);
3532
3532
  }, e);
3533
3533
  }, function() {
3534
- return tt(r, t, function() {
3534
+ return et(r, t, function() {
3535
3535
  return r.complete();
3536
3536
  }, e);
3537
3537
  }, function(i) {
3538
- return tt(r, t, function() {
3538
+ return et(r, t, function() {
3539
3539
  return r.error(i);
3540
3540
  }, e);
3541
3541
  }));
3542
3542
  });
3543
3543
  }
3544
- function Lr(t, e) {
3545
- return e === void 0 && (e = 0), I(function(n, r) {
3544
+ function Vr(t, e) {
3545
+ return e === void 0 && (e = 0), O(function(n, r) {
3546
3546
  r.add(t.schedule(function() {
3547
3547
  return n.subscribe(r);
3548
3548
  }, e));
3549
3549
  });
3550
3550
  }
3551
3551
  function Ls(t, e) {
3552
- return G(t).pipe(Lr(e), Rr(e));
3552
+ return G(t).pipe(Vr(e), Lr(e));
3553
3553
  }
3554
3554
  function Vs(t, e) {
3555
- return G(t).pipe(Lr(e), Rr(e));
3555
+ return G(t).pipe(Vr(e), Lr(e));
3556
3556
  }
3557
3557
  function Gs(t, e) {
3558
- return new P(function(n) {
3558
+ return new C(function(n) {
3559
3559
  var r = 0;
3560
3560
  return e.schedule(function() {
3561
3561
  r === t.length ? n.complete() : (n.next(t[r++]), n.closed || this.schedule());
@@ -3563,10 +3563,10 @@ function Gs(t, e) {
3563
3563
  });
3564
3564
  }
3565
3565
  function zs(t, e) {
3566
- return new P(function(n) {
3566
+ return new C(function(n) {
3567
3567
  var r;
3568
- return tt(n, e, function() {
3569
- r = t[Fr](), tt(n, e, function() {
3568
+ return et(n, e, function() {
3569
+ r = t[Nr](), et(n, e, function() {
3570
3570
  var i, o, a;
3571
3571
  try {
3572
3572
  i = r.next(), o = i.value, a = i.done;
@@ -3577,17 +3577,17 @@ function zs(t, e) {
3577
3577
  a ? n.complete() : n.next(o);
3578
3578
  }, 0, !0);
3579
3579
  }), function() {
3580
- return F(r == null ? void 0 : r.return) && r.return();
3580
+ return N(r == null ? void 0 : r.return) && r.return();
3581
3581
  };
3582
3582
  });
3583
3583
  }
3584
- function Vr(t, e) {
3584
+ function Gr(t, e) {
3585
3585
  if (!t)
3586
3586
  throw new Error("Iterable cannot be null");
3587
- return new P(function(n) {
3588
- tt(n, e, function() {
3587
+ return new C(function(n) {
3588
+ et(n, e, function() {
3589
3589
  var r = t[Symbol.asyncIterator]();
3590
- tt(n, e, function() {
3590
+ et(n, e, function() {
3591
3591
  r.next().then(function(i) {
3592
3592
  i.done ? n.complete() : n.next(i.value);
3593
3593
  });
@@ -3596,35 +3596,35 @@ function Vr(t, e) {
3596
3596
  });
3597
3597
  }
3598
3598
  function Hs(t, e) {
3599
- return Vr(kr(t), e);
3599
+ return Gr(Ir(t), e);
3600
3600
  }
3601
3601
  function Us(t, e) {
3602
3602
  if (t != null) {
3603
- if (Er(t))
3603
+ if (Pr(t))
3604
3604
  return Ls(t, e);
3605
- if (Mr(t))
3605
+ if (Er(t))
3606
3606
  return Gs(t, e);
3607
3607
  if (Cr(t))
3608
3608
  return Vs(t, e);
3609
- if (Pr(t))
3610
- return Vr(t, e);
3611
- if (Nr(t))
3609
+ if (Fr(t))
3610
+ return Gr(t, e);
3611
+ if (kr(t))
3612
3612
  return zs(t, e);
3613
3613
  if (Or(t))
3614
3614
  return Hs(t, e);
3615
3615
  }
3616
3616
  throw Tr(t);
3617
3617
  }
3618
- function St(t, e) {
3618
+ function At(t, e) {
3619
3619
  return e ? Us(t, e) : G(t);
3620
3620
  }
3621
- function Tt() {
3621
+ function Pt() {
3622
3622
  for (var t = [], e = 0; e < arguments.length; e++)
3623
3623
  t[e] = arguments[e];
3624
- var n = At(t);
3625
- return St(t, n);
3624
+ var n = $t(t);
3625
+ return At(t, n);
3626
3626
  }
3627
- var Gr = Xe(function(t) {
3627
+ var zr = Ue(function(t) {
3628
3628
  return function() {
3629
3629
  t(this), this.name = "EmptyError", this.message = "no elements in sequence";
3630
3630
  };
@@ -3633,20 +3633,20 @@ function Xs(t) {
3633
3633
  return t instanceof Date && !isNaN(t);
3634
3634
  }
3635
3635
  function R(t, e) {
3636
- return I(function(n, r) {
3636
+ return O(function(n, r) {
3637
3637
  var i = 0;
3638
- n.subscribe(O(r, function(o) {
3638
+ n.subscribe(I(r, function(o) {
3639
3639
  r.next(t.call(e, o, i++));
3640
3640
  }));
3641
3641
  });
3642
3642
  }
3643
3643
  var Ys = Array.isArray;
3644
- function Ws(t, e) {
3645
- return Ys(e) ? t.apply(void 0, rt([], nt(e))) : t(e);
3644
+ function Bs(t, e) {
3645
+ return Ys(e) ? t.apply(void 0, it([], rt(e))) : t(e);
3646
3646
  }
3647
- function Bs(t) {
3647
+ function Ws(t) {
3648
3648
  return R(function(e) {
3649
- return Ws(t, e);
3649
+ return Bs(t, e);
3650
3650
  });
3651
3651
  }
3652
3652
  var qs = Array.isArray, js = Object.getPrototypeOf, Ks = Object.prototype, Zs = Object.keys;
@@ -3675,24 +3675,24 @@ function tl(t, e) {
3675
3675
  return n[r] = e[i], n;
3676
3676
  }, {});
3677
3677
  }
3678
- function ct() {
3678
+ function ft() {
3679
3679
  for (var t = [], e = 0; e < arguments.length; e++)
3680
3680
  t[e] = arguments[e];
3681
- var n = At(t), r = Ps(t), i = Js(t), o = i.args, a = i.keys;
3681
+ var n = $t(t), r = Ps(t), i = Js(t), o = i.args, a = i.keys;
3682
3682
  if (o.length === 0)
3683
- return St([], n);
3684
- var u = new P(el(o, n, a ? function(s) {
3683
+ return At([], n);
3684
+ var u = new C(el(o, n, a ? function(s) {
3685
3685
  return tl(a, s);
3686
- } : $t));
3687
- return r ? u.pipe(Bs(r)) : u;
3686
+ } : _t));
3687
+ return r ? u.pipe(Ws(r)) : u;
3688
3688
  }
3689
3689
  function el(t, e, n) {
3690
- return n === void 0 && (n = $t), function(r) {
3690
+ return n === void 0 && (n = _t), function(r) {
3691
3691
  Fn(e, function() {
3692
3692
  for (var i = t.length, o = new Array(i), a = i, u = i, s = function(f) {
3693
3693
  Fn(e, function() {
3694
- var c = St(t[f], e), h = !1;
3695
- c.subscribe(O(r, function(d) {
3694
+ var c = At(t[f], e), h = !1;
3695
+ c.subscribe(I(r, function(d) {
3696
3696
  o[f] = d, h || (h = !0, u--), u || r.next(n(o.slice()));
3697
3697
  }, function() {
3698
3698
  --a || r.complete();
@@ -3704,7 +3704,7 @@ function el(t, e, n) {
3704
3704
  };
3705
3705
  }
3706
3706
  function Fn(t, e, n) {
3707
- t ? tt(n, t, e) : e();
3707
+ t ? et(n, t, e) : e();
3708
3708
  }
3709
3709
  function nl(t, e, n, r, i, o, a, u) {
3710
3710
  var s = [], l = 0, f = 0, c = !1, h = function() {
@@ -3714,52 +3714,52 @@ function nl(t, e, n, r, i, o, a, u) {
3714
3714
  }, m = function(p) {
3715
3715
  l++;
3716
3716
  var g = !1;
3717
- G(n(p, f++)).subscribe(O(e, function(_) {
3718
- e.next(_);
3717
+ G(n(p, f++)).subscribe(I(e, function(b) {
3718
+ e.next(b);
3719
3719
  }, function() {
3720
3720
  g = !0;
3721
3721
  }, void 0, function() {
3722
3722
  if (g)
3723
3723
  try {
3724
3724
  l--;
3725
- for (var _ = function() {
3726
- var S = s.shift();
3727
- a || m(S);
3725
+ for (var b = function() {
3726
+ var D = s.shift();
3727
+ a || m(D);
3728
3728
  }; s.length && l < r; )
3729
- _();
3729
+ b();
3730
3730
  h();
3731
- } catch (S) {
3732
- e.error(S);
3731
+ } catch (D) {
3732
+ e.error(D);
3733
3733
  }
3734
3734
  }));
3735
3735
  };
3736
- return t.subscribe(O(e, d, function() {
3736
+ return t.subscribe(I(e, d, function() {
3737
3737
  c = !0, h();
3738
3738
  })), function() {
3739
3739
  };
3740
3740
  }
3741
- function zr(t, e, n) {
3742
- return n === void 0 && (n = 1 / 0), F(e) ? zr(function(r, i) {
3741
+ function Hr(t, e, n) {
3742
+ return n === void 0 && (n = 1 / 0), N(e) ? Hr(function(r, i) {
3743
3743
  return R(function(o, a) {
3744
3744
  return e(r, o, i, a);
3745
3745
  })(G(t(r, i)));
3746
- }, n) : (typeof e == "number" && (n = e), I(function(r, i) {
3746
+ }, n) : (typeof e == "number" && (n = e), O(function(r, i) {
3747
3747
  return nl(r, i, t, n);
3748
3748
  }));
3749
3749
  }
3750
- function Ze(t) {
3751
- return t === void 0 && (t = 1 / 0), zr($t, t);
3750
+ function Ke(t) {
3751
+ return t === void 0 && (t = 1 / 0), Hr(_t, t);
3752
3752
  }
3753
3753
  function rl() {
3754
- return Ze(1);
3754
+ return Ke(1);
3755
3755
  }
3756
- function Nn() {
3756
+ function Tn() {
3757
3757
  for (var t = [], e = 0; e < arguments.length; e++)
3758
3758
  t[e] = arguments[e];
3759
- return rl()(St(t, At(t)));
3759
+ return rl()(At(t, $t(t)));
3760
3760
  }
3761
3761
  function il(t) {
3762
- return new P(function(e) {
3762
+ return new C(function(e) {
3763
3763
  G(t()).subscribe(e);
3764
3764
  });
3765
3765
  }
@@ -3769,9 +3769,9 @@ function ol(t, e, n) {
3769
3769
  });
3770
3770
  }
3771
3771
  function al(t, e, n) {
3772
- n === void 0 && (n = Es);
3772
+ n === void 0 && (n = Cs);
3773
3773
  var r = -1;
3774
- return e != null && (Sr(e) ? n = e : r = e), new P(function(i) {
3774
+ return e != null && (Dr(e) ? n = e : r = e), new C(function(i) {
3775
3775
  var o = Xs(t) ? +t - n.now() : t;
3776
3776
  o < 0 && (o = 0);
3777
3777
  var a = 0;
@@ -3783,31 +3783,31 @@ function al(t, e, n) {
3783
3783
  function ul() {
3784
3784
  for (var t = [], e = 0; e < arguments.length; e++)
3785
3785
  t[e] = arguments[e];
3786
- var n = At(t), r = Dr(t, 1 / 0), i = t;
3787
- return i.length ? i.length === 1 ? G(i[0]) : Ze(r)(St(i, n)) : je;
3786
+ var n = $t(t), r = Mr(t, 1 / 0), i = t;
3787
+ return i.length ? i.length === 1 ? G(i[0]) : Ke(r)(At(i, n)) : qe;
3788
3788
  }
3789
3789
  var sl = Array.isArray;
3790
3790
  function ll(t) {
3791
3791
  return t.length === 1 && sl(t[0]) ? t[0] : t;
3792
3792
  }
3793
- function kn(t, e) {
3794
- return I(function(n, r) {
3793
+ function Nn(t, e) {
3794
+ return O(function(n, r) {
3795
3795
  var i = 0;
3796
- n.subscribe(O(r, function(o) {
3796
+ n.subscribe(I(r, function(o) {
3797
3797
  return t.call(e, o, i++) && r.next(o);
3798
3798
  }));
3799
3799
  });
3800
3800
  }
3801
- function Hr(t) {
3802
- return I(function(e, n) {
3801
+ function Ur(t) {
3802
+ return O(function(e, n) {
3803
3803
  var r = null, i = !1, o;
3804
- r = e.subscribe(O(n, void 0, void 0, function(a) {
3805
- o = G(t(a, Hr(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3804
+ r = e.subscribe(I(n, void 0, void 0, function(a) {
3805
+ o = G(t(a, Ur(t)(e))), r ? (r.unsubscribe(), r = null, o.subscribe(n)) : i = !0;
3806
3806
  })), i && (r.unsubscribe(), r = null, o.subscribe(n));
3807
3807
  });
3808
3808
  }
3809
3809
  function cl(t, e) {
3810
- return e === void 0 && (e = qe), I(function(n, r) {
3810
+ return e === void 0 && (e = We), O(function(n, r) {
3811
3811
  var i = null, o = null, a = null, u = function() {
3812
3812
  if (i) {
3813
3813
  i.unsubscribe(), i = null;
@@ -3823,7 +3823,7 @@ function cl(t, e) {
3823
3823
  }
3824
3824
  u();
3825
3825
  }
3826
- n.subscribe(O(r, function(l) {
3826
+ n.subscribe(I(r, function(l) {
3827
3827
  o = l, a = e.now(), i || (i = e.schedule(s, t), r.add(i));
3828
3828
  }, function() {
3829
3829
  u(), r.complete();
@@ -3833,9 +3833,9 @@ function cl(t, e) {
3833
3833
  });
3834
3834
  }
3835
3835
  function fl(t) {
3836
- return I(function(e, n) {
3836
+ return O(function(e, n) {
3837
3837
  var r = !1;
3838
- e.subscribe(O(n, function(i) {
3838
+ e.subscribe(I(n, function(i) {
3839
3839
  r = !0, n.next(i);
3840
3840
  }, function() {
3841
3841
  r || n.next(t), n.complete();
@@ -3844,18 +3844,18 @@ function fl(t) {
3844
3844
  }
3845
3845
  function hl(t) {
3846
3846
  return t <= 0 ? function() {
3847
- return je;
3848
- } : I(function(e, n) {
3847
+ return qe;
3848
+ } : O(function(e, n) {
3849
3849
  var r = 0;
3850
- e.subscribe(O(n, function(i) {
3850
+ e.subscribe(I(n, function(i) {
3851
3851
  ++r <= t && (n.next(i), t <= r && n.complete());
3852
3852
  }));
3853
3853
  });
3854
3854
  }
3855
- function Je(t, e) {
3856
- return e === void 0 && (e = $t), t = t ?? dl, I(function(n, r) {
3855
+ function Ze(t, e) {
3856
+ return e === void 0 && (e = _t), t = t ?? dl, O(function(n, r) {
3857
3857
  var i, o = !0;
3858
- n.subscribe(O(r, function(a) {
3858
+ n.subscribe(I(r, function(a) {
3859
3859
  var u = e(a);
3860
3860
  (o || !t(i, u)) && (o = !1, i = u, r.next(a));
3861
3861
  }));
@@ -3865,9 +3865,9 @@ function dl(t, e) {
3865
3865
  return t === e;
3866
3866
  }
3867
3867
  function pl(t) {
3868
- return t === void 0 && (t = ml), I(function(e, n) {
3868
+ return t === void 0 && (t = ml), O(function(e, n) {
3869
3869
  var r = !1;
3870
- e.subscribe(O(n, function(i) {
3870
+ e.subscribe(I(n, function(i) {
3871
3871
  r = !0, n.next(i);
3872
3872
  }, function() {
3873
3873
  return r ? n.complete() : n.error(t());
@@ -3875,30 +3875,30 @@ function pl(t) {
3875
3875
  });
3876
3876
  }
3877
3877
  function ml() {
3878
- return new Gr();
3878
+ return new zr();
3879
3879
  }
3880
3880
  function gl(t, e) {
3881
3881
  var n = arguments.length >= 2;
3882
3882
  return function(r) {
3883
- return r.pipe($t, hl(1), n ? fl(e) : pl(function() {
3884
- return new Gr();
3883
+ return r.pipe(_t, hl(1), n ? fl(e) : pl(function() {
3884
+ return new zr();
3885
3885
  }));
3886
3886
  };
3887
3887
  }
3888
3888
  function vl() {
3889
3889
  for (var t = [], e = 0; e < arguments.length; e++)
3890
3890
  t[e] = arguments[e];
3891
- var n = At(t), r = Dr(t, 1 / 0);
3892
- return t = ll(t), I(function(i, o) {
3893
- Ze(r)(St(rt([i], nt(t)), n)).subscribe(o);
3891
+ var n = $t(t), r = Mr(t, 1 / 0);
3892
+ return t = ll(t), O(function(i, o) {
3893
+ Ke(r)(At(it([i], rt(t)), n)).subscribe(o);
3894
3894
  });
3895
3895
  }
3896
3896
  function yl() {
3897
3897
  for (var t = [], e = 0; e < arguments.length; e++)
3898
3898
  t[e] = arguments[e];
3899
- return vl.apply(void 0, rt([], nt(t)));
3899
+ return vl.apply(void 0, it([], rt(t)));
3900
3900
  }
3901
- function Fe(t) {
3901
+ function Pe(t) {
3902
3902
  t === void 0 && (t = {});
3903
3903
  var e = t.connector, n = e === void 0 ? function() {
3904
3904
  return new E();
@@ -3906,32 +3906,32 @@ function Fe(t) {
3906
3906
  return function(l) {
3907
3907
  var f, c, h, d = 0, m = !1, p = !1, g = function() {
3908
3908
  c == null || c.unsubscribe(), c = void 0;
3909
- }, _ = function() {
3909
+ }, b = function() {
3910
3910
  g(), f = h = void 0, m = p = !1;
3911
- }, S = function() {
3912
- var b = f;
3913
- _(), b == null || b.unsubscribe();
3911
+ }, D = function() {
3912
+ var x = f;
3913
+ b(), x == null || x.unsubscribe();
3914
3914
  };
3915
- return I(function(b, D) {
3915
+ return O(function(x, M) {
3916
3916
  d++, !p && !m && g();
3917
- var w = h = h ?? n();
3918
- D.add(function() {
3919
- d--, d === 0 && !p && !m && (c = ve(S, s));
3920
- }), w.subscribe(D), !f && d > 0 && (f = new Ot({
3921
- next: function(M) {
3922
- return w.next(M);
3917
+ var y = h = h ?? n();
3918
+ M.add(function() {
3919
+ d--, d === 0 && !p && !m && (c = ge(D, s));
3920
+ }), y.subscribe(M), !f && d > 0 && (f = new kt({
3921
+ next: function(P) {
3922
+ return y.next(P);
3923
3923
  },
3924
- error: function(M) {
3925
- p = !0, g(), c = ve(_, i, M), w.error(M);
3924
+ error: function(P) {
3925
+ p = !0, g(), c = ge(b, i, P), y.error(P);
3926
3926
  },
3927
3927
  complete: function() {
3928
- m = !0, g(), c = ve(_, a), w.complete();
3928
+ m = !0, g(), c = ge(b, a), y.complete();
3929
3929
  }
3930
- }), G(b).subscribe(f));
3930
+ }), G(x).subscribe(f));
3931
3931
  })(l);
3932
3932
  };
3933
3933
  }
3934
- function ve(t, e) {
3934
+ function ge(t, e) {
3935
3935
  for (var n = [], r = 2; r < arguments.length; r++)
3936
3936
  n[r - 2] = arguments[r];
3937
3937
  if (e === !0) {
@@ -3939,17 +3939,17 @@ function ve(t, e) {
3939
3939
  return;
3940
3940
  }
3941
3941
  if (e !== !1) {
3942
- var i = new Ot({
3942
+ var i = new kt({
3943
3943
  next: function() {
3944
3944
  i.unsubscribe(), t();
3945
3945
  }
3946
3946
  });
3947
- return G(e.apply(void 0, rt([], nt(n)))).subscribe(i);
3947
+ return G(e.apply(void 0, it([], rt(n)))).subscribe(i);
3948
3948
  }
3949
3949
  }
3950
- function A(t, e, n) {
3950
+ function S(t, e, n) {
3951
3951
  var r, i = !1;
3952
- return r = t, Fe({
3952
+ return r = t, Pe({
3953
3953
  connector: function() {
3954
3954
  return new Ss(r, e, n);
3955
3955
  },
@@ -3958,23 +3958,23 @@ function A(t, e, n) {
3958
3958
  resetOnRefCountZero: i
3959
3959
  });
3960
3960
  }
3961
- function Zt() {
3961
+ function Kt() {
3962
3962
  for (var t = [], e = 0; e < arguments.length; e++)
3963
3963
  t[e] = arguments[e];
3964
- var n = At(t);
3965
- return I(function(r, i) {
3966
- (n ? Nn(t, r, n) : Nn(t, r)).subscribe(i);
3964
+ var n = $t(t);
3965
+ return O(function(r, i) {
3966
+ (n ? Tn(t, r, n) : Tn(t, r)).subscribe(i);
3967
3967
  });
3968
3968
  }
3969
- function et(t, e) {
3970
- return I(function(n, r) {
3969
+ function nt(t, e) {
3970
+ return O(function(n, r) {
3971
3971
  var i = null, o = 0, a = !1, u = function() {
3972
3972
  return a && !i && r.complete();
3973
3973
  };
3974
- n.subscribe(O(r, function(s) {
3974
+ n.subscribe(I(r, function(s) {
3975
3975
  i == null || i.unsubscribe();
3976
3976
  var l = 0, f = o++;
3977
- G(t(s, f)).subscribe(i = O(r, function(c) {
3977
+ G(t(s, f)).subscribe(i = I(r, function(c) {
3978
3978
  return r.next(e ? e(s, c, f, l++) : c);
3979
3979
  }, function() {
3980
3980
  i = null, u();
@@ -3985,42 +3985,42 @@ function et(t, e) {
3985
3985
  });
3986
3986
  }
3987
3987
  function k(t) {
3988
- return I(function(e, n) {
3989
- G(t).subscribe(O(n, function() {
3988
+ return O(function(e, n) {
3989
+ G(t).subscribe(I(n, function() {
3990
3990
  return n.complete();
3991
- }, Pe)), !n.closed && e.subscribe(n);
3991
+ }, Ee)), !n.closed && e.subscribe(n);
3992
3992
  });
3993
3993
  }
3994
3994
  function wl(t, e) {
3995
- return I(function(n, r) {
3995
+ return O(function(n, r) {
3996
3996
  var i = e ?? {}, o = i.leading, a = o === void 0 ? !0 : o, u = i.trailing, s = u === void 0 ? !1 : u, l = !1, f = null, c = null, h = !1, d = function() {
3997
3997
  c == null || c.unsubscribe(), c = null, s && (g(), h && r.complete());
3998
3998
  }, m = function() {
3999
3999
  c = null, h && r.complete();
4000
- }, p = function(_) {
4001
- return c = G(t(_)).subscribe(O(r, d, m));
4000
+ }, p = function(b) {
4001
+ return c = G(t(b)).subscribe(I(r, d, m));
4002
4002
  }, g = function() {
4003
4003
  if (l) {
4004
4004
  l = !1;
4005
- var _ = f;
4006
- f = null, r.next(_), !h && p(_);
4005
+ var b = f;
4006
+ f = null, r.next(b), !h && p(b);
4007
4007
  }
4008
4008
  };
4009
- n.subscribe(O(r, function(_) {
4010
- l = !0, f = _, !(c && !c.closed) && (a ? g() : p(_));
4009
+ n.subscribe(I(r, function(b) {
4010
+ l = !0, f = b, !(c && !c.closed) && (a ? g() : p(b));
4011
4011
  }, function() {
4012
4012
  h = !0, !(s && l && c && !c.closed) && r.complete();
4013
4013
  }));
4014
4014
  });
4015
4015
  }
4016
4016
  function xl(t, e, n) {
4017
- e === void 0 && (e = qe);
4017
+ e === void 0 && (e = We);
4018
4018
  var r = al(t, e);
4019
4019
  return wl(function() {
4020
4020
  return r;
4021
4021
  }, n);
4022
4022
  }
4023
- const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4023
+ const Je = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4024
4024
  const r = new E(), i = e.pipe(
4025
4025
  k(r),
4026
4026
  R((s) => ({
@@ -4029,10 +4029,10 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4029
4029
  groupLabel: null,
4030
4030
  highlightDefault: s.highlightDefault
4031
4031
  })),
4032
- Je()
4032
+ Ze()
4033
4033
  ), o = n.pipe(
4034
4034
  k(r),
4035
- kn((s) => s.eventName === "mouseover" || s.eventName === "mousemove"),
4035
+ Nn((s) => s.eventName === "mouseover" || s.eventName === "mousemove"),
4036
4036
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4037
4037
  R((s) => s.datum ? {
4038
4038
  id: s.datum.id,
@@ -4047,12 +4047,12 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4047
4047
  })
4048
4048
  ), a = n.pipe(
4049
4049
  k(r),
4050
- kn((s) => s.eventName === "mouseout"),
4050
+ Nn((s) => s.eventName === "mouseout"),
4051
4051
  // distinctUntilChanged((prev, current) => prev.eventName === current.eventName)
4052
4052
  // map(d => {
4053
4053
  // return { id: '', label: '' }
4054
4054
  // })
4055
- et((s) => i)
4055
+ nt((s) => i)
4056
4056
  ), u = ({ data: s, id: l, seriesLabel: f, groupLabel: c, highlightDefault: h, target: d }) => {
4057
4057
  let m = [];
4058
4058
  if (h != null && h != "") {
@@ -4077,7 +4077,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4077
4077
  }
4078
4078
  return m;
4079
4079
  };
4080
- return new P((s) => (ct({
4080
+ return new C((s) => (ft({
4081
4081
  target: ul(o, a, i),
4082
4082
  datumList: t,
4083
4083
  fullChartParams: e
@@ -4096,7 +4096,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4096
4096
  }), function() {
4097
4097
  r.next(void 0);
4098
4098
  }));
4099
- }, tn = ({ datumList$: t }) => t.pipe(
4099
+ }, Qe = ({ datumList$: t }) => t.pipe(
4100
4100
  R((e) => {
4101
4101
  const n = /* @__PURE__ */ new Map();
4102
4102
  return e.forEach((r) => {
@@ -4104,7 +4104,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4104
4104
  i.push(r), n.set(r.seriesLabel, i);
4105
4105
  }), n;
4106
4106
  })
4107
- ), Ur = ({ datumList$: t }) => t.pipe(
4107
+ ), Xr = ({ datumList$: t }) => t.pipe(
4108
4108
  R((e) => {
4109
4109
  const n = /* @__PURE__ */ new Map();
4110
4110
  return e.forEach((r) => {
@@ -4113,16 +4113,16 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4113
4113
  }), n;
4114
4114
  })
4115
4115
  ), bl = ({ subject: t, observer: e }) => {
4116
- const n = Qe({
4116
+ const n = Je({
4117
4117
  datumList$: e.computedData$,
4118
4118
  fullChartParams$: e.fullChartParams$,
4119
4119
  event$: t.event$
4120
4120
  }).pipe(
4121
- A(1)
4122
- ), r = tn({
4121
+ S(1)
4122
+ ), r = Qe({
4123
4123
  datumList$: e.computedData$
4124
4124
  }).pipe(
4125
- A(1)
4125
+ S(1)
4126
4126
  );
4127
4127
  return {
4128
4128
  fullParams$: e.fullParams$,
@@ -4142,13 +4142,13 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4142
4142
  }) => {
4143
4143
  const o = r[0] ?? K.scaleDomain[0], a = r[1] ?? K.scaleDomain[1], u = i[0] ?? K.scaleRange[0], s = i[1] ?? K.scaleRange[1], l = o === "auto" ? e : o, f = a === "auto" ? t : a;
4144
4144
  let c = n * u, h = n * s;
4145
- return gr().domain([l, f]).range([c, h]);
4146
- }, Hl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4145
+ return vr().domain([l, f]).range([c, h]);
4146
+ }, Ul = ({ axisLabels: t, axisWidth: e, padding: n = 0.5 }) => {
4147
4147
  let r = [0, e];
4148
4148
  return Ku().domain(t).range(r).padding(n);
4149
- }, Ul = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4149
+ }, Xl = ({ axisLabels: t, axisWidth: e, padding: n = 0.5, reverse: r = !1 }) => {
4150
4150
  let o = t.map((a, u) => u);
4151
- return r && o.reverse(), vr().domain([-0, e + 0]).range(o);
4151
+ return r && o.reverse(), yr().domain([-0, e + 0]).range(o);
4152
4152
  }, _l = {
4153
4153
  series: !1,
4154
4154
  grid: !0,
@@ -4158,7 +4158,7 @@ const Qe = ({ datumList$: t, fullChartParams$: e, event$: n }) => {
4158
4158
  relationship: !1
4159
4159
  };
4160
4160
  function $l(t) {
4161
- return new P((e) => {
4161
+ return new C((e) => {
4162
4162
  const n = new ResizeObserver((r) => {
4163
4163
  const i = r[0];
4164
4164
  i && i.contentRect && e.next(i.contentRect);
@@ -4171,8 +4171,8 @@ function $l(t) {
4171
4171
  const Al = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }) => {
4172
4172
  const r = new E(), i = t.type;
4173
4173
  return function(a, u) {
4174
- Gt(a).selectAll("svg").remove();
4175
- const s = Gt(a).append("svg");
4174
+ Vt(a).selectAll("svg").remove();
4175
+ const s = Vt(a).append("svg");
4176
4176
  s.attr("xmlns:xlink", "http://www.w3.org/1999/xlink").attr("xmls", "http://www.w3.org/2000/svg").attr("version", "1.1").style("position", "absolute").classed("orbcharts__root", !0);
4177
4177
  const l = s.append("g");
4178
4178
  l.classed("orbcharts__layout", !0);
@@ -4184,141 +4184,141 @@ const Al = ({ defaultDataFormatter: t, computedDataFn: e, contextObserverFn: n }
4184
4184
  plugins$: new E(),
4185
4185
  chartParams$: new E(),
4186
4186
  event$: new E()
4187
- }, h = ((v) => {
4188
- const $ = v || Kr, x = $.preset ? $.preset : {};
4187
+ }, h = ((w) => {
4188
+ const _ = w || Zr, $ = _.preset ? _.preset : {};
4189
4189
  return {
4190
- chartParams: x.chartParams ? ot(x.chartParams, en) : en,
4191
- dataFormatter: x.dataFormatter ? ot(x.dataFormatter, t) : t,
4192
- allPluginParams: x.allPluginParams ? x.allPluginParams : {},
4193
- description: x.description ?? ""
4190
+ chartParams: $.chartParams ? at($.chartParams, tn) : tn,
4191
+ dataFormatter: $.dataFormatter ? at($.dataFormatter, t) : t,
4192
+ allPluginParams: $.allPluginParams ? $.allPluginParams : {},
4193
+ description: $.description ?? ""
4194
4194
  };
4195
- })(u), d = c.data$.pipe(A(1)), m = c.dataFormatter$.pipe(
4195
+ })(u), d = c.data$.pipe(S(1)), m = c.dataFormatter$.pipe(
4196
4196
  k(r),
4197
- Zt({}),
4198
- R((v) => ot(v, h.dataFormatter)),
4199
- A(1)
4197
+ Kt({}),
4198
+ R((w) => at(w, h.dataFormatter)),
4199
+ S(1)
4200
4200
  ), p = c.chartParams$.pipe(
4201
4201
  k(r),
4202
- Zt({}),
4203
- R((v) => ot(v, h.chartParams)),
4204
- A(1)
4202
+ Kt({}),
4203
+ R((w) => at(w, h.chartParams)),
4204
+ S(1)
4205
4205
  ), g = p.pipe(
4206
4206
  k(r),
4207
- Zt({}),
4208
- R((v) => ot(v.padding ?? {}, On))
4207
+ Kt({}),
4208
+ R((w) => at(w.padding ?? {}, kn))
4209
4209
  );
4210
4210
  g.pipe(
4211
4211
  k(r),
4212
4212
  gl()
4213
- ).subscribe((v) => {
4214
- l.attr("transform", `translate(${v.left}, ${v.top})`);
4215
- }), g.subscribe((v) => {
4216
- l.transition().attr("transform", `translate(${v.left}, ${v.top})`);
4213
+ ).subscribe((w) => {
4214
+ l.attr("transform", `translate(${w.left}, ${w.top})`);
4215
+ }), g.subscribe((w) => {
4216
+ l.transition().attr("transform", `translate(${w.left}, ${w.top})`);
4217
4217
  });
4218
- const _ = $l(a).pipe(
4218
+ const b = $l(a).pipe(
4219
4219
  k(r),
4220
- Fe()
4221
- ), S = Tt().pipe(
4220
+ Pe()
4221
+ ), D = Pt().pipe(
4222
4222
  yl(
4223
- _.pipe(
4223
+ b.pipe(
4224
4224
  cl(250)
4225
4225
  ),
4226
- _.pipe(
4226
+ b.pipe(
4227
4227
  xl(250)
4228
4228
  )
4229
4229
  ),
4230
- Je((v, $) => JSON.stringify(v) === JSON.stringify($)),
4231
- Fe()
4232
- ), b = S.subscribe(), D = ct({
4233
- rootSize: S,
4230
+ Ze((w, _) => JSON.stringify(w) === JSON.stringify(_)),
4231
+ Pe()
4232
+ ), x = D.subscribe(), M = ft({
4233
+ rootSize: D,
4234
4234
  mergedPadding: g
4235
4235
  }).pipe(
4236
4236
  k(r),
4237
- et(async (v) => {
4238
- const $ = v.rootSize.width > 0 ? v.rootSize.width : Zr, x = v.rootSize.height > 0 ? v.rootSize.height : Jr;
4237
+ nt(async (w) => {
4238
+ const _ = w.rootSize.width > 0 ? w.rootSize.width : Jr, $ = w.rootSize.height > 0 ? w.rootSize.height : Qr;
4239
4239
  return {
4240
- width: $ - v.mergedPadding.left - v.mergedPadding.right,
4241
- height: x - v.mergedPadding.top - v.mergedPadding.bottom,
4242
- top: v.mergedPadding.top,
4243
- right: v.mergedPadding.right,
4244
- bottom: v.mergedPadding.bottom,
4245
- left: v.mergedPadding.left,
4246
- rootWidth: $,
4247
- rootHeight: x
4240
+ width: _ - w.mergedPadding.left - w.mergedPadding.right,
4241
+ height: $ - w.mergedPadding.top - w.mergedPadding.bottom,
4242
+ top: w.mergedPadding.top,
4243
+ right: w.mergedPadding.right,
4244
+ bottom: w.mergedPadding.bottom,
4245
+ left: w.mergedPadding.left,
4246
+ rootWidth: _,
4247
+ rootHeight: $
4248
4248
  };
4249
4249
  }),
4250
- A(1)
4250
+ S(1)
4251
4251
  );
4252
- D.subscribe((v) => {
4253
- s.attr("width", v.rootWidth).attr("height", v.rootHeight);
4252
+ M.subscribe((w) => {
4253
+ s.attr("width", w.rootWidth).attr("height", w.rootHeight);
4254
4254
  });
4255
- const w = ct({
4255
+ const y = ft({
4256
4256
  data: d,
4257
4257
  dataFormatter: m,
4258
4258
  chartParams: p,
4259
- layout: ol(() => _l[i] === !0, D, Tt(void 0))
4259
+ layout: ol(() => _l[i] === !0, M, Pt(void 0))
4260
4260
  }).pipe(
4261
4261
  k(r),
4262
- et(async (v) => v),
4263
- et((v) => Tt(v).pipe(
4264
- R(($) => {
4262
+ nt(async (w) => w),
4263
+ nt((w) => Pt(w).pipe(
4264
+ R((_) => {
4265
4265
  try {
4266
- return e({ data: $.data, dataFormatter: $.dataFormatter, chartParams: $.chartParams, layout: $.layout });
4267
- } catch (x) {
4268
- throw console.error(x), new Error(x);
4266
+ return e({ data: _.data, dataFormatter: _.dataFormatter, chartParams: _.chartParams, layout: _.layout });
4267
+ } catch ($) {
4268
+ throw console.error($), new Error($);
4269
4269
  }
4270
4270
  }),
4271
- Hr(() => je)
4271
+ Ur(() => qe)
4272
4272
  )),
4273
- A(1)
4274
- ), M = {};
4275
- return c.plugins$.subscribe((v) => {
4276
- if (!v)
4273
+ S(1)
4274
+ ), P = {};
4275
+ return c.plugins$.subscribe((w) => {
4276
+ if (!w)
4277
4277
  return;
4278
- const $ = f.selectAll("g.orbcharts__plugin").data(v, (y) => y.name), x = $.enter().append("g").attr("class", (y) => `orbcharts__plugin orbcharts__${y.name}`);
4279
- $.exit().remove().each((y, N, C) => {
4280
- M[y.name] && M[y.name].destroy();
4281
- }), x.each((y, N, C) => {
4278
+ const _ = f.selectAll("g.orbcharts__plugin").data(w, (v) => v.name), $ = _.enter().append("g").attr("class", (v) => `orbcharts__plugin orbcharts__${v.name}`);
4279
+ _.exit().remove().each((v, F, T) => {
4280
+ P[v.name] && P[v.name].destroy();
4281
+ }), $.each((v, F, T) => {
4282
4282
  const z = {
4283
- fullParams$: new P(),
4283
+ fullParams$: new C(),
4284
4284
  fullChartParams$: p,
4285
4285
  fullDataFormatter$: m,
4286
- computedData$: w,
4287
- layout$: D
4288
- }, ht = n({
4286
+ computedData$: y,
4287
+ layout$: M
4288
+ }, tt = n({
4289
4289
  observer: z,
4290
4290
  subject: c
4291
- }), B = {
4292
- selection: Gt(C[N]),
4291
+ }), W = {
4292
+ selection: Vt(T[F]),
4293
4293
  rootSelection: s,
4294
- name: y.name,
4294
+ name: v.name,
4295
4295
  chartType: i,
4296
4296
  subject: c,
4297
- observer: ht
4297
+ observer: tt
4298
4298
  };
4299
- y.setPresetParams(h.allPluginParams[y.name] ?? {}), y.setContext(B), M[B.name] = y, y.init();
4299
+ v.setPresetParams(h.allPluginParams[v.name] ?? {}), v.setContext(W), P[W.name] = v, v.init();
4300
4300
  });
4301
4301
  }), {
4302
4302
  ...c,
4303
4303
  selection: s,
4304
4304
  destroy() {
4305
- Gt(a).selectAll("svg").remove(), r.next(void 0), b.unsubscribe();
4305
+ Vt(a).selectAll("svg").remove(), r.next(void 0), x.unsubscribe();
4306
4306
  }
4307
4307
  };
4308
4308
  };
4309
4309
  };
4310
- class Dt {
4310
+ class St {
4311
4311
  constructor({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r }, i, o) {
4312
4312
  this.data$ = new E(), this.dataFormatter$ = new E(), this.plugins$ = new E(), this.chartParams$ = new E(), this.event$ = new E();
4313
4313
  const u = Al({ defaultDataFormatter: e, computedDataFn: n, contextObserverFn: r })(i, o);
4314
4314
  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$;
4315
4315
  }
4316
4316
  }
4317
- class Xl extends Dt {
4317
+ class Yl extends St {
4318
4318
  constructor(e, n) {
4319
4319
  super(
4320
4320
  {
4321
- defaultDataFormatter: ti,
4321
+ defaultDataFormatter: ei,
4322
4322
  computedDataFn: fs,
4323
4323
  contextObserverFn: bl
4324
4324
  },
@@ -4327,95 +4327,96 @@ class Xl extends Dt {
4327
4327
  );
4328
4328
  }
4329
4329
  }
4330
- const Xr = (t) => {
4331
- const { data: e = [], dataFormatter: n, chartParams: r, layout: i } = t;
4332
- if (!e.length)
4330
+ const Sl = (t) => Yr(t, "grid", 0), Yr = (t, e, n = 0) => {
4331
+ const { data: r = [], dataFormatter: i, chartParams: o, layout: a } = t;
4332
+ if (!r.length)
4333
4333
  return [];
4334
- let o;
4334
+ let u;
4335
4335
  try {
4336
- const a = e.reduce((v, $) => $.length > v ? $.length : v, 0), s = e.map((v, $) => {
4337
- if (v.length === a)
4338
- return v;
4339
- const x = Object.assign([], v);
4340
- for (let T = x.length; T < a; T++)
4341
- x[T] = null;
4342
- return x;
4343
- }).map((v, $) => v.map((x, T) => {
4344
- const y = n.colorsPredicate(x, $, T, t), N = n.visibleFilter(x, $, T, t);
4345
- return x == null ? {
4336
+ const s = r.reduce((_, $) => $.length > _ ? $.length : _, 0), f = r.map((_, $) => {
4337
+ if (_.length === s)
4338
+ return _;
4339
+ const A = Object.assign([], _);
4340
+ for (let v = A.length; v < s; v++)
4341
+ A[v] = null;
4342
+ return A;
4343
+ }).map((_, $) => _.map((A, v) => {
4344
+ const F = i.visibleFilter(A, $, v, t);
4345
+ return A == null ? {
4346
4346
  id: "",
4347
4347
  label: "",
4348
- tooltipContent: "",
4348
+ // tooltipContent: '',
4349
4349
  data: {},
4350
4350
  value: null,
4351
- _color: y,
4352
- _visible: N
4353
- } : typeof x == "number" ? {
4351
+ // _color,
4352
+ _visible: F
4353
+ } : typeof A == "number" ? {
4354
4354
  id: "",
4355
4355
  label: "",
4356
- tooltipContent: "",
4356
+ // tooltipContent: '',
4357
4357
  data: {},
4358
- value: x,
4359
- _color: y,
4360
- _visible: N
4358
+ value: A,
4359
+ // _color,
4360
+ _visible: F
4361
4361
  } : {
4362
- id: x.id ?? "",
4363
- label: x.label ?? "",
4364
- tooltipContent: x.tooltipContent ?? "",
4365
- data: x.data ?? {},
4366
- value: x.value,
4367
- _color: y,
4368
- _visible: N
4362
+ id: A.id ?? "",
4363
+ label: A.label ?? "",
4364
+ // tooltipContent: _d.tooltipContent ?? '',
4365
+ data: A.data ?? {},
4366
+ value: A.value,
4367
+ // _color,
4368
+ _visible: F
4369
4369
  };
4370
- })), l = ls(n.grid.seriesType, s), f = n.groupAxis.position === "top" || n.groupAxis.position === "bottom" ? i.width : i.height, c = l[0] ? l[0].length - 1 : 0, h = bt({
4371
- maxValue: c,
4370
+ })), c = ls(i.grid.seriesType, f), h = i.groupAxis.position === "top" || i.groupAxis.position === "bottom" ? a.width : a.height, d = c[0] ? c[0].length - 1 : 0, m = bt({
4371
+ maxValue: d,
4372
4372
  minValue: 0,
4373
- axisWidth: f,
4374
- scaleDomain: [0, c],
4373
+ axisWidth: h,
4374
+ scaleDomain: [0, d],
4375
4375
  // 不使用dataFormatter設定
4376
4376
  scaleRange: [0, 1]
4377
4377
  // 不使用dataFormatter設定
4378
- }), d = [
4379
- n.groupAxis.scaleDomain[0] === "auto" ? 0 : n.groupAxis.scaleDomain[0],
4380
- n.groupAxis.scaleDomain[1] === "auto" ? c : n.groupAxis.scaleDomain[1]
4381
- ], m = l.flat().filter((v) => v._visible != !1), [p, g] = Ce(m), _ = n.valueAxis.position === "left" || n.valueAxis.position === "right" ? i.height : i.width, S = us(l, n), b = ss(l, n), D = bt({
4382
- maxValue: g,
4383
- minValue: p,
4384
- axisWidth: _,
4385
- scaleDomain: [p, g],
4378
+ }), p = c.flat().filter((_) => _._visible != !1), [g, b] = De(p), D = i.valueAxis.position === "left" || i.valueAxis.position === "right" ? a.height : a.width, x = us({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), M = ss({ transposedDataGrid: c, dataFormatter: i, chartType: e, gridIndex: n }), y = bt({
4379
+ maxValue: b,
4380
+ minValue: g,
4381
+ axisWidth: D,
4382
+ scaleDomain: [g, b],
4386
4383
  // 不使用dataFormatter設定
4387
4384
  scaleRange: [0, 1]
4388
4385
  // 不使用dataFormatter設定
4389
- }), w = D(0);
4390
- let M = 0;
4391
- o = l.map((v, $) => v.map((x, T) => {
4392
- const y = Ue(n.type, $, T), N = b[T], C = D(x.value ?? 0), z = {
4393
- id: x.id ? x.id : y,
4394
- index: M,
4395
- label: x.label ? x.label : y,
4396
- tooltipContent: x.tooltipContent ? x.tooltipContent : n.tooltipContentFormat(x, $, T, t),
4397
- data: x.data,
4398
- value: x.value,
4386
+ }), P = y(0);
4387
+ let w = 0;
4388
+ u = c.map((_, $) => _.map((A, v) => {
4389
+ const F = ze(e, n, $, v), T = M[v], z = y(A.value ?? 0), tt = {
4390
+ id: A.id ? A.id : F,
4391
+ index: w,
4392
+ label: A.label ? A.label : F,
4393
+ description: A.description ?? "",
4394
+ // tooltipContent: groupDatum.tooltipContent ? groupDatum.tooltipContent : dataFormatter.tooltipContentFormat(groupDatum, seriesIndex, groupIndex, context),
4395
+ data: A.data,
4396
+ value: A.value,
4399
4397
  // valueLabel: formatValueToLabel(groupDatum.value, dataFormatter.valueFormat),
4398
+ gridIndex: n,
4399
+ accSeriesIndex: $,
4400
+ // 預設為seriesIndex
4400
4401
  seriesIndex: $,
4401
- seriesLabel: S[$],
4402
- groupIndex: T,
4403
- groupLabel: N,
4404
- // color: seriesColors[seriesIndex],
4405
- color: x._color,
4406
- axisX: h(T),
4407
- axisY: C,
4408
- axisYFromZero: C - w,
4402
+ seriesLabel: x[$],
4403
+ groupIndex: v,
4404
+ groupLabel: T,
4405
+ // color: groupDatum._color,
4406
+ color: He($, o),
4407
+ axisX: m(v),
4408
+ axisY: z,
4409
+ axisYFromZero: z - P,
4409
4410
  // visible: groupDatum._visible == true && scaleDomainFilter(groupIndex) == true ? true : false // 兩者有一個false即為false
4410
- visible: x._visible
4411
+ visible: A._visible
4411
4412
  };
4412
- return M++, z;
4413
+ return w++, tt;
4413
4414
  }));
4414
- } catch (a) {
4415
- throw Error(a);
4415
+ } catch (s) {
4416
+ throw Error(s);
4416
4417
  }
4417
- return o;
4418
- }, Yr = ({ fullDataFormatter$: t, layout$: e }) => {
4418
+ return u;
4419
+ }, Br = ({ fullDataFormatter$: t, layout$: e }) => {
4419
4420
  const n = new E();
4420
4421
  function r({ xAxis: i, yAxis: o, width: a, height: u }) {
4421
4422
  if (!i || !o)
@@ -4437,12 +4438,12 @@ const Xr = (t) => {
4437
4438
  value: `translate(${s}px, ${l}px) rotate(${f}deg) rotateX(${c}deg) rotateY(${h}deg)`
4438
4439
  };
4439
4440
  }
4440
- return new P((i) => (ct({
4441
+ return new C((i) => (ft({
4441
4442
  fullDataFormatter: t,
4442
4443
  layout: e
4443
4444
  }).pipe(
4444
4445
  k(n),
4445
- et(async (o) => o)
4446
+ nt(async (o) => o)
4446
4447
  ).subscribe((o) => {
4447
4448
  const a = r({
4448
4449
  xAxis: o.fullDataFormatter.groupAxis,
@@ -4458,23 +4459,23 @@ const Xr = (t) => {
4458
4459
  const r = new E();
4459
4460
  function i({ data: o, groupAxis: a, valueAxis: u, width: s, height: l }) {
4460
4461
  let f = 0, c = 0, h = 0, d = 0;
4461
- const m = a.position === "top" || a.position === "bottom" ? s : l, p = 0, g = o[0] ? o[0].length - 1 : 0, _ = a.scaleDomain[0] === "auto" ? p - a.scalePadding : a.scaleDomain[0] - a.scalePadding, S = a.scaleDomain[1] === "auto" ? g + a.scalePadding : a.scaleDomain[1] + a.scalePadding, b = bt({
4462
+ const m = a.position === "top" || a.position === "bottom" ? s : l, p = 0, g = o[0] ? o[0].length - 1 : 0, b = a.scaleDomain[0] === "auto" ? p - a.scalePadding : a.scaleDomain[0] - a.scalePadding, D = a.scaleDomain[1] === "auto" ? g + a.scalePadding : a.scaleDomain[1] + a.scalePadding, x = bt({
4462
4463
  maxValue: g,
4463
4464
  minValue: p,
4464
4465
  axisWidth: m,
4465
4466
  // scaleDomain: groupAxis.scaleDomain,
4466
- scaleDomain: [_, S],
4467
+ scaleDomain: [b, D],
4467
4468
  scaleRange: [0, 1]
4468
- }), D = b(p), w = b(g);
4469
- f = D, h = (w - D) / m;
4470
- const v = o.map((ht, dt) => ht.filter((B, it) => it >= _ && it <= S && B.visible == !0)), $ = Mn(v), x = u.position === "left" || u.position === "right" ? l : s, T = bt({
4471
- maxValue: $[1],
4472
- minValue: $[0],
4473
- axisWidth: x,
4469
+ }), M = x(p), y = x(g);
4470
+ f = M, h = (y - M) / m;
4471
+ const w = o.map((tt, dt) => tt.filter((W, ot) => ot >= b && ot <= D && W.visible == !0)), _ = Dn(w), $ = u.position === "left" || u.position === "right" ? l : s, A = bt({
4472
+ maxValue: _[1],
4473
+ minValue: _[0],
4474
+ axisWidth: $,
4474
4475
  scaleDomain: u.scaleDomain,
4475
4476
  scaleRange: u.scaleRange
4476
- }), y = Mn(o), N = T(y[0]), C = T(y[1]);
4477
- return c = N, d = (C - N) / x, {
4477
+ }), v = Dn(o), F = A(v[0]), T = A(v[1]);
4478
+ return c = F, d = (T - F) / $, {
4478
4479
  translate: [f, c],
4479
4480
  scale: [h, d],
4480
4481
  rotate: 0,
@@ -4483,13 +4484,13 @@ const Xr = (t) => {
4483
4484
  value: `translate(${f}px, ${c}px) scale(${h}, ${d})`
4484
4485
  };
4485
4486
  }
4486
- return new P((o) => (ct({
4487
+ return new C((o) => (ft({
4487
4488
  computedData: t,
4488
4489
  fullDataFormatter: e,
4489
4490
  layout: n
4490
4491
  }).pipe(
4491
4492
  k(r),
4492
- et(async (a) => a)
4493
+ nt(async (a) => a)
4493
4494
  ).subscribe((a) => {
4494
4495
  const u = i({
4495
4496
  data: a.computedData,
@@ -4502,7 +4503,7 @@ const Xr = (t) => {
4502
4503
  }), function() {
4503
4504
  r.next(void 0);
4504
4505
  }));
4505
- }, Br = ({ gridAxesTransform$: t }) => t.pipe(
4506
+ }, qr = ({ gridAxesTransform$: t }) => t.pipe(
4506
4507
  R((e) => {
4507
4508
  const n = [0, 0], r = [e.scale[0] * -1, e.scale[1] * -1], i = e.rotate * -1, o = e.rotateX * -1, a = e.rotateY * -1;
4508
4509
  return {
@@ -4514,7 +4515,7 @@ const Xr = (t) => {
4514
4515
  value: `translate(${n[0]}px, ${n[1]}px) rotate(${i}deg) rotateX(${o}deg) rotateY(${a}deg)`
4515
4516
  };
4516
4517
  })
4517
- ), qr = ({ fullDataFormatter$: t, layout$: e }) => {
4518
+ ), jr = ({ fullDataFormatter$: t, layout$: e }) => {
4518
4519
  const n = new E();
4519
4520
  function r({ xAxisPosition: i, yAxisPosition: o, width: a, height: u }) {
4520
4521
  if ((i === "bottom" || i === "top") && (o === "left" || o === "right"))
@@ -4525,13 +4526,13 @@ const Xr = (t) => {
4525
4526
  height: a
4526
4527
  };
4527
4528
  }
4528
- return new P((i) => {
4529
- ct({
4529
+ return new C((i) => {
4530
+ ft({
4530
4531
  fullDataFormatter: t,
4531
4532
  layout: e
4532
4533
  }).pipe(
4533
4534
  k(n),
4534
- et(async (o) => o)
4535
+ nt(async (o) => o)
4535
4536
  ).subscribe((o) => {
4536
4537
  const a = r({
4537
4538
  xAxisPosition: o.fullDataFormatter.groupAxis.position,
@@ -4544,51 +4545,51 @@ const Xr = (t) => {
4544
4545
  };
4545
4546
  });
4546
4547
  });
4547
- }, jr = ({ computedData$: t }) => t.pipe(
4548
+ }, Kr = ({ computedData$: t }) => t.pipe(
4548
4549
  R((e) => e.map((r) => r.filter((i) => i.visible == !0)).filter((r) => r.length))
4549
- ), Sl = ({ subject: t, observer: e }) => {
4550
- const n = Yr({
4550
+ ), Dl = ({ subject: t, observer: e }) => {
4551
+ const n = Br({
4551
4552
  fullDataFormatter$: e.fullDataFormatter$,
4552
4553
  layout$: e.layout$
4553
4554
  }).pipe(
4554
- A(1)
4555
+ S(1)
4555
4556
  ), r = Wr({
4556
4557
  computedData$: e.computedData$,
4557
4558
  fullDataFormatter$: e.fullDataFormatter$,
4558
4559
  layout$: e.layout$
4559
4560
  }).pipe(
4560
- A(1)
4561
- ), i = Br({
4561
+ S(1)
4562
+ ), i = qr({
4562
4563
  gridAxesTransform$: n
4563
4564
  }).pipe(
4564
- A(1)
4565
- ), o = qr({
4565
+ S(1)
4566
+ ), o = jr({
4566
4567
  fullDataFormatter$: e.fullDataFormatter$,
4567
4568
  layout$: e.layout$
4568
4569
  }).pipe(
4569
- A(1)
4570
+ S(1)
4570
4571
  ), a = e.computedData$.pipe(
4571
4572
  R((c) => c.flat())
4572
4573
  ).pipe(
4573
- A(1)
4574
- ), u = Qe({
4574
+ S(1)
4575
+ ), u = Je({
4575
4576
  datumList$: a,
4576
4577
  fullChartParams$: e.fullChartParams$,
4577
4578
  event$: t.event$
4578
4579
  }).pipe(
4579
- A(1)
4580
- ), s = tn({
4580
+ S(1)
4581
+ ), s = Qe({
4581
4582
  datumList$: a
4582
4583
  }).pipe(
4583
- A(1)
4584
- ), l = Ur({
4584
+ S(1)
4585
+ ), l = Xr({
4585
4586
  datumList$: a
4586
4587
  }).pipe(
4587
- A(1)
4588
- ), f = jr({
4588
+ S(1)
4589
+ ), f = Kr({
4589
4590
  computedData$: e.computedData$
4590
4591
  }).pipe(
4591
- A(1)
4592
+ S(1)
4592
4593
  );
4593
4594
  return {
4594
4595
  fullParams$: e.fullParams$,
@@ -4606,127 +4607,123 @@ const Xr = (t) => {
4606
4607
  visibleComputedData$: f
4607
4608
  };
4608
4609
  };
4609
- class Yl extends Dt {
4610
+ class Bl extends St {
4610
4611
  constructor(e, n) {
4611
4612
  super(
4612
4613
  {
4613
- defaultDataFormatter: ye,
4614
- computedDataFn: Xr,
4615
- contextObserverFn: Sl
4614
+ defaultDataFormatter: In,
4615
+ computedDataFn: Sl,
4616
+ contextObserverFn: Dl
4616
4617
  },
4617
4618
  e,
4618
4619
  n
4619
4620
  );
4620
4621
  }
4621
4622
  }
4622
- const Dl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4623
+ const Ml = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4623
4624
  if (!t.length)
4624
4625
  return [];
4625
4626
  let i = [];
4626
4627
  try {
4627
- i = t.map((o, a) => {
4628
- const u = {
4629
- ...e.multiGrid[a],
4630
- type: `multiGrid_${a}`,
4631
- // 非規範的名稱,用作 datum id 前綴
4632
- // colors: dataFormatter.colors,
4633
- colorsPredicate: e.multiGrid[a].colorsPredicate,
4634
- visibleFilter: e.visibleFilter,
4635
- // 用any避開function參數型別不同
4636
- // padding: dataFormatter.padding,
4637
- tooltipContentFormat: e.tooltipContentFormat
4638
- // 用any避開function參數型別不同
4639
- };
4640
- return Xr({
4641
- data: o,
4642
- dataFormatter: u,
4643
- chartParams: n,
4644
- layout: r
4645
- });
4628
+ const o = Object.assign({}, On.multiGrid[0]);
4629
+ i = t.map((u, s) => {
4630
+ const l = e.multiGrid[s] || o;
4631
+ return Yr(
4632
+ {
4633
+ data: u,
4634
+ dataFormatter: l,
4635
+ chartParams: n,
4636
+ layout: r
4637
+ },
4638
+ "multiGrid",
4639
+ s
4640
+ );
4646
4641
  });
4642
+ let a = -1;
4643
+ i = i.map((u, s) => u.map((l, f) => (a++, l.map((c) => (c.accSeriesIndex = a, c.color = He(a, n), c)))));
4647
4644
  } catch (o) {
4648
4645
  throw Error(o);
4649
4646
  }
4650
4647
  return i;
4651
- }, Ml = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4648
+ }, El = ({ fullDataFormatter$: t, computedData$: e, layout$: n, fullChartParams$: r, event$: i }) => {
4652
4649
  const o = new E();
4653
- return ct({
4650
+ return ft({
4654
4651
  fullDataFormatter: t,
4655
4652
  computedData: e
4656
4653
  }).pipe(
4657
- et(async (a) => a),
4658
- Je((a, u) => a.computedData.length === u.computedData.length),
4654
+ nt(async (a) => a),
4655
+ Ze((a, u) => a.computedData.length === u.computedData.length),
4659
4656
  R((a) => (o.next(void 0), a.computedData.map((u, s) => {
4660
- const l = a.fullDataFormatter.multiGrid[s] ?? a.fullDataFormatter.multiGrid[0], f = Tt(l).pipe(
4657
+ const l = a.fullDataFormatter.multiGrid[s] ?? a.fullDataFormatter.multiGrid[0], f = Pt(l).pipe(
4661
4658
  k(o),
4662
- A(1)
4663
- ), c = Tt(u).pipe(
4659
+ S(1)
4660
+ ), c = Pt(u).pipe(
4664
4661
  k(o),
4665
- A(1)
4666
- ), h = Yr({
4662
+ S(1)
4663
+ ), h = Br({
4667
4664
  fullDataFormatter$: f,
4668
4665
  layout$: n
4669
4666
  }).pipe(
4670
- A(1)
4667
+ S(1)
4671
4668
  ), d = Wr({
4672
4669
  computedData$: c,
4673
4670
  fullDataFormatter$: f,
4674
4671
  layout$: n
4675
4672
  }).pipe(
4676
- A(1)
4677
- ), m = Br({
4673
+ S(1)
4674
+ ), m = qr({
4678
4675
  gridAxesTransform$: h
4679
4676
  }).pipe(
4680
- A(1)
4681
- ), p = qr({
4677
+ S(1)
4678
+ ), p = jr({
4682
4679
  fullDataFormatter$: f,
4683
4680
  layout$: n
4684
4681
  }).pipe(
4685
- A(1)
4682
+ S(1)
4686
4683
  ), g = c.pipe(
4687
- R((w) => w.flat())
4684
+ R((y) => y.flat())
4688
4685
  ).pipe(
4689
- A(1)
4690
- ), _ = Qe({
4686
+ S(1)
4687
+ ), b = Je({
4691
4688
  datumList$: g,
4692
4689
  fullChartParams$: r,
4693
4690
  event$: i
4694
4691
  }).pipe(
4695
- A(1)
4696
- ), S = tn({
4692
+ S(1)
4693
+ ), D = Qe({
4697
4694
  datumList$: g
4698
4695
  }).pipe(
4699
- A(1)
4700
- ), b = Ur({
4696
+ S(1)
4697
+ ), x = Xr({
4701
4698
  datumList$: g
4702
4699
  }).pipe(
4703
- A(1)
4704
- ), D = jr({
4700
+ S(1)
4701
+ ), M = Kr({
4705
4702
  computedData$: c
4706
4703
  }).pipe(
4707
- A(1)
4704
+ S(1)
4708
4705
  );
4709
4706
  return {
4710
4707
  gridAxesTransform$: h,
4711
4708
  gridGraphicTransform$: d,
4712
4709
  gridAxesOppositeTransform$: m,
4713
4710
  gridAxesSize$: p,
4714
- gridHighlight$: _,
4715
- SeriesDataMap$: S,
4716
- GroupDataMap$: b,
4717
- visibleComputedData$: D
4711
+ gridHighlight$: b,
4712
+ SeriesDataMap$: D,
4713
+ GroupDataMap$: x,
4714
+ visibleComputedData$: M
4718
4715
  };
4719
4716
  })))
4720
4717
  );
4721
4718
  }, Cl = ({ subject: t, observer: e }) => {
4722
- const n = Ml({
4719
+ const n = El({
4723
4720
  fullDataFormatter$: e.fullDataFormatter$,
4724
4721
  computedData$: e.computedData$,
4725
4722
  layout$: e.layout$,
4726
4723
  fullChartParams$: e.fullChartParams$,
4727
4724
  event$: t.event$
4728
4725
  }).pipe(
4729
- A(1)
4726
+ S(1)
4730
4727
  );
4731
4728
  return {
4732
4729
  fullParams$: e.fullParams$,
@@ -4737,12 +4734,12 @@ const Dl = ({ data: t = [], dataFormatter: e, chartParams: n, layout: r }) => {
4737
4734
  multiGrid$: n
4738
4735
  };
4739
4736
  };
4740
- class Wl extends Dt {
4737
+ class Wl extends St {
4741
4738
  constructor(e, n) {
4742
4739
  super(
4743
4740
  {
4744
- defaultDataFormatter: ei,
4745
- computedDataFn: Dl,
4741
+ defaultDataFormatter: On,
4742
+ computedDataFn: Ml,
4746
4743
  contextObserverFn: Cl
4747
4744
  },
4748
4745
  e,
@@ -4750,25 +4747,27 @@ class Wl extends Dt {
4750
4747
  );
4751
4748
  }
4752
4749
  }
4753
- const El = (t) => {
4750
+ const Pl = (t) => {
4754
4751
  const { data: e, dataFormatter: n, chartParams: r, layout: i } = t;
4755
4752
  if (!e.length)
4756
4753
  return [];
4757
4754
  let o = [];
4758
4755
  try {
4759
- const a = e.map((b, D) => b.map((w, M) => typeof w == "number" ? {
4756
+ const a = e.map((x, M) => x.map((y, P) => typeof y == "number" ? {
4760
4757
  id: "",
4761
4758
  label: "",
4762
- tooltipContent: "",
4759
+ description: "",
4760
+ // tooltipContent: '',
4763
4761
  data: {},
4764
- value: w
4762
+ value: y
4765
4763
  } : {
4766
- id: w.id ?? "",
4767
- label: w.label ?? "",
4768
- tooltipContent: w.tooltipContent ?? "",
4769
- data: w.data ?? {},
4770
- value: w.value
4771
- })), [u, s] = Ce(a.map((b) => b[0])), [l, f] = Ce(a.map((b) => b[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, d = bt({
4764
+ id: y.id ?? "",
4765
+ label: y.label ?? "",
4766
+ description: y.description ?? "",
4767
+ // tooltipContent: _d.tooltipContent ?? '',
4768
+ data: y.data ?? {},
4769
+ value: y.value
4770
+ })), [u, s] = De(a.map((x) => x[0])), [l, f] = De(a.map((x) => x[1])), c = n.xAxis.position === "top" || n.xAxis.position === "bottom" ? i.width : i.height, h = n.yAxis.position === "left" || n.yAxis.position === "right" ? i.height : i.width, d = bt({
4772
4771
  maxValue: s,
4773
4772
  minValue: u,
4774
4773
  axisWidth: c,
@@ -4790,42 +4789,43 @@ const El = (t) => {
4790
4789
  ], g = [
4791
4790
  n.yAxis.scaleDomain[0] === "auto" ? l : n.yAxis.scaleDomain[0],
4792
4791
  n.yAxis.scaleDomain[1] === "auto" ? f : n.yAxis.scaleDomain[1]
4793
- ], _ = (b, D, w, M) => w === 0 && b.value != null && (b.value < p[0] || b.value > p[1]) || w === 1 && b.value != null && (b.value < g[0] || b.value > g[1]) ? !1 : n.visibleFilter(b, D, w, M);
4794
- let S = 0;
4795
- o = a.map((b, D) => b.map((w, M) => {
4796
- const v = S;
4797
- S++;
4798
- const $ = Ue(n.type, D, M), x = _(w, D, M, t);
4792
+ ], b = (x, M, y, P) => y === 0 && x.value != null && (x.value < p[0] || x.value > p[1]) || y === 1 && x.value != null && (x.value < g[0] || x.value > g[1]) ? !1 : n.visibleFilter(x, M, y, P);
4793
+ let D = 0;
4794
+ o = a.map((x, M) => x.map((y, P) => {
4795
+ const w = D;
4796
+ D++;
4797
+ const _ = ze(n.type, M, P), $ = b(y, M, P, t);
4799
4798
  return {
4800
- id: w.id ? w.id : $,
4801
- index: v,
4802
- label: w.label ? w.label : $,
4803
- tooltipContent: w.tooltipContent ? w.tooltipContent : n.tooltipContentFormat(w, D, M, t),
4804
- data: w.data,
4805
- value: w.value,
4799
+ id: y.id ? y.id : _,
4800
+ index: w,
4801
+ label: y.label ? y.label : _,
4802
+ description: y.description ?? "",
4803
+ // tooltipContent: _d.tooltipContent ? _d.tooltipContent : dataFormatter.tooltipContentFormat(_d, i, _i, context),
4804
+ data: y.data,
4805
+ value: y.value,
4806
4806
  // valueLabel: formatValueToLabel(_d.value, dataFormatter.multiValue[_i].valueFormat),
4807
- axis: M == 0 ? d(w.value) : m(w.value),
4808
- visible: x
4807
+ axis: P == 0 ? d(y.value) : m(y.value),
4808
+ visible: $
4809
4809
  };
4810
4810
  }));
4811
4811
  } catch (a) {
4812
4812
  throw Error(a);
4813
4813
  }
4814
4814
  return o;
4815
- }, Pl = ({ subject: t, observer: e }) => ({
4815
+ }, Fl = ({ subject: t, observer: e }) => ({
4816
4816
  fullParams$: e.fullParams$,
4817
4817
  fullChartParams$: e.fullChartParams$,
4818
4818
  fullDataFormatter$: e.fullDataFormatter$,
4819
4819
  computedData$: e.computedData$,
4820
4820
  layout$: e.layout$
4821
4821
  });
4822
- class Bl extends Dt {
4822
+ class ql extends St {
4823
4823
  constructor(e, n) {
4824
4824
  super(
4825
4825
  {
4826
4826
  defaultDataFormatter: ni,
4827
- computedDataFn: El,
4828
- contextObserverFn: Pl
4827
+ computedDataFn: Pl,
4828
+ contextObserverFn: Fl
4829
4829
  },
4830
4830
  e,
4831
4831
  n
@@ -4850,8 +4850,8 @@ const Tl = (t) => {
4850
4850
  id: c.id,
4851
4851
  index: h,
4852
4852
  label: c.label ?? "",
4853
- tooltipContent: c.tooltipContent ? c.tooltipContent : n.tooltipContentFormat(c, 0, h, t),
4854
- // 0代表node
4853
+ description: c.description ?? "",
4854
+ // tooltipContent: node.tooltipContent ? node.tooltipContent : dataFormatter.tooltipContentFormat(node, 0, i, context), // 0代表node
4855
4855
  data: c.data ?? {},
4856
4856
  value: c.value ?? 0,
4857
4857
  startNodes: [],
@@ -4870,8 +4870,8 @@ const Tl = (t) => {
4870
4870
  id: c.id,
4871
4871
  index: h,
4872
4872
  label: c.label ?? "",
4873
- tooltipContent: c.tooltipContent ? c.tooltipContent : n.tooltipContentFormat(c, 1, h, t),
4874
- // 1代表edge
4873
+ description: c.description ?? "",
4874
+ // tooltipContent: edge.tooltipContent ? edge.tooltipContent : dataFormatter.tooltipContentFormat(edge, 1, i, context), // 1代表edge
4875
4875
  data: c.data ?? {},
4876
4876
  value: c.value ?? 0,
4877
4877
  startNode: s.get(c.start),
@@ -4904,34 +4904,35 @@ const Tl = (t) => {
4904
4904
  nodes: i,
4905
4905
  edges: o
4906
4906
  };
4907
- }, Fl = ({ subject: t, observer: e }) => ({
4907
+ }, Nl = ({ subject: t, observer: e }) => ({
4908
4908
  fullParams$: e.fullParams$,
4909
4909
  fullChartParams$: e.fullChartParams$,
4910
4910
  fullDataFormatter$: e.fullDataFormatter$,
4911
4911
  computedData$: e.computedData$,
4912
4912
  layout$: e.layout$
4913
4913
  });
4914
- class ql extends Dt {
4914
+ class jl extends St {
4915
4915
  constructor(e, n) {
4916
4916
  super(
4917
4917
  {
4918
4918
  defaultDataFormatter: ii,
4919
4919
  computedDataFn: Tl,
4920
- contextObserverFn: Fl
4920
+ contextObserverFn: Nl
4921
4921
  },
4922
4922
  e,
4923
4923
  n
4924
4924
  );
4925
4925
  }
4926
4926
  }
4927
- const Nl = (t) => {
4927
+ const kl = (t) => {
4928
4928
  const { data: e = [], dataFormatter: n, chartParams: r } = t;
4929
4929
  let i = {
4930
4930
  id: "",
4931
4931
  index: 0,
4932
4932
  label: "",
4933
+ description: "",
4933
4934
  visible: !0,
4934
- tooltipContent: "",
4935
+ // tooltipContent: '',
4935
4936
  data: {},
4936
4937
  value: 0,
4937
4938
  level: 0,
@@ -4960,7 +4961,7 @@ const Nl = (t) => {
4960
4961
  id: c.id,
4961
4962
  label: c.label,
4962
4963
  data: c.data,
4963
- tooltipContent: c.tooltipContent,
4964
+ // tooltipContent: root.tooltipContent,
4964
4965
  value: c.value,
4965
4966
  children: (l.get(c.id) ?? []).map((h) => f(h))
4966
4967
  });
@@ -4977,8 +4978,9 @@ const Nl = (t) => {
4977
4978
  level: l,
4978
4979
  seq: f,
4979
4980
  label: s.label ?? "",
4981
+ description: s.description ?? "",
4980
4982
  data: s.data ?? {},
4981
- tooltipContent: s.tooltipContent ? s.tooltipContent : n.tooltipContentFormat(s, l, f, t),
4983
+ // tooltipContent: branchRoot.tooltipContent ? branchRoot.tooltipContent : dataFormatter.tooltipContentFormat(branchRoot, level, seq, context),
4982
4984
  value: s.value,
4983
4985
  visible: h,
4984
4986
  children: (s.children ?? []).map((m, p) => u(m, c, p))
@@ -4989,20 +4991,20 @@ const Nl = (t) => {
4989
4991
  throw Error(o);
4990
4992
  }
4991
4993
  return i;
4992
- }, kl = ({ subject: t, observer: e }) => ({
4994
+ }, Il = ({ subject: t, observer: e }) => ({
4993
4995
  fullParams$: e.fullParams$,
4994
4996
  fullChartParams$: e.fullChartParams$,
4995
4997
  fullDataFormatter$: e.fullDataFormatter$,
4996
4998
  computedData$: e.computedData$,
4997
4999
  layout$: e.layout$
4998
5000
  });
4999
- class jl extends Dt {
5001
+ class Kl extends St {
5000
5002
  constructor(e, n) {
5001
5003
  super(
5002
5004
  {
5003
5005
  defaultDataFormatter: ri,
5004
- computedDataFn: Nl,
5005
- contextObserverFn: kl
5006
+ computedDataFn: kl,
5007
+ contextObserverFn: Il
5006
5008
  },
5007
5009
  e,
5008
5010
  n
@@ -5025,19 +5027,19 @@ function Ol({ name: t, defaultParams: e, initFn: n }) {
5025
5027
  a(), u && (u.selection.remove(), u = void 0), r.next(void 0);
5026
5028
  },
5027
5029
  setPresetParams: (l) => {
5028
- s = ot(l, e);
5030
+ s = at(l, e);
5029
5031
  },
5030
5032
  setContext: (l) => {
5031
5033
  u = l, u.observer.fullParams$ = i.pipe(
5032
5034
  k(r),
5033
- Zt({}),
5034
- R((f) => ot(f, s)),
5035
- A(1)
5035
+ Kt({}),
5036
+ R((f) => at(f, s)),
5037
+ S(1)
5036
5038
  );
5037
5039
  }
5038
5040
  };
5039
5041
  }
5040
- const ft = () => function(e, n) {
5042
+ const ht = () => function(e, n) {
5041
5043
  return function(i) {
5042
5044
  return class {
5043
5045
  constructor() {
@@ -5046,42 +5048,43 @@ const ft = () => function(e, n) {
5046
5048
  }
5047
5049
  };
5048
5050
  };
5049
- }, Zl = ft(), Jl = ft(), Ql = ft(), tc = ft(), ec = ft(), nc = ft(), rc = ft();
5051
+ }, Jl = ht(), Ql = ht(), tc = ht(), ec = ht(), nc = ht(), rc = ht(), ic = ht();
5050
5052
  export {
5051
- Yl as GridChart,
5053
+ Bl as GridChart,
5052
5054
  Wl as MultiGridChart,
5053
- Bl as MultiValueChart,
5054
- ql as RelationshipChart,
5055
- Xl as SeriesChart,
5056
- jl as TreeChart,
5055
+ ql as MultiValueChart,
5056
+ jl as RelationshipChart,
5057
+ Yl as SeriesChart,
5058
+ Kl as TreeChart,
5057
5059
  bt as createAxisLinearScale,
5058
- Hl as createAxisPointScale,
5059
- Ul as createAxisQuantizeScale,
5060
- Ue as createDefaultDatumId,
5060
+ Ul as createAxisPointScale,
5061
+ Xl as createAxisQuantizeScale,
5062
+ ze as createDefaultDatumId,
5061
5063
  as as createDefaultGroupLabel,
5062
- yr as createDefaultSeriesLabel,
5064
+ wr as createDefaultSeriesLabel,
5063
5065
  ss as createGridGroupLabels,
5064
5066
  us as createGridSeriesLabels,
5065
- Jl as defineGridPlugin,
5066
- Ql as defineMultiGridPlugin,
5067
- tc as defineMultiValuePlugin,
5068
- ec as defineNoneDataPlugin,
5069
- nc as defineRelationshipPlugin,
5070
- Zl as defineSeriesPlugin,
5071
- rc as defineTreePlugin,
5072
- Rl as formatCommaNumber,
5073
- Ll as formatValueToLabel,
5074
- Lt as getMinAndMax,
5075
- Mn as getMinAndMaxGrid,
5076
- Gl as getMinAndMaxMultiGrid,
5077
- zl as getMinAndMaxMultiValue,
5078
- Vl as getMinAndMaxSeries,
5079
- Ce as getMinAndMaxValue,
5080
- Ur as groupDataMapObservable,
5081
- Qe as highlightObservable,
5082
- Il as isFunction,
5067
+ Ql as defineGridPlugin,
5068
+ tc as defineMultiGridPlugin,
5069
+ ec as defineMultiValuePlugin,
5070
+ nc as defineNoneDataPlugin,
5071
+ rc as defineRelationshipPlugin,
5072
+ Jl as defineSeriesPlugin,
5073
+ ic as defineTreePlugin,
5074
+ Ll as formatCommaNumber,
5075
+ Vl as formatValueToLabel,
5076
+ Rt as getMinAndMax,
5077
+ Dn as getMinAndMaxGrid,
5078
+ zl as getMinAndMaxMultiGrid,
5079
+ Hl as getMinAndMaxMultiValue,
5080
+ Gl as getMinAndMaxSeries,
5081
+ De as getMinAndMaxValue,
5082
+ Xr as groupDataMapObservable,
5083
+ Je as highlightObservable,
5084
+ Rl as isFunction,
5083
5085
  Z as isObject,
5084
- ot as mergeOptionsWithDefault,
5085
- tn as seriesDataMapObservable,
5086
+ at as mergeOptionsWithDefault,
5087
+ He as seriesColorPredicate,
5088
+ Qe as seriesDataMapObservable,
5086
5089
  ls as transposeData
5087
5090
  };