@eox/chart 2.0.0-alpha13 → 2.0.0-alpha14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/dist/eox-chart.js +147 -133
- package/dist/eox-chart.umd.cjs +12 -10
- package/package.json +1 -1
package/dist/eox-chart.js
CHANGED
|
@@ -10,18 +10,18 @@ var _ = (i, t, e) => (ec(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
|
10
10
|
function Di(i) {
|
|
11
11
|
return i + 0.5 | 0;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const Gt = (i, t, e) => Math.max(Math.min(i, e), t);
|
|
14
14
|
function li(i) {
|
|
15
|
-
return
|
|
15
|
+
return Gt(Di(i * 2.55), 0, 255);
|
|
16
16
|
}
|
|
17
17
|
function te(i) {
|
|
18
|
-
return
|
|
18
|
+
return Gt(Di(i * 255), 0, 255);
|
|
19
19
|
}
|
|
20
20
|
function zt(i) {
|
|
21
|
-
return
|
|
21
|
+
return Gt(Di(i / 2.55) / 100, 0, 1);
|
|
22
22
|
}
|
|
23
23
|
function Zn(i) {
|
|
24
|
-
return
|
|
24
|
+
return Gt(Di(i * 100), 0, 100);
|
|
25
25
|
}
|
|
26
26
|
const xt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, Ks = [..."0123456789ABCDEF"], ic = (i) => Ks[i & 15], sc = (i) => Ks[(i & 240) >> 4] + Ks[i & 15], Ri = (i) => (i & 240) >> 4 === (i & 15), nc = (i) => Ri(i.r) && Ri(i.g) && Ri(i.b) && Ri(i.a);
|
|
27
27
|
function rc(i) {
|
|
@@ -106,7 +106,7 @@ function pc(i) {
|
|
|
106
106
|
const t = wn(i), e = t[0], s = Zn(t[1]), n = Zn(t[2]);
|
|
107
107
|
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${zt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Gn = {
|
|
110
110
|
x: "dark",
|
|
111
111
|
Z: "light",
|
|
112
112
|
Y: "re",
|
|
@@ -134,7 +134,7 @@ const Xn = {
|
|
|
134
134
|
H: "ea",
|
|
135
135
|
I: "ightg",
|
|
136
136
|
J: "wh"
|
|
137
|
-
},
|
|
137
|
+
}, Xn = {
|
|
138
138
|
OiceXe: "f0f8ff",
|
|
139
139
|
antiquewEte: "faebd7",
|
|
140
140
|
aqua: "ffff",
|
|
@@ -285,12 +285,12 @@ const Xn = {
|
|
|
285
285
|
LwgYF: "9acd32"
|
|
286
286
|
};
|
|
287
287
|
function yc() {
|
|
288
|
-
const i = {}, t = Object.keys(
|
|
288
|
+
const i = {}, t = Object.keys(Xn), e = Object.keys(Gn);
|
|
289
289
|
let s, n, r, o, a;
|
|
290
290
|
for (s = 0; s < t.length; s++) {
|
|
291
291
|
for (o = a = t[s], n = 0; n < e.length; n++)
|
|
292
|
-
r = e[n], a = a.replace(r,
|
|
293
|
-
r = parseInt(
|
|
292
|
+
r = e[n], a = a.replace(r, Gn[r]);
|
|
293
|
+
r = parseInt(Xn[o], 16), i[a] = [r >> 16 & 255, r >> 8 & 255, r & 255];
|
|
294
294
|
}
|
|
295
295
|
return i;
|
|
296
296
|
}
|
|
@@ -312,9 +312,9 @@ function _c(i) {
|
|
|
312
312
|
if (t) {
|
|
313
313
|
if (t[7] !== s) {
|
|
314
314
|
const o = +t[7];
|
|
315
|
-
e = t[8] ? li(o) :
|
|
315
|
+
e = t[8] ? li(o) : Gt(o * 255, 0, 255);
|
|
316
316
|
}
|
|
317
|
-
return s = +t[1], n = +t[3], r = +t[5], s = 255 & (t[2] ? li(s) :
|
|
317
|
+
return s = +t[1], n = +t[3], r = +t[5], s = 255 & (t[2] ? li(s) : Gt(s, 0, 255)), n = 255 & (t[4] ? li(n) : Gt(n, 0, 255)), r = 255 & (t[6] ? li(r) : Gt(r, 0, 255)), {
|
|
318
318
|
r: s,
|
|
319
319
|
g: n,
|
|
320
320
|
b: r,
|
|
@@ -461,7 +461,7 @@ function gt(i, t) {
|
|
|
461
461
|
function E(i, t) {
|
|
462
462
|
return typeof i > "u" ? t : i;
|
|
463
463
|
}
|
|
464
|
-
const kc = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t,
|
|
464
|
+
const kc = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, Go = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i;
|
|
465
465
|
function W(i, t, e) {
|
|
466
466
|
if (i && typeof i.call == "function")
|
|
467
467
|
return i.apply(e, t);
|
|
@@ -500,7 +500,7 @@ function ls(i) {
|
|
|
500
500
|
}
|
|
501
501
|
return i;
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Xo(i) {
|
|
504
504
|
return [
|
|
505
505
|
"__proto__",
|
|
506
506
|
"prototype",
|
|
@@ -508,7 +508,7 @@ function Go(i) {
|
|
|
508
508
|
].indexOf(i) === -1;
|
|
509
509
|
}
|
|
510
510
|
function Tc(i, t, e, s) {
|
|
511
|
-
if (!
|
|
511
|
+
if (!Xo(i))
|
|
512
512
|
return;
|
|
513
513
|
const n = t[i], r = e[i];
|
|
514
514
|
P(n) && P(r) ? yt(n, r, s) : t[i] = ls(r);
|
|
@@ -537,7 +537,7 @@ function gi(i, t) {
|
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
539
|
function Oc(i, t, e) {
|
|
540
|
-
if (!
|
|
540
|
+
if (!Xo(i))
|
|
541
541
|
return;
|
|
542
542
|
const s = t[i], n = e[i];
|
|
543
543
|
P(s) && P(n) ? gi(s, n) : Object.prototype.hasOwnProperty.call(t, i) || (t[i] = ls(n));
|
|
@@ -584,14 +584,14 @@ const wi = (i) => typeof i < "u", se = (i) => typeof i == "function", Qn = (i, t
|
|
|
584
584
|
function Cc(i) {
|
|
585
585
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
586
586
|
}
|
|
587
|
-
const U = Math.PI, $ = 2 * U, Ac = $ + U, cs = Number.POSITIVE_INFINITY, Pc = U / 180, Z = U / 2, re = U / 4, tr = U * 2 / 3,
|
|
587
|
+
const U = Math.PI, $ = 2 * U, Ac = $ + U, cs = Number.POSITIVE_INFINITY, Pc = U / 180, Z = U / 2, re = U / 4, tr = U * 2 / 3, Xt = Math.log10, It = Math.sign;
|
|
588
588
|
function mi(i, t, e) {
|
|
589
589
|
return Math.abs(i - t) < e;
|
|
590
590
|
}
|
|
591
591
|
function er(i) {
|
|
592
592
|
const t = Math.round(i);
|
|
593
593
|
i = mi(i, t, i / 1e3) ? t : i;
|
|
594
|
-
const e = Math.pow(10, Math.floor(
|
|
594
|
+
const e = Math.pow(10, Math.floor(Xt(i))), s = i / e;
|
|
595
595
|
return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e;
|
|
596
596
|
}
|
|
597
597
|
function Ic(i) {
|
|
@@ -943,7 +943,7 @@ const ra = {
|
|
|
943
943
|
const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
|
|
944
944
|
(c < 1e-4 || c > 1e15) && (n = "scientific"), r = qc(i, e);
|
|
945
945
|
}
|
|
946
|
-
const o =
|
|
946
|
+
const o = Xt(Math.abs(r)), a = isNaN(o) ? 1 : Math.max(Math.min(-1 * Math.floor(o), 20), 0), l = {
|
|
947
947
|
notation: n,
|
|
948
948
|
minimumFractionDigits: a,
|
|
949
949
|
maximumFractionDigits: a
|
|
@@ -953,7 +953,7 @@ const ra = {
|
|
|
953
953
|
logarithmic(i, t, e) {
|
|
954
954
|
if (i === 0)
|
|
955
955
|
return "0";
|
|
956
|
-
const s = e[t].significand || i / Math.pow(10, Math.floor(
|
|
956
|
+
const s = e[t].significand || i / Math.pow(10, Math.floor(Xt(i)));
|
|
957
957
|
return [
|
|
958
958
|
1,
|
|
959
959
|
2,
|
|
@@ -1048,7 +1048,7 @@ function yi(i, t) {
|
|
|
1048
1048
|
function Fs(i, t, e) {
|
|
1049
1049
|
return typeof t == "string" ? yt(yi(i, t), e) : yt(yi(i, ""), t);
|
|
1050
1050
|
}
|
|
1051
|
-
class
|
|
1051
|
+
class Gc {
|
|
1052
1052
|
constructor(t, e) {
|
|
1053
1053
|
this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (s) => s.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
|
|
1054
1054
|
"mousemove",
|
|
@@ -1103,7 +1103,7 @@ class Xc {
|
|
|
1103
1103
|
t.forEach((e) => e(this));
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
var
|
|
1106
|
+
var G = /* @__PURE__ */ new Gc({
|
|
1107
1107
|
_scriptable: (i) => !i.startsWith("on"),
|
|
1108
1108
|
_indexable: (i) => i !== "events",
|
|
1109
1109
|
hover: {
|
|
@@ -1118,7 +1118,7 @@ var X = /* @__PURE__ */ new Xc({
|
|
|
1118
1118
|
Uc,
|
|
1119
1119
|
Zc
|
|
1120
1120
|
]);
|
|
1121
|
-
function
|
|
1121
|
+
function Xc(i) {
|
|
1122
1122
|
return !i || R(i.size) || R(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
|
|
1123
1123
|
}
|
|
1124
1124
|
function us(i, t, e, s, n) {
|
|
@@ -1298,7 +1298,7 @@ function ot(i) {
|
|
|
1298
1298
|
return t.width = t.left + t.right, t.height = t.top + t.bottom, t;
|
|
1299
1299
|
}
|
|
1300
1300
|
function Q(i, t) {
|
|
1301
|
-
i = i || {}, t = t ||
|
|
1301
|
+
i = i || {}, t = t || G.font;
|
|
1302
1302
|
let e = E(i.size, t.size);
|
|
1303
1303
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1304
1304
|
let s = E(i.style, t.style);
|
|
@@ -1311,7 +1311,7 @@ function Q(i, t) {
|
|
|
1311
1311
|
weight: E(i.weight, t.weight),
|
|
1312
1312
|
string: ""
|
|
1313
1313
|
};
|
|
1314
|
-
return n.string =
|
|
1314
|
+
return n.string = Xc(n), n;
|
|
1315
1315
|
}
|
|
1316
1316
|
function ci(i, t, e, s) {
|
|
1317
1317
|
let n = !0, r, o, a;
|
|
@@ -1320,7 +1320,7 @@ function ci(i, t, e, s) {
|
|
|
1320
1320
|
return s && !n && (s.cacheable = !1), a;
|
|
1321
1321
|
}
|
|
1322
1322
|
function ah(i, t, e) {
|
|
1323
|
-
const { min: s, max: n } = i, r =
|
|
1323
|
+
const { min: s, max: n } = i, r = Go(t, (n - s) / 2), o = (a, l) => e && a === 0 ? 0 : a + l;
|
|
1324
1324
|
return {
|
|
1325
1325
|
min: o(s, -Math.abs(r)),
|
|
1326
1326
|
max: o(n, r)
|
|
@@ -2165,7 +2165,7 @@ class _a {
|
|
|
2165
2165
|
configure(t) {
|
|
2166
2166
|
if (!P(t))
|
|
2167
2167
|
return;
|
|
2168
|
-
const e = Object.keys(
|
|
2168
|
+
const e = Object.keys(G.animation), s = this._properties;
|
|
2169
2169
|
Object.getOwnPropertyNames(t).forEach((n) => {
|
|
2170
2170
|
const r = t[n];
|
|
2171
2171
|
if (!P(r))
|
|
@@ -2313,10 +2313,10 @@ function br(i, t) {
|
|
|
2313
2313
|
const e = i && i.options.stacked;
|
|
2314
2314
|
return e || e === void 0 && t.stack !== void 0;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function Gh(i, t, e) {
|
|
2317
2317
|
return `${i.id}.${t.id}.${e.stack || e.type}`;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function Xh(i) {
|
|
2320
2320
|
const { min: t, max: e, minDefined: s, maxDefined: n } = i.getUserBounds();
|
|
2321
2321
|
return {
|
|
2322
2322
|
min: s ? t : Number.NEGATIVE_INFINITY,
|
|
@@ -2336,7 +2336,7 @@ function xr(i, t, e, s) {
|
|
|
2336
2336
|
return null;
|
|
2337
2337
|
}
|
|
2338
2338
|
function _r(i, t) {
|
|
2339
|
-
const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: r, vScale: o, index: a } = s, l = r.axis, c = o.axis, h =
|
|
2339
|
+
const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: r, vScale: o, index: a } = s, l = r.axis, c = o.axis, h = Gh(r, o, s), u = t.length;
|
|
2340
2340
|
let d;
|
|
2341
2341
|
for (let f = 0; f < u; ++f) {
|
|
2342
2342
|
const g = t[f], { [l]: m, [c]: p } = g, y = g._stacks || (g._stacks = {});
|
|
@@ -2519,7 +2519,7 @@ class Et {
|
|
|
2519
2519
|
const s = this._cachedMeta, n = s._parsed, r = s._sorted && t === s.iScale, o = n.length, a = this._getOtherScale(t), l = tu(e, s, this.chart), c = {
|
|
2520
2520
|
min: Number.POSITIVE_INFINITY,
|
|
2521
2521
|
max: Number.NEGATIVE_INFINITY
|
|
2522
|
-
}, { min: h, max: u } =
|
|
2522
|
+
}, { min: h, max: u } = Xh(a);
|
|
2523
2523
|
let d, f;
|
|
2524
2524
|
function g() {
|
|
2525
2525
|
f = n[d];
|
|
@@ -2602,7 +2602,7 @@ class Et {
|
|
|
2602
2602
|
] : [
|
|
2603
2603
|
t,
|
|
2604
2604
|
""
|
|
2605
|
-
], d = c.getOptionScopes(this.getDataset(), h), f = Object.keys(
|
|
2605
|
+
], d = c.getOptionScopes(this.getDataset(), h), f = Object.keys(G.elements[t]), g = () => this.getContext(s, n, e), m = c.resolveNamedOptions(d, f, g, u);
|
|
2606
2606
|
return m.$shared && (m.$shared = l, r[o] = Object.freeze(wr(m, l))), m;
|
|
2607
2607
|
}
|
|
2608
2608
|
_resolveAnimations(t, e, s) {
|
|
@@ -3163,7 +3163,7 @@ class fe extends Et {
|
|
|
3163
3163
|
};
|
|
3164
3164
|
}
|
|
3165
3165
|
update(t) {
|
|
3166
|
-
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, r = n.data, o = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - o) / 2, 0), l = Math.min(kc(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: u } = this._getRotationExtents(), { ratioX: d, ratioY: f, offsetX: g, offsetY: m } = uu(u, h, l), p = (s.width - o) / d, y = (s.height - o) / f, b = Math.max(Math.min(p, y) / 2, 0), v =
|
|
3166
|
+
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, r = n.data, o = this.getMaxBorderWidth() + this.getMaxOffset(r) + this.options.spacing, a = Math.max((Math.min(s.width, s.height) - o) / 2, 0), l = Math.min(kc(this.options.cutout, a), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: u } = this._getRotationExtents(), { ratioX: d, ratioY: f, offsetX: g, offsetY: m } = uu(u, h, l), p = (s.width - o) / d, y = (s.height - o) / f, b = Math.max(Math.min(p, y) / 2, 0), v = Go(this.options.radius, b), w = Math.max(v * l, 0), x = (v - w) / this._getVisibleDatasetWeightTotal();
|
|
3167
3167
|
this.offsetX = g * v, this.offsetY = m * v, n.total = this.calculateTotal(), this.outerRadius = v - x * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - x * c, 0), this.updateElements(r, 0, r.length, t);
|
|
3168
3168
|
}
|
|
3169
3169
|
_circumference(t, e) {
|
|
@@ -4406,14 +4406,14 @@ function Zu(i, t) {
|
|
|
4406
4406
|
type: "scale"
|
|
4407
4407
|
});
|
|
4408
4408
|
}
|
|
4409
|
-
function
|
|
4409
|
+
function Gu(i, t, e) {
|
|
4410
4410
|
return ne(i, {
|
|
4411
4411
|
tick: e,
|
|
4412
4412
|
index: t,
|
|
4413
4413
|
type: "tick"
|
|
4414
4414
|
});
|
|
4415
4415
|
}
|
|
4416
|
-
function
|
|
4416
|
+
function Xu(i, t, e) {
|
|
4417
4417
|
let s = On(i);
|
|
4418
4418
|
return (e && t !== "right" || !e && t === "right") && (s = Uu(s)), s;
|
|
4419
4419
|
}
|
|
@@ -4733,7 +4733,7 @@ class Se extends Ct {
|
|
|
4733
4733
|
const e = this.ticks || [];
|
|
4734
4734
|
if (t >= 0 && t < e.length) {
|
|
4735
4735
|
const s = e[t];
|
|
4736
|
-
return s.$context || (s.$context =
|
|
4736
|
+
return s.$context || (s.$context = Gu(this.getContext(), t, s));
|
|
4737
4737
|
}
|
|
4738
4738
|
return this.$context || (this.$context = Zu(this.chart.getContext(), this));
|
|
4739
4739
|
}
|
|
@@ -4762,22 +4762,22 @@ class Se extends Ct {
|
|
|
4762
4762
|
if (o === "center")
|
|
4763
4763
|
b = y((t.top + t.bottom) / 2 + 0.5);
|
|
4764
4764
|
else if (P(o)) {
|
|
4765
|
-
const j = Object.keys(o)[0],
|
|
4766
|
-
b = y(this.chart.scales[j].getPixelForValue(
|
|
4765
|
+
const j = Object.keys(o)[0], X = o[j];
|
|
4766
|
+
b = y(this.chart.scales[j].getPixelForValue(X));
|
|
4767
4767
|
}
|
|
4768
4768
|
A = t.top, et = t.bottom, S = b + p, D = S + d;
|
|
4769
4769
|
} else if (e === "y") {
|
|
4770
4770
|
if (o === "center")
|
|
4771
4771
|
b = y((t.left + t.right) / 2);
|
|
4772
4772
|
else if (P(o)) {
|
|
4773
|
-
const j = Object.keys(o)[0],
|
|
4774
|
-
b = y(this.chart.scales[j].getPixelForValue(
|
|
4773
|
+
const j = Object.keys(o)[0], X = o[j];
|
|
4774
|
+
b = y(this.chart.scales[j].getPixelForValue(X));
|
|
4775
4775
|
}
|
|
4776
4776
|
k = b - p, M = k - d, C = t.left, I = t.right;
|
|
4777
4777
|
}
|
|
4778
4778
|
const ft = E(n.ticks.maxTicksLimit, u), V = Math.max(1, Math.ceil(u / ft));
|
|
4779
4779
|
for (v = 0; v < u; v += V) {
|
|
4780
|
-
const j = this.getContext(v),
|
|
4780
|
+
const j = this.getContext(v), X = r.setContext(j), Mt = a.setContext(j), it = X.lineWidth, Oe = X.color, Fi = Mt.dash || [], De = Mt.dashOffset, Xe = X.tickWidth, Je = X.tickColor, Ke = X.tickBorderDash || [], Qe = X.tickBorderDashOffset;
|
|
4781
4781
|
w = Yu(this, v, l), w !== void 0 && (x = oe(s, w, it), c ? k = M = C = I = x : S = D = A = et = x, f.push({
|
|
4782
4782
|
tx1: k,
|
|
4783
4783
|
ty1: S,
|
|
@@ -4791,7 +4791,7 @@ class Se extends Ct {
|
|
|
4791
4791
|
color: Oe,
|
|
4792
4792
|
borderDash: Fi,
|
|
4793
4793
|
borderDashOffset: De,
|
|
4794
|
-
tickWidth:
|
|
4794
|
+
tickWidth: Xe,
|
|
4795
4795
|
tickColor: Je,
|
|
4796
4796
|
tickBorderDash: Ke,
|
|
4797
4797
|
tickBorderDashOffset: Qe
|
|
@@ -4835,19 +4835,19 @@ class Se extends Ct {
|
|
|
4835
4835
|
v = a[y], w = v.label;
|
|
4836
4836
|
const V = r.setContext(this.getContext(y));
|
|
4837
4837
|
M = this.getPixelForTick(y) + r.labelOffset, D = this._resolveTickFontOptions(y), C = D.lineHeight, A = H(w) ? w.length : 1;
|
|
4838
|
-
const j = A / 2,
|
|
4838
|
+
const j = A / 2, X = V.color, Mt = V.textStrokeColor, it = V.textStrokeWidth;
|
|
4839
4839
|
let Oe = S;
|
|
4840
4840
|
o ? (x = M, S === "inner" && (y === b - 1 ? Oe = this.options.reverse ? "left" : "right" : y === 0 ? Oe = this.options.reverse ? "right" : "left" : Oe = "center"), n === "top" ? c === "near" || m !== 0 ? I = -A * C + C / 2 : c === "center" ? I = -ft.highest.height / 2 - j * C + C : I = -ft.highest.height + C / 2 : c === "near" || m !== 0 ? I = C / 2 : c === "center" ? I = ft.highest.height / 2 - j * C : I = ft.highest.height - A * C, u && (I *= -1), m !== 0 && !V.showLabelBackdrop && (x += C / 2 * Math.sin(m))) : (k = M, I = (1 - A) * C / 2);
|
|
4841
4841
|
let Fi;
|
|
4842
4842
|
if (V.showLabelBackdrop) {
|
|
4843
|
-
const De = ot(V.backdropPadding),
|
|
4843
|
+
const De = ot(V.backdropPadding), Xe = ft.heights[y], Je = ft.widths[y];
|
|
4844
4844
|
let Ke = I - De.top, Qe = 0 - De.left;
|
|
4845
4845
|
switch (et) {
|
|
4846
4846
|
case "middle":
|
|
4847
|
-
Ke -=
|
|
4847
|
+
Ke -= Xe / 2;
|
|
4848
4848
|
break;
|
|
4849
4849
|
case "bottom":
|
|
4850
|
-
Ke -=
|
|
4850
|
+
Ke -= Xe;
|
|
4851
4851
|
break;
|
|
4852
4852
|
}
|
|
4853
4853
|
switch (S) {
|
|
@@ -4862,7 +4862,7 @@ class Se extends Ct {
|
|
|
4862
4862
|
left: Qe,
|
|
4863
4863
|
top: Ke,
|
|
4864
4864
|
width: Je + De.width,
|
|
4865
|
-
height:
|
|
4865
|
+
height: Xe + De.height,
|
|
4866
4866
|
color: V.backdropColor
|
|
4867
4867
|
};
|
|
4868
4868
|
}
|
|
@@ -4872,7 +4872,7 @@ class Se extends Ct {
|
|
|
4872
4872
|
textOffset: I,
|
|
4873
4873
|
options: {
|
|
4874
4874
|
rotation: m,
|
|
4875
|
-
color:
|
|
4875
|
+
color: X,
|
|
4876
4876
|
strokeColor: Mt,
|
|
4877
4877
|
strokeWidth: it,
|
|
4878
4878
|
textAlign: Oe,
|
|
@@ -4993,7 +4993,7 @@ class Se extends Ct {
|
|
|
4993
4993
|
color: s.color,
|
|
4994
4994
|
maxWidth: u,
|
|
4995
4995
|
rotation: d,
|
|
4996
|
-
textAlign:
|
|
4996
|
+
textAlign: Xu(a, e, n),
|
|
4997
4997
|
textBaseline: "middle",
|
|
4998
4998
|
translation: [
|
|
4999
4999
|
c,
|
|
@@ -5066,30 +5066,30 @@ class ji {
|
|
|
5066
5066
|
const n = this.items, r = t.id, o = this.scope + "." + r;
|
|
5067
5067
|
if (!r)
|
|
5068
5068
|
throw new Error("class does not have id: " + t);
|
|
5069
|
-
return r in n || (n[r] = t, Ku(t, o, s), this.override &&
|
|
5069
|
+
return r in n || (n[r] = t, Ku(t, o, s), this.override && G.override(t.id, t.overrides)), o;
|
|
5070
5070
|
}
|
|
5071
5071
|
get(t) {
|
|
5072
5072
|
return this.items[t];
|
|
5073
5073
|
}
|
|
5074
5074
|
unregister(t) {
|
|
5075
5075
|
const e = this.items, s = t.id, n = this.scope;
|
|
5076
|
-
s in e && delete e[s], n && s in
|
|
5076
|
+
s in e && delete e[s], n && s in G[n] && (delete G[n][s], this.override && delete _e[s]);
|
|
5077
5077
|
}
|
|
5078
5078
|
}
|
|
5079
5079
|
function Ku(i, t, e) {
|
|
5080
5080
|
const s = yt(/* @__PURE__ */ Object.create(null), [
|
|
5081
|
-
e ?
|
|
5082
|
-
|
|
5081
|
+
e ? G.get(e) : {},
|
|
5082
|
+
G.get(t),
|
|
5083
5083
|
i.defaults
|
|
5084
5084
|
]);
|
|
5085
|
-
|
|
5085
|
+
G.set(t, s), i.defaultRoutes && Qu(t, i.defaultRoutes), i.descriptors && G.describe(t, i.descriptors);
|
|
5086
5086
|
}
|
|
5087
5087
|
function Qu(i, t) {
|
|
5088
5088
|
Object.keys(t).forEach((e) => {
|
|
5089
5089
|
const s = e.split("."), n = s.pop(), r = [
|
|
5090
5090
|
i
|
|
5091
5091
|
].concat(s).join("."), o = t[e].split("."), a = o.pop(), l = o.join(".");
|
|
5092
|
-
|
|
5092
|
+
G.route(r, n, l, a);
|
|
5093
5093
|
});
|
|
5094
5094
|
}
|
|
5095
5095
|
function td(i) {
|
|
@@ -5258,7 +5258,7 @@ function od(i, { plugin: t, local: e }, s, n) {
|
|
|
5258
5258
|
});
|
|
5259
5259
|
}
|
|
5260
5260
|
function nn(i, t) {
|
|
5261
|
-
const e =
|
|
5261
|
+
const e = G.datasets[i] || {};
|
|
5262
5262
|
return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
|
|
5263
5263
|
}
|
|
5264
5264
|
function ad(i, t) {
|
|
@@ -5312,7 +5312,7 @@ function ud(i, t) {
|
|
|
5312
5312
|
return console.error(`Invalid scale configuration for scale: ${o}`);
|
|
5313
5313
|
if (a._proxy)
|
|
5314
5314
|
return console.warn(`Ignoring resolver passed as options for scale: ${o}`);
|
|
5315
|
-
const l = rn(o, a, hd(o, i),
|
|
5315
|
+
const l = rn(o, a, hd(o, i), G.scales[a.type]), c = ld(l, n), h = e.scales || {};
|
|
5316
5316
|
r[o] = gi(/* @__PURE__ */ Object.create(null), [
|
|
5317
5317
|
{
|
|
5318
5318
|
axis: l
|
|
@@ -5336,8 +5336,8 @@ function ud(i, t) {
|
|
|
5336
5336
|
}), Object.keys(r).forEach((o) => {
|
|
5337
5337
|
const a = r[o];
|
|
5338
5338
|
gi(a, [
|
|
5339
|
-
|
|
5340
|
-
|
|
5339
|
+
G.scales[a.type],
|
|
5340
|
+
G.scale
|
|
5341
5341
|
]);
|
|
5342
5342
|
}), r;
|
|
5343
5343
|
}
|
|
@@ -5445,7 +5445,7 @@ class fd {
|
|
|
5445
5445
|
return a;
|
|
5446
5446
|
const l = /* @__PURE__ */ new Set();
|
|
5447
5447
|
e.forEach((h) => {
|
|
5448
|
-
t && (l.add(t), h.forEach((u) => ni(l, t, u))), h.forEach((u) => ni(l, n, u)), h.forEach((u) => ni(l, _e[r] || {}, u)), h.forEach((u) => ni(l,
|
|
5448
|
+
t && (l.add(t), h.forEach((u) => ni(l, t, u))), h.forEach((u) => ni(l, n, u)), h.forEach((u) => ni(l, _e[r] || {}, u)), h.forEach((u) => ni(l, G, u)), h.forEach((u) => ni(l, tn, u));
|
|
5449
5449
|
});
|
|
5450
5450
|
const c = Array.from(l);
|
|
5451
5451
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Aa.has(e) && o.set(e, c), c;
|
|
@@ -5455,11 +5455,11 @@ class fd {
|
|
|
5455
5455
|
return [
|
|
5456
5456
|
t,
|
|
5457
5457
|
_e[e] || {},
|
|
5458
|
-
|
|
5458
|
+
G.datasets[e] || {},
|
|
5459
5459
|
{
|
|
5460
5460
|
type: e
|
|
5461
5461
|
},
|
|
5462
|
-
|
|
5462
|
+
G,
|
|
5463
5463
|
tn
|
|
5464
5464
|
];
|
|
5465
5465
|
}
|
|
@@ -5690,7 +5690,7 @@ class ht {
|
|
|
5690
5690
|
if (o.type && o.type !== a && (this._destroyDatasetMeta(s), o = this.getDatasetMeta(s)), o.type = a, o.indexAxis = r.indexAxis || nn(a, this.options), o.order = r.order || 0, o.index = s, o.label = "" + r.label, o.visible = this.isDatasetVisible(s), o.controller)
|
|
5691
5691
|
o.controller.updateIndex(s), o.controller.linkScales();
|
|
5692
5692
|
else {
|
|
5693
|
-
const l = at.getController(a), { datasetElementType: c, dataElementType: h } =
|
|
5693
|
+
const l = at.getController(a), { datasetElementType: c, dataElementType: h } = G.datasets[a];
|
|
5694
5694
|
Object.assign(l, {
|
|
5695
5695
|
dataElementType: at.getElement(h),
|
|
5696
5696
|
datasetElementType: c && at.getElement(c)
|
|
@@ -6044,7 +6044,7 @@ class ht {
|
|
|
6044
6044
|
return this.getElementsAtEventForMode(t, r.mode, r, n);
|
|
6045
6045
|
}
|
|
6046
6046
|
}
|
|
6047
|
-
_(ht, "defaults",
|
|
6047
|
+
_(ht, "defaults", G), _(ht, "instances", ns), _(ht, "overrides", _e), _(ht, "registry", at), _(ht, "version", pd), _(ht, "getChart", Hr);
|
|
6048
6048
|
function $r() {
|
|
6049
6049
|
return z(ht.instances, (i) => i._plugins.invalidate());
|
|
6050
6050
|
}
|
|
@@ -6084,7 +6084,7 @@ function gs(i, t, e, s, n, r) {
|
|
|
6084
6084
|
let f = 0;
|
|
6085
6085
|
const g = n - l;
|
|
6086
6086
|
if (s) {
|
|
6087
|
-
const V = h > 0 ? h - s : 0, j = u > 0 ? u - s : 0,
|
|
6087
|
+
const V = h > 0 ? h - s : 0, j = u > 0 ? u - s : 0, X = (V + j) / 2, Mt = X !== 0 ? g * X / (X + s) : g;
|
|
6088
6088
|
f = (g - Mt) / 2;
|
|
6089
6089
|
}
|
|
6090
6090
|
const m = Math.max(1e-3, g * u - e / U) / u, p = (g - m) / 2, y = l + p + f, b = n - p - f, { outerStart: v, outerEnd: w, innerStart: x, innerEnd: k } = Md(t, d, u, b - y), S = u - v, M = u - w, D = y + v / S, C = b - w / M, A = d + x, I = d + k, et = y + x / A, ft = b - k / I;
|
|
@@ -6099,8 +6099,8 @@ function gs(i, t, e, s, n, r) {
|
|
|
6099
6099
|
const it = Ce(I, ft, o, a);
|
|
6100
6100
|
i.arc(it.x, it.y, k, b + Z, ft + Math.PI);
|
|
6101
6101
|
}
|
|
6102
|
-
const
|
|
6103
|
-
if (i.arc(o, a, d, b - k / d,
|
|
6102
|
+
const X = (b - k / d + (y + x / d)) / 2;
|
|
6103
|
+
if (i.arc(o, a, d, b - k / d, X, !0), i.arc(o, a, d, X, y + x / d, !0), x > 0) {
|
|
6104
6104
|
const it = Ce(A, et, o, a);
|
|
6105
6105
|
i.arc(it.x, it.y, x, et + Math.PI, y - Z);
|
|
6106
6106
|
}
|
|
@@ -6113,8 +6113,8 @@ function gs(i, t, e, s, n, r) {
|
|
|
6113
6113
|
i.moveTo(o, a);
|
|
6114
6114
|
const V = Math.cos(D) * u + o, j = Math.sin(D) * u + a;
|
|
6115
6115
|
i.lineTo(V, j);
|
|
6116
|
-
const
|
|
6117
|
-
i.lineTo(
|
|
6116
|
+
const X = Math.cos(C) * u + o, Mt = Math.sin(C) * u + a;
|
|
6117
|
+
i.lineTo(X, Mt);
|
|
6118
6118
|
}
|
|
6119
6119
|
i.closePath();
|
|
6120
6120
|
}
|
|
@@ -6649,7 +6649,7 @@ function Zd(i, t, e, s, n) {
|
|
|
6649
6649
|
}
|
|
6650
6650
|
return o[l++] = i[c], o;
|
|
6651
6651
|
}
|
|
6652
|
-
function
|
|
6652
|
+
function Gd(i, t, e, s) {
|
|
6653
6653
|
let n = 0, r = 0, o, a, l, c, h, u, d, f, g, m;
|
|
6654
6654
|
const p = [], y = t + e - 1, b = i[t].x, w = i[y].x - b;
|
|
6655
6655
|
for (o = t; o < t + e; ++o) {
|
|
@@ -6690,7 +6690,7 @@ function qr(i) {
|
|
|
6690
6690
|
za(t);
|
|
6691
6691
|
});
|
|
6692
6692
|
}
|
|
6693
|
-
function
|
|
6693
|
+
function Xd(i, t) {
|
|
6694
6694
|
const e = t.length;
|
|
6695
6695
|
let s = 0, n;
|
|
6696
6696
|
const { iScale: r } = i, { min: o, max: a, minDefined: l, maxDefined: c } = r.getUserBounds();
|
|
@@ -6721,7 +6721,7 @@ var Jd = {
|
|
|
6721
6721
|
const h = i.scales[l.xAxisID];
|
|
6722
6722
|
if (h.type !== "linear" && h.type !== "time" || i.options.parsing)
|
|
6723
6723
|
return;
|
|
6724
|
-
let { start: u, count: d } =
|
|
6724
|
+
let { start: u, count: d } = Xd(l, c);
|
|
6725
6725
|
const f = e.threshold || 4 * s;
|
|
6726
6726
|
if (d <= f) {
|
|
6727
6727
|
za(n);
|
|
@@ -6743,7 +6743,7 @@ var Jd = {
|
|
|
6743
6743
|
g = Zd(c, u, d, s, e);
|
|
6744
6744
|
break;
|
|
6745
6745
|
case "min-max":
|
|
6746
|
-
g =
|
|
6746
|
+
g = Gd(c, u, d, s);
|
|
6747
6747
|
break;
|
|
6748
6748
|
default:
|
|
6749
6749
|
throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`);
|
|
@@ -6840,7 +6840,7 @@ function Va(i, t) {
|
|
|
6840
6840
|
_fullLoop: s
|
|
6841
6841
|
}) : null;
|
|
6842
6842
|
}
|
|
6843
|
-
function
|
|
6843
|
+
function Gr(i) {
|
|
6844
6844
|
return i && i.fill !== !1;
|
|
6845
6845
|
}
|
|
6846
6846
|
function tf(i, t, e) {
|
|
@@ -7026,13 +7026,13 @@ function js(i, t, e) {
|
|
|
7026
7026
|
}
|
|
7027
7027
|
function pf(i, t) {
|
|
7028
7028
|
const { line: e, target: s, above: n, below: r, area: o, scale: a } = t, l = e._loop ? "angle" : t.axis;
|
|
7029
|
-
i.save(), l === "x" && r !== n && (
|
|
7029
|
+
i.save(), l === "x" && r !== n && (Xr(i, s, o.top), Jr(i, {
|
|
7030
7030
|
line: e,
|
|
7031
7031
|
target: s,
|
|
7032
7032
|
color: n,
|
|
7033
7033
|
scale: a,
|
|
7034
7034
|
property: l
|
|
7035
|
-
}), i.restore(), i.save(),
|
|
7035
|
+
}), i.restore(), i.save(), Xr(i, s, o.bottom)), Jr(i, {
|
|
7036
7036
|
line: e,
|
|
7037
7037
|
target: s,
|
|
7038
7038
|
color: r,
|
|
@@ -7040,7 +7040,7 @@ function pf(i, t) {
|
|
|
7040
7040
|
property: l
|
|
7041
7041
|
}), i.restore();
|
|
7042
7042
|
}
|
|
7043
|
-
function
|
|
7043
|
+
function Xr(i, t, e) {
|
|
7044
7044
|
const { segments: s, points: n } = t;
|
|
7045
7045
|
let r = !0, o = !1;
|
|
7046
7046
|
i.beginPath();
|
|
@@ -7109,12 +7109,12 @@ var bf = {
|
|
|
7109
7109
|
const s = i.getSortedVisibleDatasetMetas();
|
|
7110
7110
|
for (let n = s.length - 1; n >= 0; --n) {
|
|
7111
7111
|
const r = s[n].$filler;
|
|
7112
|
-
|
|
7112
|
+
Gr(r) && js(i.ctx, r, i.chartArea);
|
|
7113
7113
|
}
|
|
7114
7114
|
},
|
|
7115
7115
|
beforeDatasetDraw(i, t, e) {
|
|
7116
7116
|
const s = t.meta.$filler;
|
|
7117
|
-
!
|
|
7117
|
+
!Gr(s) || e.drawTime !== "beforeDatasetDraw" || js(i.ctx, s, i.chartArea);
|
|
7118
7118
|
},
|
|
7119
7119
|
defaults: {
|
|
7120
7120
|
propagate: !0,
|
|
@@ -7218,7 +7218,7 @@ class to extends Ct {
|
|
|
7218
7218
|
}
|
|
7219
7219
|
}
|
|
7220
7220
|
_draw() {
|
|
7221
|
-
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: r, labels: o } = t, a =
|
|
7221
|
+
const { options: t, columnSizes: e, lineWidths: s, ctx: n } = this, { align: r, labels: o } = t, a = G.color, l = Le(t.rtl, this.left, this.width), c = Q(o.font), { padding: h } = o, u = c.size, d = u / 2;
|
|
7222
7222
|
let f;
|
|
7223
7223
|
this.drawTitle(), n.textAlign = l.textAlign("left"), n.textBaseline = "middle", n.lineWidth = 0.5, n.font = c.string;
|
|
7224
7224
|
const { boxWidth: g, boxHeight: m, itemHeight: p } = Qr(o, u), y = function(k, S, M) {
|
|
@@ -8305,7 +8305,7 @@ _(ve, "id", "linear"), _(ve, "defaults", {
|
|
|
8305
8305
|
callback: _s.formatters.numeric
|
|
8306
8306
|
}
|
|
8307
8307
|
});
|
|
8308
|
-
const ki = (i) => Math.floor(
|
|
8308
|
+
const ki = (i) => Math.floor(Xt(i)), le = (i, t) => Math.pow(10, ki(i) + t);
|
|
8309
8309
|
function lo(i) {
|
|
8310
8310
|
return i / Math.pow(10, ki(i)) === 1;
|
|
8311
8311
|
}
|
|
@@ -8378,10 +8378,10 @@ class hn extends Se {
|
|
|
8378
8378
|
}
|
|
8379
8379
|
configure() {
|
|
8380
8380
|
const t = this.min;
|
|
8381
|
-
super.configure(), this._startValue =
|
|
8381
|
+
super.configure(), this._startValue = Xt(t), this._valueRange = Xt(this.max) - Xt(t);
|
|
8382
8382
|
}
|
|
8383
8383
|
getPixelForValue(t) {
|
|
8384
|
-
return (t === void 0 || t === 0) && (t = this.min), t === null || isNaN(t) ? NaN : this.getPixelForDecimal(t === this.min ? 0 : (
|
|
8384
|
+
return (t === void 0 || t === 0) && (t = this.min), t === null || isNaN(t) ? NaN : this.getPixelForDecimal(t === this.min ? 0 : (Xt(t) - this._startValue) / this._valueRange);
|
|
8385
8385
|
}
|
|
8386
8386
|
getValueForPixel(t) {
|
|
8387
8387
|
const e = this.getDecimalForPixel(t);
|
|
@@ -8400,7 +8400,7 @@ function un(i) {
|
|
|
8400
8400
|
const t = i.ticks;
|
|
8401
8401
|
if (t.display && i.display) {
|
|
8402
8402
|
const e = ot(t.backdropPadding);
|
|
8403
|
-
return E(t.font && t.font.size,
|
|
8403
|
+
return E(t.font && t.font.size, G.font.size) + e.height;
|
|
8404
8404
|
}
|
|
8405
8405
|
return 0;
|
|
8406
8406
|
}
|
|
@@ -8447,7 +8447,7 @@ function jf(i, t, e, s, n) {
|
|
|
8447
8447
|
s.start < t.l ? (a = (t.l - s.start) / r, i.l = Math.min(i.l, t.l - a)) : s.end > t.r && (a = (s.end - t.r) / r, i.r = Math.max(i.r, t.r + a)), n.start < t.t ? (l = (t.t - n.start) / o, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / o, i.b = Math.max(i.b, t.b + l));
|
|
8448
8448
|
}
|
|
8449
8449
|
function Uf(i, t, e) {
|
|
8450
|
-
const s = i.drawingArea, { extra: n, additionalAngle: r, padding: o, size: a } = e, l = i.getPointPosition(t, s + n + o, r), c = Math.round(kn(mt(l.angle + Z))), h =
|
|
8450
|
+
const s = i.drawingArea, { extra: n, additionalAngle: r, padding: o, size: a } = e, l = i.getPointPosition(t, s + n + o, r), c = Math.round(kn(mt(l.angle + Z))), h = Xf(l.y, a.h, c), u = Zf(c), d = Gf(l.x, a.w, u);
|
|
8451
8451
|
return {
|
|
8452
8452
|
visible: !0,
|
|
8453
8453
|
x: l.x,
|
|
@@ -8493,10 +8493,10 @@ function qf(i, t, e) {
|
|
|
8493
8493
|
function Zf(i) {
|
|
8494
8494
|
return i === 0 || i === 180 ? "center" : i < 180 ? "left" : "right";
|
|
8495
8495
|
}
|
|
8496
|
-
function
|
|
8496
|
+
function Gf(i, t, e) {
|
|
8497
8497
|
return e === "right" ? i -= t : e === "center" && (i -= t / 2), i;
|
|
8498
8498
|
}
|
|
8499
|
-
function
|
|
8499
|
+
function Xf(i, t, e) {
|
|
8500
8500
|
return e === 90 || e === 270 ? i -= t / 2 : (e > 270 || e < 90) && (i -= t), i;
|
|
8501
8501
|
}
|
|
8502
8502
|
function Jf(i, t, e) {
|
|
@@ -9106,10 +9106,10 @@ const T = "numeric", At = "short", pt = "long", ps = {
|
|
|
9106
9106
|
month: pt,
|
|
9107
9107
|
day: T,
|
|
9108
9108
|
weekday: pt
|
|
9109
|
-
},
|
|
9109
|
+
}, Ga = {
|
|
9110
9110
|
hour: T,
|
|
9111
9111
|
minute: T
|
|
9112
|
-
},
|
|
9112
|
+
}, Xa = {
|
|
9113
9113
|
hour: T,
|
|
9114
9114
|
minute: T,
|
|
9115
9115
|
second: T
|
|
@@ -9365,21 +9365,21 @@ function mg(i, t) {
|
|
|
9365
9365
|
}
|
|
9366
9366
|
return s;
|
|
9367
9367
|
}
|
|
9368
|
-
let
|
|
9368
|
+
let Gi = {};
|
|
9369
9369
|
class jt extends Ai {
|
|
9370
9370
|
/**
|
|
9371
9371
|
* @param {string} name - Zone name
|
|
9372
9372
|
* @return {IANAZone}
|
|
9373
9373
|
*/
|
|
9374
9374
|
static create(t) {
|
|
9375
|
-
return
|
|
9375
|
+
return Gi[t] || (Gi[t] = new jt(t)), Gi[t];
|
|
9376
9376
|
}
|
|
9377
9377
|
/**
|
|
9378
9378
|
* Reset local caches. Should only be necessary in testing scenarios.
|
|
9379
9379
|
* @return {void}
|
|
9380
9380
|
*/
|
|
9381
9381
|
static resetCache() {
|
|
9382
|
-
|
|
9382
|
+
Gi = {}, rs = {};
|
|
9383
9383
|
}
|
|
9384
9384
|
/**
|
|
9385
9385
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
|
@@ -9527,7 +9527,7 @@ function Sg(i) {
|
|
|
9527
9527
|
}
|
|
9528
9528
|
return t;
|
|
9529
9529
|
}
|
|
9530
|
-
function
|
|
9530
|
+
function Xi(i, t, e, s, n) {
|
|
9531
9531
|
const r = i.listingMode(e);
|
|
9532
9532
|
return r === "error" ? null : r === "en" ? s(t) : n(t);
|
|
9533
9533
|
}
|
|
@@ -9641,13 +9641,13 @@ class B {
|
|
|
9641
9641
|
return this.clone({ ...t, defaultToEN: !1 });
|
|
9642
9642
|
}
|
|
9643
9643
|
months(t, e = !1, s = !0) {
|
|
9644
|
-
return
|
|
9644
|
+
return Xi(this, t, s, ml, () => {
|
|
9645
9645
|
const n = e ? { month: t, day: "numeric" } : { month: t }, r = e ? "format" : "standalone";
|
|
9646
9646
|
return this.monthsCache[r][t] || (this.monthsCache[r][t] = vg((o) => this.extract(o, n, "month"))), this.monthsCache[r][t];
|
|
9647
9647
|
});
|
|
9648
9648
|
}
|
|
9649
9649
|
weekdays(t, e = !1, s = !0) {
|
|
9650
|
-
return
|
|
9650
|
+
return Xi(this, t, s, bl, () => {
|
|
9651
9651
|
const n = e ? { weekday: t, year: "numeric", month: "long", day: "numeric" } : { weekday: t }, r = e ? "format" : "standalone";
|
|
9652
9652
|
return this.weekdaysCache[r][t] || (this.weekdaysCache[r][t] = Sg(
|
|
9653
9653
|
(o) => this.extract(o, n, "weekday")
|
|
@@ -9655,7 +9655,7 @@ class B {
|
|
|
9655
9655
|
});
|
|
9656
9656
|
}
|
|
9657
9657
|
meridiems(t = !0) {
|
|
9658
|
-
return
|
|
9658
|
+
return Xi(
|
|
9659
9659
|
this,
|
|
9660
9660
|
void 0,
|
|
9661
9661
|
t,
|
|
@@ -9672,7 +9672,7 @@ class B {
|
|
|
9672
9672
|
);
|
|
9673
9673
|
}
|
|
9674
9674
|
eras(t, e = !0) {
|
|
9675
|
-
return
|
|
9675
|
+
return Xi(this, t, e, _l, () => {
|
|
9676
9676
|
const s = { era: t };
|
|
9677
9677
|
return this.eraCache[t] || (this.eraCache[t] = [O.utc(-40, 1, 1), O.utc(2017, 1, 1)].map(
|
|
9678
9678
|
(n) => this.extract(n, s, "era")
|
|
@@ -10214,8 +10214,8 @@ const Ug = {
|
|
|
10214
10214
|
DD: Ya,
|
|
10215
10215
|
DDD: qa,
|
|
10216
10216
|
DDDD: Za,
|
|
10217
|
-
t:
|
|
10218
|
-
tt:
|
|
10217
|
+
t: Ga,
|
|
10218
|
+
tt: Xa,
|
|
10219
10219
|
ttt: Ja,
|
|
10220
10220
|
tttt: Ka,
|
|
10221
10221
|
T: Qa,
|
|
@@ -10472,7 +10472,7 @@ function vl(...i) {
|
|
|
10472
10472
|
return [s, null, e + n];
|
|
10473
10473
|
};
|
|
10474
10474
|
}
|
|
10475
|
-
const Sl = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Yg = `(?:${Sl.source}?(?:\\[(${wl.source})\\])?)?`, Wn = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ml = RegExp(`${Wn.source}${Yg}`), Bn = RegExp(`(?:T${Ml.source})?`), qg = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Zg = /(\d{4})-?W(\d\d)(?:-?(\d))?/,
|
|
10475
|
+
const Sl = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Yg = `(?:${Sl.source}?(?:\\[(${wl.source})\\])?)?`, Wn = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, Ml = RegExp(`${Wn.source}${Yg}`), Bn = RegExp(`(?:T${Ml.source})?`), qg = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Zg = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Gg = /(\d{4})-?(\d{3})/, Xg = vl("weekYear", "weekNumber", "weekDay"), Jg = vl("year", "ordinal"), Kg = /(\d{4})-(\d\d)-(\d\d)/, kl = RegExp(
|
|
10476
10476
|
`${Wn.source} ?(?:${Sl.source}|(${wl.source}))?`
|
|
10477
10477
|
), Qg = RegExp(`(?: ${kl.source})?`);
|
|
10478
10478
|
function Fe(i, t, e) {
|
|
@@ -10570,13 +10570,13 @@ function um(i) {
|
|
|
10570
10570
|
const [, t, e, s, n, r, o, a] = i;
|
|
10571
10571
|
return [Hn(t, a, e, s, n, r, o), lt.utcInstance];
|
|
10572
10572
|
}
|
|
10573
|
-
const dm = He(qg, Bn), fm = He(Zg, Bn), gm = He(
|
|
10573
|
+
const dm = He(qg, Bn), fm = He(Zg, Bn), gm = He(Gg, Bn), mm = He(Ml), Tl = $e(
|
|
10574
10574
|
tm,
|
|
10575
10575
|
Ue,
|
|
10576
10576
|
Ii,
|
|
10577
10577
|
Li
|
|
10578
10578
|
), pm = $e(
|
|
10579
|
-
|
|
10579
|
+
Xg,
|
|
10580
10580
|
Ue,
|
|
10581
10581
|
Ii,
|
|
10582
10582
|
Li
|
|
@@ -12202,7 +12202,7 @@ function qm(i, t) {
|
|
|
12202
12202
|
function Zm(i) {
|
|
12203
12203
|
return [`^${i.map((e) => e.regex).reduce((e, s) => `${e}(${s.source})`, "")}$`, i];
|
|
12204
12204
|
}
|
|
12205
|
-
function
|
|
12205
|
+
function Gm(i, t, e) {
|
|
12206
12206
|
const s = i.match(t);
|
|
12207
12207
|
if (s) {
|
|
12208
12208
|
const n = {};
|
|
@@ -12216,7 +12216,7 @@ function Xm(i, t, e) {
|
|
|
12216
12216
|
} else
|
|
12217
12217
|
return [s, {}];
|
|
12218
12218
|
}
|
|
12219
|
-
function
|
|
12219
|
+
function Xm(i) {
|
|
12220
12220
|
const t = (r) => {
|
|
12221
12221
|
switch (r) {
|
|
12222
12222
|
case "S":
|
|
@@ -12274,7 +12274,7 @@ function Pl(i, t, e) {
|
|
|
12274
12274
|
if (r)
|
|
12275
12275
|
return { input: t, tokens: s, invalidReason: r.invalidReason };
|
|
12276
12276
|
{
|
|
12277
|
-
const [o, a] = Zm(n), l = RegExp(o, "i"), [c, h] =
|
|
12277
|
+
const [o, a] = Zm(n), l = RegExp(o, "i"), [c, h] = Gm(t, l, a), [u, d, f] = h ? Xm(h) : [null, null, void 0];
|
|
12278
12278
|
if (We(h, "a") && We(h, "H"))
|
|
12279
12279
|
throw new di(
|
|
12280
12280
|
"Can't include meridiem when specifying 24-hour format"
|
|
@@ -12345,11 +12345,11 @@ function Wl(i) {
|
|
|
12345
12345
|
const { hour: t, minute: e, second: s, millisecond: n } = i, r = Ht(t, 0, 23) || t === 24 && e === 0 && s === 0 && n === 0, o = Ht(e, 0, 59), a = Ht(s, 0, 59), l = Ht(n, 0, 999);
|
|
12346
12346
|
return r ? o ? a ? l ? !1 : vt("millisecond", n) : vt("second", s) : vt("minute", e) : vt("hour", t);
|
|
12347
12347
|
}
|
|
12348
|
-
const
|
|
12348
|
+
const Gs = "Invalid DateTime", Io = 864e13;
|
|
12349
12349
|
function Qi(i) {
|
|
12350
12350
|
return new Dt("unsupported zone", `the zone "${i.name}" is not supported`);
|
|
12351
12351
|
}
|
|
12352
|
-
function
|
|
12352
|
+
function Xs(i) {
|
|
12353
12353
|
return i.weekData === null && (i.weekData = bn(i.c)), i.weekData;
|
|
12354
12354
|
}
|
|
12355
12355
|
function ri(i, t) {
|
|
@@ -13025,7 +13025,7 @@ class O {
|
|
|
13025
13025
|
* @type {number}
|
|
13026
13026
|
*/
|
|
13027
13027
|
get weekYear() {
|
|
13028
|
-
return this.isValid ?
|
|
13028
|
+
return this.isValid ? Xs(this).weekYear : NaN;
|
|
13029
13029
|
}
|
|
13030
13030
|
/**
|
|
13031
13031
|
* Get the week number of the week year (1-52ish).
|
|
@@ -13034,7 +13034,7 @@ class O {
|
|
|
13034
13034
|
* @type {number}
|
|
13035
13035
|
*/
|
|
13036
13036
|
get weekNumber() {
|
|
13037
|
-
return this.isValid ?
|
|
13037
|
+
return this.isValid ? Xs(this).weekNumber : NaN;
|
|
13038
13038
|
}
|
|
13039
13039
|
/**
|
|
13040
13040
|
* Get the day of the week.
|
|
@@ -13044,7 +13044,7 @@ class O {
|
|
|
13044
13044
|
* @type {number}
|
|
13045
13045
|
*/
|
|
13046
13046
|
get weekday() {
|
|
13047
|
-
return this.isValid ?
|
|
13047
|
+
return this.isValid ? Xs(this).weekday : NaN;
|
|
13048
13048
|
}
|
|
13049
13049
|
/**
|
|
13050
13050
|
* Get the ordinal (meaning the day of the year)
|
|
@@ -13367,7 +13367,7 @@ class O {
|
|
|
13367
13367
|
* @return {string}
|
|
13368
13368
|
*/
|
|
13369
13369
|
toFormat(t, e = {}) {
|
|
13370
|
-
return this.isValid ? nt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this, t) :
|
|
13370
|
+
return this.isValid ? nt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this, t) : Gs;
|
|
13371
13371
|
}
|
|
13372
13372
|
/**
|
|
13373
13373
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
|
@@ -13389,7 +13389,7 @@ class O {
|
|
|
13389
13389
|
* @return {string}
|
|
13390
13390
|
*/
|
|
13391
13391
|
toLocaleString(t = ps, e = {}) {
|
|
13392
|
-
return this.isValid ? nt.create(this.loc.clone(e), t).formatDateTime(this) :
|
|
13392
|
+
return this.isValid ? nt.create(this.loc.clone(e), t).formatDateTime(this) : Gs;
|
|
13393
13393
|
}
|
|
13394
13394
|
/**
|
|
13395
13395
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
|
@@ -13549,7 +13549,7 @@ class O {
|
|
|
13549
13549
|
* @return {string}
|
|
13550
13550
|
*/
|
|
13551
13551
|
toString() {
|
|
13552
|
-
return this.isValid ? this.toISO() :
|
|
13552
|
+
return this.isValid ? this.toISO() : Gs;
|
|
13553
13553
|
}
|
|
13554
13554
|
/**
|
|
13555
13555
|
* Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime#toMillis}
|
|
@@ -13813,14 +13813,14 @@ class O {
|
|
|
13813
13813
|
* @type {Object}
|
|
13814
13814
|
*/
|
|
13815
13815
|
static get TIME_SIMPLE() {
|
|
13816
|
-
return
|
|
13816
|
+
return Ga;
|
|
13817
13817
|
}
|
|
13818
13818
|
/**
|
|
13819
13819
|
* {@link DateTime#toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
13820
13820
|
* @type {Object}
|
|
13821
13821
|
*/
|
|
13822
13822
|
static get TIME_WITH_SECONDS() {
|
|
13823
|
-
return
|
|
13823
|
+
return Xa;
|
|
13824
13824
|
}
|
|
13825
13825
|
/**
|
|
13826
13826
|
* {@link DateTime#toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
@@ -14187,7 +14187,7 @@ function Be(i, t, e, s, n) {
|
|
|
14187
14187
|
d[o] = typeof e[u] == "object" ? e[u][o] : null, d[a] = typeof e[u] == "object" ? e[u][a] : null, d[l] = Ho(d[r], d[o], Math.min), d[c] = Ho(d[r], d[a], Math.max);
|
|
14188
14188
|
}
|
|
14189
14189
|
}
|
|
14190
|
-
function
|
|
14190
|
+
function Gl(i, t, e, s) {
|
|
14191
14191
|
const { axis: n } = t, r = t.getLabels();
|
|
14192
14192
|
for (let o = 0; o < s; o += 1) {
|
|
14193
14193
|
const a = o + e, l = i[o];
|
|
@@ -14212,7 +14212,7 @@ class Ze extends ee {
|
|
|
14212
14212
|
return this.parseErrorData(r, t, e, s, n), r;
|
|
14213
14213
|
}
|
|
14214
14214
|
parseErrorData(t, e, s, n, r) {
|
|
14215
|
-
Be(t, e.vScale, s, n, r),
|
|
14215
|
+
Be(t, e.vScale, s, n, r), Gl(t, e.iScale, n, r);
|
|
14216
14216
|
}
|
|
14217
14217
|
updateElement(t, e, s, n) {
|
|
14218
14218
|
typeof e == "number" && Oi(s, this.getParsed(e), e, this._cachedMeta.vScale, n === "reset"), super.updateElement(t, e, s, n);
|
|
@@ -14264,7 +14264,7 @@ class ke extends $t {
|
|
|
14264
14264
|
parseErrorData(t, e, s, n, r) {
|
|
14265
14265
|
Be(t, e.vScale, s, n, r);
|
|
14266
14266
|
const o = e.iScale;
|
|
14267
|
-
$o.includes(o.type) ? Be(t, e.iScale, s, n, r) :
|
|
14267
|
+
$o.includes(o.type) ? Be(t, e.iScale, s, n, r) : Gl(t, e.iScale, n, r);
|
|
14268
14268
|
}
|
|
14269
14269
|
updateElement(t, e, s, n) {
|
|
14270
14270
|
t instanceof bt && typeof e == "number" && this.updateElementScale(e, s, n), super.updateElement(t, e, s, n);
|
|
@@ -14304,7 +14304,7 @@ ke.overrides = yt({}, [
|
|
|
14304
14304
|
}
|
|
14305
14305
|
]);
|
|
14306
14306
|
ke.defaultRoutes = $t.defaultRoutes;
|
|
14307
|
-
class
|
|
14307
|
+
class Xl extends ht {
|
|
14308
14308
|
constructor(t, e) {
|
|
14309
14309
|
super(t, Ps("lineWithErrorBars", e, ke, bt, [
|
|
14310
14310
|
ve,
|
|
@@ -14312,7 +14312,7 @@ class Gl extends ht {
|
|
|
14312
14312
|
]));
|
|
14313
14313
|
}
|
|
14314
14314
|
}
|
|
14315
|
-
|
|
14315
|
+
Xl.id = ke.id;
|
|
14316
14316
|
class Te extends pe {
|
|
14317
14317
|
getMinMax(t, e) {
|
|
14318
14318
|
return As(t, (s) => super.getMinMax(s, e));
|
|
@@ -14370,7 +14370,7 @@ class Jl extends ht {
|
|
|
14370
14370
|
}
|
|
14371
14371
|
}
|
|
14372
14372
|
Jl.id = Te.id;
|
|
14373
|
-
class
|
|
14373
|
+
class Ge extends Lt {
|
|
14374
14374
|
getMinMaxImpl(t) {
|
|
14375
14375
|
const e = this._cachedMeta, s = {
|
|
14376
14376
|
min: Number.POSITIVE_INFINITY,
|
|
@@ -14416,15 +14416,15 @@ class Xe extends Lt {
|
|
|
14416
14416
|
}, super.updateElements(t, e, s, n), r.getDistanceFromCenterForValue = o;
|
|
14417
14417
|
}
|
|
14418
14418
|
}
|
|
14419
|
-
|
|
14420
|
-
|
|
14419
|
+
Ge.id = "polarAreaWithErrorBars";
|
|
14420
|
+
Ge.defaults = yt({}, [
|
|
14421
14421
|
Lt.defaults,
|
|
14422
14422
|
Cs,
|
|
14423
14423
|
{
|
|
14424
14424
|
dataElementType: qe.id
|
|
14425
14425
|
}
|
|
14426
14426
|
]);
|
|
14427
|
-
|
|
14427
|
+
Ge.overrides = yt({}, [
|
|
14428
14428
|
Lt.overrides,
|
|
14429
14429
|
{
|
|
14430
14430
|
plugins: {
|
|
@@ -14436,15 +14436,15 @@ Xe.overrides = yt({}, [
|
|
|
14436
14436
|
}
|
|
14437
14437
|
}
|
|
14438
14438
|
]);
|
|
14439
|
-
|
|
14439
|
+
Ge.defaultRoutes = Lt.defaultRoutes;
|
|
14440
14440
|
class yp extends ht {
|
|
14441
14441
|
constructor(t, e) {
|
|
14442
|
-
super(t, Ps("polarAreaWithErrorBars", e,
|
|
14442
|
+
super(t, Ps("polarAreaWithErrorBars", e, Ge, qe, [
|
|
14443
14443
|
Ie
|
|
14444
14444
|
]));
|
|
14445
14445
|
}
|
|
14446
14446
|
}
|
|
14447
|
-
yp.id =
|
|
14447
|
+
yp.id = Ge.id;
|
|
14448
14448
|
function bp(i) {
|
|
14449
14449
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
14450
14450
|
}
|
|
@@ -14731,7 +14731,7 @@ class kp {
|
|
|
14731
14731
|
}
|
|
14732
14732
|
ht.register(
|
|
14733
14733
|
ke,
|
|
14734
|
-
|
|
14734
|
+
Xl,
|
|
14735
14735
|
bt,
|
|
14736
14736
|
Jl,
|
|
14737
14737
|
Te,
|
|
@@ -14764,6 +14764,11 @@ class Tp {
|
|
|
14764
14764
|
), this.status = "ready", this.chartOptions = {
|
|
14765
14765
|
responsive: !0,
|
|
14766
14766
|
maintainAspectRatio: !1,
|
|
14767
|
+
layout: {
|
|
14768
|
+
padding: {
|
|
14769
|
+
top: 30
|
|
14770
|
+
}
|
|
14771
|
+
},
|
|
14767
14772
|
scales: {
|
|
14768
14773
|
x: {
|
|
14769
14774
|
type: "time",
|
|
@@ -15136,8 +15141,9 @@ const Dp = (i, t) => {
|
|
|
15136
15141
|
const e = document.querySelector("eox-chart").shadowRoot.getElementById(t);
|
|
15137
15142
|
if (!e)
|
|
15138
15143
|
return;
|
|
15144
|
+
e.style.overflowY = "auto";
|
|
15139
15145
|
let s = e.querySelector("ul");
|
|
15140
|
-
return s || (s = document.createElement("ul"), s.style.display = "flex", s.style.flexDirection = "column", s.style.margin = 0, s.style.padding = "
|
|
15146
|
+
return s || (s = document.createElement("ul"), s.style.display = "flex", s.style.flexDirection = "column", s.style.margin = 0, s.style.padding = "10px", e.appendChild(s)), s;
|
|
15141
15147
|
}, Ep = {
|
|
15142
15148
|
id: "htmlLegend",
|
|
15143
15149
|
afterUpdate(i, t, e) {
|
|
@@ -15163,6 +15169,9 @@ const Dp = (i, t) => {
|
|
|
15163
15169
|
}
|
|
15164
15170
|
}, Cp = `
|
|
15165
15171
|
<style>
|
|
15172
|
+
:host {
|
|
15173
|
+
font-size: small;
|
|
15174
|
+
}
|
|
15166
15175
|
.hidden {
|
|
15167
15176
|
visibility: hidden;
|
|
15168
15177
|
}
|
|
@@ -15214,12 +15223,11 @@ const Dp = (i, t) => {
|
|
|
15214
15223
|
width: 100%; height: 100%;
|
|
15215
15224
|
}
|
|
15216
15225
|
#chart-container.controls {
|
|
15217
|
-
|
|
15218
|
-
flex-basis: 80%;
|
|
15226
|
+
flex-basis: 85%;
|
|
15219
15227
|
width: unset;
|
|
15220
15228
|
}
|
|
15221
15229
|
#legend-container {
|
|
15222
|
-
flex-basis:
|
|
15230
|
+
flex-basis: 15%;
|
|
15223
15231
|
}
|
|
15224
15232
|
</style>
|
|
15225
15233
|
<div style="display: flex; width: 100%; height: 100%;">
|
|
@@ -15273,7 +15281,11 @@ class Ap extends HTMLElement {
|
|
|
15273
15281
|
_(this, "setOptions");
|
|
15274
15282
|
_(this, "setSignalsData");
|
|
15275
15283
|
_(this, "setSignalsEndpoint");
|
|
15276
|
-
|
|
15284
|
+
_(this, "setSignalsGeometry");
|
|
15285
|
+
this.shadowRoot = this.attachShadow({ mode: "open" }), this.shadowRoot.appendChild(Ql.content.cloneNode(!0));
|
|
15286
|
+
}
|
|
15287
|
+
connectedCallback() {
|
|
15288
|
+
this.chart = new ht(this.shadowRoot.querySelector("canvas"), {
|
|
15277
15289
|
options: {
|
|
15278
15290
|
maintainAspectRatio: !1,
|
|
15279
15291
|
responsive: !0
|
|
@@ -15309,6 +15321,8 @@ class Ap extends HTMLElement {
|
|
|
15309
15321
|
data: r
|
|
15310
15322
|
}))
|
|
15311
15323
|
}, this.chart.update("none");
|
|
15324
|
+
}, this.setSignalsGeometry = (s) => {
|
|
15325
|
+
e && e.setGeometry(s);
|
|
15312
15326
|
};
|
|
15313
15327
|
let e = null;
|
|
15314
15328
|
this.setSignalsEndpoint = (s) => {
|