@feedmepos/mf-report 5.4.33 → 5.4.34-beta.0
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/{App-2BRUGWJJ.js → App-ixpkPHkE.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-wgBB4qb8.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Xex8S8XX.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-cyN-muCp.js → Default.vue_vue_type_script_setup_true_lang-B3PsiD6a.js} +2 -2
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-CTjzDSfG.js → DynamicWidget.vue_vue_type_script_setup_true_lang-FIM7a1Po.js} +4 -4
- package/dist/{InsightView-BosbA6Sl.js → InsightView-B3J-F3ol.js} +789 -773
- package/dist/{Integration-BbQaSL-I.js → Integration-tBzSH2YL.js} +3 -3
- package/dist/{Integrations-RluH7jrn.js → Integrations-B6ACZi86.js} +3 -3
- package/dist/{Layout-DHgiPmpl.js → Layout-OAo1OSMP.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DhtIeS_R.js → LocationSelect.vue_vue_type_script_setup_true_lang-BRAZAoJz.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CCV1Xx_L.js → MenuTab.vue_vue_type_script_setup_true_lang-BdDMXz7S.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B3JtwS6v.js → NavigationTab.vue_vue_type_script_setup_true_lang-B6VAf7nH.js} +2199 -2196
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js → NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js} +1 -1
- package/dist/{OverviewView-B6Yw6KMM.js → OverviewView-CVJC6t4j.js} +5 -5
- package/dist/{Report-DJuY9uPy.js → Report-BsP2QXAG.js} +4 -4
- package/dist/{ReportEditor-USBsc8g6.js → ReportEditor-CQw9jHcW.js} +5 -5
- package/dist/{ReportView-CtdAkdIm.js → ReportView-B7aDzeFz.js} +7 -7
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CXYvLXnR.js → SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js} +1 -1
- package/dist/{Setting-DFtNerB5.js → Setting-Dzt3TbHW.js} +4 -4
- package/dist/{TileEditor-DCpT3eKw.js → TileEditor-DYJmSgIT.js} +8 -8
- package/dist/{TransitionFade-BuCdzzvM.js → TransitionFade-CpucF6O6.js} +4 -4
- package/dist/app.js +11 -11
- package/dist/{global-loader-KvOGLx9k.js → global-loader-BqFQzk46.js} +1 -1
- package/dist/{index-CDf9QIwq.js → index-Cmh079Bh.js} +1 -1
- package/dist/{report-schema-Zw8e6-XZ.js → report-schema-OJAFh4P6.js} +1 -1
- package/dist/{timeFormat-ClH5miB0.js → timeFormat-CAyeO7-a.js} +1 -1
- package/dist/{v4-B3tAchpF.js → v4-BOOklPpL.js} +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
var Zo = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var k = (i, t, e) =>
|
|
4
|
-
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-
|
|
8
|
-
import { storeToRefs as
|
|
2
|
+
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-B3PsiD6a.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Xex8S8XX.js";
|
|
7
|
+
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-BqFQzk46.js";
|
|
8
|
+
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { c as ys } from "./index-
|
|
11
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as la } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
|
|
10
|
+
import { c as ys } from "./index-Cmh079Bh.js";
|
|
11
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
12
|
+
import { _ as la } from "./LocationSelect.vue_vue_type_script_setup_true_lang-BRAZAoJz.js";
|
|
13
|
+
import { useCoreStore as ca } from "@feedmepos/mf-common";
|
|
14
|
+
import { G as ha } from "./NavigationTab.vue_vue_type_script_setup_true_lang-B6VAf7nH.js";
|
|
15
|
+
function da({ start: i, end: t }) {
|
|
14
16
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
15
17
|
}
|
|
16
18
|
$t(!0);
|
|
17
|
-
const
|
|
18
|
-
const { businessId: t } =
|
|
19
|
+
const ua = async (i) => {
|
|
20
|
+
const { businessId: t } = Jn(Kn());
|
|
19
21
|
if (t) {
|
|
20
22
|
const e = {
|
|
21
23
|
fetchType: Gn.Post,
|
|
@@ -29,7 +31,7 @@ const ha = async (i) => {
|
|
|
29
31
|
return qn.fetch(e);
|
|
30
32
|
} else
|
|
31
33
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
32
|
-
},
|
|
34
|
+
}, fa = async (i) => {
|
|
33
35
|
const { businessId: t } = Kn(), e = {
|
|
34
36
|
fetchType: Gn.Post,
|
|
35
37
|
url: `${t}/insights/feedbacks`,
|
|
@@ -59,8 +61,8 @@ function yt(i) {
|
|
|
59
61
|
function vs(i) {
|
|
60
62
|
return Pt(Re(i * 100), 0, 100);
|
|
61
63
|
}
|
|
62
|
-
const rt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, Vi = [..."0123456789ABCDEF"],
|
|
63
|
-
function
|
|
64
|
+
const rt = { 0: 0, 1: 1, 2: 2, 3: 3, 4: 4, 5: 5, 6: 6, 7: 7, 8: 8, 9: 9, A: 10, B: 11, C: 12, D: 13, E: 14, F: 15, a: 10, b: 11, c: 12, d: 13, e: 14, f: 15 }, Vi = [..."0123456789ABCDEF"], ga = (i) => Vi[i & 15], pa = (i) => Vi[(i & 240) >> 4] + Vi[i & 15], Ie = (i) => (i & 240) >> 4 === (i & 15), ma = (i) => Ie(i.r) && Ie(i.g) && Ie(i.b) && Ie(i.a);
|
|
65
|
+
function ba(i) {
|
|
64
66
|
var t = i.length, e;
|
|
65
67
|
return i[0] === "#" && (t === 4 || t === 5 ? e = {
|
|
66
68
|
r: 255 & rt[i[1]] * 17,
|
|
@@ -74,69 +76,69 @@ function pa(i) {
|
|
|
74
76
|
a: t === 9 ? rt[i[7]] << 4 | rt[i[8]] : 255
|
|
75
77
|
})), e;
|
|
76
78
|
}
|
|
77
|
-
const
|
|
78
|
-
function
|
|
79
|
-
var t =
|
|
80
|
-
return i ? "#" + t(i.r) + t(i.g) + t(i.b) +
|
|
79
|
+
const xa = (i, t) => i < 255 ? t(i) : "";
|
|
80
|
+
function _a(i) {
|
|
81
|
+
var t = ma(i) ? ga : pa;
|
|
82
|
+
return i ? "#" + t(i.r) + t(i.g) + t(i.b) + xa(i.a, t) : void 0;
|
|
81
83
|
}
|
|
82
|
-
const
|
|
83
|
-
function
|
|
84
|
+
const ya = /^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
85
|
+
function Qn(i, t, e) {
|
|
84
86
|
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);
|
|
85
87
|
return [n(0), n(8), n(4)];
|
|
86
88
|
}
|
|
87
|
-
function
|
|
89
|
+
function va(i, t, e) {
|
|
88
90
|
const s = (n, o = (n + i / 60) % 6) => e - e * t * Math.max(Math.min(o, 4 - o, 1), 0);
|
|
89
91
|
return [s(5), s(3), s(1)];
|
|
90
92
|
}
|
|
91
|
-
function
|
|
92
|
-
const s =
|
|
93
|
+
function ka(i, t, e) {
|
|
94
|
+
const s = Qn(i, 1, 0.5);
|
|
93
95
|
let n;
|
|
94
96
|
for (t + e > 1 && (n = 1 / (t + e), t *= n, e *= n), n = 0; n < 3; n++)
|
|
95
97
|
s[n] *= 1 - t - e, s[n] += t;
|
|
96
98
|
return s;
|
|
97
99
|
}
|
|
98
|
-
function
|
|
100
|
+
function wa(i, t, e, s, n) {
|
|
99
101
|
return i === n ? (t - e) / s + (t < e ? 6 : 0) : t === n ? (e - i) / s + 2 : (i - t) / s + 4;
|
|
100
102
|
}
|
|
101
103
|
function ss(i) {
|
|
102
104
|
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;
|
|
103
105
|
let l, c, h;
|
|
104
|
-
return o !== a && (h = o - a, c = r > 0.5 ? h / (2 - o - a) : h / (o + a), l =
|
|
106
|
+
return o !== a && (h = o - a, c = r > 0.5 ? h / (2 - o - a) : h / (o + a), l = wa(e, s, n, h, o), l = l * 60 + 0.5), [l | 0, c || 0, r];
|
|
105
107
|
}
|
|
106
108
|
function ns(i, t, e, s) {
|
|
107
109
|
return (Array.isArray(t) ? i(t[0], t[1], t[2]) : i(t, e, s)).map(Ot);
|
|
108
110
|
}
|
|
109
111
|
function os(i, t, e) {
|
|
110
|
-
return ns(
|
|
112
|
+
return ns(Qn, i, t, e);
|
|
111
113
|
}
|
|
112
|
-
function
|
|
113
|
-
return ns(
|
|
114
|
+
function Ma(i, t, e) {
|
|
115
|
+
return ns(ka, i, t, e);
|
|
114
116
|
}
|
|
115
|
-
function
|
|
116
|
-
return ns(
|
|
117
|
+
function Sa(i, t, e) {
|
|
118
|
+
return ns(va, i, t, e);
|
|
117
119
|
}
|
|
118
120
|
function to(i) {
|
|
119
121
|
return (i % 360 + 360) % 360;
|
|
120
122
|
}
|
|
121
|
-
function
|
|
122
|
-
const t =
|
|
123
|
+
function Pa(i) {
|
|
124
|
+
const t = ya.exec(i);
|
|
123
125
|
let e = 255, s;
|
|
124
126
|
if (!t)
|
|
125
127
|
return;
|
|
126
128
|
t[5] !== s && (e = t[6] ? fe(+t[5]) : Ot(+t[5]));
|
|
127
129
|
const n = to(+t[2]), o = +t[3] / 100, a = +t[4] / 100;
|
|
128
|
-
return t[1] === "hwb" ? s =
|
|
130
|
+
return t[1] === "hwb" ? s = Ma(n, o, a) : t[1] === "hsv" ? s = Sa(n, o, a) : s = os(n, o, a), {
|
|
129
131
|
r: s[0],
|
|
130
132
|
g: s[1],
|
|
131
133
|
b: s[2],
|
|
132
134
|
a: e
|
|
133
135
|
};
|
|
134
136
|
}
|
|
135
|
-
function
|
|
137
|
+
function Ca(i, t) {
|
|
136
138
|
var e = ss(i);
|
|
137
139
|
e[0] = to(e[0] + t), e = os(e), i.r = e[0], i.g = e[1], i.b = e[2];
|
|
138
140
|
}
|
|
139
|
-
function
|
|
141
|
+
function Da(i) {
|
|
140
142
|
if (!i)
|
|
141
143
|
return;
|
|
142
144
|
const t = ss(i), e = t[0], s = vs(t[1]), n = vs(t[2]);
|
|
@@ -320,7 +322,7 @@ const ks = {
|
|
|
320
322
|
Lw: "ffff00",
|
|
321
323
|
LwgYF: "9acd32"
|
|
322
324
|
};
|
|
323
|
-
function
|
|
325
|
+
function Aa() {
|
|
324
326
|
const i = {}, t = Object.keys(ws), e = Object.keys(ks);
|
|
325
327
|
let s, n, o, a, r;
|
|
326
328
|
for (s = 0; s < t.length; s++) {
|
|
@@ -331,8 +333,8 @@ function Ca() {
|
|
|
331
333
|
return i;
|
|
332
334
|
}
|
|
333
335
|
let ze;
|
|
334
|
-
function
|
|
335
|
-
ze || (ze =
|
|
336
|
+
function Oa(i) {
|
|
337
|
+
ze || (ze = Aa(), ze.transparent = [0, 0, 0, 0]);
|
|
336
338
|
const t = ze[i.toLowerCase()];
|
|
337
339
|
return t && {
|
|
338
340
|
r: t[0],
|
|
@@ -341,9 +343,9 @@ function Da(i) {
|
|
|
341
343
|
a: t.length === 4 ? t[3] : 255
|
|
342
344
|
};
|
|
343
345
|
}
|
|
344
|
-
const
|
|
345
|
-
function
|
|
346
|
-
const t =
|
|
346
|
+
const Ta = /^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;
|
|
347
|
+
function La(i) {
|
|
348
|
+
const t = Ta.exec(i);
|
|
347
349
|
let e = 255, s, n, o;
|
|
348
350
|
if (t) {
|
|
349
351
|
if (t[7] !== s) {
|
|
@@ -358,16 +360,16 @@ function Oa(i) {
|
|
|
358
360
|
};
|
|
359
361
|
}
|
|
360
362
|
}
|
|
361
|
-
function
|
|
363
|
+
function Ra(i) {
|
|
362
364
|
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${yt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
363
365
|
}
|
|
364
|
-
const wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055,
|
|
365
|
-
function
|
|
366
|
-
const s =
|
|
366
|
+
const wi = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Qt = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
367
|
+
function Fa(i, t, e) {
|
|
368
|
+
const s = Qt(yt(i.r)), n = Qt(yt(i.g)), o = Qt(yt(i.b));
|
|
367
369
|
return {
|
|
368
|
-
r: Ot(wi(s + e * (
|
|
369
|
-
g: Ot(wi(n + e * (
|
|
370
|
-
b: Ot(wi(o + e * (
|
|
370
|
+
r: Ot(wi(s + e * (Qt(yt(t.r)) - s))),
|
|
371
|
+
g: Ot(wi(n + e * (Qt(yt(t.g)) - n))),
|
|
372
|
+
b: Ot(wi(o + e * (Qt(yt(t.b)) - o))),
|
|
371
373
|
a: i.a + e * (t.a - i.a)
|
|
372
374
|
};
|
|
373
375
|
}
|
|
@@ -384,8 +386,8 @@ function Ms(i) {
|
|
|
384
386
|
var t = { r: 0, g: 0, b: 0, a: 255 };
|
|
385
387
|
return Array.isArray(i) ? i.length >= 3 && (t = { r: i[0], g: i[1], b: i[2], a: 255 }, i.length > 3 && (t.a = Ot(i[3]))) : (t = eo(i, { r: 0, g: 0, b: 0, a: 1 }), t.a = Ot(t.a)), t;
|
|
386
388
|
}
|
|
387
|
-
function
|
|
388
|
-
return i.charAt(0) === "r" ?
|
|
389
|
+
function Ea(i) {
|
|
390
|
+
return i.charAt(0) === "r" ? La(i) : Pa(i);
|
|
389
391
|
}
|
|
390
392
|
class Se {
|
|
391
393
|
constructor(t) {
|
|
@@ -393,7 +395,7 @@ class Se {
|
|
|
393
395
|
return t;
|
|
394
396
|
const e = typeof t;
|
|
395
397
|
let s;
|
|
396
|
-
e === "object" ? s = Ms(t) : e === "string" && (s =
|
|
398
|
+
e === "object" ? s = Ms(t) : e === "string" && (s = ba(t) || Oa(t) || Ea(t)), this._rgb = s, this._valid = !!s;
|
|
397
399
|
}
|
|
398
400
|
get valid() {
|
|
399
401
|
return this._valid;
|
|
@@ -406,13 +408,13 @@ class Se {
|
|
|
406
408
|
this._rgb = Ms(t);
|
|
407
409
|
}
|
|
408
410
|
rgbString() {
|
|
409
|
-
return this._valid ?
|
|
411
|
+
return this._valid ? Ra(this._rgb) : void 0;
|
|
410
412
|
}
|
|
411
413
|
hexString() {
|
|
412
|
-
return this._valid ?
|
|
414
|
+
return this._valid ? _a(this._rgb) : void 0;
|
|
413
415
|
}
|
|
414
416
|
hslString() {
|
|
415
|
-
return this._valid ?
|
|
417
|
+
return this._valid ? Da(this._rgb) : void 0;
|
|
416
418
|
}
|
|
417
419
|
mix(t, e) {
|
|
418
420
|
if (t) {
|
|
@@ -424,7 +426,7 @@ class Se {
|
|
|
424
426
|
return this;
|
|
425
427
|
}
|
|
426
428
|
interpolate(t, e) {
|
|
427
|
-
return t && (this._rgb =
|
|
429
|
+
return t && (this._rgb = Fa(this._rgb, t._rgb, e)), this;
|
|
428
430
|
}
|
|
429
431
|
clone() {
|
|
430
432
|
return new Se(this.rgb);
|
|
@@ -461,7 +463,7 @@ class Se {
|
|
|
461
463
|
return Be(this._rgb, 1, -t), this;
|
|
462
464
|
}
|
|
463
465
|
rotate(t) {
|
|
464
|
-
return
|
|
466
|
+
return Ca(this._rgb, t), this;
|
|
465
467
|
}
|
|
466
468
|
}
|
|
467
469
|
/*!
|
|
@@ -472,7 +474,7 @@ class Se {
|
|
|
472
474
|
*/
|
|
473
475
|
function mt() {
|
|
474
476
|
}
|
|
475
|
-
const
|
|
477
|
+
const Ia = /* @__PURE__ */ (() => {
|
|
476
478
|
let i = 0;
|
|
477
479
|
return () => i++;
|
|
478
480
|
})();
|
|
@@ -497,7 +499,7 @@ function ot(i, t) {
|
|
|
497
499
|
function C(i, t) {
|
|
498
500
|
return typeof i > "u" ? t : i;
|
|
499
501
|
}
|
|
500
|
-
const
|
|
502
|
+
const za = (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;
|
|
501
503
|
function z(i, t, e) {
|
|
502
504
|
if (i && typeof i.call == "function")
|
|
503
505
|
return i.apply(e, t);
|
|
@@ -539,7 +541,7 @@ function so(i) {
|
|
|
539
541
|
"constructor"
|
|
540
542
|
].indexOf(i) === -1;
|
|
541
543
|
}
|
|
542
|
-
function
|
|
544
|
+
function Ba(i, t, e, s) {
|
|
543
545
|
if (!so(i))
|
|
544
546
|
return;
|
|
545
547
|
const n = t[i], o = e[i];
|
|
@@ -552,7 +554,7 @@ function Pe(i, t, e) {
|
|
|
552
554
|
if (!O(i))
|
|
553
555
|
return i;
|
|
554
556
|
e = e || {};
|
|
555
|
-
const o = e.merger ||
|
|
557
|
+
const o = e.merger || Ba;
|
|
556
558
|
let a;
|
|
557
559
|
for (let r = 0; r < n; ++r) {
|
|
558
560
|
if (a = s[r], !O(a))
|
|
@@ -565,10 +567,10 @@ function Pe(i, t, e) {
|
|
|
565
567
|
}
|
|
566
568
|
function _e(i, t) {
|
|
567
569
|
return Pe(i, t, {
|
|
568
|
-
merger:
|
|
570
|
+
merger: Va
|
|
569
571
|
});
|
|
570
572
|
}
|
|
571
|
-
function
|
|
573
|
+
function Va(i, t, e) {
|
|
572
574
|
if (!so(i))
|
|
573
575
|
return;
|
|
574
576
|
const s = t[i], n = e[i];
|
|
@@ -581,15 +583,15 @@ const Ss = {
|
|
|
581
583
|
x: (i) => i.x,
|
|
582
584
|
y: (i) => i.y
|
|
583
585
|
};
|
|
584
|
-
function
|
|
586
|
+
function Wa(i) {
|
|
585
587
|
const t = i.split("."), e = [];
|
|
586
588
|
let s = "";
|
|
587
589
|
for (const n of t)
|
|
588
590
|
s += n, s.endsWith("\\") ? s = s.slice(0, -1) + "." : (e.push(s), s = "");
|
|
589
591
|
return e;
|
|
590
592
|
}
|
|
591
|
-
function
|
|
592
|
-
const t =
|
|
593
|
+
function Na(i) {
|
|
594
|
+
const t = Wa(i);
|
|
593
595
|
return (e) => {
|
|
594
596
|
for (const s of t) {
|
|
595
597
|
if (s === "")
|
|
@@ -600,7 +602,7 @@ function Va(i) {
|
|
|
600
602
|
};
|
|
601
603
|
}
|
|
602
604
|
function Tt(i, t) {
|
|
603
|
-
return (Ss[t] || (Ss[t] =
|
|
605
|
+
return (Ss[t] || (Ss[t] = Na(t)))(i);
|
|
604
606
|
}
|
|
605
607
|
function as(i) {
|
|
606
608
|
return i.charAt(0).toUpperCase() + i.slice(1);
|
|
@@ -613,10 +615,10 @@ const Ce = (i) => typeof i < "u", Lt = (i) => typeof i == "function", Ps = (i, t
|
|
|
613
615
|
return !1;
|
|
614
616
|
return !0;
|
|
615
617
|
};
|
|
616
|
-
function
|
|
618
|
+
function Ha(i) {
|
|
617
619
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
618
620
|
}
|
|
619
|
-
const V = Math.PI, B = 2 * V,
|
|
621
|
+
const V = Math.PI, B = 2 * V, ja = B + V, hi = Number.POSITIVE_INFINITY, $a = V / 180, Y = V / 2, It = V / 4, Cs = V * 2 / 3, Ct = Math.log10, pt = Math.sign;
|
|
620
622
|
function ye(i, t, e) {
|
|
621
623
|
return Math.abs(i - t) < e;
|
|
622
624
|
}
|
|
@@ -626,7 +628,7 @@ function Ds(i) {
|
|
|
626
628
|
const e = Math.pow(10, Math.floor(Ct(i))), s = i / e;
|
|
627
629
|
return (s <= 1 ? 1 : s <= 2 ? 2 : s <= 5 ? 5 : 10) * e;
|
|
628
630
|
}
|
|
629
|
-
function
|
|
631
|
+
function Ya(i) {
|
|
630
632
|
const t = [], e = Math.sqrt(i);
|
|
631
633
|
let s;
|
|
632
634
|
for (s = 1; s < e; s++)
|
|
@@ -636,7 +638,7 @@ function ja(i) {
|
|
|
636
638
|
function ie(i) {
|
|
637
639
|
return !isNaN(parseFloat(i)) && isFinite(i);
|
|
638
640
|
}
|
|
639
|
-
function
|
|
641
|
+
function Ua(i, t) {
|
|
640
642
|
const e = Math.round(i);
|
|
641
643
|
return e - t <= i && e + t >= i;
|
|
642
644
|
}
|
|
@@ -670,8 +672,8 @@ function oo(i, t) {
|
|
|
670
672
|
function Wi(i, t) {
|
|
671
673
|
return Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2));
|
|
672
674
|
}
|
|
673
|
-
function
|
|
674
|
-
return (i - t +
|
|
675
|
+
function Xa(i, t) {
|
|
676
|
+
return (i - t + ja) % B - V;
|
|
675
677
|
}
|
|
676
678
|
function at(i) {
|
|
677
679
|
return (i % B + B) % B;
|
|
@@ -683,7 +685,7 @@ function De(i, t, e, s) {
|
|
|
683
685
|
function K(i, t, e) {
|
|
684
686
|
return Math.max(t, Math.min(e, i));
|
|
685
687
|
}
|
|
686
|
-
function
|
|
688
|
+
function Ka(i) {
|
|
687
689
|
return K(i, -32768, 32767);
|
|
688
690
|
}
|
|
689
691
|
function kt(i, t, e, s = 1e-6) {
|
|
@@ -702,8 +704,8 @@ function ls(i, t, e) {
|
|
|
702
704
|
const wt = (i, t, e, s) => ls(i, e, s ? (n) => {
|
|
703
705
|
const o = i[n][t];
|
|
704
706
|
return o < e || o === e && i[n + 1][t] === e;
|
|
705
|
-
} : (n) => i[n][t] < e),
|
|
706
|
-
function
|
|
707
|
+
} : (n) => i[n][t] < e), qa = (i, t, e) => ls(i, e, (s) => i[s][t] >= e);
|
|
708
|
+
function Ga(i, t, e) {
|
|
707
709
|
let s = 0, n = i.length;
|
|
708
710
|
for (; s < n && i[s] < t; )
|
|
709
711
|
s++;
|
|
@@ -718,7 +720,7 @@ const ao = [
|
|
|
718
720
|
"splice",
|
|
719
721
|
"unshift"
|
|
720
722
|
];
|
|
721
|
-
function
|
|
723
|
+
function Za(i, t) {
|
|
722
724
|
if (i._chartjs) {
|
|
723
725
|
i._chartjs.listeners.push(t);
|
|
724
726
|
return;
|
|
@@ -771,13 +773,13 @@ function co(i, t) {
|
|
|
771
773
|
}));
|
|
772
774
|
};
|
|
773
775
|
}
|
|
774
|
-
function
|
|
776
|
+
function Ja(i, t) {
|
|
775
777
|
let e;
|
|
776
778
|
return function(...s) {
|
|
777
779
|
return t ? (clearTimeout(e), e = setTimeout(i, t, s)) : i.apply(this, s), t;
|
|
778
780
|
};
|
|
779
781
|
}
|
|
780
|
-
const cs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center",
|
|
782
|
+
const cs = (i) => i === "start" ? "left" : i === "end" ? "right" : "center", J = (i, t, e) => i === "start" ? t : i === "end" ? e : (t + e) / 2, Qa = (i, t, e, s) => i === (s ? "left" : "right") ? e : i === "center" ? (t + e) / 2 : t;
|
|
781
783
|
function ho(i, t, e) {
|
|
782
784
|
const s = t.length;
|
|
783
785
|
let n = 0, o = s;
|
|
@@ -869,18 +871,18 @@ function Rs(i) {
|
|
|
869
871
|
function Mi(i) {
|
|
870
872
|
return hs(i) ? i : new Se(i).saturate(0.5).darken(0.1).hexString();
|
|
871
873
|
}
|
|
872
|
-
const
|
|
874
|
+
const tr = [
|
|
873
875
|
"x",
|
|
874
876
|
"y",
|
|
875
877
|
"borderWidth",
|
|
876
878
|
"radius",
|
|
877
879
|
"tension"
|
|
878
|
-
],
|
|
880
|
+
], er = [
|
|
879
881
|
"color",
|
|
880
882
|
"borderColor",
|
|
881
883
|
"backgroundColor"
|
|
882
884
|
];
|
|
883
|
-
function
|
|
885
|
+
function ir(i) {
|
|
884
886
|
i.set("animation", {
|
|
885
887
|
delay: void 0,
|
|
886
888
|
duration: 1e3,
|
|
@@ -897,11 +899,11 @@ function tr(i) {
|
|
|
897
899
|
}), i.set("animations", {
|
|
898
900
|
colors: {
|
|
899
901
|
type: "color",
|
|
900
|
-
properties:
|
|
902
|
+
properties: er
|
|
901
903
|
},
|
|
902
904
|
numbers: {
|
|
903
905
|
type: "number",
|
|
904
|
-
properties:
|
|
906
|
+
properties: tr
|
|
905
907
|
}
|
|
906
908
|
}), i.describe("animations", {
|
|
907
909
|
_fallback: "animation"
|
|
@@ -941,7 +943,7 @@ function tr(i) {
|
|
|
941
943
|
}
|
|
942
944
|
});
|
|
943
945
|
}
|
|
944
|
-
function
|
|
946
|
+
function sr(i) {
|
|
945
947
|
i.set("layout", {
|
|
946
948
|
autoPadding: !0,
|
|
947
949
|
padding: {
|
|
@@ -953,14 +955,14 @@ function er(i) {
|
|
|
953
955
|
});
|
|
954
956
|
}
|
|
955
957
|
const Fs = /* @__PURE__ */ new Map();
|
|
956
|
-
function
|
|
958
|
+
function nr(i, t) {
|
|
957
959
|
t = t || {};
|
|
958
960
|
const e = i + JSON.stringify(t);
|
|
959
961
|
let s = Fs.get(e);
|
|
960
962
|
return s || (s = new Intl.NumberFormat(i, t), Fs.set(e, s)), s;
|
|
961
963
|
}
|
|
962
964
|
function Fe(i, t, e) {
|
|
963
|
-
return
|
|
965
|
+
return nr(t, e).format(i);
|
|
964
966
|
}
|
|
965
967
|
const fo = {
|
|
966
968
|
values(i) {
|
|
@@ -973,7 +975,7 @@ const fo = {
|
|
|
973
975
|
let n, o = i;
|
|
974
976
|
if (e.length > 1) {
|
|
975
977
|
const c = Math.max(Math.abs(e[0].value), Math.abs(e[e.length - 1].value));
|
|
976
|
-
(c < 1e-4 || c > 1e15) && (n = "scientific"), o =
|
|
978
|
+
(c < 1e-4 || c > 1e15) && (n = "scientific"), o = or(i, e);
|
|
977
979
|
}
|
|
978
980
|
const a = Ct(Math.abs(o)), r = isNaN(a) ? 1 : Math.max(Math.min(-1 * Math.floor(a), 20), 0), l = {
|
|
979
981
|
notation: n,
|
|
@@ -996,14 +998,14 @@ const fo = {
|
|
|
996
998
|
].includes(s) || t > 0.8 * e.length ? fo.numeric.call(this, i, t, e) : "";
|
|
997
999
|
}
|
|
998
1000
|
};
|
|
999
|
-
function
|
|
1001
|
+
function or(i, t) {
|
|
1000
1002
|
let e = t.length > 3 ? t[2].value - t[1].value : t[1].value - t[0].value;
|
|
1001
1003
|
return Math.abs(e) >= 1 && i !== Math.floor(i) && (e = i - Math.floor(i)), e;
|
|
1002
1004
|
}
|
|
1003
1005
|
var mi = {
|
|
1004
1006
|
formatters: fo
|
|
1005
1007
|
};
|
|
1006
|
-
function
|
|
1008
|
+
function ar(i) {
|
|
1007
1009
|
i.set("scale", {
|
|
1008
1010
|
display: !0,
|
|
1009
1011
|
offset: !1,
|
|
@@ -1081,7 +1083,7 @@ function ke(i, t) {
|
|
|
1081
1083
|
function Si(i, t, e) {
|
|
1082
1084
|
return typeof t == "string" ? Pe(ke(i, t), e) : Pe(ke(i, ""), t);
|
|
1083
1085
|
}
|
|
1084
|
-
class
|
|
1086
|
+
class rr {
|
|
1085
1087
|
constructor(t, e) {
|
|
1086
1088
|
this.animation = void 0, this.backgroundColor = "rgba(0,0,0,0.1)", this.borderColor = "rgba(0,0,0,0.1)", this.color = "#666", this.datasets = {}, this.devicePixelRatio = (s) => s.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
|
|
1087
1089
|
"mousemove",
|
|
@@ -1136,7 +1138,7 @@ class or {
|
|
|
1136
1138
|
t.forEach((e) => e(this));
|
|
1137
1139
|
}
|
|
1138
1140
|
}
|
|
1139
|
-
var H = /* @__PURE__ */ new
|
|
1141
|
+
var H = /* @__PURE__ */ new rr({
|
|
1140
1142
|
_scriptable: (i) => !i.startsWith("on"),
|
|
1141
1143
|
_indexable: (i) => i !== "events",
|
|
1142
1144
|
hover: {
|
|
@@ -1147,18 +1149,18 @@ var H = /* @__PURE__ */ new or({
|
|
|
1147
1149
|
_indexable: !1
|
|
1148
1150
|
}
|
|
1149
1151
|
}, [
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1152
|
+
ir,
|
|
1153
|
+
sr,
|
|
1154
|
+
ar
|
|
1153
1155
|
]);
|
|
1154
|
-
function
|
|
1156
|
+
function lr(i) {
|
|
1155
1157
|
return !i || L(i.size) || L(i.family) ? null : (i.style ? i.style + " " : "") + (i.weight ? i.weight + " " : "") + i.size + "px " + i.family;
|
|
1156
1158
|
}
|
|
1157
1159
|
function di(i, t, e, s, n) {
|
|
1158
1160
|
let o = t[n];
|
|
1159
1161
|
return o || (o = t[n] = i.measureText(n).width, e.push(n)), o > s && (s = o), s;
|
|
1160
1162
|
}
|
|
1161
|
-
function
|
|
1163
|
+
function cr(i, t, e, s) {
|
|
1162
1164
|
s = s || {};
|
|
1163
1165
|
let n = s.data = s.data || {}, o = s.garbageCollect = s.garbageCollect || [];
|
|
1164
1166
|
s.font !== t && (n = s.data = {}, o = s.garbageCollect = [], s.font = t), i.save(), i.font = t;
|
|
@@ -1193,7 +1195,7 @@ function Hi(i, t, e, s) {
|
|
|
1193
1195
|
function go(i, t, e, s, n) {
|
|
1194
1196
|
let o, a, r, l, c, h, d, u;
|
|
1195
1197
|
const f = t.pointStyle, g = t.rotation, p = t.radius;
|
|
1196
|
-
let m = (g || 0) *
|
|
1198
|
+
let m = (g || 0) * $a;
|
|
1197
1199
|
if (f && typeof f == "object" && (o = f.toString(), o === "[object HTMLImageElement]" || o === "[object HTMLCanvasElement]")) {
|
|
1198
1200
|
i.save(), i.translate(e, s), i.rotate(m), i.drawImage(f, -f.width / 2, -f.height / 2, f.width, f.height), i.restore();
|
|
1199
1201
|
return;
|
|
@@ -1248,7 +1250,7 @@ function bi(i, t) {
|
|
|
1248
1250
|
function xi(i) {
|
|
1249
1251
|
i.restore();
|
|
1250
1252
|
}
|
|
1251
|
-
function
|
|
1253
|
+
function hr(i, t, e, s, n) {
|
|
1252
1254
|
if (!t)
|
|
1253
1255
|
return i.lineTo(e.x, e.y);
|
|
1254
1256
|
if (n === "middle") {
|
|
@@ -1257,21 +1259,21 @@ function lr(i, t, e, s, n) {
|
|
|
1257
1259
|
} else n === "after" != !!s ? i.lineTo(t.x, e.y) : i.lineTo(e.x, t.y);
|
|
1258
1260
|
i.lineTo(e.x, e.y);
|
|
1259
1261
|
}
|
|
1260
|
-
function
|
|
1262
|
+
function dr(i, t, e, s) {
|
|
1261
1263
|
if (!t)
|
|
1262
1264
|
return i.lineTo(e.x, e.y);
|
|
1263
1265
|
i.bezierCurveTo(s ? t.cp1x : t.cp2x, s ? t.cp1y : t.cp2y, s ? e.cp2x : e.cp1x, s ? e.cp2y : e.cp1y, e.x, e.y);
|
|
1264
1266
|
}
|
|
1265
|
-
function
|
|
1267
|
+
function ur(i, t) {
|
|
1266
1268
|
t.translation && i.translate(t.translation[0], t.translation[1]), L(t.rotation) || i.rotate(t.rotation), t.color && (i.fillStyle = t.color), t.textAlign && (i.textAlign = t.textAlign), t.textBaseline && (i.textBaseline = t.textBaseline);
|
|
1267
1269
|
}
|
|
1268
|
-
function
|
|
1270
|
+
function fr(i, t, e, s, n) {
|
|
1269
1271
|
if (n.strikethrough || n.underline) {
|
|
1270
1272
|
const o = i.measureText(s), a = t - o.actualBoundingBoxLeft, r = t + o.actualBoundingBoxRight, l = e - o.actualBoundingBoxAscent, c = e + o.actualBoundingBoxDescent, h = n.strikethrough ? (l + c) / 2 : c;
|
|
1271
1273
|
i.strokeStyle = i.fillStyle, i.beginPath(), i.lineWidth = n.decorationWidth || 2, i.moveTo(a, h), i.lineTo(r, h), i.stroke();
|
|
1272
1274
|
}
|
|
1273
1275
|
}
|
|
1274
|
-
function
|
|
1276
|
+
function gr(i, t) {
|
|
1275
1277
|
const e = i.fillStyle;
|
|
1276
1278
|
i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
|
|
1277
1279
|
}
|
|
@@ -1280,17 +1282,17 @@ function qt(i, t, e, s, n, o = {}) {
|
|
|
1280
1282
|
t
|
|
1281
1283
|
], r = o.strokeWidth > 0 && o.strokeColor !== "";
|
|
1282
1284
|
let l, c;
|
|
1283
|
-
for (i.save(), i.font = n.string,
|
|
1284
|
-
c = a[l], o.backdrop &&
|
|
1285
|
+
for (i.save(), i.font = n.string, ur(i, o), l = 0; l < a.length; ++l)
|
|
1286
|
+
c = a[l], o.backdrop && gr(i, o.backdrop), r && (o.strokeColor && (i.strokeStyle = o.strokeColor), L(o.strokeWidth) || (i.lineWidth = o.strokeWidth), i.strokeText(c, e, s, o.maxWidth)), i.fillText(c, e, s, o.maxWidth), fr(i, e, s, c, o), s += Number(n.lineHeight);
|
|
1285
1287
|
i.restore();
|
|
1286
1288
|
}
|
|
1287
1289
|
function Ae(i, t) {
|
|
1288
1290
|
const { x: e, y: s, w: n, h: o, radius: a } = t;
|
|
1289
1291
|
i.arc(e + a.topLeft, s + a.topLeft, a.topLeft, 1.5 * V, V, !0), i.lineTo(e, s + o - a.bottomLeft), i.arc(e + a.bottomLeft, s + o - a.bottomLeft, a.bottomLeft, V, Y, !0), i.lineTo(e + n - a.bottomRight, s + o), i.arc(e + n - a.bottomRight, s + o - a.bottomRight, a.bottomRight, Y, 0, !0), i.lineTo(e + n, s + a.topRight), i.arc(e + n - a.topRight, s + a.topRight, a.topRight, 0, -Y, !0), i.lineTo(e + a.topLeft, s);
|
|
1290
1292
|
}
|
|
1291
|
-
const
|
|
1292
|
-
function
|
|
1293
|
-
const e = ("" + i).match(
|
|
1293
|
+
const pr = /^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/, mr = /^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;
|
|
1294
|
+
function br(i, t) {
|
|
1295
|
+
const e = ("" + i).match(pr);
|
|
1294
1296
|
if (!e || e[1] === "normal")
|
|
1295
1297
|
return t * 1.2;
|
|
1296
1298
|
switch (i = +e[2], e[3]) {
|
|
@@ -1302,11 +1304,11 @@ function pr(i, t) {
|
|
|
1302
1304
|
}
|
|
1303
1305
|
return t * i;
|
|
1304
1306
|
}
|
|
1305
|
-
const
|
|
1307
|
+
const xr = (i) => +i || 0;
|
|
1306
1308
|
function ds(i, t) {
|
|
1307
1309
|
const e = {}, s = O(t), n = s ? Object.keys(t) : t, o = O(i) ? s ? (a) => C(i[a], i[t[a]]) : (a) => i[a] : () => i;
|
|
1308
1310
|
for (const a of n)
|
|
1309
|
-
e[a] =
|
|
1311
|
+
e[a] = xr(o(a));
|
|
1310
1312
|
return e;
|
|
1311
1313
|
}
|
|
1312
1314
|
function po(i) {
|
|
@@ -1334,16 +1336,16 @@ function X(i, t) {
|
|
|
1334
1336
|
let e = C(i.size, t.size);
|
|
1335
1337
|
typeof e == "string" && (e = parseInt(e, 10));
|
|
1336
1338
|
let s = C(i.style, t.style);
|
|
1337
|
-
s && !("" + s).match(
|
|
1339
|
+
s && !("" + s).match(mr) && (console.warn('Invalid font style specified: "' + s + '"'), s = void 0);
|
|
1338
1340
|
const n = {
|
|
1339
1341
|
family: C(i.family, t.family),
|
|
1340
|
-
lineHeight:
|
|
1342
|
+
lineHeight: br(C(i.lineHeight, t.lineHeight), e),
|
|
1341
1343
|
size: e,
|
|
1342
1344
|
style: s,
|
|
1343
1345
|
weight: C(i.weight, t.weight),
|
|
1344
1346
|
string: ""
|
|
1345
1347
|
};
|
|
1346
|
-
return n.string =
|
|
1348
|
+
return n.string = lr(n), n;
|
|
1347
1349
|
}
|
|
1348
1350
|
function ge(i, t, e, s) {
|
|
1349
1351
|
let n, o, a;
|
|
@@ -1351,7 +1353,7 @@ function ge(i, t, e, s) {
|
|
|
1351
1353
|
if (a = i[n], a !== void 0 && a !== void 0)
|
|
1352
1354
|
return a;
|
|
1353
1355
|
}
|
|
1354
|
-
function
|
|
1356
|
+
function _r(i, t, e) {
|
|
1355
1357
|
const { min: s, max: n } = i, o = io(t, (n - s) / 2), a = (r, l) => e && r === 0 ? 0 : r + l;
|
|
1356
1358
|
return {
|
|
1357
1359
|
min: a(s, -Math.abs(o)),
|
|
@@ -1389,7 +1391,7 @@ function us(i, t = [
|
|
|
1389
1391
|
* A trap for getting property values.
|
|
1390
1392
|
*/
|
|
1391
1393
|
get(r, l) {
|
|
1392
|
-
return bo(r, l, () =>
|
|
1394
|
+
return bo(r, l, () => Cr(l, t, i, r));
|
|
1393
1395
|
},
|
|
1394
1396
|
/**
|
|
1395
1397
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -1447,7 +1449,7 @@ function se(i, t, e, s) {
|
|
|
1447
1449
|
* A trap for getting property values.
|
|
1448
1450
|
*/
|
|
1449
1451
|
get(o, a, r) {
|
|
1450
|
-
return bo(o, a, () =>
|
|
1452
|
+
return bo(o, a, () => vr(o, a, r));
|
|
1451
1453
|
},
|
|
1452
1454
|
/**
|
|
1453
1455
|
* A trap for Object.getOwnPropertyDescriptor.
|
|
@@ -1498,19 +1500,19 @@ function mo(i, t = {
|
|
|
1498
1500
|
isIndexable: Lt(s) ? s : () => s
|
|
1499
1501
|
};
|
|
1500
1502
|
}
|
|
1501
|
-
const
|
|
1503
|
+
const yr = (i, t) => i ? i + as(t) : t, fs = (i, t) => O(t) && i !== "adapters" && (Object.getPrototypeOf(t) === null || t.constructor === Object);
|
|
1502
1504
|
function bo(i, t, e) {
|
|
1503
1505
|
if (Object.prototype.hasOwnProperty.call(i, t) || t === "constructor")
|
|
1504
1506
|
return i[t];
|
|
1505
1507
|
const s = e();
|
|
1506
1508
|
return i[t] = s, s;
|
|
1507
1509
|
}
|
|
1508
|
-
function
|
|
1510
|
+
function vr(i, t, e) {
|
|
1509
1511
|
const { _proxy: s, _context: n, _subProxy: o, _descriptors: a } = i;
|
|
1510
1512
|
let r = s[t];
|
|
1511
|
-
return Lt(r) && a.isScriptable(t) && (r =
|
|
1513
|
+
return Lt(r) && a.isScriptable(t) && (r = kr(t, r, i, e)), N(r) && r.length && (r = wr(t, r, i, a.isIndexable)), fs(t, r) && (r = se(r, n, o && o[t], a)), r;
|
|
1512
1514
|
}
|
|
1513
|
-
function
|
|
1515
|
+
function kr(i, t, e, s) {
|
|
1514
1516
|
const { _proxy: n, _context: o, _subProxy: a, _stack: r } = e;
|
|
1515
1517
|
if (r.has(i))
|
|
1516
1518
|
throw new Error("Recursion detected: " + Array.from(r).join("->") + "->" + i);
|
|
@@ -1518,7 +1520,7 @@ function yr(i, t, e, s) {
|
|
|
1518
1520
|
let l = t(o, a || s);
|
|
1519
1521
|
return r.delete(i), fs(i, l) && (l = gs(n._scopes, n, i, l)), l;
|
|
1520
1522
|
}
|
|
1521
|
-
function
|
|
1523
|
+
function wr(i, t, e, s) {
|
|
1522
1524
|
const { _proxy: n, _context: o, _subProxy: a, _descriptors: r } = e;
|
|
1523
1525
|
if (typeof o.index < "u" && s(i))
|
|
1524
1526
|
return t[o.index % t.length];
|
|
@@ -1535,10 +1537,10 @@ function vr(i, t, e, s) {
|
|
|
1535
1537
|
function xo(i, t, e) {
|
|
1536
1538
|
return Lt(i) ? i(t, e) : i;
|
|
1537
1539
|
}
|
|
1538
|
-
const
|
|
1539
|
-
function
|
|
1540
|
+
const Mr = (i, t) => i === !0 ? t : typeof i == "string" ? Tt(t, i) : void 0;
|
|
1541
|
+
function Sr(i, t, e, s, n) {
|
|
1540
1542
|
for (const o of t) {
|
|
1541
|
-
const a =
|
|
1543
|
+
const a = Mr(e, o);
|
|
1542
1544
|
if (a) {
|
|
1543
1545
|
i.add(a);
|
|
1544
1546
|
const r = xo(a._fallback, e, n);
|
|
@@ -1558,23 +1560,23 @@ function gs(i, t, e, s) {
|
|
|
1558
1560
|
let l = Is(r, a, e, o || e, s);
|
|
1559
1561
|
return l === null || typeof o < "u" && o !== e && (l = Is(r, a, o, l, s), l === null) ? !1 : us(Array.from(r), [
|
|
1560
1562
|
""
|
|
1561
|
-
], n, o, () =>
|
|
1563
|
+
], n, o, () => Pr(t, e, s));
|
|
1562
1564
|
}
|
|
1563
1565
|
function Is(i, t, e, s, n) {
|
|
1564
1566
|
for (; e; )
|
|
1565
|
-
e =
|
|
1567
|
+
e = Sr(i, t, e, s, n);
|
|
1566
1568
|
return e;
|
|
1567
1569
|
}
|
|
1568
|
-
function
|
|
1570
|
+
function Pr(i, t, e) {
|
|
1569
1571
|
const s = i._getTarget();
|
|
1570
1572
|
t in s || (s[t] = {});
|
|
1571
1573
|
const n = s[t];
|
|
1572
1574
|
return N(n) && O(e) ? e : n || {};
|
|
1573
1575
|
}
|
|
1574
|
-
function
|
|
1576
|
+
function Cr(i, t, e, s) {
|
|
1575
1577
|
let n;
|
|
1576
1578
|
for (const o of t)
|
|
1577
|
-
if (n = _o(
|
|
1579
|
+
if (n = _o(yr(o, i), e), typeof n < "u")
|
|
1578
1580
|
return fs(i, n) ? gs(e, s, i, n) : n;
|
|
1579
1581
|
}
|
|
1580
1582
|
function _o(i, t) {
|
|
@@ -1588,9 +1590,9 @@ function _o(i, t) {
|
|
|
1588
1590
|
}
|
|
1589
1591
|
function zs(i) {
|
|
1590
1592
|
let t = i._keys;
|
|
1591
|
-
return t || (t = i._keys =
|
|
1593
|
+
return t || (t = i._keys = Dr(i._scopes)), t;
|
|
1592
1594
|
}
|
|
1593
|
-
function
|
|
1595
|
+
function Dr(i) {
|
|
1594
1596
|
const t = /* @__PURE__ */ new Set();
|
|
1595
1597
|
for (const e of i)
|
|
1596
1598
|
for (const s of Object.keys(e).filter((n) => !n.startsWith("_")))
|
|
@@ -1606,8 +1608,8 @@ function yo(i, t, e, s) {
|
|
|
1606
1608
|
};
|
|
1607
1609
|
return a;
|
|
1608
1610
|
}
|
|
1609
|
-
const
|
|
1610
|
-
function
|
|
1611
|
+
const Ar = Number.EPSILON || 1e-14, ne = (i, t) => t < i.length && !i[t].skip && i[t], vo = (i) => i === "x" ? "y" : "x";
|
|
1612
|
+
function Or(i, t, e, s) {
|
|
1611
1613
|
const n = i.skip ? t : i, o = t, a = e.skip ? t : e, r = Wi(o, n), l = Wi(a, o);
|
|
1612
1614
|
let c = r / (r + l), h = l / (r + l);
|
|
1613
1615
|
c = isNaN(c) ? 0 : c, h = isNaN(h) ? 0 : h;
|
|
@@ -1623,19 +1625,19 @@ function Dr(i, t, e, s) {
|
|
|
1623
1625
|
}
|
|
1624
1626
|
};
|
|
1625
1627
|
}
|
|
1626
|
-
function
|
|
1628
|
+
function Tr(i, t, e) {
|
|
1627
1629
|
const s = i.length;
|
|
1628
1630
|
let n, o, a, r, l, c = ne(i, 0);
|
|
1629
1631
|
for (let h = 0; h < s - 1; ++h)
|
|
1630
1632
|
if (l = c, c = ne(i, h + 1), !(!l || !c)) {
|
|
1631
|
-
if (ye(t[h], 0,
|
|
1633
|
+
if (ye(t[h], 0, Ar)) {
|
|
1632
1634
|
e[h] = e[h + 1] = 0;
|
|
1633
1635
|
continue;
|
|
1634
1636
|
}
|
|
1635
1637
|
n = e[h] / t[h], o = e[h + 1] / t[h], r = Math.pow(n, 2) + Math.pow(o, 2), !(r <= 9) && (a = 3 / Math.sqrt(r), e[h] = n * a * t[h], e[h + 1] = o * a * t[h]);
|
|
1636
1638
|
}
|
|
1637
1639
|
}
|
|
1638
|
-
function
|
|
1640
|
+
function Lr(i, t, e = "x") {
|
|
1639
1641
|
const s = vo(e), n = i.length;
|
|
1640
1642
|
let o, a, r, l = ne(i, 0);
|
|
1641
1643
|
for (let c = 0; c < n; ++c) {
|
|
@@ -1645,7 +1647,7 @@ function Or(i, t, e = "x") {
|
|
|
1645
1647
|
a && (o = (h - a[e]) / 3, r[`cp1${e}`] = h - o, r[`cp1${s}`] = d - o * t[c]), l && (o = (l[e] - h) / 3, r[`cp2${e}`] = h + o, r[`cp2${s}`] = d + o * t[c]);
|
|
1646
1648
|
}
|
|
1647
1649
|
}
|
|
1648
|
-
function
|
|
1650
|
+
function Rr(i, t = "x") {
|
|
1649
1651
|
const e = vo(t), s = i.length, n = Array(s).fill(0), o = Array(s);
|
|
1650
1652
|
let a, r, l, c = ne(i, 0);
|
|
1651
1653
|
for (a = 0; a < s; ++a)
|
|
@@ -1656,26 +1658,26 @@ function Tr(i, t = "x") {
|
|
|
1656
1658
|
}
|
|
1657
1659
|
o[a] = r ? c ? pt(n[a - 1]) !== pt(n[a]) ? 0 : (n[a - 1] + n[a]) / 2 : n[a - 1] : n[a];
|
|
1658
1660
|
}
|
|
1659
|
-
|
|
1661
|
+
Tr(i, n, o), Lr(i, o, t);
|
|
1660
1662
|
}
|
|
1661
1663
|
function We(i, t, e) {
|
|
1662
1664
|
return Math.max(Math.min(i, e), t);
|
|
1663
1665
|
}
|
|
1664
|
-
function
|
|
1666
|
+
function Fr(i, t) {
|
|
1665
1667
|
let e, s, n, o, a, r = Mt(i[0], t);
|
|
1666
1668
|
for (e = 0, s = i.length; e < s; ++e)
|
|
1667
1669
|
a = o, o = r, r = e < s - 1 && Mt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = We(n.cp1x, t.left, t.right), n.cp1y = We(n.cp1y, t.top, t.bottom)), r && (n.cp2x = We(n.cp2x, t.left, t.right), n.cp2y = We(n.cp2y, t.top, t.bottom)));
|
|
1668
1670
|
}
|
|
1669
|
-
function
|
|
1671
|
+
function Er(i, t, e, s, n) {
|
|
1670
1672
|
let o, a, r, l;
|
|
1671
1673
|
if (t.spanGaps && (i = i.filter((c) => !c.skip)), t.cubicInterpolationMode === "monotone")
|
|
1672
|
-
|
|
1674
|
+
Rr(i, n);
|
|
1673
1675
|
else {
|
|
1674
1676
|
let c = s ? i[i.length - 1] : i[0];
|
|
1675
1677
|
for (o = 0, a = i.length; o < a; ++o)
|
|
1676
|
-
r = i[o], l =
|
|
1678
|
+
r = i[o], l = Or(c, r, i[Math.min(o + 1, a - (s ? 0 : 1)) % a], t.tension), r.cp1x = l.previous.x, r.cp1y = l.previous.y, r.cp2x = l.next.x, r.cp2y = l.next.y, c = r;
|
|
1677
1679
|
}
|
|
1678
|
-
t.capBezierPoints &&
|
|
1680
|
+
t.capBezierPoints && Fr(i, e);
|
|
1679
1681
|
}
|
|
1680
1682
|
function ps() {
|
|
1681
1683
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -1689,10 +1691,10 @@ function ui(i, t, e) {
|
|
|
1689
1691
|
return typeof i == "string" ? (s = parseInt(i, 10), i.indexOf("%") !== -1 && (s = s / 100 * t.parentNode[e])) : s = i, s;
|
|
1690
1692
|
}
|
|
1691
1693
|
const _i = (i) => i.ownerDocument.defaultView.getComputedStyle(i, null);
|
|
1692
|
-
function
|
|
1694
|
+
function Ir(i, t) {
|
|
1693
1695
|
return _i(i).getPropertyValue(t);
|
|
1694
1696
|
}
|
|
1695
|
-
const
|
|
1697
|
+
const zr = [
|
|
1696
1698
|
"top",
|
|
1697
1699
|
"right",
|
|
1698
1700
|
"bottom",
|
|
@@ -1702,16 +1704,16 @@ function Xt(i, t, e) {
|
|
|
1702
1704
|
const s = {};
|
|
1703
1705
|
e = e ? "-" + e : "";
|
|
1704
1706
|
for (let n = 0; n < 4; n++) {
|
|
1705
|
-
const o =
|
|
1707
|
+
const o = zr[n];
|
|
1706
1708
|
s[o] = parseFloat(i[t + "-" + o + e]) || 0;
|
|
1707
1709
|
}
|
|
1708
1710
|
return s.width = s.left + s.right, s.height = s.top + s.bottom, s;
|
|
1709
1711
|
}
|
|
1710
|
-
const
|
|
1711
|
-
function
|
|
1712
|
+
const Br = (i, t, e) => (i > 0 || t > 0) && (!e || !e.shadowRoot);
|
|
1713
|
+
function Vr(i, t) {
|
|
1712
1714
|
const e = i.touches, s = e && e.length ? e[0] : i, { offsetX: n, offsetY: o } = s;
|
|
1713
1715
|
let a = !1, r, l;
|
|
1714
|
-
if (
|
|
1716
|
+
if (Br(n, o, i.target))
|
|
1715
1717
|
r = n, l = o;
|
|
1716
1718
|
else {
|
|
1717
1719
|
const c = t.getBoundingClientRect();
|
|
@@ -1726,14 +1728,14 @@ function zr(i, t) {
|
|
|
1726
1728
|
function Wt(i, t) {
|
|
1727
1729
|
if ("native" in i)
|
|
1728
1730
|
return i;
|
|
1729
|
-
const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = Xt(n, "padding"), r = Xt(n, "border", "width"), { x: l, y: c, box: h } =
|
|
1731
|
+
const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = Xt(n, "padding"), r = Xt(n, "border", "width"), { x: l, y: c, box: h } = Vr(i, e), d = a.left + (h && r.left), u = a.top + (h && r.top);
|
|
1730
1732
|
let { width: f, height: g } = t;
|
|
1731
1733
|
return o && (f -= a.width + r.width, g -= a.height + r.height), {
|
|
1732
1734
|
x: Math.round((l - d) / f * e.width / s),
|
|
1733
1735
|
y: Math.round((c - u) / g * e.height / s)
|
|
1734
1736
|
};
|
|
1735
1737
|
}
|
|
1736
|
-
function
|
|
1738
|
+
function Wr(i, t, e) {
|
|
1737
1739
|
let s, n;
|
|
1738
1740
|
if (t === void 0 || e === void 0) {
|
|
1739
1741
|
const o = i && ms(i);
|
|
@@ -1752,8 +1754,8 @@ function Br(i, t, e) {
|
|
|
1752
1754
|
};
|
|
1753
1755
|
}
|
|
1754
1756
|
const Ne = (i) => Math.round(i * 10) / 10;
|
|
1755
|
-
function
|
|
1756
|
-
const n = _i(i), o = Xt(n, "margin"), a = ui(n.maxWidth, i, "clientWidth") || hi, r = ui(n.maxHeight, i, "clientHeight") || hi, l =
|
|
1757
|
+
function Nr(i, t, e, s) {
|
|
1758
|
+
const n = _i(i), o = Xt(n, "margin"), a = ui(n.maxWidth, i, "clientWidth") || hi, r = ui(n.maxHeight, i, "clientHeight") || hi, l = Wr(i, t, e);
|
|
1757
1759
|
let { width: c, height: h } = l;
|
|
1758
1760
|
if (n.boxSizing === "content-box") {
|
|
1759
1761
|
const u = Xt(n, "border", "width"), f = Xt(n, "padding");
|
|
@@ -1770,7 +1772,7 @@ function Bs(i, t, e) {
|
|
|
1770
1772
|
const a = i.canvas;
|
|
1771
1773
|
return a.style && (e || !a.style.height && !a.style.width) && (a.style.height = `${i.height}px`, a.style.width = `${i.width}px`), i.currentDevicePixelRatio !== s || a.height !== n || a.width !== o ? (i.currentDevicePixelRatio = s, a.height = n, a.width = o, i.ctx.setTransform(s, 0, 0, s, 0, 0), !0) : !1;
|
|
1772
1774
|
}
|
|
1773
|
-
const
|
|
1775
|
+
const Hr = function() {
|
|
1774
1776
|
let i = !1;
|
|
1775
1777
|
try {
|
|
1776
1778
|
const t = {
|
|
@@ -1784,7 +1786,7 @@ const Wr = function() {
|
|
|
1784
1786
|
return i;
|
|
1785
1787
|
}();
|
|
1786
1788
|
function Vs(i, t) {
|
|
1787
|
-
const e =
|
|
1789
|
+
const e = Ir(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
1788
1790
|
return s ? +s[1] : void 0;
|
|
1789
1791
|
}
|
|
1790
1792
|
function Nt(i, t, e, s) {
|
|
@@ -1793,13 +1795,13 @@ function Nt(i, t, e, s) {
|
|
|
1793
1795
|
y: i.y + e * (t.y - i.y)
|
|
1794
1796
|
};
|
|
1795
1797
|
}
|
|
1796
|
-
function
|
|
1798
|
+
function jr(i, t, e, s) {
|
|
1797
1799
|
return {
|
|
1798
1800
|
x: i.x + e * (t.x - i.x),
|
|
1799
1801
|
y: s === "middle" ? e < 0.5 ? i.y : t.y : s === "after" ? e < 1 ? i.y : t.y : e > 0 ? t.y : i.y
|
|
1800
1802
|
};
|
|
1801
1803
|
}
|
|
1802
|
-
function
|
|
1804
|
+
function $r(i, t, e, s) {
|
|
1803
1805
|
const n = {
|
|
1804
1806
|
x: i.cp2x,
|
|
1805
1807
|
y: i.cp2y
|
|
@@ -1809,7 +1811,7 @@ function Hr(i, t, e, s) {
|
|
|
1809
1811
|
}, a = Nt(i, n, e), r = Nt(n, o, e), l = Nt(o, t, e), c = Nt(a, r, e), h = Nt(r, l, e);
|
|
1810
1812
|
return Nt(c, h, e);
|
|
1811
1813
|
}
|
|
1812
|
-
const
|
|
1814
|
+
const Yr = function(i, t) {
|
|
1813
1815
|
return {
|
|
1814
1816
|
x(e) {
|
|
1815
1817
|
return i + i + t - e;
|
|
@@ -1827,7 +1829,7 @@ const jr = function(i, t) {
|
|
|
1827
1829
|
return e - s;
|
|
1828
1830
|
}
|
|
1829
1831
|
};
|
|
1830
|
-
},
|
|
1832
|
+
}, Ur = function() {
|
|
1831
1833
|
return {
|
|
1832
1834
|
x(i) {
|
|
1833
1835
|
return i;
|
|
@@ -1846,7 +1848,7 @@ const jr = function(i, t) {
|
|
|
1846
1848
|
};
|
|
1847
1849
|
};
|
|
1848
1850
|
function ee(i, t, e) {
|
|
1849
|
-
return i ?
|
|
1851
|
+
return i ? Yr(t, e) : Ur();
|
|
1850
1852
|
}
|
|
1851
1853
|
function ko(i, t) {
|
|
1852
1854
|
let e, s;
|
|
@@ -1861,7 +1863,7 @@ function wo(i, t) {
|
|
|
1861
1863
|
function Mo(i) {
|
|
1862
1864
|
return i === "angle" ? {
|
|
1863
1865
|
between: De,
|
|
1864
|
-
compare:
|
|
1866
|
+
compare: Xa,
|
|
1865
1867
|
normalize: at
|
|
1866
1868
|
} : {
|
|
1867
1869
|
between: kt,
|
|
@@ -1877,7 +1879,7 @@ function Ws({ start: i, end: t, count: e, loop: s, style: n }) {
|
|
|
1877
1879
|
style: n
|
|
1878
1880
|
};
|
|
1879
1881
|
}
|
|
1880
|
-
function
|
|
1882
|
+
function Xr(i, t, e) {
|
|
1881
1883
|
const { property: s, start: n, end: o } = e, { between: a, normalize: r } = Mo(s), l = t.length;
|
|
1882
1884
|
let { start: c, end: h, loop: d } = i, u, f;
|
|
1883
1885
|
if (d) {
|
|
@@ -1897,17 +1899,17 @@ function So(i, t, e) {
|
|
|
1897
1899
|
return [
|
|
1898
1900
|
i
|
|
1899
1901
|
];
|
|
1900
|
-
const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Mo(s), { start: h, end: d, loop: u, style: f } =
|
|
1901
|
-
let p = !1, m = null, b, x,
|
|
1902
|
-
const v = () => l(n,
|
|
1902
|
+
const { property: s, start: n, end: o } = e, a = t.length, { compare: r, between: l, normalize: c } = Mo(s), { start: h, end: d, loop: u, style: f } = Xr(i, t, e), g = [];
|
|
1903
|
+
let p = !1, m = null, b, x, _;
|
|
1904
|
+
const v = () => l(n, _, b) && r(n, _) !== 0, y = () => r(o, b) === 0 || l(o, _, b), w = () => p || v(), M = () => !p || y();
|
|
1903
1905
|
for (let S = h, P = h; S <= d; ++S)
|
|
1904
|
-
x = t[S % a], !x.skip && (b = c(x[s]), b !==
|
|
1906
|
+
x = t[S % a], !x.skip && (b = c(x[s]), b !== _ && (p = l(b, n, o), m === null && w() && (m = r(b, n) === 0 ? S : P), m !== null && M() && (g.push(Ws({
|
|
1905
1907
|
start: m,
|
|
1906
1908
|
end: S,
|
|
1907
1909
|
loop: u,
|
|
1908
1910
|
count: a,
|
|
1909
1911
|
style: f
|
|
1910
|
-
})), m = null), P = S,
|
|
1912
|
+
})), m = null), P = S, _ = b));
|
|
1911
1913
|
return m !== null && g.push(Ws({
|
|
1912
1914
|
start: m,
|
|
1913
1915
|
end: d,
|
|
@@ -1924,7 +1926,7 @@ function Po(i, t) {
|
|
|
1924
1926
|
}
|
|
1925
1927
|
return e;
|
|
1926
1928
|
}
|
|
1927
|
-
function
|
|
1929
|
+
function Kr(i, t, e, s) {
|
|
1928
1930
|
let n = 0, o = t - 1;
|
|
1929
1931
|
if (e && !s)
|
|
1930
1932
|
for (; n < t && !i[n].skip; )
|
|
@@ -1938,7 +1940,7 @@ function Ur(i, t, e, s) {
|
|
|
1938
1940
|
end: o
|
|
1939
1941
|
};
|
|
1940
1942
|
}
|
|
1941
|
-
function
|
|
1943
|
+
function qr(i, t, e, s) {
|
|
1942
1944
|
const n = i.length, o = [];
|
|
1943
1945
|
let a = t, r = i[t], l;
|
|
1944
1946
|
for (l = t + 1; l <= e; ++l) {
|
|
@@ -1955,11 +1957,11 @@ function Xr(i, t, e, s) {
|
|
|
1955
1957
|
loop: s
|
|
1956
1958
|
}), o;
|
|
1957
1959
|
}
|
|
1958
|
-
function
|
|
1960
|
+
function Gr(i, t) {
|
|
1959
1961
|
const e = i.points, s = i.options.spanGaps, n = e.length;
|
|
1960
1962
|
if (!n)
|
|
1961
1963
|
return [];
|
|
1962
|
-
const o = !!i._loop, { start: a, end: r } =
|
|
1964
|
+
const o = !!i._loop, { start: a, end: r } = Kr(e, n, o, s);
|
|
1963
1965
|
if (s === !0)
|
|
1964
1966
|
return Ns(i, [
|
|
1965
1967
|
{
|
|
@@ -1969,12 +1971,12 @@ function Kr(i, t) {
|
|
|
1969
1971
|
}
|
|
1970
1972
|
], e, t);
|
|
1971
1973
|
const l = r < a ? r + n : r, c = !!i._fullLoop && a === 0 && r === n - 1;
|
|
1972
|
-
return Ns(i,
|
|
1974
|
+
return Ns(i, qr(e, a, l, c), e, t);
|
|
1973
1975
|
}
|
|
1974
1976
|
function Ns(i, t, e, s) {
|
|
1975
|
-
return !s || !s.setContext || !e ? t :
|
|
1977
|
+
return !s || !s.setContext || !e ? t : Zr(i, t, e, s);
|
|
1976
1978
|
}
|
|
1977
|
-
function
|
|
1979
|
+
function Zr(i, t, e, s) {
|
|
1978
1980
|
const n = i._chart.getContext(), o = Hs(i.options), { _datasetIndex: a, options: { spanGaps: r } } = i, l = e.length, c = [];
|
|
1979
1981
|
let h = o, d = t[0].start, u = d;
|
|
1980
1982
|
function f(g, p, m, b) {
|
|
@@ -2004,7 +2006,7 @@ function qr(i, t, e, s) {
|
|
|
2004
2006
|
p0DataIndex: (u - 1) % l,
|
|
2005
2007
|
p1DataIndex: u % l,
|
|
2006
2008
|
datasetIndex: a
|
|
2007
|
-
}))),
|
|
2009
|
+
}))), Jr(m, h) && f(d, u - 1, g.loop, h), p = b, h = m;
|
|
2008
2010
|
}
|
|
2009
2011
|
d < u - 1 && f(d, u - 1, g.loop, h);
|
|
2010
2012
|
}
|
|
@@ -2021,7 +2023,7 @@ function Hs(i) {
|
|
|
2021
2023
|
borderColor: i.borderColor
|
|
2022
2024
|
};
|
|
2023
2025
|
}
|
|
2024
|
-
function
|
|
2026
|
+
function Jr(i, t) {
|
|
2025
2027
|
if (!t)
|
|
2026
2028
|
return !1;
|
|
2027
2029
|
const e = [], s = function(n, o) {
|
|
@@ -2035,7 +2037,7 @@ function Gr(i, t) {
|
|
|
2035
2037
|
* (c) 2024 Chart.js Contributors
|
|
2036
2038
|
* Released under the MIT License
|
|
2037
2039
|
*/
|
|
2038
|
-
class
|
|
2040
|
+
class Qr {
|
|
2039
2041
|
constructor() {
|
|
2040
2042
|
this._request = null, this._charts = /* @__PURE__ */ new Map(), this._running = !1, this._lastDate = void 0;
|
|
2041
2043
|
}
|
|
@@ -2111,8 +2113,8 @@ class Zr {
|
|
|
2111
2113
|
return this._charts.delete(t);
|
|
2112
2114
|
}
|
|
2113
2115
|
}
|
|
2114
|
-
var bt = /* @__PURE__ */ new
|
|
2115
|
-
const js = "transparent",
|
|
2116
|
+
var bt = /* @__PURE__ */ new Qr();
|
|
2117
|
+
const js = "transparent", tl = {
|
|
2116
2118
|
boolean(i, t, e) {
|
|
2117
2119
|
return e > 0.5 ? t : i;
|
|
2118
2120
|
},
|
|
@@ -2124,7 +2126,7 @@ const js = "transparent", Qr = {
|
|
|
2124
2126
|
return i + (t - i) * e;
|
|
2125
2127
|
}
|
|
2126
2128
|
};
|
|
2127
|
-
class
|
|
2129
|
+
class el {
|
|
2128
2130
|
constructor(t, e, s, n) {
|
|
2129
2131
|
const o = e[s];
|
|
2130
2132
|
n = ge([
|
|
@@ -2138,7 +2140,7 @@ class Jr {
|
|
|
2138
2140
|
o,
|
|
2139
2141
|
n
|
|
2140
2142
|
]);
|
|
2141
|
-
this._active = !0, this._fn = t.fn ||
|
|
2143
|
+
this._active = !0, this._fn = t.fn || tl[t.type || typeof a], this._easing = ve[t.easing] || ve.linear, this._start = Math.floor(Date.now() + (t.delay || 0)), this._duration = this._total = Math.floor(t.duration), this._loop = !!t.loop, this._target = e, this._prop = s, this._from = a, this._to = n, this._promises = void 0;
|
|
2142
2144
|
}
|
|
2143
2145
|
active() {
|
|
2144
2146
|
return this._active;
|
|
@@ -2213,11 +2215,11 @@ class Co {
|
|
|
2213
2215
|
});
|
|
2214
2216
|
}
|
|
2215
2217
|
_animateOptions(t, e) {
|
|
2216
|
-
const s = e.options, n =
|
|
2218
|
+
const s = e.options, n = sl(t, s);
|
|
2217
2219
|
if (!n)
|
|
2218
2220
|
return [];
|
|
2219
2221
|
const o = this._createAnimations(n, s);
|
|
2220
|
-
return s.$shared &&
|
|
2222
|
+
return s.$shared && il(t.options.$animations, s).then(() => {
|
|
2221
2223
|
t.options = s;
|
|
2222
2224
|
}, () => {
|
|
2223
2225
|
}), o;
|
|
@@ -2246,7 +2248,7 @@ class Co {
|
|
|
2246
2248
|
t[c] = h;
|
|
2247
2249
|
continue;
|
|
2248
2250
|
}
|
|
2249
|
-
o[c] = d = new
|
|
2251
|
+
o[c] = d = new el(u, t, c, h), n.push(d);
|
|
2250
2252
|
}
|
|
2251
2253
|
return n;
|
|
2252
2254
|
}
|
|
@@ -2260,7 +2262,7 @@ class Co {
|
|
|
2260
2262
|
return bt.add(this._chart, s), !0;
|
|
2261
2263
|
}
|
|
2262
2264
|
}
|
|
2263
|
-
function
|
|
2265
|
+
function il(i, t) {
|
|
2264
2266
|
const e = [], s = Object.keys(t);
|
|
2265
2267
|
for (let n = 0; n < s.length; n++) {
|
|
2266
2268
|
const o = i[s[n]];
|
|
@@ -2268,7 +2270,7 @@ function tl(i, t) {
|
|
|
2268
2270
|
}
|
|
2269
2271
|
return Promise.all(e);
|
|
2270
2272
|
}
|
|
2271
|
-
function
|
|
2273
|
+
function sl(i, t) {
|
|
2272
2274
|
if (!t)
|
|
2273
2275
|
return;
|
|
2274
2276
|
let e = i.options;
|
|
@@ -2288,7 +2290,7 @@ function $s(i, t) {
|
|
|
2288
2290
|
end: s ? n : o
|
|
2289
2291
|
};
|
|
2290
2292
|
}
|
|
2291
|
-
function
|
|
2293
|
+
function nl(i, t, e) {
|
|
2292
2294
|
if (e === !1)
|
|
2293
2295
|
return !1;
|
|
2294
2296
|
const s = $s(i, e), n = $s(t, e);
|
|
@@ -2299,7 +2301,7 @@ function il(i, t, e) {
|
|
|
2299
2301
|
left: s.start
|
|
2300
2302
|
};
|
|
2301
2303
|
}
|
|
2302
|
-
function
|
|
2304
|
+
function ol(i) {
|
|
2303
2305
|
let t, e, s, n;
|
|
2304
2306
|
return O(i) ? (t = i.top, e = i.right, s = i.bottom, n = i.left) : t = e = s = n = i, {
|
|
2305
2307
|
top: t,
|
|
@@ -2332,7 +2334,7 @@ function Ys(i, t, e, s = {}) {
|
|
|
2332
2334
|
}
|
|
2333
2335
|
return !h && !s.all ? 0 : t;
|
|
2334
2336
|
}
|
|
2335
|
-
function
|
|
2337
|
+
function al(i, t) {
|
|
2336
2338
|
const { iScale: e, vScale: s } = t, n = e.axis === "x" ? "x" : "y", o = s.axis === "x" ? "x" : "y", a = Object.keys(i), r = new Array(a.length);
|
|
2337
2339
|
let l, c, h;
|
|
2338
2340
|
for (l = 0, c = a.length; l < c; ++l)
|
|
@@ -2346,17 +2348,17 @@ function Pi(i, t) {
|
|
|
2346
2348
|
const e = i && i.options.stacked;
|
|
2347
2349
|
return e || e === void 0 && t.stack !== void 0;
|
|
2348
2350
|
}
|
|
2349
|
-
function
|
|
2351
|
+
function rl(i, t, e) {
|
|
2350
2352
|
return `${i.id}.${t.id}.${e.stack || e.type}`;
|
|
2351
2353
|
}
|
|
2352
|
-
function
|
|
2354
|
+
function ll(i) {
|
|
2353
2355
|
const { min: t, max: e, minDefined: s, maxDefined: n } = i.getUserBounds();
|
|
2354
2356
|
return {
|
|
2355
2357
|
min: s ? t : Number.NEGATIVE_INFINITY,
|
|
2356
2358
|
max: n ? e : Number.POSITIVE_INFINITY
|
|
2357
2359
|
};
|
|
2358
2360
|
}
|
|
2359
|
-
function
|
|
2361
|
+
function cl(i, t, e) {
|
|
2360
2362
|
const s = i[t] || (i[t] = {});
|
|
2361
2363
|
return s[e] || (s[e] = {});
|
|
2362
2364
|
}
|
|
@@ -2369,11 +2371,11 @@ function Us(i, t, e, s) {
|
|
|
2369
2371
|
return null;
|
|
2370
2372
|
}
|
|
2371
2373
|
function Xs(i, t) {
|
|
2372
|
-
const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = s, l = o.axis, c = a.axis, h =
|
|
2374
|
+
const { chart: e, _cachedMeta: s } = i, n = e._stacks || (e._stacks = {}), { iScale: o, vScale: a, index: r } = s, l = o.axis, c = a.axis, h = rl(o, a, s), d = t.length;
|
|
2373
2375
|
let u;
|
|
2374
2376
|
for (let f = 0; f < d; ++f) {
|
|
2375
2377
|
const g = t[f], { [l]: p, [c]: m } = g, b = g._stacks || (g._stacks = {});
|
|
2376
|
-
u = b[c] =
|
|
2378
|
+
u = b[c] = cl(n, h, p), u[r] = m, u._top = Us(u, a, !0, s.type), u._bottom = Us(u, a, !1, s.type);
|
|
2377
2379
|
const x = u._visualValues || (u._visualValues = {});
|
|
2378
2380
|
x[r] = m;
|
|
2379
2381
|
}
|
|
@@ -2382,7 +2384,7 @@ function Ci(i, t) {
|
|
|
2382
2384
|
const e = i.scales;
|
|
2383
2385
|
return Object.keys(e).filter((s) => e[s].axis === t).shift();
|
|
2384
2386
|
}
|
|
2385
|
-
function
|
|
2387
|
+
function hl(i, t) {
|
|
2386
2388
|
return Rt(i, {
|
|
2387
2389
|
active: !1,
|
|
2388
2390
|
dataset: void 0,
|
|
@@ -2392,7 +2394,7 @@ function ll(i, t) {
|
|
|
2392
2394
|
type: "dataset"
|
|
2393
2395
|
});
|
|
2394
2396
|
}
|
|
2395
|
-
function
|
|
2397
|
+
function dl(i, t, e) {
|
|
2396
2398
|
return Rt(i, {
|
|
2397
2399
|
active: !1,
|
|
2398
2400
|
dataIndex: t,
|
|
@@ -2416,7 +2418,7 @@ function le(i, t) {
|
|
|
2416
2418
|
}
|
|
2417
2419
|
}
|
|
2418
2420
|
}
|
|
2419
|
-
const Di = (i) => i === "reset" || i === "none", Ks = (i, t) => t ? i : Object.assign({}, i),
|
|
2421
|
+
const Di = (i) => i === "reset" || i === "none", Ks = (i, t) => t ? i : Object.assign({}, i), ul = (i, t, e) => i && !t.hidden && t._stacked && {
|
|
2420
2422
|
keys: Do(e, !0),
|
|
2421
2423
|
values: null
|
|
2422
2424
|
};
|
|
@@ -2459,14 +2461,14 @@ class dt {
|
|
|
2459
2461
|
const t = this.getDataset(), e = t.data || (t.data = []), s = this._data;
|
|
2460
2462
|
if (O(e)) {
|
|
2461
2463
|
const n = this._cachedMeta;
|
|
2462
|
-
this._data =
|
|
2464
|
+
this._data = al(e, n);
|
|
2463
2465
|
} else if (s !== e) {
|
|
2464
2466
|
if (s) {
|
|
2465
2467
|
Os(s, this);
|
|
2466
2468
|
const n = this._cachedMeta;
|
|
2467
2469
|
le(n), n._parsed = [];
|
|
2468
2470
|
}
|
|
2469
|
-
e && Object.isExtensible(e) &&
|
|
2471
|
+
e && Object.isExtensible(e) && Za(e, this), this._syncList = [], this._data = e;
|
|
2470
2472
|
}
|
|
2471
2473
|
}
|
|
2472
2474
|
addElements() {
|
|
@@ -2550,10 +2552,10 @@ class dt {
|
|
|
2550
2552
|
n && r && (n.values = r, a = Ys(n, o, this._cachedMeta.index)), t.min = Math.min(t.min, a), t.max = Math.max(t.max, a);
|
|
2551
2553
|
}
|
|
2552
2554
|
getMinMax(t, e) {
|
|
2553
|
-
const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l =
|
|
2555
|
+
const s = this._cachedMeta, n = s._parsed, o = s._sorted && t === s.iScale, a = n.length, r = this._getOtherScale(t), l = ul(e, s, this.chart), c = {
|
|
2554
2556
|
min: Number.POSITIVE_INFINITY,
|
|
2555
2557
|
max: Number.NEGATIVE_INFINITY
|
|
2556
|
-
}, { min: h, max: d } =
|
|
2558
|
+
}, { min: h, max: d } = ll(r);
|
|
2557
2559
|
let u, f;
|
|
2558
2560
|
function g() {
|
|
2559
2561
|
f = n[u];
|
|
@@ -2590,7 +2592,7 @@ class dt {
|
|
|
2590
2592
|
}
|
|
2591
2593
|
_update(t) {
|
|
2592
2594
|
const e = this._cachedMeta;
|
|
2593
|
-
this.update(t || "default"), e._clip =
|
|
2595
|
+
this.update(t || "default"), e._clip = ol(C(this.options.clip, nl(e.xScale, e.yScale, this.getMaxOverflow())));
|
|
2594
2596
|
}
|
|
2595
2597
|
update(t) {
|
|
2596
2598
|
}
|
|
@@ -2613,9 +2615,9 @@ class dt {
|
|
|
2613
2615
|
let o;
|
|
2614
2616
|
if (t >= 0 && t < this._cachedMeta.data.length) {
|
|
2615
2617
|
const a = this._cachedMeta.data[t];
|
|
2616
|
-
o = a.$context || (a.$context =
|
|
2618
|
+
o = a.$context || (a.$context = dl(this.getContext(), t, a)), o.parsed = this.getParsed(t), o.raw = n.data[t], o.index = o.dataIndex = t;
|
|
2617
2619
|
} else
|
|
2618
|
-
o = this.$context || (this.$context =
|
|
2620
|
+
o = this.$context || (this.$context = hl(this.chart.getContext(), this.index)), o.dataset = n, o.index = o.datasetIndex = this.index;
|
|
2619
2621
|
return o.active = !!e, o.mode = s, o;
|
|
2620
2622
|
}
|
|
2621
2623
|
resolveDatasetElementOptions(t) {
|
|
@@ -2777,7 +2779,7 @@ class dt {
|
|
|
2777
2779
|
}
|
|
2778
2780
|
}
|
|
2779
2781
|
k(dt, "defaults", {}), k(dt, "datasetElementType", null), k(dt, "dataElementType", null);
|
|
2780
|
-
function
|
|
2782
|
+
function fl(i, t) {
|
|
2781
2783
|
if (!i._cache.$bar) {
|
|
2782
2784
|
const e = i.getMatchingVisibleMetas(t);
|
|
2783
2785
|
let s = [];
|
|
@@ -2787,8 +2789,8 @@ function dl(i, t) {
|
|
|
2787
2789
|
}
|
|
2788
2790
|
return i._cache.$bar;
|
|
2789
2791
|
}
|
|
2790
|
-
function
|
|
2791
|
-
const t = i.iScale, e =
|
|
2792
|
+
function gl(i) {
|
|
2793
|
+
const t = i.iScale, e = fl(t, i.type);
|
|
2792
2794
|
let s = t._length, n, o, a, r;
|
|
2793
2795
|
const l = () => {
|
|
2794
2796
|
a === 32767 || a === -32768 || (Ce(r) && (s = Math.min(s, Math.abs(a - r) || s)), r = a);
|
|
@@ -2799,7 +2801,7 @@ function ul(i) {
|
|
|
2799
2801
|
a = t.getPixelForTick(n), l();
|
|
2800
2802
|
return s;
|
|
2801
2803
|
}
|
|
2802
|
-
function
|
|
2804
|
+
function pl(i, t, e, s) {
|
|
2803
2805
|
const n = e.barThickness;
|
|
2804
2806
|
let o, a;
|
|
2805
2807
|
return L(n) ? (o = t.min * e.categoryPercentage, a = e.barPercentage) : (o = n * s, a = 1), {
|
|
@@ -2808,7 +2810,7 @@ function fl(i, t, e, s) {
|
|
|
2808
2810
|
start: t.pixels[i] - o / 2
|
|
2809
2811
|
};
|
|
2810
2812
|
}
|
|
2811
|
-
function
|
|
2813
|
+
function ml(i, t, e, s) {
|
|
2812
2814
|
const n = t.pixels, o = n[i];
|
|
2813
2815
|
let a = i > 0 ? n[i - 1] : null, r = i < n.length - 1 ? n[i + 1] : null;
|
|
2814
2816
|
const l = e.categoryPercentage;
|
|
@@ -2820,7 +2822,7 @@ function gl(i, t, e, s) {
|
|
|
2820
2822
|
start: c
|
|
2821
2823
|
};
|
|
2822
2824
|
}
|
|
2823
|
-
function
|
|
2825
|
+
function bl(i, t, e, s) {
|
|
2824
2826
|
const n = e.parse(i[0], s), o = e.parse(i[1], s), a = Math.min(n, o), r = Math.max(n, o);
|
|
2825
2827
|
let l = a, c = r;
|
|
2826
2828
|
Math.abs(a) > Math.abs(r) && (l = r, c = a), t[e.axis] = c, t._custom = {
|
|
@@ -2833,7 +2835,7 @@ function pl(i, t, e, s) {
|
|
|
2833
2835
|
};
|
|
2834
2836
|
}
|
|
2835
2837
|
function Ao(i, t, e, s) {
|
|
2836
|
-
return N(i) ?
|
|
2838
|
+
return N(i) ? bl(i, t, e, s) : t[e.axis] = e.parse(i, s), t;
|
|
2837
2839
|
}
|
|
2838
2840
|
function qs(i, t, e, s) {
|
|
2839
2841
|
const n = i.iScale, o = i.vScale, a = n.getLabels(), r = n === o, l = [];
|
|
@@ -2845,10 +2847,10 @@ function qs(i, t, e, s) {
|
|
|
2845
2847
|
function Ai(i) {
|
|
2846
2848
|
return i && i.barStart !== void 0 && i.barEnd !== void 0;
|
|
2847
2849
|
}
|
|
2848
|
-
function
|
|
2850
|
+
function xl(i, t, e) {
|
|
2849
2851
|
return i !== 0 ? pt(i) : (t.isHorizontal() ? 1 : -1) * (t.min >= e ? 1 : -1);
|
|
2850
2852
|
}
|
|
2851
|
-
function
|
|
2853
|
+
function _l(i) {
|
|
2852
2854
|
let t, e, s, n, o;
|
|
2853
2855
|
return i.horizontal ? (t = i.base > i.x, e = "left", s = "right") : (t = i.base < i.y, e = "bottom", s = "top"), t ? (n = "end", o = "start") : (n = "start", o = "end"), {
|
|
2854
2856
|
start: e,
|
|
@@ -2858,7 +2860,7 @@ function bl(i) {
|
|
|
2858
2860
|
bottom: o
|
|
2859
2861
|
};
|
|
2860
2862
|
}
|
|
2861
|
-
function
|
|
2863
|
+
function yl(i, t, e, s) {
|
|
2862
2864
|
let n = t.borderSkipped;
|
|
2863
2865
|
const o = {};
|
|
2864
2866
|
if (!n) {
|
|
@@ -2874,22 +2876,22 @@ function xl(i, t, e, s) {
|
|
|
2874
2876
|
};
|
|
2875
2877
|
return;
|
|
2876
2878
|
}
|
|
2877
|
-
const { start: a, end: r, reverse: l, top: c, bottom: h } =
|
|
2879
|
+
const { start: a, end: r, reverse: l, top: c, bottom: h } = _l(i);
|
|
2878
2880
|
n === "middle" && e && (i.enableBorderRadius = !0, (e._top || 0) === s ? n = c : (e._bottom || 0) === s ? n = h : (o[Gs(h, a, r, l)] = !0, n = c)), o[Gs(n, a, r, l)] = !0, i.borderSkipped = o;
|
|
2879
2881
|
}
|
|
2880
2882
|
function Gs(i, t, e, s) {
|
|
2881
|
-
return s ? (i =
|
|
2883
|
+
return s ? (i = vl(i, t, e), i = Zs(i, e, t)) : i = Zs(i, t, e), i;
|
|
2882
2884
|
}
|
|
2883
|
-
function
|
|
2885
|
+
function vl(i, t, e) {
|
|
2884
2886
|
return i === t ? e : i === e ? t : i;
|
|
2885
2887
|
}
|
|
2886
2888
|
function Zs(i, t, e) {
|
|
2887
2889
|
return i === "start" ? t : i === "end" ? e : i;
|
|
2888
2890
|
}
|
|
2889
|
-
function
|
|
2891
|
+
function kl(i, { inflateAmount: t }, e) {
|
|
2890
2892
|
i.inflateAmount = t === "auto" ? e === 1 ? 0.33 : 0 : t;
|
|
2891
2893
|
}
|
|
2892
|
-
class
|
|
2894
|
+
class Je extends dt {
|
|
2893
2895
|
parsePrimitiveData(t, e, s, n) {
|
|
2894
2896
|
return qs(t, e, s, n);
|
|
2895
2897
|
}
|
|
@@ -2943,8 +2945,8 @@ class Qe extends dt {
|
|
|
2943
2945
|
width: c ? Math.abs(p.size) : m.size
|
|
2944
2946
|
};
|
|
2945
2947
|
u && (x.options = d || this.resolveDataElementOptions(f, t[f].active ? "active" : n));
|
|
2946
|
-
const
|
|
2947
|
-
|
|
2948
|
+
const _ = x.options || t[f].options;
|
|
2949
|
+
yl(x, _, b, a), kl(x, _, h.ratio), this.updateElement(t[f], f, x, n);
|
|
2948
2950
|
}
|
|
2949
2951
|
}
|
|
2950
2952
|
_getStacks(t, e) {
|
|
@@ -2972,7 +2974,7 @@ class Qe extends dt {
|
|
|
2972
2974
|
n.push(s.getPixelForValue(this.getParsed(o)[s.axis], o));
|
|
2973
2975
|
const r = t.barThickness;
|
|
2974
2976
|
return {
|
|
2975
|
-
min: r ||
|
|
2977
|
+
min: r || gl(e),
|
|
2976
2978
|
pixels: n,
|
|
2977
2979
|
start: s._startPixel,
|
|
2978
2980
|
end: s._endPixel,
|
|
@@ -2989,9 +2991,9 @@ class Qe extends dt {
|
|
|
2989
2991
|
const m = !L(o) && !h ? o : u;
|
|
2990
2992
|
let b = e.getPixelForValue(m);
|
|
2991
2993
|
if (this.chart.getDataVisibility(t) ? g = e.getPixelForValue(u + f) : g = b, p = g - b, Math.abs(p) < a) {
|
|
2992
|
-
p =
|
|
2993
|
-
const x = e.getPixelForDecimal(0),
|
|
2994
|
-
b = Math.max(Math.min(b,
|
|
2994
|
+
p = xl(p, e, r) * a, d === r && (b -= p / 2);
|
|
2995
|
+
const x = e.getPixelForDecimal(0), _ = e.getPixelForDecimal(1), v = Math.min(x, _), y = Math.max(x, _);
|
|
2996
|
+
b = Math.max(Math.min(b, y), v), g = b + p, s && !h && (l._stacks[e.axis]._visualValues[n] = e.getValueForPixel(g) - e.getValueForPixel(b));
|
|
2995
2997
|
}
|
|
2996
2998
|
if (b === e.getPixelForValue(r)) {
|
|
2997
2999
|
const x = pt(p) * e.getLineWidthForValue(r) / 2;
|
|
@@ -3008,7 +3010,7 @@ class Qe extends dt {
|
|
|
3008
3010
|
const s = e.scale, n = this.options, o = n.skipNull, a = C(n.maxBarThickness, 1 / 0);
|
|
3009
3011
|
let r, l;
|
|
3010
3012
|
if (e.grouped) {
|
|
3011
|
-
const c = o ? this._getStackCount(t) : e.stackCount, h = n.barThickness === "flex" ?
|
|
3013
|
+
const c = o ? this._getStackCount(t) : e.stackCount, h = n.barThickness === "flex" ? ml(t, e, n, c) : pl(t, e, n, c), d = this._getStackIndex(this.index, this._cachedMeta.stack, o ? t : void 0);
|
|
3012
3014
|
r = h.start + h.chunk * d + h.chunk / 2, l = Math.min(a, h.chunk * h.ratio);
|
|
3013
3015
|
} else
|
|
3014
3016
|
r = s.getPixelForValue(this.getParsed(t)[s.axis], t), l = Math.min(a, e.min * e.ratio);
|
|
@@ -3026,7 +3028,7 @@ class Qe extends dt {
|
|
|
3026
3028
|
this.getParsed(o)[e.axis] !== null && !s[o].hidden && s[o].draw(this._ctx);
|
|
3027
3029
|
}
|
|
3028
3030
|
}
|
|
3029
|
-
k(
|
|
3031
|
+
k(Je, "id", "bar"), k(Je, "defaults", {
|
|
3030
3032
|
datasetElementType: !1,
|
|
3031
3033
|
dataElementType: "bar",
|
|
3032
3034
|
categoryPercentage: 0.8,
|
|
@@ -3044,7 +3046,7 @@ k(Qe, "id", "bar"), k(Qe, "defaults", {
|
|
|
3044
3046
|
]
|
|
3045
3047
|
}
|
|
3046
3048
|
}
|
|
3047
|
-
}), k(
|
|
3049
|
+
}), k(Je, "overrides", {
|
|
3048
3050
|
scales: {
|
|
3049
3051
|
_index_: {
|
|
3050
3052
|
type: "category",
|
|
@@ -3059,7 +3061,7 @@ k(Qe, "id", "bar"), k(Qe, "defaults", {
|
|
|
3059
3061
|
}
|
|
3060
3062
|
}
|
|
3061
3063
|
});
|
|
3062
|
-
class
|
|
3064
|
+
class Qe extends dt {
|
|
3063
3065
|
initialize() {
|
|
3064
3066
|
this.enableOptionSharing = !0, super.initialize();
|
|
3065
3067
|
}
|
|
@@ -3120,7 +3122,7 @@ class Je extends dt {
|
|
|
3120
3122
|
return e !== "active" && (n.radius = 0), n.radius += C(s && s._custom, o), n;
|
|
3121
3123
|
}
|
|
3122
3124
|
}
|
|
3123
|
-
k(
|
|
3125
|
+
k(Qe, "id", "bubble"), k(Qe, "defaults", {
|
|
3124
3126
|
datasetElementType: !1,
|
|
3125
3127
|
dataElementType: "point",
|
|
3126
3128
|
animations: {
|
|
@@ -3134,7 +3136,7 @@ k(Je, "id", "bubble"), k(Je, "defaults", {
|
|
|
3134
3136
|
]
|
|
3135
3137
|
}
|
|
3136
3138
|
}
|
|
3137
|
-
}), k(
|
|
3139
|
+
}), k(Qe, "overrides", {
|
|
3138
3140
|
scales: {
|
|
3139
3141
|
x: {
|
|
3140
3142
|
type: "linear"
|
|
@@ -3144,10 +3146,10 @@ k(Je, "id", "bubble"), k(Je, "defaults", {
|
|
|
3144
3146
|
}
|
|
3145
3147
|
}
|
|
3146
3148
|
});
|
|
3147
|
-
function
|
|
3149
|
+
function wl(i, t, e) {
|
|
3148
3150
|
let s = 1, n = 1, o = 0, a = 0;
|
|
3149
3151
|
if (t < B) {
|
|
3150
|
-
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (
|
|
3152
|
+
const r = i, l = r + t, c = Math.cos(r), h = Math.sin(r), d = Math.cos(l), u = Math.sin(l), f = (_, v, y) => De(_, r, l, !0) ? 1 : Math.max(v, v * e, y, y * e), g = (_, v, y) => De(_, r, l, !0) ? -1 : Math.min(v, v * e, y, y * e), p = f(0, c, d), m = f(Y, h, u), b = g(V, c, d), x = g(V + Y, h, u);
|
|
3151
3153
|
s = (p - b) / 2, n = (m - x) / 2, o = -(p + b) / 2, a = -(m + x) / 2;
|
|
3152
3154
|
}
|
|
3153
3155
|
return {
|
|
@@ -3197,8 +3199,8 @@ class jt extends dt {
|
|
|
3197
3199
|
};
|
|
3198
3200
|
}
|
|
3199
3201
|
update(t) {
|
|
3200
|
-
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(
|
|
3201
|
-
this.offsetX = g *
|
|
3202
|
+
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(za(this.options.cutout, r), 1), c = this._getRingWeight(this.index), { circumference: h, rotation: d } = this._getRotationExtents(), { ratioX: u, ratioY: f, offsetX: g, offsetY: p } = wl(d, h, l), m = (s.width - a) / u, b = (s.height - a) / f, x = Math.max(Math.min(m, b) / 2, 0), _ = io(this.options.radius, x), v = Math.max(_ * l, 0), y = (_ - v) / this._getVisibleDatasetWeightTotal();
|
|
3203
|
+
this.offsetX = g * _, this.offsetY = p * _, n.total = this.calculateTotal(), this.outerRadius = _ - y * this._getRingWeightOffset(this.index), this.innerRadius = Math.max(this.outerRadius - y * c, 0), this.updateElements(o, 0, o.length, t);
|
|
3202
3204
|
}
|
|
3203
3205
|
_circumference(t, e) {
|
|
3204
3206
|
const s = this.options, n = this._cachedMeta, o = this._getCircumference();
|
|
@@ -3210,16 +3212,16 @@ class jt extends dt {
|
|
|
3210
3212
|
for (x = 0; x < e; ++x)
|
|
3211
3213
|
b += this._circumference(x, o);
|
|
3212
3214
|
for (x = e; x < e + s; ++x) {
|
|
3213
|
-
const
|
|
3215
|
+
const _ = this._circumference(x, o), v = t[x], y = {
|
|
3214
3216
|
x: h + this.offsetX,
|
|
3215
3217
|
y: d + this.offsetY,
|
|
3216
3218
|
startAngle: b,
|
|
3217
|
-
endAngle: b +
|
|
3218
|
-
circumference:
|
|
3219
|
+
endAngle: b + _,
|
|
3220
|
+
circumference: _,
|
|
3219
3221
|
outerRadius: g,
|
|
3220
3222
|
innerRadius: f
|
|
3221
3223
|
};
|
|
3222
|
-
m && (
|
|
3224
|
+
m && (y.options = p || this.resolveDataElementOptions(x, v.active ? "active" : n)), b += _, this.updateElement(v, x, y, n);
|
|
3223
3225
|
}
|
|
3224
3226
|
}
|
|
3225
3227
|
calculateTotal() {
|
|
@@ -3360,16 +3362,16 @@ class ti extends dt {
|
|
|
3360
3362
|
}, t), this.updateElements(n, r, l, t);
|
|
3361
3363
|
}
|
|
3362
3364
|
updateElements(t, e, s, n) {
|
|
3363
|
-
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 = ie(g) ? g : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || n === "none", x = e + s,
|
|
3365
|
+
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 = ie(g) ? g : Number.POSITIVE_INFINITY, b = this.chart._animationsDisabled || o || n === "none", x = e + s, _ = t.length;
|
|
3364
3366
|
let v = e > 0 && this.getParsed(e - 1);
|
|
3365
|
-
for (let
|
|
3366
|
-
const w = t[
|
|
3367
|
-
if (
|
|
3367
|
+
for (let y = 0; y < _; ++y) {
|
|
3368
|
+
const w = t[y], M = b ? w : {};
|
|
3369
|
+
if (y < e || y >= x) {
|
|
3368
3370
|
M.skip = !0;
|
|
3369
3371
|
continue;
|
|
3370
3372
|
}
|
|
3371
|
-
const S = this.getParsed(
|
|
3372
|
-
M.skip = isNaN(D) || isNaN(A) || P, M.stop =
|
|
3373
|
+
const S = this.getParsed(y), P = L(S[f]), D = M[u] = a.getPixelForValue(S[u], y), A = M[f] = o || P ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, S, l) : S[f], y);
|
|
3374
|
+
M.skip = isNaN(D) || isNaN(A) || P, M.stop = y > 0 && Math.abs(S[u] - v[u]) > m, p && (M.parsed = S, M.raw = c.data[y]), d && (M.options = h || this.resolveDataElementOptions(y, w.active ? "active" : n)), b || this.updateElement(w, y, M, n), v = S;
|
|
3373
3375
|
}
|
|
3374
3376
|
}
|
|
3375
3377
|
getMaxOverflow() {
|
|
@@ -3439,13 +3441,13 @@ class we extends dt {
|
|
|
3439
3441
|
f += this._computeAngle(g, n, p);
|
|
3440
3442
|
for (g = e; g < e + s; g++) {
|
|
3441
3443
|
const m = t[g];
|
|
3442
|
-
let b = f, x = f + this._computeAngle(g, n, p),
|
|
3443
|
-
f = x, o && (l.animateScale && (
|
|
3444
|
+
let b = f, x = f + this._computeAngle(g, n, p), _ = a.getDataVisibility(g) ? c.getDistanceFromCenterForValue(this.getParsed(g).r) : 0;
|
|
3445
|
+
f = x, o && (l.animateScale && (_ = 0), l.animateRotate && (b = x = u));
|
|
3444
3446
|
const v = {
|
|
3445
3447
|
x: h,
|
|
3446
3448
|
y: d,
|
|
3447
3449
|
innerRadius: 0,
|
|
3448
|
-
outerRadius:
|
|
3450
|
+
outerRadius: _,
|
|
3449
3451
|
startAngle: b,
|
|
3450
3452
|
endAngle: x,
|
|
3451
3453
|
options: this.resolveDataElementOptions(g, m.active ? "active" : n)
|
|
@@ -3627,10 +3629,10 @@ class ii extends dt {
|
|
|
3627
3629
|
}
|
|
3628
3630
|
updateElements(t, e, s, n) {
|
|
3629
3631
|
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 = ie(p) ? p : Number.POSITIVE_INFINITY, x = this.chart._animationsDisabled || o || n === "none";
|
|
3630
|
-
let
|
|
3632
|
+
let _ = e > 0 && this.getParsed(e - 1);
|
|
3631
3633
|
for (let v = e; v < e + s; ++v) {
|
|
3632
|
-
const
|
|
3633
|
-
M.skip = isNaN(P) || isNaN(D) || S, M.stop = v > 0 && Math.abs(w[f] -
|
|
3634
|
+
const y = t[v], w = this.getParsed(v), M = x ? y : {}, S = L(w[g]), P = M[f] = a.getPixelForValue(w[f], v), D = M[g] = o || S ? r.getBasePixel() : r.getPixelForValue(l ? this.applyStack(r, w, l) : w[g], v);
|
|
3635
|
+
M.skip = isNaN(P) || isNaN(D) || S, M.stop = v > 0 && Math.abs(w[f] - _[f]) > b, m && (M.parsed = w, M.raw = c.data[v]), u && (M.options = d || this.resolveDataElementOptions(v, y.active ? "active" : n)), x || this.updateElement(y, v, M, n), _ = w;
|
|
3634
3636
|
}
|
|
3635
3637
|
this.updateSharedOptions(d, n, h);
|
|
3636
3638
|
}
|
|
@@ -3667,10 +3669,10 @@ k(ii, "id", "scatter"), k(ii, "defaults", {
|
|
|
3667
3669
|
}
|
|
3668
3670
|
}
|
|
3669
3671
|
});
|
|
3670
|
-
var
|
|
3672
|
+
var Ml = /* @__PURE__ */ Object.freeze({
|
|
3671
3673
|
__proto__: null,
|
|
3672
|
-
BarController:
|
|
3673
|
-
BubbleController:
|
|
3674
|
+
BarController: Je,
|
|
3675
|
+
BubbleController: Qe,
|
|
3674
3676
|
DoughnutController: jt,
|
|
3675
3677
|
LineController: ti,
|
|
3676
3678
|
PieController: ji,
|
|
@@ -3724,13 +3726,13 @@ class bs {
|
|
|
3724
3726
|
return Bt();
|
|
3725
3727
|
}
|
|
3726
3728
|
}
|
|
3727
|
-
var
|
|
3729
|
+
var Sl = {
|
|
3728
3730
|
_date: bs
|
|
3729
3731
|
};
|
|
3730
|
-
function
|
|
3732
|
+
function Pl(i, t, e, s) {
|
|
3731
3733
|
const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
|
|
3732
3734
|
if (r && t === r.axis && t !== "r" && a && o.length) {
|
|
3733
|
-
const l = r._reversePixels ?
|
|
3735
|
+
const l = r._reversePixels ? qa : wt;
|
|
3734
3736
|
if (s) {
|
|
3735
3737
|
if (n._sharedOptions) {
|
|
3736
3738
|
const c = o[0], h = typeof c.getRange == "function" && c.getRange(t);
|
|
@@ -3752,14 +3754,14 @@ function Ml(i, t, e, s) {
|
|
|
3752
3754
|
function yi(i, t, e, s, n) {
|
|
3753
3755
|
const o = i.getSortedVisibleDatasetMetas(), a = e[t];
|
|
3754
3756
|
for (let r = 0, l = o.length; r < l; ++r) {
|
|
3755
|
-
const { index: c, data: h } = o[r], { lo: d, hi: u } =
|
|
3757
|
+
const { index: c, data: h } = o[r], { lo: d, hi: u } = Pl(o[r], t, a, n);
|
|
3756
3758
|
for (let f = d; f <= u; ++f) {
|
|
3757
3759
|
const g = h[f];
|
|
3758
3760
|
g.skip || s(g, c, f);
|
|
3759
3761
|
}
|
|
3760
3762
|
}
|
|
3761
3763
|
}
|
|
3762
|
-
function
|
|
3764
|
+
function Cl(i) {
|
|
3763
3765
|
const t = i.indexOf("x") !== -1, e = i.indexOf("y") !== -1;
|
|
3764
3766
|
return function(s, n) {
|
|
3765
3767
|
const o = t ? Math.abs(s.x - n.x) : 0, a = e ? Math.abs(s.y - n.y) : 0;
|
|
@@ -3776,7 +3778,7 @@ function Oi(i, t, e, s, n) {
|
|
|
3776
3778
|
});
|
|
3777
3779
|
}, !0), o;
|
|
3778
3780
|
}
|
|
3779
|
-
function
|
|
3781
|
+
function Dl(i, t, e, s) {
|
|
3780
3782
|
let n = [];
|
|
3781
3783
|
function o(a, r, l) {
|
|
3782
3784
|
const { startAngle: c, endAngle: h } = a.getProps([
|
|
@@ -3794,9 +3796,9 @@ function Pl(i, t, e, s) {
|
|
|
3794
3796
|
}
|
|
3795
3797
|
return yi(i, e, t, o), n;
|
|
3796
3798
|
}
|
|
3797
|
-
function
|
|
3799
|
+
function Al(i, t, e, s, n, o) {
|
|
3798
3800
|
let a = [];
|
|
3799
|
-
const r =
|
|
3801
|
+
const r = Cl(e);
|
|
3800
3802
|
let l = Number.POSITIVE_INFINITY;
|
|
3801
3803
|
function c(h, d, u) {
|
|
3802
3804
|
const f = h.inRange(t.x, t.y, n);
|
|
@@ -3821,9 +3823,9 @@ function Cl(i, t, e, s, n, o) {
|
|
|
3821
3823
|
return yi(i, e, t, c), a;
|
|
3822
3824
|
}
|
|
3823
3825
|
function Ti(i, t, e, s, n, o) {
|
|
3824
|
-
return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ?
|
|
3826
|
+
return !o && !i.isPointInArea(t) ? [] : e === "r" && !s ? Dl(i, t, e, n) : Al(i, t, e, s, n, o);
|
|
3825
3827
|
}
|
|
3826
|
-
function
|
|
3828
|
+
function Js(i, t, e, s, n) {
|
|
3827
3829
|
const o = [], a = e === "x" ? "inXRange" : "inYRange";
|
|
3828
3830
|
let r = !1;
|
|
3829
3831
|
return yi(i, e, t, (l, c, h) => {
|
|
@@ -3834,7 +3836,7 @@ function Qs(i, t, e, s, n) {
|
|
|
3834
3836
|
}), r = r || l.inRange(t.x, t.y, n));
|
|
3835
3837
|
}), s && !r ? [] : o;
|
|
3836
3838
|
}
|
|
3837
|
-
var
|
|
3839
|
+
var Ol = {
|
|
3838
3840
|
modes: {
|
|
3839
3841
|
index(i, t, e, s) {
|
|
3840
3842
|
const n = Wt(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? Oi(i, n, o, s, a) : Ti(i, n, o, !1, s, a), l = [];
|
|
@@ -3872,11 +3874,11 @@ var Dl = {
|
|
|
3872
3874
|
},
|
|
3873
3875
|
x(i, t, e, s) {
|
|
3874
3876
|
const n = Wt(t, i);
|
|
3875
|
-
return
|
|
3877
|
+
return Js(i, n, "x", e.intersect, s);
|
|
3876
3878
|
},
|
|
3877
3879
|
y(i, t, e, s) {
|
|
3878
3880
|
const n = Wt(t, i);
|
|
3879
|
-
return
|
|
3881
|
+
return Js(i, n, "y", e.intersect, s);
|
|
3880
3882
|
}
|
|
3881
3883
|
}
|
|
3882
3884
|
};
|
|
@@ -3889,7 +3891,7 @@ const Oo = [
|
|
|
3889
3891
|
function ce(i, t) {
|
|
3890
3892
|
return i.filter((e) => e.pos === t);
|
|
3891
3893
|
}
|
|
3892
|
-
function
|
|
3894
|
+
function Qs(i, t) {
|
|
3893
3895
|
return i.filter((e) => Oo.indexOf(e.pos) === -1 && e.box.axis === t);
|
|
3894
3896
|
}
|
|
3895
3897
|
function he(i, t) {
|
|
@@ -3898,7 +3900,7 @@ function he(i, t) {
|
|
|
3898
3900
|
return n.weight === o.weight ? n.index - o.index : n.weight - o.weight;
|
|
3899
3901
|
});
|
|
3900
3902
|
}
|
|
3901
|
-
function
|
|
3903
|
+
function Tl(i) {
|
|
3902
3904
|
const t = [];
|
|
3903
3905
|
let e, s, n, o, a, r;
|
|
3904
3906
|
for (e = 0, s = (i || []).length; e < s; ++e)
|
|
@@ -3913,7 +3915,7 @@ function Al(i) {
|
|
|
3913
3915
|
});
|
|
3914
3916
|
return t;
|
|
3915
3917
|
}
|
|
3916
|
-
function
|
|
3918
|
+
function Ll(i) {
|
|
3917
3919
|
const t = {};
|
|
3918
3920
|
for (const e of i) {
|
|
3919
3921
|
const { stack: s, pos: n, stackWeight: o } = e;
|
|
@@ -3929,8 +3931,8 @@ function Ol(i) {
|
|
|
3929
3931
|
}
|
|
3930
3932
|
return t;
|
|
3931
3933
|
}
|
|
3932
|
-
function
|
|
3933
|
-
const e =
|
|
3934
|
+
function Rl(i, t) {
|
|
3935
|
+
const e = Ll(i), { vBoxMaxWidth: s, hBoxMaxHeight: n } = t;
|
|
3934
3936
|
let o, a, r;
|
|
3935
3937
|
for (o = 0, a = i.length; o < a; ++o) {
|
|
3936
3938
|
r = i[o];
|
|
@@ -3939,8 +3941,8 @@ function Tl(i, t) {
|
|
|
3939
3941
|
}
|
|
3940
3942
|
return e;
|
|
3941
3943
|
}
|
|
3942
|
-
function
|
|
3943
|
-
const t =
|
|
3944
|
+
function Fl(i) {
|
|
3945
|
+
const t = Tl(i), e = he(t.filter((c) => c.box.fullSize), !0), s = he(ce(t, "left"), !0), n = he(ce(t, "right")), o = he(ce(t, "top"), !0), a = he(ce(t, "bottom")), r = Qs(t, "x"), l = Qs(t, "y");
|
|
3944
3946
|
return {
|
|
3945
3947
|
fullSize: e,
|
|
3946
3948
|
leftAndTop: s.concat(o),
|
|
@@ -3956,7 +3958,7 @@ function tn(i, t, e, s) {
|
|
|
3956
3958
|
function To(i, t) {
|
|
3957
3959
|
i.top = Math.max(i.top, t.top), i.left = Math.max(i.left, t.left), i.bottom = Math.max(i.bottom, t.bottom), i.right = Math.max(i.right, t.right);
|
|
3958
3960
|
}
|
|
3959
|
-
function
|
|
3961
|
+
function El(i, t, e, s) {
|
|
3960
3962
|
const { pos: n, box: o } = e, a = i.maxPadding;
|
|
3961
3963
|
if (!O(n)) {
|
|
3962
3964
|
e.size && (i[n] -= e.size);
|
|
@@ -3976,7 +3978,7 @@ function Rl(i, t, e, s) {
|
|
|
3976
3978
|
other: c
|
|
3977
3979
|
};
|
|
3978
3980
|
}
|
|
3979
|
-
function
|
|
3981
|
+
function Il(i) {
|
|
3980
3982
|
const t = i.maxPadding;
|
|
3981
3983
|
function e(s) {
|
|
3982
3984
|
const n = Math.max(t[s] - i[s], 0);
|
|
@@ -3984,7 +3986,7 @@ function Fl(i) {
|
|
|
3984
3986
|
}
|
|
3985
3987
|
i.y += e("top"), i.x += e("left"), e("right"), e("bottom");
|
|
3986
3988
|
}
|
|
3987
|
-
function
|
|
3989
|
+
function zl(i, t) {
|
|
3988
3990
|
const e = t.maxPadding;
|
|
3989
3991
|
function s(n) {
|
|
3990
3992
|
const o = {
|
|
@@ -4009,8 +4011,8 @@ function pe(i, t, e, s) {
|
|
|
4009
4011
|
const n = [];
|
|
4010
4012
|
let o, a, r, l, c, h;
|
|
4011
4013
|
for (o = 0, a = i.length, c = 0; o < a; ++o) {
|
|
4012
|
-
r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h,
|
|
4013
|
-
const { same: d, other: u } =
|
|
4014
|
+
r = i[o], l = r.box, l.update(r.width || t.w, r.height || t.h, zl(r.horizontal, t));
|
|
4015
|
+
const { same: d, other: u } = El(t, e, r, s);
|
|
4014
4016
|
c |= d && n.length, h = h || u, l.fullSize || n.push(r);
|
|
4015
4017
|
}
|
|
4016
4018
|
return c && pe(n, t, e, s) || h;
|
|
@@ -4036,7 +4038,7 @@ function en(i, t, e, s) {
|
|
|
4036
4038
|
}
|
|
4037
4039
|
t.x = o, t.y = a;
|
|
4038
4040
|
}
|
|
4039
|
-
var
|
|
4041
|
+
var Q = {
|
|
4040
4042
|
addBox(i, t) {
|
|
4041
4043
|
i.boxes || (i.boxes = []), t.fullSize = t.fullSize || !1, t.position = t.position || "top", t.weight = t.weight || 0, t._layers = t._layers || function() {
|
|
4042
4044
|
return [
|
|
@@ -4059,7 +4061,7 @@ var J = {
|
|
|
4059
4061
|
update(i, t, e, s) {
|
|
4060
4062
|
if (!i)
|
|
4061
4063
|
return;
|
|
4062
|
-
const n = tt(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r =
|
|
4064
|
+
const n = tt(i.options.layout.padding), o = Math.max(t - n.width, 0), a = Math.max(e - n.height, 0), r = Fl(i.boxes), l = r.vertical, c = r.horizontal;
|
|
4063
4065
|
F(i.boxes, (p) => {
|
|
4064
4066
|
typeof p.beforeLayout == "function" && p.beforeLayout();
|
|
4065
4067
|
});
|
|
@@ -4079,8 +4081,8 @@ var J = {
|
|
|
4079
4081
|
h: a,
|
|
4080
4082
|
x: n.left,
|
|
4081
4083
|
y: n.top
|
|
4082
|
-
}, n), g =
|
|
4083
|
-
pe(r.fullSize, f, d, g), pe(l, f, d, g), pe(c, f, d, g) && pe(l, f, d, g),
|
|
4084
|
+
}, n), g = Rl(l.concat(c), d);
|
|
4085
|
+
pe(r.fullSize, f, d, g), pe(l, f, d, g), pe(c, f, d, g) && pe(l, f, d, g), Il(f), en(r.leftAndTop, f, d, g), f.x += f.w, f.y += f.h, en(r.rightAndBottom, f, d, g), i.chartArea = {
|
|
4084
4086
|
left: f.left,
|
|
4085
4087
|
top: f.top,
|
|
4086
4088
|
right: f.left + f.w,
|
|
@@ -4123,7 +4125,7 @@ class Lo {
|
|
|
4123
4125
|
updateConfig(t) {
|
|
4124
4126
|
}
|
|
4125
4127
|
}
|
|
4126
|
-
class
|
|
4128
|
+
class Bl extends Lo {
|
|
4127
4129
|
acquireContext(t) {
|
|
4128
4130
|
return t && t.getContext && t.getContext("2d") || null;
|
|
4129
4131
|
}
|
|
@@ -4131,7 +4133,7 @@ class Il extends Lo {
|
|
|
4131
4133
|
t.options.animation = !1;
|
|
4132
4134
|
}
|
|
4133
4135
|
}
|
|
4134
|
-
const si = "$chartjs",
|
|
4136
|
+
const si = "$chartjs", Vl = {
|
|
4135
4137
|
touchstart: "mousedown",
|
|
4136
4138
|
touchmove: "mousemove",
|
|
4137
4139
|
touchend: "mouseup",
|
|
@@ -4142,7 +4144,7 @@ const si = "$chartjs", zl = {
|
|
|
4142
4144
|
pointerleave: "mouseout",
|
|
4143
4145
|
pointerout: "mouseout"
|
|
4144
4146
|
}, sn = (i) => i === null || i === "";
|
|
4145
|
-
function
|
|
4147
|
+
function Wl(i, t) {
|
|
4146
4148
|
const e = i.style, s = i.getAttribute("height"), n = i.getAttribute("width");
|
|
4147
4149
|
if (i[si] = {
|
|
4148
4150
|
initial: {
|
|
@@ -4167,17 +4169,17 @@ function Bl(i, t) {
|
|
|
4167
4169
|
}
|
|
4168
4170
|
return i;
|
|
4169
4171
|
}
|
|
4170
|
-
const Ro =
|
|
4172
|
+
const Ro = Hr ? {
|
|
4171
4173
|
passive: !0
|
|
4172
4174
|
} : !1;
|
|
4173
|
-
function
|
|
4175
|
+
function Nl(i, t, e) {
|
|
4174
4176
|
i && i.addEventListener(t, e, Ro);
|
|
4175
4177
|
}
|
|
4176
|
-
function
|
|
4178
|
+
function Hl(i, t, e) {
|
|
4177
4179
|
i && i.canvas && i.canvas.removeEventListener(t, e, Ro);
|
|
4178
4180
|
}
|
|
4179
|
-
function
|
|
4180
|
-
const e =
|
|
4181
|
+
function jl(i, t) {
|
|
4182
|
+
const e = Vl[i.type] || i.type, { x: s, y: n } = Wt(i, t);
|
|
4181
4183
|
return {
|
|
4182
4184
|
type: e,
|
|
4183
4185
|
chart: t,
|
|
@@ -4191,7 +4193,7 @@ function fi(i, t) {
|
|
|
4191
4193
|
if (e === t || e.contains(t))
|
|
4192
4194
|
return !0;
|
|
4193
4195
|
}
|
|
4194
|
-
function
|
|
4196
|
+
function $l(i, t, e) {
|
|
4195
4197
|
const s = i.canvas, n = new MutationObserver((o) => {
|
|
4196
4198
|
let a = !1;
|
|
4197
4199
|
for (const r of o)
|
|
@@ -4203,7 +4205,7 @@ function Hl(i, t, e) {
|
|
|
4203
4205
|
subtree: !0
|
|
4204
4206
|
}), n;
|
|
4205
4207
|
}
|
|
4206
|
-
function
|
|
4208
|
+
function Yl(i, t, e) {
|
|
4207
4209
|
const s = i.canvas, n = new MutationObserver((o) => {
|
|
4208
4210
|
let a = !1;
|
|
4209
4211
|
for (const r of o)
|
|
@@ -4223,13 +4225,13 @@ function Fo() {
|
|
|
4223
4225
|
e.currentDevicePixelRatio !== i && t();
|
|
4224
4226
|
}));
|
|
4225
4227
|
}
|
|
4226
|
-
function
|
|
4228
|
+
function Ul(i, t) {
|
|
4227
4229
|
Oe.size || window.addEventListener("resize", Fo), Oe.set(i, t);
|
|
4228
4230
|
}
|
|
4229
|
-
function
|
|
4231
|
+
function Xl(i) {
|
|
4230
4232
|
Oe.delete(i), Oe.size || window.removeEventListener("resize", Fo);
|
|
4231
4233
|
}
|
|
4232
|
-
function
|
|
4234
|
+
function Kl(i, t, e) {
|
|
4233
4235
|
const s = i.canvas, n = s && ms(s);
|
|
4234
4236
|
if (!n)
|
|
4235
4237
|
return;
|
|
@@ -4240,21 +4242,21 @@ function Ul(i, t, e) {
|
|
|
4240
4242
|
const l = r[0], c = l.contentRect.width, h = l.contentRect.height;
|
|
4241
4243
|
c === 0 && h === 0 || o(c, h);
|
|
4242
4244
|
});
|
|
4243
|
-
return a.observe(n),
|
|
4245
|
+
return a.observe(n), Ul(i, o), a;
|
|
4244
4246
|
}
|
|
4245
4247
|
function Li(i, t, e) {
|
|
4246
|
-
e && e.disconnect(), t === "resize" &&
|
|
4248
|
+
e && e.disconnect(), t === "resize" && Xl(i);
|
|
4247
4249
|
}
|
|
4248
|
-
function
|
|
4250
|
+
function ql(i, t, e) {
|
|
4249
4251
|
const s = i.canvas, n = co((o) => {
|
|
4250
|
-
i.ctx !== null && e(
|
|
4252
|
+
i.ctx !== null && e(jl(o, i));
|
|
4251
4253
|
}, i);
|
|
4252
|
-
return
|
|
4254
|
+
return Nl(s, t, n), n;
|
|
4253
4255
|
}
|
|
4254
|
-
class
|
|
4256
|
+
class Gl extends Lo {
|
|
4255
4257
|
acquireContext(t, e) {
|
|
4256
4258
|
const s = t && t.getContext && t.getContext("2d");
|
|
4257
|
-
return s && s.canvas === t ? (
|
|
4259
|
+
return s && s.canvas === t ? (Wl(t, e), s) : null;
|
|
4258
4260
|
}
|
|
4259
4261
|
releaseContext(t) {
|
|
4260
4262
|
const e = t.canvas;
|
|
@@ -4276,10 +4278,10 @@ class Kl extends Lo {
|
|
|
4276
4278
|
addEventListener(t, e, s) {
|
|
4277
4279
|
this.removeEventListener(t, e);
|
|
4278
4280
|
const n = t.$proxies || (t.$proxies = {}), a = {
|
|
4279
|
-
attach:
|
|
4280
|
-
detach:
|
|
4281
|
-
resize:
|
|
4282
|
-
}[e] ||
|
|
4281
|
+
attach: $l,
|
|
4282
|
+
detach: Yl,
|
|
4283
|
+
resize: Kl
|
|
4284
|
+
}[e] || ql;
|
|
4283
4285
|
n[e] = a(t, e, s);
|
|
4284
4286
|
}
|
|
4285
4287
|
removeEventListener(t, e) {
|
|
@@ -4290,21 +4292,21 @@ class Kl extends Lo {
|
|
|
4290
4292
|
attach: Li,
|
|
4291
4293
|
detach: Li,
|
|
4292
4294
|
resize: Li
|
|
4293
|
-
}[e] ||
|
|
4295
|
+
}[e] || Hl)(t, e, n), s[e] = void 0;
|
|
4294
4296
|
}
|
|
4295
4297
|
getDevicePixelRatio() {
|
|
4296
4298
|
return window.devicePixelRatio;
|
|
4297
4299
|
}
|
|
4298
4300
|
getMaximumSize(t, e, s, n) {
|
|
4299
|
-
return
|
|
4301
|
+
return Nr(t, e, s, n);
|
|
4300
4302
|
}
|
|
4301
4303
|
isAttached(t) {
|
|
4302
4304
|
const e = t && ms(t);
|
|
4303
4305
|
return !!(e && e.isConnected);
|
|
4304
4306
|
}
|
|
4305
4307
|
}
|
|
4306
|
-
function
|
|
4307
|
-
return !ps() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ?
|
|
4308
|
+
function Zl(i) {
|
|
4309
|
+
return !ps() || typeof OffscreenCanvas < "u" && i instanceof OffscreenCanvas ? Bl : Gl;
|
|
4308
4310
|
}
|
|
4309
4311
|
class ut {
|
|
4310
4312
|
constructor() {
|
|
@@ -4338,11 +4340,11 @@ class ut {
|
|
|
4338
4340
|
}
|
|
4339
4341
|
}
|
|
4340
4342
|
k(ut, "defaults", {}), k(ut, "defaultRoutes");
|
|
4341
|
-
function
|
|
4342
|
-
const e = i.options.ticks, s =
|
|
4343
|
+
function Jl(i, t) {
|
|
4344
|
+
const e = i.options.ticks, s = Ql(i), n = Math.min(e.maxTicksLimit || s, s), o = e.major.enabled ? ec(t) : [], a = o.length, r = o[0], l = o[a - 1], c = [];
|
|
4343
4345
|
if (a > n)
|
|
4344
|
-
return
|
|
4345
|
-
const h =
|
|
4346
|
+
return ic(t, c, o, a / n), c;
|
|
4347
|
+
const h = tc(o, t, n);
|
|
4346
4348
|
if (a > 0) {
|
|
4347
4349
|
let d, u;
|
|
4348
4350
|
const f = a > 1 ? Math.round((l - r) / (a - 1)) : null;
|
|
@@ -4352,15 +4354,15 @@ function Gl(i, t) {
|
|
|
4352
4354
|
}
|
|
4353
4355
|
return je(t, c, h), c;
|
|
4354
4356
|
}
|
|
4355
|
-
function
|
|
4357
|
+
function Ql(i) {
|
|
4356
4358
|
const t = i.options.offset, e = i._tickSize(), s = i._length / e + (t ? 0 : 1), n = i._maxLength / e;
|
|
4357
4359
|
return Math.floor(Math.min(s, n));
|
|
4358
4360
|
}
|
|
4359
|
-
function
|
|
4360
|
-
const s =
|
|
4361
|
+
function tc(i, t, e) {
|
|
4362
|
+
const s = sc(i), n = t.length / e;
|
|
4361
4363
|
if (!s)
|
|
4362
4364
|
return Math.max(n, 1);
|
|
4363
|
-
const o =
|
|
4365
|
+
const o = Ya(s);
|
|
4364
4366
|
for (let a = 0, r = o.length - 1; a < r; a++) {
|
|
4365
4367
|
const l = o[a];
|
|
4366
4368
|
if (l > n)
|
|
@@ -4368,14 +4370,14 @@ function Ql(i, t, e) {
|
|
|
4368
4370
|
}
|
|
4369
4371
|
return Math.max(n, 1);
|
|
4370
4372
|
}
|
|
4371
|
-
function
|
|
4373
|
+
function ec(i) {
|
|
4372
4374
|
const t = [];
|
|
4373
4375
|
let e, s;
|
|
4374
4376
|
for (e = 0, s = i.length; e < s; e++)
|
|
4375
4377
|
i[e].major && t.push(e);
|
|
4376
4378
|
return t;
|
|
4377
4379
|
}
|
|
4378
|
-
function
|
|
4380
|
+
function ic(i, t, e, s) {
|
|
4379
4381
|
let n = 0, o = e[0], a;
|
|
4380
4382
|
for (s = Math.ceil(s), a = 0; a < i.length; a++)
|
|
4381
4383
|
a === o && (t.push(i[a]), n++, o = e[n * s]);
|
|
@@ -4388,7 +4390,7 @@ function je(i, t, e, s, n) {
|
|
|
4388
4390
|
for (c = Math.max(o, 0); c < a; c++)
|
|
4389
4391
|
c === h && (t.push(i[c]), r++, h = Math.round(o + r * e));
|
|
4390
4392
|
}
|
|
4391
|
-
function
|
|
4393
|
+
function sc(i) {
|
|
4392
4394
|
const t = i.length;
|
|
4393
4395
|
let e, s;
|
|
4394
4396
|
if (t < 2)
|
|
@@ -4398,7 +4400,7 @@ function ec(i) {
|
|
|
4398
4400
|
return !1;
|
|
4399
4401
|
return s;
|
|
4400
4402
|
}
|
|
4401
|
-
const
|
|
4403
|
+
const nc = (i) => i === "left" ? "right" : i === "right" ? "left" : i, on = (i, t, e) => t === "top" || t === "left" ? i[t] + e : i[t] - e, an = (i, t) => Math.min(t || i, i);
|
|
4402
4404
|
function rn(i, t) {
|
|
4403
4405
|
const e = [], s = i.length / t, n = i.length;
|
|
4404
4406
|
let o = 0;
|
|
@@ -4406,13 +4408,13 @@ function rn(i, t) {
|
|
|
4406
4408
|
e.push(i[Math.floor(o)]);
|
|
4407
4409
|
return e;
|
|
4408
4410
|
}
|
|
4409
|
-
function
|
|
4411
|
+
function oc(i, t, e) {
|
|
4410
4412
|
const s = i.ticks.length, n = Math.min(t, s - 1), o = i._startPixel, a = i._endPixel, r = 1e-6;
|
|
4411
4413
|
let l = i.getPixelForTick(n), c;
|
|
4412
4414
|
if (!(e && (s === 1 ? c = Math.max(l - o, a - l) : t === 0 ? c = (i.getPixelForTick(1) - l) / 2 : c = (l - i.getPixelForTick(n - 1)) / 2, l += n < t ? c : -c, l < o - r || l > a + r)))
|
|
4413
4415
|
return l;
|
|
4414
4416
|
}
|
|
4415
|
-
function
|
|
4417
|
+
function ac(i, t) {
|
|
4416
4418
|
F(i, (e) => {
|
|
4417
4419
|
const s = e.gc, n = s.length / 2;
|
|
4418
4420
|
let o;
|
|
@@ -4432,29 +4434,29 @@ function ln(i, t) {
|
|
|
4432
4434
|
const e = X(i.font, t), s = tt(i.padding);
|
|
4433
4435
|
return (N(i.text) ? i.text.length : 1) * e.lineHeight + s.height;
|
|
4434
4436
|
}
|
|
4435
|
-
function
|
|
4437
|
+
function rc(i, t) {
|
|
4436
4438
|
return Rt(i, {
|
|
4437
4439
|
scale: t,
|
|
4438
4440
|
type: "scale"
|
|
4439
4441
|
});
|
|
4440
4442
|
}
|
|
4441
|
-
function
|
|
4443
|
+
function lc(i, t, e) {
|
|
4442
4444
|
return Rt(i, {
|
|
4443
4445
|
tick: e,
|
|
4444
4446
|
index: t,
|
|
4445
4447
|
type: "tick"
|
|
4446
4448
|
});
|
|
4447
4449
|
}
|
|
4448
|
-
function
|
|
4450
|
+
function cc(i, t, e) {
|
|
4449
4451
|
let s = cs(i);
|
|
4450
|
-
return (e && t !== "right" || !e && t === "right") && (s =
|
|
4452
|
+
return (e && t !== "right" || !e && t === "right") && (s = nc(s)), s;
|
|
4451
4453
|
}
|
|
4452
|
-
function
|
|
4454
|
+
function hc(i, t, e, s) {
|
|
4453
4455
|
const { top: n, left: o, bottom: a, right: r, chart: l } = i, { chartArea: c, scales: h } = l;
|
|
4454
4456
|
let d = 0, u, f, g;
|
|
4455
4457
|
const p = a - n, m = r - o;
|
|
4456
4458
|
if (i.isHorizontal()) {
|
|
4457
|
-
if (f =
|
|
4459
|
+
if (f = J(s, o, r), O(e)) {
|
|
4458
4460
|
const b = Object.keys(e)[0], x = e[b];
|
|
4459
4461
|
g = h[b].getPixelForValue(x) + p - t;
|
|
4460
4462
|
} else e === "center" ? g = (c.bottom + c.top) / 2 + p - t : g = on(i, e, t);
|
|
@@ -4464,7 +4466,7 @@ function lc(i, t, e, s) {
|
|
|
4464
4466
|
const b = Object.keys(e)[0], x = e[b];
|
|
4465
4467
|
f = h[b].getPixelForValue(x) - m + t;
|
|
4466
4468
|
} else e === "center" ? f = (c.left + c.right) / 2 - m + t : f = on(i, e, t);
|
|
4467
|
-
g =
|
|
4469
|
+
g = J(s, a, n), d = e === "left" ? -Y : Y;
|
|
4468
4470
|
}
|
|
4469
4471
|
return {
|
|
4470
4472
|
titleX: f,
|
|
@@ -4545,9 +4547,9 @@ class Gt extends ut {
|
|
|
4545
4547
|
right: 0,
|
|
4546
4548
|
top: 0,
|
|
4547
4549
|
bottom: 0
|
|
4548
|
-
}, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range =
|
|
4550
|
+
}, s), this.ticks = null, this._labelSizes = null, this._gridLineItems = null, this._labelItems = null, this.beforeSetDimensions(), this.setDimensions(), this.afterSetDimensions(), this._maxLength = this.isHorizontal() ? this.width + s.left + s.right : this.height + s.top + s.bottom, this._dataLimitsCached || (this.beforeDataLimits(), this.determineDataLimits(), this.afterDataLimits(), this._range = _r(this, o, n), this._dataLimitsCached = !0), this.beforeBuildTicks(), this.ticks = this.buildTicks() || [], this.afterBuildTicks();
|
|
4549
4551
|
const l = r < this.ticks.length;
|
|
4550
|
-
this._convertTicksToLabels(l ? rn(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks =
|
|
4552
|
+
this._convertTicksToLabels(l ? rn(this.ticks, r) : this.ticks), this.configure(), this.beforeCalculateLabelRotation(), this.calculateLabelRotation(), this.afterCalculateLabelRotation(), a.display && (a.autoSkip || a.source === "auto") && (this.ticks = Jl(this, this.ticks), this._labelSizes = null, this.afterAutoSkip()), l && this._convertTicksToLabels(this.ticks), this.beforeFit(), this.fit(), this.afterFit(), this.afterUpdate();
|
|
4551
4553
|
}
|
|
4552
4554
|
configure() {
|
|
4553
4555
|
let t = this.options.reverse, e, s;
|
|
@@ -4705,19 +4707,19 @@ class Gt extends ut {
|
|
|
4705
4707
|
}
|
|
4706
4708
|
_computeLabelSizes(t, e, s) {
|
|
4707
4709
|
const { ctx: n, _longestTextCache: o } = this, a = [], r = [], l = Math.floor(e / an(e, s));
|
|
4708
|
-
let c = 0, h = 0, d, u, f, g, p, m, b, x,
|
|
4710
|
+
let c = 0, h = 0, d, u, f, g, p, m, b, x, _, v, y;
|
|
4709
4711
|
for (d = 0; d < e; d += l) {
|
|
4710
4712
|
if (g = t[d].label, p = this._resolveTickFontOptions(d), n.font = m = p.string, b = o[m] = o[m] || {
|
|
4711
4713
|
data: {},
|
|
4712
4714
|
gc: []
|
|
4713
|
-
}, x = p.lineHeight,
|
|
4714
|
-
|
|
4715
|
+
}, x = p.lineHeight, _ = v = 0, !L(g) && !N(g))
|
|
4716
|
+
_ = di(n, b.data, b.gc, _, g), v = x;
|
|
4715
4717
|
else if (N(g))
|
|
4716
4718
|
for (u = 0, f = g.length; u < f; ++u)
|
|
4717
|
-
|
|
4718
|
-
a.push(
|
|
4719
|
+
y = g[u], !L(y) && !N(y) && (_ = di(n, b.data, b.gc, _, y), v += x);
|
|
4720
|
+
a.push(_), r.push(v), c = Math.max(_, c), h = Math.max(v, h);
|
|
4719
4721
|
}
|
|
4720
|
-
|
|
4722
|
+
ac(o, e);
|
|
4721
4723
|
const w = a.indexOf(c), M = r.indexOf(h), S = (P) => ({
|
|
4722
4724
|
width: a[P] || 0,
|
|
4723
4725
|
height: r[P] || 0
|
|
@@ -4746,7 +4748,7 @@ class Gt extends ut {
|
|
|
4746
4748
|
getPixelForDecimal(t) {
|
|
4747
4749
|
this._reversePixels && (t = 1 - t);
|
|
4748
4750
|
const e = this._startPixel + t * this._length;
|
|
4749
|
-
return
|
|
4751
|
+
return Ka(this._alignToPixels ? zt(this.chart, e, 0) : e);
|
|
4750
4752
|
}
|
|
4751
4753
|
getDecimalForPixel(t) {
|
|
4752
4754
|
const e = (t - this._startPixel) / this._length;
|
|
@@ -4763,9 +4765,9 @@ class Gt extends ut {
|
|
|
4763
4765
|
const e = this.ticks || [];
|
|
4764
4766
|
if (t >= 0 && t < e.length) {
|
|
4765
4767
|
const s = e[t];
|
|
4766
|
-
return s.$context || (s.$context =
|
|
4768
|
+
return s.$context || (s.$context = lc(this.getContext(), t, s));
|
|
4767
4769
|
}
|
|
4768
|
-
return this.$context || (this.$context =
|
|
4770
|
+
return this.$context || (this.$context = rc(this.chart.getContext(), this));
|
|
4769
4771
|
}
|
|
4770
4772
|
_tickSize() {
|
|
4771
4773
|
const t = this.options.ticks, e = ht(this.labelRotation), s = Math.abs(Math.cos(e)), n = Math.abs(Math.sin(e)), o = this._getLabelSizes(), a = t.autoSkipPadding || 0, r = o ? o.widest.width + a : 0, l = o ? o.highest.height + a : 0;
|
|
@@ -4779,7 +4781,7 @@ class Gt extends ut {
|
|
|
4779
4781
|
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(W) {
|
|
4780
4782
|
return zt(s, W, p);
|
|
4781
4783
|
};
|
|
4782
|
-
let x,
|
|
4784
|
+
let x, _, v, y, w, M, S, P, D, A, T, q;
|
|
4783
4785
|
if (a === "top")
|
|
4784
4786
|
x = b(this.bottom), M = this.bottom - u, P = x - m, A = b(t.top) + m, q = t.bottom;
|
|
4785
4787
|
else if (a === "bottom")
|
|
@@ -4806,9 +4808,9 @@ class Gt extends ut {
|
|
|
4806
4808
|
w = x - m, S = w - u, D = t.left, T = t.right;
|
|
4807
4809
|
}
|
|
4808
4810
|
const nt = C(n.ticks.maxTicksLimit, d), E = Math.max(1, Math.ceil(d / nt));
|
|
4809
|
-
for (
|
|
4810
|
-
const W = this.getContext(
|
|
4811
|
-
v =
|
|
4811
|
+
for (_ = 0; _ < d; _ += E) {
|
|
4812
|
+
const W = this.getContext(_), $ = o.setContext(W), ct = r.setContext(W), Z = $.lineWidth, Zt = $.color, Ee = ct.dash || [], Jt = ct.dashOffset, ae = $.tickWidth, Ft = $.tickColor, re = $.tickBorderDash || [], Et = $.tickBorderDashOffset;
|
|
4813
|
+
v = oc(this, _, l), v !== void 0 && (y = zt(s, v, Z), c ? w = S = D = T = y : M = P = A = q = y, f.push({
|
|
4812
4814
|
tx1: w,
|
|
4813
4815
|
ty1: M,
|
|
4814
4816
|
tx2: S,
|
|
@@ -4820,7 +4822,7 @@ class Gt extends ut {
|
|
|
4820
4822
|
width: Z,
|
|
4821
4823
|
color: Zt,
|
|
4822
4824
|
borderDash: Ee,
|
|
4823
|
-
borderDashOffset:
|
|
4825
|
+
borderDashOffset: Jt,
|
|
4824
4826
|
tickWidth: ae,
|
|
4825
4827
|
tickColor: Ft,
|
|
4826
4828
|
tickBorderDash: re,
|
|
@@ -4831,17 +4833,17 @@ class Gt extends ut {
|
|
|
4831
4833
|
}
|
|
4832
4834
|
_computeLabelItems(t) {
|
|
4833
4835
|
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 = -ht(this.labelRotation), m = [];
|
|
4834
|
-
let b, x,
|
|
4836
|
+
let b, x, _, v, y, w, M, S, P, D, A, T, q = "middle";
|
|
4835
4837
|
if (n === "top")
|
|
4836
4838
|
w = this.bottom - g, M = this._getXAxisLabelAlignment();
|
|
4837
4839
|
else if (n === "bottom")
|
|
4838
4840
|
w = this.top + g, M = this._getXAxisLabelAlignment();
|
|
4839
4841
|
else if (n === "left") {
|
|
4840
4842
|
const E = this._getYAxisLabelAlignment(u);
|
|
4841
|
-
M = E.textAlign,
|
|
4843
|
+
M = E.textAlign, y = E.x;
|
|
4842
4844
|
} else if (n === "right") {
|
|
4843
4845
|
const E = this._getYAxisLabelAlignment(u);
|
|
4844
|
-
M = E.textAlign,
|
|
4846
|
+
M = E.textAlign, y = E.x;
|
|
4845
4847
|
} else if (e === "x") {
|
|
4846
4848
|
if (n === "center")
|
|
4847
4849
|
w = (t.top + t.bottom) / 2 + f;
|
|
@@ -4852,26 +4854,26 @@ class Gt extends ut {
|
|
|
4852
4854
|
M = this._getXAxisLabelAlignment();
|
|
4853
4855
|
} else if (e === "y") {
|
|
4854
4856
|
if (n === "center")
|
|
4855
|
-
|
|
4857
|
+
y = (t.left + t.right) / 2 - f;
|
|
4856
4858
|
else if (O(n)) {
|
|
4857
4859
|
const E = Object.keys(n)[0], W = n[E];
|
|
4858
|
-
|
|
4860
|
+
y = this.chart.scales[E].getPixelForValue(W);
|
|
4859
4861
|
}
|
|
4860
4862
|
M = this._getYAxisLabelAlignment(u).textAlign;
|
|
4861
4863
|
}
|
|
4862
4864
|
e === "y" && (l === "start" ? q = "top" : l === "end" && (q = "bottom"));
|
|
4863
4865
|
const nt = this._getLabelSizes();
|
|
4864
4866
|
for (b = 0, x = r.length; b < x; ++b) {
|
|
4865
|
-
|
|
4867
|
+
_ = r[b], v = _.label;
|
|
4866
4868
|
const E = o.setContext(this.getContext(b));
|
|
4867
4869
|
S = this.getPixelForTick(b) + o.labelOffset, P = this._resolveTickFontOptions(b), D = P.lineHeight, A = N(v) ? v.length : 1;
|
|
4868
4870
|
const W = A / 2, $ = E.color, ct = E.textStrokeColor, Z = E.textStrokeWidth;
|
|
4869
4871
|
let Zt = M;
|
|
4870
|
-
a ? (
|
|
4872
|
+
a ? (y = S, M === "inner" && (b === x - 1 ? Zt = this.options.reverse ? "left" : "right" : b === 0 ? Zt = this.options.reverse ? "right" : "left" : Zt = "center"), n === "top" ? c === "near" || p !== 0 ? T = -A * D + D / 2 : c === "center" ? T = -nt.highest.height / 2 - W * D + D : T = -nt.highest.height + D / 2 : c === "near" || p !== 0 ? T = D / 2 : c === "center" ? T = nt.highest.height / 2 - W * D : T = nt.highest.height - A * D, d && (T *= -1), p !== 0 && !E.showLabelBackdrop && (y += D / 2 * Math.sin(p))) : (w = S, T = (1 - A) * D / 2);
|
|
4871
4873
|
let Ee;
|
|
4872
4874
|
if (E.showLabelBackdrop) {
|
|
4873
|
-
const
|
|
4874
|
-
let re = T -
|
|
4875
|
+
const Jt = tt(E.backdropPadding), ae = nt.heights[b], Ft = nt.widths[b];
|
|
4876
|
+
let re = T - Jt.top, Et = 0 - Jt.left;
|
|
4875
4877
|
switch (q) {
|
|
4876
4878
|
case "middle":
|
|
4877
4879
|
re -= ae / 2;
|
|
@@ -4894,8 +4896,8 @@ class Gt extends ut {
|
|
|
4894
4896
|
Ee = {
|
|
4895
4897
|
left: Et,
|
|
4896
4898
|
top: re,
|
|
4897
|
-
width: Ft +
|
|
4898
|
-
height: ae +
|
|
4899
|
+
width: Ft + Jt.width,
|
|
4900
|
+
height: ae + Jt.height,
|
|
4899
4901
|
color: E.backdropColor
|
|
4900
4902
|
};
|
|
4901
4903
|
}
|
|
@@ -4911,7 +4913,7 @@ class Gt extends ut {
|
|
|
4911
4913
|
textAlign: Zt,
|
|
4912
4914
|
textBaseline: q,
|
|
4913
4915
|
translation: [
|
|
4914
|
-
|
|
4916
|
+
y,
|
|
4915
4917
|
w
|
|
4916
4918
|
],
|
|
4917
4919
|
backdrop: Ee
|
|
@@ -5021,12 +5023,12 @@ class Gt extends ut {
|
|
|
5021
5023
|
const o = X(s.font), a = tt(s.padding), r = s.align;
|
|
5022
5024
|
let l = o.lineHeight / 2;
|
|
5023
5025
|
e === "bottom" || e === "center" || O(e) ? (l += a.bottom, N(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
|
|
5024
|
-
const { titleX: c, titleY: h, maxWidth: d, rotation: u } =
|
|
5026
|
+
const { titleX: c, titleY: h, maxWidth: d, rotation: u } = hc(this, l, e, r);
|
|
5025
5027
|
qt(t, s.text, 0, 0, o, {
|
|
5026
5028
|
color: s.color,
|
|
5027
5029
|
maxWidth: d,
|
|
5028
5030
|
rotation: u,
|
|
5029
|
-
textAlign:
|
|
5031
|
+
textAlign: cc(r, e, n),
|
|
5030
5032
|
textBaseline: "middle",
|
|
5031
5033
|
translation: [
|
|
5032
5034
|
c,
|
|
@@ -5095,11 +5097,11 @@ class $e {
|
|
|
5095
5097
|
register(t) {
|
|
5096
5098
|
const e = Object.getPrototypeOf(t);
|
|
5097
5099
|
let s;
|
|
5098
|
-
|
|
5100
|
+
fc(e) && (s = this.register(e));
|
|
5099
5101
|
const n = this.items, o = t.id, a = this.scope + "." + o;
|
|
5100
5102
|
if (!o)
|
|
5101
5103
|
throw new Error("class does not have id: " + t);
|
|
5102
|
-
return o in n || (n[o] = t,
|
|
5104
|
+
return o in n || (n[o] = t, dc(t, a, s), this.override && H.override(t.id, t.overrides)), a;
|
|
5103
5105
|
}
|
|
5104
5106
|
get(t) {
|
|
5105
5107
|
return this.items[t];
|
|
@@ -5109,15 +5111,15 @@ class $e {
|
|
|
5109
5111
|
s in e && delete e[s], n && s in H[n] && (delete H[n][s], this.override && delete Kt[s]);
|
|
5110
5112
|
}
|
|
5111
5113
|
}
|
|
5112
|
-
function
|
|
5114
|
+
function dc(i, t, e) {
|
|
5113
5115
|
const s = Pe(/* @__PURE__ */ Object.create(null), [
|
|
5114
5116
|
e ? H.get(e) : {},
|
|
5115
5117
|
H.get(t),
|
|
5116
5118
|
i.defaults
|
|
5117
5119
|
]);
|
|
5118
|
-
H.set(t, s), i.defaultRoutes &&
|
|
5120
|
+
H.set(t, s), i.defaultRoutes && uc(t, i.defaultRoutes), i.descriptors && H.describe(t, i.descriptors);
|
|
5119
5121
|
}
|
|
5120
|
-
function
|
|
5122
|
+
function uc(i, t) {
|
|
5121
5123
|
Object.keys(t).forEach((e) => {
|
|
5122
5124
|
const s = e.split("."), n = s.pop(), o = [
|
|
5123
5125
|
i
|
|
@@ -5125,10 +5127,10 @@ function hc(i, t) {
|
|
|
5125
5127
|
H.route(o, n, l, r);
|
|
5126
5128
|
});
|
|
5127
5129
|
}
|
|
5128
|
-
function
|
|
5130
|
+
function fc(i) {
|
|
5129
5131
|
return "id" in i && "defaults" in i;
|
|
5130
5132
|
}
|
|
5131
|
-
class
|
|
5133
|
+
class gc {
|
|
5132
5134
|
constructor() {
|
|
5133
5135
|
this.controllers = new $e(dt, "datasets", !0), this.elements = new $e(ut, "elements"), this.plugins = new $e(Object, "plugins"), this.scales = new $e(Gt, "scales"), this._typedRegistries = [
|
|
5134
5136
|
this.controllers,
|
|
@@ -5208,8 +5210,8 @@ class uc {
|
|
|
5208
5210
|
return n;
|
|
5209
5211
|
}
|
|
5210
5212
|
}
|
|
5211
|
-
var gt = /* @__PURE__ */ new
|
|
5212
|
-
class
|
|
5213
|
+
var gt = /* @__PURE__ */ new gc();
|
|
5214
|
+
class pc {
|
|
5213
5215
|
constructor() {
|
|
5214
5216
|
this._init = [];
|
|
5215
5217
|
}
|
|
@@ -5241,15 +5243,15 @@ class fc {
|
|
|
5241
5243
|
return this._notifyStateChanges(t), e;
|
|
5242
5244
|
}
|
|
5243
5245
|
_createDescriptors(t, e) {
|
|
5244
|
-
const s = t && t.config, n = C(s.options && s.options.plugins, {}), o =
|
|
5245
|
-
return n === !1 && !e ? [] :
|
|
5246
|
+
const s = t && t.config, n = C(s.options && s.options.plugins, {}), o = mc(s);
|
|
5247
|
+
return n === !1 && !e ? [] : xc(t, o, n, e);
|
|
5246
5248
|
}
|
|
5247
5249
|
_notifyStateChanges(t) {
|
|
5248
5250
|
const e = this._oldCache || [], s = this._cache, n = (o, a) => o.filter((r) => !a.some((l) => r.plugin.id === l.plugin.id));
|
|
5249
5251
|
this._notify(n(e, s), t, "stop"), this._notify(n(s, e), t, "start");
|
|
5250
5252
|
}
|
|
5251
5253
|
}
|
|
5252
|
-
function
|
|
5254
|
+
function mc(i) {
|
|
5253
5255
|
const t = {}, e = [], s = Object.keys(gt.plugins.items);
|
|
5254
5256
|
for (let o = 0; o < s.length; o++)
|
|
5255
5257
|
e.push(gt.getPlugin(s[o]));
|
|
@@ -5263,16 +5265,16 @@ function gc(i) {
|
|
|
5263
5265
|
localIds: t
|
|
5264
5266
|
};
|
|
5265
5267
|
}
|
|
5266
|
-
function
|
|
5268
|
+
function bc(i, t) {
|
|
5267
5269
|
return !t && i === !1 ? null : i === !0 ? {} : i;
|
|
5268
5270
|
}
|
|
5269
|
-
function
|
|
5271
|
+
function xc(i, { plugins: t, localIds: e }, s, n) {
|
|
5270
5272
|
const o = [], a = i.getContext();
|
|
5271
5273
|
for (const r of t) {
|
|
5272
|
-
const l = r.id, c =
|
|
5274
|
+
const l = r.id, c = bc(s[l], n);
|
|
5273
5275
|
c !== null && o.push({
|
|
5274
5276
|
plugin: r,
|
|
5275
|
-
options:
|
|
5277
|
+
options: _c(i.config, {
|
|
5276
5278
|
plugin: r,
|
|
5277
5279
|
local: e[l]
|
|
5278
5280
|
}, c, a)
|
|
@@ -5280,7 +5282,7 @@ function mc(i, { plugins: t, localIds: e }, s, n) {
|
|
|
5280
5282
|
}
|
|
5281
5283
|
return o;
|
|
5282
5284
|
}
|
|
5283
|
-
function
|
|
5285
|
+
function _c(i, { plugin: t, local: e }, s, n) {
|
|
5284
5286
|
const o = i.pluginScopeKeys(t), a = i.getOptionScopes(s, o);
|
|
5285
5287
|
return e && t.defaults && a.push(t.defaults), i.createResolver(a, n, [
|
|
5286
5288
|
""
|
|
@@ -5294,18 +5296,18 @@ function $i(i, t) {
|
|
|
5294
5296
|
const e = H.datasets[i] || {};
|
|
5295
5297
|
return ((t.datasets || {})[i] || {}).indexAxis || t.indexAxis || e.indexAxis || "x";
|
|
5296
5298
|
}
|
|
5297
|
-
function
|
|
5299
|
+
function yc(i, t) {
|
|
5298
5300
|
let e = i;
|
|
5299
5301
|
return i === "_index_" ? e = t : i === "_value_" && (e = t === "x" ? "y" : "x"), e;
|
|
5300
5302
|
}
|
|
5301
|
-
function
|
|
5303
|
+
function vc(i, t) {
|
|
5302
5304
|
return i === t ? "_index_" : "_value_";
|
|
5303
5305
|
}
|
|
5304
5306
|
function cn(i) {
|
|
5305
5307
|
if (i === "x" || i === "y" || i === "r")
|
|
5306
5308
|
return i;
|
|
5307
5309
|
}
|
|
5308
|
-
function
|
|
5310
|
+
function kc(i) {
|
|
5309
5311
|
if (i === "top" || i === "bottom")
|
|
5310
5312
|
return "x";
|
|
5311
5313
|
if (i === "left" || i === "right")
|
|
@@ -5315,7 +5317,7 @@ function Yi(i, ...t) {
|
|
|
5315
5317
|
if (cn(i))
|
|
5316
5318
|
return i;
|
|
5317
5319
|
for (const e of t) {
|
|
5318
|
-
const s = e.axis ||
|
|
5320
|
+
const s = e.axis || kc(e.position) || i.length > 1 && cn(i[0].toLowerCase());
|
|
5319
5321
|
if (s)
|
|
5320
5322
|
return s;
|
|
5321
5323
|
}
|
|
@@ -5327,7 +5329,7 @@ function hn(i, t, e) {
|
|
|
5327
5329
|
axis: t
|
|
5328
5330
|
};
|
|
5329
5331
|
}
|
|
5330
|
-
function
|
|
5332
|
+
function wc(i, t) {
|
|
5331
5333
|
if (t.data && t.data.datasets) {
|
|
5332
5334
|
const e = t.data.datasets.filter((s) => s.xAxisID === i || s.yAxisID === i);
|
|
5333
5335
|
if (e.length)
|
|
@@ -5335,7 +5337,7 @@ function vc(i, t) {
|
|
|
5335
5337
|
}
|
|
5336
5338
|
return {};
|
|
5337
5339
|
}
|
|
5338
|
-
function
|
|
5340
|
+
function Mc(i, t) {
|
|
5339
5341
|
const e = Kt[i.type] || {
|
|
5340
5342
|
scales: {}
|
|
5341
5343
|
}, s = t.scales || {}, n = $i(i.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
@@ -5345,7 +5347,7 @@ function kc(i, t) {
|
|
|
5345
5347
|
return console.error(`Invalid scale configuration for scale: ${a}`);
|
|
5346
5348
|
if (r._proxy)
|
|
5347
5349
|
return console.warn(`Ignoring resolver passed as options for scale: ${a}`);
|
|
5348
|
-
const l = Yi(a, r,
|
|
5350
|
+
const l = Yi(a, r, wc(a, i), H.scales[r.type]), c = vc(l, n), h = e.scales || {};
|
|
5349
5351
|
o[a] = _e(/* @__PURE__ */ Object.create(null), [
|
|
5350
5352
|
{
|
|
5351
5353
|
axis: l
|
|
@@ -5357,7 +5359,7 @@ function kc(i, t) {
|
|
|
5357
5359
|
}), i.data.datasets.forEach((a) => {
|
|
5358
5360
|
const r = a.type || i.type, l = a.indexAxis || $i(r, t), h = (Kt[r] || {}).scales || {};
|
|
5359
5361
|
Object.keys(h).forEach((d) => {
|
|
5360
|
-
const u =
|
|
5362
|
+
const u = yc(d, l), f = a[u + "AxisID"] || u;
|
|
5361
5363
|
o[f] = o[f] || /* @__PURE__ */ Object.create(null), _e(o[f], [
|
|
5362
5364
|
{
|
|
5363
5365
|
axis: u
|
|
@@ -5376,12 +5378,12 @@ function kc(i, t) {
|
|
|
5376
5378
|
}
|
|
5377
5379
|
function Eo(i) {
|
|
5378
5380
|
const t = i.options || (i.options = {});
|
|
5379
|
-
t.plugins = C(t.plugins, {}), t.scales =
|
|
5381
|
+
t.plugins = C(t.plugins, {}), t.scales = Mc(i, t);
|
|
5380
5382
|
}
|
|
5381
5383
|
function Io(i) {
|
|
5382
5384
|
return i = i || {}, i.datasets = i.datasets || [], i.labels = i.labels || [], i;
|
|
5383
5385
|
}
|
|
5384
|
-
function
|
|
5386
|
+
function Sc(i) {
|
|
5385
5387
|
return i = i || {}, i.data = Io(i.data), Eo(i), i;
|
|
5386
5388
|
}
|
|
5387
5389
|
const dn = /* @__PURE__ */ new Map(), zo = /* @__PURE__ */ new Set();
|
|
@@ -5393,9 +5395,9 @@ const ue = (i, t, e) => {
|
|
|
5393
5395
|
const s = Tt(t, e);
|
|
5394
5396
|
s !== void 0 && i.add(s);
|
|
5395
5397
|
};
|
|
5396
|
-
class
|
|
5398
|
+
class Pc {
|
|
5397
5399
|
constructor(t) {
|
|
5398
|
-
this._config =
|
|
5400
|
+
this._config = Sc(t), this._scopeCache = /* @__PURE__ */ new Map(), this._resolverCache = /* @__PURE__ */ new Map();
|
|
5399
5401
|
}
|
|
5400
5402
|
get platform() {
|
|
5401
5403
|
return this._config.platform;
|
|
@@ -5503,7 +5505,7 @@ class Mc {
|
|
|
5503
5505
|
$shared: !0
|
|
5504
5506
|
}, { resolver: a, subPrefixes: r } = un(this._resolverCache, t, n);
|
|
5505
5507
|
let l = a;
|
|
5506
|
-
if (
|
|
5508
|
+
if (Dc(a, e)) {
|
|
5507
5509
|
o.$shared = !1, s = Lt(s) ? s() : s;
|
|
5508
5510
|
const c = this.createResolver(t, s, r);
|
|
5509
5511
|
l = se(a, s, c);
|
|
@@ -5529,18 +5531,18 @@ function un(i, t, e) {
|
|
|
5529
5531
|
subPrefixes: e.filter((r) => !r.toLowerCase().includes("hover"))
|
|
5530
5532
|
}, s.set(n, o)), o;
|
|
5531
5533
|
}
|
|
5532
|
-
const
|
|
5533
|
-
function
|
|
5534
|
+
const Cc = (i) => O(i) && Object.getOwnPropertyNames(i).some((t) => Lt(i[t]));
|
|
5535
|
+
function Dc(i, t) {
|
|
5534
5536
|
const { isScriptable: e, isIndexable: s } = mo(i);
|
|
5535
5537
|
for (const n of t) {
|
|
5536
5538
|
const o = e(n), a = s(n), r = (a || o) && i[n];
|
|
5537
|
-
if (o && (Lt(r) ||
|
|
5539
|
+
if (o && (Lt(r) || Cc(r)) || a && N(r))
|
|
5538
5540
|
return !0;
|
|
5539
5541
|
}
|
|
5540
5542
|
return !1;
|
|
5541
5543
|
}
|
|
5542
|
-
var
|
|
5543
|
-
const
|
|
5544
|
+
var Ac = "4.4.7";
|
|
5545
|
+
const Oc = [
|
|
5544
5546
|
"top",
|
|
5545
5547
|
"bottom",
|
|
5546
5548
|
"left",
|
|
@@ -5548,7 +5550,7 @@ const Dc = [
|
|
|
5548
5550
|
"chartArea"
|
|
5549
5551
|
];
|
|
5550
5552
|
function fn(i, t) {
|
|
5551
|
-
return i === "top" || i === "bottom" ||
|
|
5553
|
+
return i === "top" || i === "bottom" || Oc.indexOf(i) === -1 && t === "x";
|
|
5552
5554
|
}
|
|
5553
5555
|
function gn(i, t) {
|
|
5554
5556
|
return function(e, s) {
|
|
@@ -5561,7 +5563,7 @@ function pn(i) {
|
|
|
5561
5563
|
i
|
|
5562
5564
|
], t);
|
|
5563
5565
|
}
|
|
5564
|
-
function
|
|
5566
|
+
function Tc(i) {
|
|
5565
5567
|
const t = i.chart, e = t.options.animation;
|
|
5566
5568
|
z(e && e.onProgress, [
|
|
5567
5569
|
i
|
|
@@ -5574,7 +5576,7 @@ const ni = {}, mn = (i) => {
|
|
|
5574
5576
|
const t = Bo(i);
|
|
5575
5577
|
return Object.values(ni).filter((e) => e.canvas === t).pop();
|
|
5576
5578
|
};
|
|
5577
|
-
function
|
|
5579
|
+
function Lc(i, t, e) {
|
|
5578
5580
|
const s = Object.keys(i);
|
|
5579
5581
|
for (const n of s) {
|
|
5580
5582
|
const o = +n;
|
|
@@ -5584,13 +5586,13 @@ function Oc(i, t, e) {
|
|
|
5584
5586
|
}
|
|
5585
5587
|
}
|
|
5586
5588
|
}
|
|
5587
|
-
function
|
|
5589
|
+
function Rc(i, t, e, s) {
|
|
5588
5590
|
return !e || i.type === "mouseout" ? null : s ? t : i;
|
|
5589
5591
|
}
|
|
5590
5592
|
function Ue(i, t, e) {
|
|
5591
5593
|
return i.options.clip ? i[e] : t[e];
|
|
5592
5594
|
}
|
|
5593
|
-
function
|
|
5595
|
+
function Fc(i, t) {
|
|
5594
5596
|
const { xScale: e, yScale: s } = i;
|
|
5595
5597
|
return e && s ? {
|
|
5596
5598
|
left: Ue(e, t, "left"),
|
|
@@ -5607,17 +5609,17 @@ class vt {
|
|
|
5607
5609
|
gt.remove(...t), bn();
|
|
5608
5610
|
}
|
|
5609
5611
|
constructor(t, e) {
|
|
5610
|
-
const s = this.config = new
|
|
5612
|
+
const s = this.config = new Pc(e), n = Bo(t), o = mn(n);
|
|
5611
5613
|
if (o)
|
|
5612
5614
|
throw new Error("Canvas is already in use. Chart with ID '" + o.id + "' must be destroyed before the canvas with ID '" + o.canvas.id + "' can be reused.");
|
|
5613
5615
|
const a = s.createResolver(s.chartOptionScopes(), this.getContext());
|
|
5614
|
-
this.platform = new (s.platform ||
|
|
5616
|
+
this.platform = new (s.platform || Zl(n))(), this.platform.updateConfig(s);
|
|
5615
5617
|
const r = this.platform.acquireContext(n, a.aspectRatio), l = r && r.canvas, c = l && l.height, h = l && l.width;
|
|
5616
|
-
if (this.id =
|
|
5618
|
+
if (this.id = Ia(), this.ctx = r, this.canvas = l, this.width = h, this.height = c, this._options = a, this._aspectRatio = this.aspectRatio, this._layers = [], this._metasets = [], this._stacks = void 0, this.boxes = [], this.currentDevicePixelRatio = void 0, this.chartArea = void 0, this._active = [], this._lastEvent = void 0, this._listeners = {}, this._responsiveListeners = void 0, this._sortedMetasets = [], this.scales = {}, this._plugins = new pc(), this.$proxies = {}, this._hiddenIndices = {}, this.attached = !1, this._animationsDisabled = void 0, this.$context = void 0, this._doResize = Ja((d) => this.update(d), a.resizeDelay || 0), this._dataChanges = [], ni[this.id] = this, !r || !l) {
|
|
5617
5619
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
5618
5620
|
return;
|
|
5619
5621
|
}
|
|
5620
|
-
bt.listen(this, "complete", pn), bt.listen(this, "progress",
|
|
5622
|
+
bt.listen(this, "complete", pn), bt.listen(this, "progress", Tc), this._initialize(), this.attached && this.update();
|
|
5621
5623
|
}
|
|
5622
5624
|
get aspectRatio() {
|
|
5623
5625
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
|
|
@@ -5697,7 +5699,7 @@ class vt {
|
|
|
5697
5699
|
}), F(n, (a, r) => {
|
|
5698
5700
|
a || delete s[r];
|
|
5699
5701
|
}), F(s, (a) => {
|
|
5700
|
-
|
|
5702
|
+
Q.configure(this, a, a.options), Q.addBox(this, a);
|
|
5701
5703
|
});
|
|
5702
5704
|
}
|
|
5703
5705
|
_updateMetasets() {
|
|
@@ -5768,7 +5770,7 @@ class vt {
|
|
|
5768
5770
|
}
|
|
5769
5771
|
_updateScales() {
|
|
5770
5772
|
F(this.scales, (t) => {
|
|
5771
|
-
|
|
5773
|
+
Q.removeBox(this, t);
|
|
5772
5774
|
}), this.ensureScalesHaveIDs(), this.buildOrUpdateScales();
|
|
5773
5775
|
}
|
|
5774
5776
|
_checkEventBindings() {
|
|
@@ -5779,7 +5781,7 @@ class vt {
|
|
|
5779
5781
|
const { _hiddenIndices: t } = this, e = this._getUniformDataChanges() || [];
|
|
5780
5782
|
for (const { method: s, start: n, count: o } of e) {
|
|
5781
5783
|
const a = s === "_removeElements" ? -o : o;
|
|
5782
|
-
|
|
5784
|
+
Lc(t, n, a);
|
|
5783
5785
|
}
|
|
5784
5786
|
}
|
|
5785
5787
|
_getUniformDataChanges() {
|
|
@@ -5802,7 +5804,7 @@ class vt {
|
|
|
5802
5804
|
cancelable: !0
|
|
5803
5805
|
}) === !1)
|
|
5804
5806
|
return;
|
|
5805
|
-
|
|
5807
|
+
Q.update(this, this.width, this.height, t);
|
|
5806
5808
|
const e = this.chartArea, s = e.width <= 0 || e.height <= 0;
|
|
5807
5809
|
this._layers = [], F(this.boxes, (n) => {
|
|
5808
5810
|
s && n.position === "chartArea" || (n.configure && n.configure(), this._layers.push(...n._layers()));
|
|
@@ -5882,7 +5884,7 @@ class vt {
|
|
|
5882
5884
|
this.notifyPlugins("afterDatasetsDraw");
|
|
5883
5885
|
}
|
|
5884
5886
|
_drawDataset(t) {
|
|
5885
|
-
const e = this.ctx, s = t._clip, n = !s.disabled, o =
|
|
5887
|
+
const e = this.ctx, s = t._clip, n = !s.disabled, o = Fc(t, this.chartArea), a = {
|
|
5886
5888
|
meta: t,
|
|
5887
5889
|
index: t.index,
|
|
5888
5890
|
cancelable: !0
|
|
@@ -5898,7 +5900,7 @@ class vt {
|
|
|
5898
5900
|
return Mt(t, this.chartArea, this._minPadding);
|
|
5899
5901
|
}
|
|
5900
5902
|
getElementsAtEventForMode(t, e, s, n) {
|
|
5901
|
-
const o =
|
|
5903
|
+
const o = Ol.modes[e];
|
|
5902
5904
|
return typeof o == "function" ? o(this, t, s, n) : [];
|
|
5903
5905
|
}
|
|
5904
5906
|
getDatasetMeta(t) {
|
|
@@ -6057,7 +6059,7 @@ class vt {
|
|
|
6057
6059
|
return s.cancelable = !1, this.notifyPlugins("afterEvent", s, n), (o || s.changed) && this.render(), this;
|
|
6058
6060
|
}
|
|
6059
6061
|
_handleEvent(t, e, s) {
|
|
6060
|
-
const { _active: n = [], options: o } = this, a = e, r = this._getActiveElements(t, n, s, a), l =
|
|
6062
|
+
const { _active: n = [], options: o } = this, a = e, r = this._getActiveElements(t, n, s, a), l = Ha(t), c = Rc(t, this._lastEvent, s, l);
|
|
6061
6063
|
s && (this._lastEvent = null, z(o.onHover, [
|
|
6062
6064
|
t,
|
|
6063
6065
|
r,
|
|
@@ -6079,16 +6081,16 @@ class vt {
|
|
|
6079
6081
|
return this.getElementsAtEventForMode(t, o.mode, o, n);
|
|
6080
6082
|
}
|
|
6081
6083
|
}
|
|
6082
|
-
k(vt, "defaults", H), k(vt, "instances", ni), k(vt, "overrides", Kt), k(vt, "registry", gt), k(vt, "version",
|
|
6084
|
+
k(vt, "defaults", H), k(vt, "instances", ni), k(vt, "overrides", Kt), k(vt, "registry", gt), k(vt, "version", Ac), k(vt, "getChart", mn);
|
|
6083
6085
|
function bn() {
|
|
6084
6086
|
return F(vt.instances, (i) => i._plugins.invalidate());
|
|
6085
6087
|
}
|
|
6086
|
-
function
|
|
6088
|
+
function Ec(i, t, e) {
|
|
6087
6089
|
const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: l } = t;
|
|
6088
6090
|
let c = n / r;
|
|
6089
6091
|
i.beginPath(), i.arc(o, a, r, s - c, e + c), l > n ? (c = n / l, i.arc(o, a, l, e + c, s - c, !0)) : i.arc(o, a, n, e + Y, s - Y), i.closePath(), i.clip();
|
|
6090
6092
|
}
|
|
6091
|
-
function
|
|
6093
|
+
function Ic(i) {
|
|
6092
6094
|
return ds(i, [
|
|
6093
6095
|
"outerStart",
|
|
6094
6096
|
"outerEnd",
|
|
@@ -6096,8 +6098,8 @@ function Fc(i) {
|
|
|
6096
6098
|
"innerEnd"
|
|
6097
6099
|
]);
|
|
6098
6100
|
}
|
|
6099
|
-
function
|
|
6100
|
-
const n =
|
|
6101
|
+
function zc(i, t, e, s) {
|
|
6102
|
+
const n = Ic(i.options.borderRadius), o = (e - t) / 2, a = Math.min(o, s * t / 2), r = (l) => {
|
|
6101
6103
|
const c = (e - Math.min(o, l)) * s / 2;
|
|
6102
6104
|
return K(l, 0, Math.min(o, c));
|
|
6103
6105
|
};
|
|
@@ -6122,7 +6124,7 @@ function gi(i, t, e, s, n, o) {
|
|
|
6122
6124
|
const E = h > 0 ? h - s : 0, W = d > 0 ? d - s : 0, $ = (E + W) / 2, ct = $ !== 0 ? g * $ / ($ + s) : g;
|
|
6123
6125
|
f = (g - ct) / 2;
|
|
6124
6126
|
}
|
|
6125
|
-
const p = Math.max(1e-3, g * d - e / V) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart:
|
|
6127
|
+
const p = Math.max(1e-3, g * d - e / V) / d, m = (g - p) / 2, b = l + m + f, x = n - m - f, { outerStart: _, outerEnd: v, innerStart: y, innerEnd: w } = zc(t, u, d, x - b), M = d - _, S = d - v, P = b + _ / M, D = x - v / S, A = u + y, T = u + w, q = b + y / A, nt = x - w / T;
|
|
6126
6128
|
if (i.beginPath(), o) {
|
|
6127
6129
|
const E = (P + D) / 2;
|
|
6128
6130
|
if (i.arc(a, r, d, P, E), i.arc(a, r, d, E, D), v > 0) {
|
|
@@ -6134,15 +6136,15 @@ function gi(i, t, e, s, n, o) {
|
|
|
6134
6136
|
const Z = te(T, nt, a, r);
|
|
6135
6137
|
i.arc(Z.x, Z.y, w, x + Y, nt + Math.PI);
|
|
6136
6138
|
}
|
|
6137
|
-
const $ = (x - w / u + (b +
|
|
6138
|
-
if (i.arc(a, r, u, x - w / u, $, !0), i.arc(a, r, u, $, b +
|
|
6139
|
+
const $ = (x - w / u + (b + y / u)) / 2;
|
|
6140
|
+
if (i.arc(a, r, u, x - w / u, $, !0), i.arc(a, r, u, $, b + y / u, !0), y > 0) {
|
|
6139
6141
|
const Z = te(A, q, a, r);
|
|
6140
|
-
i.arc(Z.x, Z.y,
|
|
6142
|
+
i.arc(Z.x, Z.y, y, q + Math.PI, b - Y);
|
|
6141
6143
|
}
|
|
6142
6144
|
const ct = te(M, b, a, r);
|
|
6143
|
-
if (i.lineTo(ct.x, ct.y),
|
|
6145
|
+
if (i.lineTo(ct.x, ct.y), _ > 0) {
|
|
6144
6146
|
const Z = te(M, P, a, r);
|
|
6145
|
-
i.arc(Z.x, Z.y,
|
|
6147
|
+
i.arc(Z.x, Z.y, _, b - Y, P);
|
|
6146
6148
|
}
|
|
6147
6149
|
} else {
|
|
6148
6150
|
i.moveTo(a, r);
|
|
@@ -6153,7 +6155,7 @@ function gi(i, t, e, s, n, o) {
|
|
|
6153
6155
|
}
|
|
6154
6156
|
i.closePath();
|
|
6155
6157
|
}
|
|
6156
|
-
function
|
|
6158
|
+
function Bc(i, t, e, s, n) {
|
|
6157
6159
|
const { fullCircles: o, startAngle: a, circumference: r } = t;
|
|
6158
6160
|
let l = t.endAngle;
|
|
6159
6161
|
if (o) {
|
|
@@ -6164,7 +6166,7 @@ function Ic(i, t, e, s, n) {
|
|
|
6164
6166
|
}
|
|
6165
6167
|
return gi(i, t, e, s, l, n), i.fill(), l;
|
|
6166
6168
|
}
|
|
6167
|
-
function
|
|
6169
|
+
function Vc(i, t, e, s, n) {
|
|
6168
6170
|
const { fullCircles: o, startAngle: a, circumference: r, options: l } = t, { borderWidth: c, borderJoinStyle: h, borderDash: d, borderDashOffset: u } = l, f = l.borderAlign === "inner";
|
|
6169
6171
|
if (!c)
|
|
6170
6172
|
return;
|
|
@@ -6176,7 +6178,7 @@ function zc(i, t, e, s, n) {
|
|
|
6176
6178
|
i.stroke();
|
|
6177
6179
|
isNaN(r) || (g = a + (r % B || B));
|
|
6178
6180
|
}
|
|
6179
|
-
f &&
|
|
6181
|
+
f && Ec(i, t, g), o || (gi(i, t, e, s, g, n), i.stroke());
|
|
6180
6182
|
}
|
|
6181
6183
|
class me extends ut {
|
|
6182
6184
|
constructor(e) {
|
|
@@ -6231,7 +6233,7 @@ class me extends ut {
|
|
|
6231
6233
|
const l = (this.startAngle + this.endAngle) / 2;
|
|
6232
6234
|
e.translate(Math.cos(l) * o, Math.sin(l) * o);
|
|
6233
6235
|
const c = 1 - Math.sin(Math.min(V, n || 0)), h = o * c;
|
|
6234
|
-
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor,
|
|
6236
|
+
e.fillStyle = s.backgroundColor, e.strokeStyle = s.borderColor, Bc(e, this, h, a, r), Vc(e, this, h, a, r), e.restore();
|
|
6235
6237
|
}
|
|
6236
6238
|
}
|
|
6237
6239
|
k(me, "id", "arc"), k(me, "defaults", {
|
|
@@ -6255,11 +6257,11 @@ k(me, "id", "arc"), k(me, "defaults", {
|
|
|
6255
6257
|
function Vo(i, t, e = t) {
|
|
6256
6258
|
i.lineCap = C(e.borderCapStyle, t.borderCapStyle), i.setLineDash(C(e.borderDash, t.borderDash)), i.lineDashOffset = C(e.borderDashOffset, t.borderDashOffset), i.lineJoin = C(e.borderJoinStyle, t.borderJoinStyle), i.lineWidth = C(e.borderWidth, t.borderWidth), i.strokeStyle = C(e.borderColor, t.borderColor);
|
|
6257
6259
|
}
|
|
6258
|
-
function
|
|
6260
|
+
function Wc(i, t, e) {
|
|
6259
6261
|
i.lineTo(e.x, e.y);
|
|
6260
6262
|
}
|
|
6261
|
-
function
|
|
6262
|
-
return i.stepped ?
|
|
6263
|
+
function Nc(i) {
|
|
6264
|
+
return i.stepped ? hr : i.tension || i.cubicInterpolationMode === "monotone" ? dr : Wc;
|
|
6263
6265
|
}
|
|
6264
6266
|
function Wo(i, t, e = {}) {
|
|
6265
6267
|
const s = i.length, { start: n = 0, end: o = s - 1 } = e, { start: a, end: r } = t, l = Math.max(n, a), c = Math.min(o, r), h = n < a && o < a || n > r && o > r;
|
|
@@ -6270,39 +6272,39 @@ function Wo(i, t, e = {}) {
|
|
|
6270
6272
|
ilen: c < l && !h ? s + c - l : c - l
|
|
6271
6273
|
};
|
|
6272
6274
|
}
|
|
6273
|
-
function
|
|
6274
|
-
const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: c } = Wo(n, e, s), h =
|
|
6275
|
+
function Hc(i, t, e, s) {
|
|
6276
|
+
const { points: n, options: o } = t, { count: a, start: r, loop: l, ilen: c } = Wo(n, e, s), h = Nc(o);
|
|
6275
6277
|
let { move: d = !0, reverse: u } = s || {}, f, g, p;
|
|
6276
6278
|
for (f = 0; f <= c; ++f)
|
|
6277
6279
|
g = n[(r + (u ? c - f : f)) % a], !g.skip && (d ? (i.moveTo(g.x, g.y), d = !1) : h(i, p, g, u, o.stepped), p = g);
|
|
6278
6280
|
return l && (g = n[(r + (u ? c : 0)) % a], h(i, p, g, u, o.stepped)), !!l;
|
|
6279
6281
|
}
|
|
6280
|
-
function
|
|
6282
|
+
function jc(i, t, e, s) {
|
|
6281
6283
|
const n = t.points, { count: o, start: a, ilen: r } = Wo(n, e, s), { move: l = !0, reverse: c } = s || {};
|
|
6282
6284
|
let h = 0, d = 0, u, f, g, p, m, b;
|
|
6283
|
-
const x = (v) => (a + (c ? r - v : v)) % o,
|
|
6285
|
+
const x = (v) => (a + (c ? r - v : v)) % o, _ = () => {
|
|
6284
6286
|
p !== m && (i.lineTo(h, m), i.lineTo(h, p), i.lineTo(h, b));
|
|
6285
6287
|
};
|
|
6286
6288
|
for (l && (f = n[x(0)], i.moveTo(f.x, f.y)), u = 0; u <= r; ++u) {
|
|
6287
6289
|
if (f = n[x(u)], f.skip)
|
|
6288
6290
|
continue;
|
|
6289
|
-
const v = f.x,
|
|
6290
|
-
w === g ? (
|
|
6291
|
+
const v = f.x, y = f.y, w = v | 0;
|
|
6292
|
+
w === g ? (y < p ? p = y : y > m && (m = y), h = (d * h + v) / ++d) : (_(), i.lineTo(v, y), g = w, d = 0, p = m = y), b = y;
|
|
6291
6293
|
}
|
|
6292
|
-
|
|
6294
|
+
_();
|
|
6293
6295
|
}
|
|
6294
6296
|
function Ui(i) {
|
|
6295
6297
|
const t = i.options, e = t.borderDash && t.borderDash.length;
|
|
6296
|
-
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ?
|
|
6298
|
+
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? jc : Hc;
|
|
6297
6299
|
}
|
|
6298
|
-
function
|
|
6299
|
-
return i.stepped ?
|
|
6300
|
+
function $c(i) {
|
|
6301
|
+
return i.stepped ? jr : i.tension || i.cubicInterpolationMode === "monotone" ? $r : Nt;
|
|
6300
6302
|
}
|
|
6301
|
-
function
|
|
6303
|
+
function Yc(i, t, e, s) {
|
|
6302
6304
|
let n = t._path;
|
|
6303
6305
|
n || (n = t._path = new Path2D(), t.path(n, e, s) && n.closePath()), Vo(i, t.options), i.stroke(n);
|
|
6304
6306
|
}
|
|
6305
|
-
function
|
|
6307
|
+
function Uc(i, t, e, s) {
|
|
6306
6308
|
const { segments: n, options: o } = t, a = Ui(t);
|
|
6307
6309
|
for (const r of n)
|
|
6308
6310
|
Vo(i, o, r.style), i.beginPath(), a(i, t, r, {
|
|
@@ -6310,9 +6312,9 @@ function $c(i, t, e, s) {
|
|
|
6310
6312
|
end: e + s - 1
|
|
6311
6313
|
}) && i.closePath(), i.stroke();
|
|
6312
6314
|
}
|
|
6313
|
-
const
|
|
6314
|
-
function
|
|
6315
|
-
|
|
6315
|
+
const Xc = typeof Path2D == "function";
|
|
6316
|
+
function Kc(i, t, e, s) {
|
|
6317
|
+
Xc && !t.options.segment ? Yc(i, t, e, s) : Uc(i, t, e, s);
|
|
6316
6318
|
}
|
|
6317
6319
|
class Dt extends ut {
|
|
6318
6320
|
constructor(t) {
|
|
@@ -6322,7 +6324,7 @@ class Dt extends ut {
|
|
|
6322
6324
|
const s = this.options;
|
|
6323
6325
|
if ((s.tension || s.cubicInterpolationMode === "monotone") && !s.stepped && !this._pointsUpdated) {
|
|
6324
6326
|
const n = s.spanGaps ? this._loop : this._fullLoop;
|
|
6325
|
-
|
|
6327
|
+
Er(this._points, s, t, n, e), this._pointsUpdated = !0;
|
|
6326
6328
|
}
|
|
6327
6329
|
}
|
|
6328
6330
|
set points(t) {
|
|
@@ -6332,7 +6334,7 @@ class Dt extends ut {
|
|
|
6332
6334
|
return this._points;
|
|
6333
6335
|
}
|
|
6334
6336
|
get segments() {
|
|
6335
|
-
return this._segments || (this._segments =
|
|
6337
|
+
return this._segments || (this._segments = Gr(this, this.options.segment));
|
|
6336
6338
|
}
|
|
6337
6339
|
first() {
|
|
6338
6340
|
const t = this.segments, e = this.points;
|
|
@@ -6350,7 +6352,7 @@ class Dt extends ut {
|
|
|
6350
6352
|
});
|
|
6351
6353
|
if (!a.length)
|
|
6352
6354
|
return;
|
|
6353
|
-
const r = [], l =
|
|
6355
|
+
const r = [], l = $c(s);
|
|
6354
6356
|
let c, h;
|
|
6355
6357
|
for (c = 0, h = a.length; c < h; ++c) {
|
|
6356
6358
|
const { start: d, end: u } = a[c], f = o[d], g = o[u];
|
|
@@ -6379,7 +6381,7 @@ class Dt extends ut {
|
|
|
6379
6381
|
}
|
|
6380
6382
|
draw(t, e, s, n) {
|
|
6381
6383
|
const o = this.options || {};
|
|
6382
|
-
(this.points || []).length && o.borderWidth && (t.save(),
|
|
6384
|
+
(this.points || []).length && o.borderWidth && (t.save(), Kc(t, this, s, n), t.restore()), this.animated && (this._pointsUpdated = !1, this._path = void 0);
|
|
6383
6385
|
}
|
|
6384
6386
|
}
|
|
6385
6387
|
k(Dt, "id", "line"), k(Dt, "defaults", {
|
|
@@ -6491,7 +6493,7 @@ function No(i, t) {
|
|
|
6491
6493
|
function At(i, t, e, s) {
|
|
6492
6494
|
return i ? 0 : K(t, e, s);
|
|
6493
6495
|
}
|
|
6494
|
-
function
|
|
6496
|
+
function qc(i, t, e) {
|
|
6495
6497
|
const s = i.options.borderWidth, n = i.borderSkipped, o = po(s);
|
|
6496
6498
|
return {
|
|
6497
6499
|
t: At(n.top, o.top, 0, e),
|
|
@@ -6500,7 +6502,7 @@ function Xc(i, t, e) {
|
|
|
6500
6502
|
l: At(n.left, o.left, 0, t)
|
|
6501
6503
|
};
|
|
6502
6504
|
}
|
|
6503
|
-
function
|
|
6505
|
+
function Gc(i, t, e) {
|
|
6504
6506
|
const { enableBorderRadius: s } = i.getProps([
|
|
6505
6507
|
"enableBorderRadius"
|
|
6506
6508
|
]), n = i.options.borderRadius, o = Ut(n), a = Math.min(t, e), r = i.borderSkipped, l = s || O(n);
|
|
@@ -6511,8 +6513,8 @@ function Kc(i, t, e) {
|
|
|
6511
6513
|
bottomRight: At(!l || r.bottom || r.right, o.bottomRight, 0, a)
|
|
6512
6514
|
};
|
|
6513
6515
|
}
|
|
6514
|
-
function
|
|
6515
|
-
const t = No(i), e = t.right - t.left, s = t.bottom - t.top, n =
|
|
6516
|
+
function Zc(i) {
|
|
6517
|
+
const t = No(i), e = t.right - t.left, s = t.bottom - t.top, n = qc(i, e / 2, s / 2), o = Gc(i, e / 2, s / 2);
|
|
6516
6518
|
return {
|
|
6517
6519
|
outer: {
|
|
6518
6520
|
x: t.left,
|
|
@@ -6539,10 +6541,10 @@ function Ri(i, t, e, s) {
|
|
|
6539
6541
|
const n = t === null, o = e === null, r = i && !(n && o) && No(i, s);
|
|
6540
6542
|
return r && (n || kt(t, r.left, r.right)) && (o || kt(e, r.top, r.bottom));
|
|
6541
6543
|
}
|
|
6542
|
-
function
|
|
6544
|
+
function Jc(i) {
|
|
6543
6545
|
return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight;
|
|
6544
6546
|
}
|
|
6545
|
-
function
|
|
6547
|
+
function Qc(i, t) {
|
|
6546
6548
|
i.rect(t.x, t.y, t.w, t.h);
|
|
6547
6549
|
}
|
|
6548
6550
|
function Fi(i, t, e = {}) {
|
|
@@ -6560,7 +6562,7 @@ class ai extends ut {
|
|
|
6560
6562
|
super(), this.options = void 0, this.horizontal = void 0, this.base = void 0, this.width = void 0, this.height = void 0, this.inflateAmount = void 0, t && Object.assign(this, t);
|
|
6561
6563
|
}
|
|
6562
6564
|
draw(t) {
|
|
6563
|
-
const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: a } =
|
|
6565
|
+
const { inflateAmount: e, options: { borderColor: s, backgroundColor: n } } = this, { inner: o, outer: a } = Zc(this), r = Jc(a.radius) ? Ae : Qc;
|
|
6564
6566
|
t.save(), (a.w !== o.w || a.h !== o.h) && (t.beginPath(), r(t, Fi(a, e, o)), t.clip(), r(t, Fi(o, -e, a)), t.fillStyle = s, t.fill("evenodd")), t.beginPath(), r(t, Fi(o, e)), t.fillStyle = n, t.fill(), t.restore();
|
|
6565
6567
|
}
|
|
6566
6568
|
inRange(t, e, s) {
|
|
@@ -6598,7 +6600,7 @@ k(ai, "id", "bar"), k(ai, "defaults", {
|
|
|
6598
6600
|
backgroundColor: "backgroundColor",
|
|
6599
6601
|
borderColor: "borderColor"
|
|
6600
6602
|
});
|
|
6601
|
-
var
|
|
6603
|
+
var th = /* @__PURE__ */ Object.freeze({
|
|
6602
6604
|
__proto__: null,
|
|
6603
6605
|
ArcElement: me,
|
|
6604
6606
|
BarElement: ai,
|
|
@@ -6621,20 +6623,20 @@ function Ho(i) {
|
|
|
6621
6623
|
function jo(i) {
|
|
6622
6624
|
return _n[i % _n.length];
|
|
6623
6625
|
}
|
|
6624
|
-
function
|
|
6626
|
+
function eh(i, t) {
|
|
6625
6627
|
return i.borderColor = Ho(t), i.backgroundColor = jo(t), ++t;
|
|
6626
6628
|
}
|
|
6627
|
-
function
|
|
6629
|
+
function ih(i, t) {
|
|
6628
6630
|
return i.backgroundColor = i.data.map(() => Ho(t++)), t;
|
|
6629
6631
|
}
|
|
6630
|
-
function
|
|
6632
|
+
function sh(i, t) {
|
|
6631
6633
|
return i.backgroundColor = i.data.map(() => jo(t++)), t;
|
|
6632
6634
|
}
|
|
6633
|
-
function
|
|
6635
|
+
function nh(i) {
|
|
6634
6636
|
let t = 0;
|
|
6635
6637
|
return (e, s) => {
|
|
6636
6638
|
const n = i.getDatasetMeta(s).controller;
|
|
6637
|
-
n instanceof jt ? t =
|
|
6639
|
+
n instanceof jt ? t = ih(e, t) : n instanceof we ? t = sh(e, t) : n && (t = eh(e, t));
|
|
6638
6640
|
};
|
|
6639
6641
|
}
|
|
6640
6642
|
function yn(i) {
|
|
@@ -6644,13 +6646,13 @@ function yn(i) {
|
|
|
6644
6646
|
return !0;
|
|
6645
6647
|
return !1;
|
|
6646
6648
|
}
|
|
6647
|
-
function
|
|
6649
|
+
function oh(i) {
|
|
6648
6650
|
return i && (i.borderColor || i.backgroundColor);
|
|
6649
6651
|
}
|
|
6650
|
-
function
|
|
6652
|
+
function ah() {
|
|
6651
6653
|
return H.borderColor !== "rgba(0,0,0,0.1)" || H.backgroundColor !== "rgba(0,0,0,0.1)";
|
|
6652
6654
|
}
|
|
6653
|
-
var
|
|
6655
|
+
var rh = {
|
|
6654
6656
|
id: "colors",
|
|
6655
6657
|
defaults: {
|
|
6656
6658
|
enabled: !0,
|
|
@@ -6659,14 +6661,14 @@ var oh = {
|
|
|
6659
6661
|
beforeLayout(i, t, e) {
|
|
6660
6662
|
if (!e.enabled)
|
|
6661
6663
|
return;
|
|
6662
|
-
const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, a = yn(s) ||
|
|
6664
|
+
const { data: { datasets: s }, options: n } = i.config, { elements: o } = n, a = yn(s) || oh(n) || o && yn(o) || ah();
|
|
6663
6665
|
if (!e.forceOverride && a)
|
|
6664
6666
|
return;
|
|
6665
|
-
const r =
|
|
6667
|
+
const r = nh(i);
|
|
6666
6668
|
s.forEach(r);
|
|
6667
6669
|
}
|
|
6668
6670
|
};
|
|
6669
|
-
function
|
|
6671
|
+
function lh(i, t, e, s, n) {
|
|
6670
6672
|
const o = n.samples || s;
|
|
6671
6673
|
if (o >= e)
|
|
6672
6674
|
return i.slice(t, t + e);
|
|
@@ -6676,10 +6678,10 @@ function ah(i, t, e, s, n) {
|
|
|
6676
6678
|
let h = t, d, u, f, g, p;
|
|
6677
6679
|
for (a[l++] = i[h], d = 0; d < o - 2; d++) {
|
|
6678
6680
|
let m = 0, b = 0, x;
|
|
6679
|
-
const
|
|
6680
|
-
for (x =
|
|
6681
|
+
const _ = Math.floor((d + 1) * r) + 1 + t, v = Math.min(Math.floor((d + 2) * r) + 1, e) + t, y = v - _;
|
|
6682
|
+
for (x = _; x < v; x++)
|
|
6681
6683
|
m += i[x].x, b += i[x].y;
|
|
6682
|
-
m /=
|
|
6684
|
+
m /= y, b /= y;
|
|
6683
6685
|
const w = Math.floor(d * r) + 1 + t, M = Math.min(Math.floor((d + 1) * r) + 1, e) + t, { x: S, y: P } = i[h];
|
|
6684
6686
|
for (f = g = -1, x = w; x < M; x++)
|
|
6685
6687
|
g = 0.5 * Math.abs((S - m) * (i[x].y - P) - (S - i[x].x) * (b - P)), g > f && (f = g, u = i[x], p = x);
|
|
@@ -6687,13 +6689,13 @@ function ah(i, t, e, s, n) {
|
|
|
6687
6689
|
}
|
|
6688
6690
|
return a[l++] = i[c], a;
|
|
6689
6691
|
}
|
|
6690
|
-
function
|
|
6692
|
+
function ch(i, t, e, s) {
|
|
6691
6693
|
let n = 0, o = 0, a, r, l, c, h, d, u, f, g, p;
|
|
6692
6694
|
const m = [], b = t + e - 1, x = i[t].x, v = i[b].x - x;
|
|
6693
6695
|
for (a = t; a < t + e; ++a) {
|
|
6694
6696
|
r = i[a], l = (r.x - x) / v * s, c = r.y;
|
|
6695
|
-
const
|
|
6696
|
-
if (
|
|
6697
|
+
const y = l | 0;
|
|
6698
|
+
if (y === h)
|
|
6697
6699
|
c < g ? (g = c, d = a) : c > p && (p = c, u = a), n = (o * n + r.x) / ++o;
|
|
6698
6700
|
else {
|
|
6699
6701
|
const w = a - 1;
|
|
@@ -6707,7 +6709,7 @@ function rh(i, t, e, s) {
|
|
|
6707
6709
|
x: n
|
|
6708
6710
|
});
|
|
6709
6711
|
}
|
|
6710
|
-
a > 0 && w !== f && m.push(i[w]), m.push(r), h =
|
|
6712
|
+
a > 0 && w !== f && m.push(i[w]), m.push(r), h = y, o = 0, g = p = c, d = u = f = a;
|
|
6711
6713
|
}
|
|
6712
6714
|
}
|
|
6713
6715
|
return m;
|
|
@@ -6728,7 +6730,7 @@ function vn(i) {
|
|
|
6728
6730
|
$o(t);
|
|
6729
6731
|
});
|
|
6730
6732
|
}
|
|
6731
|
-
function
|
|
6733
|
+
function hh(i, t) {
|
|
6732
6734
|
const e = t.length;
|
|
6733
6735
|
let s = 0, n;
|
|
6734
6736
|
const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: c } = o.getUserBounds();
|
|
@@ -6737,7 +6739,7 @@ function lh(i, t) {
|
|
|
6737
6739
|
count: n
|
|
6738
6740
|
};
|
|
6739
6741
|
}
|
|
6740
|
-
var
|
|
6742
|
+
var dh = {
|
|
6741
6743
|
id: "decimation",
|
|
6742
6744
|
defaults: {
|
|
6743
6745
|
algorithm: "min-max",
|
|
@@ -6759,7 +6761,7 @@ var ch = {
|
|
|
6759
6761
|
const h = i.scales[l.xAxisID];
|
|
6760
6762
|
if (h.type !== "linear" && h.type !== "time" || i.options.parsing)
|
|
6761
6763
|
return;
|
|
6762
|
-
let { start: d, count: u } =
|
|
6764
|
+
let { start: d, count: u } = hh(l, c);
|
|
6763
6765
|
const f = e.threshold || 4 * s;
|
|
6764
6766
|
if (u <= f) {
|
|
6765
6767
|
$o(n);
|
|
@@ -6778,10 +6780,10 @@ var ch = {
|
|
|
6778
6780
|
let g;
|
|
6779
6781
|
switch (e.algorithm) {
|
|
6780
6782
|
case "lttb":
|
|
6781
|
-
g =
|
|
6783
|
+
g = lh(c, d, u, s, e);
|
|
6782
6784
|
break;
|
|
6783
6785
|
case "min-max":
|
|
6784
|
-
g =
|
|
6786
|
+
g = ch(c, d, u, s);
|
|
6785
6787
|
break;
|
|
6786
6788
|
default:
|
|
6787
6789
|
throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`);
|
|
@@ -6793,7 +6795,7 @@ var ch = {
|
|
|
6793
6795
|
vn(i);
|
|
6794
6796
|
}
|
|
6795
6797
|
};
|
|
6796
|
-
function
|
|
6798
|
+
function uh(i, t, e) {
|
|
6797
6799
|
const s = i.segments, n = i.points, o = t.points, a = [];
|
|
6798
6800
|
for (const r of s) {
|
|
6799
6801
|
let { start: l, end: c } = r;
|
|
@@ -6836,7 +6838,7 @@ function Ki(i, t, e, s) {
|
|
|
6836
6838
|
end: o
|
|
6837
6839
|
};
|
|
6838
6840
|
}
|
|
6839
|
-
function
|
|
6841
|
+
function fh(i, t) {
|
|
6840
6842
|
const { x: e = null, y: s = null } = i || {}, n = t.points, o = [];
|
|
6841
6843
|
return t.segments.forEach(({ start: a, end: r }) => {
|
|
6842
6844
|
r = xs(a, r, n);
|
|
@@ -6869,7 +6871,7 @@ function kn(i, t, e, s) {
|
|
|
6869
6871
|
}
|
|
6870
6872
|
function Yo(i, t) {
|
|
6871
6873
|
let e = [], s = !1;
|
|
6872
|
-
return N(i) ? (s = !0, e = i) : e =
|
|
6874
|
+
return N(i) ? (s = !0, e = i) : e = fh(i, t), e.length ? new Dt({
|
|
6873
6875
|
points: e,
|
|
6874
6876
|
options: {
|
|
6875
6877
|
tension: 0
|
|
@@ -6881,7 +6883,7 @@ function Yo(i, t) {
|
|
|
6881
6883
|
function wn(i) {
|
|
6882
6884
|
return i && i.fill !== !1;
|
|
6883
6885
|
}
|
|
6884
|
-
function
|
|
6886
|
+
function gh(i, t, e) {
|
|
6885
6887
|
let n = i[t].fill;
|
|
6886
6888
|
const o = [
|
|
6887
6889
|
t
|
|
@@ -6900,12 +6902,12 @@ function uh(i, t, e) {
|
|
|
6900
6902
|
}
|
|
6901
6903
|
return !1;
|
|
6902
6904
|
}
|
|
6903
|
-
function
|
|
6904
|
-
const s =
|
|
6905
|
+
function ph(i, t, e) {
|
|
6906
|
+
const s = _h(i);
|
|
6905
6907
|
if (O(s))
|
|
6906
6908
|
return isNaN(s.value) ? !1 : s;
|
|
6907
6909
|
let n = parseFloat(s);
|
|
6908
|
-
return j(n) && Math.floor(n) === n ?
|
|
6910
|
+
return j(n) && Math.floor(n) === n ? mh(s[0], t, n, e) : [
|
|
6909
6911
|
"origin",
|
|
6910
6912
|
"start",
|
|
6911
6913
|
"end",
|
|
@@ -6913,24 +6915,24 @@ function fh(i, t, e) {
|
|
|
6913
6915
|
"shape"
|
|
6914
6916
|
].indexOf(s) >= 0 && s;
|
|
6915
6917
|
}
|
|
6916
|
-
function
|
|
6918
|
+
function mh(i, t, e, s) {
|
|
6917
6919
|
return (i === "-" || i === "+") && (e = t + e), e === t || e < 0 || e >= s ? !1 : e;
|
|
6918
6920
|
}
|
|
6919
|
-
function
|
|
6921
|
+
function bh(i, t) {
|
|
6920
6922
|
let e = null;
|
|
6921
6923
|
return i === "start" ? e = t.bottom : i === "end" ? e = t.top : O(i) ? e = t.getPixelForValue(i.value) : t.getBasePixel && (e = t.getBasePixel()), e;
|
|
6922
6924
|
}
|
|
6923
|
-
function
|
|
6925
|
+
function xh(i, t, e) {
|
|
6924
6926
|
let s;
|
|
6925
6927
|
return i === "start" ? s = e : i === "end" ? s = t.options.reverse ? t.min : t.max : O(i) ? s = i.value : s = t.getBaseValue(), s;
|
|
6926
6928
|
}
|
|
6927
|
-
function
|
|
6929
|
+
function _h(i) {
|
|
6928
6930
|
const t = i.options, e = t.fill;
|
|
6929
6931
|
let s = C(e && e.target, e);
|
|
6930
6932
|
return s === void 0 && (s = !!t.backgroundColor), s === !1 || s === null ? !1 : s === !0 ? "origin" : s;
|
|
6931
6933
|
}
|
|
6932
|
-
function
|
|
6933
|
-
const { scale: t, index: e, line: s } = i, n = [], o = s.segments, a = s.points, r =
|
|
6934
|
+
function yh(i) {
|
|
6935
|
+
const { scale: t, index: e, line: s } = i, n = [], o = s.segments, a = s.points, r = vh(t, e);
|
|
6934
6936
|
r.push(Yo({
|
|
6935
6937
|
x: null,
|
|
6936
6938
|
y: t.bottom
|
|
@@ -6938,14 +6940,14 @@ function xh(i) {
|
|
|
6938
6940
|
for (let l = 0; l < o.length; l++) {
|
|
6939
6941
|
const c = o[l];
|
|
6940
6942
|
for (let h = c.start; h <= c.end; h++)
|
|
6941
|
-
|
|
6943
|
+
kh(n, a[h], r);
|
|
6942
6944
|
}
|
|
6943
6945
|
return new Dt({
|
|
6944
6946
|
points: n,
|
|
6945
6947
|
options: {}
|
|
6946
6948
|
});
|
|
6947
6949
|
}
|
|
6948
|
-
function
|
|
6950
|
+
function vh(i, t) {
|
|
6949
6951
|
const e = [], s = i.getMatchingVisibleMetas("line");
|
|
6950
6952
|
for (let n = 0; n < s.length; n++) {
|
|
6951
6953
|
const o = s[n];
|
|
@@ -6955,10 +6957,10 @@ function _h(i, t) {
|
|
|
6955
6957
|
}
|
|
6956
6958
|
return e;
|
|
6957
6959
|
}
|
|
6958
|
-
function
|
|
6960
|
+
function kh(i, t, e) {
|
|
6959
6961
|
const s = [];
|
|
6960
6962
|
for (let n = 0; n < e.length; n++) {
|
|
6961
|
-
const o = e[n], { first: a, last: r, point: l } =
|
|
6963
|
+
const o = e[n], { first: a, last: r, point: l } = wh(o, t, "x");
|
|
6962
6964
|
if (!(!l || a && r)) {
|
|
6963
6965
|
if (a)
|
|
6964
6966
|
s.unshift(l);
|
|
@@ -6968,7 +6970,7 @@ function yh(i, t, e) {
|
|
|
6968
6970
|
}
|
|
6969
6971
|
i.push(...s);
|
|
6970
6972
|
}
|
|
6971
|
-
function
|
|
6973
|
+
function wh(i, t, e) {
|
|
6972
6974
|
const s = i.interpolate(t, e);
|
|
6973
6975
|
if (!s)
|
|
6974
6976
|
return {};
|
|
@@ -7007,26 +7009,26 @@ class Uo {
|
|
|
7007
7009
|
};
|
|
7008
7010
|
}
|
|
7009
7011
|
}
|
|
7010
|
-
function
|
|
7012
|
+
function Mh(i) {
|
|
7011
7013
|
const { chart: t, fill: e, line: s } = i;
|
|
7012
7014
|
if (j(e))
|
|
7013
|
-
return
|
|
7015
|
+
return Sh(t, e);
|
|
7014
7016
|
if (e === "stack")
|
|
7015
|
-
return
|
|
7017
|
+
return yh(i);
|
|
7016
7018
|
if (e === "shape")
|
|
7017
7019
|
return !0;
|
|
7018
|
-
const n =
|
|
7020
|
+
const n = Ph(i);
|
|
7019
7021
|
return n instanceof Uo ? n : Yo(n, s);
|
|
7020
7022
|
}
|
|
7021
|
-
function
|
|
7023
|
+
function Sh(i, t) {
|
|
7022
7024
|
const e = i.getDatasetMeta(t);
|
|
7023
7025
|
return e && i.isDatasetVisible(t) ? e.dataset : null;
|
|
7024
7026
|
}
|
|
7025
|
-
function
|
|
7026
|
-
return (i.scale || {}).getPointPositionForValue ?
|
|
7027
|
+
function Ph(i) {
|
|
7028
|
+
return (i.scale || {}).getPointPositionForValue ? Dh(i) : Ch(i);
|
|
7027
7029
|
}
|
|
7028
|
-
function
|
|
7029
|
-
const { scale: t = {}, fill: e } = i, s =
|
|
7030
|
+
function Ch(i) {
|
|
7031
|
+
const { scale: t = {}, fill: e } = i, s = bh(e, t);
|
|
7030
7032
|
if (j(s)) {
|
|
7031
7033
|
const n = t.isHorizontal();
|
|
7032
7034
|
return {
|
|
@@ -7036,8 +7038,8 @@ function Sh(i) {
|
|
|
7036
7038
|
}
|
|
7037
7039
|
return null;
|
|
7038
7040
|
}
|
|
7039
|
-
function
|
|
7040
|
-
const { scale: t, fill: e } = i, s = t.options, n = t.getLabels().length, o = s.reverse ? t.max : t.min, a =
|
|
7041
|
+
function Dh(i) {
|
|
7042
|
+
const { scale: t, fill: e } = i, s = t.options, n = t.getLabels().length, o = s.reverse ? t.max : t.min, a = xh(e, t, o), r = [];
|
|
7041
7043
|
if (s.grid.circular) {
|
|
7042
7044
|
const l = t.getPointPositionForValue(0, o);
|
|
7043
7045
|
return new Uo({
|
|
@@ -7051,8 +7053,8 @@ function Ph(i) {
|
|
|
7051
7053
|
return r;
|
|
7052
7054
|
}
|
|
7053
7055
|
function Ei(i, t, e) {
|
|
7054
|
-
const s =
|
|
7055
|
-
s && n.points.length && (bi(i, e),
|
|
7056
|
+
const s = Mh(t), { line: n, scale: o, axis: a } = t, r = n.options, l = r.fill, c = r.backgroundColor, { above: h = c, below: d = c } = l || {};
|
|
7057
|
+
s && n.points.length && (bi(i, e), Ah(i, {
|
|
7056
7058
|
line: n,
|
|
7057
7059
|
target: s,
|
|
7058
7060
|
above: h,
|
|
@@ -7062,7 +7064,7 @@ function Ei(i, t, e) {
|
|
|
7062
7064
|
axis: a
|
|
7063
7065
|
}), xi(i));
|
|
7064
7066
|
}
|
|
7065
|
-
function
|
|
7067
|
+
function Ah(i, t) {
|
|
7066
7068
|
const { line: e, target: s, above: n, below: o, area: a, scale: r } = t, l = e._loop ? "angle" : t.axis;
|
|
7067
7069
|
i.save(), l === "x" && o !== n && (Mn(i, s, a.top), Sn(i, {
|
|
7068
7070
|
line: e,
|
|
@@ -7091,10 +7093,10 @@ function Mn(i, t, e) {
|
|
|
7091
7093
|
i.lineTo(t.first().x, e), i.closePath(), i.clip();
|
|
7092
7094
|
}
|
|
7093
7095
|
function Sn(i, t) {
|
|
7094
|
-
const { line: e, target: s, property: n, color: o, scale: a } = t, r =
|
|
7096
|
+
const { line: e, target: s, property: n, color: o, scale: a } = t, r = uh(e, s, n);
|
|
7095
7097
|
for (const { source: l, target: c, start: h, end: d } of r) {
|
|
7096
7098
|
const { style: { backgroundColor: u = o } = {} } = l, f = s !== !0;
|
|
7097
|
-
i.save(), i.fillStyle = u,
|
|
7099
|
+
i.save(), i.fillStyle = u, Oh(i, a, f && Ki(n, h, d)), i.beginPath();
|
|
7098
7100
|
const g = !!e.pathSegment(i, l);
|
|
7099
7101
|
let p;
|
|
7100
7102
|
if (f) {
|
|
@@ -7108,7 +7110,7 @@ function Sn(i, t) {
|
|
|
7108
7110
|
i.closePath(), i.fill(p ? "evenodd" : "nonzero"), i.restore();
|
|
7109
7111
|
}
|
|
7110
7112
|
}
|
|
7111
|
-
function
|
|
7113
|
+
function Oh(i, t, e) {
|
|
7112
7114
|
const { top: s, bottom: n } = t.chart.chartArea, { property: o, start: a, end: r } = e || {};
|
|
7113
7115
|
o === "x" && (i.beginPath(), i.rect(a, s, r - a, n - s), i.clip());
|
|
7114
7116
|
}
|
|
@@ -7116,7 +7118,7 @@ function Pn(i, t, e, s) {
|
|
|
7116
7118
|
const n = t.interpolate(e, s);
|
|
7117
7119
|
n && i.lineTo(n.x, n.y);
|
|
7118
7120
|
}
|
|
7119
|
-
var
|
|
7121
|
+
var Th = {
|
|
7120
7122
|
id: "filler",
|
|
7121
7123
|
afterDatasetsUpdate(i, t, e) {
|
|
7122
7124
|
const s = (i.data.datasets || []).length, n = [];
|
|
@@ -7125,14 +7127,14 @@ var Ah = {
|
|
|
7125
7127
|
o = i.getDatasetMeta(a), r = o.dataset, l = null, r && r.options && r instanceof Dt && (l = {
|
|
7126
7128
|
visible: i.isDatasetVisible(a),
|
|
7127
7129
|
index: a,
|
|
7128
|
-
fill:
|
|
7130
|
+
fill: ph(r, a, s),
|
|
7129
7131
|
chart: i,
|
|
7130
7132
|
axis: o.controller.options.indexAxis,
|
|
7131
7133
|
scale: o.vScale,
|
|
7132
7134
|
line: r
|
|
7133
7135
|
}), o.$filler = l, n.push(l);
|
|
7134
7136
|
for (a = 0; a < s; ++a)
|
|
7135
|
-
l = n[a], !(!l || l.fill === !1) && (l.fill =
|
|
7137
|
+
l = n[a], !(!l || l.fill === !1) && (l.fill = gh(n, a, e.propagate));
|
|
7136
7138
|
},
|
|
7137
7139
|
beforeDraw(i, t, e) {
|
|
7138
7140
|
const s = e.drawTime === "beforeDraw", n = i.getSortedVisibleDatasetMetas(), o = i.chartArea;
|
|
@@ -7166,7 +7168,7 @@ const Cn = (i, t) => {
|
|
|
7166
7168
|
boxHeight: e,
|
|
7167
7169
|
itemHeight: Math.max(t, e)
|
|
7168
7170
|
};
|
|
7169
|
-
},
|
|
7171
|
+
}, Lh = (i, t) => i !== null && t !== null && i.datasetIndex === t.datasetIndex && i.index === t.index;
|
|
7170
7172
|
class Dn extends ut {
|
|
7171
7173
|
constructor(t) {
|
|
7172
7174
|
super(), this._added = !1, this.legendHitBoxes = [], this._hoveredItem = null, this.doughnutMode = !1, this.chart = t.chart, this.options = t.options, this.ctx = t.ctx, this.legendItems = void 0, this.columnSizes = void 0, this.lineWidths = void 0, this.maxHeight = void 0, this.maxWidth = void 0, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.height = void 0, this.width = void 0, this._margins = void 0, this.position = void 0, this.weight = void 0, this.fullSize = void 0;
|
|
@@ -7216,8 +7218,8 @@ class Dn extends ut {
|
|
|
7216
7218
|
const { ctx: o, maxHeight: a, options: { labels: { padding: r } } } = this, l = this.legendHitBoxes = [], c = this.columnSizes = [], h = a - t;
|
|
7217
7219
|
let d = r, u = 0, f = 0, g = 0, p = 0;
|
|
7218
7220
|
return this.legendItems.forEach((m, b) => {
|
|
7219
|
-
const { itemWidth: x, itemHeight:
|
|
7220
|
-
b > 0 && f +
|
|
7221
|
+
const { itemWidth: x, itemHeight: _ } = Rh(s, e, o, m, n);
|
|
7222
|
+
b > 0 && f + _ + 2 * r > h && (d += u + r, c.push({
|
|
7221
7223
|
width: u,
|
|
7222
7224
|
height: f
|
|
7223
7225
|
}), g += u + r, p++, u = f = 0), l[b] = {
|
|
@@ -7225,8 +7227,8 @@ class Dn extends ut {
|
|
|
7225
7227
|
top: f,
|
|
7226
7228
|
col: p,
|
|
7227
7229
|
width: x,
|
|
7228
|
-
height:
|
|
7229
|
-
}, u = Math.max(u, x), f +=
|
|
7230
|
+
height: _
|
|
7231
|
+
}, u = Math.max(u, x), f += _ + r;
|
|
7230
7232
|
}), d += u, c.push({
|
|
7231
7233
|
width: u,
|
|
7232
7234
|
height: f
|
|
@@ -7237,13 +7239,13 @@ class Dn extends ut {
|
|
|
7237
7239
|
return;
|
|
7238
7240
|
const t = this._computeTitleHeight(), { legendHitBoxes: e, options: { align: s, labels: { padding: n }, rtl: o } } = this, a = ee(o, this.left, this.width);
|
|
7239
7241
|
if (this.isHorizontal()) {
|
|
7240
|
-
let r = 0, l =
|
|
7242
|
+
let r = 0, l = J(s, this.left + n, this.right - this.lineWidths[r]);
|
|
7241
7243
|
for (const c of e)
|
|
7242
|
-
r !== c.row && (r = c.row, l =
|
|
7244
|
+
r !== c.row && (r = c.row, l = J(s, this.left + n, this.right - this.lineWidths[r])), c.top += this.top + t + n, c.left = a.leftForLtr(a.x(l), c.width), l += c.width + n;
|
|
7243
7245
|
} else {
|
|
7244
|
-
let r = 0, l =
|
|
7246
|
+
let r = 0, l = J(s, this.top + t + n, this.bottom - this.columnSizes[r].height);
|
|
7245
7247
|
for (const c of e)
|
|
7246
|
-
c.col !== r && (r = c.col, l =
|
|
7248
|
+
c.col !== r && (r = c.col, l = J(s, this.top + t + n, this.bottom - this.columnSizes[r].height)), c.top = l, c.left += this.left + n, c.left = a.leftForLtr(a.x(c.left), c.width), l += c.height + n;
|
|
7247
7249
|
}
|
|
7248
7250
|
}
|
|
7249
7251
|
isHorizontal() {
|
|
@@ -7288,30 +7290,30 @@ class Dn extends ut {
|
|
|
7288
7290
|
strikethrough: S.hidden,
|
|
7289
7291
|
textAlign: l.textAlign(S.textAlign)
|
|
7290
7292
|
});
|
|
7291
|
-
},
|
|
7292
|
-
|
|
7293
|
-
x:
|
|
7293
|
+
}, _ = this.isHorizontal(), v = this._computeTitleHeight();
|
|
7294
|
+
_ ? f = {
|
|
7295
|
+
x: J(o, this.left + h, this.right - s[0]),
|
|
7294
7296
|
y: this.top + h + v,
|
|
7295
7297
|
line: 0
|
|
7296
7298
|
} : f = {
|
|
7297
7299
|
x: this.left + h,
|
|
7298
|
-
y:
|
|
7300
|
+
y: J(o, this.top + v + h, this.bottom - e[0].height),
|
|
7299
7301
|
line: 0
|
|
7300
7302
|
}, ko(this.ctx, t.textDirection);
|
|
7301
|
-
const
|
|
7303
|
+
const y = m + h;
|
|
7302
7304
|
this.legendItems.forEach((w, M) => {
|
|
7303
7305
|
n.strokeStyle = w.fontColor, n.fillStyle = w.fontColor;
|
|
7304
7306
|
const S = n.measureText(w.text).width, P = l.textAlign(w.textAlign || (w.textAlign = a.textAlign)), D = g + u + S;
|
|
7305
7307
|
let A = f.x, T = f.y;
|
|
7306
|
-
l.setWidth(this.width),
|
|
7308
|
+
l.setWidth(this.width), _ ? M > 0 && A + D + h > this.right && (T = f.y += y, f.line++, A = f.x = J(o, this.left + h, this.right - s[f.line])) : M > 0 && T + y > this.bottom && (A = f.x = A + e[f.line].width + h, f.line++, T = f.y = J(o, this.top + v + h, this.bottom - e[f.line].height));
|
|
7307
7309
|
const q = l.x(A);
|
|
7308
|
-
if (b(q, T, w), A =
|
|
7310
|
+
if (b(q, T, w), A = Qa(P, A + g + u, _ ? A + D : this.right, t.rtl), x(l.x(A), T, w), _)
|
|
7309
7311
|
f.x += D + h;
|
|
7310
7312
|
else if (typeof w.text != "string") {
|
|
7311
7313
|
const nt = c.lineHeight;
|
|
7312
7314
|
f.y += Xo(w, nt) + h;
|
|
7313
7315
|
} else
|
|
7314
|
-
f.y +=
|
|
7316
|
+
f.y += y;
|
|
7315
7317
|
}), wo(this.ctx, t.textDirection);
|
|
7316
7318
|
}
|
|
7317
7319
|
drawTitle() {
|
|
@@ -7321,12 +7323,12 @@ class Dn extends ut {
|
|
|
7321
7323
|
const o = ee(t.rtl, this.left, this.width), a = this.ctx, r = e.position, l = s.size / 2, c = n.top + l;
|
|
7322
7324
|
let h, d = this.left, u = this.width;
|
|
7323
7325
|
if (this.isHorizontal())
|
|
7324
|
-
u = Math.max(...this.lineWidths), h = this.top + c, d =
|
|
7326
|
+
u = Math.max(...this.lineWidths), h = this.top + c, d = J(t.align, d, this.right - u);
|
|
7325
7327
|
else {
|
|
7326
7328
|
const g = this.columnSizes.reduce((p, m) => Math.max(p, m.height), 0);
|
|
7327
|
-
h = c +
|
|
7329
|
+
h = c + J(t.align, this.top, this.bottom - g - t.labels.padding - this._computeTitleHeight());
|
|
7328
7330
|
}
|
|
7329
|
-
const f =
|
|
7331
|
+
const f = J(r, d, d + u);
|
|
7330
7332
|
a.textAlign = o.textAlign(cs(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, qt(a, e.text, f, h, s);
|
|
7331
7333
|
}
|
|
7332
7334
|
_computeTitleHeight() {
|
|
@@ -7344,11 +7346,11 @@ class Dn extends ut {
|
|
|
7344
7346
|
}
|
|
7345
7347
|
handleEvent(t) {
|
|
7346
7348
|
const e = this.options;
|
|
7347
|
-
if (!
|
|
7349
|
+
if (!Ih(t.type, e))
|
|
7348
7350
|
return;
|
|
7349
7351
|
const s = this._getLegendItemAt(t.x, t.y);
|
|
7350
7352
|
if (t.type === "mousemove" || t.type === "mouseout") {
|
|
7351
|
-
const n = this._hoveredItem, o =
|
|
7353
|
+
const n = this._hoveredItem, o = Lh(n, s);
|
|
7352
7354
|
n && !o && z(e.onLeave, [
|
|
7353
7355
|
t,
|
|
7354
7356
|
n,
|
|
@@ -7365,18 +7367,18 @@ class Dn extends ut {
|
|
|
7365
7367
|
], this);
|
|
7366
7368
|
}
|
|
7367
7369
|
}
|
|
7368
|
-
function
|
|
7369
|
-
const o =
|
|
7370
|
+
function Rh(i, t, e, s, n) {
|
|
7371
|
+
const o = Fh(s, i, t, e), a = Eh(n, s, t.lineHeight);
|
|
7370
7372
|
return {
|
|
7371
7373
|
itemWidth: o,
|
|
7372
7374
|
itemHeight: a
|
|
7373
7375
|
};
|
|
7374
7376
|
}
|
|
7375
|
-
function
|
|
7377
|
+
function Fh(i, t, e, s) {
|
|
7376
7378
|
let n = i.text;
|
|
7377
7379
|
return n && typeof n != "string" && (n = n.reduce((o, a) => o.length > a.length ? o : a)), t + e.size / 2 + s.measureText(n).width;
|
|
7378
7380
|
}
|
|
7379
|
-
function
|
|
7381
|
+
function Eh(i, t, e) {
|
|
7380
7382
|
let s = i;
|
|
7381
7383
|
return typeof t.text != "string" && (s = Xo(t, e)), s;
|
|
7382
7384
|
}
|
|
@@ -7384,10 +7386,10 @@ function Xo(i, t) {
|
|
|
7384
7386
|
const e = i.text ? i.text.length : 0;
|
|
7385
7387
|
return t * e;
|
|
7386
7388
|
}
|
|
7387
|
-
function
|
|
7389
|
+
function Ih(i, t) {
|
|
7388
7390
|
return !!((i === "mousemove" || i === "mouseout") && (t.onHover || t.onLeave) || t.onClick && (i === "click" || i === "mouseup"));
|
|
7389
7391
|
}
|
|
7390
|
-
var
|
|
7392
|
+
var zh = {
|
|
7391
7393
|
id: "legend",
|
|
7392
7394
|
_element: Dn,
|
|
7393
7395
|
start(i, t, e) {
|
|
@@ -7396,14 +7398,14 @@ var Eh = {
|
|
|
7396
7398
|
options: e,
|
|
7397
7399
|
chart: i
|
|
7398
7400
|
});
|
|
7399
|
-
|
|
7401
|
+
Q.configure(i, s, e), Q.addBox(i, s);
|
|
7400
7402
|
},
|
|
7401
7403
|
stop(i) {
|
|
7402
|
-
|
|
7404
|
+
Q.removeBox(i, i.legend), delete i.legend;
|
|
7403
7405
|
},
|
|
7404
7406
|
beforeUpdate(i, t, e) {
|
|
7405
7407
|
const s = i.legend;
|
|
7406
|
-
|
|
7408
|
+
Q.configure(i, s, e), s.options = e;
|
|
7407
7409
|
},
|
|
7408
7410
|
afterUpdate(i) {
|
|
7409
7411
|
const t = i.legend;
|
|
@@ -7494,7 +7496,7 @@ class _s extends ut {
|
|
|
7494
7496
|
_drawArgs(t) {
|
|
7495
7497
|
const { top: e, left: s, bottom: n, right: o, options: a } = this, r = a.align;
|
|
7496
7498
|
let l = 0, c, h, d;
|
|
7497
|
-
return this.isHorizontal() ? (h =
|
|
7499
|
+
return this.isHorizontal() ? (h = J(r, s, o), d = e + t, c = o - s) : (a.position === "left" ? (h = s + t, d = J(r, n, e), l = V * -0.5) : (h = o - t, d = J(r, e, n), l = V * 0.5), c = n - e), {
|
|
7498
7500
|
titleX: h,
|
|
7499
7501
|
titleY: d,
|
|
7500
7502
|
maxWidth: c,
|
|
@@ -7519,27 +7521,27 @@ class _s extends ut {
|
|
|
7519
7521
|
});
|
|
7520
7522
|
}
|
|
7521
7523
|
}
|
|
7522
|
-
function
|
|
7524
|
+
function Bh(i, t) {
|
|
7523
7525
|
const e = new _s({
|
|
7524
7526
|
ctx: i.ctx,
|
|
7525
7527
|
options: t,
|
|
7526
7528
|
chart: i
|
|
7527
7529
|
});
|
|
7528
|
-
|
|
7530
|
+
Q.configure(i, e, t), Q.addBox(i, e), i.titleBlock = e;
|
|
7529
7531
|
}
|
|
7530
|
-
var
|
|
7532
|
+
var Vh = {
|
|
7531
7533
|
id: "title",
|
|
7532
7534
|
_element: _s,
|
|
7533
7535
|
start(i, t, e) {
|
|
7534
|
-
|
|
7536
|
+
Bh(i, e);
|
|
7535
7537
|
},
|
|
7536
7538
|
stop(i) {
|
|
7537
7539
|
const t = i.titleBlock;
|
|
7538
|
-
|
|
7540
|
+
Q.removeBox(i, t), delete i.titleBlock;
|
|
7539
7541
|
},
|
|
7540
7542
|
beforeUpdate(i, t, e) {
|
|
7541
7543
|
const s = i.titleBlock;
|
|
7542
|
-
|
|
7544
|
+
Q.configure(i, s, e), s.options = e;
|
|
7543
7545
|
},
|
|
7544
7546
|
defaults: {
|
|
7545
7547
|
align: "center",
|
|
@@ -7562,7 +7564,7 @@ var zh = {
|
|
|
7562
7564
|
}
|
|
7563
7565
|
};
|
|
7564
7566
|
const Xe = /* @__PURE__ */ new WeakMap();
|
|
7565
|
-
var
|
|
7567
|
+
var Wh = {
|
|
7566
7568
|
id: "subtitle",
|
|
7567
7569
|
start(i, t, e) {
|
|
7568
7570
|
const s = new _s({
|
|
@@ -7570,14 +7572,14 @@ var Bh = {
|
|
|
7570
7572
|
options: e,
|
|
7571
7573
|
chart: i
|
|
7572
7574
|
});
|
|
7573
|
-
|
|
7575
|
+
Q.configure(i, s, e), Q.addBox(i, s), Xe.set(i, s);
|
|
7574
7576
|
},
|
|
7575
7577
|
stop(i) {
|
|
7576
|
-
|
|
7578
|
+
Q.removeBox(i, Xe.get(i)), Xe.delete(i);
|
|
7577
7579
|
},
|
|
7578
7580
|
beforeUpdate(i, t, e) {
|
|
7579
7581
|
const s = Xe.get(i);
|
|
7580
|
-
|
|
7582
|
+
Q.configure(i, s, e), s.options = e;
|
|
7581
7583
|
},
|
|
7582
7584
|
defaults: {
|
|
7583
7585
|
align: "center",
|
|
@@ -7647,7 +7649,7 @@ function xt(i) {
|
|
|
7647
7649
|
`) > -1 ? i.split(`
|
|
7648
7650
|
`) : i;
|
|
7649
7651
|
}
|
|
7650
|
-
function
|
|
7652
|
+
function Nh(i, t) {
|
|
7651
7653
|
const { element: e, datasetIndex: s, index: n } = t, o = i.getDatasetMeta(s).controller, { label: a, value: r } = o.getLabelAndValue(n);
|
|
7652
7654
|
return {
|
|
7653
7655
|
chart: i,
|
|
@@ -7663,56 +7665,56 @@ function Vh(i, t) {
|
|
|
7663
7665
|
}
|
|
7664
7666
|
function An(i, t) {
|
|
7665
7667
|
const e = i.chart.ctx, { body: s, footer: n, title: o } = i, { boxWidth: a, boxHeight: r } = t, l = X(t.bodyFont), c = X(t.titleFont), h = X(t.footerFont), d = o.length, u = n.length, f = s.length, g = tt(t.padding);
|
|
7666
|
-
let p = g.height, m = 0, b = s.reduce((v,
|
|
7668
|
+
let p = g.height, m = 0, b = s.reduce((v, y) => v + y.before.length + y.lines.length + y.after.length, 0);
|
|
7667
7669
|
if (b += i.beforeBody.length + i.afterBody.length, d && (p += d * c.lineHeight + (d - 1) * t.titleSpacing + t.titleMarginBottom), b) {
|
|
7668
7670
|
const v = t.displayColors ? Math.max(r, l.lineHeight) : l.lineHeight;
|
|
7669
7671
|
p += f * v + (b - f) * l.lineHeight + (b - 1) * t.bodySpacing;
|
|
7670
7672
|
}
|
|
7671
7673
|
u && (p += t.footerMarginTop + u * h.lineHeight + (u - 1) * t.footerSpacing);
|
|
7672
7674
|
let x = 0;
|
|
7673
|
-
const
|
|
7675
|
+
const _ = function(v) {
|
|
7674
7676
|
m = Math.max(m, e.measureText(v).width + x);
|
|
7675
7677
|
};
|
|
7676
|
-
return e.save(), e.font = c.string, F(i.title,
|
|
7677
|
-
F(v.before,
|
|
7678
|
-
}), x = 0, e.font = h.string, F(i.footer,
|
|
7678
|
+
return e.save(), e.font = c.string, F(i.title, _), e.font = l.string, F(i.beforeBody.concat(i.afterBody), _), x = t.displayColors ? a + 2 + t.boxPadding : 0, F(s, (v) => {
|
|
7679
|
+
F(v.before, _), F(v.lines, _), F(v.after, _);
|
|
7680
|
+
}), x = 0, e.font = h.string, F(i.footer, _), e.restore(), m += g.width, {
|
|
7679
7681
|
width: m,
|
|
7680
7682
|
height: p
|
|
7681
7683
|
};
|
|
7682
7684
|
}
|
|
7683
|
-
function
|
|
7685
|
+
function Hh(i, t) {
|
|
7684
7686
|
const { y: e, height: s } = t;
|
|
7685
7687
|
return e < s / 2 ? "top" : e > i.height - s / 2 ? "bottom" : "center";
|
|
7686
7688
|
}
|
|
7687
|
-
function
|
|
7689
|
+
function jh(i, t, e, s) {
|
|
7688
7690
|
const { x: n, width: o } = s, a = e.caretSize + e.caretPadding;
|
|
7689
7691
|
if (i === "left" && n + o + a > t.width || i === "right" && n - o - a < 0)
|
|
7690
7692
|
return !0;
|
|
7691
7693
|
}
|
|
7692
|
-
function
|
|
7694
|
+
function $h(i, t, e, s) {
|
|
7693
7695
|
const { x: n, width: o } = e, { width: a, chartArea: { left: r, right: l } } = i;
|
|
7694
7696
|
let c = "center";
|
|
7695
|
-
return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"),
|
|
7697
|
+
return s === "center" ? c = n <= (r + l) / 2 ? "left" : "right" : n <= o / 2 ? c = "left" : n >= a - o / 2 && (c = "right"), jh(c, i, t, e) && (c = "center"), c;
|
|
7696
7698
|
}
|
|
7697
7699
|
function On(i, t, e) {
|
|
7698
|
-
const s = e.yAlign || t.yAlign ||
|
|
7700
|
+
const s = e.yAlign || t.yAlign || Hh(i, e);
|
|
7699
7701
|
return {
|
|
7700
|
-
xAlign: e.xAlign || t.xAlign ||
|
|
7702
|
+
xAlign: e.xAlign || t.xAlign || $h(i, t, e, s),
|
|
7701
7703
|
yAlign: s
|
|
7702
7704
|
};
|
|
7703
7705
|
}
|
|
7704
|
-
function
|
|
7706
|
+
function Yh(i, t) {
|
|
7705
7707
|
let { x: e, width: s } = i;
|
|
7706
7708
|
return t === "right" ? e -= s : t === "center" && (e -= s / 2), e;
|
|
7707
7709
|
}
|
|
7708
|
-
function
|
|
7710
|
+
function Uh(i, t, e) {
|
|
7709
7711
|
let { y: s, height: n } = i;
|
|
7710
7712
|
return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
|
|
7711
7713
|
}
|
|
7712
7714
|
function Tn(i, t, e, s) {
|
|
7713
7715
|
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: h, topRight: d, bottomLeft: u, bottomRight: f } = Ut(a);
|
|
7714
|
-
let g =
|
|
7715
|
-
const p =
|
|
7716
|
+
let g = Yh(t, r);
|
|
7717
|
+
const p = Uh(t, l, c);
|
|
7716
7718
|
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), {
|
|
7717
7719
|
x: K(g, 0, s.width - t.width),
|
|
7718
7720
|
y: K(p, 0, s.height - t.height)
|
|
@@ -7725,7 +7727,7 @@ function Ke(i, t, e) {
|
|
|
7725
7727
|
function Ln(i) {
|
|
7726
7728
|
return ft([], xt(i));
|
|
7727
7729
|
}
|
|
7728
|
-
function
|
|
7730
|
+
function Xh(i, t, e) {
|
|
7729
7731
|
return Rt(i, {
|
|
7730
7732
|
tooltip: t,
|
|
7731
7733
|
tooltipItems: e,
|
|
@@ -7807,7 +7809,7 @@ class qi extends ut {
|
|
|
7807
7809
|
return n._cacheable && (this._cachedAnimations = Object.freeze(o)), o;
|
|
7808
7810
|
}
|
|
7809
7811
|
getContext() {
|
|
7810
|
-
return this.$context || (this.$context =
|
|
7812
|
+
return this.$context || (this.$context = Xh(this.chart.getContext(), this, this._tooltipItems));
|
|
7811
7813
|
}
|
|
7812
7814
|
getTitle(t, e) {
|
|
7813
7815
|
const { callbacks: s } = e, n = it(s, "beforeTitle", this, t), o = it(s, "title", this, t), a = it(s, "afterTitle", this, t);
|
|
@@ -7840,7 +7842,7 @@ class qi extends ut {
|
|
|
7840
7842
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
7841
7843
|
let r = [], l, c;
|
|
7842
7844
|
for (l = 0, c = e.length; l < c; ++l)
|
|
7843
|
-
r.push(
|
|
7845
|
+
r.push(Nh(this.chart, e[l]));
|
|
7844
7846
|
return t.filter && (r = r.filter((h, d, u) => t.filter(h, d, u, s))), t.itemSort && (r = r.sort((h, d) => t.itemSort(h, d, s))), F(r, (h) => {
|
|
7845
7847
|
const d = Rn(t.callbacks, h);
|
|
7846
7848
|
n.push(it(d, "labelColor", this, h)), o.push(it(d, "labelPointStyle", this, h)), a.push(it(d, "labelTextColor", this, h));
|
|
@@ -7879,14 +7881,14 @@ class qi extends ut {
|
|
|
7879
7881
|
}
|
|
7880
7882
|
getCaretPosition(t, e, s) {
|
|
7881
7883
|
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: h, bottomRight: d } = Ut(r), { x: u, y: f } = t, { width: g, height: p } = e;
|
|
7882
|
-
let m, b, x,
|
|
7883
|
-
return o === "center" ? (v = f + p / 2, n === "left" ? (m = u, b = m - a,
|
|
7884
|
+
let m, b, x, _, v, y;
|
|
7885
|
+
return o === "center" ? (v = f + p / 2, n === "left" ? (m = u, b = m - a, _ = v + a, y = v - a) : (m = u + g, b = m + a, _ = v - a, y = v + 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" ? (_ = f, v = _ - a, m = b - a, x = b + a) : (_ = f + p, v = _ + a, m = b + a, x = b - a), y = _), {
|
|
7884
7886
|
x1: m,
|
|
7885
7887
|
x2: b,
|
|
7886
7888
|
x3: x,
|
|
7887
|
-
y1:
|
|
7889
|
+
y1: _,
|
|
7888
7890
|
y2: v,
|
|
7889
|
-
y3:
|
|
7891
|
+
y3: y
|
|
7890
7892
|
};
|
|
7891
7893
|
}
|
|
7892
7894
|
drawTitle(t, e, s) {
|
|
@@ -7933,10 +7935,10 @@ class qi extends ut {
|
|
|
7933
7935
|
const g = ee(s.rtl, this.x, this.width), p = function(S) {
|
|
7934
7936
|
e.fillText(S, g.x(t.x + f), t.y + u / 2), t.y += u + o;
|
|
7935
7937
|
}, m = g.textAlign(a);
|
|
7936
|
-
let b, x,
|
|
7938
|
+
let b, x, _, v, y, w, M;
|
|
7937
7939
|
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Ke(this, m, s), e.fillStyle = s.bodyColor, F(this.beforeBody, p), f = r && m !== "right" ? a === "center" ? c / 2 + h : c + 2 + h : 0, v = 0, w = n.length; v < w; ++v) {
|
|
7938
|
-
for (b = n[v], x = this.labelTextColors[v], e.fillStyle = x, F(b.before, p),
|
|
7939
|
-
p(y
|
|
7940
|
+
for (b = n[v], x = this.labelTextColors[v], e.fillStyle = x, F(b.before, p), _ = b.lines, r && _.length && (this._drawColorBox(e, t, v, g, s), u = Math.max(d.lineHeight, l)), y = 0, M = _.length; y < M; ++y)
|
|
7941
|
+
p(_[y]), u = d.lineHeight;
|
|
7940
7942
|
F(b.after, p);
|
|
7941
7943
|
}
|
|
7942
7944
|
f = 0, u = d.lineHeight, F(this.afterBody, p), t.y -= o;
|
|
@@ -8025,7 +8027,7 @@ class qi extends ut {
|
|
|
8025
8027
|
}
|
|
8026
8028
|
}
|
|
8027
8029
|
k(qi, "positioners", be);
|
|
8028
|
-
var
|
|
8030
|
+
var Kh = {
|
|
8029
8031
|
id: "tooltip",
|
|
8030
8032
|
_element: qi,
|
|
8031
8033
|
positioners: be,
|
|
@@ -8140,28 +8142,28 @@ var Uh = {
|
|
|
8140
8142
|
additionalOptionScopes: [
|
|
8141
8143
|
"interaction"
|
|
8142
8144
|
]
|
|
8143
|
-
},
|
|
8145
|
+
}, qh = /* @__PURE__ */ Object.freeze({
|
|
8144
8146
|
__proto__: null,
|
|
8145
|
-
Colors:
|
|
8146
|
-
Decimation:
|
|
8147
|
-
Filler:
|
|
8148
|
-
Legend:
|
|
8149
|
-
SubTitle:
|
|
8150
|
-
Title:
|
|
8151
|
-
Tooltip:
|
|
8147
|
+
Colors: rh,
|
|
8148
|
+
Decimation: dh,
|
|
8149
|
+
Filler: Th,
|
|
8150
|
+
Legend: zh,
|
|
8151
|
+
SubTitle: Wh,
|
|
8152
|
+
Title: Vh,
|
|
8153
|
+
Tooltip: Kh
|
|
8152
8154
|
});
|
|
8153
|
-
const
|
|
8155
|
+
const Gh = (i, t, e, s) => (typeof t == "string" ? (e = i.push(t) - 1, s.unshift({
|
|
8154
8156
|
index: e,
|
|
8155
8157
|
label: t
|
|
8156
8158
|
})) : isNaN(t) && (e = null), e);
|
|
8157
|
-
function
|
|
8159
|
+
function Zh(i, t, e, s) {
|
|
8158
8160
|
const n = i.indexOf(t);
|
|
8159
8161
|
if (n === -1)
|
|
8160
|
-
return
|
|
8162
|
+
return Gh(i, t, e, s);
|
|
8161
8163
|
const o = i.lastIndexOf(t);
|
|
8162
8164
|
return n !== o ? e : n;
|
|
8163
8165
|
}
|
|
8164
|
-
const
|
|
8166
|
+
const Jh = (i, t) => i === null ? null : K(Math.round(i), 0, t);
|
|
8165
8167
|
function Fn(i) {
|
|
8166
8168
|
const t = this.getLabels();
|
|
8167
8169
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
@@ -8184,7 +8186,7 @@ class Gi extends Gt {
|
|
|
8184
8186
|
if (L(t))
|
|
8185
8187
|
return null;
|
|
8186
8188
|
const s = this.getLabels();
|
|
8187
|
-
return e = isFinite(e) && s[e] === t ? e :
|
|
8189
|
+
return e = isFinite(e) && s[e] === t ? e : Zh(s, t, C(e, t), this._addedLabels), Jh(e, s.length - 1);
|
|
8188
8190
|
}
|
|
8189
8191
|
determineDataLimits() {
|
|
8190
8192
|
const { minDefined: t, maxDefined: e } = this.getUserBounds();
|
|
@@ -8226,10 +8228,10 @@ k(Gi, "id", "category"), k(Gi, "defaults", {
|
|
|
8226
8228
|
callback: Fn
|
|
8227
8229
|
}
|
|
8228
8230
|
});
|
|
8229
|
-
function
|
|
8230
|
-
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 = !L(a), x = !L(r),
|
|
8231
|
-
let
|
|
8232
|
-
if (
|
|
8231
|
+
function Qh(i, t) {
|
|
8232
|
+
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 = !L(a), x = !L(r), _ = !L(c), v = (m - p) / (d + 1);
|
|
8233
|
+
let y = Ds((m - p) / g / f) * f, w, M, S, P;
|
|
8234
|
+
if (y < 1e-14 && !b && !x)
|
|
8233
8235
|
return [
|
|
8234
8236
|
{
|
|
8235
8237
|
value: p
|
|
@@ -8238,14 +8240,14 @@ function Zh(i, t) {
|
|
|
8238
8240
|
value: m
|
|
8239
8241
|
}
|
|
8240
8242
|
];
|
|
8241
|
-
P = Math.ceil(m /
|
|
8242
|
-
const D = Math.max(As(
|
|
8243
|
+
P = Math.ceil(m / y) - Math.floor(p / y), P > g && (y = Ds(P * y / g / f) * f), L(l) || (w = Math.pow(10, l), y = Math.ceil(y * w) / w), n === "ticks" ? (M = Math.floor(p / y) * y, S = Math.ceil(m / y) * y) : (M = p, S = m), b && x && o && Ua((r - a) / o, y / 1e3) ? (P = Math.round(Math.min((r - a) / y, h)), y = (r - a) / P, M = a, S = r) : _ ? (M = b ? a : M, S = x ? r : S, P = c - 1, y = (S - M) / P) : (P = (S - M) / y, ye(P, Math.round(P), y / 1e3) ? P = Math.round(P) : P = Math.ceil(P));
|
|
8244
|
+
const D = Math.max(As(y), As(M));
|
|
8243
8245
|
w = Math.pow(10, L(l) ? D : l), M = Math.round(M * w) / w, S = Math.round(S * w) / w;
|
|
8244
8246
|
let A = 0;
|
|
8245
8247
|
for (b && (u && M !== a ? (e.push({
|
|
8246
8248
|
value: a
|
|
8247
|
-
}), M < a && A++, ye(Math.round((M + A *
|
|
8248
|
-
const T = Math.round((M + A *
|
|
8249
|
+
}), M < a && A++, ye(Math.round((M + A * y) * w) / w, a, En(a, v, i)) && A++) : M < a && A++); A < P; ++A) {
|
|
8250
|
+
const T = Math.round((M + A * y) * w) / w;
|
|
8249
8251
|
if (x && T > r)
|
|
8250
8252
|
break;
|
|
8251
8253
|
e.push({
|
|
@@ -8307,7 +8309,7 @@ class pi extends Gt {
|
|
|
8307
8309
|
horizontal: this.isHorizontal(),
|
|
8308
8310
|
minRotation: e.minRotation || 0,
|
|
8309
8311
|
includeBounds: e.includeBounds !== !1
|
|
8310
|
-
}, o = this._range || this, a =
|
|
8312
|
+
}, o = this._range || this, a = Qh(n, o);
|
|
8311
8313
|
return t.bounds === "ticks" && no(a, this, "value"), t.reverse ? (a.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), a;
|
|
8312
8314
|
}
|
|
8313
8315
|
configure() {
|
|
@@ -8352,7 +8354,7 @@ function zn(i, t, e) {
|
|
|
8352
8354
|
const s = Math.pow(10, e), n = Math.floor(i / s);
|
|
8353
8355
|
return Math.ceil(t / s) - n;
|
|
8354
8356
|
}
|
|
8355
|
-
function
|
|
8357
|
+
function td(i, t) {
|
|
8356
8358
|
const e = t - i;
|
|
8357
8359
|
let s = Te(e);
|
|
8358
8360
|
for (; zn(i, t, s) > 10; )
|
|
@@ -8361,10 +8363,10 @@ function Qh(i, t) {
|
|
|
8361
8363
|
s--;
|
|
8362
8364
|
return Math.min(s, Te(i));
|
|
8363
8365
|
}
|
|
8364
|
-
function
|
|
8366
|
+
function ed(i, { min: t, max: e }) {
|
|
8365
8367
|
t = ot(i.min, t);
|
|
8366
8368
|
const s = [], n = Te(t);
|
|
8367
|
-
let o =
|
|
8369
|
+
let o = td(t, e), a = o < 0 ? Math.pow(10, Math.abs(o)) : 1;
|
|
8368
8370
|
const r = Math.pow(10, o), l = n > o ? Math.pow(10, n) : 0, c = Math.round((t - l) * a) / a, h = Math.floor((t - l) / r / 10) * r * 10;
|
|
8369
8371
|
let d = Math.floor((c - h) / Math.pow(10, o)), u = ot(i.min, Math.round((l + h + d * Math.pow(10, o)) * a) / a);
|
|
8370
8372
|
for (; u < e; )
|
|
@@ -8380,7 +8382,7 @@ function Jh(i, { min: t, max: e }) {
|
|
|
8380
8382
|
significand: d
|
|
8381
8383
|
}), s;
|
|
8382
8384
|
}
|
|
8383
|
-
class
|
|
8385
|
+
class Ji extends Gt {
|
|
8384
8386
|
constructor(t) {
|
|
8385
8387
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
|
|
8386
8388
|
}
|
|
@@ -8409,7 +8411,7 @@ class Qi extends Gt {
|
|
|
8409
8411
|
const t = this.options, e = {
|
|
8410
8412
|
min: this._userMin,
|
|
8411
8413
|
max: this._userMax
|
|
8412
|
-
}, s =
|
|
8414
|
+
}, s = ed(e, this);
|
|
8413
8415
|
return t.bounds === "ticks" && no(s, this, "value"), t.reverse ? (s.reverse(), this.start = this.max, this.end = this.min) : (this.start = this.min, this.end = this.max), s;
|
|
8414
8416
|
}
|
|
8415
8417
|
getLabelForValue(t) {
|
|
@@ -8427,7 +8429,7 @@ class Qi extends Gt {
|
|
|
8427
8429
|
return Math.pow(10, this._startValue + e * this._valueRange);
|
|
8428
8430
|
}
|
|
8429
8431
|
}
|
|
8430
|
-
k(
|
|
8432
|
+
k(Ji, "id", "logarithmic"), k(Ji, "defaults", {
|
|
8431
8433
|
ticks: {
|
|
8432
8434
|
callback: mi.formatters.logarithmic,
|
|
8433
8435
|
major: {
|
|
@@ -8435,7 +8437,7 @@ k(Qi, "id", "logarithmic"), k(Qi, "defaults", {
|
|
|
8435
8437
|
}
|
|
8436
8438
|
}
|
|
8437
8439
|
});
|
|
8438
|
-
function
|
|
8440
|
+
function Qi(i) {
|
|
8439
8441
|
const t = i.ticks;
|
|
8440
8442
|
if (t.display && i.display) {
|
|
8441
8443
|
const e = tt(t.backdropPadding);
|
|
@@ -8443,11 +8445,11 @@ function Ji(i) {
|
|
|
8443
8445
|
}
|
|
8444
8446
|
return 0;
|
|
8445
8447
|
}
|
|
8446
|
-
function
|
|
8448
|
+
function id(i, t, e) {
|
|
8447
8449
|
return e = N(e) ? e : [
|
|
8448
8450
|
e
|
|
8449
8451
|
], {
|
|
8450
|
-
w:
|
|
8452
|
+
w: cr(i, t.string, e),
|
|
8451
8453
|
h: e.length * t.lineHeight
|
|
8452
8454
|
};
|
|
8453
8455
|
}
|
|
@@ -8463,7 +8465,7 @@ function Bn(i, t, e, s, n) {
|
|
|
8463
8465
|
end: t + e
|
|
8464
8466
|
};
|
|
8465
8467
|
}
|
|
8466
|
-
function
|
|
8468
|
+
function sd(i) {
|
|
8467
8469
|
const t = {
|
|
8468
8470
|
l: i.left + i._padding.left,
|
|
8469
8471
|
r: i.right - i._padding.right,
|
|
@@ -8473,20 +8475,20 @@ function ed(i) {
|
|
|
8473
8475
|
for (let l = 0; l < o; l++) {
|
|
8474
8476
|
const c = a.setContext(i.getPointLabelContext(l));
|
|
8475
8477
|
n[l] = c.padding;
|
|
8476
|
-
const h = i.getPointPosition(l, i.drawingArea + n[l], r), d = X(c.font), u =
|
|
8478
|
+
const h = i.getPointPosition(l, i.drawingArea + n[l], r), d = X(c.font), u = id(i.ctx, d, i._pointLabels[l]);
|
|
8477
8479
|
s[l] = u;
|
|
8478
8480
|
const f = at(i.getIndexAngle(l) + r), g = Math.round(rs(f)), p = Bn(g, h.x, u.w, 0, 180), m = Bn(g, h.y, u.h, 90, 270);
|
|
8479
|
-
|
|
8481
|
+
nd(e, t, f, p, m);
|
|
8480
8482
|
}
|
|
8481
|
-
i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems =
|
|
8483
|
+
i.setCenterPoint(t.l - e.l, e.r - t.r, t.t - e.t, e.b - t.b), i._pointLabelItems = rd(i, s, n);
|
|
8482
8484
|
}
|
|
8483
|
-
function
|
|
8485
|
+
function nd(i, t, e, s, n) {
|
|
8484
8486
|
const o = Math.abs(Math.sin(e)), a = Math.abs(Math.cos(e));
|
|
8485
8487
|
let r = 0, l = 0;
|
|
8486
8488
|
s.start < t.l ? (r = (t.l - s.start) / o, i.l = Math.min(i.l, t.l - r)) : s.end > t.r && (r = (s.end - t.r) / o, i.r = Math.max(i.r, t.r + r)), n.start < t.t ? (l = (t.t - n.start) / a, i.t = Math.min(i.t, t.t - l)) : n.end > t.b && (l = (n.end - t.b) / a, i.b = Math.max(i.b, t.b + l));
|
|
8487
8489
|
}
|
|
8488
|
-
function
|
|
8489
|
-
const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), c = Math.round(rs(at(l.angle + Y))), h =
|
|
8490
|
+
function od(i, t, e) {
|
|
8491
|
+
const s = i.drawingArea, { extra: n, additionalAngle: o, padding: a, size: r } = e, l = i.getPointPosition(t, s + n + a, o), c = Math.round(rs(at(l.angle + Y))), h = hd(l.y, r.h, c), d = ld(c), u = cd(l.x, r.w, d);
|
|
8490
8492
|
return {
|
|
8491
8493
|
visible: !0,
|
|
8492
8494
|
x: l.x,
|
|
@@ -8498,7 +8500,7 @@ function sd(i, t, e) {
|
|
|
8498
8500
|
bottom: h + r.h
|
|
8499
8501
|
};
|
|
8500
8502
|
}
|
|
8501
|
-
function
|
|
8503
|
+
function ad(i, t) {
|
|
8502
8504
|
if (!t)
|
|
8503
8505
|
return !0;
|
|
8504
8506
|
const { left: e, top: s, right: n, bottom: o } = i;
|
|
@@ -8516,29 +8518,29 @@ function nd(i, t) {
|
|
|
8516
8518
|
y: o
|
|
8517
8519
|
}, t));
|
|
8518
8520
|
}
|
|
8519
|
-
function
|
|
8521
|
+
function rd(i, t, e) {
|
|
8520
8522
|
const s = [], n = i._pointLabels.length, o = i.options, { centerPointLabels: a, display: r } = o.pointLabels, l = {
|
|
8521
|
-
extra:
|
|
8523
|
+
extra: Qi(o) / 2,
|
|
8522
8524
|
additionalAngle: a ? V / n : 0
|
|
8523
8525
|
};
|
|
8524
8526
|
let c;
|
|
8525
8527
|
for (let h = 0; h < n; h++) {
|
|
8526
8528
|
l.padding = e[h], l.size = t[h];
|
|
8527
|
-
const d =
|
|
8528
|
-
s.push(d), r === "auto" && (d.visible =
|
|
8529
|
+
const d = od(i, h, l);
|
|
8530
|
+
s.push(d), r === "auto" && (d.visible = ad(d, c), d.visible && (c = d));
|
|
8529
8531
|
}
|
|
8530
8532
|
return s;
|
|
8531
8533
|
}
|
|
8532
|
-
function
|
|
8534
|
+
function ld(i) {
|
|
8533
8535
|
return i === 0 || i === 180 ? "center" : i < 180 ? "left" : "right";
|
|
8534
8536
|
}
|
|
8535
|
-
function
|
|
8537
|
+
function cd(i, t, e) {
|
|
8536
8538
|
return e === "right" ? i -= t : e === "center" && (i -= t / 2), i;
|
|
8537
8539
|
}
|
|
8538
|
-
function
|
|
8540
|
+
function hd(i, t, e) {
|
|
8539
8541
|
return e === 90 || e === 270 ? i -= t / 2 : (e > 270 || e < 90) && (i -= t), i;
|
|
8540
8542
|
}
|
|
8541
|
-
function
|
|
8543
|
+
function dd(i, t, e) {
|
|
8542
8544
|
const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
|
|
8543
8545
|
if (!L(r)) {
|
|
8544
8546
|
const l = Ut(t.borderRadius), c = tt(t.backdropPadding);
|
|
@@ -8553,14 +8555,14 @@ function cd(i, t, e) {
|
|
|
8553
8555
|
}), i.fill()) : i.fillRect(h, d, u, f);
|
|
8554
8556
|
}
|
|
8555
8557
|
}
|
|
8556
|
-
function
|
|
8558
|
+
function ud(i, t) {
|
|
8557
8559
|
const { ctx: e, options: { pointLabels: s } } = i;
|
|
8558
8560
|
for (let n = t - 1; n >= 0; n--) {
|
|
8559
8561
|
const o = i._pointLabelItems[n];
|
|
8560
8562
|
if (!o.visible)
|
|
8561
8563
|
continue;
|
|
8562
8564
|
const a = s.setContext(i.getPointLabelContext(n));
|
|
8563
|
-
|
|
8565
|
+
dd(e, a, o);
|
|
8564
8566
|
const r = X(a.font), { x: l, y: c, textAlign: h } = o;
|
|
8565
8567
|
qt(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
|
|
8566
8568
|
color: a.color,
|
|
@@ -8580,11 +8582,11 @@ function qo(i, t, e, s) {
|
|
|
8580
8582
|
o = i.getPointPosition(a, t), n.lineTo(o.x, o.y);
|
|
8581
8583
|
}
|
|
8582
8584
|
}
|
|
8583
|
-
function
|
|
8585
|
+
function fd(i, t, e, s, n) {
|
|
8584
8586
|
const o = i.ctx, a = t.circular, { color: r, lineWidth: l } = t;
|
|
8585
8587
|
!a && !s || !r || !l || e < 0 || (o.save(), o.strokeStyle = r, o.lineWidth = l, o.setLineDash(n.dash || []), o.lineDashOffset = n.dashOffset, o.beginPath(), qo(i, e, a, s), o.closePath(), o.stroke(), o.restore());
|
|
8586
8588
|
}
|
|
8587
|
-
function
|
|
8589
|
+
function gd(i, t, e) {
|
|
8588
8590
|
return Rt(i, {
|
|
8589
8591
|
label: e,
|
|
8590
8592
|
index: t,
|
|
@@ -8596,7 +8598,7 @@ class xe extends pi {
|
|
|
8596
8598
|
super(t), this.xCenter = void 0, this.yCenter = void 0, this.drawingArea = void 0, this._pointLabels = [], this._pointLabelItems = [];
|
|
8597
8599
|
}
|
|
8598
8600
|
setDimensions() {
|
|
8599
|
-
const t = this._padding = tt(
|
|
8601
|
+
const t = this._padding = tt(Qi(this.options) / 2), e = this.width = this.maxWidth - t.width, s = this.height = this.maxHeight - t.height;
|
|
8600
8602
|
this.xCenter = Math.floor(this.left + e / 2 + t.left), this.yCenter = Math.floor(this.top + s / 2 + t.top), this.drawingArea = Math.floor(Math.min(e, s) / 2);
|
|
8601
8603
|
}
|
|
8602
8604
|
determineDataLimits() {
|
|
@@ -8604,7 +8606,7 @@ class xe extends pi {
|
|
|
8604
8606
|
this.min = j(t) && !isNaN(t) ? t : 0, this.max = j(e) && !isNaN(e) ? e : 0, this.handleTickRangeOptions();
|
|
8605
8607
|
}
|
|
8606
8608
|
computeTickLimit() {
|
|
8607
|
-
return Math.ceil(this.drawingArea /
|
|
8609
|
+
return Math.ceil(this.drawingArea / Qi(this.options));
|
|
8608
8610
|
}
|
|
8609
8611
|
generateTickLabels(t) {
|
|
8610
8612
|
pi.prototype.generateTickLabels.call(this, t), this._pointLabels = this.getLabels().map((e, s) => {
|
|
@@ -8617,7 +8619,7 @@ class xe extends pi {
|
|
|
8617
8619
|
}
|
|
8618
8620
|
fit() {
|
|
8619
8621
|
const t = this.options;
|
|
8620
|
-
t.display && t.pointLabels.display ?
|
|
8622
|
+
t.display && t.pointLabels.display ? sd(this) : this.setCenterPoint(0, 0, 0, 0);
|
|
8621
8623
|
}
|
|
8622
8624
|
setCenterPoint(t, e, s, n) {
|
|
8623
8625
|
this.xCenter += Math.floor((t - e) / 2), this.yCenter += Math.floor((s - n) / 2), this.drawingArea -= Math.min(this.drawingArea / 2, Math.max(t, e, s, n));
|
|
@@ -8642,7 +8644,7 @@ class xe extends pi {
|
|
|
8642
8644
|
const e = this._pointLabels || [];
|
|
8643
8645
|
if (t >= 0 && t < e.length) {
|
|
8644
8646
|
const s = e[t];
|
|
8645
|
-
return
|
|
8647
|
+
return gd(this.getContext(), t, s);
|
|
8646
8648
|
}
|
|
8647
8649
|
}
|
|
8648
8650
|
getPointPosition(t, e, s = 0) {
|
|
@@ -8678,11 +8680,11 @@ class xe extends pi {
|
|
|
8678
8680
|
drawGrid() {
|
|
8679
8681
|
const t = this.ctx, e = this.options, { angleLines: s, grid: n, border: o } = e, a = this._pointLabels.length;
|
|
8680
8682
|
let r, l, c;
|
|
8681
|
-
if (e.pointLabels.display &&
|
|
8683
|
+
if (e.pointLabels.display && ud(this, a), n.display && this.ticks.forEach((h, d) => {
|
|
8682
8684
|
if (d !== 0 || d === 0 && this.min < 0) {
|
|
8683
8685
|
l = this.getDistanceFromCenterForValue(h.value);
|
|
8684
8686
|
const u = this.getContext(d), f = n.setContext(u), g = o.setContext(u);
|
|
8685
|
-
|
|
8687
|
+
fd(this, f, l, a, g);
|
|
8686
8688
|
}
|
|
8687
8689
|
}), s.display) {
|
|
8688
8690
|
for (t.save(), r = a - 1; r >= 0; r--) {
|
|
@@ -8824,7 +8826,7 @@ function Nn(i, t, e, s) {
|
|
|
8824
8826
|
}
|
|
8825
8827
|
return st[n - 1];
|
|
8826
8828
|
}
|
|
8827
|
-
function
|
|
8829
|
+
function pd(i, t, e, s, n) {
|
|
8828
8830
|
for (let o = st.length - 1; o >= st.indexOf(e); o--) {
|
|
8829
8831
|
const a = st[o];
|
|
8830
8832
|
if (vi[a].common && i._adapter.diff(n, s, a) >= t - 1)
|
|
@@ -8832,7 +8834,7 @@ function fd(i, t, e, s, n) {
|
|
|
8832
8834
|
}
|
|
8833
8835
|
return st[e ? st.indexOf(e) : 0];
|
|
8834
8836
|
}
|
|
8835
|
-
function
|
|
8837
|
+
function md(i) {
|
|
8836
8838
|
for (let t = st.indexOf(i) + 1, e = st.length; t < e; ++t)
|
|
8837
8839
|
if (vi[st[t]].common)
|
|
8838
8840
|
return st[t];
|
|
@@ -8845,7 +8847,7 @@ function Hn(i, t, e) {
|
|
|
8845
8847
|
i[o] = !0;
|
|
8846
8848
|
}
|
|
8847
8849
|
}
|
|
8848
|
-
function
|
|
8850
|
+
function bd(i, t, e, s) {
|
|
8849
8851
|
const n = i._adapter, o = +n.startOf(t[0].value, s), a = t[t.length - 1].value;
|
|
8850
8852
|
let r, l;
|
|
8851
8853
|
for (r = o; r <= a; r = +n.add(r, 1, s))
|
|
@@ -8860,7 +8862,7 @@ function jn(i, t, e) {
|
|
|
8860
8862
|
value: r,
|
|
8861
8863
|
major: !1
|
|
8862
8864
|
});
|
|
8863
|
-
return o === 0 || !e ? s :
|
|
8865
|
+
return o === 0 || !e ? s : bd(i, s, n, e);
|
|
8864
8866
|
}
|
|
8865
8867
|
class Le extends Gt {
|
|
8866
8868
|
constructor(t) {
|
|
@@ -8871,7 +8873,7 @@ class Le extends Gt {
|
|
|
8871
8873
|
}, this._unit = "day", this._majorUnit = void 0, this._offsets = {}, this._normalized = !1, this._parseOpts = void 0;
|
|
8872
8874
|
}
|
|
8873
8875
|
init(t, e = {}) {
|
|
8874
|
-
const s = t.time || (t.time = {}), n = this._adapter = new
|
|
8876
|
+
const s = t.time || (t.time = {}), n = this._adapter = new Sl._date(t.adapters.date);
|
|
8875
8877
|
n.init(e), _e(s.displayFormats, n.formats()), this._parseOpts = {
|
|
8876
8878
|
parser: s.parser,
|
|
8877
8879
|
round: s.round,
|
|
@@ -8907,8 +8909,8 @@ class Le extends Gt {
|
|
|
8907
8909
|
buildTicks() {
|
|
8908
8910
|
const t = this.options, e = t.time, s = t.ticks, n = s.source === "labels" ? this.getLabelTimestamps() : this._generate();
|
|
8909
8911
|
t.bounds === "ticks" && n.length && (this.min = this._userMin || n[0], this.max = this._userMax || n[n.length - 1]);
|
|
8910
|
-
const o = this.min, a = this.max, r =
|
|
8911
|
-
return this._unit = e.unit || (s.autoSkip ? Nn(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) :
|
|
8912
|
+
const o = this.min, a = this.max, r = Ga(n, o, a);
|
|
8913
|
+
return this._unit = e.unit || (s.autoSkip ? Nn(e.minUnit, this.min, this.max, this._getLabelCapacity(o)) : pd(this, r.length, e.minUnit, this.min, this.max)), this._majorUnit = !s.major.enabled || this._unit === "year" ? void 0 : md(this._unit), this.initOffsets(n), t.reverse && r.reverse(), jn(this, r, this._majorUnit);
|
|
8912
8914
|
}
|
|
8913
8915
|
afterAutoSkip() {
|
|
8914
8916
|
this.options.offsetAfterAutoskip && this.initOffsets(this.ticks.map((t) => +t.value));
|
|
@@ -9083,23 +9085,23 @@ class ts extends Le {
|
|
|
9083
9085
|
}
|
|
9084
9086
|
}
|
|
9085
9087
|
k(ts, "id", "timeseries"), k(ts, "defaults", Le.defaults);
|
|
9086
|
-
var
|
|
9088
|
+
var xd = /* @__PURE__ */ Object.freeze({
|
|
9087
9089
|
__proto__: null,
|
|
9088
9090
|
CategoryScale: Gi,
|
|
9089
9091
|
LinearScale: Zi,
|
|
9090
|
-
LogarithmicScale:
|
|
9092
|
+
LogarithmicScale: Ji,
|
|
9091
9093
|
RadialLinearScale: xe,
|
|
9092
9094
|
TimeScale: Le,
|
|
9093
9095
|
TimeSeriesScale: ts
|
|
9094
9096
|
});
|
|
9095
|
-
const
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9097
|
+
const _d = [
|
|
9098
|
+
Ml,
|
|
9099
|
+
th,
|
|
9100
|
+
qh,
|
|
9101
|
+
xd
|
|
9100
9102
|
];
|
|
9101
|
-
vt.register(...
|
|
9102
|
-
const
|
|
9103
|
+
vt.register(..._d);
|
|
9104
|
+
const yd = { class: "flex flex-col h-full overflow-hidden" }, vd = { class: "flex flex-col gap-8" }, kd = { class: "fm-color-typo-primary fm-typo-en-body-lg-400" }, wd = { class: "fm-color-typo-secondary fm-typo-en-body-md-400" }, Md = { class: "grow" }, Sd = /* @__PURE__ */ oe({
|
|
9103
9105
|
__name: "LineChart",
|
|
9104
9106
|
props: {
|
|
9105
9107
|
name: { default: void 0 },
|
|
@@ -9196,15 +9198,15 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9196
9198
|
}
|
|
9197
9199
|
}));
|
|
9198
9200
|
}
|
|
9199
|
-
return
|
|
9201
|
+
return Qo(() => {
|
|
9200
9202
|
a();
|
|
9201
|
-
}), (r, l) => (I(), U("div",
|
|
9202
|
-
R("div",
|
|
9203
|
+
}), (r, l) => (I(), U("div", yd, [
|
|
9204
|
+
R("div", vd, [
|
|
9203
9205
|
Un(r.$slots, "title"),
|
|
9204
|
-
R("div",
|
|
9205
|
-
R("div",
|
|
9206
|
+
R("div", kd, lt(r.name), 1),
|
|
9207
|
+
R("div", wd, lt(r.paragraph), 1)
|
|
9206
9208
|
]),
|
|
9207
|
-
R("div",
|
|
9209
|
+
R("div", Md, [
|
|
9208
9210
|
R("canvas", {
|
|
9209
9211
|
ref_key: "canvas",
|
|
9210
9212
|
ref: e
|
|
@@ -9212,7 +9214,7 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9212
9214
|
])
|
|
9213
9215
|
]));
|
|
9214
9216
|
}
|
|
9215
|
-
}),
|
|
9217
|
+
}), Pd = ["width", "height"], Cd = ["fill"], Dd = ["fill"], Ad = ["stroke"], Od = ["stroke"], Go = /* @__PURE__ */ oe({
|
|
9216
9218
|
__name: "SparkIcon",
|
|
9217
9219
|
props: {
|
|
9218
9220
|
size: {
|
|
@@ -9236,34 +9238,34 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9236
9238
|
R("path", {
|
|
9237
9239
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
9238
9240
|
fill: t.color
|
|
9239
|
-
}, null, 8,
|
|
9241
|
+
}, null, 8, Cd),
|
|
9240
9242
|
R("path", {
|
|
9241
9243
|
d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
|
|
9242
9244
|
fill: t.color
|
|
9243
|
-
}, null, 8,
|
|
9245
|
+
}, null, 8, Dd),
|
|
9244
9246
|
R("path", {
|
|
9245
9247
|
d: "M7.6 7.6C8.17076 6.94229 8.5 5.5 8.5 5.5C8.5 5.5 8.81356 6.87361 9.35714 7.5C9.92948 8.15953 11.5 8.5 11.5 8.5C11.5 8.5 9.92948 8.69761 9.35714 9.35714C8.81356 9.98354 8.5 11.5 8.5 11.5C8.5 11.5 8.32076 10.1888 7.75 9.59091C7.14905 8.96136 5.5 8.5 5.5 8.5C5.5 8.5 6.99905 8.29251 7.6 7.6Z",
|
|
9246
9248
|
stroke: t.color,
|
|
9247
9249
|
"stroke-width": "1.5",
|
|
9248
9250
|
"stroke-linecap": "round",
|
|
9249
9251
|
"stroke-linejoin": "round"
|
|
9250
|
-
}, null, 8,
|
|
9252
|
+
}, null, 8, Ad),
|
|
9251
9253
|
R("path", {
|
|
9252
9254
|
d: "M12.2 12.2C13.3415 10.8846 14 8 14 8C14 8 14.6271 10.7472 15.7143 12C16.859 13.3191 20 14 20 14C20 14 16.859 14.3952 15.7143 15.7143C14.6271 16.9671 14 20 14 20C14 20 13.6415 17.3777 12.5 16.1818C11.2981 14.9227 8 14 8 14C8 14 10.9981 13.585 12.2 12.2Z",
|
|
9253
9255
|
stroke: t.color,
|
|
9254
9256
|
"stroke-width": "1.5",
|
|
9255
9257
|
"stroke-linecap": "round",
|
|
9256
9258
|
"stroke-linejoin": "round"
|
|
9257
|
-
}, null, 8,
|
|
9258
|
-
], 8,
|
|
9259
|
+
}, null, 8, Od)
|
|
9260
|
+
], 8, Pd));
|
|
9259
9261
|
}
|
|
9260
|
-
}),
|
|
9262
|
+
}), Td = { class: "flex flex-col gap-16" }, Ld = { class: "fm-typo-en-title-sm-600" }, Rd = { class: "flex justify-center items-center" }, Fd = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Ed = {
|
|
9261
9263
|
key: 0,
|
|
9262
9264
|
class: "rounded-lg p-2"
|
|
9263
|
-
},
|
|
9265
|
+
}, Id = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary text-wrap" }, zd = { key: 0 }, Bd = {
|
|
9264
9266
|
key: 0,
|
|
9265
9267
|
class: "flex justify-center w-full gap-8"
|
|
9266
|
-
},
|
|
9268
|
+
}, Vd = ["onClick"], $n = /* @__PURE__ */ oe({
|
|
9267
9269
|
__name: "CarouselCard",
|
|
9268
9270
|
props: {
|
|
9269
9271
|
title: {
|
|
@@ -9302,8 +9304,8 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9302
9304
|
const { FmTooltip: o } = is;
|
|
9303
9305
|
return (a, r) => {
|
|
9304
9306
|
const l = Xn("wave");
|
|
9305
|
-
return I(), U("div",
|
|
9306
|
-
R("p",
|
|
9307
|
+
return I(), U("div", Td, [
|
|
9308
|
+
R("p", Ld, lt(s.title), 1),
|
|
9307
9309
|
R("div", {
|
|
9308
9310
|
ref_key: "scroll",
|
|
9309
9311
|
ref: e,
|
|
@@ -9313,30 +9315,30 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9313
9315
|
key: `reason_${h}`,
|
|
9314
9316
|
class: "min-w-[368px] border rounded-lg p-16 snap-always snap-center flex gap-8 flex-col"
|
|
9315
9317
|
}, [
|
|
9316
|
-
R("div",
|
|
9318
|
+
R("div", Rd, [
|
|
9317
9319
|
(I(), Ht(es(c.defination ? G(o) : "div"), {
|
|
9318
9320
|
content: c.defination,
|
|
9319
9321
|
"z-index": 100
|
|
9320
9322
|
}, {
|
|
9321
9323
|
default: Yt(() => [
|
|
9322
|
-
R("p",
|
|
9324
|
+
R("p", Fd, lt(c.header), 1)
|
|
9323
9325
|
]),
|
|
9324
9326
|
_: 2
|
|
9325
9327
|
}, 1032, ["content"])),
|
|
9326
9328
|
r[0] || (r[0] = R("div", { class: "grow" }, null, -1)),
|
|
9327
|
-
c.header === "Introduce Kid-Friendly Menu Items" ? Ge((I(), U("button",
|
|
9329
|
+
c.header === "Introduce Kid-Friendly Menu Items" ? Ge((I(), U("button", Ed, [
|
|
9328
9330
|
et(Go, { size: 22 })
|
|
9329
9331
|
])), [
|
|
9330
9332
|
[l, !0]
|
|
9331
9333
|
]) : St("", !0)
|
|
9332
9334
|
]),
|
|
9333
|
-
R("p",
|
|
9335
|
+
R("p", Id, lt(c.subLabel), 1)
|
|
9334
9336
|
]))), 128)),
|
|
9335
|
-
s.items.length === 0 ? (I(), U("div",
|
|
9337
|
+
s.items.length === 0 ? (I(), U("div", zd, [
|
|
9336
9338
|
R("p", null, "No " + lt(s.title.toLowerCase()) + " at the moment", 1)
|
|
9337
9339
|
])) : St("", !0)
|
|
9338
9340
|
], 512),
|
|
9339
|
-
i.items.length > 1 ? (I(), U("div",
|
|
9341
|
+
i.items.length > 1 ? (I(), U("div", Bd, [
|
|
9340
9342
|
(I(!0), U(Ii, null, zi(i.items, (c, h) => (I(), U("span", {
|
|
9341
9343
|
key: `carousel_${h}`,
|
|
9342
9344
|
class: Ze([
|
|
@@ -9344,24 +9346,24 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9344
9346
|
h === t.value ? " bg-fm-color-neutral-gray-300" : "bg-fm-color-neutral-gray-100"
|
|
9345
9347
|
]),
|
|
9346
9348
|
onClick: (d) => n(h)
|
|
9347
|
-
}, null, 10,
|
|
9349
|
+
}, null, 10, Vd))), 128))
|
|
9348
9350
|
])) : St("", !0)
|
|
9349
9351
|
]);
|
|
9350
9352
|
};
|
|
9351
9353
|
}
|
|
9352
|
-
}),
|
|
9354
|
+
}), Wd = { class: "flex flex-col flex-grow gap-16" }, Nd = { class: "flex flex-row items-center gap-2" }, Hd = { class: "flex flex-row items-center justify-center gap-1" }, jd = { class: "text-fm-color-typo-secondary fm-typo-en-body-lg-400" }, $d = { class: "flex flex-col fm-typo-en-body-lg-600" }, Yd = { class: "flex flex-col" }, Ud = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kd = {
|
|
9353
9355
|
key: 0,
|
|
9354
9356
|
style: { height: "240px" }
|
|
9355
|
-
},
|
|
9357
|
+
}, qd = {
|
|
9356
9358
|
key: 1,
|
|
9357
9359
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
9358
|
-
},
|
|
9360
|
+
}, Gd = {
|
|
9359
9361
|
key: 0,
|
|
9360
9362
|
class: "flex flex-col gap-40"
|
|
9361
|
-
},
|
|
9363
|
+
}, Zd = {
|
|
9362
9364
|
key: 1,
|
|
9363
9365
|
class: "flex flex-row items-center justify-between"
|
|
9364
|
-
},
|
|
9366
|
+
}, Jd = { class: "fm-typo-en-body-lg-600" }, Qd = { class: "flex flex-row items-center gap-8" }, Yn = /* @__PURE__ */ oe({
|
|
9365
9367
|
__name: "InsightCard",
|
|
9366
9368
|
props: {
|
|
9367
9369
|
widget: {
|
|
@@ -9460,11 +9462,11 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9460
9462
|
variant: "outlined",
|
|
9461
9463
|
class: Ze(["flex flex-col p-16 gap-16 relative border rounded-lg", i.detail ? "" : "cursor-pointer"])
|
|
9462
9464
|
}, [
|
|
9463
|
-
R("div",
|
|
9464
|
-
R("div",
|
|
9465
|
-
R("div",
|
|
9465
|
+
R("div", Wd, [
|
|
9466
|
+
R("div", Nd, [
|
|
9467
|
+
R("div", Hd, [
|
|
9466
9468
|
et(Go, { size: 22 }),
|
|
9467
|
-
R("div",
|
|
9469
|
+
R("div", jd, lt(G(e)("report.view.insight.title")), 1)
|
|
9468
9470
|
]),
|
|
9469
9471
|
et(g, {
|
|
9470
9472
|
compact: "",
|
|
@@ -9482,48 +9484,48 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9482
9484
|
"z-index": 100
|
|
9483
9485
|
}, {
|
|
9484
9486
|
default: Yt(() => [
|
|
9485
|
-
R("div",
|
|
9487
|
+
R("div", $d, lt(i.widget.title), 1)
|
|
9486
9488
|
]),
|
|
9487
9489
|
_: 1
|
|
9488
9490
|
}, 8, ["content"])),
|
|
9489
|
-
R("div",
|
|
9490
|
-
R("div",
|
|
9491
|
-
R("div",
|
|
9491
|
+
R("div", Yd, [
|
|
9492
|
+
R("div", Ud, lt(i.widget.restaurantName), 1),
|
|
9493
|
+
R("div", Xd, lt(G(da)(i.widget.dateRange)), 1)
|
|
9492
9494
|
])
|
|
9493
9495
|
]),
|
|
9494
|
-
i.detail ? (I(), U("div",
|
|
9495
|
-
et(
|
|
9496
|
+
i.detail ? (I(), U("div", Kd, [
|
|
9497
|
+
et(Sd, {
|
|
9496
9498
|
datasets: a.value,
|
|
9497
9499
|
"x-axis": c.value,
|
|
9498
9500
|
legend: l,
|
|
9499
9501
|
"maintain-aspect-ratio": !1
|
|
9500
9502
|
}, null, 8, ["datasets", "x-axis"])
|
|
9501
9503
|
])) : St("", !0),
|
|
9502
|
-
i.detail ? (I(), U("div",
|
|
9504
|
+
i.detail ? (I(), U("div", qd, lt(i.widget.description), 1)) : St("", !0)
|
|
9503
9505
|
], 2)), [
|
|
9504
9506
|
[m, !i.detail]
|
|
9505
9507
|
]),
|
|
9506
|
-
i.detail && i.widget.data.isAnomaly < 0 ? (I(), U("div",
|
|
9508
|
+
i.detail && i.widget.data.isAnomaly < 0 ? (I(), U("div", Gd, [
|
|
9507
9509
|
et($n, {
|
|
9508
9510
|
title: G(e)("report.view.insight.reason"),
|
|
9509
|
-
items: (b = i.widget.data.recommendations) == null ? void 0 : b.map((
|
|
9510
|
-
header:
|
|
9511
|
-
subLabel:
|
|
9512
|
-
defination:
|
|
9511
|
+
items: (b = i.widget.data.recommendations) == null ? void 0 : b.map((_) => ({
|
|
9512
|
+
header: _.label,
|
|
9513
|
+
subLabel: _.reason.replace(_.metric, _.label),
|
|
9514
|
+
defination: _.definition
|
|
9513
9515
|
}))
|
|
9514
9516
|
}, null, 8, ["title", "items"]),
|
|
9515
9517
|
et($n, {
|
|
9516
9518
|
title: G(e)("report.view.insight.recommendation"),
|
|
9517
|
-
items: (x = i.widget.data.recommendations) == null ? void 0 : x.map((
|
|
9518
|
-
header:
|
|
9519
|
-
subLabel:
|
|
9520
|
-
defination:
|
|
9519
|
+
items: (x = i.widget.data.recommendations) == null ? void 0 : x.map((_) => ({
|
|
9520
|
+
header: _.label,
|
|
9521
|
+
subLabel: _.recommendation,
|
|
9522
|
+
defination: _.definition
|
|
9521
9523
|
}))
|
|
9522
9524
|
}, null, 8, ["title", "items"])
|
|
9523
9525
|
])) : St("", !0),
|
|
9524
|
-
i.detail ? (I(), U("div",
|
|
9525
|
-
R("div",
|
|
9526
|
-
R("div",
|
|
9526
|
+
i.detail ? (I(), U("div", Zd, [
|
|
9527
|
+
R("div", Jd, lt(G(e)("report.view.insight.feedback.question")), 1),
|
|
9528
|
+
R("div", Qd, [
|
|
9527
9529
|
Ge(et(p, {
|
|
9528
9530
|
class: "cursor-pointer p-4 icon-btn",
|
|
9529
9531
|
name: "thumb_up",
|
|
@@ -9547,7 +9549,7 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9547
9549
|
], 2);
|
|
9548
9550
|
};
|
|
9549
9551
|
}
|
|
9550
|
-
}),
|
|
9552
|
+
}), tu = { class: "flex w-full justify-between items-center" }, eu = /* @__PURE__ */ oe({
|
|
9551
9553
|
__name: "SidePanel",
|
|
9552
9554
|
props: {
|
|
9553
9555
|
modelValue: { type: Boolean, required: !0 },
|
|
@@ -9569,7 +9571,7 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9569
9571
|
ea("Insight")
|
|
9570
9572
|
])),
|
|
9571
9573
|
"top-sheet-header": Yt(() => [
|
|
9572
|
-
R("div",
|
|
9574
|
+
R("div", tu, [
|
|
9573
9575
|
n[3] || (n[3] = R("p", null, "Insight", -1)),
|
|
9574
9576
|
et(o, {
|
|
9575
9577
|
icon: "close",
|
|
@@ -9585,109 +9587,123 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9585
9587
|
}, 8, ["modelValue"]);
|
|
9586
9588
|
};
|
|
9587
9589
|
}
|
|
9588
|
-
}),
|
|
9590
|
+
}), iu = { class: "flex flex-row px-24 justify-between items-center" }, su = { class: "flex flex-row items-center gap-2" }, nu = {
|
|
9589
9591
|
key: 0,
|
|
9590
9592
|
class: "h-full w-full flex items-center justify-center"
|
|
9591
|
-
},
|
|
9593
|
+
}, ou = {
|
|
9592
9594
|
key: 1,
|
|
9593
9595
|
class: "h-full"
|
|
9594
|
-
},
|
|
9596
|
+
}, au = {
|
|
9595
9597
|
key: 0,
|
|
9596
9598
|
class: "flex flex-row flex-wrap gap-24 px-24 py-16"
|
|
9597
|
-
},
|
|
9599
|
+
}, _u = /* @__PURE__ */ oe({
|
|
9598
9600
|
__name: "InsightView",
|
|
9599
9601
|
setup(i) {
|
|
9600
|
-
const { t } = Zn(), { dateRange:
|
|
9602
|
+
const { t } = Zn(), e = ca(), { dateRange: s, compareDateRange: n, locations: o, selectedLocationIds: a, business: r } = Jn(oa()), l = $t([]), c = $t(null), h = $t(!1), d = aa();
|
|
9601
9603
|
ri(
|
|
9602
|
-
|
|
9604
|
+
r,
|
|
9603
9605
|
() => {
|
|
9604
|
-
|
|
9606
|
+
r.value && u();
|
|
9605
9607
|
},
|
|
9606
9608
|
{ immediate: !0 }
|
|
9607
9609
|
);
|
|
9608
|
-
async function
|
|
9610
|
+
async function u() {
|
|
9609
9611
|
try {
|
|
9610
|
-
|
|
9611
|
-
start:
|
|
9612
|
-
end:
|
|
9613
|
-
restaurantIds:
|
|
9612
|
+
h.value = !0, a.value.length === 0 ? l.value = [] : l.value = await ua({
|
|
9613
|
+
start: s.value.startDate,
|
|
9614
|
+
end: s.value.endDate,
|
|
9615
|
+
restaurantIds: a.value
|
|
9614
9616
|
});
|
|
9615
|
-
} catch (
|
|
9616
|
-
|
|
9617
|
+
} catch (p) {
|
|
9618
|
+
d.open({ message: p, type: "error" }), l.value = [];
|
|
9617
9619
|
} finally {
|
|
9618
|
-
|
|
9620
|
+
h.value = !1;
|
|
9619
9621
|
}
|
|
9620
9622
|
}
|
|
9621
|
-
function
|
|
9622
|
-
|
|
9623
|
-
|
|
9623
|
+
function f(p) {
|
|
9624
|
+
if (p !== null) {
|
|
9625
|
+
try {
|
|
9626
|
+
e.pushDataLayer(
|
|
9627
|
+
{
|
|
9628
|
+
event: ha.report_insight_click_insight_card,
|
|
9629
|
+
insight: JSON.stringify(l.value[p])
|
|
9630
|
+
},
|
|
9631
|
+
"insight"
|
|
9632
|
+
);
|
|
9633
|
+
} catch (m) {
|
|
9634
|
+
console.warn(m);
|
|
9635
|
+
}
|
|
9636
|
+
c.value = null;
|
|
9637
|
+
}
|
|
9638
|
+
ia(() => {
|
|
9639
|
+
c.value = p;
|
|
9624
9640
|
});
|
|
9625
9641
|
}
|
|
9626
|
-
async function
|
|
9627
|
-
if (
|
|
9642
|
+
async function g(p) {
|
|
9643
|
+
if (c.value !== null)
|
|
9628
9644
|
try {
|
|
9629
|
-
|
|
9630
|
-
const
|
|
9631
|
-
...
|
|
9632
|
-
reaction:
|
|
9645
|
+
h.value = !0;
|
|
9646
|
+
const m = await fa({
|
|
9647
|
+
...l.value[c.value].feedback,
|
|
9648
|
+
reaction: p
|
|
9633
9649
|
});
|
|
9634
|
-
|
|
9635
|
-
} catch (
|
|
9636
|
-
|
|
9650
|
+
l.value[c.value].feedback = m;
|
|
9651
|
+
} catch (m) {
|
|
9652
|
+
d.open({ message: m, type: "error" });
|
|
9637
9653
|
} finally {
|
|
9638
|
-
|
|
9654
|
+
h.value = !1;
|
|
9639
9655
|
}
|
|
9640
9656
|
}
|
|
9641
|
-
return (
|
|
9642
|
-
const
|
|
9657
|
+
return (p, m) => {
|
|
9658
|
+
const b = Me("FmPageHead"), x = Me("FmCircularProgress");
|
|
9643
9659
|
return I(), Ht(sa, null, {
|
|
9644
9660
|
default: Yt(() => [
|
|
9645
|
-
et(
|
|
9661
|
+
et(b, {
|
|
9646
9662
|
title: G(t)("report.view.insight.title")
|
|
9647
9663
|
}, null, 8, ["title"]),
|
|
9648
|
-
R("div",
|
|
9649
|
-
R("div",
|
|
9664
|
+
R("div", iu, [
|
|
9665
|
+
R("div", su, [
|
|
9650
9666
|
et(la, {
|
|
9651
|
-
modelValue: G(
|
|
9667
|
+
modelValue: G(a),
|
|
9652
9668
|
"onUpdate:modelValue": [
|
|
9653
|
-
|
|
9654
|
-
|
|
9669
|
+
m[0] || (m[0] = (_) => ki(a) ? a.value = _ : null),
|
|
9670
|
+
u
|
|
9655
9671
|
],
|
|
9656
|
-
options: G(
|
|
9672
|
+
options: G(o)
|
|
9657
9673
|
}, null, 8, ["modelValue", "options"]),
|
|
9658
9674
|
et(na, {
|
|
9659
|
-
"date-range": G(
|
|
9675
|
+
"date-range": G(s),
|
|
9660
9676
|
"onUpdate:dateRange": [
|
|
9661
|
-
|
|
9662
|
-
|
|
9677
|
+
m[1] || (m[1] = (_) => ki(s) ? s.value = _ : null),
|
|
9678
|
+
u
|
|
9663
9679
|
],
|
|
9664
|
-
"compare-date-range": G(
|
|
9665
|
-
"onUpdate:compareDateRange":
|
|
9680
|
+
"compare-date-range": G(n),
|
|
9681
|
+
"onUpdate:compareDateRange": m[2] || (m[2] = (_) => ki(n) ? n.value = _ : null),
|
|
9666
9682
|
compare: !1
|
|
9667
9683
|
}, null, 8, ["date-range", "compare-date-range"])
|
|
9668
9684
|
])
|
|
9669
9685
|
]),
|
|
9670
|
-
|
|
9671
|
-
et(
|
|
9672
|
-
])) : (I(), U("div",
|
|
9673
|
-
|
|
9674
|
-
(I(!0), U(Ii, null, zi(
|
|
9675
|
-
key:
|
|
9676
|
-
widget:
|
|
9677
|
-
onClick: () =>
|
|
9686
|
+
h.value ? (I(), U("div", nu, [
|
|
9687
|
+
et(x, { size: "xl" })
|
|
9688
|
+
])) : (I(), U("div", ou, [
|
|
9689
|
+
l.value.length > 0 ? (I(), U("div", au, [
|
|
9690
|
+
(I(!0), U(Ii, null, zi(l.value, (_, v) => (I(), Ht(Yn, {
|
|
9691
|
+
key: v,
|
|
9692
|
+
widget: _,
|
|
9693
|
+
onClick: () => f(v)
|
|
9678
9694
|
}, null, 8, ["widget", "onClick"]))), 128))
|
|
9679
9695
|
])) : (I(), Ht(ra, { key: 1 }))
|
|
9680
9696
|
])),
|
|
9681
|
-
et(
|
|
9682
|
-
"model-value":
|
|
9683
|
-
onBack:
|
|
9697
|
+
et(eu, {
|
|
9698
|
+
"model-value": c.value !== null,
|
|
9699
|
+
onBack: m[3] || (m[3] = () => f(null))
|
|
9684
9700
|
}, {
|
|
9685
9701
|
default: Yt(() => [
|
|
9686
|
-
|
|
9702
|
+
c.value !== null ? (I(), Ht(Yn, {
|
|
9687
9703
|
key: 0,
|
|
9688
|
-
widget:
|
|
9704
|
+
widget: l.value[c.value],
|
|
9689
9705
|
detail: "",
|
|
9690
|
-
onClickFeedback:
|
|
9706
|
+
onClickFeedback: g
|
|
9691
9707
|
}, null, 8, ["widget"])) : St("", !0)
|
|
9692
9708
|
]),
|
|
9693
9709
|
_: 1
|
|
@@ -9699,5 +9715,5 @@ const xd = { class: "flex flex-col h-full overflow-hidden" }, _d = { class: "fle
|
|
|
9699
9715
|
}
|
|
9700
9716
|
});
|
|
9701
9717
|
export {
|
|
9702
|
-
|
|
9718
|
+
_u as default
|
|
9703
9719
|
};
|