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