@kong-ui-public/analytics-utilities 9.9.1-pr.2221.d49b344eb.0 → 9.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -186,11 +186,11 @@ const $s = [
186
186
  "12H",
187
187
  "24H",
188
188
  "7D"
189
- ], to = ["basic", "api_usage", "llm_usage"], Oa = {
189
+ ], to = ["basic", "advanced", "ai"], Oa = {
190
190
  basic: new Set(oe),
191
- api_usage: new Set(ue),
192
- llm_usage: new Set(ce)
193
- }, ro = (e, t) => t.filter((r) => Oa[e].has(r.field)), Sa = [
191
+ advanced: new Set(ue),
192
+ ai: new Set(ce)
193
+ }, ro = (e, t) => t.filter((r) => Oa[e].has(r.field)), no = [
194
194
  "horizontal_bar",
195
195
  "vertical_bar",
196
196
  "gauge",
@@ -215,7 +215,7 @@ const $s = [
215
215
  additionalProperties: {
216
216
  type: "string"
217
217
  }
218
- }, gr = {
218
+ }, Sa = {
219
219
  type: "object",
220
220
  properties: {
221
221
  type: {
@@ -228,7 +228,7 @@ const $s = [
228
228
  },
229
229
  required: ["type", "id"],
230
230
  additionalProperties: !1
231
- }, _r = {
231
+ }, va = {
232
232
  type: "object",
233
233
  properties: {
234
234
  type: {
@@ -245,7 +245,7 @@ const $s = [
245
245
  },
246
246
  required: ["type"],
247
247
  additionalProperties: !1
248
- }, wr = {
248
+ }, Ma = {
249
249
  type: "object",
250
250
  properties: {
251
251
  type: {
@@ -268,7 +268,7 @@ const $s = [
268
268
  },
269
269
  required: ["type"],
270
270
  additionalProperties: !1
271
- }, br = {
271
+ }, xa = {
272
272
  type: "object",
273
273
  properties: {
274
274
  type: {
@@ -291,7 +291,7 @@ const $s = [
291
291
  },
292
292
  required: ["type"],
293
293
  additionalProperties: !1
294
- }, Tr = {
294
+ }, Ea = {
295
295
  type: "object",
296
296
  properties: {
297
297
  type: {
@@ -303,7 +303,7 @@ const $s = [
303
303
  },
304
304
  required: ["type"],
305
305
  additionalProperties: !1
306
- }, Dr = {
306
+ }, Pa = {
307
307
  type: "object",
308
308
  properties: {
309
309
  chartTitle: $,
@@ -321,7 +321,7 @@ const $s = [
321
321
  },
322
322
  required: ["type"],
323
323
  additionalProperties: !1
324
- }, Or = {
324
+ }, Na = {
325
325
  type: "object",
326
326
  properties: {
327
327
  chartTitle: $,
@@ -341,7 +341,7 @@ const $s = [
341
341
  },
342
342
  required: ["type"],
343
343
  additionalProperties: !1
344
- }, Sr = {
344
+ }, Ca = {
345
345
  type: "object",
346
346
  properties: {
347
347
  type: {
@@ -355,7 +355,7 @@ const $s = [
355
355
  },
356
356
  required: ["type"],
357
357
  additionalProperties: !1
358
- }, Ma = {
358
+ }, Ia = {
359
359
  type: "object",
360
360
  properties: {
361
361
  tz: {
@@ -379,7 +379,7 @@ const $s = [
379
379
  "time_range"
380
380
  ],
381
381
  additionalProperties: !1
382
- }, va = {
382
+ }, ka = {
383
383
  type: "object",
384
384
  description: "A duration representing an exact start and end time.",
385
385
  properties: {
@@ -415,8 +415,8 @@ const $s = [
415
415
  type: "object",
416
416
  description: "The time range to query.",
417
417
  anyOf: [
418
- Ma,
419
- va
418
+ Ia,
419
+ ka
420
420
  ],
421
421
  default: {
422
422
  type: "relative",
@@ -497,7 +497,7 @@ const $s = [
497
497
  }
498
498
  ]
499
499
  }
500
- }), Mr = {
500
+ }), Ya = {
501
501
  type: "object",
502
502
  description: "A query to launch at the advanced explore API",
503
503
  properties: {
@@ -514,7 +514,7 @@ const $s = [
514
514
  },
515
515
  required: ["datasource"],
516
516
  additionalProperties: !1
517
- }, vr = {
517
+ }, Ra = {
518
518
  type: "object",
519
519
  description: "A query to launch at the basic explore API",
520
520
  properties: {
@@ -531,7 +531,7 @@ const $s = [
531
531
  },
532
532
  required: ["datasource"],
533
533
  additionalProperties: !1
534
- }, xr = {
534
+ }, qa = {
535
535
  type: "object",
536
536
  description: "A query to launch at the AI explore API",
537
537
  properties: {
@@ -548,28 +548,28 @@ const $s = [
548
548
  },
549
549
  required: ["datasource"],
550
550
  additionalProperties: !1
551
- }, Er = {
552
- anyOf: [Mr, vr, xr]
553
- }, Pr = {
551
+ }, Ha = {
552
+ anyOf: [Ya, Ra, qa]
553
+ }, ja = {
554
554
  type: "object",
555
555
  properties: {
556
- query: Er,
556
+ query: Ha,
557
557
  chart: {
558
558
  anyOf: [
559
- _r,
560
- br,
561
- Tr,
562
- wr,
563
- Or,
564
- Dr,
565
- gr,
566
- Sr
559
+ va,
560
+ xa,
561
+ Ea,
562
+ Ma,
563
+ Na,
564
+ Pa,
565
+ Sa,
566
+ Ca
567
567
  ]
568
568
  }
569
569
  },
570
570
  required: ["query", "chart"],
571
571
  additionalProperties: !1
572
- }, Nr = {
572
+ }, Aa = {
573
573
  type: "object",
574
574
  properties: {
575
575
  position: {
@@ -606,11 +606,11 @@ const $s = [
606
606
  },
607
607
  required: ["position", "size"],
608
608
  additionalProperties: !1
609
- }, Cr = {
609
+ }, Ga = {
610
610
  type: "object",
611
611
  properties: {
612
- definition: Pr,
613
- layout: Nr,
612
+ definition: ja,
613
+ layout: Aa,
614
614
  id: {
615
615
  type: "string",
616
616
  description: "Unique identifier for the tile. If not provided, one will be generated."
@@ -618,12 +618,12 @@ const $s = [
618
618
  },
619
619
  required: ["definition", "layout"],
620
620
  additionalProperties: !1
621
- }, xa = {
621
+ }, ao = {
622
622
  type: "object",
623
623
  properties: {
624
624
  tiles: {
625
625
  type: "array",
626
- items: Cr
626
+ items: Ga
627
627
  },
628
628
  tileHeight: {
629
629
  type: "number",
@@ -647,26 +647,7 @@ const $s = [
647
647
  },
648
648
  required: ["tiles"],
649
649
  additionalProperties: !1
650
- }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
651
- __proto__: null,
652
- aiQuerySchema: xr,
653
- barChartSchema: _r,
654
- basicQuerySchema: vr,
655
- dashboardConfigSchema: xa,
656
- dashboardTileTypes: Sa,
657
- donutChartSchema: Tr,
658
- exploreV4QuerySchema: Mr,
659
- gaugeChartSchema: br,
660
- metricCardSchema: Or,
661
- singleValueSchema: Sr,
662
- slottableSchema: gr,
663
- tileConfigSchema: Cr,
664
- tileDefinitionSchema: Pr,
665
- tileLayoutSchema: Nr,
666
- timeseriesChartSchema: wr,
667
- topNTableSchema: Dr,
668
- validDashboardQuery: Er
669
- }, Symbol.toStringTag, { value: "Module" })), ao = [
650
+ }, Fa = [
670
651
  "horizontal_bar",
671
652
  "vertical_bar",
672
653
  "gauge",
@@ -681,9 +662,9 @@ const $s = [
681
662
  type: "string"
682
663
  }, V = {
683
664
  type: "string"
684
- }, Ir = {
665
+ }, gr = {
685
666
  type: "boolean"
686
- }, kr = {
667
+ }, _r = {
687
668
  type: ["object", "array"],
688
669
  items: {
689
670
  type: "string"
@@ -691,7 +672,7 @@ const $s = [
691
672
  additionalProperties: {
692
673
  type: "string"
693
674
  }
694
- }, Ea = {
675
+ }, wr = {
695
676
  type: "object",
696
677
  properties: {
697
678
  type: {
@@ -704,7 +685,7 @@ const $s = [
704
685
  },
705
686
  required: ["type", "id"],
706
687
  additionalProperties: !1
707
- }, Pa = {
688
+ }, br = {
708
689
  type: "object",
709
690
  properties: {
710
691
  type: {
@@ -714,14 +695,14 @@ const $s = [
714
695
  stacked: {
715
696
  type: "boolean"
716
697
  },
717
- chart_dataset_colors: kr,
698
+ chart_dataset_colors: _r,
718
699
  synthetics_data_key: de,
719
700
  chart_title: V,
720
- allow_csv_export: Ir
701
+ allow_csv_export: gr
721
702
  },
722
703
  required: ["type"],
723
704
  additionalProperties: !1
724
- }, Na = {
705
+ }, Tr = {
725
706
  type: "object",
726
707
  properties: {
727
708
  type: {
@@ -737,14 +718,14 @@ const $s = [
737
718
  type: "number"
738
719
  }
739
720
  },
740
- chart_dataset_colors: kr,
721
+ chart_dataset_colors: _r,
741
722
  synthetics_data_key: de,
742
723
  chart_title: V,
743
- allow_csv_export: Ir
724
+ allow_csv_export: gr
744
725
  },
745
726
  required: ["type"],
746
727
  additionalProperties: !1
747
- }, Ca = {
728
+ }, Dr = {
748
729
  type: "object",
749
730
  properties: {
750
731
  type: {
@@ -767,7 +748,7 @@ const $s = [
767
748
  },
768
749
  required: ["type"],
769
750
  additionalProperties: !1
770
- }, Ia = {
751
+ }, Or = {
771
752
  type: "object",
772
753
  properties: {
773
754
  type: {
@@ -779,7 +760,7 @@ const $s = [
779
760
  },
780
761
  required: ["type"],
781
762
  additionalProperties: !1
782
- }, ka = {
763
+ }, Sr = {
783
764
  type: "object",
784
765
  properties: {
785
766
  chart_title: V,
@@ -797,7 +778,7 @@ const $s = [
797
778
  },
798
779
  required: ["type"],
799
780
  additionalProperties: !1
800
- }, Ya = {
781
+ }, vr = {
801
782
  type: "object",
802
783
  properties: {
803
784
  chart_title: V,
@@ -817,7 +798,7 @@ const $s = [
817
798
  },
818
799
  required: ["type"],
819
800
  additionalProperties: !1
820
- }, Ra = {
801
+ }, Mr = {
821
802
  type: "object",
822
803
  properties: {
823
804
  type: {
@@ -831,7 +812,7 @@ const $s = [
831
812
  },
832
813
  required: ["type"],
833
814
  additionalProperties: !1
834
- }, qa = {
815
+ }, Wa = {
835
816
  type: "object",
836
817
  properties: {
837
818
  tz: {
@@ -855,7 +836,7 @@ const $s = [
855
836
  "time_range"
856
837
  ],
857
838
  additionalProperties: !1
858
- }, Ha = {
839
+ }, La = {
859
840
  type: "object",
860
841
  description: "A duration representing an exact start and end time.",
861
842
  properties: {
@@ -891,8 +872,8 @@ const $s = [
891
872
  type: "object",
892
873
  description: "The time range to query.",
893
874
  anyOf: [
894
- qa,
895
- Ha
875
+ Wa,
876
+ La
896
877
  ],
897
878
  default: {
898
879
  type: "relative",
@@ -973,7 +954,7 @@ const $s = [
973
954
  }
974
955
  ]
975
956
  }
976
- }), ja = {
957
+ }), xr = {
977
958
  type: "object",
978
959
  description: "A query to launch at the advanced explore API",
979
960
  properties: {
@@ -990,7 +971,7 @@ const $s = [
990
971
  },
991
972
  required: ["datasource"],
992
973
  additionalProperties: !1
993
- }, Aa = {
974
+ }, Er = {
994
975
  type: "object",
995
976
  description: "A query to launch at the basic explore API",
996
977
  properties: {
@@ -1007,7 +988,7 @@ const $s = [
1007
988
  },
1008
989
  required: ["datasource"],
1009
990
  additionalProperties: !1
1010
- }, Ga = {
991
+ }, Pr = {
1011
992
  type: "object",
1012
993
  description: "A query to launch at the AI explore API",
1013
994
  properties: {
@@ -1024,28 +1005,28 @@ const $s = [
1024
1005
  },
1025
1006
  required: ["datasource"],
1026
1007
  additionalProperties: !1
1027
- }, Fa = {
1028
- anyOf: [ja, Aa, Ga]
1029
- }, Wa = {
1008
+ }, Nr = {
1009
+ anyOf: [xr, Er, Pr]
1010
+ }, Cr = {
1030
1011
  type: "object",
1031
1012
  properties: {
1032
- query: Fa,
1013
+ query: Nr,
1033
1014
  chart: {
1034
1015
  anyOf: [
1035
- Pa,
1036
- Ca,
1037
- Ia,
1038
- Na,
1039
- Ya,
1040
- ka,
1041
- Ea,
1042
- Ra
1016
+ br,
1017
+ Dr,
1018
+ Or,
1019
+ Tr,
1020
+ vr,
1021
+ Sr,
1022
+ wr,
1023
+ Mr
1043
1024
  ]
1044
1025
  }
1045
1026
  },
1046
1027
  required: ["query", "chart"],
1047
1028
  additionalProperties: !1
1048
- }, La = {
1029
+ }, Ir = {
1049
1030
  type: "object",
1050
1031
  properties: {
1051
1032
  position: {
@@ -1082,15 +1063,15 @@ const $s = [
1082
1063
  },
1083
1064
  required: ["position", "size"],
1084
1065
  additionalProperties: !1
1085
- }, Ua = {
1066
+ }, kr = {
1086
1067
  type: "object",
1087
1068
  properties: {
1088
1069
  type: {
1089
1070
  type: "string",
1090
1071
  enum: ["chart"]
1091
1072
  },
1092
- definition: Wa,
1093
- layout: La,
1073
+ definition: Cr,
1074
+ layout: Ir,
1094
1075
  id: {
1095
1076
  type: "string",
1096
1077
  description: "Unique identifier for the tile. If not provided, one will be generated."
@@ -1098,12 +1079,16 @@ const $s = [
1098
1079
  },
1099
1080
  required: ["type", "definition", "layout"],
1100
1081
  additionalProperties: !1
1101
- }, io = {
1082
+ }, Ua = {
1102
1083
  type: "object",
1103
1084
  properties: {
1085
+ version: {
1086
+ type: "string",
1087
+ enum: ["v2"]
1088
+ },
1104
1089
  tiles: {
1105
1090
  type: "array",
1106
- items: Ua
1091
+ items: kr
1107
1092
  },
1108
1093
  tile_height: {
1109
1094
  type: "number",
@@ -1113,7 +1098,26 @@ const $s = [
1113
1098
  },
1114
1099
  required: ["tiles"],
1115
1100
  additionalProperties: !1
1116
- }, Yr = 6048e5, za = 864e5, $a = 60, Va = 3600, Lt = Symbol.for("constructDateFrom");
1101
+ }, io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1102
+ __proto__: null,
1103
+ apiUsageQuerySchema: xr,
1104
+ barChartSchema: br,
1105
+ basicQuerySchema: Er,
1106
+ dashboardConfigSchema: Ua,
1107
+ dashboardTileTypes: Fa,
1108
+ donutChartSchema: Or,
1109
+ gaugeChartSchema: Dr,
1110
+ llmUsageSchema: Pr,
1111
+ metricCardSchema: vr,
1112
+ singleValueSchema: Mr,
1113
+ slottableSchema: wr,
1114
+ tileConfigSchema: kr,
1115
+ tileDefinitionSchema: Cr,
1116
+ tileLayoutSchema: Ir,
1117
+ timeseriesChartSchema: Tr,
1118
+ topNTableSchema: Sr,
1119
+ validDashboardQuery: Nr
1120
+ }, Symbol.toStringTag, { value: "Module" })), Yr = 6048e5, za = 864e5, $a = 60, Va = 3600, Lt = Symbol.for("constructDateFrom");
1117
1121
  function I(e, t) {
1118
1122
  return typeof e == "function" ? e(t) : e && typeof e == "object" && Lt in e ? e[Lt](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
1119
1123
  }
@@ -1528,11 +1532,11 @@ const Ti = /^(\d+)(th|st|nd|rd)?/i, Di = /\d+/i, Oi = {
1528
1532
  wide: /^(before christ|before common era|anno domini|common era)/i
1529
1533
  }, Si = {
1530
1534
  any: [/^b/i, /^(a|c)/i]
1531
- }, Mi = {
1535
+ }, vi = {
1532
1536
  narrow: /^[1234]/i,
1533
1537
  abbreviated: /^q[1234]/i,
1534
1538
  wide: /^[1234](th|st|nd|rd)? quarter/i
1535
- }, vi = {
1539
+ }, Mi = {
1536
1540
  any: [/1/i, /2/i, /3/i, /4/i]
1537
1541
  }, xi = {
1538
1542
  narrow: /^[jfmasond]/i,
@@ -1602,9 +1606,9 @@ const Ti = /^(\d+)(th|st|nd|rd)?/i, Di = /\d+/i, Oi = {
1602
1606
  defaultParseWidth: "any"
1603
1607
  }),
1604
1608
  quarter: ie({
1605
- matchPatterns: Mi,
1609
+ matchPatterns: vi,
1606
1610
  defaultMatchWidth: "wide",
1607
- parsePatterns: vi,
1611
+ parsePatterns: Mi,
1608
1612
  defaultParseWidth: "any",
1609
1613
  valueCallback: (e) => e + 1
1610
1614
  }),
@@ -2597,7 +2601,7 @@ function ar(e) {
2597
2601
  const t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()));
2598
2602
  return t.setUTCFullYear(e.getFullYear()), +e - +t;
2599
2603
  }
2600
- const Gr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ve = 36e5, ir = 6e4, bs = 2, M = {
2604
+ const Gr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, Ve = 36e5, ir = 6e4, bs = 2, v = {
2601
2605
  dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
2602
2606
  datePattern: /^([0-9W+-]+)(.*)/,
2603
2607
  plainTime: /:/,
@@ -2632,7 +2636,7 @@ const Gr = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)
2632
2636
  // time zone tokens (to identify the presence of a tz)
2633
2637
  timeZone: Gr
2634
2638
  };
2635
- function Me(e, t = {}) {
2639
+ function ve(e, t = {}) {
2636
2640
  if (arguments.length < 1)
2637
2641
  throw new TypeError("1 argument required, but only " + arguments.length + " present");
2638
2642
  if (e === null)
@@ -2665,17 +2669,17 @@ function Me(e, t = {}) {
2665
2669
  }
2666
2670
  function Ts(e) {
2667
2671
  const t = {};
2668
- let r = M.dateTimePattern.exec(e), n;
2669
- if (r ? (t.date = r[1], n = r[3]) : (r = M.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
2670
- const i = M.timeZone.exec(n);
2672
+ let r = v.dateTimePattern.exec(e), n;
2673
+ if (r ? (t.date = r[1], n = r[3]) : (r = v.datePattern.exec(e), r ? (t.date = r[1], n = r[2]) : (t.date = null, n = e)), n) {
2674
+ const i = v.timeZone.exec(n);
2671
2675
  i ? (t.time = n.replace(i[1], ""), t.timeZone = i[1].trim()) : t.time = n;
2672
2676
  }
2673
2677
  return t;
2674
2678
  }
2675
2679
  function Ds(e, t) {
2676
2680
  if (e) {
2677
- const r = M.YYY[t], n = M.YYYYY[t];
2678
- let i = M.YYYY.exec(e) || n.exec(e);
2681
+ const r = v.YYY[t], n = v.YYYYY[t];
2682
+ let i = v.YYYY.exec(e) || n.exec(e);
2679
2683
  if (i) {
2680
2684
  const o = i[1];
2681
2685
  return {
@@ -2683,7 +2687,7 @@ function Ds(e, t) {
2683
2687
  restDateString: e.slice(o.length)
2684
2688
  };
2685
2689
  }
2686
- if (i = M.YY.exec(e) || r.exec(e), i) {
2690
+ if (i = v.YY.exec(e) || r.exec(e), i) {
2687
2691
  const o = i[1];
2688
2692
  return {
2689
2693
  year: parseInt(o, 10) * 100,
@@ -2701,22 +2705,22 @@ function Os(e, t) {
2701
2705
  let r, n, i;
2702
2706
  if (!e || !e.length)
2703
2707
  return r = /* @__PURE__ */ new Date(0), r.setUTCFullYear(t), r;
2704
- let o = M.MM.exec(e);
2708
+ let o = v.MM.exec(e);
2705
2709
  if (o)
2706
2710
  return r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1, or(t, n) ? (r.setUTCFullYear(t, n), r) : /* @__PURE__ */ new Date(NaN);
2707
- if (o = M.DDD.exec(e), o) {
2711
+ if (o = v.DDD.exec(e), o) {
2708
2712
  r = /* @__PURE__ */ new Date(0);
2709
2713
  const c = parseInt(o[1], 10);
2710
2714
  return xs(t, c) ? (r.setUTCFullYear(t, 0, c), r) : /* @__PURE__ */ new Date(NaN);
2711
2715
  }
2712
- if (o = M.MMDD.exec(e), o) {
2716
+ if (o = v.MMDD.exec(e), o) {
2713
2717
  r = /* @__PURE__ */ new Date(0), n = parseInt(o[1], 10) - 1;
2714
2718
  const c = parseInt(o[2], 10);
2715
2719
  return or(t, n, c) ? (r.setUTCFullYear(t, n, c), r) : /* @__PURE__ */ new Date(NaN);
2716
2720
  }
2717
- if (o = M.Www.exec(e), o)
2721
+ if (o = v.Www.exec(e), o)
2718
2722
  return i = parseInt(o[1], 10) - 1, ur(i) ? sr(t, i) : /* @__PURE__ */ new Date(NaN);
2719
- if (o = M.WwwD.exec(e), o) {
2723
+ if (o = v.WwwD.exec(e), o) {
2720
2724
  i = parseInt(o[1], 10) - 1;
2721
2725
  const c = parseInt(o[2], 10) - 1;
2722
2726
  return ur(i, c) ? sr(t, i, c) : /* @__PURE__ */ new Date(NaN);
@@ -2724,12 +2728,12 @@ function Os(e, t) {
2724
2728
  return null;
2725
2729
  }
2726
2730
  function Ss(e) {
2727
- let t, r, n = M.HH.exec(e);
2731
+ let t, r, n = v.HH.exec(e);
2728
2732
  if (n)
2729
2733
  return t = parseFloat(n[1].replace(",", ".")), Xe(t) ? t % 24 * Ve : NaN;
2730
- if (n = M.HHMM.exec(e), n)
2734
+ if (n = v.HHMM.exec(e), n)
2731
2735
  return t = parseInt(n[1], 10), r = parseFloat(n[2].replace(",", ".")), Xe(t, r) ? t % 24 * Ve + r * ir : NaN;
2732
- if (n = M.HHMMSS.exec(e), n) {
2736
+ if (n = v.HHMMSS.exec(e), n) {
2733
2737
  t = parseInt(n[1], 10), r = parseInt(n[2], 10);
2734
2738
  const i = parseFloat(n[3].replace(",", "."));
2735
2739
  return Xe(t, r, i) ? t % 24 * Ve + r * ir + i * 1e3 : NaN;
@@ -2743,7 +2747,7 @@ function sr(e, t, r) {
2743
2747
  const i = n.getUTCDay() || 7, o = t * 7 + r + 1 - i;
2744
2748
  return n.setUTCDate(n.getUTCDate() + o), n;
2745
2749
  }
2746
- const Ms = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], vs = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2750
+ const vs = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Ms = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
2747
2751
  function Fr(e) {
2748
2752
  return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
2749
2753
  }
@@ -2754,7 +2758,7 @@ function or(e, t, r) {
2754
2758
  if (r < 1)
2755
2759
  return !1;
2756
2760
  const n = Fr(e);
2757
- if (n && r > vs[t] || !n && r > Ms[t])
2761
+ if (n && r > Ms[t] || !n && r > vs[t])
2758
2762
  return !1;
2759
2763
  }
2760
2764
  return !0;
@@ -2776,7 +2780,7 @@ function Ps(e, t, r = {}) {
2776
2780
  t = String(t);
2777
2781
  const n = t.match(Es);
2778
2782
  if (n) {
2779
- const i = Me(r.originalDate || e, r);
2783
+ const i = ve(r.originalDate || e, r);
2780
2784
  t = n.reduce(function(o, c) {
2781
2785
  if (c[0] === "'")
2782
2786
  return o;
@@ -2787,7 +2791,7 @@ function Ps(e, t, r = {}) {
2787
2791
  return jr(e, t, r);
2788
2792
  }
2789
2793
  function Wr(e, t, r) {
2790
- e = Me(e, r);
2794
+ e = ve(e, r);
2791
2795
  const n = he(t, e, !0), i = new Date(e.getTime() - n), o = /* @__PURE__ */ new Date(0);
2792
2796
  return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
2793
2797
  }
@@ -2800,8 +2804,8 @@ function Ns(e, t, r, n) {
2800
2804
  }
2801
2805
  function Cs(e, t, r) {
2802
2806
  if (typeof e == "string" && !e.match(Gr))
2803
- return Me(e, { ...r, timeZone: t });
2804
- e = Me(e, r);
2807
+ return ve(e, { ...r, timeZone: t });
2808
+ e = ve(e, r);
2805
2809
  const n = st(e.getFullYear(), e.getMonth(), e.getDate(), e.getHours(), e.getMinutes(), e.getSeconds(), e.getMilliseconds()).getTime(), i = he(t, new Date(n));
2806
2810
  return new Date(n + i);
2807
2811
  }
@@ -2827,7 +2831,7 @@ function cr(e, t = {}) {
2827
2831
  function oo(e, t) {
2828
2832
  return `${cr(e.getTime())} - ${cr(t.getTime(), { includeTZ: !0 })}`;
2829
2833
  }
2830
- const ve = {
2834
+ const Me = {
2831
2835
  secondly: 1e3,
2832
2836
  tenSecondly: 10 * 1e3,
2833
2837
  thirtySecondly: 30 * 1e3,
@@ -2856,12 +2860,12 @@ function Is(e, t) {
2856
2860
  };
2857
2861
  }
2858
2862
  function co(e) {
2859
- return e && Ze.find((r) => e <= ve[r]) || null;
2863
+ return e && Ze.find((r) => e <= Me[r]) || null;
2860
2864
  }
2861
2865
  function Ur(e, t, r, n) {
2862
- const i = ve[r];
2866
+ const i = Me[r];
2863
2867
  let o = 0;
2864
- return i >= ve.daily && (n ? o = -Lr(n, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
2868
+ return i >= Me.daily && (n ? o = -Lr(n, t) : o = t.getTimezoneOffset() * 60 * 1e3), new Date(e((t.getTime() - o) / i) * i + o);
2865
2869
  }
2866
2870
  function ks(e, t, r) {
2867
2871
  return Ur(Math.floor, e, t, r);
@@ -2922,7 +2926,7 @@ class lo extends Ce {
2922
2926
  return zr(this.timeframe.rawEnd(), this.granularity, this.tz);
2923
2927
  }
2924
2928
  granularityMs() {
2925
- return ve[this.granularity];
2929
+ return Me[this.granularity];
2926
2930
  }
2927
2931
  }
2928
2932
  class Ys extends Ce {
@@ -2971,7 +2975,7 @@ xe.exports;
2971
2975
  return a;
2972
2976
  }
2973
2977
  function bt(a, s, u, l) {
2974
- for (var D = -1, v = a ? a.length : 0; ++D < v; )
2978
+ for (var D = -1, M = a ? a.length : 0; ++D < M; )
2975
2979
  u = s(u, a[D], D, a);
2976
2980
  return u;
2977
2981
  }
@@ -3012,9 +3016,9 @@ xe.exports;
3012
3016
  var on = Array.prototype, un = Function.prototype, ye = Object.prototype, ke = Y["__core-js_shared__"], St = function() {
3013
3017
  var a = /[^.]+$/.exec(ke && ke.keys && ke.keys.IE_PROTO || "");
3014
3018
  return a ? "Symbol(src)_1." + a : "";
3015
- }(), Mt = un.toString, j = ye.hasOwnProperty, pe = ye.toString, cn = RegExp(
3016
- "^" + Mt.call(j).replace(Vr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3017
- ), vt = Jr ? Y.Buffer : void 0, xt = Y.Symbol, Et = Y.Uint8Array, ln = Ie(Object.getPrototypeOf, Object), dn = Object.create, fn = ye.propertyIsEnumerable, hn = on.splice, Pt = Object.getOwnPropertySymbols, mn = vt ? vt.isBuffer : void 0, yn = Ie(Object.keys, Object), Ye = Z(Y, "DataView"), re = Z(Y, "Map"), Re = Z(Y, "Promise"), qe = Z(Y, "Set"), He = Z(Y, "WeakMap"), ne = Z(Object, "create"), pn = U(Ye), gn = U(re), _n = U(Re), wn = U(qe), bn = U(He), Nt = xt ? xt.prototype : void 0, Ct = Nt ? Nt.valueOf : void 0;
3019
+ }(), vt = un.toString, j = ye.hasOwnProperty, pe = ye.toString, cn = RegExp(
3020
+ "^" + vt.call(j).replace(Vr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
3021
+ ), Mt = Jr ? Y.Buffer : void 0, xt = Y.Symbol, Et = Y.Uint8Array, ln = Ie(Object.getPrototypeOf, Object), dn = Object.create, fn = ye.propertyIsEnumerable, hn = on.splice, Pt = Object.getOwnPropertySymbols, mn = Mt ? Mt.isBuffer : void 0, yn = Ie(Object.keys, Object), Ye = Z(Y, "DataView"), re = Z(Y, "Map"), Re = Z(Y, "Promise"), qe = Z(Y, "Set"), He = Z(Y, "WeakMap"), ne = Z(Object, "create"), pn = U(Ye), gn = U(re), _n = U(Re), wn = U(qe), bn = U(He), Nt = xt ? xt.prototype : void 0, Ct = Nt ? Nt.valueOf : void 0;
3018
3022
  function W(a) {
3019
3023
  var s = -1, u = a ? a.length : 0;
3020
3024
  for (this.clear(); ++s < u; ) {
@@ -3040,11 +3044,11 @@ xe.exports;
3040
3044
  var s = this.__data__;
3041
3045
  return ne ? s[a] !== void 0 : j.call(s, a);
3042
3046
  }
3043
- function Mn(a, s) {
3047
+ function vn(a, s) {
3044
3048
  var u = this.__data__;
3045
3049
  return u[a] = ne && s === void 0 ? n : s, this;
3046
3050
  }
3047
- W.prototype.clear = Tn, W.prototype.delete = Dn, W.prototype.get = On, W.prototype.has = Sn, W.prototype.set = Mn;
3051
+ W.prototype.clear = Tn, W.prototype.delete = Dn, W.prototype.get = On, W.prototype.has = Sn, W.prototype.set = vn;
3048
3052
  function R(a) {
3049
3053
  var s = -1, u = a ? a.length : 0;
3050
3054
  for (this.clear(); ++s < u; ) {
@@ -3052,7 +3056,7 @@ xe.exports;
3052
3056
  this.set(l[0], l[1]);
3053
3057
  }
3054
3058
  }
3055
- function vn() {
3059
+ function Mn() {
3056
3060
  this.__data__ = [];
3057
3061
  }
3058
3062
  function xn(a) {
@@ -3073,7 +3077,7 @@ xe.exports;
3073
3077
  var u = this.__data__, l = ge(u, a);
3074
3078
  return l < 0 ? u.push([a, s]) : u[l][1] = s, this;
3075
3079
  }
3076
- R.prototype.clear = vn, R.prototype.delete = xn, R.prototype.get = En, R.prototype.has = Pn, R.prototype.set = Nn;
3080
+ R.prototype.clear = Mn, R.prototype.delete = xn, R.prototype.get = En, R.prototype.has = Pn, R.prototype.set = Nn;
3077
3081
  function X(a) {
3078
3082
  var s = -1, u = a ? a.length : 0;
3079
3083
  for (this.clear(); ++s < u; ) {
@@ -3129,8 +3133,8 @@ xe.exports;
3129
3133
  Q.prototype.clear = qn, Q.prototype.delete = Hn, Q.prototype.get = jn, Q.prototype.has = An, Q.prototype.set = Gn;
3130
3134
  function Fn(a, s) {
3131
3135
  var u = Ge(a) || da(a) ? an(a.length, String) : [], l = u.length, D = !!l;
3132
- for (var v in a)
3133
- j.call(a, v) && !(D && (v == "length" || oa(v, l))) && u.push(v);
3136
+ for (var M in a)
3137
+ j.call(a, M) && !(D && (M == "length" || oa(M, l))) && u.push(M);
3134
3138
  return u;
3135
3139
  }
3136
3140
  function It(a, s, u) {
@@ -3146,9 +3150,9 @@ xe.exports;
3146
3150
  function Wn(a, s) {
3147
3151
  return a && kt(s, Fe(s), a);
3148
3152
  }
3149
- function je(a, s, u, l, D, v, q) {
3153
+ function je(a, s, u, l, D, M, q) {
3150
3154
  var x;
3151
- if (l && (x = v ? l(a, D, v, q) : l(a)), x !== void 0)
3155
+ if (l && (x = M ? l(a, D, M, q) : l(a)), x !== void 0)
3152
3156
  return x;
3153
3157
  if (!we(a))
3154
3158
  return a;
@@ -3160,14 +3164,14 @@ xe.exports;
3160
3164
  var B = L(a), Gt = B == _ || B == y;
3161
3165
  if (ha(a))
3162
3166
  return Xn(a, s);
3163
- if (B == P || B == o || Gt && !v) {
3167
+ if (B == P || B == o || Gt && !M) {
3164
3168
  if (Tt(a))
3165
- return v ? a : {};
3169
+ return M ? a : {};
3166
3170
  if (x = ia(Gt ? {} : a), !s)
3167
3171
  return ra(a, Wn(x, a));
3168
3172
  } else {
3169
3173
  if (!w[B])
3170
- return v ? a : {};
3174
+ return M ? a : {};
3171
3175
  x = sa(a, B, je, s);
3172
3176
  }
3173
3177
  }
@@ -3246,7 +3250,7 @@ xe.exports;
3246
3250
  }
3247
3251
  function kt(a, s, u, l) {
3248
3252
  u || (u = {});
3249
- for (var D = -1, v = s.length; ++D < v; ) {
3253
+ for (var D = -1, M = s.length; ++D < M; ) {
3250
3254
  var q = s[D], x = void 0;
3251
3255
  It(u, q, x === void 0 ? a[q] : x);
3252
3256
  }
@@ -3341,7 +3345,7 @@ xe.exports;
3341
3345
  function U(a) {
3342
3346
  if (a != null) {
3343
3347
  try {
3344
- return Mt.call(a);
3348
+ return vt.call(a);
3345
3349
  } catch {
3346
3350
  }
3347
3351
  try {
@@ -3899,7 +3903,7 @@ function $r(e, t) {
3899
3903
  }
3900
3904
  export {
3901
3905
  fo as DeltaQueryTime,
3902
- ve as Granularities,
3906
+ Me as Granularities,
3903
3907
  zs as REFRESH_INTERVAL_MS,
3904
3908
  ot as SeededRandom,
3905
3909
  po as TIMEFRAME_LOOKUP,
@@ -3909,20 +3913,21 @@ export {
3909
3913
  lo as TimeseriesQueryTime,
3910
3914
  Ys as UnaryQueryTime,
3911
3915
  mr as aiExploreAggregations,
3912
- ja as apiUsageQuerySchema,
3913
- Pa as barChartSchema,
3916
+ qa as aiQuerySchema,
3917
+ va as barChartSchema,
3914
3918
  Be as basicExploreAggregations,
3915
- Aa as basicQuerySchema,
3919
+ Ra as basicQuerySchema,
3916
3920
  zr as ceilToNearestTimeGrain,
3917
- io as dashboardConfigSchema,
3918
- ao as dashboardTileTypes,
3919
- no as dashboardsSchemaV1,
3921
+ ao as dashboardConfigSchema,
3922
+ io as dashboardSchemaV2,
3923
+ no as dashboardTileTypes,
3920
3924
  Oa as datasourceToFilterableDimensions,
3921
3925
  ho as datePickerSelectionToTimeframe,
3922
- Ia as donutChartSchema,
3926
+ Ea as donutChartSchema,
3923
3927
  Ls as dstOffsetHours,
3924
3928
  hr as exploreAggregations,
3925
3929
  lr as exploreFilterTypesV2,
3930
+ Ya as exploreV4QuerySchema,
3926
3931
  ce as filterableAiExploreDimensions,
3927
3932
  oe as filterableBasicExploreDimensions,
3928
3933
  ue as filterableExploreDimensions,
@@ -3933,15 +3938,14 @@ export {
3933
3938
  so as formatISOTimeWithTZ,
3934
3939
  cr as formatTime,
3935
3940
  oo as formatTimeRange,
3936
- Ca as gaugeChartSchema,
3941
+ xa as gaugeChartSchema,
3937
3942
  wo as generateCrossSectionalData,
3938
3943
  _o as generateMultipleMetricTimeSeriesData,
3939
3944
  go as generateSingleMetricTimeSeriesData,
3940
3945
  uo as granularitiesToOptions,
3941
3946
  Is as granularityMsToQuery,
3942
3947
  Ze as granularityValues,
3943
- Ga as llmUsageSchema,
3944
- Ya as metricCardSchema,
3948
+ Na as metricCardSchema,
3945
3949
  co as msToGranularity,
3946
3950
  to as queryDatasources,
3947
3951
  Je as queryableAiExploreDimensions,
@@ -3958,17 +3962,17 @@ export {
3958
3962
  Vs as requestFilterTypeEqualsV2,
3959
3963
  Xs as requestFilterTypeMetricV2,
3960
3964
  Qs as requestFilterTypeWildcardV2,
3961
- Ra as singleValueSchema,
3962
- Ea as slottableSchema,
3965
+ Ca as singleValueSchema,
3966
+ Sa as slottableSchema,
3963
3967
  ro as stripUnknownFilters,
3964
- Ua as tileConfigSchema,
3965
- Wa as tileDefinitionSchema,
3966
- La as tileLayoutSchema,
3968
+ Ga as tileConfigSchema,
3969
+ ja as tileDefinitionSchema,
3970
+ Aa as tileLayoutSchema,
3967
3971
  Zs as timeRangeTypeV2,
3968
3972
  mo as timeframeToDatepickerSelection,
3969
3973
  yo as timeframeToDatepickerTimeperiod,
3970
- Na as timeseriesChartSchema,
3971
- ka as topNTableSchema,
3972
- Fa as validDashboardQuery
3974
+ Ma as timeseriesChartSchema,
3975
+ Pa as topNTableSchema,
3976
+ Ha as validDashboardQuery
3973
3977
  };
3974
3978
  //# sourceMappingURL=vitals-utilities.es.js.map