@kong-ui-public/analytics-utilities 11.5.1-pr.2565.51a29ad06.0 → 11.5.1-pr.2565.9583ce32f.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/dashboardSchema.v2.d.ts +15 -15
- package/dist/types/timeframes.d.ts.map +1 -1
- package/dist/types/types/explore/common.d.ts +1 -1
- package/dist/types/types/timeframe-keys.d.ts +1 -1
- package/dist/types/types/timeframe-keys.d.ts.map +1 -1
- package/dist/vitals-utilities.cjs +1 -1
- package/dist/vitals-utilities.cjs.map +1 -1
- package/dist/vitals-utilities.es.js +109 -104
- package/dist/vitals-utilities.es.js.map +1 -1
- package/dist/vitals-utilities.umd.js +1 -1
- package/dist/vitals-utilities.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var Vr = Object.defineProperty;
|
|
|
2
2
|
var Xr = (e, t, n) => t in e ? Vr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var T = (e, t, n) => Xr(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
const Eo = 3e4, No = 250, Io = "analytics-query-provider";
|
|
5
|
-
var m = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.
|
|
5
|
+
var m = /* @__PURE__ */ ((e) => (e.FIFTEEN_MIN = "15m", e.ONE_HOUR = "1h", e.SIX_HOUR = "6h", e.TWELVE_HOUR = "12h", e.ONE_DAY = "24h", e.SEVEN_DAY = "7d", e.THIRTY_DAY = "30d", e.NINETY_DAY = "90d", e.ONE_HUNDRED_EIGHTY_DAY = "180d", e.ONE_YEAR = "365d", e.CURRENT_WEEK = "current_week", e.CURRENT_MONTH = "current_month", e.CURRENT_QUARTER = "current_quarter", e.CURRENT_YEAR = "current_year", e.PREVIOUS_WEEK = "previous_week", e.PREVIOUS_MONTH = "previous_month", e.PREVIOUS_QUARTER = "previous_quarter", e.PREVIOUS_YEAR = "previous_year", e))(m || {});
|
|
6
6
|
const xo = [
|
|
7
7
|
"horizontal_bar",
|
|
8
8
|
"vertical_bar",
|
|
@@ -11,7 +11,7 @@ const xo = [
|
|
|
11
11
|
"timeseries_bar",
|
|
12
12
|
"donut",
|
|
13
13
|
"single_value"
|
|
14
|
-
], $r = ["in", "not_in", "selector"],
|
|
14
|
+
], $r = ["in", "not_in", "selector"], Ro = ["=", "!="], Po = ["=", "!=", "<", ">", "<=", ">="], Zr = ["empty", "not_empty"], Co = ["starts_with", "ends_with"], Yo = ["absolute", "relative"], Qr = [
|
|
15
15
|
"15m",
|
|
16
16
|
"1h",
|
|
17
17
|
"6h",
|
|
@@ -25,7 +25,7 @@ const xo = [
|
|
|
25
25
|
"previous_month",
|
|
26
26
|
"90d",
|
|
27
27
|
"180d",
|
|
28
|
-
"
|
|
28
|
+
"365d",
|
|
29
29
|
"current_year",
|
|
30
30
|
"previous_year"
|
|
31
31
|
], nn = [
|
|
@@ -181,14 +181,14 @@ const xo = [
|
|
|
181
181
|
"response_header_content_length",
|
|
182
182
|
"status_code",
|
|
183
183
|
"upstream_status_code"
|
|
184
|
-
], aa = oe(ra),
|
|
184
|
+
], aa = oe(ra), Ao = [
|
|
185
185
|
"15M",
|
|
186
186
|
"1H",
|
|
187
187
|
"6H",
|
|
188
188
|
"12H",
|
|
189
189
|
"24H",
|
|
190
190
|
"7D"
|
|
191
|
-
],
|
|
191
|
+
], ko = ["basic", "api_usage", "llm_usage"], ia = {
|
|
192
192
|
basic: new Set(Me),
|
|
193
193
|
api_usage: new Set(Se),
|
|
194
194
|
llm_usage: new Set(Oe)
|
|
@@ -950,20 +950,20 @@ const xo = [
|
|
|
950
950
|
const t = [];
|
|
951
951
|
return Me.includes(e) && t.push("basic"), Se.includes(e) && t.push("api_usage"), Oe.includes(e) && t.push("llm_usage"), (ta.includes(e) || aa.includes(e)) && t.push("requests"), t;
|
|
952
952
|
}, ln = 6048e5, Oa = 864e5, va = 60, Ea = 3600, Yt = Symbol.for("constructDateFrom");
|
|
953
|
-
function
|
|
953
|
+
function P(e, t) {
|
|
954
954
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && Yt in e ? e[Yt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
955
955
|
}
|
|
956
956
|
function S(e, t) {
|
|
957
|
-
return
|
|
957
|
+
return P(t || e, e);
|
|
958
958
|
}
|
|
959
959
|
function Fe(e, t, n) {
|
|
960
960
|
const r = S(e, n == null ? void 0 : n.in);
|
|
961
|
-
return isNaN(t) ?
|
|
961
|
+
return isNaN(t) ? P(e, NaN) : (r.setDate(r.getDate() + t), r);
|
|
962
962
|
}
|
|
963
963
|
function Na(e, t, n) {
|
|
964
964
|
const r = S(e, n == null ? void 0 : n.in);
|
|
965
|
-
if (isNaN(t)) return
|
|
966
|
-
const i = r.getDate(), s =
|
|
965
|
+
if (isNaN(t)) return P(e, NaN);
|
|
966
|
+
const i = r.getDate(), s = P(e, r.getTime());
|
|
967
967
|
s.setMonth(r.getMonth() + t + 1, 0);
|
|
968
968
|
const c = s.getDate();
|
|
969
969
|
return i >= c ? s : (r.setFullYear(
|
|
@@ -976,18 +976,18 @@ let Ia = {};
|
|
|
976
976
|
function ue() {
|
|
977
977
|
return Ia;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function k(e, t) {
|
|
980
980
|
var d, h, f, _;
|
|
981
981
|
const n = ue(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? n.weekStartsOn ?? ((_ = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : _.weekStartsOn) ?? 0, i = S(e, t == null ? void 0 : t.in), s = i.getDay(), c = (s < r ? 7 : 0) + s - r;
|
|
982
982
|
return i.setDate(i.getDate() - c), i.setHours(0, 0, 0, 0), i;
|
|
983
983
|
}
|
|
984
984
|
function _e(e, t) {
|
|
985
|
-
return
|
|
985
|
+
return k(e, { ...t, weekStartsOn: 1 });
|
|
986
986
|
}
|
|
987
987
|
function dn(e, t) {
|
|
988
|
-
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i =
|
|
988
|
+
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = P(n, 0);
|
|
989
989
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
990
|
-
const s = _e(i), c =
|
|
990
|
+
const s = _e(i), c = P(n, 0);
|
|
991
991
|
c.setFullYear(r, 0, 4), c.setHours(0, 0, 0, 0);
|
|
992
992
|
const d = _e(c);
|
|
993
993
|
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= d.getTime() ? r : r - 1;
|
|
@@ -1007,7 +1007,7 @@ function Gt(e) {
|
|
|
1007
1007
|
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
1008
1008
|
}
|
|
1009
1009
|
function xa(e, ...t) {
|
|
1010
|
-
const n =
|
|
1010
|
+
const n = P.bind(
|
|
1011
1011
|
null,
|
|
1012
1012
|
t.find((r) => typeof r == "object")
|
|
1013
1013
|
);
|
|
@@ -1017,7 +1017,7 @@ function ie(e, t) {
|
|
|
1017
1017
|
const n = S(e, t == null ? void 0 : t.in);
|
|
1018
1018
|
return n.setHours(0, 0, 0, 0), n;
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Ra(e, t, n) {
|
|
1021
1021
|
const [r, i] = xa(
|
|
1022
1022
|
n == null ? void 0 : n.in,
|
|
1023
1023
|
e,
|
|
@@ -1025,8 +1025,8 @@ function Pa(e, t, n) {
|
|
|
1025
1025
|
), s = ie(r), c = ie(i), d = +s - Gt(s), h = +c - Gt(c);
|
|
1026
1026
|
return Math.round((d - h) / Oa);
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1029
|
-
const n = dn(e, t), r =
|
|
1028
|
+
function Pa(e, t) {
|
|
1029
|
+
const n = dn(e, t), r = P(e, 0);
|
|
1030
1030
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), _e(r);
|
|
1031
1031
|
}
|
|
1032
1032
|
function Ca(e) {
|
|
@@ -1043,7 +1043,7 @@ function Ga(e, t) {
|
|
|
1043
1043
|
const n = S(e, t == null ? void 0 : t.in);
|
|
1044
1044
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
1045
1045
|
}
|
|
1046
|
-
const
|
|
1046
|
+
const Aa = {
|
|
1047
1047
|
lessThanXSeconds: {
|
|
1048
1048
|
one: "less than a second",
|
|
1049
1049
|
other: "less than {{count}} seconds"
|
|
@@ -1105,9 +1105,9 @@ const ka = {
|
|
|
1105
1105
|
one: "almost 1 year",
|
|
1106
1106
|
other: "almost {{count}} years"
|
|
1107
1107
|
}
|
|
1108
|
-
},
|
|
1108
|
+
}, ka = (e, t, n) => {
|
|
1109
1109
|
let r;
|
|
1110
|
-
const i =
|
|
1110
|
+
const i = Aa[e];
|
|
1111
1111
|
return typeof i == "string" ? r = i : t === 1 ? r = i.one : r = i.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
1112
1112
|
};
|
|
1113
1113
|
function Le(e) {
|
|
@@ -1464,7 +1464,7 @@ const ti = /^(\d+)(th|st|nd|rd)?/i, ni = /\d+/i, ri = {
|
|
|
1464
1464
|
})
|
|
1465
1465
|
}, hi = {
|
|
1466
1466
|
code: "en-US",
|
|
1467
|
-
formatDistance:
|
|
1467
|
+
formatDistance: ka,
|
|
1468
1468
|
formatLong: Ua,
|
|
1469
1469
|
formatRelative: qa,
|
|
1470
1470
|
localize: Qa,
|
|
@@ -1476,28 +1476,28 @@ const ti = /^(\d+)(th|st|nd|rd)?/i, ni = /\d+/i, ri = {
|
|
|
1476
1476
|
};
|
|
1477
1477
|
function yi(e, t) {
|
|
1478
1478
|
const n = S(e, t == null ? void 0 : t.in);
|
|
1479
|
-
return
|
|
1479
|
+
return Ra(n, Ga(n)) + 1;
|
|
1480
1480
|
}
|
|
1481
1481
|
function gi(e, t) {
|
|
1482
|
-
const n = S(e, t == null ? void 0 : t.in), r = +_e(n) - +
|
|
1482
|
+
const n = S(e, t == null ? void 0 : t.in), r = +_e(n) - +Pa(n);
|
|
1483
1483
|
return Math.round(r / ln) + 1;
|
|
1484
1484
|
}
|
|
1485
1485
|
function mn(e, t) {
|
|
1486
1486
|
var _, y, g, I;
|
|
1487
|
-
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ue(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((I = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, c =
|
|
1487
|
+
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = ue(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((y = (_ = t == null ? void 0 : t.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((I = (g = i.locale) == null ? void 0 : g.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, c = P((t == null ? void 0 : t.in) || e, 0);
|
|
1488
1488
|
c.setFullYear(r + 1, 0, s), c.setHours(0, 0, 0, 0);
|
|
1489
|
-
const d =
|
|
1489
|
+
const d = k(c, t), h = P((t == null ? void 0 : t.in) || e, 0);
|
|
1490
1490
|
h.setFullYear(r, 0, s), h.setHours(0, 0, 0, 0);
|
|
1491
|
-
const f =
|
|
1491
|
+
const f = k(h, t);
|
|
1492
1492
|
return +n >= +d ? r + 1 : +n >= +f ? r : r - 1;
|
|
1493
1493
|
}
|
|
1494
1494
|
function pi(e, t) {
|
|
1495
1495
|
var d, h, f, _;
|
|
1496
|
-
const n = ue(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = mn(e, t), s =
|
|
1497
|
-
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0),
|
|
1496
|
+
const n = ue(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((_ = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, i = mn(e, t), s = P((t == null ? void 0 : t.in) || e, 0);
|
|
1497
|
+
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0), k(s, t);
|
|
1498
1498
|
}
|
|
1499
1499
|
function _i(e, t) {
|
|
1500
|
-
const n = S(e, t == null ? void 0 : t.in), r = +
|
|
1500
|
+
const n = S(e, t == null ? void 0 : t.in), r = +k(n, t) - +pi(n, t);
|
|
1501
1501
|
return Math.round(r / ln) + 1;
|
|
1502
1502
|
}
|
|
1503
1503
|
function p(e, t) {
|
|
@@ -1565,7 +1565,7 @@ const L = {
|
|
|
1565
1565
|
afternoon: "afternoon",
|
|
1566
1566
|
evening: "evening",
|
|
1567
1567
|
night: "night"
|
|
1568
|
-
},
|
|
1568
|
+
}, At = {
|
|
1569
1569
|
// Era
|
|
1570
1570
|
G: function(e, t, n) {
|
|
1571
1571
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -2023,7 +2023,7 @@ const L = {
|
|
|
2023
2023
|
case "O":
|
|
2024
2024
|
case "OO":
|
|
2025
2025
|
case "OOO":
|
|
2026
|
-
return "GMT" +
|
|
2026
|
+
return "GMT" + kt(r, ":");
|
|
2027
2027
|
case "OOOO":
|
|
2028
2028
|
default:
|
|
2029
2029
|
return "GMT" + V(r, ":");
|
|
@@ -2036,7 +2036,7 @@ const L = {
|
|
|
2036
2036
|
case "z":
|
|
2037
2037
|
case "zz":
|
|
2038
2038
|
case "zzz":
|
|
2039
|
-
return "GMT" +
|
|
2039
|
+
return "GMT" + kt(r, ":");
|
|
2040
2040
|
case "zzzz":
|
|
2041
2041
|
default:
|
|
2042
2042
|
return "GMT" + V(r, ":");
|
|
@@ -2052,7 +2052,7 @@ const L = {
|
|
|
2052
2052
|
return p(+e, t.length);
|
|
2053
2053
|
}
|
|
2054
2054
|
};
|
|
2055
|
-
function
|
|
2055
|
+
function kt(e, t = "") {
|
|
2056
2056
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), s = r % 60;
|
|
2057
2057
|
return s === 0 ? n + String(i) : n + String(i) + t + p(s, 2);
|
|
2058
2058
|
}
|
|
@@ -2126,10 +2126,10 @@ function Ei(e, t, n) {
|
|
|
2126
2126
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
2127
2127
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
2128
2128
|
}
|
|
2129
|
-
const Ni = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ii = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/,
|
|
2129
|
+
const Ni = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ii = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, xi = /^'([^]*?)'?$/, Ri = /''/g, Pi = /[a-zA-Z]/;
|
|
2130
2130
|
function hn(e, t, n) {
|
|
2131
|
-
var _, y, g, I, x,
|
|
2132
|
-
const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? hi, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((
|
|
2131
|
+
var _, y, g, I, x, R, C, W;
|
|
2132
|
+
const r = ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? hi, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((y = (_ = n == null ? void 0 : n.locale) == null ? void 0 : _.options) == null ? void 0 : y.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((I = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : I.firstWeekContainsDate) ?? 1, c = (n == null ? void 0 : n.weekStartsOn) ?? ((R = (x = n == null ? void 0 : n.locale) == null ? void 0 : x.options) == null ? void 0 : R.weekStartsOn) ?? r.weekStartsOn ?? ((W = (C = r.locale) == null ? void 0 : C.options) == null ? void 0 : W.weekStartsOn) ?? 0, d = S(e, n == null ? void 0 : n.in);
|
|
2133
2133
|
if (!Ya(d))
|
|
2134
2134
|
throw new RangeError("Invalid time value");
|
|
2135
2135
|
let h = t.match(Ii).map((O) => {
|
|
@@ -2145,9 +2145,9 @@ function hn(e, t, n) {
|
|
|
2145
2145
|
const b = O[0];
|
|
2146
2146
|
if (b === "'")
|
|
2147
2147
|
return { isToken: !1, value: Ci(O) };
|
|
2148
|
-
if (
|
|
2148
|
+
if (At[b])
|
|
2149
2149
|
return { isToken: !0, value: O };
|
|
2150
|
-
if (b.match(
|
|
2150
|
+
if (b.match(Pi))
|
|
2151
2151
|
throw new RangeError(
|
|
2152
2152
|
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
2153
2153
|
);
|
|
@@ -2163,16 +2163,16 @@ function hn(e, t, n) {
|
|
|
2163
2163
|
if (!O.isToken) return O.value;
|
|
2164
2164
|
const b = O.value;
|
|
2165
2165
|
(!(n != null && n.useAdditionalWeekYearTokens) && Oi(b) || !(n != null && n.useAdditionalDayOfYearTokens) && Si(b)) && vi(b, t, String(e));
|
|
2166
|
-
const q =
|
|
2166
|
+
const q = At[b[0]];
|
|
2167
2167
|
return q(d, b, i.localize, f);
|
|
2168
2168
|
}).join("");
|
|
2169
2169
|
}
|
|
2170
2170
|
function Ci(e) {
|
|
2171
2171
|
const t = e.match(xi);
|
|
2172
|
-
return t ? t[1].replace(
|
|
2172
|
+
return t ? t[1].replace(Ri, "'") : e;
|
|
2173
2173
|
}
|
|
2174
2174
|
function Yi(e, t) {
|
|
2175
|
-
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), s =
|
|
2175
|
+
const n = S(e, t == null ? void 0 : t.in), r = n.getFullYear(), i = n.getMonth(), s = P(n, 0);
|
|
2176
2176
|
return s.setFullYear(r, i + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
2177
2177
|
}
|
|
2178
2178
|
function Gi() {
|
|
@@ -2187,7 +2187,7 @@ function Ut(e) {
|
|
|
2187
2187
|
function Wt(e) {
|
|
2188
2188
|
return Math.trunc(e * Ea);
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2190
|
+
function Ai(e) {
|
|
2191
2191
|
const t = e / va;
|
|
2192
2192
|
return Math.trunc(t);
|
|
2193
2193
|
}
|
|
@@ -2196,9 +2196,9 @@ function yn(e, t, n) {
|
|
|
2196
2196
|
}
|
|
2197
2197
|
function qt(e, t, n) {
|
|
2198
2198
|
const r = Gi(), i = Fi(e, n.timeZone, n.locale ?? r.locale);
|
|
2199
|
-
return "formatToParts" in i ?
|
|
2199
|
+
return "formatToParts" in i ? ki(i, t) : Hi(i, t);
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function ki(e, t) {
|
|
2202
2202
|
const n = e.formatToParts(t);
|
|
2203
2203
|
for (let r = n.length - 1; r >= 0; --r)
|
|
2204
2204
|
if (n[r].type === "timeZoneName")
|
|
@@ -2783,16 +2783,16 @@ function yo(e) {
|
|
|
2783
2783
|
var De = { exports: {} };
|
|
2784
2784
|
De.exports;
|
|
2785
2785
|
(function(e, t) {
|
|
2786
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", I = "[object Number]", x = "[object Object]",
|
|
2786
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 9007199254740991, s = "[object Arguments]", c = "[object Array]", d = "[object Boolean]", h = "[object Date]", f = "[object Error]", _ = "[object Function]", y = "[object GeneratorFunction]", g = "[object Map]", I = "[object Number]", x = "[object Object]", R = "[object Promise]", C = "[object RegExp]", W = "[object Set]", O = "[object String]", b = "[object Symbol]", q = "[object WeakMap]", Je = "[object ArrayBuffer]", le = "[object DataView]", et = "[object Float32Array]", tt = "[object Float64Array]", nt = "[object Int8Array]", rt = "[object Int16Array]", at = "[object Int32Array]", it = "[object Uint8Array]", ot = "[object Uint8ClampedArray]", st = "[object Uint16Array]", ut = "[object Uint32Array]", Mn = /[\\^$.*+?()[\]{}|]/g, Sn = /\w*$/, On = /^\[object .+?Constructor\]$/, vn = /^(?:0|[1-9]\d*)$/, w = {};
|
|
2787
2787
|
w[s] = w[c] = w[Je] = w[le] = w[d] = w[h] = w[et] = w[tt] = w[nt] = w[rt] = w[at] = w[g] = w[I] = w[x] = w[C] = w[W] = w[O] = w[b] = w[it] = w[ot] = w[st] = w[ut] = !0, w[f] = w[_] = w[q] = !1;
|
|
2788
2788
|
var En = typeof pe == "object" && pe && pe.Object === Object && pe, Nn = typeof self == "object" && self && self.Object === Object && self, Y = En || Nn || Function("return this")(), ct = t && !t.nodeType && t, lt = ct && !0 && e && !e.nodeType && e, In = lt && lt.exports === ct;
|
|
2789
2789
|
function xn(a, o) {
|
|
2790
2790
|
return a.set(o[0], o[1]), a;
|
|
2791
2791
|
}
|
|
2792
|
-
function
|
|
2792
|
+
function Rn(a, o) {
|
|
2793
2793
|
return a.add(o), a;
|
|
2794
2794
|
}
|
|
2795
|
-
function
|
|
2795
|
+
function Pn(a, o) {
|
|
2796
2796
|
for (var u = -1, l = a ? a.length : 0; ++u < l && o(a[u], u, a) !== !1; )
|
|
2797
2797
|
;
|
|
2798
2798
|
return a;
|
|
@@ -2841,12 +2841,12 @@ De.exports;
|
|
|
2841
2841
|
u[++o] = l;
|
|
2842
2842
|
}), u;
|
|
2843
2843
|
}
|
|
2844
|
-
var
|
|
2844
|
+
var An = Array.prototype, kn = Function.prototype, de = Object.prototype, Ie = Y["__core-js_shared__"], yt = function() {
|
|
2845
2845
|
var a = /[^.]+$/.exec(Ie && Ie.keys && Ie.keys.IE_PROTO || "");
|
|
2846
2846
|
return a ? "Symbol(src)_1." + a : "";
|
|
2847
|
-
}(), gt =
|
|
2847
|
+
}(), gt = kn.toString, F = de.hasOwnProperty, me = de.toString, Hn = RegExp(
|
|
2848
2848
|
"^" + gt.call(F).replace(Mn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
2849
|
-
), pt = In ? Y.Buffer : void 0, _t = Y.Symbol, wt = Y.Uint8Array, Fn = Ne(Object.getPrototypeOf, Object), Ln = Object.create, Un = de.propertyIsEnumerable, Wn =
|
|
2849
|
+
), pt = In ? Y.Buffer : void 0, _t = Y.Symbol, wt = Y.Uint8Array, Fn = Ne(Object.getPrototypeOf, Object), Ln = Object.create, Un = de.propertyIsEnumerable, Wn = An.splice, Tt = Object.getOwnPropertySymbols, qn = pt ? pt.isBuffer : void 0, jn = Ne(Object.keys, Object), xe = Z(Y, "DataView"), te = Z(Y, "Map"), Re = Z(Y, "Promise"), Pe = Z(Y, "Set"), Ce = Z(Y, "WeakMap"), ne = Z(Object, "create"), zn = B(xe), Bn = B(te), Vn = B(Re), Xn = B(Pe), $n = B(Ce), bt = _t ? _t.prototype : void 0, Dt = bt ? bt.valueOf : void 0;
|
|
2850
2850
|
function j(a) {
|
|
2851
2851
|
var o = -1, u = a ? a.length : 0;
|
|
2852
2852
|
for (this.clear(); ++o < u; ) {
|
|
@@ -2960,9 +2960,9 @@ De.exports;
|
|
|
2960
2960
|
}
|
|
2961
2961
|
$.prototype.clear = dr, $.prototype.delete = mr, $.prototype.get = fr, $.prototype.has = hr, $.prototype.set = yr;
|
|
2962
2962
|
function gr(a, o) {
|
|
2963
|
-
var u =
|
|
2963
|
+
var u = Ae(a) || Lr(a) ? Yn(a.length, String) : [], l = u.length, D = !!l;
|
|
2964
2964
|
for (var E in a)
|
|
2965
|
-
F.call(a, E) && !(D && (E == "length" ||
|
|
2965
|
+
F.call(a, E) && !(D && (E == "length" || Ar(E, l))) && u.push(E);
|
|
2966
2966
|
return u;
|
|
2967
2967
|
}
|
|
2968
2968
|
function Mt(a, o, u) {
|
|
@@ -2976,41 +2976,41 @@ De.exports;
|
|
|
2976
2976
|
return -1;
|
|
2977
2977
|
}
|
|
2978
2978
|
function pr(a, o) {
|
|
2979
|
-
return a && St(o,
|
|
2979
|
+
return a && St(o, ke(o), a);
|
|
2980
2980
|
}
|
|
2981
|
-
function Ye(a, o, u, l, D, E,
|
|
2981
|
+
function Ye(a, o, u, l, D, E, A) {
|
|
2982
2982
|
var N;
|
|
2983
|
-
if (l && (N = E ? l(a, D, E,
|
|
2983
|
+
if (l && (N = E ? l(a, D, E, A) : l(a)), N !== void 0)
|
|
2984
2984
|
return N;
|
|
2985
2985
|
if (!ye(a))
|
|
2986
2986
|
return a;
|
|
2987
|
-
var xt =
|
|
2987
|
+
var xt = Ae(a);
|
|
2988
2988
|
if (xt) {
|
|
2989
2989
|
if (N = Cr(a), !o)
|
|
2990
2990
|
return xr(a, N);
|
|
2991
2991
|
} else {
|
|
2992
|
-
var Q = z(a),
|
|
2992
|
+
var Q = z(a), Rt = Q == _ || Q == y;
|
|
2993
2993
|
if (Wr(a))
|
|
2994
2994
|
return Mr(a, o);
|
|
2995
|
-
if (Q == x || Q == s ||
|
|
2995
|
+
if (Q == x || Q == s || Rt && !E) {
|
|
2996
2996
|
if (mt(a))
|
|
2997
2997
|
return E ? a : {};
|
|
2998
|
-
if (N = Yr(
|
|
2999
|
-
return
|
|
2998
|
+
if (N = Yr(Rt ? {} : a), !o)
|
|
2999
|
+
return Rr(a, pr(N, a));
|
|
3000
3000
|
} else {
|
|
3001
3001
|
if (!w[Q])
|
|
3002
3002
|
return E ? a : {};
|
|
3003
3003
|
N = Gr(a, Q, Ye, o);
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
|
-
|
|
3007
|
-
var
|
|
3008
|
-
if (
|
|
3009
|
-
return
|
|
3010
|
-
if (
|
|
3011
|
-
var Ct = u ?
|
|
3012
|
-
return
|
|
3013
|
-
Ct && (ge = He, He = a[ge]), Mt(N, ge, Ye(He, o, u, l, ge, a,
|
|
3006
|
+
A || (A = new $());
|
|
3007
|
+
var Pt = A.get(a);
|
|
3008
|
+
if (Pt)
|
|
3009
|
+
return Pt;
|
|
3010
|
+
if (A.set(a, N), !xt)
|
|
3011
|
+
var Ct = u ? Pr(a) : ke(a);
|
|
3012
|
+
return Pn(Ct || a, function(He, ge) {
|
|
3013
|
+
Ct && (ge = He, He = a[ge]), Mt(N, ge, Ye(He, o, u, l, ge, a, A));
|
|
3014
3014
|
}), N;
|
|
3015
3015
|
}
|
|
3016
3016
|
function _r(a) {
|
|
@@ -3018,7 +3018,7 @@ De.exports;
|
|
|
3018
3018
|
}
|
|
3019
3019
|
function wr(a, o, u) {
|
|
3020
3020
|
var l = o(a);
|
|
3021
|
-
return
|
|
3021
|
+
return Ae(a) ? l : Cn(l, u(a));
|
|
3022
3022
|
}
|
|
3023
3023
|
function Tr(a) {
|
|
3024
3024
|
return me.call(a);
|
|
@@ -3061,7 +3061,7 @@ De.exports;
|
|
|
3061
3061
|
}
|
|
3062
3062
|
function Er(a, o, u) {
|
|
3063
3063
|
var l = o ? u(ht(a), !0) : ht(a);
|
|
3064
|
-
return dt(l,
|
|
3064
|
+
return dt(l, Rn, new a.constructor());
|
|
3065
3065
|
}
|
|
3066
3066
|
function Nr(a) {
|
|
3067
3067
|
return Dt ? Object(Dt.call(a)) : {};
|
|
@@ -3079,27 +3079,27 @@ De.exports;
|
|
|
3079
3079
|
function St(a, o, u, l) {
|
|
3080
3080
|
u || (u = {});
|
|
3081
3081
|
for (var D = -1, E = o.length; ++D < E; ) {
|
|
3082
|
-
var
|
|
3083
|
-
Mt(u,
|
|
3082
|
+
var A = o[D], N = void 0;
|
|
3083
|
+
Mt(u, A, N === void 0 ? a[A] : N);
|
|
3084
3084
|
}
|
|
3085
3085
|
return u;
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function Rr(a, o) {
|
|
3088
3088
|
return St(a, Ot(a), o);
|
|
3089
3089
|
}
|
|
3090
|
-
function
|
|
3091
|
-
return wr(a,
|
|
3090
|
+
function Pr(a) {
|
|
3091
|
+
return wr(a, ke, Ot);
|
|
3092
3092
|
}
|
|
3093
3093
|
function he(a, o) {
|
|
3094
3094
|
var u = a.__data__;
|
|
3095
|
-
return
|
|
3095
|
+
return kr(o) ? u[typeof o == "string" ? "string" : "hash"] : u.map;
|
|
3096
3096
|
}
|
|
3097
3097
|
function Z(a, o) {
|
|
3098
3098
|
var u = Gn(a, o);
|
|
3099
3099
|
return br(u) ? u : void 0;
|
|
3100
3100
|
}
|
|
3101
3101
|
var Ot = Tt ? Ne(Tt, Object) : zr, z = Tr;
|
|
3102
|
-
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != g ||
|
|
3102
|
+
(xe && z(new xe(new ArrayBuffer(1))) != le || te && z(new te()) != g || Re && z(Re.resolve()) != R || Pe && z(new Pe()) != W || Ce && z(new Ce()) != q) && (z = function(a) {
|
|
3103
3103
|
var o = me.call(a), u = o == x ? a.constructor : void 0, l = u ? B(u) : void 0;
|
|
3104
3104
|
if (l)
|
|
3105
3105
|
switch (l) {
|
|
@@ -3108,7 +3108,7 @@ De.exports;
|
|
|
3108
3108
|
case Bn:
|
|
3109
3109
|
return g;
|
|
3110
3110
|
case Vn:
|
|
3111
|
-
return
|
|
3111
|
+
return R;
|
|
3112
3112
|
case Xn:
|
|
3113
3113
|
return W;
|
|
3114
3114
|
case $n:
|
|
@@ -3156,10 +3156,10 @@ De.exports;
|
|
|
3156
3156
|
return Nr(a);
|
|
3157
3157
|
}
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function Ar(a, o) {
|
|
3160
3160
|
return o = o ?? i, !!o && (typeof a == "number" || vn.test(a)) && a > -1 && a % 1 == 0 && a < o;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function kr(a) {
|
|
3163
3163
|
var o = typeof a;
|
|
3164
3164
|
return o == "string" || o == "number" || o == "symbol" || o == "boolean" ? a !== "__proto__" : a === null;
|
|
3165
3165
|
}
|
|
@@ -3192,7 +3192,7 @@ De.exports;
|
|
|
3192
3192
|
function Lr(a) {
|
|
3193
3193
|
return Ur(a) && F.call(a, "callee") && (!Un.call(a, "callee") || me.call(a) == s);
|
|
3194
3194
|
}
|
|
3195
|
-
var
|
|
3195
|
+
var Ae = Array.isArray;
|
|
3196
3196
|
function Nt(a) {
|
|
3197
3197
|
return a != null && qr(a.length) && !It(a);
|
|
3198
3198
|
}
|
|
@@ -3214,7 +3214,7 @@ De.exports;
|
|
|
3214
3214
|
function jr(a) {
|
|
3215
3215
|
return !!a && typeof a == "object";
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function ke(a) {
|
|
3218
3218
|
return Nt(a) ? gr(a) : Dr(a);
|
|
3219
3219
|
}
|
|
3220
3220
|
function zr() {
|
|
@@ -3301,7 +3301,7 @@ class M {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
class _o extends M {
|
|
3303
3303
|
rawStart(t) {
|
|
3304
|
-
let n =
|
|
3304
|
+
let n = k(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3305
3305
|
return t && (n = H(n, t)), n;
|
|
3306
3306
|
}
|
|
3307
3307
|
maximumTimeframeLength() {
|
|
@@ -3328,12 +3328,12 @@ class To extends M {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
class bo extends M {
|
|
3330
3330
|
rawEnd(t) {
|
|
3331
|
-
let n =
|
|
3331
|
+
let n = k(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
3332
3332
|
return t && (n = H(n, t)), n;
|
|
3333
3333
|
}
|
|
3334
3334
|
rawStart(t) {
|
|
3335
3335
|
const n = this.tzAdjustedDate(t);
|
|
3336
|
-
let r =
|
|
3336
|
+
let r = k(n.setDate(n.getDate() - 7), {
|
|
3337
3337
|
weekStartsOn: 1
|
|
3338
3338
|
});
|
|
3339
3339
|
return t && (r = H(r, t)), r;
|
|
@@ -3496,12 +3496,12 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3496
3496
|
})
|
|
3497
3497
|
],
|
|
3498
3498
|
[
|
|
3499
|
-
m.
|
|
3499
|
+
m.ONE_YEAR,
|
|
3500
3500
|
new M({
|
|
3501
|
-
key: m.
|
|
3502
|
-
display: "Last
|
|
3503
|
-
timeframeText: "
|
|
3504
|
-
timeframeLength: () => 60 * 60 * 24 *
|
|
3501
|
+
key: m.ONE_YEAR,
|
|
3502
|
+
display: "Last 365 days",
|
|
3503
|
+
timeframeText: "365 days",
|
|
3504
|
+
timeframeLength: () => 60 * 60 * 24 * 365,
|
|
3505
3505
|
defaultResponseGranularity: "daily",
|
|
3506
3506
|
dataGranularity: "daily",
|
|
3507
3507
|
isRelative: !0,
|
|
@@ -3517,7 +3517,7 @@ const So = /* @__PURE__ */ new Map([
|
|
|
3517
3517
|
display: "This week",
|
|
3518
3518
|
timeframeText: "Week",
|
|
3519
3519
|
timeframeLength: () => {
|
|
3520
|
-
const e =
|
|
3520
|
+
const e = k(/* @__PURE__ */ new Date(), { weekStartsOn: 1 });
|
|
3521
3521
|
return (ie(Fe(/* @__PURE__ */ new Date(), 1)).getTime() - e.getTime()) / 1e3;
|
|
3522
3522
|
},
|
|
3523
3523
|
defaultResponseGranularity: "daily",
|
|
@@ -3644,7 +3644,7 @@ function Zo(e) {
|
|
|
3644
3644
|
};
|
|
3645
3645
|
}
|
|
3646
3646
|
function tn(e, t) {
|
|
3647
|
-
return
|
|
3647
|
+
return Ai(e.getTimezoneOffset() - t.getTimezoneOffset());
|
|
3648
3648
|
}
|
|
3649
3649
|
const Qo = {
|
|
3650
3650
|
"15M": m.FIFTEEN_MIN,
|
|
@@ -3660,10 +3660,15 @@ const Qo = {
|
|
|
3660
3660
|
"24h": m.ONE_DAY,
|
|
3661
3661
|
"7d": m.SEVEN_DAY,
|
|
3662
3662
|
"30d": m.THIRTY_DAY,
|
|
3663
|
+
"90d": m.NINETY_DAY,
|
|
3664
|
+
"180d": m.ONE_HUNDRED_EIGHTY_DAY,
|
|
3665
|
+
"365d": m.ONE_YEAR,
|
|
3663
3666
|
current_week: m.CURRENT_WEEK,
|
|
3664
3667
|
current_month: m.CURRENT_MONTH,
|
|
3668
|
+
current_year: m.CURRENT_YEAR,
|
|
3665
3669
|
previous_week: m.PREVIOUS_WEEK,
|
|
3666
|
-
previous_month: m.PREVIOUS_MONTH
|
|
3670
|
+
previous_month: m.PREVIOUS_MONTH,
|
|
3671
|
+
previous_year: m.PREVIOUS_YEAR
|
|
3667
3672
|
};
|
|
3668
3673
|
class Ke {
|
|
3669
3674
|
constructor(t) {
|
|
@@ -3686,12 +3691,12 @@ const Ko = (e, t, n) => {
|
|
|
3686
3691
|
const x = {
|
|
3687
3692
|
[g]: I,
|
|
3688
3693
|
[e.name]: h
|
|
3689
|
-
},
|
|
3694
|
+
}, R = {
|
|
3690
3695
|
version: "1.0",
|
|
3691
3696
|
timestamp: new Date(y).toISOString(),
|
|
3692
3697
|
event: x
|
|
3693
3698
|
};
|
|
3694
|
-
d.push(
|
|
3699
|
+
d.push(R);
|
|
3695
3700
|
});
|
|
3696
3701
|
else {
|
|
3697
3702
|
h += i.next(50, 500);
|
|
@@ -3769,8 +3774,8 @@ const Ko = (e, t, n) => {
|
|
|
3769
3774
|
}, es = (e, t, n) => {
|
|
3770
3775
|
const r = Math.floor(Math.random() * 9991) + 10, i = new Ke(r), s = Date.now() - 6 * 60 * 60 * 1e3, c = Date.now(), d = new Date((s + c) / 2).toISOString(), h = [];
|
|
3771
3776
|
if (t) {
|
|
3772
|
-
const y = Object.keys(t), g = Object.values(t), I = (x,
|
|
3773
|
-
if (
|
|
3777
|
+
const y = Object.keys(t), g = Object.values(t), I = (x, R) => {
|
|
3778
|
+
if (R === y.length) {
|
|
3774
3779
|
e.forEach((C) => {
|
|
3775
3780
|
x[C.name] = i.next(1e3, 5e7);
|
|
3776
3781
|
}), h.push({
|
|
@@ -3780,8 +3785,8 @@ const Ko = (e, t, n) => {
|
|
|
3780
3785
|
});
|
|
3781
3786
|
return;
|
|
3782
3787
|
}
|
|
3783
|
-
g[
|
|
3784
|
-
I({ ...x, [y[
|
|
3788
|
+
g[R].forEach((C) => {
|
|
3789
|
+
I({ ...x, [y[R]]: C }, R + 1);
|
|
3785
3790
|
});
|
|
3786
3791
|
};
|
|
3787
3792
|
I({}, 0);
|
|
@@ -3882,7 +3887,7 @@ export {
|
|
|
3882
3887
|
Ta as llmUsageSchema,
|
|
3883
3888
|
fa as metricCardSchema,
|
|
3884
3889
|
zo as msToGranularity,
|
|
3885
|
-
|
|
3890
|
+
ko as queryDatasources,
|
|
3886
3891
|
on as queryableAiExploreDimensions,
|
|
3887
3892
|
Ve as queryableBasicExploreDimensions,
|
|
3888
3893
|
an as queryableExploreDimensions,
|
|
@@ -3890,12 +3895,12 @@ export {
|
|
|
3890
3895
|
ra as queryableRequestMetrics,
|
|
3891
3896
|
na as queryableRequestWildcardDimensions,
|
|
3892
3897
|
Dn as rand,
|
|
3893
|
-
|
|
3898
|
+
Ao as relativeTimeRangeValuesRequestV2,
|
|
3894
3899
|
Qr as relativeTimeRangeValuesV4,
|
|
3895
3900
|
xo as reportChartTypes,
|
|
3896
3901
|
Zr as requestFilterTypeEmptyV2,
|
|
3897
|
-
|
|
3898
|
-
|
|
3902
|
+
Ro as requestFilterTypeEqualsV2,
|
|
3903
|
+
Po as requestFilterTypeMetricV2,
|
|
3899
3904
|
Co as requestFilterTypeWildcardV2,
|
|
3900
3905
|
ha as singleValueSchema,
|
|
3901
3906
|
oa as slottableSchema,
|