@kong-ui-public/analytics-chart 10.14.8 → 10.14.9
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 +762 -730
- package/dist/vitals-chart.umd.js +6 -6
- package/package.json +3 -3
package/dist/vitals-chart.es.js
CHANGED
|
@@ -12572,7 +12572,13 @@ const Qw = ["in", "not_in", "selector"], Jw = ["empty", "not_empty"], t1 = [
|
|
|
12572
12572
|
"status_code",
|
|
12573
12573
|
"status_code_grouped",
|
|
12574
12574
|
"time"
|
|
12575
|
-
], ig = us(ng),
|
|
12575
|
+
], ig = us(ng), e1 = [
|
|
12576
|
+
"active_services",
|
|
12577
|
+
"error_rate",
|
|
12578
|
+
"request_count",
|
|
12579
|
+
"request_per_minute",
|
|
12580
|
+
"response_latency_average"
|
|
12581
|
+
], sg = [
|
|
12576
12582
|
...ng,
|
|
12577
12583
|
"application",
|
|
12578
12584
|
"consumer",
|
|
@@ -12583,7 +12589,30 @@ const Qw = ["in", "not_in", "selector"], Jw = ["empty", "not_empty"], t1 = [
|
|
|
12583
12589
|
"data_plane_node_version",
|
|
12584
12590
|
"realm",
|
|
12585
12591
|
"portal_api"
|
|
12586
|
-
], rg = us(sg),
|
|
12592
|
+
], rg = us(sg), n1 = [
|
|
12593
|
+
...e1,
|
|
12594
|
+
"response_latency_p99",
|
|
12595
|
+
"response_latency_p95",
|
|
12596
|
+
"response_latency_p50",
|
|
12597
|
+
"upstream_latency_p99",
|
|
12598
|
+
"upstream_latency_p95",
|
|
12599
|
+
"upstream_latency_p50",
|
|
12600
|
+
"upstream_latency_average",
|
|
12601
|
+
"kong_latency_p99",
|
|
12602
|
+
"kong_latency_p95",
|
|
12603
|
+
"kong_latency_p50",
|
|
12604
|
+
"kong_latency_average",
|
|
12605
|
+
"response_size_p99",
|
|
12606
|
+
"response_size_p95",
|
|
12607
|
+
"response_size_p50",
|
|
12608
|
+
"response_size_average",
|
|
12609
|
+
"response_size_sum",
|
|
12610
|
+
"request_size_p99",
|
|
12611
|
+
"request_size_p95",
|
|
12612
|
+
"request_size_p50",
|
|
12613
|
+
"request_size_average",
|
|
12614
|
+
"request_size_sum"
|
|
12615
|
+
], i1 = [
|
|
12587
12616
|
"control_plane",
|
|
12588
12617
|
"control_plane_group",
|
|
12589
12618
|
"gateway_service",
|
|
@@ -12601,7 +12630,7 @@ const Qw = ["in", "not_in", "selector"], Jw = ["empty", "not_empty"], t1 = [
|
|
|
12601
12630
|
"status_code",
|
|
12602
12631
|
"status_code_grouped",
|
|
12603
12632
|
"ai_plugin"
|
|
12604
|
-
], ag = us(
|
|
12633
|
+
], ag = us(i1), s1 = [
|
|
12605
12634
|
"api",
|
|
12606
12635
|
"api_package",
|
|
12607
12636
|
"api_product",
|
|
@@ -12641,8 +12670,8 @@ const Qw = ["in", "not_in", "selector"], Jw = ["empty", "not_empty"], t1 = [
|
|
|
12641
12670
|
"upstream_status_code_grouped",
|
|
12642
12671
|
"websocket"
|
|
12643
12672
|
];
|
|
12644
|
-
us(
|
|
12645
|
-
const
|
|
12673
|
+
us(s1);
|
|
12674
|
+
const r1 = [
|
|
12646
12675
|
"ai_count",
|
|
12647
12676
|
"latencies_response_ms",
|
|
12648
12677
|
"latencies_upstream_ms",
|
|
@@ -12653,14 +12682,17 @@ const i1 = [
|
|
|
12653
12682
|
"status_code",
|
|
12654
12683
|
"upstream_status_code"
|
|
12655
12684
|
];
|
|
12656
|
-
us(
|
|
12657
|
-
const
|
|
12685
|
+
us(r1);
|
|
12686
|
+
const a1 = [
|
|
12658
12687
|
...sg,
|
|
12659
12688
|
"mcp_session_id",
|
|
12660
12689
|
"mcp_method",
|
|
12661
12690
|
"mcp_tool_name",
|
|
12662
12691
|
"mcp_error"
|
|
12663
|
-
], og = us(
|
|
12692
|
+
], og = us(a1);
|
|
12693
|
+
[
|
|
12694
|
+
...n1
|
|
12695
|
+
];
|
|
12664
12696
|
new Set(ig), new Set(rg), new Set(ag), new Set(og);
|
|
12665
12697
|
const lg = [
|
|
12666
12698
|
{ code: "AF", name: "Afghanistan" },
|
|
@@ -12911,7 +12943,7 @@ const lg = [
|
|
|
12911
12943
|
{ code: "ZW", name: "Zimbabwe" }
|
|
12912
12944
|
];
|
|
12913
12945
|
lg.map((n) => n.code);
|
|
12914
|
-
const
|
|
12946
|
+
const o1 = (n) => ({
|
|
12915
12947
|
type: "array",
|
|
12916
12948
|
description: "A list of filters to apply to the query",
|
|
12917
12949
|
items: {
|
|
@@ -12922,7 +12954,7 @@ const r1 = (n) => ({
|
|
|
12922
12954
|
properties: {
|
|
12923
12955
|
field: {
|
|
12924
12956
|
type: "string",
|
|
12925
|
-
enum: n
|
|
12957
|
+
...n ? { enum: n } : {}
|
|
12926
12958
|
},
|
|
12927
12959
|
operator: {
|
|
12928
12960
|
type: "string",
|
|
@@ -12948,7 +12980,7 @@ const r1 = (n) => ({
|
|
|
12948
12980
|
properties: {
|
|
12949
12981
|
field: {
|
|
12950
12982
|
type: "string",
|
|
12951
|
-
enum: n
|
|
12983
|
+
...n ? { enum: n } : {}
|
|
12952
12984
|
},
|
|
12953
12985
|
operator: {
|
|
12954
12986
|
type: "string",
|
|
@@ -12964,7 +12996,7 @@ const r1 = (n) => ({
|
|
|
12964
12996
|
]
|
|
12965
12997
|
}
|
|
12966
12998
|
});
|
|
12967
|
-
|
|
12999
|
+
o1([
|
|
12968
13000
|
.../* @__PURE__ */ new Set([
|
|
12969
13001
|
...rg,
|
|
12970
13002
|
...ig,
|
|
@@ -12972,7 +13004,7 @@ r1([
|
|
|
12972
13004
|
...og
|
|
12973
13005
|
])
|
|
12974
13006
|
]);
|
|
12975
|
-
const
|
|
13007
|
+
const l1 = {
|
|
12976
13008
|
lessThanXSeconds: {
|
|
12977
13009
|
one: "less than a second",
|
|
12978
13010
|
other: "less than {{count}} seconds"
|
|
@@ -13034,9 +13066,9 @@ const a1 = {
|
|
|
13034
13066
|
one: "almost 1 year",
|
|
13035
13067
|
other: "almost {{count}} years"
|
|
13036
13068
|
}
|
|
13037
|
-
},
|
|
13069
|
+
}, c1 = (n, t, e) => {
|
|
13038
13070
|
let i;
|
|
13039
|
-
const s =
|
|
13071
|
+
const s = l1[n];
|
|
13040
13072
|
return typeof s == "string" ? i = s : t === 1 ? i = s.one : i = s.other.replace("{{count}}", t.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
13041
13073
|
};
|
|
13042
13074
|
function Qo(n) {
|
|
@@ -13045,42 +13077,42 @@ function Qo(n) {
|
|
|
13045
13077
|
return n.formats[e] || n.formats[n.defaultWidth];
|
|
13046
13078
|
};
|
|
13047
13079
|
}
|
|
13048
|
-
const
|
|
13080
|
+
const u1 = {
|
|
13049
13081
|
full: "EEEE, MMMM do, y",
|
|
13050
13082
|
long: "MMMM do, y",
|
|
13051
13083
|
medium: "MMM d, y",
|
|
13052
13084
|
short: "MM/dd/yyyy"
|
|
13053
|
-
},
|
|
13085
|
+
}, d1 = {
|
|
13054
13086
|
full: "h:mm:ss a zzzz",
|
|
13055
13087
|
long: "h:mm:ss a z",
|
|
13056
13088
|
medium: "h:mm:ss a",
|
|
13057
13089
|
short: "h:mm a"
|
|
13058
|
-
},
|
|
13090
|
+
}, h1 = {
|
|
13059
13091
|
full: "{{date}} 'at' {{time}}",
|
|
13060
13092
|
long: "{{date}} 'at' {{time}}",
|
|
13061
13093
|
medium: "{{date}}, {{time}}",
|
|
13062
13094
|
short: "{{date}}, {{time}}"
|
|
13063
|
-
},
|
|
13095
|
+
}, f1 = {
|
|
13064
13096
|
date: Qo({
|
|
13065
|
-
formats:
|
|
13097
|
+
formats: u1,
|
|
13066
13098
|
defaultWidth: "full"
|
|
13067
13099
|
}),
|
|
13068
13100
|
time: Qo({
|
|
13069
|
-
formats:
|
|
13101
|
+
formats: d1,
|
|
13070
13102
|
defaultWidth: "full"
|
|
13071
13103
|
}),
|
|
13072
13104
|
dateTime: Qo({
|
|
13073
|
-
formats:
|
|
13105
|
+
formats: h1,
|
|
13074
13106
|
defaultWidth: "full"
|
|
13075
13107
|
})
|
|
13076
|
-
},
|
|
13108
|
+
}, g1 = {
|
|
13077
13109
|
lastWeek: "'last' eeee 'at' p",
|
|
13078
13110
|
yesterday: "'yesterday at' p",
|
|
13079
13111
|
today: "'today at' p",
|
|
13080
13112
|
tomorrow: "'tomorrow at' p",
|
|
13081
13113
|
nextWeek: "eeee 'at' p",
|
|
13082
13114
|
other: "P"
|
|
13083
|
-
},
|
|
13115
|
+
}, m1 = (n, t, e, i) => g1[n];
|
|
13084
13116
|
function Is(n) {
|
|
13085
13117
|
return (t, e) => {
|
|
13086
13118
|
const i = e != null && e.context ? String(e.context) : "standalone";
|
|
@@ -13096,15 +13128,15 @@ function Is(n) {
|
|
|
13096
13128
|
return s[r];
|
|
13097
13129
|
};
|
|
13098
13130
|
}
|
|
13099
|
-
const
|
|
13131
|
+
const p1 = {
|
|
13100
13132
|
narrow: ["B", "A"],
|
|
13101
13133
|
abbreviated: ["BC", "AD"],
|
|
13102
13134
|
wide: ["Before Christ", "Anno Domini"]
|
|
13103
|
-
},
|
|
13135
|
+
}, y1 = {
|
|
13104
13136
|
narrow: ["1", "2", "3", "4"],
|
|
13105
13137
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
13106
13138
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
13107
|
-
},
|
|
13139
|
+
}, b1 = {
|
|
13108
13140
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
13109
13141
|
abbreviated: [
|
|
13110
13142
|
"Jan",
|
|
@@ -13134,7 +13166,7 @@ const g1 = {
|
|
|
13134
13166
|
"November",
|
|
13135
13167
|
"December"
|
|
13136
13168
|
]
|
|
13137
|
-
},
|
|
13169
|
+
}, _1 = {
|
|
13138
13170
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
13139
13171
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
13140
13172
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -13147,7 +13179,7 @@ const g1 = {
|
|
|
13147
13179
|
"Friday",
|
|
13148
13180
|
"Saturday"
|
|
13149
13181
|
]
|
|
13150
|
-
},
|
|
13182
|
+
}, v1 = {
|
|
13151
13183
|
narrow: {
|
|
13152
13184
|
am: "a",
|
|
13153
13185
|
pm: "p",
|
|
@@ -13178,7 +13210,7 @@ const g1 = {
|
|
|
13178
13210
|
evening: "evening",
|
|
13179
13211
|
night: "night"
|
|
13180
13212
|
}
|
|
13181
|
-
},
|
|
13213
|
+
}, x1 = {
|
|
13182
13214
|
narrow: {
|
|
13183
13215
|
am: "a",
|
|
13184
13216
|
pm: "p",
|
|
@@ -13209,7 +13241,7 @@ const g1 = {
|
|
|
13209
13241
|
evening: "in the evening",
|
|
13210
13242
|
night: "at night"
|
|
13211
13243
|
}
|
|
13212
|
-
},
|
|
13244
|
+
}, w1 = (n, t) => {
|
|
13213
13245
|
const e = Number(n), i = e % 100;
|
|
13214
13246
|
if (i > 20 || i < 10)
|
|
13215
13247
|
switch (i % 10) {
|
|
@@ -13221,29 +13253,29 @@ const g1 = {
|
|
|
13221
13253
|
return e + "rd";
|
|
13222
13254
|
}
|
|
13223
13255
|
return e + "th";
|
|
13224
|
-
},
|
|
13225
|
-
ordinalNumber:
|
|
13256
|
+
}, M1 = {
|
|
13257
|
+
ordinalNumber: w1,
|
|
13226
13258
|
era: Is({
|
|
13227
|
-
values:
|
|
13259
|
+
values: p1,
|
|
13228
13260
|
defaultWidth: "wide"
|
|
13229
13261
|
}),
|
|
13230
13262
|
quarter: Is({
|
|
13231
|
-
values:
|
|
13263
|
+
values: y1,
|
|
13232
13264
|
defaultWidth: "wide",
|
|
13233
13265
|
argumentCallback: (n) => n - 1
|
|
13234
13266
|
}),
|
|
13235
13267
|
month: Is({
|
|
13236
|
-
values:
|
|
13268
|
+
values: b1,
|
|
13237
13269
|
defaultWidth: "wide"
|
|
13238
13270
|
}),
|
|
13239
13271
|
day: Is({
|
|
13240
|
-
values:
|
|
13272
|
+
values: _1,
|
|
13241
13273
|
defaultWidth: "wide"
|
|
13242
13274
|
}),
|
|
13243
13275
|
dayPeriod: Is({
|
|
13244
|
-
values:
|
|
13276
|
+
values: v1,
|
|
13245
13277
|
defaultWidth: "wide",
|
|
13246
|
-
formattingValues:
|
|
13278
|
+
formattingValues: x1,
|
|
13247
13279
|
defaultFormattingWidth: "wide"
|
|
13248
13280
|
})
|
|
13249
13281
|
};
|
|
@@ -13252,9 +13284,9 @@ function Ls(n) {
|
|
|
13252
13284
|
const i = e.width, s = i && n.matchPatterns[i] || n.matchPatterns[n.defaultMatchWidth], r = t.match(s);
|
|
13253
13285
|
if (!r)
|
|
13254
13286
|
return null;
|
|
13255
|
-
const a = r[0], o = i && n.parsePatterns[i] || n.parsePatterns[n.defaultParseWidth], l = Array.isArray(o) ?
|
|
13287
|
+
const a = r[0], o = i && n.parsePatterns[i] || n.parsePatterns[n.defaultParseWidth], l = Array.isArray(o) ? T1(o, (d) => d.test(a)) : (
|
|
13256
13288
|
// [TODO] -- I challenge you to fix the type
|
|
13257
|
-
|
|
13289
|
+
S1(o, (d) => d.test(a))
|
|
13258
13290
|
);
|
|
13259
13291
|
let c;
|
|
13260
13292
|
c = n.valueCallback ? n.valueCallback(l) : l, c = e.valueCallback ? (
|
|
@@ -13265,17 +13297,17 @@ function Ls(n) {
|
|
|
13265
13297
|
return { value: c, rest: u };
|
|
13266
13298
|
};
|
|
13267
13299
|
}
|
|
13268
|
-
function
|
|
13300
|
+
function S1(n, t) {
|
|
13269
13301
|
for (const e in n)
|
|
13270
13302
|
if (Object.prototype.hasOwnProperty.call(n, e) && t(n[e]))
|
|
13271
13303
|
return e;
|
|
13272
13304
|
}
|
|
13273
|
-
function
|
|
13305
|
+
function T1(n, t) {
|
|
13274
13306
|
for (let e = 0; e < n.length; e++)
|
|
13275
13307
|
if (t(n[e]))
|
|
13276
13308
|
return e;
|
|
13277
13309
|
}
|
|
13278
|
-
function
|
|
13310
|
+
function D1(n) {
|
|
13279
13311
|
return (t, e = {}) => {
|
|
13280
13312
|
const i = t.match(n.matchPattern);
|
|
13281
13313
|
if (!i) return null;
|
|
@@ -13287,23 +13319,23 @@ function S1(n) {
|
|
|
13287
13319
|
return { value: a, rest: o };
|
|
13288
13320
|
};
|
|
13289
13321
|
}
|
|
13290
|
-
const
|
|
13322
|
+
const k1 = /^(\d+)(th|st|nd|rd)?/i, C1 = /\d+/i, O1 = {
|
|
13291
13323
|
narrow: /^(b|a)/i,
|
|
13292
13324
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
13293
13325
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
13294
|
-
},
|
|
13326
|
+
}, P1 = {
|
|
13295
13327
|
any: [/^b/i, /^(a|c)/i]
|
|
13296
|
-
},
|
|
13328
|
+
}, E1 = {
|
|
13297
13329
|
narrow: /^[1234]/i,
|
|
13298
13330
|
abbreviated: /^q[1234]/i,
|
|
13299
13331
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13300
|
-
},
|
|
13332
|
+
}, A1 = {
|
|
13301
13333
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
13302
|
-
},
|
|
13334
|
+
}, R1 = {
|
|
13303
13335
|
narrow: /^[jfmasond]/i,
|
|
13304
13336
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
13305
13337
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
13306
|
-
},
|
|
13338
|
+
}, I1 = {
|
|
13307
13339
|
narrow: [
|
|
13308
13340
|
/^j/i,
|
|
13309
13341
|
/^f/i,
|
|
@@ -13332,18 +13364,18 @@ const T1 = /^(\d+)(th|st|nd|rd)?/i, D1 = /\d+/i, k1 = {
|
|
|
13332
13364
|
/^n/i,
|
|
13333
13365
|
/^d/i
|
|
13334
13366
|
]
|
|
13335
|
-
},
|
|
13367
|
+
}, L1 = {
|
|
13336
13368
|
narrow: /^[smtwf]/i,
|
|
13337
13369
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
13338
13370
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
13339
13371
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
13340
|
-
},
|
|
13372
|
+
}, N1 = {
|
|
13341
13373
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
13342
13374
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
13343
|
-
},
|
|
13375
|
+
}, F1 = {
|
|
13344
13376
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
13345
13377
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
13346
|
-
},
|
|
13378
|
+
}, z1 = {
|
|
13347
13379
|
any: {
|
|
13348
13380
|
am: /^a/i,
|
|
13349
13381
|
pm: /^p/i,
|
|
@@ -13354,60 +13386,60 @@ const T1 = /^(\d+)(th|st|nd|rd)?/i, D1 = /\d+/i, k1 = {
|
|
|
13354
13386
|
evening: /evening/i,
|
|
13355
13387
|
night: /night/i
|
|
13356
13388
|
}
|
|
13357
|
-
},
|
|
13358
|
-
ordinalNumber:
|
|
13359
|
-
matchPattern:
|
|
13360
|
-
parsePattern:
|
|
13389
|
+
}, H1 = {
|
|
13390
|
+
ordinalNumber: D1({
|
|
13391
|
+
matchPattern: k1,
|
|
13392
|
+
parsePattern: C1,
|
|
13361
13393
|
valueCallback: (n) => parseInt(n, 10)
|
|
13362
13394
|
}),
|
|
13363
13395
|
era: Ls({
|
|
13364
|
-
matchPatterns:
|
|
13396
|
+
matchPatterns: O1,
|
|
13365
13397
|
defaultMatchWidth: "wide",
|
|
13366
|
-
parsePatterns:
|
|
13398
|
+
parsePatterns: P1,
|
|
13367
13399
|
defaultParseWidth: "any"
|
|
13368
13400
|
}),
|
|
13369
13401
|
quarter: Ls({
|
|
13370
|
-
matchPatterns:
|
|
13402
|
+
matchPatterns: E1,
|
|
13371
13403
|
defaultMatchWidth: "wide",
|
|
13372
|
-
parsePatterns:
|
|
13404
|
+
parsePatterns: A1,
|
|
13373
13405
|
defaultParseWidth: "any",
|
|
13374
13406
|
valueCallback: (n) => n + 1
|
|
13375
13407
|
}),
|
|
13376
13408
|
month: Ls({
|
|
13377
|
-
matchPatterns:
|
|
13409
|
+
matchPatterns: R1,
|
|
13378
13410
|
defaultMatchWidth: "wide",
|
|
13379
|
-
parsePatterns:
|
|
13411
|
+
parsePatterns: I1,
|
|
13380
13412
|
defaultParseWidth: "any"
|
|
13381
13413
|
}),
|
|
13382
13414
|
day: Ls({
|
|
13383
|
-
matchPatterns:
|
|
13415
|
+
matchPatterns: L1,
|
|
13384
13416
|
defaultMatchWidth: "wide",
|
|
13385
|
-
parsePatterns:
|
|
13417
|
+
parsePatterns: N1,
|
|
13386
13418
|
defaultParseWidth: "any"
|
|
13387
13419
|
}),
|
|
13388
13420
|
dayPeriod: Ls({
|
|
13389
|
-
matchPatterns:
|
|
13421
|
+
matchPatterns: F1,
|
|
13390
13422
|
defaultMatchWidth: "any",
|
|
13391
|
-
parsePatterns:
|
|
13423
|
+
parsePatterns: z1,
|
|
13392
13424
|
defaultParseWidth: "any"
|
|
13393
13425
|
})
|
|
13394
|
-
},
|
|
13426
|
+
}, B1 = {
|
|
13395
13427
|
code: "en-US",
|
|
13396
|
-
formatDistance:
|
|
13397
|
-
formatLong:
|
|
13398
|
-
formatRelative:
|
|
13399
|
-
localize:
|
|
13400
|
-
match:
|
|
13428
|
+
formatDistance: c1,
|
|
13429
|
+
formatLong: f1,
|
|
13430
|
+
formatRelative: m1,
|
|
13431
|
+
localize: M1,
|
|
13432
|
+
match: H1,
|
|
13401
13433
|
options: {
|
|
13402
13434
|
weekStartsOn: 0,
|
|
13403
13435
|
firstWeekContainsDate: 1
|
|
13404
13436
|
}
|
|
13405
13437
|
};
|
|
13406
|
-
let
|
|
13438
|
+
let W1 = {};
|
|
13407
13439
|
function xr() {
|
|
13408
|
-
return
|
|
13440
|
+
return W1;
|
|
13409
13441
|
}
|
|
13410
|
-
const cg = 6048e5,
|
|
13442
|
+
const cg = 6048e5, Y1 = 864e5, $1 = 60, j1 = 3600, _d = Symbol.for("constructDateFrom");
|
|
13411
13443
|
function Ze(n, t) {
|
|
13412
13444
|
return typeof n == "function" ? n(t) : n && typeof n == "object" && _d in n ? n[_d](t) : n instanceof Date ? new n.constructor(t) : new Date(t);
|
|
13413
13445
|
}
|
|
@@ -13428,7 +13460,7 @@ function vd(n) {
|
|
|
13428
13460
|
);
|
|
13429
13461
|
return e.setUTCFullYear(t.getFullYear()), +n - +e;
|
|
13430
13462
|
}
|
|
13431
|
-
function
|
|
13463
|
+
function U1(n, ...t) {
|
|
13432
13464
|
const e = Ze.bind(
|
|
13433
13465
|
null,
|
|
13434
13466
|
t.find((i) => typeof i == "object")
|
|
@@ -13439,21 +13471,21 @@ function Zi(n, t) {
|
|
|
13439
13471
|
const e = Me(n, void 0);
|
|
13440
13472
|
return e.setHours(0, 0, 0, 0), e;
|
|
13441
13473
|
}
|
|
13442
|
-
function
|
|
13443
|
-
const [i, s] =
|
|
13474
|
+
function V1(n, t, e) {
|
|
13475
|
+
const [i, s] = U1(
|
|
13444
13476
|
void 0,
|
|
13445
13477
|
n,
|
|
13446
13478
|
t
|
|
13447
13479
|
), r = Zi(i), a = Zi(s), o = +r - vd(r), l = +a - vd(a);
|
|
13448
|
-
return Math.round((o - l) /
|
|
13480
|
+
return Math.round((o - l) / Y1);
|
|
13449
13481
|
}
|
|
13450
|
-
function
|
|
13482
|
+
function q1(n, t) {
|
|
13451
13483
|
const e = Me(n, void 0);
|
|
13452
13484
|
return e.setFullYear(e.getFullYear(), 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
13453
13485
|
}
|
|
13454
|
-
function
|
|
13486
|
+
function X1(n, t) {
|
|
13455
13487
|
const e = Me(n, void 0);
|
|
13456
|
-
return
|
|
13488
|
+
return V1(e, q1(e)) + 1;
|
|
13457
13489
|
}
|
|
13458
13490
|
function En(n, t) {
|
|
13459
13491
|
var e, i, s, r;
|
|
@@ -13471,12 +13503,12 @@ function ug(n, t) {
|
|
|
13471
13503
|
const o = Ca(a);
|
|
13472
13504
|
return e.getTime() >= r.getTime() ? i + 1 : e.getTime() >= o.getTime() ? i : i - 1;
|
|
13473
13505
|
}
|
|
13474
|
-
function
|
|
13506
|
+
function G1(n, t) {
|
|
13475
13507
|
const e = ug(n), i = Ze(n, 0);
|
|
13476
13508
|
return i.setFullYear(e, 0, 4), i.setHours(0, 0, 0, 0), Ca(i);
|
|
13477
13509
|
}
|
|
13478
|
-
function
|
|
13479
|
-
const e = Me(n, void 0), i = +Ca(e) - +
|
|
13510
|
+
function K1(n, t) {
|
|
13511
|
+
const e = Me(n, void 0), i = +Ca(e) - +G1(e);
|
|
13480
13512
|
return Math.round(i / cg) + 1;
|
|
13481
13513
|
}
|
|
13482
13514
|
function dg(n, t) {
|
|
@@ -13488,13 +13520,13 @@ function dg(n, t) {
|
|
|
13488
13520
|
const f = En(h, t);
|
|
13489
13521
|
return +a >= +d ? o + 1 : +a >= +f ? o : o - 1;
|
|
13490
13522
|
}
|
|
13491
|
-
function
|
|
13523
|
+
function Z1(n, t) {
|
|
13492
13524
|
var e, i, s, r;
|
|
13493
13525
|
const a = xr(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((i = (e = t == null ? void 0 : t.locale) == null ? void 0 : e.options) == null ? void 0 : i.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((r = (s = a.locale) == null ? void 0 : s.options) == null ? void 0 : r.firstWeekContainsDate) ?? 1, l = dg(n, t), c = Ze((t == null ? void 0 : t.in) || n, 0);
|
|
13494
13526
|
return c.setFullYear(l, 0, o), c.setHours(0, 0, 0, 0), En(c, t);
|
|
13495
13527
|
}
|
|
13496
|
-
function
|
|
13497
|
-
const e = Me(n, t == null ? void 0 : t.in), i = +En(e, t) - +
|
|
13528
|
+
function Q1(n, t) {
|
|
13529
|
+
const e = Me(n, t == null ? void 0 : t.in), i = +En(e, t) - +Z1(e, t);
|
|
13498
13530
|
return Math.round(i / cg) + 1;
|
|
13499
13531
|
}
|
|
13500
13532
|
function Pt(n, t) {
|
|
@@ -13720,12 +13752,12 @@ const Hn = {
|
|
|
13720
13752
|
},
|
|
13721
13753
|
// Local week of year
|
|
13722
13754
|
w: function(n, t, e, i) {
|
|
13723
|
-
const s =
|
|
13755
|
+
const s = Q1(n, i);
|
|
13724
13756
|
return t === "wo" ? e.ordinalNumber(s, { unit: "week" }) : Pt(s, t.length);
|
|
13725
13757
|
},
|
|
13726
13758
|
// ISO week of year
|
|
13727
13759
|
I: function(n, t, e) {
|
|
13728
|
-
const i =
|
|
13760
|
+
const i = K1(n);
|
|
13729
13761
|
return t === "Io" ? e.ordinalNumber(i, { unit: "week" }) : Pt(i, t.length);
|
|
13730
13762
|
},
|
|
13731
13763
|
// Day of the month
|
|
@@ -13734,7 +13766,7 @@ const Hn = {
|
|
|
13734
13766
|
},
|
|
13735
13767
|
// Day of year
|
|
13736
13768
|
D: function(n, t, e) {
|
|
13737
|
-
const i =
|
|
13769
|
+
const i = X1(n);
|
|
13738
13770
|
return t === "Do" ? e.ordinalNumber(i, { unit: "dayOfYear" }) : Pt(i, t.length);
|
|
13739
13771
|
},
|
|
13740
13772
|
// Day of week
|
|
@@ -14084,7 +14116,7 @@ const Sd = (n, t) => {
|
|
|
14084
14116
|
default:
|
|
14085
14117
|
return t.time({ width: "full" });
|
|
14086
14118
|
}
|
|
14087
|
-
},
|
|
14119
|
+
}, J1 = (n, t) => {
|
|
14088
14120
|
const e = n.match(/(P+)(p+)?/) || [], i = e[1], s = e[2];
|
|
14089
14121
|
if (!s)
|
|
14090
14122
|
return Sd(n, t);
|
|
@@ -14105,52 +14137,52 @@ const Sd = (n, t) => {
|
|
|
14105
14137
|
break;
|
|
14106
14138
|
}
|
|
14107
14139
|
return r.replace("{{date}}", Sd(i, t)).replace("{{time}}", hg(s, t));
|
|
14108
|
-
},
|
|
14140
|
+
}, tM = {
|
|
14109
14141
|
p: hg,
|
|
14110
|
-
P:
|
|
14111
|
-
},
|
|
14112
|
-
function
|
|
14113
|
-
return
|
|
14142
|
+
P: J1
|
|
14143
|
+
}, eM = /^D+$/, nM = /^Y+$/, iM = ["D", "DD", "YY", "YYYY"];
|
|
14144
|
+
function sM(n) {
|
|
14145
|
+
return eM.test(n);
|
|
14114
14146
|
}
|
|
14115
|
-
function
|
|
14116
|
-
return
|
|
14147
|
+
function rM(n) {
|
|
14148
|
+
return nM.test(n);
|
|
14117
14149
|
}
|
|
14118
|
-
function
|
|
14119
|
-
const i =
|
|
14120
|
-
if (console.warn(i),
|
|
14150
|
+
function aM(n, t, e) {
|
|
14151
|
+
const i = oM(n, t, e);
|
|
14152
|
+
if (console.warn(i), iM.includes(n)) throw new RangeError(i);
|
|
14121
14153
|
}
|
|
14122
|
-
function
|
|
14154
|
+
function oM(n, t, e) {
|
|
14123
14155
|
const i = n[0] === "Y" ? "years" : "days of the month";
|
|
14124
14156
|
return `Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
14125
14157
|
}
|
|
14126
|
-
function
|
|
14158
|
+
function lM(n) {
|
|
14127
14159
|
return n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]";
|
|
14128
14160
|
}
|
|
14129
|
-
function
|
|
14130
|
-
return !(!
|
|
14161
|
+
function cM(n) {
|
|
14162
|
+
return !(!lM(n) && typeof n != "number" || isNaN(+Me(n)));
|
|
14131
14163
|
}
|
|
14132
|
-
const
|
|
14133
|
-
function
|
|
14164
|
+
const uM = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dM = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, hM = /^'([^]*?)'?$/, fM = /''/g, gM = /[a-zA-Z]/;
|
|
14165
|
+
function mM(n, t, e) {
|
|
14134
14166
|
var i, s, r, a, o, l, c, u;
|
|
14135
|
-
const d = xr(), h = (e == null ? void 0 : e.locale) ?? d.locale ??
|
|
14136
|
-
if (!
|
|
14167
|
+
const d = xr(), h = (e == null ? void 0 : e.locale) ?? d.locale ?? B1, f = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : s.firstWeekContainsDate) ?? d.firstWeekContainsDate ?? ((a = (r = d.locale) == null ? void 0 : r.options) == null ? void 0 : a.firstWeekContainsDate) ?? 1, g = (e == null ? void 0 : e.weekStartsOn) ?? ((l = (o = e == null ? void 0 : e.locale) == null ? void 0 : o.options) == null ? void 0 : l.weekStartsOn) ?? d.weekStartsOn ?? ((u = (c = d.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, y = Me(n, e == null ? void 0 : e.in);
|
|
14168
|
+
if (!cM(y))
|
|
14137
14169
|
throw new RangeError("Invalid time value");
|
|
14138
|
-
let _ = t.match(
|
|
14170
|
+
let _ = t.match(dM).map((M) => {
|
|
14139
14171
|
const S = M[0];
|
|
14140
14172
|
if (S === "p" || S === "P") {
|
|
14141
|
-
const O =
|
|
14173
|
+
const O = tM[S];
|
|
14142
14174
|
return O(M, h.formatLong);
|
|
14143
14175
|
}
|
|
14144
14176
|
return M;
|
|
14145
|
-
}).join("").match(
|
|
14177
|
+
}).join("").match(uM).map((M) => {
|
|
14146
14178
|
if (M === "''")
|
|
14147
14179
|
return { isToken: !1, value: "'" };
|
|
14148
14180
|
const S = M[0];
|
|
14149
14181
|
if (S === "'")
|
|
14150
|
-
return { isToken: !1, value:
|
|
14182
|
+
return { isToken: !1, value: pM(M) };
|
|
14151
14183
|
if (xd[S])
|
|
14152
14184
|
return { isToken: !0, value: M };
|
|
14153
|
-
if (S.match(
|
|
14185
|
+
if (S.match(gM))
|
|
14154
14186
|
throw new RangeError(
|
|
14155
14187
|
"Format string contains an unescaped latin alphabet character `" + S + "`"
|
|
14156
14188
|
);
|
|
@@ -14165,14 +14197,14 @@ function fM(n, t, e) {
|
|
|
14165
14197
|
return _.map((M) => {
|
|
14166
14198
|
if (!M.isToken) return M.value;
|
|
14167
14199
|
const S = M.value;
|
|
14168
|
-
(!(e != null && e.useAdditionalWeekYearTokens) &&
|
|
14200
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && rM(S) || !(e != null && e.useAdditionalDayOfYearTokens) && sM(S)) && aM(S, t, String(n));
|
|
14169
14201
|
const O = xd[S[0]];
|
|
14170
14202
|
return O(y, S, h.localize, x);
|
|
14171
14203
|
}).join("");
|
|
14172
14204
|
}
|
|
14173
|
-
function
|
|
14174
|
-
const t = n.match(
|
|
14175
|
-
return t ? t[1].replace(
|
|
14205
|
+
function pM(n) {
|
|
14206
|
+
const t = n.match(hM);
|
|
14207
|
+
return t ? t[1].replace(fM, "'") : n;
|
|
14176
14208
|
}
|
|
14177
14209
|
function ia(n, t, e) {
|
|
14178
14210
|
const i = Me(n, void 0);
|
|
@@ -14192,7 +14224,7 @@ function fg(n, t, e) {
|
|
|
14192
14224
|
s
|
|
14193
14225
|
), i);
|
|
14194
14226
|
}
|
|
14195
|
-
function
|
|
14227
|
+
function yM(n, t, e) {
|
|
14196
14228
|
return fg(n, t * 3);
|
|
14197
14229
|
}
|
|
14198
14230
|
function ts(n, t) {
|
|
@@ -14203,51 +14235,51 @@ function es(n, t) {
|
|
|
14203
14235
|
const e = Me(n, void 0);
|
|
14204
14236
|
return e.setDate(1), e.setHours(0, 0, 0, 0), e;
|
|
14205
14237
|
}
|
|
14206
|
-
function
|
|
14238
|
+
function bM(n, t) {
|
|
14207
14239
|
const e = Me(n, void 0), i = e.getFullYear(), s = e.getMonth(), r = Ze(e, 0);
|
|
14208
14240
|
return r.setFullYear(i, s + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
|
|
14209
14241
|
}
|
|
14210
|
-
function
|
|
14242
|
+
function _M() {
|
|
14211
14243
|
return Object.assign({}, xr());
|
|
14212
14244
|
}
|
|
14213
14245
|
function Td(n) {
|
|
14214
|
-
return Math.trunc(n *
|
|
14246
|
+
return Math.trunc(n * j1);
|
|
14215
14247
|
}
|
|
14216
|
-
function
|
|
14217
|
-
const t = n /
|
|
14248
|
+
function vM(n) {
|
|
14249
|
+
const t = n / $1;
|
|
14218
14250
|
return Math.trunc(t);
|
|
14219
14251
|
}
|
|
14220
14252
|
function gg(n, t, e) {
|
|
14221
14253
|
return fg(n, -1);
|
|
14222
14254
|
}
|
|
14223
14255
|
function mg(n, t, e) {
|
|
14224
|
-
return
|
|
14256
|
+
return yM(n, -1);
|
|
14225
14257
|
}
|
|
14226
14258
|
function Dd(n, t, e) {
|
|
14227
|
-
const i =
|
|
14228
|
-
return "formatToParts" in s ?
|
|
14259
|
+
const i = _M(), s = MM(n, e.timeZone, e.locale ?? i.locale);
|
|
14260
|
+
return "formatToParts" in s ? xM(s, t) : wM(s, t);
|
|
14229
14261
|
}
|
|
14230
|
-
function
|
|
14262
|
+
function xM(n, t) {
|
|
14231
14263
|
const e = n.formatToParts(t);
|
|
14232
14264
|
for (let i = e.length - 1; i >= 0; --i)
|
|
14233
14265
|
if (e[i].type === "timeZoneName")
|
|
14234
14266
|
return e[i].value;
|
|
14235
14267
|
}
|
|
14236
|
-
function
|
|
14268
|
+
function wM(n, t) {
|
|
14237
14269
|
const e = n.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(e);
|
|
14238
14270
|
return i ? i[0].substr(1) : "";
|
|
14239
14271
|
}
|
|
14240
|
-
function
|
|
14272
|
+
function MM(n, t, e) {
|
|
14241
14273
|
return new Intl.DateTimeFormat(e ? [e.code, "en-US"] : void 0, {
|
|
14242
14274
|
timeZone: t,
|
|
14243
14275
|
timeZoneName: n
|
|
14244
14276
|
});
|
|
14245
14277
|
}
|
|
14246
|
-
function
|
|
14247
|
-
const e =
|
|
14248
|
-
return "formatToParts" in e ?
|
|
14278
|
+
function SM(n, t) {
|
|
14279
|
+
const e = OM(t);
|
|
14280
|
+
return "formatToParts" in e ? DM(e, n) : kM(e, n);
|
|
14249
14281
|
}
|
|
14250
|
-
const
|
|
14282
|
+
const TM = {
|
|
14251
14283
|
year: 0,
|
|
14252
14284
|
month: 1,
|
|
14253
14285
|
day: 2,
|
|
@@ -14255,11 +14287,11 @@ const MM = {
|
|
|
14255
14287
|
minute: 4,
|
|
14256
14288
|
second: 5
|
|
14257
14289
|
};
|
|
14258
|
-
function
|
|
14290
|
+
function DM(n, t) {
|
|
14259
14291
|
try {
|
|
14260
14292
|
const e = n.formatToParts(t), i = [];
|
|
14261
14293
|
for (let s = 0; s < e.length; s++) {
|
|
14262
|
-
const r =
|
|
14294
|
+
const r = TM[e[s].type];
|
|
14263
14295
|
r !== void 0 && (i[r] = parseInt(e[s].value, 10));
|
|
14264
14296
|
}
|
|
14265
14297
|
return i;
|
|
@@ -14269,7 +14301,7 @@ function SM(n, t) {
|
|
|
14269
14301
|
throw e;
|
|
14270
14302
|
}
|
|
14271
14303
|
}
|
|
14272
|
-
function
|
|
14304
|
+
function kM(n, t) {
|
|
14273
14305
|
const e = n.format(t), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);
|
|
14274
14306
|
return [
|
|
14275
14307
|
parseInt(i[3], 10),
|
|
@@ -14289,9 +14321,9 @@ const Jo = {}, kd = new Intl.DateTimeFormat("en-US", {
|
|
|
14289
14321
|
hour: "2-digit",
|
|
14290
14322
|
minute: "2-digit",
|
|
14291
14323
|
second: "2-digit"
|
|
14292
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
14293
|
-
function
|
|
14294
|
-
return Jo[n] || (Jo[n] =
|
|
14324
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), CM = kd === "06/25/2014, 00:00:00" || kd === "06/25/2014 00:00:00";
|
|
14325
|
+
function OM(n) {
|
|
14326
|
+
return Jo[n] || (Jo[n] = CM ? new Intl.DateTimeFormat("en-US", {
|
|
14295
14327
|
hourCycle: "h23",
|
|
14296
14328
|
timeZone: n,
|
|
14297
14329
|
year: "numeric",
|
|
@@ -14315,7 +14347,7 @@ function Dc(n, t, e, i, s, r, a) {
|
|
|
14315
14347
|
const o = /* @__PURE__ */ new Date(0);
|
|
14316
14348
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
14317
14349
|
}
|
|
14318
|
-
const Cd = 36e5,
|
|
14350
|
+
const Cd = 36e5, PM = 6e4, tl = {
|
|
14319
14351
|
timezoneZ: /^(Z)$/,
|
|
14320
14352
|
timezoneHH: /^([+-]\d{2})$/,
|
|
14321
14353
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -14332,25 +14364,25 @@ function wr(n, t, e) {
|
|
|
14332
14364
|
if (i = tl.timezoneHHMM.exec(n), i) {
|
|
14333
14365
|
s = parseInt(i[2], 10);
|
|
14334
14366
|
const a = parseInt(i[3], 10);
|
|
14335
|
-
return Od(s, a) ? (r = Math.abs(s) * Cd + a *
|
|
14367
|
+
return Od(s, a) ? (r = Math.abs(s) * Cd + a * PM, i[1] === "+" ? -r : r) : NaN;
|
|
14336
14368
|
}
|
|
14337
|
-
if (
|
|
14369
|
+
if (RM(n)) {
|
|
14338
14370
|
t = new Date(t || Date.now());
|
|
14339
|
-
const a = e ? t :
|
|
14340
|
-
return -(e ? o :
|
|
14371
|
+
const a = e ? t : EM(t), o = Wl(a, n);
|
|
14372
|
+
return -(e ? o : AM(t, o, n));
|
|
14341
14373
|
}
|
|
14342
14374
|
return NaN;
|
|
14343
14375
|
}
|
|
14344
|
-
function
|
|
14376
|
+
function EM(n) {
|
|
14345
14377
|
return Dc(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
14346
14378
|
}
|
|
14347
14379
|
function Wl(n, t) {
|
|
14348
|
-
const e =
|
|
14380
|
+
const e = SM(n, t), i = Dc(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
14349
14381
|
let s = n.getTime();
|
|
14350
14382
|
const r = s % 1e3;
|
|
14351
14383
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
14352
14384
|
}
|
|
14353
|
-
function
|
|
14385
|
+
function AM(n, t, e) {
|
|
14354
14386
|
let i = n.getTime() - t;
|
|
14355
14387
|
const s = Wl(new Date(i), e);
|
|
14356
14388
|
if (t === s)
|
|
@@ -14363,7 +14395,7 @@ function Od(n, t) {
|
|
|
14363
14395
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
14364
14396
|
}
|
|
14365
14397
|
const Pd = {};
|
|
14366
|
-
function
|
|
14398
|
+
function RM(n) {
|
|
14367
14399
|
if (Pd[n])
|
|
14368
14400
|
return !0;
|
|
14369
14401
|
try {
|
|
@@ -14372,7 +14404,7 @@ function EM(n) {
|
|
|
14372
14404
|
return !1;
|
|
14373
14405
|
}
|
|
14374
14406
|
}
|
|
14375
|
-
const
|
|
14407
|
+
const IM = 60 * 1e3, LM = {
|
|
14376
14408
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
14377
14409
|
X: function(n, t, e) {
|
|
14378
14410
|
const i = el(e.timeZone, n);
|
|
@@ -14412,7 +14444,7 @@ const AM = 60 * 1e3, RM = {
|
|
|
14412
14444
|
case "O":
|
|
14413
14445
|
case "OO":
|
|
14414
14446
|
case "OOO":
|
|
14415
|
-
return "GMT" +
|
|
14447
|
+
return "GMT" + NM(i, ":");
|
|
14416
14448
|
case "OOOO":
|
|
14417
14449
|
default:
|
|
14418
14450
|
return "GMT" + qi(i, ":");
|
|
@@ -14432,7 +14464,7 @@ const AM = 60 * 1e3, RM = {
|
|
|
14432
14464
|
}
|
|
14433
14465
|
};
|
|
14434
14466
|
function el(n, t) {
|
|
14435
|
-
const e = n ? wr(n, t, !0) /
|
|
14467
|
+
const e = n ? wr(n, t, !0) / IM : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
14436
14468
|
if (Number.isNaN(e))
|
|
14437
14469
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
14438
14470
|
return e;
|
|
@@ -14451,7 +14483,7 @@ function qi(n, t = "") {
|
|
|
14451
14483
|
function Ed(n, t) {
|
|
14452
14484
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Oa(Math.abs(n) / 60, 2) : qi(n, t);
|
|
14453
14485
|
}
|
|
14454
|
-
function
|
|
14486
|
+
function NM(n, t = "") {
|
|
14455
14487
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
14456
14488
|
return r === 0 ? e + String(s) : e + String(s) + t + Oa(r, 2);
|
|
14457
14489
|
}
|
|
@@ -14459,7 +14491,7 @@ function Ad(n) {
|
|
|
14459
14491
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
14460
14492
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
14461
14493
|
}
|
|
14462
|
-
const pg = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nl = 36e5, Rd = 6e4,
|
|
14494
|
+
const pg = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, nl = 36e5, Rd = 6e4, FM = 2, De = {
|
|
14463
14495
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
14464
14496
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
14465
14497
|
// year tokens
|
|
@@ -14498,7 +14530,7 @@ function Pa(n, t = {}) {
|
|
|
14498
14530
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
14499
14531
|
if (n === null)
|
|
14500
14532
|
return /* @__PURE__ */ new Date(NaN);
|
|
14501
|
-
const e = t.additionalDigits == null ?
|
|
14533
|
+
const e = t.additionalDigits == null ? FM : Number(t.additionalDigits);
|
|
14502
14534
|
if (e !== 2 && e !== 1 && e !== 0)
|
|
14503
14535
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
14504
14536
|
if (n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -14507,13 +14539,13 @@ function Pa(n, t = {}) {
|
|
|
14507
14539
|
return new Date(n);
|
|
14508
14540
|
if (Object.prototype.toString.call(n) !== "[object String]")
|
|
14509
14541
|
return /* @__PURE__ */ new Date(NaN);
|
|
14510
|
-
const i =
|
|
14542
|
+
const i = zM(n), { year: s, restDateString: r } = HM(i.date, e), a = BM(r, s);
|
|
14511
14543
|
if (a === null || isNaN(a.getTime()))
|
|
14512
14544
|
return /* @__PURE__ */ new Date(NaN);
|
|
14513
14545
|
if (a) {
|
|
14514
14546
|
const o = a.getTime();
|
|
14515
14547
|
let l = 0, c;
|
|
14516
|
-
if (i.time && (l =
|
|
14548
|
+
if (i.time && (l = WM(i.time), l === null || isNaN(l)))
|
|
14517
14549
|
return /* @__PURE__ */ new Date(NaN);
|
|
14518
14550
|
if (i.timeZone || t.timeZone) {
|
|
14519
14551
|
if (c = wr(i.timeZone || t.timeZone, new Date(o + l)), isNaN(c))
|
|
@@ -14524,7 +14556,7 @@ function Pa(n, t = {}) {
|
|
|
14524
14556
|
} else
|
|
14525
14557
|
return /* @__PURE__ */ new Date(NaN);
|
|
14526
14558
|
}
|
|
14527
|
-
function
|
|
14559
|
+
function zM(n) {
|
|
14528
14560
|
const t = {};
|
|
14529
14561
|
let e = De.dateTimePattern.exec(n), i;
|
|
14530
14562
|
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) {
|
|
@@ -14533,7 +14565,7 @@ function NM(n) {
|
|
|
14533
14565
|
}
|
|
14534
14566
|
return t;
|
|
14535
14567
|
}
|
|
14536
|
-
function
|
|
14568
|
+
function HM(n, t) {
|
|
14537
14569
|
if (n) {
|
|
14538
14570
|
const e = De.YYY[t], i = De.YYYYY[t];
|
|
14539
14571
|
let s = De.YYYY.exec(n) || i.exec(n);
|
|
@@ -14556,7 +14588,7 @@ function FM(n, t) {
|
|
|
14556
14588
|
year: null
|
|
14557
14589
|
};
|
|
14558
14590
|
}
|
|
14559
|
-
function
|
|
14591
|
+
function BM(n, t) {
|
|
14560
14592
|
if (t === null)
|
|
14561
14593
|
return null;
|
|
14562
14594
|
let e, i, s;
|
|
@@ -14568,7 +14600,7 @@ function zM(n, t) {
|
|
|
14568
14600
|
if (r = De.DDD.exec(n), r) {
|
|
14569
14601
|
e = /* @__PURE__ */ new Date(0);
|
|
14570
14602
|
const a = parseInt(r[1], 10);
|
|
14571
|
-
return
|
|
14603
|
+
return jM(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
14572
14604
|
}
|
|
14573
14605
|
if (r = De.MMDD.exec(n), r) {
|
|
14574
14606
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
@@ -14584,7 +14616,7 @@ function zM(n, t) {
|
|
|
14584
14616
|
}
|
|
14585
14617
|
return null;
|
|
14586
14618
|
}
|
|
14587
|
-
function
|
|
14619
|
+
function WM(n) {
|
|
14588
14620
|
let t, e, i = De.HH.exec(n);
|
|
14589
14621
|
if (i)
|
|
14590
14622
|
return t = parseFloat(i[1].replace(",", ".")), il(t) ? t % 24 * nl : NaN;
|
|
@@ -14604,7 +14636,7 @@ function Id(n, t, e) {
|
|
|
14604
14636
|
const s = i.getUTCDay() || 7, r = t * 7 + e + 1 - s;
|
|
14605
14637
|
return i.setUTCDate(i.getUTCDate() + r), i;
|
|
14606
14638
|
}
|
|
14607
|
-
const
|
|
14639
|
+
const YM = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], $M = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
14608
14640
|
function yg(n) {
|
|
14609
14641
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
14610
14642
|
}
|
|
@@ -14615,12 +14647,12 @@ function Ld(n, t, e) {
|
|
|
14615
14647
|
if (e < 1)
|
|
14616
14648
|
return !1;
|
|
14617
14649
|
const i = yg(n);
|
|
14618
|
-
if (i && e >
|
|
14650
|
+
if (i && e > $M[t] || !i && e > YM[t])
|
|
14619
14651
|
return !1;
|
|
14620
14652
|
}
|
|
14621
14653
|
return !0;
|
|
14622
14654
|
}
|
|
14623
|
-
function
|
|
14655
|
+
function jM(n, t) {
|
|
14624
14656
|
if (t < 1)
|
|
14625
14657
|
return !1;
|
|
14626
14658
|
const e = yg(n);
|
|
@@ -14632,20 +14664,20 @@ function Nd(n, t) {
|
|
|
14632
14664
|
function il(n, t, e) {
|
|
14633
14665
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
14634
14666
|
}
|
|
14635
|
-
const
|
|
14636
|
-
function
|
|
14667
|
+
const UM = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
14668
|
+
function VM(n, t, e = {}) {
|
|
14637
14669
|
t = String(t);
|
|
14638
|
-
const i = t.match(
|
|
14670
|
+
const i = t.match(UM);
|
|
14639
14671
|
if (i) {
|
|
14640
14672
|
const s = Pa(e.originalDate || n, e);
|
|
14641
14673
|
t = i.reduce(function(r, a) {
|
|
14642
14674
|
if (a[0] === "'")
|
|
14643
14675
|
return r;
|
|
14644
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
14676
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + LM[a[0]](s, a, e) + "'");
|
|
14645
14677
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
14646
14678
|
}, t);
|
|
14647
14679
|
}
|
|
14648
|
-
return
|
|
14680
|
+
return mM(n, t, e);
|
|
14649
14681
|
}
|
|
14650
14682
|
function bg(n, t, e) {
|
|
14651
14683
|
n = Pa(n, e);
|
|
@@ -14657,16 +14689,16 @@ function _g(n, t, e, i) {
|
|
|
14657
14689
|
...i,
|
|
14658
14690
|
timeZone: t,
|
|
14659
14691
|
originalDate: n
|
|
14660
|
-
},
|
|
14692
|
+
}, VM(bg(n, t, { timeZone: i.timeZone }), e, i);
|
|
14661
14693
|
}
|
|
14662
|
-
function
|
|
14694
|
+
function qM(n, t, e) {
|
|
14663
14695
|
if (typeof n == "string" && !n.match(pg))
|
|
14664
14696
|
return Pa(n, { ...e, timeZone: t });
|
|
14665
14697
|
n = Pa(n, e);
|
|
14666
14698
|
const i = Dc(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()).getTime(), s = wr(t, new Date(i));
|
|
14667
14699
|
return new Date(i + s);
|
|
14668
14700
|
}
|
|
14669
|
-
function
|
|
14701
|
+
function XM(n, t) {
|
|
14670
14702
|
return -wr(n, t);
|
|
14671
14703
|
}
|
|
14672
14704
|
function Fd(n, t = {}) {
|
|
@@ -14685,7 +14717,7 @@ function Fd(n, t = {}) {
|
|
|
14685
14717
|
}
|
|
14686
14718
|
return t.includeTZ && (i += " (z)"), _g(n, e, i);
|
|
14687
14719
|
}
|
|
14688
|
-
function
|
|
14720
|
+
function GM(n, t = {}) {
|
|
14689
14721
|
if (!n)
|
|
14690
14722
|
return n;
|
|
14691
14723
|
const e = t.tz || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -14698,7 +14730,7 @@ function qM(n, t = {}) {
|
|
|
14698
14730
|
return console.error("Invalid value passed to formatTime", n), "(invalid date)";
|
|
14699
14731
|
}
|
|
14700
14732
|
}
|
|
14701
|
-
const
|
|
14733
|
+
const KM = {
|
|
14702
14734
|
secondly: 1e3,
|
|
14703
14735
|
tenSecondly: 10 * 1e3,
|
|
14704
14736
|
thirtySecondly: 30 * 1e3,
|
|
@@ -14714,10 +14746,10 @@ const XM = {
|
|
|
14714
14746
|
trend: 0
|
|
14715
14747
|
};
|
|
14716
14748
|
function sl(n) {
|
|
14717
|
-
return n && t1.find((t) => n <=
|
|
14749
|
+
return n && t1.find((t) => n <= KM[t]) || null;
|
|
14718
14750
|
}
|
|
14719
14751
|
var sa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
14720
|
-
function
|
|
14752
|
+
function ZM(n) {
|
|
14721
14753
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
14722
14754
|
}
|
|
14723
14755
|
var Ea = { exports: {} };
|
|
@@ -15166,7 +15198,7 @@ Ea.exports;
|
|
|
15166
15198
|
n.exports = Ro;
|
|
15167
15199
|
})(Ea, Ea.exports);
|
|
15168
15200
|
Ea.exports;
|
|
15169
|
-
const Qe = (n, t) => new Date(n.getTime() -
|
|
15201
|
+
const Qe = (n, t) => new Date(n.getTime() - XM(t, n));
|
|
15170
15202
|
class le {
|
|
15171
15203
|
constructor(t) {
|
|
15172
15204
|
Xe(this, "timeframeText"), Xe(this, "key"), Xe(this, "display"), Xe(this, "timeframeLength"), Xe(this, "allowedTiers"), Xe(this, "defaultResponseGranularity"), Xe(this, "dataGranularity"), Xe(this, "isRelative"), Xe(this, "fineGrainedDefaultGranularity"), Xe(this, "_startCustom"), Xe(this, "_endCustom"), Xe(this, "_allowedGranularitiesOverride"), this.display = t.display, this.timeframeText = t.timeframeText, this.key = t.key, this.timeframeLength = t.timeframeLength, this.allowedTiers = t.allowedTiers, this.defaultResponseGranularity = t.defaultResponseGranularity, this.dataGranularity = t.dataGranularity, this.isRelative = t.isRelative, this._startCustom = t.startCustom, this._endCustom = t.endCustom, this._allowedGranularitiesOverride = t.allowedGranularitiesOverride, this.fineGrainedDefaultGranularity = t.fineGrainedDefaultGranularity;
|
|
@@ -15214,11 +15246,11 @@ class le {
|
|
|
15214
15246
|
tzAdjustedDate(t) {
|
|
15215
15247
|
if (!t)
|
|
15216
15248
|
return /* @__PURE__ */ new Date();
|
|
15217
|
-
const e =
|
|
15249
|
+
const e = qM(/* @__PURE__ */ new Date(), new Intl.DateTimeFormat().resolvedOptions().timeZone);
|
|
15218
15250
|
return bg(e, t);
|
|
15219
15251
|
}
|
|
15220
15252
|
}
|
|
15221
|
-
class
|
|
15253
|
+
class QM extends le {
|
|
15222
15254
|
rawStart(t) {
|
|
15223
15255
|
let e = En(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
15224
15256
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15227,7 +15259,7 @@ class KM extends le {
|
|
|
15227
15259
|
return 60 * 60 * 24 * 7;
|
|
15228
15260
|
}
|
|
15229
15261
|
}
|
|
15230
|
-
class
|
|
15262
|
+
class JM extends le {
|
|
15231
15263
|
rawStart(t) {
|
|
15232
15264
|
let e = es(this.tzAdjustedDate(t));
|
|
15233
15265
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15236,7 +15268,7 @@ class ZM extends le {
|
|
|
15236
15268
|
return 60 * 60 * 24 * 31;
|
|
15237
15269
|
}
|
|
15238
15270
|
}
|
|
15239
|
-
class
|
|
15271
|
+
class tS extends le {
|
|
15240
15272
|
rawStart(t) {
|
|
15241
15273
|
let e = ts(this.tzAdjustedDate(t));
|
|
15242
15274
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15245,7 +15277,7 @@ class QM extends le {
|
|
|
15245
15277
|
return 60 * 60 * 24 * 92;
|
|
15246
15278
|
}
|
|
15247
15279
|
}
|
|
15248
|
-
class
|
|
15280
|
+
class eS extends le {
|
|
15249
15281
|
rawStart(t) {
|
|
15250
15282
|
let e = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
15251
15283
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15254,7 +15286,7 @@ class JM extends le {
|
|
|
15254
15286
|
return 60 * 60 * 24 * 366;
|
|
15255
15287
|
}
|
|
15256
15288
|
}
|
|
15257
|
-
class
|
|
15289
|
+
class nS extends le {
|
|
15258
15290
|
rawEnd(t) {
|
|
15259
15291
|
let e = En(this.tzAdjustedDate(t), { weekStartsOn: 1 });
|
|
15260
15292
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15267,7 +15299,7 @@ class tS extends le {
|
|
|
15267
15299
|
return t && (i = Qe(i, t)), i;
|
|
15268
15300
|
}
|
|
15269
15301
|
}
|
|
15270
|
-
class
|
|
15302
|
+
class iS extends le {
|
|
15271
15303
|
rawEnd(t) {
|
|
15272
15304
|
let e = ts(this.tzAdjustedDate(t));
|
|
15273
15305
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15277,7 +15309,7 @@ class eS extends le {
|
|
|
15277
15309
|
return t && (e = Qe(e, t)), e;
|
|
15278
15310
|
}
|
|
15279
15311
|
}
|
|
15280
|
-
class
|
|
15312
|
+
class sS extends le {
|
|
15281
15313
|
rawEnd(t) {
|
|
15282
15314
|
let e = es(this.tzAdjustedDate(t));
|
|
15283
15315
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15287,7 +15319,7 @@ class nS extends le {
|
|
|
15287
15319
|
return t && (e = Qe(e, t)), e;
|
|
15288
15320
|
}
|
|
15289
15321
|
}
|
|
15290
|
-
class
|
|
15322
|
+
class rS extends le {
|
|
15291
15323
|
rawEnd(t) {
|
|
15292
15324
|
let e = new Date(this.tzAdjustedDate(t).getFullYear(), 0, 1);
|
|
15293
15325
|
return t && (e = Qe(e, t)), e;
|
|
@@ -15407,7 +15439,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15407
15439
|
fineGrainedDefaultGranularity: "daily",
|
|
15408
15440
|
allowedTiers: ["trial", "plus", "enterprise"],
|
|
15409
15441
|
allowedGranularitiesOverride: ["hourly", "twoHourly", "twelveHourly", "daily", "weekly"]
|
|
15410
|
-
}), it.CURRENT_WEEK, new
|
|
15442
|
+
}), it.CURRENT_WEEK, new QM({
|
|
15411
15443
|
key: it.CURRENT_WEEK,
|
|
15412
15444
|
display: "This week",
|
|
15413
15445
|
timeframeText: "Week",
|
|
@@ -15421,7 +15453,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15421
15453
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
15422
15454
|
allowedTiers: ["plus", "enterprise"],
|
|
15423
15455
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
15424
|
-
}), it.CURRENT_MONTH, new
|
|
15456
|
+
}), it.CURRENT_MONTH, new JM({
|
|
15425
15457
|
key: it.CURRENT_MONTH,
|
|
15426
15458
|
display: "This month",
|
|
15427
15459
|
timeframeText: "Month",
|
|
@@ -15433,7 +15465,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15433
15465
|
dataGranularity: "daily",
|
|
15434
15466
|
isRelative: !1,
|
|
15435
15467
|
allowedTiers: ["plus", "enterprise"]
|
|
15436
|
-
}), it.CURRENT_QUARTER, new
|
|
15468
|
+
}), it.CURRENT_QUARTER, new tS({
|
|
15437
15469
|
key: it.CURRENT_QUARTER,
|
|
15438
15470
|
display: "This quarter",
|
|
15439
15471
|
timeframeText: "Quarter",
|
|
@@ -15445,7 +15477,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15445
15477
|
dataGranularity: "daily",
|
|
15446
15478
|
isRelative: !1,
|
|
15447
15479
|
allowedTiers: ["plus", "enterprise"]
|
|
15448
|
-
}), it.CURRENT_YEAR, new
|
|
15480
|
+
}), it.CURRENT_YEAR, new eS({
|
|
15449
15481
|
key: it.CURRENT_YEAR,
|
|
15450
15482
|
display: "This year",
|
|
15451
15483
|
timeframeText: "Year",
|
|
@@ -15457,7 +15489,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15457
15489
|
dataGranularity: "daily",
|
|
15458
15490
|
isRelative: !1,
|
|
15459
15491
|
allowedTiers: ["plus", "enterprise"]
|
|
15460
|
-
}), it.PREVIOUS_WEEK, new
|
|
15492
|
+
}), it.PREVIOUS_WEEK, new nS({
|
|
15461
15493
|
key: it.PREVIOUS_WEEK,
|
|
15462
15494
|
display: "Previous week",
|
|
15463
15495
|
timeframeText: "Week",
|
|
@@ -15468,20 +15500,20 @@ it.FIFTEEN_MIN, new le({
|
|
|
15468
15500
|
fineGrainedDefaultGranularity: "twoHourly",
|
|
15469
15501
|
allowedTiers: ["plus", "enterprise"],
|
|
15470
15502
|
allowedGranularitiesOverride: ["thirtyMinutely", "hourly", "twoHourly", "twelveHourly", "daily"]
|
|
15471
|
-
}), it.PREVIOUS_MONTH, new
|
|
15503
|
+
}), it.PREVIOUS_MONTH, new sS({
|
|
15472
15504
|
key: it.PREVIOUS_MONTH,
|
|
15473
15505
|
display: "Previous month",
|
|
15474
15506
|
timeframeText: "Month",
|
|
15475
15507
|
timeframeLength: () => {
|
|
15476
15508
|
let n = 0;
|
|
15477
15509
|
const t = es(/* @__PURE__ */ new Date()), e = es(gg(/* @__PURE__ */ new Date()));
|
|
15478
|
-
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = zd(t, e)), 60 * 60 * 24 *
|
|
15510
|
+
return t.getTimezoneOffset() !== e.getTimezoneOffset() && (n = zd(t, e)), 60 * 60 * 24 * bM((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 1)) + Td(n);
|
|
15479
15511
|
},
|
|
15480
15512
|
defaultResponseGranularity: "daily",
|
|
15481
15513
|
dataGranularity: "daily",
|
|
15482
15514
|
isRelative: !1,
|
|
15483
15515
|
allowedTiers: ["plus", "enterprise"]
|
|
15484
|
-
}), it.PREVIOUS_QUARTER, new
|
|
15516
|
+
}), it.PREVIOUS_QUARTER, new iS({
|
|
15485
15517
|
key: it.PREVIOUS_QUARTER,
|
|
15486
15518
|
display: "Previous quarter",
|
|
15487
15519
|
timeframeText: "Quarter",
|
|
@@ -15493,7 +15525,7 @@ it.FIFTEEN_MIN, new le({
|
|
|
15493
15525
|
dataGranularity: "daily",
|
|
15494
15526
|
isRelative: !1,
|
|
15495
15527
|
allowedTiers: ["plus", "enterprise"]
|
|
15496
|
-
}), it.PREVIOUS_YEAR, new
|
|
15528
|
+
}), it.PREVIOUS_YEAR, new rS({
|
|
15497
15529
|
key: it.PREVIOUS_YEAR,
|
|
15498
15530
|
display: "Previous year",
|
|
15499
15531
|
timeframeText: "Year",
|
|
@@ -15508,12 +15540,12 @@ it.FIFTEEN_MIN, new le({
|
|
|
15508
15540
|
allowedTiers: ["plus", "enterprise"]
|
|
15509
15541
|
});
|
|
15510
15542
|
function zd(n, t) {
|
|
15511
|
-
return
|
|
15543
|
+
return vM(n.getTimezoneOffset() - t.getTimezoneOffset());
|
|
15512
15544
|
}
|
|
15513
15545
|
it.FIFTEEN_MIN, it.ONE_HOUR, it.SIX_HOUR, it.TWELVE_HOUR, it.ONE_DAY, it.SEVEN_DAY, it.FIFTEEN_MIN, it.ONE_HOUR, it.SIX_HOUR, it.TWELVE_HOUR, it.ONE_DAY, it.SEVEN_DAY, it.THIRTY_DAY, it.NINETY_DAY, it.ONE_HUNDRED_EIGHTY_DAY, it.ONE_YEAR, it.CURRENT_WEEK, it.CURRENT_MONTH, it.CURRENT_QUARTER, it.CURRENT_YEAR, it.PREVIOUS_WEEK, it.PREVIOUS_MONTH, it.PREVIOUS_QUARTER, it.PREVIOUS_YEAR;
|
|
15514
|
-
const
|
|
15546
|
+
const aS = new Map(lg.map((n) => [n.code, { code: n.code, name: n.name }])), Yl = (n) => {
|
|
15515
15547
|
var t;
|
|
15516
|
-
return ((t =
|
|
15548
|
+
return ((t = aS.get(n)) == null ? void 0 : t.name) || n;
|
|
15517
15549
|
};
|
|
15518
15550
|
var vg = { exports: {} };
|
|
15519
15551
|
(function(n) {
|
|
@@ -15542,10 +15574,10 @@ var vg = { exports: {} };
|
|
|
15542
15574
|
l.addCommas = t, n.exports = l;
|
|
15543
15575
|
})();
|
|
15544
15576
|
})(vg);
|
|
15545
|
-
var
|
|
15546
|
-
const rl = /* @__PURE__ */
|
|
15577
|
+
var oS = vg.exports;
|
|
15578
|
+
const rl = /* @__PURE__ */ ZM(oS);
|
|
15547
15579
|
var Hd;
|
|
15548
|
-
const
|
|
15580
|
+
const lS = typeof document < "u" && ((Hd = document.documentElement) == null ? void 0 : Hd.lang) || "en-US", ha = new Intl.NumberFormat(lS);
|
|
15549
15581
|
function ds({
|
|
15550
15582
|
i18n: n
|
|
15551
15583
|
}) {
|
|
@@ -15667,12 +15699,12 @@ const Aa = (n) => ["interactive", "zoom-interactive"].includes(n), xg = (n, t, e
|
|
|
15667
15699
|
};
|
|
15668
15700
|
}).sort(r), n.left = `${e.x}px`, n.top = `${e.y}px`, n.showTooltip = !0;
|
|
15669
15701
|
}
|
|
15670
|
-
},
|
|
15702
|
+
}, cS = (n) => n && n.datasets && n.datasets.length, uS = (n) => cS(n) && n.datasets.some((t) => t.data.length), dS = (n) => n.datasets.some((t) => t.data[0] && xc(t.data[0].x)), hS = (n) => !!uS(n) && n.datasets.some((t) => t.data.length == 1), fS = (n) => dS(n) && n.datasets.some(
|
|
15671
15703
|
(t) => t.data[0] && (t.data[0].x ?? 0).toString().length >= 13
|
|
15672
15704
|
), kc = (n, t, e) => {
|
|
15673
15705
|
const s = Math.min(t / 1150, 1), r = 0.15, a = 1.15, o = n.x ?? 0;
|
|
15674
15706
|
return o < e ? o + t * r * (1 - s) : o - t * a * (1 - s);
|
|
15675
|
-
},
|
|
15707
|
+
}, gS = (n, t, e) => {
|
|
15676
15708
|
const r = n.y ?? 0;
|
|
15677
15709
|
return r < e ? r + t * 0.15 : r - t * 0.5;
|
|
15678
15710
|
};
|
|
@@ -15694,7 +15726,7 @@ const Sg = (n, t, e) => {
|
|
|
15694
15726
|
value: t && t[s.text],
|
|
15695
15727
|
isSegmentEmpty: i.datasets[r].isSegmentEmpty
|
|
15696
15728
|
})).sort(e);
|
|
15697
|
-
},
|
|
15729
|
+
}, gP = 2, mS = 10, pS = 12, $l = 10, Bd = "#6c7489", yS = "#d60027", bS = "#ad000e", Cc = "#6c7489", Wd = "#52596e", _S = "#007d60", vS = "#995c00", xS = "#ffc400", fr = "16px", wS = "20px", MS = "'Inter', Roboto, Helvetica, sans-serif", Yd = {
|
|
15698
15730
|
"1XXCount|1XX|1[0-9][0-9]": { solid: "#0072E5", light: "#4DA6FF", description: "Informational" },
|
|
15699
15731
|
"SuccessfulRequests|2XXCount|2XX|2[0-9][0-9]|SUCCESS": { solid: "#0BB652", light: "#6FCC83", description: "Success" },
|
|
15700
15732
|
"3XXCount|3XX|3[0-9][0-9]": { solid: "#FDC53B", light: "#FFD982", description: "Redirection" },
|
|
@@ -15717,68 +15749,68 @@ const Sg = (n, t, e) => {
|
|
|
15717
15749
|
"#00bbf9",
|
|
15718
15750
|
"#00c4b0",
|
|
15719
15751
|
"#ffdf15"
|
|
15720
|
-
], jl = (n, t) => (t || ti)[n % ti.length],
|
|
15752
|
+
], jl = (n, t) => (t || ti)[n % ti.length], SS = (n, t) => {
|
|
15721
15753
|
n[0] === "#" && (n = n.slice(1));
|
|
15722
15754
|
let e = parseInt(n.substring(0, 2), 16), i = parseInt(n.substring(2, 4), 16), s = parseInt(n.substring(4, 6), 16);
|
|
15723
15755
|
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);
|
|
15724
15756
|
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);
|
|
15725
15757
|
return `#${r}${a}${o}`;
|
|
15726
|
-
},
|
|
15758
|
+
}, TS = "#6f7787", DS = {
|
|
15727
15759
|
100: { background: "#f0f5fd", text: "#10599e" },
|
|
15728
15760
|
200: { background: "#e5f7f4", text: "#1b6955" },
|
|
15729
15761
|
300: { background: "#fff1d5", text: "#a06027" },
|
|
15730
15762
|
400: { background: "#fee3b6", text: "#944d19" },
|
|
15731
15763
|
500: { background: "#fedada", text: "#852021" }
|
|
15732
|
-
},
|
|
15764
|
+
}, mP = (n) => {
|
|
15733
15765
|
var e;
|
|
15734
15766
|
const t = Math.floor(parseInt(n, 10) / 100) * 100;
|
|
15735
|
-
return ((e =
|
|
15736
|
-
},
|
|
15767
|
+
return ((e = DS[t]) == null ? void 0 : e.background) || "#fafafa";
|
|
15768
|
+
}, pP = {
|
|
15737
15769
|
SUCCESS: "#6FCC83",
|
|
15738
15770
|
FAILURE: "#FF8484"
|
|
15739
|
-
},
|
|
15771
|
+
}, yP = {
|
|
15740
15772
|
"4XX": "#FFBA81",
|
|
15741
15773
|
"5XX": "#FF8484"
|
|
15742
|
-
},
|
|
15774
|
+
}, bP = {
|
|
15743
15775
|
LatencyP99: "#1356cb",
|
|
15744
15776
|
LatencyP95: "#1fbecd",
|
|
15745
15777
|
LatencyP50: "#1df97d"
|
|
15746
|
-
},
|
|
15778
|
+
}, _P = "#dad4c7", kS = "#afb7c5", vP = (n) => {
|
|
15747
15779
|
const t = Object.entries(Yd).find(([e]) => new RegExp(e).test(n));
|
|
15748
15780
|
return t && t[1] || Yd.standard;
|
|
15749
15781
|
}, Tg = (n, t, e, i) => {
|
|
15750
15782
|
let s;
|
|
15751
|
-
return e ? s =
|
|
15783
|
+
return e ? s = kS : Array.isArray(i) ? s = jl(n, i) : s = i[t], s || jl(n);
|
|
15752
15784
|
}, al = (n) => {
|
|
15753
15785
|
switch (n) {
|
|
15754
15786
|
case "error":
|
|
15755
|
-
return
|
|
15787
|
+
return yS;
|
|
15756
15788
|
case "warning":
|
|
15757
|
-
return
|
|
15789
|
+
return xS;
|
|
15758
15790
|
case "neutral":
|
|
15759
15791
|
return Bd;
|
|
15760
15792
|
default:
|
|
15761
15793
|
return Bd;
|
|
15762
15794
|
}
|
|
15763
|
-
},
|
|
15795
|
+
}, CS = {
|
|
15764
15796
|
lineTension: 0,
|
|
15765
15797
|
pointBorderWidth: 1.2,
|
|
15766
15798
|
borderJoinStyle: "round",
|
|
15767
15799
|
fill: !0
|
|
15768
|
-
},
|
|
15800
|
+
}, OS = 2, PS = 0, ol = /* @__PURE__ */ new Map(), $d = (n, t) => {
|
|
15769
15801
|
const { i18n: e } = _t.useI18n(), { formatBytes: i } = ds({ i18n: e });
|
|
15770
15802
|
return t === "bytes" ? i(n) : t === "count/minute" ? n.toFixed(2) : ha.format(n);
|
|
15771
|
-
},
|
|
15803
|
+
}, ES = (n) => {
|
|
15772
15804
|
const e = document.createElement("canvas").getContext("2d"), i = Bt({});
|
|
15773
15805
|
return e.font = i.string, e.measureText(n).width;
|
|
15774
|
-
},
|
|
15806
|
+
}, AS = () => {
|
|
15775
15807
|
const n = "label_height";
|
|
15776
15808
|
if (!ol.has(n)) {
|
|
15777
15809
|
const t = Bt({});
|
|
15778
15810
|
ol.set(n, t.lineHeight);
|
|
15779
15811
|
}
|
|
15780
15812
|
return ol.get(n);
|
|
15781
|
-
},
|
|
15813
|
+
}, RS = (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), IS = (n, t) => t === 0 ? " (0.0%)" : ` (${(n / t * 100).toFixed(1)}%)`, jd = "#e0e4ea", LS = {
|
|
15782
15814
|
100: ["#c8e2fd", "#80bfff", "#4da6ff", "#1a8cff", "#0072e5", "#0059b2"],
|
|
15783
15815
|
200: ["#ceedd2", "#9edca6", "#89d595", "#6fcc83", "#44c26b", "#0bb652", "#0ca84a", "#169643", "#196e33", "#1b572a"],
|
|
15784
15816
|
300: ["#fff4db", "#ffe9b8", "#ffe2a1", "#ffd982", "#ffd062", "#fdc53b", "#f4bb1e", "#e8b00b", "#d9a30f", "#c89407"],
|
|
@@ -15786,11 +15818,11 @@ const Sg = (n, t, e) => {
|
|
|
15786
15818
|
500: ["#ffd5d5", "#ffb6b6", "#ff9d9d", "#ff8484", "#ff6a6a", "#ff4545", "#fb1f1f", "#e90b0b", "#d40202", "#be0202"]
|
|
15787
15819
|
}, Ns = (n, t) => {
|
|
15788
15820
|
let e = 1;
|
|
15789
|
-
const i =
|
|
15821
|
+
const i = LS[n], s = /* @__PURE__ */ new Map();
|
|
15790
15822
|
for (const r of t)
|
|
15791
15823
|
s.set(r, i[e]), e = e % (i.length - 1) + 1;
|
|
15792
15824
|
return s.set(-1, i[0]), s;
|
|
15793
|
-
},
|
|
15825
|
+
}, NS = /* @__PURE__ */ new Map([
|
|
15794
15826
|
[100, Ns("100", [100, 101, 102, 103])],
|
|
15795
15827
|
[200, Ns("200", [200, 201, 202, 203, 204, 205, 206, 207, 208, 226])],
|
|
15796
15828
|
[300, Ns("300", [300, 301, 302, 303, 304, 305, 307, 308])],
|
|
@@ -15827,13 +15859,13 @@ const Sg = (n, t, e) => {
|
|
|
15827
15859
|
])],
|
|
15828
15860
|
[500, Ns("500", [500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511])]
|
|
15829
15861
|
]), Dg = (n) => {
|
|
15830
|
-
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i =
|
|
15862
|
+
const t = parseInt(n, 10), e = Math.floor(t / 100) * 100, i = NS.get(e);
|
|
15831
15863
|
return i === void 0 ? jd : i.get(t) ?? i.get(-1) ?? jd;
|
|
15832
|
-
},
|
|
15864
|
+
}, xP = (n) => {
|
|
15833
15865
|
const t = Dg(n);
|
|
15834
15866
|
return { solid: t, light: t };
|
|
15835
|
-
},
|
|
15836
|
-
...
|
|
15867
|
+
}, FS = Array.from({ length: 500 }, (n, t) => 100 + t), ll = {
|
|
15868
|
+
...FS.reduce((n, t) => (n[`${t}`] = Dg(`${t}`), n), {}),
|
|
15837
15869
|
____OTHER____: "#DAD4C7",
|
|
15838
15870
|
"1XX": "#4DA6FF",
|
|
15839
15871
|
"2XX": "#6FCC83",
|
|
@@ -15842,30 +15874,30 @@ const Sg = (n, t, e) => {
|
|
|
15842
15874
|
"5XX": "#FF8484"
|
|
15843
15875
|
};
|
|
15844
15876
|
function Ud(n, t, e) {
|
|
15845
|
-
const i = Gf(), s =
|
|
15846
|
-
return "formatToParts" in s ?
|
|
15877
|
+
const i = Gf(), s = BS(n, e.timeZone, e.locale ?? i.locale);
|
|
15878
|
+
return "formatToParts" in s ? zS(s, t) : HS(s, t);
|
|
15847
15879
|
}
|
|
15848
|
-
function
|
|
15880
|
+
function zS(n, t) {
|
|
15849
15881
|
const e = n.formatToParts(t);
|
|
15850
15882
|
for (let i = e.length - 1; i >= 0; --i)
|
|
15851
15883
|
if (e[i].type === "timeZoneName")
|
|
15852
15884
|
return e[i].value;
|
|
15853
15885
|
}
|
|
15854
|
-
function
|
|
15886
|
+
function HS(n, t) {
|
|
15855
15887
|
const e = n.format(t).replace(/\u200E/g, ""), i = / [\w-+ ]+$/.exec(e);
|
|
15856
15888
|
return i ? i[0].substr(1) : "";
|
|
15857
15889
|
}
|
|
15858
|
-
function
|
|
15890
|
+
function BS(n, t, e) {
|
|
15859
15891
|
return new Intl.DateTimeFormat(e ? [e.code, "en-US"] : void 0, {
|
|
15860
15892
|
timeZone: t,
|
|
15861
15893
|
timeZoneName: n
|
|
15862
15894
|
});
|
|
15863
15895
|
}
|
|
15864
|
-
function
|
|
15865
|
-
const e =
|
|
15866
|
-
return "formatToParts" in e ?
|
|
15896
|
+
function WS(n, t) {
|
|
15897
|
+
const e = VS(t);
|
|
15898
|
+
return "formatToParts" in e ? $S(e, n) : jS(e, n);
|
|
15867
15899
|
}
|
|
15868
|
-
const
|
|
15900
|
+
const YS = {
|
|
15869
15901
|
year: 0,
|
|
15870
15902
|
month: 1,
|
|
15871
15903
|
day: 2,
|
|
@@ -15873,11 +15905,11 @@ const BS = {
|
|
|
15873
15905
|
minute: 4,
|
|
15874
15906
|
second: 5
|
|
15875
15907
|
};
|
|
15876
|
-
function
|
|
15908
|
+
function $S(n, t) {
|
|
15877
15909
|
try {
|
|
15878
15910
|
const e = n.formatToParts(t), i = [];
|
|
15879
15911
|
for (let s = 0; s < e.length; s++) {
|
|
15880
|
-
const r =
|
|
15912
|
+
const r = YS[e[s].type];
|
|
15881
15913
|
r !== void 0 && (i[r] = parseInt(e[s].value, 10));
|
|
15882
15914
|
}
|
|
15883
15915
|
return i;
|
|
@@ -15887,7 +15919,7 @@ function WS(n, t) {
|
|
|
15887
15919
|
throw e;
|
|
15888
15920
|
}
|
|
15889
15921
|
}
|
|
15890
|
-
function
|
|
15922
|
+
function jS(n, t) {
|
|
15891
15923
|
const e = n.format(t), i = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(e);
|
|
15892
15924
|
return [
|
|
15893
15925
|
parseInt(i[3], 10),
|
|
@@ -15907,9 +15939,9 @@ const cl = {}, Vd = new Intl.DateTimeFormat("en-US", {
|
|
|
15907
15939
|
hour: "2-digit",
|
|
15908
15940
|
minute: "2-digit",
|
|
15909
15941
|
second: "2-digit"
|
|
15910
|
-
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")),
|
|
15911
|
-
function
|
|
15912
|
-
return cl[n] || (cl[n] =
|
|
15942
|
+
}).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), US = Vd === "06/25/2014, 00:00:00" || Vd === "06/25/2014 00:00:00";
|
|
15943
|
+
function VS(n) {
|
|
15944
|
+
return cl[n] || (cl[n] = US ? new Intl.DateTimeFormat("en-US", {
|
|
15913
15945
|
hourCycle: "h23",
|
|
15914
15946
|
timeZone: n,
|
|
15915
15947
|
year: "numeric",
|
|
@@ -15933,7 +15965,7 @@ function kg(n, t, e, i, s, r, a) {
|
|
|
15933
15965
|
const o = /* @__PURE__ */ new Date(0);
|
|
15934
15966
|
return o.setUTCFullYear(n, t, e), o.setUTCHours(i, s, r, a), o;
|
|
15935
15967
|
}
|
|
15936
|
-
const qd = 36e5,
|
|
15968
|
+
const qd = 36e5, qS = 6e4, ul = {
|
|
15937
15969
|
timezoneZ: /^(Z)$/,
|
|
15938
15970
|
timezoneHH: /^([+-]\d{2})$/,
|
|
15939
15971
|
timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
|
|
@@ -15950,25 +15982,25 @@ function Oc(n, t, e) {
|
|
|
15950
15982
|
if (i = ul.timezoneHHMM.exec(n), i) {
|
|
15951
15983
|
s = parseInt(i[2], 10);
|
|
15952
15984
|
const a = parseInt(i[3], 10);
|
|
15953
|
-
return Xd(s, a) ? (r = Math.abs(s) * qd + a *
|
|
15985
|
+
return Xd(s, a) ? (r = Math.abs(s) * qd + a * qS, i[1] === "+" ? -r : r) : NaN;
|
|
15954
15986
|
}
|
|
15955
|
-
if (
|
|
15987
|
+
if (KS(n)) {
|
|
15956
15988
|
t = new Date(t || Date.now());
|
|
15957
|
-
const a = e ? t :
|
|
15958
|
-
return -(e ? o :
|
|
15989
|
+
const a = e ? t : XS(t), o = Ul(a, n);
|
|
15990
|
+
return -(e ? o : GS(t, o, n));
|
|
15959
15991
|
}
|
|
15960
15992
|
return NaN;
|
|
15961
15993
|
}
|
|
15962
|
-
function
|
|
15994
|
+
function XS(n) {
|
|
15963
15995
|
return kg(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds());
|
|
15964
15996
|
}
|
|
15965
15997
|
function Ul(n, t) {
|
|
15966
|
-
const e =
|
|
15998
|
+
const e = WS(n, t), i = kg(e[0], e[1] - 1, e[2], e[3] % 24, e[4], e[5], 0).getTime();
|
|
15967
15999
|
let s = n.getTime();
|
|
15968
16000
|
const r = s % 1e3;
|
|
15969
16001
|
return s -= r >= 0 ? r : 1e3 + r, i - s;
|
|
15970
16002
|
}
|
|
15971
|
-
function
|
|
16003
|
+
function GS(n, t, e) {
|
|
15972
16004
|
let s = n.getTime() - t;
|
|
15973
16005
|
const r = Ul(new Date(s), e);
|
|
15974
16006
|
if (t === r)
|
|
@@ -15981,7 +16013,7 @@ function Xd(n, t) {
|
|
|
15981
16013
|
return -23 <= n && n <= 23 && (t == null || 0 <= t && t <= 59);
|
|
15982
16014
|
}
|
|
15983
16015
|
const Gd = {};
|
|
15984
|
-
function
|
|
16016
|
+
function KS(n) {
|
|
15985
16017
|
if (Gd[n])
|
|
15986
16018
|
return !0;
|
|
15987
16019
|
try {
|
|
@@ -15990,7 +16022,7 @@ function XS(n) {
|
|
|
15990
16022
|
return !1;
|
|
15991
16023
|
}
|
|
15992
16024
|
}
|
|
15993
|
-
const
|
|
16025
|
+
const ZS = 60 * 1e3, QS = {
|
|
15994
16026
|
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
15995
16027
|
X: function(n, t, e) {
|
|
15996
16028
|
const i = dl(e.timeZone, n);
|
|
@@ -16030,7 +16062,7 @@ const GS = 60 * 1e3, KS = {
|
|
|
16030
16062
|
case "O":
|
|
16031
16063
|
case "OO":
|
|
16032
16064
|
case "OOO":
|
|
16033
|
-
return "GMT" +
|
|
16065
|
+
return "GMT" + JS(i, ":");
|
|
16034
16066
|
case "OOOO":
|
|
16035
16067
|
default:
|
|
16036
16068
|
return "GMT" + Xi(i, ":");
|
|
@@ -16050,7 +16082,7 @@ const GS = 60 * 1e3, KS = {
|
|
|
16050
16082
|
}
|
|
16051
16083
|
};
|
|
16052
16084
|
function dl(n, t) {
|
|
16053
|
-
const e = n ? Oc(n, t, !0) /
|
|
16085
|
+
const e = n ? Oc(n, t, !0) / ZS : (t == null ? void 0 : t.getTimezoneOffset()) ?? 0;
|
|
16054
16086
|
if (Number.isNaN(e))
|
|
16055
16087
|
throw new RangeError("Invalid time zone specified: " + n);
|
|
16056
16088
|
return e;
|
|
@@ -16069,7 +16101,7 @@ function Xi(n, t = "") {
|
|
|
16069
16101
|
function Kd(n, t) {
|
|
16070
16102
|
return n % 60 === 0 ? (n > 0 ? "-" : "+") + Ra(Math.abs(n) / 60, 2) : Xi(n, t);
|
|
16071
16103
|
}
|
|
16072
|
-
function
|
|
16104
|
+
function JS(n, t = "") {
|
|
16073
16105
|
const e = n > 0 ? "-" : "+", i = Math.abs(n), s = Math.floor(i / 60), r = i % 60;
|
|
16074
16106
|
return r === 0 ? e + String(s) : e + String(s) + t + Ra(r, 2);
|
|
16075
16107
|
}
|
|
@@ -16077,7 +16109,7 @@ function Zd(n) {
|
|
|
16077
16109
|
const t = new Date(Date.UTC(n.getFullYear(), n.getMonth(), n.getDate(), n.getHours(), n.getMinutes(), n.getSeconds(), n.getMilliseconds()));
|
|
16078
16110
|
return t.setUTCFullYear(n.getFullYear()), +n - +t;
|
|
16079
16111
|
}
|
|
16080
|
-
const
|
|
16112
|
+
const tT = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, hl = 36e5, Qd = 6e4, eT = 2, ke = {
|
|
16081
16113
|
dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
|
|
16082
16114
|
datePattern: /^([0-9W+-]+)(.*)/,
|
|
16083
16115
|
// year tokens
|
|
@@ -16109,14 +16141,14 @@ const QS = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
|
|
|
16109
16141
|
HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
16110
16142
|
HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
|
|
16111
16143
|
// time zone tokens (to identify the presence of a tz)
|
|
16112
|
-
timeZone:
|
|
16144
|
+
timeZone: tT
|
|
16113
16145
|
};
|
|
16114
16146
|
function Cg(n, t = {}) {
|
|
16115
16147
|
if (arguments.length < 1)
|
|
16116
16148
|
throw new TypeError("1 argument required, but only " + arguments.length + " present");
|
|
16117
16149
|
if (n === null)
|
|
16118
16150
|
return /* @__PURE__ */ new Date(NaN);
|
|
16119
|
-
const e = t.additionalDigits == null ?
|
|
16151
|
+
const e = t.additionalDigits == null ? eT : Number(t.additionalDigits);
|
|
16120
16152
|
if (e !== 2 && e !== 1 && e !== 0)
|
|
16121
16153
|
throw new RangeError("additionalDigits must be 0, 1 or 2");
|
|
16122
16154
|
if (n instanceof Date || typeof n == "object" && Object.prototype.toString.call(n) === "[object Date]")
|
|
@@ -16125,13 +16157,13 @@ function Cg(n, t = {}) {
|
|
|
16125
16157
|
return new Date(n);
|
|
16126
16158
|
if (Object.prototype.toString.call(n) !== "[object String]")
|
|
16127
16159
|
return /* @__PURE__ */ new Date(NaN);
|
|
16128
|
-
const i =
|
|
16160
|
+
const i = nT(n), { year: s, restDateString: r } = iT(i.date, e), a = sT(r, s);
|
|
16129
16161
|
if (a === null || isNaN(a.getTime()))
|
|
16130
16162
|
return /* @__PURE__ */ new Date(NaN);
|
|
16131
16163
|
if (a) {
|
|
16132
16164
|
const o = a.getTime();
|
|
16133
16165
|
let l = 0, c;
|
|
16134
|
-
if (i.time && (l =
|
|
16166
|
+
if (i.time && (l = rT(i.time), l === null || isNaN(l)))
|
|
16135
16167
|
return /* @__PURE__ */ new Date(NaN);
|
|
16136
16168
|
if (i.timeZone || t.timeZone) {
|
|
16137
16169
|
if (c = Oc(i.timeZone || t.timeZone, new Date(o + l)), isNaN(c))
|
|
@@ -16142,7 +16174,7 @@ function Cg(n, t = {}) {
|
|
|
16142
16174
|
} else
|
|
16143
16175
|
return /* @__PURE__ */ new Date(NaN);
|
|
16144
16176
|
}
|
|
16145
|
-
function
|
|
16177
|
+
function nT(n) {
|
|
16146
16178
|
const t = {};
|
|
16147
16179
|
let e = ke.dateTimePattern.exec(n), i;
|
|
16148
16180
|
if (e ? (t.date = e[1], i = e[3]) : (e = ke.datePattern.exec(n), e ? (t.date = e[1], i = e[2]) : (t.date = null, i = n)), i) {
|
|
@@ -16151,7 +16183,7 @@ function tT(n) {
|
|
|
16151
16183
|
}
|
|
16152
16184
|
return t;
|
|
16153
16185
|
}
|
|
16154
|
-
function
|
|
16186
|
+
function iT(n, t) {
|
|
16155
16187
|
if (n) {
|
|
16156
16188
|
const e = ke.YYY[t], i = ke.YYYYY[t];
|
|
16157
16189
|
let s = ke.YYYY.exec(n) || i.exec(n);
|
|
@@ -16174,7 +16206,7 @@ function eT(n, t) {
|
|
|
16174
16206
|
year: null
|
|
16175
16207
|
};
|
|
16176
16208
|
}
|
|
16177
|
-
function
|
|
16209
|
+
function sT(n, t) {
|
|
16178
16210
|
if (t === null)
|
|
16179
16211
|
return null;
|
|
16180
16212
|
let e, i, s;
|
|
@@ -16186,7 +16218,7 @@ function nT(n, t) {
|
|
|
16186
16218
|
if (r = ke.DDD.exec(n), r) {
|
|
16187
16219
|
e = /* @__PURE__ */ new Date(0);
|
|
16188
16220
|
const a = parseInt(r[1], 10);
|
|
16189
|
-
return
|
|
16221
|
+
return lT(t, a) ? (e.setUTCFullYear(t, 0, a), e) : /* @__PURE__ */ new Date(NaN);
|
|
16190
16222
|
}
|
|
16191
16223
|
if (r = ke.MMDD.exec(n), r) {
|
|
16192
16224
|
e = /* @__PURE__ */ new Date(0), i = parseInt(r[1], 10) - 1;
|
|
@@ -16202,7 +16234,7 @@ function nT(n, t) {
|
|
|
16202
16234
|
}
|
|
16203
16235
|
return null;
|
|
16204
16236
|
}
|
|
16205
|
-
function
|
|
16237
|
+
function rT(n) {
|
|
16206
16238
|
let t, e, i = ke.HH.exec(n);
|
|
16207
16239
|
if (i)
|
|
16208
16240
|
return t = parseFloat(i[1].replace(",", ".")), fl(t) ? t % 24 * hl : NaN;
|
|
@@ -16222,7 +16254,7 @@ function Jd(n, t, e) {
|
|
|
16222
16254
|
const s = i.getUTCDay() || 7, r = t * 7 + e + 1 - s;
|
|
16223
16255
|
return i.setUTCDate(i.getUTCDate() + r), i;
|
|
16224
16256
|
}
|
|
16225
|
-
const
|
|
16257
|
+
const aT = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], oT = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
16226
16258
|
function Og(n) {
|
|
16227
16259
|
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
16228
16260
|
}
|
|
@@ -16233,12 +16265,12 @@ function th(n, t, e) {
|
|
|
16233
16265
|
if (e < 1)
|
|
16234
16266
|
return !1;
|
|
16235
16267
|
const i = Og(n);
|
|
16236
|
-
if (i && e >
|
|
16268
|
+
if (i && e > oT[t] || !i && e > aT[t])
|
|
16237
16269
|
return !1;
|
|
16238
16270
|
}
|
|
16239
16271
|
return !0;
|
|
16240
16272
|
}
|
|
16241
|
-
function
|
|
16273
|
+
function lT(n, t) {
|
|
16242
16274
|
if (t < 1)
|
|
16243
16275
|
return !1;
|
|
16244
16276
|
const e = Og(n);
|
|
@@ -16250,22 +16282,22 @@ function eh(n, t) {
|
|
|
16250
16282
|
function fl(n, t, e) {
|
|
16251
16283
|
return !(n < 0 || n >= 25 || t != null && (t < 0 || t >= 60) || e != null && (e < 0 || e >= 60));
|
|
16252
16284
|
}
|
|
16253
|
-
const
|
|
16285
|
+
const cT = /([xXOz]+)|''|'(''|[^'])+('|$)/g;
|
|
16254
16286
|
function Vl(n, t, e = {}) {
|
|
16255
16287
|
t = String(t);
|
|
16256
|
-
const i = t.match(
|
|
16288
|
+
const i = t.match(cT);
|
|
16257
16289
|
if (i) {
|
|
16258
16290
|
const s = Cg(e.originalDate || n, e);
|
|
16259
16291
|
t = i.reduce(function(r, a) {
|
|
16260
16292
|
if (a[0] === "'")
|
|
16261
16293
|
return r;
|
|
16262
|
-
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" +
|
|
16294
|
+
const o = r.indexOf(a), l = r[o - 1] === "'", c = r.replace(a, "'" + QS[a[0]](s, a, e) + "'");
|
|
16263
16295
|
return l ? c.substring(0, o - 1) + c.substring(o + 1) : c;
|
|
16264
16296
|
}, t);
|
|
16265
16297
|
}
|
|
16266
16298
|
return Da(n, t, e);
|
|
16267
16299
|
}
|
|
16268
|
-
function
|
|
16300
|
+
function uT(n, t, e) {
|
|
16269
16301
|
n = Cg(n, e);
|
|
16270
16302
|
const i = Oc(t, n, !0), s = new Date(n.getTime() - i), r = /* @__PURE__ */ new Date(0);
|
|
16271
16303
|
return r.setFullYear(s.getUTCFullYear(), s.getUTCMonth(), s.getUTCDate()), r.setHours(s.getUTCHours(), s.getUTCMinutes(), s.getUTCSeconds(), s.getUTCMilliseconds()), r;
|
|
@@ -16275,9 +16307,9 @@ function er(n, t, e, i) {
|
|
|
16275
16307
|
...i,
|
|
16276
16308
|
timeZone: t,
|
|
16277
16309
|
originalDate: n
|
|
16278
|
-
}, Vl(
|
|
16310
|
+
}, Vl(uT(n, t, { timeZone: i.timeZone }), e, i);
|
|
16279
16311
|
}
|
|
16280
|
-
const
|
|
16312
|
+
const dT = (n, t) => `${er(n, t, "yyyy")} W${er(n, t, "II")}`, gl = "yyyy-MM-dd h:mm:ss a", ml = "h:mm:ss a", pi = "yyyy-MM-dd h:mm a", Ui = "h:mm a", hT = "yyyy-MM-dd", pl = "MMM dd, yyyy h:mm:ss a", Bn = "MMM dd, yyyy h:mm a", fT = {
|
|
16281
16313
|
secondly: (n) => n ? gl : ml,
|
|
16282
16314
|
tenSecondly: (n) => n ? gl : ml,
|
|
16283
16315
|
thirtySecondly: (n) => n ? gl : ml,
|
|
@@ -16288,8 +16320,8 @@ const cT = (n, t) => `${er(n, t, "yyyy")} W${er(n, t, "II")}`, gl = "yyyy-MM-dd
|
|
|
16288
16320
|
hourly: (n) => n ? pi : Ui,
|
|
16289
16321
|
twoHourly: (n) => n ? pi : Ui,
|
|
16290
16322
|
twelveHourly: () => pi,
|
|
16291
|
-
daily: () =>
|
|
16292
|
-
},
|
|
16323
|
+
daily: () => hT
|
|
16324
|
+
}, gT = {
|
|
16293
16325
|
secondly: () => pl,
|
|
16294
16326
|
tenSecondly: () => pl,
|
|
16295
16327
|
thirtySecondly: () => pl,
|
|
@@ -16313,7 +16345,7 @@ function Pg({
|
|
|
16313
16345
|
}) {
|
|
16314
16346
|
const o = e || Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
16315
16347
|
if (t === "weekly")
|
|
16316
|
-
return
|
|
16348
|
+
return dT(n, o);
|
|
16317
16349
|
if (s && s[t]) {
|
|
16318
16350
|
const l = s[t](i);
|
|
16319
16351
|
return er(n, o, l);
|
|
@@ -16324,7 +16356,7 @@ function Pg({
|
|
|
16324
16356
|
}
|
|
16325
16357
|
return er(n, o, a);
|
|
16326
16358
|
}
|
|
16327
|
-
const
|
|
16359
|
+
const mT = ({
|
|
16328
16360
|
tickValue: n,
|
|
16329
16361
|
granularity: t,
|
|
16330
16362
|
dayBoundaryCrossed: e,
|
|
@@ -16334,7 +16366,7 @@ const fT = ({
|
|
|
16334
16366
|
granularity: t,
|
|
16335
16367
|
timezone: i,
|
|
16336
16368
|
dayBoundaryCrossed: e,
|
|
16337
|
-
tickMap:
|
|
16369
|
+
tickMap: fT,
|
|
16338
16370
|
defaultFormat: "yyyy-MM-dd h:mm:ss a"
|
|
16339
16371
|
}), Us = ({
|
|
16340
16372
|
tickValue: n,
|
|
@@ -16344,9 +16376,9 @@ const fT = ({
|
|
|
16344
16376
|
tickValue: n,
|
|
16345
16377
|
granularity: t,
|
|
16346
16378
|
timezone: e,
|
|
16347
|
-
tooltipMap:
|
|
16379
|
+
tooltipMap: gT,
|
|
16348
16380
|
defaultFormat: "MMM dd, yyyy h:mm:ss a"
|
|
16349
|
-
}),
|
|
16381
|
+
}), wP = (n) => {
|
|
16350
16382
|
var e, i, s, r, a;
|
|
16351
16383
|
const { i18n: t } = _t.useI18n();
|
|
16352
16384
|
return (n == null ? void 0 : n.status) === 403 ? {
|
|
@@ -16371,7 +16403,7 @@ const fT = ({
|
|
|
16371
16403
|
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)
|
|
16372
16404
|
};
|
|
16373
16405
|
};
|
|
16374
|
-
function
|
|
16406
|
+
function pT(n) {
|
|
16375
16407
|
const e = `barChartTooltipPosition-${n.tooltipState.chartID}`, i = {
|
|
16376
16408
|
enabled: !1,
|
|
16377
16409
|
position: e,
|
|
@@ -16397,7 +16429,7 @@ function gT(n) {
|
|
|
16397
16429
|
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" && u.x !== null && h.inXRange(u.x, !0) && l.data.datasets[f].data[g] && d.push({ element: h, datasetIndex: f, index: g });
|
|
16398
16430
|
}), d;
|
|
16399
16431
|
};
|
|
16400
|
-
const s = n.numLabels.value > 25 ?
|
|
16432
|
+
const s = n.numLabels.value > 25 ? mS : pS, r = ({ chart: l, index: c }) => {
|
|
16401
16433
|
var d;
|
|
16402
16434
|
const u = l.data;
|
|
16403
16435
|
return {
|
|
@@ -16496,11 +16528,11 @@ function gT(n) {
|
|
|
16496
16528
|
}), o;
|
|
16497
16529
|
}
|
|
16498
16530
|
Fe.register(...fv);
|
|
16499
|
-
const
|
|
16531
|
+
const yT = (n, t) => {
|
|
16500
16532
|
const e = t.datasets.map((s) => s.label), i = n.datasets.map((s) => s.label);
|
|
16501
16533
|
return n.datasets.length === t.datasets.length && e.every((s, r) => s === i[r]);
|
|
16502
16534
|
};
|
|
16503
|
-
function
|
|
16535
|
+
function bT(n, t, e, i, s) {
|
|
16504
16536
|
const r = Ge(null), a = (o, l) => {
|
|
16505
16537
|
if (t.value)
|
|
16506
16538
|
return new Fe(t.value, {
|
|
@@ -16515,7 +16547,7 @@ function pT(n, t, e, i, s) {
|
|
|
16515
16547
|
}), Rh(() => {
|
|
16516
16548
|
ct(r.value) || r.value.destroy();
|
|
16517
16549
|
}), ue(e, (o, l) => {
|
|
16518
|
-
if (
|
|
16550
|
+
if (yT(l, o) && !ct(r.value)) {
|
|
16519
16551
|
for (const [c, u] of o.datasets.entries())
|
|
16520
16552
|
Object.assign(r.value.data.datasets[c], u);
|
|
16521
16553
|
r.value.data.labels = o.labels, r.value.update();
|
|
@@ -16560,9 +16592,9 @@ var Eg = { exports: {} };
|
|
|
16560
16592
|
l.addCommas = t, n.exports = l;
|
|
16561
16593
|
})();
|
|
16562
16594
|
})(Eg);
|
|
16563
|
-
var
|
|
16564
|
-
const Ia = /* @__PURE__ */ Pc(
|
|
16565
|
-
function
|
|
16595
|
+
var _T = Eg.exports;
|
|
16596
|
+
const Ia = /* @__PURE__ */ Pc(_T);
|
|
16597
|
+
function vT(n, t, e) {
|
|
16566
16598
|
const { i18n: i } = _t.useI18n(), { formatBytes: s } = ds({ i18n: i }), { translateUnit: r } = _t.useTranslatedUnits();
|
|
16567
16599
|
return { legendValues: L(() => n.value.datasets.reduce((o, l) => {
|
|
16568
16600
|
const c = l.total ? l.total : l.data.reduce((d, h) => d + (typeof h == "number" ? Number(h) || 0 : Number(h && h.y) || 0), 0);
|
|
@@ -16586,7 +16618,7 @@ function bT(n, t, e) {
|
|
|
16586
16618
|
};
|
|
16587
16619
|
}, {})) };
|
|
16588
16620
|
}
|
|
16589
|
-
function
|
|
16621
|
+
function xT(n) {
|
|
16590
16622
|
return L(() => {
|
|
16591
16623
|
var s;
|
|
16592
16624
|
if (!((s = n.value) != null && s.meta))
|
|
@@ -16595,7 +16627,7 @@ function _T(n) {
|
|
|
16595
16627
|
return e && i ? `${Fd(new Date(e))} - ${Fd(new Date(i), { includeTZ: !0 })}` : "";
|
|
16596
16628
|
});
|
|
16597
16629
|
}
|
|
16598
|
-
function
|
|
16630
|
+
function wT(n) {
|
|
16599
16631
|
const e = `donutChartTooltipPosition-${n.tooltipState.chartID}`, i = {
|
|
16600
16632
|
enabled: !1,
|
|
16601
16633
|
position: e,
|
|
@@ -16649,7 +16681,7 @@ function vT(n) {
|
|
|
16649
16681
|
options: s
|
|
16650
16682
|
};
|
|
16651
16683
|
}
|
|
16652
|
-
function
|
|
16684
|
+
function MT(n) {
|
|
16653
16685
|
const t = L(() => {
|
|
16654
16686
|
var l, c;
|
|
16655
16687
|
return {
|
|
@@ -16668,7 +16700,7 @@ function xT(n) {
|
|
|
16668
16700
|
maxRotation: 0,
|
|
16669
16701
|
callback: (u) => {
|
|
16670
16702
|
const d = new Date(u);
|
|
16671
|
-
return
|
|
16703
|
+
return mT({
|
|
16672
16704
|
tickValue: d,
|
|
16673
16705
|
granularity: n.granularity.value,
|
|
16674
16706
|
dayBoundaryCrossed: a.value
|
|
@@ -16720,7 +16752,7 @@ function xT(n) {
|
|
|
16720
16752
|
if (!l.length || n.tooltipState.interactionMode === "interactive" || c.x === null || c.y === null)
|
|
16721
16753
|
return !1;
|
|
16722
16754
|
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, y = kc(c, d, f);
|
|
16723
|
-
let _ =
|
|
16755
|
+
let _ = gS(c, h, g);
|
|
16724
16756
|
const x = c.y < g ? "top" : "bottom", M = c.x < f ? "left" : "center";
|
|
16725
16757
|
return h > u.height && (_ = 0), {
|
|
16726
16758
|
x: y,
|
|
@@ -16794,7 +16826,7 @@ function xT(n) {
|
|
|
16794
16826
|
options: o
|
|
16795
16827
|
};
|
|
16796
16828
|
}
|
|
16797
|
-
function
|
|
16829
|
+
function ST(n) {
|
|
16798
16830
|
const {
|
|
16799
16831
|
isMultiMetric: t,
|
|
16800
16832
|
hasDimensions: e,
|
|
@@ -16823,7 +16855,7 @@ function wT(n) {
|
|
|
16823
16855
|
};
|
|
16824
16856
|
});
|
|
16825
16857
|
}
|
|
16826
|
-
function
|
|
16858
|
+
function TT(n, t) {
|
|
16827
16859
|
const { i18n: e } = _t.useI18n();
|
|
16828
16860
|
return L(() => {
|
|
16829
16861
|
try {
|
|
@@ -16850,7 +16882,7 @@ function MT(n, t) {
|
|
|
16850
16882
|
name: Yl(b.id) || b.name
|
|
16851
16883
|
}))), h !== "status_code" && h !== "status_code_grouped" && (S.sort((b, w) => _.indexOf(b.id) - _.indexOf(w.id)), O.sort((b, w) => _.indexOf(b.id) - _.indexOf(w.id))), !S || !O)
|
|
16852
16884
|
return { labels: [], datasets: [] };
|
|
16853
|
-
const E =
|
|
16885
|
+
const E = ST({
|
|
16854
16886
|
isMultiMetric: l,
|
|
16855
16887
|
hasDimensions: c,
|
|
16856
16888
|
metricNames: a,
|
|
@@ -16873,7 +16905,7 @@ function MT(n, t) {
|
|
|
16873
16905
|
return { labels: [], datasets: [] };
|
|
16874
16906
|
});
|
|
16875
16907
|
}
|
|
16876
|
-
const
|
|
16908
|
+
const DT = (n, t, e = 1) => Array(Math.ceil((t - n) / e)).fill(n).map((i, s) => i + s * e), kT = (n) => {
|
|
16877
16909
|
if (typeof n == "string") {
|
|
16878
16910
|
const t = +n;
|
|
16879
16911
|
if (t)
|
|
@@ -16887,14 +16919,14 @@ const ST = (n, t, e = 1) => Array(Math.ceil((t - n) / e)).fill(n).map((i, s) =>
|
|
|
16887
16919
|
}
|
|
16888
16920
|
}
|
|
16889
16921
|
return n;
|
|
16890
|
-
},
|
|
16922
|
+
}, CT = (n, t, e, i, s) => {
|
|
16891
16923
|
const a = Math.max(
|
|
16892
16924
|
t - 6e4,
|
|
16893
16925
|
Math.max(...(s || []).map((c) => new Date(c.timestamp).valueOf()))
|
|
16894
16926
|
), o = Math.floor((n - i) / e) * e + i, l = Math.floor((a - i) / e) * e + i + e;
|
|
16895
|
-
return
|
|
16927
|
+
return DT(o, l, e);
|
|
16896
16928
|
};
|
|
16897
|
-
function
|
|
16929
|
+
function OT(n, t) {
|
|
16898
16930
|
const { i18n: e } = _t.useI18n();
|
|
16899
16931
|
return L(() => {
|
|
16900
16932
|
try {
|
|
@@ -16913,7 +16945,7 @@ function kT(n, t) {
|
|
|
16913
16945
|
return console.error("Invalid step value:", y), { datasets: [], labels: [] };
|
|
16914
16946
|
if (!s.length)
|
|
16915
16947
|
return { datasets: [], labels: [] };
|
|
16916
|
-
const _ =
|
|
16948
|
+
const _ = kT(c), x = CT(c, u, y, _, s), M = /* @__PURE__ */ new Set(), S = s != null && s.length ? s.reduce((k, T) => {
|
|
16917
16949
|
const m = new Date(T.timestamp).valueOf(), b = T.event;
|
|
16918
16950
|
for (const w of a)
|
|
16919
16951
|
M.add(w), m in k || (k[m] = {}), w in k[m] || (k[m][w] = {});
|
|
@@ -16936,9 +16968,9 @@ function kT(n, t) {
|
|
|
16936
16968
|
backgroundColor: R,
|
|
16937
16969
|
data: w,
|
|
16938
16970
|
total: w.reduce((z, { y: U }) => z + Number(U), 0),
|
|
16939
|
-
...
|
|
16971
|
+
...CS,
|
|
16940
16972
|
fill: A,
|
|
16941
|
-
borderWidth: A ?
|
|
16973
|
+
borderWidth: A ? PS : OS,
|
|
16942
16974
|
isSegmentEmpty: m
|
|
16943
16975
|
};
|
|
16944
16976
|
});
|
|
@@ -16952,7 +16984,7 @@ function kT(n, t) {
|
|
|
16952
16984
|
return { labels: [], datasets: [] };
|
|
16953
16985
|
});
|
|
16954
16986
|
}
|
|
16955
|
-
const
|
|
16987
|
+
const PT = (n, t) => {
|
|
16956
16988
|
ue(
|
|
16957
16989
|
[n, t],
|
|
16958
16990
|
(e, i, s) => {
|
|
@@ -16968,16 +17000,16 @@ const CT = (n, t) => {
|
|
|
16968
17000
|
{ immediate: !0 }
|
|
16969
17001
|
);
|
|
16970
17002
|
};
|
|
16971
|
-
function
|
|
17003
|
+
function ET() {
|
|
16972
17004
|
const { i18n: n } = _t.useI18n();
|
|
16973
17005
|
return { translateUnit: (e, i) => {
|
|
16974
17006
|
const s = i === 1, r = `chartUnits.${e}`;
|
|
16975
17007
|
return e === "usd" ? "" : n.te(r) ? n.t(r, { plural: s ? "" : "s" }) : e;
|
|
16976
17008
|
} };
|
|
16977
17009
|
}
|
|
16978
|
-
const
|
|
16979
|
-
function
|
|
16980
|
-
const n = sr(
|
|
17010
|
+
const AT = "analytics-query-provider", nh = 2;
|
|
17011
|
+
function RT() {
|
|
17012
|
+
const n = sr(AT);
|
|
16981
17013
|
return {
|
|
16982
17014
|
evaluateFeatureFlag: (e, i) => n ? n.evaluateFeatureFlagFn(e, i) : i
|
|
16983
17015
|
};
|
|
@@ -16987,14 +17019,14 @@ function Ec(n) {
|
|
|
16987
17019
|
}
|
|
16988
17020
|
const Ag = typeof window < "u" && typeof document < "u";
|
|
16989
17021
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
16990
|
-
const
|
|
17022
|
+
const IT = (n) => n != null, LT = Object.prototype.toString, NT = (n) => LT.call(n) === "[object Object]";
|
|
16991
17023
|
function fa(n) {
|
|
16992
17024
|
return Array.isArray(n) ? n : [n];
|
|
16993
17025
|
}
|
|
16994
|
-
function
|
|
17026
|
+
function FT(n) {
|
|
16995
17027
|
return ec();
|
|
16996
17028
|
}
|
|
16997
|
-
function
|
|
17029
|
+
function zT(n, t = {}) {
|
|
16998
17030
|
if (!vm(n))
|
|
16999
17031
|
return xm(n);
|
|
17000
17032
|
const e = Array.isArray(n.value) ? Array.from({ length: n.value.length }) : {};
|
|
@@ -17019,10 +17051,10 @@ function NT(n, t = {}) {
|
|
|
17019
17051
|
}));
|
|
17020
17052
|
return e;
|
|
17021
17053
|
}
|
|
17022
|
-
function
|
|
17023
|
-
|
|
17054
|
+
function HT(n, t = !0, e) {
|
|
17055
|
+
FT() ? ii(n, e) : t ? n() : Ih(n);
|
|
17024
17056
|
}
|
|
17025
|
-
function
|
|
17057
|
+
function BT(n, t, e) {
|
|
17026
17058
|
return ue(
|
|
17027
17059
|
n,
|
|
17028
17060
|
t,
|
|
@@ -17044,7 +17076,7 @@ function nr(...n) {
|
|
|
17044
17076
|
}, i = (o, l, c, u) => (o.addEventListener(l, c, u), () => o.removeEventListener(l, c, u)), s = L(() => {
|
|
17045
17077
|
const o = fa(Kt(n[0])).filter((l) => l != null);
|
|
17046
17078
|
return o.every((l) => typeof l != "string") ? o : void 0;
|
|
17047
|
-
}), r =
|
|
17079
|
+
}), r = BT(
|
|
17048
17080
|
() => {
|
|
17049
17081
|
var o, l;
|
|
17050
17082
|
return [
|
|
@@ -17058,7 +17090,7 @@ function nr(...n) {
|
|
|
17058
17090
|
([o, l, c, u]) => {
|
|
17059
17091
|
if (e(), !(o != null && o.length) || !(l != null && l.length) || !(c != null && c.length))
|
|
17060
17092
|
return;
|
|
17061
|
-
const d =
|
|
17093
|
+
const d = NT(u) ? { ...u } : u;
|
|
17062
17094
|
t.push(
|
|
17063
17095
|
...o.flatMap(
|
|
17064
17096
|
(h) => l.flatMap(
|
|
@@ -17074,7 +17106,7 @@ function nr(...n) {
|
|
|
17074
17106
|
return Ec(e), a;
|
|
17075
17107
|
}
|
|
17076
17108
|
// @__NO_SIDE_EFFECTS__
|
|
17077
|
-
function
|
|
17109
|
+
function WT() {
|
|
17078
17110
|
const n = Ge(!1), t = ec();
|
|
17079
17111
|
return t && ii(() => {
|
|
17080
17112
|
n.value = !0;
|
|
@@ -17082,16 +17114,16 @@ function HT() {
|
|
|
17082
17114
|
}
|
|
17083
17115
|
// @__NO_SIDE_EFFECTS__
|
|
17084
17116
|
function Rg(n) {
|
|
17085
|
-
const t = /* @__PURE__ */
|
|
17117
|
+
const t = /* @__PURE__ */ WT();
|
|
17086
17118
|
return L(() => (t.value, !!n()));
|
|
17087
17119
|
}
|
|
17088
|
-
function
|
|
17120
|
+
function YT(n, t, e = {}) {
|
|
17089
17121
|
const { window: i = $a, ...s } = e;
|
|
17090
17122
|
let r;
|
|
17091
17123
|
const a = /* @__PURE__ */ Rg(() => i && "MutationObserver" in i), o = () => {
|
|
17092
17124
|
r && (r.disconnect(), r = void 0);
|
|
17093
17125
|
}, l = L(() => {
|
|
17094
|
-
const h = Kt(n), f = fa(h).map(os).filter(
|
|
17126
|
+
const h = Kt(n), f = fa(h).map(os).filter(IT);
|
|
17095
17127
|
return new Set(f);
|
|
17096
17128
|
}), c = ue(
|
|
17097
17129
|
l,
|
|
@@ -17108,7 +17140,7 @@ function BT(n, t, e = {}) {
|
|
|
17108
17140
|
takeRecords: u
|
|
17109
17141
|
};
|
|
17110
17142
|
}
|
|
17111
|
-
function
|
|
17143
|
+
function $T(n, t = {}) {
|
|
17112
17144
|
var e;
|
|
17113
17145
|
const {
|
|
17114
17146
|
pointerTypes: i,
|
|
@@ -17160,7 +17192,7 @@ function WT(n, t = {}) {
|
|
|
17160
17192
|
nr(g, "pointerdown", O, T), nr(h, "pointermove", E, T), nr(h, "pointerup", k, T);
|
|
17161
17193
|
}
|
|
17162
17194
|
return {
|
|
17163
|
-
...
|
|
17195
|
+
...zT(_),
|
|
17164
17196
|
position: _,
|
|
17165
17197
|
isDragging: L(() => !!x.value),
|
|
17166
17198
|
style: L(
|
|
@@ -17168,7 +17200,7 @@ function WT(n, t = {}) {
|
|
|
17168
17200
|
)
|
|
17169
17201
|
};
|
|
17170
17202
|
}
|
|
17171
|
-
function
|
|
17203
|
+
function jT(n, t, e = {}) {
|
|
17172
17204
|
const { window: i = $a, ...s } = e;
|
|
17173
17205
|
let r;
|
|
17174
17206
|
const a = /* @__PURE__ */ Rg(() => i && "ResizeObserver" in i), o = () => {
|
|
@@ -17194,7 +17226,7 @@ function YT(n, t, e = {}) {
|
|
|
17194
17226
|
stop: u
|
|
17195
17227
|
};
|
|
17196
17228
|
}
|
|
17197
|
-
function
|
|
17229
|
+
function UT(n, t = {}) {
|
|
17198
17230
|
const {
|
|
17199
17231
|
reset: e = !0,
|
|
17200
17232
|
windowResize: i = !0,
|
|
@@ -17214,9 +17246,9 @@ function $T(n, t = {}) {
|
|
|
17214
17246
|
function _() {
|
|
17215
17247
|
a === "sync" ? y() : a === "next-frame" && requestAnimationFrame(() => y());
|
|
17216
17248
|
}
|
|
17217
|
-
return
|
|
17249
|
+
return jT(n, _), ue(() => os(n), (x) => !x && _()), YT(n, _, {
|
|
17218
17250
|
attributeFilter: ["style", "class"]
|
|
17219
|
-
}), s && nr("scroll", _, { capture: !0, passive: !0 }), i && nr("resize", _, { passive: !0 }),
|
|
17251
|
+
}), s && nr("scroll", _, { capture: !0, passive: !0 }), i && nr("resize", _, { passive: !0 }), HT(() => {
|
|
17220
17252
|
r && _();
|
|
17221
17253
|
}), {
|
|
17222
17254
|
height: o,
|
|
@@ -17230,14 +17262,14 @@ function $T(n, t = {}) {
|
|
|
17230
17262
|
update: _
|
|
17231
17263
|
};
|
|
17232
17264
|
}
|
|
17233
|
-
function
|
|
17234
|
-
const { top: e, left: i } =
|
|
17265
|
+
function VT(n, t) {
|
|
17266
|
+
const { top: e, left: i } = UT(n), s = L(() => n.value ? `${parseFloat(t.left) + i.value}px` : t.left), r = L(() => n.value ? `${parseFloat(t.top) + e.value}px` : t.top);
|
|
17235
17267
|
return {
|
|
17236
17268
|
tooltipAbsoluteLeft: s,
|
|
17237
17269
|
tooltipAbsoluteTop: r
|
|
17238
17270
|
};
|
|
17239
17271
|
}
|
|
17240
|
-
const
|
|
17272
|
+
const qT = ({
|
|
17241
17273
|
bucketCount: n,
|
|
17242
17274
|
minStamp: t,
|
|
17243
17275
|
maxStamp: e,
|
|
@@ -17262,13 +17294,13 @@ const UT = ({
|
|
|
17262
17294
|
minStamps: {},
|
|
17263
17295
|
maxStamps: {},
|
|
17264
17296
|
renderPoints: {}
|
|
17265
|
-
}), ir = Vt({}),
|
|
17297
|
+
}), ir = Vt({}), XT = (n) => (ir.value[n] || (ir.value[n] = Ig()), ir.value[n]), GT = (n, t) => {
|
|
17266
17298
|
const e = ir.value[t];
|
|
17267
17299
|
if (!e) return;
|
|
17268
17300
|
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;
|
|
17269
17301
|
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 ir.value[t]);
|
|
17270
17302
|
};
|
|
17271
|
-
function
|
|
17303
|
+
function KT({
|
|
17272
17304
|
chartKey: n,
|
|
17273
17305
|
datasets: t,
|
|
17274
17306
|
groupKey: e,
|
|
@@ -17279,7 +17311,7 @@ function XT({
|
|
|
17279
17311
|
renderPoints: o = void 0,
|
|
17280
17312
|
type: l
|
|
17281
17313
|
}) {
|
|
17282
|
-
const u = e !== void 0 && n !== void 0 ?
|
|
17314
|
+
const u = e !== void 0 && n !== void 0 ? XT(e) : Ig(), d = n !== void 0 ? n : "static-chart-key", h = L(() => t.reduce((w, { timestamps: C }) => [...w, ...C], [])), f = L(() => i || h.value.reduce((w, C) => w === 0 ? C : Math.min(w, C), 0)), g = L(() => s || h.value.reduce((w, C) => Math.max(w, C), 0));
|
|
17283
17315
|
jc(() => {
|
|
17284
17316
|
u.minStamps[d] = f.value, u.maxStamps[d] = g.value, o !== void 0 && (u.renderPoints[d] = o);
|
|
17285
17317
|
});
|
|
@@ -17290,7 +17322,7 @@ function XT({
|
|
|
17290
17322
|
const w = _.value - y.value;
|
|
17291
17323
|
return Math.ceil(w / x.value);
|
|
17292
17324
|
}), S = L(() => t.length > 1), O = L(() => t.map(({ timestamps: w, color: C, label: A }) => ({
|
|
17293
|
-
data:
|
|
17325
|
+
data: qT({
|
|
17294
17326
|
bucketCount: x.value,
|
|
17295
17327
|
minStamp: y.value,
|
|
17296
17328
|
maxStamp: _.value,
|
|
@@ -17328,7 +17360,7 @@ function XT({
|
|
|
17328
17360
|
return w.reduce((A, R) => Math.min(A, R), C);
|
|
17329
17361
|
}), b = L(() => Object.values(u.maxCounts).reduce((w, C) => Math.max(w, C), 0));
|
|
17330
17362
|
return ni(() => {
|
|
17331
|
-
n !== void 0 && e !== void 0 &&
|
|
17363
|
+
n !== void 0 && e !== void 0 && GT(n, e);
|
|
17332
17364
|
}), {
|
|
17333
17365
|
syncedMinStamp: y,
|
|
17334
17366
|
syncedMaxStamp: _,
|
|
@@ -17340,20 +17372,20 @@ function XT({
|
|
|
17340
17372
|
};
|
|
17341
17373
|
}
|
|
17342
17374
|
const _t = {
|
|
17343
|
-
useBarChartOptions:
|
|
17344
|
-
useChartJSCommon:
|
|
17345
|
-
useChartLegendValues:
|
|
17346
|
-
useChartSelectedRange:
|
|
17347
|
-
useExploreResultToDatasets:
|
|
17348
|
-
useExploreResultToTimeDataset:
|
|
17349
|
-
useDonutChartOptions:
|
|
17350
|
-
useLineChartOptions:
|
|
17375
|
+
useBarChartOptions: pT,
|
|
17376
|
+
useChartJSCommon: bT,
|
|
17377
|
+
useChartLegendValues: vT,
|
|
17378
|
+
useChartSelectedRange: xT,
|
|
17379
|
+
useExploreResultToDatasets: TT,
|
|
17380
|
+
useExploreResultToTimeDataset: OT,
|
|
17381
|
+
useDonutChartOptions: wT,
|
|
17382
|
+
useLineChartOptions: MT,
|
|
17351
17383
|
useI18n: cp,
|
|
17352
|
-
useReportChartDataForSynthetics:
|
|
17353
|
-
useTranslatedUnits:
|
|
17354
|
-
useEvaluateFeatureFlag:
|
|
17355
|
-
useTooltipAbsolutePosition:
|
|
17356
|
-
useSparklineSync:
|
|
17384
|
+
useReportChartDataForSynthetics: PT,
|
|
17385
|
+
useTranslatedUnits: ET,
|
|
17386
|
+
useEvaluateFeatureFlag: RT,
|
|
17387
|
+
useTooltipAbsolutePosition: VT,
|
|
17388
|
+
useSparklineSync: KT
|
|
17357
17389
|
};
|
|
17358
17390
|
var Ye = /* @__PURE__ */ ((n) => (n.Hidden = "hidden", n.Bottom = "bottom", n))(Ye || {});
|
|
17359
17391
|
/*!
|
|
@@ -17381,7 +17413,7 @@ const ih = {
|
|
|
17381
17413
|
* @return {AnnotationElement[]} - elements that are found (only 1 element)
|
|
17382
17414
|
*/
|
|
17383
17415
|
nearest(n, t, e) {
|
|
17384
|
-
return
|
|
17416
|
+
return JT(n, t, e);
|
|
17385
17417
|
},
|
|
17386
17418
|
/**
|
|
17387
17419
|
* x mode returns the elements that hit-test at the current x coordinate
|
|
@@ -17408,19 +17440,19 @@ const ih = {
|
|
|
17408
17440
|
function Ac(n, t, e) {
|
|
17409
17441
|
return (ih.modes[e.mode] || ih.modes.nearest)(n, t, e);
|
|
17410
17442
|
}
|
|
17411
|
-
function
|
|
17443
|
+
function ZT(n, t, e) {
|
|
17412
17444
|
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);
|
|
17413
17445
|
}
|
|
17414
|
-
function
|
|
17446
|
+
function QT(n, t, e) {
|
|
17415
17447
|
return e === "x" ? { x: n.x, y: t.y } : e === "y" ? { x: t.x, y: n.y } : t;
|
|
17416
17448
|
}
|
|
17417
17449
|
function ga(n, t, e) {
|
|
17418
|
-
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) :
|
|
17450
|
+
return n.filter((i) => e.intersect ? i.inRange(t.x, t.y) : ZT(i, t, e.axis));
|
|
17419
17451
|
}
|
|
17420
|
-
function
|
|
17452
|
+
function JT(n, t, e) {
|
|
17421
17453
|
let i = Number.POSITIVE_INFINITY;
|
|
17422
17454
|
return ga(n, t, e).reduce((s, r) => {
|
|
17423
|
-
const a = r.getCenterPoint(), o =
|
|
17455
|
+
const a = r.getCenterPoint(), o = QT(t, a, e.axis), l = ns(t, o);
|
|
17424
17456
|
return l < i ? (s = [r], i = l) : l === i && s.push(r), s;
|
|
17425
17457
|
}, []).sort((s, r) => s._index - r._index).slice(0, 1);
|
|
17426
17458
|
}
|
|
@@ -17431,13 +17463,13 @@ function Pi(n, t, e) {
|
|
|
17431
17463
|
y: a + s * (n.x - r) + i * (n.y - a)
|
|
17432
17464
|
};
|
|
17433
17465
|
}
|
|
17434
|
-
const
|
|
17435
|
-
function
|
|
17466
|
+
const tD = (n, t) => t > n || n.length > t.length && n.slice(0, t.length) === t, vi = 1e-3, ja = (n, t, e) => Math.min(e, Math.max(t, n)), Lg = (n, t) => n.value >= n.start - t && n.value <= n.end + t;
|
|
17467
|
+
function eD(n, t, e) {
|
|
17436
17468
|
for (const i of Object.keys(n))
|
|
17437
17469
|
n[i] = ja(n[i], t, e);
|
|
17438
17470
|
return n;
|
|
17439
17471
|
}
|
|
17440
|
-
function
|
|
17472
|
+
function nD(n, t, e, i) {
|
|
17441
17473
|
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);
|
|
17442
17474
|
}
|
|
17443
17475
|
function Ng(n, { x: t, y: e, x2: i, y2: s }, r, { borderWidth: a, hitTolerance: o }) {
|
|
@@ -17452,14 +17484,14 @@ function Ei(n, t) {
|
|
|
17452
17484
|
const { centerX: e, centerY: i } = n.getProps(["centerX", "centerY"], t);
|
|
17453
17485
|
return { x: e, y: i };
|
|
17454
17486
|
}
|
|
17455
|
-
function
|
|
17487
|
+
function iD(n, t, e, i = !0) {
|
|
17456
17488
|
const s = e.split(".");
|
|
17457
17489
|
let r = 0;
|
|
17458
17490
|
for (const a of t.split(".")) {
|
|
17459
17491
|
const o = s[r++];
|
|
17460
17492
|
if (parseInt(a, 10) < parseInt(o, 10))
|
|
17461
17493
|
break;
|
|
17462
|
-
if (
|
|
17494
|
+
if (tD(o, a)) {
|
|
17463
17495
|
if (i)
|
|
17464
17496
|
throw new Error(`${n} v${e} is not supported. v${t} or newer is required.`);
|
|
17465
17497
|
return !1;
|
|
@@ -17467,7 +17499,7 @@ function eD(n, t, e, i = !0) {
|
|
|
17467
17499
|
}
|
|
17468
17500
|
return !0;
|
|
17469
17501
|
}
|
|
17470
|
-
const zg = (n) => typeof n == "string" && n.endsWith("%"), Hg = (n) => parseFloat(n) / 100, Bg = (n) => ja(Hg(n), 0, 1), Fs = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }),
|
|
17502
|
+
const zg = (n) => typeof n == "string" && n.endsWith("%"), Hg = (n) => parseFloat(n) / 100, Bg = (n) => ja(Hg(n), 0, 1), Fs = (n, t) => ({ x: n, y: t, x2: n, y2: t, width: 0, height: 0 }), sD = {
|
|
17471
17503
|
box: (n) => Fs(n.centerX, n.centerY),
|
|
17472
17504
|
doughnutLabel: (n) => Fs(n.centerX, n.centerY),
|
|
17473
17505
|
ellipse: (n) => ({ centerX: n.centerX, centerY: n.centerX, radius: 0, width: 0, height: 0 }),
|
|
@@ -17482,7 +17514,7 @@ function Rc(n, t) {
|
|
|
17482
17514
|
function ei(n, t, e = !0) {
|
|
17483
17515
|
return typeof t == "number" ? t : zg(t) ? (e ? Bg(t) : Hg(t)) * n : n;
|
|
17484
17516
|
}
|
|
17485
|
-
function
|
|
17517
|
+
function rD(n, t) {
|
|
17486
17518
|
const { x: e, width: i } = n, s = t.textAlign;
|
|
17487
17519
|
return s === "center" ? e + i / 2 : s === "end" || s === "right" ? e + i : e;
|
|
17488
17520
|
}
|
|
@@ -17528,7 +17560,7 @@ function hs(n, t, e) {
|
|
|
17528
17560
|
if (i === !0)
|
|
17529
17561
|
return Vg(t, e);
|
|
17530
17562
|
} else return;
|
|
17531
|
-
return
|
|
17563
|
+
return aD(n, t, e);
|
|
17532
17564
|
}
|
|
17533
17565
|
function Ug(n, t, e) {
|
|
17534
17566
|
let i = !1;
|
|
@@ -17538,16 +17570,16 @@ function Ug(n, t, e) {
|
|
|
17538
17570
|
}
|
|
17539
17571
|
function Vg(n, t) {
|
|
17540
17572
|
const e = t.type || "line";
|
|
17541
|
-
return
|
|
17573
|
+
return sD[e](n);
|
|
17542
17574
|
}
|
|
17543
|
-
function
|
|
17575
|
+
function aD(n, t, e) {
|
|
17544
17576
|
const i = Et(e.init, [{ chart: n, properties: t, options: e }]);
|
|
17545
17577
|
if (i === !0)
|
|
17546
17578
|
return Vg(t, e);
|
|
17547
17579
|
if (yt(i))
|
|
17548
17580
|
return i;
|
|
17549
17581
|
}
|
|
17550
|
-
const yl = /* @__PURE__ */ new Map(),
|
|
17582
|
+
const yl = /* @__PURE__ */ new Map(), oD = (n) => isNaN(n) || n <= 0, lD = (n) => n.reduce(function(t, e) {
|
|
17551
17583
|
return t += e.string, t;
|
|
17552
17584
|
}, "");
|
|
17553
17585
|
function Ua(n) {
|
|
@@ -17573,8 +17605,8 @@ function qa(n, t) {
|
|
|
17573
17605
|
width: ei(e.width, t.width),
|
|
17574
17606
|
height: ei(e.height, t.height)
|
|
17575
17607
|
};
|
|
17576
|
-
const i = $g(t), s = t.textStrokeWidth, r = Ct(e) ? e : [e], a = r.join() +
|
|
17577
|
-
return yl.has(a) || yl.set(a,
|
|
17608
|
+
const i = $g(t), s = t.textStrokeWidth, r = Ct(e) ? e : [e], a = r.join() + lD(i) + s + (n._measureText ? "-spriting" : "");
|
|
17609
|
+
return yl.has(a) || yl.set(a, hD(n, r, i, s)), yl.get(a);
|
|
17578
17610
|
}
|
|
17579
17611
|
function qg(n, t, e) {
|
|
17580
17612
|
const { x: i, y: s, width: r, height: a } = t;
|
|
@@ -17585,32 +17617,32 @@ function qg(n, t, e) {
|
|
|
17585
17617
|
y: s,
|
|
17586
17618
|
w: r,
|
|
17587
17619
|
h: a,
|
|
17588
|
-
radius:
|
|
17620
|
+
radius: eD(Kn(e.borderRadius), 0, Math.min(r, a) / 2)
|
|
17589
17621
|
}), n.closePath(), n.fill(), o && (n.shadowColor = e.borderShadowColor, n.stroke()), n.restore();
|
|
17590
17622
|
}
|
|
17591
17623
|
function Xg(n, t, e, i) {
|
|
17592
17624
|
const s = e.content;
|
|
17593
17625
|
if (Ua(s)) {
|
|
17594
|
-
n.save(), n.globalAlpha =
|
|
17626
|
+
n.save(), n.globalAlpha = mD(e.opacity, s.style.opacity), n.drawImage(s, t.x, t.y, t.width, t.height), n.restore();
|
|
17595
17627
|
return;
|
|
17596
17628
|
}
|
|
17597
|
-
const r = Ct(s) ? s : [s], a = $g(e, i), o = e.color, l = Ct(o) ? o : [o], c =
|
|
17598
|
-
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign,
|
|
17629
|
+
const r = Ct(s) ? s : [s], a = $g(e, i), o = e.color, l = Ct(o) ? o : [o], c = rD(t, e), u = t.y + e.textStrokeWidth / 2;
|
|
17630
|
+
n.save(), n.textBaseline = "middle", n.textAlign = e.textAlign, cD(n, e) && fD(n, { x: c, y: u }, r, a), gD(n, { x: c, y: u }, r, { fonts: a, colors: l }), n.restore();
|
|
17599
17631
|
}
|
|
17600
|
-
function
|
|
17632
|
+
function cD(n, t) {
|
|
17601
17633
|
if (t.textStrokeWidth > 0)
|
|
17602
17634
|
return n.lineJoin = "round", n.miterLimit = 2, n.lineWidth = t.textStrokeWidth, n.strokeStyle = t.textStrokeColor, !0;
|
|
17603
17635
|
}
|
|
17604
|
-
function
|
|
17636
|
+
function uD(n, t, e, i) {
|
|
17605
17637
|
const { radius: s, options: r } = t, a = r.pointStyle, o = r.rotation;
|
|
17606
17638
|
let l = (o || 0) * ac;
|
|
17607
17639
|
if (Ua(a)) {
|
|
17608
17640
|
n.save(), n.translate(e, i), n.rotate(l), n.drawImage(a, -a.width / 2, -a.height / 2, a.width, a.height), n.restore();
|
|
17609
17641
|
return;
|
|
17610
17642
|
}
|
|
17611
|
-
|
|
17643
|
+
oD(s) || dD(n, { x: e, y: i, radius: s, rotation: o, style: a, rad: l });
|
|
17612
17644
|
}
|
|
17613
|
-
function
|
|
17645
|
+
function dD(n, { x: t, y: e, radius: i, rotation: s, style: r, rad: a }) {
|
|
17614
17646
|
let o, l, c, u;
|
|
17615
17647
|
switch (n.beginPath(), r) {
|
|
17616
17648
|
default:
|
|
@@ -17648,7 +17680,7 @@ function cD(n, { x: t, y: e, radius: i, rotation: s, style: r, rad: a }) {
|
|
|
17648
17680
|
}
|
|
17649
17681
|
n.fill();
|
|
17650
17682
|
}
|
|
17651
|
-
function
|
|
17683
|
+
function hD(n, t, e, i) {
|
|
17652
17684
|
n.save();
|
|
17653
17685
|
const s = t.length;
|
|
17654
17686
|
let r = 0, a = i;
|
|
@@ -17660,7 +17692,7 @@ function uD(n, t, e, i) {
|
|
|
17660
17692
|
}
|
|
17661
17693
|
return n.restore(), { width: r, height: a };
|
|
17662
17694
|
}
|
|
17663
|
-
function
|
|
17695
|
+
function fD(n, { x: t, y: e }, i, s) {
|
|
17664
17696
|
n.beginPath();
|
|
17665
17697
|
let r = 0;
|
|
17666
17698
|
i.forEach(function(a, o) {
|
|
@@ -17668,52 +17700,52 @@ function dD(n, { x: t, y: e }, i, s) {
|
|
|
17668
17700
|
n.font = l.string, n.strokeText(a, t, e + c / 2 + r), r += c;
|
|
17669
17701
|
}), n.stroke();
|
|
17670
17702
|
}
|
|
17671
|
-
function
|
|
17703
|
+
function gD(n, { x: t, y: e }, i, { fonts: s, colors: r }) {
|
|
17672
17704
|
let a = 0;
|
|
17673
17705
|
i.forEach(function(o, l) {
|
|
17674
17706
|
const c = r[Math.min(l, r.length - 1)], u = s[Math.min(l, s.length - 1)], d = u.lineHeight;
|
|
17675
17707
|
n.beginPath(), n.font = u.string, n.fillStyle = c, n.fillText(o, t, e + d / 2 + a), a += d, n.fill();
|
|
17676
17708
|
});
|
|
17677
17709
|
}
|
|
17678
|
-
function
|
|
17710
|
+
function mD(n, t) {
|
|
17679
17711
|
const e = Jn(n) ? n : t;
|
|
17680
17712
|
return Jn(e) ? ja(e, 0, 1) : 1;
|
|
17681
17713
|
}
|
|
17682
17714
|
const Gg = ["left", "bottom", "top", "right"];
|
|
17683
|
-
function
|
|
17684
|
-
const { pointX: e, pointY: i, options: s } = t, r = s.callout, a = r && r.display &&
|
|
17685
|
-
if (!a ||
|
|
17715
|
+
function pD(n, t) {
|
|
17716
|
+
const { pointX: e, pointY: i, options: s } = t, r = s.callout, a = r && r.display && xD(t, r);
|
|
17717
|
+
if (!a || MD(t, r, a))
|
|
17686
17718
|
return;
|
|
17687
17719
|
if (n.save(), n.beginPath(), !An(n, r))
|
|
17688
17720
|
return n.restore();
|
|
17689
|
-
const { separatorStart: l, separatorEnd: c } =
|
|
17721
|
+
const { separatorStart: l, separatorEnd: c } = yD(t, a), { sideStart: u, sideEnd: d } = _D(t, a, l);
|
|
17690
17722
|
(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);
|
|
17691
17723
|
const h = Pi({ x: e, y: i }, t.getCenterPoint(), te(-t.rotation));
|
|
17692
17724
|
n.lineTo(h.x, h.y), n.stroke(), n.restore();
|
|
17693
17725
|
}
|
|
17694
|
-
function
|
|
17695
|
-
const { x: e, y: i, x2: s, y2: r } = n, a =
|
|
17726
|
+
function yD(n, t) {
|
|
17727
|
+
const { x: e, y: i, x2: s, y2: r } = n, a = bD(n, t);
|
|
17696
17728
|
let o, l;
|
|
17697
17729
|
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 };
|
|
17698
17730
|
}
|
|
17699
|
-
function
|
|
17731
|
+
function bD(n, t) {
|
|
17700
17732
|
const { width: e, height: i, options: s } = n, r = s.callout.margin + s.borderWidth / 2;
|
|
17701
17733
|
return t === "right" ? e + r : t === "bottom" ? i + r : -r;
|
|
17702
17734
|
}
|
|
17703
|
-
function
|
|
17704
|
-
const { y: i, width: s, height: r, options: a } = n, o = a.callout.start, l =
|
|
17735
|
+
function _D(n, t, e) {
|
|
17736
|
+
const { y: i, width: s, height: r, options: a } = n, o = a.callout.start, l = vD(t, a.callout);
|
|
17705
17737
|
let c, u;
|
|
17706
17738
|
return t === "left" || t === "right" ? (c = { x: e.x, y: i + ei(r, o) }, u = { x: c.x + l, y: c.y }) : (c = { x: e.x + ei(s, o), y: e.y }, u = { x: c.x, y: c.y + l }), { sideStart: c, sideEnd: u };
|
|
17707
17739
|
}
|
|
17708
|
-
function
|
|
17740
|
+
function vD(n, t) {
|
|
17709
17741
|
const e = t.side;
|
|
17710
17742
|
return n === "left" || n === "top" ? -e : e;
|
|
17711
17743
|
}
|
|
17712
|
-
function
|
|
17744
|
+
function xD(n, t) {
|
|
17713
17745
|
const e = t.position;
|
|
17714
|
-
return Gg.includes(e) ? e :
|
|
17746
|
+
return Gg.includes(e) ? e : wD(n, t);
|
|
17715
17747
|
}
|
|
17716
|
-
function
|
|
17748
|
+
function wD(n, t) {
|
|
17717
17749
|
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, y = ei(a, g), _ = ei(o, g), x = [e, e + y, e + y, s], M = [i + _, r, i, r], S = [];
|
|
17718
17750
|
for (let O = 0; O < 4; O++) {
|
|
17719
17751
|
const E = Pi({ x: x[O], y: M[O] }, f, te(h));
|
|
@@ -17724,7 +17756,7 @@ function vD(n, t) {
|
|
|
17724
17756
|
}
|
|
17725
17757
|
return S.sort((O, E) => O.distance - E.distance)[0].position;
|
|
17726
17758
|
}
|
|
17727
|
-
function
|
|
17759
|
+
function MD(n, t, e) {
|
|
17728
17760
|
const { pointX: i, pointY: s } = n, r = t.margin;
|
|
17729
17761
|
let a = i, o = s;
|
|
17730
17762
|
return e === "left" ? a += r : e === "right" ? a -= r : e === "top" ? o += r : e === "bottom" && (o -= r), n.inRange(a, o);
|
|
@@ -17794,22 +17826,22 @@ function Qg(n, t) {
|
|
|
17794
17826
|
radius: i
|
|
17795
17827
|
};
|
|
17796
17828
|
}
|
|
17797
|
-
return
|
|
17829
|
+
return TD(n, t);
|
|
17798
17830
|
}
|
|
17799
|
-
function
|
|
17831
|
+
function SD(n, t) {
|
|
17800
17832
|
const { scales: e, chartArea: i } = n, s = e[t.scaleID], r = { x: i.left, y: i.top, x2: i.right, y2: i.bottom };
|
|
17801
|
-
return s ?
|
|
17833
|
+
return s ? DD(s, r, t) : kD(e, r, t), r;
|
|
17802
17834
|
}
|
|
17803
17835
|
function Jg(n, t) {
|
|
17804
17836
|
const e = Lc(n, t);
|
|
17805
17837
|
return e.initProperties = hs(n, e, t), e.elements = [{
|
|
17806
17838
|
type: "label",
|
|
17807
17839
|
optionScope: "label",
|
|
17808
|
-
properties:
|
|
17840
|
+
properties: PD(n, e, t),
|
|
17809
17841
|
initProperties: e.initProperties
|
|
17810
17842
|
}], e;
|
|
17811
17843
|
}
|
|
17812
|
-
function
|
|
17844
|
+
function TD(n, t) {
|
|
17813
17845
|
const e = Zg(n, t), i = t.radius * 2;
|
|
17814
17846
|
return {
|
|
17815
17847
|
x: e.x - t.radius + t.xAdjust,
|
|
@@ -17830,11 +17862,11 @@ function ah(n, t) {
|
|
|
17830
17862
|
end: Math.max(e.start, e.end)
|
|
17831
17863
|
};
|
|
17832
17864
|
}
|
|
17833
|
-
function
|
|
17865
|
+
function DD(n, t, e) {
|
|
17834
17866
|
const i = ls(n, e.value, NaN), s = ls(n, e.endValue, i);
|
|
17835
17867
|
n.isHorizontal() ? (t.x = i, t.x2 = s) : (t.y = i, t.y2 = s);
|
|
17836
17868
|
}
|
|
17837
|
-
function
|
|
17869
|
+
function kD(n, t, e) {
|
|
17838
17870
|
for (const i of Object.keys(rh)) {
|
|
17839
17871
|
const s = n[Di(n, e, i)];
|
|
17840
17872
|
if (s) {
|
|
@@ -17843,7 +17875,7 @@ function TD(n, t, e) {
|
|
|
17843
17875
|
}
|
|
17844
17876
|
}
|
|
17845
17877
|
}
|
|
17846
|
-
function
|
|
17878
|
+
function CD({ properties: n, options: t }, e, i, s) {
|
|
17847
17879
|
const { x: r, x2: a, width: o } = n;
|
|
17848
17880
|
return tm({ start: r, end: a, borderWidth: t.borderWidth }, {
|
|
17849
17881
|
position: i.x,
|
|
@@ -17852,7 +17884,7 @@ function DD({ properties: n, options: t }, e, i, s) {
|
|
|
17852
17884
|
size: e.width
|
|
17853
17885
|
});
|
|
17854
17886
|
}
|
|
17855
|
-
function
|
|
17887
|
+
function OD({ properties: n, options: t }, e, i, s) {
|
|
17856
17888
|
const { y: r, y2: a, height: o } = n;
|
|
17857
17889
|
return tm({ start: r, end: a, borderWidth: t.borderWidth }, {
|
|
17858
17890
|
position: i.y,
|
|
@@ -17865,10 +17897,10 @@ function tm(n, t) {
|
|
|
17865
17897
|
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;
|
|
17866
17898
|
return e + s / 2 + l + Rc(c, r);
|
|
17867
17899
|
}
|
|
17868
|
-
function
|
|
17900
|
+
function PD(n, t, e) {
|
|
17869
17901
|
const i = e.label;
|
|
17870
17902
|
i.backgroundColor = "transparent", i.callout.display = !1;
|
|
17871
|
-
const s = Ic(i.position), r = ee(i.padding), a = qa(n.ctx, i), o =
|
|
17903
|
+
const s = Ic(i.position), r = ee(i.padding), a = qa(n.ctx, i), o = CD({ properties: t, options: e }, a, s, r), l = OD({ properties: t, options: e }, a, s, r), c = a.width + r.width, u = a.height + r.height;
|
|
17872
17904
|
return {
|
|
17873
17905
|
x: o,
|
|
17874
17906
|
y: l,
|
|
@@ -17882,7 +17914,7 @@ function CD(n, t, e) {
|
|
|
17882
17914
|
};
|
|
17883
17915
|
}
|
|
17884
17916
|
const ql = ["enter", "leave"], Nc = ql.concat("click");
|
|
17885
|
-
function
|
|
17917
|
+
function ED(n, t, e) {
|
|
17886
17918
|
t.listened = Ug(e, Nc, t.listeners), t.moveListened = !1, ql.forEach((i) => {
|
|
17887
17919
|
Ne(e[i]) && (t.moveListened = !0);
|
|
17888
17920
|
}), (!t.listened || !t.moveListened) && t.annotations.forEach((i) => {
|
|
@@ -17891,17 +17923,17 @@ function OD(n, t, e) {
|
|
|
17891
17923
|
});
|
|
17892
17924
|
});
|
|
17893
17925
|
}
|
|
17894
|
-
function
|
|
17926
|
+
function AD(n, t, e) {
|
|
17895
17927
|
if (n.listened)
|
|
17896
17928
|
switch (t.type) {
|
|
17897
17929
|
case "mousemove":
|
|
17898
17930
|
case "mouseout":
|
|
17899
|
-
return
|
|
17931
|
+
return RD(n, t, e);
|
|
17900
17932
|
case "click":
|
|
17901
|
-
return
|
|
17933
|
+
return ID(n, t, e);
|
|
17902
17934
|
}
|
|
17903
17935
|
}
|
|
17904
|
-
function
|
|
17936
|
+
function RD(n, t, e) {
|
|
17905
17937
|
if (!n.moveListened)
|
|
17906
17938
|
return;
|
|
17907
17939
|
let i;
|
|
@@ -17918,7 +17950,7 @@ function oh({ state: n, event: t }, e, i, s) {
|
|
|
17918
17950
|
s.indexOf(a) < 0 && (r = em(a.options[e] || n.listeners[e], a, t) || r);
|
|
17919
17951
|
return r;
|
|
17920
17952
|
}
|
|
17921
|
-
function
|
|
17953
|
+
function ID(n, t, e) {
|
|
17922
17954
|
const i = n.listeners, s = Ac(n.visibleElements, t, e.interaction);
|
|
17923
17955
|
let r;
|
|
17924
17956
|
for (const a of s)
|
|
@@ -17929,7 +17961,7 @@ function em(n, t, e) {
|
|
|
17929
17961
|
return Et(n, [t.$context, e]) === !0;
|
|
17930
17962
|
}
|
|
17931
17963
|
const La = ["afterDraw", "beforeDraw"];
|
|
17932
|
-
function
|
|
17964
|
+
function LD(n, t, e) {
|
|
17933
17965
|
const i = t.visibleElements;
|
|
17934
17966
|
t.hooked = Ug(e, La, t.hooks), t.hooked || i.forEach((s) => {
|
|
17935
17967
|
t.hooked || La.forEach((r) => {
|
|
@@ -17943,31 +17975,31 @@ function lh(n, t, e) {
|
|
|
17943
17975
|
return Et(i, [t.$context]);
|
|
17944
17976
|
}
|
|
17945
17977
|
}
|
|
17946
|
-
function
|
|
17947
|
-
const i =
|
|
17978
|
+
function ND(n, t, e) {
|
|
17979
|
+
const i = WD(n.scales, t, e);
|
|
17948
17980
|
let s = ch(t, i, "min", "suggestedMin");
|
|
17949
17981
|
s = ch(t, i, "max", "suggestedMax") || s, s && Ne(t.handleTickRangeOptions) && t.handleTickRangeOptions();
|
|
17950
17982
|
}
|
|
17951
|
-
function
|
|
17983
|
+
function FD(n, t) {
|
|
17952
17984
|
for (const e of n)
|
|
17953
|
-
|
|
17985
|
+
HD(e, t);
|
|
17954
17986
|
}
|
|
17955
17987
|
function ch(n, t, e, i) {
|
|
17956
|
-
if (Ht(t[e]) && !
|
|
17988
|
+
if (Ht(t[e]) && !zD(n.options, e, i)) {
|
|
17957
17989
|
const s = n[e] !== t[e];
|
|
17958
17990
|
return n[e] = t[e], s;
|
|
17959
17991
|
}
|
|
17960
17992
|
}
|
|
17961
|
-
function
|
|
17993
|
+
function zD(n, t, e) {
|
|
17962
17994
|
return ze(n[t]) || ze(n[e]);
|
|
17963
17995
|
}
|
|
17964
|
-
function
|
|
17996
|
+
function HD(n, t) {
|
|
17965
17997
|
for (const e of ["scaleID", "xScaleID", "yScaleID"]) {
|
|
17966
17998
|
const i = Di(t, n, e);
|
|
17967
|
-
i && !t[i] &&
|
|
17999
|
+
i && !t[i] && BD(n, e) && console.warn(`No scale found with id '${i}' for annotation '${n.id}'`);
|
|
17968
18000
|
}
|
|
17969
18001
|
}
|
|
17970
|
-
function
|
|
18002
|
+
function BD(n, t) {
|
|
17971
18003
|
if (t === "scaleID")
|
|
17972
18004
|
return !0;
|
|
17973
18005
|
const e = t.charAt(0);
|
|
@@ -17976,7 +18008,7 @@ function zD(n, t) {
|
|
|
17976
18008
|
return !0;
|
|
17977
18009
|
return !1;
|
|
17978
18010
|
}
|
|
17979
|
-
function
|
|
18011
|
+
function WD(n, t, e) {
|
|
17980
18012
|
const i = t.axis, s = t.id, r = i + "ScaleID", a = {
|
|
17981
18013
|
min: lt(t.min, Number.NEGATIVE_INFINITY),
|
|
17982
18014
|
max: lt(t.max, Number.POSITIVE_INFINITY)
|
|
@@ -18092,15 +18124,15 @@ class Xa extends de {
|
|
|
18092
18124
|
}
|
|
18093
18125
|
draw(t) {
|
|
18094
18126
|
const e = this.options;
|
|
18095
|
-
!e.display || !e.content || (
|
|
18127
|
+
!e.display || !e.content || (qD(t, this), t.save(), Va(t, this.getCenterPoint(), this.rotation), Xg(t, this, e, this._fitRatio), t.restore());
|
|
18096
18128
|
}
|
|
18097
18129
|
resolveElementProperties(t, e) {
|
|
18098
|
-
const i =
|
|
18130
|
+
const i = YD(t, e);
|
|
18099
18131
|
if (!i)
|
|
18100
18132
|
return {};
|
|
18101
|
-
const { controllerMeta: s, point: r, radius: a } =
|
|
18133
|
+
const { controllerMeta: s, point: r, radius: a } = jD(t, e, i);
|
|
18102
18134
|
let o = qa(t.ctx, e);
|
|
18103
|
-
const l =
|
|
18135
|
+
const l = UD(o, a);
|
|
18104
18136
|
Yg(e, l) && (o = { width: o.width * l, height: o.height * l });
|
|
18105
18137
|
const { position: c, xAdjust: u, yAdjust: d } = e, h = Wg(r, o, { borderWidth: 0, position: c, xAdjust: u, yAdjust: d });
|
|
18106
18138
|
return {
|
|
@@ -18152,20 +18184,20 @@ Xa.defaults = {
|
|
|
18152
18184
|
yAdjust: 0
|
|
18153
18185
|
};
|
|
18154
18186
|
Xa.defaultRoutes = {};
|
|
18155
|
-
function
|
|
18187
|
+
function YD(n, t) {
|
|
18156
18188
|
return n.getSortedVisibleDatasetMetas().reduce(function(e, i) {
|
|
18157
18189
|
const s = i.controller;
|
|
18158
|
-
return s instanceof Pn &&
|
|
18190
|
+
return s instanceof Pn && $D(n, t, i.data) && (!e || s.innerRadius < e.controller.innerRadius) && s.options.circumference >= 90 ? i : e;
|
|
18159
18191
|
}, void 0);
|
|
18160
18192
|
}
|
|
18161
|
-
function
|
|
18193
|
+
function $D(n, t, e) {
|
|
18162
18194
|
if (!t.autoHide)
|
|
18163
18195
|
return !0;
|
|
18164
18196
|
for (let i = 0; i < e.length; i++)
|
|
18165
18197
|
if (!e[i].hidden && n.getDataVisibility(i))
|
|
18166
18198
|
return !0;
|
|
18167
18199
|
}
|
|
18168
|
-
function
|
|
18200
|
+
function jD({ chartArea: n }, t, e) {
|
|
18169
18201
|
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 = {
|
|
18170
18202
|
left: Math.max(u - o, i),
|
|
18171
18203
|
right: Math.min(u + o, r),
|
|
@@ -18174,7 +18206,7 @@ function YD({ chartArea: n }, t, e) {
|
|
|
18174
18206
|
}, f = {
|
|
18175
18207
|
x: (h.left + h.right) / 2,
|
|
18176
18208
|
y: (h.top + h.bottom) / 2
|
|
18177
|
-
}, g = t.spacing + t.borderWidth / 2, y = o - g, _ = f.y > d, x = _ ? s + g : a - g, M =
|
|
18209
|
+
}, g = t.spacing + t.borderWidth / 2, y = o - g, _ = f.y > d, x = _ ? s + g : a - g, M = VD(x, u, d, y);
|
|
18178
18210
|
return {
|
|
18179
18211
|
controllerMeta: {
|
|
18180
18212
|
_centerX: u,
|
|
@@ -18187,11 +18219,11 @@ function YD({ chartArea: n }, t, e) {
|
|
|
18187
18219
|
radius: Math.min(o, Math.min(h.right - h.left, h.bottom - h.top) / 2)
|
|
18188
18220
|
};
|
|
18189
18221
|
}
|
|
18190
|
-
function
|
|
18222
|
+
function UD({ width: n, height: t }, e) {
|
|
18191
18223
|
const i = Math.sqrt(Math.pow(n, 2) + Math.pow(t, 2));
|
|
18192
18224
|
return e * 2 / i;
|
|
18193
18225
|
}
|
|
18194
|
-
function
|
|
18226
|
+
function VD(n, t, e, i) {
|
|
18195
18227
|
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;
|
|
18196
18228
|
if (l <= 0)
|
|
18197
18229
|
return {
|
|
@@ -18204,7 +18236,7 @@ function jD(n, t, e, i) {
|
|
|
18204
18236
|
_endAngle: _a({ x: t, y: e }, { x: u, y: n }).angle
|
|
18205
18237
|
};
|
|
18206
18238
|
}
|
|
18207
|
-
function
|
|
18239
|
+
function qD(n, t) {
|
|
18208
18240
|
const { _centerX: e, _centerY: i, _radius: s, _startAngle: r, _endAngle: a, _counterclockwise: o, options: l } = t;
|
|
18209
18241
|
n.save();
|
|
18210
18242
|
const c = An(n, l);
|
|
@@ -18224,7 +18256,7 @@ class Mr extends de {
|
|
|
18224
18256
|
}
|
|
18225
18257
|
draw(t) {
|
|
18226
18258
|
const e = this.options, i = !ze(this._visible) || this._visible;
|
|
18227
|
-
!e.display || !e.content || !i || (t.save(), Va(t, this.getCenterPoint(), this.rotation),
|
|
18259
|
+
!e.display || !e.content || !i || (t.save(), Va(t, this.getCenterPoint(), this.rotation), pD(t, this), qg(t, this, e), Xg(t, XD(this), e), t.restore());
|
|
18228
18260
|
}
|
|
18229
18261
|
resolveElementProperties(t, e) {
|
|
18230
18262
|
let i;
|
|
@@ -18308,7 +18340,7 @@ Mr.defaults = {
|
|
|
18308
18340
|
Mr.defaultRoutes = {
|
|
18309
18341
|
borderColor: "color"
|
|
18310
18342
|
};
|
|
18311
|
-
function
|
|
18343
|
+
function XD({ x: n, y: t, width: e, height: i, options: s }) {
|
|
18312
18344
|
const r = s.borderWidth / 2, a = ee(s.padding);
|
|
18313
18345
|
return {
|
|
18314
18346
|
x: n + a.left + r,
|
|
@@ -18317,7 +18349,7 @@ function VD({ x: n, y: t, width: e, height: i, options: s }) {
|
|
|
18317
18349
|
height: i - a.top - a.bottom - s.borderWidth
|
|
18318
18350
|
};
|
|
18319
18351
|
}
|
|
18320
|
-
const Fc = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Xl = (n, t, e) => Fc(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, dh = (n, t, e) => Fc(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Vs = (n) => n * n,
|
|
18352
|
+
const Fc = (n, t, e) => ({ x: n.x + e * (t.x - n.x), y: n.y + e * (t.y - n.y) }), Xl = (n, t, e) => Fc(t, e, Math.abs((n - t.y) / (e.y - t.y))).x, dh = (n, t, e) => Fc(t, e, Math.abs((n - t.x) / (e.x - t.x))).y, Vs = (n) => n * n, GD = (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 }, hh = (n, t, e, i) => (1 - i) * (1 - i) * n + 2 * (1 - i) * i * t + i * i * e, Gl = (n, t, e, i) => ({ x: hh(n.x, t.x, e.x, i), y: hh(n.y, t.y, e.y, i) }), fh = (n, t, e, i) => 2 * (1 - i) * (t - n) + 2 * i * (e - t), gh = (n, t, e, i) => -Math.atan2(fh(n.x, t.x, e.x, i), fh(n.y, t.y, e.y, i)) + 0.5 * pt;
|
|
18321
18353
|
class Sr extends de {
|
|
18322
18354
|
inRange(t, e, i, s) {
|
|
18323
18355
|
const r = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
@@ -18329,9 +18361,9 @@ class Sr extends de {
|
|
|
18329
18361
|
return l.restore(), f;
|
|
18330
18362
|
}
|
|
18331
18363
|
const c = Vs(r);
|
|
18332
|
-
return
|
|
18364
|
+
return JD(this, a, c, s) || Kl(this, a, s);
|
|
18333
18365
|
}
|
|
18334
|
-
return
|
|
18366
|
+
return KD(this, { mouseX: t, mouseY: e }, i, { hitSize: r, useFinalPosition: s });
|
|
18335
18367
|
}
|
|
18336
18368
|
getCenterPoint(t) {
|
|
18337
18369
|
return Ei(this, t);
|
|
@@ -18343,7 +18375,7 @@ class Sr extends de {
|
|
|
18343
18375
|
fs(t, o);
|
|
18344
18376
|
const l = Math.sqrt(Math.pow(s - e, 2) + Math.pow(r - i, 2));
|
|
18345
18377
|
if (o.curve && a)
|
|
18346
|
-
return
|
|
18378
|
+
return ok(t, this, a, l), t.restore();
|
|
18347
18379
|
const { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = nm(this), f = Math.atan2(r - i, s - e);
|
|
18348
18380
|
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(), Zl(t, 0, d, c), Zl(t, l, -h, u), t.restore();
|
|
18349
18381
|
}
|
|
@@ -18351,12 +18383,12 @@ class Sr extends de {
|
|
|
18351
18383
|
return this.elements && this.elements[0];
|
|
18352
18384
|
}
|
|
18353
18385
|
resolveElementProperties(t, e) {
|
|
18354
|
-
const i =
|
|
18386
|
+
const i = SD(t, e), { x: s, y: r, x2: a, y2: o } = i, l = ZD(i, t.chartArea), c = l ? QD({ 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) };
|
|
18355
18387
|
if (c.centerX = (a + s) / 2, c.centerY = (o + r) / 2, c.initProperties = hs(t, c, e), e.curve) {
|
|
18356
18388
|
const d = { x: c.x, y: c.y }, h = { x: c.x2, y: c.y2 };
|
|
18357
|
-
c.cp =
|
|
18389
|
+
c.cp = ak(c, e, ns(d, h));
|
|
18358
18390
|
}
|
|
18359
|
-
const u =
|
|
18391
|
+
const u = tk(t, c, e.label);
|
|
18360
18392
|
return u._visible = l, c.elements = [{
|
|
18361
18393
|
type: "label",
|
|
18362
18394
|
optionScope: "label",
|
|
@@ -18471,21 +18503,21 @@ Sr.descriptors = {
|
|
|
18471
18503
|
Sr.defaultRoutes = {
|
|
18472
18504
|
borderColor: "color"
|
|
18473
18505
|
};
|
|
18474
|
-
function
|
|
18475
|
-
const a =
|
|
18506
|
+
function KD(n, { mouseX: t, mouseY: e }, i, { hitSize: s, useFinalPosition: r }) {
|
|
18507
|
+
const a = GD(t, e, n.getProps(["x", "y", "x2", "y2"], r), i);
|
|
18476
18508
|
return Lg(a, s) || Kl(n, { mouseX: t, mouseY: e }, r, i);
|
|
18477
18509
|
}
|
|
18478
|
-
function
|
|
18510
|
+
function ZD({ x: n, y: t, x2: e, y2: i }, { top: s, right: r, bottom: a, left: o }) {
|
|
18479
18511
|
return !(n < o && e < o || n > r && e > r || t < s && i < s || t > a && i > a);
|
|
18480
18512
|
}
|
|
18481
18513
|
function ph({ x: n, y: t }, e, { top: i, right: s, bottom: r, left: a }) {
|
|
18482
18514
|
return n < a && (t = dh(a, { x: n, y: t }, e), n = a), n > s && (t = dh(s, { x: n, y: t }, e), n = s), t < i && (n = Xl(i, { x: n, y: t }, e), t = i), t > r && (n = Xl(r, { x: n, y: t }, e), t = r), { x: n, y: t };
|
|
18483
18515
|
}
|
|
18484
|
-
function
|
|
18516
|
+
function QD(n, t, e) {
|
|
18485
18517
|
const { x: i, y: s } = ph(n, t, e), { x: r, y: a } = ph(t, n, e);
|
|
18486
18518
|
return { x: i, y: s, x2: r, y2: a, width: Math.abs(r - i), height: Math.abs(a - s) };
|
|
18487
18519
|
}
|
|
18488
|
-
function
|
|
18520
|
+
function JD(n, { mouseX: t, mouseY: e }, i = vi, s) {
|
|
18489
18521
|
const { x: r, y: a, x2: o, y2: l } = n.getProps(["x", "y", "x2", "y2"], s), c = o - r, u = l - a, d = Vs(c) + Vs(u), h = d === 0 ? -1 : ((t - r) * c + (e - a) * u) / d;
|
|
18490
18522
|
let f, g;
|
|
18491
18523
|
return h < 0 ? (f = r, g = a) : h > 1 ? (f = o, g = l) : (f = r + h * c, g = a + h * u), Vs(t - f) + Vs(e - g) <= i;
|
|
@@ -18494,16 +18526,16 @@ function Kl(n, { mouseX: t, mouseY: e }, i, s) {
|
|
|
18494
18526
|
const r = n.label;
|
|
18495
18527
|
return r.options.display && r.inRange(t, e, s, i);
|
|
18496
18528
|
}
|
|
18497
|
-
function
|
|
18529
|
+
function tk(n, t, e) {
|
|
18498
18530
|
const i = e.borderWidth, s = ee(e.padding), r = qa(n.ctx, e), a = r.width + s.width + i, o = r.height + s.height + i;
|
|
18499
|
-
return
|
|
18531
|
+
return nk(t, e, { width: a, height: o, padding: s }, n.chartArea);
|
|
18500
18532
|
}
|
|
18501
|
-
function
|
|
18533
|
+
function ek(n) {
|
|
18502
18534
|
const { x: t, y: e, x2: i, y2: s } = n, r = Math.atan2(s - e, i - t);
|
|
18503
18535
|
return r > pt / 2 ? r - pt : r < pt / -2 ? r + pt : r;
|
|
18504
18536
|
}
|
|
18505
|
-
function
|
|
18506
|
-
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" ?
|
|
18537
|
+
function nk(n, t, e, i) {
|
|
18538
|
+
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" ? ek(n) : te(t.rotation), h = ik(s, r, d), f = sk(n, t, { labelSize: h, padding: a }, i), g = n.cp ? Gl(c, n.cp, u, f) : Fc(c, u, f), y = { size: h.w, min: i.left, max: i.right, padding: a.left }, _ = { size: h.h, min: i.top, max: i.bottom, padding: a.top }, x = bh(g.x, y) + o, M = bh(g.y, _) + l;
|
|
18507
18539
|
return {
|
|
18508
18540
|
x: x - s / 2,
|
|
18509
18541
|
y: M - r / 2,
|
|
@@ -18518,23 +18550,23 @@ function tk(n, t, e, i) {
|
|
|
18518
18550
|
rotation: Fa(d)
|
|
18519
18551
|
};
|
|
18520
18552
|
}
|
|
18521
|
-
function
|
|
18553
|
+
function ik(n, t, e) {
|
|
18522
18554
|
const i = Math.cos(e), s = Math.sin(e);
|
|
18523
18555
|
return {
|
|
18524
18556
|
w: Math.abs(n * i) + Math.abs(t * s),
|
|
18525
18557
|
h: Math.abs(n * s) + Math.abs(t * i)
|
|
18526
18558
|
};
|
|
18527
18559
|
}
|
|
18528
|
-
function
|
|
18560
|
+
function sk(n, t, e, i) {
|
|
18529
18561
|
let s;
|
|
18530
|
-
const r =
|
|
18562
|
+
const r = rk(n, i);
|
|
18531
18563
|
return t.position === "start" ? s = yh({ w: n.x2 - n.x, h: n.y2 - n.y }, e, t, r) : t.position === "end" ? s = 1 - yh({ w: n.x - n.x2, h: n.y - n.y2 }, e, t, r) : s = Rc(1, t.position), s;
|
|
18532
18564
|
}
|
|
18533
18565
|
function yh(n, t, e, i) {
|
|
18534
18566
|
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;
|
|
18535
18567
|
return ja(Math.max(l, c), 0, 0.25);
|
|
18536
18568
|
}
|
|
18537
|
-
function
|
|
18569
|
+
function rk(n, t) {
|
|
18538
18570
|
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);
|
|
18539
18571
|
return {
|
|
18540
18572
|
x: Math.min(o, c),
|
|
@@ -18568,7 +18600,7 @@ function Zl(n, t, e, i) {
|
|
|
18568
18600
|
const { length: s, width: r, fill: a, backgroundColor: o, borderColor: l } = i, c = Math.abs(t - s) + e;
|
|
18569
18601
|
n.beginPath(), fs(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();
|
|
18570
18602
|
}
|
|
18571
|
-
function
|
|
18603
|
+
function ak(n, t, e) {
|
|
18572
18604
|
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 = {
|
|
18573
18605
|
x: o + ei(e, u.x, !1),
|
|
18574
18606
|
y: l + ei(e, u.y, !1)
|
|
@@ -18578,7 +18610,7 @@ function sk(n, t, e) {
|
|
|
18578
18610
|
function vh(n, { x: t, y: e }, { angle: i, adjust: s }, r) {
|
|
18579
18611
|
!r || !r.display || (n.save(), n.translate(t, e), n.rotate(i), Zl(n, 0, -s, r), n.restore());
|
|
18580
18612
|
}
|
|
18581
|
-
function
|
|
18613
|
+
function ok(n, t, e, i) {
|
|
18582
18614
|
const { x: s, y: r, x2: a, y2: o, options: l } = t, { startOpts: c, endOpts: u, startAdjust: d, endAdjust: h } = nm(t), f = { x: s, y: r }, g = { x: a, y: o }, y = gh(f, e, g, 0), _ = gh(f, e, g, 1) - pt, x = Gl(f, e, g, d / i), M = Gl(f, e, g, 1 - h / i), S = new Path2D();
|
|
18583
18615
|
n.beginPath(), S.moveTo(x.x, x.y), S.quadraticCurveTo(e.x, e.y, M.x, M.y), n.shadowColor = l.borderShadowColor, n.stroke(S), t.path = S, t.ctx = n, vh(n, x, { angle: y, adjust: d }, c), vh(n, M, { angle: _, adjust: h }, u);
|
|
18584
18616
|
}
|
|
@@ -18586,7 +18618,7 @@ class Tr extends de {
|
|
|
18586
18618
|
inRange(t, e, i, s) {
|
|
18587
18619
|
const r = this.options.rotation, a = (this.options.borderWidth + this.options.hitTolerance) / 2;
|
|
18588
18620
|
if (i !== "x" && i !== "y")
|
|
18589
|
-
return
|
|
18621
|
+
return lk({ x: t, y: e }, this.getProps(["width", "height", "centerX", "centerY"], s), r, a);
|
|
18590
18622
|
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 = Pi({ x: t, y: e }, this.getCenterPoint(s), te(-r));
|
|
18591
18623
|
return h[i] >= d.start - a - vi && h[i] <= d.end + a + vi;
|
|
18592
18624
|
}
|
|
@@ -18639,7 +18671,7 @@ Tr.descriptors = {
|
|
|
18639
18671
|
_fallback: !0
|
|
18640
18672
|
}
|
|
18641
18673
|
};
|
|
18642
|
-
function
|
|
18674
|
+
function lk(n, t, e, i) {
|
|
18643
18675
|
const { width: s, height: r, centerX: a, centerY: o } = t, l = s / 2, c = r / 2;
|
|
18644
18676
|
if (l <= 0 || c <= 0)
|
|
18645
18677
|
return !1;
|
|
@@ -18649,7 +18681,7 @@ function ak(n, t, e, i) {
|
|
|
18649
18681
|
class Ga extends de {
|
|
18650
18682
|
inRange(t, e, i, s) {
|
|
18651
18683
|
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;
|
|
18652
|
-
return i !== "x" && i !== "y" ?
|
|
18684
|
+
return i !== "x" && i !== "y" ? nD({ x: t, y: e }, this.getCenterPoint(s), c / 2, u) : Lg(i === "y" ? { start: a, end: l, value: e } : { start: r, end: o, value: t }, u);
|
|
18653
18685
|
}
|
|
18654
18686
|
getCenterPoint(t) {
|
|
18655
18687
|
return Ei(this, t);
|
|
@@ -18660,7 +18692,7 @@ class Ga extends de {
|
|
|
18660
18692
|
return;
|
|
18661
18693
|
t.save(), t.fillStyle = e.backgroundColor, fs(t, e);
|
|
18662
18694
|
const s = An(t, e);
|
|
18663
|
-
|
|
18695
|
+
uD(t, this, this.centerX, this.centerY), s && !Ua(e.pointStyle) && (t.shadowColor = e.borderShadowColor, t.stroke()), t.restore(), e.borderWidth = i;
|
|
18664
18696
|
}
|
|
18665
18697
|
resolveElementProperties(t, e) {
|
|
18666
18698
|
const i = Qg(t, e);
|
|
@@ -18703,7 +18735,7 @@ Ga.defaultRoutes = {
|
|
|
18703
18735
|
class Ka extends de {
|
|
18704
18736
|
inRange(t, e, i, s) {
|
|
18705
18737
|
if (i !== "x" && i !== "y")
|
|
18706
|
-
return this.options.radius >= 0.1 && this.elements.length > 1 &&
|
|
18738
|
+
return this.options.radius >= 0.1 && this.elements.length > 1 && uk(this.elements, t, e, s);
|
|
18707
18739
|
const r = Pi({ 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);
|
|
18708
18740
|
return r[i] >= o && r[i] <= l;
|
|
18709
18741
|
}
|
|
@@ -18723,7 +18755,7 @@ class Ka extends de {
|
|
|
18723
18755
|
const i = Qg(t, e), { sides: s, rotation: r } = e, a = [], o = 2 * pt / s;
|
|
18724
18756
|
let l = r * ac;
|
|
18725
18757
|
for (let c = 0; c < s; c++, l += o) {
|
|
18726
|
-
const u =
|
|
18758
|
+
const u = ck(i, e, l);
|
|
18727
18759
|
u.initProperties = hs(t, i, e), a.push(u);
|
|
18728
18760
|
}
|
|
18729
18761
|
return i.elements = a, i;
|
|
@@ -18767,7 +18799,7 @@ Ka.defaultRoutes = {
|
|
|
18767
18799
|
borderColor: "color",
|
|
18768
18800
|
backgroundColor: "color"
|
|
18769
18801
|
};
|
|
18770
|
-
function
|
|
18802
|
+
function ck({ centerX: n, centerY: t }, { radius: e, borderWidth: i, hitTolerance: s }, r) {
|
|
18771
18803
|
const a = (i + s) / 2, o = Math.sin(r), l = Math.cos(r), c = { x: n + o * e, y: t - l * e };
|
|
18772
18804
|
return {
|
|
18773
18805
|
type: "point",
|
|
@@ -18782,7 +18814,7 @@ function ok({ centerX: n, centerY: t }, { radius: e, borderWidth: i, hitToleranc
|
|
|
18782
18814
|
}
|
|
18783
18815
|
};
|
|
18784
18816
|
}
|
|
18785
|
-
function
|
|
18817
|
+
function uk(n, t, e, i) {
|
|
18786
18818
|
let s = !1, r = n[n.length - 1].getProps(["bX", "bY"], i);
|
|
18787
18819
|
for (const a of n) {
|
|
18788
18820
|
const o = a.getProps(["bX", "bY"], i);
|
|
@@ -18804,26 +18836,26 @@ Object.keys(Zn).forEach((n) => {
|
|
|
18804
18836
|
_fallback: "plugins.annotation.common"
|
|
18805
18837
|
});
|
|
18806
18838
|
});
|
|
18807
|
-
const
|
|
18839
|
+
const dk = {
|
|
18808
18840
|
update: Object.assign
|
|
18809
|
-
},
|
|
18841
|
+
}, hk = Nc.concat(La), xh = (n, t) => yt(t) ? Jl(n, t) : n, Ql = (n) => n === "color" || n === "font";
|
|
18810
18842
|
function zc(n = "line") {
|
|
18811
18843
|
return Zn[n] ? n : (console.warn(`Unknown annotation type: '${n}', defaulting to 'line'`), "line");
|
|
18812
18844
|
}
|
|
18813
|
-
function
|
|
18814
|
-
const s =
|
|
18845
|
+
function fk(n, t, e, i) {
|
|
18846
|
+
const s = mk(n, e.animations, i), r = t.annotations, a = bk(t.elements, r);
|
|
18815
18847
|
for (let o = 0; o < r.length; o++) {
|
|
18816
|
-
const l = r[o], c = im(a, o, l.type), u = l.setContext(
|
|
18817
|
-
d.skip =
|
|
18848
|
+
const l = r[o], c = im(a, o, l.type), u = l.setContext(yk(n, c, a, l)), d = c.resolveElementProperties(n, u);
|
|
18849
|
+
d.skip = gk(d), "elements" in d && (pk(c, d.elements, u, s), delete d.elements), ze(c.x) || Object.assign(c, d), Object.assign(c, d.initProperties), d.options = sm(u), s.update(c, d);
|
|
18818
18850
|
}
|
|
18819
18851
|
}
|
|
18820
|
-
function
|
|
18852
|
+
function gk(n) {
|
|
18821
18853
|
return isNaN(n.x) || isNaN(n.y);
|
|
18822
18854
|
}
|
|
18823
|
-
function
|
|
18824
|
-
return e === "reset" || e === "none" || e === "resize" ?
|
|
18855
|
+
function mk(n, t, e) {
|
|
18856
|
+
return e === "reset" || e === "none" || e === "resize" ? dk : new pc(n, t);
|
|
18825
18857
|
}
|
|
18826
|
-
function
|
|
18858
|
+
function pk(n, t, e, i) {
|
|
18827
18859
|
const s = n.elements || (n.elements = []);
|
|
18828
18860
|
s.length = t.length;
|
|
18829
18861
|
for (let r = 0; r < t.length; r++) {
|
|
@@ -18843,7 +18875,7 @@ function sm(n) {
|
|
|
18843
18875
|
Jl(n, t.defaults),
|
|
18844
18876
|
Jl(n, t.defaultRoutes)
|
|
18845
18877
|
);
|
|
18846
|
-
for (const i of
|
|
18878
|
+
for (const i of hk)
|
|
18847
18879
|
e[i] = n[i];
|
|
18848
18880
|
return e;
|
|
18849
18881
|
}
|
|
@@ -18855,7 +18887,7 @@ function Jl(n, t) {
|
|
|
18855
18887
|
}
|
|
18856
18888
|
return e;
|
|
18857
18889
|
}
|
|
18858
|
-
function
|
|
18890
|
+
function yk(n, t, e, i) {
|
|
18859
18891
|
return t.$context || (t.$context = Object.assign(Object.create(n.getContext()), {
|
|
18860
18892
|
element: t,
|
|
18861
18893
|
get elements() {
|
|
@@ -18865,7 +18897,7 @@ function mk(n, t, e, i) {
|
|
|
18865
18897
|
type: "annotation"
|
|
18866
18898
|
}));
|
|
18867
18899
|
}
|
|
18868
|
-
function
|
|
18900
|
+
function bk(n, t) {
|
|
18869
18901
|
const e = t.length, i = n.length;
|
|
18870
18902
|
if (i < e) {
|
|
18871
18903
|
const s = e - i;
|
|
@@ -18873,13 +18905,13 @@ function pk(n, t) {
|
|
|
18873
18905
|
} else i > e && n.splice(e, i - e);
|
|
18874
18906
|
return n;
|
|
18875
18907
|
}
|
|
18876
|
-
var
|
|
18877
|
-
const Yn = /* @__PURE__ */ new Map(), wh = (n) => n.type !== "doughnutLabel",
|
|
18908
|
+
var _k = "3.1.0";
|
|
18909
|
+
const Yn = /* @__PURE__ */ new Map(), wh = (n) => n.type !== "doughnutLabel", vk = Nc.concat(La);
|
|
18878
18910
|
var Mh = {
|
|
18879
18911
|
id: "annotation",
|
|
18880
|
-
version:
|
|
18912
|
+
version: _k,
|
|
18881
18913
|
beforeRegister() {
|
|
18882
|
-
|
|
18914
|
+
iD("chart.js", "4.0", Fe.version);
|
|
18883
18915
|
},
|
|
18884
18916
|
afterRegister() {
|
|
18885
18917
|
Fe.register(Zn);
|
|
@@ -18906,15 +18938,15 @@ var Mh = {
|
|
|
18906
18938
|
yt(r) ? Object.keys(r).forEach((a) => {
|
|
18907
18939
|
const o = r[a];
|
|
18908
18940
|
yt(o) && (o.id = a, s.push(o));
|
|
18909
|
-
}) : Ct(r) && s.push(...r),
|
|
18941
|
+
}) : Ct(r) && s.push(...r), FD(s.filter(wh), n.scales);
|
|
18910
18942
|
},
|
|
18911
18943
|
afterDataLimits(n, t) {
|
|
18912
18944
|
const e = Yn.get(n);
|
|
18913
|
-
|
|
18945
|
+
ND(n, t.scale, e.annotations.filter(wh).filter((i) => i.display && i.adjustScaleRange));
|
|
18914
18946
|
},
|
|
18915
18947
|
afterUpdate(n, t, e) {
|
|
18916
18948
|
const i = Yn.get(n);
|
|
18917
|
-
|
|
18949
|
+
ED(n, i, e), fk(n, i, e, t.mode), i.visibleElements = i.elements.filter((s) => !s.skip && s.options.display), LD(n, i, e);
|
|
18918
18950
|
},
|
|
18919
18951
|
beforeDatasetsDraw(n, t, e) {
|
|
18920
18952
|
zs(n, "beforeDatasetsDraw", e.clip);
|
|
@@ -18933,7 +18965,7 @@ var Mh = {
|
|
|
18933
18965
|
},
|
|
18934
18966
|
beforeEvent(n, t, e) {
|
|
18935
18967
|
const i = Yn.get(n);
|
|
18936
|
-
|
|
18968
|
+
AD(i, t.event, e) && (t.changed = !0);
|
|
18937
18969
|
},
|
|
18938
18970
|
afterDestroy(n) {
|
|
18939
18971
|
Yn.delete(n);
|
|
@@ -18971,7 +19003,7 @@ var Mh = {
|
|
|
18971
19003
|
},
|
|
18972
19004
|
descriptors: {
|
|
18973
19005
|
_indexable: !1,
|
|
18974
|
-
_scriptable: (n) => !
|
|
19006
|
+
_scriptable: (n) => !vk.includes(n) && n !== "init",
|
|
18975
19007
|
annotations: {
|
|
18976
19008
|
_allKeys: !1,
|
|
18977
19009
|
_fallback: (n, t) => `elements.${Zn[zc(t.type)].id}`
|
|
@@ -18992,12 +19024,12 @@ var Mh = {
|
|
|
18992
19024
|
function zs(n, t, e) {
|
|
18993
19025
|
const { ctx: i, chartArea: s } = n, r = Yn.get(n);
|
|
18994
19026
|
e && pr(i, s);
|
|
18995
|
-
const a =
|
|
19027
|
+
const a = xk(r.visibleElements, t).sort((o, l) => o.element.options.z - l.element.options.z);
|
|
18996
19028
|
for (const o of a)
|
|
18997
|
-
|
|
19029
|
+
wk(i, s, r, o);
|
|
18998
19030
|
e && yr(i);
|
|
18999
19031
|
}
|
|
19000
|
-
function
|
|
19032
|
+
function xk(n, t) {
|
|
19001
19033
|
const e = [];
|
|
19002
19034
|
for (const i of n)
|
|
19003
19035
|
if (i.options.drawTime === t && e.push({ element: i, main: !0 }), i.elements && i.elements.length)
|
|
@@ -19005,17 +19037,17 @@ function _k(n, t) {
|
|
|
19005
19037
|
s.options.display && s.options.drawTime === t && e.push({ element: s });
|
|
19006
19038
|
return e;
|
|
19007
19039
|
}
|
|
19008
|
-
function
|
|
19040
|
+
function wk(n, t, e, i) {
|
|
19009
19041
|
const s = i.element;
|
|
19010
19042
|
i.main ? (lh(e, s, "beforeDraw"), s.draw(n, t), lh(e, s, "afterDraw")) : s.draw(n, t);
|
|
19011
19043
|
}
|
|
19012
|
-
const
|
|
19044
|
+
const Mk = { class: "zoom-timerange-container" }, Sk = { class: "zoom-timerange-details" }, Tk = {
|
|
19013
19045
|
class: "label",
|
|
19014
19046
|
"data-testid": "zoom-timerange-from"
|
|
19015
|
-
},
|
|
19047
|
+
}, Dk = {
|
|
19016
19048
|
class: "label",
|
|
19017
19049
|
"data-testid": "zoom-timerange-to"
|
|
19018
|
-
},
|
|
19050
|
+
}, kk = /* @__PURE__ */ he({
|
|
19019
19051
|
__name: "ZoomTimerange",
|
|
19020
19052
|
props: {
|
|
19021
19053
|
start: {},
|
|
@@ -19042,11 +19074,11 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19042
19074
|
};
|
|
19043
19075
|
return ue(() => [t.start, t.end], ([a, o]) => {
|
|
19044
19076
|
r(a, o);
|
|
19045
|
-
}, { immediate: !0 }), (a, o) => (j(), rt("div",
|
|
19046
|
-
at("div",
|
|
19047
|
-
at("div",
|
|
19077
|
+
}, { immediate: !0 }), (a, o) => (j(), rt("div", Mk, [
|
|
19078
|
+
at("div", Sk, [
|
|
19079
|
+
at("div", Tk, ht(q(e).t("zoom_time_range.from")), 1),
|
|
19048
19080
|
at("div", null, ht(i.value), 1),
|
|
19049
|
-
at("div",
|
|
19081
|
+
at("div", Dk, ht(q(e).t("zoom_time_range.to")), 1),
|
|
19050
19082
|
at("div", null, ht(s.value), 1)
|
|
19051
19083
|
])
|
|
19052
19084
|
]));
|
|
@@ -19056,7 +19088,7 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19056
19088
|
for (const [i, s] of t)
|
|
19057
19089
|
e[i] = s;
|
|
19058
19090
|
return e;
|
|
19059
|
-
}, rm = /* @__PURE__ */ $e(
|
|
19091
|
+
}, rm = /* @__PURE__ */ $e(kk, [["__scopeId", "data-v-4fa681cf"]]), Ck = { class: "zoom-actions-container" }, Ok = { class: "zoom-actions-heading" }, Pk = { class: "zoom-action-select" }, Ek = ["data-testid"], Ak = ["aria-disabled", "href"], Rk = ["onClick"], Ik = /* @__PURE__ */ he({
|
|
19060
19092
|
__name: "ZoomActions",
|
|
19061
19093
|
props: {
|
|
19062
19094
|
zoomActionItems: {},
|
|
@@ -19068,8 +19100,8 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19068
19100
|
const e = n, i = t, s = (r) => {
|
|
19069
19101
|
r.action && (r.action(e.newTimeRange), i("onAction"));
|
|
19070
19102
|
};
|
|
19071
|
-
return (r, a) => (j(), rt("div",
|
|
19072
|
-
at("div",
|
|
19103
|
+
return (r, a) => (j(), rt("div", Ck, [
|
|
19104
|
+
at("div", Ok, [
|
|
19073
19105
|
Zt(rm, {
|
|
19074
19106
|
end: n.newTimeRange.end,
|
|
19075
19107
|
granularity: n.granularity,
|
|
@@ -19083,7 +19115,7 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19083
19115
|
}, null, 8, ["color", "size"])
|
|
19084
19116
|
]),
|
|
19085
19117
|
a[2] || (a[2] = at("div", { class: "zoom-actions-heading-divider" }, null, -1)),
|
|
19086
|
-
at("div",
|
|
19118
|
+
at("div", Pk, [
|
|
19087
19119
|
(j(!0), rt(xi, null, Qi(n.zoomActionItems, (o) => (j(), rt("div", {
|
|
19088
19120
|
key: o.key,
|
|
19089
19121
|
class: rn(["zoom-action-item", { disabled: o.disabled }]),
|
|
@@ -19095,18 +19127,18 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19095
19127
|
class: "zoom-action-link",
|
|
19096
19128
|
href: o.href,
|
|
19097
19129
|
onClick: a[1] || (a[1] = (l) => r.$emit("onAction"))
|
|
19098
|
-
}, ht(o.label), 9,
|
|
19130
|
+
}, ht(o.label), 9, Ak)) : (j(), rt("div", {
|
|
19099
19131
|
key: 1,
|
|
19100
19132
|
onClick: (l) => s(o)
|
|
19101
|
-
}, ht(o.label), 9,
|
|
19102
|
-
], 10,
|
|
19133
|
+
}, ht(o.label), 9, Rk))
|
|
19134
|
+
], 10, Ek))), 128))
|
|
19103
19135
|
])
|
|
19104
19136
|
]));
|
|
19105
19137
|
}
|
|
19106
|
-
}),
|
|
19138
|
+
}), Lk = /* @__PURE__ */ $e(Ik, [["__scopeId", "data-v-179abac7"]]), Nk = { key: 2 }, Fk = { class: "tooltip-title" }, zk = { class: "title" }, Hk = {
|
|
19107
19139
|
key: 0,
|
|
19108
19140
|
class: "subtitle"
|
|
19109
|
-
},
|
|
19141
|
+
}, Bk = { class: "context" }, Wk = { class: "metric" }, Yk = { class: "tooltip" }, $k = { key: 0 }, jk = { class: "display-value" }, Uk = /* @__PURE__ */ he({
|
|
19110
19142
|
__name: "ChartTooltip",
|
|
19111
19143
|
props: {
|
|
19112
19144
|
state: {},
|
|
@@ -19119,7 +19151,7 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19119
19151
|
},
|
|
19120
19152
|
emits: ["dimensions", "onAction"],
|
|
19121
19153
|
setup(n, { emit: t }) {
|
|
19122
|
-
const e = t, i = n, s = Vt(null), { x: r, y: a, isDragging: o } =
|
|
19154
|
+
const e = t, i = n, s = Vt(null), { x: r, y: a, isDragging: o } = $T(s, {
|
|
19123
19155
|
initialValue: {
|
|
19124
19156
|
x: parseFloat(i.absoluteLeft),
|
|
19125
19157
|
y: parseFloat(i.absoluteTop)
|
|
@@ -19153,15 +19185,15 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19153
19185
|
end: (y = n.zoomTimeRange) == null ? void 0 : y.end,
|
|
19154
19186
|
granularity: n.granularity,
|
|
19155
19187
|
start: (_ = n.zoomTimeRange) == null ? void 0 : _.start
|
|
19156
|
-
}, null, 8, ["end", "granularity", "start"])) : n.state.interactionMode === "zoom-interactive" && n.zoomTimeRange && n.zoomActionItems && n.granularity ? (j(), It(
|
|
19188
|
+
}, null, 8, ["end", "granularity", "start"])) : n.state.interactionMode === "zoom-interactive" && n.zoomTimeRange && n.zoomActionItems && n.granularity ? (j(), It(Lk, {
|
|
19157
19189
|
key: 1,
|
|
19158
19190
|
granularity: n.granularity,
|
|
19159
19191
|
"new-time-range": n.zoomTimeRange,
|
|
19160
19192
|
"zoom-action-items": n.zoomActionItems,
|
|
19161
19193
|
onOnAction: g[0] || (g[0] = (x) => e("onAction"))
|
|
19162
|
-
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (j(), rt("div",
|
|
19163
|
-
at("div",
|
|
19164
|
-
at("div",
|
|
19194
|
+
}, null, 8, ["granularity", "new-time-range", "zoom-action-items"])) : (j(), rt("div", Nk, [
|
|
19195
|
+
at("div", Fk, [
|
|
19196
|
+
at("div", zk, [
|
|
19165
19197
|
at("div", null, ht(n.tooltipTitle), 1),
|
|
19166
19198
|
h.value ? (j(), It(q(Em), {
|
|
19167
19199
|
key: 0,
|
|
@@ -19170,16 +19202,16 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19170
19202
|
size: q(fr)
|
|
19171
19203
|
}, null, 8, ["color", "size"])) : Yt("", !0)
|
|
19172
19204
|
]),
|
|
19173
|
-
u.value || d.value ? (j(), rt("div",
|
|
19174
|
-
at("div",
|
|
19175
|
-
at("div",
|
|
19205
|
+
u.value || d.value ? (j(), rt("div", Hk, [
|
|
19206
|
+
at("div", Bk, ht(u.value), 1),
|
|
19207
|
+
at("div", Wk, ht(d.value), 1)
|
|
19176
19208
|
])) : Yt("", !0)
|
|
19177
19209
|
]),
|
|
19178
|
-
at("ul",
|
|
19210
|
+
at("ul", Yk, [
|
|
19179
19211
|
(j(!0), rt(xi, null, Qi(n.state.tooltipSeries, ({ backgroundColor: x, borderColor: M, label: S, value: O, isSegmentEmpty: E }, k) => (j(), rt(xi, {
|
|
19180
19212
|
key: S + k
|
|
19181
19213
|
}, [
|
|
19182
|
-
n.state.tooltipSeries.length ? (j(), rt("li",
|
|
19214
|
+
n.state.tooltipSeries.length ? (j(), rt("li", $k, [
|
|
19183
19215
|
at("div", {
|
|
19184
19216
|
class: "square-marker",
|
|
19185
19217
|
style: Mi({ background: String(x), borderColor: String(M) })
|
|
@@ -19187,7 +19219,7 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19187
19219
|
at("span", {
|
|
19188
19220
|
class: rn(["display-label", { empty: E }])
|
|
19189
19221
|
}, ht(S), 3),
|
|
19190
|
-
at("span",
|
|
19222
|
+
at("span", jk, ht(O), 1)
|
|
19191
19223
|
])) : Yt("", !0)
|
|
19192
19224
|
], 64))), 128))
|
|
19193
19225
|
])
|
|
@@ -19195,14 +19227,14 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19195
19227
|
], 6)) : Yt("", !0);
|
|
19196
19228
|
};
|
|
19197
19229
|
}
|
|
19198
|
-
}), Za = /* @__PURE__ */ $e(
|
|
19230
|
+
}), Za = /* @__PURE__ */ $e(Uk, [["__scopeId", "data-v-b449481c"]]), Vk = {
|
|
19199
19231
|
key: 0,
|
|
19200
19232
|
class: "legend-container",
|
|
19201
19233
|
"data-testid": "legend"
|
|
19202
|
-
},
|
|
19234
|
+
}, qk = ["onClick"], Xk = ["title"], Gk = { class: "label truncate-label" }, Kk = {
|
|
19203
19235
|
key: 0,
|
|
19204
19236
|
class: "sub-label"
|
|
19205
|
-
},
|
|
19237
|
+
}, Zk = { class: "tooltip-content" }, Qk = /* @__PURE__ */ he({
|
|
19206
19238
|
__name: "ChartLegend",
|
|
19207
19239
|
props: {
|
|
19208
19240
|
id: {
|
|
@@ -19233,7 +19265,7 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19233
19265
|
};
|
|
19234
19266
|
return (o, l) => {
|
|
19235
19267
|
const c = Re("KTooltip");
|
|
19236
|
-
return q(s) !== q(Ye).Hidden ? (j(), rt("ul",
|
|
19268
|
+
return q(s) !== q(Ye).Hidden ? (j(), rt("ul", Vk, [
|
|
19237
19269
|
(j(!0), rt(xi, null, Qi(n.items, ({ fillStyle: u, strokeStyle: d, text: h, datasetIndex: f, index: g, value: y, isSegmentEmpty: _ }) => (j(), rt("li", {
|
|
19238
19270
|
key: h,
|
|
19239
19271
|
onClick: (x) => r(f, g)
|
|
@@ -19248,50 +19280,50 @@ const xk = { class: "zoom-timerange-container" }, wk = { class: "zoom-timerange-
|
|
|
19248
19280
|
class: rn(["label-container", { "strike-through": !a(f, g) }]),
|
|
19249
19281
|
title: y && q(i) ? `${h}: ${y.formatted}` : h
|
|
19250
19282
|
}, [
|
|
19251
|
-
at("div",
|
|
19252
|
-
y && q(i) ? (j(), rt("div",
|
|
19253
|
-
], 10,
|
|
19283
|
+
at("div", Gk, ht(h), 1),
|
|
19284
|
+
y && q(i) ? (j(), rt("div", Kk, ht(y.formatted), 1)) : Yt("", !0)
|
|
19285
|
+
], 10, Xk)
|
|
19254
19286
|
]),
|
|
19255
19287
|
_: 2
|
|
19256
19288
|
}, [
|
|
19257
19289
|
_ ? {
|
|
19258
19290
|
name: "content",
|
|
19259
19291
|
fn: zt(() => [
|
|
19260
|
-
at("div",
|
|
19292
|
+
at("div", Zk, ht(q(e).t("emptyEntityInfo")), 1)
|
|
19261
19293
|
]),
|
|
19262
19294
|
key: "0"
|
|
19263
19295
|
} : void 0
|
|
19264
19296
|
]), 1024)
|
|
19265
|
-
], 8,
|
|
19297
|
+
], 8, qk))), 128))
|
|
19266
19298
|
])) : Yt("", !0);
|
|
19267
19299
|
};
|
|
19268
19300
|
}
|
|
19269
|
-
}), Hc = /* @__PURE__ */ $e(
|
|
19301
|
+
}), Hc = /* @__PURE__ */ $e(Qk, [["__scopeId", "data-v-27d1c6d3"]]), pe = [];
|
|
19270
19302
|
for (let n = 0; n < 256; ++n)
|
|
19271
19303
|
pe.push((n + 256).toString(16).slice(1));
|
|
19272
|
-
function
|
|
19304
|
+
function Jk(n, t = 0) {
|
|
19273
19305
|
return (pe[n[t + 0]] + pe[n[t + 1]] + pe[n[t + 2]] + pe[n[t + 3]] + "-" + pe[n[t + 4]] + pe[n[t + 5]] + "-" + pe[n[t + 6]] + pe[n[t + 7]] + "-" + pe[n[t + 8]] + pe[n[t + 9]] + "-" + pe[n[t + 10]] + pe[n[t + 11]] + pe[n[t + 12]] + pe[n[t + 13]] + pe[n[t + 14]] + pe[n[t + 15]]).toLowerCase();
|
|
19274
19306
|
}
|
|
19275
19307
|
let bl;
|
|
19276
|
-
const
|
|
19277
|
-
function
|
|
19308
|
+
const tC = new Uint8Array(16);
|
|
19309
|
+
function eC() {
|
|
19278
19310
|
if (!bl) {
|
|
19279
19311
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
19280
19312
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
19281
19313
|
bl = crypto.getRandomValues.bind(crypto);
|
|
19282
19314
|
}
|
|
19283
|
-
return bl(
|
|
19315
|
+
return bl(tC);
|
|
19284
19316
|
}
|
|
19285
|
-
const
|
|
19317
|
+
const nC = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Sh = { randomUUID: nC };
|
|
19286
19318
|
function tc(n, t, e) {
|
|
19287
19319
|
var s;
|
|
19288
19320
|
if (Sh.randomUUID && !n)
|
|
19289
19321
|
return Sh.randomUUID();
|
|
19290
19322
|
n = n || {};
|
|
19291
|
-
const i = n.random ?? ((s = n.rng) == null ? void 0 : s.call(n)) ??
|
|
19323
|
+
const i = n.random ?? ((s = n.rng) == null ? void 0 : s.call(n)) ?? eC();
|
|
19292
19324
|
if (i.length < 16)
|
|
19293
19325
|
throw new Error("Random bytes length must be >= 16");
|
|
19294
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
19326
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Jk(i);
|
|
19295
19327
|
}
|
|
19296
19328
|
const Th = (n, t) => {
|
|
19297
19329
|
const e = n.ctx, i = n.scales.y, s = n.scales.x, r = t[t.length - 1].element;
|
|
@@ -19334,7 +19366,7 @@ class am {
|
|
|
19334
19366
|
this._pause = !1, t && (this._suppressNextClick = !0);
|
|
19335
19367
|
}
|
|
19336
19368
|
}
|
|
19337
|
-
const
|
|
19369
|
+
const iC = ["id"], sC = ["id"], rC = { class: "axis-tooltip-content" }, aC = "100%", oC = "100%", lC = 20, cC = 20, Dh = 6, uC = 0, dC = 10, hC = 10, fC = 1, gC = /* @__PURE__ */ he({
|
|
19338
19370
|
__name: "StackedBarChart",
|
|
19339
19371
|
props: {
|
|
19340
19372
|
chartData: {},
|
|
@@ -19372,14 +19404,14 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19372
19404
|
}, bt = {
|
|
19373
19405
|
...Z,
|
|
19374
19406
|
position: J ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19375
|
-
yAdjust: () => J ? 0 : -Math.abs(
|
|
19407
|
+
yAdjust: () => J ? 0 : -Math.abs(AS()),
|
|
19376
19408
|
content: (ot) => $d(c(ot, B), K)
|
|
19377
19409
|
}, Dt = {
|
|
19378
19410
|
...Z,
|
|
19379
|
-
content: (ot) =>
|
|
19411
|
+
content: (ot) => IS(c(ot, B), RS(ot.chart, Y)),
|
|
19380
19412
|
position: J ? { x: "start", y: "center" } : { x: "center", y: "end" },
|
|
19381
|
-
xAdjust: (ot) => J ?
|
|
19382
|
-
color:
|
|
19413
|
+
xAdjust: (ot) => J ? ES($d(c(ot, B), K)) : 0,
|
|
19414
|
+
color: TS
|
|
19383
19415
|
};
|
|
19384
19416
|
return {
|
|
19385
19417
|
[`${B}-value`]: bt,
|
|
@@ -19456,11 +19488,11 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19456
19488
|
}, 100)), $ = L(() => {
|
|
19457
19489
|
var B, K;
|
|
19458
19490
|
const Y = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19459
|
-
return d.value && Y && !S.value ? `${Math.max(Y * (
|
|
19491
|
+
return d.value && Y && !S.value ? `${Math.max(Y * (lC + Dh), z.value)}px` : aC;
|
|
19460
19492
|
}), dt = L(() => {
|
|
19461
19493
|
var B, K;
|
|
19462
19494
|
const Y = (K = (B = t.chartData) == null ? void 0 : B.labels) == null ? void 0 : K.length;
|
|
19463
|
-
return d.value && Y && S.value ? `${Math.max(Y * (
|
|
19495
|
+
return d.value && Y && S.value ? `${Math.max(Y * (cC + Dh), U.value)}px` : oC;
|
|
19464
19496
|
});
|
|
19465
19497
|
_t.useReportChartDataForSynthetics(St(t, "chartData"), St(t, "syntheticsDataKey")), ii(() => {
|
|
19466
19498
|
t.annotations && Fe.register(Mh), o.value && (z.value = o.value.offsetWidth, U.value = o.value.offsetHeight, tt.observe(o.value));
|
|
@@ -19501,7 +19533,7 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19501
19533
|
[Ye.Bottom]: "column"
|
|
19502
19534
|
}, et = L(() => {
|
|
19503
19535
|
if (h.value && H.value) {
|
|
19504
|
-
const Y = window.devicePixelRatio, B = H.value, K = B.scales.y.width * Y +
|
|
19536
|
+
const Y = window.devicePixelRatio, B = H.value, K = B.scales.y.width * Y + fC, Q = (B.scales.y.height + B.scales.y.top + B.scales.x.height) * Y, J = h.value.getContext("2d");
|
|
19505
19537
|
return J.scale(Y, Y), J.canvas.width = K, J.canvas.height = Q, J.canvas.style.width = `${K / Y}px`, J.canvas.style.height = `${Q / Y}px`, {
|
|
19506
19538
|
scale: Y,
|
|
19507
19539
|
width: K * Y,
|
|
@@ -19514,7 +19546,7 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19514
19546
|
const B = Y.target;
|
|
19515
19547
|
if (et.value && H.value && !S.value) {
|
|
19516
19548
|
const K = et.value.scale, Q = et.value.targetCtx, J = et.value.width, Z = et.value.height, bt = H.value, Dt = bt.canvas;
|
|
19517
|
-
Q.fillStyle = "white", B.scrollLeft >=
|
|
19549
|
+
Q.fillStyle = "white", B.scrollLeft >= uC && B.scrollLeft <= dC ? (Q.globalCompositeOperation = "source-over", Q.clearRect(0, 0, J, Z), Q.drawImage(Dt, 0, 0, J, Z, 0, 0, J, Z), Q.globalCompositeOperation = "destination-over", Q.fillRect(0, 0, J, Z)) : (Q.globalCompositeOperation = "source-over", Q.fillRect(0, (bt.scales.y.height + bt.scales.y.top + hC) * K, J, bt.scales.x.height * K));
|
|
19518
19550
|
}
|
|
19519
19551
|
O.offsetY = B.scrollTop, O.offsetX = B.scrollLeft, x.offset = B.scrollLeft;
|
|
19520
19552
|
}, xt = ({ width: Y, height: B }) => {
|
|
@@ -19541,7 +19573,7 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19541
19573
|
id: q(s),
|
|
19542
19574
|
ref: "axis",
|
|
19543
19575
|
class: "axis"
|
|
19544
|
-
}, null, 8,
|
|
19576
|
+
}, null, 8, iC),
|
|
19545
19577
|
at("div", {
|
|
19546
19578
|
ref: "chartContainer",
|
|
19547
19579
|
class: "chart-container",
|
|
@@ -19556,7 +19588,7 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19556
19588
|
id: q(r),
|
|
19557
19589
|
ref: "canvas",
|
|
19558
19590
|
class: "chart-canvas"
|
|
19559
|
-
}, null, 8,
|
|
19591
|
+
}, null, 8, sC)
|
|
19560
19592
|
], 4)
|
|
19561
19593
|
], 544),
|
|
19562
19594
|
(j(), It(Nh, { to: "body" }, [
|
|
@@ -19566,7 +19598,7 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19566
19598
|
style: Mi({ top: x.top, left: x.left }),
|
|
19567
19599
|
width: "auto"
|
|
19568
19600
|
}, [
|
|
19569
|
-
at("div",
|
|
19601
|
+
at("div", rC, ht(x.text), 1)
|
|
19570
19602
|
], 4)) : Yt("", !0),
|
|
19571
19603
|
Zt(Za, {
|
|
19572
19604
|
"absolute-left": q(E),
|
|
@@ -19584,14 +19616,14 @@ const eC = ["id"], nC = ["id"], iC = { class: "axis-tooltip-content" }, sC = "10
|
|
|
19584
19616
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
19585
19617
|
], 2));
|
|
19586
19618
|
}
|
|
19587
|
-
}),
|
|
19619
|
+
}), mC = /* @__PURE__ */ $e(gC, [["__scopeId", "data-v-60e5a1a7"]]);
|
|
19588
19620
|
/*!
|
|
19589
19621
|
* chartjs-adapter-date-fns v3.0.0
|
|
19590
19622
|
* https://www.chartjs.org
|
|
19591
19623
|
* (c) 2022 chartjs-adapter-date-fns Contributors
|
|
19592
19624
|
* Released under the MIT license
|
|
19593
19625
|
*/
|
|
19594
|
-
const
|
|
19626
|
+
const pC = {
|
|
19595
19627
|
datetime: "MMM d, yyyy, h:mm:ss aaaa",
|
|
19596
19628
|
millisecond: "h:mm:ss.SSS aaaa",
|
|
19597
19629
|
second: "h:mm:ss aaaa",
|
|
@@ -19607,7 +19639,7 @@ gf._date.override({
|
|
|
19607
19639
|
_id: "date-fns",
|
|
19608
19640
|
// DEBUG
|
|
19609
19641
|
formats: function() {
|
|
19610
|
-
return
|
|
19642
|
+
return pC;
|
|
19611
19643
|
},
|
|
19612
19644
|
parse: function(n, t) {
|
|
19613
19645
|
if (n === null || typeof n > "u")
|
|
@@ -19734,14 +19766,14 @@ const om = {
|
|
|
19734
19766
|
type: String,
|
|
19735
19767
|
default: void 0
|
|
19736
19768
|
}
|
|
19737
|
-
},
|
|
19769
|
+
}, yC = {
|
|
19738
19770
|
ariaLabel: {
|
|
19739
19771
|
type: String
|
|
19740
19772
|
},
|
|
19741
19773
|
ariaDescribedby: {
|
|
19742
19774
|
type: String
|
|
19743
19775
|
}
|
|
19744
|
-
},
|
|
19776
|
+
}, bC = {
|
|
19745
19777
|
type: {
|
|
19746
19778
|
type: String,
|
|
19747
19779
|
required: !0
|
|
@@ -19752,18 +19784,18 @@ const om = {
|
|
|
19752
19784
|
// No delay by default
|
|
19753
19785
|
},
|
|
19754
19786
|
...om,
|
|
19755
|
-
...
|
|
19756
|
-
},
|
|
19787
|
+
...yC
|
|
19788
|
+
}, _C = Tm[0] === "2" ? (n, t) => Object.assign(n, {
|
|
19757
19789
|
attrs: t
|
|
19758
19790
|
}) : (n, t) => Object.assign(n, t);
|
|
19759
19791
|
function Vi(n) {
|
|
19760
19792
|
return Fh(n) ? xl(n) : n;
|
|
19761
19793
|
}
|
|
19762
|
-
function
|
|
19794
|
+
function vC(n) {
|
|
19763
19795
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : n;
|
|
19764
19796
|
return Fh(t) ? new Proxy(n, {}) : n;
|
|
19765
19797
|
}
|
|
19766
|
-
function
|
|
19798
|
+
function xC(n, t) {
|
|
19767
19799
|
const e = n.options;
|
|
19768
19800
|
e && t && Object.assign(e, t);
|
|
19769
19801
|
}
|
|
@@ -19779,15 +19811,15 @@ function cm(n, t, e) {
|
|
|
19779
19811
|
} : (i.push(r), Object.assign(r, s), r);
|
|
19780
19812
|
});
|
|
19781
19813
|
}
|
|
19782
|
-
function
|
|
19814
|
+
function wC(n, t) {
|
|
19783
19815
|
const e = {
|
|
19784
19816
|
labels: [],
|
|
19785
19817
|
datasets: []
|
|
19786
19818
|
};
|
|
19787
19819
|
return lm(e, n.labels), cm(e, n.datasets, t), e;
|
|
19788
19820
|
}
|
|
19789
|
-
const
|
|
19790
|
-
props:
|
|
19821
|
+
const MC = he({
|
|
19822
|
+
props: bC,
|
|
19791
19823
|
setup(n, t) {
|
|
19792
19824
|
let { expose: e, slots: i } = t;
|
|
19793
19825
|
const s = Vt(null), r = Ge(null);
|
|
@@ -19796,7 +19828,7 @@ const xC = he({
|
|
|
19796
19828
|
});
|
|
19797
19829
|
const a = () => {
|
|
19798
19830
|
if (!s.value) return;
|
|
19799
|
-
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = n, g =
|
|
19831
|
+
const { type: c, data: u, options: d, plugins: h, datasetIdKey: f } = n, g = wC(u, f), y = vC(g, u);
|
|
19800
19832
|
r.value = new Fe(s.value, {
|
|
19801
19833
|
type: c,
|
|
19802
19834
|
data: y,
|
|
@@ -19824,7 +19856,7 @@ const xC = he({
|
|
|
19824
19856
|
let _ = !1;
|
|
19825
19857
|
if (d) {
|
|
19826
19858
|
const x = Vi(d), M = Vi(f);
|
|
19827
|
-
x && x !== M && (
|
|
19859
|
+
x && x !== M && (xC(y, x), _ = !0);
|
|
19828
19860
|
}
|
|
19829
19861
|
if (h) {
|
|
19830
19862
|
const x = Vi(h.labels), M = Vi(g.labels), S = Vi(h.datasets), O = Vi(g.datasets);
|
|
@@ -19857,7 +19889,7 @@ function Bc(n, t) {
|
|
|
19857
19889
|
};
|
|
19858
19890
|
return s({
|
|
19859
19891
|
chart: r
|
|
19860
|
-
}), () => vl(
|
|
19892
|
+
}), () => vl(MC, _C({
|
|
19861
19893
|
ref: a
|
|
19862
19894
|
}, {
|
|
19863
19895
|
type: n,
|
|
@@ -19866,7 +19898,7 @@ function Bc(n, t) {
|
|
|
19866
19898
|
}
|
|
19867
19899
|
});
|
|
19868
19900
|
}
|
|
19869
|
-
const um = /* @__PURE__ */ Bc("bar", Zs), dm = /* @__PURE__ */ Bc("doughnut", Pn), hm = /* @__PURE__ */ Bc("line", Qs),
|
|
19901
|
+
const um = /* @__PURE__ */ Bc("bar", Zs), dm = /* @__PURE__ */ Bc("doughnut", Pn), hm = /* @__PURE__ */ Bc("line", Qs), SC = { class: "chart-container" }, TC = /* @__PURE__ */ he({
|
|
19870
19902
|
__name: "DonutChart",
|
|
19871
19903
|
props: {
|
|
19872
19904
|
chartData: {},
|
|
@@ -19905,7 +19937,7 @@ const um = /* @__PURE__ */ Bc("bar", Zs), dm = /* @__PURE__ */ Bc("doughnut", Pn
|
|
|
19905
19937
|
afterUpdate(M) {
|
|
19906
19938
|
r.value = M.options.plugins.legend.labels.generateLabels(M).map((S) => ({ ...S, value: t.legendValues && t.legendValues[S.text], hidden: !1 }));
|
|
19907
19939
|
}
|
|
19908
|
-
}, d = L(() => [u]), h = L(() => [t.chartData.datasets.reduce((S, O) => (S.labels.push(O.label), S.backgroundColor.push(O.backgroundColor), S.borderColor.push(
|
|
19940
|
+
}, d = L(() => [u]), h = L(() => [t.chartData.datasets.reduce((S, O) => (S.labels.push(O.label), S.backgroundColor.push(O.backgroundColor), S.borderColor.push(SS(O.backgroundColor, 50)), S.data.push(O.data.reduce((E, k) => E + k, 0)), S), { labels: [], backgroundColor: [], borderColor: [], data: [] })]), f = L(() => ({
|
|
19909
19941
|
...t.chartData,
|
|
19910
19942
|
datasets: h.value
|
|
19911
19943
|
}));
|
|
@@ -19924,7 +19956,7 @@ const um = /* @__PURE__ */ Bc("bar", Zs), dm = /* @__PURE__ */ Bc("doughnut", Pn
|
|
|
19924
19956
|
class: rn(["chart-parent", _(n.legendPosition)]),
|
|
19925
19957
|
"data-testid": "donut-chart-parent"
|
|
19926
19958
|
}, [
|
|
19927
|
-
at("div",
|
|
19959
|
+
at("div", SC, [
|
|
19928
19960
|
Zt(q(dm), {
|
|
19929
19961
|
ref_key: "chartInstance",
|
|
19930
19962
|
ref: y,
|
|
@@ -19952,11 +19984,11 @@ const um = /* @__PURE__ */ Bc("bar", Zs), dm = /* @__PURE__ */ Bc("doughnut", Pn
|
|
|
19952
19984
|
}, null, 8, ["id", "chart-instance", "items", "position"])
|
|
19953
19985
|
], 2));
|
|
19954
19986
|
}
|
|
19955
|
-
}),
|
|
19987
|
+
}), DC = /* @__PURE__ */ $e(TC, [["__scopeId", "data-v-c26458b8"]]), _l = (n, t, e, i, s = "#0275d8") => {
|
|
19956
19988
|
n.save(), n.beginPath(), n.moveTo(t, e), n.lineTo(t, i), n.lineWidth = 1, n.strokeStyle = s, n.stroke(), n.restore();
|
|
19957
|
-
}, Te = {},
|
|
19989
|
+
}, Te = {}, kC = () => {
|
|
19958
19990
|
Te.x = void 0, Te.chart = void 0, Te.strategy = void 0, Te.group = void 0;
|
|
19959
|
-
},
|
|
19991
|
+
}, CC = 10;
|
|
19960
19992
|
class fm {
|
|
19961
19993
|
constructor({
|
|
19962
19994
|
brushGroup: t = void 0,
|
|
@@ -19980,7 +20012,7 @@ class fm {
|
|
|
19980
20012
|
(i.type === "mousemove" || i.type === "mouseout") && requestAnimationFrame((s) => this.onMouseBrush(i.type, t, s));
|
|
19981
20013
|
}
|
|
19982
20014
|
onMouseBrush(t, e, i) {
|
|
19983
|
-
if (t === "mousemove" && i - this._lastMouseBrushEvent <
|
|
20015
|
+
if (t === "mousemove" && i - this._lastMouseBrushEvent < CC)
|
|
19984
20016
|
return;
|
|
19985
20017
|
const s = () => {
|
|
19986
20018
|
Te.chart = e, Te.strategy = this._brushStrategy, Te.group = this._brushGroup;
|
|
@@ -20029,16 +20061,16 @@ class fm {
|
|
|
20029
20061
|
beforeDestroy(t) {
|
|
20030
20062
|
if (this._clickedSegment && this.destroyClickedSegment(), this._useBrushingState && Te.chart === t) {
|
|
20031
20063
|
const e = Te.x !== void 0;
|
|
20032
|
-
if (
|
|
20064
|
+
if (kC(), e)
|
|
20033
20065
|
for (const i of Object.values(Fe.instances))
|
|
20034
20066
|
i !== t && i.update("none");
|
|
20035
20067
|
}
|
|
20036
20068
|
}
|
|
20037
20069
|
}
|
|
20038
|
-
const
|
|
20070
|
+
const OC = (n, t, e) => {
|
|
20039
20071
|
const i = n.ctx;
|
|
20040
20072
|
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();
|
|
20041
|
-
},
|
|
20073
|
+
}, PC = (n, t, e) => {
|
|
20042
20074
|
const i = n.ctx;
|
|
20043
20075
|
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();
|
|
20044
20076
|
}, kh = (n, t, e) => {
|
|
@@ -20050,7 +20082,7 @@ const kC = (n, t, e) => {
|
|
|
20050
20082
|
}
|
|
20051
20083
|
}));
|
|
20052
20084
|
};
|
|
20053
|
-
class
|
|
20085
|
+
class EC {
|
|
20054
20086
|
constructor() {
|
|
20055
20087
|
P(this, "id", "dragSelectPlugin");
|
|
20056
20088
|
P(this, "_isDragging", !1);
|
|
@@ -20094,31 +20126,31 @@ class OC {
|
|
|
20094
20126
|
this._isDragging = !1, this._dragTimeout && clearTimeout(this._dragTimeout);
|
|
20095
20127
|
}
|
|
20096
20128
|
afterDatasetsDraw(t) {
|
|
20097
|
-
(this._isDragging || !this._clearSelectionArea) && (
|
|
20129
|
+
(this._isDragging || !this._clearSelectionArea) && (PC(t, this._startX, this._endX), OC(t, this._startX, this._endX));
|
|
20098
20130
|
}
|
|
20099
20131
|
clearSelectionArea() {
|
|
20100
20132
|
this._clearSelectionArea = !0, this._chart && this._chart.update();
|
|
20101
20133
|
}
|
|
20102
20134
|
}
|
|
20103
|
-
const
|
|
20135
|
+
const MP = ["hidden", "single", "full"];
|
|
20104
20136
|
var Gi = /* @__PURE__ */ ((n) => (n.String = "string", n.Number = "number", n.Boolean = "boolean", n.Object = "object", n.Undefined = "undefined", n))(Gi || {});
|
|
20105
|
-
const
|
|
20137
|
+
const SP = [
|
|
20106
20138
|
"donut",
|
|
20107
20139
|
"horizontal_bar",
|
|
20108
20140
|
"vertical_bar",
|
|
20109
20141
|
"timeseries_line",
|
|
20110
20142
|
"timeseries_bar"
|
|
20111
|
-
],
|
|
20143
|
+
], TP = [
|
|
20112
20144
|
"gauge",
|
|
20113
20145
|
"top_n",
|
|
20114
20146
|
"single_value"
|
|
20115
|
-
],
|
|
20147
|
+
], AC = 20, RC = "rgba(255, 171, 171, 0.4)", IC = "rgba(255, 196, 0, 0.2)", Ch = (n, t, e) => {
|
|
20116
20148
|
const i = t.y - n.y;
|
|
20117
20149
|
if (i === 0)
|
|
20118
20150
|
return t.x;
|
|
20119
20151
|
const s = (e - n.y) / i;
|
|
20120
20152
|
return n.x + s * (t.x - n.x);
|
|
20121
|
-
},
|
|
20153
|
+
}, LC = (n, t) => {
|
|
20122
20154
|
const e = [];
|
|
20123
20155
|
return n.data.datasets.forEach((i) => {
|
|
20124
20156
|
if (!n.getDatasetMeta(n.data.datasets.indexOf(i)).visible)
|
|
@@ -20151,7 +20183,7 @@ const wP = [
|
|
|
20151
20183
|
});
|
|
20152
20184
|
});
|
|
20153
20185
|
}), e;
|
|
20154
|
-
},
|
|
20186
|
+
}, NC = (n) => {
|
|
20155
20187
|
if (!n.length)
|
|
20156
20188
|
return [];
|
|
20157
20189
|
n.sort((e, i) => e.type.localeCompare(i.type) || e.start - i.start);
|
|
@@ -20162,7 +20194,7 @@ const wP = [
|
|
|
20162
20194
|
}
|
|
20163
20195
|
return t;
|
|
20164
20196
|
};
|
|
20165
|
-
class
|
|
20197
|
+
class FC {
|
|
20166
20198
|
constructor(t) {
|
|
20167
20199
|
P(this, "id", "thresholdPlugin");
|
|
20168
20200
|
P(this, "_thresholds");
|
|
@@ -20200,7 +20232,7 @@ class LC {
|
|
|
20200
20232
|
for (const h of Object.keys(this._thresholds || {})) {
|
|
20201
20233
|
const f = (o = this._thresholds) == null ? void 0 : o[h];
|
|
20202
20234
|
f && f.forEach((g) => {
|
|
20203
|
-
g.hovered = Math.abs(g.value - d) <
|
|
20235
|
+
g.hovered = Math.abs(g.value - d) < AC;
|
|
20204
20236
|
});
|
|
20205
20237
|
}
|
|
20206
20238
|
}
|
|
@@ -20217,12 +20249,12 @@ class LC {
|
|
|
20217
20249
|
const d = t.scales.y.getPixelForValue(c.value);
|
|
20218
20250
|
i.save(), i.beginPath(), i.moveTo(t.chartArea.left, d), i.lineTo(t.chartArea.right, d), i.lineWidth = 1, i.strokeStyle = al(c.type), i.setLineDash([5, 5]), i.stroke(), i.restore();
|
|
20219
20251
|
let h = "";
|
|
20220
|
-
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 = al(c.type), i.font =
|
|
20252
|
+
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 = al(c.type), i.font = MS, i.fillText(h, t.chartArea.left, d - 4), i.restore());
|
|
20221
20253
|
});
|
|
20222
|
-
const o =
|
|
20223
|
-
|
|
20254
|
+
const o = LC(t, a);
|
|
20255
|
+
NC(o).forEach((c) => {
|
|
20224
20256
|
const u = t.scales.x.getPixelForValue(c.start), d = t.scales.x.getPixelForValue(c.end);
|
|
20225
|
-
i.save(), i.fillStyle = c.type === "error" ?
|
|
20257
|
+
i.save(), i.fillStyle = c.type === "error" ? RC : IC, 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 = al(c.type), i.stroke(), i.restore();
|
|
20226
20258
|
});
|
|
20227
20259
|
}
|
|
20228
20260
|
}
|
|
@@ -20231,7 +20263,7 @@ class LC {
|
|
|
20231
20263
|
this._mouseMoveHandler && t.canvas.removeEventListener("mousemove", this._mouseMoveHandler);
|
|
20232
20264
|
}
|
|
20233
20265
|
}
|
|
20234
|
-
const
|
|
20266
|
+
const zC = /* @__PURE__ */ he({
|
|
20235
20267
|
__name: "TimeSeriesChart",
|
|
20236
20268
|
props: {
|
|
20237
20269
|
chartData: { default: void 0 },
|
|
@@ -20255,7 +20287,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20255
20287
|
},
|
|
20256
20288
|
emits: ["zoom-time-range", "select-chart-range"],
|
|
20257
20289
|
setup(n, { emit: t }) {
|
|
20258
|
-
const e = n, i = t, { i18n: s } = _t.useI18n(), r = new fm(), a = new am(), o = new
|
|
20290
|
+
const e = n, i = t, { i18n: s } = _t.useI18n(), r = new fm(), a = new am(), o = new EC(), l = new FC(s), { translateUnit: c } = _t.useTranslatedUnits(), u = Vt(), d = crypto.randomUUID(), h = crypto.randomUUID(), f = Vt([]), g = sr("legendPosition", Ye.Bottom), y = Ki("chartParent"), _ = Vt(void 0), x = Vt(!1), M = rr({
|
|
20259
20291
|
showTooltip: !1,
|
|
20260
20292
|
tooltipContext: 0,
|
|
20261
20293
|
// Set in lineChartTooltipBehavior
|
|
@@ -20287,7 +20319,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20287
20319
|
...e.brush ? [o] : [],
|
|
20288
20320
|
...e.type === "timeseries_line" ? [r] : [],
|
|
20289
20321
|
...e.threshold ? [l] : []
|
|
20290
|
-
]), T = L(() => `line-${k.value.map((H) => H.id).join("-")}`), m = L(() => `bar-${k.value.map((H) => H.id).join("-")}`), b = L(() => e.chartData &&
|
|
20322
|
+
]), T = L(() => `line-${k.value.map((H) => H.id).join("-")}`), m = L(() => `bar-${k.value.map((H) => H.id).join("-")}`), b = L(() => e.chartData && hS(e.chartData)), { options: w } = _t.useLineChartOptions({
|
|
20291
20323
|
tooltipState: M,
|
|
20292
20324
|
timeRangeMs: St(e, "timeRangeMs"),
|
|
20293
20325
|
granularity: St(e, "granularity"),
|
|
@@ -20405,14 +20437,14 @@ const NC = /* @__PURE__ */ he({
|
|
|
20405
20437
|
}, null, 8, ["id", "chart-instance", "items"])
|
|
20406
20438
|
], 2));
|
|
20407
20439
|
}
|
|
20408
|
-
}),
|
|
20440
|
+
}), HC = /* @__PURE__ */ $e(zC, [["__scopeId", "data-v-ac6e8bbc"]]), BC = {
|
|
20409
20441
|
key: 0,
|
|
20410
20442
|
class: "chart-truncation-warning",
|
|
20411
20443
|
"data-testid": "truncation-warning"
|
|
20412
|
-
},
|
|
20444
|
+
}, WC = { class: "tooltip-content" }, YC = {
|
|
20413
20445
|
key: 2,
|
|
20414
20446
|
class: "analytics-chart-parent"
|
|
20415
|
-
},
|
|
20447
|
+
}, $C = /* @__PURE__ */ he({
|
|
20416
20448
|
__name: "AnalyticsChart",
|
|
20417
20449
|
props: {
|
|
20418
20450
|
chartData: {},
|
|
@@ -20500,7 +20532,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20500
20532
|
const R = sl(Number(i.chartData.meta.granularity_ms));
|
|
20501
20533
|
if (R)
|
|
20502
20534
|
return s.te(`granularityAxisTitles.${R}`) ? s.t(`granularityAxisTitles.${R}`) : R;
|
|
20503
|
-
}), k = L(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), T = L(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), m = L(() => y.value ?
|
|
20535
|
+
}), k = L(() => i.emptyStateTitle || s.t("noDataAvailableTitle")), T = L(() => i.emptyStateDescription || s.t("noDataAvailableDescription")), m = L(() => y.value ? fS(r.value) : i.chartData && i.chartData.meta && i.chartData.data.length), b = L(() => i.chartData.meta.granularity_ms ? sl(i.chartData.meta.granularity_ms) || "hourly" : sl(
|
|
20504
20536
|
new Date(i.chartData.data[1].timestamp).getTime() - new Date(i.chartData.data[0].timestamp).getTime()
|
|
20505
20537
|
) || "hourly"), w = L(() => 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 = L(() => 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 = L(() => [
|
|
20506
20538
|
...i.timeseriesZoom ? [{
|
|
@@ -20526,26 +20558,26 @@ const NC = /* @__PURE__ */ he({
|
|
|
20526
20558
|
"show-values": c.value
|
|
20527
20559
|
}])
|
|
20528
20560
|
}, [
|
|
20529
|
-
m.value && h.value && d.value ? (j(), rt("div",
|
|
20561
|
+
m.value && h.value && d.value ? (j(), rt("div", BC, [
|
|
20530
20562
|
Zt(U, {
|
|
20531
20563
|
class: "tooltip",
|
|
20532
20564
|
"max-width": "500",
|
|
20533
20565
|
placement: "right"
|
|
20534
20566
|
}, {
|
|
20535
20567
|
content: zt(() => [
|
|
20536
|
-
at("div",
|
|
20568
|
+
at("div", WC, ht(f.value), 1)
|
|
20537
20569
|
]),
|
|
20538
20570
|
default: zt(() => [
|
|
20539
20571
|
Zt(q(Am), {
|
|
20540
|
-
color: `var(--kui-color-text-warning, ${q(
|
|
20541
|
-
size: q(
|
|
20572
|
+
color: `var(--kui-color-text-warning, ${q(vS)})`,
|
|
20573
|
+
size: q(wS)
|
|
20542
20574
|
}, null, 8, ["color", "size"])
|
|
20543
20575
|
]),
|
|
20544
20576
|
_: 1
|
|
20545
20577
|
})
|
|
20546
20578
|
])) : Yt("", !0),
|
|
20547
|
-
m.value ? (j(), rt("div",
|
|
20548
|
-
y.value ? (j(), It(
|
|
20579
|
+
m.value ? (j(), rt("div", YC, [
|
|
20580
|
+
y.value ? (j(), It(HC, {
|
|
20549
20581
|
key: 0,
|
|
20550
20582
|
brush: a.value,
|
|
20551
20583
|
"chart-data": r.value,
|
|
@@ -20567,7 +20599,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20567
20599
|
"zoom-action-items": A.value,
|
|
20568
20600
|
onSelectChartRange: z[0] || (z[0] = ($) => e("select-chart-range", $)),
|
|
20569
20601
|
onZoomTimeRange: z[1] || (z[1] = ($) => e("zoom-time-range", $))
|
|
20570
|
-
}, 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 ? (j(), It(
|
|
20602
|
+
}, 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 ? (j(), It(mC, {
|
|
20571
20603
|
key: 1,
|
|
20572
20604
|
annotations: n.showAnnotations,
|
|
20573
20605
|
"chart-data": r.value,
|
|
@@ -20583,7 +20615,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20583
20615
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20584
20616
|
"tooltip-metric-display": M.value,
|
|
20585
20617
|
"tooltip-title": n.tooltipTitle
|
|
20586
|
-
}, 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 ? (j(), It(
|
|
20618
|
+
}, 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 ? (j(), It(DC, {
|
|
20587
20619
|
key: 2,
|
|
20588
20620
|
"chart-data": r.value,
|
|
20589
20621
|
"dataset-colors": n.chartOptions.chartDatasetColors || q(ll),
|
|
@@ -20612,14 +20644,14 @@ const NC = /* @__PURE__ */ he({
|
|
|
20612
20644
|
], 2);
|
|
20613
20645
|
};
|
|
20614
20646
|
}
|
|
20615
|
-
}),
|
|
20647
|
+
}), DP = /* @__PURE__ */ $e($C, [["__scopeId", "data-v-5da5ef0c"]]), jC = {
|
|
20616
20648
|
class: "chart-parent",
|
|
20617
20649
|
"data-testid": "gauge-chart-parent"
|
|
20618
|
-
},
|
|
20650
|
+
}, UC = { class: "chart-totals-flex" }, VC = {
|
|
20619
20651
|
key: 1,
|
|
20620
20652
|
class: "metric-small",
|
|
20621
20653
|
"data-testid": "gauge-chart-total"
|
|
20622
|
-
},
|
|
20654
|
+
}, qC = /* @__PURE__ */ he({
|
|
20623
20655
|
__name: "GaugeChart",
|
|
20624
20656
|
props: {
|
|
20625
20657
|
chartData: {
|
|
@@ -20689,15 +20721,15 @@ const NC = /* @__PURE__ */ he({
|
|
|
20689
20721
|
var h;
|
|
20690
20722
|
return `color: ${(h = s == null ? void 0 : s.value[0]) == null ? void 0 : h.backgroundColor[t.numerator]}`;
|
|
20691
20723
|
}), u = L(() => ["full", "single"].includes(t.metricDisplay)), d = L(() => t.metricDisplay === "full");
|
|
20692
|
-
return (h, f) => (j(), rt("div",
|
|
20693
|
-
at("div",
|
|
20724
|
+
return (h, f) => (j(), rt("div", jC, [
|
|
20725
|
+
at("div", UC, [
|
|
20694
20726
|
u.value ? (j(), rt("div", {
|
|
20695
20727
|
key: 0,
|
|
20696
20728
|
class: "metric-large",
|
|
20697
20729
|
"data-testid": "gauge-chart-metric",
|
|
20698
20730
|
style: Mi(c.value)
|
|
20699
20731
|
}, ht(o.value), 5)) : Yt("", !0),
|
|
20700
|
-
d.value ? (j(), rt("div",
|
|
20732
|
+
d.value ? (j(), rt("div", VC, ht(q(e).t("total")) + ": " + ht(l.value), 1)) : Yt("", !0)
|
|
20701
20733
|
]),
|
|
20702
20734
|
at("div", {
|
|
20703
20735
|
class: "chart-container",
|
|
@@ -20711,23 +20743,23 @@ const NC = /* @__PURE__ */ he({
|
|
|
20711
20743
|
], 4)
|
|
20712
20744
|
]));
|
|
20713
20745
|
}
|
|
20714
|
-
}),
|
|
20746
|
+
}), XC = /* @__PURE__ */ $e(qC, [["__scopeId", "data-v-c461b83f"]]), GC = {
|
|
20715
20747
|
key: 1,
|
|
20716
20748
|
class: "single-value-wrapper"
|
|
20717
|
-
},
|
|
20749
|
+
}, KC = { class: "single-value-metric" }, ZC = {
|
|
20718
20750
|
class: "single-value",
|
|
20719
20751
|
"data-testid": "single-value-chart"
|
|
20720
|
-
},
|
|
20752
|
+
}, QC = {
|
|
20721
20753
|
key: 0,
|
|
20722
20754
|
class: "single-value-unit"
|
|
20723
|
-
},
|
|
20755
|
+
}, JC = {
|
|
20724
20756
|
key: 0,
|
|
20725
20757
|
class: "single-value-trend"
|
|
20726
|
-
},
|
|
20758
|
+
}, tO = {
|
|
20727
20759
|
key: 0,
|
|
20728
20760
|
class: "single-value-trend-range",
|
|
20729
20761
|
"data-testid": "single-value-trend-range"
|
|
20730
|
-
},
|
|
20762
|
+
}, eO = /* @__PURE__ */ he({
|
|
20731
20763
|
__name: "SingleValue",
|
|
20732
20764
|
props: {
|
|
20733
20765
|
data: {
|
|
@@ -20800,7 +20832,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20800
20832
|
}
|
|
20801
20833
|
const O = i.decimalPoints && typeof i.decimalPoints == "number" ? i.decimalPoints : nh;
|
|
20802
20834
|
return S.toLocaleString("en-US", { maximumFractionDigits: O });
|
|
20803
|
-
}), h = L(() => Lm(u.value ?? 0, c.value ?? 0) || 0), f = L(() => Nm(h.value, !0, i.increaseIsBad)), g = L(() => Fm(f.value)), y = L(() => zm(h.value, !0, t.t("singleValue.trend.not_available"))), _ = Hm(L(() => i.showTrend), void 0, L(() => i.data.meta)), x = (S) => S > 0 ? "positive" : S < 0 ? "negative" : "neutral", M = (S) => S > 0 ?
|
|
20835
|
+
}), h = L(() => Lm(u.value ?? 0, c.value ?? 0) || 0), f = L(() => Nm(h.value, !0, i.increaseIsBad)), g = L(() => Fm(f.value)), y = L(() => zm(h.value, !0, t.t("singleValue.trend.not_available"))), _ = Hm(L(() => i.showTrend), void 0, L(() => i.data.meta)), x = (S) => S > 0 ? "positive" : S < 0 ? "negative" : "neutral", M = (S) => S > 0 ? _S : S < 0 ? bS : Wd;
|
|
20804
20836
|
return ii(() => {
|
|
20805
20837
|
var S, O, E, k;
|
|
20806
20838
|
!i.showTrend && ((O = (S = i.data) == null ? void 0 : S.data) == null ? void 0 : O.length) > 1 ? console.warn("SingleValue chart should only be used with a single data point. Data length:", i.data.data.length) : i.showTrend && ((k = (E = i.data) == null ? void 0 : E.data) == null ? void 0 : k.length) !== 2 && console.warn("SingleValue with trend expects exactly 2 data points. Data length:", i.data.data.length);
|
|
@@ -20816,12 +20848,12 @@ const NC = /* @__PURE__ */ he({
|
|
|
20816
20848
|
"data-testid": "single-value-error",
|
|
20817
20849
|
"icon-variant": "error",
|
|
20818
20850
|
title: q(t).t("singleValue.valueError")
|
|
20819
|
-
}, null, 8, ["title"])) : (j(), rt("div",
|
|
20820
|
-
at("div",
|
|
20821
|
-
at("span",
|
|
20822
|
-
l.value ? (j(), rt("span",
|
|
20851
|
+
}, null, 8, ["title"])) : (j(), rt("div", GC, [
|
|
20852
|
+
at("div", KC, [
|
|
20853
|
+
at("span", ZC, ht(d.value), 1),
|
|
20854
|
+
l.value ? (j(), rt("span", QC, " " + ht(o.value), 1)) : Yt("", !0)
|
|
20823
20855
|
]),
|
|
20824
|
-
n.showTrend ? (j(), rt("div",
|
|
20856
|
+
n.showTrend ? (j(), rt("div", JC, [
|
|
20825
20857
|
at("div", {
|
|
20826
20858
|
class: rn(["trend-change", x(f.value)]),
|
|
20827
20859
|
"data-testid": "single-value-trend"
|
|
@@ -20837,16 +20869,16 @@ const NC = /* @__PURE__ */ he({
|
|
|
20837
20869
|
}, null, 8, ["color", "size"])),
|
|
20838
20870
|
at("div", null, ht(y.value), 1)
|
|
20839
20871
|
], 2),
|
|
20840
|
-
q(_) ? (j(), rt("div",
|
|
20872
|
+
q(_) ? (j(), rt("div", tO, ht(q(_)), 1)) : Yt("", !0)
|
|
20841
20873
|
])) : Yt("", !0)
|
|
20842
20874
|
]))
|
|
20843
20875
|
], 2);
|
|
20844
20876
|
};
|
|
20845
20877
|
}
|
|
20846
|
-
}),
|
|
20878
|
+
}), nO = /* @__PURE__ */ $e(eO, [["__scopeId", "data-v-21ada2ba"]]), iO = { class: "simple-chart-shell" }, sO = {
|
|
20847
20879
|
key: 1,
|
|
20848
20880
|
class: "analytics-chart-parent"
|
|
20849
|
-
},
|
|
20881
|
+
}, rO = /* @__PURE__ */ he({
|
|
20850
20882
|
__name: "SimpleChart",
|
|
20851
20883
|
props: {
|
|
20852
20884
|
chartData: {
|
|
@@ -20904,9 +20936,9 @@ const NC = /* @__PURE__ */ he({
|
|
|
20904
20936
|
});
|
|
20905
20937
|
return (c, u) => {
|
|
20906
20938
|
const d = Re("KEmptyState");
|
|
20907
|
-
return j(), rt("div",
|
|
20908
|
-
l.value ? (j(), rt("div",
|
|
20909
|
-
r.value ? (j(), It(
|
|
20939
|
+
return j(), rt("div", iO, [
|
|
20940
|
+
l.value ? (j(), rt("div", sO, [
|
|
20941
|
+
r.value ? (j(), It(XC, {
|
|
20910
20942
|
key: 0,
|
|
20911
20943
|
"chart-data": i.value,
|
|
20912
20944
|
"dataset-colors": n.chartOptions.chartDatasetColors,
|
|
@@ -20917,7 +20949,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
20917
20949
|
"synthetics-data-key": n.syntheticsDataKey,
|
|
20918
20950
|
width: n.width
|
|
20919
20951
|
}, null, 8, ["chart-data", "dataset-colors", "metric-display", "metric-unit", "numerator", "synthetics-data-key", "width"])) : Yt("", !0),
|
|
20920
|
-
a.value ? (j(), It(
|
|
20952
|
+
a.value ? (j(), It(nO, {
|
|
20921
20953
|
key: 1,
|
|
20922
20954
|
"align-x": n.chartOptions.alignX,
|
|
20923
20955
|
data: n.chartData,
|
|
@@ -20939,17 +20971,17 @@ const NC = /* @__PURE__ */ he({
|
|
|
20939
20971
|
]);
|
|
20940
20972
|
};
|
|
20941
20973
|
}
|
|
20942
|
-
}),
|
|
20974
|
+
}), kP = /* @__PURE__ */ $e(rO, [["__scopeId", "data-v-56837d34"]]), aO = {
|
|
20943
20975
|
class: "top-n-card-title",
|
|
20944
20976
|
"data-testid": "top-n-card-title"
|
|
20945
|
-
},
|
|
20977
|
+
}, oO = {
|
|
20946
20978
|
class: "top-n-card-description",
|
|
20947
20979
|
"data-testid": "top-n-card-description"
|
|
20948
|
-
},
|
|
20980
|
+
}, lO = {
|
|
20949
20981
|
key: 3,
|
|
20950
20982
|
class: "top-n-table",
|
|
20951
20983
|
"data-testid": "top-n-table"
|
|
20952
|
-
},
|
|
20984
|
+
}, cO = { class: "top-n-table-table" }, uO = { "data-testid": "top-n-table-header" }, dO = { class: "top-n-table-header-row" }, hO = { class: "table-header-label" }, fO = { class: "top-n-table-cell top-n-table-cell--name" }, gO = ["data-testid"], mO = ["data-testid"], pO = ["data-testid"], yO = /* @__PURE__ */ he({
|
|
20953
20985
|
__name: "TopNTable",
|
|
20954
20986
|
props: {
|
|
20955
20987
|
title: { default: "" },
|
|
@@ -21067,16 +21099,16 @@ const NC = /* @__PURE__ */ he({
|
|
|
21067
21099
|
key: 1,
|
|
21068
21100
|
"table-columns": 2,
|
|
21069
21101
|
type: "table"
|
|
21070
|
-
})) : r.value ? (j(), rt("div",
|
|
21071
|
-
at("table",
|
|
21072
|
-
at("thead",
|
|
21073
|
-
at("tr",
|
|
21102
|
+
})) : r.value ? (j(), rt("div", lO, [
|
|
21103
|
+
at("table", cO, [
|
|
21104
|
+
at("thead", uO, [
|
|
21105
|
+
at("tr", dO, [
|
|
21074
21106
|
(j(!0), rt(xi, null, Qi(d.value, (C) => (j(), rt("th", {
|
|
21075
21107
|
key: C.key,
|
|
21076
21108
|
class: rn(["top-n-table-header-cell", { "top-n-table-header-cell-metric": C.key !== "name" }]),
|
|
21077
21109
|
"data-testid": "top-n-table-header-column"
|
|
21078
21110
|
}, [
|
|
21079
|
-
at("span",
|
|
21111
|
+
at("span", hO, ht(C.label), 1)
|
|
21080
21112
|
], 2))), 128))
|
|
21081
21113
|
])
|
|
21082
21114
|
]),
|
|
@@ -21085,7 +21117,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
21085
21117
|
key: C.id,
|
|
21086
21118
|
class: "top-n-table-row"
|
|
21087
21119
|
}, [
|
|
21088
|
-
at("td",
|
|
21120
|
+
at("td", fO, [
|
|
21089
21121
|
at("span", {
|
|
21090
21122
|
"data-testid": `row-${C.id}`
|
|
21091
21123
|
}, [
|
|
@@ -21099,7 +21131,7 @@ const NC = /* @__PURE__ */ he({
|
|
|
21099
21131
|
}, () => [
|
|
21100
21132
|
Be(ht(C.name), 1)
|
|
21101
21133
|
], !0)
|
|
21102
|
-
], 8,
|
|
21134
|
+
], 8, gO)
|
|
21103
21135
|
]),
|
|
21104
21136
|
(j(!0), rt(xi, null, Qi(h.value, (A) => (j(), rt("td", {
|
|
21105
21137
|
key: A.key,
|
|
@@ -21108,10 +21140,10 @@ const NC = /* @__PURE__ */ he({
|
|
|
21108
21140
|
A.key === "value" ? (j(), rt("span", {
|
|
21109
21141
|
key: 0,
|
|
21110
21142
|
"data-testid": `row-${C.id}`
|
|
21111
|
-
}, ht(O(C, A.key)), 9,
|
|
21143
|
+
}, ht(O(C, A.key)), 9, mO)) : (j(), rt("span", {
|
|
21112
21144
|
key: 1,
|
|
21113
21145
|
"data-testid": `row-${C.id}-${A.key}`
|
|
21114
|
-
}, ht(O(C, A.key)), 9,
|
|
21146
|
+
}, ht(O(C, A.key)), 9, pO))
|
|
21115
21147
|
]))), 128))
|
|
21116
21148
|
]))), 128))
|
|
21117
21149
|
])
|
|
@@ -21132,21 +21164,21 @@ const NC = /* @__PURE__ */ he({
|
|
|
21132
21164
|
n.title ? {
|
|
21133
21165
|
name: "title",
|
|
21134
21166
|
fn: zt(() => [
|
|
21135
|
-
at("span",
|
|
21167
|
+
at("span", aO, ht(n.title), 1)
|
|
21136
21168
|
]),
|
|
21137
21169
|
key: "0"
|
|
21138
21170
|
} : void 0,
|
|
21139
21171
|
n.description ? {
|
|
21140
21172
|
name: "actions",
|
|
21141
21173
|
fn: zt(() => [
|
|
21142
|
-
at("div",
|
|
21174
|
+
at("div", oO, ht(n.description), 1)
|
|
21143
21175
|
]),
|
|
21144
21176
|
key: "1"
|
|
21145
21177
|
} : void 0
|
|
21146
21178
|
]), 1032, ["title-tag"]);
|
|
21147
21179
|
};
|
|
21148
21180
|
}
|
|
21149
|
-
}),
|
|
21181
|
+
}), CP = /* @__PURE__ */ $e(yO, [["__scopeId", "data-v-0ba08c83"]]);
|
|
21150
21182
|
var Na = { exports: {} };
|
|
21151
21183
|
Na.exports;
|
|
21152
21184
|
(function(n, t) {
|
|
@@ -21735,10 +21767,10 @@ Na.exports;
|
|
|
21735
21767
|
}
|
|
21736
21768
|
n.exports = Ts;
|
|
21737
21769
|
})(Na, Na.exports);
|
|
21738
|
-
var
|
|
21739
|
-
const
|
|
21740
|
-
var
|
|
21741
|
-
function
|
|
21770
|
+
var bO = Na.exports;
|
|
21771
|
+
const _O = /* @__PURE__ */ Pc(bO);
|
|
21772
|
+
var vO = 9007199254740991, xO = "[object Arguments]", wO = "[object Function]", MO = "[object GeneratorFunction]", SO = "[object Symbol]", TO = typeof Le == "object" && Le && Le.Object === Object && Le, DO = typeof self == "object" && self && self.Object === Object && self, kO = TO || DO || Function("return this")();
|
|
21773
|
+
function CO(n, t, e) {
|
|
21742
21774
|
switch (e.length) {
|
|
21743
21775
|
case 0:
|
|
21744
21776
|
return n.call(t);
|
|
@@ -21751,87 +21783,87 @@ function DO(n, t, e) {
|
|
|
21751
21783
|
}
|
|
21752
21784
|
return n.apply(t, e);
|
|
21753
21785
|
}
|
|
21754
|
-
function
|
|
21786
|
+
function OO(n, t) {
|
|
21755
21787
|
for (var e = -1, i = n ? n.length : 0, s = Array(i); ++e < i; )
|
|
21756
21788
|
s[e] = t(n[e], e, n);
|
|
21757
21789
|
return s;
|
|
21758
21790
|
}
|
|
21759
|
-
function
|
|
21791
|
+
function PO(n, t) {
|
|
21760
21792
|
for (var e = -1, i = t.length, s = n.length; ++e < i; )
|
|
21761
21793
|
n[s + e] = t[e];
|
|
21762
21794
|
return n;
|
|
21763
21795
|
}
|
|
21764
|
-
var Wc = Object.prototype,
|
|
21765
|
-
function
|
|
21796
|
+
var Wc = Object.prototype, EO = Wc.hasOwnProperty, Yc = Wc.toString, Oh = kO.Symbol, AO = Wc.propertyIsEnumerable, Ph = Oh ? Oh.isConcatSpreadable : void 0, Eh = Math.max;
|
|
21797
|
+
function RO(n, t, e, i, s) {
|
|
21766
21798
|
var r = -1, a = n.length;
|
|
21767
|
-
for (e || (e =
|
|
21799
|
+
for (e || (e = FO), s || (s = []); ++r < a; ) {
|
|
21768
21800
|
var o = n[r];
|
|
21769
|
-
e(o) ?
|
|
21801
|
+
e(o) ? PO(s, o) : s[s.length] = o;
|
|
21770
21802
|
}
|
|
21771
21803
|
return s;
|
|
21772
21804
|
}
|
|
21773
|
-
function
|
|
21774
|
-
return n = Object(n),
|
|
21805
|
+
function IO(n, t) {
|
|
21806
|
+
return n = Object(n), LO(n, t, function(e, i) {
|
|
21775
21807
|
return i in n;
|
|
21776
21808
|
});
|
|
21777
21809
|
}
|
|
21778
|
-
function
|
|
21810
|
+
function LO(n, t, e) {
|
|
21779
21811
|
for (var i = -1, s = t.length, r = {}; ++i < s; ) {
|
|
21780
21812
|
var a = t[i], o = n[a];
|
|
21781
21813
|
e(o, a) && (r[a] = o);
|
|
21782
21814
|
}
|
|
21783
21815
|
return r;
|
|
21784
21816
|
}
|
|
21785
|
-
function
|
|
21817
|
+
function NO(n, t) {
|
|
21786
21818
|
return t = Eh(t === void 0 ? n.length - 1 : t, 0), function() {
|
|
21787
21819
|
for (var e = arguments, i = -1, s = Eh(e.length - t, 0), r = Array(s); ++i < s; )
|
|
21788
21820
|
r[i] = e[t + i];
|
|
21789
21821
|
i = -1;
|
|
21790
21822
|
for (var a = Array(t + 1); ++i < t; )
|
|
21791
21823
|
a[i] = e[i];
|
|
21792
|
-
return a[t] = r,
|
|
21824
|
+
return a[t] = r, CO(n, this, a);
|
|
21793
21825
|
};
|
|
21794
21826
|
}
|
|
21795
|
-
function
|
|
21796
|
-
return
|
|
21827
|
+
function FO(n) {
|
|
21828
|
+
return BO(n) || HO(n) || !!(Ph && n && n[Ph]);
|
|
21797
21829
|
}
|
|
21798
|
-
function
|
|
21799
|
-
if (typeof n == "string" ||
|
|
21830
|
+
function zO(n) {
|
|
21831
|
+
if (typeof n == "string" || VO(n))
|
|
21800
21832
|
return n;
|
|
21801
21833
|
var t = n + "";
|
|
21802
21834
|
return t == "0" && 1 / n == -1 / 0 ? "-0" : t;
|
|
21803
21835
|
}
|
|
21804
|
-
function FO(n) {
|
|
21805
|
-
return BO(n) && OO.call(n, "callee") && (!PO.call(n, "callee") || Yc.call(n) == _O);
|
|
21806
|
-
}
|
|
21807
|
-
var zO = Array.isArray;
|
|
21808
21836
|
function HO(n) {
|
|
21809
|
-
return n
|
|
21810
|
-
}
|
|
21811
|
-
function BO(n) {
|
|
21812
|
-
return gm(n) && HO(n);
|
|
21837
|
+
return YO(n) && EO.call(n, "callee") && (!AO.call(n, "callee") || Yc.call(n) == xO);
|
|
21813
21838
|
}
|
|
21839
|
+
var BO = Array.isArray;
|
|
21814
21840
|
function WO(n) {
|
|
21815
|
-
|
|
21816
|
-
return t == vO || t == xO;
|
|
21841
|
+
return n != null && jO(n.length) && !$O(n);
|
|
21817
21842
|
}
|
|
21818
21843
|
function YO(n) {
|
|
21819
|
-
return
|
|
21844
|
+
return gm(n) && WO(n);
|
|
21820
21845
|
}
|
|
21821
21846
|
function $O(n) {
|
|
21847
|
+
var t = UO(n) ? Yc.call(n) : "";
|
|
21848
|
+
return t == wO || t == MO;
|
|
21849
|
+
}
|
|
21850
|
+
function jO(n) {
|
|
21851
|
+
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= vO;
|
|
21852
|
+
}
|
|
21853
|
+
function UO(n) {
|
|
21822
21854
|
var t = typeof n;
|
|
21823
21855
|
return !!n && (t == "object" || t == "function");
|
|
21824
21856
|
}
|
|
21825
21857
|
function gm(n) {
|
|
21826
21858
|
return !!n && typeof n == "object";
|
|
21827
21859
|
}
|
|
21828
|
-
function
|
|
21829
|
-
return typeof n == "symbol" || gm(n) && Yc.call(n) ==
|
|
21860
|
+
function VO(n) {
|
|
21861
|
+
return typeof n == "symbol" || gm(n) && Yc.call(n) == SO;
|
|
21830
21862
|
}
|
|
21831
|
-
var
|
|
21832
|
-
return n == null ? {} :
|
|
21833
|
-
}),
|
|
21834
|
-
const
|
|
21863
|
+
var qO = NO(function(n, t) {
|
|
21864
|
+
return n == null ? {} : IO(n, OO(RO(t), zO));
|
|
21865
|
+
}), XO = qO;
|
|
21866
|
+
const GO = /* @__PURE__ */ Pc(XO);
|
|
21835
21867
|
var mm = { exports: {} };
|
|
21836
21868
|
(function(n, t) {
|
|
21837
21869
|
(function(e, i) {
|
|
@@ -21901,7 +21933,7 @@ var mm = { exports: {} };
|
|
|
21901
21933
|
a.saveAs = l.saveAs = l, n.exports = l;
|
|
21902
21934
|
});
|
|
21903
21935
|
})(mm);
|
|
21904
|
-
var
|
|
21936
|
+
var KO = mm.exports, pm = { exports: {} };
|
|
21905
21937
|
/* @license
|
|
21906
21938
|
Papa Parse
|
|
21907
21939
|
v5.5.3
|
|
@@ -22316,8 +22348,8 @@ License: MIT
|
|
|
22316
22348
|
}), (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;
|
|
22317
22349
|
});
|
|
22318
22350
|
})(pm);
|
|
22319
|
-
var
|
|
22320
|
-
const
|
|
22351
|
+
var ZO = pm.exports;
|
|
22352
|
+
const QO = ["id"], JO = /* @__PURE__ */ he({
|
|
22321
22353
|
__name: "VueJsonCsv",
|
|
22322
22354
|
props: {
|
|
22323
22355
|
data: {
|
|
@@ -22382,12 +22414,12 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22382
22414
|
const u = i.labels;
|
|
22383
22415
|
if (typeof i.fields !== Gi.Object)
|
|
22384
22416
|
throw new Error("Labels needs to be a object containing key / value pairs.");
|
|
22385
|
-
return typeof u === Gi.Object ? (d) =>
|
|
22417
|
+
return typeof u === Gi.Object ? (d) => _O(d, (h, f) => u[f] || f) : (d) => d;
|
|
22386
22418
|
}, o = () => {
|
|
22387
22419
|
const u = i.fields;
|
|
22388
22420
|
if (typeof i.fields !== Gi.Object && !Array.isArray(u))
|
|
22389
22421
|
throw new Error("Fields needs to be an array of strings.");
|
|
22390
|
-
return Array.isArray(u) ? (d) =>
|
|
22422
|
+
return Array.isArray(u) ? (d) => GO(d, u) : (d) => d;
|
|
22391
22423
|
}, l = () => {
|
|
22392
22424
|
if (typeof i.fields === Gi.Undefined && typeof i.labels === Gi.Undefined)
|
|
22393
22425
|
return i.data;
|
|
@@ -22399,7 +22431,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22399
22431
|
return;
|
|
22400
22432
|
}
|
|
22401
22433
|
e("export-started", r.value);
|
|
22402
|
-
let u =
|
|
22434
|
+
let u = ZO.unparse(r.value, Object.assign({
|
|
22403
22435
|
delimiter: i.delimiter,
|
|
22404
22436
|
encoding: i.encoding
|
|
22405
22437
|
}));
|
|
@@ -22408,7 +22440,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22408
22440
|
const d = new Blob([u], {
|
|
22409
22441
|
type: "text/csv;charset=" + i.encoding
|
|
22410
22442
|
});
|
|
22411
|
-
|
|
22443
|
+
KO.saveAs(d, i.filename);
|
|
22412
22444
|
}
|
|
22413
22445
|
};
|
|
22414
22446
|
return (u, d) => (j(), rt("div", {
|
|
@@ -22419,9 +22451,9 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22419
22451
|
ar(u.$slots, "default", {}, () => [
|
|
22420
22452
|
Be("Download " + ht(n.filename), 1)
|
|
22421
22453
|
])
|
|
22422
|
-
], 8,
|
|
22454
|
+
], 8, QO));
|
|
22423
22455
|
}
|
|
22424
|
-
}),
|
|
22456
|
+
}), tP = /* @__PURE__ */ he({
|
|
22425
22457
|
__name: "DownloadCsv",
|
|
22426
22458
|
props: {
|
|
22427
22459
|
rows: {},
|
|
@@ -22431,7 +22463,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22431
22463
|
setup(n) {
|
|
22432
22464
|
const t = n, e = L(() => Object.keys(t.headers));
|
|
22433
22465
|
return (i, s) => (j(), rt("div", null, [
|
|
22434
|
-
Zt(
|
|
22466
|
+
Zt(JO, {
|
|
22435
22467
|
data: n.rows,
|
|
22436
22468
|
fields: e.value,
|
|
22437
22469
|
filename: n.filename,
|
|
@@ -22444,14 +22476,14 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22444
22476
|
}, 8, ["data", "fields", "filename", "labels"])
|
|
22445
22477
|
]));
|
|
22446
22478
|
}
|
|
22447
|
-
}),
|
|
22479
|
+
}), eP = { class: "kong-ui-public-csv-export-modal" }, nP = {
|
|
22448
22480
|
key: 0,
|
|
22449
22481
|
class: "selected-range"
|
|
22450
|
-
},
|
|
22482
|
+
}, iP = {
|
|
22451
22483
|
key: 4,
|
|
22452
22484
|
class: "text-muted",
|
|
22453
22485
|
tag: "span"
|
|
22454
|
-
}, Ah = 3,
|
|
22486
|
+
}, Ah = 3, OP = /* @__PURE__ */ he({
|
|
22455
22487
|
__name: "CsvExportModal",
|
|
22456
22488
|
props: {
|
|
22457
22489
|
exportState: {},
|
|
@@ -22528,7 +22560,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22528
22560
|
a.value++;
|
|
22529
22561
|
}), (g, y) => {
|
|
22530
22562
|
const _ = Re("KSkeleton"), x = Re("KEmptyState"), M = Re("KTableData"), S = Re("KTooltip"), O = Re("KButton"), E = Re("KModal");
|
|
22531
|
-
return j(), rt("div",
|
|
22563
|
+
return j(), rt("div", eP, [
|
|
22532
22564
|
Zt(E, {
|
|
22533
22565
|
class: "vitals-report",
|
|
22534
22566
|
"data-testid": "csv-export-modal",
|
|
@@ -22542,7 +22574,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22542
22574
|
var k;
|
|
22543
22575
|
return [
|
|
22544
22576
|
at("div", null, [
|
|
22545
|
-
n.exportState.status === "success" && l.value ? (j(), rt("div",
|
|
22577
|
+
n.exportState.status === "success" && l.value ? (j(), rt("div", nP, [
|
|
22546
22578
|
at("p", null, ht(n.modalDescription ? n.modalDescription : q(e).t("csvExport.exportDescription")), 1),
|
|
22547
22579
|
at("p", null, ht(q(e).t("csvExport.exportTimeRange")) + ": " + ht(c.value), 1)
|
|
22548
22580
|
])) : Yt("", !0),
|
|
@@ -22581,7 +22613,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22581
22613
|
]),
|
|
22582
22614
|
_: 1
|
|
22583
22615
|
})) : Yt("", !0),
|
|
22584
|
-
n.exportState.status === "success" && l.value ? (j(), rt("div",
|
|
22616
|
+
n.exportState.status === "success" && l.value ? (j(), rt("div", iP, [
|
|
22585
22617
|
Be(ht(u.value) + " ", 1),
|
|
22586
22618
|
Zt(S, {
|
|
22587
22619
|
class: "preview-tooltip",
|
|
@@ -22611,7 +22643,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22611
22643
|
]),
|
|
22612
22644
|
_: 1
|
|
22613
22645
|
}),
|
|
22614
|
-
Zt(
|
|
22646
|
+
Zt(tP, {
|
|
22615
22647
|
class: "vitals-report-export-button",
|
|
22616
22648
|
filename: r,
|
|
22617
22649
|
headers: h.value.csvHeaders,
|
|
@@ -22637,11 +22669,11 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22637
22669
|
]);
|
|
22638
22670
|
};
|
|
22639
22671
|
}
|
|
22640
|
-
}),
|
|
22672
|
+
}), sP = { class: "container" }, rP = {
|
|
22641
22673
|
key: 0,
|
|
22642
22674
|
class: "no-data",
|
|
22643
22675
|
"data-testId": "sparkline-empty"
|
|
22644
|
-
},
|
|
22676
|
+
}, aP = ["title"], oP = /* @__PURE__ */ he({
|
|
22645
22677
|
__name: "SparklineChart",
|
|
22646
22678
|
props: {
|
|
22647
22679
|
chartKey: { default: () => {
|
|
@@ -22759,7 +22791,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22759
22791
|
contextFormatter: (C) => {
|
|
22760
22792
|
const A = C + i.value;
|
|
22761
22793
|
let R = "";
|
|
22762
|
-
return i.value > 24 * 60 * 60 * 1e3 ? R = Da(new Date(A), "MMM dd, yyy hh:mm a") : R = Da(new Date(A), "hh:mm a"), `${
|
|
22794
|
+
return i.value > 24 * 60 * 60 * 1e3 ? R = Da(new Date(A), "MMM dd, yyy hh:mm a") : R = Da(new Date(A), "hh:mm a"), `${GM(C)} - ${R}`;
|
|
22763
22795
|
}
|
|
22764
22796
|
});
|
|
22765
22797
|
}
|
|
@@ -22803,7 +22835,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22803
22835
|
};
|
|
22804
22836
|
}), ni(() => {
|
|
22805
22837
|
We.positioners[S] && delete We.positioners[S];
|
|
22806
|
-
}), (T, m) => (j(), rt("div",
|
|
22838
|
+
}), (T, m) => (j(), rt("div", sP, [
|
|
22807
22839
|
_.value ? n.type === "sparkline_bar" ? (j(), It(q(um), {
|
|
22808
22840
|
key: 1,
|
|
22809
22841
|
"chart-id": q(t),
|
|
@@ -22818,7 +22850,7 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22818
22850
|
"data-testId": n.type === "sparkline_line" ? "sparkline-line" : "sparkline-step",
|
|
22819
22851
|
options: O.value,
|
|
22820
22852
|
plugins: h.value
|
|
22821
|
-
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Yt("", !0) : (j(), rt("div",
|
|
22853
|
+
}, null, 8, ["chart-id", "data", "data-testId", "options", "plugins"])) : Yt("", !0) : (j(), rt("div", rP, [
|
|
22822
22854
|
ar(T.$slots, "empty", {}, () => [
|
|
22823
22855
|
Be(ht(q(e).t("sparkline_no_data")), 1)
|
|
22824
22856
|
], !0)
|
|
@@ -22844,43 +22876,43 @@ const KO = ["id"], ZO = /* @__PURE__ */ he({
|
|
|
22844
22876
|
}, () => [
|
|
22845
22877
|
Be(ht(g.value), 1)
|
|
22846
22878
|
], !0)
|
|
22847
|
-
], 8,
|
|
22879
|
+
], 8, aP)) : Yt("", !0)
|
|
22848
22880
|
]));
|
|
22849
22881
|
}
|
|
22850
|
-
}),
|
|
22882
|
+
}), PP = /* @__PURE__ */ $e(oP, [["__scopeId", "data-v-3f1a7074"]]);
|
|
22851
22883
|
export {
|
|
22852
|
-
|
|
22884
|
+
DP as AnalyticsChart,
|
|
22853
22885
|
Ye as ChartLegendPosition,
|
|
22854
|
-
|
|
22855
|
-
|
|
22856
|
-
|
|
22857
|
-
|
|
22858
|
-
|
|
22886
|
+
OP as CsvExportModal,
|
|
22887
|
+
gP as DECIMAL_DISPLAY,
|
|
22888
|
+
kS as EMPTY_COLOR,
|
|
22889
|
+
pS as FONT_SIZE_REGULAR,
|
|
22890
|
+
mS as FONT_SIZE_SMALL,
|
|
22859
22891
|
$l as MAX_LABEL_LENGTH,
|
|
22860
|
-
|
|
22861
|
-
|
|
22862
|
-
|
|
22863
|
-
|
|
22892
|
+
_P as OTHERS_COLOR,
|
|
22893
|
+
kP as SimpleChart,
|
|
22894
|
+
PP as SparklineChart,
|
|
22895
|
+
CP as TopNTable,
|
|
22864
22896
|
Gi as ValidType,
|
|
22865
|
-
|
|
22866
|
-
|
|
22867
|
-
|
|
22868
|
-
|
|
22869
|
-
|
|
22897
|
+
TS as accessibleGrey,
|
|
22898
|
+
DS as apiRequestStatusCodeColors,
|
|
22899
|
+
SP as chartTypes,
|
|
22900
|
+
NS as codesInSpec,
|
|
22901
|
+
SS as darkenColor,
|
|
22870
22902
|
ti as datavisPalette,
|
|
22871
22903
|
ll as defaultStatusCodeColors,
|
|
22872
22904
|
Tg as determineBaseColor,
|
|
22873
|
-
|
|
22874
|
-
|
|
22875
|
-
|
|
22905
|
+
yP as errorRateColors,
|
|
22906
|
+
wP as handleQueryError,
|
|
22907
|
+
bP as latencyColors,
|
|
22876
22908
|
jd as lightGrey,
|
|
22877
|
-
|
|
22909
|
+
vP as lookupColor,
|
|
22878
22910
|
jl as lookupDatavisColor,
|
|
22879
|
-
|
|
22911
|
+
xP as lookupStatusCodeCategoryColor,
|
|
22880
22912
|
Dg as lookupStatusCodeColor,
|
|
22881
|
-
|
|
22882
|
-
|
|
22883
|
-
|
|
22913
|
+
MP as simpleChartMetricDisplay,
|
|
22914
|
+
TP as simpleChartTypes,
|
|
22915
|
+
mP as statusCodeBadgeBackgroundColor,
|
|
22884
22916
|
al as thresholdColor,
|
|
22885
|
-
|
|
22917
|
+
pP as trafficColors
|
|
22886
22918
|
};
|