@kong-ui-public/analytics-chart 4.6.1 → 4.6.2
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/vitals-chart.es.js +469 -468
- package/dist/vitals-chart.umd.js +1 -1
- package/package.json +4 -4
package/dist/vitals-chart.es.js
CHANGED
|
@@ -4,14 +4,14 @@ var P = (n, t, e) => cg(n, typeof t != "symbol" ? t + "" : t, e);
|
|
|
4
4
|
import { computed as H, shallowRef as to, onMounted as wr, onBeforeUnmount as eo, watch as Se, defineComponent as ce, ref as st, openBlock as Q, createElementBlock as ut, normalizeClass as jn, normalizeStyle as Un, createElementVNode as ct, toDisplayString as lt, createBlock as ae, unref as at, createCommentVNode as Vt, Fragment as Zi, renderList as no, useCssVars as ug, inject as nr, toRef as Mt, reactive as io, onUnmounted as qu, createVNode as Zt, version as dg, toRaw as wa, nextTick as hg, h as va, isProxy as Vu, renderSlot as so, createTextVNode as Ee, withCtx as Wt, resolveComponent as Fe, withKeys as fg, withModifiers as gg, provide as ll, createSlots as pg } from "vue";
|
|
5
5
|
import { createI18n as mg, i18nTComponent as yg } from "@kong-ui-public/i18n";
|
|
6
6
|
import { DragIcon as bg, WarningIcon as xg } from "@kong/icons";
|
|
7
|
-
const _g = "No data in the current time frame", wg = "Once there is traffic, it will display here", vg = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Mg = "no-name", Sg = "debug", kg = "Total",
|
|
7
|
+
const _g = "No data in the current time frame", wg = "Once there is traffic, it will display here", vg = "Not all data is shown in the below report. Reports are currently limited to a maximum of {maxReturned} entities.", Mg = "no-name", Sg = "debug", kg = "Total", Dg = {
|
|
8
8
|
ms: "ms",
|
|
9
9
|
bytes: "Byte{plural}",
|
|
10
10
|
count: "request{plural}",
|
|
11
11
|
"count/minute": "rpm",
|
|
12
12
|
requests: "request{plural}",
|
|
13
13
|
"token count": "token{plural}"
|
|
14
|
-
},
|
|
14
|
+
}, Tg = {
|
|
15
15
|
noDataRange: "No data in selected range",
|
|
16
16
|
noDataRetry: "Please adjust the time period and try again",
|
|
17
17
|
timeRangeSelected: "selected",
|
|
@@ -204,8 +204,8 @@ const _g = "No data in the current time frame", wg = "Once there is traffic, it
|
|
|
204
204
|
entityNoName: Mg,
|
|
205
205
|
debug: Sg,
|
|
206
206
|
total: kg,
|
|
207
|
-
chartUnits:
|
|
208
|
-
csvExport:
|
|
207
|
+
chartUnits: Dg,
|
|
208
|
+
csvExport: Tg,
|
|
209
209
|
legend: Cg,
|
|
210
210
|
chartLabels: Pg,
|
|
211
211
|
metricAxisTitles: Og,
|
|
@@ -786,7 +786,7 @@ function lp(n) {
|
|
|
786
786
|
return e;
|
|
787
787
|
};
|
|
788
788
|
}
|
|
789
|
-
function
|
|
789
|
+
function Dn(n, t) {
|
|
790
790
|
return (fl[t] || (fl[t] = lp(t)))(n);
|
|
791
791
|
}
|
|
792
792
|
function lo(n) {
|
|
@@ -820,7 +820,7 @@ function dp(n) {
|
|
|
820
820
|
n % i === 0 && (t.push(i), t.push(n / i));
|
|
821
821
|
return e === (e | 0) && t.push(e), t.sort((s, r) => s - r).pop(), t;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Tn(n) {
|
|
824
824
|
return !isNaN(parseFloat(n)) && isFinite(n);
|
|
825
825
|
}
|
|
826
826
|
function hp(n, t) {
|
|
@@ -1190,7 +1190,7 @@ function kp(n, t) {
|
|
|
1190
1190
|
var Mr = {
|
|
1191
1191
|
formatters: od
|
|
1192
1192
|
};
|
|
1193
|
-
function
|
|
1193
|
+
function Dp(n) {
|
|
1194
1194
|
n.set("scale", {
|
|
1195
1195
|
display: !0,
|
|
1196
1196
|
offset: !1,
|
|
@@ -1268,7 +1268,7 @@ function Ui(n, t) {
|
|
|
1268
1268
|
function qr(n, t, e) {
|
|
1269
1269
|
return typeof t == "string" ? Ji(Ui(n, t), e) : Ji(Ui(n, ""), t);
|
|
1270
1270
|
}
|
|
1271
|
-
class
|
|
1271
|
+
class Tp {
|
|
1272
1272
|
constructor(t, e) {
|
|
1273
1273
|
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 = (i) => i.chart.platform.getDevicePixelRatio(), this.elements = {}, this.events = [
|
|
1274
1274
|
"mousemove",
|
|
@@ -1323,7 +1323,7 @@ class Dp {
|
|
|
1323
1323
|
t.forEach((e) => e(this));
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
var Ft = /* @__PURE__ */ new
|
|
1326
|
+
var Ft = /* @__PURE__ */ new Tp({
|
|
1327
1327
|
_scriptable: (n) => !n.startsWith("on"),
|
|
1328
1328
|
_indexable: (n) => n !== "events",
|
|
1329
1329
|
hover: {
|
|
@@ -1336,7 +1336,7 @@ var Ft = /* @__PURE__ */ new Dp({
|
|
|
1336
1336
|
}, [
|
|
1337
1337
|
vp,
|
|
1338
1338
|
Mp,
|
|
1339
|
-
|
|
1339
|
+
Dp
|
|
1340
1340
|
]);
|
|
1341
1341
|
function Cp(n) {
|
|
1342
1342
|
return !n || tt(n.size) || tt(n.family) ? null : (n.style ? n.style + " " : "") + (n.weight ? n.weight + " " : "") + n.size + "px " + n.family;
|
|
@@ -1722,7 +1722,7 @@ function jp(n, t, e, i) {
|
|
|
1722
1722
|
function hd(n, t, e) {
|
|
1723
1723
|
return xe(n) ? n(t, e) : n;
|
|
1724
1724
|
}
|
|
1725
|
-
const $p = (n, t) => n === !0 ? t : typeof n == "string" ?
|
|
1725
|
+
const $p = (n, t) => n === !0 ? t : typeof n == "string" ? Dn(t, n) : void 0;
|
|
1726
1726
|
function Up(n, t, e, i, s) {
|
|
1727
1727
|
for (const r of t) {
|
|
1728
1728
|
const a = $p(e, r);
|
|
@@ -1789,7 +1789,7 @@ function gd(n, t, e, i) {
|
|
|
1789
1789
|
let o, l, c, u;
|
|
1790
1790
|
for (o = 0, l = i; o < l; ++o)
|
|
1791
1791
|
c = o + e, u = t[c], a[o] = {
|
|
1792
|
-
r: s.parse(
|
|
1792
|
+
r: s.parse(Dn(u, r), c)
|
|
1793
1793
|
};
|
|
1794
1794
|
return a;
|
|
1795
1795
|
}
|
|
@@ -1970,7 +1970,7 @@ const lm = function() {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
return n;
|
|
1972
1972
|
}();
|
|
1973
|
-
function
|
|
1973
|
+
function Dl(n, t) {
|
|
1974
1974
|
const e = nm(n, t), i = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
1975
1975
|
return i ? +i[1] : void 0;
|
|
1976
1976
|
}
|
|
@@ -2056,7 +2056,7 @@ function bd(n) {
|
|
|
2056
2056
|
normalize: (t) => t
|
|
2057
2057
|
};
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2059
|
+
function Tl({ start: n, end: t, count: e, loop: i, style: s }) {
|
|
2060
2060
|
return {
|
|
2061
2061
|
start: n % e,
|
|
2062
2062
|
end: t % e,
|
|
@@ -2086,16 +2086,16 @@ function xd(n, t, e) {
|
|
|
2086
2086
|
];
|
|
2087
2087
|
const { property: i, start: s, end: r } = e, a = t.length, { compare: o, between: l, normalize: c } = bd(i), { start: u, end: d, loop: h, style: f } = fm(n, t, e), g = [];
|
|
2088
2088
|
let m = !1, b = null, _, w, M;
|
|
2089
|
-
const C = () => l(s, M, _) && o(s, M) !== 0, k = () => o(r, _) === 0 || l(r, M, _),
|
|
2089
|
+
const C = () => l(s, M, _) && o(s, M) !== 0, k = () => o(r, _) === 0 || l(r, M, _), T = () => m || C(), D = () => !m || k();
|
|
2090
2090
|
for (let y = u, x = u; y <= d; ++y)
|
|
2091
|
-
w = t[y % a], !w.skip && (_ = c(w[i]), _ !== M && (m = l(_, s, r), b === null &&
|
|
2091
|
+
w = t[y % a], !w.skip && (_ = c(w[i]), _ !== M && (m = l(_, s, r), b === null && T() && (b = o(_, s) === 0 ? y : x), b !== null && D() && (g.push(Tl({
|
|
2092
2092
|
start: b,
|
|
2093
2093
|
end: y,
|
|
2094
2094
|
loop: h,
|
|
2095
2095
|
count: a,
|
|
2096
2096
|
style: f
|
|
2097
2097
|
})), b = null), x = y, M = _));
|
|
2098
|
-
return b !== null && g.push(
|
|
2098
|
+
return b !== null && g.push(Tl({
|
|
2099
2099
|
start: b,
|
|
2100
2100
|
end: d,
|
|
2101
2101
|
loop: h,
|
|
@@ -2518,7 +2518,7 @@ function Al(n, t, e, i = {}) {
|
|
|
2518
2518
|
return t;
|
|
2519
2519
|
}
|
|
2520
2520
|
}
|
|
2521
|
-
function
|
|
2521
|
+
function Dm(n, t) {
|
|
2522
2522
|
const { iScale: e, vScale: i } = t, s = e.axis === "x" ? "x" : "y", r = i.axis === "x" ? "x" : "y", a = Object.keys(n), o = new Array(a.length);
|
|
2523
2523
|
let l, c, u;
|
|
2524
2524
|
for (l = 0, c = a.length; l < c; ++l)
|
|
@@ -2532,7 +2532,7 @@ function Rl(n, t) {
|
|
|
2532
2532
|
const e = n && n.options.stacked;
|
|
2533
2533
|
return e || e === void 0 && t.stack !== void 0;
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Tm(n, t, e) {
|
|
2536
2536
|
return `${n.id}.${t.id}.${e.stack || e.type}`;
|
|
2537
2537
|
}
|
|
2538
2538
|
function Cm(n) {
|
|
@@ -2555,7 +2555,7 @@ function Ll(n, t, e, i) {
|
|
|
2555
2555
|
return null;
|
|
2556
2556
|
}
|
|
2557
2557
|
function Il(n, t) {
|
|
2558
|
-
const { chart: e, _cachedMeta: i } = n, s = e._stacks || (e._stacks = {}), { iScale: r, vScale: a, index: o } = i, l = r.axis, c = a.axis, u =
|
|
2558
|
+
const { chart: e, _cachedMeta: i } = n, s = e._stacks || (e._stacks = {}), { iScale: r, vScale: a, index: o } = i, l = r.axis, c = a.axis, u = Tm(r, a, i), d = t.length;
|
|
2559
2559
|
let h;
|
|
2560
2560
|
for (let f = 0; f < d; ++f) {
|
|
2561
2561
|
const g = t[f], { [l]: m, [c]: b } = g, _ = g._stacks || (g._stacks = {});
|
|
@@ -2645,7 +2645,7 @@ class ze {
|
|
|
2645
2645
|
const t = this.getDataset(), e = t.data || (t.data = []), i = this._data;
|
|
2646
2646
|
if (it(e)) {
|
|
2647
2647
|
const s = this._cachedMeta;
|
|
2648
|
-
this._data =
|
|
2648
|
+
this._data = Dm(e, s);
|
|
2649
2649
|
} else if (i !== e) {
|
|
2650
2650
|
if (i) {
|
|
2651
2651
|
yl(i, this);
|
|
@@ -2709,8 +2709,8 @@ class ze {
|
|
|
2709
2709
|
let u, d, h, f;
|
|
2710
2710
|
for (u = 0, d = s; u < d; ++u)
|
|
2711
2711
|
h = u + i, f = e[h], c[u] = {
|
|
2712
|
-
x: r.parse(
|
|
2713
|
-
y: a.parse(
|
|
2712
|
+
x: r.parse(Dn(f, o), h),
|
|
2713
|
+
y: a.parse(Dn(f, l), h)
|
|
2714
2714
|
};
|
|
2715
2715
|
return c;
|
|
2716
2716
|
}
|
|
@@ -3086,7 +3086,7 @@ class qi extends ze {
|
|
|
3086
3086
|
const { iScale: r, vScale: a } = t, { xAxisKey: o = "x", yAxisKey: l = "y" } = this._parsing, c = r.axis === "x" ? o : l, u = a.axis === "x" ? o : l, d = [];
|
|
3087
3087
|
let h, f, g, m;
|
|
3088
3088
|
for (h = i, f = i + s; h < f; ++h)
|
|
3089
|
-
m = e[h], g = {}, g[r.axis] = r.parse(
|
|
3089
|
+
m = e[h], g = {}, g[r.axis] = r.parse(Dn(m, c), h), d.push(vd(Dn(m, u), g, a, h));
|
|
3090
3090
|
return d;
|
|
3091
3091
|
}
|
|
3092
3092
|
updateRangeFromParsed(t, e, i, s) {
|
|
@@ -3357,7 +3357,7 @@ class xn extends ze {
|
|
|
3357
3357
|
let r = (l) => +i[l];
|
|
3358
3358
|
if (it(i[t])) {
|
|
3359
3359
|
const { key: l = "value" } = this._parsing;
|
|
3360
|
-
r = (c) => +
|
|
3360
|
+
r = (c) => +Dn(i[c], l);
|
|
3361
3361
|
}
|
|
3362
3362
|
let a, o;
|
|
3363
3363
|
for (a = t, o = t + e; a < o; ++a)
|
|
@@ -3546,16 +3546,16 @@ class Vi extends ze {
|
|
|
3546
3546
|
}, t), this.updateElements(s, o, l, t);
|
|
3547
3547
|
}
|
|
3548
3548
|
updateElements(t, e, i, s) {
|
|
3549
|
-
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: g, segment: m } = this.options, b =
|
|
3549
|
+
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, { sharedOptions: u, includeOptions: d } = this._getSharedOptions(e, s), h = a.axis, f = o.axis, { spanGaps: g, segment: m } = this.options, b = Tn(g) ? g : Number.POSITIVE_INFINITY, _ = this.chart._animationsDisabled || r || s === "none", w = e + i, M = t.length;
|
|
3550
3550
|
let C = e > 0 && this.getParsed(e - 1);
|
|
3551
3551
|
for (let k = 0; k < M; ++k) {
|
|
3552
|
-
const
|
|
3552
|
+
const T = t[k], D = _ ? T : {};
|
|
3553
3553
|
if (k < e || k >= w) {
|
|
3554
|
-
|
|
3554
|
+
D.skip = !0;
|
|
3555
3555
|
continue;
|
|
3556
3556
|
}
|
|
3557
|
-
const y = this.getParsed(k), x = tt(y[f]), S =
|
|
3558
|
-
|
|
3557
|
+
const y = this.getParsed(k), x = tt(y[f]), S = D[h] = a.getPixelForValue(y[h], k), O = D[f] = r || x ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, y, l) : y[f], k);
|
|
3558
|
+
D.skip = isNaN(S) || isNaN(O) || x, D.stop = k > 0 && Math.abs(y[h] - C[h]) > b, m && (D.parsed = y, D.raw = c.data[k]), d && (D.options = u || this.resolveDataElementOptions(k, T.active ? "active" : s)), _ || this.updateElement(T, k, D, s), C = y;
|
|
3559
3559
|
}
|
|
3560
3560
|
}
|
|
3561
3561
|
getMaxOverflow() {
|
|
@@ -3719,9 +3719,9 @@ P(Xi, "id", "polarArea"), P(Xi, "defaults", {
|
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
3721
|
});
|
|
3722
|
-
class
|
|
3722
|
+
class Da extends xn {
|
|
3723
3723
|
}
|
|
3724
|
-
P(
|
|
3724
|
+
P(Da, "id", "pie"), P(Da, "defaults", {
|
|
3725
3725
|
cutout: 0,
|
|
3726
3726
|
rotation: 0,
|
|
3727
3727
|
circumference: 360,
|
|
@@ -3812,11 +3812,11 @@ class Ks extends ze {
|
|
|
3812
3812
|
!this.datasetElementType && t && (this.datasetElementType = this.chart.registry.getElement("line")), super.addElements();
|
|
3813
3813
|
}
|
|
3814
3814
|
updateElements(t, e, i, s) {
|
|
3815
|
-
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, g = o.axis, { spanGaps: m, segment: b } = this.options, _ =
|
|
3815
|
+
const r = s === "reset", { iScale: a, vScale: o, _stacked: l, _dataset: c } = this._cachedMeta, u = this.resolveDataElementOptions(e, s), d = this.getSharedOptions(u), h = this.includeOptions(s, d), f = a.axis, g = o.axis, { spanGaps: m, segment: b } = this.options, _ = Tn(m) ? m : Number.POSITIVE_INFINITY, w = this.chart._animationsDisabled || r || s === "none";
|
|
3816
3816
|
let M = e > 0 && this.getParsed(e - 1);
|
|
3817
3817
|
for (let C = e; C < e + i; ++C) {
|
|
3818
|
-
const k = t[C],
|
|
3819
|
-
|
|
3818
|
+
const k = t[C], T = this.getParsed(C), D = w ? k : {}, y = tt(T[g]), x = D[f] = a.getPixelForValue(T[f], C), S = D[g] = r || y ? o.getBasePixel() : o.getPixelForValue(l ? this.applyStack(o, T, l) : T[g], C);
|
|
3819
|
+
D.skip = isNaN(x) || isNaN(S) || y, D.stop = C > 0 && Math.abs(T[f] - M[f]) > _, b && (D.parsed = T, D.raw = c.data[C]), h && (D.options = d || this.resolveDataElementOptions(C, k.active ? "active" : s)), w || this.updateElement(k, C, D, s), M = T;
|
|
3820
3820
|
}
|
|
3821
3821
|
this.updateSharedOptions(d, s, u);
|
|
3822
3822
|
}
|
|
@@ -3859,7 +3859,7 @@ var $m = /* @__PURE__ */ Object.freeze({
|
|
|
3859
3859
|
BubbleController: Xs,
|
|
3860
3860
|
DoughnutController: xn,
|
|
3861
3861
|
LineController: Vi,
|
|
3862
|
-
PieController:
|
|
3862
|
+
PieController: Da,
|
|
3863
3863
|
PolarAreaController: Xi,
|
|
3864
3864
|
RadarController: Gs,
|
|
3865
3865
|
ScatterController: Ks
|
|
@@ -4020,7 +4020,7 @@ function Bl(n, t, e, i, s) {
|
|
|
4020
4020
|
}), o = o || l.inRange(t.x, t.y, s));
|
|
4021
4021
|
}), i && !o ? [] : r;
|
|
4022
4022
|
}
|
|
4023
|
-
var
|
|
4023
|
+
var Ta = {
|
|
4024
4024
|
evaluateInteractionItems: cs,
|
|
4025
4025
|
modes: {
|
|
4026
4026
|
index(n, t, e, i) {
|
|
@@ -4286,7 +4286,7 @@ var ie = {
|
|
|
4286
4286
|
});
|
|
4287
4287
|
}
|
|
4288
4288
|
};
|
|
4289
|
-
class
|
|
4289
|
+
class Dd {
|
|
4290
4290
|
acquireContext(t, e) {
|
|
4291
4291
|
}
|
|
4292
4292
|
releaseContext(t) {
|
|
@@ -4311,7 +4311,7 @@ class Td {
|
|
|
4311
4311
|
updateConfig(t) {
|
|
4312
4312
|
}
|
|
4313
4313
|
}
|
|
4314
|
-
class ny extends
|
|
4314
|
+
class ny extends Dd {
|
|
4315
4315
|
acquireContext(t) {
|
|
4316
4316
|
return t && t.getContext && t.getContext("2d") || null;
|
|
4317
4317
|
}
|
|
@@ -4343,26 +4343,26 @@ function sy(n, t) {
|
|
|
4343
4343
|
}
|
|
4344
4344
|
}
|
|
4345
4345
|
}, e.display = e.display || "block", e.boxSizing = e.boxSizing || "border-box", $l(s)) {
|
|
4346
|
-
const r =
|
|
4346
|
+
const r = Dl(n, "width");
|
|
4347
4347
|
r !== void 0 && (n.width = r);
|
|
4348
4348
|
}
|
|
4349
4349
|
if ($l(i))
|
|
4350
4350
|
if (n.style.height === "")
|
|
4351
4351
|
n.height = n.width / (t || 2);
|
|
4352
4352
|
else {
|
|
4353
|
-
const r =
|
|
4353
|
+
const r = Dl(n, "height");
|
|
4354
4354
|
r !== void 0 && (n.height = r);
|
|
4355
4355
|
}
|
|
4356
4356
|
return n;
|
|
4357
4357
|
}
|
|
4358
|
-
const
|
|
4358
|
+
const Td = lm ? {
|
|
4359
4359
|
passive: !0
|
|
4360
4360
|
} : !1;
|
|
4361
4361
|
function ry(n, t, e) {
|
|
4362
|
-
n && n.addEventListener(t, e,
|
|
4362
|
+
n && n.addEventListener(t, e, Td);
|
|
4363
4363
|
}
|
|
4364
4364
|
function ay(n, t, e) {
|
|
4365
|
-
n && n.canvas && n.canvas.removeEventListener(t, e,
|
|
4365
|
+
n && n.canvas && n.canvas.removeEventListener(t, e, Td);
|
|
4366
4366
|
}
|
|
4367
4367
|
function oy(n, t) {
|
|
4368
4368
|
const e = iy[n.type] || n.type, { x: i, y: s } = mn(n, t);
|
|
@@ -4439,7 +4439,7 @@ function fy(n, t, e) {
|
|
|
4439
4439
|
}, n);
|
|
4440
4440
|
return ry(i, t, s), s;
|
|
4441
4441
|
}
|
|
4442
|
-
class gy extends
|
|
4442
|
+
class gy extends Dd {
|
|
4443
4443
|
acquireContext(t, e) {
|
|
4444
4444
|
const i = t && t.getContext && t.getContext("2d");
|
|
4445
4445
|
return i && i.canvas === t ? (sy(t, e), i) : null;
|
|
@@ -4513,7 +4513,7 @@ class te {
|
|
|
4513
4513
|
};
|
|
4514
4514
|
}
|
|
4515
4515
|
hasValue() {
|
|
4516
|
-
return
|
|
4516
|
+
return Tn(this.x) && Tn(this.y);
|
|
4517
4517
|
}
|
|
4518
4518
|
getProps(t, e) {
|
|
4519
4519
|
const i = this.$animations;
|
|
@@ -4611,7 +4611,7 @@ function Sy(n, t) {
|
|
|
4611
4611
|
}
|
|
4612
4612
|
});
|
|
4613
4613
|
}
|
|
4614
|
-
function
|
|
4614
|
+
function Di(n) {
|
|
4615
4615
|
return n.drawTicks ? n.tickLength : 0;
|
|
4616
4616
|
}
|
|
4617
4617
|
function Gl(n, t) {
|
|
@@ -4626,14 +4626,14 @@ function ky(n, t) {
|
|
|
4626
4626
|
type: "scale"
|
|
4627
4627
|
});
|
|
4628
4628
|
}
|
|
4629
|
-
function
|
|
4629
|
+
function Dy(n, t, e) {
|
|
4630
4630
|
return En(n, {
|
|
4631
4631
|
tick: e,
|
|
4632
4632
|
index: t,
|
|
4633
4633
|
type: "tick"
|
|
4634
4634
|
});
|
|
4635
4635
|
}
|
|
4636
|
-
function
|
|
4636
|
+
function Ty(n, t, e) {
|
|
4637
4637
|
let i = ho(n);
|
|
4638
4638
|
return (e && t !== "right" || !e && t === "right") && (i = vy(i)), i;
|
|
4639
4639
|
}
|
|
@@ -4814,7 +4814,7 @@ class Gn extends te {
|
|
|
4814
4814
|
return;
|
|
4815
4815
|
}
|
|
4816
4816
|
const u = this._getLabelSizes(), d = u.widest.width, h = u.highest.height, f = Qt(this.chart.width - d, 0, this.maxWidth);
|
|
4817
|
-
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight -
|
|
4817
|
+
o = t.offset ? this.maxWidth / i : f / (i - 1), d + 6 > o && (o = f / (i - (t.offset ? 0.5 : 1)), l = this.maxHeight - Di(t.grid) - e.padding - Gl(t.title, this.chart.options.font), c = Math.sqrt(d * d + h * h), a = vr(Math.min(Math.asin(Qt((u.highest.height + 6) / o, -1, 1)), Math.asin(Qt(l / c, -1, 1)) - Math.asin(Qt(h / c, -1, 1)))), a = Math.max(s, Math.min(r, a))), this.labelRotation = a;
|
|
4818
4818
|
}
|
|
4819
4819
|
afterCalculateLabelRotation() {
|
|
4820
4820
|
bt(this.options.afterCalculateLabelRotation, [
|
|
@@ -4835,7 +4835,7 @@ class Gn extends te {
|
|
|
4835
4835
|
}, { chart: e, options: { ticks: i, title: s, grid: r } } = this, a = this._isVisible(), o = this.isHorizontal();
|
|
4836
4836
|
if (a) {
|
|
4837
4837
|
const l = Gl(s, e.options.font);
|
|
4838
|
-
if (o ? (t.width = this.maxWidth, t.height =
|
|
4838
|
+
if (o ? (t.width = this.maxWidth, t.height = Di(r) + l) : (t.height = this.maxHeight, t.width = Di(r) + l), i.display && this.ticks.length) {
|
|
4839
4839
|
const { first: c, last: u, widest: d, highest: h } = this._getLabelSizes(), f = i.padding * 2, g = $t(this.labelRotation), m = Math.cos(g), b = Math.sin(g);
|
|
4840
4840
|
if (o) {
|
|
4841
4841
|
const _ = i.mirror ? 0 : b * d.width + m * h.height;
|
|
@@ -4906,15 +4906,15 @@ class Gn extends te {
|
|
|
4906
4906
|
a.push(M), o.push(C), c = Math.max(M, c), u = Math.max(C, u);
|
|
4907
4907
|
}
|
|
4908
4908
|
Sy(r, e);
|
|
4909
|
-
const
|
|
4909
|
+
const T = a.indexOf(c), D = o.indexOf(u), y = (x) => ({
|
|
4910
4910
|
width: a[x] || 0,
|
|
4911
4911
|
height: o[x] || 0
|
|
4912
4912
|
});
|
|
4913
4913
|
return {
|
|
4914
4914
|
first: y(0),
|
|
4915
4915
|
last: y(e - 1),
|
|
4916
|
-
widest: y(
|
|
4917
|
-
highest: y(
|
|
4916
|
+
widest: y(T),
|
|
4917
|
+
highest: y(D),
|
|
4918
4918
|
widths: a,
|
|
4919
4919
|
heights: o
|
|
4920
4920
|
};
|
|
@@ -4951,7 +4951,7 @@ class Gn extends te {
|
|
|
4951
4951
|
const e = this.ticks || [];
|
|
4952
4952
|
if (t >= 0 && t < e.length) {
|
|
4953
4953
|
const i = e[t];
|
|
4954
|
-
return i.$context || (i.$context =
|
|
4954
|
+
return i.$context || (i.$context = Dy(this.getContext(), t, i));
|
|
4955
4955
|
}
|
|
4956
4956
|
return this.$context || (this.$context = ky(this.chart.getContext(), this));
|
|
4957
4957
|
}
|
|
@@ -4964,18 +4964,18 @@ class Gn extends te {
|
|
|
4964
4964
|
return t !== "auto" ? !!t : this.getMatchingVisibleMetas().length > 0;
|
|
4965
4965
|
}
|
|
4966
4966
|
_computeGridLineItems(t) {
|
|
4967
|
-
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: a, border: o } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h =
|
|
4967
|
+
const e = this.axis, i = this.chart, s = this.options, { grid: r, position: a, border: o } = s, l = r.offset, c = this.isHorizontal(), d = this.ticks.length + (l ? 1 : 0), h = Di(r), f = [], g = o.setContext(this.getContext()), m = g.display ? g.width : 0, b = m / 2, _ = function($) {
|
|
4968
4968
|
return Nn(i, $, m);
|
|
4969
4969
|
};
|
|
4970
|
-
let w, M, C, k,
|
|
4970
|
+
let w, M, C, k, T, D, y, x, S, O, A, N;
|
|
4971
4971
|
if (a === "top")
|
|
4972
|
-
w = _(this.bottom),
|
|
4972
|
+
w = _(this.bottom), D = this.bottom - h, x = w - b, O = _(t.top) + b, N = t.bottom;
|
|
4973
4973
|
else if (a === "bottom")
|
|
4974
|
-
w = _(this.top), O = t.top, N = _(t.bottom) - b,
|
|
4974
|
+
w = _(this.top), O = t.top, N = _(t.bottom) - b, D = w + b, x = this.top + h;
|
|
4975
4975
|
else if (a === "left")
|
|
4976
|
-
w = _(this.right),
|
|
4976
|
+
w = _(this.right), T = this.right - h, y = w - b, S = _(t.left) + b, A = t.right;
|
|
4977
4977
|
else if (a === "right")
|
|
4978
|
-
w = _(this.left), S = t.left, A = _(t.right) - b,
|
|
4978
|
+
w = _(this.left), S = t.left, A = _(t.right) - b, T = w + b, y = this.left + h;
|
|
4979
4979
|
else if (e === "x") {
|
|
4980
4980
|
if (a === "center")
|
|
4981
4981
|
w = _((t.top + t.bottom) / 2 + 0.5);
|
|
@@ -4983,7 +4983,7 @@ class Gn extends te {
|
|
|
4983
4983
|
const $ = Object.keys(a)[0], I = a[$];
|
|
4984
4984
|
w = _(this.chart.scales[$].getPixelForValue(I));
|
|
4985
4985
|
}
|
|
4986
|
-
O = t.top, N = t.bottom,
|
|
4986
|
+
O = t.top, N = t.bottom, D = w + b, x = D + h;
|
|
4987
4987
|
} else if (e === "y") {
|
|
4988
4988
|
if (a === "center")
|
|
4989
4989
|
w = _((t.left + t.right) / 2);
|
|
@@ -4991,14 +4991,14 @@ class Gn extends te {
|
|
|
4991
4991
|
const $ = Object.keys(a)[0], I = a[$];
|
|
4992
4992
|
w = _(this.chart.scales[$].getPixelForValue(I));
|
|
4993
4993
|
}
|
|
4994
|
-
|
|
4994
|
+
T = w - b, y = T - h, S = t.left, A = t.right;
|
|
4995
4995
|
}
|
|
4996
4996
|
const U = J(s.ticks.maxTicksLimit, d), K = Math.max(1, Math.ceil(d / U));
|
|
4997
4997
|
for (M = 0; M < d; M += K) {
|
|
4998
4998
|
const $ = this.getContext(M), I = r.setContext($), rt = o.setContext($), F = I.lineWidth, zt = I.color, kt = rt.dash || [], B = rt.dashOffset, R = I.tickWidth, z = I.tickColor, j = I.tickBorderDash || [], V = I.tickBorderDashOffset;
|
|
4999
|
-
C = My(this, M, l), C !== void 0 && (k = Nn(i, C, F), c ?
|
|
5000
|
-
tx1:
|
|
5001
|
-
ty1:
|
|
4999
|
+
C = My(this, M, l), C !== void 0 && (k = Nn(i, C, F), c ? T = y = S = A = k : D = x = O = N = k, f.push({
|
|
5000
|
+
tx1: T,
|
|
5001
|
+
ty1: D,
|
|
5002
5002
|
tx2: y,
|
|
5003
5003
|
ty2: x,
|
|
5004
5004
|
x1: S,
|
|
@@ -5018,26 +5018,26 @@ class Gn extends te {
|
|
|
5018
5018
|
return this._ticksLength = d, this._borderValue = w, f;
|
|
5019
5019
|
}
|
|
5020
5020
|
_computeLabelItems(t) {
|
|
5021
|
-
const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h =
|
|
5022
|
-
let _, w, M, C, k,
|
|
5021
|
+
const e = this.axis, i = this.options, { position: s, ticks: r } = i, a = this.isHorizontal(), o = this.ticks, { align: l, crossAlign: c, padding: u, mirror: d } = r, h = Di(i.grid), f = h + u, g = d ? -u : f, m = -$t(this.labelRotation), b = [];
|
|
5022
|
+
let _, w, M, C, k, T, D, y, x, S, O, A, N = "middle";
|
|
5023
5023
|
if (s === "top")
|
|
5024
|
-
|
|
5024
|
+
T = this.bottom - g, D = this._getXAxisLabelAlignment();
|
|
5025
5025
|
else if (s === "bottom")
|
|
5026
|
-
|
|
5026
|
+
T = this.top + g, D = this._getXAxisLabelAlignment();
|
|
5027
5027
|
else if (s === "left") {
|
|
5028
5028
|
const K = this._getYAxisLabelAlignment(h);
|
|
5029
|
-
|
|
5029
|
+
D = K.textAlign, k = K.x;
|
|
5030
5030
|
} else if (s === "right") {
|
|
5031
5031
|
const K = this._getYAxisLabelAlignment(h);
|
|
5032
|
-
|
|
5032
|
+
D = K.textAlign, k = K.x;
|
|
5033
5033
|
} else if (e === "x") {
|
|
5034
5034
|
if (s === "center")
|
|
5035
|
-
|
|
5035
|
+
T = (t.top + t.bottom) / 2 + f;
|
|
5036
5036
|
else if (it(s)) {
|
|
5037
5037
|
const K = Object.keys(s)[0], $ = s[K];
|
|
5038
|
-
|
|
5038
|
+
T = this.chart.scales[K].getPixelForValue($) + f;
|
|
5039
5039
|
}
|
|
5040
|
-
|
|
5040
|
+
D = this._getXAxisLabelAlignment();
|
|
5041
5041
|
} else if (e === "y") {
|
|
5042
5042
|
if (s === "center")
|
|
5043
5043
|
k = (t.left + t.right) / 2 - f;
|
|
@@ -5045,7 +5045,7 @@ class Gn extends te {
|
|
|
5045
5045
|
const K = Object.keys(s)[0], $ = s[K];
|
|
5046
5046
|
k = this.chart.scales[K].getPixelForValue($);
|
|
5047
5047
|
}
|
|
5048
|
-
|
|
5048
|
+
D = this._getYAxisLabelAlignment(h).textAlign;
|
|
5049
5049
|
}
|
|
5050
5050
|
e === "y" && (l === "start" ? N = "top" : l === "end" && (N = "bottom"));
|
|
5051
5051
|
const U = this._getLabelSizes();
|
|
@@ -5054,8 +5054,8 @@ class Gn extends te {
|
|
|
5054
5054
|
const K = r.setContext(this.getContext(_));
|
|
5055
5055
|
y = this.getPixelForTick(_) + r.labelOffset, x = this._resolveTickFontOptions(_), S = x.lineHeight, O = dt(C) ? C.length : 1;
|
|
5056
5056
|
const $ = O / 2, I = K.color, rt = K.textStrokeColor, F = K.textStrokeWidth;
|
|
5057
|
-
let zt =
|
|
5058
|
-
a ? (k = y,
|
|
5057
|
+
let zt = D;
|
|
5058
|
+
a ? (k = y, D === "inner" && (_ === w - 1 ? zt = this.options.reverse ? "left" : "right" : _ === 0 ? zt = this.options.reverse ? "right" : "left" : zt = "center"), s === "top" ? c === "near" || m !== 0 ? A = -O * S + S / 2 : c === "center" ? A = -U.highest.height / 2 - $ * S + S : A = -U.highest.height + S / 2 : c === "near" || m !== 0 ? A = S / 2 : c === "center" ? A = U.highest.height / 2 - $ * S : A = U.highest.height - O * S, d && (A *= -1), m !== 0 && !K.showLabelBackdrop && (k += S / 2 * Math.sin(m))) : (T = y, A = (1 - O) * S / 2);
|
|
5059
5059
|
let kt;
|
|
5060
5060
|
if (K.showLabelBackdrop) {
|
|
5061
5061
|
const B = Ut(K.backdropPadding), R = U.heights[_], z = U.widths[_];
|
|
@@ -5068,7 +5068,7 @@ class Gn extends te {
|
|
|
5068
5068
|
j -= R;
|
|
5069
5069
|
break;
|
|
5070
5070
|
}
|
|
5071
|
-
switch (
|
|
5071
|
+
switch (D) {
|
|
5072
5072
|
case "center":
|
|
5073
5073
|
V -= z / 2;
|
|
5074
5074
|
break;
|
|
@@ -5100,7 +5100,7 @@ class Gn extends te {
|
|
|
5100
5100
|
textBaseline: N,
|
|
5101
5101
|
translation: [
|
|
5102
5102
|
k,
|
|
5103
|
-
|
|
5103
|
+
T
|
|
5104
5104
|
],
|
|
5105
5105
|
backdrop: kt
|
|
5106
5106
|
}
|
|
@@ -5214,7 +5214,7 @@ class Gn extends te {
|
|
|
5214
5214
|
color: i.color,
|
|
5215
5215
|
maxWidth: d,
|
|
5216
5216
|
rotation: h,
|
|
5217
|
-
textAlign:
|
|
5217
|
+
textAlign: Ty(o, e, s),
|
|
5218
5218
|
textBaseline: "middle",
|
|
5219
5219
|
translation: [
|
|
5220
5220
|
c,
|
|
@@ -5577,8 +5577,8 @@ function Hs(n, t) {
|
|
|
5577
5577
|
let e = Ql.get(n);
|
|
5578
5578
|
return e || (e = t(), Ql.set(n, e), Ed.add(e)), e;
|
|
5579
5579
|
}
|
|
5580
|
-
const
|
|
5581
|
-
const i =
|
|
5580
|
+
const Ti = (n, t, e) => {
|
|
5581
|
+
const i = Dn(t, e);
|
|
5582
5582
|
i !== void 0 && n.add(i);
|
|
5583
5583
|
};
|
|
5584
5584
|
class $y {
|
|
@@ -5666,7 +5666,7 @@ class $y {
|
|
|
5666
5666
|
return o;
|
|
5667
5667
|
const l = /* @__PURE__ */ new Set();
|
|
5668
5668
|
e.forEach((u) => {
|
|
5669
|
-
t && (l.add(t), u.forEach((d) =>
|
|
5669
|
+
t && (l.add(t), u.forEach((d) => Ti(l, t, d))), u.forEach((d) => Ti(l, s, d)), u.forEach((d) => Ti(l, qn[r] || {}, d)), u.forEach((d) => Ti(l, Ft, d)), u.forEach((d) => Ti(l, Sa, d));
|
|
5670
5670
|
});
|
|
5671
5671
|
const c = Array.from(l);
|
|
5672
5672
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), Ed.has(e) && a.set(e, c), c;
|
|
@@ -6087,7 +6087,7 @@ let Ae = (gn = class {
|
|
|
6087
6087
|
return an(t, this.chartArea, this._minPadding);
|
|
6088
6088
|
}
|
|
6089
6089
|
getElementsAtEventForMode(t, e, i, s) {
|
|
6090
|
-
const r =
|
|
6090
|
+
const r = Ta.modes[e];
|
|
6091
6091
|
return typeof r == "function" ? r(this, t, i, s) : [];
|
|
6092
6092
|
}
|
|
6093
6093
|
getDatasetMeta(t) {
|
|
@@ -6310,7 +6310,7 @@ function ur(n, t, e, i, s, r) {
|
|
|
6310
6310
|
const K = u > 0 ? u - i : 0, $ = d > 0 ? d - i : 0, I = (K + $) / 2, rt = I !== 0 ? g * I / (I + i) : g;
|
|
6311
6311
|
f = (g - rt) / 2;
|
|
6312
6312
|
}
|
|
6313
|
-
const m = Math.max(1e-3, g * d - e / ot) / d, b = (g - m) / 2, _ = l + b + f, w = s - b - f, { outerStart: M, outerEnd: C, innerStart: k, innerEnd:
|
|
6313
|
+
const m = Math.max(1e-3, g * d - e / ot) / d, b = (g - m) / 2, _ = l + b + f, w = s - b - f, { outerStart: M, outerEnd: C, innerStart: k, innerEnd: T } = eb(t, h, d, w - _), D = d - M, y = d - C, x = _ + M / D, S = w - C / y, O = h + k, A = h + T, N = _ + k / O, U = w - T / A;
|
|
6314
6314
|
if (n.beginPath(), r) {
|
|
6315
6315
|
const K = (x + S) / 2;
|
|
6316
6316
|
if (n.arc(a, o, d, x, K), n.arc(a, o, d, K, S), C > 0) {
|
|
@@ -6318,18 +6318,18 @@ function ur(n, t, e, i, s, r) {
|
|
|
6318
6318
|
n.arc(F.x, F.y, C, S, w + Pt);
|
|
6319
6319
|
}
|
|
6320
6320
|
const $ = ei(A, w, a, o);
|
|
6321
|
-
if (n.lineTo($.x, $.y),
|
|
6321
|
+
if (n.lineTo($.x, $.y), T > 0) {
|
|
6322
6322
|
const F = ei(A, U, a, o);
|
|
6323
|
-
n.arc(F.x, F.y,
|
|
6323
|
+
n.arc(F.x, F.y, T, w + Pt, U + Math.PI);
|
|
6324
6324
|
}
|
|
6325
|
-
const I = (w -
|
|
6326
|
-
if (n.arc(a, o, h, w -
|
|
6325
|
+
const I = (w - T / h + (_ + k / h)) / 2;
|
|
6326
|
+
if (n.arc(a, o, h, w - T / h, I, !0), n.arc(a, o, h, I, _ + k / h, !0), k > 0) {
|
|
6327
6327
|
const F = ei(O, N, a, o);
|
|
6328
6328
|
n.arc(F.x, F.y, k, N + Math.PI, _ - Pt);
|
|
6329
6329
|
}
|
|
6330
|
-
const rt = ei(
|
|
6330
|
+
const rt = ei(D, _, a, o);
|
|
6331
6331
|
if (n.lineTo(rt.x, rt.y), M > 0) {
|
|
6332
|
-
const F = ei(
|
|
6332
|
+
const F = ei(D, x, a, o);
|
|
6333
6333
|
n.arc(F.x, F.y, M, _ - Pt, x);
|
|
6334
6334
|
}
|
|
6335
6335
|
} else {
|
|
@@ -6474,8 +6474,8 @@ function ob(n, t, e, i) {
|
|
|
6474
6474
|
for (l && (f = s[w(0)], n.moveTo(f.x, f.y)), h = 0; h <= o; ++h) {
|
|
6475
6475
|
if (f = s[w(h)], f.skip)
|
|
6476
6476
|
continue;
|
|
6477
|
-
const C = f.x, k = f.y,
|
|
6478
|
-
|
|
6477
|
+
const C = f.x, k = f.y, T = C | 0;
|
|
6478
|
+
T === g ? (k < m ? m = k : k > b && (b = k), u = (d * u + C) / ++d) : (M(), n.lineTo(C, k), g = T, d = 0, m = b = k), _ = k;
|
|
6479
6479
|
}
|
|
6480
6480
|
M();
|
|
6481
6481
|
}
|
|
@@ -6865,14 +6865,14 @@ function kb(n, t, e, i, s) {
|
|
|
6865
6865
|
for (w = M; w < C; w++)
|
|
6866
6866
|
b += n[w].x, _ += n[w].y;
|
|
6867
6867
|
b /= k, _ /= k;
|
|
6868
|
-
const
|
|
6869
|
-
for (f = g = -1, w =
|
|
6868
|
+
const T = Math.floor(d * o) + 1 + t, D = Math.min(Math.floor((d + 1) * o) + 1, e) + t, { x: y, y: x } = n[u];
|
|
6869
|
+
for (f = g = -1, w = T; w < D; w++)
|
|
6870
6870
|
g = 0.5 * Math.abs((y - b) * (n[w].y - x) - (y - n[w].x) * (_ - x)), g > f && (f = g, h = n[w], m = w);
|
|
6871
6871
|
a[l++] = h, u = m;
|
|
6872
6872
|
}
|
|
6873
6873
|
return a[l++] = n[c], a;
|
|
6874
6874
|
}
|
|
6875
|
-
function
|
|
6875
|
+
function Db(n, t, e, i) {
|
|
6876
6876
|
let s = 0, r = 0, a, o, l, c, u, d, h, f, g, m;
|
|
6877
6877
|
const b = [], _ = t + e - 1, w = n[t].x, C = n[_].x - w;
|
|
6878
6878
|
for (a = t; a < t + e; ++a) {
|
|
@@ -6881,18 +6881,18 @@ function Tb(n, t, e, i) {
|
|
|
6881
6881
|
if (k === u)
|
|
6882
6882
|
c < g ? (g = c, d = a) : c > m && (m = c, h = a), s = (r * s + o.x) / ++r;
|
|
6883
6883
|
else {
|
|
6884
|
-
const
|
|
6884
|
+
const T = a - 1;
|
|
6885
6885
|
if (!tt(d) && !tt(h)) {
|
|
6886
|
-
const
|
|
6887
|
-
|
|
6888
|
-
...n[
|
|
6886
|
+
const D = Math.min(d, h), y = Math.max(d, h);
|
|
6887
|
+
D !== f && D !== T && b.push({
|
|
6888
|
+
...n[D],
|
|
6889
6889
|
x: s
|
|
6890
|
-
}), y !== f && y !==
|
|
6890
|
+
}), y !== f && y !== T && b.push({
|
|
6891
6891
|
...n[y],
|
|
6892
6892
|
x: s
|
|
6893
6893
|
});
|
|
6894
6894
|
}
|
|
6895
|
-
a > 0 &&
|
|
6895
|
+
a > 0 && T !== f && b.push(n[T]), b.push(o), u = k, r = 0, g = m = c, d = h = f = a;
|
|
6896
6896
|
}
|
|
6897
6897
|
}
|
|
6898
6898
|
return b;
|
|
@@ -6913,7 +6913,7 @@ function lc(n) {
|
|
|
6913
6913
|
zd(t);
|
|
6914
6914
|
});
|
|
6915
6915
|
}
|
|
6916
|
-
function
|
|
6916
|
+
function Tb(n, t) {
|
|
6917
6917
|
const e = t.length;
|
|
6918
6918
|
let i = 0, s;
|
|
6919
6919
|
const { iScale: r } = n, { min: a, max: o, minDefined: l, maxDefined: c } = r.getUserBounds();
|
|
@@ -6944,7 +6944,7 @@ var Cb = {
|
|
|
6944
6944
|
const u = n.scales[l.xAxisID];
|
|
6945
6945
|
if (u.type !== "linear" && u.type !== "time" || n.options.parsing)
|
|
6946
6946
|
return;
|
|
6947
|
-
let { start: d, count: h } =
|
|
6947
|
+
let { start: d, count: h } = Tb(l, c);
|
|
6948
6948
|
const f = e.threshold || 4 * i;
|
|
6949
6949
|
if (h <= f) {
|
|
6950
6950
|
zd(s);
|
|
@@ -6966,7 +6966,7 @@ var Cb = {
|
|
|
6966
6966
|
g = kb(c, d, h, i, e);
|
|
6967
6967
|
break;
|
|
6968
6968
|
case "min-max":
|
|
6969
|
-
g =
|
|
6969
|
+
g = Db(c, d, h, i);
|
|
6970
6970
|
break;
|
|
6971
6971
|
default:
|
|
6972
6972
|
throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`);
|
|
@@ -7444,7 +7444,7 @@ class pc extends te {
|
|
|
7444
7444
|
const { options: t, columnSizes: e, lineWidths: i, ctx: s } = this, { align: r, labels: a } = t, o = Ft.color, l = li(t.rtl, this.left, this.width), c = Ot(a.font), { padding: u } = a, d = c.size, h = d / 2;
|
|
7445
7445
|
let f;
|
|
7446
7446
|
this.drawTitle(), s.textAlign = l.textAlign("left"), s.textBaseline = "middle", s.lineWidth = 0.5, s.font = c.string;
|
|
7447
|
-
const { boxWidth: g, boxHeight: m, itemHeight: b } = gc(a, d), _ = function(
|
|
7447
|
+
const { boxWidth: g, boxHeight: m, itemHeight: b } = gc(a, d), _ = function(T, D, y) {
|
|
7448
7448
|
if (isNaN(g) || g <= 0 || isNaN(m) || m < 0)
|
|
7449
7449
|
return;
|
|
7450
7450
|
s.save();
|
|
@@ -7455,10 +7455,10 @@ class pc extends te {
|
|
|
7455
7455
|
pointStyle: y.pointStyle,
|
|
7456
7456
|
rotation: y.rotation,
|
|
7457
7457
|
borderWidth: x
|
|
7458
|
-
}, O = l.xPlus(
|
|
7458
|
+
}, O = l.xPlus(T, g / 2), A = D + h;
|
|
7459
7459
|
ld(s, S, O, A, a.pointStyleWidth && g);
|
|
7460
7460
|
} else {
|
|
7461
|
-
const S =
|
|
7461
|
+
const S = D + Math.max((d - m) / 2, 0), O = l.leftForLtr(T, g), A = Mn(y.borderRadius);
|
|
7462
7462
|
s.beginPath(), Object.values(A).some((N) => N !== 0) ? di(s, {
|
|
7463
7463
|
x: O,
|
|
7464
7464
|
y: S,
|
|
@@ -7468,8 +7468,8 @@ class pc extends te {
|
|
|
7468
7468
|
}) : s.rect(O, S, g, m), s.fill(), x !== 0 && s.stroke();
|
|
7469
7469
|
}
|
|
7470
7470
|
s.restore();
|
|
7471
|
-
}, w = function(
|
|
7472
|
-
Vn(s, y.text,
|
|
7471
|
+
}, w = function(T, D, y) {
|
|
7472
|
+
Vn(s, y.text, T, D + b / 2, c, {
|
|
7473
7473
|
strikethrough: y.hidden,
|
|
7474
7474
|
textAlign: l.textAlign(y.textAlign)
|
|
7475
7475
|
});
|
|
@@ -7484,17 +7484,17 @@ class pc extends te {
|
|
|
7484
7484
|
line: 0
|
|
7485
7485
|
}, md(this.ctx, t.textDirection);
|
|
7486
7486
|
const k = b + u;
|
|
7487
|
-
this.legendItems.forEach((
|
|
7488
|
-
s.strokeStyle =
|
|
7489
|
-
const y = s.measureText(
|
|
7487
|
+
this.legendItems.forEach((T, D) => {
|
|
7488
|
+
s.strokeStyle = T.fontColor, s.fillStyle = T.fontColor;
|
|
7489
|
+
const y = s.measureText(T.text).width, x = l.textAlign(T.textAlign || (T.textAlign = a.textAlign)), S = g + h + y;
|
|
7490
7490
|
let O = f.x, A = f.y;
|
|
7491
|
-
l.setWidth(this.width), M ?
|
|
7491
|
+
l.setWidth(this.width), M ? D > 0 && O + S + u > this.right && (A = f.y += k, f.line++, O = f.x = ee(r, this.left + u, this.right - i[f.line])) : D > 0 && A + k > this.bottom && (O = f.x = O + e[f.line].width + u, f.line++, A = f.y = ee(r, this.top + C + u, this.bottom - e[f.line].height));
|
|
7492
7492
|
const N = l.x(O);
|
|
7493
|
-
if (_(N, A,
|
|
7493
|
+
if (_(N, A, T), O = xp(x, O + g + h, M ? O + S : this.right, t.rtl), w(l.x(O), A, T), M)
|
|
7494
7494
|
f.x += S + u;
|
|
7495
|
-
else if (typeof
|
|
7495
|
+
else if (typeof T.text != "string") {
|
|
7496
7496
|
const U = c.lineHeight;
|
|
7497
|
-
f.y += Wd(
|
|
7497
|
+
f.y += Wd(T, U) + u;
|
|
7498
7498
|
} else
|
|
7499
7499
|
f.y += k;
|
|
7500
7500
|
}), yd(this.ctx, t.textDirection);
|
|
@@ -8118,9 +8118,9 @@ class Ra extends te {
|
|
|
8118
8118
|
const g = li(i.rtl, this.x, this.width), m = function(y) {
|
|
8119
8119
|
e.fillText(y, g.x(t.x + f), t.y + h / 2), t.y += h + r;
|
|
8120
8120
|
}, b = g.textAlign(a);
|
|
8121
|
-
let _, w, M, C, k,
|
|
8122
|
-
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Ys(this, b, i), e.fillStyle = i.bodyColor, xt(this.beforeBody, m), f = o && b !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, C = 0,
|
|
8123
|
-
for (_ = s[C], w = this.labelTextColors[C], e.fillStyle = w, xt(_.before, m), M = _.lines, o && M.length && (this._drawColorBox(e, t, C, g, i), h = Math.max(d.lineHeight, l)), k = 0,
|
|
8121
|
+
let _, w, M, C, k, T, D;
|
|
8122
|
+
for (e.textAlign = a, e.textBaseline = "middle", e.font = d.string, t.x = Ys(this, b, i), e.fillStyle = i.bodyColor, xt(this.beforeBody, m), f = o && b !== "right" ? a === "center" ? c / 2 + u : c + 2 + u : 0, C = 0, T = s.length; C < T; ++C) {
|
|
8123
|
+
for (_ = s[C], w = this.labelTextColors[C], e.fillStyle = w, xt(_.before, m), M = _.lines, o && M.length && (this._drawColorBox(e, t, C, g, i), h = Math.max(d.lineHeight, l)), k = 0, D = M.length; k < D; ++k)
|
|
8124
8124
|
m(M[k]), h = d.lineHeight;
|
|
8125
8125
|
xt(_.after, m);
|
|
8126
8126
|
}
|
|
@@ -8413,7 +8413,7 @@ P(La, "id", "category"), P(La, "defaults", {
|
|
|
8413
8413
|
});
|
|
8414
8414
|
function p0(n, t) {
|
|
8415
8415
|
const e = [], { bounds: s, step: r, min: a, max: o, precision: l, count: c, maxTicks: u, maxDigits: d, includeBounds: h } = n, f = r || 1, g = u - 1, { min: m, max: b } = t, _ = !tt(a), w = !tt(o), M = !tt(c), C = (b - m) / (d + 1);
|
|
8416
|
-
let k = pl((b - m) / g / f) * f,
|
|
8416
|
+
let k = pl((b - m) / g / f) * f, T, D, y, x;
|
|
8417
8417
|
if (k < 1e-14 && !_ && !w)
|
|
8418
8418
|
return [
|
|
8419
8419
|
{
|
|
@@ -8423,14 +8423,14 @@ function p0(n, t) {
|
|
|
8423
8423
|
value: b
|
|
8424
8424
|
}
|
|
8425
8425
|
];
|
|
8426
|
-
x = Math.ceil(b / k) - Math.floor(m / k), x > g && (k = pl(x * k / g / f) * f), tt(l) || (
|
|
8427
|
-
const S = Math.max(ml(k), ml(
|
|
8428
|
-
|
|
8426
|
+
x = Math.ceil(b / k) - Math.floor(m / k), x > g && (k = pl(x * k / g / f) * f), tt(l) || (T = Math.pow(10, l), k = Math.ceil(k * T) / T), s === "ticks" ? (D = Math.floor(m / k) * k, y = Math.ceil(b / k) * k) : (D = m, y = b), _ && w && r && hp((o - a) / r, k / 1e3) ? (x = Math.round(Math.min((o - a) / k, u)), k = (o - a) / x, D = a, y = o) : M ? (D = _ ? a : D, y = w ? o : y, x = c - 1, k = (y - D) / x) : (x = (y - D) / k, ji(x, Math.round(x), k / 1e3) ? x = Math.round(x) : x = Math.ceil(x));
|
|
8427
|
+
const S = Math.max(ml(k), ml(D));
|
|
8428
|
+
T = Math.pow(10, tt(l) ? S : l), D = Math.round(D * T) / T, y = Math.round(y * T) / T;
|
|
8429
8429
|
let O = 0;
|
|
8430
|
-
for (_ && (h &&
|
|
8430
|
+
for (_ && (h && D !== a ? (e.push({
|
|
8431
8431
|
value: a
|
|
8432
|
-
}),
|
|
8433
|
-
const A = Math.round((
|
|
8432
|
+
}), D < a && O++, ji(Math.round((D + O * k) * T) / T, a, vc(a, C, n)) && O++) : D < a && O++); O < x; ++O) {
|
|
8433
|
+
const A = Math.round((D + O * k) * T) / T;
|
|
8434
8434
|
if (w && A > o)
|
|
8435
8435
|
break;
|
|
8436
8436
|
e.push({
|
|
@@ -8671,7 +8671,7 @@ function _0(n, t, e, i, s) {
|
|
|
8671
8671
|
i.start < t.l ? (o = (t.l - i.start) / r, n.l = Math.min(n.l, t.l - o)) : i.end > t.r && (o = (i.end - t.r) / r, n.r = Math.max(n.r, t.r + o)), s.start < t.t ? (l = (t.t - s.start) / a, n.t = Math.min(n.t, t.t - l)) : s.end > t.b && (l = (s.end - t.b) / a, n.b = Math.max(n.b, t.b + l));
|
|
8672
8672
|
}
|
|
8673
8673
|
function w0(n, t, e) {
|
|
8674
|
-
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(vr(Me(l.angle + Pt))), u =
|
|
8674
|
+
const i = n.drawingArea, { extra: s, additionalAngle: r, padding: a, size: o } = e, l = n.getPointPosition(t, i + s + a, r), c = Math.round(vr(Me(l.angle + Pt))), u = D0(l.y, o.h, c), d = S0(c), h = k0(l.x, o.w, d);
|
|
8675
8675
|
return {
|
|
8676
8676
|
visible: !0,
|
|
8677
8677
|
x: l.x,
|
|
@@ -8720,10 +8720,10 @@ function S0(n) {
|
|
|
8720
8720
|
function k0(n, t, e) {
|
|
8721
8721
|
return e === "right" ? n -= t : e === "center" && (n -= t / 2), n;
|
|
8722
8722
|
}
|
|
8723
|
-
function
|
|
8723
|
+
function D0(n, t, e) {
|
|
8724
8724
|
return e === 90 || e === 270 ? n -= t / 2 : (e > 270 || e < 90) && (n -= t), n;
|
|
8725
8725
|
}
|
|
8726
|
-
function
|
|
8726
|
+
function T0(n, t, e) {
|
|
8727
8727
|
const { left: i, top: s, right: r, bottom: a } = e, { backdropColor: o } = t;
|
|
8728
8728
|
if (!tt(o)) {
|
|
8729
8729
|
const l = Mn(t.borderRadius), c = Ut(t.backdropPadding);
|
|
@@ -8745,7 +8745,7 @@ function C0(n, t) {
|
|
|
8745
8745
|
if (!r.visible)
|
|
8746
8746
|
continue;
|
|
8747
8747
|
const a = i.setContext(n.getPointLabelContext(s));
|
|
8748
|
-
|
|
8748
|
+
T0(e, a, r);
|
|
8749
8749
|
const o = Ot(a.font), { x: l, y: c, textAlign: u } = r;
|
|
8750
8750
|
Vn(e, n._pointLabels[s], l, c + o.lineHeight / 2, o, {
|
|
8751
8751
|
color: a.color,
|
|
@@ -8944,7 +8944,7 @@ P(Hi, "id", "radialLinear"), P(Hi, "defaults", {
|
|
|
8944
8944
|
_fallback: "grid"
|
|
8945
8945
|
}
|
|
8946
8946
|
});
|
|
8947
|
-
const
|
|
8947
|
+
const Dr = {
|
|
8948
8948
|
millisecond: {
|
|
8949
8949
|
common: !0,
|
|
8950
8950
|
size: 1,
|
|
@@ -8989,21 +8989,21 @@ const Tr = {
|
|
|
8989
8989
|
common: !0,
|
|
8990
8990
|
size: 3154e7
|
|
8991
8991
|
}
|
|
8992
|
-
}, ye = /* @__PURE__ */ Object.keys(
|
|
8993
|
-
function
|
|
8992
|
+
}, ye = /* @__PURE__ */ Object.keys(Dr);
|
|
8993
|
+
function Dc(n, t) {
|
|
8994
8994
|
return n - t;
|
|
8995
8995
|
}
|
|
8996
|
-
function
|
|
8996
|
+
function Tc(n, t) {
|
|
8997
8997
|
if (tt(t))
|
|
8998
8998
|
return null;
|
|
8999
8999
|
const e = n._adapter, { parser: i, round: s, isoWeekday: r } = n._parseOpts;
|
|
9000
9000
|
let a = t;
|
|
9001
|
-
return typeof i == "function" && (a = i(a)), Rt(a) || (a = typeof i == "string" ? e.parse(a, i) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (
|
|
9001
|
+
return typeof i == "function" && (a = i(a)), Rt(a) || (a = typeof i == "string" ? e.parse(a, i) : e.parse(a)), a === null ? null : (s && (a = s === "week" && (Tn(r) || r === !0) ? e.startOf(a, "isoWeek", r) : e.startOf(a, s)), +a);
|
|
9002
9002
|
}
|
|
9003
9003
|
function Cc(n, t, e, i) {
|
|
9004
9004
|
const s = ye.length;
|
|
9005
9005
|
for (let r = ye.indexOf(n); r < s - 1; ++r) {
|
|
9006
|
-
const a =
|
|
9006
|
+
const a = Dr[ye[r]], o = a.steps ? a.steps : Number.MAX_SAFE_INTEGER;
|
|
9007
9007
|
if (a.common && Math.ceil((e - t) / (o * a.size)) <= i)
|
|
9008
9008
|
return ye[r];
|
|
9009
9009
|
}
|
|
@@ -9012,14 +9012,14 @@ function Cc(n, t, e, i) {
|
|
|
9012
9012
|
function E0(n, t, e, i, s) {
|
|
9013
9013
|
for (let r = ye.length - 1; r >= ye.indexOf(e); r--) {
|
|
9014
9014
|
const a = ye[r];
|
|
9015
|
-
if (
|
|
9015
|
+
if (Dr[a].common && n._adapter.diff(s, i, a) >= t - 1)
|
|
9016
9016
|
return a;
|
|
9017
9017
|
}
|
|
9018
9018
|
return ye[e ? ye.indexOf(e) : 0];
|
|
9019
9019
|
}
|
|
9020
9020
|
function A0(n) {
|
|
9021
9021
|
for (let t = ye.indexOf(n) + 1, e = ye.length; t < e; ++t)
|
|
9022
|
-
if (
|
|
9022
|
+
if (Dr[ye[t]].common)
|
|
9023
9023
|
return ye[t];
|
|
9024
9024
|
}
|
|
9025
9025
|
function Pc(n, t, e) {
|
|
@@ -9064,7 +9064,7 @@ class is extends Gn {
|
|
|
9064
9064
|
}, super.init(t), this._normalized = e.normalized;
|
|
9065
9065
|
}
|
|
9066
9066
|
parse(t, e) {
|
|
9067
|
-
return t === void 0 ? null :
|
|
9067
|
+
return t === void 0 ? null : Tc(this, t);
|
|
9068
9068
|
}
|
|
9069
9069
|
beforeLayout() {
|
|
9070
9070
|
super.beforeLayout(), this._cache = {
|
|
@@ -9109,14 +9109,14 @@ class is extends Gn {
|
|
|
9109
9109
|
};
|
|
9110
9110
|
}
|
|
9111
9111
|
_generate() {
|
|
9112
|
-
const t = this._adapter, e = this.min, i = this.max, s = this.options, r = s.time, a = r.unit || Cc(r.minUnit, e, i, this._getLabelCapacity(e)), o = J(s.ticks.stepSize, 1), l = a === "week" ? r.isoWeekday : !1, c =
|
|
9112
|
+
const t = this._adapter, e = this.min, i = this.max, s = this.options, r = s.time, a = r.unit || Cc(r.minUnit, e, i, this._getLabelCapacity(e)), o = J(s.ticks.stepSize, 1), l = a === "week" ? r.isoWeekday : !1, c = Tn(l) || l === !0, u = {};
|
|
9113
9113
|
let d = e, h, f;
|
|
9114
9114
|
if (c && (d = +t.startOf(d, "isoWeek", l)), d = +t.startOf(d, c ? "day" : a), t.diff(i, e, a) > 1e5 * o)
|
|
9115
9115
|
throw new Error(e + " and " + i + " are too far apart with stepSize of " + o + " " + a);
|
|
9116
9116
|
const g = s.ticks.source === "data" && this.getDataTimestamps();
|
|
9117
9117
|
for (h = d, f = 0; h < i; h = +t.add(h, o, a), f++)
|
|
9118
9118
|
Pc(u, h, g);
|
|
9119
|
-
return (h === i || s.bounds === "ticks" || f === 1) && Pc(u, h, g), Object.keys(u).sort(
|
|
9119
|
+
return (h === i || s.bounds === "ticks" || f === 1) && Pc(u, h, g), Object.keys(u).sort(Dc).map((m) => +m);
|
|
9120
9120
|
}
|
|
9121
9121
|
getLabelForValue(t) {
|
|
9122
9122
|
const e = this._adapter, i = this.options.time;
|
|
@@ -9184,11 +9184,11 @@ class is extends Gn {
|
|
|
9184
9184
|
return t;
|
|
9185
9185
|
const s = this.getLabels();
|
|
9186
9186
|
for (e = 0, i = s.length; e < i; ++e)
|
|
9187
|
-
t.push(
|
|
9187
|
+
t.push(Tc(this, s[e]));
|
|
9188
9188
|
return this._cache.labels = this._normalized ? t : this.normalize(t);
|
|
9189
9189
|
}
|
|
9190
9190
|
normalize(t) {
|
|
9191
|
-
return nd(t.sort(
|
|
9191
|
+
return nd(t.sort(Dc));
|
|
9192
9192
|
}
|
|
9193
9193
|
}
|
|
9194
9194
|
P(is, "id", "time"), P(is, "defaults", {
|
|
@@ -9357,7 +9357,7 @@ function G(n) {
|
|
|
9357
9357
|
function Ct(n, t) {
|
|
9358
9358
|
return n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
9359
9359
|
}
|
|
9360
|
-
function
|
|
9360
|
+
function Tr(n, t) {
|
|
9361
9361
|
const e = G(n);
|
|
9362
9362
|
return isNaN(t) ? Ct(n, NaN) : (t && e.setDate(e.getDate() + t), e);
|
|
9363
9363
|
}
|
|
@@ -9441,7 +9441,7 @@ function V0(n, t) {
|
|
|
9441
9441
|
}
|
|
9442
9442
|
function X0(n, t) {
|
|
9443
9443
|
const e = t * 7;
|
|
9444
|
-
return
|
|
9444
|
+
return Tr(n, e);
|
|
9445
9445
|
}
|
|
9446
9446
|
function G0(n, t) {
|
|
9447
9447
|
return ko(n, t * 12);
|
|
@@ -9453,7 +9453,7 @@ function Gi(n, t) {
|
|
|
9453
9453
|
function K0(n) {
|
|
9454
9454
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
9455
9455
|
}
|
|
9456
|
-
function
|
|
9456
|
+
function Do(n) {
|
|
9457
9457
|
if (!K0(n) && typeof n != "number")
|
|
9458
9458
|
return !1;
|
|
9459
9459
|
const t = G(n);
|
|
@@ -9741,7 +9741,7 @@ const Mx = {
|
|
|
9741
9741
|
"November",
|
|
9742
9742
|
"December"
|
|
9743
9743
|
]
|
|
9744
|
-
},
|
|
9744
|
+
}, Dx = {
|
|
9745
9745
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
9746
9746
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
9747
9747
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -9754,7 +9754,7 @@ const Mx = {
|
|
|
9754
9754
|
"Friday",
|
|
9755
9755
|
"Saturday"
|
|
9756
9756
|
]
|
|
9757
|
-
},
|
|
9757
|
+
}, Tx = {
|
|
9758
9758
|
narrow: {
|
|
9759
9759
|
am: "a",
|
|
9760
9760
|
pm: "p",
|
|
@@ -9844,11 +9844,11 @@ const Mx = {
|
|
|
9844
9844
|
defaultWidth: "wide"
|
|
9845
9845
|
}),
|
|
9846
9846
|
day: Ci({
|
|
9847
|
-
values:
|
|
9847
|
+
values: Dx,
|
|
9848
9848
|
defaultWidth: "wide"
|
|
9849
9849
|
}),
|
|
9850
9850
|
dayPeriod: Ci({
|
|
9851
|
-
values:
|
|
9851
|
+
values: Tx,
|
|
9852
9852
|
defaultWidth: "wide",
|
|
9853
9853
|
formattingValues: Cx,
|
|
9854
9854
|
defaultFormattingWidth: "wide"
|
|
@@ -10018,7 +10018,7 @@ function Jd(n) {
|
|
|
10018
10018
|
const t = G(n), e = +gi(t) - +$0(t);
|
|
10019
10019
|
return Math.round(e / $d) + 1;
|
|
10020
10020
|
}
|
|
10021
|
-
function
|
|
10021
|
+
function To(n, t) {
|
|
10022
10022
|
var u, d, h, f;
|
|
10023
10023
|
const e = G(n), i = e.getFullYear(), s = Kn(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((f = (h = s.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = Ct(n, 0);
|
|
10024
10024
|
a.setFullYear(i + 1, 0, r), a.setHours(0, 0, 0, 0);
|
|
@@ -10029,7 +10029,7 @@ function Do(n, t) {
|
|
|
10029
10029
|
}
|
|
10030
10030
|
function Xx(n, t) {
|
|
10031
10031
|
var o, l, c, u;
|
|
10032
|
-
const e = Kn(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((u = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s =
|
|
10032
|
+
const e = Kn(), i = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((l = (o = t == null ? void 0 : t.locale) == null ? void 0 : o.options) == null ? void 0 : l.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((u = (c = e.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, s = To(n, t), r = Ct(n, 0);
|
|
10033
10033
|
return r.setFullYear(s, 0, i), r.setHours(0, 0, 0, 0), qe(r, t);
|
|
10034
10034
|
}
|
|
10035
10035
|
function th(n, t) {
|
|
@@ -10129,7 +10129,7 @@ const hn = {
|
|
|
10129
10129
|
},
|
|
10130
10130
|
// Local week-numbering year
|
|
10131
10131
|
Y: function(n, t, e, i) {
|
|
10132
|
-
const s =
|
|
10132
|
+
const s = To(n, i), r = s > 0 ? s : 1 - s;
|
|
10133
10133
|
if (t === "YY") {
|
|
10134
10134
|
const a = r % 100;
|
|
10135
10135
|
return mt(a, 2);
|
|
@@ -10669,7 +10669,7 @@ const t_ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, e_ = /P+p+|P
|
|
|
10669
10669
|
function sh(n, t, e) {
|
|
10670
10670
|
var u, d, h, f, g, m, b, _;
|
|
10671
10671
|
const i = Kn(), s = (e == null ? void 0 : e.locale) ?? i.locale ?? Qd, r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((d = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : d.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((f = (h = i.locale) == null ? void 0 : h.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1, a = (e == null ? void 0 : e.weekStartsOn) ?? ((m = (g = e == null ? void 0 : e.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? i.weekStartsOn ?? ((_ = (b = i.locale) == null ? void 0 : b.options) == null ? void 0 : _.weekStartsOn) ?? 0, o = G(n);
|
|
10672
|
-
if (!
|
|
10672
|
+
if (!Do(o))
|
|
10673
10673
|
throw new RangeError("Invalid time value");
|
|
10674
10674
|
let l = t.match(e_).map((w) => {
|
|
10675
10675
|
const M = w[0];
|
|
@@ -11020,7 +11020,7 @@ class g_ extends ft {
|
|
|
11020
11020
|
return i.isTwoDigitYear || i.year > 0;
|
|
11021
11021
|
}
|
|
11022
11022
|
set(e, i, s, r) {
|
|
11023
|
-
const a =
|
|
11023
|
+
const a = To(e, r);
|
|
11024
11024
|
if (s.isTwoDigitYear) {
|
|
11025
11025
|
const l = oh(
|
|
11026
11026
|
s.year,
|
|
@@ -11410,7 +11410,7 @@ class S_ extends ft {
|
|
|
11410
11410
|
return gi(M_(e, s));
|
|
11411
11411
|
}
|
|
11412
11412
|
}
|
|
11413
|
-
const k_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
|
|
11413
|
+
const k_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], D_ = [
|
|
11414
11414
|
31,
|
|
11415
11415
|
29,
|
|
11416
11416
|
31,
|
|
@@ -11424,7 +11424,7 @@ const k_ = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], T_ = [
|
|
|
11424
11424
|
30,
|
|
11425
11425
|
31
|
|
11426
11426
|
];
|
|
11427
|
-
class
|
|
11427
|
+
class T_ extends ft {
|
|
11428
11428
|
constructor() {
|
|
11429
11429
|
super(...arguments);
|
|
11430
11430
|
P(this, "priority", 90);
|
|
@@ -11456,7 +11456,7 @@ class D_ extends ft {
|
|
|
11456
11456
|
}
|
|
11457
11457
|
validate(e, i) {
|
|
11458
11458
|
const s = e.getFullYear(), r = lh(s), a = e.getMonth();
|
|
11459
|
-
return r ? i >= 1 && i <=
|
|
11459
|
+
return r ? i >= 1 && i <= D_[a] : i >= 1 && i <= k_[a];
|
|
11460
11460
|
}
|
|
11461
11461
|
set(e, i, s) {
|
|
11462
11462
|
return e.setDate(s), e.setHours(0, 0, 0, 0), e;
|
|
@@ -11507,7 +11507,7 @@ class C_ extends ft {
|
|
|
11507
11507
|
function Po(n, t, e) {
|
|
11508
11508
|
var d, h, f, g;
|
|
11509
11509
|
const i = Kn(), s = (e == null ? void 0 : e.weekStartsOn) ?? ((h = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? i.weekStartsOn ?? ((g = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : g.weekStartsOn) ?? 0, r = G(n), a = r.getDay(), l = (t % 7 + 7) % 7, c = 7 - s, u = t < 0 || t > 6 ? t - (a + c) % 7 : (l + c) % 7 - (a + c) % 7;
|
|
11510
|
-
return
|
|
11510
|
+
return Tr(r, u);
|
|
11511
11511
|
}
|
|
11512
11512
|
class P_ extends ft {
|
|
11513
11513
|
constructor() {
|
|
@@ -11678,7 +11678,7 @@ class E_ extends ft {
|
|
|
11678
11678
|
}
|
|
11679
11679
|
function A_(n, t) {
|
|
11680
11680
|
const e = G(n), i = o_(e), s = t - i;
|
|
11681
|
-
return
|
|
11681
|
+
return Tr(e, s);
|
|
11682
11682
|
}
|
|
11683
11683
|
class R_ extends ft {
|
|
11684
11684
|
constructor() {
|
|
@@ -12159,7 +12159,7 @@ const X_ = {
|
|
|
12159
12159
|
L: new __(),
|
|
12160
12160
|
w: new v_(),
|
|
12161
12161
|
I: new S_(),
|
|
12162
|
-
d: new
|
|
12162
|
+
d: new T_(),
|
|
12163
12163
|
D: new C_(),
|
|
12164
12164
|
E: new P_(),
|
|
12165
12165
|
e: new O_(),
|
|
@@ -12181,25 +12181,25 @@ const X_ = {
|
|
|
12181
12181
|
T: new V_()
|
|
12182
12182
|
}, G_ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, K_ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Z_ = /^'([^]*?)'?$/, Q_ = /''/g, J_ = /\S/, tw = /[a-zA-Z]/;
|
|
12183
12183
|
function ew(n, t, e, i) {
|
|
12184
|
-
var m, b, _, w, M, C, k,
|
|
12185
|
-
const s = a_(), r = (i == null ? void 0 : i.locale) ?? s.locale ?? Qd, a = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((b = (m = i == null ? void 0 : i.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((w = (_ = s.locale) == null ? void 0 : _.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = (i == null ? void 0 : i.weekStartsOn) ?? ((C = (M = i == null ? void 0 : i.locale) == null ? void 0 : M.options) == null ? void 0 : C.weekStartsOn) ?? s.weekStartsOn ?? ((
|
|
12184
|
+
var m, b, _, w, M, C, k, T;
|
|
12185
|
+
const s = a_(), r = (i == null ? void 0 : i.locale) ?? s.locale ?? Qd, a = (i == null ? void 0 : i.firstWeekContainsDate) ?? ((b = (m = i == null ? void 0 : i.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? s.firstWeekContainsDate ?? ((w = (_ = s.locale) == null ? void 0 : _.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, o = (i == null ? void 0 : i.weekStartsOn) ?? ((C = (M = i == null ? void 0 : i.locale) == null ? void 0 : M.options) == null ? void 0 : C.weekStartsOn) ?? s.weekStartsOn ?? ((T = (k = s.locale) == null ? void 0 : k.options) == null ? void 0 : T.weekStartsOn) ?? 0;
|
|
12186
12186
|
if (t === "")
|
|
12187
12187
|
return n === "" ? G(e) : Ct(e, NaN);
|
|
12188
12188
|
const l = {
|
|
12189
12189
|
firstWeekContainsDate: a,
|
|
12190
12190
|
weekStartsOn: o,
|
|
12191
12191
|
locale: r
|
|
12192
|
-
}, c = [new d_()], u = t.match(K_).map((
|
|
12193
|
-
const y =
|
|
12192
|
+
}, c = [new d_()], u = t.match(K_).map((D) => {
|
|
12193
|
+
const y = D[0];
|
|
12194
12194
|
if (y in Ba) {
|
|
12195
12195
|
const x = Ba[y];
|
|
12196
|
-
return x(
|
|
12196
|
+
return x(D, r.formatLong);
|
|
12197
12197
|
}
|
|
12198
|
-
return
|
|
12198
|
+
return D;
|
|
12199
12199
|
}).join("").match(G_), d = [];
|
|
12200
|
-
for (let
|
|
12201
|
-
!(i != null && i.useAdditionalWeekYearTokens) && ih(
|
|
12202
|
-
const y =
|
|
12200
|
+
for (let D of u) {
|
|
12201
|
+
!(i != null && i.useAdditionalWeekYearTokens) && ih(D) && Wa(D, t, n), !(i != null && i.useAdditionalDayOfYearTokens) && nh(D) && Wa(D, t, n);
|
|
12202
|
+
const y = D[0], x = X_[y];
|
|
12203
12203
|
if (x) {
|
|
12204
12204
|
const { incompatibleTokens: S } = x;
|
|
12205
12205
|
if (Array.isArray(S)) {
|
|
@@ -12208,16 +12208,16 @@ function ew(n, t, e, i) {
|
|
|
12208
12208
|
);
|
|
12209
12209
|
if (A)
|
|
12210
12210
|
throw new RangeError(
|
|
12211
|
-
`The format string mustn't contain \`${A.fullToken}\` and \`${
|
|
12211
|
+
`The format string mustn't contain \`${A.fullToken}\` and \`${D}\` at the same time`
|
|
12212
12212
|
);
|
|
12213
12213
|
} else if (x.incompatibleTokens === "*" && d.length > 0)
|
|
12214
12214
|
throw new RangeError(
|
|
12215
|
-
`The format string mustn't contain \`${
|
|
12215
|
+
`The format string mustn't contain \`${D}\` and any other token at the same time`
|
|
12216
12216
|
);
|
|
12217
|
-
d.push({ token: y, fullToken:
|
|
12217
|
+
d.push({ token: y, fullToken: D });
|
|
12218
12218
|
const O = x.run(
|
|
12219
12219
|
n,
|
|
12220
|
-
|
|
12220
|
+
D,
|
|
12221
12221
|
r.match,
|
|
12222
12222
|
l
|
|
12223
12223
|
);
|
|
@@ -12229,25 +12229,25 @@ function ew(n, t, e, i) {
|
|
|
12229
12229
|
throw new RangeError(
|
|
12230
12230
|
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
12231
12231
|
);
|
|
12232
|
-
if (
|
|
12233
|
-
n = n.slice(
|
|
12232
|
+
if (D === "''" ? D = "'" : y === "'" && (D = nw(D)), n.indexOf(D) === 0)
|
|
12233
|
+
n = n.slice(D.length);
|
|
12234
12234
|
else
|
|
12235
12235
|
return Ct(e, NaN);
|
|
12236
12236
|
}
|
|
12237
12237
|
}
|
|
12238
12238
|
if (n.length > 0 && J_.test(n))
|
|
12239
12239
|
return Ct(e, NaN);
|
|
12240
|
-
const h = c.map((
|
|
12241
|
-
(
|
|
12242
|
-
).map((
|
|
12240
|
+
const h = c.map((D) => D.priority).sort((D, y) => y - D).filter((D, y, x) => x.indexOf(D) === y).map(
|
|
12241
|
+
(D) => c.filter((y) => y.priority === D).sort((y, x) => x.subPriority - y.subPriority)
|
|
12242
|
+
).map((D) => D[0]);
|
|
12243
12243
|
let f = G(e);
|
|
12244
12244
|
if (isNaN(f.getTime()))
|
|
12245
12245
|
return Ct(e, NaN);
|
|
12246
12246
|
const g = {};
|
|
12247
|
-
for (const
|
|
12248
|
-
if (!
|
|
12247
|
+
for (const D of h) {
|
|
12248
|
+
if (!D.validate(f, l))
|
|
12249
12249
|
return Ct(e, NaN);
|
|
12250
|
-
const y =
|
|
12250
|
+
const y = D.set(f, g, l);
|
|
12251
12251
|
Array.isArray(y) ? (f = y[0], Object.assign(g, y[1])) : f = y;
|
|
12252
12252
|
}
|
|
12253
12253
|
return Ct(e, f);
|
|
@@ -12402,7 +12402,7 @@ const Eo = (n, t) => {
|
|
|
12402
12402
|
f = isNaN(h) ? h : So(h);
|
|
12403
12403
|
else {
|
|
12404
12404
|
const m = n.translateUnit(n.units, h);
|
|
12405
|
-
f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ? Ya.format(h) : Ya.format(Number(h.toFixed(
|
|
12405
|
+
f = `${n.units === "usd" ? "$" : ""}${h % 1 === 0 ? Ya.format(h) : Ya.format(Number(h.toFixed(Tw)))} ${m}`;
|
|
12406
12406
|
}
|
|
12407
12407
|
const g = l && u.dataset.label !== u.label ? u.dataset.label : c ? u.dataset.labels[u.dataIndex] : u.dataset.label;
|
|
12408
12408
|
return {
|
|
@@ -12414,12 +12414,12 @@ const Eo = (n, t) => {
|
|
|
12414
12414
|
};
|
|
12415
12415
|
}).sort(i), n.left = `${e.x}px`, n.top = `${e.y}px`, n.showTooltip = !0;
|
|
12416
12416
|
}
|
|
12417
|
-
}, ww = (n) => n && n.datasets && n.datasets.length, vw = (n) => ww(n) && n.datasets.some((t) => t.data.length), Mw = (n) => vw(n) && n.datasets.some((t) => t.data.length > 1), Sw = (n) => Mw(n) && n.datasets.some((t) => t.data[0] &&
|
|
12417
|
+
}, ww = (n) => n && n.datasets && n.datasets.length, vw = (n) => ww(n) && n.datasets.some((t) => t.data.length), Mw = (n) => vw(n) && n.datasets.some((t) => t.data.length > 1), Sw = (n) => Mw(n) && n.datasets.some((t) => t.data[0] && Do(t.data[0].x)), kw = (n) => Sw(n) && n.datasets.some(
|
|
12418
12418
|
(t) => t.data[0] && t.data[0].x.toString().length >= 13
|
|
12419
12419
|
), Ao = (n, t, e) => {
|
|
12420
12420
|
const s = Math.min(t / 1150, 1);
|
|
12421
12421
|
return n.x < e ? n.x + t * 0.15 * (1 - s) : n.x - t * 1.15 * (1 - s);
|
|
12422
|
-
},
|
|
12422
|
+
}, Dw = (n, t, e) => n.y < e ? n.y + t * 0.15 : n.y - t * 0.5;
|
|
12423
12423
|
function dh(n, t) {
|
|
12424
12424
|
let e;
|
|
12425
12425
|
return (...i) => {
|
|
@@ -12428,7 +12428,7 @@ function dh(n, t) {
|
|
|
12428
12428
|
}, t);
|
|
12429
12429
|
};
|
|
12430
12430
|
}
|
|
12431
|
-
const
|
|
12431
|
+
const Tw = 2, Cw = 10, Pw = 12;
|
|
12432
12432
|
var Uu;
|
|
12433
12433
|
const Ya = new Intl.NumberFormat(((Uu = document == null ? void 0 : document.documentElement) == null ? void 0 : Uu.lang) || "en-US"), ja = 10, Fc = {
|
|
12434
12434
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
@@ -12465,21 +12465,21 @@ const Ya = new Intl.NumberFormat(((Uu = document == null ? void 0 : document.doc
|
|
|
12465
12465
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
12466
12466
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
12467
12467
|
500: { background: "#fedada", text: "#852021" }
|
|
12468
|
-
},
|
|
12468
|
+
}, dT = (n) => {
|
|
12469
12469
|
var e;
|
|
12470
12470
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
12471
12471
|
return ((e = Aw[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
12472
|
-
},
|
|
12472
|
+
}, hT = {
|
|
12473
12473
|
SUCCESS: "#6FCC83",
|
|
12474
12474
|
FAILURE: "#FF8484"
|
|
12475
|
-
},
|
|
12475
|
+
}, fT = {
|
|
12476
12476
|
"4XX": "#FFBA81",
|
|
12477
12477
|
"5XX": "#FF8484"
|
|
12478
|
-
},
|
|
12478
|
+
}, gT = {
|
|
12479
12479
|
LatencyP99: "#1356cb",
|
|
12480
12480
|
LatencyP95: "#1fbecd",
|
|
12481
12481
|
LatencyP50: "#1df97d"
|
|
12482
|
-
},
|
|
12482
|
+
}, pT = "#dad4c7", mT = (n) => {
|
|
12483
12483
|
const t = Object.entries(Fc).find(([e]) => new RegExp(e).test(n));
|
|
12484
12484
|
return t && t[1] || Fc.standard;
|
|
12485
12485
|
}, Rw = {
|
|
@@ -12551,7 +12551,7 @@ const Ya = new Intl.NumberFormat(((Uu = document == null ? void 0 : document.doc
|
|
|
12551
12551
|
]), hh = (n) => {
|
|
12552
12552
|
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = Hw.get(e);
|
|
12553
12553
|
return i === void 0 ? Wc : i.get(t) ?? i.get(-1) ?? Wc;
|
|
12554
|
-
},
|
|
12554
|
+
}, yT = (n) => {
|
|
12555
12555
|
const t = hh(n);
|
|
12556
12556
|
return { solid: t, light: t };
|
|
12557
12557
|
}, Bw = Array.from({ length: 500 }, (n, t) => 100 + t), aa = {
|
|
@@ -12583,9 +12583,9 @@ function Ww(n) {
|
|
|
12583
12583
|
y: u - n.tooltipState.offsetY,
|
|
12584
12584
|
xAlign: d
|
|
12585
12585
|
};
|
|
12586
|
-
},
|
|
12586
|
+
}, Ta.modes.customInteractionMode = function(s, r) {
|
|
12587
12587
|
const a = mn(r, s), o = [];
|
|
12588
|
-
return
|
|
12588
|
+
return Ta.evaluateInteractionItems(s, s.options.indexAxis || "x", a, (l, c, u) => {
|
|
12589
12589
|
s.options.indexAxis === "y" && l.inYRange(a.y, !0) && s.data.datasets[c].data[u] && o.push({ element: l, datasetIndex: c, index: u }), s.options.indexAxis === "x" && l.inXRange(a.x, !0) && s.data.datasets[c].data[u] && o.push({ element: l, datasetIndex: c, index: u });
|
|
12590
12590
|
}), o;
|
|
12591
12591
|
};
|
|
@@ -12828,6 +12828,7 @@ const Xw = [
|
|
|
12828
12828
|
"status_code_grouped",
|
|
12829
12829
|
"time",
|
|
12830
12830
|
"upstream_uri",
|
|
12831
|
+
"upstream_status_code_grouped",
|
|
12831
12832
|
"websocket"
|
|
12832
12833
|
];
|
|
12833
12834
|
hs(tv);
|
|
@@ -13169,7 +13170,7 @@ const _v = {
|
|
|
13169
13170
|
evening: "in the evening",
|
|
13170
13171
|
night: "at night"
|
|
13171
13172
|
}
|
|
13172
|
-
},
|
|
13173
|
+
}, Dv = (n, t) => {
|
|
13173
13174
|
const e = Number(n), i = e % 100;
|
|
13174
13175
|
if (i > 20 || i < 10)
|
|
13175
13176
|
switch (i % 10) {
|
|
@@ -13181,8 +13182,8 @@ const _v = {
|
|
|
13181
13182
|
return e + "rd";
|
|
13182
13183
|
}
|
|
13183
13184
|
return e + "th";
|
|
13184
|
-
},
|
|
13185
|
-
ordinalNumber:
|
|
13185
|
+
}, Tv = {
|
|
13186
|
+
ordinalNumber: Dv,
|
|
13186
13187
|
era: Ai({
|
|
13187
13188
|
values: _v,
|
|
13188
13189
|
defaultWidth: "wide"
|
|
@@ -13356,7 +13357,7 @@ const Ev = /^(\d+)(th|st|nd|rd)?/i, Av = /\d+/i, Rv = {
|
|
|
13356
13357
|
formatDistance: fv,
|
|
13357
13358
|
formatLong: yv,
|
|
13358
13359
|
formatRelative: xv,
|
|
13359
|
-
localize:
|
|
13360
|
+
localize: Tv,
|
|
13360
13361
|
match: jv,
|
|
13361
13362
|
options: {
|
|
13362
13363
|
weekStartsOn: 0,
|
|
@@ -14231,7 +14232,7 @@ function k1(n) {
|
|
|
14231
14232
|
return !1;
|
|
14232
14233
|
}
|
|
14233
14234
|
}
|
|
14234
|
-
const
|
|
14235
|
+
const D1 = 60 * 1e3, T1 = {
|
|
14235
14236
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
14236
14237
|
X: function(n, t, e) {
|
|
14237
14238
|
const i = ua(e.timeZone, n);
|
|
@@ -14291,7 +14292,7 @@ const T1 = 60 * 1e3, D1 = {
|
|
|
14291
14292
|
}
|
|
14292
14293
|
};
|
|
14293
14294
|
function ua(n, t) {
|
|
14294
|
-
const e = n ? fs(n, t, !0) /
|
|
14295
|
+
const e = n ? fs(n, t, !0) / D1 : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
14295
14296
|
if (Number.isNaN(e))
|
|
14296
14297
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
14297
14298
|
return e;
|
|
@@ -14501,7 +14502,7 @@ function z1(n, t, e = {}) {
|
|
|
14501
14502
|
t = i.reduce(function(r, a) {
|
|
14502
14503
|
if (a[0] === "'")
|
|
14503
14504
|
return r;
|
|
14504
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
14505
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + T1[a[0]](s, a, e) + "'");
|
|
14505
14506
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
14506
14507
|
}, t);
|
|
14507
14508
|
}
|
|
@@ -14863,7 +14864,7 @@ function K1(n) {
|
|
|
14863
14864
|
if (!l.length || n.tooltipState.locked)
|
|
14864
14865
|
return !1;
|
|
14865
14866
|
const u = this.chart.canvas.getBoundingClientRect(), d = n.tooltipState.width || this.width, h = n.tooltipState.height || this.height, f = u.width / 2, g = u.height / 2, m = Ao(c, d, f);
|
|
14866
|
-
let b =
|
|
14867
|
+
let b = Dw(c, h, g);
|
|
14867
14868
|
const _ = c.y < g ? "top" : "bottom", w = c.x < f ? "left" : "center";
|
|
14868
14869
|
return h > u.height && (b = 0), {
|
|
14869
14870
|
x: m,
|
|
@@ -14985,14 +14986,14 @@ function Q1(n, t) {
|
|
|
14985
14986
|
const s = t.value.data, { display: r, metric_names: a } = t.value.meta, o = r && Object.keys(r), l = a && a.length > 1, c = r && o && o.length > 0;
|
|
14986
14987
|
if (!s.length || !a)
|
|
14987
14988
|
return { datasets: [], labels: [] };
|
|
14988
|
-
const u = c && o || a, d = u[0], h = u.length > 1 ? u[1] : u[0], f = Object.fromEntries(l ? s.flatMap((
|
|
14989
|
-
const x =
|
|
14989
|
+
const u = c && o || a, d = u[0], h = u.length > 1 ? u[1] : u[0], f = Object.fromEntries(l ? s.flatMap((T) => a.map((D, y) => {
|
|
14990
|
+
const x = T.event[d], S = c ? `${x},${D}` : `${y},${D}`, O = T.event[D];
|
|
14990
14991
|
return [S, O];
|
|
14991
|
-
})) : s.map((
|
|
14992
|
-
const
|
|
14993
|
-
return [
|
|
14994
|
-
})), g = Object.entries(f).sort(([,
|
|
14995
|
-
if (d !== "status_code" && d !== "status_code_grouped" && (_.sort((
|
|
14992
|
+
})) : s.map((T) => {
|
|
14993
|
+
const D = c ? `${T.event[d]},${T.event[h]}` : `${d},${h}`, y = T.event[a[0]];
|
|
14994
|
+
return [D, y];
|
|
14995
|
+
})), g = Object.entries(f).sort(([, T], [, D]) => Number(D) - Number(T)).map(([T]) => T.split(",")[0]), m = r[d], b = r[h], _ = c && m && Object.entries(m).map(([T, D]) => ({ id: T, name: D.name })) || a.map((T) => ({ id: T, name: T })), w = c && b && Object.entries(b).map(([T, D]) => ({ id: T, name: D.name })) || a.map((T) => ({ id: T, name: T }));
|
|
14996
|
+
if (d !== "status_code" && d !== "status_code_grouped" && (_.sort((T, D) => g.indexOf(T.id) - g.indexOf(D.id)), w.sort((T, D) => g.indexOf(T.id) - g.indexOf(D.id))), !_ || !w)
|
|
14996
14997
|
return { labels: [], datasets: [] };
|
|
14997
14998
|
const M = Z1({
|
|
14998
14999
|
isMultiMetric: l,
|
|
@@ -15005,7 +15006,7 @@ function Q1(n, t) {
|
|
|
15005
15006
|
colorPalette: n.colorPalette || Cn
|
|
15006
15007
|
});
|
|
15007
15008
|
return {
|
|
15008
|
-
labels: c ? _.map((
|
|
15009
|
+
labels: c ? _.map((T) => e && e.te(`chartLabels.${T.name}`) && e.t(`chartLabels.${T.name}`) || T.name) : a.map((T) => e && e.te(`chartLabels.${T}`) && e.t(`chartLabels.${T}`) || T),
|
|
15009
15010
|
datasets: M
|
|
15010
15011
|
};
|
|
15011
15012
|
}
|
|
@@ -15049,25 +15050,25 @@ function nM(n, t) {
|
|
|
15049
15050
|
return console.error("Invalid step value:", f), { datasets: [], labels: [] };
|
|
15050
15051
|
if (!s.length)
|
|
15051
15052
|
return { datasets: [], labels: [] };
|
|
15052
|
-
const g = tM(o), m = eM(o, l, f, g, s), b = /* @__PURE__ */ new Set(), _ = s != null && s.length ? s.reduce((k,
|
|
15053
|
-
const
|
|
15053
|
+
const g = tM(o), m = eM(o, l, f, g, s), b = /* @__PURE__ */ new Set(), _ = s != null && s.length ? s.reduce((k, T) => {
|
|
15054
|
+
const D = new Date(T.timestamp).valueOf(), y = T.event;
|
|
15054
15055
|
for (const x of a)
|
|
15055
|
-
b.add(x),
|
|
15056
|
+
b.add(x), D in k || (k[D] = {}), x in k[D] || (k[D][x] = {});
|
|
15056
15057
|
for (const x of a)
|
|
15057
15058
|
h.forEach((S) => {
|
|
15058
|
-
y[u] === S.id || x === S.id ? (k[
|
|
15059
|
+
y[u] === S.id || x === S.id ? (k[D][x] || (k[D][x] = {}), k[D][x][S.name] = Math.round(Number(y[x]) * 1e3) / 1e3) : c.length || (k[D][x] || (k[D][x] = {}), k[D][x][S.name] = Math.round(Number(y[S.id]) * 1e3) / 1e3);
|
|
15059
15060
|
});
|
|
15060
15061
|
return k;
|
|
15061
|
-
}, {}) : {}, w = a.length === 1 ? a.flatMap((k) => h.map((
|
|
15062
|
-
const y = m.map((A) => A in _ && k in _[A] ? { x: A, y: _[A][k][
|
|
15062
|
+
}, {}) : {}, w = a.length === 1 ? a.flatMap((k) => h.map((T) => [k, T.name])) : h.map((k) => [k.name, k.name]), M = {}, C = [...w].map(([k, T], D) => {
|
|
15063
|
+
const y = m.map((A) => A in _ && k in _[A] ? { x: A, y: _[A][k][T] || 0 } : { x: A, y: 0 });
|
|
15063
15064
|
let { colorPalette: x, fill: S } = n;
|
|
15064
15065
|
tt(x) && (x = Cn);
|
|
15065
|
-
const O = Array.isArray(x) ? Ki(
|
|
15066
|
-
return M[
|
|
15067
|
-
rawDimension:
|
|
15066
|
+
const O = Array.isArray(x) ? Ki(D, x) : x[T] || Ki(D);
|
|
15067
|
+
return M[T] = O, {
|
|
15068
|
+
rawDimension: T,
|
|
15068
15069
|
rawMetric: k,
|
|
15069
15070
|
// @ts-ignore - dynamic i18n key
|
|
15070
|
-
label: e && e.te(`chartLabels.${
|
|
15071
|
+
label: e && e.te(`chartLabels.${T}`) && e.t(`chartLabels.${T}`) || T,
|
|
15071
15072
|
borderColor: O,
|
|
15072
15073
|
backgroundColor: O,
|
|
15073
15074
|
data: y,
|
|
@@ -15077,7 +15078,7 @@ function nM(n, t) {
|
|
|
15077
15078
|
borderWidth: S ? Iw : Lw
|
|
15078
15079
|
};
|
|
15079
15080
|
});
|
|
15080
|
-
return C.sort((k,
|
|
15081
|
+
return C.sort((k, T) => Number(k.total) < Number(T.total) ? -1 : 1), {
|
|
15081
15082
|
datasets: C,
|
|
15082
15083
|
colorMap: M
|
|
15083
15084
|
};
|
|
@@ -15227,7 +15228,7 @@ function dM(n, t, e, i = !0) {
|
|
|
15227
15228
|
}
|
|
15228
15229
|
return !0;
|
|
15229
15230
|
}
|
|
15230
|
-
const Sh = (n) => typeof n == "string" && n.endsWith("%"), kh = (n) => parseFloat(n) / 100,
|
|
15231
|
+
const Sh = (n) => typeof n == "string" && n.endsWith("%"), kh = (n) => parseFloat(n) / 100, Dh = (n) => Er(kh(n), 0, 1), Us = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }), hM = {
|
|
15231
15232
|
box: (n) => Us(n.centerX, n.centerY),
|
|
15232
15233
|
ellipse: (n) => ({ centerX: n.centerX, centerY: n.centerX, radius: 0, width: 0, height: 0 }),
|
|
15233
15234
|
label: (n) => Us(n.centerX, n.centerY),
|
|
@@ -15236,10 +15237,10 @@ const Sh = (n) => typeof n == "string" && n.endsWith("%"), kh = (n) => parseFloa
|
|
|
15236
15237
|
polygon: (n) => Us(n.centerX, n.centerY)
|
|
15237
15238
|
};
|
|
15238
15239
|
function No(n, t) {
|
|
15239
|
-
return t === "start" ? 0 : t === "end" ? n : Sh(t) ?
|
|
15240
|
+
return t === "start" ? 0 : t === "end" ? n : Sh(t) ? Dh(t) * n : n / 2;
|
|
15240
15241
|
}
|
|
15241
15242
|
function Pn(n, t, e = !0) {
|
|
15242
|
-
return typeof t == "number" ? t : Sh(t) ? (e ?
|
|
15243
|
+
return typeof t == "number" ? t : Sh(t) ? (e ? Dh(t) : kh(t)) * n : n;
|
|
15243
15244
|
}
|
|
15244
15245
|
function fM(n, t) {
|
|
15245
15246
|
const { x: e, width: i } = n, s = t.textAlign;
|
|
@@ -15254,7 +15255,7 @@ function Fo(n, t = "center") {
|
|
|
15254
15255
|
y: n
|
|
15255
15256
|
});
|
|
15256
15257
|
}
|
|
15257
|
-
function
|
|
15258
|
+
function Th(n) {
|
|
15258
15259
|
return n && (_e(n.xValue) || _e(n.yValue));
|
|
15259
15260
|
}
|
|
15260
15261
|
function gs(n, t, e) {
|
|
@@ -15411,8 +15412,8 @@ function MM(n, { x: t, y: e }, i, { fonts: s, colors: r }) {
|
|
|
15411
15412
|
});
|
|
15412
15413
|
}
|
|
15413
15414
|
function SM(n, t) {
|
|
15414
|
-
const e =
|
|
15415
|
-
return
|
|
15415
|
+
const e = Tn(n) ? n : t;
|
|
15416
|
+
return Tn(e) ? Er(e, 0, 1) : 1;
|
|
15416
15417
|
}
|
|
15417
15418
|
const ru = {
|
|
15418
15419
|
xScaleID: { min: "xMin", max: "xMax", start: "left", end: "right", startProp: "x", endProp: "x2" },
|
|
@@ -15462,7 +15463,7 @@ function Bo(n, t) {
|
|
|
15462
15463
|
};
|
|
15463
15464
|
}
|
|
15464
15465
|
function Rh(n, t) {
|
|
15465
|
-
if (!
|
|
15466
|
+
if (!Th(t)) {
|
|
15466
15467
|
const e = Bo(n, t);
|
|
15467
15468
|
let i = t.radius;
|
|
15468
15469
|
(!i || isNaN(i)) && (i = Math.min(e.width, e.height) / 2, t.radius = i);
|
|
@@ -15479,11 +15480,11 @@ function Rh(n, t) {
|
|
|
15479
15480
|
radius: i
|
|
15480
15481
|
};
|
|
15481
15482
|
}
|
|
15482
|
-
return
|
|
15483
|
+
return DM(n, t);
|
|
15483
15484
|
}
|
|
15484
15485
|
function kM(n, t) {
|
|
15485
15486
|
const { scales: e, chartArea: i } = n, s = e[t.scaleID], r = { x: i.left, y: i.top, x2: i.right, y2: i.bottom };
|
|
15486
|
-
return s ?
|
|
15487
|
+
return s ? TM(s, r, t) : CM(e, r, t), r;
|
|
15487
15488
|
}
|
|
15488
15489
|
function Lh(n, t) {
|
|
15489
15490
|
const e = Bo(n, t);
|
|
@@ -15494,7 +15495,7 @@ function Lh(n, t) {
|
|
|
15494
15495
|
initProperties: e.initProperties
|
|
15495
15496
|
}], e;
|
|
15496
15497
|
}
|
|
15497
|
-
function
|
|
15498
|
+
function DM(n, t) {
|
|
15498
15499
|
const e = Ah(n, t), i = t.radius * 2;
|
|
15499
15500
|
return {
|
|
15500
15501
|
x: e.x - t.radius + t.xAdjust,
|
|
@@ -15515,7 +15516,7 @@ function au(n, t) {
|
|
|
15515
15516
|
end: Math.max(e.start, e.end)
|
|
15516
15517
|
};
|
|
15517
15518
|
}
|
|
15518
|
-
function
|
|
15519
|
+
function TM(n, t, e) {
|
|
15519
15520
|
const i = mi(n, e.value, NaN), s = mi(n, e.endValue, i);
|
|
15520
15521
|
n.isHorizontal() ? (t.x = i, t.x2 = s) : (t.y = i, t.y2 = s);
|
|
15521
15522
|
}
|
|
@@ -15783,7 +15784,7 @@ class ps extends te {
|
|
|
15783
15784
|
}
|
|
15784
15785
|
resolveElementProperties(t, e) {
|
|
15785
15786
|
let i;
|
|
15786
|
-
if (
|
|
15787
|
+
if (Th(e))
|
|
15787
15788
|
i = Ah(t, e);
|
|
15788
15789
|
else {
|
|
15789
15790
|
const { centerX: o, centerY: l } = Bo(t, e);
|
|
@@ -16595,7 +16596,7 @@ function qs(n, t, e) {
|
|
|
16595
16596
|
e && os(i, s);
|
|
16596
16597
|
const a = kS(r.visibleElements, t).sort((o, l) => o.element.options.z - l.element.options.z);
|
|
16597
16598
|
for (const o of a)
|
|
16598
|
-
|
|
16599
|
+
DS(i, s, r, o);
|
|
16599
16600
|
e && ls(i);
|
|
16600
16601
|
}
|
|
16601
16602
|
function kS(n, t) {
|
|
@@ -16606,11 +16607,11 @@ function kS(n, t) {
|
|
|
16606
16607
|
s.options.display && s.options.drawTime === t && e.push({ element: s });
|
|
16607
16608
|
return e;
|
|
16608
16609
|
}
|
|
16609
|
-
function
|
|
16610
|
+
function DS(n, t, e, i) {
|
|
16610
16611
|
const s = i.element;
|
|
16611
16612
|
i.main ? (lu(e, s, "beforeDraw"), s.draw(n, t), lu(e, s, "afterDraw")) : s.draw(n, t);
|
|
16612
16613
|
}
|
|
16613
|
-
const
|
|
16614
|
+
const TS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES = "48px", AS = { class: "tooltip-title" }, RS = { class: "title font-bold" }, LS = {
|
|
16614
16615
|
key: 1,
|
|
16615
16616
|
class: "subtitle"
|
|
16616
16617
|
}, IS = { class: "tooltip" }, NS = { key: 0 }, FS = { class: "display-label" }, zS = { class: "display-value" }, HS = /* @__PURE__ */ ce({
|
|
@@ -16717,7 +16718,7 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16717
16718
|
n.locked ? (Q(), ae(at(bg), {
|
|
16718
16719
|
key: 0,
|
|
16719
16720
|
class: "drag-icon",
|
|
16720
|
-
color: at(
|
|
16721
|
+
color: at(TS)
|
|
16721
16722
|
}, null, 8, ["color"])) : Vt("", !0),
|
|
16722
16723
|
n.context ? (Q(), ut("span", LS, lt(n.context), 1)) : Vt("", !0)
|
|
16723
16724
|
]),
|
|
@@ -16779,8 +16780,8 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16779
16780
|
if (e.value && r.value === Ht.Bottom) {
|
|
16780
16781
|
let M = 0;
|
|
16781
16782
|
i.value.forEach((k) => {
|
|
16782
|
-
const
|
|
16783
|
-
|
|
16783
|
+
const T = Array.from(k.children).reduce((D, y) => D + y.offsetWidth, 0);
|
|
16784
|
+
T > M && (M = T);
|
|
16784
16785
|
});
|
|
16785
16786
|
const C = parseInt(OS, 10);
|
|
16786
16787
|
e.value.style.gridTemplateColumns = `repeat(auto-fit, ${M + C}px)`;
|
|
@@ -16798,8 +16799,8 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16798
16799
|
h() && d();
|
|
16799
16800
|
}, { immediate: !0, flush: "post" });
|
|
16800
16801
|
const f = st(0), g = st(0), m = new ResizeObserver(dh((M) => {
|
|
16801
|
-
const C = M[0], k = C.contentRect.width,
|
|
16802
|
-
k !== f.value &&
|
|
16802
|
+
const C = M[0], k = C.contentRect.width, T = C.contentRect.height;
|
|
16803
|
+
k !== f.value && T === g.value && d(), f.value = k, g.value = T;
|
|
16803
16804
|
}, 100));
|
|
16804
16805
|
Se(() => r.value, () => {
|
|
16805
16806
|
d();
|
|
@@ -16818,8 +16819,8 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16818
16819
|
}, _ = (M = 0, C) => {
|
|
16819
16820
|
if (t.chartInstance === null || t.chartInstance.chart === null)
|
|
16820
16821
|
return !0;
|
|
16821
|
-
const k = t.chartInstance instanceof Ae ? t.chartInstance : t.chartInstance.chart,
|
|
16822
|
-
return
|
|
16822
|
+
const k = t.chartInstance instanceof Ae ? t.chartInstance : t.chartInstance.chart, T = k.getDatasetMeta(M);
|
|
16823
|
+
return T.dataset || C === void 0 ? k.isDatasetVisible(M) : !(T.data.length && T.data[C].hidden);
|
|
16823
16824
|
}, w = (M) => ({
|
|
16824
16825
|
[Ht.Right]: "vertical",
|
|
16825
16826
|
[Ht.Bottom]: "horizontal",
|
|
@@ -16832,8 +16833,8 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16832
16833
|
class: jn(["legend-container", w(at(r))]),
|
|
16833
16834
|
"data-testid": "legend"
|
|
16834
16835
|
}, [
|
|
16835
|
-
(Q(!0), ut(Zi, null, no(n.items, ({ fillStyle: k, strokeStyle:
|
|
16836
|
-
key:
|
|
16836
|
+
(Q(!0), ut(Zi, null, no(n.items, ({ fillStyle: k, strokeStyle: T, text: D, datasetIndex: y, index: x, value: S }) => (Q(), ut("li", {
|
|
16837
|
+
key: D,
|
|
16837
16838
|
ref_for: !0,
|
|
16838
16839
|
ref_key: "legendItemsRef",
|
|
16839
16840
|
ref: i,
|
|
@@ -16841,15 +16842,15 @@ const DS = "#6c7489", CS = "#995c00", PS = "20px", Su = "24px", OS = "40px", ES
|
|
|
16841
16842
|
}, [
|
|
16842
16843
|
ct("div", {
|
|
16843
16844
|
class: "square-marker",
|
|
16844
|
-
style: Un({ background: k, "border-color":
|
|
16845
|
+
style: Un({ background: k, "border-color": T })
|
|
16845
16846
|
}, null, 4),
|
|
16846
16847
|
ct("div", {
|
|
16847
16848
|
class: jn(["label-container", { "strike-through": !_(y, x) }])
|
|
16848
16849
|
}, [
|
|
16849
16850
|
ct("div", {
|
|
16850
16851
|
class: jn(["label", { "truncate-label": c.value }]),
|
|
16851
|
-
title:
|
|
16852
|
-
}, lt(
|
|
16852
|
+
title: D
|
|
16853
|
+
}, lt(D), 11, WS),
|
|
16853
16854
|
S && at(s) ? (Q(), ut("div", YS, lt(S.formatted), 1)) : Vt("", !0)
|
|
16854
16855
|
], 2)
|
|
16855
16856
|
], 8, BS))), 128))
|
|
@@ -16885,14 +16886,14 @@ function kn(n, t, e) {
|
|
|
16885
16886
|
}
|
|
16886
16887
|
return qS(i);
|
|
16887
16888
|
}
|
|
16888
|
-
const
|
|
16889
|
+
const Du = (n, t) => {
|
|
16889
16890
|
const e = n.ctx, i = n.scales.y, s = n.scales.x, r = t[t.length - 1].element;
|
|
16890
16891
|
e.save(), e.strokeStyle = "rgba(100, 100, 100, 1)", e.lineWidth = 3, n.options.indexAxis === "x" ? e.strokeRect(r.x - r.width / 2, r.y, r.width, i.bottom - r.y) : e.strokeRect(s.left, r.y - r.height / 2, r.x - s.left, r.height), e.restore();
|
|
16891
16892
|
}, Wh = {
|
|
16892
16893
|
id: "highlightPlugin",
|
|
16893
16894
|
clicked: !1,
|
|
16894
16895
|
afterDatasetsDraw: function(n) {
|
|
16895
|
-
this.clickedElements && this.clickedElements.length &&
|
|
16896
|
+
this.clickedElements && this.clickedElements.length && Du(n, this.clickedElements);
|
|
16896
16897
|
},
|
|
16897
16898
|
afterEvent: function(n, { event: t }) {
|
|
16898
16899
|
var s;
|
|
@@ -16900,12 +16901,12 @@ const Tu = (n, t) => {
|
|
|
16900
16901
|
return;
|
|
16901
16902
|
this.clicked = !this.clicked;
|
|
16902
16903
|
const e = ((s = n.options.interaction) == null ? void 0 : s.mode) || "index", i = n.getElementsAtEventForMode(t.native, e, { intersect: !1 }, !0);
|
|
16903
|
-
i.length && this.clicked ? (this.clickedElements = i,
|
|
16904
|
+
i.length && this.clicked ? (this.clickedElements = i, Du(n, this.clickedElements), this.previousHoverOption = n.options.hover, n.options.hover = { mode: null }) : (delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1);
|
|
16904
16905
|
},
|
|
16905
16906
|
beforeDestroy(n) {
|
|
16906
16907
|
delete this.clickedElements, n.options.hover = this.previousHoverOption || n.options.hover, this.clicked = !1;
|
|
16907
16908
|
}
|
|
16908
|
-
},
|
|
16909
|
+
}, Tu = 6, XS = "100%", GS = "100%", KS = 20, ZS = 20, Cu = 6, QS = 0, JS = 10, tk = 10, ek = 1, nk = /* @__PURE__ */ ce({
|
|
16909
16910
|
__name: "StackedBarChart",
|
|
16910
16911
|
props: {
|
|
16911
16912
|
chartData: {
|
|
@@ -17053,8 +17054,8 @@ const Tu = (n, t) => {
|
|
|
17053
17054
|
const j = z.event, V = R.options.indexAxis, Z = R.scales, Y = R.scales[V].getLabelForValue(Number(R.scales[V].getValueForPixel(j[V])));
|
|
17054
17055
|
if (((et) => et === "x" ? j.y > Z.x.top : j.x < Z.y.right)(V))
|
|
17055
17056
|
if (_.locked || (_.showTooltip = !1), Y.length > ja) {
|
|
17056
|
-
const X = R.canvas.getContext("2d").measureText(Y).width,
|
|
17057
|
-
g.value.left = V === "x" ? `${(
|
|
17057
|
+
const X = R.canvas.getContext("2d").measureText(Y).width, Dt = Math.abs(Math.round(j.x - X * 0.5)), ht = Math.round(j.x + X * 0.5);
|
|
17058
|
+
g.value.left = V === "x" ? `${(Dt > 0 ? Dt : ht) - g.value.offset}px` : `${j.x - X * 0.5 - g.value.offset}px`, g.value.top = `${j.y - 50}px`, g.value.show = !0, g.value.text = Y;
|
|
17058
17059
|
} else
|
|
17059
17060
|
g.value.show = !1;
|
|
17060
17061
|
else
|
|
@@ -17109,7 +17110,7 @@ const Tu = (n, t) => {
|
|
|
17109
17110
|
autoPadding: !1,
|
|
17110
17111
|
padding: {
|
|
17111
17112
|
right: 0,
|
|
17112
|
-
top: 6 *
|
|
17113
|
+
top: 6 * Tu
|
|
17113
17114
|
// Allow for two lines of text above vertical bar
|
|
17114
17115
|
}
|
|
17115
17116
|
}
|
|
@@ -17123,7 +17124,7 @@ const Tu = (n, t) => {
|
|
|
17123
17124
|
), I = H(() => {
|
|
17124
17125
|
w.value;
|
|
17125
17126
|
const R = t.chartData.labels, z = t.chartData.datasets, j = R.map((Y, W) => z.reduce((et, X) => isNaN(Number(X.data[W])) ? et : et + Number(X.data[W]), 0)), V = $.value ? Hc($.value, t.chartData) : Fw(t.chartData);
|
|
17126
|
-
return j.map((Y) => zc(ra(Y, m.value) + Bc(Y, V))).reduce((Y, W) => Math.max(Y, W), 0) +
|
|
17127
|
+
return j.map((Y) => zc(ra(Y, m.value) + Bc(Y, V))).reduce((Y, W) => Math.max(Y, W), 0) + Tu;
|
|
17127
17128
|
});
|
|
17128
17129
|
eo(() => {
|
|
17129
17130
|
Ae.unregister(Mu);
|
|
@@ -17241,7 +17242,7 @@ Md._date.override({
|
|
|
17241
17242
|
if (n === null || typeof n > "u")
|
|
17242
17243
|
return null;
|
|
17243
17244
|
const e = typeof n;
|
|
17244
|
-
return e === "number" || n instanceof Date ? n = G(n) : e === "string" && (typeof t == "string" ? n = ew(n, t, /* @__PURE__ */ new Date(), this.options) : n = ch(n, this.options)),
|
|
17245
|
+
return e === "number" || n instanceof Date ? n = G(n) : e === "string" && (typeof t == "string" ? n = ew(n, t, /* @__PURE__ */ new Date(), this.options) : n = ch(n, this.options)), Do(n) ? n.getTime() : null;
|
|
17245
17246
|
},
|
|
17246
17247
|
format: function(n, t) {
|
|
17247
17248
|
return sh(n, t, this.options);
|
|
@@ -17257,7 +17258,7 @@ Md._date.override({
|
|
|
17257
17258
|
case "hour":
|
|
17258
17259
|
return Y0(n, t);
|
|
17259
17260
|
case "day":
|
|
17260
|
-
return
|
|
17261
|
+
return Tr(n, t);
|
|
17261
17262
|
case "week":
|
|
17262
17263
|
return X0(n, t);
|
|
17263
17264
|
case "month":
|
|
@@ -17785,9 +17786,9 @@ const hk = /* @__PURE__ */ qo("bar", qi), Uh = /* @__PURE__ */ qo("doughnut", xn
|
|
|
17785
17786
|
var ai = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(ai || {}), xr = { exports: {} };
|
|
17786
17787
|
xr.exports;
|
|
17787
17788
|
(function(n, t) {
|
|
17788
|
-
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", g = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", w = "[object Object]", M = "[object Promise]", C = "[object RegExp]", k = "[object Set]",
|
|
17789
|
-
Y[O] = Y[A] = Y[N] = Y[U] = Y[K] = Y[$] = Y[I] = Y[rt] = Y[F] = !0, Y[c] = Y[u] = Y[x] = Y[d] = Y[S] = Y[h] = Y[f] = Y[g] = Y[b] = Y[_] = Y[w] = Y[C] = Y[k] = Y[
|
|
17790
|
-
var W = typeof be == "object" && be && be.Object === Object && be, et = typeof self == "object" && self && self.Object === Object && self, X = W || et || Function("return this")(),
|
|
17789
|
+
var e = 200, i = "Expected a function", s = "__lodash_hash_undefined__", r = 1, a = 2, o = 1 / 0, l = 9007199254740991, c = "[object Arguments]", u = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", g = "[object Function]", m = "[object GeneratorFunction]", b = "[object Map]", _ = "[object Number]", w = "[object Object]", M = "[object Promise]", C = "[object RegExp]", k = "[object Set]", T = "[object String]", D = "[object Symbol]", y = "[object WeakMap]", x = "[object ArrayBuffer]", S = "[object DataView]", O = "[object Float32Array]", A = "[object Float64Array]", N = "[object Int8Array]", U = "[object Int16Array]", K = "[object Int32Array]", $ = "[object Uint8Array]", I = "[object Uint8ClampedArray]", rt = "[object Uint16Array]", F = "[object Uint32Array]", zt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, kt = /^\w*$/, B = /^\./, R = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, z = /[\\^$.*+?()[\]{}|]/g, j = /\\(\\)?/g, V = /^\[object .+?Constructor\]$/, Z = /^(?:0|[1-9]\d*)$/, Y = {};
|
|
17790
|
+
Y[O] = Y[A] = Y[N] = Y[U] = Y[K] = Y[$] = Y[I] = Y[rt] = Y[F] = !0, Y[c] = Y[u] = Y[x] = Y[d] = Y[S] = Y[h] = Y[f] = Y[g] = Y[b] = Y[_] = Y[w] = Y[C] = Y[k] = Y[T] = Y[y] = !1;
|
|
17791
|
+
var W = typeof be == "object" && be && be.Object === Object && be, et = typeof self == "object" && self && self.Object === Object && self, X = W || et || Function("return this")(), Dt = t && !t.nodeType && t, ht = Dt && !0 && n && !n.nodeType && n, Xt = ht && ht.exports === Dt, Et = Xt && W.process, wt = function() {
|
|
17791
17792
|
try {
|
|
17792
17793
|
return Et && Et.binding("util");
|
|
17793
17794
|
} catch {
|
|
@@ -17814,7 +17815,7 @@ xr.exports;
|
|
|
17814
17815
|
return p(v);
|
|
17815
17816
|
};
|
|
17816
17817
|
}
|
|
17817
|
-
function
|
|
17818
|
+
function Tt(p, v) {
|
|
17818
17819
|
return p == null ? void 0 : p[v];
|
|
17819
17820
|
}
|
|
17820
17821
|
function At(p) {
|
|
@@ -17843,8 +17844,8 @@ xr.exports;
|
|
|
17843
17844
|
E[++v] = L;
|
|
17844
17845
|
}), E;
|
|
17845
17846
|
}
|
|
17846
|
-
var Le = Array.prototype, Xe = Function.prototype, we = Object.prototype,
|
|
17847
|
-
var p = /[^.]+$/.exec(
|
|
17847
|
+
var Le = Array.prototype, Xe = Function.prototype, we = Object.prototype, De = X["__core-js_shared__"], Ie = function() {
|
|
17848
|
+
var p = /[^.]+$/.exec(De && De.keys && De.keys.IE_PROTO || "");
|
|
17848
17849
|
return p ? "Symbol(src)_1." + p : "";
|
|
17849
17850
|
}(), se = Xe.toString, ge = we.hasOwnProperty, qt = we.toString, bs = RegExp(
|
|
17850
17851
|
"^" + se.call(ge).replace(z, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
@@ -17953,10 +17954,10 @@ xr.exports;
|
|
|
17953
17954
|
function kf() {
|
|
17954
17955
|
this.__data__ = new Ge();
|
|
17955
17956
|
}
|
|
17956
|
-
function
|
|
17957
|
+
function Df(p) {
|
|
17957
17958
|
return this.__data__.delete(p);
|
|
17958
17959
|
}
|
|
17959
|
-
function
|
|
17960
|
+
function Tf(p) {
|
|
17960
17961
|
return this.__data__.get(p);
|
|
17961
17962
|
}
|
|
17962
17963
|
function Cf(p) {
|
|
@@ -17972,7 +17973,7 @@ xr.exports;
|
|
|
17972
17973
|
}
|
|
17973
17974
|
return E.set(p, v), this;
|
|
17974
17975
|
}
|
|
17975
|
-
Ze.prototype.clear = kf, Ze.prototype.delete =
|
|
17976
|
+
Ze.prototype.clear = kf, Ze.prototype.delete = Df, Ze.prototype.get = Tf, Ze.prototype.has = Cf, Ze.prototype.set = Pf;
|
|
17976
17977
|
function Of(p, v) {
|
|
17977
17978
|
var E = Ln(p) || sl(p) ? Re(p.length, String) : [], L = E.length, nt = !!L;
|
|
17978
17979
|
for (var q in p)
|
|
@@ -17987,7 +17988,7 @@ xr.exports;
|
|
|
17987
17988
|
}
|
|
17988
17989
|
var Ef = Uf();
|
|
17989
17990
|
function Af(p, v) {
|
|
17990
|
-
return p && Ef(p, v,
|
|
17991
|
+
return p && Ef(p, v, Ts);
|
|
17991
17992
|
}
|
|
17992
17993
|
function Zo(p, v) {
|
|
17993
17994
|
v = Ms(v, p) ? [v] : Qo(v);
|
|
@@ -18002,7 +18003,7 @@ xr.exports;
|
|
|
18002
18003
|
return p != null && v in Object(p);
|
|
18003
18004
|
}
|
|
18004
18005
|
function Br(p, v, E, L, nt) {
|
|
18005
|
-
return p === v ? !0 : p == null || v == null || !ks(p) && !
|
|
18006
|
+
return p === v ? !0 : p == null || v == null || !ks(p) && !Ds(v) ? p !== p && v !== v : If(p, v, Br, E, L, nt);
|
|
18006
18007
|
}
|
|
18007
18008
|
function If(p, v, E, L, nt, q) {
|
|
18008
18009
|
var gt = Ln(p), vt = Ln(v), Lt = u, Gt = u;
|
|
@@ -18011,9 +18012,9 @@ xr.exports;
|
|
|
18011
18012
|
if (Kt && !re)
|
|
18012
18013
|
return q || (q = new Ze()), gt || eg(p) ? Jo(p, v, E, L, nt, q) : qf(p, v, Lt, E, L, nt, q);
|
|
18013
18014
|
if (!(nt & a)) {
|
|
18014
|
-
var
|
|
18015
|
-
if (
|
|
18016
|
-
var dn =
|
|
18015
|
+
var Te = re && ge.call(p, "__wrapped__"), Ce = pe && ge.call(v, "__wrapped__");
|
|
18016
|
+
if (Te || Ce) {
|
|
18017
|
+
var dn = Te ? p.value() : p, Qe = Ce ? v.value() : v;
|
|
18017
18018
|
return q || (q = new Ze()), E(dn, Qe, L, nt, q);
|
|
18018
18019
|
}
|
|
18019
18020
|
}
|
|
@@ -18051,7 +18052,7 @@ xr.exports;
|
|
|
18051
18052
|
return v.test(Rn(p));
|
|
18052
18053
|
}
|
|
18053
18054
|
function zf(p) {
|
|
18054
|
-
return
|
|
18055
|
+
return Ds(p) && Yr(p.length) && !!Y[qt.call(p)];
|
|
18055
18056
|
}
|
|
18056
18057
|
function Hf(p) {
|
|
18057
18058
|
return typeof p == "function" ? p : p == null ? ag : typeof p == "object" ? Ln(p) ? Yf(p[0], p[1]) : Wf(p) : og(p);
|
|
@@ -18111,9 +18112,9 @@ xr.exports;
|
|
|
18111
18112
|
return Gt == v;
|
|
18112
18113
|
var re = -1, pe = !0, Kt = nt & r ? new _s() : void 0;
|
|
18113
18114
|
for (q.set(p, v), q.set(v, p); ++re < vt; ) {
|
|
18114
|
-
var
|
|
18115
|
+
var Te = p[re], Ce = v[re];
|
|
18115
18116
|
if (L)
|
|
18116
|
-
var dn = gt ? L(Ce,
|
|
18117
|
+
var dn = gt ? L(Ce, Te, re, v, p, q) : L(Te, Ce, re, p, v, q);
|
|
18117
18118
|
if (dn !== void 0) {
|
|
18118
18119
|
if (dn)
|
|
18119
18120
|
continue;
|
|
@@ -18122,13 +18123,13 @@ xr.exports;
|
|
|
18122
18123
|
}
|
|
18123
18124
|
if (Kt) {
|
|
18124
18125
|
if (!he(v, function(Qe, In) {
|
|
18125
|
-
if (!Kt.has(In) && (
|
|
18126
|
+
if (!Kt.has(In) && (Te === Qe || E(Te, Qe, L, nt, q)))
|
|
18126
18127
|
return Kt.add(In);
|
|
18127
18128
|
})) {
|
|
18128
18129
|
pe = !1;
|
|
18129
18130
|
break;
|
|
18130
18131
|
}
|
|
18131
|
-
} else if (!(
|
|
18132
|
+
} else if (!(Te === Ce || E(Te, Ce, L, nt, q))) {
|
|
18132
18133
|
pe = !1;
|
|
18133
18134
|
break;
|
|
18134
18135
|
}
|
|
@@ -18150,7 +18151,7 @@ xr.exports;
|
|
|
18150
18151
|
case f:
|
|
18151
18152
|
return p.name == v.name && p.message == v.message;
|
|
18152
18153
|
case C:
|
|
18153
|
-
case
|
|
18154
|
+
case T:
|
|
18154
18155
|
return p == v + "";
|
|
18155
18156
|
case b:
|
|
18156
18157
|
var vt = Ve;
|
|
@@ -18164,14 +18165,14 @@ xr.exports;
|
|
|
18164
18165
|
q |= r, gt.set(p, v);
|
|
18165
18166
|
var re = Jo(vt(p), vt(v), L, nt, q, gt);
|
|
18166
18167
|
return gt.delete(p), re;
|
|
18167
|
-
case
|
|
18168
|
+
case D:
|
|
18168
18169
|
if (Hr)
|
|
18169
18170
|
return Hr.call(p) == Hr.call(v);
|
|
18170
18171
|
}
|
|
18171
18172
|
return !1;
|
|
18172
18173
|
}
|
|
18173
18174
|
function Vf(p, v, E, L, nt, q) {
|
|
18174
|
-
var gt = nt & a, vt =
|
|
18175
|
+
var gt = nt & a, vt = Ts(p), Lt = vt.length, Gt = Ts(v), re = Gt.length;
|
|
18175
18176
|
if (Lt != re && !gt)
|
|
18176
18177
|
return !1;
|
|
18177
18178
|
for (var pe = Lt; pe--; ) {
|
|
@@ -18179,9 +18180,9 @@ xr.exports;
|
|
|
18179
18180
|
if (!(gt ? Kt in v : ge.call(v, Kt)))
|
|
18180
18181
|
return !1;
|
|
18181
18182
|
}
|
|
18182
|
-
var
|
|
18183
|
-
if (
|
|
18184
|
-
return
|
|
18183
|
+
var Te = q.get(p);
|
|
18184
|
+
if (Te && q.get(v))
|
|
18185
|
+
return Te == v;
|
|
18185
18186
|
var Ce = !0;
|
|
18186
18187
|
q.set(p, v), q.set(v, p);
|
|
18187
18188
|
for (var dn = gt; ++pe < Lt; ) {
|
|
@@ -18206,14 +18207,14 @@ xr.exports;
|
|
|
18206
18207
|
return Kf(v) ? E[typeof v == "string" ? "string" : "hash"] : E.map;
|
|
18207
18208
|
}
|
|
18208
18209
|
function Xf(p) {
|
|
18209
|
-
for (var v =
|
|
18210
|
+
for (var v = Ts(p), E = v.length; E--; ) {
|
|
18210
18211
|
var L = v[E], nt = p[L];
|
|
18211
18212
|
v[E] = [L, nt, el(nt)];
|
|
18212
18213
|
}
|
|
18213
18214
|
return v;
|
|
18214
18215
|
}
|
|
18215
18216
|
function Jn(p, v) {
|
|
18216
|
-
var E =
|
|
18217
|
+
var E = Tt(p, v);
|
|
18217
18218
|
return Ff(E) ? E : void 0;
|
|
18218
18219
|
}
|
|
18219
18220
|
var un = Rf;
|
|
@@ -18325,7 +18326,7 @@ xr.exports;
|
|
|
18325
18326
|
return p != null && Yr(p.length) && !al(p);
|
|
18326
18327
|
}
|
|
18327
18328
|
function tg(p) {
|
|
18328
|
-
return
|
|
18329
|
+
return Ds(p) && rl(p);
|
|
18329
18330
|
}
|
|
18330
18331
|
function al(p) {
|
|
18331
18332
|
var v = ks(p) ? qt.call(p) : "";
|
|
@@ -18338,11 +18339,11 @@ xr.exports;
|
|
|
18338
18339
|
var v = typeof p;
|
|
18339
18340
|
return !!p && (v == "object" || v == "function");
|
|
18340
18341
|
}
|
|
18341
|
-
function
|
|
18342
|
+
function Ds(p) {
|
|
18342
18343
|
return !!p && typeof p == "object";
|
|
18343
18344
|
}
|
|
18344
18345
|
function jr(p) {
|
|
18345
|
-
return typeof p == "symbol" ||
|
|
18346
|
+
return typeof p == "symbol" || Ds(p) && qt.call(p) == D;
|
|
18346
18347
|
}
|
|
18347
18348
|
var eg = de ? fe(de) : zf;
|
|
18348
18349
|
function ng(p) {
|
|
@@ -18355,7 +18356,7 @@ xr.exports;
|
|
|
18355
18356
|
function sg(p, v) {
|
|
18356
18357
|
return p != null && Gf(p, v, Lf);
|
|
18357
18358
|
}
|
|
18358
|
-
function
|
|
18359
|
+
function Ts(p) {
|
|
18359
18360
|
return rl(p) ? Of(p) : Bf(p);
|
|
18360
18361
|
}
|
|
18361
18362
|
function rg(p, v) {
|
|
@@ -18374,7 +18375,7 @@ xr.exports;
|
|
|
18374
18375
|
})(xr, xr.exports);
|
|
18375
18376
|
var xk = xr.exports;
|
|
18376
18377
|
const _k = /* @__PURE__ */ Ro(xk);
|
|
18377
|
-
var wk = 1 / 0, vk = 9007199254740991, Mk = "[object Arguments]", Sk = "[object Function]", kk = "[object GeneratorFunction]",
|
|
18378
|
+
var wk = 1 / 0, vk = 9007199254740991, Mk = "[object Arguments]", Sk = "[object Function]", kk = "[object GeneratorFunction]", Dk = "[object Symbol]", Tk = typeof be == "object" && be && be.Object === Object && be, Ck = typeof self == "object" && self && self.Object === Object && self, Pk = Tk || Ck || Function("return this")();
|
|
18378
18379
|
function Ok(n, t, e) {
|
|
18379
18380
|
switch (e.length) {
|
|
18380
18381
|
case 0:
|
|
@@ -18463,7 +18464,7 @@ function Vh(n) {
|
|
|
18463
18464
|
return !!n && typeof n == "object";
|
|
18464
18465
|
}
|
|
18465
18466
|
function Vk(n) {
|
|
18466
|
-
return typeof n == "symbol" || Vh(n) && Xo.call(n) ==
|
|
18467
|
+
return typeof n == "symbol" || Vh(n) && Xo.call(n) == Dk;
|
|
18467
18468
|
}
|
|
18468
18469
|
var Xk = Fk(function(n, t) {
|
|
18469
18470
|
return n == null ? {} : Ik(n, Ek(qh(t, 1), Hk));
|
|
@@ -18551,18 +18552,18 @@ License: MIT
|
|
|
18551
18552
|
})(be, function e() {
|
|
18552
18553
|
var i = typeof self < "u" ? self : typeof window < "u" ? window : i !== void 0 ? i : {}, s = !i.document && !!i.postMessage, r = i.IS_PAPA_WORKER || !1, a = {}, o = 0, l = { parse: function(y, x) {
|
|
18553
18554
|
var S = (x = x || {}).dynamicTyping || !1;
|
|
18554
|
-
if (
|
|
18555
|
+
if (D(S) && (x.dynamicTypingFunction = S, S = {}), x.dynamicTyping = S, x.transform = !!D(x.transform) && x.transform, x.worker && l.WORKERS_SUPPORTED) {
|
|
18555
18556
|
var O = function() {
|
|
18556
18557
|
if (!l.WORKERS_SUPPORTED) return !1;
|
|
18557
18558
|
var N = (K = i.URL || i.webkitURL || null, $ = e.toString(), l.BLOB_URL || (l.BLOB_URL = K.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", $, ")();"], { type: "text/javascript" })))), U = new i.Worker(N), K, $;
|
|
18558
18559
|
return U.onmessage = w, U.id = o++, a[U.id] = U;
|
|
18559
18560
|
}();
|
|
18560
|
-
return O.userStep = x.step, O.userChunk = x.chunk, O.userComplete = x.complete, O.userError = x.error, x.step =
|
|
18561
|
+
return O.userStep = x.step, O.userChunk = x.chunk, O.userComplete = x.complete, O.userError = x.error, x.step = D(x.step), x.chunk = D(x.chunk), x.complete = D(x.complete), x.error = D(x.error), delete x.worker, void O.postMessage({ input: y, config: x, workerId: O.id });
|
|
18561
18562
|
}
|
|
18562
18563
|
var A = null;
|
|
18563
18564
|
return l.NODE_STREAM_INPUT, typeof y == "string" ? (y = function(N) {
|
|
18564
18565
|
return N.charCodeAt(0) === 65279 ? N.slice(1) : N;
|
|
18565
|
-
}(y), A = x.download ? new d(x) : new f(x)) : y.readable === !0 &&
|
|
18566
|
+
}(y), A = x.download ? new d(x) : new f(x)) : y.readable === !0 && D(y.read) && D(y.on) ? A = new g(x) : (i.File && y instanceof File || y instanceof Object) && (A = new h(x)), A.stream(y);
|
|
18566
18567
|
}, unparse: function(y, x) {
|
|
18567
18568
|
var S = !1, O = !0, A = ",", N = `\r
|
|
18568
18569
|
`, U = '"', K = U + U, $ = !1, I = null, rt = !1;
|
|
@@ -18592,7 +18593,7 @@ License: MIT
|
|
|
18592
18593
|
0 < R.length && (j += N);
|
|
18593
18594
|
}
|
|
18594
18595
|
for (var W = 0; W < R.length; W++) {
|
|
18595
|
-
var et = V ? B.length : R[W].length, X = !1,
|
|
18596
|
+
var et = V ? B.length : R[W].length, X = !1, Dt = V ? Object.keys(R[W]).length === 0 : R[W].length === 0;
|
|
18596
18597
|
if (z && !V && (X = z === "greedy" ? R[W].join("").trim() === "" : R[W].length === 1 && R[W][0].length === 0), z === "greedy" && V) {
|
|
18597
18598
|
for (var ht = [], Xt = 0; Xt < et; Xt++) {
|
|
18598
18599
|
var Et = Z ? B[Xt] : Xt;
|
|
@@ -18602,11 +18603,11 @@ License: MIT
|
|
|
18602
18603
|
}
|
|
18603
18604
|
if (!X) {
|
|
18604
18605
|
for (var wt = 0; wt < et; wt++) {
|
|
18605
|
-
0 < wt && !
|
|
18606
|
+
0 < wt && !Dt && (j += A);
|
|
18606
18607
|
var de = V && Z ? B[wt] : wt;
|
|
18607
18608
|
j += kt(R[W][de], wt);
|
|
18608
18609
|
}
|
|
18609
|
-
W < R.length - 1 && (!z || 0 < et && !
|
|
18610
|
+
W < R.length - 1 && (!z || 0 < et && !Dt) && (j += N);
|
|
18610
18611
|
}
|
|
18611
18612
|
}
|
|
18612
18613
|
return j;
|
|
@@ -18635,19 +18636,19 @@ License: MIT
|
|
|
18635
18636
|
function O() {
|
|
18636
18637
|
if (S.length !== 0) {
|
|
18637
18638
|
var N, U, K, $, I = S[0];
|
|
18638
|
-
if (
|
|
18639
|
+
if (D(y.before)) {
|
|
18639
18640
|
var rt = y.before(I.file, I.inputElem);
|
|
18640
18641
|
if (typeof rt == "object") {
|
|
18641
|
-
if (rt.action === "abort") return N = "AbortError", U = I.file, K = I.inputElem, $ = rt.reason, void (
|
|
18642
|
+
if (rt.action === "abort") return N = "AbortError", U = I.file, K = I.inputElem, $ = rt.reason, void (D(y.error) && y.error({ name: N }, U, K, $));
|
|
18642
18643
|
if (rt.action === "skip") return void A();
|
|
18643
18644
|
typeof rt.config == "object" && (I.instanceConfig = c.extend(I.instanceConfig, rt.config));
|
|
18644
18645
|
} else if (rt === "skip") return void A();
|
|
18645
18646
|
}
|
|
18646
18647
|
var F = I.instanceConfig.complete;
|
|
18647
18648
|
I.instanceConfig.complete = function(zt) {
|
|
18648
|
-
|
|
18649
|
+
D(F) && F(zt, I.file, I.inputElem), A();
|
|
18649
18650
|
}, l.parse(I.file, I.instanceConfig);
|
|
18650
|
-
} else
|
|
18651
|
+
} else D(y.complete) && y.complete();
|
|
18651
18652
|
}
|
|
18652
18653
|
function A() {
|
|
18653
18654
|
S.splice(0, 1), O();
|
|
@@ -18659,7 +18660,7 @@ License: MIT
|
|
|
18659
18660
|
var S = k(x);
|
|
18660
18661
|
S.chunkSize = parseInt(S.chunkSize), x.step || x.chunk || (S.chunkSize = null), this._handle = new m(S), (this._handle.streamer = this)._config = S;
|
|
18661
18662
|
}).call(this, y), this.parseChunk = function(x, S) {
|
|
18662
|
-
if (this.isFirstChunk &&
|
|
18663
|
+
if (this.isFirstChunk && D(this._config.beforeFirstChunk)) {
|
|
18663
18664
|
var O = this._config.beforeFirstChunk(x);
|
|
18664
18665
|
O !== void 0 && (x = O);
|
|
18665
18666
|
}
|
|
@@ -18672,15 +18673,15 @@ License: MIT
|
|
|
18672
18673
|
this._finished || (this._partialLine = A.substring(U - this._baseIndex), this._baseIndex = U), N && N.data && (this._rowCount += N.data.length);
|
|
18673
18674
|
var K = this._finished || this._config.preview && this._rowCount >= this._config.preview;
|
|
18674
18675
|
if (r) i.postMessage({ results: N, workerId: l.WORKER_ID, finished: K });
|
|
18675
|
-
else if (
|
|
18676
|
+
else if (D(this._config.chunk) && !S) {
|
|
18676
18677
|
if (this._config.chunk(N, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
18677
18678
|
N = void 0, this._completeResults = void 0;
|
|
18678
18679
|
}
|
|
18679
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(N.data), this._completeResults.errors = this._completeResults.errors.concat(N.errors), this._completeResults.meta = N.meta), this._completed || !K || !
|
|
18680
|
+
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(N.data), this._completeResults.errors = this._completeResults.errors.concat(N.errors), this._completeResults.meta = N.meta), this._completed || !K || !D(this._config.complete) || N && N.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), K || N && N.meta.paused || this._nextChunk(), N;
|
|
18680
18681
|
}
|
|
18681
18682
|
this._halted = !0;
|
|
18682
18683
|
}, this._sendError = function(x) {
|
|
18683
|
-
|
|
18684
|
+
D(this._config.error) ? this._config.error(x) : r && this._config.error && i.postMessage({ workerId: l.WORKER_ID, error: x, finished: !1 });
|
|
18684
18685
|
};
|
|
18685
18686
|
}
|
|
18686
18687
|
function d(y) {
|
|
@@ -18694,7 +18695,7 @@ License: MIT
|
|
|
18694
18695
|
}, this._readChunk = function() {
|
|
18695
18696
|
if (this._finished) this._chunkLoaded();
|
|
18696
18697
|
else {
|
|
18697
|
-
if (x = new XMLHttpRequest(), this._config.withCredentials && (x.withCredentials = this._config.withCredentials), s || (x.onload =
|
|
18698
|
+
if (x = new XMLHttpRequest(), this._config.withCredentials && (x.withCredentials = this._config.withCredentials), s || (x.onload = T(this._chunkLoaded, this), x.onerror = T(this._chunkError, this)), x.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !s), this._config.downloadRequestHeaders) {
|
|
18698
18699
|
var S = this._config.downloadRequestHeaders;
|
|
18699
18700
|
for (var O in S) x.setRequestHeader(O, S[O]);
|
|
18700
18701
|
}
|
|
@@ -18724,7 +18725,7 @@ License: MIT
|
|
|
18724
18725
|
(y = y || {}).chunkSize || (y.chunkSize = l.LocalChunkSize), u.call(this, y);
|
|
18725
18726
|
var O = typeof FileReader < "u";
|
|
18726
18727
|
this.stream = function(A) {
|
|
18727
|
-
this._input = A, S = A.slice || A.webkitSlice || A.mozSlice, O ? ((x = new FileReader()).onload =
|
|
18728
|
+
this._input = A, S = A.slice || A.webkitSlice || A.mozSlice, O ? ((x = new FileReader()).onload = T(this._chunkLoaded, this), x.onerror = T(this._chunkError, this)) : x = new FileReaderSync(), this._nextChunk();
|
|
18728
18729
|
}, this._nextChunk = function() {
|
|
18729
18730
|
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
18730
18731
|
}, this._readChunk = function() {
|
|
@@ -18765,23 +18766,23 @@ License: MIT
|
|
|
18765
18766
|
O && x.length === 1 && (this._finished = !0);
|
|
18766
18767
|
}, this._nextChunk = function() {
|
|
18767
18768
|
this._checkIsFinished(), x.length ? this.parseChunk(x.shift()) : S = !0;
|
|
18768
|
-
}, this._streamData =
|
|
18769
|
+
}, this._streamData = T(function(A) {
|
|
18769
18770
|
try {
|
|
18770
18771
|
x.push(typeof A == "string" ? A : A.toString(this._config.encoding)), S && (S = !1, this._checkIsFinished(), this.parseChunk(x.shift()));
|
|
18771
18772
|
} catch (N) {
|
|
18772
18773
|
this._streamError(N);
|
|
18773
18774
|
}
|
|
18774
|
-
}, this), this._streamError =
|
|
18775
|
+
}, this), this._streamError = T(function(A) {
|
|
18775
18776
|
this._streamCleanUp(), this._sendError(A);
|
|
18776
|
-
}, this), this._streamEnd =
|
|
18777
|
+
}, this), this._streamEnd = T(function() {
|
|
18777
18778
|
this._streamCleanUp(), O = !0, this._streamData("");
|
|
18778
|
-
}, this), this._streamCleanUp =
|
|
18779
|
+
}, this), this._streamCleanUp = T(function() {
|
|
18779
18780
|
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
18780
18781
|
}, this);
|
|
18781
18782
|
}
|
|
18782
18783
|
function m(y) {
|
|
18783
18784
|
var x, S, O, A = Math.pow(2, 53), N = -A, U = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, K = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, $ = this, I = 0, rt = 0, F = !1, zt = !1, kt = [], B = { data: [], errors: [], meta: {} };
|
|
18784
|
-
if (
|
|
18785
|
+
if (D(y.step)) {
|
|
18785
18786
|
var R = y.step;
|
|
18786
18787
|
y.step = function(W) {
|
|
18787
18788
|
if (B = W, V()) j();
|
|
@@ -18799,8 +18800,8 @@ License: MIT
|
|
|
18799
18800
|
return !z(W);
|
|
18800
18801
|
})), V() && function() {
|
|
18801
18802
|
if (!B) return;
|
|
18802
|
-
function W(X,
|
|
18803
|
-
|
|
18803
|
+
function W(X, Dt) {
|
|
18804
|
+
D(y.transformHeader) && (X = y.transformHeader(X, Dt)), kt.push(X);
|
|
18804
18805
|
}
|
|
18805
18806
|
if (Array.isArray(B.data[0])) {
|
|
18806
18807
|
for (var et = 0; V() && et < B.data.length; et++) B.data[et].forEach(W);
|
|
@@ -18808,13 +18809,13 @@ License: MIT
|
|
|
18808
18809
|
} else B.data.forEach(W);
|
|
18809
18810
|
}(), function() {
|
|
18810
18811
|
if (!B || !y.header && !y.dynamicTyping && !y.transform) return B;
|
|
18811
|
-
function W(X,
|
|
18812
|
+
function W(X, Dt) {
|
|
18812
18813
|
var ht, Xt = y.header ? {} : [];
|
|
18813
18814
|
for (ht = 0; ht < X.length; ht++) {
|
|
18814
18815
|
var Et = ht, wt = X[ht];
|
|
18815
18816
|
y.header && (Et = ht >= kt.length ? "__parsed_extra" : kt[ht]), y.transform && (wt = y.transform(wt, Et)), wt = Z(Et, wt), Et === "__parsed_extra" ? (Xt[Et] = Xt[Et] || [], Xt[Et].push(wt)) : Xt[Et] = wt;
|
|
18816
18817
|
}
|
|
18817
|
-
return y.header && (ht > kt.length ? Y("FieldMismatch", "TooManyFields", "Too many fields: expected " + kt.length + " fields but parsed " + ht, rt +
|
|
18818
|
+
return y.header && (ht > kt.length ? Y("FieldMismatch", "TooManyFields", "Too many fields: expected " + kt.length + " fields but parsed " + ht, rt + Dt) : ht < kt.length && Y("FieldMismatch", "TooFewFields", "Too few fields: expected " + kt.length + " fields but parsed " + ht, rt + Dt)), Xt;
|
|
18818
18819
|
}
|
|
18819
18820
|
var et = 1;
|
|
18820
18821
|
return !B.data.length || Array.isArray(B.data[0]) ? (B.data = B.data.map(W), et = B.data.length) : B.data = W(B.data, 0), y.header && B.meta && (B.meta.fields = kt), rt += et, B;
|
|
@@ -18824,43 +18825,43 @@ License: MIT
|
|
|
18824
18825
|
return y.header && kt.length === 0;
|
|
18825
18826
|
}
|
|
18826
18827
|
function Z(W, et) {
|
|
18827
|
-
return X = W, y.dynamicTypingFunction && y.dynamicTyping[X] === void 0 && (y.dynamicTyping[X] = y.dynamicTypingFunction(X)), (y.dynamicTyping[X] || y.dynamicTyping) === !0 ? et === "true" || et === "TRUE" || et !== "false" && et !== "FALSE" && (function(
|
|
18828
|
-
if (U.test(
|
|
18829
|
-
var ht = parseFloat(
|
|
18828
|
+
return X = W, y.dynamicTypingFunction && y.dynamicTyping[X] === void 0 && (y.dynamicTyping[X] = y.dynamicTypingFunction(X)), (y.dynamicTyping[X] || y.dynamicTyping) === !0 ? et === "true" || et === "TRUE" || et !== "false" && et !== "FALSE" && (function(Dt) {
|
|
18829
|
+
if (U.test(Dt)) {
|
|
18830
|
+
var ht = parseFloat(Dt);
|
|
18830
18831
|
if (N < ht && ht < A) return !0;
|
|
18831
18832
|
}
|
|
18832
18833
|
return !1;
|
|
18833
18834
|
}(et) ? parseFloat(et) : K.test(et) ? new Date(et) : et === "" ? null : et) : et;
|
|
18834
18835
|
var X;
|
|
18835
18836
|
}
|
|
18836
|
-
function Y(W, et, X,
|
|
18837
|
+
function Y(W, et, X, Dt) {
|
|
18837
18838
|
var ht = { type: W, code: et, message: X };
|
|
18838
|
-
|
|
18839
|
+
Dt !== void 0 && (ht.row = Dt), B.errors.push(ht);
|
|
18839
18840
|
}
|
|
18840
18841
|
this.parse = function(W, et, X) {
|
|
18841
|
-
var
|
|
18842
|
+
var Dt = y.quoteChar || '"';
|
|
18842
18843
|
if (y.newline || (y.newline = function(Et, wt) {
|
|
18843
18844
|
Et = Et.substring(0, 1048576);
|
|
18844
18845
|
var de = new RegExp(b(wt) + "([^]*?)" + b(wt), "gm"), he = (Et = Et.replace(de, "")).split("\r"), ke = Et.split(`
|
|
18845
18846
|
`), Re = 1 < ke.length && ke[0].length < he[0].length;
|
|
18846
18847
|
if (he.length === 1 || Re) return `
|
|
18847
18848
|
`;
|
|
18848
|
-
for (var fe = 0,
|
|
18849
|
+
for (var fe = 0, Tt = 0; Tt < he.length; Tt++) he[Tt][0] === `
|
|
18849
18850
|
` && fe++;
|
|
18850
18851
|
return fe >= he.length / 2 ? `\r
|
|
18851
18852
|
` : "\r";
|
|
18852
|
-
}(W,
|
|
18853
|
+
}(W, Dt)), O = !1, y.delimiter) D(y.delimiter) && (y.delimiter = y.delimiter(W), B.meta.delimiter = y.delimiter);
|
|
18853
18854
|
else {
|
|
18854
18855
|
var ht = function(Et, wt, de, he, ke) {
|
|
18855
|
-
var Re, fe,
|
|
18856
|
+
var Re, fe, Tt, At;
|
|
18856
18857
|
ke = ke || [",", " ", "|", ";", l.RECORD_SEP, l.UNIT_SEP];
|
|
18857
18858
|
for (var Ve = 0; Ve < ke.length; Ve++) {
|
|
18858
18859
|
var pt = ke[Ve], cn = 0, Le = 0, Xe = 0;
|
|
18859
|
-
|
|
18860
|
-
for (var we = new _({ comments: he, delimiter: pt, newline: wt, preview: 10 }).parse(Et),
|
|
18860
|
+
Tt = void 0;
|
|
18861
|
+
for (var we = new _({ comments: he, delimiter: pt, newline: wt, preview: 10 }).parse(Et), De = 0; De < we.data.length; De++) if (de && z(we.data[De])) Xe++;
|
|
18861
18862
|
else {
|
|
18862
|
-
var Ie = we.data[
|
|
18863
|
-
Le += Ie,
|
|
18863
|
+
var Ie = we.data[De].length;
|
|
18864
|
+
Le += Ie, Tt !== void 0 ? 0 < Ie && (cn += Math.abs(Ie - Tt), Tt = Ie) : Tt = Ie;
|
|
18864
18865
|
}
|
|
18865
18866
|
0 < we.data.length && (Le /= we.data.length - Xe), (fe === void 0 || cn <= fe) && (At === void 0 || At < Le) && 1.99 < Le && (fe = cn, Re = pt, At = Le);
|
|
18866
18867
|
}
|
|
@@ -18873,13 +18874,13 @@ License: MIT
|
|
|
18873
18874
|
}, this.paused = function() {
|
|
18874
18875
|
return F;
|
|
18875
18876
|
}, this.pause = function() {
|
|
18876
|
-
F = !0, S.abort(), x =
|
|
18877
|
+
F = !0, S.abort(), x = D(y.chunk) ? "" : x.substring(S.getCharIndex());
|
|
18877
18878
|
}, this.resume = function() {
|
|
18878
18879
|
$.streamer._halted ? (F = !1, $.streamer.parseChunk(x, !0)) : setTimeout($.resume, 3);
|
|
18879
18880
|
}, this.aborted = function() {
|
|
18880
18881
|
return zt;
|
|
18881
18882
|
}, this.abort = function() {
|
|
18882
|
-
zt = !0, S.abort(), B.meta.aborted = !0,
|
|
18883
|
+
zt = !0, S.abort(), B.meta.aborted = !0, D(y.complete) && y.complete(B), x = "";
|
|
18883
18884
|
};
|
|
18884
18885
|
}
|
|
18885
18886
|
function b(y) {
|
|
@@ -18895,20 +18896,20 @@ License: MIT
|
|
|
18895
18896
|
var I = 0, rt = !1;
|
|
18896
18897
|
this.parse = function(F, zt, kt) {
|
|
18897
18898
|
if (typeof F != "string") throw new Error("Input must be a string");
|
|
18898
|
-
var B = F.length, R = S.length, z = O.length, j = A.length, V =
|
|
18899
|
+
var B = F.length, R = S.length, z = O.length, j = A.length, V = D(N), Z = [], Y = [], W = [], et = I = 0;
|
|
18899
18900
|
if (!F) return se();
|
|
18900
18901
|
if (y.header && !zt) {
|
|
18901
|
-
var X = F.split(O)[0].split(S),
|
|
18902
|
+
var X = F.split(O)[0].split(S), Dt = [], ht = {}, Xt = !1;
|
|
18902
18903
|
for (var Et in X) {
|
|
18903
18904
|
var wt = X[Et];
|
|
18904
|
-
|
|
18905
|
+
D(y.transformHeader) && (wt = y.transformHeader(wt, Et));
|
|
18905
18906
|
var de = wt, he = ht[wt] || 0;
|
|
18906
|
-
for (0 < he && (Xt = !0, de = wt + "_" + he), ht[wt] = he + 1;
|
|
18907
|
-
|
|
18907
|
+
for (0 < he && (Xt = !0, de = wt + "_" + he), ht[wt] = he + 1; Dt.includes(de); ) de = de + "_" + he;
|
|
18908
|
+
Dt.push(de);
|
|
18908
18909
|
}
|
|
18909
18910
|
if (Xt) {
|
|
18910
18911
|
var ke = F.split(O);
|
|
18911
|
-
ke[0] =
|
|
18912
|
+
ke[0] = Dt.join(S), F = ke.join(O);
|
|
18912
18913
|
}
|
|
18913
18914
|
}
|
|
18914
18915
|
if (K || K !== !1 && F.indexOf(x) === -1) {
|
|
@@ -18924,29 +18925,29 @@ License: MIT
|
|
|
18924
18925
|
}
|
|
18925
18926
|
return se();
|
|
18926
18927
|
}
|
|
18927
|
-
for (var
|
|
18928
|
+
for (var Tt = F.indexOf(S, I), At = F.indexOf(O, I), Ve = new RegExp(b($) + b(x), "g"), pt = F.indexOf(x, I); ; ) if (F[I] !== x) if (A && W.length === 0 && F.substring(I, I + j) === A) {
|
|
18928
18929
|
if (At === -1) return se();
|
|
18929
|
-
I = At + z, At = F.indexOf(O, I),
|
|
18930
|
-
} else if (
|
|
18930
|
+
I = At + z, At = F.indexOf(O, I), Tt = F.indexOf(S, I);
|
|
18931
|
+
} else if (Tt !== -1 && (Tt < At || At === -1)) W.push(F.substring(I, Tt)), I = Tt + R, Tt = F.indexOf(S, I);
|
|
18931
18932
|
else {
|
|
18932
18933
|
if (At === -1) break;
|
|
18933
18934
|
if (W.push(F.substring(I, At)), Ie(At + z), V && (ge(), rt)) return se();
|
|
18934
18935
|
if (U && Z.length >= U) return se(!0);
|
|
18935
18936
|
}
|
|
18936
18937
|
else for (pt = I, I++; ; ) {
|
|
18937
|
-
if ((pt = F.indexOf(x, pt + 1)) === -1) return kt || Y.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: Z.length, index: I }),
|
|
18938
|
-
if (pt === B - 1) return
|
|
18938
|
+
if ((pt = F.indexOf(x, pt + 1)) === -1) return kt || Y.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: Z.length, index: I }), De();
|
|
18939
|
+
if (pt === B - 1) return De(F.substring(I, pt).replace(Ve, x));
|
|
18939
18940
|
if (x !== $ || F[pt + 1] !== $) {
|
|
18940
18941
|
if (x === $ || pt === 0 || F[pt - 1] !== $) {
|
|
18941
|
-
|
|
18942
|
-
var cn = we(At === -1 ?
|
|
18942
|
+
Tt !== -1 && Tt < pt + 1 && (Tt = F.indexOf(S, pt + 1)), At !== -1 && At < pt + 1 && (At = F.indexOf(O, pt + 1));
|
|
18943
|
+
var cn = we(At === -1 ? Tt : Math.min(Tt, At));
|
|
18943
18944
|
if (F.substr(pt + 1 + cn, R) === S) {
|
|
18944
|
-
W.push(F.substring(I, pt).replace(Ve, x)), F[I = pt + 1 + cn + R] !== x && (pt = F.indexOf(x, I)),
|
|
18945
|
+
W.push(F.substring(I, pt).replace(Ve, x)), F[I = pt + 1 + cn + R] !== x && (pt = F.indexOf(x, I)), Tt = F.indexOf(S, I), At = F.indexOf(O, I);
|
|
18945
18946
|
break;
|
|
18946
18947
|
}
|
|
18947
18948
|
var Le = we(At);
|
|
18948
18949
|
if (F.substring(pt + 1 + Le, pt + 1 + Le + z) === O) {
|
|
18949
|
-
if (W.push(F.substring(I, pt).replace(Ve, x)), Ie(pt + 1 + Le + z),
|
|
18950
|
+
if (W.push(F.substring(I, pt).replace(Ve, x)), Ie(pt + 1 + Le + z), Tt = F.indexOf(S, I), pt = F.indexOf(x, I), V && (ge(), rt)) return se();
|
|
18950
18951
|
if (U && Z.length >= U) return se(!0);
|
|
18951
18952
|
break;
|
|
18952
18953
|
}
|
|
@@ -18954,7 +18955,7 @@ License: MIT
|
|
|
18954
18955
|
}
|
|
18955
18956
|
} else pt++;
|
|
18956
18957
|
}
|
|
18957
|
-
return
|
|
18958
|
+
return De();
|
|
18958
18959
|
function Xe(qt) {
|
|
18959
18960
|
Z.push(qt), et = I;
|
|
18960
18961
|
}
|
|
@@ -18966,7 +18967,7 @@ License: MIT
|
|
|
18966
18967
|
}
|
|
18967
18968
|
return bs;
|
|
18968
18969
|
}
|
|
18969
|
-
function
|
|
18970
|
+
function De(qt) {
|
|
18970
18971
|
return kt || (qt === void 0 && (qt = F.substring(I)), W.push(qt), I = B, Xe(W), V && ge()), se();
|
|
18971
18972
|
}
|
|
18972
18973
|
function Ie(qt) {
|
|
@@ -18991,16 +18992,16 @@ License: MIT
|
|
|
18991
18992
|
var A = { abort: function() {
|
|
18992
18993
|
O = !0, M(x.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
18993
18994
|
}, pause: C, resume: C };
|
|
18994
|
-
if (
|
|
18995
|
+
if (D(S.userStep)) {
|
|
18995
18996
|
for (var N = 0; N < x.results.data.length && (S.userStep({ data: x.results.data[N], errors: x.results.errors, meta: x.results.meta }, A), !O); N++) ;
|
|
18996
18997
|
delete x.results;
|
|
18997
|
-
} else
|
|
18998
|
+
} else D(S.userChunk) && (S.userChunk(x.results, A, x.file), delete x.results);
|
|
18998
18999
|
}
|
|
18999
19000
|
x.finished && !O && M(x.workerId, x.results);
|
|
19000
19001
|
}
|
|
19001
19002
|
function M(y, x) {
|
|
19002
19003
|
var S = a[y];
|
|
19003
|
-
|
|
19004
|
+
D(S.userComplete) && S.userComplete(x), S.terminate(), delete a[y];
|
|
19004
19005
|
}
|
|
19005
19006
|
function C() {
|
|
19006
19007
|
throw new Error("Not implemented.");
|
|
@@ -19011,12 +19012,12 @@ License: MIT
|
|
|
19011
19012
|
for (var S in y) x[S] = k(y[S]);
|
|
19012
19013
|
return x;
|
|
19013
19014
|
}
|
|
19014
|
-
function
|
|
19015
|
+
function T(y, x) {
|
|
19015
19016
|
return function() {
|
|
19016
19017
|
y.apply(x, arguments);
|
|
19017
19018
|
};
|
|
19018
19019
|
}
|
|
19019
|
-
function
|
|
19020
|
+
function D(y) {
|
|
19020
19021
|
return typeof y == "function";
|
|
19021
19022
|
}
|
|
19022
19023
|
return r && (i.onmessage = function(y) {
|
|
@@ -19030,7 +19031,7 @@ License: MIT
|
|
|
19030
19031
|
});
|
|
19031
19032
|
})(Gh);
|
|
19032
19033
|
var Qk = Gh.exports;
|
|
19033
|
-
const Jk = ["id"],
|
|
19034
|
+
const Jk = ["id"], tD = /* @__PURE__ */ ce({
|
|
19034
19035
|
__name: "VueJsonCsv",
|
|
19035
19036
|
props: {
|
|
19036
19037
|
data: {
|
|
@@ -19134,7 +19135,7 @@ const Jk = ["id"], tT = /* @__PURE__ */ ce({
|
|
|
19134
19135
|
])
|
|
19135
19136
|
], 8, Jk));
|
|
19136
19137
|
}
|
|
19137
|
-
}),
|
|
19138
|
+
}), eD = /* @__PURE__ */ ce({
|
|
19138
19139
|
__name: "DownloadCsv",
|
|
19139
19140
|
props: {
|
|
19140
19141
|
rows: {},
|
|
@@ -19144,7 +19145,7 @@ const Jk = ["id"], tT = /* @__PURE__ */ ce({
|
|
|
19144
19145
|
setup(n) {
|
|
19145
19146
|
const t = n, e = H(() => Object.keys(t.headers));
|
|
19146
19147
|
return (i, s) => (Q(), ut("div", null, [
|
|
19147
|
-
Zt(
|
|
19148
|
+
Zt(tD, {
|
|
19148
19149
|
data: i.rows,
|
|
19149
19150
|
fields: e.value,
|
|
19150
19151
|
filename: i.filename,
|
|
@@ -19159,30 +19160,30 @@ const Jk = ["id"], tT = /* @__PURE__ */ ce({
|
|
|
19159
19160
|
}
|
|
19160
19161
|
});
|
|
19161
19162
|
function Ru(n, t, e) {
|
|
19162
|
-
const i =
|
|
19163
|
-
return "formatToParts" in i ?
|
|
19163
|
+
const i = sD(n, e.timeZone, e.locale);
|
|
19164
|
+
return "formatToParts" in i ? nD(i, t) : iD(i, t);
|
|
19164
19165
|
}
|
|
19165
|
-
function
|
|
19166
|
+
function nD(n, t) {
|
|
19166
19167
|
const e = n.formatToParts(t);
|
|
19167
19168
|
for (let i = e.length - 1; i >= 0; --i)
|
|
19168
19169
|
if (e[i].type === "timeZoneName")
|
|
19169
19170
|
return e[i].value;
|
|
19170
19171
|
}
|
|
19171
|
-
function
|
|
19172
|
+
function iD(n, t) {
|
|
19172
19173
|
const e = n.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(e);
|
|
19173
19174
|
return i ? i[0].substr(1) : "";
|
|
19174
19175
|
}
|
|
19175
|
-
function
|
|
19176
|
+
function sD(n, t, e) {
|
|
19176
19177
|
return new Intl.DateTimeFormat(e ? [e.code, "en-US"] : void 0, {
|
|
19177
19178
|
timeZone: t,
|
|
19178
19179
|
timeZoneName: n
|
|
19179
19180
|
});
|
|
19180
19181
|
}
|
|
19181
|
-
function
|
|
19182
|
-
const e =
|
|
19183
|
-
return "formatToParts" in e ?
|
|
19182
|
+
function rD(n, t) {
|
|
19183
|
+
const e = cD(t);
|
|
19184
|
+
return "formatToParts" in e ? oD(e, n) : lD(e, n);
|
|
19184
19185
|
}
|
|
19185
|
-
const
|
|
19186
|
+
const aD = {
|
|
19186
19187
|
year: 0,
|
|
19187
19188
|
month: 1,
|
|
19188
19189
|
day: 2,
|
|
@@ -19190,11 +19191,11 @@ const aT = {
|
|
|
19190
19191
|
minute: 4,
|
|
19191
19192
|
second: 5
|
|
19192
19193
|
};
|
|
19193
|
-
function
|
|
19194
|
+
function oD(n, t) {
|
|
19194
19195
|
try {
|
|
19195
19196
|
const e = n.formatToParts(t), i = [];
|
|
19196
19197
|
for (let s = 0; s < e.length; s++) {
|
|
19197
|
-
const r =
|
|
19198
|
+
const r = aD[e[s].type];
|
|
19198
19199
|
r !== void 0 && (i[r] = parseInt(e[s].value, 10));
|
|
19199
19200
|
}
|
|
19200
19201
|
return i;
|
|
@@ -19204,7 +19205,7 @@ function oT(n, t) {
|
|
|
19204
19205
|
throw e;
|
|
19205
19206
|
}
|
|
19206
19207
|
}
|
|
19207
|
-
function
|
|
19208
|
+
function lD(n, t) {
|
|
19208
19209
|
const e = n.format(t), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);
|
|
19209
19210
|
return [
|
|
19210
19211
|
parseInt(i[3], 10),
|
|
@@ -19216,7 +19217,7 @@ function lT(n, t) {
|
|
|
19216
19217
|
];
|
|
19217
19218
|
}
|
|
19218
19219
|
const ma = {};
|
|
19219
|
-
function
|
|
19220
|
+
function cD(n) {
|
|
19220
19221
|
if (!ma[n]) {
|
|
19221
19222
|
const t = new Intl.DateTimeFormat("en-US", {
|
|
19222
19223
|
hourCycle: "h23",
|
|
@@ -19254,7 +19255,7 @@ function Kh(n, t, e, i, s, r, a) {
|
|
|
19254
19255
|
const o = /* @__PURE__ */ new Date(0);
|
|
19255
19256
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
19256
19257
|
}
|
|
19257
|
-
const Lu = 36e5,
|
|
19258
|
+
const Lu = 36e5, uD = 6e4, ya = {
|
|
19258
19259
|
timezone: /([Z+-].*)$/,
|
|
19259
19260
|
timezoneZ: /^(Z)$/,
|
|
19260
19261
|
timezoneHH: /^([+-]\d{2})$/,
|
|
@@ -19272,25 +19273,25 @@ function Zh(n, t, e) {
|
|
|
19272
19273
|
if (i = ya.timezoneHHMM.exec(n), i) {
|
|
19273
19274
|
s = parseInt(i[2], 10);
|
|
19274
19275
|
const a = parseInt(i[3], 10);
|
|
19275
|
-
return Iu(s, a) ? (r = Math.abs(s) * Lu + a *
|
|
19276
|
+
return Iu(s, a) ? (r = Math.abs(s) * Lu + a * uD, i[1] === "+" ? -r : r) : NaN;
|
|
19276
19277
|
}
|
|
19277
|
-
if (
|
|
19278
|
+
if (fD(n)) {
|
|
19278
19279
|
t = new Date(t || Date.now());
|
|
19279
|
-
const a = e ? t :
|
|
19280
|
-
return -(e ? o :
|
|
19280
|
+
const a = e ? t : dD(t), o = Ja(a, n);
|
|
19281
|
+
return -(e ? o : hD(t, o, n));
|
|
19281
19282
|
}
|
|
19282
19283
|
return NaN;
|
|
19283
19284
|
}
|
|
19284
|
-
function
|
|
19285
|
+
function dD(n) {
|
|
19285
19286
|
return Kh(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
19286
19287
|
}
|
|
19287
19288
|
function Ja(n, t) {
|
|
19288
|
-
const e =
|
|
19289
|
+
const e = rD(n, t), i = Kh(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
19289
19290
|
let s = n.getTime();
|
|
19290
19291
|
const r = s % 1e3;
|
|
19291
19292
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
19292
19293
|
}
|
|
19293
|
-
function
|
|
19294
|
+
function hD(n, t, e) {
|
|
19294
19295
|
let s = n.getTime() - t;
|
|
19295
19296
|
const r = Ja(new Date(s), e);
|
|
19296
19297
|
if (t === r)
|
|
@@ -19303,7 +19304,7 @@ function Iu(n, t) {
|
|
|
19303
19304
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
19304
19305
|
}
|
|
19305
19306
|
const Nu = {};
|
|
19306
|
-
function
|
|
19307
|
+
function fD(n) {
|
|
19307
19308
|
if (Nu[n])
|
|
19308
19309
|
return !0;
|
|
19309
19310
|
try {
|
|
@@ -19312,7 +19313,7 @@ function fT(n) {
|
|
|
19312
19313
|
return !1;
|
|
19313
19314
|
}
|
|
19314
19315
|
}
|
|
19315
|
-
const
|
|
19316
|
+
const gD = 60 * 1e3, pD = {
|
|
19316
19317
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
19317
19318
|
X: function(n, t, e) {
|
|
19318
19319
|
const i = ba(e.timeZone, n);
|
|
@@ -19352,7 +19353,7 @@ const gT = 60 * 1e3, pT = {
|
|
|
19352
19353
|
case "O":
|
|
19353
19354
|
case "OO":
|
|
19354
19355
|
case "OOO":
|
|
19355
|
-
return "GMT" +
|
|
19356
|
+
return "GMT" + mD(i, ":");
|
|
19356
19357
|
case "OOOO":
|
|
19357
19358
|
default:
|
|
19358
19359
|
return "GMT" + oi(i, ":");
|
|
@@ -19372,7 +19373,7 @@ const gT = 60 * 1e3, pT = {
|
|
|
19372
19373
|
}
|
|
19373
19374
|
};
|
|
19374
19375
|
function ba(n, t) {
|
|
19375
|
-
const e = n ? Zh(n, t, !0) /
|
|
19376
|
+
const e = n ? Zh(n, t, !0) / gD : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
19376
19377
|
if (Number.isNaN(e))
|
|
19377
19378
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
19378
19379
|
return e;
|
|
@@ -19391,7 +19392,7 @@ function oi(n, t = "") {
|
|
|
19391
19392
|
function Fu(n, t) {
|
|
19392
19393
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + _r(Math.abs(n) / 60, 2) : oi(n, t);
|
|
19393
19394
|
}
|
|
19394
|
-
function
|
|
19395
|
+
function mD(n, t = "") {
|
|
19395
19396
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
19396
19397
|
return r === 0 ? e + String(s) : e + String(s) + t + _r(r, 2);
|
|
19397
19398
|
}
|
|
@@ -19399,7 +19400,7 @@ function zu(n) {
|
|
|
19399
19400
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
19400
19401
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
19401
19402
|
}
|
|
19402
|
-
const
|
|
19403
|
+
const yD = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, xa = 36e5, Hu = 6e4, bD = 2, le = {
|
|
19403
19404
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
19404
19405
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
19405
19406
|
plainTime: /:/,
|
|
@@ -19432,14 +19433,14 @@ const yT = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
19432
19433
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
19433
19434
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
19434
19435
|
// time zone tokens (to identify the presence of a tz)
|
|
19435
|
-
timeZone:
|
|
19436
|
+
timeZone: yD
|
|
19436
19437
|
};
|
|
19437
|
-
function
|
|
19438
|
+
function xD(n, t = {}) {
|
|
19438
19439
|
if (arguments.length < 1)
|
|
19439
19440
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
19440
19441
|
if (n === null)
|
|
19441
19442
|
return /* @__PURE__ */ new Date(NaN);
|
|
19442
|
-
const e = t.additionalDigits == null ?
|
|
19443
|
+
const e = t.additionalDigits == null ? bD : Number(t.additionalDigits);
|
|
19443
19444
|
if (e !== 2 && e !== 1 && e !== 0)
|
|
19444
19445
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
19445
19446
|
if (n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -19448,13 +19449,13 @@ function xT(n, t = {}) {
|
|
|
19448
19449
|
return new Date(n);
|
|
19449
19450
|
if (Object.prototype.toString.call(n) !== "[object String]")
|
|
19450
19451
|
return /* @__PURE__ */ new Date(NaN);
|
|
19451
|
-
const i =
|
|
19452
|
+
const i = _D(n), { year: s, restDateString: r } = wD(i.date, e), a = vD(r, s);
|
|
19452
19453
|
if (a === null || isNaN(a.getTime()))
|
|
19453
19454
|
return /* @__PURE__ */ new Date(NaN);
|
|
19454
19455
|
if (a) {
|
|
19455
19456
|
const o = a.getTime();
|
|
19456
19457
|
let l = 0, c;
|
|
19457
|
-
if (i.time && (l =
|
|
19458
|
+
if (i.time && (l = MD(i.time), l === null || isNaN(l)))
|
|
19458
19459
|
return /* @__PURE__ */ new Date(NaN);
|
|
19459
19460
|
if (i.timeZone || t.timeZone) {
|
|
19460
19461
|
if (c = Zh(i.timeZone || t.timeZone, new Date(o + l)), isNaN(c))
|
|
@@ -19465,7 +19466,7 @@ function xT(n, t = {}) {
|
|
|
19465
19466
|
} else
|
|
19466
19467
|
return /* @__PURE__ */ new Date(NaN);
|
|
19467
19468
|
}
|
|
19468
|
-
function
|
|
19469
|
+
function _D(n) {
|
|
19469
19470
|
const t = {};
|
|
19470
19471
|
let e = le.dateTimePattern.exec(n), i;
|
|
19471
19472
|
if (e ? (t.date = e[1], i = e[3]) : (e = le.datePattern.exec(n), e ? (t.date = e[1], i = e[2]) : (t.date = null, i = n)), i) {
|
|
@@ -19474,7 +19475,7 @@ function _T(n) {
|
|
|
19474
19475
|
}
|
|
19475
19476
|
return t;
|
|
19476
19477
|
}
|
|
19477
|
-
function
|
|
19478
|
+
function wD(n, t) {
|
|
19478
19479
|
if (n) {
|
|
19479
19480
|
const e = le.YYY[t], i = le.YYYYY[t];
|
|
19480
19481
|
let s = le.YYYY.exec(n) || i.exec(n);
|
|
@@ -19497,7 +19498,7 @@ function wT(n, t) {
|
|
|
19497
19498
|
year: null
|
|
19498
19499
|
};
|
|
19499
19500
|
}
|
|
19500
|
-
function
|
|
19501
|
+
function vD(n, t) {
|
|
19501
19502
|
if (t === null)
|
|
19502
19503
|
return null;
|
|
19503
19504
|
let e, i, s;
|
|
@@ -19509,7 +19510,7 @@ function vT(n, t) {
|
|
|
19509
19510
|
if (r = le.DDD.exec(n), r) {
|
|
19510
19511
|
e = /* @__PURE__ */ new Date(0);
|
|
19511
19512
|
const a = parseInt(r[1], 10);
|
|
19512
|
-
return
|
|
19513
|
+
return DD(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
19513
19514
|
}
|
|
19514
19515
|
if (r = le.MMDD.exec(n), r) {
|
|
19515
19516
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
@@ -19525,7 +19526,7 @@ function vT(n, t) {
|
|
|
19525
19526
|
}
|
|
19526
19527
|
return null;
|
|
19527
19528
|
}
|
|
19528
|
-
function
|
|
19529
|
+
function MD(n) {
|
|
19529
19530
|
let t, e, i = le.HH.exec(n);
|
|
19530
19531
|
if (i)
|
|
19531
19532
|
return t = parseFloat(i[1].replace(",", ".")), _a(t) ? t % 24 * xa : NaN;
|
|
@@ -19545,7 +19546,7 @@ function Bu(n, t, e) {
|
|
|
19545
19546
|
const s = i.getUTCDay() || 7, r = t * 7 + e + 1 - s;
|
|
19546
19547
|
return i.setUTCDate(i.getUTCDate() + r), i;
|
|
19547
19548
|
}
|
|
19548
|
-
const
|
|
19549
|
+
const SD = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], kD = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
19549
19550
|
function Qh(n) {
|
|
19550
19551
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
19551
19552
|
}
|
|
@@ -19556,12 +19557,12 @@ function Wu(n, t, e) {
|
|
|
19556
19557
|
if (e < 1)
|
|
19557
19558
|
return !1;
|
|
19558
19559
|
const i = Qh(n);
|
|
19559
|
-
if (i && e >
|
|
19560
|
+
if (i && e > kD[t] || !i && e > SD[t])
|
|
19560
19561
|
return !1;
|
|
19561
19562
|
}
|
|
19562
19563
|
return !0;
|
|
19563
19564
|
}
|
|
19564
|
-
function
|
|
19565
|
+
function DD(n, t) {
|
|
19565
19566
|
if (t < 1)
|
|
19566
19567
|
return !1;
|
|
19567
19568
|
const e = Qh(n);
|
|
@@ -19573,29 +19574,29 @@ function Yu(n, t) {
|
|
|
19573
19574
|
function _a(n, t, e) {
|
|
19574
19575
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
19575
19576
|
}
|
|
19576
|
-
const
|
|
19577
|
+
const TD = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
19577
19578
|
function ju(n, t, e = {}) {
|
|
19578
19579
|
t = String(t);
|
|
19579
|
-
const i = t.match(
|
|
19580
|
+
const i = t.match(TD);
|
|
19580
19581
|
if (i) {
|
|
19581
|
-
const s =
|
|
19582
|
+
const s = xD(e.originalDate || n, e);
|
|
19582
19583
|
t = i.reduce(function(r, a) {
|
|
19583
19584
|
if (a[0] === "'")
|
|
19584
19585
|
return r;
|
|
19585
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
19586
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + pD[a[0]](s, a, e) + "'");
|
|
19586
19587
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
19587
19588
|
}, t);
|
|
19588
19589
|
}
|
|
19589
19590
|
return sh(n, t, e);
|
|
19590
19591
|
}
|
|
19591
|
-
const
|
|
19592
|
+
const CD = { class: "kong-ui-public-csv-export-modal" }, PD = {
|
|
19592
19593
|
key: 0,
|
|
19593
19594
|
class: "selected-range"
|
|
19594
|
-
},
|
|
19595
|
+
}, OD = {
|
|
19595
19596
|
key: 1,
|
|
19596
19597
|
class: "text-muted",
|
|
19597
19598
|
tag: "span"
|
|
19598
|
-
}, $u = 3,
|
|
19599
|
+
}, $u = 3, ED = /* @__PURE__ */ ce({
|
|
19599
19600
|
__name: "CsvExportModal",
|
|
19600
19601
|
props: {
|
|
19601
19602
|
filename: {},
|
|
@@ -19614,7 +19615,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19614
19615
|
})), h = () => {
|
|
19615
19616
|
s("toggleModal", !1);
|
|
19616
19617
|
}, f = H(() => {
|
|
19617
|
-
var k,
|
|
19618
|
+
var k, T, D;
|
|
19618
19619
|
if (!o.value || !((k = i.chartData) != null && k.meta.metric_names))
|
|
19619
19620
|
return { headers: [], rows: [], csvHeaders: {} };
|
|
19620
19621
|
const m = i.chartData.data.some((y) => y.timestamp !== i.chartData.data[0].timestamp), b = i.chartData.data.map((y) => {
|
|
@@ -19639,7 +19640,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19639
19640
|
{ label: e.t("csvExport.Timestamp"), key: "timestamp" },
|
|
19640
19641
|
{ label: e.t("csvExport.UtcOffset"), key: "tzOffset" }
|
|
19641
19642
|
]);
|
|
19642
|
-
const w = "display" in i.chartData.meta && ((
|
|
19643
|
+
const w = "display" in i.chartData.meta && ((T = i.chartData.meta) != null && T.display) ? (D = i.chartData.meta) == null ? void 0 : D.display : {}, M = [
|
|
19643
19644
|
..._,
|
|
19644
19645
|
// `dimensions` are present in v1 and v2 explore meta
|
|
19645
19646
|
...Object.keys(w).map((y) => ({
|
|
@@ -19670,7 +19671,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19670
19671
|
l.value++;
|
|
19671
19672
|
}), (m, b) => {
|
|
19672
19673
|
const _ = Fe("KEmptyState"), w = Fe("KTable"), M = Fe("KButton"), C = Fe("KModal");
|
|
19673
|
-
return Q(), ut("div",
|
|
19674
|
+
return Q(), ut("div", CD, [
|
|
19674
19675
|
Zt(C, {
|
|
19675
19676
|
class: "vitals-report",
|
|
19676
19677
|
"data-testid": "csv-export-modal",
|
|
@@ -19684,7 +19685,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19684
19685
|
var k;
|
|
19685
19686
|
return [
|
|
19686
19687
|
ct("div", null, [
|
|
19687
|
-
o.value ? (Q(), ut("div",
|
|
19688
|
+
o.value ? (Q(), ut("div", PD, [
|
|
19688
19689
|
ct("p", null, lt(m.modalDescription ? m.modalDescription : at(e).t("csvExport.exportDescription")), 1),
|
|
19689
19690
|
ct("p", null, lt(at(e).t("csvExport.exportTimeRange")) + ": " + lt(at(u)), 1)
|
|
19690
19691
|
])) : Vt("", !0),
|
|
@@ -19710,7 +19711,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19710
19711
|
]),
|
|
19711
19712
|
_: 1
|
|
19712
19713
|
}, 8, ["fetcher-cache-key", "headers"]),
|
|
19713
|
-
!a.value && o.value ? (Q(), ut("div",
|
|
19714
|
+
!a.value && o.value ? (Q(), ut("div", OD, lt(d.value), 1)) : Vt("", !0)
|
|
19714
19715
|
])
|
|
19715
19716
|
];
|
|
19716
19717
|
}),
|
|
@@ -19725,7 +19726,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19725
19726
|
]),
|
|
19726
19727
|
_: 1
|
|
19727
19728
|
}),
|
|
19728
|
-
Zt(
|
|
19729
|
+
Zt(eD, {
|
|
19729
19730
|
class: "vitals-report-export-button",
|
|
19730
19731
|
filename: r,
|
|
19731
19732
|
headers: f.value.csvHeaders,
|
|
@@ -19751,7 +19752,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19751
19752
|
]);
|
|
19752
19753
|
};
|
|
19753
19754
|
}
|
|
19754
|
-
}),
|
|
19755
|
+
}), AD = /* @__PURE__ */ ce({
|
|
19755
19756
|
__name: "CsvExportButton",
|
|
19756
19757
|
props: {
|
|
19757
19758
|
data: {
|
|
@@ -19794,7 +19795,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19794
19795
|
]),
|
|
19795
19796
|
_: 1
|
|
19796
19797
|
}, 8, ["appearance"]),
|
|
19797
|
-
s.value ? (Q(), ae(
|
|
19798
|
+
s.value ? (Q(), ae(ED, {
|
|
19798
19799
|
key: 0,
|
|
19799
19800
|
"chart-data": n.data,
|
|
19800
19801
|
filename: i.value,
|
|
@@ -19803,19 +19804,19 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19803
19804
|
], 64);
|
|
19804
19805
|
};
|
|
19805
19806
|
}
|
|
19806
|
-
}),
|
|
19807
|
+
}), RD = { class: "analytics-chart-shell" }, LD = {
|
|
19807
19808
|
key: 0,
|
|
19808
19809
|
class: "chart-header"
|
|
19809
|
-
},
|
|
19810
|
+
}, ID = {
|
|
19810
19811
|
key: 0,
|
|
19811
19812
|
class: "chart-title"
|
|
19812
|
-
},
|
|
19813
|
+
}, ND = { class: "chart-header-icons-wrapper" }, FD = {
|
|
19813
19814
|
key: 1,
|
|
19814
19815
|
class: "chart-export-button"
|
|
19815
|
-
},
|
|
19816
|
+
}, zD = {
|
|
19816
19817
|
key: 2,
|
|
19817
19818
|
class: "analytics-chart-parent"
|
|
19818
|
-
},
|
|
19819
|
+
}, HD = /* @__PURE__ */ ce({
|
|
19819
19820
|
__name: "AnalyticsChart",
|
|
19820
19821
|
props: {
|
|
19821
19822
|
allowCsvExport: {
|
|
@@ -19926,15 +19927,15 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19926
19927
|
}), w = H(() => {
|
|
19927
19928
|
const S = fa(Number(t.chartData.meta.granularity_ms));
|
|
19928
19929
|
return e.t(`granularityAxisTitles.${S}`);
|
|
19929
|
-
}), M = H(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), C = H(() => t.emptyStateDescription || e.t("noDataAvailableDescription")), k = H(() => f.value ? kw(s.value) : t.chartData && t.chartData.meta && t.chartData.data.length),
|
|
19930
|
+
}), M = H(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), C = H(() => t.emptyStateDescription || e.t("noDataAvailableDescription")), k = H(() => f.value ? kw(s.value) : t.chartData && t.chartData.meta && t.chartData.data.length), T = H(() => k.value && u.value && c.value || t.chartTitle || t.allowCsvExport && k.value), D = H(() => t.chartData.meta.granularity_ms ? fa(t.chartData.meta.granularity_ms) || "hourly" : fa(
|
|
19930
19931
|
new Date(t.chartData.data[1].timestamp).getTime() - new Date(t.chartData.data[0].timestamp).getTime()
|
|
19931
19932
|
) || "hourly"), y = H(() => t.chartOptions.chartLegendSortFn ? t.chartOptions.chartLegendSortFn : (S, O) => S.text === e.t("chartLabels.____OTHER____") ? 1 : O.text === e.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(S.text, 10)) && !isNaN(parseInt(O.text, 10)) ? S.text < O.text ? -1 : 1 : S.value && O.value ? O.value.raw - S.value.raw : 0), x = H(() => t.chartOptions.chartTooltipSortFn ? t.chartOptions.chartTooltipSortFn : (S, O) => S.label === e.t("chartLabels.____OTHER____") ? 1 : O.label === e.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(S.label, 10)) && !isNaN(parseInt(O.label, 10)) ? S.label < O.label ? -1 : 1 : S.value && O.value ? O.rawValue - S.rawValue : 0);
|
|
19932
19933
|
return ll("showLegendValues", o), ll("legendPosition", Mt(t, "legendPosition")), (S, O) => {
|
|
19933
19934
|
const A = Fe("KTooltip"), N = Fe("KEmptyState");
|
|
19934
|
-
return Q(), ut("div",
|
|
19935
|
-
|
|
19936
|
-
n.chartTitle ? (Q(), ut("div",
|
|
19937
|
-
ct("div",
|
|
19935
|
+
return Q(), ut("div", RD, [
|
|
19936
|
+
T.value ? (Q(), ut("div", LD, [
|
|
19937
|
+
n.chartTitle ? (Q(), ut("div", ID, lt(n.chartTitle), 1)) : Vt("", !0),
|
|
19938
|
+
ct("div", ND, [
|
|
19938
19939
|
k.value && u.value && c.value ? (Q(), ae(A, {
|
|
19939
19940
|
key: 0,
|
|
19940
19941
|
class: "tooltip",
|
|
@@ -19954,14 +19955,14 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19954
19955
|
_: 1
|
|
19955
19956
|
})) : Vt("", !0)
|
|
19956
19957
|
]),
|
|
19957
|
-
n.allowCsvExport && k.value ? (Q(), ut("div",
|
|
19958
|
-
Zt(
|
|
19958
|
+
n.allowCsvExport && k.value ? (Q(), ut("div", FD, [
|
|
19959
|
+
Zt(AD, {
|
|
19959
19960
|
data: i.value,
|
|
19960
19961
|
"filename-prefix": n.filenamePrefix
|
|
19961
19962
|
}, null, 8, ["data", "filename-prefix"])
|
|
19962
19963
|
])) : Vt("", !0)
|
|
19963
19964
|
])) : Vt("", !0),
|
|
19964
|
-
k.value ? (Q(), ut("div",
|
|
19965
|
+
k.value ? (Q(), ut("div", zD, [
|
|
19965
19966
|
f.value ? (Q(), ae(bk, {
|
|
19966
19967
|
key: 0,
|
|
19967
19968
|
"chart-data": s.value,
|
|
@@ -19969,7 +19970,7 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
19969
19970
|
"chart-tooltip-sort-fn": x.value,
|
|
19970
19971
|
"dimension-axes-title": w.value,
|
|
19971
19972
|
fill: n.chartOptions.stacked,
|
|
19972
|
-
granularity:
|
|
19973
|
+
granularity: D.value,
|
|
19973
19974
|
"legend-values": at(l),
|
|
19974
19975
|
"metric-axes-title": b.value,
|
|
19975
19976
|
"metric-unit": a.value,
|
|
@@ -20020,14 +20021,14 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20020
20021
|
]);
|
|
20021
20022
|
};
|
|
20022
20023
|
}
|
|
20023
|
-
}),
|
|
20024
|
+
}), bT = /* @__PURE__ */ ln(HD, [["__scopeId", "data-v-cb8778ab"]]), BD = {
|
|
20024
20025
|
class: "chart-parent",
|
|
20025
20026
|
"data-testid": "doughnut-chart-parent"
|
|
20026
|
-
},
|
|
20027
|
+
}, WD = { class: "chart-totals-flex" }, YD = {
|
|
20027
20028
|
key: 1,
|
|
20028
20029
|
class: "metric-small",
|
|
20029
20030
|
"data-testid": "doughnut-chart-total"
|
|
20030
|
-
},
|
|
20031
|
+
}, jD = /* @__PURE__ */ ce({
|
|
20031
20032
|
__name: "GaugeChart",
|
|
20032
20033
|
props: {
|
|
20033
20034
|
chartData: {
|
|
@@ -20097,15 +20098,15 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20097
20098
|
var f;
|
|
20098
20099
|
return `color: ${(f = s == null ? void 0 : s.value[0]) == null ? void 0 : f.backgroundColor[t.numerator]}`;
|
|
20099
20100
|
}), d = H(() => [Bi.Full, Bi.SingleMetric].includes(t.metricDisplay)), h = H(() => t.metricDisplay === Bi.Full);
|
|
20100
|
-
return (f, g) => (Q(), ut("div",
|
|
20101
|
-
ct("div",
|
|
20101
|
+
return (f, g) => (Q(), ut("div", BD, [
|
|
20102
|
+
ct("div", WD, [
|
|
20102
20103
|
d.value ? (Q(), ut("div", {
|
|
20103
20104
|
key: 0,
|
|
20104
20105
|
class: "metric-large",
|
|
20105
20106
|
"data-testid": "doughnut-chart-metric",
|
|
20106
20107
|
style: Un(u.value)
|
|
20107
20108
|
}, lt(l.value), 5)) : Vt("", !0),
|
|
20108
|
-
h.value ? (Q(), ut("div",
|
|
20109
|
+
h.value ? (Q(), ut("div", YD, lt(at(e).t("total")) + ": " + lt(c.value), 1)) : Vt("", !0)
|
|
20109
20110
|
]),
|
|
20110
20111
|
ct("div", {
|
|
20111
20112
|
class: "chart-container",
|
|
@@ -20121,10 +20122,10 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20121
20122
|
], 4)
|
|
20122
20123
|
]));
|
|
20123
20124
|
}
|
|
20124
|
-
}), $
|
|
20125
|
+
}), $D = /* @__PURE__ */ ln(jD, [["__scopeId", "data-v-18bc031c"]]), UD = { class: "simple-chart-shell" }, qD = {
|
|
20125
20126
|
key: 1,
|
|
20126
20127
|
class: "analytics-chart-parent"
|
|
20127
|
-
},
|
|
20128
|
+
}, VD = /* @__PURE__ */ ce({
|
|
20128
20129
|
__name: "SimpleChart",
|
|
20129
20130
|
props: {
|
|
20130
20131
|
chartData: {
|
|
@@ -20174,9 +20175,9 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20174
20175
|
}), r = H(() => t.chartOptions.type === Oo.GAUGE), a = H(() => t.emptyStateTitle || e.t("noDataAvailableTitle")), o = H(() => t.chartData && t.chartData.meta && t.chartData.data.length);
|
|
20175
20176
|
return (l, c) => {
|
|
20176
20177
|
const u = Fe("KEmptyState");
|
|
20177
|
-
return Q(), ut("div",
|
|
20178
|
-
o.value ? (Q(), ut("div",
|
|
20179
|
-
r.value ? (Q(), ae($
|
|
20178
|
+
return Q(), ut("div", UD, [
|
|
20179
|
+
o.value ? (Q(), ut("div", qD, [
|
|
20180
|
+
r.value ? (Q(), ae($D, {
|
|
20180
20181
|
key: 0,
|
|
20181
20182
|
"chart-data": i.value,
|
|
20182
20183
|
"dataset-colors": n.chartOptions.chartDatasetColors,
|
|
@@ -20201,20 +20202,20 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20201
20202
|
]);
|
|
20202
20203
|
};
|
|
20203
20204
|
}
|
|
20204
|
-
}),
|
|
20205
|
+
}), xT = /* @__PURE__ */ ln(VD, [["__scopeId", "data-v-a1582f51"]]), XD = {
|
|
20205
20206
|
class: "top-n-card-title",
|
|
20206
20207
|
"data-testid": "top-n-card-title"
|
|
20207
|
-
},
|
|
20208
|
+
}, GD = {
|
|
20208
20209
|
class: "top-n-card-description",
|
|
20209
20210
|
"data-testid": "top-n-card-description"
|
|
20210
|
-
},
|
|
20211
|
+
}, KD = {
|
|
20211
20212
|
key: 3,
|
|
20212
20213
|
class: "top-n-table",
|
|
20213
20214
|
"data-testid": "top-n-table"
|
|
20214
|
-
},
|
|
20215
|
+
}, ZD = { class: "table-headings" }, QD = { class: "table-row" }, JD = { class: "column-1" }, tT = { class: "column-2" }, eT = {
|
|
20215
20216
|
class: "table-body",
|
|
20216
20217
|
"data-testid": "top-n-data"
|
|
20217
|
-
},
|
|
20218
|
+
}, nT = ["data-testid"], iT = { class: "column-1" }, sT = { class: "column-2" }, rT = /* @__PURE__ */ ce({
|
|
20218
20219
|
__name: "TopNTable",
|
|
20219
20220
|
props: {
|
|
20220
20221
|
title: {
|
|
@@ -20301,20 +20302,20 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20301
20302
|
key: 1,
|
|
20302
20303
|
"table-columns": 2,
|
|
20303
20304
|
type: "table"
|
|
20304
|
-
})) : s.value ? (Q(), ut("div",
|
|
20305
|
-
ct("div",
|
|
20306
|
-
ct("div",
|
|
20307
|
-
ct("div",
|
|
20308
|
-
ct("div",
|
|
20305
|
+
})) : s.value ? (Q(), ut("div", KD, [
|
|
20306
|
+
ct("div", ZD, [
|
|
20307
|
+
ct("div", QD, [
|
|
20308
|
+
ct("div", JD, lt(at(e).t("topNTable.nameLabel")), 1),
|
|
20309
|
+
ct("div", tT, lt(l.value), 1)
|
|
20309
20310
|
])
|
|
20310
20311
|
]),
|
|
20311
|
-
ct("div",
|
|
20312
|
+
ct("div", eT, [
|
|
20312
20313
|
(Q(!0), ut(Zi, null, no(i.value, (M, C) => (Q(), ut("div", {
|
|
20313
20314
|
key: `entry-${C}`,
|
|
20314
20315
|
class: "table-row",
|
|
20315
20316
|
"data-testid": `row-${u(M)}`
|
|
20316
20317
|
}, [
|
|
20317
|
-
ct("div",
|
|
20318
|
+
ct("div", iT, [
|
|
20318
20319
|
so(g.$slots, "name", {
|
|
20319
20320
|
record: {
|
|
20320
20321
|
id: u(M),
|
|
@@ -20326,8 +20327,8 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20326
20327
|
Ee(lt(d(M)), 1)
|
|
20327
20328
|
], !0)
|
|
20328
20329
|
]),
|
|
20329
|
-
ct("div",
|
|
20330
|
-
], 8,
|
|
20330
|
+
ct("div", sT, " " + lt(f(M)), 1)
|
|
20331
|
+
], 8, nT))), 128))
|
|
20331
20332
|
])
|
|
20332
20333
|
])) : (Q(), ae(b, {
|
|
20333
20334
|
key: 2,
|
|
@@ -20345,36 +20346,36 @@ const CT = { class: "kong-ui-public-csv-export-modal" }, PT = {
|
|
|
20345
20346
|
n.title ? {
|
|
20346
20347
|
name: "title",
|
|
20347
20348
|
fn: Wt(() => [
|
|
20348
|
-
ct("span",
|
|
20349
|
+
ct("span", XD, lt(n.title), 1)
|
|
20349
20350
|
]),
|
|
20350
20351
|
key: "0"
|
|
20351
20352
|
} : void 0,
|
|
20352
20353
|
n.description ? {
|
|
20353
20354
|
name: "actions",
|
|
20354
20355
|
fn: Wt(() => [
|
|
20355
|
-
ct("div",
|
|
20356
|
+
ct("div", GD, lt(n.description), 1)
|
|
20356
20357
|
]),
|
|
20357
20358
|
key: "1"
|
|
20358
20359
|
} : void 0
|
|
20359
20360
|
]), 1032, ["title-tag"]);
|
|
20360
20361
|
};
|
|
20361
20362
|
}
|
|
20362
|
-
}),
|
|
20363
|
+
}), _T = /* @__PURE__ */ ln(rT, [["__scopeId", "data-v-50809fdb"]]);
|
|
20363
20364
|
export {
|
|
20364
|
-
|
|
20365
|
+
bT as AnalyticsChart,
|
|
20365
20366
|
Ht as ChartLegendPosition,
|
|
20366
20367
|
Bi as ChartMetricDisplay,
|
|
20367
20368
|
ne as ChartTypes,
|
|
20368
20369
|
Oo as ChartTypesSimple,
|
|
20369
|
-
|
|
20370
|
-
|
|
20371
|
-
|
|
20370
|
+
AD as CsvExportButton,
|
|
20371
|
+
ED as CsvExportModal,
|
|
20372
|
+
Tw as DECIMAL_DISPLAY,
|
|
20372
20373
|
Pw as FONT_SIZE_REGULAR,
|
|
20373
20374
|
Cw as FONT_SIZE_SMALL,
|
|
20374
20375
|
ja as MAX_LABEL_LENGTH,
|
|
20375
|
-
|
|
20376
|
-
|
|
20377
|
-
|
|
20376
|
+
pT as OTHERS_COLOR,
|
|
20377
|
+
xT as SimpleChart,
|
|
20378
|
+
_T as TopNTable,
|
|
20378
20379
|
ai as ValidType,
|
|
20379
20380
|
Ew as accessibleGrey,
|
|
20380
20381
|
Aw as apiRequestStatusCodeColors,
|
|
@@ -20382,14 +20383,14 @@ export {
|
|
|
20382
20383
|
Ow as darkenColor,
|
|
20383
20384
|
Cn as datavisPalette,
|
|
20384
20385
|
aa as defaultStatusCodeColors,
|
|
20385
|
-
|
|
20386
|
-
|
|
20386
|
+
fT as errorRateColors,
|
|
20387
|
+
gT as latencyColors,
|
|
20387
20388
|
Wc as lightGrey,
|
|
20388
|
-
|
|
20389
|
+
mT as lookupColor,
|
|
20389
20390
|
Ki as lookupDatavisColor,
|
|
20390
|
-
|
|
20391
|
+
yT as lookupStatusCodeCategoryColor,
|
|
20391
20392
|
hh as lookupStatusCodeColor,
|
|
20392
20393
|
Ya as numberFormatter,
|
|
20393
|
-
|
|
20394
|
-
|
|
20394
|
+
dT as statusCodeBadgeBackgroundColor,
|
|
20395
|
+
hT as trafficColors
|
|
20395
20396
|
};
|