genus-ui 1.42.3 → 1.43.3
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/dist/index.es.js +379 -385
- package/dist/index.umd.js +13 -23
- package/package.json +1 -1
- package/types/genus-chart/index.d.ts +1 -0
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (i, t, e) => (
|
|
1
|
+
var Ma = Object.defineProperty;
|
|
2
|
+
var ya = (i, t, e) => t in i ? Ma(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var v = (i, t, e) => (ya(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { css as D, LitElement as J, html as k } from "lit";
|
|
5
5
|
import { property as z, state as at, customElement as q, queryAssignedElements as co, query as wa } from "lit/decorators.js";
|
|
6
6
|
const va = D`
|
|
@@ -65,7 +65,7 @@ var za = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, Qe = (i, t
|
|
|
65
65
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
66
66
|
return s && n && za(t, e, n), n;
|
|
67
67
|
};
|
|
68
|
-
let
|
|
68
|
+
let _t = class extends J {
|
|
69
69
|
constructor() {
|
|
70
70
|
super(...arguments), this.labelText = "", this.inputValue = "", this.readOnly = !1, this.getInputValue = (i) => {
|
|
71
71
|
this.dispatchEvent(new CustomEvent("typed", { detail: i.target.value }));
|
|
@@ -83,22 +83,22 @@ let qt = class extends J {
|
|
|
83
83
|
`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
|
|
86
|
+
_t.styles = [va, Ia, Aa, Da, Ta];
|
|
87
87
|
Qe([
|
|
88
88
|
z({ attribute: "label-text" })
|
|
89
|
-
],
|
|
89
|
+
], _t.prototype, "labelText", 2);
|
|
90
90
|
Qe([
|
|
91
91
|
z({ attribute: "input-value" })
|
|
92
|
-
],
|
|
92
|
+
], _t.prototype, "inputValue", 2);
|
|
93
93
|
Qe([
|
|
94
94
|
z({ attribute: "read-only", type: Boolean })
|
|
95
|
-
],
|
|
95
|
+
], _t.prototype, "readOnly", 2);
|
|
96
96
|
Qe([
|
|
97
97
|
at()
|
|
98
|
-
],
|
|
99
|
-
|
|
98
|
+
], _t.prototype, "_targetInput", 2);
|
|
99
|
+
_t = Qe([
|
|
100
100
|
q("genus-textarea")
|
|
101
|
-
],
|
|
101
|
+
], _t);
|
|
102
102
|
const La = D`
|
|
103
103
|
input[type='text'], input[type='email'], input[type='password'], input[type='date']
|
|
104
104
|
{
|
|
@@ -810,7 +810,7 @@ var ir = Object.defineProperty, sr = Object.getOwnPropertyDescriptor, xe = (i, t
|
|
|
810
810
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
811
811
|
return s && n && ir(t, e, n), n;
|
|
812
812
|
};
|
|
813
|
-
let
|
|
813
|
+
let Lt = class extends J {
|
|
814
814
|
constructor() {
|
|
815
815
|
super(...arguments), this.currentStep = 0, this.direction = "", this._progressBarsTemplate = [], this._steps = 0, this._hideCurrentContent = () => {
|
|
816
816
|
this._stepContents.forEach((i) => {
|
|
@@ -842,25 +842,25 @@ let kt = class extends J {
|
|
|
842
842
|
`;
|
|
843
843
|
}
|
|
844
844
|
};
|
|
845
|
-
|
|
845
|
+
Lt.styles = [ho, uo, er, fo];
|
|
846
846
|
xe([
|
|
847
847
|
co()
|
|
848
|
-
],
|
|
848
|
+
], Lt.prototype, "_stepContents", 2);
|
|
849
849
|
xe([
|
|
850
850
|
z({ attribute: "current-step", type: Number })
|
|
851
|
-
],
|
|
851
|
+
], Lt.prototype, "currentStep", 2);
|
|
852
852
|
xe([
|
|
853
853
|
z()
|
|
854
|
-
],
|
|
854
|
+
], Lt.prototype, "direction", 2);
|
|
855
855
|
xe([
|
|
856
856
|
at()
|
|
857
|
-
],
|
|
857
|
+
], Lt.prototype, "_progressBarsTemplate", 2);
|
|
858
858
|
xe([
|
|
859
859
|
at()
|
|
860
|
-
],
|
|
861
|
-
|
|
860
|
+
], Lt.prototype, "_steps", 2);
|
|
861
|
+
Lt = xe([
|
|
862
862
|
q("genus-step-wizard")
|
|
863
|
-
],
|
|
863
|
+
], Lt);
|
|
864
864
|
var nr = Object.defineProperty, or = Object.getOwnPropertyDescriptor, bs = (i, t, e, s) => {
|
|
865
865
|
for (var n = s > 1 ? void 0 : s ? or(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
866
866
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
@@ -900,7 +900,7 @@ const Sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
900
900
|
return de;
|
|
901
901
|
},
|
|
902
902
|
get GenusStepWizard() {
|
|
903
|
-
return
|
|
903
|
+
return Lt;
|
|
904
904
|
}
|
|
905
905
|
}, Symbol.toStringTag, { value: "Module" })), ar = D`
|
|
906
906
|
input[type=radio] { display: none; }
|
|
@@ -993,12 +993,12 @@ const Sf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
993
993
|
column-gap: 0.6rem;
|
|
994
994
|
}
|
|
995
995
|
`, Es = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAxNSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxjaXJjbGUgY3g9IjcuNSIgY3k9IjcuNSIgcj0iNyIgZmlsbD0iI0ZERkRGRCIgc3Ryb2tlPSIjQjlCREJBIi8+DQo8L3N2Zz4NCg==", Vs = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIGNsYXNzPSJyYWRpby1pY29uLXN2ZyBjaGVja2VkLXN2ZyIgdmlld0JveD0iMCAwIDE1IDE1IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxzdHlsZT4NCiAgICAgICAgLnJhZGlvLWljb24tc3ZnIGNpcmNsZSB7IGZpbGw6ICNmZGM1NGE7IH0NCiAgICAgICAgLmNoZWNrZWQtc3ZnIHBhdGggeyBzdHJva2U6ICMzYzQ5OWU7IH0NCiAgICA8L3N0eWxlPg0KDQogICAgPGNpcmNsZSBjeD0iNy41IiBjeT0iNy41IiByPSI3LjUiLz4NCiAgICA8cGF0aCBkPSJNNSA4LjAwNUw2Ljg5MiA5Ljg5OEwxMC43OSA2IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4NCjwvc3ZnPg0K";
|
|
996
|
-
var ur = Object.defineProperty, fr = Object.getOwnPropertyDescriptor,
|
|
996
|
+
var ur = Object.defineProperty, fr = Object.getOwnPropertyDescriptor, ne = (i, t, e, s) => {
|
|
997
997
|
for (var n = s > 1 ? void 0 : s ? fr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
998
998
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
999
999
|
return s && n && ur(t, e, n), n;
|
|
1000
1000
|
};
|
|
1001
|
-
let
|
|
1001
|
+
let Nt = class extends J {
|
|
1002
1002
|
constructor() {
|
|
1003
1003
|
super(...arguments), this.groupName = "", this.labelText = "", this.selectedOption = "", this.options = [], this.withoutLabel = !1, this.withoutIcon = !1;
|
|
1004
1004
|
}
|
|
@@ -1060,28 +1060,28 @@ let Lt = class extends J {
|
|
|
1060
1060
|
`;
|
|
1061
1061
|
}
|
|
1062
1062
|
};
|
|
1063
|
-
|
|
1064
|
-
|
|
1063
|
+
Nt.styles = [cr, lr, hr, rr, dr, ar];
|
|
1064
|
+
ne([
|
|
1065
1065
|
z({ attribute: "group-name" })
|
|
1066
|
-
],
|
|
1067
|
-
|
|
1066
|
+
], Nt.prototype, "groupName", 2);
|
|
1067
|
+
ne([
|
|
1068
1068
|
z({ attribute: "label-text" })
|
|
1069
|
-
],
|
|
1070
|
-
|
|
1069
|
+
], Nt.prototype, "labelText", 2);
|
|
1070
|
+
ne([
|
|
1071
1071
|
z({ attribute: "selected-option" })
|
|
1072
|
-
],
|
|
1073
|
-
|
|
1072
|
+
], Nt.prototype, "selectedOption", 2);
|
|
1073
|
+
ne([
|
|
1074
1074
|
z({ attribute: "group-options", type: Array })
|
|
1075
|
-
],
|
|
1076
|
-
|
|
1075
|
+
], Nt.prototype, "options", 2);
|
|
1076
|
+
ne([
|
|
1077
1077
|
z({ attribute: "without-label", type: Boolean })
|
|
1078
|
-
],
|
|
1079
|
-
|
|
1078
|
+
], Nt.prototype, "withoutLabel", 2);
|
|
1079
|
+
ne([
|
|
1080
1080
|
z({ attribute: "without-icon", type: Boolean })
|
|
1081
|
-
],
|
|
1082
|
-
|
|
1081
|
+
], Nt.prototype, "withoutIcon", 2);
|
|
1082
|
+
Nt = ne([
|
|
1083
1083
|
q("genus-radiobtn-group")
|
|
1084
|
-
],
|
|
1084
|
+
], Nt);
|
|
1085
1085
|
const gr = D`
|
|
1086
1086
|
*
|
|
1087
1087
|
{
|
|
@@ -1205,12 +1205,12 @@ const gr = D`
|
|
|
1205
1205
|
.data-card__title, .data-card__text { text-align: left; }
|
|
1206
1206
|
}
|
|
1207
1207
|
`;
|
|
1208
|
-
var xr = Object.defineProperty,
|
|
1209
|
-
for (var n = s > 1 ? void 0 : s ?
|
|
1208
|
+
var xr = Object.defineProperty, Mr = Object.getOwnPropertyDescriptor, qe = (i, t, e, s) => {
|
|
1209
|
+
for (var n = s > 1 ? void 0 : s ? Mr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1210
1210
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1211
1211
|
return s && n && xr(t, e, n), n;
|
|
1212
1212
|
};
|
|
1213
|
-
let
|
|
1213
|
+
let $t = class extends J {
|
|
1214
1214
|
constructor() {
|
|
1215
1215
|
super(...arguments), this.dataCardTitle = "", this.dataCardValue = "", this.datCardIconSrc = "", this.withoutIcon = !1;
|
|
1216
1216
|
}
|
|
@@ -1231,29 +1231,29 @@ let _t = class extends J {
|
|
|
1231
1231
|
`;
|
|
1232
1232
|
}
|
|
1233
1233
|
};
|
|
1234
|
-
|
|
1234
|
+
$t.styles = [gr, br, pr, mr];
|
|
1235
1235
|
qe([
|
|
1236
1236
|
z({ attribute: "card-title" })
|
|
1237
|
-
],
|
|
1237
|
+
], $t.prototype, "dataCardTitle", 2);
|
|
1238
1238
|
qe([
|
|
1239
1239
|
z({ attribute: "card-value" })
|
|
1240
|
-
],
|
|
1240
|
+
], $t.prototype, "dataCardValue", 2);
|
|
1241
1241
|
qe([
|
|
1242
1242
|
z({ attribute: "svg-icon-src" })
|
|
1243
|
-
],
|
|
1243
|
+
], $t.prototype, "datCardIconSrc", 2);
|
|
1244
1244
|
qe([
|
|
1245
1245
|
z({ type: Boolean, attribute: "without-icon" })
|
|
1246
|
-
],
|
|
1247
|
-
|
|
1246
|
+
], $t.prototype, "withoutIcon", 2);
|
|
1247
|
+
$t = qe([
|
|
1248
1248
|
q("genus-data-card")
|
|
1249
|
-
],
|
|
1249
|
+
], $t);
|
|
1250
1250
|
const go = D`
|
|
1251
1251
|
.label-text, .options-label
|
|
1252
1252
|
{
|
|
1253
1253
|
font-family: var(--font-family, 'Sofia Pro');
|
|
1254
1254
|
font-size: var(--font-size, 1rem);
|
|
1255
1255
|
}
|
|
1256
|
-
`,
|
|
1256
|
+
`, yr = D`
|
|
1257
1257
|
input[type=checkbox] { display: none; }
|
|
1258
1258
|
|
|
1259
1259
|
.genus-checkbox:checked + .genus-checkbox-label { background: var(--checked-checkbox-background-color, #213e70); }
|
|
@@ -1308,7 +1308,7 @@ let ue = class extends J {
|
|
|
1308
1308
|
`;
|
|
1309
1309
|
}
|
|
1310
1310
|
};
|
|
1311
|
-
ue.styles = [go,
|
|
1311
|
+
ue.styles = [go, yr, po];
|
|
1312
1312
|
xs([
|
|
1313
1313
|
z({ attribute: "option-value" })
|
|
1314
1314
|
], ue.prototype, "optionValue", 2);
|
|
@@ -1478,7 +1478,7 @@ fe = Oi([
|
|
|
1478
1478
|
q("genus-checkbox")
|
|
1479
1479
|
], fe);
|
|
1480
1480
|
const Vr = D`
|
|
1481
|
-
input[type='text']
|
|
1481
|
+
input[type='text']
|
|
1482
1482
|
{
|
|
1483
1483
|
border: var(--input-border, none);
|
|
1484
1484
|
padding: var(--input-padding, 1.125rem 0.9375rem);
|
|
@@ -1486,18 +1486,9 @@ const Vr = D`
|
|
|
1486
1486
|
color: var(--input-font-color, #213e70);
|
|
1487
1487
|
}
|
|
1488
1488
|
|
|
1489
|
-
input[type='text']:focus
|
|
1490
|
-
|
|
1491
|
-
input[type='text']::placeholder,
|
|
1492
|
-
input[type='email']::placeholder,
|
|
1493
|
-
input[type='password']::placeholder
|
|
1494
|
-
{ color: var(--input-placeholder-color, #ababab); }
|
|
1489
|
+
input[type='text']:focus { outline: none; }
|
|
1495
1490
|
|
|
1496
|
-
input[type='
|
|
1497
|
-
{
|
|
1498
|
-
background: transparent;
|
|
1499
|
-
z-index: 1;
|
|
1500
|
-
}
|
|
1491
|
+
input[type='text']::placeholder { color: var(--input-placeholder-color, #ababab); }
|
|
1501
1492
|
|
|
1502
1493
|
.input-control
|
|
1503
1494
|
{
|
|
@@ -1721,7 +1712,7 @@ Bt([
|
|
|
1721
1712
|
gt = Bt([
|
|
1722
1713
|
q("genus-dropdown")
|
|
1723
1714
|
], gt);
|
|
1724
|
-
var Yr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor,
|
|
1715
|
+
var Yr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, Mo = (i, t, e, s) => {
|
|
1725
1716
|
for (var n = s > 1 ? void 0 : s ? Gr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1726
1717
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1727
1718
|
return s && n && Yr(t, e, n), n;
|
|
@@ -1739,10 +1730,10 @@ let We = class extends J {
|
|
|
1739
1730
|
}
|
|
1740
1731
|
};
|
|
1741
1732
|
We.styles = [bo, xo];
|
|
1742
|
-
|
|
1733
|
+
Mo([
|
|
1743
1734
|
z({ attribute: "option-value" })
|
|
1744
1735
|
], We.prototype, "optionValue", 2);
|
|
1745
|
-
We =
|
|
1736
|
+
We = Mo([
|
|
1746
1737
|
q("genus-dropdown-option")
|
|
1747
1738
|
], We);
|
|
1748
1739
|
const Of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1809,7 +1800,7 @@ function ke(i) {
|
|
|
1809
1800
|
function Pt(i) {
|
|
1810
1801
|
return St(_e(i * 255), 0, 255);
|
|
1811
1802
|
}
|
|
1812
|
-
function
|
|
1803
|
+
function At(i) {
|
|
1813
1804
|
return St(_e(i / 2.55) / 100, 0, 1);
|
|
1814
1805
|
}
|
|
1815
1806
|
function Bs(i) {
|
|
@@ -1836,7 +1827,7 @@ function el(i) {
|
|
|
1836
1827
|
return i ? "#" + t(i.r) + t(i.g) + t(i.b) + tl(i.a, t) : void 0;
|
|
1837
1828
|
}
|
|
1838
1829
|
const il = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
1839
|
-
function
|
|
1830
|
+
function yo(i, t, e) {
|
|
1840
1831
|
const s = t * Math.min(e, 1 - e), n = (o, a = (o + i / 30) % 12) => e - s * Math.max(Math.min(a - 3, 9 - a, 1), -1);
|
|
1841
1832
|
return [n(0), n(8), n(4)];
|
|
1842
1833
|
}
|
|
@@ -1845,7 +1836,7 @@ function sl(i, t, e) {
|
|
|
1845
1836
|
return [s(5), s(3), s(1)];
|
|
1846
1837
|
}
|
|
1847
1838
|
function nl(i, t, e) {
|
|
1848
|
-
const s =
|
|
1839
|
+
const s = yo(i, 1, 0.5);
|
|
1849
1840
|
let n;
|
|
1850
1841
|
for (t + e > 1 && (n = 1 / (t + e), t *= n, e *= n), n = 0; n < 3; n++)
|
|
1851
1842
|
s[n] *= 1 - t - e, s[n] += t;
|
|
@@ -1854,22 +1845,22 @@ function nl(i, t, e) {
|
|
|
1854
1845
|
function ol(i, t, e, s, n) {
|
|
1855
1846
|
return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4;
|
|
1856
1847
|
}
|
|
1857
|
-
function
|
|
1848
|
+
function Ms(i) {
|
|
1858
1849
|
const e = i.r / 255, s = i.g / 255, n = i.b / 255, o = Math.max(e, s, n), a = Math.min(e, s, n), r = (o + a) / 2;
|
|
1859
1850
|
let l, c, h;
|
|
1860
1851
|
return o !== a && (h = o - a, c = r > 0.5 ? h / (2 - o - a) : h / (o + a), l = ol(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, r];
|
|
1861
1852
|
}
|
|
1862
|
-
function
|
|
1853
|
+
function ys(i, t, e, s) {
|
|
1863
1854
|
return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(Pt);
|
|
1864
1855
|
}
|
|
1865
1856
|
function ws(i, t, e) {
|
|
1866
|
-
return
|
|
1857
|
+
return ys(yo, i, t, e);
|
|
1867
1858
|
}
|
|
1868
1859
|
function al(i, t, e) {
|
|
1869
|
-
return
|
|
1860
|
+
return ys(nl, i, t, e);
|
|
1870
1861
|
}
|
|
1871
1862
|
function rl(i, t, e) {
|
|
1872
|
-
return
|
|
1863
|
+
return ys(sl, i, t, e);
|
|
1873
1864
|
}
|
|
1874
1865
|
function wo(i) {
|
|
1875
1866
|
return (i % 360 + 360) % 360;
|
|
@@ -1889,14 +1880,14 @@ function ll(i) {
|
|
|
1889
1880
|
};
|
|
1890
1881
|
}
|
|
1891
1882
|
function cl(i, t) {
|
|
1892
|
-
var e =
|
|
1883
|
+
var e = Ms(i);
|
|
1893
1884
|
e[0] = wo(e[0] + t), e = ws(e), i.r = e[0], i.g = e[1], i.b = e[2];
|
|
1894
1885
|
}
|
|
1895
1886
|
function hl(i) {
|
|
1896
1887
|
if (!i)
|
|
1897
1888
|
return;
|
|
1898
|
-
const t =
|
|
1899
|
-
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${
|
|
1889
|
+
const t = Ms(i), e = t[0], s = Bs(t[1]), n = Bs(t[2]);
|
|
1890
|
+
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${At(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
1900
1891
|
}
|
|
1901
1892
|
const Ws = {
|
|
1902
1893
|
x: "dark",
|
|
@@ -2115,21 +2106,21 @@ function gl(i) {
|
|
|
2115
2106
|
}
|
|
2116
2107
|
}
|
|
2117
2108
|
function pl(i) {
|
|
2118
|
-
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${
|
|
2109
|
+
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${At(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
2119
2110
|
}
|
|
2120
2111
|
const Zi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, le = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
2121
2112
|
function ml(i, t, e) {
|
|
2122
|
-
const s = le(
|
|
2113
|
+
const s = le(At(i.r)), n = le(At(i.g)), o = le(At(i.b));
|
|
2123
2114
|
return {
|
|
2124
|
-
r: Pt(Zi(s + e * (le(
|
|
2125
|
-
g: Pt(Zi(n + e * (le(
|
|
2126
|
-
b: Pt(Zi(o + e * (le(
|
|
2115
|
+
r: Pt(Zi(s + e * (le(At(t.r)) - s))),
|
|
2116
|
+
g: Pt(Zi(n + e * (le(At(t.g)) - n))),
|
|
2117
|
+
b: Pt(Zi(o + e * (le(At(t.b)) - o))),
|
|
2127
2118
|
a: i.a + e * (t.a - i.a)
|
|
2128
2119
|
};
|
|
2129
2120
|
}
|
|
2130
2121
|
function ni(i, t, e) {
|
|
2131
2122
|
if (i) {
|
|
2132
|
-
let s =
|
|
2123
|
+
let s = Ms(i);
|
|
2133
2124
|
s[t] = Math.max(0, Math.min(s[t] + s[t] * e, t === 0 ? 360 : 1)), s = ws(s), i.r = s[0], i.g = s[1], i.b = s[2];
|
|
2134
2125
|
}
|
|
2135
2126
|
}
|
|
@@ -2156,7 +2147,7 @@ class He {
|
|
|
2156
2147
|
}
|
|
2157
2148
|
get rgb() {
|
|
2158
2149
|
var t = vo(this._rgb);
|
|
2159
|
-
return t && (t.a =
|
|
2150
|
+
return t && (t.a = At(t.a)), t;
|
|
2160
2151
|
}
|
|
2161
2152
|
set rgb(t) {
|
|
2162
2153
|
this._rgb = Zs(t);
|
|
@@ -2226,7 +2217,7 @@ class He {
|
|
|
2226
2217
|
* (c) 2023 Chart.js Contributors
|
|
2227
2218
|
* Released under the MIT License
|
|
2228
2219
|
*/
|
|
2229
|
-
function
|
|
2220
|
+
function wt() {
|
|
2230
2221
|
}
|
|
2231
2222
|
const xl = (() => {
|
|
2232
2223
|
let i = 0;
|
|
@@ -2253,7 +2244,7 @@ function lt(i, t) {
|
|
|
2253
2244
|
function N(i, t) {
|
|
2254
2245
|
return typeof i > "u" ? t : i;
|
|
2255
2246
|
}
|
|
2256
|
-
const
|
|
2247
|
+
const Ml = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 : +i / t, Io = (i, t) => typeof i == "string" && i.endsWith("%") ? parseFloat(i) / 100 * t : +i;
|
|
2257
2248
|
function R(i, t, e) {
|
|
2258
2249
|
if (i && typeof i.call == "function")
|
|
2259
2250
|
return i.apply(e, t);
|
|
@@ -2299,7 +2290,7 @@ function Ao(i) {
|
|
|
2299
2290
|
"constructor"
|
|
2300
2291
|
].indexOf(i) === -1;
|
|
2301
2292
|
}
|
|
2302
|
-
function
|
|
2293
|
+
function yl(i, t, e, s) {
|
|
2303
2294
|
if (!Ao(i))
|
|
2304
2295
|
return;
|
|
2305
2296
|
const n = t[i], o = e[i];
|
|
@@ -2312,7 +2303,7 @@ function Ze(i, t, e) {
|
|
|
2312
2303
|
if (!O(i))
|
|
2313
2304
|
return i;
|
|
2314
2305
|
e = e || {};
|
|
2315
|
-
const o = e.merger ||
|
|
2306
|
+
const o = e.merger || yl;
|
|
2316
2307
|
let a;
|
|
2317
2308
|
for (let r = 0; r < n; ++r) {
|
|
2318
2309
|
if (a = s[r], !O(a))
|
|
@@ -2376,7 +2367,7 @@ const Fe = (i) => typeof i < "u", Rt = (i) => typeof i == "function", Us = (i, t
|
|
|
2376
2367
|
function Al(i) {
|
|
2377
2368
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
2378
2369
|
}
|
|
2379
|
-
const H = Math.PI, W = 2 * H, Tl = W + H, zi = Number.POSITIVE_INFINITY, Dl = H / 180, G = H / 2,
|
|
2370
|
+
const H = Math.PI, W = 2 * H, Tl = W + H, zi = Number.POSITIVE_INFINITY, Dl = H / 180, G = H / 2, Ft = H / 4, Ys = H * 2 / 3, Ct = Math.log10, xt = Math.sign;
|
|
2380
2371
|
function Pe(i, t, e) {
|
|
2381
2372
|
return Math.abs(i - t) < e;
|
|
2382
2373
|
}
|
|
@@ -2446,7 +2437,7 @@ function Q(i, t, e) {
|
|
|
2446
2437
|
function Nl(i) {
|
|
2447
2438
|
return Q(i, -32768, 32767);
|
|
2448
2439
|
}
|
|
2449
|
-
function
|
|
2440
|
+
function Dt(i, t, e, s = 1e-6) {
|
|
2450
2441
|
return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
|
|
2451
2442
|
}
|
|
2452
2443
|
function As(i, t, e) {
|
|
@@ -2459,7 +2450,7 @@ function As(i, t, e) {
|
|
|
2459
2450
|
hi: s
|
|
2460
2451
|
};
|
|
2461
2452
|
}
|
|
2462
|
-
const
|
|
2453
|
+
const zt = (i, t, e, s) => As(i, e, s ? (n) => {
|
|
2463
2454
|
const o = i[n][t];
|
|
2464
2455
|
return o < e || o === e && i[n + 1][t] === e;
|
|
2465
2456
|
} : (n) => i[n][t] < e), Sl = (i, t, e) => As(i, e, (s) => i[s][t] >= e);
|
|
@@ -2545,14 +2536,14 @@ function So(i, t, e) {
|
|
|
2545
2536
|
const { iScale: a, _parsed: r } = i, l = a.axis, { min: c, max: h, minDefined: d, maxDefined: u } = a.getUserBounds();
|
|
2546
2537
|
d && (n = Q(Math.min(
|
|
2547
2538
|
// @ts-expect-error Need to type _parsed
|
|
2548
|
-
|
|
2539
|
+
zt(r, l, c).lo,
|
|
2549
2540
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
2550
|
-
e ? s :
|
|
2541
|
+
e ? s : zt(t, l, a.getPixelForValue(c)).lo
|
|
2551
2542
|
), 0, s - 1)), u ? o = Q(Math.max(
|
|
2552
2543
|
// @ts-expect-error Need to type _parsed
|
|
2553
|
-
|
|
2544
|
+
zt(r, a.axis, h, !0).hi + 1,
|
|
2554
2545
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
2555
|
-
e ? 0 :
|
|
2546
|
+
e ? 0 : zt(t, l, a.getPixelForValue(h), !0).hi + 1
|
|
2556
2547
|
), n, s) - n : o = s - n;
|
|
2557
2548
|
}
|
|
2558
2549
|
return {
|
|
@@ -2827,7 +2818,7 @@ function Zl(i) {
|
|
|
2827
2818
|
_indexable: (t) => t !== "backdropPadding"
|
|
2828
2819
|
});
|
|
2829
2820
|
}
|
|
2830
|
-
const
|
|
2821
|
+
const te = /* @__PURE__ */ Object.create(null), ss = /* @__PURE__ */ Object.create(null);
|
|
2831
2822
|
function Ve(i, t) {
|
|
2832
2823
|
if (!t)
|
|
2833
2824
|
return i;
|
|
@@ -2871,7 +2862,7 @@ class Fl {
|
|
|
2871
2862
|
return Ui(ss, t, e);
|
|
2872
2863
|
}
|
|
2873
2864
|
override(t, e) {
|
|
2874
|
-
return Ui(
|
|
2865
|
+
return Ui(te, t, e);
|
|
2875
2866
|
}
|
|
2876
2867
|
route(t, e, s, n) {
|
|
2877
2868
|
const o = Ve(this, t), a = Ve(this, s), r = "_" + e;
|
|
@@ -2940,7 +2931,7 @@ function Yl(i, t, e, s) {
|
|
|
2940
2931
|
}
|
|
2941
2932
|
return a;
|
|
2942
2933
|
}
|
|
2943
|
-
function
|
|
2934
|
+
function Ut(i, t, e) {
|
|
2944
2935
|
const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
|
|
2945
2936
|
return Math.round((t - n) * s) / s + n;
|
|
2946
2937
|
}
|
|
@@ -2967,24 +2958,24 @@ function jo(i, t, e, s, n) {
|
|
|
2967
2958
|
h = n ? n / 2 : p, i.moveTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += Ys, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), m += Ys, i.lineTo(e + Math.sin(m) * h, s - Math.cos(m) * p), i.closePath();
|
|
2968
2959
|
break;
|
|
2969
2960
|
case "rectRounded":
|
|
2970
|
-
c = p * 0.516, l = p - c, a = Math.cos(m +
|
|
2961
|
+
c = p * 0.516, l = p - c, a = Math.cos(m + Ft) * l, d = Math.cos(m + Ft) * (n ? n / 2 - c : l), r = Math.sin(m + Ft) * l, u = Math.sin(m + Ft) * (n ? n / 2 - c : l), i.arc(e - d, s - r, c, m - H, m - G), i.arc(e + u, s - a, c, m - G, m), i.arc(e + d, s + r, c, m, m + G), i.arc(e - u, s + a, c, m + G, m + H), i.closePath();
|
|
2971
2962
|
break;
|
|
2972
2963
|
case "rect":
|
|
2973
2964
|
if (!g) {
|
|
2974
2965
|
l = Math.SQRT1_2 * p, h = n ? n / 2 : l, i.rect(e - h, s - l, 2 * h, 2 * l);
|
|
2975
2966
|
break;
|
|
2976
2967
|
}
|
|
2977
|
-
m +=
|
|
2968
|
+
m += Ft;
|
|
2978
2969
|
case "rectRot":
|
|
2979
2970
|
d = Math.cos(m) * (n ? n / 2 : p), a = Math.cos(m) * p, r = Math.sin(m) * p, u = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - r), i.lineTo(e + u, s - a), i.lineTo(e + d, s + r), i.lineTo(e - u, s + a), i.closePath();
|
|
2980
2971
|
break;
|
|
2981
2972
|
case "crossRot":
|
|
2982
|
-
m +=
|
|
2973
|
+
m += Ft;
|
|
2983
2974
|
case "cross":
|
|
2984
2975
|
d = Math.cos(m) * (n ? n / 2 : p), a = Math.cos(m) * p, r = Math.sin(m) * p, u = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - r), i.lineTo(e + d, s + r), i.moveTo(e + u, s - a), i.lineTo(e - u, s + a);
|
|
2985
2976
|
break;
|
|
2986
2977
|
case "star":
|
|
2987
|
-
d = Math.cos(m) * (n ? n / 2 : p), a = Math.cos(m) * p, r = Math.sin(m) * p, u = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - r), i.lineTo(e + d, s + r), i.moveTo(e + u, s - a), i.lineTo(e - u, s + a), m +=
|
|
2978
|
+
d = Math.cos(m) * (n ? n / 2 : p), a = Math.cos(m) * p, r = Math.sin(m) * p, u = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - r), i.lineTo(e + d, s + r), i.moveTo(e + u, s - a), i.lineTo(e - u, s + a), m += Ft, d = Math.cos(m) * (n ? n / 2 : p), a = Math.cos(m) * p, r = Math.sin(m) * p, u = Math.sin(m) * (n ? n / 2 : p), i.moveTo(e - d, s - r), i.lineTo(e + d, s + r), i.moveTo(e + u, s - a), i.lineTo(e - u, s + a);
|
|
2988
2979
|
break;
|
|
2989
2980
|
case "line":
|
|
2990
2981
|
a = n ? n / 2 : Math.cos(m) * p, r = Math.sin(m) * p, i.moveTo(e - a, s - r), i.lineTo(e + a, s + r);
|
|
@@ -2999,7 +2990,7 @@ function jo(i, t, e, s, n) {
|
|
|
2999
2990
|
i.fill(), t.borderWidth > 0 && i.stroke();
|
|
3000
2991
|
}
|
|
3001
2992
|
}
|
|
3002
|
-
function
|
|
2993
|
+
function kt(i, t, e) {
|
|
3003
2994
|
return e = e || 0.5, !t || i && i.x > t.left - e && i.x < t.right + e && i.y > t.top - e && i.y < t.bottom + e;
|
|
3004
2995
|
}
|
|
3005
2996
|
function Pi(i, t) {
|
|
@@ -3036,7 +3027,7 @@ function Jl(i, t) {
|
|
|
3036
3027
|
const e = i.fillStyle;
|
|
3037
3028
|
i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
|
|
3038
3029
|
}
|
|
3039
|
-
function
|
|
3030
|
+
function ee(i, t, e, s, n, o = {}) {
|
|
3040
3031
|
const a = B(t) ? t : [
|
|
3041
3032
|
t
|
|
3042
3033
|
], r = o.strokeWidth > 0 && o.strokeColor !== "";
|
|
@@ -3078,7 +3069,7 @@ function Po(i) {
|
|
|
3078
3069
|
left: "x"
|
|
3079
3070
|
});
|
|
3080
3071
|
}
|
|
3081
|
-
function
|
|
3072
|
+
function Jt(i) {
|
|
3082
3073
|
return zs(i, [
|
|
3083
3074
|
"topLeft",
|
|
3084
3075
|
"topRight",
|
|
@@ -3423,9 +3414,9 @@ function ai(i, t, e) {
|
|
|
3423
3414
|
return Math.max(Math.min(i, e), t);
|
|
3424
3415
|
}
|
|
3425
3416
|
function mc(i, t) {
|
|
3426
|
-
let e, s, n, o, a, r =
|
|
3417
|
+
let e, s, n, o, a, r = kt(i[0], t);
|
|
3427
3418
|
for (e = 0, s = i.length; e < s; ++e)
|
|
3428
|
-
a = o, o = r, r = e < s - 1 &&
|
|
3419
|
+
a = o, o = r, r = e < s - 1 && kt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = ai(n.cp1x, t.left, t.right), n.cp1y = ai(n.cp1y, t.top, t.bottom)), r && (n.cp2x = ai(n.cp2x, t.left, t.right), n.cp2y = ai(n.cp2y, t.top, t.bottom)));
|
|
3429
3420
|
}
|
|
3430
3421
|
function bc(i, t, e, s, n) {
|
|
3431
3422
|
let o, a, r, l;
|
|
@@ -3453,26 +3444,26 @@ const Vi = (i) => i.ownerDocument.defaultView.getComputedStyle(i, null);
|
|
|
3453
3444
|
function xc(i, t) {
|
|
3454
3445
|
return Vi(i).getPropertyValue(t);
|
|
3455
3446
|
}
|
|
3456
|
-
const
|
|
3447
|
+
const Mc = [
|
|
3457
3448
|
"top",
|
|
3458
3449
|
"right",
|
|
3459
3450
|
"bottom",
|
|
3460
3451
|
"left"
|
|
3461
3452
|
];
|
|
3462
|
-
function
|
|
3453
|
+
function qt(i, t, e) {
|
|
3463
3454
|
const s = {};
|
|
3464
3455
|
e = e ? "-" + e : "";
|
|
3465
3456
|
for (let n = 0; n < 4; n++) {
|
|
3466
|
-
const o =
|
|
3457
|
+
const o = Mc[n];
|
|
3467
3458
|
s[o] = parseFloat(i[t + "-" + o + e]) || 0;
|
|
3468
3459
|
}
|
|
3469
3460
|
return s.width = s.left + s.right, s.height = s.top + s.bottom, s;
|
|
3470
3461
|
}
|
|
3471
|
-
const
|
|
3462
|
+
const yc = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot);
|
|
3472
3463
|
function wc(i, t) {
|
|
3473
3464
|
const e = i.touches, s = e && e.length ? e[0] : i, { offsetX: n, offsetY: o } = s;
|
|
3474
3465
|
let a = !1, r, l;
|
|
3475
|
-
if (
|
|
3466
|
+
if (yc(n, o, i.target))
|
|
3476
3467
|
r = n, l = o;
|
|
3477
3468
|
else {
|
|
3478
3469
|
const c = t.getBoundingClientRect();
|
|
@@ -3484,10 +3475,10 @@ function wc(i, t) {
|
|
|
3484
3475
|
box: a
|
|
3485
3476
|
};
|
|
3486
3477
|
}
|
|
3487
|
-
function
|
|
3478
|
+
function Xt(i, t) {
|
|
3488
3479
|
if ("native" in i)
|
|
3489
3480
|
return i;
|
|
3490
|
-
const { canvas: e, currentDevicePixelRatio: s } = t, n = Vi(e), o = n.boxSizing === "border-box", a =
|
|
3481
|
+
const { canvas: e, currentDevicePixelRatio: s } = t, n = Vi(e), o = n.boxSizing === "border-box", a = qt(n, "padding"), r = qt(n, "border", "width"), { x: l, y: c, box: h } = wc(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
|
|
3491
3482
|
let { width: f, height: g } = t;
|
|
3492
3483
|
return o && (f -= a.width + r.width, g -= a.height + r.height), {
|
|
3493
3484
|
x: Math.round((l - d) / f * e.width / s),
|
|
@@ -3501,7 +3492,7 @@ function vc(i, t, e) {
|
|
|
3501
3492
|
if (!o)
|
|
3502
3493
|
t = i.clientWidth, e = i.clientHeight;
|
|
3503
3494
|
else {
|
|
3504
|
-
const a = o.getBoundingClientRect(), r = Vi(o), l =
|
|
3495
|
+
const a = o.getBoundingClientRect(), r = Vi(o), l = qt(r, "border", "width"), c = qt(r, "padding");
|
|
3505
3496
|
t = a.width - c.width - l.width, e = a.height - c.height - l.height, s = Li(r.maxWidth, o, "clientWidth"), n = Li(r.maxHeight, o, "clientHeight");
|
|
3506
3497
|
}
|
|
3507
3498
|
}
|
|
@@ -3514,10 +3505,10 @@ function vc(i, t, e) {
|
|
|
3514
3505
|
}
|
|
3515
3506
|
const ri = (i) => Math.round(i * 10) / 10;
|
|
3516
3507
|
function Ic(i, t, e, s) {
|
|
3517
|
-
const n = Vi(i), o =
|
|
3508
|
+
const n = Vi(i), o = qt(n, "margin"), a = Li(n.maxWidth, i, "clientWidth") || zi, r = Li(n.maxHeight, i, "clientHeight") || zi, l = vc(i, t, e);
|
|
3518
3509
|
let { width: c, height: h } = l;
|
|
3519
3510
|
if (n.boxSizing === "content-box") {
|
|
3520
|
-
const u =
|
|
3511
|
+
const u = qt(n, "border", "width"), f = qt(n, "padding");
|
|
3521
3512
|
c -= f.width + u.width, h -= f.height + u.height;
|
|
3522
3513
|
}
|
|
3523
3514
|
return c = Math.max(0, c - o.width), h = Math.max(0, s ? c / s : h - o.height), c = ri(Math.min(c, a, l.maxWidth)), h = ri(Math.min(h, r, l.maxHeight)), c && !h && (h = ri(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && h > l.height && (h = l.height, c = ri(Math.floor(h * s))), {
|
|
@@ -3548,7 +3539,7 @@ function nn(i, t) {
|
|
|
3548
3539
|
const e = xc(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
3549
3540
|
return s ? +s[1] : void 0;
|
|
3550
3541
|
}
|
|
3551
|
-
function
|
|
3542
|
+
function Kt(i, t, e, s) {
|
|
3552
3543
|
return {
|
|
3553
3544
|
x: i.x + e * (t.x - i.x),
|
|
3554
3545
|
y: i.y + e * (t.y - i.y)
|
|
@@ -3567,8 +3558,8 @@ function Dc(i, t, e, s) {
|
|
|
3567
3558
|
}, o = {
|
|
3568
3559
|
x: t.cp1x,
|
|
3569
3560
|
y: t.cp1y
|
|
3570
|
-
}, a =
|
|
3571
|
-
return
|
|
3561
|
+
}, a = Kt(i, n, e), r = Kt(n, o, e), l = Kt(o, t, e), c = Kt(a, r, e), h = Kt(r, l, e);
|
|
3562
|
+
return Kt(c, h, e);
|
|
3572
3563
|
}
|
|
3573
3564
|
const zc = function(i, t) {
|
|
3574
3565
|
return {
|
|
@@ -3625,7 +3616,7 @@ function Yo(i) {
|
|
|
3625
3616
|
compare: Ll,
|
|
3626
3617
|
normalize: ct
|
|
3627
3618
|
} : {
|
|
3628
|
-
between:
|
|
3619
|
+
between: Dt,
|
|
3629
3620
|
compare: (t, e) => t - e,
|
|
3630
3621
|
normalize: (t) => t
|
|
3631
3622
|
};
|
|
@@ -3660,7 +3651,7 @@ function Go(i, t, e) {
|
|
|
3660
3651
|
];
|
|
3661
3652
|
const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Yo(s), { start: h, end: d, loop: u, style: f } = Lc(i, t, e), g = [];
|
|
3662
3653
|
let p = !1, m = null, b, x, w;
|
|
3663
|
-
const
|
|
3654
|
+
const y = () => l(n, w, b) && r(n, w) !== 0, M = () => r(o, b) === 0 || l(o, w, b), I = () => p || y(), A = () => !p || M();
|
|
3664
3655
|
for (let T = h, L = h; T <= d; ++T)
|
|
3665
3656
|
x = t[T % a], !x.skip && (b = c(x[s]), b !== w && (p = l(b, n, o), m === null && I() && (m = r(b, n) === 0 ? T : L), m !== null && A() && (g.push(on({
|
|
3666
3657
|
start: m,
|
|
@@ -3872,7 +3863,7 @@ class Pc {
|
|
|
3872
3863
|
return this._charts.delete(t);
|
|
3873
3864
|
}
|
|
3874
3865
|
}
|
|
3875
|
-
var
|
|
3866
|
+
var vt = /* @__PURE__ */ new Pc();
|
|
3876
3867
|
const ln = "transparent", Ec = {
|
|
3877
3868
|
boolean(i, t, e) {
|
|
3878
3869
|
return e > 0.5 ? t : i;
|
|
@@ -4018,7 +4009,7 @@ class Ko {
|
|
|
4018
4009
|
}
|
|
4019
4010
|
const s = this._createAnimations(t, e);
|
|
4020
4011
|
if (s.length)
|
|
4021
|
-
return
|
|
4012
|
+
return vt.add(this._chart, s), !0;
|
|
4022
4013
|
}
|
|
4023
4014
|
}
|
|
4024
4015
|
function Rc(i, t) {
|
|
@@ -4749,8 +4740,8 @@ class mi extends ft {
|
|
|
4749
4740
|
let b = e.getPixelForValue(m);
|
|
4750
4741
|
if (this.chart.getDataVisibility(t) ? g = e.getPixelForValue(u + f) : g = b, p = g - b, Math.abs(p) < a) {
|
|
4751
4742
|
p = th(p, e, r) * a, d === r && (b -= p / 2);
|
|
4752
|
-
const x = e.getPixelForDecimal(0), w = e.getPixelForDecimal(1),
|
|
4753
|
-
b = Math.max(Math.min(b,
|
|
4743
|
+
const x = e.getPixelForDecimal(0), w = e.getPixelForDecimal(1), y = Math.min(x, w), M = Math.max(x, w);
|
|
4744
|
+
b = Math.max(Math.min(b, M), y), g = b + p, s && !h && (l._stacks[e.axis]._visualValues[n] = e.getValueForPixel(g) - e.getValueForPixel(b));
|
|
4754
4745
|
}
|
|
4755
4746
|
if (b === e.getPixelForValue(r)) {
|
|
4756
4747
|
const x = xt(p) * e.getLineWidthForValue(r) / 2;
|
|
@@ -4906,7 +4897,7 @@ v(bi, "id", "bubble"), v(bi, "defaults", {
|
|
|
4906
4897
|
function oh(i, t, e) {
|
|
4907
4898
|
let s = 1, n = 1, o = 0, a = 0;
|
|
4908
4899
|
if (t < W) {
|
|
4909
|
-
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (w,
|
|
4900
|
+
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (w, y, M) => Ue(w, r, l, !0) ? 1 : Math.max(y, y * e, M, M * e), g = (w, y, M) => Ue(w, r, l, !0) ? -1 : Math.min(y, y * e, M, M * e), p = f(0, c, d), m = f(G, h, u), b = g(H, c, d), x = g(H + G, h, u);
|
|
4910
4901
|
s = (p - b) / 2, n = (m - x) / 2, o = -(p + b) / 2, a = -(m + x) / 2;
|
|
4911
4902
|
}
|
|
4912
4903
|
return {
|
|
@@ -4916,7 +4907,7 @@ function oh(i, t, e) {
|
|
|
4916
4907
|
offsetY: a
|
|
4917
4908
|
};
|
|
4918
4909
|
}
|
|
4919
|
-
class
|
|
4910
|
+
class Qt extends ft {
|
|
4920
4911
|
constructor(t, e) {
|
|
4921
4912
|
super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
|
|
4922
4913
|
}
|
|
@@ -4956,8 +4947,8 @@ class Kt extends ft {
|
|
|
4956
4947
|
};
|
|
4957
4948
|
}
|
|
4958
4949
|
update(t) {
|
|
4959
|
-
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(
|
|
4960
|
-
this.offsetX = g * w, this.offsetY = p * w, n.total = this.calculateTotal(), this.outerRadius = w -
|
|
4950
|
+
const e = this.chart, { chartArea: s } = e, n = this._cachedMeta, o = n.data, a = this.getMaxBorderWidth() + this.getMaxOffset(o) + this.options.spacing, r = Math.max((Math.min(s.width, s.height) - a) / 2, 0), l = Math.min(Ml(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = oh(d, h, l), m = (s.width - a) / u, b = (s.height - a) / f, x = Math.max(Math.min(m, b) / 2, 0), w = Io(this.options.radius, x), y = Math.max(w * l, 0), M = (w - y) / this._getVisibleDatasetWeightTotal();
|
|
4951
|
+
this.offsetX = g * w, this.offsetY = p * w, n.total = this.calculateTotal(), this.outerRadius = w - M * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - M * c, 0), this.updateElements(o, 0, o.length, t);
|
|
4961
4952
|
}
|
|
4962
4953
|
_circumference(t, e) {
|
|
4963
4954
|
const s = this.options, n = this._cachedMeta, o = this._getCircumference();
|
|
@@ -4969,7 +4960,7 @@ class Kt extends ft {
|
|
|
4969
4960
|
for (x = 0; x < e; ++x)
|
|
4970
4961
|
b += this._circumference(x, o);
|
|
4971
4962
|
for (x = e; x < e + s; ++x) {
|
|
4972
|
-
const w = this._circumference(x, o),
|
|
4963
|
+
const w = this._circumference(x, o), y = t[x], M = {
|
|
4973
4964
|
x: h + this.offsetX,
|
|
4974
4965
|
y: d + this.offsetY,
|
|
4975
4966
|
startAngle: b,
|
|
@@ -4978,7 +4969,7 @@ class Kt extends ft {
|
|
|
4978
4969
|
outerRadius: g,
|
|
4979
4970
|
innerRadius: f
|
|
4980
4971
|
};
|
|
4981
|
-
m && (
|
|
4972
|
+
m && (M.options = p || this.resolveDataElementOptions(x, y.active ? "active" : n)), b += w, this.updateElement(y, x, M, n);
|
|
4982
4973
|
}
|
|
4983
4974
|
}
|
|
4984
4975
|
calculateTotal() {
|
|
@@ -5039,7 +5030,7 @@ class Kt extends ft {
|
|
|
5039
5030
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
5040
5031
|
}
|
|
5041
5032
|
}
|
|
5042
|
-
v(
|
|
5033
|
+
v(Qt, "id", "doughnut"), v(Qt, "defaults", {
|
|
5043
5034
|
datasetElementType: !1,
|
|
5044
5035
|
dataElementType: "arc",
|
|
5045
5036
|
animation: {
|
|
@@ -5069,10 +5060,10 @@ v(Kt, "id", "doughnut"), v(Kt, "defaults", {
|
|
|
5069
5060
|
radius: "100%",
|
|
5070
5061
|
spacing: 0,
|
|
5071
5062
|
indexAxis: "r"
|
|
5072
|
-
}), v(
|
|
5063
|
+
}), v(Qt, "descriptors", {
|
|
5073
5064
|
_scriptable: (t) => t !== "spacing",
|
|
5074
5065
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
5075
|
-
}), v(
|
|
5066
|
+
}), v(Qt, "overrides", {
|
|
5076
5067
|
aspectRatio: 1,
|
|
5077
5068
|
plugins: {
|
|
5078
5069
|
legend: {
|
|
@@ -5120,15 +5111,15 @@ class xi extends ft {
|
|
|
5120
5111
|
}
|
|
5121
5112
|
updateElements(t, e, s, n) {
|
|
5122
5113
|
const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: h, includeOptions: d } = this._getSharedOptions(e, n), u = a.axis, f = r.axis, { spanGaps: g, segment: p } = this.options, m = ge(g) ? g : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || n === "none", x = e + s, w = t.length;
|
|
5123
|
-
let
|
|
5124
|
-
for (let
|
|
5125
|
-
const I = t[
|
|
5126
|
-
if (
|
|
5114
|
+
let y = e > 0 && this.getParsed(e - 1);
|
|
5115
|
+
for (let M = 0; M < w; ++M) {
|
|
5116
|
+
const I = t[M], A = b ? I : {};
|
|
5117
|
+
if (M < e || M >= x) {
|
|
5127
5118
|
A.skip = !0;
|
|
5128
5119
|
continue;
|
|
5129
5120
|
}
|
|
5130
|
-
const T = this.getParsed(
|
|
5131
|
-
A.skip = isNaN(S) || isNaN(C) || L, A.stop =
|
|
5121
|
+
const T = this.getParsed(M), L = P(T[f]), S = A[u] = a.getPixelForValue(T[u], M), C = A[f] = o || L ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, T, l) : T[f], M);
|
|
5122
|
+
A.skip = isNaN(S) || isNaN(C) || L, A.stop = M > 0 && Math.abs(T[u] - y[u]) > m, p && (A.parsed = T, A.raw = c.data[M]), d && (A.options = h || this.resolveDataElementOptions(M, I.active ? "active" : n)), b || this.updateElement(I, M, A, n), y = T;
|
|
5132
5123
|
}
|
|
5133
5124
|
}
|
|
5134
5125
|
getMaxOverflow() {
|
|
@@ -5200,7 +5191,7 @@ class Re extends ft {
|
|
|
5200
5191
|
const m = t[g];
|
|
5201
5192
|
let b = f, x = f + this._computeAngle(g, n, p), w = a.getDataVisibility(g) ? c.getDistanceFromCenterForValue(this.getParsed(g).r) : 0;
|
|
5202
5193
|
f = x, o && (l.animateScale && (w = 0), l.animateRotate && (b = x = u));
|
|
5203
|
-
const
|
|
5194
|
+
const y = {
|
|
5204
5195
|
x: h,
|
|
5205
5196
|
y: d,
|
|
5206
5197
|
innerRadius: 0,
|
|
@@ -5209,7 +5200,7 @@ class Re extends ft {
|
|
|
5209
5200
|
endAngle: x,
|
|
5210
5201
|
options: this.resolveDataElementOptions(g, m.active ? "active" : n)
|
|
5211
5202
|
};
|
|
5212
|
-
this.updateElement(m, g,
|
|
5203
|
+
this.updateElement(m, g, y, n);
|
|
5213
5204
|
}
|
|
5214
5205
|
}
|
|
5215
5206
|
countVisibleElements() {
|
|
@@ -5292,7 +5283,7 @@ v(Re, "id", "polarArea"), v(Re, "defaults", {
|
|
|
5292
5283
|
}
|
|
5293
5284
|
}
|
|
5294
5285
|
});
|
|
5295
|
-
class os extends
|
|
5286
|
+
class os extends Qt {
|
|
5296
5287
|
}
|
|
5297
5288
|
v(os, "id", "pie"), v(os, "defaults", {
|
|
5298
5289
|
cutout: 0,
|
|
@@ -5300,7 +5291,7 @@ v(os, "id", "pie"), v(os, "defaults", {
|
|
|
5300
5291
|
circumference: 360,
|
|
5301
5292
|
radius: "100%"
|
|
5302
5293
|
});
|
|
5303
|
-
class
|
|
5294
|
+
class Mi extends ft {
|
|
5304
5295
|
getLabelAndValue(t) {
|
|
5305
5296
|
const e = this._cachedMeta.vScale, s = this.getParsed(t);
|
|
5306
5297
|
return {
|
|
@@ -5339,7 +5330,7 @@ class yi extends ft {
|
|
|
5339
5330
|
}
|
|
5340
5331
|
}
|
|
5341
5332
|
}
|
|
5342
|
-
v(
|
|
5333
|
+
v(Mi, "id", "radar"), v(Mi, "defaults", {
|
|
5343
5334
|
datasetElementType: "line",
|
|
5344
5335
|
dataElementType: "point",
|
|
5345
5336
|
indexAxis: "r",
|
|
@@ -5349,7 +5340,7 @@ v(yi, "id", "radar"), v(yi, "defaults", {
|
|
|
5349
5340
|
fill: "start"
|
|
5350
5341
|
}
|
|
5351
5342
|
}
|
|
5352
|
-
}), v(
|
|
5343
|
+
}), v(Mi, "overrides", {
|
|
5353
5344
|
aspectRatio: 1,
|
|
5354
5345
|
scales: {
|
|
5355
5346
|
r: {
|
|
@@ -5357,7 +5348,7 @@ v(yi, "id", "radar"), v(yi, "defaults", {
|
|
|
5357
5348
|
}
|
|
5358
5349
|
}
|
|
5359
5350
|
});
|
|
5360
|
-
class
|
|
5351
|
+
class yi extends ft {
|
|
5361
5352
|
getLabelAndValue(t) {
|
|
5362
5353
|
const e = this._cachedMeta, s = this.chart.data.labels || [], { xScale: n, yScale: o } = e, a = this.getParsed(t), r = n.getLabelForValue(a.x), l = o.getLabelForValue(a.y);
|
|
5363
5354
|
return {
|
|
@@ -5388,9 +5379,9 @@ class Mi extends ft {
|
|
|
5388
5379
|
updateElements(t, e, s, n) {
|
|
5389
5380
|
const o = n === "reset", { iScale: a, vScale: r, _stacked: l, _dataset: c } = this._cachedMeta, h = this.resolveDataElementOptions(e, n), d = this.getSharedOptions(h), u = this.includeOptions(n, d), f = a.axis, g = r.axis, { spanGaps: p, segment: m } = this.options, b = ge(p) ? p : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || o || n === "none";
|
|
5390
5381
|
let w = e > 0 && this.getParsed(e - 1);
|
|
5391
|
-
for (let
|
|
5392
|
-
const
|
|
5393
|
-
A.skip = isNaN(L) || isNaN(S) || T, A.stop =
|
|
5382
|
+
for (let y = e; y < e + s; ++y) {
|
|
5383
|
+
const M = t[y], I = this.getParsed(y), A = x ? M : {}, T = P(I[g]), L = A[f] = a.getPixelForValue(I[f], y), S = A[g] = o || T ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, I, l) : I[g], y);
|
|
5384
|
+
A.skip = isNaN(L) || isNaN(S) || T, A.stop = y > 0 && Math.abs(I[f] - w[f]) > b, m && (A.parsed = I, A.raw = c.data[y]), u && (A.options = d || this.resolveDataElementOptions(y, M.active ? "active" : n)), x || this.updateElement(M, y, A, n), w = I;
|
|
5394
5385
|
}
|
|
5395
5386
|
this.updateSharedOptions(d, n, h);
|
|
5396
5387
|
}
|
|
@@ -5409,12 +5400,12 @@ class Mi extends ft {
|
|
|
5409
5400
|
return Math.max(n, o, a) / 2;
|
|
5410
5401
|
}
|
|
5411
5402
|
}
|
|
5412
|
-
v(
|
|
5403
|
+
v(yi, "id", "scatter"), v(yi, "defaults", {
|
|
5413
5404
|
datasetElementType: !1,
|
|
5414
5405
|
dataElementType: "point",
|
|
5415
5406
|
showLine: !1,
|
|
5416
5407
|
fill: !1
|
|
5417
|
-
}), v(
|
|
5408
|
+
}), v(yi, "overrides", {
|
|
5418
5409
|
interaction: {
|
|
5419
5410
|
mode: "point"
|
|
5420
5411
|
},
|
|
@@ -5431,14 +5422,14 @@ var ah = /* @__PURE__ */ Object.freeze({
|
|
|
5431
5422
|
__proto__: null,
|
|
5432
5423
|
BarController: mi,
|
|
5433
5424
|
BubbleController: bi,
|
|
5434
|
-
DoughnutController:
|
|
5425
|
+
DoughnutController: Qt,
|
|
5435
5426
|
LineController: xi,
|
|
5436
5427
|
PieController: os,
|
|
5437
5428
|
PolarAreaController: Re,
|
|
5438
|
-
RadarController:
|
|
5439
|
-
ScatterController:
|
|
5429
|
+
RadarController: Mi,
|
|
5430
|
+
ScatterController: yi
|
|
5440
5431
|
});
|
|
5441
|
-
function
|
|
5432
|
+
function Yt() {
|
|
5442
5433
|
throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
|
|
5443
5434
|
}
|
|
5444
5435
|
class Cs {
|
|
@@ -5463,25 +5454,25 @@ class Cs {
|
|
|
5463
5454
|
init() {
|
|
5464
5455
|
}
|
|
5465
5456
|
formats() {
|
|
5466
|
-
return
|
|
5457
|
+
return Yt();
|
|
5467
5458
|
}
|
|
5468
5459
|
parse() {
|
|
5469
|
-
return
|
|
5460
|
+
return Yt();
|
|
5470
5461
|
}
|
|
5471
5462
|
format() {
|
|
5472
|
-
return
|
|
5463
|
+
return Yt();
|
|
5473
5464
|
}
|
|
5474
5465
|
add() {
|
|
5475
|
-
return
|
|
5466
|
+
return Yt();
|
|
5476
5467
|
}
|
|
5477
5468
|
diff() {
|
|
5478
|
-
return
|
|
5469
|
+
return Yt();
|
|
5479
5470
|
}
|
|
5480
5471
|
startOf() {
|
|
5481
|
-
return
|
|
5472
|
+
return Yt();
|
|
5482
5473
|
}
|
|
5483
5474
|
endOf() {
|
|
5484
|
-
return
|
|
5475
|
+
return Yt();
|
|
5485
5476
|
}
|
|
5486
5477
|
}
|
|
5487
5478
|
var rh = {
|
|
@@ -5490,7 +5481,7 @@ var rh = {
|
|
|
5490
5481
|
function lh(i, t, e, s) {
|
|
5491
5482
|
const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
|
|
5492
5483
|
if (r && t === r.axis && t !== "r" && a && o.length) {
|
|
5493
|
-
const l = r._reversePixels ? Sl :
|
|
5484
|
+
const l = r._reversePixels ? Sl : zt;
|
|
5494
5485
|
if (s) {
|
|
5495
5486
|
if (n._sharedOptions) {
|
|
5496
5487
|
const c = o[0], h = typeof c.getRange == "function" && c.getRange(t);
|
|
@@ -5530,7 +5521,7 @@ function ch(i) {
|
|
|
5530
5521
|
function Ki(i, t, e, s, n) {
|
|
5531
5522
|
const o = [];
|
|
5532
5523
|
return !n && !i.isPointInArea(t) || ti(i, e, t, function(r, l, c) {
|
|
5533
|
-
!n && !
|
|
5524
|
+
!n && !kt(r, i.chartArea, 0) || r.inRange(t.x, t.y, s) && o.push({
|
|
5534
5525
|
element: r,
|
|
5535
5526
|
datasetIndex: l,
|
|
5536
5527
|
index: c
|
|
@@ -5599,7 +5590,7 @@ var uh = {
|
|
|
5599
5590
|
evaluateInteractionItems: ti,
|
|
5600
5591
|
modes: {
|
|
5601
5592
|
index(i, t, e, s) {
|
|
5602
|
-
const n =
|
|
5593
|
+
const n = Xt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Ki(i, n, o, s, a) : Qi(i, n, o, !1, s, a), l = [];
|
|
5603
5594
|
return r.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
5604
5595
|
const h = r[0].index, d = c.data[h];
|
|
5605
5596
|
d && !d.skip && l.push({
|
|
@@ -5610,7 +5601,7 @@ var uh = {
|
|
|
5610
5601
|
}), l) : [];
|
|
5611
5602
|
},
|
|
5612
5603
|
dataset(i, t, e, s) {
|
|
5613
|
-
const n =
|
|
5604
|
+
const n = Xt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
5614
5605
|
let r = e.intersect ? Ki(i, n, o, s, a) : Qi(i, n, o, !1, s, a);
|
|
5615
5606
|
if (r.length > 0) {
|
|
5616
5607
|
const l = r[0].datasetIndex, c = i.getDatasetMeta(l).data;
|
|
@@ -5625,19 +5616,19 @@ var uh = {
|
|
|
5625
5616
|
return r;
|
|
5626
5617
|
},
|
|
5627
5618
|
point(i, t, e, s) {
|
|
5628
|
-
const n =
|
|
5619
|
+
const n = Xt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
5629
5620
|
return Ki(i, n, o, s, a);
|
|
5630
5621
|
},
|
|
5631
5622
|
nearest(i, t, e, s) {
|
|
5632
|
-
const n =
|
|
5623
|
+
const n = Xt(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
5633
5624
|
return Qi(i, n, o, e.intersect, s, a);
|
|
5634
5625
|
},
|
|
5635
5626
|
x(i, t, e, s) {
|
|
5636
|
-
const n =
|
|
5627
|
+
const n = Xt(t, i);
|
|
5637
5628
|
return xn(i, n, "x", e.intersect, s);
|
|
5638
5629
|
},
|
|
5639
5630
|
y(i, t, e, s) {
|
|
5640
|
-
const n =
|
|
5631
|
+
const n = Xt(t, i);
|
|
5641
5632
|
return xn(i, n, "y", e.intersect, s);
|
|
5642
5633
|
}
|
|
5643
5634
|
}
|
|
@@ -5651,7 +5642,7 @@ const qo = [
|
|
|
5651
5642
|
function Ae(i, t) {
|
|
5652
5643
|
return i.filter((e) => e.pos === t);
|
|
5653
5644
|
}
|
|
5654
|
-
function
|
|
5645
|
+
function Mn(i, t) {
|
|
5655
5646
|
return i.filter((e) => qo.indexOf(e.pos) === -1 && e.box.axis === t);
|
|
5656
5647
|
}
|
|
5657
5648
|
function Te(i, t) {
|
|
@@ -5702,7 +5693,7 @@ function ph(i, t) {
|
|
|
5702
5693
|
return e;
|
|
5703
5694
|
}
|
|
5704
5695
|
function mh(i) {
|
|
5705
|
-
const t = fh(i), e = Te(t.filter((c) => c.box.fullSize), !0), s = Te(Ae(t, "left"), !0), n = Te(Ae(t, "right")), o = Te(Ae(t, "top"), !0), a = Te(Ae(t, "bottom")), r =
|
|
5696
|
+
const t = fh(i), e = Te(t.filter((c) => c.box.fullSize), !0), s = Te(Ae(t, "left"), !0), n = Te(Ae(t, "right")), o = Te(Ae(t, "top"), !0), a = Te(Ae(t, "bottom")), r = Mn(t, "x"), l = Mn(t, "y");
|
|
5706
5697
|
return {
|
|
5707
5698
|
fullSize: e,
|
|
5708
5699
|
leftAndTop: s.concat(o),
|
|
@@ -5712,7 +5703,7 @@ function mh(i) {
|
|
|
5712
5703
|
horizontal: o.concat(a).concat(r)
|
|
5713
5704
|
};
|
|
5714
5705
|
}
|
|
5715
|
-
function
|
|
5706
|
+
function yn(i, t, e, s) {
|
|
5716
5707
|
return Math.max(i[e], t[e]) + Math.max(i[s], t[s]);
|
|
5717
5708
|
}
|
|
5718
5709
|
function _o(i, t) {
|
|
@@ -5729,7 +5720,7 @@ function bh(i, t, e, s) {
|
|
|
5729
5720
|
d.size = Math.max(d.size, e.horizontal ? o.height : o.width), e.size = d.size / d.count, i[n] += e.size;
|
|
5730
5721
|
}
|
|
5731
5722
|
o.getPadding && _o(a, o.getPadding());
|
|
5732
|
-
const r = Math.max(0, t.outerWidth -
|
|
5723
|
+
const r = Math.max(0, t.outerWidth - yn(a, i, "left", "right")), l = Math.max(0, t.outerHeight - yn(a, i, "top", "bottom")), c = r !== i.w, h = l !== i.h;
|
|
5733
5724
|
return i.w = r, i.h = l, e.horizontal ? {
|
|
5734
5725
|
same: c,
|
|
5735
5726
|
other: h
|
|
@@ -5746,7 +5737,7 @@ function xh(i) {
|
|
|
5746
5737
|
}
|
|
5747
5738
|
i.y += e("top"), i.x += e("left"), e("right"), e("bottom");
|
|
5748
5739
|
}
|
|
5749
|
-
function
|
|
5740
|
+
function Mh(i, t) {
|
|
5750
5741
|
const e = t.maxPadding;
|
|
5751
5742
|
function s(n) {
|
|
5752
5743
|
const o = {
|
|
@@ -5771,7 +5762,7 @@ function Ne(i, t, e, s) {
|
|
|
5771
5762
|
const n = [];
|
|
5772
5763
|
let o, a, r, l, c, h;
|
|
5773
5764
|
for (o = 0, a = i.length, c = 0; o < a; ++o) {
|
|
5774
|
-
r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h,
|
|
5765
|
+
r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h, Mh(r.horizontal, t));
|
|
5775
5766
|
const { same: d, other: u } = bh(t, e, r, s);
|
|
5776
5767
|
c |= d && n.length, h = h || u, l.fullSize || n.push(r);
|
|
5777
5768
|
}
|
|
@@ -5886,7 +5877,7 @@ class $o {
|
|
|
5886
5877
|
updateConfig(t) {
|
|
5887
5878
|
}
|
|
5888
5879
|
}
|
|
5889
|
-
class
|
|
5880
|
+
class yh extends $o {
|
|
5890
5881
|
acquireContext(t) {
|
|
5891
5882
|
return t && t.getContext && t.getContext("2d") || null;
|
|
5892
5883
|
}
|
|
@@ -5940,7 +5931,7 @@ function Ah(i, t, e) {
|
|
|
5940
5931
|
i.canvas.removeEventListener(t, e, ta);
|
|
5941
5932
|
}
|
|
5942
5933
|
function Th(i, t) {
|
|
5943
|
-
const e = wh[i.type] || i.type, { x: s, y: n } =
|
|
5934
|
+
const e = wh[i.type] || i.type, { x: s, y: n } = Xt(i, t);
|
|
5944
5935
|
return {
|
|
5945
5936
|
type: e,
|
|
5946
5937
|
chart: t,
|
|
@@ -6067,7 +6058,7 @@ class Ch extends $o {
|
|
|
6067
6058
|
}
|
|
6068
6059
|
}
|
|
6069
6060
|
function Oh(i) {
|
|
6070
|
-
return !Zo() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ?
|
|
6061
|
+
return !Zo() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? yh : Ch;
|
|
6071
6062
|
}
|
|
6072
6063
|
class pt {
|
|
6073
6064
|
constructor() {
|
|
@@ -6238,7 +6229,7 @@ function Gh(i, t, e, s) {
|
|
|
6238
6229
|
rotation: d
|
|
6239
6230
|
};
|
|
6240
6231
|
}
|
|
6241
|
-
class
|
|
6232
|
+
class oe extends pt {
|
|
6242
6233
|
constructor(t) {
|
|
6243
6234
|
super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
|
|
6244
6235
|
left: 0,
|
|
@@ -6470,17 +6461,17 @@ class ne extends pt {
|
|
|
6470
6461
|
}
|
|
6471
6462
|
_computeLabelSizes(t, e, s) {
|
|
6472
6463
|
const { ctx: n, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / Tn(e, s));
|
|
6473
|
-
let c = 0, h = 0, d, u, f, g, p, m, b, x, w,
|
|
6464
|
+
let c = 0, h = 0, d, u, f, g, p, m, b, x, w, y, M;
|
|
6474
6465
|
for (d = 0; d < e; d += l) {
|
|
6475
6466
|
if (g = t[d].label, p = this._resolveTickFontOptions(d), n.font = m = p.string, b = o[m] = o[m] || {
|
|
6476
6467
|
data: {},
|
|
6477
6468
|
gc: []
|
|
6478
|
-
}, x = p.lineHeight, w =
|
|
6479
|
-
w = ki(n, b.data, b.gc, w, g),
|
|
6469
|
+
}, x = p.lineHeight, w = y = 0, !P(g) && !B(g))
|
|
6470
|
+
w = ki(n, b.data, b.gc, w, g), y = x;
|
|
6480
6471
|
else if (B(g))
|
|
6481
6472
|
for (u = 0, f = g.length; u < f; ++u)
|
|
6482
|
-
|
|
6483
|
-
a.push(w), r.push(
|
|
6473
|
+
M = g[u], !P(M) && !B(M) && (w = ki(n, b.data, b.gc, w, M), y += x);
|
|
6474
|
+
a.push(w), r.push(y), c = Math.max(w, c), h = Math.max(y, h);
|
|
6484
6475
|
}
|
|
6485
6476
|
Zh(o, e);
|
|
6486
6477
|
const I = a.indexOf(c), A = r.indexOf(h), T = (L) => ({
|
|
@@ -6511,7 +6502,7 @@ class ne extends pt {
|
|
|
6511
6502
|
getPixelForDecimal(t) {
|
|
6512
6503
|
this._reversePixels && (t = 1 - t);
|
|
6513
6504
|
const e = this._startPixel + t * this._length;
|
|
6514
|
-
return Nl(this._alignToPixels ?
|
|
6505
|
+
return Nl(this._alignToPixels ? Ut(this.chart, e, 0) : e);
|
|
6515
6506
|
}
|
|
6516
6507
|
getDecimalForPixel(t) {
|
|
6517
6508
|
const e = (t - this._startPixel) / this._length;
|
|
@@ -6542,9 +6533,9 @@ class ne extends pt {
|
|
|
6542
6533
|
}
|
|
6543
6534
|
_computeGridLineItems(t) {
|
|
6544
6535
|
const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, l = o.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), u = De(o), f = [], g = r.setContext(this.getContext()), p = g.display ? g.width : 0, m = p / 2, b = function(Z) {
|
|
6545
|
-
return
|
|
6536
|
+
return Ut(s, Z, p);
|
|
6546
6537
|
};
|
|
6547
|
-
let x, w,
|
|
6538
|
+
let x, w, y, M, I, A, T, L, S, C, j, _;
|
|
6548
6539
|
if (a === "top")
|
|
6549
6540
|
x = b(this.bottom), A = this.bottom - u, L = x - m, C = b(t.top) + m, _ = t.bottom;
|
|
6550
6541
|
else if (a === "bottom")
|
|
@@ -6572,8 +6563,8 @@ class ne extends pt {
|
|
|
6572
6563
|
}
|
|
6573
6564
|
const rt = N(n.ticks.maxTicksLimit, d), V = Math.max(1, Math.ceil(d / rt));
|
|
6574
6565
|
for (w = 0; w < d; w += V) {
|
|
6575
|
-
const Z = this.getContext(w), Y = o.setContext(Z), dt = r.setContext(Z), tt = Y.lineWidth, ae = Y.color, ei = dt.dash || [], re = dt.dashOffset,
|
|
6576
|
-
|
|
6566
|
+
const Z = this.getContext(w), Y = o.setContext(Z), dt = r.setContext(Z), tt = Y.lineWidth, ae = Y.color, ei = dt.dash || [], re = dt.dashOffset, Me = Y.tickWidth, ye = Y.tickColor, we = Y.tickBorderDash || [], ve = Y.tickBorderDashOffset;
|
|
6567
|
+
y = Hh(this, w, l), y !== void 0 && (M = Ut(s, y, tt), c ? I = T = S = j = M : A = L = C = _ = M, f.push({
|
|
6577
6568
|
tx1: I,
|
|
6578
6569
|
ty1: A,
|
|
6579
6570
|
tx2: T,
|
|
@@ -6586,8 +6577,8 @@ class ne extends pt {
|
|
|
6586
6577
|
color: ae,
|
|
6587
6578
|
borderDash: ei,
|
|
6588
6579
|
borderDashOffset: re,
|
|
6589
|
-
tickWidth:
|
|
6590
|
-
tickColor:
|
|
6580
|
+
tickWidth: Me,
|
|
6581
|
+
tickColor: ye,
|
|
6591
6582
|
tickBorderDash: we,
|
|
6592
6583
|
tickBorderDashOffset: ve
|
|
6593
6584
|
}));
|
|
@@ -6596,17 +6587,17 @@ class ne extends pt {
|
|
|
6596
6587
|
}
|
|
6597
6588
|
_computeLabelItems(t) {
|
|
6598
6589
|
const e = this.axis, s = this.options, { position: n, ticks: o } = s, a = this.isHorizontal(), r = this.ticks, { align: l, crossAlign: c, padding: h, mirror: d } = o, u = De(s.grid), f = u + h, g = d ? -h : f, p = -ut(this.labelRotation), m = [];
|
|
6599
|
-
let b, x, w,
|
|
6590
|
+
let b, x, w, y, M, I, A, T, L, S, C, j, _ = "middle";
|
|
6600
6591
|
if (n === "top")
|
|
6601
6592
|
I = this.bottom - g, A = this._getXAxisLabelAlignment();
|
|
6602
6593
|
else if (n === "bottom")
|
|
6603
6594
|
I = this.top + g, A = this._getXAxisLabelAlignment();
|
|
6604
6595
|
else if (n === "left") {
|
|
6605
6596
|
const V = this._getYAxisLabelAlignment(u);
|
|
6606
|
-
A = V.textAlign,
|
|
6597
|
+
A = V.textAlign, M = V.x;
|
|
6607
6598
|
} else if (n === "right") {
|
|
6608
6599
|
const V = this._getYAxisLabelAlignment(u);
|
|
6609
|
-
A = V.textAlign,
|
|
6600
|
+
A = V.textAlign, M = V.x;
|
|
6610
6601
|
} else if (e === "x") {
|
|
6611
6602
|
if (n === "center")
|
|
6612
6603
|
I = (t.top + t.bottom) / 2 + f;
|
|
@@ -6617,52 +6608,52 @@ class ne extends pt {
|
|
|
6617
6608
|
A = this._getXAxisLabelAlignment();
|
|
6618
6609
|
} else if (e === "y") {
|
|
6619
6610
|
if (n === "center")
|
|
6620
|
-
|
|
6611
|
+
M = (t.left + t.right) / 2 - f;
|
|
6621
6612
|
else if (O(n)) {
|
|
6622
6613
|
const V = Object.keys(n)[0], Z = n[V];
|
|
6623
|
-
|
|
6614
|
+
M = this.chart.scales[V].getPixelForValue(Z);
|
|
6624
6615
|
}
|
|
6625
6616
|
A = this._getYAxisLabelAlignment(u).textAlign;
|
|
6626
6617
|
}
|
|
6627
6618
|
e === "y" && (l === "start" ? _ = "top" : l === "end" && (_ = "bottom"));
|
|
6628
6619
|
const rt = this._getLabelSizes();
|
|
6629
6620
|
for (b = 0, x = r.length; b < x; ++b) {
|
|
6630
|
-
w = r[b],
|
|
6621
|
+
w = r[b], y = w.label;
|
|
6631
6622
|
const V = o.setContext(this.getContext(b));
|
|
6632
|
-
T = this.getPixelForTick(b) + o.labelOffset, L = this._resolveTickFontOptions(b), S = L.lineHeight, C = B(
|
|
6623
|
+
T = this.getPixelForTick(b) + o.labelOffset, L = this._resolveTickFontOptions(b), S = L.lineHeight, C = B(y) ? y.length : 1;
|
|
6633
6624
|
const Z = C / 2, Y = V.color, dt = V.textStrokeColor, tt = V.textStrokeWidth;
|
|
6634
6625
|
let ae = A;
|
|
6635
|
-
a ? (
|
|
6626
|
+
a ? (M = T, A === "inner" && (b === x - 1 ? ae = this.options.reverse ? "left" : "right" : b === 0 ? ae = this.options.reverse ? "right" : "left" : ae = "center"), n === "top" ? c === "near" || p !== 0 ? j = -C * S + S / 2 : c === "center" ? j = -rt.highest.height / 2 - Z * S + S : j = -rt.highest.height + S / 2 : c === "near" || p !== 0 ? j = S / 2 : c === "center" ? j = rt.highest.height / 2 - Z * S : j = rt.highest.height - C * S, d && (j *= -1), p !== 0 && !V.showLabelBackdrop && (M += S / 2 * Math.sin(p))) : (I = T, j = (1 - C) * S / 2);
|
|
6636
6627
|
let ei;
|
|
6637
6628
|
if (V.showLabelBackdrop) {
|
|
6638
|
-
const re = st(V.backdropPadding),
|
|
6629
|
+
const re = st(V.backdropPadding), Me = rt.heights[b], ye = rt.widths[b];
|
|
6639
6630
|
let we = j - re.top, ve = 0 - re.left;
|
|
6640
6631
|
switch (_) {
|
|
6641
6632
|
case "middle":
|
|
6642
|
-
we -=
|
|
6633
|
+
we -= Me / 2;
|
|
6643
6634
|
break;
|
|
6644
6635
|
case "bottom":
|
|
6645
|
-
we -=
|
|
6636
|
+
we -= Me;
|
|
6646
6637
|
break;
|
|
6647
6638
|
}
|
|
6648
6639
|
switch (A) {
|
|
6649
6640
|
case "center":
|
|
6650
|
-
ve -=
|
|
6641
|
+
ve -= ye / 2;
|
|
6651
6642
|
break;
|
|
6652
6643
|
case "right":
|
|
6653
|
-
ve -=
|
|
6644
|
+
ve -= ye;
|
|
6654
6645
|
break;
|
|
6655
6646
|
}
|
|
6656
6647
|
ei = {
|
|
6657
6648
|
left: ve,
|
|
6658
6649
|
top: we,
|
|
6659
|
-
width:
|
|
6660
|
-
height:
|
|
6650
|
+
width: ye + re.width,
|
|
6651
|
+
height: Me + re.height,
|
|
6661
6652
|
color: V.backdropColor
|
|
6662
6653
|
};
|
|
6663
6654
|
}
|
|
6664
6655
|
m.push({
|
|
6665
|
-
label:
|
|
6656
|
+
label: y,
|
|
6666
6657
|
font: L,
|
|
6667
6658
|
textOffset: j,
|
|
6668
6659
|
options: {
|
|
@@ -6673,7 +6664,7 @@ class ne extends pt {
|
|
|
6673
6664
|
textAlign: ae,
|
|
6674
6665
|
textBaseline: _,
|
|
6675
6666
|
translation: [
|
|
6676
|
-
|
|
6667
|
+
M,
|
|
6677
6668
|
I
|
|
6678
6669
|
],
|
|
6679
6670
|
backdrop: ei
|
|
@@ -6762,7 +6753,7 @@ class ne extends pt {
|
|
|
6762
6753
|
return;
|
|
6763
6754
|
const r = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
|
|
6764
6755
|
let c, h, d, u;
|
|
6765
|
-
this.isHorizontal() ? (c =
|
|
6756
|
+
this.isHorizontal() ? (c = Ut(t, this.left, a) - a / 2, h = Ut(t, this.right, r) + r / 2, d = u = l) : (d = Ut(t, this.top, a) - a / 2, u = Ut(t, this.bottom, r) + r / 2, c = h = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, d), e.lineTo(h, u), e.stroke(), e.restore();
|
|
6766
6757
|
}
|
|
6767
6758
|
drawLabels(t) {
|
|
6768
6759
|
if (!this.options.ticks.display)
|
|
@@ -6772,7 +6763,7 @@ class ne extends pt {
|
|
|
6772
6763
|
const o = this.getLabelItems(t);
|
|
6773
6764
|
for (const a of o) {
|
|
6774
6765
|
const r = a.options, l = a.font, c = a.label, h = a.textOffset;
|
|
6775
|
-
|
|
6766
|
+
ee(s, c, 0, h, l, r);
|
|
6776
6767
|
}
|
|
6777
6768
|
n && Ei(s);
|
|
6778
6769
|
}
|
|
@@ -6784,7 +6775,7 @@ class ne extends pt {
|
|
|
6784
6775
|
let l = o.lineHeight / 2;
|
|
6785
6776
|
e === "bottom" || e === "center" || O(e) ? (l += a.bottom, B(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
|
|
6786
6777
|
const { titleX: c, titleY: h, maxWidth: d, rotation: u } = Gh(this, l, e, r);
|
|
6787
|
-
|
|
6778
|
+
ee(t, s.text, 0, 0, o, {
|
|
6788
6779
|
color: s.color,
|
|
6789
6780
|
maxWidth: d,
|
|
6790
6781
|
rotation: u,
|
|
@@ -6801,7 +6792,7 @@ class ne extends pt {
|
|
|
6801
6792
|
}
|
|
6802
6793
|
_layers() {
|
|
6803
6794
|
const t = this.options, e = t.ticks && t.ticks.z || 0, s = N(t.grid && t.grid.z, -1), n = N(t.border && t.border.z, 0);
|
|
6804
|
-
return !this._isVisible() || this.draw !==
|
|
6795
|
+
return !this._isVisible() || this.draw !== oe.prototype.draw ? [
|
|
6805
6796
|
{
|
|
6806
6797
|
z: e,
|
|
6807
6798
|
draw: (o) => {
|
|
@@ -6868,7 +6859,7 @@ class hi {
|
|
|
6868
6859
|
}
|
|
6869
6860
|
unregister(t) {
|
|
6870
6861
|
const e = this.items, s = t.id, n = this.scope;
|
|
6871
|
-
s in e && delete e[s], n && s in U[n] && (delete U[n][s], this.override && delete
|
|
6862
|
+
s in e && delete e[s], n && s in U[n] && (delete U[n][s], this.override && delete te[s]);
|
|
6872
6863
|
}
|
|
6873
6864
|
}
|
|
6874
6865
|
function Xh(i, t, e) {
|
|
@@ -6892,7 +6883,7 @@ function Qh(i) {
|
|
|
6892
6883
|
}
|
|
6893
6884
|
class Jh {
|
|
6894
6885
|
constructor() {
|
|
6895
|
-
this.controllers = new hi(ft, "datasets", !0), this.elements = new hi(pt, "elements"), this.plugins = new hi(Object, "plugins"), this.scales = new hi(
|
|
6886
|
+
this.controllers = new hi(ft, "datasets", !0), this.elements = new hi(pt, "elements"), this.plugins = new hi(Object, "plugins"), this.scales = new hi(oe, "scales"), this._typedRegistries = [
|
|
6896
6887
|
this.controllers,
|
|
6897
6888
|
this.scales,
|
|
6898
6889
|
this.elements
|
|
@@ -7098,7 +7089,7 @@ function od(i, t) {
|
|
|
7098
7089
|
return {};
|
|
7099
7090
|
}
|
|
7100
7091
|
function ad(i, t) {
|
|
7101
|
-
const e =
|
|
7092
|
+
const e = te[i.type] || {
|
|
7102
7093
|
scales: {}
|
|
7103
7094
|
}, s = t.scales || {}, n = as(i.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
7104
7095
|
return Object.keys(s).forEach((a) => {
|
|
@@ -7117,7 +7108,7 @@ function ad(i, t) {
|
|
|
7117
7108
|
h[c]
|
|
7118
7109
|
]);
|
|
7119
7110
|
}), i.data.datasets.forEach((a) => {
|
|
7120
|
-
const r = a.type || i.type, l = a.indexAxis || as(r, t), h = (
|
|
7111
|
+
const r = a.type || i.type, l = a.indexAxis || as(r, t), h = (te[r] || {}).scales || {};
|
|
7121
7112
|
Object.keys(h).forEach((d) => {
|
|
7122
7113
|
const u = id(d, l), f = a[u + "AxisID"] || u;
|
|
7123
7114
|
o[f] = o[f] || /* @__PURE__ */ Object.create(null), je(o[f], [
|
|
@@ -7240,7 +7231,7 @@ class ld {
|
|
|
7240
7231
|
return r;
|
|
7241
7232
|
const l = /* @__PURE__ */ new Set();
|
|
7242
7233
|
e.forEach((h) => {
|
|
7243
|
-
t && (l.add(t), h.forEach((d) => ze(l, t, d))), h.forEach((d) => ze(l, n, d)), h.forEach((d) => ze(l,
|
|
7234
|
+
t && (l.add(t), h.forEach((d) => ze(l, t, d))), h.forEach((d) => ze(l, n, d)), h.forEach((d) => ze(l, te[o] || {}, d)), h.forEach((d) => ze(l, U, d)), h.forEach((d) => ze(l, ss, d));
|
|
7244
7235
|
});
|
|
7245
7236
|
const c = Array.from(l);
|
|
7246
7237
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), na.has(e) && a.set(e, c), c;
|
|
@@ -7249,7 +7240,7 @@ class ld {
|
|
|
7249
7240
|
const { options: t, type: e } = this;
|
|
7250
7241
|
return [
|
|
7251
7242
|
t,
|
|
7252
|
-
|
|
7243
|
+
te[e] || {},
|
|
7253
7244
|
U.datasets[e] || {},
|
|
7254
7245
|
{
|
|
7255
7246
|
type: e
|
|
@@ -7361,7 +7352,7 @@ function md(i, t) {
|
|
|
7361
7352
|
bottom: ui(s, t, "bottom")
|
|
7362
7353
|
} : t;
|
|
7363
7354
|
}
|
|
7364
|
-
class
|
|
7355
|
+
class Tt {
|
|
7365
7356
|
static register(...t) {
|
|
7366
7357
|
bt.add(...t), En();
|
|
7367
7358
|
}
|
|
@@ -7379,7 +7370,7 @@ class At {
|
|
|
7379
7370
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
7380
7371
|
return;
|
|
7381
7372
|
}
|
|
7382
|
-
|
|
7373
|
+
vt.listen(this, "complete", jn), vt.listen(this, "progress", fd), this._initialize(), this.attached && this.update();
|
|
7383
7374
|
}
|
|
7384
7375
|
get aspectRatio() {
|
|
7385
7376
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
|
|
@@ -7407,10 +7398,10 @@ class At {
|
|
|
7407
7398
|
return $s(this.canvas, this.ctx), this;
|
|
7408
7399
|
}
|
|
7409
7400
|
stop() {
|
|
7410
|
-
return
|
|
7401
|
+
return vt.stop(this), this;
|
|
7411
7402
|
}
|
|
7412
7403
|
resize(t, e) {
|
|
7413
|
-
|
|
7404
|
+
vt.running(this) ? this._resizeBeforeDraw = {
|
|
7414
7405
|
width: t,
|
|
7415
7406
|
height: e
|
|
7416
7407
|
} : this._resize(t, e);
|
|
@@ -7600,7 +7591,7 @@ class At {
|
|
|
7600
7591
|
render() {
|
|
7601
7592
|
this.notifyPlugins("beforeRender", {
|
|
7602
7593
|
cancelable: !0
|
|
7603
|
-
}) !== !1 && (
|
|
7594
|
+
}) !== !1 && (vt.has(this) ? this.attached && !vt.running(this) && vt.start(this) : (this.draw(), jn({
|
|
7604
7595
|
chart: this
|
|
7605
7596
|
})));
|
|
7606
7597
|
}
|
|
@@ -7657,7 +7648,7 @@ class At {
|
|
|
7657
7648
|
}), t.controller.draw(), n && Ei(e), a.cancelable = !1, this.notifyPlugins("afterDatasetDraw", a));
|
|
7658
7649
|
}
|
|
7659
7650
|
isPointInArea(t) {
|
|
7660
|
-
return
|
|
7651
|
+
return kt(t, this.chartArea, this._minPadding);
|
|
7661
7652
|
}
|
|
7662
7653
|
getElementsAtEventForMode(t, e, s, n) {
|
|
7663
7654
|
const o = uh.modes[e];
|
|
@@ -7725,7 +7716,7 @@ class At {
|
|
|
7725
7716
|
}
|
|
7726
7717
|
_stop() {
|
|
7727
7718
|
let t, e;
|
|
7728
|
-
for (this.stop(),
|
|
7719
|
+
for (this.stop(), vt.remove(this), t = 0, e = this.data.datasets.length; t < e; ++t)
|
|
7729
7720
|
this._destroyDatasetMeta(t);
|
|
7730
7721
|
}
|
|
7731
7722
|
destroy() {
|
|
@@ -7841,9 +7832,9 @@ class At {
|
|
|
7841
7832
|
return this.getElementsAtEventForMode(t, o.mode, o, n);
|
|
7842
7833
|
}
|
|
7843
7834
|
}
|
|
7844
|
-
v(
|
|
7835
|
+
v(Tt, "defaults", U), v(Tt, "instances", vi), v(Tt, "overrides", te), v(Tt, "registry", bt), v(Tt, "version", dd), v(Tt, "getChart", Pn);
|
|
7845
7836
|
function En() {
|
|
7846
|
-
return E(
|
|
7837
|
+
return E(Tt.instances, (i) => i._plugins.invalidate());
|
|
7847
7838
|
}
|
|
7848
7839
|
function bd(i, t, e) {
|
|
7849
7840
|
const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: l } = t;
|
|
@@ -7858,7 +7849,7 @@ function xd(i) {
|
|
|
7858
7849
|
"innerEnd"
|
|
7859
7850
|
]);
|
|
7860
7851
|
}
|
|
7861
|
-
function
|
|
7852
|
+
function Md(i, t, e, s) {
|
|
7862
7853
|
const n = xd(i.options.borderRadius), o = (e - t) / 2, a = Math.min(o, s * t / 2), r = (l) => {
|
|
7863
7854
|
const c = (e - Math.min(o, l)) * s / 2;
|
|
7864
7855
|
return Q(l, 0, Math.min(o, c));
|
|
@@ -7884,22 +7875,22 @@ function Si(i, t, e, s, n, o) {
|
|
|
7884
7875
|
const V = h > 0 ? h - s : 0, Z = d > 0 ? d - s : 0, Y = (V + Z) / 2, dt = Y !== 0 ? g * Y / (Y + s) : g;
|
|
7885
7876
|
f = (g - dt) / 2;
|
|
7886
7877
|
}
|
|
7887
|
-
const p = Math.max(1e-3, g * d - e / H) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart: w, outerEnd:
|
|
7878
|
+
const p = Math.max(1e-3, g * d - e / H) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart: w, outerEnd: y, innerStart: M, innerEnd: I } = Md(t, u, d, x - b), A = d - w, T = d - y, L = b + w / A, S = x - y / T, C = u + M, j = u + I, _ = b + M / C, rt = x - I / j;
|
|
7888
7879
|
if (i.beginPath(), o) {
|
|
7889
7880
|
const V = (L + S) / 2;
|
|
7890
|
-
if (i.arc(a, r, d, L, V), i.arc(a, r, d, V, S),
|
|
7881
|
+
if (i.arc(a, r, d, L, V), i.arc(a, r, d, V, S), y > 0) {
|
|
7891
7882
|
const tt = ce(T, S, a, r);
|
|
7892
|
-
i.arc(tt.x, tt.y,
|
|
7883
|
+
i.arc(tt.x, tt.y, y, S, x + G);
|
|
7893
7884
|
}
|
|
7894
7885
|
const Z = ce(j, x, a, r);
|
|
7895
7886
|
if (i.lineTo(Z.x, Z.y), I > 0) {
|
|
7896
7887
|
const tt = ce(j, rt, a, r);
|
|
7897
7888
|
i.arc(tt.x, tt.y, I, x + G, rt + Math.PI);
|
|
7898
7889
|
}
|
|
7899
|
-
const Y = (x - I / u + (b +
|
|
7900
|
-
if (i.arc(a, r, u, x - I / u, Y, !0), i.arc(a, r, u, Y, b +
|
|
7890
|
+
const Y = (x - I / u + (b + M / u)) / 2;
|
|
7891
|
+
if (i.arc(a, r, u, x - I / u, Y, !0), i.arc(a, r, u, Y, b + M / u, !0), M > 0) {
|
|
7901
7892
|
const tt = ce(C, _, a, r);
|
|
7902
|
-
i.arc(tt.x, tt.y,
|
|
7893
|
+
i.arc(tt.x, tt.y, M, _ + Math.PI, b - G);
|
|
7903
7894
|
}
|
|
7904
7895
|
const dt = ce(A, b, a, r);
|
|
7905
7896
|
if (i.lineTo(dt.x, dt.y), w > 0) {
|
|
@@ -7915,7 +7906,7 @@ function Si(i, t, e, s, n, o) {
|
|
|
7915
7906
|
}
|
|
7916
7907
|
i.closePath();
|
|
7917
7908
|
}
|
|
7918
|
-
function
|
|
7909
|
+
function yd(i, t, e, s, n) {
|
|
7919
7910
|
const { fullCircles: o, startAngle: a, circumference: r } = t;
|
|
7920
7911
|
let l = t.endAngle;
|
|
7921
7912
|
if (o) {
|
|
@@ -7965,7 +7956,7 @@ class Se extends pt {
|
|
|
7965
7956
|
"innerRadius",
|
|
7966
7957
|
"outerRadius",
|
|
7967
7958
|
"circumference"
|
|
7968
|
-
], n), f = (this.options.spacing + this.options.borderWidth) / 2, p = N(u, c - l) >= W || Ue(a, l, c), m =
|
|
7959
|
+
], n), f = (this.options.spacing + this.options.borderWidth) / 2, p = N(u, c - l) >= W || Ue(a, l, c), m = Dt(r, h + f, d + f);
|
|
7969
7960
|
return p && m;
|
|
7970
7961
|
}
|
|
7971
7962
|
getCenterPoint(e) {
|
|
@@ -7993,7 +7984,7 @@ class Se extends pt {
|
|
|
7993
7984
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
7994
7985
|
e.translate(Math.cos(l) * o, Math.sin(l) * o);
|
|
7995
7986
|
const c = 1 - Math.sin(Math.min(H, n || 0)), h = o * c;
|
|
7996
|
-
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor,
|
|
7987
|
+
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, yd(e, this, h, a, r), wd(e, this, h, a, r), e.restore();
|
|
7997
7988
|
}
|
|
7998
7989
|
}
|
|
7999
7990
|
v(Se, "id", "arc"), v(Se, "defaults", {
|
|
@@ -8042,14 +8033,14 @@ function Ad(i, t, e, s) {
|
|
|
8042
8033
|
function Td(i, t, e, s) {
|
|
8043
8034
|
const n = t.points, { count: o, start: a, ilen: r } = ra(n, e, s), { move: l = !0, reverse: c } = s || {};
|
|
8044
8035
|
let h = 0, d = 0, u, f, g, p, m, b;
|
|
8045
|
-
const x = (
|
|
8036
|
+
const x = (y) => (a + (c ? r - y : y)) % o, w = () => {
|
|
8046
8037
|
p !== m && (i.lineTo(h, m), i.lineTo(h, p), i.lineTo(h, b));
|
|
8047
8038
|
};
|
|
8048
8039
|
for (l && (f = n[x(0)], i.moveTo(f.x, f.y)), u = 0; u <= r; ++u) {
|
|
8049
8040
|
if (f = n[x(u)], f.skip)
|
|
8050
8041
|
continue;
|
|
8051
|
-
const
|
|
8052
|
-
I === g ? (
|
|
8042
|
+
const y = f.x, M = f.y, I = y | 0;
|
|
8043
|
+
I === g ? (M < p ? p = M : M > m && (m = M), h = (d * h + y) / ++d) : (w(), i.lineTo(y, M), g = I, d = 0, p = m = M), b = M;
|
|
8053
8044
|
}
|
|
8054
8045
|
w();
|
|
8055
8046
|
}
|
|
@@ -8058,7 +8049,7 @@ function ls(i) {
|
|
|
8058
8049
|
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? Td : Ad;
|
|
8059
8050
|
}
|
|
8060
8051
|
function Dd(i) {
|
|
8061
|
-
return i.stepped ? Tc : i.tension || i.cubicInterpolationMode === "monotone" ? Dc :
|
|
8052
|
+
return i.stepped ? Tc : i.tension || i.cubicInterpolationMode === "monotone" ? Dc : Kt;
|
|
8062
8053
|
}
|
|
8063
8054
|
function zd(i, t, e, s) {
|
|
8064
8055
|
let n = t._path;
|
|
@@ -8209,7 +8200,7 @@ class Ii extends pt {
|
|
|
8209
8200
|
}
|
|
8210
8201
|
draw(e, s) {
|
|
8211
8202
|
const n = this.options;
|
|
8212
|
-
this.skip || n.radius < 0.1 || !
|
|
8203
|
+
this.skip || n.radius < 0.1 || !kt(this, s, this.size(n) / 2) || (e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.fillStyle = n.backgroundColor, ns(e, n, this.x, this.y));
|
|
8213
8204
|
}
|
|
8214
8205
|
getRange() {
|
|
8215
8206
|
const e = this.options || {};
|
|
@@ -8265,7 +8256,7 @@ function Sd(i, t, e) {
|
|
|
8265
8256
|
function Cd(i, t, e) {
|
|
8266
8257
|
const { enableBorderRadius: s } = i.getProps([
|
|
8267
8258
|
"enableBorderRadius"
|
|
8268
|
-
]), n = i.options.borderRadius, o =
|
|
8259
|
+
]), n = i.options.borderRadius, o = Jt(n), a = Math.min(t, e), r = i.borderSkipped, l = s || O(n);
|
|
8269
8260
|
return {
|
|
8270
8261
|
topLeft: jt(!l || r.top || r.left, o.topLeft, 0, a),
|
|
8271
8262
|
topRight: jt(!l || r.top || r.right, o.topRight, 0, a),
|
|
@@ -8299,7 +8290,7 @@ function Od(i) {
|
|
|
8299
8290
|
}
|
|
8300
8291
|
function qi(i, t, e, s) {
|
|
8301
8292
|
const n = t === null, o = e === null, r = i && !(n && o) && la(i, s);
|
|
8302
|
-
return r && (n ||
|
|
8293
|
+
return r && (n || Dt(t, r.left, r.right)) && (o || Dt(e, r.top, r.bottom));
|
|
8303
8294
|
}
|
|
8304
8295
|
function jd(i) {
|
|
8305
8296
|
return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight;
|
|
@@ -8396,7 +8387,7 @@ function Wd(i) {
|
|
|
8396
8387
|
let t = 0;
|
|
8397
8388
|
return (e, s) => {
|
|
8398
8389
|
const n = i.getDatasetMeta(s).controller;
|
|
8399
|
-
n instanceof
|
|
8390
|
+
n instanceof Qt ? t = Rd(e, t) : n instanceof Re ? t = Bd(e, t) : n && (t = Vd(e, t));
|
|
8400
8391
|
};
|
|
8401
8392
|
}
|
|
8402
8393
|
function Bn(i) {
|
|
@@ -8435,10 +8426,10 @@ function Fd(i, t, e, s, n) {
|
|
|
8435
8426
|
let h = t, d, u, f, g, p;
|
|
8436
8427
|
for (a[l++] = i[h], d = 0; d < o - 2; d++) {
|
|
8437
8428
|
let m = 0, b = 0, x;
|
|
8438
|
-
const w = Math.floor((d + 1) * r) + 1 + t,
|
|
8439
|
-
for (x = w; x <
|
|
8429
|
+
const w = Math.floor((d + 1) * r) + 1 + t, y = Math.min(Math.floor((d + 2) * r) + 1, e) + t, M = y - w;
|
|
8430
|
+
for (x = w; x < y; x++)
|
|
8440
8431
|
m += i[x].x, b += i[x].y;
|
|
8441
|
-
m /=
|
|
8432
|
+
m /= M, b /= M;
|
|
8442
8433
|
const I = Math.floor(d * r) + 1 + t, A = Math.min(Math.floor((d + 1) * r) + 1, e) + t, { x: T, y: L } = i[h];
|
|
8443
8434
|
for (f = g = -1, x = I; x < A; x++)
|
|
8444
8435
|
g = 0.5 * Math.abs((T - m) * (i[x].y - L) - (T - i[x].x) * (b - L)), g > f && (f = g, u = i[x], p = x);
|
|
@@ -8448,11 +8439,11 @@ function Fd(i, t, e, s, n) {
|
|
|
8448
8439
|
}
|
|
8449
8440
|
function Ud(i, t, e, s) {
|
|
8450
8441
|
let n = 0, o = 0, a, r, l, c, h, d, u, f, g, p;
|
|
8451
|
-
const m = [], b = t + e - 1, x = i[t].x,
|
|
8442
|
+
const m = [], b = t + e - 1, x = i[t].x, y = i[b].x - x;
|
|
8452
8443
|
for (a = t; a < t + e; ++a) {
|
|
8453
|
-
r = i[a], l = (r.x - x) /
|
|
8454
|
-
const
|
|
8455
|
-
if (
|
|
8444
|
+
r = i[a], l = (r.x - x) / y * s, c = r.y;
|
|
8445
|
+
const M = l | 0;
|
|
8446
|
+
if (M === h)
|
|
8456
8447
|
c < g ? (g = c, d = a) : c > p && (p = c, u = a), n = (o * n + r.x) / ++o;
|
|
8457
8448
|
else {
|
|
8458
8449
|
const I = a - 1;
|
|
@@ -8466,7 +8457,7 @@ function Ud(i, t, e, s) {
|
|
|
8466
8457
|
x: n
|
|
8467
8458
|
});
|
|
8468
8459
|
}
|
|
8469
|
-
a > 0 && I !== f && m.push(i[I]), m.push(r), h =
|
|
8460
|
+
a > 0 && I !== f && m.push(i[I]), m.push(r), h = M, o = 0, g = p = c, d = u = f = a;
|
|
8470
8461
|
}
|
|
8471
8462
|
}
|
|
8472
8463
|
return m;
|
|
@@ -8491,7 +8482,7 @@ function Yd(i, t) {
|
|
|
8491
8482
|
const e = t.length;
|
|
8492
8483
|
let s = 0, n;
|
|
8493
8484
|
const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: c } = o.getUserBounds();
|
|
8494
|
-
return l && (s = Q(
|
|
8485
|
+
return l && (s = Q(zt(t, o.axis, a).lo, 0, e - 1)), c ? n = Q(zt(t, o.axis, r).hi + 1, s, e) - s : n = e - s, {
|
|
8495
8486
|
start: s,
|
|
8496
8487
|
count: n
|
|
8497
8488
|
};
|
|
@@ -8735,7 +8726,7 @@ function nu(i, t, e) {
|
|
|
8735
8726
|
let r = !1, l = !1;
|
|
8736
8727
|
for (let c = 0; c < o.length; c++) {
|
|
8737
8728
|
const h = o[c], d = a[h.start][e], u = a[h.end][e];
|
|
8738
|
-
if (
|
|
8729
|
+
if (Dt(n, d, u)) {
|
|
8739
8730
|
r = n === d, l = n === u;
|
|
8740
8731
|
break;
|
|
8741
8732
|
}
|
|
@@ -9032,7 +9023,7 @@ class Xn extends pt {
|
|
|
9032
9023
|
}, C = l.xPlus(I, g / 2), j = A + u;
|
|
9033
9024
|
jo(n, S, C, j, a.pointStyleWidth && g);
|
|
9034
9025
|
} else {
|
|
9035
|
-
const S = A + Math.max((d - p) / 2, 0), C = l.leftForLtr(I, g), j =
|
|
9026
|
+
const S = A + Math.max((d - p) / 2, 0), C = l.leftForLtr(I, g), j = Jt(T.borderRadius);
|
|
9036
9027
|
n.beginPath(), Object.values(j).some((_) => _ !== 0) ? Ye(n, {
|
|
9037
9028
|
x: C,
|
|
9038
9029
|
y: S,
|
|
@@ -9043,26 +9034,26 @@ class Xn extends pt {
|
|
|
9043
9034
|
}
|
|
9044
9035
|
n.restore();
|
|
9045
9036
|
}, x = function(I, A, T) {
|
|
9046
|
-
|
|
9037
|
+
ee(n, T.text, I, A + m / 2, c, {
|
|
9047
9038
|
strikethrough: T.hidden,
|
|
9048
9039
|
textAlign: l.textAlign(T.textAlign)
|
|
9049
9040
|
});
|
|
9050
|
-
}, w = this.isHorizontal(),
|
|
9041
|
+
}, w = this.isHorizontal(), y = this._computeTitleHeight();
|
|
9051
9042
|
w ? f = {
|
|
9052
9043
|
x: et(o, this.left + h, this.right - s[0]),
|
|
9053
|
-
y: this.top + h +
|
|
9044
|
+
y: this.top + h + y,
|
|
9054
9045
|
line: 0
|
|
9055
9046
|
} : f = {
|
|
9056
9047
|
x: this.left + h,
|
|
9057
|
-
y: et(o, this.top +
|
|
9048
|
+
y: et(o, this.top + y + h, this.bottom - e[0].height),
|
|
9058
9049
|
line: 0
|
|
9059
9050
|
}, Fo(this.ctx, t.textDirection);
|
|
9060
|
-
const
|
|
9051
|
+
const M = m + h;
|
|
9061
9052
|
this.legendItems.forEach((I, A) => {
|
|
9062
9053
|
n.strokeStyle = I.fontColor, n.fillStyle = I.fontColor;
|
|
9063
9054
|
const T = n.measureText(I.text).width, L = l.textAlign(I.textAlign || (I.textAlign = a.textAlign)), S = g + u + T;
|
|
9064
9055
|
let C = f.x, j = f.y;
|
|
9065
|
-
l.setWidth(this.width), w ? A > 0 && C + S + h > this.right && (j = f.y +=
|
|
9056
|
+
l.setWidth(this.width), w ? A > 0 && C + S + h > this.right && (j = f.y += M, f.line++, C = f.x = et(o, this.left + h, this.right - s[f.line])) : A > 0 && j + M > this.bottom && (C = f.x = C + e[f.line].width + h, f.line++, j = f.y = et(o, this.top + y + h, this.bottom - e[f.line].height));
|
|
9066
9057
|
const _ = l.x(C);
|
|
9067
9058
|
if (b(_, j, I), C = Pl(L, C + g + u, w ? C + S : this.right, t.rtl), x(l.x(C), j, I), w)
|
|
9068
9059
|
f.x += S + h;
|
|
@@ -9070,7 +9061,7 @@ class Xn extends pt {
|
|
|
9070
9061
|
const rt = c.lineHeight;
|
|
9071
9062
|
f.y += ga(I, rt) + h;
|
|
9072
9063
|
} else
|
|
9073
|
-
f.y +=
|
|
9064
|
+
f.y += M;
|
|
9074
9065
|
}), Uo(this.ctx, t.textDirection);
|
|
9075
9066
|
}
|
|
9076
9067
|
drawTitle() {
|
|
@@ -9086,7 +9077,7 @@ class Xn extends pt {
|
|
|
9086
9077
|
h = c + et(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
|
|
9087
9078
|
}
|
|
9088
9079
|
const f = et(r, d, d + u);
|
|
9089
|
-
a.textAlign = o.textAlign(Ts(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string,
|
|
9080
|
+
a.textAlign = o.textAlign(Ts(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, ee(a, e.text, f, h, s);
|
|
9090
9081
|
}
|
|
9091
9082
|
_computeTitleHeight() {
|
|
9092
9083
|
const t = this.options.title, e = K(t.font), s = st(t.padding);
|
|
@@ -9094,9 +9085,9 @@ class Xn extends pt {
|
|
|
9094
9085
|
}
|
|
9095
9086
|
_getLegendItemAt(t, e) {
|
|
9096
9087
|
let s, n, o;
|
|
9097
|
-
if (
|
|
9088
|
+
if (Dt(t, this.left, this.right) && Dt(e, this.top, this.bottom)) {
|
|
9098
9089
|
for (o = this.legendHitBoxes, s = 0; s < o.length; ++s)
|
|
9099
|
-
if (n = o[s],
|
|
9090
|
+
if (n = o[s], Dt(t, n.left, n.left + n.width) && Dt(e, n.top, n.top + n.height))
|
|
9100
9091
|
return this.legendItems[s];
|
|
9101
9092
|
}
|
|
9102
9093
|
return null;
|
|
@@ -9266,7 +9257,7 @@ class js extends pt {
|
|
|
9266
9257
|
if (!e.display)
|
|
9267
9258
|
return;
|
|
9268
9259
|
const s = K(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
|
|
9269
|
-
|
|
9260
|
+
ee(t, e.text, 0, 0, s, {
|
|
9270
9261
|
color: e.color,
|
|
9271
9262
|
maxWidth: l,
|
|
9272
9263
|
rotation: c,
|
|
@@ -9279,7 +9270,7 @@ class js extends pt {
|
|
|
9279
9270
|
});
|
|
9280
9271
|
}
|
|
9281
9272
|
}
|
|
9282
|
-
function
|
|
9273
|
+
function Mu(i, t) {
|
|
9283
9274
|
const e = new js({
|
|
9284
9275
|
ctx: i.ctx,
|
|
9285
9276
|
options: t,
|
|
@@ -9287,11 +9278,11 @@ function yu(i, t) {
|
|
|
9287
9278
|
});
|
|
9288
9279
|
it.configure(i, e, t), it.addBox(i, e), i.titleBlock = e;
|
|
9289
9280
|
}
|
|
9290
|
-
var
|
|
9281
|
+
var yu = {
|
|
9291
9282
|
id: "title",
|
|
9292
9283
|
_element: js,
|
|
9293
9284
|
start(i, t, e) {
|
|
9294
|
-
|
|
9285
|
+
Mu(i, e);
|
|
9295
9286
|
},
|
|
9296
9287
|
stop(i) {
|
|
9297
9288
|
const t = i.titleBlock;
|
|
@@ -9400,7 +9391,7 @@ const Ce = {
|
|
|
9400
9391
|
function mt(i, t) {
|
|
9401
9392
|
return t && (B(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
9402
9393
|
}
|
|
9403
|
-
function
|
|
9394
|
+
function It(i) {
|
|
9404
9395
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
9405
9396
|
`) > -1 ? i.split(`
|
|
9406
9397
|
`) : i;
|
|
@@ -9421,18 +9412,18 @@ function vu(i, t) {
|
|
|
9421
9412
|
}
|
|
9422
9413
|
function Kn(i, t) {
|
|
9423
9414
|
const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = K(t.bodyFont), c = K(t.titleFont), h = K(t.footerFont), d = o.length, u = n.length, f = s.length, g = st(t.padding);
|
|
9424
|
-
let p = g.height, m = 0, b = s.reduce((
|
|
9415
|
+
let p = g.height, m = 0, b = s.reduce((y, M) => y + M.before.length + M.lines.length + M.after.length, 0);
|
|
9425
9416
|
if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
|
|
9426
|
-
const
|
|
9427
|
-
p += f *
|
|
9417
|
+
const y = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
|
|
9418
|
+
p += f * y + (b - f) * l.lineHeight + (b - 1) * t.bodySpacing;
|
|
9428
9419
|
}
|
|
9429
9420
|
u && (p += t.footerMarginTop + u * h.lineHeight + (u - 1) * t.footerSpacing);
|
|
9430
9421
|
let x = 0;
|
|
9431
|
-
const w = function(
|
|
9432
|
-
m = Math.max(m, e.measureText(
|
|
9422
|
+
const w = function(y) {
|
|
9423
|
+
m = Math.max(m, e.measureText(y).width + x);
|
|
9433
9424
|
};
|
|
9434
|
-
return e.save(), e.font = c.string, E(i.title, w), e.font = l.string, E(i.beforeBody.concat(i.afterBody), w), x = t.displayColors ? a + 2 + t.boxPadding : 0, E(s, (
|
|
9435
|
-
E(
|
|
9425
|
+
return e.save(), e.font = c.string, E(i.title, w), e.font = l.string, E(i.beforeBody.concat(i.afterBody), w), x = t.displayColors ? a + 2 + t.boxPadding : 0, E(s, (y) => {
|
|
9426
|
+
E(y.before, w), E(y.lines, w), E(y.after, w);
|
|
9436
9427
|
}), x = 0, e.font = h.string, E(i.footer, w), e.restore(), m += g.width, {
|
|
9437
9428
|
width: m,
|
|
9438
9429
|
height: p
|
|
@@ -9468,7 +9459,7 @@ function zu(i, t, e) {
|
|
|
9468
9459
|
return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
|
|
9469
9460
|
}
|
|
9470
9461
|
function Jn(i, t, e, s) {
|
|
9471
|
-
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } =
|
|
9462
|
+
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Jt(a);
|
|
9472
9463
|
let g = Du(t, r);
|
|
9473
9464
|
const p = zu(t, l, c);
|
|
9474
9465
|
return l === "center" ? r === "left" ? g += c : r === "right" && (g -= c) : r === "left" ? g -= Math.max(h, u) + n : r === "right" && (g += Math.max(d, f) + n), {
|
|
@@ -9481,7 +9472,7 @@ function gi(i, t, e) {
|
|
|
9481
9472
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
9482
9473
|
}
|
|
9483
9474
|
function qn(i) {
|
|
9484
|
-
return mt([],
|
|
9475
|
+
return mt([], It(i));
|
|
9485
9476
|
}
|
|
9486
9477
|
function ku(i, t, e) {
|
|
9487
9478
|
return Wt(i, {
|
|
@@ -9495,7 +9486,7 @@ function _n(i, t) {
|
|
|
9495
9486
|
return e ? i.override(e) : i;
|
|
9496
9487
|
}
|
|
9497
9488
|
const pa = {
|
|
9498
|
-
beforeTitle:
|
|
9489
|
+
beforeTitle: wt,
|
|
9499
9490
|
title(i) {
|
|
9500
9491
|
if (i.length > 0) {
|
|
9501
9492
|
const t = i[0], e = t.chart.data.labels, s = e ? e.length : 0;
|
|
@@ -9508,9 +9499,9 @@ const pa = {
|
|
|
9508
9499
|
}
|
|
9509
9500
|
return "";
|
|
9510
9501
|
},
|
|
9511
|
-
afterTitle:
|
|
9512
|
-
beforeBody:
|
|
9513
|
-
beforeLabel:
|
|
9502
|
+
afterTitle: wt,
|
|
9503
|
+
beforeBody: wt,
|
|
9504
|
+
beforeLabel: wt,
|
|
9514
9505
|
label(i) {
|
|
9515
9506
|
if (this && this.options && this.options.mode === "dataset")
|
|
9516
9507
|
return i.label + ": " + i.formattedValue || i.formattedValue;
|
|
@@ -9540,11 +9531,11 @@ const pa = {
|
|
|
9540
9531
|
rotation: e.rotation
|
|
9541
9532
|
};
|
|
9542
9533
|
},
|
|
9543
|
-
afterLabel:
|
|
9544
|
-
afterBody:
|
|
9545
|
-
beforeFooter:
|
|
9546
|
-
footer:
|
|
9547
|
-
afterFooter:
|
|
9534
|
+
afterLabel: wt,
|
|
9535
|
+
afterBody: wt,
|
|
9536
|
+
beforeFooter: wt,
|
|
9537
|
+
footer: wt,
|
|
9538
|
+
afterFooter: wt
|
|
9548
9539
|
};
|
|
9549
9540
|
function nt(i, t, e, s) {
|
|
9550
9541
|
const n = i[t].call(e, s);
|
|
@@ -9570,7 +9561,7 @@ class ds extends pt {
|
|
|
9570
9561
|
getTitle(t, e) {
|
|
9571
9562
|
const { callbacks: s } = e, n = nt(s, "beforeTitle", this, t), o = nt(s, "title", this, t), a = nt(s, "afterTitle", this, t);
|
|
9572
9563
|
let r = [];
|
|
9573
|
-
return r = mt(r,
|
|
9564
|
+
return r = mt(r, It(n)), r = mt(r, It(o)), r = mt(r, It(a)), r;
|
|
9574
9565
|
}
|
|
9575
9566
|
getBeforeBody(t, e) {
|
|
9576
9567
|
return qn(nt(e.callbacks, "beforeBody", this, t));
|
|
@@ -9583,7 +9574,7 @@ class ds extends pt {
|
|
|
9583
9574
|
lines: [],
|
|
9584
9575
|
after: []
|
|
9585
9576
|
}, r = _n(s, o);
|
|
9586
|
-
mt(a.before,
|
|
9577
|
+
mt(a.before, It(nt(r, "beforeLabel", this, o))), mt(a.lines, nt(r, "label", this, o)), mt(a.after, It(nt(r, "afterLabel", this, o))), n.push(a);
|
|
9587
9578
|
}), n;
|
|
9588
9579
|
}
|
|
9589
9580
|
getAfterBody(t, e) {
|
|
@@ -9592,7 +9583,7 @@ class ds extends pt {
|
|
|
9592
9583
|
getFooter(t, e) {
|
|
9593
9584
|
const { callbacks: s } = e, n = nt(s, "beforeFooter", this, t), o = nt(s, "footer", this, t), a = nt(s, "afterFooter", this, t);
|
|
9594
9585
|
let r = [];
|
|
9595
|
-
return r = mt(r,
|
|
9586
|
+
return r = mt(r, It(n)), r = mt(r, It(o)), r = mt(r, It(a)), r;
|
|
9596
9587
|
}
|
|
9597
9588
|
_createItems(t) {
|
|
9598
9589
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
@@ -9636,15 +9627,15 @@ class ds extends pt {
|
|
|
9636
9627
|
e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
|
|
9637
9628
|
}
|
|
9638
9629
|
getCaretPosition(t, e, s) {
|
|
9639
|
-
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } =
|
|
9640
|
-
let m, b, x, w,
|
|
9641
|
-
return o === "center" ? (
|
|
9630
|
+
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Jt(r), { x: u, y: f } = t, { width: g, height: p } = e;
|
|
9631
|
+
let m, b, x, w, y, M;
|
|
9632
|
+
return o === "center" ? (y = f + p / 2, n === "left" ? (m = u, b = m - a, w = y + a, M = y - a) : (m = u + g, b = m + a, w = y - a, M = y + a), x = m) : (n === "left" ? b = u + Math.max(l, h) + a : n === "right" ? b = u + g - Math.max(c, d) - a : b = this.caretX, o === "top" ? (w = f, y = w - a, m = b - a, x = b + a) : (w = f + p, y = w + a, m = b + a, x = b - a), M = w), {
|
|
9642
9633
|
x1: m,
|
|
9643
9634
|
x2: b,
|
|
9644
9635
|
x3: x,
|
|
9645
9636
|
y1: w,
|
|
9646
|
-
y2:
|
|
9647
|
-
y3:
|
|
9637
|
+
y2: y,
|
|
9638
|
+
y3: M
|
|
9648
9639
|
};
|
|
9649
9640
|
}
|
|
9650
9641
|
drawTitle(t, e, s) {
|
|
@@ -9668,7 +9659,7 @@ class ds extends pt {
|
|
|
9668
9659
|
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, ns(t, p, m, b), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, ns(t, p, m, b);
|
|
9669
9660
|
} else {
|
|
9670
9661
|
t.lineWidth = O(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
|
|
9671
|
-
const p = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b =
|
|
9662
|
+
const p = n.leftForLtr(u, c), m = n.leftForLtr(n.xPlus(u, 1), c - 2), b = Jt(a.borderRadius);
|
|
9672
9663
|
Object.values(b).some((x) => x !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, Ye(t, {
|
|
9673
9664
|
x: p,
|
|
9674
9665
|
y: g,
|
|
@@ -9691,10 +9682,10 @@ class ds extends pt {
|
|
|
9691
9682
|
const g = he(s.rtl, this.x, this.width), p = function(T) {
|
|
9692
9683
|
e.fillText(T, g.x(t.x + f), t.y + u / 2), t.y += u + o;
|
|
9693
9684
|
}, m = g.textAlign(a);
|
|
9694
|
-
let b, x, w,
|
|
9695
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = gi(this, m, s), e.fillStyle = s.bodyColor, E(this.beforeBody, p), f = r && m !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0,
|
|
9696
|
-
for (b = n[
|
|
9697
|
-
p(w[
|
|
9685
|
+
let b, x, w, y, M, I, A;
|
|
9686
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = gi(this, m, s), e.fillStyle = s.bodyColor, E(this.beforeBody, p), f = r && m !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, y = 0, I = n.length; y < I; ++y) {
|
|
9687
|
+
for (b = n[y], x = this.labelTextColors[y], e.fillStyle = x, E(b.before, p), w = b.lines, r && w.length && (this._drawColorBox(e, t, y, g, s), u = Math.max(d.lineHeight, l)), M = 0, A = w.length; M < A; ++M)
|
|
9688
|
+
p(w[M]), u = d.lineHeight;
|
|
9698
9689
|
E(b.after, p);
|
|
9699
9690
|
}
|
|
9700
9691
|
f = 0, u = d.lineHeight, E(this.afterBody, p), t.y -= o;
|
|
@@ -9709,7 +9700,7 @@ class ds extends pt {
|
|
|
9709
9700
|
}
|
|
9710
9701
|
}
|
|
9711
9702
|
drawBackground(t, e, s, n) {
|
|
9712
|
-
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: g } =
|
|
9703
|
+
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: h } = s, { topLeft: d, topRight: u, bottomLeft: f, bottomRight: g } = Jt(n.cornerRadius);
|
|
9713
9704
|
e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(r + d, l), a === "top" && this.drawCaret(t, e, s, n), e.lineTo(r + c - u, l), e.quadraticCurveTo(r + c, l, r + c, l + u), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + c, l + h - g), e.quadraticCurveTo(r + c, l + h, r + c - g, l + h), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + f, l + h), e.quadraticCurveTo(r, l + h, r, l + h - f), a === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(r, l + d), e.quadraticCurveTo(r, l, r + d, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
|
|
9714
9705
|
}
|
|
9715
9706
|
_updateAnimationTarget(t) {
|
|
@@ -9905,7 +9896,7 @@ var Lu = {
|
|
|
9905
9896
|
Filler: uu,
|
|
9906
9897
|
Legend: xu,
|
|
9907
9898
|
SubTitle: wu,
|
|
9908
|
-
Title:
|
|
9899
|
+
Title: yu,
|
|
9909
9900
|
Tooltip: Lu
|
|
9910
9901
|
});
|
|
9911
9902
|
const Su = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
|
|
@@ -9924,7 +9915,7 @@ function $n(i) {
|
|
|
9924
9915
|
const t = this.getLabels();
|
|
9925
9916
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
9926
9917
|
}
|
|
9927
|
-
class us extends
|
|
9918
|
+
class us extends oe {
|
|
9928
9919
|
constructor(t) {
|
|
9929
9920
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
9930
9921
|
}
|
|
@@ -9985,9 +9976,9 @@ v(us, "id", "category"), v(us, "defaults", {
|
|
|
9985
9976
|
}
|
|
9986
9977
|
});
|
|
9987
9978
|
function ju(i, t) {
|
|
9988
|
-
const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, g = h - 1, { min: p, max: m } = t, b = !P(a), x = !P(r), w = !P(c),
|
|
9989
|
-
let
|
|
9990
|
-
if (
|
|
9979
|
+
const e = [], { bounds: n, step: o, min: a, max: r, precision: l, count: c, maxTicks: h, maxDigits: d, includeBounds: u } = i, f = o || 1, g = h - 1, { min: p, max: m } = t, b = !P(a), x = !P(r), w = !P(c), y = (m - p) / (d + 1);
|
|
9980
|
+
let M = Gs((m - p) / g / f) * f, I, A, T, L;
|
|
9981
|
+
if (M < 1e-14 && !b && !x)
|
|
9991
9982
|
return [
|
|
9992
9983
|
{
|
|
9993
9984
|
value: p
|
|
@@ -9996,21 +9987,21 @@ function ju(i, t) {
|
|
|
9996
9987
|
value: m
|
|
9997
9988
|
}
|
|
9998
9989
|
];
|
|
9999
|
-
L = Math.ceil(m /
|
|
10000
|
-
const S = Math.max(Xs(
|
|
9990
|
+
L = Math.ceil(m / M) - Math.floor(p / M), L > g && (M = Gs(L * M / g / f) * f), P(l) || (I = Math.pow(10, l), M = Math.ceil(M * I) / I), n === "ticks" ? (A = Math.floor(p / M) * M, T = Math.ceil(m / M) * M) : (A = p, T = m), b && x && o && kl((r - a) / o, M / 1e3) ? (L = Math.round(Math.min((r - a) / M, h)), M = (r - a) / L, A = a, T = r) : w ? (A = b ? a : A, T = x ? r : T, L = c - 1, M = (T - A) / L) : (L = (T - A) / M, Pe(L, Math.round(L), M / 1e3) ? L = Math.round(L) : L = Math.ceil(L));
|
|
9991
|
+
const S = Math.max(Xs(M), Xs(A));
|
|
10001
9992
|
I = Math.pow(10, P(l) ? S : l), A = Math.round(A * I) / I, T = Math.round(T * I) / I;
|
|
10002
9993
|
let C = 0;
|
|
10003
9994
|
for (b && (u && A !== a ? (e.push({
|
|
10004
9995
|
value: a
|
|
10005
|
-
}), A < a && C++, Pe(Math.round((A + C *
|
|
10006
|
-
const j = Math.round((A + C *
|
|
9996
|
+
}), A < a && C++, Pe(Math.round((A + C * M) * I) / I, a, to(a, y, i)) && C++) : A < a && C++); C < L; ++C) {
|
|
9997
|
+
const j = Math.round((A + C * M) * I) / I;
|
|
10007
9998
|
if (x && j > r)
|
|
10008
9999
|
break;
|
|
10009
10000
|
e.push({
|
|
10010
10001
|
value: j
|
|
10011
10002
|
});
|
|
10012
10003
|
}
|
|
10013
|
-
return x && u && T !== r ? e.length && Pe(e[e.length - 1].value, r, to(r,
|
|
10004
|
+
return x && u && T !== r ? e.length && Pe(e[e.length - 1].value, r, to(r, y, i)) ? e[e.length - 1].value = r : e.push({
|
|
10014
10005
|
value: r
|
|
10015
10006
|
}) : (!x || T === r) && e.push({
|
|
10016
10007
|
value: T
|
|
@@ -10020,7 +10011,7 @@ function to(i, t, { horizontal: e, minRotation: s }) {
|
|
|
10020
10011
|
const n = ut(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, a = 0.75 * t * ("" + i).length;
|
|
10021
10012
|
return Math.min(t / o, a);
|
|
10022
10013
|
}
|
|
10023
|
-
class Ci extends
|
|
10014
|
+
class Ci extends oe {
|
|
10024
10015
|
constructor(t) {
|
|
10025
10016
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
10026
10017
|
}
|
|
@@ -10102,7 +10093,7 @@ v(fs, "id", "linear"), v(fs, "defaults", {
|
|
|
10102
10093
|
callback: ji.formatters.numeric
|
|
10103
10094
|
}
|
|
10104
10095
|
});
|
|
10105
|
-
const Xe = (i) => Math.floor(Ct(i)),
|
|
10096
|
+
const Xe = (i) => Math.floor(Ct(i)), Gt = (i, t) => Math.pow(10, Xe(i) + t);
|
|
10106
10097
|
function eo(i) {
|
|
10107
10098
|
return i / Math.pow(10, Xe(i)) === 1;
|
|
10108
10099
|
}
|
|
@@ -10138,7 +10129,7 @@ function Eu(i, { min: t, max: e }) {
|
|
|
10138
10129
|
significand: d
|
|
10139
10130
|
}), s;
|
|
10140
10131
|
}
|
|
10141
|
-
class gs extends
|
|
10132
|
+
class gs extends oe {
|
|
10142
10133
|
constructor(t) {
|
|
10143
10134
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
|
|
10144
10135
|
}
|
|
@@ -10155,13 +10146,13 @@ class gs extends ne {
|
|
|
10155
10146
|
}
|
|
10156
10147
|
determineDataLimits() {
|
|
10157
10148
|
const { min: t, max: e } = this.getMinMax(!0);
|
|
10158
|
-
this.min = F(t) ? Math.max(0, t) : null, this.max = F(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !F(this._userMin) && (this.min = t ===
|
|
10149
|
+
this.min = F(t) ? Math.max(0, t) : null, this.max = F(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !F(this._userMin) && (this.min = t === Gt(this.min, 0) ? Gt(this.min, -1) : Gt(this.min, 0)), this.handleTickRangeOptions();
|
|
10159
10150
|
}
|
|
10160
10151
|
handleTickRangeOptions() {
|
|
10161
10152
|
const { minDefined: t, maxDefined: e } = this.getUserBounds();
|
|
10162
10153
|
let s = this.min, n = this.max;
|
|
10163
10154
|
const o = (r) => s = t ? s : r, a = (r) => n = e ? n : r;
|
|
10164
|
-
s === n && (s <= 0 ? (o(1), a(10)) : (o(
|
|
10155
|
+
s === n && (s <= 0 ? (o(1), a(10)) : (o(Gt(s, -1)), a(Gt(n, 1)))), s <= 0 && o(Gt(n, -1)), n <= 0 && a(Gt(s, 1)), this.min = s, this.max = n;
|
|
10165
10156
|
}
|
|
10166
10157
|
buildTicks() {
|
|
10167
10158
|
const t = this.options, e = {
|
|
@@ -10260,16 +10251,16 @@ function Hu(i, t) {
|
|
|
10260
10251
|
if (!t)
|
|
10261
10252
|
return !0;
|
|
10262
10253
|
const { left: e, top: s, right: n, bottom: o } = i;
|
|
10263
|
-
return !(
|
|
10254
|
+
return !(kt({
|
|
10264
10255
|
x: e,
|
|
10265
10256
|
y: s
|
|
10266
|
-
}, t) ||
|
|
10257
|
+
}, t) || kt({
|
|
10267
10258
|
x: e,
|
|
10268
10259
|
y: o
|
|
10269
|
-
}, t) ||
|
|
10260
|
+
}, t) || kt({
|
|
10270
10261
|
x: n,
|
|
10271
10262
|
y: s
|
|
10272
|
-
}, t) ||
|
|
10263
|
+
}, t) || kt({
|
|
10273
10264
|
x: n,
|
|
10274
10265
|
y: o
|
|
10275
10266
|
}, t));
|
|
@@ -10299,7 +10290,7 @@ function Yu(i, t, e) {
|
|
|
10299
10290
|
function Gu(i, t, e) {
|
|
10300
10291
|
const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
|
|
10301
10292
|
if (!P(r)) {
|
|
10302
|
-
const l =
|
|
10293
|
+
const l = Jt(t.borderRadius), c = st(t.backdropPadding);
|
|
10303
10294
|
i.fillStyle = r;
|
|
10304
10295
|
const h = s - c.left, d = n - c.top, u = o - s + c.width, f = a - n + c.height;
|
|
10305
10296
|
Object.values(l).some((g) => g !== 0) ? (i.beginPath(), Ye(i, {
|
|
@@ -10320,7 +10311,7 @@ function Xu(i, t) {
|
|
|
10320
10311
|
const a = s.setContext(i.getPointLabelContext(n));
|
|
10321
10312
|
Gu(e, a, o);
|
|
10322
10313
|
const r = K(a.font), { x: l, y: c, textAlign: h } = o;
|
|
10323
|
-
|
|
10314
|
+
ee(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
|
|
10324
10315
|
color: a.color,
|
|
10325
10316
|
textAlign: h,
|
|
10326
10317
|
textBaseline: "middle"
|
|
@@ -10467,7 +10458,7 @@ class Oe extends Ci {
|
|
|
10467
10458
|
const d = st(c.backdropPadding);
|
|
10468
10459
|
t.fillRect(-a / 2 - d.left, -o - h.size / 2 - d.top, a + d.width, h.size + d.height);
|
|
10469
10460
|
}
|
|
10470
|
-
|
|
10461
|
+
ee(t, r.label, 0, -o, h, {
|
|
10471
10462
|
color: c.color,
|
|
10472
10463
|
strokeColor: c.textStrokeColor,
|
|
10473
10464
|
strokeWidth: c.textStrokeWidth
|
|
@@ -10620,7 +10611,7 @@ function lo(i, t, e) {
|
|
|
10620
10611
|
});
|
|
10621
10612
|
return o === 0 || !e ? s : _u(i, s, n, e);
|
|
10622
10613
|
}
|
|
10623
|
-
class Ke extends
|
|
10614
|
+
class Ke extends oe {
|
|
10624
10615
|
constructor(t) {
|
|
10625
10616
|
super(t), this._cache = {
|
|
10626
10617
|
data: [],
|
|
@@ -10785,7 +10776,7 @@ v(Ke, "id", "time"), v(Ke, "defaults", {
|
|
|
10785
10776
|
});
|
|
10786
10777
|
function pi(i, t, e) {
|
|
10787
10778
|
let s = 0, n = i.length - 1, o, a, r, l;
|
|
10788
|
-
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } =
|
|
10779
|
+
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = zt(i, "pos", t)), { pos: o, time: r } = i[s], { pos: a, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = zt(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
|
|
10789
10780
|
const c = a - o;
|
|
10790
10781
|
return c ? r + (l - r) * (t - o) / c : r;
|
|
10791
10782
|
}
|
|
@@ -10856,23 +10847,24 @@ const tf = [
|
|
|
10856
10847
|
Nu,
|
|
10857
10848
|
$u
|
|
10858
10849
|
];
|
|
10859
|
-
|
|
10860
|
-
var ef = Object.defineProperty, sf = Object.getOwnPropertyDescriptor,
|
|
10850
|
+
Tt.register(...tf);
|
|
10851
|
+
var ef = Object.defineProperty, sf = Object.getOwnPropertyDescriptor, Ht = (i, t, e, s) => {
|
|
10861
10852
|
for (var n = s > 1 ? void 0 : s ? sf(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
10862
10853
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
10863
10854
|
return s && n && ef(t, e, n), n;
|
|
10864
10855
|
};
|
|
10865
|
-
let
|
|
10856
|
+
let Mt = class extends J {
|
|
10866
10857
|
constructor() {
|
|
10867
|
-
super(...arguments), this.chartTitle = "", this.chartType = "", this.chartLabels = [], this.chartDataSets = [], this._createChart = () => {
|
|
10868
|
-
this._chart = new
|
|
10858
|
+
super(...arguments), this.chartTitle = "", this.chartType = "", this.chartLabels = [], this.chartDataSets = [], this.chartOptions = {}, this._createChart = () => {
|
|
10859
|
+
this._chart = new Tt(
|
|
10869
10860
|
this._chartCanvas,
|
|
10870
10861
|
{
|
|
10871
10862
|
type: this.chartType,
|
|
10872
10863
|
data: {
|
|
10873
10864
|
labels: [...this.chartLabels],
|
|
10874
10865
|
datasets: [...this.chartDataSets]
|
|
10875
|
-
}
|
|
10866
|
+
},
|
|
10867
|
+
options: { ...this.chartOptions }
|
|
10876
10868
|
}
|
|
10877
10869
|
);
|
|
10878
10870
|
};
|
|
@@ -10897,28 +10889,31 @@ let Nt = class extends J {
|
|
|
10897
10889
|
`;
|
|
10898
10890
|
}
|
|
10899
10891
|
};
|
|
10900
|
-
|
|
10901
|
-
|
|
10892
|
+
Mt.styles = [Xr, Kr, Qr];
|
|
10893
|
+
Ht([
|
|
10902
10894
|
z({ attribute: "chart-title" })
|
|
10903
|
-
],
|
|
10904
|
-
|
|
10895
|
+
], Mt.prototype, "chartTitle", 2);
|
|
10896
|
+
Ht([
|
|
10905
10897
|
z({ attribute: "chart-type" })
|
|
10906
|
-
],
|
|
10907
|
-
|
|
10898
|
+
], Mt.prototype, "chartType", 2);
|
|
10899
|
+
Ht([
|
|
10908
10900
|
z({ attribute: "chart-labels", type: Array })
|
|
10909
|
-
],
|
|
10910
|
-
|
|
10901
|
+
], Mt.prototype, "chartLabels", 2);
|
|
10902
|
+
Ht([
|
|
10911
10903
|
z({ attribute: "chart-datasets", type: Array })
|
|
10912
|
-
],
|
|
10913
|
-
|
|
10904
|
+
], Mt.prototype, "chartDataSets", 2);
|
|
10905
|
+
Ht([
|
|
10906
|
+
z({ attribute: "chart-options", type: Object })
|
|
10907
|
+
], Mt.prototype, "chartOptions", 2);
|
|
10908
|
+
Ht([
|
|
10914
10909
|
wa("#chart-canvas")
|
|
10915
|
-
],
|
|
10916
|
-
|
|
10910
|
+
], Mt.prototype, "_chartCanvas", 2);
|
|
10911
|
+
Ht([
|
|
10917
10912
|
at()
|
|
10918
|
-
],
|
|
10919
|
-
|
|
10913
|
+
], Mt.prototype, "_chart", 2);
|
|
10914
|
+
Mt = Ht([
|
|
10920
10915
|
q("genus-chart")
|
|
10921
|
-
],
|
|
10916
|
+
], Mt);
|
|
10922
10917
|
const ba = D`
|
|
10923
10918
|
.table
|
|
10924
10919
|
{
|
|
@@ -11029,7 +11024,7 @@ var af = Object.defineProperty, rf = Object.getOwnPropertyDescriptor, Bi = (i, t
|
|
|
11029
11024
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
11030
11025
|
return s && n && af(t, e, n), n;
|
|
11031
11026
|
};
|
|
11032
|
-
let
|
|
11027
|
+
let ie = class extends J {
|
|
11033
11028
|
constructor() {
|
|
11034
11029
|
super(...arguments), this.tableHeaders = [], this.tableTitle = "", this.readonly = !1, this.generateTableHeadColumns = () => {
|
|
11035
11030
|
let i = [];
|
|
@@ -11059,25 +11054,25 @@ let ee = class extends J {
|
|
|
11059
11054
|
`;
|
|
11060
11055
|
}
|
|
11061
11056
|
};
|
|
11062
|
-
|
|
11057
|
+
ie.styles = [nf, ba, of, xa];
|
|
11063
11058
|
Bi([
|
|
11064
11059
|
z({ attribute: "table-headers", type: Array })
|
|
11065
|
-
],
|
|
11060
|
+
], ie.prototype, "tableHeaders", 2);
|
|
11066
11061
|
Bi([
|
|
11067
11062
|
z({ attribute: "table-title" })
|
|
11068
|
-
],
|
|
11063
|
+
], ie.prototype, "tableTitle", 2);
|
|
11069
11064
|
Bi([
|
|
11070
11065
|
z({ attribute: "readonly", type: Boolean })
|
|
11071
|
-
],
|
|
11072
|
-
|
|
11066
|
+
], ie.prototype, "readonly", 2);
|
|
11067
|
+
ie = Bi([
|
|
11073
11068
|
q("genus-table")
|
|
11074
|
-
],
|
|
11069
|
+
], ie);
|
|
11075
11070
|
var lf = Object.defineProperty, cf = Object.getOwnPropertyDescriptor, Wi = (i, t, e, s) => {
|
|
11076
11071
|
for (var n = s > 1 ? void 0 : s ? cf(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
11077
11072
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
11078
11073
|
return s && n && lf(t, e, n), n;
|
|
11079
11074
|
};
|
|
11080
|
-
let
|
|
11075
|
+
let se = class extends J {
|
|
11081
11076
|
constructor() {
|
|
11082
11077
|
super(...arguments), this.dataObject = {}, this.readonly = !1, this.isLastRow = !1, this._containsHTML = (i) => /<[a-z][\s\S]*>/i.test(i), this.generateDataColumns = () => {
|
|
11083
11078
|
let i = [], t = 1;
|
|
@@ -11095,26 +11090,26 @@ let ie = class extends J {
|
|
|
11095
11090
|
`;
|
|
11096
11091
|
}
|
|
11097
11092
|
};
|
|
11098
|
-
|
|
11093
|
+
se.styles = [ba, xa];
|
|
11099
11094
|
Wi([
|
|
11100
11095
|
z({ attribute: "data-object", type: Object })
|
|
11101
|
-
],
|
|
11096
|
+
], se.prototype, "dataObject", 2);
|
|
11102
11097
|
Wi([
|
|
11103
11098
|
z({ attribute: "readonly", type: Boolean })
|
|
11104
|
-
],
|
|
11099
|
+
], se.prototype, "readonly", 2);
|
|
11105
11100
|
Wi([
|
|
11106
11101
|
z({ attribute: "last-row", type: Boolean })
|
|
11107
|
-
],
|
|
11108
|
-
|
|
11102
|
+
], se.prototype, "isLastRow", 2);
|
|
11103
|
+
se = Wi([
|
|
11109
11104
|
q("genus-table-row")
|
|
11110
|
-
],
|
|
11105
|
+
], se);
|
|
11111
11106
|
const jf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11112
11107
|
__proto__: null,
|
|
11113
11108
|
get GenusTable() {
|
|
11114
|
-
return
|
|
11109
|
+
return ie;
|
|
11115
11110
|
},
|
|
11116
11111
|
get GenusTableRow() {
|
|
11117
|
-
return
|
|
11112
|
+
return se;
|
|
11118
11113
|
}
|
|
11119
11114
|
}, Symbol.toStringTag, { value: "Module" })), hf = D`
|
|
11120
11115
|
.toast
|
|
@@ -11224,7 +11219,7 @@ Hi([
|
|
|
11224
11219
|
be = Hi([
|
|
11225
11220
|
q("genus-toast-message")
|
|
11226
11221
|
], be);
|
|
11227
|
-
const
|
|
11222
|
+
const Mf = D`
|
|
11228
11223
|
*
|
|
11229
11224
|
{
|
|
11230
11225
|
margin: 0;
|
|
@@ -11243,18 +11238,17 @@ const yf = D`
|
|
|
11243
11238
|
.icon-container
|
|
11244
11239
|
{
|
|
11245
11240
|
background: var(--icon-container-background-color, #f2f7f9);
|
|
11246
|
-
width:
|
|
11247
|
-
height:
|
|
11241
|
+
width: 2.5rem;
|
|
11242
|
+
height: 2.5rem;
|
|
11248
11243
|
border-radius: 0.625rem;
|
|
11249
11244
|
grid-area: ic;
|
|
11250
11245
|
}
|
|
11251
|
-
`,
|
|
11246
|
+
`, yf = D`
|
|
11252
11247
|
.data-header
|
|
11253
11248
|
{
|
|
11254
11249
|
font-family: var(--data-header-font-family, 'Sofia Pro Semi');
|
|
11255
11250
|
font-size: var(--data-header-font-size, 1rem);
|
|
11256
11251
|
color: var(--data-header-color, #213e70);
|
|
11257
|
-
align-self: end;
|
|
11258
11252
|
grid-area: dh;
|
|
11259
11253
|
}
|
|
11260
11254
|
|
|
@@ -11318,7 +11312,7 @@ const yf = D`
|
|
|
11318
11312
|
align-items: center;
|
|
11319
11313
|
}
|
|
11320
11314
|
`;
|
|
11321
|
-
var Af = Object.defineProperty, Tf = Object.getOwnPropertyDescriptor,
|
|
11315
|
+
var Af = Object.defineProperty, Tf = Object.getOwnPropertyDescriptor, Zt = (i, t, e, s) => {
|
|
11322
11316
|
for (var n = s > 1 ? void 0 : s ? Tf(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
11323
11317
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
11324
11318
|
return s && n && Af(t, e, n), n;
|
|
@@ -11360,29 +11354,29 @@ let yt = class extends J {
|
|
|
11360
11354
|
return this.renderDataItem();
|
|
11361
11355
|
}
|
|
11362
11356
|
};
|
|
11363
|
-
yt.styles = [
|
|
11364
|
-
|
|
11357
|
+
yt.styles = [Mf, yf, wf, vf, If];
|
|
11358
|
+
Zt([
|
|
11365
11359
|
z({ attribute: "data-header" })
|
|
11366
11360
|
], yt.prototype, "dataHeader", 2);
|
|
11367
|
-
|
|
11361
|
+
Zt([
|
|
11368
11362
|
z({ attribute: "data-text" })
|
|
11369
11363
|
], yt.prototype, "dataText", 2);
|
|
11370
|
-
|
|
11364
|
+
Zt([
|
|
11371
11365
|
z({ attribute: "svg-icon-src" })
|
|
11372
11366
|
], yt.prototype, "datCardIconSrc", 2);
|
|
11373
|
-
|
|
11367
|
+
Zt([
|
|
11374
11368
|
z({ attribute: "illustration-icon-src" })
|
|
11375
11369
|
], yt.prototype, "illustrationIconSrc", 2);
|
|
11376
|
-
|
|
11370
|
+
Zt([
|
|
11377
11371
|
z({ type: Boolean, attribute: "without-icon" })
|
|
11378
11372
|
], yt.prototype, "withoutIcon", 2);
|
|
11379
|
-
|
|
11373
|
+
Zt([
|
|
11380
11374
|
z({ type: Boolean, attribute: "without-illustration" })
|
|
11381
11375
|
], yt.prototype, "withoutIllustration", 2);
|
|
11382
|
-
|
|
11376
|
+
Zt([
|
|
11383
11377
|
z({ type: Boolean, attribute: "without-icon-illustration" })
|
|
11384
11378
|
], yt.prototype, "withoutIconandIllustration", 2);
|
|
11385
|
-
yt =
|
|
11379
|
+
yt = Zt([
|
|
11386
11380
|
q("genus-data-list-item")
|
|
11387
11381
|
], yt);
|
|
11388
11382
|
const Df = () => {
|
|
@@ -11436,16 +11430,16 @@ const Df = () => {
|
|
|
11436
11430
|
};
|
|
11437
11431
|
Df();
|
|
11438
11432
|
export {
|
|
11439
|
-
|
|
11433
|
+
Mt as GenusChart,
|
|
11440
11434
|
fe as GenusCheckBox,
|
|
11441
11435
|
Cf as GenusCheckBoxGroup,
|
|
11442
|
-
|
|
11436
|
+
$t as GenusDataCard,
|
|
11443
11437
|
yt as GenusDataListItem,
|
|
11444
11438
|
jf as GenusDataTable,
|
|
11445
11439
|
Of as GenusDropDownSelect,
|
|
11446
|
-
|
|
11440
|
+
Nt as GenusRadioBtnGroup,
|
|
11447
11441
|
Nf as GenusTabs,
|
|
11448
|
-
|
|
11442
|
+
_t as GenusTextArea,
|
|
11449
11443
|
X as GenusTextBox,
|
|
11450
11444
|
be as GenusToastMessage,
|
|
11451
11445
|
Sf as GenusWizard
|