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