@kong-ui-public/analytics-chart 10.10.3 → 10.10.4
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 +518 -518
- package/dist/vitals-chart.umd.js +6 -6
- package/package.json +4 -4
package/dist/vitals-chart.es.js
CHANGED
|
@@ -15435,7 +15435,7 @@ var fg = { exports: {} };
|
|
|
15435
15435
|
var jM = fg.exports;
|
|
15436
15436
|
const il = /* @__PURE__ */ NM(jM);
|
|
15437
15437
|
var zd;
|
|
15438
|
-
const
|
|
15438
|
+
const UM = typeof document < "u" && ((zd = document.documentElement) == null ? void 0 : zd.lang) || "en-US", ca = new Intl.NumberFormat(UM);
|
|
15439
15439
|
function os({
|
|
15440
15440
|
i18n: n
|
|
15441
15441
|
}) {
|
|
@@ -15557,12 +15557,12 @@ const Oa = (n) => ["interactive", "zoom-interactive"].includes(n), gg = (n, t, e
|
|
|
15557
15557
|
};
|
|
15558
15558
|
}).sort(r), n.left = `${e.x}px`, n.top = `${e.y}px`, n.showTooltip = !0;
|
|
15559
15559
|
}
|
|
15560
|
-
},
|
|
15560
|
+
}, VM = (n) => n && n.datasets && n.datasets.length, qM = (n) => VM(n) && n.datasets.some((t) => t.data.length), XM = (n) => n.datasets.some((t) => t.data[0] && xc(t.data[0].x)), GM = (n) => !!qM(n) && n.datasets.some((t) => t.data.length == 1), KM = (n) => XM(n) && n.datasets.some(
|
|
15561
15561
|
(t) => t.data[0] && t.data[0].x.toString().length >= 13
|
|
15562
15562
|
), Dc = (n, t, e) => {
|
|
15563
15563
|
const s = Math.min(t / 1150, 1);
|
|
15564
15564
|
return n.x < e ? n.x + t * 0.15 * (1 - s) : n.x - t * 1.15 * (1 - s);
|
|
15565
|
-
},
|
|
15565
|
+
}, ZM = (n, t, e) => n.y < e ? n.y + t * 0.15 : n.y - t * 0.5;
|
|
15566
15566
|
function pg(n, t) {
|
|
15567
15567
|
let e;
|
|
15568
15568
|
return (...i) => {
|
|
@@ -15581,7 +15581,7 @@ const yg = (n, t, e) => {
|
|
|
15581
15581
|
value: t && t[s.text],
|
|
15582
15582
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15583
15583
|
})).sort(e);
|
|
15584
|
-
},
|
|
15584
|
+
}, UO = 2, QM = 10, JM = 12, Yl = 10, Hd = "#6c7489", tS = "#d60027", kc = "#6c7489", eS = "#995c00", nS = "#ffc400", Cc = "16px", iS = "20px", sS = "'Inter', Roboto, Helvetica, sans-serif", Bd = {
|
|
15585
15585
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
15586
15586
|
"SuccessfulRequests|2XXCount|2XX|2[0-9][0-9]|SUCCESS": { solid: "#0BB652", light: "#6FCC83", description: "Success" },
|
|
15587
15587
|
"3XXCount|3XX|3[0-9][0-9]": { solid: "#FDC53B", light: "#FFD982", description: "Redirection" },
|
|
@@ -15604,68 +15604,68 @@ const yg = (n, t, e) => {
|
|
|
15604
15604
|
"#00bbf9",
|
|
15605
15605
|
"#00c4b0",
|
|
15606
15606
|
"#ffdf15"
|
|
15607
|
-
], $l = (n, t) => (t || Jn)[n % Jn.length],
|
|
15607
|
+
], $l = (n, t) => (t || Jn)[n % Jn.length], rS = (n, t) => {
|
|
15608
15608
|
n[0] === "#" && (n = n.slice(1));
|
|
15609
15609
|
let e = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), s = parseInt(n.substring(4, 6), 16);
|
|
15610
15610
|
e = e - t, i = i - t, s = s - t, e > 255 ? e = 255 : e < 0 && (e = 0), i > 255 ? i = 255 : i < 0 && (i = 0), s > 255 ? s = 255 : s < 0 && (s = 0);
|
|
15611
15611
|
const r = e.toString(16).length === 1 ? "0" + e.toString(16) : e.toString(16), a = i.toString(16).length === 1 ? "0" + i.toString(16) : i.toString(16), o = s.toString(16).length === 1 ? "0" + s.toString(16) : s.toString(16);
|
|
15612
15612
|
return `#${r}${a}${o}`;
|
|
15613
|
-
},
|
|
15613
|
+
}, aS = "#6f7787", oS = {
|
|
15614
15614
|
100: { background: "#f0f5fd", text: "#10599e" },
|
|
15615
15615
|
200: { background: "#e5f7f4", text: "#1b6955" },
|
|
15616
15616
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
15617
15617
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
15618
15618
|
500: { background: "#fedada", text: "#852021" }
|
|
15619
|
-
},
|
|
15619
|
+
}, VO = (n) => {
|
|
15620
15620
|
var e;
|
|
15621
15621
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
15622
|
-
return ((e =
|
|
15623
|
-
},
|
|
15622
|
+
return ((e = oS[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
15623
|
+
}, qO = {
|
|
15624
15624
|
SUCCESS: "#6FCC83",
|
|
15625
15625
|
FAILURE: "#FF8484"
|
|
15626
|
-
},
|
|
15626
|
+
}, XO = {
|
|
15627
15627
|
"4XX": "#FFBA81",
|
|
15628
15628
|
"5XX": "#FF8484"
|
|
15629
|
-
},
|
|
15629
|
+
}, GO = {
|
|
15630
15630
|
LatencyP99: "#1356cb",
|
|
15631
15631
|
LatencyP95: "#1fbecd",
|
|
15632
15632
|
LatencyP50: "#1df97d"
|
|
15633
|
-
},
|
|
15633
|
+
}, KO = "#dad4c7", lS = "#afb7c5", ZO = (n) => {
|
|
15634
15634
|
const t = Object.entries(Bd).find(([e]) => new RegExp(e).test(n));
|
|
15635
15635
|
return t && t[1] || Bd.standard;
|
|
15636
15636
|
}, bg = (n, t, e, i) => {
|
|
15637
15637
|
let s;
|
|
15638
|
-
return e ? s =
|
|
15638
|
+
return e ? s = lS : Array.isArray(i) ? s = $l(n, i) : s = i[t], s || $l(n);
|
|
15639
15639
|
}, sl = (n) => {
|
|
15640
15640
|
switch (n) {
|
|
15641
15641
|
case "error":
|
|
15642
|
-
return
|
|
15642
|
+
return tS;
|
|
15643
15643
|
case "warning":
|
|
15644
|
-
return
|
|
15644
|
+
return nS;
|
|
15645
15645
|
case "neutral":
|
|
15646
15646
|
return Hd;
|
|
15647
15647
|
default:
|
|
15648
15648
|
return Hd;
|
|
15649
15649
|
}
|
|
15650
|
-
},
|
|
15650
|
+
}, cS = {
|
|
15651
15651
|
lineTension: 0,
|
|
15652
15652
|
pointBorderWidth: 1.2,
|
|
15653
15653
|
borderJoinStyle: "round",
|
|
15654
15654
|
fill: !0
|
|
15655
|
-
},
|
|
15655
|
+
}, uS = 2, dS = 0, rl = /* @__PURE__ */ new Map(), Wd = (n, t) => {
|
|
15656
15656
|
const { i18n: e } = _t.useI18n(), { formatBytes: i } = os({ i18n: e });
|
|
15657
15657
|
return t === "bytes" ? i(n) : t === "count/minute" ? n.toFixed(2) : ca.format(n);
|
|
15658
|
-
},
|
|
15658
|
+
}, hS = (n) => {
|
|
15659
15659
|
const e = document.createElement("canvas").getContext("2d"), i = Wt({});
|
|
15660
15660
|
return e.font = i.string, e.measureText(n).width;
|
|
15661
|
-
},
|
|
15661
|
+
}, fS = () => {
|
|
15662
15662
|
const n = "label_height";
|
|
15663
15663
|
if (!rl.has(n)) {
|
|
15664
15664
|
const t = Wt({});
|
|
15665
15665
|
rl.set(n, t.lineHeight);
|
|
15666
15666
|
}
|
|
15667
15667
|
return rl.get(n);
|
|
15668
|
-
},
|
|
15668
|
+
}, gS = (n, t) => t.datasets.reduce((e, i, s) => n.isDatasetVisible(s) ? e + i.data.reduce((r, a) => isNaN(a) ? r : r + a, 0) : e, 0), mS = (n, t) => t === 0 ? " (0.0%)" : ` (${(n / t * 100).toFixed(1)}%)`, Yd = "#e0e4ea", pS = {
|
|
15669
15669
|
100: ["#c8e2fd", "#80bfff", "#4da6ff", "#1a8cff", "#0072e5", "#0059b2"],
|
|
15670
15670
|
200: ["#ceedd2", "#9edca6", "#89d595", "#6fcc83", "#44c26b", "#0bb652", "#0ca84a", "#169643", "#196e33", "#1b572a"],
|
|
15671
15671
|
300: ["#fff4db", "#ffe9b8", "#ffe2a1", "#ffd982", "#ffd062", "#fdc53b", "#f4bb1e", "#e8b00b", "#d9a30f", "#c89407"],
|
|
@@ -15673,11 +15673,11 @@ const yg = (n, t, e) => {
|
|
|
15673
15673
|
500: ["#ffd5d5", "#ffb6b6", "#ff9d9d", "#ff8484", "#ff6a6a", "#ff4545", "#fb1f1f", "#e90b0b", "#d40202", "#be0202"]
|
|
15674
15674
|
}, As = (n, t) => {
|
|
15675
15675
|
let e = 1;
|
|
15676
|
-
const i =
|
|
15676
|
+
const i = pS[n], s = /* @__PURE__ */ new Map();
|
|
15677
15677
|
for (const r of t)
|
|
15678
15678
|
s.set(r, i[e]), e = e % (i.length - 1) + 1;
|
|
15679
15679
|
return s.set(-1, i[0]), s;
|
|
15680
|
-
},
|
|
15680
|
+
}, yS = /* @__PURE__ */ new Map([
|
|
15681
15681
|
[100, As("100", [100, 101, 102, 103])],
|
|
15682
15682
|
[200, As("200", [200, 201, 202, 203, 204, 205, 206, 207, 208, 226])],
|
|
15683
15683
|
[300, As("300", [300, 301, 302, 303, 304, 305, 307, 308])],
|
|
@@ -15714,13 +15714,13 @@ const yg = (n, t, e) => {
|
|
|
15714
15714
|
])],
|
|
15715
15715
|
[500, As("500", [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511])]
|
|
15716
15716
|
]), _g = (n) => {
|
|
15717
|
-
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i =
|
|
15717
|
+
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = yS.get(e);
|
|
15718
15718
|
return i === void 0 ? Yd : i.get(t) ?? i.get(-1) ?? Yd;
|
|
15719
|
-
},
|
|
15719
|
+
}, QO = (n) => {
|
|
15720
15720
|
const t = _g(n);
|
|
15721
15721
|
return { solid: t, light: t };
|
|
15722
|
-
},
|
|
15723
|
-
...
|
|
15722
|
+
}, bS = Array.from({ length: 500 }, (n, t) => 100 + t), al = {
|
|
15723
|
+
...bS.reduce((n, t) => (n[`${t}`] = _g(`${t}`), n), {}),
|
|
15724
15724
|
____OTHER____: "#DAD4C7",
|
|
15725
15725
|
"1XX": "#4DA6FF",
|
|
15726
15726
|
"2XX": "#6FCC83",
|
|
@@ -15729,30 +15729,30 @@ const yg = (n, t, e) => {
|
|
|
15729
15729
|
"5XX": "#FF8484"
|
|
15730
15730
|
};
|
|
15731
15731
|
function $d(n, t, e) {
|
|
15732
|
-
const i = qf(), s =
|
|
15733
|
-
return "formatToParts" in s ?
|
|
15732
|
+
const i = qf(), s = vS(n, e.timeZone, e.locale ?? i.locale);
|
|
15733
|
+
return "formatToParts" in s ? _S(s, t) : xS(s, t);
|
|
15734
15734
|
}
|
|
15735
|
-
function
|
|
15735
|
+
function _S(n, t) {
|
|
15736
15736
|
const e = n.formatToParts(t);
|
|
15737
15737
|
for (let i = e.length - 1; i >= 0; --i)
|
|
15738
15738
|
if (e[i].type === "timeZoneName")
|
|
15739
15739
|
return e[i].value;
|
|
15740
15740
|
}
|
|
15741
|
-
function
|
|
15741
|
+
function xS(n, t) {
|
|
15742
15742
|
const e = n.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(e);
|
|
15743
15743
|
return i ? i[0].substr(1) : "";
|
|
15744
15744
|
}
|
|
15745
|
-
function
|
|
15745
|
+
function vS(n, t, e) {
|
|
15746
15746
|
return new Intl.DateTimeFormat(e ? [e.code, "en-US"] : void 0, {
|
|
15747
15747
|
timeZone: t,
|
|
15748
15748
|
timeZoneName: n
|
|
15749
15749
|
});
|
|
15750
15750
|
}
|
|
15751
|
-
function
|
|
15752
|
-
const e =
|
|
15753
|
-
return "formatToParts" in e ?
|
|
15751
|
+
function wS(n, t) {
|
|
15752
|
+
const e = kS(t);
|
|
15753
|
+
return "formatToParts" in e ? SS(e, n) : TS(e, n);
|
|
15754
15754
|
}
|
|
15755
|
-
const
|
|
15755
|
+
const MS = {
|
|
15756
15756
|
year: 0,
|
|
15757
15757
|
month: 1,
|
|
15758
15758
|
day: 2,
|
|
@@ -15760,11 +15760,11 @@ const wS = {
|
|
|
15760
15760
|
minute: 4,
|
|
15761
15761
|
second: 5
|
|
15762
15762
|
};
|
|
15763
|
-
function
|
|
15763
|
+
function SS(n, t) {
|
|
15764
15764
|
try {
|
|
15765
15765
|
const e = n.formatToParts(t), i = [];
|
|
15766
15766
|
for (let s = 0; s < e.length; s++) {
|
|
15767
|
-
const r =
|
|
15767
|
+
const r = MS[e[s].type];
|
|
15768
15768
|
r !== void 0 && (i[r] = parseInt(e[s].value, 10));
|
|
15769
15769
|
}
|
|
15770
15770
|
return i;
|
|
@@ -15774,7 +15774,7 @@ function MS(n, t) {
|
|
|
15774
15774
|
throw e;
|
|
15775
15775
|
}
|
|
15776
15776
|
}
|
|
15777
|
-
function
|
|
15777
|
+
function TS(n, t) {
|
|
15778
15778
|
const e = n.format(t), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);
|
|
15779
15779
|
return [
|
|
15780
15780
|
parseInt(i[3], 10),
|
|
@@ -15794,9 +15794,9 @@ const ol = {}, jd = new Intl.DateTimeFormat("en-US", {
|
|
|
15794
15794
|
hour: "2-digit",
|
|
15795
15795
|
minute: "2-digit",
|
|
15796
15796
|
second: "2-digit"
|
|
15797
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
15798
|
-
function
|
|
15799
|
-
return ol[n] || (ol[n] =
|
|
15797
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), DS = jd === "06/25/2014, 00:00:00" || jd === "06/25/2014 00:00:00";
|
|
15798
|
+
function kS(n) {
|
|
15799
|
+
return ol[n] || (ol[n] = DS ? new Intl.DateTimeFormat("en-US", {
|
|
15800
15800
|
hourCycle: "h23",
|
|
15801
15801
|
timeZone: n,
|
|
15802
15802
|
year: "numeric",
|
|
@@ -15820,7 +15820,7 @@ function xg(n, t, e, i, s, r, a) {
|
|
|
15820
15820
|
const o = /* @__PURE__ */ new Date(0);
|
|
15821
15821
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
15822
15822
|
}
|
|
15823
|
-
const Ud = 36e5,
|
|
15823
|
+
const Ud = 36e5, CS = 6e4, ll = {
|
|
15824
15824
|
timezoneZ: /^(Z)$/,
|
|
15825
15825
|
timezoneHH: /^([+-]\d{2})$/,
|
|
15826
15826
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -15837,25 +15837,25 @@ function Oc(n, t, e) {
|
|
|
15837
15837
|
if (i = ll.timezoneHHMM.exec(n), i) {
|
|
15838
15838
|
s = parseInt(i[2], 10);
|
|
15839
15839
|
const a = parseInt(i[3], 10);
|
|
15840
|
-
return Vd(s, a) ? (r = Math.abs(s) * Ud + a *
|
|
15840
|
+
return Vd(s, a) ? (r = Math.abs(s) * Ud + a * CS, i[1] === "+" ? -r : r) : NaN;
|
|
15841
15841
|
}
|
|
15842
|
-
if (
|
|
15842
|
+
if (ES(n)) {
|
|
15843
15843
|
t = new Date(t || Date.now());
|
|
15844
|
-
const a = e ? t :
|
|
15845
|
-
return -(e ? o :
|
|
15844
|
+
const a = e ? t : OS(t), o = jl(a, n);
|
|
15845
|
+
return -(e ? o : PS(t, o, n));
|
|
15846
15846
|
}
|
|
15847
15847
|
return NaN;
|
|
15848
15848
|
}
|
|
15849
|
-
function
|
|
15849
|
+
function OS(n) {
|
|
15850
15850
|
return xg(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
15851
15851
|
}
|
|
15852
15852
|
function jl(n, t) {
|
|
15853
|
-
const e =
|
|
15853
|
+
const e = wS(n, t), i = xg(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
15854
15854
|
let s = n.getTime();
|
|
15855
15855
|
const r = s % 1e3;
|
|
15856
15856
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
15857
15857
|
}
|
|
15858
|
-
function
|
|
15858
|
+
function PS(n, t, e) {
|
|
15859
15859
|
let s = n.getTime() - t;
|
|
15860
15860
|
const r = jl(new Date(s), e);
|
|
15861
15861
|
if (t === r)
|
|
@@ -15868,7 +15868,7 @@ function Vd(n, t) {
|
|
|
15868
15868
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
15869
15869
|
}
|
|
15870
15870
|
const qd = {};
|
|
15871
|
-
function
|
|
15871
|
+
function ES(n) {
|
|
15872
15872
|
if (qd[n])
|
|
15873
15873
|
return !0;
|
|
15874
15874
|
try {
|
|
@@ -15877,7 +15877,7 @@ function PS(n) {
|
|
|
15877
15877
|
return !1;
|
|
15878
15878
|
}
|
|
15879
15879
|
}
|
|
15880
|
-
const
|
|
15880
|
+
const AS = 60 * 1e3, RS = {
|
|
15881
15881
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
15882
15882
|
X: function(n, t, e) {
|
|
15883
15883
|
const i = cl(e.timeZone, n);
|
|
@@ -15917,7 +15917,7 @@ const ES = 60 * 1e3, AS = {
|
|
|
15917
15917
|
case "O":
|
|
15918
15918
|
case "OO":
|
|
15919
15919
|
case "OOO":
|
|
15920
|
-
return "GMT" +
|
|
15920
|
+
return "GMT" + IS(i, ":");
|
|
15921
15921
|
case "OOOO":
|
|
15922
15922
|
default:
|
|
15923
15923
|
return "GMT" + qi(i, ":");
|
|
@@ -15937,7 +15937,7 @@ const ES = 60 * 1e3, AS = {
|
|
|
15937
15937
|
}
|
|
15938
15938
|
};
|
|
15939
15939
|
function cl(n, t) {
|
|
15940
|
-
const e = n ? Oc(n, t, !0) /
|
|
15940
|
+
const e = n ? Oc(n, t, !0) / AS : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
15941
15941
|
if (Number.isNaN(e))
|
|
15942
15942
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
15943
15943
|
return e;
|
|
@@ -15956,7 +15956,7 @@ function qi(n, t = "") {
|
|
|
15956
15956
|
function Xd(n, t) {
|
|
15957
15957
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Pa(Math.abs(n) / 60, 2) : qi(n, t);
|
|
15958
15958
|
}
|
|
15959
|
-
function
|
|
15959
|
+
function IS(n, t = "") {
|
|
15960
15960
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
15961
15961
|
return r === 0 ? e + String(s) : e + String(s) + t + Pa(r, 2);
|
|
15962
15962
|
}
|
|
@@ -15964,7 +15964,7 @@ function Gd(n) {
|
|
|
15964
15964
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
15965
15965
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
15966
15966
|
}
|
|
15967
|
-
const
|
|
15967
|
+
const LS = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, ul = 36e5, Kd = 6e4, NS = 2, De = {
|
|
15968
15968
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
15969
15969
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
15970
15970
|
// year tokens
|
|
@@ -15996,14 +15996,14 @@ const IS = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
15996
15996
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
15997
15997
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
15998
15998
|
// time zone tokens (to identify the presence of a tz)
|
|
15999
|
-
timeZone:
|
|
15999
|
+
timeZone: LS
|
|
16000
16000
|
};
|
|
16001
16001
|
function vg(n, t = {}) {
|
|
16002
16002
|
if (arguments.length < 1)
|
|
16003
16003
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
16004
16004
|
if (n === null)
|
|
16005
16005
|
return /* @__PURE__ */ new Date(NaN);
|
|
16006
|
-
const e = t.additionalDigits == null ?
|
|
16006
|
+
const e = t.additionalDigits == null ? NS : Number(t.additionalDigits);
|
|
16007
16007
|
if (e !== 2 && e !== 1 && e !== 0)
|
|
16008
16008
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
16009
16009
|
if (n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -16012,13 +16012,13 @@ function vg(n, t = {}) {
|
|
|
16012
16012
|
return new Date(n);
|
|
16013
16013
|
if (Object.prototype.toString.call(n) !== "[object String]")
|
|
16014
16014
|
return /* @__PURE__ */ new Date(NaN);
|
|
16015
|
-
const i =
|
|
16015
|
+
const i = FS(n), { year: s, restDateString: r } = zS(i.date, e), a = HS(r, s);
|
|
16016
16016
|
if (a === null || isNaN(a.getTime()))
|
|
16017
16017
|
return /* @__PURE__ */ new Date(NaN);
|
|
16018
16018
|
if (a) {
|
|
16019
16019
|
const o = a.getTime();
|
|
16020
16020
|
let l = 0, c;
|
|
16021
|
-
if (i.time && (l =
|
|
16021
|
+
if (i.time && (l = BS(i.time), l === null || isNaN(l)))
|
|
16022
16022
|
return /* @__PURE__ */ new Date(NaN);
|
|
16023
16023
|
if (i.timeZone || t.timeZone) {
|
|
16024
16024
|
if (c = Oc(i.timeZone || t.timeZone, new Date(o + l)), isNaN(c))
|
|
@@ -16029,7 +16029,7 @@ function vg(n, t = {}) {
|
|
|
16029
16029
|
} else
|
|
16030
16030
|
return /* @__PURE__ */ new Date(NaN);
|
|
16031
16031
|
}
|
|
16032
|
-
function
|
|
16032
|
+
function FS(n) {
|
|
16033
16033
|
const t = {};
|
|
16034
16034
|
let e = De.dateTimePattern.exec(n), i;
|
|
16035
16035
|
if (e ? (t.date = e[1], i = e[3]) : (e = De.datePattern.exec(n), e ? (t.date = e[1], i = e[2]) : (t.date = null, i = n)), i) {
|
|
@@ -16038,7 +16038,7 @@ function NS(n) {
|
|
|
16038
16038
|
}
|
|
16039
16039
|
return t;
|
|
16040
16040
|
}
|
|
16041
|
-
function
|
|
16041
|
+
function zS(n, t) {
|
|
16042
16042
|
if (n) {
|
|
16043
16043
|
const e = De.YYY[t], i = De.YYYYY[t];
|
|
16044
16044
|
let s = De.YYYY.exec(n) || i.exec(n);
|
|
@@ -16061,7 +16061,7 @@ function FS(n, t) {
|
|
|
16061
16061
|
year: null
|
|
16062
16062
|
};
|
|
16063
16063
|
}
|
|
16064
|
-
function
|
|
16064
|
+
function HS(n, t) {
|
|
16065
16065
|
if (t === null)
|
|
16066
16066
|
return null;
|
|
16067
16067
|
let e, i, s;
|
|
@@ -16073,7 +16073,7 @@ function zS(n, t) {
|
|
|
16073
16073
|
if (r = De.DDD.exec(n), r) {
|
|
16074
16074
|
e = /* @__PURE__ */ new Date(0);
|
|
16075
16075
|
const a = parseInt(r[1], 10);
|
|
16076
|
-
return
|
|
16076
|
+
return $S(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
16077
16077
|
}
|
|
16078
16078
|
if (r = De.MMDD.exec(n), r) {
|
|
16079
16079
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
@@ -16089,7 +16089,7 @@ function zS(n, t) {
|
|
|
16089
16089
|
}
|
|
16090
16090
|
return null;
|
|
16091
16091
|
}
|
|
16092
|
-
function
|
|
16092
|
+
function BS(n) {
|
|
16093
16093
|
let t, e, i = De.HH.exec(n);
|
|
16094
16094
|
if (i)
|
|
16095
16095
|
return t = parseFloat(i[1].replace(",", ".")), dl(t) ? t % 24 * ul : NaN;
|
|
@@ -16109,7 +16109,7 @@ function Zd(n, t, e) {
|
|
|
16109
16109
|
const s = i.getUTCDay() || 7, r = t * 7 + e + 1 - s;
|
|
16110
16110
|
return i.setUTCDate(i.getUTCDate() + r), i;
|
|
16111
16111
|
}
|
|
16112
|
-
const
|
|
16112
|
+
const WS = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], YS = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
16113
16113
|
function wg(n) {
|
|
16114
16114
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
16115
16115
|
}
|
|
@@ -16120,12 +16120,12 @@ function Qd(n, t, e) {
|
|
|
16120
16120
|
if (e < 1)
|
|
16121
16121
|
return !1;
|
|
16122
16122
|
const i = wg(n);
|
|
16123
|
-
if (i && e >
|
|
16123
|
+
if (i && e > YS[t] || !i && e > WS[t])
|
|
16124
16124
|
return !1;
|
|
16125
16125
|
}
|
|
16126
16126
|
return !0;
|
|
16127
16127
|
}
|
|
16128
|
-
function
|
|
16128
|
+
function $S(n, t) {
|
|
16129
16129
|
if (t < 1)
|
|
16130
16130
|
return !1;
|
|
16131
16131
|
const e = wg(n);
|
|
@@ -16137,22 +16137,22 @@ function Jd(n, t) {
|
|
|
16137
16137
|
function dl(n, t, e) {
|
|
16138
16138
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
16139
16139
|
}
|
|
16140
|
-
const
|
|
16140
|
+
const jS = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
16141
16141
|
function Ul(n, t, e = {}) {
|
|
16142
16142
|
t = String(t);
|
|
16143
|
-
const i = t.match(
|
|
16143
|
+
const i = t.match(jS);
|
|
16144
16144
|
if (i) {
|
|
16145
16145
|
const s = vg(e.originalDate || n, e);
|
|
16146
16146
|
t = i.reduce(function(r, a) {
|
|
16147
16147
|
if (a[0] === "'")
|
|
16148
16148
|
return r;
|
|
16149
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
16149
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + RS[a[0]](s, a, e) + "'");
|
|
16150
16150
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
16151
16151
|
}, t);
|
|
16152
16152
|
}
|
|
16153
16153
|
return Ma(n, t, e);
|
|
16154
16154
|
}
|
|
16155
|
-
function
|
|
16155
|
+
function US(n, t, e) {
|
|
16156
16156
|
n = vg(n, e);
|
|
16157
16157
|
const i = Oc(t, n, !0), s = new Date(n.getTime() - i), r = /* @__PURE__ */ new Date(0);
|
|
16158
16158
|
return r.setFullYear(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate()), r.setHours(s.getUTCHours(), s.getUTCMinutes(), s.getUTCSeconds(), s.getUTCMilliseconds()), r;
|
|
@@ -16162,9 +16162,9 @@ function Qs(n, t, e, i) {
|
|
|
16162
16162
|
...i,
|
|
16163
16163
|
timeZone: t,
|
|
16164
16164
|
originalDate: n
|
|
16165
|
-
}, Ul(
|
|
16165
|
+
}, Ul(US(n, t, { timeZone: i.timeZone }), e, i);
|
|
16166
16166
|
}
|
|
16167
|
-
const
|
|
16167
|
+
const VS = (n, t) => `${Qs(n, t, "yyyy")} W${Qs(n, t, "II")}`, hl = "yyyy-MM-dd h:mm:ss a", fl = "h:mm:ss a", mi = "yyyy-MM-dd h:mm a", ji = "h:mm a", qS = "yyyy-MM-dd", gl = "MMM dd, yyyy h:mm:ss a", Bn = "MMM dd, yyyy h:mm a", XS = {
|
|
16168
16168
|
secondly: (n) => n ? hl : fl,
|
|
16169
16169
|
tenSecondly: (n) => n ? hl : fl,
|
|
16170
16170
|
thirtySecondly: (n) => n ? hl : fl,
|
|
@@ -16175,8 +16175,8 @@ const US = (n, t) => `${Qs(n, t, "yyyy")} W${Qs(n, t, "II")}`, hl = "yyyy-MM-dd
|
|
|
16175
16175
|
hourly: (n) => n ? mi : ji,
|
|
16176
16176
|
twoHourly: (n) => n ? mi : ji,
|
|
16177
16177
|
twelveHourly: () => mi,
|
|
16178
|
-
daily: () =>
|
|
16179
|
-
},
|
|
16178
|
+
daily: () => qS
|
|
16179
|
+
}, GS = {
|
|
16180
16180
|
secondly: () => gl,
|
|
16181
16181
|
tenSecondly: () => gl,
|
|
16182
16182
|
thirtySecondly: () => gl,
|
|
@@ -16200,7 +16200,7 @@ function Mg({
|
|
|
16200
16200
|
}) {
|
|
16201
16201
|
const o = e || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
16202
16202
|
if (t === "weekly")
|
|
16203
|
-
return
|
|
16203
|
+
return VS(n, o);
|
|
16204
16204
|
if (s && s[t]) {
|
|
16205
16205
|
const l = s[t](i);
|
|
16206
16206
|
return Qs(n, o, l);
|
|
@@ -16211,7 +16211,7 @@ function Mg({
|
|
|
16211
16211
|
}
|
|
16212
16212
|
return Qs(n, o, a);
|
|
16213
16213
|
}
|
|
16214
|
-
const
|
|
16214
|
+
const KS = ({
|
|
16215
16215
|
tickValue: n,
|
|
16216
16216
|
granularity: t,
|
|
16217
16217
|
dayBoundaryCrossed: e,
|
|
@@ -16221,7 +16221,7 @@ const GS = ({
|
|
|
16221
16221
|
granularity: t,
|
|
16222
16222
|
timezone: i,
|
|
16223
16223
|
dayBoundaryCrossed: e,
|
|
16224
|
-
tickMap:
|
|
16224
|
+
tickMap: XS,
|
|
16225
16225
|
defaultFormat: "yyyy-MM-dd h:mm:ss a"
|
|
16226
16226
|
}), Ws = ({
|
|
16227
16227
|
tickValue: n,
|
|
@@ -16231,9 +16231,9 @@ const GS = ({
|
|
|
16231
16231
|
tickValue: n,
|
|
16232
16232
|
granularity: t,
|
|
16233
16233
|
timezone: e,
|
|
16234
|
-
tooltipMap:
|
|
16234
|
+
tooltipMap: GS,
|
|
16235
16235
|
defaultFormat: "MMM dd, yyyy h:mm:ss a"
|
|
16236
|
-
}),
|
|
16236
|
+
}), JO = (n) => {
|
|
16237
16237
|
var e, i, s, r, a;
|
|
16238
16238
|
const { i18n: t } = _t.useI18n();
|
|
16239
16239
|
return (n == null ? void 0 : n.status) === 403 ? {
|
|
@@ -16258,7 +16258,7 @@ const GS = ({
|
|
|
16258
16258
|
details: ((a = (r = (s = n.response) == null ? void 0 : s.data) == null ? void 0 : r.invalid_parameters) == null ? void 0 : a.map((o) => o.reason).join(", ")) || (n == null ? void 0 : n.message)
|
|
16259
16259
|
};
|
|
16260
16260
|
};
|
|
16261
|
-
function
|
|
16261
|
+
function ZS(n) {
|
|
16262
16262
|
const e = `barChartTooltipPosition-${n.tooltipState.chartID}`, i = {
|
|
16263
16263
|
enabled: !1,
|
|
16264
16264
|
position: e,
|
|
@@ -16284,7 +16284,7 @@ function KS(n) {
|
|
|
16284
16284
|
l.options.indexAxis === "y" && h.inYRange(u.y, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g }), l.options.indexAxis === "x" && h.inXRange(u.x, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g });
|
|
16285
16285
|
}), d;
|
|
16286
16286
|
};
|
|
16287
|
-
const s = n.numLabels.value > 25 ?
|
|
16287
|
+
const s = n.numLabels.value > 25 ? QM : JM, r = ({ chart: l, index: c }) => {
|
|
16288
16288
|
var d;
|
|
16289
16289
|
const u = l.data;
|
|
16290
16290
|
return {
|
|
@@ -16383,11 +16383,11 @@ function KS(n) {
|
|
|
16383
16383
|
}), o;
|
|
16384
16384
|
}
|
|
16385
16385
|
Fe.register(...J_);
|
|
16386
|
-
const
|
|
16386
|
+
const QS = (n, t) => {
|
|
16387
16387
|
const e = t.datasets.map((s) => s.label), i = n.datasets.map((s) => s.label);
|
|
16388
16388
|
return n.datasets.length === t.datasets.length && e.every((s, r) => s === i[r]);
|
|
16389
16389
|
};
|
|
16390
|
-
function
|
|
16390
|
+
function JS(n, t, e, i, s) {
|
|
16391
16391
|
const r = Ge(null), a = (o, l) => {
|
|
16392
16392
|
if (t.value)
|
|
16393
16393
|
return new Fe(t.value, {
|
|
@@ -16402,7 +16402,7 @@ function QS(n, t, e, i, s) {
|
|
|
16402
16402
|
}), Eh(() => {
|
|
16403
16403
|
ot(r.value) || r.value.destroy();
|
|
16404
16404
|
}), ce(e, (o, l) => {
|
|
16405
|
-
if (
|
|
16405
|
+
if (QS(l, o) && !ot(r.value)) {
|
|
16406
16406
|
for (const [c, u] of o.datasets.entries())
|
|
16407
16407
|
Object.assign(r.value.data.datasets[c], u);
|
|
16408
16408
|
r.value.data.labels = o.labels, r.value.update();
|
|
@@ -16447,9 +16447,9 @@ var Sg = { exports: {} };
|
|
|
16447
16447
|
l.addCommas = t, n.exports = l;
|
|
16448
16448
|
})();
|
|
16449
16449
|
})(Sg);
|
|
16450
|
-
var
|
|
16451
|
-
const Ea = /* @__PURE__ */ Pc(
|
|
16452
|
-
function
|
|
16450
|
+
var tT = Sg.exports;
|
|
16451
|
+
const Ea = /* @__PURE__ */ Pc(tT);
|
|
16452
|
+
function eT(n, t, e) {
|
|
16453
16453
|
const { i18n: i } = _t.useI18n(), { formatBytes: s } = os({ i18n: i }), { translateUnit: r } = _t.useTranslatedUnits();
|
|
16454
16454
|
return { legendValues: N(() => n.value.datasets.reduce((o, l) => {
|
|
16455
16455
|
const c = l.total ? l.total : l.data.reduce((d, h) => d + (typeof h == "number" ? Number(h) || 0 : Number(h && h.y) || 0), 0);
|
|
@@ -16473,7 +16473,7 @@ function tT(n, t, e) {
|
|
|
16473
16473
|
};
|
|
16474
16474
|
}, {})) };
|
|
16475
16475
|
}
|
|
16476
|
-
function
|
|
16476
|
+
function nT(n) {
|
|
16477
16477
|
return N(() => {
|
|
16478
16478
|
var s;
|
|
16479
16479
|
if (!((s = n.value) != null && s.meta))
|
|
@@ -16482,7 +16482,7 @@ function eT(n) {
|
|
|
16482
16482
|
return e && i ? `${Bl(e)} - ${Bl(i, { includeTZ: !0 })}` : "";
|
|
16483
16483
|
});
|
|
16484
16484
|
}
|
|
16485
|
-
function
|
|
16485
|
+
function iT(n) {
|
|
16486
16486
|
const e = `donutChartTooltipPosition-${n.tooltipState.chartID}`, i = {
|
|
16487
16487
|
enabled: !1,
|
|
16488
16488
|
position: e,
|
|
@@ -16536,7 +16536,7 @@ function nT(n) {
|
|
|
16536
16536
|
options: s
|
|
16537
16537
|
};
|
|
16538
16538
|
}
|
|
16539
|
-
function
|
|
16539
|
+
function sT(n) {
|
|
16540
16540
|
const t = N(() => {
|
|
16541
16541
|
var l, c;
|
|
16542
16542
|
return {
|
|
@@ -16555,7 +16555,7 @@ function iT(n) {
|
|
|
16555
16555
|
maxRotation: 0,
|
|
16556
16556
|
callback: (u) => {
|
|
16557
16557
|
const d = new Date(u);
|
|
16558
|
-
return
|
|
16558
|
+
return KS({
|
|
16559
16559
|
tickValue: d,
|
|
16560
16560
|
granularity: n.granularity.value,
|
|
16561
16561
|
dayBoundaryCrossed: a.value
|
|
@@ -16607,7 +16607,7 @@ function iT(n) {
|
|
|
16607
16607
|
if (!l.length || n.tooltipState.interactionMode === "interactive")
|
|
16608
16608
|
return !1;
|
|
16609
16609
|
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, b = Dc(c, d, f);
|
|
16610
|
-
let _ =
|
|
16610
|
+
let _ = ZM(c, h, g);
|
|
16611
16611
|
const v = c.y < g ? "top" : "bottom", M = c.x < f ? "left" : "center";
|
|
16612
16612
|
return h > u.height && (_ = 0), {
|
|
16613
16613
|
x: b,
|
|
@@ -16681,7 +16681,7 @@ function iT(n) {
|
|
|
16681
16681
|
options: o
|
|
16682
16682
|
};
|
|
16683
16683
|
}
|
|
16684
|
-
function
|
|
16684
|
+
function rT(n) {
|
|
16685
16685
|
const {
|
|
16686
16686
|
isMultiMetric: t,
|
|
16687
16687
|
hasDimensions: e,
|
|
@@ -16710,7 +16710,7 @@ function sT(n) {
|
|
|
16710
16710
|
};
|
|
16711
16711
|
});
|
|
16712
16712
|
}
|
|
16713
|
-
function
|
|
16713
|
+
function aT(n, t) {
|
|
16714
16714
|
const { i18n: e } = _t.useI18n();
|
|
16715
16715
|
return N(() => {
|
|
16716
16716
|
try {
|
|
@@ -16737,7 +16737,7 @@ function rT(n, t) {
|
|
|
16737
16737
|
name: Wl(y.id) || y.name
|
|
16738
16738
|
}))), h !== "status_code" && h !== "status_code_grouped" && (S.sort((y, w) => _.indexOf(y.id) - _.indexOf(w.id)), k.sort((y, w) => _.indexOf(y.id) - _.indexOf(w.id))), !S || !k)
|
|
16739
16739
|
return { labels: [], datasets: [] };
|
|
16740
|
-
const E =
|
|
16740
|
+
const E = rT({
|
|
16741
16741
|
isMultiMetric: l,
|
|
16742
16742
|
hasDimensions: c,
|
|
16743
16743
|
metricNames: a,
|
|
@@ -16760,7 +16760,7 @@ function rT(n, t) {
|
|
|
16760
16760
|
return { labels: [], datasets: [] };
|
|
16761
16761
|
});
|
|
16762
16762
|
}
|
|
16763
|
-
const
|
|
16763
|
+
const oT = (n, t, e = 1) => Array(Math.ceil((t - n) / e)).fill(n).map((i, s) => i + s * e), lT = (n) => {
|
|
16764
16764
|
if (typeof n == "string") {
|
|
16765
16765
|
const t = +n;
|
|
16766
16766
|
if (t)
|
|
@@ -16774,14 +16774,14 @@ const aT = (n, t, e = 1) => Array(Math.ceil((t - n) / e)).fill(n).map((i, s) =>
|
|
|
16774
16774
|
}
|
|
16775
16775
|
}
|
|
16776
16776
|
return n;
|
|
16777
|
-
},
|
|
16777
|
+
}, cT = (n, t, e, i, s) => {
|
|
16778
16778
|
const a = Math.max(
|
|
16779
16779
|
t - 6e4,
|
|
16780
16780
|
Math.max(...(s || []).map((c) => new Date(c.timestamp).valueOf()))
|
|
16781
16781
|
), o = Math.floor((n - i) / e) * e + i, l = Math.floor((a - i) / e) * e + i + e;
|
|
16782
|
-
return
|
|
16782
|
+
return oT(o, l, e);
|
|
16783
16783
|
};
|
|
16784
|
-
function
|
|
16784
|
+
function uT(n, t) {
|
|
16785
16785
|
const { i18n: e } = _t.useI18n();
|
|
16786
16786
|
return N(() => {
|
|
16787
16787
|
try {
|
|
@@ -16800,7 +16800,7 @@ function cT(n, t) {
|
|
|
16800
16800
|
return console.error("Invalid step value:", f), { datasets: [], labels: [] };
|
|
16801
16801
|
if (!s.length)
|
|
16802
16802
|
return { datasets: [], labels: [] };
|
|
16803
|
-
const g =
|
|
16803
|
+
const g = lT(o), b = cT(o, l, f, g, s), _ = /* @__PURE__ */ new Set(), v = s != null && s.length ? s.reduce((k, E) => {
|
|
16804
16804
|
const O = new Date(E.timestamp).valueOf(), D = E.event;
|
|
16805
16805
|
for (const m of a)
|
|
16806
16806
|
_.add(m), O in k || (k[O] = {}), m in k[O] || (k[O][m] = {});
|
|
@@ -16823,9 +16823,9 @@ function cT(n, t) {
|
|
|
16823
16823
|
backgroundColor: C,
|
|
16824
16824
|
data: m,
|
|
16825
16825
|
total: m.reduce((A, { y: R }) => A + Number(R), 0),
|
|
16826
|
-
...
|
|
16826
|
+
...cS,
|
|
16827
16827
|
fill: w,
|
|
16828
|
-
borderWidth: w ?
|
|
16828
|
+
borderWidth: w ? dS : uS,
|
|
16829
16829
|
isSegmentEmpty: O
|
|
16830
16830
|
};
|
|
16831
16831
|
});
|
|
@@ -16839,7 +16839,7 @@ function cT(n, t) {
|
|
|
16839
16839
|
return { labels: [], datasets: [] };
|
|
16840
16840
|
});
|
|
16841
16841
|
}
|
|
16842
|
-
const
|
|
16842
|
+
const dT = (n, t) => {
|
|
16843
16843
|
ce(
|
|
16844
16844
|
[n, t],
|
|
16845
16845
|
(e, i, s) => {
|
|
@@ -16855,16 +16855,16 @@ const uT = (n, t) => {
|
|
|
16855
16855
|
{ immediate: !0 }
|
|
16856
16856
|
);
|
|
16857
16857
|
};
|
|
16858
|
-
function
|
|
16858
|
+
function hT() {
|
|
16859
16859
|
const { i18n: n } = _t.useI18n();
|
|
16860
16860
|
return { translateUnit: (e, i) => {
|
|
16861
16861
|
const s = i === 1, r = `chartUnits.${e}`;
|
|
16862
16862
|
return e === "usd" ? "" : n.te(r) ? n.t(r, { plural: s ? "" : "s" }) : e;
|
|
16863
16863
|
} };
|
|
16864
16864
|
}
|
|
16865
|
-
const
|
|
16866
|
-
function
|
|
16867
|
-
const n = er(
|
|
16865
|
+
const fT = "analytics-query-provider", th = 2;
|
|
16866
|
+
function gT() {
|
|
16867
|
+
const n = er(fT);
|
|
16868
16868
|
return {
|
|
16869
16869
|
evaluateFeatureFlag: (e, i) => n ? n.evaluateFeatureFlagFn(e, i) : i
|
|
16870
16870
|
};
|
|
@@ -16874,14 +16874,14 @@ function Ec(n) {
|
|
|
16874
16874
|
}
|
|
16875
16875
|
const Tg = typeof window < "u" && typeof document < "u";
|
|
16876
16876
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16877
|
-
const
|
|
16877
|
+
const mT = (n) => n != null, pT = Object.prototype.toString, yT = (n) => pT.call(n) === "[object Object]";
|
|
16878
16878
|
function ua(n) {
|
|
16879
16879
|
return Array.isArray(n) ? n : [n];
|
|
16880
16880
|
}
|
|
16881
|
-
function
|
|
16881
|
+
function bT(n) {
|
|
16882
16882
|
return tc();
|
|
16883
16883
|
}
|
|
16884
|
-
function
|
|
16884
|
+
function _T(n, t = {}) {
|
|
16885
16885
|
if (!fm(n))
|
|
16886
16886
|
return gm(n);
|
|
16887
16887
|
const e = Array.isArray(n.value) ? Array.from({ length: n.value.length }) : {};
|
|
@@ -16906,10 +16906,10 @@ function bT(n, t = {}) {
|
|
|
16906
16906
|
}));
|
|
16907
16907
|
return e;
|
|
16908
16908
|
}
|
|
16909
|
-
function
|
|
16910
|
-
|
|
16909
|
+
function xT(n, t = !0, e) {
|
|
16910
|
+
bT() ? ni(n, e) : t ? n() : Ah(n);
|
|
16911
16911
|
}
|
|
16912
|
-
function
|
|
16912
|
+
function vT(n, t, e) {
|
|
16913
16913
|
return ce(
|
|
16914
16914
|
n,
|
|
16915
16915
|
t,
|
|
@@ -16931,7 +16931,7 @@ function Js(...n) {
|
|
|
16931
16931
|
}, i = (o, l, c, u) => (o.addEventListener(l, c, u), () => o.removeEventListener(l, c, u)), s = N(() => {
|
|
16932
16932
|
const o = ua(Gt(n[0])).filter((l) => l != null);
|
|
16933
16933
|
return o.every((l) => typeof l != "string") ? o : void 0;
|
|
16934
|
-
}), r =
|
|
16934
|
+
}), r = vT(
|
|
16935
16935
|
() => {
|
|
16936
16936
|
var o, l;
|
|
16937
16937
|
return [
|
|
@@ -16945,7 +16945,7 @@ function Js(...n) {
|
|
|
16945
16945
|
([o, l, c, u]) => {
|
|
16946
16946
|
if (e(), !(o != null && o.length) || !(l != null && l.length) || !(c != null && c.length))
|
|
16947
16947
|
return;
|
|
16948
|
-
const d =
|
|
16948
|
+
const d = yT(u) ? { ...u } : u;
|
|
16949
16949
|
t.push(
|
|
16950
16950
|
...o.flatMap(
|
|
16951
16951
|
(h) => l.flatMap(
|
|
@@ -16960,23 +16960,23 @@ function Js(...n) {
|
|
|
16960
16960
|
};
|
|
16961
16961
|
return Ec(e), a;
|
|
16962
16962
|
}
|
|
16963
|
-
function
|
|
16963
|
+
function wT() {
|
|
16964
16964
|
const n = Ge(!1), t = tc();
|
|
16965
16965
|
return t && ni(() => {
|
|
16966
16966
|
n.value = !0;
|
|
16967
16967
|
}, t), n;
|
|
16968
16968
|
}
|
|
16969
16969
|
function Dg(n) {
|
|
16970
|
-
const t =
|
|
16970
|
+
const t = wT();
|
|
16971
16971
|
return N(() => (t.value, !!n()));
|
|
16972
16972
|
}
|
|
16973
|
-
function
|
|
16973
|
+
function MT(n, t, e = {}) {
|
|
16974
16974
|
const { window: i = Ba, ...s } = e;
|
|
16975
16975
|
let r;
|
|
16976
16976
|
const a = Dg(() => i && "MutationObserver" in i), o = () => {
|
|
16977
16977
|
r && (r.disconnect(), r = void 0);
|
|
16978
16978
|
}, l = N(() => {
|
|
16979
|
-
const h = Gt(n), f = ua(h).map(ss).filter(
|
|
16979
|
+
const h = Gt(n), f = ua(h).map(ss).filter(mT);
|
|
16980
16980
|
return new Set(f);
|
|
16981
16981
|
}), c = ce(
|
|
16982
16982
|
() => l.value,
|
|
@@ -16993,7 +16993,7 @@ function wT(n, t, e = {}) {
|
|
|
16993
16993
|
takeRecords: u
|
|
16994
16994
|
};
|
|
16995
16995
|
}
|
|
16996
|
-
function
|
|
16996
|
+
function ST(n, t = {}) {
|
|
16997
16997
|
var e;
|
|
16998
16998
|
const {
|
|
16999
16999
|
pointerTypes: i,
|
|
@@ -17045,7 +17045,7 @@ function MT(n, t = {}) {
|
|
|
17045
17045
|
Js(g, "pointerdown", k, D), Js(h, "pointermove", E, D), Js(h, "pointerup", O, D);
|
|
17046
17046
|
}
|
|
17047
17047
|
return {
|
|
17048
|
-
...
|
|
17048
|
+
..._T(_),
|
|
17049
17049
|
position: _,
|
|
17050
17050
|
isDragging: N(() => !!v.value),
|
|
17051
17051
|
style: N(
|
|
@@ -17053,7 +17053,7 @@ function MT(n, t = {}) {
|
|
|
17053
17053
|
)
|
|
17054
17054
|
};
|
|
17055
17055
|
}
|
|
17056
|
-
function
|
|
17056
|
+
function TT(n, t, e = {}) {
|
|
17057
17057
|
const { window: i = Ba, ...s } = e;
|
|
17058
17058
|
let r;
|
|
17059
17059
|
const a = Dg(() => i && "ResizeObserver" in i), o = () => {
|
|
@@ -17079,7 +17079,7 @@ function ST(n, t, e = {}) {
|
|
|
17079
17079
|
stop: u
|
|
17080
17080
|
};
|
|
17081
17081
|
}
|
|
17082
|
-
function
|
|
17082
|
+
function DT(n, t = {}) {
|
|
17083
17083
|
const {
|
|
17084
17084
|
reset: e = !0,
|
|
17085
17085
|
windowResize: i = !0,
|
|
@@ -17099,9 +17099,9 @@ function TT(n, t = {}) {
|
|
|
17099
17099
|
function _() {
|
|
17100
17100
|
a === "sync" ? b() : a === "next-frame" && requestAnimationFrame(() => b());
|
|
17101
17101
|
}
|
|
17102
|
-
return
|
|
17102
|
+
return TT(n, _), ce(() => ss(n), (v) => !v && _()), MT(n, _, {
|
|
17103
17103
|
attributeFilter: ["style", "class"]
|
|
17104
|
-
}), s && Js("scroll", _, { capture: !0, passive: !0 }), i && Js("resize", _, { passive: !0 }),
|
|
17104
|
+
}), s && Js("scroll", _, { capture: !0, passive: !0 }), i && Js("resize", _, { passive: !0 }), xT(() => {
|
|
17105
17105
|
r && _();
|
|
17106
17106
|
}), {
|
|
17107
17107
|
height: o,
|
|
@@ -17115,14 +17115,14 @@ function TT(n, t = {}) {
|
|
|
17115
17115
|
update: _
|
|
17116
17116
|
};
|
|
17117
17117
|
}
|
|
17118
|
-
function
|
|
17119
|
-
const { top: e, left: i } =
|
|
17118
|
+
function kT(n, t) {
|
|
17119
|
+
const { top: e, left: i } = DT(n), s = N(() => n.value ? `${parseFloat(t.left) + i.value}px` : t.left), r = N(() => n.value ? `${parseFloat(t.top) + e.value}px` : t.top);
|
|
17120
17120
|
return {
|
|
17121
17121
|
tooltipAbsoluteLeft: s,
|
|
17122
17122
|
tooltipAbsoluteTop: r
|
|
17123
17123
|
};
|
|
17124
17124
|
}
|
|
17125
|
-
const
|
|
17125
|
+
const CT = ({
|
|
17126
17126
|
bucketCount: n,
|
|
17127
17127
|
minStamp: t,
|
|
17128
17128
|
maxStamp: e,
|
|
@@ -17147,13 +17147,13 @@ const kT = ({
|
|
|
17147
17147
|
minStamps: {},
|
|
17148
17148
|
maxStamps: {},
|
|
17149
17149
|
renderPoints: {}
|
|
17150
|
-
}), tr = Lt({}),
|
|
17150
|
+
}), tr = Lt({}), OT = (n) => (tr.value[n] || (tr.value[n] = kg()), tr.value[n]), PT = (n, t) => {
|
|
17151
17151
|
const e = tr.value[t];
|
|
17152
17152
|
if (!e) return;
|
|
17153
17153
|
const i = e.minCounts[n] !== void 0 || e.maxCounts[n] !== void 0 || e.minStamps[n] !== void 0 || e.maxStamps[n] !== void 0 || e.renderPoints[n] !== void 0;
|
|
17154
17154
|
e && i && (delete e.minCounts[n], delete e.maxCounts[n], delete e.minStamps[n], delete e.maxStamps[n], delete e.renderPoints[n], Object.keys(e.minCounts).length || Object.keys(e.maxCounts).length || Object.keys(e.minStamps).length || Object.keys(e.maxStamps).length || Object.keys(e.renderPoints).length || delete tr.value[t]);
|
|
17155
17155
|
};
|
|
17156
|
-
function
|
|
17156
|
+
function ET({
|
|
17157
17157
|
chartKey: n,
|
|
17158
17158
|
datasets: t,
|
|
17159
17159
|
groupKey: e,
|
|
@@ -17164,7 +17164,7 @@ function PT({
|
|
|
17164
17164
|
renderPoints: o = void 0,
|
|
17165
17165
|
type: l
|
|
17166
17166
|
}) {
|
|
17167
|
-
const u = e !== void 0 && n !== void 0 ?
|
|
17167
|
+
const u = e !== void 0 && n !== void 0 ? OT(e) : kg(), d = n !== void 0 ? n : "static-chart-key", h = N(() => t.reduce((w, { timestamps: C }) => [...w, ...C], [])), f = N(() => i || h.value.reduce((w, C) => w === 0 ? C : Math.min(w, C), 0)), g = N(() => s || h.value.reduce((w, C) => Math.max(w, C), 0));
|
|
17168
17168
|
jc(() => {
|
|
17169
17169
|
u.minStamps[d] = f.value, u.maxStamps[d] = g.value, o !== void 0 && (u.renderPoints[d] = o);
|
|
17170
17170
|
});
|
|
@@ -17175,7 +17175,7 @@ function PT({
|
|
|
17175
17175
|
const w = _.value - b.value;
|
|
17176
17176
|
return Math.ceil(w / v.value);
|
|
17177
17177
|
}), S = N(() => t.length > 1), k = N(() => t.map(({ timestamps: w, color: C, label: A }) => ({
|
|
17178
|
-
data:
|
|
17178
|
+
data: CT({
|
|
17179
17179
|
bucketCount: v.value,
|
|
17180
17180
|
minStamp: b.value,
|
|
17181
17181
|
maxStamp: _.value,
|
|
@@ -17213,7 +17213,7 @@ function PT({
|
|
|
17213
17213
|
return w.reduce((A, R) => Math.min(A, R), C);
|
|
17214
17214
|
}), y = N(() => Object.values(u.maxCounts).reduce((w, C) => Math.max(w, C), 0));
|
|
17215
17215
|
return ei(() => {
|
|
17216
|
-
n !== void 0 && e !== void 0 &&
|
|
17216
|
+
n !== void 0 && e !== void 0 && PT(n, e);
|
|
17217
17217
|
}), {
|
|
17218
17218
|
syncedMinStamp: b,
|
|
17219
17219
|
syncedMaxStamp: _,
|
|
@@ -17225,20 +17225,20 @@ function PT({
|
|
|
17225
17225
|
};
|
|
17226
17226
|
}
|
|
17227
17227
|
const _t = {
|
|
17228
|
-
useBarChartOptions:
|
|
17229
|
-
useChartJSCommon:
|
|
17230
|
-
useChartLegendValues:
|
|
17231
|
-
useChartSelectedRange:
|
|
17232
|
-
useExploreResultToDatasets:
|
|
17233
|
-
useExploreResultToTimeDataset:
|
|
17234
|
-
useDonutChartOptions:
|
|
17235
|
-
useLineChartOptions:
|
|
17228
|
+
useBarChartOptions: ZS,
|
|
17229
|
+
useChartJSCommon: JS,
|
|
17230
|
+
useChartLegendValues: eT,
|
|
17231
|
+
useChartSelectedRange: nT,
|
|
17232
|
+
useExploreResultToDatasets: aT,
|
|
17233
|
+
useExploreResultToTimeDataset: uT,
|
|
17234
|
+
useDonutChartOptions: iT,
|
|
17235
|
+
useLineChartOptions: sT,
|
|
17236
17236
|
useI18n: Gm,
|
|
17237
|
-
useReportChartDataForSynthetics:
|
|
17238
|
-
useTranslatedUnits:
|
|
17239
|
-
useEvaluateFeatureFlag:
|
|
17240
|
-
useTooltipAbsolutePosition:
|
|
17241
|
-
useSparklineSync:
|
|
17237
|
+
useReportChartDataForSynthetics: dT,
|
|
17238
|
+
useTranslatedUnits: hT,
|
|
17239
|
+
useEvaluateFeatureFlag: gT,
|
|
17240
|
+
useTooltipAbsolutePosition: kT,
|
|
17241
|
+
useSparklineSync: ET
|
|
17242
17242
|
};
|
|
17243
17243
|
var Ye = /* @__PURE__ */ ((n) => (n.Hidden = "hidden", n.Bottom = "bottom", n))(Ye || {});
|
|
17244
17244
|
/*!
|
|
@@ -17266,7 +17266,7 @@ const eh = {
|
|
|
17266
17266
|
* @return {AnnotationElement[]} - elements that are found (only 1 element)
|
|
17267
17267
|
*/
|
|
17268
17268
|
nearest(n, t, e) {
|
|
17269
|
-
return
|
|
17269
|
+
return IT(n, t, e);
|
|
17270
17270
|
},
|
|
17271
17271
|
/**
|
|
17272
17272
|
* x mode returns the elements that hit-test at the current x coordinate
|
|
@@ -17293,19 +17293,19 @@ const eh = {
|
|
|
17293
17293
|
function Ac(n, t, e) {
|
|
17294
17294
|
return (eh.modes[e.mode] || eh.modes.nearest)(n, t, e);
|
|
17295
17295
|
}
|
|
17296
|
-
function
|
|
17296
|
+
function AT(n, t, e) {
|
|
17297
17297
|
return e !== "x" && e !== "y" ? n.inRange(t.x, t.y, "x", !0) || n.inRange(t.x, t.y, "y", !0) : n.inRange(t.x, t.y, e, !0);
|
|
17298
17298
|
}
|
|
17299
|
-
function
|
|
17299
|
+
function RT(n, t, e) {
|
|
17300
17300
|
return e === "x" ? { x: n.x, y: t.y } : e === "y" ? { x: t.x, y: n.y } : t;
|
|
17301
17301
|
}
|
|
17302
17302
|
function da(n, t, e) {
|
|
17303
|
-
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) :
|
|
17303
|
+
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) : AT(i, t, e.axis));
|
|
17304
17304
|
}
|
|
17305
|
-
function
|
|
17305
|
+
function IT(n, t, e) {
|
|
17306
17306
|
let i = Number.POSITIVE_INFINITY;
|
|
17307
17307
|
return da(n, t, e).reduce((s, r) => {
|
|
17308
|
-
const a = r.getCenterPoint(), o =
|
|
17308
|
+
const a = r.getCenterPoint(), o = RT(t, a, e.axis), l = Ji(t, o);
|
|
17309
17309
|
return l < i ? (s = [r], i = l) : l === i && s.push(r), s;
|
|
17310
17310
|
}, []).sort((s, r) => s._index - r._index).slice(0, 1);
|
|
17311
17311
|
}
|
|
@@ -17316,13 +17316,13 @@ function Oi(n, t, e) {
|
|
|
17316
17316
|
y: a + s * (n.x - r) + i * (n.y - a)
|
|
17317
17317
|
};
|
|
17318
17318
|
}
|
|
17319
|
-
const
|
|
17320
|
-
function
|
|
17319
|
+
const LT = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, _i = 1e-3, Wa = (n, t, e) => Math.min(e, Math.max(t, n)), Cg = (n, t) => n.value >= n.start - t && n.value <= n.end + t;
|
|
17320
|
+
function NT(n, t, e) {
|
|
17321
17321
|
for (const i of Object.keys(n))
|
|
17322
17322
|
n[i] = Wa(n[i], t, e);
|
|
17323
17323
|
return n;
|
|
17324
17324
|
}
|
|
17325
|
-
function
|
|
17325
|
+
function FT(n, t, e, i) {
|
|
17326
17326
|
return !n || !t || e <= 0 ? !1 : Math.pow(n.x - t.x, 2) + Math.pow(n.y - t.y, 2) <= Math.pow(e + i, 2);
|
|
17327
17327
|
}
|
|
17328
17328
|
function Og(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance: o }) {
|
|
@@ -17337,14 +17337,14 @@ function Pi(n, t) {
|
|
|
17337
17337
|
const { centerX: e, centerY: i } = n.getProps(["centerX", "centerY"], t);
|
|
17338
17338
|
return { x: e, y: i };
|
|
17339
17339
|
}
|
|
17340
|
-
function
|
|
17340
|
+
function zT(n, t, e, i = !0) {
|
|
17341
17341
|
const s = e.split(".");
|
|
17342
17342
|
let r = 0;
|
|
17343
17343
|
for (const a of t.split(".")) {
|
|
17344
17344
|
const o = s[r++];
|
|
17345
17345
|
if (parseInt(a, 10) < parseInt(o, 10))
|
|
17346
17346
|
break;
|
|
17347
|
-
if (
|
|
17347
|
+
if (LT(o, a)) {
|
|
17348
17348
|
if (i)
|
|
17349
17349
|
throw new Error(`${n} v${e} is not supported. v${t} or newer is required.`);
|
|
17350
17350
|
return !1;
|
|
@@ -17352,7 +17352,7 @@ function FT(n, t, e, i = !0) {
|
|
|
17352
17352
|
}
|
|
17353
17353
|
return !0;
|
|
17354
17354
|
}
|
|
17355
|
-
const Eg = (n) => typeof n == "string" && n.endsWith("%"), Ag = (n) => parseFloat(n) / 100, Rg = (n) => Wa(Ag(n), 0, 1), Rs = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }),
|
|
17355
|
+
const Eg = (n) => typeof n == "string" && n.endsWith("%"), Ag = (n) => parseFloat(n) / 100, Rg = (n) => Wa(Ag(n), 0, 1), Rs = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }), HT = {
|
|
17356
17356
|
box: (n) => Rs(n.centerX, n.centerY),
|
|
17357
17357
|
doughnutLabel: (n) => Rs(n.centerX, n.centerY),
|
|
17358
17358
|
ellipse: (n) => ({ centerX: n.centerX, centerY: n.centerX, radius: 0, width: 0, height: 0 }),
|
|
@@ -17367,7 +17367,7 @@ function Rc(n, t) {
|
|
|
17367
17367
|
function ti(n, t, e = !0) {
|
|
17368
17368
|
return typeof t == "number" ? t : Eg(t) ? (e ? Rg(t) : Ag(t)) * n : n;
|
|
17369
17369
|
}
|
|
17370
|
-
function
|
|
17370
|
+
function BT(n, t) {
|
|
17371
17371
|
const { x: e, width: i } = n, s = t.textAlign;
|
|
17372
17372
|
return s === "center" ? e + i / 2 : s === "end" || s === "right" ? e + i : e;
|
|
17373
17373
|
}
|
|
@@ -17413,7 +17413,7 @@ function ls(n, t, e) {
|
|
|
17413
17413
|
if (i === !0)
|
|
17414
17414
|
return Hg(t, e);
|
|
17415
17415
|
} else return;
|
|
17416
|
-
return
|
|
17416
|
+
return WT(n, t, e);
|
|
17417
17417
|
}
|
|
17418
17418
|
function zg(n, t, e) {
|
|
17419
17419
|
let i = !1;
|
|
@@ -17423,16 +17423,16 @@ function zg(n, t, e) {
|
|
|
17423
17423
|
}
|
|
17424
17424
|
function Hg(n, t) {
|
|
17425
17425
|
const e = t.type || "line";
|
|
17426
|
-
return
|
|
17426
|
+
return HT[e](n);
|
|
17427
17427
|
}
|
|
17428
|
-
function
|
|
17428
|
+
function WT(n, t, e) {
|
|
17429
17429
|
const i = Pt(e.init, [{ chart: n, properties: t, options: e }]);
|
|
17430
17430
|
if (i === !0)
|
|
17431
17431
|
return Hg(t, e);
|
|
17432
17432
|
if (yt(i))
|
|
17433
17433
|
return i;
|
|
17434
17434
|
}
|
|
17435
|
-
const ml = /* @__PURE__ */ new Map(),
|
|
17435
|
+
const ml = /* @__PURE__ */ new Map(), YT = (n) => isNaN(n) || n <= 0, $T = (n) => n.reduce(function(t, e) {
|
|
17436
17436
|
return t += e.string, t;
|
|
17437
17437
|
}, "");
|
|
17438
17438
|
function Ya(n) {
|
|
@@ -17458,8 +17458,8 @@ function ja(n, t) {
|
|
|
17458
17458
|
width: ti(e.width, t.width),
|
|
17459
17459
|
height: ti(e.height, t.height)
|
|
17460
17460
|
};
|
|
17461
|
-
const i = Ng(t), s = t.textStrokeWidth, r = kt(e) ? e : [e], a = r.join() +
|
|
17462
|
-
return ml.has(a) || ml.set(a,
|
|
17461
|
+
const i = Ng(t), s = t.textStrokeWidth, r = kt(e) ? e : [e], a = r.join() + $T(i) + s + (n._measureText ? "-spriting" : "");
|
|
17462
|
+
return ml.has(a) || ml.set(a, qT(n, r, i, s)), ml.get(a);
|
|
17463
17463
|
}
|
|
17464
17464
|
function Bg(n, t, e) {
|
|
17465
17465
|
const { x: i, y: s, width: r, height: a } = t;
|
|
@@ -17470,32 +17470,32 @@ function Bg(n, t, e) {
|
|
|
17470
17470
|
y: s,
|
|
17471
17471
|
w: r,
|
|
17472
17472
|
h: a,
|
|
17473
|
-
radius:
|
|
17473
|
+
radius: NT(Gn(e.borderRadius), 0, Math.min(r, a) / 2)
|
|
17474
17474
|
}), n.closePath(), n.fill(), o && (n.shadowColor = e.borderShadowColor, n.stroke()), n.restore();
|
|
17475
17475
|
}
|
|
17476
17476
|
function Wg(n, t, e, i) {
|
|
17477
17477
|
const s = e.content;
|
|
17478
17478
|
if (Ya(s)) {
|
|
17479
|
-
n.save(), n.globalAlpha =
|
|
17479
|
+
n.save(), n.globalAlpha = KT(e.opacity, s.style.opacity), n.drawImage(s, t.x, t.y, t.width, t.height), n.restore();
|
|
17480
17480
|
return;
|
|
17481
17481
|
}
|
|
17482
|
-
const r = kt(s) ? s : [s], a = Ng(e, i), o = e.color, l = kt(o) ? o : [o], c =
|
|
17483
|
-
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign,
|
|
17482
|
+
const r = kt(s) ? s : [s], a = Ng(e, i), o = e.color, l = kt(o) ? o : [o], c = BT(t, e), u = t.y + e.textStrokeWidth / 2;
|
|
17483
|
+
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign, jT(n, e) && XT(n, { x: c, y: u }, r, a), GT(n, { x: c, y: u }, r, { fonts: a, colors: l }), n.restore();
|
|
17484
17484
|
}
|
|
17485
|
-
function
|
|
17485
|
+
function jT(n, t) {
|
|
17486
17486
|
if (t.textStrokeWidth > 0)
|
|
17487
17487
|
return n.lineJoin = "round", n.miterLimit = 2, n.lineWidth = t.textStrokeWidth, n.strokeStyle = t.textStrokeColor, !0;
|
|
17488
17488
|
}
|
|
17489
|
-
function
|
|
17489
|
+
function UT(n, t, e, i) {
|
|
17490
17490
|
const { radius: s, options: r } = t, a = r.pointStyle, o = r.rotation;
|
|
17491
17491
|
let l = (o || 0) * rc;
|
|
17492
17492
|
if (Ya(a)) {
|
|
17493
17493
|
n.save(), n.translate(e, i), n.rotate(l), n.drawImage(a, -a.width / 2, -a.height / 2, a.width, a.height), n.restore();
|
|
17494
17494
|
return;
|
|
17495
17495
|
}
|
|
17496
|
-
|
|
17496
|
+
YT(s) || VT(n, { x: e, y: i, radius: s, rotation: o, style: a, rad: l });
|
|
17497
17497
|
}
|
|
17498
|
-
function
|
|
17498
|
+
function VT(n, { x: t, y: e, radius: i, rotation: s, style: r, rad: a }) {
|
|
17499
17499
|
let o, l, c, u;
|
|
17500
17500
|
switch (n.beginPath(), r) {
|
|
17501
17501
|
default:
|
|
@@ -17533,7 +17533,7 @@ function UT(n, { x: t, y: e, radius: i, rotation: s, style: r, rad: a }) {
|
|
|
17533
17533
|
}
|
|
17534
17534
|
n.fill();
|
|
17535
17535
|
}
|
|
17536
|
-
function
|
|
17536
|
+
function qT(n, t, e, i) {
|
|
17537
17537
|
n.save();
|
|
17538
17538
|
const s = t.length;
|
|
17539
17539
|
let r = 0, a = i;
|
|
@@ -17545,7 +17545,7 @@ function VT(n, t, e, i) {
|
|
|
17545
17545
|
}
|
|
17546
17546
|
return n.restore(), { width: r, height: a };
|
|
17547
17547
|
}
|
|
17548
|
-
function
|
|
17548
|
+
function XT(n, { x: t, y: e }, i, s) {
|
|
17549
17549
|
n.beginPath();
|
|
17550
17550
|
let r = 0;
|
|
17551
17551
|
i.forEach(function(a, o) {
|
|
@@ -17553,52 +17553,52 @@ function qT(n, { x: t, y: e }, i, s) {
|
|
|
17553
17553
|
n.font = l.string, n.strokeText(a, t, e + c / 2 + r), r += c;
|
|
17554
17554
|
}), n.stroke();
|
|
17555
17555
|
}
|
|
17556
|
-
function
|
|
17556
|
+
function GT(n, { x: t, y: e }, i, { fonts: s, colors: r }) {
|
|
17557
17557
|
let a = 0;
|
|
17558
17558
|
i.forEach(function(o, l) {
|
|
17559
17559
|
const c = r[Math.min(l, r.length - 1)], u = s[Math.min(l, s.length - 1)], d = u.lineHeight;
|
|
17560
17560
|
n.beginPath(), n.font = u.string, n.fillStyle = c, n.fillText(o, t, e + d / 2 + a), a += d, n.fill();
|
|
17561
17561
|
});
|
|
17562
17562
|
}
|
|
17563
|
-
function
|
|
17563
|
+
function KT(n, t) {
|
|
17564
17564
|
const e = Qn(n) ? n : t;
|
|
17565
17565
|
return Qn(e) ? Wa(e, 0, 1) : 1;
|
|
17566
17566
|
}
|
|
17567
17567
|
const Yg = ["left", "bottom", "top", "right"];
|
|
17568
|
-
function
|
|
17569
|
-
const { pointX: e, pointY: i, options: s } = t, r = s.callout, a = r && r.display &&
|
|
17570
|
-
if (!a ||
|
|
17568
|
+
function ZT(n, t) {
|
|
17569
|
+
const { pointX: e, pointY: i, options: s } = t, r = s.callout, a = r && r.display && nD(t, r);
|
|
17570
|
+
if (!a || sD(t, r, a))
|
|
17571
17571
|
return;
|
|
17572
17572
|
if (n.save(), n.beginPath(), !An(n, r))
|
|
17573
17573
|
return n.restore();
|
|
17574
|
-
const { separatorStart: l, separatorEnd: c } =
|
|
17574
|
+
const { separatorStart: l, separatorEnd: c } = QT(t, a), { sideStart: u, sideEnd: d } = tD(t, a, l);
|
|
17575
17575
|
(r.margin > 0 || s.borderWidth === 0) && (n.moveTo(l.x, l.y), n.lineTo(c.x, c.y)), n.moveTo(u.x, u.y), n.lineTo(d.x, d.y);
|
|
17576
17576
|
const h = Oi({ x: e, y: i }, t.getCenterPoint(), te(-t.rotation));
|
|
17577
17577
|
n.lineTo(h.x, h.y), n.stroke(), n.restore();
|
|
17578
17578
|
}
|
|
17579
|
-
function
|
|
17580
|
-
const { x: e, y: i, x2: s, y2: r } = n, a =
|
|
17579
|
+
function QT(n, t) {
|
|
17580
|
+
const { x: e, y: i, x2: s, y2: r } = n, a = JT(n, t);
|
|
17581
17581
|
let o, l;
|
|
17582
17582
|
return t === "left" || t === "right" ? (o = { x: e + a, y: i }, l = { x: o.x, y: r }) : (o = { x: e, y: i + a }, l = { x: s, y: o.y }), { separatorStart: o, separatorEnd: l };
|
|
17583
17583
|
}
|
|
17584
|
-
function
|
|
17584
|
+
function JT(n, t) {
|
|
17585
17585
|
const { width: e, height: i, options: s } = n, r = s.callout.margin + s.borderWidth / 2;
|
|
17586
17586
|
return t === "right" ? e + r : t === "bottom" ? i + r : -r;
|
|
17587
17587
|
}
|
|
17588
|
-
function
|
|
17589
|
-
const { y: i, width: s, height: r, options: a } = n, o = a.callout.start, l =
|
|
17588
|
+
function tD(n, t, e) {
|
|
17589
|
+
const { y: i, width: s, height: r, options: a } = n, o = a.callout.start, l = eD(t, a.callout);
|
|
17590
17590
|
let c, u;
|
|
17591
17591
|
return t === "left" || t === "right" ? (c = { x: e.x, y: i + ti(r, o) }, u = { x: c.x + l, y: c.y }) : (c = { x: e.x + ti(s, o), y: e.y }, u = { x: c.x, y: c.y + l }), { sideStart: c, sideEnd: u };
|
|
17592
17592
|
}
|
|
17593
|
-
function
|
|
17593
|
+
function eD(n, t) {
|
|
17594
17594
|
const e = t.side;
|
|
17595
17595
|
return n === "left" || n === "top" ? -e : e;
|
|
17596
17596
|
}
|
|
17597
|
-
function
|
|
17597
|
+
function nD(n, t) {
|
|
17598
17598
|
const e = t.position;
|
|
17599
|
-
return Yg.includes(e) ? e :
|
|
17599
|
+
return Yg.includes(e) ? e : iD(n, t);
|
|
17600
17600
|
}
|
|
17601
|
-
function
|
|
17601
|
+
function iD(n, t) {
|
|
17602
17602
|
const { x: e, y: i, x2: s, y2: r, width: a, height: o, pointX: l, pointY: c, centerX: u, centerY: d, rotation: h } = n, f = { x: u, y: d }, g = t.start, b = ti(a, g), _ = ti(o, g), v = [e, e + b, e + b, s], M = [i + _, r, i, r], S = [];
|
|
17603
17603
|
for (let k = 0; k < 4; k++) {
|
|
17604
17604
|
const E = Oi({ x: v[k], y: M[k] }, f, te(h));
|
|
@@ -17609,7 +17609,7 @@ function nD(n, t) {
|
|
|
17609
17609
|
}
|
|
17610
17610
|
return S.sort((k, E) => k.distance - E.distance)[0].position;
|
|
17611
17611
|
}
|
|
17612
|
-
function
|
|
17612
|
+
function sD(n, t, e) {
|
|
17613
17613
|
const { pointX: i, pointY: s } = n, r = t.margin;
|
|
17614
17614
|
let a = i, o = s;
|
|
17615
17615
|
return e === "left" ? a += r : e === "right" ? a -= r : e === "top" ? o += r : e === "bottom" && (o -= r), n.inRange(a, o);
|
|
@@ -17679,22 +17679,22 @@ function Ug(n, t) {
|
|
|
17679
17679
|
radius: i
|
|
17680
17680
|
};
|
|
17681
17681
|
}
|
|
17682
|
-
return
|
|
17682
|
+
return aD(n, t);
|
|
17683
17683
|
}
|
|
17684
|
-
function
|
|
17684
|
+
function rD(n, t) {
|
|
17685
17685
|
const { scales: e, chartArea: i } = n, s = e[t.scaleID], r = { x: i.left, y: i.top, x2: i.right, y2: i.bottom };
|
|
17686
|
-
return s ?
|
|
17686
|
+
return s ? oD(s, r, t) : lD(e, r, t), r;
|
|
17687
17687
|
}
|
|
17688
17688
|
function Vg(n, t) {
|
|
17689
17689
|
const e = Lc(n, t);
|
|
17690
17690
|
return e.initProperties = ls(n, e, t), e.elements = [{
|
|
17691
17691
|
type: "label",
|
|
17692
17692
|
optionScope: "label",
|
|
17693
|
-
properties:
|
|
17693
|
+
properties: dD(n, e, t),
|
|
17694
17694
|
initProperties: e.initProperties
|
|
17695
17695
|
}], e;
|
|
17696
17696
|
}
|
|
17697
|
-
function
|
|
17697
|
+
function aD(n, t) {
|
|
17698
17698
|
const e = jg(n, t), i = t.radius * 2;
|
|
17699
17699
|
return {
|
|
17700
17700
|
x: e.x - t.radius + t.xAdjust,
|
|
@@ -17715,11 +17715,11 @@ function sh(n, t) {
|
|
|
17715
17715
|
end: Math.max(e.start, e.end)
|
|
17716
17716
|
};
|
|
17717
17717
|
}
|
|
17718
|
-
function
|
|
17718
|
+
function oD(n, t, e) {
|
|
17719
17719
|
const i = rs(n, e.value, NaN), s = rs(n, e.endValue, i);
|
|
17720
17720
|
n.isHorizontal() ? (t.x = i, t.x2 = s) : (t.y = i, t.y2 = s);
|
|
17721
17721
|
}
|
|
17722
|
-
function
|
|
17722
|
+
function lD(n, t, e) {
|
|
17723
17723
|
for (const i of Object.keys(ih)) {
|
|
17724
17724
|
const s = n[Ti(n, e, i)];
|
|
17725
17725
|
if (s) {
|
|
@@ -17728,7 +17728,7 @@ function oD(n, t, e) {
|
|
|
17728
17728
|
}
|
|
17729
17729
|
}
|
|
17730
17730
|
}
|
|
17731
|
-
function
|
|
17731
|
+
function cD({ properties: n, options: t }, e, i, s) {
|
|
17732
17732
|
const { x: r, x2: a, width: o } = n;
|
|
17733
17733
|
return qg({ start: r, end: a, borderWidth: t.borderWidth }, {
|
|
17734
17734
|
position: i.x,
|
|
@@ -17737,7 +17737,7 @@ function lD({ properties: n, options: t }, e, i, s) {
|
|
|
17737
17737
|
size: e.width
|
|
17738
17738
|
});
|
|
17739
17739
|
}
|
|
17740
|
-
function
|
|
17740
|
+
function uD({ properties: n, options: t }, e, i, s) {
|
|
17741
17741
|
const { y: r, y2: a, height: o } = n;
|
|
17742
17742
|
return qg({ start: r, end: a, borderWidth: t.borderWidth }, {
|
|
17743
17743
|
position: i.y,
|
|
@@ -17750,10 +17750,10 @@ function qg(n, t) {
|
|
|
17750
17750
|
const { start: e, end: i, borderWidth: s } = n, { position: r, padding: { start: a, end: o }, adjust: l } = t, c = i - s - e - a - o - t.size;
|
|
17751
17751
|
return e + s / 2 + l + Rc(c, r);
|
|
17752
17752
|
}
|
|
17753
|
-
function
|
|
17753
|
+
function dD(n, t, e) {
|
|
17754
17754
|
const i = e.label;
|
|
17755
17755
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
17756
|
-
const s = Ic(i.position), r = ee(i.padding), a = ja(n.ctx, i), o =
|
|
17756
|
+
const s = Ic(i.position), r = ee(i.padding), a = ja(n.ctx, i), o = cD({ properties: t, options: e }, a, s, r), l = uD({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
|
|
17757
17757
|
return {
|
|
17758
17758
|
x: o,
|
|
17759
17759
|
y: l,
|
|
@@ -17767,7 +17767,7 @@ function uD(n, t, e) {
|
|
|
17767
17767
|
};
|
|
17768
17768
|
}
|
|
17769
17769
|
const Vl = ["enter", "leave"], Nc = Vl.concat("click");
|
|
17770
|
-
function
|
|
17770
|
+
function hD(n, t, e) {
|
|
17771
17771
|
t.listened = zg(e, Nc, t.listeners), t.moveListened = !1, Vl.forEach((i) => {
|
|
17772
17772
|
Ne(e[i]) && (t.moveListened = !0);
|
|
17773
17773
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
@@ -17776,17 +17776,17 @@ function dD(n, t, e) {
|
|
|
17776
17776
|
});
|
|
17777
17777
|
});
|
|
17778
17778
|
}
|
|
17779
|
-
function
|
|
17779
|
+
function fD(n, t, e) {
|
|
17780
17780
|
if (n.listened)
|
|
17781
17781
|
switch (t.type) {
|
|
17782
17782
|
case "mousemove":
|
|
17783
17783
|
case "mouseout":
|
|
17784
|
-
return fD(n, t, e);
|
|
17785
|
-
case "click":
|
|
17786
17784
|
return gD(n, t, e);
|
|
17785
|
+
case "click":
|
|
17786
|
+
return mD(n, t, e);
|
|
17787
17787
|
}
|
|
17788
17788
|
}
|
|
17789
|
-
function
|
|
17789
|
+
function gD(n, t, e) {
|
|
17790
17790
|
if (!n.moveListened)
|
|
17791
17791
|
return;
|
|
17792
17792
|
let i;
|
|
@@ -17803,7 +17803,7 @@ function rh({ state: n, event: t }, e, i, s) {
|
|
|
17803
17803
|
s.indexOf(a) < 0 && (r = Xg(a.options[e] || n.listeners[e], a, t) || r);
|
|
17804
17804
|
return r;
|
|
17805
17805
|
}
|
|
17806
|
-
function
|
|
17806
|
+
function mD(n, t, e) {
|
|
17807
17807
|
const i = n.listeners, s = Ac(n.visibleElements, t, e.interaction);
|
|
17808
17808
|
let r;
|
|
17809
17809
|
for (const a of s)
|
|
@@ -17814,7 +17814,7 @@ function Xg(n, t, e) {
|
|
|
17814
17814
|
return Pt(n, [t.$context, e]) === !0;
|
|
17815
17815
|
}
|
|
17816
17816
|
const Aa = ["afterDraw", "beforeDraw"];
|
|
17817
|
-
function
|
|
17817
|
+
function pD(n, t, e) {
|
|
17818
17818
|
const i = t.visibleElements;
|
|
17819
17819
|
t.hooked = zg(e, Aa, t.hooks), t.hooked || i.forEach((s) => {
|
|
17820
17820
|
t.hooked || Aa.forEach((r) => {
|
|
@@ -17828,31 +17828,31 @@ function ah(n, t, e) {
|
|
|
17828
17828
|
return Pt(i, [t.$context]);
|
|
17829
17829
|
}
|
|
17830
17830
|
}
|
|
17831
|
-
function
|
|
17832
|
-
const i =
|
|
17831
|
+
function yD(n, t, e) {
|
|
17832
|
+
const i = wD(n.scales, t, e);
|
|
17833
17833
|
let s = oh(t, i, "min", "suggestedMin");
|
|
17834
17834
|
s = oh(t, i, "max", "suggestedMax") || s, s && Ne(t.handleTickRangeOptions) && t.handleTickRangeOptions();
|
|
17835
17835
|
}
|
|
17836
|
-
function
|
|
17836
|
+
function bD(n, t) {
|
|
17837
17837
|
for (const e of n)
|
|
17838
|
-
|
|
17838
|
+
xD(e, t);
|
|
17839
17839
|
}
|
|
17840
17840
|
function oh(n, t, e, i) {
|
|
17841
|
-
if (Bt(t[e]) && !
|
|
17841
|
+
if (Bt(t[e]) && !_D(n.options, e, i)) {
|
|
17842
17842
|
const s = n[e] !== t[e];
|
|
17843
17843
|
return n[e] = t[e], s;
|
|
17844
17844
|
}
|
|
17845
17845
|
}
|
|
17846
|
-
function
|
|
17846
|
+
function _D(n, t, e) {
|
|
17847
17847
|
return ze(n[t]) || ze(n[e]);
|
|
17848
17848
|
}
|
|
17849
|
-
function
|
|
17849
|
+
function xD(n, t) {
|
|
17850
17850
|
for (const e of ["scaleID", "xScaleID", "yScaleID"]) {
|
|
17851
17851
|
const i = Ti(t, n, e);
|
|
17852
|
-
i && !t[i] &&
|
|
17852
|
+
i && !t[i] && vD(n, e) && console.warn(`No scale found with id '${i}' for annotation '${n.id}'`);
|
|
17853
17853
|
}
|
|
17854
17854
|
}
|
|
17855
|
-
function
|
|
17855
|
+
function vD(n, t) {
|
|
17856
17856
|
if (t === "scaleID")
|
|
17857
17857
|
return !0;
|
|
17858
17858
|
const e = t.charAt(0);
|
|
@@ -17861,7 +17861,7 @@ function xD(n, t) {
|
|
|
17861
17861
|
return !0;
|
|
17862
17862
|
return !1;
|
|
17863
17863
|
}
|
|
17864
|
-
function
|
|
17864
|
+
function wD(n, t, e) {
|
|
17865
17865
|
const i = t.axis, s = t.id, r = i + "ScaleID", a = {
|
|
17866
17866
|
min: at(t.min, Number.NEGATIVE_INFINITY),
|
|
17867
17867
|
max: at(t.max, Number.POSITIVE_INFINITY)
|
|
@@ -17977,15 +17977,15 @@ class Ua extends ue {
|
|
|
17977
17977
|
}
|
|
17978
17978
|
draw(t) {
|
|
17979
17979
|
const e = this.options;
|
|
17980
|
-
!e.display || !e.content || (
|
|
17980
|
+
!e.display || !e.content || (CD(t, this), t.save(), $a(t, this.getCenterPoint(), this.rotation), Wg(t, this, e, this._fitRatio), t.restore());
|
|
17981
17981
|
}
|
|
17982
17982
|
resolveElementProperties(t, e) {
|
|
17983
|
-
const i =
|
|
17983
|
+
const i = MD(t, e);
|
|
17984
17984
|
if (!i)
|
|
17985
17985
|
return {};
|
|
17986
|
-
const { controllerMeta: s, point: r, radius: a } =
|
|
17986
|
+
const { controllerMeta: s, point: r, radius: a } = TD(t, e, i);
|
|
17987
17987
|
let o = ja(t.ctx, e);
|
|
17988
|
-
const l =
|
|
17988
|
+
const l = DD(o, a);
|
|
17989
17989
|
Lg(e, l) && (o = { width: o.width * l, height: o.height * l });
|
|
17990
17990
|
const { position: c, xAdjust: u, yAdjust: d } = e, h = Ig(r, o, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
17991
17991
|
return {
|
|
@@ -18037,20 +18037,20 @@ Ua.defaults = {
|
|
|
18037
18037
|
yAdjust: 0
|
|
18038
18038
|
};
|
|
18039
18039
|
Ua.defaultRoutes = {};
|
|
18040
|
-
function
|
|
18040
|
+
function MD(n, t) {
|
|
18041
18041
|
return n.getSortedVisibleDatasetMetas().reduce(function(e, i) {
|
|
18042
18042
|
const s = i.controller;
|
|
18043
|
-
return s instanceof Cn &&
|
|
18043
|
+
return s instanceof Cn && SD(n, t, i.data) && (!e || s.innerRadius < e.controller.innerRadius) && s.options.circumference >= 90 ? i : e;
|
|
18044
18044
|
}, void 0);
|
|
18045
18045
|
}
|
|
18046
|
-
function
|
|
18046
|
+
function SD(n, t, e) {
|
|
18047
18047
|
if (!t.autoHide)
|
|
18048
18048
|
return !0;
|
|
18049
18049
|
for (let i = 0; i < e.length; i++)
|
|
18050
18050
|
if (!e[i].hidden && n.getDataVisibility(i))
|
|
18051
18051
|
return !0;
|
|
18052
18052
|
}
|
|
18053
|
-
function
|
|
18053
|
+
function TD({ chartArea: n }, t, e) {
|
|
18054
18054
|
const { left: i, top: s, right: r, bottom: a } = n, { innerRadius: o, offsetX: l, offsetY: c } = e.controller, u = (i + r) / 2 + l, d = (s + a) / 2 + c, h = {
|
|
18055
18055
|
left: Math.max(u - o, i),
|
|
18056
18056
|
right: Math.min(u + o, r),
|
|
@@ -18059,7 +18059,7 @@ function SD({ chartArea: n }, t, e) {
|
|
|
18059
18059
|
}, f = {
|
|
18060
18060
|
x: (h.left + h.right) / 2,
|
|
18061
18061
|
y: (h.top + h.bottom) / 2
|
|
18062
|
-
}, g = t.spacing + t.borderWidth / 2, b = o - g, _ = f.y > d, v = _ ? s + g : a - g, M =
|
|
18062
|
+
}, g = t.spacing + t.borderWidth / 2, b = o - g, _ = f.y > d, v = _ ? s + g : a - g, M = kD(v, u, d, b);
|
|
18063
18063
|
return {
|
|
18064
18064
|
controllerMeta: {
|
|
18065
18065
|
_centerX: u,
|
|
@@ -18072,11 +18072,11 @@ function SD({ chartArea: n }, t, e) {
|
|
|
18072
18072
|
radius: Math.min(o, Math.min(h.right - h.left, h.bottom - h.top) / 2)
|
|
18073
18073
|
};
|
|
18074
18074
|
}
|
|
18075
|
-
function
|
|
18075
|
+
function DD({ width: n, height: t }, e) {
|
|
18076
18076
|
const i = Math.sqrt(Math.pow(n, 2) + Math.pow(t, 2));
|
|
18077
18077
|
return e * 2 / i;
|
|
18078
18078
|
}
|
|
18079
|
-
function
|
|
18079
|
+
function kD(n, t, e, i) {
|
|
18080
18080
|
const s = Math.pow(e - n, 2), r = Math.pow(i, 2), a = t * -2, o = Math.pow(t, 2) + s - r, l = Math.pow(a, 2) - 4 * o;
|
|
18081
18081
|
if (l <= 0)
|
|
18082
18082
|
return {
|
|
@@ -18089,7 +18089,7 @@ function DD(n, t, e, i) {
|
|
|
18089
18089
|
_endAngle: pa({ x: t, y: e }, { x: u, y: n }).angle
|
|
18090
18090
|
};
|
|
18091
18091
|
}
|
|
18092
|
-
function
|
|
18092
|
+
function CD(n, t) {
|
|
18093
18093
|
const { _centerX: e, _centerY: i, _radius: s, _startAngle: r, _endAngle: a, _counterclockwise: o, options: l } = t;
|
|
18094
18094
|
n.save();
|
|
18095
18095
|
const c = An(n, l);
|
|
@@ -18109,7 +18109,7 @@ class xr extends ue {
|
|
|
18109
18109
|
}
|
|
18110
18110
|
draw(t) {
|
|
18111
18111
|
const e = this.options, i = !ze(this._visible) || this._visible;
|
|
18112
|
-
!e.display || !e.content || !i || (t.save(), $a(t, this.getCenterPoint(), this.rotation),
|
|
18112
|
+
!e.display || !e.content || !i || (t.save(), $a(t, this.getCenterPoint(), this.rotation), ZT(t, this), Bg(t, this, e), Wg(t, OD(this), e), t.restore());
|
|
18113
18113
|
}
|
|
18114
18114
|
resolveElementProperties(t, e) {
|
|
18115
18115
|
let i;
|
|
@@ -18193,7 +18193,7 @@ xr.defaults = {
|
|
|
18193
18193
|
xr.defaultRoutes = {
|
|
18194
18194
|
borderColor: "color"
|
|
18195
18195
|
};
|
|
18196
|
-
function
|
|
18196
|
+
function OD({ x: n, y: t, width: e, height: i, options: s }) {
|
|
18197
18197
|
const r = s.borderWidth / 2, a = ee(s.padding);
|
|
18198
18198
|
return {
|
|
18199
18199
|
x: n + a.left + r,
|
|
@@ -18202,7 +18202,7 @@ function CD({ x: n, y: t, width: e, height: i, options: s }) {
|
|
|
18202
18202
|
height: i - a.top - a.bottom - s.borderWidth
|
|
18203
18203
|
};
|
|
18204
18204
|
}
|
|
18205
|
-
const Fc = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), ql = (n, t, e) => Fc(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, ch = (n, t, e) => Fc(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Ys = (n) => n * n,
|
|
18205
|
+
const Fc = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), ql = (n, t, e) => Fc(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, ch = (n, t, e) => Fc(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Ys = (n) => n * n, PD = (n, t, { x: e, y: i, x2: s, y2: r }, a) => a === "y" ? { start: Math.min(i, r), end: Math.max(i, r), value: t } : { start: Math.min(e, s), end: Math.max(e, s), value: n }, uh = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Xl = (n, t, e, i) => ({ x: uh(n.x, t.x, e.x, i), y: uh(n.y, t.y, e.y, i) }), dh = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), hh = (n, t, e, i) => -Math.atan2(dh(n.x, t.x, e.x, i), dh(n.y, t.y, e.y, i)) + 0.5 * pt;
|
|
18206
18206
|
class vr extends ue {
|
|
18207
18207
|
inRange(t, e, i, s) {
|
|
18208
18208
|
const r = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -18214,9 +18214,9 @@ class vr extends ue {
|
|
|
18214
18214
|
return l.restore(), f;
|
|
18215
18215
|
}
|
|
18216
18216
|
const c = Ys(r);
|
|
18217
|
-
return
|
|
18217
|
+
return ID(this, a, c, s) || Gl(this, a, s);
|
|
18218
18218
|
}
|
|
18219
|
-
return
|
|
18219
|
+
return ED(this, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s });
|
|
18220
18220
|
}
|
|
18221
18221
|
getCenterPoint(t) {
|
|
18222
18222
|
return Pi(this, t);
|
|
@@ -18228,7 +18228,7 @@ class vr extends ue {
|
|
|
18228
18228
|
cs(t, o);
|
|
18229
18229
|
const l = Math.sqrt(Math.pow(s - e, 2) + Math.pow(r - i, 2));
|
|
18230
18230
|
if (o.curve && a)
|
|
18231
|
-
return
|
|
18231
|
+
return YD(t, this, a, l), t.restore();
|
|
18232
18232
|
const { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Gg(this), f = Math.atan2(r - i, s - e);
|
|
18233
18233
|
t.translate(e, i), t.rotate(f), t.beginPath(), t.moveTo(0 + d, 0), t.lineTo(l - h, 0), t.shadowColor = o.borderShadowColor, t.stroke(), Kl(t, 0, d, c), Kl(t, l, -h, u), t.restore();
|
|
18234
18234
|
}
|
|
@@ -18236,12 +18236,12 @@ class vr extends ue {
|
|
|
18236
18236
|
return this.elements && this.elements[0];
|
|
18237
18237
|
}
|
|
18238
18238
|
resolveElementProperties(t, e) {
|
|
18239
|
-
const i =
|
|
18239
|
+
const i = rD(t, e), { x: s, y: r, x2: a, y2: o } = i, l = AD(i, t.chartArea), c = l ? RD({ x: s, y: r }, { x: a, y: o }, t.chartArea) : { x: s, y: r, x2: a, y2: o, width: Math.abs(a - s), height: Math.abs(o - r) };
|
|
18240
18240
|
if (c.centerX = (a + s) / 2, c.centerY = (o + r) / 2, c.initProperties = ls(t, c, e), e.curve) {
|
|
18241
18241
|
const d = { x: c.x, y: c.y }, h = { x: c.x2, y: c.y2 };
|
|
18242
|
-
c.cp =
|
|
18242
|
+
c.cp = WD(c, e, Ji(d, h));
|
|
18243
18243
|
}
|
|
18244
|
-
const u =
|
|
18244
|
+
const u = LD(t, c, e.label);
|
|
18245
18245
|
return u._visible = l, c.elements = [{
|
|
18246
18246
|
type: "label",
|
|
18247
18247
|
optionScope: "label",
|
|
@@ -18356,21 +18356,21 @@ vr.descriptors = {
|
|
|
18356
18356
|
vr.defaultRoutes = {
|
|
18357
18357
|
borderColor: "color"
|
|
18358
18358
|
};
|
|
18359
|
-
function
|
|
18360
|
-
const a =
|
|
18359
|
+
function ED(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r }) {
|
|
18360
|
+
const a = PD(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18361
18361
|
return Cg(a, s) || Gl(n, { mouseX: t, mouseY: e }, r, i);
|
|
18362
18362
|
}
|
|
18363
|
-
function
|
|
18363
|
+
function AD({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
18364
18364
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
18365
18365
|
}
|
|
18366
18366
|
function gh({ x: n, y: t }, e, { top: i, right: s, bottom: r, left: a }) {
|
|
18367
18367
|
return n < a && (t = ch(a, { x: n, y: t }, e), n = a), n > s && (t = ch(s, { x: n, y: t }, e), n = s), t < i && (n = ql(i, { x: n, y: t }, e), t = i), t > r && (n = ql(r, { x: n, y: t }, e), t = r), { x: n, y: t };
|
|
18368
18368
|
}
|
|
18369
|
-
function
|
|
18369
|
+
function RD(n, t, e) {
|
|
18370
18370
|
const { x: i, y: s } = gh(n, t, e), { x: r, y: a } = gh(t, n, e);
|
|
18371
18371
|
return { x: i, y: s, x2: r, y2: a, width: Math.abs(r - i), height: Math.abs(a - s) };
|
|
18372
18372
|
}
|
|
18373
|
-
function
|
|
18373
|
+
function ID(n, { mouseX: t, mouseY: e }, i = _i, s) {
|
|
18374
18374
|
const { x: r, y: a, x2: o, y2: l } = n.getProps(["x", "y", "x2", "y2"], s), c = o - r, u = l - a, d = Ys(c) + Ys(u), h = d === 0 ? -1 : ((t - r) * c + (e - a) * u) / d;
|
|
18375
18375
|
let f, g;
|
|
18376
18376
|
return h < 0 ? (f = r, g = a) : h > 1 ? (f = o, g = l) : (f = r + h * c, g = a + h * u), Ys(t - f) + Ys(e - g) <= i;
|
|
@@ -18379,16 +18379,16 @@ function Gl(n, { mouseX: t, mouseY: e }, i, s) {
|
|
|
18379
18379
|
const r = n.label;
|
|
18380
18380
|
return r.options.display && r.inRange(t, e, s, i);
|
|
18381
18381
|
}
|
|
18382
|
-
function
|
|
18382
|
+
function LD(n, t, e) {
|
|
18383
18383
|
const i = e.borderWidth, s = ee(e.padding), r = ja(n.ctx, e), a = r.width + s.width + i, o = r.height + s.height + i;
|
|
18384
|
-
return
|
|
18384
|
+
return FD(t, e, { width: a, height: o, padding: s }, n.chartArea);
|
|
18385
18385
|
}
|
|
18386
|
-
function
|
|
18386
|
+
function ND(n) {
|
|
18387
18387
|
const { x: t, y: e, x2: i, y2: s } = n, r = Math.atan2(s - e, i - t);
|
|
18388
18388
|
return r > pt / 2 ? r - pt : r < pt / -2 ? r + pt : r;
|
|
18389
18389
|
}
|
|
18390
|
-
function
|
|
18391
|
-
const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ?
|
|
18390
|
+
function FD(n, t, e, i) {
|
|
18391
|
+
const { width: s, height: r, padding: a } = e, { xAdjust: o, yAdjust: l } = t, c = { x: n.x, y: n.y }, u = { x: n.x2, y: n.y2 }, d = t.rotation === "auto" ? ND(n) : te(t.rotation), h = zD(s, r, d), f = HD(n, t, { labelSize: h, padding: a }, i), g = n.cp ? Xl(c, n.cp, u, f) : Fc(c, u, f), b = { size: h.w, min: i.left, max: i.right, padding: a.left }, _ = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, v = ph(g.x, b) + o, M = ph(g.y, _) + l;
|
|
18392
18392
|
return {
|
|
18393
18393
|
x: v - s / 2,
|
|
18394
18394
|
y: M - r / 2,
|
|
@@ -18403,23 +18403,23 @@ function ND(n, t, e, i) {
|
|
|
18403
18403
|
rotation: Ia(d)
|
|
18404
18404
|
};
|
|
18405
18405
|
}
|
|
18406
|
-
function
|
|
18406
|
+
function zD(n, t, e) {
|
|
18407
18407
|
const i = Math.cos(e), s = Math.sin(e);
|
|
18408
18408
|
return {
|
|
18409
18409
|
w: Math.abs(n * i) + Math.abs(t * s),
|
|
18410
18410
|
h: Math.abs(n * s) + Math.abs(t * i)
|
|
18411
18411
|
};
|
|
18412
18412
|
}
|
|
18413
|
-
function
|
|
18413
|
+
function HD(n, t, e, i) {
|
|
18414
18414
|
let s;
|
|
18415
|
-
const r =
|
|
18415
|
+
const r = BD(n, i);
|
|
18416
18416
|
return t.position === "start" ? s = mh({ w: n.x2 - n.x, h: n.y2 - n.y }, e, t, r) : t.position === "end" ? s = 1 - mh({ w: n.x - n.x2, h: n.y - n.y2 }, e, t, r) : s = Rc(1, t.position), s;
|
|
18417
18417
|
}
|
|
18418
18418
|
function mh(n, t, e, i) {
|
|
18419
18419
|
const { labelSize: s, padding: r } = t, a = n.w * i.dx, o = n.h * i.dy, l = a > 0 && (s.w / 2 + r.left - i.x) / a, c = o > 0 && (s.h / 2 + r.top - i.y) / o;
|
|
18420
18420
|
return Wa(Math.max(l, c), 0, 0.25);
|
|
18421
18421
|
}
|
|
18422
|
-
function
|
|
18422
|
+
function BD(n, t) {
|
|
18423
18423
|
const { x: e, x2: i, y: s, y2: r } = n, a = Math.min(s, r) - t.top, o = Math.min(e, i) - t.left, l = t.bottom - Math.max(s, r), c = t.right - Math.max(e, i);
|
|
18424
18424
|
return {
|
|
18425
18425
|
x: Math.min(o, c),
|
|
@@ -18453,7 +18453,7 @@ function Kl(n, t, e, i) {
|
|
|
18453
18453
|
const { length: s, width: r, fill: a, backgroundColor: o, borderColor: l } = i, c = Math.abs(t - s) + e;
|
|
18454
18454
|
n.beginPath(), cs(n, i), An(n, i), n.moveTo(c, -r), n.lineTo(t + e, 0), n.lineTo(c, r), a === !0 ? (n.fillStyle = o || l, n.closePath(), n.fill(), n.shadowColor = "transparent") : n.shadowColor = i.borderShadowColor, n.stroke();
|
|
18455
18455
|
}
|
|
18456
|
-
function
|
|
18456
|
+
function WD(n, t, e) {
|
|
18457
18457
|
const { x: i, y: s, x2: r, y2: a, centerX: o, centerY: l } = n, c = Math.atan2(a - s, r - i), u = Ic(t.controlPoint, 0), d = {
|
|
18458
18458
|
x: o + ti(e, u.x, !1),
|
|
18459
18459
|
y: l + ti(e, u.y, !1)
|
|
@@ -18463,7 +18463,7 @@ function BD(n, t, e) {
|
|
|
18463
18463
|
function bh(n, { x: t, y: e }, { angle: i, adjust: s }, r) {
|
|
18464
18464
|
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i), Kl(n, 0, -s, r), n.restore());
|
|
18465
18465
|
}
|
|
18466
|
-
function
|
|
18466
|
+
function YD(n, t, e, i) {
|
|
18467
18467
|
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = Gg(t), f = { x: s, y: r }, g = { x: a, y: o }, b = hh(f, e, g, 0), _ = hh(f, e, g, 1) - pt, v = Xl(f, e, g, d / i), M = Xl(f, e, g, 1 - h / i), S = new Path2D();
|
|
18468
18468
|
n.beginPath(), S.moveTo(v.x, v.y), S.quadraticCurveTo(e.x, e.y, M.x, M.y), n.shadowColor = l.borderShadowColor, n.stroke(S), t.path = S, t.ctx = n, bh(n, v, { angle: b, adjust: d }, c), bh(n, M, { angle: _, adjust: h }, u);
|
|
18469
18469
|
}
|
|
@@ -18471,7 +18471,7 @@ class wr extends ue {
|
|
|
18471
18471
|
inRange(t, e, i, s) {
|
|
18472
18472
|
const r = this.options.rotation, a = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18473
18473
|
if (i !== "x" && i !== "y")
|
|
18474
|
-
return
|
|
18474
|
+
return $D({ x: t, y: e }, this.getProps(["width", "height", "centerX", "centerY"], s), r, a);
|
|
18475
18475
|
const { x: o, y: l, x2: c, y2: u } = this.getProps(["x", "y", "x2", "y2"], s), d = i === "y" ? { start: l, end: u } : { start: o, end: c }, h = Oi({ x: t, y: e }, this.getCenterPoint(s), te(-r));
|
|
18476
18476
|
return h[i] >= d.start - a - _i && h[i] <= d.end + a + _i;
|
|
18477
18477
|
}
|
|
@@ -18524,7 +18524,7 @@ wr.descriptors = {
|
|
|
18524
18524
|
_fallback: !0
|
|
18525
18525
|
}
|
|
18526
18526
|
};
|
|
18527
|
-
function
|
|
18527
|
+
function $D(n, t, e, i) {
|
|
18528
18528
|
const { width: s, height: r, centerX: a, centerY: o } = t, l = s / 2, c = r / 2;
|
|
18529
18529
|
if (l <= 0 || c <= 0)
|
|
18530
18530
|
return !1;
|
|
@@ -18534,7 +18534,7 @@ function YD(n, t, e, i) {
|
|
|
18534
18534
|
class Va extends ue {
|
|
18535
18535
|
inRange(t, e, i, s) {
|
|
18536
18536
|
const { x: r, y: a, x2: o, y2: l, width: c } = this.getProps(["x", "y", "x2", "y2", "width"], s), u = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18537
|
-
return i !== "x" && i !== "y" ?
|
|
18537
|
+
return i !== "x" && i !== "y" ? FT({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) : Cg(i === "y" ? { start: a, end: l, value: e } : { start: r, end: o, value: t }, u);
|
|
18538
18538
|
}
|
|
18539
18539
|
getCenterPoint(t) {
|
|
18540
18540
|
return Pi(this, t);
|
|
@@ -18545,7 +18545,7 @@ class Va extends ue {
|
|
|
18545
18545
|
return;
|
|
18546
18546
|
t.save(), t.fillStyle = e.backgroundColor, cs(t, e);
|
|
18547
18547
|
const s = An(t, e);
|
|
18548
|
-
|
|
18548
|
+
UT(t, this, this.centerX, this.centerY), s && !Ya(e.pointStyle) && (t.shadowColor = e.borderShadowColor, t.stroke()), t.restore(), e.borderWidth = i;
|
|
18549
18549
|
}
|
|
18550
18550
|
resolveElementProperties(t, e) {
|
|
18551
18551
|
const i = Ug(t, e);
|
|
@@ -18588,7 +18588,7 @@ Va.defaultRoutes = {
|
|
|
18588
18588
|
class qa extends ue {
|
|
18589
18589
|
inRange(t, e, i, s) {
|
|
18590
18590
|
if (i !== "x" && i !== "y")
|
|
18591
|
-
return this.options.radius >= 0.1 && this.elements.length > 1 &&
|
|
18591
|
+
return this.options.radius >= 0.1 && this.elements.length > 1 && UD(this.elements, t, e, s);
|
|
18592
18592
|
const r = Oi({ x: t, y: e }, this.getCenterPoint(s), te(-this.options.rotation)), a = this.elements.map((c) => i === "y" ? c.bY : c.bX), o = Math.min(...a), l = Math.max(...a);
|
|
18593
18593
|
return r[i] >= o && r[i] <= l;
|
|
18594
18594
|
}
|
|
@@ -18608,7 +18608,7 @@ class qa extends ue {
|
|
|
18608
18608
|
const i = Ug(t, e), { sides: s, rotation: r } = e, a = [], o = 2 * pt / s;
|
|
18609
18609
|
let l = r * rc;
|
|
18610
18610
|
for (let c = 0; c < s; c++, l += o) {
|
|
18611
|
-
const u =
|
|
18611
|
+
const u = jD(i, e, l);
|
|
18612
18612
|
u.initProperties = ls(t, i, e), a.push(u);
|
|
18613
18613
|
}
|
|
18614
18614
|
return i.elements = a, i;
|
|
@@ -18652,7 +18652,7 @@ qa.defaultRoutes = {
|
|
|
18652
18652
|
borderColor: "color",
|
|
18653
18653
|
backgroundColor: "color"
|
|
18654
18654
|
};
|
|
18655
|
-
function
|
|
18655
|
+
function jD({ centerX: n, centerY: t }, { radius: e, borderWidth: i, hitTolerance: s }, r) {
|
|
18656
18656
|
const a = (i + s) / 2, o = Math.sin(r), l = Math.cos(r), c = { x: n + o * e, y: t - l * e };
|
|
18657
18657
|
return {
|
|
18658
18658
|
type: "point",
|
|
@@ -18667,7 +18667,7 @@ function $D({ centerX: n, centerY: t }, { radius: e, borderWidth: i, hitToleranc
|
|
|
18667
18667
|
}
|
|
18668
18668
|
};
|
|
18669
18669
|
}
|
|
18670
|
-
function
|
|
18670
|
+
function UD(n, t, e, i) {
|
|
18671
18671
|
let s = !1, r = n[n.length - 1].getProps(["bX", "bY"], i);
|
|
18672
18672
|
for (const a of n) {
|
|
18673
18673
|
const o = a.getProps(["bX", "bY"], i);
|
|
@@ -18689,26 +18689,26 @@ Object.keys(Kn).forEach((n) => {
|
|
|
18689
18689
|
_fallback: "plugins.annotation.common"
|
|
18690
18690
|
});
|
|
18691
18691
|
});
|
|
18692
|
-
const
|
|
18692
|
+
const VD = {
|
|
18693
18693
|
update: Object.assign
|
|
18694
|
-
},
|
|
18694
|
+
}, qD = Nc.concat(Aa), _h = (n, t) => yt(t) ? Ql(n, t) : n, Zl = (n) => n === "color" || n === "font";
|
|
18695
18695
|
function zc(n = "line") {
|
|
18696
18696
|
return Kn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18697
18697
|
}
|
|
18698
|
-
function
|
|
18699
|
-
const s =
|
|
18698
|
+
function XD(n, t, e, i) {
|
|
18699
|
+
const s = KD(n, e.animations, i), r = t.annotations, a = JD(t.elements, r);
|
|
18700
18700
|
for (let o = 0; o < r.length; o++) {
|
|
18701
|
-
const l = r[o], c = Kg(a, o, l.type), u = l.setContext(
|
|
18702
|
-
d.skip =
|
|
18701
|
+
const l = r[o], c = Kg(a, o, l.type), u = l.setContext(QD(n, c, a, l)), d = c.resolveElementProperties(n, u);
|
|
18702
|
+
d.skip = GD(d), "elements" in d && (ZD(c, d.elements, u, s), delete d.elements), ze(c.x) || Object.assign(c, d), Object.assign(c, d.initProperties), d.options = Zg(u), s.update(c, d);
|
|
18703
18703
|
}
|
|
18704
18704
|
}
|
|
18705
|
-
function
|
|
18705
|
+
function GD(n) {
|
|
18706
18706
|
return isNaN(n.x) || isNaN(n.y);
|
|
18707
18707
|
}
|
|
18708
|
-
function
|
|
18709
|
-
return e === "reset" || e === "none" || e === "resize" ?
|
|
18708
|
+
function KD(n, t, e) {
|
|
18709
|
+
return e === "reset" || e === "none" || e === "resize" ? VD : new mc(n, t);
|
|
18710
18710
|
}
|
|
18711
|
-
function
|
|
18711
|
+
function ZD(n, t, e, i) {
|
|
18712
18712
|
const s = n.elements || (n.elements = []);
|
|
18713
18713
|
s.length = t.length;
|
|
18714
18714
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -18728,7 +18728,7 @@ function Zg(n) {
|
|
|
18728
18728
|
Ql(n, t.defaults),
|
|
18729
18729
|
Ql(n, t.defaultRoutes)
|
|
18730
18730
|
);
|
|
18731
|
-
for (const i of
|
|
18731
|
+
for (const i of qD)
|
|
18732
18732
|
e[i] = n[i];
|
|
18733
18733
|
return e;
|
|
18734
18734
|
}
|
|
@@ -18740,7 +18740,7 @@ function Ql(n, t) {
|
|
|
18740
18740
|
}
|
|
18741
18741
|
return e;
|
|
18742
18742
|
}
|
|
18743
|
-
function
|
|
18743
|
+
function QD(n, t, e, i) {
|
|
18744
18744
|
return t.$context || (t.$context = Object.assign(Object.create(n.getContext()), {
|
|
18745
18745
|
element: t,
|
|
18746
18746
|
get elements() {
|
|
@@ -18750,7 +18750,7 @@ function ZD(n, t, e, i) {
|
|
|
18750
18750
|
type: "annotation"
|
|
18751
18751
|
}));
|
|
18752
18752
|
}
|
|
18753
|
-
function
|
|
18753
|
+
function JD(n, t) {
|
|
18754
18754
|
const e = t.length, i = n.length;
|
|
18755
18755
|
if (i < e) {
|
|
18756
18756
|
const s = e - i;
|
|
@@ -18758,13 +18758,13 @@ function QD(n, t) {
|
|
|
18758
18758
|
} else i > e && n.splice(e, i - e);
|
|
18759
18759
|
return n;
|
|
18760
18760
|
}
|
|
18761
|
-
var
|
|
18762
|
-
const Yn = /* @__PURE__ */ new Map(), xh = (n) => n.type !== "doughnutLabel",
|
|
18761
|
+
var tk = "3.1.0";
|
|
18762
|
+
const Yn = /* @__PURE__ */ new Map(), xh = (n) => n.type !== "doughnutLabel", ek = Nc.concat(Aa);
|
|
18763
18763
|
var vh = {
|
|
18764
18764
|
id: "annotation",
|
|
18765
|
-
version:
|
|
18765
|
+
version: tk,
|
|
18766
18766
|
beforeRegister() {
|
|
18767
|
-
|
|
18767
|
+
zT("chart.js", "4.0", Fe.version);
|
|
18768
18768
|
},
|
|
18769
18769
|
afterRegister() {
|
|
18770
18770
|
Fe.register(Kn);
|
|
@@ -18791,15 +18791,15 @@ var vh = {
|
|
|
18791
18791
|
yt(r) ? Object.keys(r).forEach((a) => {
|
|
18792
18792
|
const o = r[a];
|
|
18793
18793
|
yt(o) && (o.id = a, s.push(o));
|
|
18794
|
-
}) : kt(r) && s.push(...r),
|
|
18794
|
+
}) : kt(r) && s.push(...r), bD(s.filter(xh), n.scales);
|
|
18795
18795
|
},
|
|
18796
18796
|
afterDataLimits(n, t) {
|
|
18797
18797
|
const e = Yn.get(n);
|
|
18798
|
-
|
|
18798
|
+
yD(n, t.scale, e.annotations.filter(xh).filter((i) => i.display && i.adjustScaleRange));
|
|
18799
18799
|
},
|
|
18800
18800
|
afterUpdate(n, t, e) {
|
|
18801
18801
|
const i = Yn.get(n);
|
|
18802
|
-
|
|
18802
|
+
hD(n, i, e), XD(n, i, e, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), pD(n, i, e);
|
|
18803
18803
|
},
|
|
18804
18804
|
beforeDatasetsDraw(n, t, e) {
|
|
18805
18805
|
Is(n, "beforeDatasetsDraw", e.clip);
|
|
@@ -18818,7 +18818,7 @@ var vh = {
|
|
|
18818
18818
|
},
|
|
18819
18819
|
beforeEvent(n, t, e) {
|
|
18820
18820
|
const i = Yn.get(n);
|
|
18821
|
-
|
|
18821
|
+
fD(i, t.event, e) && (t.changed = !0);
|
|
18822
18822
|
},
|
|
18823
18823
|
afterDestroy(n) {
|
|
18824
18824
|
Yn.delete(n);
|
|
@@ -18856,7 +18856,7 @@ var vh = {
|
|
|
18856
18856
|
},
|
|
18857
18857
|
descriptors: {
|
|
18858
18858
|
_indexable: !1,
|
|
18859
|
-
_scriptable: (n) => !
|
|
18859
|
+
_scriptable: (n) => !ek.includes(n) && n !== "init",
|
|
18860
18860
|
annotations: {
|
|
18861
18861
|
_allKeys: !1,
|
|
18862
18862
|
_fallback: (n, t) => `elements.${Kn[zc(t.type)].id}`
|
|
@@ -18877,12 +18877,12 @@ var vh = {
|
|
|
18877
18877
|
function Is(n, t, e) {
|
|
18878
18878
|
const { ctx: i, chartArea: s } = n, r = Yn.get(n);
|
|
18879
18879
|
e && hr(i, s);
|
|
18880
|
-
const a =
|
|
18880
|
+
const a = nk(r.visibleElements, t).sort((o, l) => o.element.options.z - l.element.options.z);
|
|
18881
18881
|
for (const o of a)
|
|
18882
|
-
|
|
18882
|
+
ik(i, s, r, o);
|
|
18883
18883
|
e && fr(i);
|
|
18884
18884
|
}
|
|
18885
|
-
function
|
|
18885
|
+
function nk(n, t) {
|
|
18886
18886
|
const e = [];
|
|
18887
18887
|
for (const i of n)
|
|
18888
18888
|
if (i.options.drawTime === t && e.push({ element: i, main: !0 }), i.elements && i.elements.length)
|
|
@@ -18890,17 +18890,17 @@ function ek(n, t) {
|
|
|
18890
18890
|
s.options.display && s.options.drawTime === t && e.push({ element: s });
|
|
18891
18891
|
return e;
|
|
18892
18892
|
}
|
|
18893
|
-
function
|
|
18893
|
+
function ik(n, t, e, i) {
|
|
18894
18894
|
const s = i.element;
|
|
18895
18895
|
i.main ? (ah(e, s, "beforeDraw"), s.draw(n, t), ah(e, s, "afterDraw")) : s.draw(n, t);
|
|
18896
18896
|
}
|
|
18897
|
-
const
|
|
18897
|
+
const sk = { class: "zoom-timerange-container" }, rk = { class: "zoom-timerange-details" }, ak = {
|
|
18898
18898
|
class: "label",
|
|
18899
18899
|
"data-testid": "zoom-timerange-from"
|
|
18900
|
-
},
|
|
18900
|
+
}, ok = {
|
|
18901
18901
|
class: "label",
|
|
18902
18902
|
"data-testid": "zoom-timerange-to"
|
|
18903
|
-
},
|
|
18903
|
+
}, lk = /* @__PURE__ */ de({
|
|
18904
18904
|
__name: "ZoomTimerange",
|
|
18905
18905
|
props: {
|
|
18906
18906
|
start: {},
|
|
@@ -18927,11 +18927,11 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
18927
18927
|
};
|
|
18928
18928
|
return ce(() => [t.start, t.end], ([a, o]) => {
|
|
18929
18929
|
r(a, o);
|
|
18930
|
-
}, { immediate: !0 }), (a, o) => (V(), ct("div",
|
|
18931
|
-
dt("div",
|
|
18932
|
-
dt("div",
|
|
18930
|
+
}, { immediate: !0 }), (a, o) => (V(), ct("div", sk, [
|
|
18931
|
+
dt("div", rk, [
|
|
18932
|
+
dt("div", ak, ht(G(e).t("zoom_time_range.from")), 1),
|
|
18933
18933
|
dt("div", null, ht(i.value), 1),
|
|
18934
|
-
dt("div",
|
|
18934
|
+
dt("div", ok, ht(G(e).t("zoom_time_range.to")), 1),
|
|
18935
18935
|
dt("div", null, ht(s.value), 1)
|
|
18936
18936
|
])
|
|
18937
18937
|
]));
|
|
@@ -18941,7 +18941,7 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
18941
18941
|
for (const [i, s] of t)
|
|
18942
18942
|
e[i] = s;
|
|
18943
18943
|
return e;
|
|
18944
|
-
}, Qg = /* @__PURE__ */ $e(
|
|
18944
|
+
}, Qg = /* @__PURE__ */ $e(lk, [["__scopeId", "data-v-0e972e3c"]]), ck = { class: "zoom-actions-container" }, uk = { class: "zoom-actions-heading" }, dk = { class: "zoom-action-select" }, hk = ["data-testid"], fk = ["aria-disabled", "href"], gk = ["onClick"], mk = /* @__PURE__ */ de({
|
|
18945
18945
|
__name: "ZoomActions",
|
|
18946
18946
|
props: {
|
|
18947
18947
|
zoomActionItems: {},
|
|
@@ -18953,8 +18953,8 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
18953
18953
|
const e = n, i = t, s = (r) => {
|
|
18954
18954
|
r.action && (r.action(e.newTimeRange), i("onAction"));
|
|
18955
18955
|
};
|
|
18956
|
-
return (r, a) => (V(), ct("div",
|
|
18957
|
-
dt("div",
|
|
18956
|
+
return (r, a) => (V(), ct("div", ck, [
|
|
18957
|
+
dt("div", uk, [
|
|
18958
18958
|
Kt(Qg, {
|
|
18959
18959
|
end: n.newTimeRange.end,
|
|
18960
18960
|
granularity: n.granularity,
|
|
@@ -18968,7 +18968,7 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
18968
18968
|
}, null, 8, ["color", "size"])
|
|
18969
18969
|
]),
|
|
18970
18970
|
a[2] || (a[2] = dt("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
18971
|
-
dt("div",
|
|
18971
|
+
dt("div", dk, [
|
|
18972
18972
|
(V(!0), ct(xi, null, Ki(n.zoomActionItems, (o) => (V(), ct("div", {
|
|
18973
18973
|
key: o.key,
|
|
18974
18974
|
class: On(["zoom-action-item", { disabled: o.disabled }]),
|
|
@@ -18980,18 +18980,18 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
18980
18980
|
class: "zoom-action-link",
|
|
18981
18981
|
href: o.href,
|
|
18982
18982
|
onClick: a[1] || (a[1] = (l) => r.$emit("onAction"))
|
|
18983
|
-
}, ht(o.label), 9,
|
|
18983
|
+
}, ht(o.label), 9, fk)) : (V(), ct("div", {
|
|
18984
18984
|
key: 1,
|
|
18985
18985
|
onClick: (l) => s(o)
|
|
18986
|
-
}, ht(o.label), 9,
|
|
18987
|
-
], 10,
|
|
18986
|
+
}, ht(o.label), 9, gk))
|
|
18987
|
+
], 10, hk))), 128))
|
|
18988
18988
|
])
|
|
18989
18989
|
]));
|
|
18990
18990
|
}
|
|
18991
|
-
}),
|
|
18991
|
+
}), pk = /* @__PURE__ */ $e(mk, [["__scopeId", "data-v-179abac7"]]), yk = { key: 2 }, bk = { class: "tooltip-title" }, _k = { class: "title" }, xk = {
|
|
18992
18992
|
key: 0,
|
|
18993
18993
|
class: "subtitle"
|
|
18994
|
-
},
|
|
18994
|
+
}, vk = { class: "context" }, wk = { class: "metric" }, Mk = { class: "tooltip" }, Sk = { key: 0 }, Tk = { class: "display-value" }, Dk = /* @__PURE__ */ de({
|
|
18995
18995
|
__name: "ChartTooltip",
|
|
18996
18996
|
props: {
|
|
18997
18997
|
state: {},
|
|
@@ -19004,7 +19004,7 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19004
19004
|
},
|
|
19005
19005
|
emits: ["dimensions", "onAction"],
|
|
19006
19006
|
setup(n, { emit: t }) {
|
|
19007
|
-
const e = t, i = n, s = Lt(null), { x: r, y: a, isDragging: o } =
|
|
19007
|
+
const e = t, i = n, s = Lt(null), { x: r, y: a, isDragging: o } = ST(s, {
|
|
19008
19008
|
initialValue: {
|
|
19009
19009
|
x: parseFloat(i.absoluteLeft),
|
|
19010
19010
|
y: parseFloat(i.absoluteTop)
|
|
@@ -19038,15 +19038,15 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19038
19038
|
end: (b = n.zoomTimeRange) == null ? void 0 : b.end,
|
|
19039
19039
|
granularity: n.granularity,
|
|
19040
19040
|
start: (_ = n.zoomTimeRange) == null ? void 0 : _.start
|
|
19041
|
-
}, null, 8, ["end", "granularity", "start"])) : n.state.interactionMode === "zoom-interactive" && n.zoomTimeRange && n.zoomActionItems && n.granularity ? (V(), Nt(
|
|
19041
|
+
}, null, 8, ["end", "granularity", "start"])) : n.state.interactionMode === "zoom-interactive" && n.zoomTimeRange && n.zoomActionItems && n.granularity ? (V(), Nt(pk, {
|
|
19042
19042
|
key: 1,
|
|
19043
19043
|
granularity: n.granularity,
|
|
19044
19044
|
"new-time-range": n.zoomTimeRange,
|
|
19045
19045
|
"zoom-action-items": n.zoomActionItems,
|
|
19046
19046
|
onOnAction: g[0] || (g[0] = (v) => e("onAction"))
|
|
19047
|
-
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (V(), ct("div",
|
|
19048
|
-
dt("div",
|
|
19049
|
-
dt("div",
|
|
19047
|
+
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (V(), ct("div", yk, [
|
|
19048
|
+
dt("div", bk, [
|
|
19049
|
+
dt("div", _k, [
|
|
19050
19050
|
dt("div", null, ht(n.tooltipTitle), 1),
|
|
19051
19051
|
h.value ? (V(), Nt(G(Mm), {
|
|
19052
19052
|
key: 0,
|
|
@@ -19055,16 +19055,16 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19055
19055
|
size: G(Cc)
|
|
19056
19056
|
}, null, 8, ["color", "size"])) : Zt("", !0)
|
|
19057
19057
|
]),
|
|
19058
|
-
u.value || d.value ? (V(), ct("div",
|
|
19059
|
-
dt("div",
|
|
19060
|
-
dt("div",
|
|
19058
|
+
u.value || d.value ? (V(), ct("div", xk, [
|
|
19059
|
+
dt("div", vk, ht(u.value), 1),
|
|
19060
|
+
dt("div", wk, ht(d.value), 1)
|
|
19061
19061
|
])) : Zt("", !0)
|
|
19062
19062
|
]),
|
|
19063
|
-
dt("ul",
|
|
19063
|
+
dt("ul", Mk, [
|
|
19064
19064
|
(V(!0), ct(xi, null, Ki(n.state.tooltipSeries, ({ backgroundColor: v, borderColor: M, label: S, value: k, isSegmentEmpty: E }, O) => (V(), ct(xi, {
|
|
19065
19065
|
key: S + O
|
|
19066
19066
|
}, [
|
|
19067
|
-
n.state.tooltipSeries.length ? (V(), ct("li",
|
|
19067
|
+
n.state.tooltipSeries.length ? (V(), ct("li", Sk, [
|
|
19068
19068
|
dt("div", {
|
|
19069
19069
|
class: "square-marker",
|
|
19070
19070
|
style: wi({ background: v, "border-color": M })
|
|
@@ -19072,7 +19072,7 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19072
19072
|
dt("span", {
|
|
19073
19073
|
class: On(["display-label", { empty: E }])
|
|
19074
19074
|
}, ht(S), 3),
|
|
19075
|
-
dt("span",
|
|
19075
|
+
dt("span", Tk, ht(k), 1)
|
|
19076
19076
|
])) : Zt("", !0)
|
|
19077
19077
|
], 64))), 128))
|
|
19078
19078
|
])
|
|
@@ -19080,10 +19080,10 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19080
19080
|
], 6)) : Zt("", !0);
|
|
19081
19081
|
};
|
|
19082
19082
|
}
|
|
19083
|
-
}), Xa = /* @__PURE__ */ $e(
|
|
19083
|
+
}), Xa = /* @__PURE__ */ $e(Dk, [["__scopeId", "data-v-078294a6"]]), kk = ["onClick"], Ck = ["title"], Ok = { class: "label truncate-label" }, Pk = {
|
|
19084
19084
|
key: 0,
|
|
19085
19085
|
class: "sub-label"
|
|
19086
|
-
},
|
|
19086
|
+
}, Ek = { class: "tooltip-content" }, Ak = /* @__PURE__ */ de({
|
|
19087
19087
|
__name: "ChartLegend",
|
|
19088
19088
|
props: {
|
|
19089
19089
|
id: {
|
|
@@ -19135,50 +19135,50 @@ const ik = { class: "zoom-timerange-container" }, sk = { class: "zoom-timerange-
|
|
|
19135
19135
|
class: On(["label-container", { "strike-through": !o(g, b) }]),
|
|
19136
19136
|
title: _ && G(s) ? `${f}: ${_.formatted}` : f
|
|
19137
19137
|
}, [
|
|
19138
|
-
dt("div",
|
|
19139
|
-
_ && G(s) ? (V(), ct("div",
|
|
19140
|
-
], 10,
|
|
19138
|
+
dt("div", Ok, ht(f), 1),
|
|
19139
|
+
_ && G(s) ? (V(), ct("div", Pk, ht(_.formatted), 1)) : Zt("", !0)
|
|
19140
|
+
], 10, Ck)
|
|
19141
19141
|
]),
|
|
19142
19142
|
_: 2
|
|
19143
19143
|
}, [
|
|
19144
19144
|
v ? {
|
|
19145
19145
|
name: "content",
|
|
19146
19146
|
fn: Ht(() => [
|
|
19147
|
-
dt("div",
|
|
19147
|
+
dt("div", Ek, ht(G(e).t("emptyEntityInfo")), 1)
|
|
19148
19148
|
]),
|
|
19149
19149
|
key: "0"
|
|
19150
19150
|
} : void 0
|
|
19151
19151
|
]), 1024)
|
|
19152
|
-
], 8,
|
|
19152
|
+
], 8, kk))), 128))
|
|
19153
19153
|
], 512)) : Zt("", !0);
|
|
19154
19154
|
};
|
|
19155
19155
|
}
|
|
19156
|
-
}), Hc = /* @__PURE__ */ $e(
|
|
19156
|
+
}), Hc = /* @__PURE__ */ $e(Ak, [["__scopeId", "data-v-1d512515"]]), me = [];
|
|
19157
19157
|
for (let n = 0; n < 256; ++n)
|
|
19158
19158
|
me.push((n + 256).toString(16).slice(1));
|
|
19159
|
-
function
|
|
19159
|
+
function Rk(n, t = 0) {
|
|
19160
19160
|
return (me[n[t + 0]] + me[n[t + 1]] + me[n[t + 2]] + me[n[t + 3]] + "-" + me[n[t + 4]] + me[n[t + 5]] + "-" + me[n[t + 6]] + me[n[t + 7]] + "-" + me[n[t + 8]] + me[n[t + 9]] + "-" + me[n[t + 10]] + me[n[t + 11]] + me[n[t + 12]] + me[n[t + 13]] + me[n[t + 14]] + me[n[t + 15]]).toLowerCase();
|
|
19161
19161
|
}
|
|
19162
19162
|
let pl;
|
|
19163
|
-
const
|
|
19164
|
-
function
|
|
19163
|
+
const Ik = new Uint8Array(16);
|
|
19164
|
+
function Lk() {
|
|
19165
19165
|
if (!pl) {
|
|
19166
19166
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
19167
19167
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
19168
19168
|
pl = crypto.getRandomValues.bind(crypto);
|
|
19169
19169
|
}
|
|
19170
|
-
return pl(
|
|
19170
|
+
return pl(Ik);
|
|
19171
19171
|
}
|
|
19172
|
-
const
|
|
19172
|
+
const Nk = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), wh = { randomUUID: Nk };
|
|
19173
19173
|
function Jl(n, t, e) {
|
|
19174
19174
|
var s;
|
|
19175
19175
|
if (wh.randomUUID && !n)
|
|
19176
19176
|
return wh.randomUUID();
|
|
19177
19177
|
n = n || {};
|
|
19178
|
-
const i = n.random ?? ((s = n.rng) == null ? void 0 : s.call(n)) ??
|
|
19178
|
+
const i = n.random ?? ((s = n.rng) == null ? void 0 : s.call(n)) ?? Lk();
|
|
19179
19179
|
if (i.length < 16)
|
|
19180
19180
|
throw new Error("Random bytes length must be >= 16");
|
|
19181
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
19181
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Rk(i);
|
|
19182
19182
|
}
|
|
19183
19183
|
const Mh = (n, t) => {
|
|
19184
19184
|
const e = n.ctx, i = n.scales.y, s = n.scales.x, r = t[t.length - 1].element;
|
|
@@ -19221,7 +19221,7 @@ class Jg {
|
|
|
19221
19221
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19222
19222
|
}
|
|
19223
19223
|
}
|
|
19224
|
-
const
|
|
19224
|
+
const Fk = ["id"], zk = ["id"], Hk = { class: "axis-tooltip-content" }, Bk = "100%", Wk = "100%", Yk = 20, $k = 20, Sh = 6, jk = 0, Uk = 10, Vk = 10, qk = 1, Xk = /* @__PURE__ */ de({
|
|
19225
19225
|
__name: "StackedBarChart",
|
|
19226
19226
|
props: {
|
|
19227
19227
|
chartData: {},
|
|
@@ -19259,14 +19259,14 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19259
19259
|
}, bt = {
|
|
19260
19260
|
...Z,
|
|
19261
19261
|
position: tt ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19262
|
-
yAdjust: () => tt ? 0 : -Math.abs(
|
|
19262
|
+
yAdjust: () => tt ? 0 : -Math.abs(fS()),
|
|
19263
19263
|
content: (rt) => Wd(c(rt, B), K)
|
|
19264
19264
|
}, Tt = {
|
|
19265
19265
|
...Z,
|
|
19266
|
-
content: (rt) =>
|
|
19266
|
+
content: (rt) => mS(c(rt, B), gS(rt.chart, $)),
|
|
19267
19267
|
position: tt ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19268
|
-
xAdjust: (rt) => tt ?
|
|
19269
|
-
color:
|
|
19268
|
+
xAdjust: (rt) => tt ? hS(Wd(c(rt, B), K)) : 0,
|
|
19269
|
+
color: aS
|
|
19270
19270
|
};
|
|
19271
19271
|
return {
|
|
19272
19272
|
[`${B}-value`]: bt,
|
|
@@ -19343,11 +19343,11 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19343
19343
|
}, 100)), j = N(() => {
|
|
19344
19344
|
var B, K;
|
|
19345
19345
|
const $ = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19346
|
-
return d.value && $ && !S.value ? `${Math.max($ * (
|
|
19346
|
+
return d.value && $ && !S.value ? `${Math.max($ * (Yk + Sh), z.value)}px` : Bk;
|
|
19347
19347
|
}), ut = N(() => {
|
|
19348
19348
|
var B, K;
|
|
19349
19349
|
const $ = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19350
|
-
return d.value && $ && S.value ? `${Math.max($ * (
|
|
19350
|
+
return d.value && $ && S.value ? `${Math.max($ * ($k + Sh), q.value)}px` : Wk;
|
|
19351
19351
|
});
|
|
19352
19352
|
_t.useReportChartDataForSynthetics(It(t, "chartData"), It(t, "syntheticsDataKey")), ni(() => {
|
|
19353
19353
|
t.annotations && Fe.register(vh), o.value && (z.value = o.value.offsetWidth, q.value = o.value.offsetHeight, et.observe(o.value));
|
|
@@ -19388,7 +19388,7 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19388
19388
|
[Ye.Bottom]: "column"
|
|
19389
19389
|
}, U = N(() => {
|
|
19390
19390
|
if (h.value && Q.value) {
|
|
19391
|
-
const $ = window.devicePixelRatio, B = Q.value, K = B.scales.y.width * $ +
|
|
19391
|
+
const $ = window.devicePixelRatio, B = Q.value, K = B.scales.y.width * $ + qk, J = (B.scales.y.height + B.scales.y.top + B.scales.x.height) * $, tt = h.value.getContext("2d");
|
|
19392
19392
|
return tt.scale($, $), tt.canvas.width = K, tt.canvas.height = J, tt.canvas.style.width = `${K / $}px`, tt.canvas.style.height = `${J / $}px`, {
|
|
19393
19393
|
scale: $,
|
|
19394
19394
|
width: K * $,
|
|
@@ -19401,7 +19401,7 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19401
19401
|
const B = $.target;
|
|
19402
19402
|
if (U.value && Q.value && !S.value) {
|
|
19403
19403
|
const K = U.value.scale, J = U.value.targetCtx, tt = U.value.width, Z = U.value.height, bt = Q.value, Tt = bt.canvas;
|
|
19404
|
-
J.fillStyle = "white", B.scrollLeft >=
|
|
19404
|
+
J.fillStyle = "white", B.scrollLeft >= jk && B.scrollLeft <= Uk ? (J.globalCompositeOperation = "source-over", J.clearRect(0, 0, tt, Z), J.drawImage(Tt, 0, 0, tt, Z, 0, 0, tt, Z), J.globalCompositeOperation = "destination-over", J.fillRect(0, 0, tt, Z)) : (J.globalCompositeOperation = "source-over", J.fillRect(0, (bt.scales.y.height + bt.scales.y.top + Vk) * K, tt, bt.scales.x.height * K));
|
|
19405
19405
|
}
|
|
19406
19406
|
k.offsetY = B.scrollTop, k.offsetX = B.scrollLeft, v.offset = B.scrollLeft;
|
|
19407
19407
|
}, vt = ({ width: $, height: B }) => {
|
|
@@ -19428,7 +19428,7 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19428
19428
|
id: G(s),
|
|
19429
19429
|
ref: "axis",
|
|
19430
19430
|
class: "axis"
|
|
19431
|
-
}, null, 8,
|
|
19431
|
+
}, null, 8, Fk),
|
|
19432
19432
|
dt("div", {
|
|
19433
19433
|
ref: "chartContainer",
|
|
19434
19434
|
class: "chart-container",
|
|
@@ -19443,7 +19443,7 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19443
19443
|
id: G(r),
|
|
19444
19444
|
ref: "canvas",
|
|
19445
19445
|
class: "chart-canvas"
|
|
19446
|
-
}, null, 8,
|
|
19446
|
+
}, null, 8, zk)
|
|
19447
19447
|
], 4)
|
|
19448
19448
|
], 544),
|
|
19449
19449
|
(V(), Nt(Ih, { to: "body" }, [
|
|
@@ -19453,7 +19453,7 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19453
19453
|
style: wi({ top: v.top, left: v.left }),
|
|
19454
19454
|
width: "auto"
|
|
19455
19455
|
}, [
|
|
19456
|
-
dt("div",
|
|
19456
|
+
dt("div", Hk, ht(v.text), 1)
|
|
19457
19457
|
], 4)) : Zt("", !0),
|
|
19458
19458
|
Kt(Xa, {
|
|
19459
19459
|
"absolute-left": G(E),
|
|
@@ -19471,14 +19471,14 @@ const Nk = ["id"], Fk = ["id"], zk = { class: "axis-tooltip-content" }, Hk = "10
|
|
|
19471
19471
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19472
19472
|
], 2));
|
|
19473
19473
|
}
|
|
19474
|
-
}),
|
|
19474
|
+
}), Gk = /* @__PURE__ */ $e(Xk, [["__scopeId", "data-v-3fd2579c"]]);
|
|
19475
19475
|
/*!
|
|
19476
19476
|
* chartjs-adapter-date-fns v3.0.0
|
|
19477
19477
|
* https://www.chartjs.org
|
|
19478
19478
|
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
19479
19479
|
* Released under the MIT license
|
|
19480
19480
|
*/
|
|
19481
|
-
const
|
|
19481
|
+
const Kk = {
|
|
19482
19482
|
datetime: "MMM d, yyyy, h:mm:ss aaaa",
|
|
19483
19483
|
millisecond: "h:mm:ss.SSS aaaa",
|
|
19484
19484
|
second: "h:mm:ss aaaa",
|
|
@@ -19494,7 +19494,7 @@ hf._date.override({
|
|
|
19494
19494
|
_id: "date-fns",
|
|
19495
19495
|
// DEBUG
|
|
19496
19496
|
formats: function() {
|
|
19497
|
-
return
|
|
19497
|
+
return Kk;
|
|
19498
19498
|
},
|
|
19499
19499
|
parse: function(n, t) {
|
|
19500
19500
|
if (n === null || typeof n > "u")
|
|
@@ -19621,14 +19621,14 @@ const tm = {
|
|
|
19621
19621
|
type: String,
|
|
19622
19622
|
default: void 0
|
|
19623
19623
|
}
|
|
19624
|
-
},
|
|
19624
|
+
}, Zk = {
|
|
19625
19625
|
ariaLabel: {
|
|
19626
19626
|
type: String
|
|
19627
19627
|
},
|
|
19628
19628
|
ariaDescribedby: {
|
|
19629
19629
|
type: String
|
|
19630
19630
|
}
|
|
19631
|
-
},
|
|
19631
|
+
}, Qk = {
|
|
19632
19632
|
type: {
|
|
19633
19633
|
type: String,
|
|
19634
19634
|
required: !0
|
|
@@ -19639,18 +19639,18 @@ const tm = {
|
|
|
19639
19639
|
// No delay by default
|
|
19640
19640
|
},
|
|
19641
19641
|
...tm,
|
|
19642
|
-
...
|
|
19643
|
-
},
|
|
19642
|
+
...Zk
|
|
19643
|
+
}, Jk = bm[0] === "2" ? (n, t) => Object.assign(n, {
|
|
19644
19644
|
attrs: t
|
|
19645
19645
|
}) : (n, t) => Object.assign(n, t);
|
|
19646
19646
|
function Ui(n) {
|
|
19647
19647
|
return Lh(n) ? _l(n) : n;
|
|
19648
19648
|
}
|
|
19649
|
-
function
|
|
19649
|
+
function tC(n) {
|
|
19650
19650
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n;
|
|
19651
19651
|
return Lh(t) ? new Proxy(n, {}) : n;
|
|
19652
19652
|
}
|
|
19653
|
-
function
|
|
19653
|
+
function eC(n, t) {
|
|
19654
19654
|
const e = n.options;
|
|
19655
19655
|
e && t && Object.assign(e, t);
|
|
19656
19656
|
}
|
|
@@ -19666,15 +19666,15 @@ function nm(n, t, e) {
|
|
|
19666
19666
|
} : (i.push(r), Object.assign(r, s), r);
|
|
19667
19667
|
});
|
|
19668
19668
|
}
|
|
19669
|
-
function
|
|
19669
|
+
function nC(n, t) {
|
|
19670
19670
|
const e = {
|
|
19671
19671
|
labels: [],
|
|
19672
19672
|
datasets: []
|
|
19673
19673
|
};
|
|
19674
19674
|
return em(e, n.labels), nm(e, n.datasets, t), e;
|
|
19675
19675
|
}
|
|
19676
|
-
const
|
|
19677
|
-
props:
|
|
19676
|
+
const iC = de({
|
|
19677
|
+
props: Qk,
|
|
19678
19678
|
setup(n, t) {
|
|
19679
19679
|
let { expose: e, slots: i } = t;
|
|
19680
19680
|
const s = Lt(null), r = Ge(null);
|
|
@@ -19683,7 +19683,7 @@ const nC = de({
|
|
|
19683
19683
|
});
|
|
19684
19684
|
const a = () => {
|
|
19685
19685
|
if (!s.value) return;
|
|
19686
|
-
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = n, g =
|
|
19686
|
+
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = n, g = nC(u, f), b = tC(g, u);
|
|
19687
19687
|
r.value = new Fe(s.value, {
|
|
19688
19688
|
type: c,
|
|
19689
19689
|
data: b,
|
|
@@ -19711,7 +19711,7 @@ const nC = de({
|
|
|
19711
19711
|
let _ = !1;
|
|
19712
19712
|
if (d) {
|
|
19713
19713
|
const v = Ui(d), M = Ui(f);
|
|
19714
|
-
v && v !== M && (
|
|
19714
|
+
v && v !== M && (eC(b, v), _ = !0);
|
|
19715
19715
|
}
|
|
19716
19716
|
if (h) {
|
|
19717
19717
|
const v = Ui(h.labels), M = Ui(g.labels), S = Ui(h.datasets), k = Ui(g.datasets);
|
|
@@ -19744,7 +19744,7 @@ function Bc(n, t) {
|
|
|
19744
19744
|
};
|
|
19745
19745
|
return s({
|
|
19746
19746
|
chart: r
|
|
19747
|
-
}), () => bl(
|
|
19747
|
+
}), () => bl(iC, Jk({
|
|
19748
19748
|
ref: a
|
|
19749
19749
|
}, {
|
|
19750
19750
|
type: n,
|
|
@@ -19753,7 +19753,7 @@ function Bc(n, t) {
|
|
|
19753
19753
|
}
|
|
19754
19754
|
});
|
|
19755
19755
|
}
|
|
19756
|
-
const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn), rm = /* @__PURE__ */ Bc("line", Xs),
|
|
19756
|
+
const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn), rm = /* @__PURE__ */ Bc("line", Xs), sC = { class: "chart-container" }, rC = /* @__PURE__ */ de({
|
|
19757
19757
|
__name: "DonutChart",
|
|
19758
19758
|
props: {
|
|
19759
19759
|
chartData: {},
|
|
@@ -19792,7 +19792,7 @@ const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn
|
|
|
19792
19792
|
afterUpdate(M) {
|
|
19793
19793
|
r.value = M.options.plugins.legend.labels.generateLabels(M).map((S) => ({ ...S, value: t.legendValues && t.legendValues[S.text], hidden: !1 }));
|
|
19794
19794
|
}
|
|
19795
|
-
}, d = N(() => [u]), h = N(() => [t.chartData.datasets.reduce((S, k) => (S.labels.push(k.label), S.backgroundColor.push(k.backgroundColor), S.borderColor.push(
|
|
19795
|
+
}, d = N(() => [u]), h = N(() => [t.chartData.datasets.reduce((S, k) => (S.labels.push(k.label), S.backgroundColor.push(k.backgroundColor), S.borderColor.push(rS(k.backgroundColor, 50)), S.data.push(k.data.reduce((E, O) => E + O, 0)), S), { labels: [], backgroundColor: [], borderColor: [], data: [] })]), f = N(() => ({
|
|
19796
19796
|
...t.chartData,
|
|
19797
19797
|
datasets: h.value
|
|
19798
19798
|
}));
|
|
@@ -19811,7 +19811,7 @@ const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn
|
|
|
19811
19811
|
class: On(["chart-parent", _(n.legendPosition)]),
|
|
19812
19812
|
"data-testid": "donut-chart-parent"
|
|
19813
19813
|
}, [
|
|
19814
|
-
dt("div",
|
|
19814
|
+
dt("div", sC, [
|
|
19815
19815
|
Kt(G(sm), {
|
|
19816
19816
|
ref_key: "chartInstance",
|
|
19817
19817
|
ref: b,
|
|
@@ -19839,11 +19839,11 @@ const im = /* @__PURE__ */ Bc("bar", qs), sm = /* @__PURE__ */ Bc("doughnut", Cn
|
|
|
19839
19839
|
}, null, 8, ["id", "chart-instance", "items", "position"])
|
|
19840
19840
|
], 2));
|
|
19841
19841
|
}
|
|
19842
|
-
}),
|
|
19842
|
+
}), aC = /* @__PURE__ */ $e(rC, [["__scopeId", "data-v-9503582a"]]), yl = (n, t, e, i, s = "#0275d8") => {
|
|
19843
19843
|
n.save(), n.beginPath(), n.moveTo(t, e), n.lineTo(t, i), n.lineWidth = 1, n.strokeStyle = s, n.stroke(), n.restore();
|
|
19844
|
-
}, Se = {},
|
|
19844
|
+
}, Se = {}, oC = () => {
|
|
19845
19845
|
Se.x = void 0, Se.chart = void 0, Se.strategy = void 0, Se.group = void 0;
|
|
19846
|
-
},
|
|
19846
|
+
}, lC = 10;
|
|
19847
19847
|
class am {
|
|
19848
19848
|
constructor({
|
|
19849
19849
|
brushGroup: t = void 0,
|
|
@@ -19867,7 +19867,7 @@ class am {
|
|
|
19867
19867
|
(i.type === "mousemove" || i.type === "mouseout") && requestAnimationFrame((s) => this.onMouseBrush(i.type, t, s));
|
|
19868
19868
|
}
|
|
19869
19869
|
onMouseBrush(t, e, i) {
|
|
19870
|
-
if (t === "mousemove" && i - this._lastMouseBrushEvent <
|
|
19870
|
+
if (t === "mousemove" && i - this._lastMouseBrushEvent < lC)
|
|
19871
19871
|
return;
|
|
19872
19872
|
const s = () => {
|
|
19873
19873
|
Se.chart = e, Se.strategy = this._brushStrategy, Se.group = this._brushGroup;
|
|
@@ -19916,16 +19916,16 @@ class am {
|
|
|
19916
19916
|
beforeDestroy(t) {
|
|
19917
19917
|
if (this._clickedSegment && this.destroyClickedSegment(), this._useBrushingState && Se.chart === t) {
|
|
19918
19918
|
const e = Se.x !== void 0;
|
|
19919
|
-
if (
|
|
19919
|
+
if (oC(), e)
|
|
19920
19920
|
for (const i of Object.values(Fe.instances))
|
|
19921
19921
|
i !== t && i.update("none");
|
|
19922
19922
|
}
|
|
19923
19923
|
}
|
|
19924
19924
|
}
|
|
19925
|
-
const
|
|
19925
|
+
const cC = (n, t, e) => {
|
|
19926
19926
|
const i = n.ctx;
|
|
19927
19927
|
i.save(), i.strokeStyle = "rgba(95, 154, 255, 1)", i.lineWidth = 2, i.beginPath(), i.moveTo(t, n.chartArea.top), i.lineTo(t, n.chartArea.bottom), i.moveTo(e, n.chartArea.top), i.lineTo(e, n.chartArea.bottom), i.stroke(), i.restore();
|
|
19928
|
-
},
|
|
19928
|
+
}, uC = (n, t, e) => {
|
|
19929
19929
|
const i = n.ctx;
|
|
19930
19930
|
i.save(), i.fillStyle = "rgba(143, 193, 255, 0.3)", i.fillRect(t, n.chartArea.top, e - t, n.chartArea.bottom - n.chartArea.top), i.restore();
|
|
19931
19931
|
}, Th = (n, t, e) => {
|
|
@@ -19937,7 +19937,7 @@ const lC = (n, t, e) => {
|
|
|
19937
19937
|
}
|
|
19938
19938
|
}));
|
|
19939
19939
|
};
|
|
19940
|
-
class
|
|
19940
|
+
class dC {
|
|
19941
19941
|
constructor() {
|
|
19942
19942
|
P(this, "id", "dragSelectPlugin");
|
|
19943
19943
|
P(this, "_isDragging", !1);
|
|
@@ -19981,31 +19981,31 @@ class uC {
|
|
|
19981
19981
|
this._isDragging = !1, this._dragTimeout && clearTimeout(this._dragTimeout);
|
|
19982
19982
|
}
|
|
19983
19983
|
afterDatasetsDraw(t) {
|
|
19984
|
-
(this._isDragging || !this._clearSelectionArea) && (
|
|
19984
|
+
(this._isDragging || !this._clearSelectionArea) && (uC(t, this._startX, this._endX), cC(t, this._startX, this._endX));
|
|
19985
19985
|
}
|
|
19986
19986
|
clearSelectionArea() {
|
|
19987
19987
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
19988
19988
|
}
|
|
19989
19989
|
}
|
|
19990
|
-
const
|
|
19990
|
+
const tP = ["hidden", "single", "full"];
|
|
19991
19991
|
var Xi = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(Xi || {});
|
|
19992
|
-
const
|
|
19992
|
+
const eP = [
|
|
19993
19993
|
"donut",
|
|
19994
19994
|
"horizontal_bar",
|
|
19995
19995
|
"vertical_bar",
|
|
19996
19996
|
"timeseries_line",
|
|
19997
19997
|
"timeseries_bar"
|
|
19998
|
-
],
|
|
19998
|
+
], nP = [
|
|
19999
19999
|
"gauge",
|
|
20000
20000
|
"top_n",
|
|
20001
20001
|
"single_value"
|
|
20002
|
-
],
|
|
20002
|
+
], hC = 20, fC = "rgba(255, 171, 171, 0.4)", gC = "rgba(255, 196, 0, 0.2)", Dh = (n, t, e) => {
|
|
20003
20003
|
const i = t.y - n.y;
|
|
20004
20004
|
if (i === 0)
|
|
20005
20005
|
return t.x;
|
|
20006
20006
|
const s = (e - n.y) / i;
|
|
20007
20007
|
return n.x + s * (t.x - n.x);
|
|
20008
|
-
},
|
|
20008
|
+
}, mC = (n, t) => {
|
|
20009
20009
|
const e = [];
|
|
20010
20010
|
return n.data.datasets.forEach((i) => {
|
|
20011
20011
|
if (!n.getDatasetMeta(n.data.datasets.indexOf(i)).visible)
|
|
@@ -20038,7 +20038,7 @@ const tP = [
|
|
|
20038
20038
|
});
|
|
20039
20039
|
});
|
|
20040
20040
|
}), e;
|
|
20041
|
-
},
|
|
20041
|
+
}, pC = (n) => {
|
|
20042
20042
|
if (!n.length)
|
|
20043
20043
|
return [];
|
|
20044
20044
|
n.sort((e, i) => e.type.localeCompare(i.type) || e.start - i.start);
|
|
@@ -20049,7 +20049,7 @@ const tP = [
|
|
|
20049
20049
|
}
|
|
20050
20050
|
return t;
|
|
20051
20051
|
};
|
|
20052
|
-
class
|
|
20052
|
+
class yC {
|
|
20053
20053
|
constructor(t) {
|
|
20054
20054
|
P(this, "id", "thresholdPlugin");
|
|
20055
20055
|
P(this, "_thresholds");
|
|
@@ -20087,7 +20087,7 @@ class pC {
|
|
|
20087
20087
|
for (const h of Object.keys(this._thresholds || {})) {
|
|
20088
20088
|
const f = (o = this._thresholds) == null ? void 0 : o[h];
|
|
20089
20089
|
f && f.forEach((g) => {
|
|
20090
|
-
g.hovered = Math.abs(g.value - d) <
|
|
20090
|
+
g.hovered = Math.abs(g.value - d) < hC;
|
|
20091
20091
|
});
|
|
20092
20092
|
}
|
|
20093
20093
|
}
|
|
@@ -20104,12 +20104,12 @@ class pC {
|
|
|
20104
20104
|
const d = t.scales.y.getPixelForValue(c.value);
|
|
20105
20105
|
i.save(), i.beginPath(), i.moveTo(t.chartArea.left, d), i.lineTo(t.chartArea.right, d), i.lineWidth = 1, i.strokeStyle = sl(c.type), i.setLineDash([5, 5]), i.stroke(), i.restore();
|
|
20106
20106
|
let h = "";
|
|
20107
|
-
c.label ? h = `${c.label}: ${c.value}` : c.type === "warning" ? h = this.i18n.t("chartLabels.threshold-warning", { value: c.value }) : c.type === "error" ? h = this.i18n.t("chartLabels.threshold-error", { value: c.value }) : h = this.i18n.t("chartLabels.thatreshold-neutral", { value: c.value }), c.hovered && (i.save(), i.fillStyle = sl(c.type), i.font =
|
|
20107
|
+
c.label ? h = `${c.label}: ${c.value}` : c.type === "warning" ? h = this.i18n.t("chartLabels.threshold-warning", { value: c.value }) : c.type === "error" ? h = this.i18n.t("chartLabels.threshold-error", { value: c.value }) : h = this.i18n.t("chartLabels.thatreshold-neutral", { value: c.value }), c.hovered && (i.save(), i.fillStyle = sl(c.type), i.font = sS, i.fillText(h, t.chartArea.left, d - 4), i.restore());
|
|
20108
20108
|
});
|
|
20109
|
-
const o =
|
|
20110
|
-
|
|
20109
|
+
const o = mC(t, a);
|
|
20110
|
+
pC(o).forEach((c) => {
|
|
20111
20111
|
const u = t.scales.x.getPixelForValue(c.start), d = t.scales.x.getPixelForValue(c.end);
|
|
20112
|
-
i.save(), i.fillStyle = c.type === "error" ?
|
|
20112
|
+
i.save(), i.fillStyle = c.type === "error" ? fC : gC, i.fillRect(u, t.chartArea.top, d - u, t.chartArea.bottom - t.chartArea.top), i.restore(), i.save(), i.beginPath(), i.moveTo(u, t.chartArea.bottom), i.lineTo(d, t.chartArea.bottom), i.lineWidth = 2, i.strokeStyle = sl(c.type), i.stroke(), i.restore();
|
|
20113
20113
|
});
|
|
20114
20114
|
}
|
|
20115
20115
|
}
|
|
@@ -20118,7 +20118,7 @@ class pC {
|
|
|
20118
20118
|
this._mouseMoveHandler && t.canvas.removeEventListener("mousemove", this._mouseMoveHandler);
|
|
20119
20119
|
}
|
|
20120
20120
|
}
|
|
20121
|
-
const
|
|
20121
|
+
const bC = /* @__PURE__ */ de({
|
|
20122
20122
|
__name: "TimeSeriesChart",
|
|
20123
20123
|
props: {
|
|
20124
20124
|
chartData: { default: void 0 },
|
|
@@ -20142,7 +20142,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20142
20142
|
},
|
|
20143
20143
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
20144
20144
|
setup(n, { emit: t }) {
|
|
20145
|
-
const e = n, i = t, { i18n: s } = _t.useI18n(), r = new am(), a = new Jg(), o = new
|
|
20145
|
+
const e = n, i = t, { i18n: s } = _t.useI18n(), r = new am(), a = new Jg(), o = new dC(), l = new yC(s), { translateUnit: c } = _t.useTranslatedUnits(), u = Lt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = Lt([]), g = Lt(), b = er("legendPosition", Ye.Bottom), _ = Gi("chartParent"), v = Lt(void 0), M = Lt(!1), S = nr({
|
|
20146
20146
|
showTooltip: !1,
|
|
20147
20147
|
tooltipContext: 0,
|
|
20148
20148
|
// Set in lineChartTooltipBehavior
|
|
@@ -20174,7 +20174,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20174
20174
|
...e.brush ? [o] : [],
|
|
20175
20175
|
...e.type === "timeseries_line" ? [r] : [],
|
|
20176
20176
|
...e.threshold ? [l] : []
|
|
20177
|
-
]), m = N(() => `line-${D.value.map((H) => H.id).join("-")}`), y = N(() => `bar-${D.value.map((H) => H.id).join("-")}`), w = N(() => e.chartData &&
|
|
20177
|
+
]), m = N(() => `line-${D.value.map((H) => H.id).join("-")}`), y = N(() => `bar-${D.value.map((H) => H.id).join("-")}`), w = N(() => e.chartData && GM(e.chartData)), { options: C } = _t.useLineChartOptions({
|
|
20178
20178
|
tooltipState: S,
|
|
20179
20179
|
timeRangeMs: It(e, "timeRangeMs"),
|
|
20180
20180
|
granularity: It(e, "granularity"),
|
|
@@ -20294,14 +20294,14 @@ const yC = /* @__PURE__ */ de({
|
|
|
20294
20294
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
20295
20295
|
], 2));
|
|
20296
20296
|
}
|
|
20297
|
-
}),
|
|
20297
|
+
}), _C = /* @__PURE__ */ $e(bC, [["__scopeId", "data-v-0a32a7ca"]]), xC = {
|
|
20298
20298
|
key: 0,
|
|
20299
20299
|
class: "chart-truncation-warning",
|
|
20300
20300
|
"data-testid": "truncation-warning"
|
|
20301
|
-
},
|
|
20301
|
+
}, vC = { class: "tooltip-content" }, wC = {
|
|
20302
20302
|
key: 2,
|
|
20303
20303
|
class: "analytics-chart-parent"
|
|
20304
|
-
},
|
|
20304
|
+
}, MC = /* @__PURE__ */ de({
|
|
20305
20305
|
__name: "AnalyticsChart",
|
|
20306
20306
|
props: {
|
|
20307
20307
|
chartData: {},
|
|
@@ -20384,7 +20384,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20384
20384
|
const R = nl(Number(i.chartData.meta.granularity_ms));
|
|
20385
20385
|
if (R)
|
|
20386
20386
|
return s.te(`granularityAxisTitles.${R}`) ? s.t(`granularityAxisTitles.${R}`) : R;
|
|
20387
|
-
}), O = N(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), D = N(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), m = N(() => b.value ?
|
|
20387
|
+
}), O = N(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), D = N(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), m = N(() => b.value ? KM(r.value) : i.chartData && i.chartData.meta && i.chartData.data.length), y = N(() => i.chartData.meta.granularity_ms ? nl(i.chartData.meta.granularity_ms) || "hourly" : nl(
|
|
20388
20388
|
new Date(i.chartData.data[1].timestamp).getTime() - new Date(i.chartData.data[0].timestamp).getTime()
|
|
20389
20389
|
) || "hourly"), w = N(() => i.chartOptions.chartLegendSortFn ? i.chartOptions.chartLegendSortFn : (R, z) => R.text === s.t("chartLabels.____OTHER____") ? 1 : z.text === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.text, 10)) && !isNaN(parseInt(z.text, 10)) ? R.text < z.text ? -1 : 1 : R.value && z.value ? z.value.raw - R.value.raw : 0), C = N(() => i.chartOptions.chartTooltipSortFn ? i.chartOptions.chartTooltipSortFn : (R, z) => R.label === s.t("chartLabels.____OTHER____") ? 1 : z.label === s.t("chartLabels.____OTHER____") ? -1 : !isNaN(parseInt(R.label, 10)) && !isNaN(parseInt(z.label, 10)) ? R.label < z.label ? -1 : 1 : R.value && z.value ? z.rawValue - R.rawValue : 0), A = N(() => [
|
|
20390
20390
|
...i.timeseriesZoom ? [{
|
|
@@ -20410,26 +20410,26 @@ const yC = /* @__PURE__ */ de({
|
|
|
20410
20410
|
"show-values": c.value
|
|
20411
20411
|
}])
|
|
20412
20412
|
}, [
|
|
20413
|
-
m.value && h.value && d.value ? (V(), ct("div",
|
|
20413
|
+
m.value && h.value && d.value ? (V(), ct("div", xC, [
|
|
20414
20414
|
Kt(q, {
|
|
20415
20415
|
class: "tooltip",
|
|
20416
20416
|
"max-width": "500",
|
|
20417
20417
|
placement: "right"
|
|
20418
20418
|
}, {
|
|
20419
20419
|
content: Ht(() => [
|
|
20420
|
-
dt("div",
|
|
20420
|
+
dt("div", vC, ht(G(f)), 1)
|
|
20421
20421
|
]),
|
|
20422
20422
|
default: Ht(() => [
|
|
20423
20423
|
Kt(G(Sm), {
|
|
20424
|
-
color: `var(--kui-color-text-warning, ${G(
|
|
20425
|
-
size: G(
|
|
20424
|
+
color: `var(--kui-color-text-warning, ${G(eS)})`,
|
|
20425
|
+
size: G(iS)
|
|
20426
20426
|
}, null, 8, ["color", "size"])
|
|
20427
20427
|
]),
|
|
20428
20428
|
_: 1
|
|
20429
20429
|
})
|
|
20430
20430
|
])) : Zt("", !0),
|
|
20431
|
-
m.value ? (V(), ct("div",
|
|
20432
|
-
b.value ? (V(), Nt(
|
|
20431
|
+
m.value ? (V(), ct("div", wC, [
|
|
20432
|
+
b.value ? (V(), Nt(_C, {
|
|
20433
20433
|
key: 0,
|
|
20434
20434
|
brush: a.value,
|
|
20435
20435
|
"chart-data": r.value,
|
|
@@ -20451,7 +20451,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20451
20451
|
"zoom-action-items": A.value,
|
|
20452
20452
|
onSelectChartRange: z[0] || (z[0] = (j) => e("select-chart-range", j)),
|
|
20453
20453
|
onZoomTimeRange: z[1] || (z[1] = (j) => e("zoom-time-range", j))
|
|
20454
|
-
}, null, 8, ["brush", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "fill", "granularity", "legend-values", "metric-axes-title", "metric-unit", "stacked", "synthetics-data-key", "threshold", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom-action-items"])) : g.value ? (V(), Nt(
|
|
20454
|
+
}, null, 8, ["brush", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "fill", "granularity", "legend-values", "metric-axes-title", "metric-unit", "stacked", "synthetics-data-key", "threshold", "time-range-ms", "tooltip-metric-display", "tooltip-title", "type", "zoom-action-items"])) : g.value ? (V(), Nt(Gk, {
|
|
20455
20455
|
key: 1,
|
|
20456
20456
|
annotations: n.showAnnotations,
|
|
20457
20457
|
"chart-data": r.value,
|
|
@@ -20467,7 +20467,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20467
20467
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20468
20468
|
"tooltip-metric-display": M.value,
|
|
20469
20469
|
"tooltip-title": n.tooltipTitle
|
|
20470
|
-
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : _.value ? (V(), Nt(
|
|
20470
|
+
}, null, 8, ["annotations", "chart-data", "chart-legend-sort-fn", "chart-tooltip-sort-fn", "dimension-axes-title", "legend-values", "metric-axes-title", "metric-unit", "orientation", "stacked", "synthetics-data-key", "tooltip-metric-display", "tooltip-title"])) : _.value ? (V(), Nt(aC, {
|
|
20471
20471
|
key: 2,
|
|
20472
20472
|
"chart-data": r.value,
|
|
20473
20473
|
"dataset-colors": n.chartOptions.chartDatasetColors || G(al),
|
|
@@ -20496,14 +20496,14 @@ const yC = /* @__PURE__ */ de({
|
|
|
20496
20496
|
], 2);
|
|
20497
20497
|
};
|
|
20498
20498
|
}
|
|
20499
|
-
}),
|
|
20499
|
+
}), iP = /* @__PURE__ */ $e(MC, [["__scopeId", "data-v-b2eeb763"]]), SC = {
|
|
20500
20500
|
class: "chart-parent",
|
|
20501
20501
|
"data-testid": "gauge-chart-parent"
|
|
20502
|
-
},
|
|
20502
|
+
}, TC = { class: "chart-totals-flex" }, DC = {
|
|
20503
20503
|
key: 1,
|
|
20504
20504
|
class: "metric-small",
|
|
20505
20505
|
"data-testid": "gauge-chart-total"
|
|
20506
|
-
},
|
|
20506
|
+
}, kC = /* @__PURE__ */ de({
|
|
20507
20507
|
__name: "GaugeChart",
|
|
20508
20508
|
props: {
|
|
20509
20509
|
chartData: {
|
|
@@ -20573,15 +20573,15 @@ const yC = /* @__PURE__ */ de({
|
|
|
20573
20573
|
var f;
|
|
20574
20574
|
return `color: ${(f = s == null ? void 0 : s.value[0]) == null ? void 0 : f.backgroundColor[t.numerator]}`;
|
|
20575
20575
|
}), d = N(() => ["full", "single"].includes(t.metricDisplay)), h = N(() => t.metricDisplay === "full");
|
|
20576
|
-
return (f, g) => (V(), ct("div",
|
|
20577
|
-
dt("div",
|
|
20576
|
+
return (f, g) => (V(), ct("div", SC, [
|
|
20577
|
+
dt("div", TC, [
|
|
20578
20578
|
d.value ? (V(), ct("div", {
|
|
20579
20579
|
key: 0,
|
|
20580
20580
|
class: "metric-large",
|
|
20581
20581
|
"data-testid": "gauge-chart-metric",
|
|
20582
20582
|
style: wi(u.value)
|
|
20583
20583
|
}, ht(l.value), 5)) : Zt("", !0),
|
|
20584
|
-
h.value ? (V(), ct("div",
|
|
20584
|
+
h.value ? (V(), ct("div", DC, ht(G(e).t("total")) + ": " + ht(c.value), 1)) : Zt("", !0)
|
|
20585
20585
|
]),
|
|
20586
20586
|
dt("div", {
|
|
20587
20587
|
class: "chart-container",
|
|
@@ -20597,19 +20597,19 @@ const yC = /* @__PURE__ */ de({
|
|
|
20597
20597
|
], 4)
|
|
20598
20598
|
]));
|
|
20599
20599
|
}
|
|
20600
|
-
}),
|
|
20600
|
+
}), CC = /* @__PURE__ */ $e(kC, [["__scopeId", "data-v-32e7f9e0"]]), OC = {
|
|
20601
20601
|
class: "chart-parent",
|
|
20602
20602
|
"data-testid": "single-value-parent"
|
|
20603
|
-
},
|
|
20603
|
+
}, PC = {
|
|
20604
20604
|
key: 1,
|
|
20605
20605
|
class: "single-value-wrapper"
|
|
20606
|
-
},
|
|
20606
|
+
}, EC = {
|
|
20607
20607
|
class: "single-value",
|
|
20608
20608
|
"data-testid": "single-value-chart"
|
|
20609
|
-
},
|
|
20609
|
+
}, AC = {
|
|
20610
20610
|
key: 0,
|
|
20611
20611
|
class: "single-value-unit"
|
|
20612
|
-
},
|
|
20612
|
+
}, RC = /* @__PURE__ */ de({
|
|
20613
20613
|
__name: "SingleValue",
|
|
20614
20614
|
props: {
|
|
20615
20615
|
data: {
|
|
@@ -20659,24 +20659,24 @@ const yC = /* @__PURE__ */ de({
|
|
|
20659
20659
|
((d = (u = i.data) == null ? void 0 : u.data) == null ? void 0 : d.length) > 1 && console.warn("SingleValue chart should only be used with a single data point. Data length:", i.data.data.length);
|
|
20660
20660
|
}), (u, d) => {
|
|
20661
20661
|
const h = Re("KEmptyState");
|
|
20662
|
-
return V(), ct("div",
|
|
20662
|
+
return V(), ct("div", OC, [
|
|
20663
20663
|
l.value === null ? (V(), Nt(h, {
|
|
20664
20664
|
key: 0,
|
|
20665
20665
|
class: "single-value-error",
|
|
20666
20666
|
"data-testid": "single-value-error",
|
|
20667
20667
|
"icon-variant": "error",
|
|
20668
20668
|
title: G(t).t("singleValue.valueError")
|
|
20669
|
-
}, null, 8, ["title"])) : (V(), ct("div",
|
|
20670
|
-
dt("span",
|
|
20671
|
-
o.value ? (V(), ct("span",
|
|
20669
|
+
}, null, 8, ["title"])) : (V(), ct("div", PC, [
|
|
20670
|
+
dt("span", EC, ht(c.value), 1),
|
|
20671
|
+
o.value ? (V(), ct("span", AC, " " + ht(a.value), 1)) : Zt("", !0)
|
|
20672
20672
|
]))
|
|
20673
20673
|
]);
|
|
20674
20674
|
};
|
|
20675
20675
|
}
|
|
20676
|
-
}),
|
|
20676
|
+
}), IC = /* @__PURE__ */ $e(RC, [["__scopeId", "data-v-8fd9e5ef"]]), LC = { class: "simple-chart-shell" }, NC = {
|
|
20677
20677
|
key: 1,
|
|
20678
20678
|
class: "analytics-chart-parent"
|
|
20679
|
-
},
|
|
20679
|
+
}, FC = /* @__PURE__ */ de({
|
|
20680
20680
|
__name: "SimpleChart",
|
|
20681
20681
|
props: {
|
|
20682
20682
|
chartData: {
|
|
@@ -20734,9 +20734,9 @@ const yC = /* @__PURE__ */ de({
|
|
|
20734
20734
|
});
|
|
20735
20735
|
return (c, u) => {
|
|
20736
20736
|
const d = Re("KEmptyState");
|
|
20737
|
-
return V(), ct("div",
|
|
20738
|
-
l.value ? (V(), ct("div",
|
|
20739
|
-
r.value ? (V(), Nt(
|
|
20737
|
+
return V(), ct("div", LC, [
|
|
20738
|
+
l.value ? (V(), ct("div", NC, [
|
|
20739
|
+
r.value ? (V(), Nt(CC, {
|
|
20740
20740
|
key: 0,
|
|
20741
20741
|
"chart-data": i.value,
|
|
20742
20742
|
"dataset-colors": n.chartOptions.chartDatasetColors,
|
|
@@ -20747,7 +20747,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20747
20747
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20748
20748
|
width: n.width
|
|
20749
20749
|
}, null, 8, ["chart-data", "dataset-colors", "metric-display", "metric-unit", "numerator", "synthetics-data-key", "width"])) : Zt("", !0),
|
|
20750
|
-
a.value ? (V(), Nt(
|
|
20750
|
+
a.value ? (V(), Nt(IC, {
|
|
20751
20751
|
key: 1,
|
|
20752
20752
|
data: n.chartData,
|
|
20753
20753
|
"decimal-points": n.chartOptions.decimalPoints
|
|
@@ -20766,17 +20766,17 @@ const yC = /* @__PURE__ */ de({
|
|
|
20766
20766
|
]);
|
|
20767
20767
|
};
|
|
20768
20768
|
}
|
|
20769
|
-
}),
|
|
20769
|
+
}), sP = /* @__PURE__ */ $e(FC, [["__scopeId", "data-v-471652c8"]]), zC = {
|
|
20770
20770
|
class: "top-n-card-title",
|
|
20771
20771
|
"data-testid": "top-n-card-title"
|
|
20772
|
-
},
|
|
20772
|
+
}, HC = {
|
|
20773
20773
|
class: "top-n-card-description",
|
|
20774
20774
|
"data-testid": "top-n-card-description"
|
|
20775
|
-
},
|
|
20775
|
+
}, BC = {
|
|
20776
20776
|
key: 3,
|
|
20777
20777
|
class: "top-n-table",
|
|
20778
20778
|
"data-testid": "top-n-table"
|
|
20779
|
-
},
|
|
20779
|
+
}, WC = { class: "top-n-table-table" }, YC = { "data-testid": "top-n-table-header" }, $C = { class: "top-n-table-header-row" }, jC = { class: "table-header-label" }, UC = { class: "top-n-table-cell top-n-table-cell--name" }, VC = ["data-testid"], qC = ["data-testid"], XC = ["data-testid"], GC = /* @__PURE__ */ de({
|
|
20780
20780
|
__name: "TopNTable",
|
|
20781
20781
|
props: {
|
|
20782
20782
|
title: { default: "" },
|
|
@@ -20894,16 +20894,16 @@ const yC = /* @__PURE__ */ de({
|
|
|
20894
20894
|
key: 1,
|
|
20895
20895
|
"table-columns": 2,
|
|
20896
20896
|
type: "table"
|
|
20897
|
-
})) : r.value ? (V(), ct("div",
|
|
20898
|
-
dt("table",
|
|
20899
|
-
dt("thead",
|
|
20900
|
-
dt("tr",
|
|
20897
|
+
})) : r.value ? (V(), ct("div", BC, [
|
|
20898
|
+
dt("table", WC, [
|
|
20899
|
+
dt("thead", YC, [
|
|
20900
|
+
dt("tr", $C, [
|
|
20901
20901
|
(V(!0), ct(xi, null, Ki(d.value, (C) => (V(), ct("th", {
|
|
20902
20902
|
key: C.key,
|
|
20903
20903
|
class: On(["top-n-table-header-cell", { "top-n-table-header-cell-metric": C.key !== "name" }]),
|
|
20904
20904
|
"data-testid": "top-n-table-header-column"
|
|
20905
20905
|
}, [
|
|
20906
|
-
dt("span",
|
|
20906
|
+
dt("span", jC, ht(C.label), 1)
|
|
20907
20907
|
], 2))), 128))
|
|
20908
20908
|
])
|
|
20909
20909
|
]),
|
|
@@ -20912,7 +20912,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20912
20912
|
key: C.id,
|
|
20913
20913
|
class: "top-n-table-row"
|
|
20914
20914
|
}, [
|
|
20915
|
-
dt("td",
|
|
20915
|
+
dt("td", UC, [
|
|
20916
20916
|
dt("span", {
|
|
20917
20917
|
"data-testid": `row-${C.id}`
|
|
20918
20918
|
}, [
|
|
@@ -20926,7 +20926,7 @@ const yC = /* @__PURE__ */ de({
|
|
|
20926
20926
|
}, () => [
|
|
20927
20927
|
Be(ht(C.name), 1)
|
|
20928
20928
|
], !0)
|
|
20929
|
-
], 8,
|
|
20929
|
+
], 8, VC)
|
|
20930
20930
|
]),
|
|
20931
20931
|
(V(!0), ct(xi, null, Ki(h.value, (A) => (V(), ct("td", {
|
|
20932
20932
|
key: A.key,
|
|
@@ -20935,10 +20935,10 @@ const yC = /* @__PURE__ */ de({
|
|
|
20935
20935
|
A.key === "value" ? (V(), ct("span", {
|
|
20936
20936
|
key: 0,
|
|
20937
20937
|
"data-testid": `row-${C.id}`
|
|
20938
|
-
}, ht(k(C, A.key)), 9,
|
|
20938
|
+
}, ht(k(C, A.key)), 9, qC)) : (V(), ct("span", {
|
|
20939
20939
|
key: 1,
|
|
20940
20940
|
"data-testid": `row-${C.id}-${A.key}`
|
|
20941
|
-
}, ht(k(C, A.key)), 9,
|
|
20941
|
+
}, ht(k(C, A.key)), 9, XC))
|
|
20942
20942
|
]))), 128))
|
|
20943
20943
|
]))), 128))
|
|
20944
20944
|
])
|
|
@@ -20959,21 +20959,21 @@ const yC = /* @__PURE__ */ de({
|
|
|
20959
20959
|
n.title ? {
|
|
20960
20960
|
name: "title",
|
|
20961
20961
|
fn: Ht(() => [
|
|
20962
|
-
dt("span",
|
|
20962
|
+
dt("span", zC, ht(n.title), 1)
|
|
20963
20963
|
]),
|
|
20964
20964
|
key: "0"
|
|
20965
20965
|
} : void 0,
|
|
20966
20966
|
n.description ? {
|
|
20967
20967
|
name: "actions",
|
|
20968
20968
|
fn: Ht(() => [
|
|
20969
|
-
dt("div",
|
|
20969
|
+
dt("div", HC, ht(n.description), 1)
|
|
20970
20970
|
]),
|
|
20971
20971
|
key: "1"
|
|
20972
20972
|
} : void 0
|
|
20973
20973
|
]), 1032, ["title-tag"]);
|
|
20974
20974
|
};
|
|
20975
20975
|
}
|
|
20976
|
-
}),
|
|
20976
|
+
}), rP = /* @__PURE__ */ $e(GC, [["__scopeId", "data-v-27e5b22c"]]);
|
|
20977
20977
|
var Ra = { exports: {} };
|
|
20978
20978
|
Ra.exports;
|
|
20979
20979
|
(function(n, t) {
|
|
@@ -21562,10 +21562,10 @@ Ra.exports;
|
|
|
21562
21562
|
}
|
|
21563
21563
|
n.exports = vs;
|
|
21564
21564
|
})(Ra, Ra.exports);
|
|
21565
|
-
var
|
|
21566
|
-
const
|
|
21567
|
-
var
|
|
21568
|
-
function
|
|
21565
|
+
var KC = Ra.exports;
|
|
21566
|
+
const ZC = /* @__PURE__ */ Pc(KC);
|
|
21567
|
+
var QC = 9007199254740991, JC = "[object Arguments]", tO = "[object Function]", eO = "[object GeneratorFunction]", nO = "[object Symbol]", iO = typeof Le == "object" && Le && Le.Object === Object && Le, sO = typeof self == "object" && self && self.Object === Object && self, rO = iO || sO || Function("return this")();
|
|
21568
|
+
function aO(n, t, e) {
|
|
21569
21569
|
switch (e.length) {
|
|
21570
21570
|
case 0:
|
|
21571
21571
|
return n.call(t);
|
|
@@ -21578,87 +21578,87 @@ function rO(n, t, e) {
|
|
|
21578
21578
|
}
|
|
21579
21579
|
return n.apply(t, e);
|
|
21580
21580
|
}
|
|
21581
|
-
function
|
|
21581
|
+
function oO(n, t) {
|
|
21582
21582
|
for (var e = -1, i = n ? n.length : 0, s = Array(i); ++e < i; )
|
|
21583
21583
|
s[e] = t(n[e], e, n);
|
|
21584
21584
|
return s;
|
|
21585
21585
|
}
|
|
21586
|
-
function
|
|
21586
|
+
function lO(n, t) {
|
|
21587
21587
|
for (var e = -1, i = t.length, s = n.length; ++e < i; )
|
|
21588
21588
|
n[s + e] = t[e];
|
|
21589
21589
|
return n;
|
|
21590
21590
|
}
|
|
21591
|
-
var Wc = Object.prototype,
|
|
21592
|
-
function
|
|
21591
|
+
var Wc = Object.prototype, cO = Wc.hasOwnProperty, Yc = Wc.toString, kh = rO.Symbol, uO = Wc.propertyIsEnumerable, Ch = kh ? kh.isConcatSpreadable : void 0, Oh = Math.max;
|
|
21592
|
+
function dO(n, t, e, i, s) {
|
|
21593
21593
|
var r = -1, a = n.length;
|
|
21594
|
-
for (e || (e =
|
|
21594
|
+
for (e || (e = mO), s || (s = []); ++r < a; ) {
|
|
21595
21595
|
var o = n[r];
|
|
21596
|
-
e(o) ?
|
|
21596
|
+
e(o) ? lO(s, o) : s[s.length] = o;
|
|
21597
21597
|
}
|
|
21598
21598
|
return s;
|
|
21599
21599
|
}
|
|
21600
|
-
function
|
|
21601
|
-
return n = Object(n),
|
|
21600
|
+
function hO(n, t) {
|
|
21601
|
+
return n = Object(n), fO(n, t, function(e, i) {
|
|
21602
21602
|
return i in n;
|
|
21603
21603
|
});
|
|
21604
21604
|
}
|
|
21605
|
-
function
|
|
21605
|
+
function fO(n, t, e) {
|
|
21606
21606
|
for (var i = -1, s = t.length, r = {}; ++i < s; ) {
|
|
21607
21607
|
var a = t[i], o = n[a];
|
|
21608
21608
|
e(o, a) && (r[a] = o);
|
|
21609
21609
|
}
|
|
21610
21610
|
return r;
|
|
21611
21611
|
}
|
|
21612
|
-
function
|
|
21612
|
+
function gO(n, t) {
|
|
21613
21613
|
return t = Oh(t === void 0 ? n.length - 1 : t, 0), function() {
|
|
21614
21614
|
for (var e = arguments, i = -1, s = Oh(e.length - t, 0), r = Array(s); ++i < s; )
|
|
21615
21615
|
r[i] = e[t + i];
|
|
21616
21616
|
i = -1;
|
|
21617
21617
|
for (var a = Array(t + 1); ++i < t; )
|
|
21618
21618
|
a[i] = e[i];
|
|
21619
|
-
return a[t] = r,
|
|
21619
|
+
return a[t] = r, aO(n, this, a);
|
|
21620
21620
|
};
|
|
21621
21621
|
}
|
|
21622
|
-
function gO(n) {
|
|
21623
|
-
return yO(n) || pO(n) || !!(Ch && n && n[Ch]);
|
|
21624
|
-
}
|
|
21625
21622
|
function mO(n) {
|
|
21626
|
-
|
|
21623
|
+
return bO(n) || yO(n) || !!(Ch && n && n[Ch]);
|
|
21624
|
+
}
|
|
21625
|
+
function pO(n) {
|
|
21626
|
+
if (typeof n == "string" || SO(n))
|
|
21627
21627
|
return n;
|
|
21628
21628
|
var t = n + "";
|
|
21629
21629
|
return t == "0" && 1 / n == -1 / 0 ? "-0" : t;
|
|
21630
21630
|
}
|
|
21631
|
-
function
|
|
21632
|
-
return
|
|
21633
|
-
}
|
|
21634
|
-
var yO = Array.isArray;
|
|
21635
|
-
function bO(n) {
|
|
21636
|
-
return n != null && vO(n.length) && !xO(n);
|
|
21631
|
+
function yO(n) {
|
|
21632
|
+
return xO(n) && cO.call(n, "callee") && (!uO.call(n, "callee") || Yc.call(n) == JC);
|
|
21637
21633
|
}
|
|
21634
|
+
var bO = Array.isArray;
|
|
21638
21635
|
function _O(n) {
|
|
21639
|
-
return
|
|
21636
|
+
return n != null && wO(n.length) && !vO(n);
|
|
21640
21637
|
}
|
|
21641
21638
|
function xO(n) {
|
|
21642
|
-
|
|
21643
|
-
return t == JC || t == tO;
|
|
21639
|
+
return om(n) && _O(n);
|
|
21644
21640
|
}
|
|
21645
21641
|
function vO(n) {
|
|
21646
|
-
|
|
21642
|
+
var t = MO(n) ? Yc.call(n) : "";
|
|
21643
|
+
return t == tO || t == eO;
|
|
21647
21644
|
}
|
|
21648
21645
|
function wO(n) {
|
|
21646
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= QC;
|
|
21647
|
+
}
|
|
21648
|
+
function MO(n) {
|
|
21649
21649
|
var t = typeof n;
|
|
21650
21650
|
return !!n && (t == "object" || t == "function");
|
|
21651
21651
|
}
|
|
21652
21652
|
function om(n) {
|
|
21653
21653
|
return !!n && typeof n == "object";
|
|
21654
21654
|
}
|
|
21655
|
-
function
|
|
21656
|
-
return typeof n == "symbol" || om(n) && Yc.call(n) ==
|
|
21655
|
+
function SO(n) {
|
|
21656
|
+
return typeof n == "symbol" || om(n) && Yc.call(n) == nO;
|
|
21657
21657
|
}
|
|
21658
|
-
var
|
|
21659
|
-
return n == null ? {} :
|
|
21660
|
-
}),
|
|
21661
|
-
const
|
|
21658
|
+
var TO = gO(function(n, t) {
|
|
21659
|
+
return n == null ? {} : hO(n, oO(dO(t), pO));
|
|
21660
|
+
}), DO = TO;
|
|
21661
|
+
const kO = /* @__PURE__ */ Pc(DO);
|
|
21662
21662
|
var lm = { exports: {} };
|
|
21663
21663
|
(function(n, t) {
|
|
21664
21664
|
(function(e, i) {
|
|
@@ -21728,7 +21728,7 @@ var lm = { exports: {} };
|
|
|
21728
21728
|
a.saveAs = l.saveAs = l, n.exports = l;
|
|
21729
21729
|
});
|
|
21730
21730
|
})(lm);
|
|
21731
|
-
var
|
|
21731
|
+
var CO = lm.exports, cm = { exports: {} };
|
|
21732
21732
|
/* @license
|
|
21733
21733
|
Papa Parse
|
|
21734
21734
|
v5.5.3
|
|
@@ -22143,8 +22143,8 @@ License: MIT
|
|
|
22143
22143
|
}), (d.prototype = Object.create(u.prototype)).constructor = d, (h.prototype = Object.create(u.prototype)).constructor = h, (f.prototype = Object.create(f.prototype)).constructor = f, (g.prototype = Object.create(u.prototype)).constructor = g, c;
|
|
22144
22144
|
});
|
|
22145
22145
|
})(cm);
|
|
22146
|
-
var
|
|
22147
|
-
const
|
|
22146
|
+
var OO = cm.exports;
|
|
22147
|
+
const PO = ["id"], EO = /* @__PURE__ */ de({
|
|
22148
22148
|
__name: "VueJsonCsv",
|
|
22149
22149
|
props: {
|
|
22150
22150
|
data: {
|
|
@@ -22209,12 +22209,12 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22209
22209
|
const u = i.labels;
|
|
22210
22210
|
if (typeof i.fields !== Xi.Object)
|
|
22211
22211
|
throw new Error("Labels needs to be a object containing key / value pairs.");
|
|
22212
|
-
return typeof u === Xi.Object ? (d) =>
|
|
22212
|
+
return typeof u === Xi.Object ? (d) => ZC(d, (h, f) => u[f] || f) : (d) => d;
|
|
22213
22213
|
}, o = () => {
|
|
22214
22214
|
const u = i.fields;
|
|
22215
22215
|
if (typeof i.fields !== Xi.Object && !Array.isArray(u))
|
|
22216
22216
|
throw new Error("Fields needs to be an array of strings.");
|
|
22217
|
-
return Array.isArray(u) ? (d) =>
|
|
22217
|
+
return Array.isArray(u) ? (d) => kO(d, u) : (d) => d;
|
|
22218
22218
|
}, l = () => {
|
|
22219
22219
|
if (typeof i.fields === Xi.Undefined && typeof i.labels === Xi.Undefined)
|
|
22220
22220
|
return i.data;
|
|
@@ -22226,7 +22226,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22226
22226
|
return;
|
|
22227
22227
|
}
|
|
22228
22228
|
e("export-started", r.value);
|
|
22229
|
-
let u =
|
|
22229
|
+
let u = OO.unparse(r.value, Object.assign({
|
|
22230
22230
|
delimiter: i.delimiter,
|
|
22231
22231
|
encoding: i.encoding
|
|
22232
22232
|
}));
|
|
@@ -22235,7 +22235,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22235
22235
|
const d = new Blob([u], {
|
|
22236
22236
|
type: "text/csv;charset=" + i.encoding
|
|
22237
22237
|
});
|
|
22238
|
-
|
|
22238
|
+
CO.saveAs(d, i.filename);
|
|
22239
22239
|
}
|
|
22240
22240
|
};
|
|
22241
22241
|
return (u, d) => (V(), ct("div", {
|
|
@@ -22246,9 +22246,9 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22246
22246
|
ir(u.$slots, "default", {}, () => [
|
|
22247
22247
|
Be("Download " + ht(n.filename), 1)
|
|
22248
22248
|
])
|
|
22249
|
-
], 8,
|
|
22249
|
+
], 8, PO));
|
|
22250
22250
|
}
|
|
22251
|
-
}),
|
|
22251
|
+
}), AO = /* @__PURE__ */ de({
|
|
22252
22252
|
__name: "DownloadCsv",
|
|
22253
22253
|
props: {
|
|
22254
22254
|
rows: {},
|
|
@@ -22258,7 +22258,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22258
22258
|
setup(n) {
|
|
22259
22259
|
const t = n, e = N(() => Object.keys(t.headers));
|
|
22260
22260
|
return (i, s) => (V(), ct("div", null, [
|
|
22261
|
-
Kt(
|
|
22261
|
+
Kt(EO, {
|
|
22262
22262
|
data: n.rows,
|
|
22263
22263
|
fields: e.value,
|
|
22264
22264
|
filename: n.filename,
|
|
@@ -22271,14 +22271,14 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22271
22271
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
22272
22272
|
]));
|
|
22273
22273
|
}
|
|
22274
|
-
}),
|
|
22274
|
+
}), RO = { class: "kong-ui-public-csv-export-modal" }, IO = {
|
|
22275
22275
|
key: 0,
|
|
22276
22276
|
class: "selected-range"
|
|
22277
|
-
},
|
|
22277
|
+
}, LO = {
|
|
22278
22278
|
key: 4,
|
|
22279
22279
|
class: "text-muted",
|
|
22280
22280
|
tag: "span"
|
|
22281
|
-
}, Ph = 3,
|
|
22281
|
+
}, Ph = 3, aP = /* @__PURE__ */ de({
|
|
22282
22282
|
__name: "CsvExportModal",
|
|
22283
22283
|
props: {
|
|
22284
22284
|
exportState: {},
|
|
@@ -22355,7 +22355,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22355
22355
|
a.value++;
|
|
22356
22356
|
}), (g, b) => {
|
|
22357
22357
|
const _ = Re("KSkeleton"), v = Re("KEmptyState"), M = Re("KTableData"), S = Re("KTooltip"), k = Re("KButton"), E = Re("KModal");
|
|
22358
|
-
return V(), ct("div",
|
|
22358
|
+
return V(), ct("div", RO, [
|
|
22359
22359
|
Kt(E, {
|
|
22360
22360
|
class: "vitals-report",
|
|
22361
22361
|
"data-testid": "csv-export-modal",
|
|
@@ -22369,7 +22369,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22369
22369
|
var O;
|
|
22370
22370
|
return [
|
|
22371
22371
|
dt("div", null, [
|
|
22372
|
-
n.exportState.status === "success" && l.value ? (V(), ct("div",
|
|
22372
|
+
n.exportState.status === "success" && l.value ? (V(), ct("div", IO, [
|
|
22373
22373
|
dt("p", null, ht(n.modalDescription ? n.modalDescription : G(e).t("csvExport.exportDescription")), 1),
|
|
22374
22374
|
dt("p", null, ht(G(e).t("csvExport.exportTimeRange")) + ": " + ht(c.value), 1)
|
|
22375
22375
|
])) : Zt("", !0),
|
|
@@ -22408,7 +22408,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22408
22408
|
]),
|
|
22409
22409
|
_: 1
|
|
22410
22410
|
})) : Zt("", !0),
|
|
22411
|
-
n.exportState.status === "success" && l.value ? (V(), ct("div",
|
|
22411
|
+
n.exportState.status === "success" && l.value ? (V(), ct("div", LO, [
|
|
22412
22412
|
Be(ht(u.value) + " ", 1),
|
|
22413
22413
|
Kt(S, {
|
|
22414
22414
|
class: "preview-tooltip",
|
|
@@ -22438,7 +22438,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22438
22438
|
]),
|
|
22439
22439
|
_: 1
|
|
22440
22440
|
}),
|
|
22441
|
-
Kt(
|
|
22441
|
+
Kt(AO, {
|
|
22442
22442
|
class: "vitals-report-export-button",
|
|
22443
22443
|
filename: r,
|
|
22444
22444
|
headers: h.value.csvHeaders,
|
|
@@ -22464,11 +22464,11 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22464
22464
|
]);
|
|
22465
22465
|
};
|
|
22466
22466
|
}
|
|
22467
|
-
}),
|
|
22467
|
+
}), NO = { class: "container" }, FO = {
|
|
22468
22468
|
key: 0,
|
|
22469
22469
|
class: "no-data",
|
|
22470
22470
|
"data-testId": "sparkline-empty"
|
|
22471
|
-
},
|
|
22471
|
+
}, zO = ["title"], HO = /* @__PURE__ */ de({
|
|
22472
22472
|
__name: "SparklineChart",
|
|
22473
22473
|
props: {
|
|
22474
22474
|
chartKey: { default: () => {
|
|
@@ -22630,7 +22630,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22630
22630
|
};
|
|
22631
22631
|
}), ei(() => {
|
|
22632
22632
|
We.positioners[S] && delete We.positioners[S];
|
|
22633
|
-
}), (D, m) => (V(), ct("div",
|
|
22633
|
+
}), (D, m) => (V(), ct("div", NO, [
|
|
22634
22634
|
_.value ? n.type === "sparkline_bar" ? (V(), Nt(G(im), {
|
|
22635
22635
|
key: 1,
|
|
22636
22636
|
"chart-id": G(t),
|
|
@@ -22645,7 +22645,7 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22645
22645
|
"data-testId": n.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
22646
22646
|
options: k.value,
|
|
22647
22647
|
plugins: h.value
|
|
22648
|
-
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Zt("", !0) : (V(), ct("div",
|
|
22648
|
+
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Zt("", !0) : (V(), ct("div", FO, [
|
|
22649
22649
|
ir(D.$slots, "empty", {}, () => [
|
|
22650
22650
|
Be(ht(G(e).t("sparkline_no_data")), 1)
|
|
22651
22651
|
], !0)
|
|
@@ -22671,43 +22671,43 @@ const OO = ["id"], PO = /* @__PURE__ */ de({
|
|
|
22671
22671
|
}, () => [
|
|
22672
22672
|
Be(ht(g.value), 1)
|
|
22673
22673
|
], !0)
|
|
22674
|
-
], 8,
|
|
22674
|
+
], 8, zO)) : Zt("", !0)
|
|
22675
22675
|
]));
|
|
22676
22676
|
}
|
|
22677
|
-
}),
|
|
22677
|
+
}), oP = /* @__PURE__ */ $e(HO, [["__scopeId", "data-v-e18e899f"]]);
|
|
22678
22678
|
export {
|
|
22679
|
-
|
|
22679
|
+
iP as AnalyticsChart,
|
|
22680
22680
|
Ye as ChartLegendPosition,
|
|
22681
|
-
|
|
22682
|
-
|
|
22683
|
-
|
|
22684
|
-
|
|
22685
|
-
|
|
22681
|
+
aP as CsvExportModal,
|
|
22682
|
+
UO as DECIMAL_DISPLAY,
|
|
22683
|
+
lS as EMPTY_COLOR,
|
|
22684
|
+
JM as FONT_SIZE_REGULAR,
|
|
22685
|
+
QM as FONT_SIZE_SMALL,
|
|
22686
22686
|
Yl as MAX_LABEL_LENGTH,
|
|
22687
|
-
|
|
22688
|
-
|
|
22689
|
-
|
|
22690
|
-
|
|
22687
|
+
KO as OTHERS_COLOR,
|
|
22688
|
+
sP as SimpleChart,
|
|
22689
|
+
oP as SparklineChart,
|
|
22690
|
+
rP as TopNTable,
|
|
22691
22691
|
Xi as ValidType,
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22692
|
+
aS as accessibleGrey,
|
|
22693
|
+
oS as apiRequestStatusCodeColors,
|
|
22694
|
+
eP as chartTypes,
|
|
22695
|
+
yS as codesInSpec,
|
|
22696
|
+
rS as darkenColor,
|
|
22697
22697
|
Jn as datavisPalette,
|
|
22698
22698
|
al as defaultStatusCodeColors,
|
|
22699
22699
|
bg as determineBaseColor,
|
|
22700
|
-
|
|
22701
|
-
|
|
22702
|
-
|
|
22700
|
+
XO as errorRateColors,
|
|
22701
|
+
JO as handleQueryError,
|
|
22702
|
+
GO as latencyColors,
|
|
22703
22703
|
Yd as lightGrey,
|
|
22704
|
-
|
|
22704
|
+
ZO as lookupColor,
|
|
22705
22705
|
$l as lookupDatavisColor,
|
|
22706
|
-
|
|
22706
|
+
QO as lookupStatusCodeCategoryColor,
|
|
22707
22707
|
_g as lookupStatusCodeColor,
|
|
22708
|
-
|
|
22709
|
-
|
|
22710
|
-
|
|
22708
|
+
tP as simpleChartMetricDisplay,
|
|
22709
|
+
nP as simpleChartTypes,
|
|
22710
|
+
VO as statusCodeBadgeBackgroundColor,
|
|
22711
22711
|
sl as thresholdColor,
|
|
22712
|
-
|
|
22712
|
+
qO as trafficColors
|
|
22713
22713
|
};
|