@gravitee/graphene-charts 3.5.0 → 3.6.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.
Files changed (2) hide show
  1. package/dist/index.js +260 -246
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1241,7 +1241,21 @@ var Ot = W((e, t) => /* @__PURE__ */ Y("svg", {
1241
1241
  })
1242
1242
  }));
1243
1243
  Ot.displayName = "OpenAIIcon";
1244
- var kt = W((e, t) => {
1244
+ var kt = W((e, t) => /* @__PURE__ */ Y("svg", {
1245
+ ref: t,
1246
+ xmlns: "http://www.w3.org/2000/svg",
1247
+ width: 24,
1248
+ height: 24,
1249
+ viewBox: "0 0 24 24",
1250
+ fill: "none",
1251
+ ...e,
1252
+ children: /* @__PURE__ */ Y("path", {
1253
+ fill: "currentColor",
1254
+ d: "M21.039 0a2.959 2.959 0 00-2.65 4.274l-6.447 6.447a2.96 2.96 0 101.335 1.336l6.447-6.447A2.959 2.959 0 1021.04 0zM10.628 2.745c-.072 0-.143.003-.214.004-.072.002-.143.002-.215.005-.447.018-.893.064-1.335.138l-.03.005-.185.033-.105.02a7.718 7.718 0 00-.289.062l-.032.008a10.69 10.69 0 00-2.55.95l-.155.089c-.063.034-.125.07-.187.105-.046.027-.093.051-.14.079H5.19l-.01.005-.036.02v.002l.111.184 3.15 5.23a4.168 4.168 0 01.38-.202 4.294 4.294 0 011.628-.413c.071-.004.143-.008.214-.008zm.428.01v6.333c.325.034.647.103.96.209l4.66-4.66c-.173-.12-.348-.237-.528-.347l-.026-.015c-.056-.035-.112-.067-.168-.1l-.098-.056-.099-.055a12.735 12.735 0 00-.171-.092l-.027-.014a10.628 10.628 0 00-1.425-.617c-.69-.241-1.403-.41-2.128-.505l-.089-.012-.09-.01a6.56 6.56 0 00-.17-.019l-.049-.004-.204-.017a6.44 6.44 0 00-.255-.015c-.031-.003-.062-.003-.093-.004zM4.782 4.498a9.92 9.92 0 00-1.36 1.062l4.461 4.461.018.018c.049-.04.098-.078.149-.116l-.011-.018zm-1.67 1.36c-.05.05-.098.103-.147.154l-.149.155c-.33.357-.63.73-.902 1.118l-.039.056a10.588 10.588 0 00-.216.326 10.6 10.6 0 00-1.65 5.276l-.006.215-.003.214h6.317c0-.072.007-.143.01-.214.005-.072.006-.144.013-.215.081-.822.399-1.625.952-2.3.045-.055.096-.106.144-.16.048-.052.093-.107.144-.158zm16.255 1.464l-4.663 4.663c.106.312.175.634.21.959h6.332l-.004-.094a11.579 11.579 0 00-.032-.456l-.005-.052a13.044 13.044 0 00-.026-.241v-.009l-.033-.24v-.009a10.618 10.618 0 00-.327-1.493l-.003-.01a15.839 15.839 0 00-.07-.228l-.01-.03a14.111 14.111 0 00-.069-.204l-.02-.055a5.65 5.65 0 00-.153-.405 7.84 7.84 0 00-.093-.227 16.67 16.67 0 00-.063-.144l-.037-.081a13.776 13.776 0 00-.08-.171l-.024-.052-.096-.194-.014-.027a11.2 11.2 0 00-.112-.212l-.004-.008a10.615 10.615 0 00-.604-.98zm-4.43 6.05c0 .071-.006.142-.01.214-.003.072-.005.143-.012.214a4.29 4.29 0 01-.952 2.301c-.045.055-.096.107-.144.16-.048.053-.093.108-.144.159l4.467 4.467c.051-.051.099-.104.148-.155.05-.052.1-.103.148-.155.331-.358.633-.733.905-1.122l.032-.046.098-.144.085-.13.04-.063a10.597 10.597 0 001.647-5.272c.003-.071.004-.143.006-.214.001-.071.004-.143.004-.214zM.01 13.8l.004.093.01.179.005.076.017.206.005.046c.007.076.015.153.024.228l.003.022a9.605 9.605 0 00.033.248c.072.505.182 1.005.327 1.497l.002.006c.022.077.047.154.071.23l.004.014.005.014a15.737 15.737 0 00.153.439l.03.08.059.148a7.702 7.702 0 00.093.228l.062.14.038.084.078.169.027.054a10.677 10.677 0 00.225.441l.025.043 5.408-3.258.02-.012a4.314 4.314 0 01-.395-1.414h-.025zm.505 2.846l-.206.058.002.005zm6.425-1.052l-5.415 3.262c.083.139.17.273.259.406l.008.014.004.005.008.014h.001c.007.012.014.022.022.032l.001.002v.001a10.634 10.634 0 00.298.417l.006.008a9.963 9.963 0 00.29.368l.033.04c.043.052.086.103.13.153l.057.065.112.127.064.069.029.031.083.09.035.035c.049.051.098.103.149.153L7.58 16.42a3.86 3.86 0 01-.285-.321 4.422 4.422 0 01-.356-.505zm6.416 1.111c-.05.04-.1.079-.15.116l.011.018 3.257 5.407c.151-.099.3-.2.446-.307.315-.232.62-.484.914-.756l-4.46-4.46zm-5.457.003l-.015.015-4.46 4.46a8.966 8.966 0 00.195.176c.022.02.043.04.065.058l.152.13a10.622 10.622 0 00.215.174l.023.017.191.148.008.005c.268.2.547.389.834.564l.03.018.164.097.101.057a5.458 5.458 0 00.27.148c.008.004.016.01.025.013.162.085.327.164.493.24l.158-.385 2.243-5.448.009-.02a4.328 4.328 0 01-.701-.467zm4.951.353c-.061.037-.124.07-.187.104a4.318 4.318 0 01-3.271.336c-.069-.02-.135-.047-.203-.071-.067-.024-.136-.044-.202-.072l-2.242 5.444-.088.213-.075.183v.001l.017.007a.137.137 0 00.019.007l.005.003c.052.021.106.04.159.06.067.027.133.053.2.077l.102.04c.702.247 1.43.42 2.168.518l.087.012.09.01.172.019a7.173 7.173 0 00.252.022c.023.001.048.001.071.003l.184.011.112.005a7.06 7.06 0 00.358.007h.05a10.667 10.667 0 001.793-.15l.185-.034.105-.02.109-.023.18-.04.032-.008a10.684 10.684 0 002.55-.95c.052-.028.104-.06.156-.089.063-.034.125-.07.187-.105.043-.024.087-.047.13-.073h.001l.002-.002.002-.001.002-.001.007-.004.042-.025-.11-.183-.11-.184zm3.262 5.414l-.042.025.042-.024zm-.05.029zm-.005.004h-.002z"
1255
+ })
1256
+ }));
1257
+ kt.displayName = "OpenApiIcon";
1258
+ var At = W((e, t) => {
1245
1259
  let n = K();
1246
1260
  return /* @__PURE__ */ X("svg", {
1247
1261
  ref: t,
@@ -1466,8 +1480,8 @@ var kt = W((e, t) => {
1466
1480
  })]
1467
1481
  });
1468
1482
  });
1469
- kt.displayName = "GioAgentManagementIcon";
1470
- var At = W((e, t) => {
1483
+ At.displayName = "GioAgentManagementIcon";
1484
+ var jt = W((e, t) => {
1471
1485
  let n = K();
1472
1486
  return /* @__PURE__ */ X("svg", {
1473
1487
  ref: t,
@@ -1705,8 +1719,8 @@ var At = W((e, t) => {
1705
1719
  })]
1706
1720
  });
1707
1721
  });
1708
- At.displayName = "GioApiManagementIcon";
1709
- var jt = W((e, t) => {
1722
+ jt.displayName = "GioApiManagementIcon";
1723
+ var Mt = W((e, t) => {
1710
1724
  let n = K();
1711
1725
  return /* @__PURE__ */ X("svg", {
1712
1726
  ref: t,
@@ -1833,8 +1847,8 @@ var jt = W((e, t) => {
1833
1847
  })]
1834
1848
  });
1835
1849
  });
1836
- jt.displayName = "GioAuthorizationIcon";
1837
- var Mt = W((e, t) => {
1850
+ Mt.displayName = "GioAuthorizationIcon";
1851
+ var Nt = W((e, t) => {
1838
1852
  let n = K();
1839
1853
  return /* @__PURE__ */ X("svg", {
1840
1854
  ref: t,
@@ -2021,8 +2035,8 @@ var Mt = W((e, t) => {
2021
2035
  })]
2022
2036
  });
2023
2037
  });
2024
- Mt.displayName = "GioCatalogIcon";
2025
- var Nt = W((e, t) => {
2038
+ Nt.displayName = "GioCatalogIcon";
2039
+ var Pt = W((e, t) => {
2026
2040
  let n = K();
2027
2041
  return /* @__PURE__ */ X("svg", {
2028
2042
  ref: t,
@@ -2247,8 +2261,8 @@ var Nt = W((e, t) => {
2247
2261
  })]
2248
2262
  });
2249
2263
  });
2250
- Nt.displayName = "GioDeveloperPortalIcon";
2251
- var Pt = W((e, t) => {
2264
+ Pt.displayName = "GioDeveloperPortalIcon";
2265
+ var Ft = W((e, t) => {
2252
2266
  let n = K();
2253
2267
  return /* @__PURE__ */ X("svg", {
2254
2268
  ref: t,
@@ -2523,8 +2537,8 @@ var Pt = W((e, t) => {
2523
2537
  })]
2524
2538
  });
2525
2539
  });
2526
- Pt.displayName = "GioEdgeManagementIcon";
2527
- var Ft = W((e, t) => {
2540
+ Ft.displayName = "GioEdgeManagementIcon";
2541
+ var It = W((e, t) => {
2528
2542
  let n = K();
2529
2543
  return /* @__PURE__ */ X("svg", {
2530
2544
  ref: t,
@@ -2711,8 +2725,8 @@ var Ft = W((e, t) => {
2711
2725
  })]
2712
2726
  });
2713
2727
  });
2714
- Ft.displayName = "GioEventApiManagementIcon";
2715
- var It = W((e, t) => {
2728
+ It.displayName = "GioEventApiManagementIcon";
2729
+ var Lt = W((e, t) => {
2716
2730
  let n = K();
2717
2731
  return /* @__PURE__ */ X("svg", {
2718
2732
  ref: t,
@@ -2953,8 +2967,8 @@ var It = W((e, t) => {
2953
2967
  })]
2954
2968
  });
2955
2969
  });
2956
- It.displayName = "GioGammaIcon";
2957
- var Lt = W((e, t) => {
2970
+ Lt.displayName = "GioGammaIcon";
2971
+ var Rt = W((e, t) => {
2958
2972
  let n = K();
2959
2973
  return /* @__PURE__ */ X("svg", {
2960
2974
  ref: t,
@@ -3195,8 +3209,8 @@ var Lt = W((e, t) => {
3195
3209
  })]
3196
3210
  });
3197
3211
  });
3198
- Lt.displayName = "GioHomeIcon";
3199
- var Rt = W((e, t) => {
3212
+ Rt.displayName = "GioHomeIcon";
3213
+ var zt = W((e, t) => {
3200
3214
  let n = K();
3201
3215
  return /* @__PURE__ */ X("svg", {
3202
3216
  ref: t,
@@ -3491,8 +3505,8 @@ var Rt = W((e, t) => {
3491
3505
  })]
3492
3506
  });
3493
3507
  });
3494
- Rt.displayName = "GioIamIcon";
3495
- var zt = W((e, t) => {
3508
+ zt.displayName = "GioIamIcon";
3509
+ var Bt = W((e, t) => {
3496
3510
  let n = K();
3497
3511
  return /* @__PURE__ */ X("svg", {
3498
3512
  ref: t,
@@ -3717,8 +3731,8 @@ var zt = W((e, t) => {
3717
3731
  })]
3718
3732
  });
3719
3733
  });
3720
- zt.displayName = "GioObservabilityIcon";
3721
- var Bt = W((e, t) => {
3734
+ Bt.displayName = "GioObservabilityIcon";
3735
+ var Vt = W((e, t) => {
3722
3736
  let n = K();
3723
3737
  return /* @__PURE__ */ X("svg", {
3724
3738
  ref: t,
@@ -3837,8 +3851,8 @@ var Bt = W((e, t) => {
3837
3851
  })]
3838
3852
  });
3839
3853
  });
3840
- Bt.displayName = "GioObserveIcon";
3841
- var Vt = W((e, t) => {
3854
+ Vt.displayName = "GioObserveIcon";
3855
+ var Ht = W((e, t) => {
3842
3856
  let n = K();
3843
3857
  return /* @__PURE__ */ X("svg", {
3844
3858
  ref: t,
@@ -4169,8 +4183,8 @@ var Vt = W((e, t) => {
4169
4183
  })]
4170
4184
  });
4171
4185
  });
4172
- Vt.displayName = "GioPlatformIcon";
4173
- var Ht = W((e, t) => {
4186
+ Ht.displayName = "GioPlatformIcon";
4187
+ var Ut = W((e, t) => {
4174
4188
  let n = K();
4175
4189
  return /* @__PURE__ */ X("svg", {
4176
4190
  ref: t,
@@ -4289,8 +4303,8 @@ var Ht = W((e, t) => {
4289
4303
  })]
4290
4304
  });
4291
4305
  });
4292
- Ht.displayName = "GioProductizeIcon";
4293
- var Ut = W((e, t) => {
4306
+ Ut.displayName = "GioProductizeIcon";
4307
+ var Wt = W((e, t) => {
4294
4308
  let n = K();
4295
4309
  return /* @__PURE__ */ X("svg", {
4296
4310
  ref: t,
@@ -4417,10 +4431,10 @@ var Ut = W((e, t) => {
4417
4431
  })]
4418
4432
  });
4419
4433
  });
4420
- Ut.displayName = "GioSecureIcon";
4434
+ Wt.displayName = "GioSecureIcon";
4421
4435
  //#endregion
4422
4436
  //#region src/lib/useContainerSize.ts
4423
- function Wt() {
4437
+ function Gt() {
4424
4438
  let [e, t] = q({
4425
4439
  width: 0,
4426
4440
  height: 0
@@ -4445,29 +4459,29 @@ function Wt() {
4445
4459
  }
4446
4460
  //#endregion
4447
4461
  //#region src/charts/Metric/Metric.tsx
4448
- var Gt = {
4462
+ var Kt = {
4449
4463
  positive: "text-success",
4450
4464
  negative: "text-destructive",
4451
4465
  neutral: "text-muted-foreground"
4452
4466
  };
4453
- function Kt(e, t) {
4467
+ function qt(e, t) {
4454
4468
  return e === "neutral" || t === "neutral" ? "neutral" : t === "higher-is-better" ? e === "up" ? "positive" : "negative" : e === "up" ? "negative" : "positive";
4455
4469
  }
4456
- var qt = 56;
4457
- function Jt(e, t) {
4470
+ var Jt = 56;
4471
+ function Yt(e, t) {
4458
4472
  let n = Math.min(t > 0 ? t : 100, (e > 0 ? e : 200) * .65);
4459
4473
  return Math.max(18, Math.min(96, Math.round(n * .22)));
4460
4474
  }
4461
- function Yt(e) {
4475
+ function Xt(e) {
4462
4476
  return Math.max(10, Math.round(e * .22));
4463
4477
  }
4464
- function Xt(e) {
4478
+ function Zt(e) {
4465
4479
  return e < 80 ? "text-sm font-semibold leading-tight" : e < 110 ? "text-base font-semibold leading-tight" : e < 150 ? "text-lg font-semibold leading-tight" : "text-xl font-semibold leading-tight";
4466
4480
  }
4467
- function Zt(e) {
4481
+ function Qt(e) {
4468
4482
  return e < 50 ? "text-[9px]" : e < 80 ? "text-[10px]" : e < 120 ? "text-xs" : "text-sm";
4469
4483
  }
4470
- function Qt(e) {
4484
+ function $t(e) {
4471
4485
  return e < 60 ? {
4472
4486
  text: "text-[9px]",
4473
4487
  icon: "size-2 stroke-[2.5]"
@@ -4482,7 +4496,7 @@ function Qt(e) {
4482
4496
  icon: "size-3.5 stroke-[2.5]"
4483
4497
  };
4484
4498
  }
4485
- function $t({ data: t, color: n, colorClass: r }) {
4499
+ function en({ data: t, color: n, colorClass: r }) {
4486
4500
  let i = U.useRef(null), [a, o] = U.useState({
4487
4501
  width: 0,
4488
4502
  height: 0
@@ -4534,14 +4548,14 @@ function $t({ data: t, color: n, colorClass: r }) {
4534
4548
  ] })
4535
4549
  });
4536
4550
  }
4537
- function en({ trend: t, sentiment: n, trendClass: r }) {
4551
+ function tn({ trend: t, sentiment: n, trendClass: r }) {
4538
4552
  let i = t.direction === "down" ? Q : ct;
4539
4553
  return /* @__PURE__ */ X("span", {
4540
- className: e("inline-flex items-center gap-1 font-medium", r.text, Gt[n]),
4554
+ className: e("inline-flex items-center gap-1 font-medium", r.text, Kt[n]),
4541
4555
  children: [t.direction !== "neutral" && /* @__PURE__ */ Y(i, { className: r.icon }), t.isNew ? "New" : `${t.value}%`]
4542
4556
  });
4543
4557
  }
4544
- function tn({ className: t, ...n }) {
4558
+ function nn({ className: t, ...n }) {
4545
4559
  return /* @__PURE__ */ X("div", {
4546
4560
  role: "img",
4547
4561
  "aria-busy": "true",
@@ -4560,15 +4574,15 @@ function tn({ className: t, ...n }) {
4560
4574
  }), /* @__PURE__ */ Y(_, { className: "min-h-5 w-full flex-1" })]
4561
4575
  });
4562
4576
  }
4563
- function nn({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
4564
- let { ref: p, width: m, height: h } = Wt();
4565
- if (r === "loading") return /* @__PURE__ */ Y(tn, {
4577
+ function rn({ value: t, label: n, state: r, description: i, icon: a, trend: o, trendSentiment: s = "higher-is-better", centered: c = !1, sparklineData: l, sparklineColor: u, className: d, ...f }) {
4578
+ let { ref: p, width: m, height: h } = Gt();
4579
+ if (r === "loading") return /* @__PURE__ */ Y(nn, {
4566
4580
  className: d,
4567
4581
  ...f
4568
4582
  });
4569
- let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? Kt(_.direction, s) : void 0, b = !u && y ? Gt[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= qt && !c, C = c || !S, w = Xt(h), T = Zt(h), E = Qt(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4583
+ let g = r === "empty" ? "—" : t, _ = r === "empty" ? void 0 : o, v = r === "empty" ? void 0 : l, y = _ ? qt(_.direction, s) : void 0, b = !u && y ? Kt[y] : void 0, x = u ?? (y ? void 0 : "var(--chart-1)"), S = v != null && v.length >= 2 && h >= Jt && !c, C = c || !S, w = Zt(h), T = Qt(h), E = $t(h), D = n && h > 50, O = !!(_ && y && (S || h > 40));
4570
4584
  if (C) {
4571
- let t = Jt(m, h), r = Yt(t);
4585
+ let t = Yt(m, h), r = Xt(t);
4572
4586
  return /* @__PURE__ */ X("div", {
4573
4587
  ref: p,
4574
4588
  className: e("flex h-full flex-col items-center justify-center gap-1 text-center", d),
@@ -4584,7 +4598,7 @@ function nn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4584
4598
  style: { fontSize: r },
4585
4599
  children: n
4586
4600
  }),
4587
- O && _ && y && /* @__PURE__ */ Y(en, {
4601
+ O && _ && y && /* @__PURE__ */ Y(tn, {
4588
4602
  trend: _,
4589
4603
  sentiment: y,
4590
4604
  trendClass: E
@@ -4608,7 +4622,7 @@ function nn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4608
4622
  }),
4609
4623
  O && _ && y && /* @__PURE__ */ X("span", {
4610
4624
  className: "flex shrink-0 items-center gap-1",
4611
- children: [/* @__PURE__ */ Y(en, {
4625
+ children: [/* @__PURE__ */ Y(tn, {
4612
4626
  trend: _,
4613
4627
  sentiment: y,
4614
4628
  trendClass: E
@@ -4628,7 +4642,7 @@ function nn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4628
4642
  ]
4629
4643
  }), /* @__PURE__ */ Y("div", {
4630
4644
  className: "min-h-0 flex-1 pt-1",
4631
- children: /* @__PURE__ */ Y($t, {
4645
+ children: /* @__PURE__ */ Y(en, {
4632
4646
  data: v,
4633
4647
  color: x,
4634
4648
  colorClass: b
@@ -4638,49 +4652,49 @@ function nn({ value: t, label: n, state: r, description: i, icon: a, trend: o, t
4638
4652
  }
4639
4653
  //#endregion
4640
4654
  //#region src/charts/MetricGroup/MetricGroup.tsx
4641
- function rn(e) {
4655
+ function an(e) {
4642
4656
  return "category" in e && "metrics" in e;
4643
4657
  }
4644
- var an = {
4658
+ var on = {
4645
4659
  positive: "text-success",
4646
4660
  negative: "text-destructive",
4647
4661
  neutral: "text-muted-foreground"
4648
4662
  };
4649
- function on(e) {
4663
+ function sn(e) {
4650
4664
  let t = 0;
4651
- for (let n of e) t += rn(n) ? n.metrics.length : 1;
4665
+ for (let n of e) t += an(n) ? n.metrics.length : 1;
4652
4666
  return t;
4653
4667
  }
4654
- function sn(e) {
4655
- return rn(e) ? e.metrics.length : 1;
4668
+ function cn(e) {
4669
+ return an(e) ? e.metrics.length : 1;
4656
4670
  }
4657
- var cn = [
4671
+ var ln = [
4658
4672
  "xs",
4659
4673
  "sm",
4660
4674
  "md",
4661
4675
  "lg"
4662
4676
  ];
4663
- function ln(e, t, n) {
4677
+ function un(e, t, n) {
4664
4678
  let r = e / Math.max(n, 1), i = r < 40 ? "xs" : r < 70 ? "sm" : r < 110 ? "md" : "lg", a = t < 25 ? "xs" : t < 40 ? "sm" : t < 60 ? "md" : "lg";
4665
- return cn[Math.min(cn.indexOf(i), cn.indexOf(a))];
4679
+ return ln[Math.min(ln.indexOf(i), ln.indexOf(a))];
4666
4680
  }
4667
- var un = {
4681
+ var dn = {
4668
4682
  xs: 40,
4669
4683
  sm: 55,
4670
4684
  md: 75,
4671
4685
  lg: 100
4672
- }, dn = 40, fn = 80;
4673
- function pn(e, t, n) {
4674
- if (e < fn) return 0;
4675
- let r = un[n], i = 0, a = 0;
4686
+ }, fn = 40, pn = 80;
4687
+ function mn(e, t, n) {
4688
+ if (e < pn) return 0;
4689
+ let r = dn[n], i = 0, a = 0;
4676
4690
  for (let n = 0; n < t.length; n++) {
4677
- let o = r * sn(t[n]), s = t.length - (n + 1) > 0 ? dn : 0;
4691
+ let o = r * cn(t[n]), s = t.length - (n + 1) > 0 ? fn : 0;
4678
4692
  if (a + o + s > e) break;
4679
4693
  a += o, i++;
4680
4694
  }
4681
4695
  return i;
4682
4696
  }
4683
- var mn = {
4697
+ var hn = {
4684
4698
  value: {
4685
4699
  xs: "text-xs font-bold leading-tight",
4686
4700
  sm: "text-base font-semibold",
@@ -4718,31 +4732,31 @@ var mn = {
4718
4732
  lg: "px-5"
4719
4733
  }
4720
4734
  };
4721
- function hn({ trend: t, sentiment: n, size: r }) {
4735
+ function gn({ trend: t, sentiment: n, size: r }) {
4722
4736
  let i = t.direction === "down" ? Q : ct, a = r === "xs" || r === "sm";
4723
4737
  return a && t.direction === "neutral" ? null : /* @__PURE__ */ X("span", {
4724
- className: e("inline-flex items-center gap-px font-medium", mn.trend[r], an[n]),
4725
- children: [t.direction !== "neutral" && /* @__PURE__ */ Y(i, { className: mn.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
4738
+ className: e("inline-flex items-center gap-px font-medium", hn.trend[r], on[n]),
4739
+ children: [t.direction !== "neutral" && /* @__PURE__ */ Y(i, { className: hn.trendIcon[r] }), !a && (t.isNew ? "New" : `${t.value}%`)]
4726
4740
  });
4727
4741
  }
4728
- function gn({ item: t, size: n, labelVisible: r }) {
4729
- let i = t.trend ? Kt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ X("div", {
4742
+ function _n({ item: t, size: n, labelVisible: r }) {
4743
+ let i = t.trend ? qt(t.trend.direction, t.trendSentiment ?? "higher-is-better") : void 0, a = r && t.label, o = /* @__PURE__ */ X("div", {
4730
4744
  className: "flex w-full min-w-0 flex-col",
4731
4745
  children: [/* @__PURE__ */ X("div", {
4732
4746
  className: "flex items-baseline justify-between gap-1",
4733
4747
  children: [/* @__PURE__ */ Y("span", {
4734
- className: e("truncate tracking-tight text-foreground", mn.value[n]),
4748
+ className: e("truncate tracking-tight text-foreground", hn.value[n]),
4735
4749
  children: t.value
4736
4750
  }), t.trend && i && !(t.trend.direction === "neutral" && (n === "xs" || n === "sm")) && /* @__PURE__ */ Y("span", {
4737
4751
  className: "shrink-0",
4738
- children: /* @__PURE__ */ Y(hn, {
4752
+ children: /* @__PURE__ */ Y(gn, {
4739
4753
  trend: t.trend,
4740
4754
  sentiment: i,
4741
4755
  size: n
4742
4756
  })
4743
4757
  })]
4744
4758
  }), a && /* @__PURE__ */ Y("span", {
4745
- className: e("truncate text-muted-foreground", mn.label[n]),
4759
+ className: e("truncate text-muted-foreground", hn.label[n]),
4746
4760
  children: t.label
4747
4761
  })]
4748
4762
  });
@@ -4757,7 +4771,7 @@ function gn({ item: t, size: n, labelVisible: r }) {
4757
4771
  children: o
4758
4772
  });
4759
4773
  }
4760
- function _n({ count: t, size: n }) {
4774
+ function vn({ count: t, size: n }) {
4761
4775
  let r = `${t} more ${t === 1 ? "metric" : "metrics"} hidden`;
4762
4776
  return /* @__PURE__ */ X(ie, { children: [/* @__PURE__ */ Y(se, {
4763
4777
  asChild: !0,
@@ -4769,7 +4783,7 @@ function _n({ count: t, size: n }) {
4769
4783
  })
4770
4784
  }), /* @__PURE__ */ Y(ae, { children: r })] });
4771
4785
  }
4772
- function vn({ count: t, className: n, ...r }) {
4786
+ function yn({ count: t, className: n, ...r }) {
4773
4787
  return /* @__PURE__ */ Y("div", {
4774
4788
  role: "img",
4775
4789
  "aria-busy": "true",
@@ -4782,14 +4796,14 @@ function vn({ count: t, className: n, ...r }) {
4782
4796
  }, t))
4783
4797
  });
4784
4798
  }
4785
- function yn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4786
- let { ref: o, width: s, height: c } = Wt();
4787
- if (n === "loading") return /* @__PURE__ */ Y(vn, {
4788
- count: t.length > 0 ? on(t) : r ?? 5,
4799
+ function bn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4800
+ let { ref: o, width: s, height: c } = Gt();
4801
+ if (n === "loading") return /* @__PURE__ */ Y(yn, {
4802
+ count: t.length > 0 ? sn(t) : r ?? 5,
4789
4803
  className: i,
4790
4804
  ...a
4791
4805
  });
4792
- let l = n === "empty" ? t.map((e) => rn(e) ? {
4806
+ let l = n === "empty" ? t.map((e) => an(e) ? {
4793
4807
  ...e,
4794
4808
  metrics: e.metrics.map((e) => ({
4795
4809
  ...e,
@@ -4800,7 +4814,7 @@ function yn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4800
4814
  ...e,
4801
4815
  value: "—",
4802
4816
  trend: void 0
4803
- }) : t, u = on(l), d = s > 0 ? ln(s, c, u) : "md", f = c >= 50, p = s > 0 ? pn(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4817
+ }) : t, u = sn(l), d = s > 0 ? un(s, c, u) : "md", f = c >= 50, p = s > 0 ? mn(s, l, d) : l.length, m = l.slice(0, p), h = l.length - p, g = p === 0;
4804
4818
  return /* @__PURE__ */ Y(oe, {
4805
4819
  delayDuration: 300,
4806
4820
  children: /* @__PURE__ */ X("div", {
@@ -4810,21 +4824,21 @@ function yn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4810
4824
  className: e("flex h-full items-center overflow-hidden", g ? "justify-center" : "divide-x divide-border/30 dark:divide-white/[0.06]", i),
4811
4825
  ...a,
4812
4826
  children: [s > 0 && !g && m.map((t) => {
4813
- let n = rn(t) ? t.category : `${t.value}-${t.label ?? ""}`;
4827
+ let n = an(t) ? t.category : `${t.value}-${t.label ?? ""}`;
4814
4828
  return /* @__PURE__ */ Y("div", {
4815
- style: { flex: sn(t) },
4816
- className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", mn.cellPadding[d]),
4817
- children: rn(t) ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("span", {
4818
- className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", mn.category[d]),
4829
+ style: { flex: cn(t) },
4830
+ className: e("flex min-w-0 flex-col justify-center overflow-x-hidden", hn.cellPadding[d]),
4831
+ children: an(t) ? /* @__PURE__ */ X(J, { children: [/* @__PURE__ */ Y("span", {
4832
+ className: e("mb-0.5 font-medium tracking-wider text-muted-foreground uppercase", hn.category[d]),
4819
4833
  children: t.category
4820
4834
  }), /* @__PURE__ */ Y("div", {
4821
4835
  className: "flex w-full min-w-0 items-stretch gap-3",
4822
- children: t.metrics.map((e) => /* @__PURE__ */ Y(gn, {
4836
+ children: t.metrics.map((e) => /* @__PURE__ */ Y(_n, {
4823
4837
  item: e,
4824
4838
  size: d,
4825
4839
  labelVisible: f
4826
4840
  }, `${e.value}-${e.label ?? ""}`))
4827
- })] }) : /* @__PURE__ */ Y(gn, {
4841
+ })] }) : /* @__PURE__ */ Y(_n, {
4828
4842
  item: t,
4829
4843
  size: d,
4830
4844
  labelVisible: f
@@ -4832,7 +4846,7 @@ function yn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4832
4846
  }, n);
4833
4847
  }), s > 0 && h > 0 && /* @__PURE__ */ Y("div", {
4834
4848
  className: e("flex shrink-0 items-center", g ? "" : "px-2"),
4835
- children: /* @__PURE__ */ Y(_n, {
4849
+ children: /* @__PURE__ */ Y(vn, {
4836
4850
  count: h,
4837
4851
  size: d
4838
4852
  })
@@ -4842,7 +4856,7 @@ function yn({ items: t, state: n, skeletonCount: r, className: i, ...a }) {
4842
4856
  }
4843
4857
  //#endregion
4844
4858
  //#region src/charts/LineChart/LineChart.tsx
4845
- function bn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4859
+ function xn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDots: a = !1, showGrid: s = !0, showCategoryAxis: c = !0, showValueAxis: l = !0, connectNulls: u = !1, valueTickFormatter: d, categoryTickFormatter: f, animated: h = !0, onPointHover: _, onPointLeave: v, ariaLabel: y, margin: b, className: S, children: C, ...w }) {
4846
4860
  let { config: T } = t(), E = n ?? He(e, Object.keys(T));
4847
4861
  return r === "loading" ? /* @__PURE__ */ Y(x, {
4848
4862
  ariaLabel: y,
@@ -4877,7 +4891,7 @@ function bn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", showDot
4877
4891
  }
4878
4892
  //#endregion
4879
4893
  //#region src/charts/AreaChart/AreaChart.tsx
4880
- function xn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4894
+ function Sn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked: a = !0, gradient: s = !0, fillOpacity: c = .2, showGrid: l = !0, showCategoryAxis: u = !0, showValueAxis: d = !0, connectNulls: f = !1, animated: h = !0, ariaLabel: _, margin: v, valueTickFormatter: y, categoryTickFormatter: x, onPointHover: S, onPointLeave: C, className: w, children: T, ...E }) {
4881
4895
  let { config: D } = t(), O = n ?? He(e, Object.keys(D)), k = a ? "default" : void 0;
4882
4896
  return r === "loading" ? /* @__PURE__ */ Y(b, {
4883
4897
  ariaLabel: _,
@@ -4912,7 +4926,7 @@ function xn({ data: e, dataKeys: n, state: r, curveType: i = "monotone", stacked
4912
4926
  ]
4913
4927
  });
4914
4928
  }
4915
- function Sn(e) {
4929
+ function Cn(e) {
4916
4930
  if (e === 0) return "0ns";
4917
4931
  if (e < 1e3) return `${Math.round(e)}ns`;
4918
4932
  let t = e / 1e3;
@@ -4924,7 +4938,7 @@ function Sn(e) {
4924
4938
  let i = Math.floor(r / 60), a = r % 60;
4925
4939
  return `${i}m ${Math.round(a)}s`;
4926
4940
  }
4927
- function Cn(e) {
4941
+ function wn(e) {
4928
4942
  let t = 0;
4929
4943
  for (let n of e) {
4930
4944
  let e = n.startOffsetNs + n.durationNs;
@@ -4932,7 +4946,7 @@ function Cn(e) {
4932
4946
  }
4933
4947
  return t > 0 ? t : 1;
4934
4948
  }
4935
- function wn(e, t, n, r) {
4949
+ function Tn(e, t, n, r) {
4936
4950
  if (r <= 0 || n <= 0) return {
4937
4951
  x: 0,
4938
4952
  width: 0
@@ -4943,18 +4957,18 @@ function wn(e, t, n, r) {
4943
4957
  width: a
4944
4958
  };
4945
4959
  }
4946
- function Tn(e, t) {
4960
+ function En(e, t) {
4947
4961
  if (t === 0 || e === 0) return "0%";
4948
4962
  let n = e / t * 100;
4949
4963
  return n < .1 ? "<0.1%" : n >= 100 ? "100%" : `${n < 1 ? n.toFixed(1) : Math.round(n)}%`;
4950
4964
  }
4951
- var En = 6, Dn = 80;
4952
- function On(e) {
4965
+ var Dn = 6, On = 80;
4966
+ function kn(e) {
4953
4967
  if (e <= 0) return 0;
4954
- let t = Math.floor(e / Dn) + 1;
4955
- return Math.max(2, Math.min(t, En));
4968
+ let t = Math.floor(e / On) + 1;
4969
+ return Math.max(2, Math.min(t, Dn));
4956
4970
  }
4957
- function kn(e, t = 5) {
4971
+ function An(e, t = 5) {
4958
4972
  if (e <= 0) return [0];
4959
4973
  if (t <= 1) return [0, e];
4960
4974
  let n = e / (t - 1);
@@ -4962,13 +4976,13 @@ function kn(e, t = 5) {
4962
4976
  }
4963
4977
  //#endregion
4964
4978
  //#region src/charts/TraceWaterfall/TraceWaterfall.tsx
4965
- var An = 280, jn = .45, Mn = 36, Nn = 20, Pn = 20, Fn = 4, $ = 12, In = 48, Ln = 32, Rn = 3, zn = {
4979
+ var jn = 280, Mn = .45, Nn = 36, Pn = 20, Fn = 20, In = 4, $ = 12, Ln = 48, Rn = 32, zn = 3, Bn = {
4966
4980
  internal: "INTERNAL",
4967
4981
  server: "SERVER",
4968
4982
  client: "CLIENT",
4969
4983
  producer: "PRODUCER",
4970
4984
  consumer: "CONSUMER"
4971
- }, Bn = [
4985
+ }, Vn = [
4972
4986
  "bg-chart-1",
4973
4987
  "bg-chart-2",
4974
4988
  "bg-chart-3",
@@ -4978,21 +4992,21 @@ var An = 280, jn = .45, Mn = 36, Nn = 20, Pn = 20, Fn = 4, $ = 12, In = 48, Ln =
4978
4992
  "bg-chart-7",
4979
4993
  "bg-chart-8"
4980
4994
  ];
4981
- function Vn(e) {
4995
+ function Hn(e) {
4982
4996
  let t = /* @__PURE__ */ new Map(), n = 0;
4983
- for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, Bn[n % Bn.length]), n++);
4997
+ for (let r of e) t.has(r.serviceName) || (t.set(r.serviceName, Vn[n % Vn.length]), n++);
4984
4998
  return t;
4985
4999
  }
4986
- var Hn = { error: "bg-destructive" }, Un = {
5000
+ var Un = { error: "bg-destructive" }, Wn = {
4987
5001
  ok: "success",
4988
5002
  error: "destructive",
4989
5003
  unset: "secondary"
4990
- }, Wn = {
5004
+ }, Gn = {
4991
5005
  ok: "OK",
4992
5006
  error: "Error",
4993
5007
  unset: "Unset"
4994
5008
  };
4995
- function Gn({ icon: e, label: t, children: n }) {
5009
+ function Kn({ icon: e, label: t, children: n }) {
4996
5010
  return /* @__PURE__ */ X("div", {
4997
5011
  className: "flex items-center justify-between gap-4",
4998
5012
  children: [/* @__PURE__ */ X("div", {
@@ -5004,7 +5018,7 @@ function Gn({ icon: e, label: t, children: n }) {
5004
5018
  })]
5005
5019
  });
5006
5020
  }
5007
- function Kn({ span: t, serviceColor: n, traceDurationNs: r }) {
5021
+ function qn({ span: t, serviceColor: n, traceDurationNs: r }) {
5008
5022
  return /* @__PURE__ */ X(J, { children: [
5009
5023
  /* @__PURE__ */ X("div", {
5010
5024
  className: "space-y-1 px-2.5 pt-2 pb-1.5",
@@ -5017,13 +5031,13 @@ function Kn({ span: t, serviceColor: n, traceDurationNs: r }) {
5017
5031
  }), /* @__PURE__ */ X("div", {
5018
5032
  className: "flex items-center gap-1.5 pl-[14px]",
5019
5033
  children: [/* @__PURE__ */ Y(O, {
5020
- variant: Un[t.status],
5034
+ variant: Wn[t.status],
5021
5035
  className: "h-4 text-[9px]",
5022
- children: Wn[t.status]
5036
+ children: Gn[t.status]
5023
5037
  }), /* @__PURE__ */ Y(O, {
5024
5038
  variant: "outline",
5025
5039
  className: "h-4 text-[9px]",
5026
- children: zn[t.kind]
5040
+ children: Bn[t.kind]
5027
5041
  })]
5028
5042
  })]
5029
5043
  }),
@@ -5031,25 +5045,25 @@ function Kn({ span: t, serviceColor: n, traceDurationNs: r }) {
5031
5045
  /* @__PURE__ */ X("div", {
5032
5046
  className: "space-y-1 px-2.5 py-1.5 text-[11px]",
5033
5047
  children: [
5034
- /* @__PURE__ */ Y(Gn, {
5048
+ /* @__PURE__ */ Y(Kn, {
5035
5049
  icon: ft,
5036
5050
  label: "Service",
5037
5051
  children: t.serviceName
5038
5052
  }),
5039
- /* @__PURE__ */ Y(Gn, {
5053
+ /* @__PURE__ */ Y(Kn, {
5040
5054
  icon: ut,
5041
5055
  label: "Duration",
5042
5056
  children: /* @__PURE__ */ Y("span", {
5043
5057
  className: "font-mono tabular-nums",
5044
- children: Sn(t.durationNs)
5058
+ children: Cn(t.durationNs)
5045
5059
  })
5046
5060
  }),
5047
- /* @__PURE__ */ Y(Gn, {
5061
+ /* @__PURE__ */ Y(Kn, {
5048
5062
  icon: ot,
5049
5063
  label: "% of trace",
5050
5064
  children: /* @__PURE__ */ Y("span", {
5051
5065
  className: "font-mono tabular-nums",
5052
- children: Tn(t.durationNs, r)
5066
+ children: En(t.durationNs, r)
5053
5067
  })
5054
5068
  })
5055
5069
  ]
@@ -5063,7 +5077,7 @@ function Kn({ span: t, serviceColor: n, traceDurationNs: r }) {
5063
5077
  })
5064
5078
  ] });
5065
5079
  }
5066
- function qn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
5080
+ function Jn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, children: i }) {
5067
5081
  return /* @__PURE__ */ X(V, {
5068
5082
  openDelay: 250,
5069
5083
  closeDelay: 0,
@@ -5075,7 +5089,7 @@ function qn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
5075
5089
  align: "start",
5076
5090
  sideOffset: 4,
5077
5091
  className: "w-56 p-0",
5078
- children: r ? r(e) : /* @__PURE__ */ Y(Kn, {
5092
+ children: r ? r(e) : /* @__PURE__ */ Y(qn, {
5079
5093
  span: e,
5080
5094
  serviceColor: t,
5081
5095
  traceDurationNs: n
@@ -5083,13 +5097,13 @@ function qn({ span: e, serviceColor: t, traceDurationNs: n, renderTooltip: r, ch
5083
5097
  })]
5084
5098
  });
5085
5099
  }
5086
- function Jn({ depth: e }) {
5100
+ function Yn({ depth: e }) {
5087
5101
  return e === 0 ? null : /* @__PURE__ */ Y("span", {
5088
5102
  className: "pointer-events-none relative shrink-0",
5089
- style: { width: e * Nn },
5103
+ style: { width: e * Pn },
5090
5104
  "aria-hidden": "true",
5091
5105
  children: Array.from({ length: e }, (t, n) => {
5092
- let r = n === e - 1, i = n * Nn + Nn / 2;
5106
+ let r = n === e - 1, i = n * Pn + Pn / 2;
5093
5107
  return r ? /* @__PURE__ */ Y("span", {
5094
5108
  className: "absolute top-0 border-l border-border/30",
5095
5109
  style: {
@@ -5098,7 +5112,7 @@ function Jn({ depth: e }) {
5098
5112
  },
5099
5113
  children: /* @__PURE__ */ Y("span", {
5100
5114
  className: "absolute bottom-0 left-0 border-b border-border/30",
5101
- style: { width: Nn / 2 - 2 }
5115
+ style: { width: Pn / 2 - 2 }
5102
5116
  })
5103
5117
  }, n) : /* @__PURE__ */ Y("span", {
5104
5118
  className: "absolute top-0 h-full border-l border-border/30",
@@ -5107,12 +5121,12 @@ function Jn({ depth: e }) {
5107
5121
  })
5108
5122
  });
5109
5123
  }
5110
- function Yn(e) {
5124
+ function Xn(e) {
5111
5125
  let t = /* @__PURE__ */ new Set(), n = new Set(e.map((e) => e.spanId));
5112
5126
  for (let r of e) r.parentSpanId && n.has(r.parentSpanId) && t.add(r.parentSpanId);
5113
5127
  return t;
5114
5128
  }
5115
- function Xn(e, t) {
5129
+ function Zn(e, t) {
5116
5130
  if (t.size === 0) return e;
5117
5131
  let n = /* @__PURE__ */ new Set();
5118
5132
  for (let r = 0; r < e.length; r++) {
@@ -5124,7 +5138,7 @@ function Xn(e, t) {
5124
5138
  }
5125
5139
  return e.filter((e) => !n.has(e.spanId));
5126
5140
  }
5127
- function Zn(e) {
5141
+ function Qn(e) {
5128
5142
  let t = /* @__PURE__ */ new Map(), n = [];
5129
5143
  for (let r = e.length - 1; r >= 0; r--) {
5130
5144
  let i = e[r].depth;
@@ -5134,11 +5148,11 @@ function Zn(e) {
5134
5148
  }
5135
5149
  return t;
5136
5150
  }
5137
- function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
5138
- let { x: h, width: g } = wn(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? Hn.error : a, v = Sn(t.durationNs), y = g >= 56, b = !y;
5151
+ function $n({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, serviceColor: a, selected: o, hasChildren: s, collapsed: c, collapsedCount: l, onSelect: u, onToggle: d, onHover: f, onLeave: p, renderTooltip: m }) {
5152
+ let { x: h, width: g } = Tn(t.startOffsetNs, t.durationNs, n, i), _ = t.status === "error" ? Un.error : a, v = Cn(t.durationNs), y = g >= 56, b = !y;
5139
5153
  return /* @__PURE__ */ X("div", {
5140
5154
  className: e("group flex w-full cursor-pointer transition-colors", o ? "bg-accent/50" : "hover:bg-muted/30"),
5141
- style: { height: Mn },
5155
+ style: { height: Nn },
5142
5156
  onClick: () => u?.(t),
5143
5157
  onKeyDown: (e) => {
5144
5158
  e.key === "Enter" || e.key === " " ? (e.preventDefault(), u?.(t)) : (e.key === "ArrowRight" && s && c || e.key === "ArrowLeft" && s && !c) && (e.preventDefault(), d?.(t.spanId));
@@ -5153,7 +5167,7 @@ function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5153
5167
  className: e("w-[3px] shrink-0 transition-colors", o ? "bg-primary" : "bg-transparent"),
5154
5168
  "aria-hidden": "true"
5155
5169
  }),
5156
- /* @__PURE__ */ Y(qn, {
5170
+ /* @__PURE__ */ Y(Jn, {
5157
5171
  span: t,
5158
5172
  serviceColor: a,
5159
5173
  traceDurationNs: n,
@@ -5162,7 +5176,7 @@ function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5162
5176
  className: "flex shrink-0 items-center gap-1 overflow-hidden border-r border-border/30 px-1.5",
5163
5177
  style: { width: r },
5164
5178
  children: [
5165
- /* @__PURE__ */ Y(Jn, { depth: t.depth }),
5179
+ /* @__PURE__ */ Y(Yn, { depth: t.depth }),
5166
5180
  s ? /* @__PURE__ */ Y("button", {
5167
5181
  type: "button",
5168
5182
  tabIndex: -1,
@@ -5203,7 +5217,7 @@ function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5203
5217
  className: "relative flex-1 overflow-hidden",
5204
5218
  style: {
5205
5219
  paddingLeft: $,
5206
- paddingRight: In
5220
+ paddingRight: Ln
5207
5221
  },
5208
5222
  "aria-label": `${t.name}: ${v}`,
5209
5223
  children: [
@@ -5212,8 +5226,8 @@ function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5212
5226
  style: {
5213
5227
  left: $ + h,
5214
5228
  width: Math.max(g, 3),
5215
- height: Pn,
5216
- borderRadius: Fn
5229
+ height: Fn,
5230
+ borderRadius: In
5217
5231
  }
5218
5232
  }),
5219
5233
  y && /* @__PURE__ */ Y("span", {
@@ -5234,14 +5248,14 @@ function Qn({ span: t, traceDurationNs: n, labelWidth: r, usableWidth: i, servic
5234
5248
  ]
5235
5249
  });
5236
5250
  }
5237
- function $n({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
5238
- let s = kn(e, On(n)), c = he().domain([0, e]).range([0, n]);
5251
+ function er({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible: r, isAllCollapsed: i, onExpandAll: a, onCollapseAll: o }) {
5252
+ let s = An(e, kn(n)), c = he().domain([0, e]).range([0, n]);
5239
5253
  return /* @__PURE__ */ X("div", {
5240
5254
  className: "flex shrink-0 items-end border-b border-border bg-muted/30",
5241
- style: { height: Ln },
5255
+ style: { height: Rn },
5242
5256
  children: [/* @__PURE__ */ X("div", {
5243
5257
  className: "flex shrink-0 items-center justify-between border-r border-border/30 px-3 pb-2",
5244
- style: { width: t + Rn },
5258
+ style: { width: t + zn },
5245
5259
  children: [/* @__PURE__ */ Y("span", {
5246
5260
  className: "truncate text-[11px] font-semibold tracking-wider text-muted-foreground uppercase",
5247
5261
  children: "Service & Operation"
@@ -5256,7 +5270,7 @@ function $n({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
5256
5270
  className: "relative flex-1 pb-2",
5257
5271
  style: {
5258
5272
  paddingLeft: $,
5259
- paddingRight: In
5273
+ paddingRight: Ln
5260
5274
  },
5261
5275
  children: s.map((e, t) => {
5262
5276
  let n = t === 0, r = t === s.length - 1;
@@ -5266,18 +5280,18 @@ function $n({ traceDurationNs: e, labelWidth: t, usableWidth: n, hasCollapsible:
5266
5280
  left: $ + c(e),
5267
5281
  transform: n ? "none" : r ? "translateX(-100%)" : "translateX(-50%)"
5268
5282
  },
5269
- children: Sn(e)
5283
+ children: Cn(e)
5270
5284
  }, e);
5271
5285
  })
5272
5286
  })]
5273
5287
  });
5274
5288
  }
5275
- function er({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
5276
- let i = kn(e, On(n)), a = he().domain([0, e]).range([0, n]), o = r * Mn;
5289
+ function tr({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r }) {
5290
+ let i = An(e, kn(n)), a = he().domain([0, e]).range([0, n]), o = r * Nn;
5277
5291
  return /* @__PURE__ */ Y("svg", {
5278
5292
  className: "pointer-events-none absolute top-0",
5279
5293
  style: {
5280
- left: t + Rn + $,
5294
+ left: t + zn + $,
5281
5295
  width: n,
5282
5296
  height: o
5283
5297
  },
@@ -5293,7 +5307,7 @@ function er({ traceDurationNs: e, labelWidth: t, usableWidth: n, rowCount: r })
5293
5307
  }, e))
5294
5308
  });
5295
5309
  }
5296
- var tr = [
5310
+ var nr = [
5297
5311
  {
5298
5312
  indent: 0,
5299
5313
  labelPct: 60,
@@ -5325,7 +5339,7 @@ var tr = [
5325
5339
  barPct: 65
5326
5340
  }
5327
5341
  ];
5328
- function nr({ ariaLabel: t, className: n, ...r }) {
5342
+ function rr({ ariaLabel: t, className: n, ...r }) {
5329
5343
  return /* @__PURE__ */ X("div", {
5330
5344
  role: "img",
5331
5345
  "aria-busy": "true",
@@ -5334,13 +5348,13 @@ function nr({ ariaLabel: t, className: n, ...r }) {
5334
5348
  ...r,
5335
5349
  children: [/* @__PURE__ */ Y("div", {
5336
5350
  className: "flex shrink-0 items-center border-b border-border bg-muted/30 px-3",
5337
- style: { height: Ln },
5351
+ style: { height: Rn },
5338
5352
  children: /* @__PURE__ */ Y(_, { className: "h-3 w-1/3 max-w-32" })
5339
5353
  }), /* @__PURE__ */ Y("div", {
5340
5354
  className: "flex-1",
5341
- children: tr.map((e, t) => /* @__PURE__ */ X("div", {
5355
+ children: nr.map((e, t) => /* @__PURE__ */ X("div", {
5342
5356
  className: "flex items-center gap-2 px-2",
5343
- style: { height: Mn },
5357
+ style: { height: Nn },
5344
5358
  children: [/* @__PURE__ */ X("div", {
5345
5359
  className: "flex shrink-0 items-center gap-1.5",
5346
5360
  style: { paddingLeft: e.indent * 12 },
@@ -5358,7 +5372,7 @@ function nr({ ariaLabel: t, className: n, ...r }) {
5358
5372
  className: "rounded-sm",
5359
5373
  style: {
5360
5374
  width: `${e.barPct}%`,
5361
- height: Pn
5375
+ height: Fn
5362
5376
  }
5363
5377
  })
5364
5378
  })]
@@ -5366,14 +5380,14 @@ function nr({ ariaLabel: t, className: n, ...r }) {
5366
5380
  })]
5367
5381
  });
5368
5382
  }
5369
- function rr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
5383
+ function ir({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHover: a, onSpanLeave: o, defaultCollapsed: s = !1, renderTooltip: c, ariaLabel: l = "Trace waterfall timeline", className: u, ...d }) {
5370
5384
  let f = h(n, t.length), [p, m] = U.useState({
5371
- labelWidth: An,
5385
+ labelWidth: jn,
5372
5386
  timelineWidth: 0
5373
- }), g = U.useRef(null), _ = U.useMemo(() => Yn(t), [t]), [y, b] = U.useState(() => s ? new Set(Yn(t)) : /* @__PURE__ */ new Set()), x = U.useCallback((e) => {
5387
+ }), g = U.useRef(null), _ = U.useMemo(() => Xn(t), [t]), [y, b] = U.useState(() => s ? new Set(Xn(t)) : /* @__PURE__ */ new Set()), x = U.useCallback((e) => {
5374
5388
  if (g.current &&= (g.current.disconnect(), null), e) {
5375
5389
  let t = new ResizeObserver(([e]) => {
5376
- let t = Math.round(e.contentRect.width), n = Math.min(An, Math.round(t * jn)), r = t - n - Rn - $ - In;
5390
+ let t = Math.round(e.contentRect.width), n = Math.min(jn, Math.round(t * Mn)), r = t - n - zn - $ - Ln;
5377
5391
  m({
5378
5392
  labelWidth: n,
5379
5393
  timelineWidth: Math.max(r, 0)
@@ -5381,13 +5395,13 @@ function rr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5381
5395
  });
5382
5396
  t.observe(e), g.current = t;
5383
5397
  }
5384
- }, []), S = U.useMemo(() => Cn(t), [t]), C = U.useMemo(() => Vn(t), [t]), w = U.useMemo(() => Zn(t), [t]), T = U.useMemo(() => Xn(t, y), [t, y]), E = U.useCallback((e) => {
5398
+ }, []), S = U.useMemo(() => wn(t), [t]), C = U.useMemo(() => Hn(t), [t]), w = U.useMemo(() => Qn(t), [t]), T = U.useMemo(() => Zn(t, y), [t, y]), E = U.useCallback((e) => {
5385
5399
  b((t) => {
5386
5400
  let n = new Set(t);
5387
5401
  return n.has(e) ? n.delete(e) : n.add(e), n;
5388
5402
  });
5389
5403
  }, []), D = U.useCallback(() => b(/* @__PURE__ */ new Set()), []), O = U.useCallback(() => b(new Set(_)), [_]), k = y.size > 0;
5390
- return f === "loading" ? /* @__PURE__ */ Y(nr, {
5404
+ return f === "loading" ? /* @__PURE__ */ Y(rr, {
5391
5405
  ariaLabel: l,
5392
5406
  className: u,
5393
5407
  ...d
@@ -5401,7 +5415,7 @@ function rr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5401
5415
  role: "treegrid",
5402
5416
  "aria-label": l,
5403
5417
  ...d,
5404
- children: [/* @__PURE__ */ Y($n, {
5418
+ children: [/* @__PURE__ */ Y(er, {
5405
5419
  traceDurationNs: S,
5406
5420
  labelWidth: p.labelWidth,
5407
5421
  usableWidth: p.timelineWidth,
@@ -5413,17 +5427,17 @@ function rr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5413
5427
  className: "min-h-0 flex-1",
5414
5428
  children: /* @__PURE__ */ X("div", {
5415
5429
  className: "relative",
5416
- children: [/* @__PURE__ */ Y(er, {
5430
+ children: [/* @__PURE__ */ Y(tr, {
5417
5431
  traceDurationNs: S,
5418
5432
  labelWidth: p.labelWidth,
5419
5433
  usableWidth: p.timelineWidth,
5420
5434
  rowCount: T.length
5421
- }), T.map((e) => /* @__PURE__ */ Y(Qn, {
5435
+ }), T.map((e) => /* @__PURE__ */ Y($n, {
5422
5436
  span: e,
5423
5437
  traceDurationNs: S,
5424
5438
  labelWidth: p.labelWidth,
5425
5439
  usableWidth: p.timelineWidth,
5426
- serviceColor: C.get(e.serviceName) ?? Bn[0],
5440
+ serviceColor: C.get(e.serviceName) ?? Vn[0],
5427
5441
  selected: e.spanId === r,
5428
5442
  hasChildren: _.has(e.spanId),
5429
5443
  collapsed: y.has(e.spanId),
@@ -5440,27 +5454,27 @@ function rr({ spans: t, state: n, selectedSpanId: r, onSpanSelect: i, onSpanHove
5440
5454
  }
5441
5455
  //#endregion
5442
5456
  //#region src/charts/BreakdownChart/BarMeter.tsx
5443
- var ir = {
5457
+ var ar = {
5444
5458
  positive: "text-success",
5445
5459
  negative: "text-destructive",
5446
5460
  neutral: "text-muted-foreground"
5447
5461
  };
5448
- function ar({ trend: t, sentiment: n }) {
5462
+ function or({ trend: t, sentiment: n }) {
5449
5463
  let r = t.direction === "down" ? Q : ct;
5450
5464
  return /* @__PURE__ */ X("span", {
5451
- className: e("inline-flex items-center gap-0.5 text-xs font-medium", ir[n]),
5465
+ className: e("inline-flex items-center gap-0.5 text-xs font-medium", ar[n]),
5452
5466
  children: [t.direction !== "neutral" && /* @__PURE__ */ Y(r, { className: "size-3 stroke-[2.5]" }), t.isNew ? "New" : `${t.value}%`]
5453
5467
  });
5454
5468
  }
5455
- function or({ rank: e }) {
5469
+ function sr({ rank: e }) {
5456
5470
  return /* @__PURE__ */ Y("span", {
5457
5471
  "aria-hidden": "true",
5458
5472
  className: "inline-flex h-5 min-w-5 shrink-0 items-center justify-center rounded-md bg-muted px-1 text-[11px] font-semibold text-muted-foreground tabular-nums",
5459
5473
  children: e
5460
5474
  });
5461
5475
  }
5462
- function sr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon: o, trend: s, trendSentiment: c = "higher-is-better", threshold: l, rank: u, compact: d = !1, animated: f = !0, highlighted: p = !1, dimmed: m = !1, interactive: h = !1, className: g, ..._ }) {
5463
- let v = Math.max(0, Math.min(1, r)), y = l === void 0 ? void 0 : Math.max(0, Math.min(1, l)), b = p ? `0 1px 8px -1px color-mix(in oklab, ${i} 55%, transparent)` : void 0, x = s ? Kt(s.direction, c) : void 0;
5476
+ function cr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon: o, trend: s, trendSentiment: c = "higher-is-better", threshold: l, rank: u, compact: d = !1, animated: f = !0, highlighted: p = !1, dimmed: m = !1, interactive: h = !1, className: g, ..._ }) {
5477
+ let v = Math.max(0, Math.min(1, r)), y = l === void 0 ? void 0 : Math.max(0, Math.min(1, l)), b = p ? `0 1px 8px -1px color-mix(in oklab, ${i} 55%, transparent)` : void 0, x = s ? qt(s.direction, c) : void 0;
5464
5478
  return /* @__PURE__ */ X("div", {
5465
5479
  "data-slot": "bar-meter",
5466
5480
  role: h ? "button" : void 0,
@@ -5476,7 +5490,7 @@ function sr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5476
5490
  children: [/* @__PURE__ */ X("span", {
5477
5491
  className: "flex min-w-0 items-center gap-2",
5478
5492
  children: [
5479
- u !== void 0 && /* @__PURE__ */ Y(or, { rank: u }),
5493
+ u !== void 0 && /* @__PURE__ */ Y(sr, { rank: u }),
5480
5494
  o && /* @__PURE__ */ Y(o, { className: e("size-4 shrink-0 transition-colors", p ? "text-foreground" : "text-muted-foreground") }),
5481
5495
  /* @__PURE__ */ Y("span", {
5482
5496
  className: e("truncate text-sm transition-colors", p ? "font-semibold text-foreground" : "font-medium text-foreground"),
@@ -5485,7 +5499,7 @@ function sr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5485
5499
  ]
5486
5500
  }), /* @__PURE__ */ X("span", {
5487
5501
  className: "flex shrink-0 items-center gap-2",
5488
- children: [s && x && /* @__PURE__ */ Y(ar, {
5502
+ children: [s && x && /* @__PURE__ */ Y(or, {
5489
5503
  trend: s,
5490
5504
  sentiment: x
5491
5505
  }), /* @__PURE__ */ Y("span", {
@@ -5523,9 +5537,9 @@ function sr({ label: t, formattedValue: n, ratio: r, color: i, detail: a, icon:
5523
5537
  }
5524
5538
  //#endregion
5525
5539
  //#region src/charts/BreakdownChart/BreakdownContext.tsx
5526
- var cr = U.createContext(null);
5527
- function lr() {
5528
- return U.useContext(cr) || {
5540
+ var lr = U.createContext(null);
5541
+ function ur() {
5542
+ return U.useContext(lr) || {
5529
5543
  tooltip: null,
5530
5544
  legend: null,
5531
5545
  summary: null,
@@ -5534,7 +5548,7 @@ function lr() {
5534
5548
  setSummary: () => void 0
5535
5549
  };
5536
5550
  }
5537
- function ur({ children: e }) {
5551
+ function dr({ children: e }) {
5538
5552
  let [t, n] = U.useState(null), [r, i] = U.useState(null), [a, o] = U.useState(null), s = U.useMemo(() => ({
5539
5553
  tooltip: t,
5540
5554
  legend: r,
@@ -5547,21 +5561,21 @@ function ur({ children: e }) {
5547
5561
  r,
5548
5562
  a
5549
5563
  ]);
5550
- return /* @__PURE__ */ Y(cr.Provider, {
5564
+ return /* @__PURE__ */ Y(lr.Provider, {
5551
5565
  value: s,
5552
5566
  children: e
5553
5567
  });
5554
5568
  }
5555
5569
  //#endregion
5556
5570
  //#region src/charts/BreakdownChart/BreakdownTooltip.tsx
5557
- function dr({ content: e }) {
5558
- let { setTooltip: t } = lr();
5571
+ function fr({ content: e }) {
5572
+ let { setTooltip: t } = ur();
5559
5573
  return U.useLayoutEffect(() => (t({ content: typeof e == "function" ? e : (t, n) => U.cloneElement(e, {
5560
5574
  item: t,
5561
5575
  meta: n
5562
5576
  }) }), () => t(null)), [e, t]), null;
5563
5577
  }
5564
- function fr({ pos: e, containerRef: t, children: n }) {
5578
+ function pr({ pos: e, containerRef: t, children: n }) {
5565
5579
  let r = U.useRef(null), [i, a] = U.useState({
5566
5580
  x: 0,
5567
5581
  y: 0,
@@ -5603,10 +5617,10 @@ function fr({ pos: e, containerRef: t, children: n }) {
5603
5617
  children: n
5604
5618
  }), document.body);
5605
5619
  }
5606
- function pr(e) {
5620
+ function mr(e) {
5607
5621
  return typeof e == "number" ? e.toLocaleString() : e;
5608
5622
  }
5609
- function mr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = pr, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
5623
+ function hr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator: o = !1, indicator: s = "dot", valueFormatter: c = mr, showTotal: l = !1, totalLabel: u = "Total", className: d, ...f }) {
5610
5624
  let p = i === void 0 && t !== void 0 && n !== void 0, m = r ?? t?.label, h = i ?? (p ? [{
5611
5625
  name: n.formattedValue,
5612
5626
  value: `${(n.ratio * 100).toFixed(1)}%`,
@@ -5660,7 +5674,7 @@ function mr({ item: t, meta: n, label: r, items: i, hideLabel: a, hideIndicator:
5660
5674
  }
5661
5675
  //#endregion
5662
5676
  //#region src/charts/BreakdownChart/BreakdownChart.tsx
5663
- function hr(e) {
5677
+ function gr(e) {
5664
5678
  let [t, n] = U.useState(!e);
5665
5679
  return U.useEffect(() => {
5666
5680
  if (!e) return;
@@ -5668,7 +5682,7 @@ function hr(e) {
5668
5682
  return () => cancelAnimationFrame(t);
5669
5683
  }, [e]), t;
5670
5684
  }
5671
- var gr = [
5685
+ var _r = [
5672
5686
  "var(--chart-1)",
5673
5687
  "var(--chart-2)",
5674
5688
  "var(--chart-3)",
@@ -5680,10 +5694,10 @@ var gr = [
5680
5694
  "var(--chart-9)",
5681
5695
  "var(--chart-10)"
5682
5696
  ];
5683
- function _r(e, t) {
5684
- return e.color ?? gr[t % gr.length];
5685
- }
5686
5697
  function vr(e, t) {
5698
+ return e.color ?? _r[t % _r.length];
5699
+ }
5700
+ function yr(e, t) {
5687
5701
  switch (t) {
5688
5702
  case "total": {
5689
5703
  let t = e.reduce((e, t) => e + t.value, 0);
@@ -5697,7 +5711,7 @@ function vr(e, t) {
5697
5711
  default: return t;
5698
5712
  }
5699
5713
  }
5700
- var yr = [
5714
+ var br = [
5701
5715
  .7,
5702
5716
  .45,
5703
5717
  .25,
@@ -5705,7 +5719,7 @@ var yr = [
5705
5719
  .35,
5706
5720
  .2
5707
5721
  ];
5708
- function br({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5722
+ function xr({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5709
5723
  return /* @__PURE__ */ Y("div", {
5710
5724
  role: "img",
5711
5725
  "aria-busy": "true",
@@ -5721,15 +5735,15 @@ function br({ rows: t = 3, compact: n = !1, className: r, ...i }) {
5721
5735
  }),
5722
5736
  /* @__PURE__ */ Y(_, {
5723
5737
  className: "h-2 rounded-full",
5724
- style: { width: `${yr[r % yr.length] * 100}%` }
5738
+ style: { width: `${br[r % br.length] * 100}%` }
5725
5739
  }),
5726
5740
  /* @__PURE__ */ Y(_, { className: "h-3 w-20" })
5727
5741
  ]
5728
5742
  }, r))
5729
5743
  });
5730
5744
  }
5731
- var xr = 12, Sr = -12;
5732
- function Cr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
5745
+ var Sr = 12, Cr = -12;
5746
+ function wr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey: a, highlightOnHover: o, interactive: s, legendSlot: c, onSegmentHover: l, onSegmentClick: u }) {
5733
5747
  let d = t.reduce((e, t) => e + t.value, 0);
5734
5748
  return /* @__PURE__ */ X("div", {
5735
5749
  className: "flex flex-col gap-3",
@@ -5744,7 +5758,7 @@ function Cr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5744
5758
  className: e("h-full ease-out", r ? "transition-[width,opacity] duration-700" : "transition-opacity duration-200", f === 0 && "rounded-l-full", f === t.length - 1 && "rounded-r-full", h && "opacity-55", m && o && "opacity-100", s && "cursor-pointer"),
5745
5759
  style: {
5746
5760
  width: i ? `${p}%` : "0%",
5747
- backgroundColor: _r(c, f)
5761
+ backgroundColor: vr(c, f)
5748
5762
  },
5749
5763
  onMouseEnter: () => l(c),
5750
5764
  onMouseLeave: () => l(null),
@@ -5762,7 +5776,7 @@ function Cr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5762
5776
  children: [
5763
5777
  /* @__PURE__ */ Y("span", {
5764
5778
  className: "inline-block size-2.5 shrink-0 rounded-full",
5765
- style: { backgroundColor: _r(e, t) },
5779
+ style: { backgroundColor: vr(e, t) },
5766
5780
  "aria-hidden": "true"
5767
5781
  }),
5768
5782
  /* @__PURE__ */ Y("span", {
@@ -5778,7 +5792,7 @@ function Cr({ items: t, formatValue: n, animated: r = !0, mounted: i, hoveredKey
5778
5792
  })]
5779
5793
  });
5780
5794
  }
5781
- function wr(e, t) {
5795
+ function Tr(e, t) {
5782
5796
  let [n, r] = U.useState(!1);
5783
5797
  return t === void 0 || e.length <= t ? {
5784
5798
  visibleItems: e,
@@ -5792,21 +5806,21 @@ function wr(e, t) {
5792
5806
  setExpanded: r
5793
5807
  };
5794
5808
  }
5795
- function Tr({ children: e, ...t }) {
5796
- return /* @__PURE__ */ X(ur, { children: [e, /* @__PURE__ */ Y(Er, { ...t })] });
5809
+ function Er({ children: e, ...t }) {
5810
+ return /* @__PURE__ */ X(dr, { children: [e, /* @__PURE__ */ Y(Dr, { ...t })] });
5797
5811
  }
5798
- function Er({ items: t, variant: n = "list", ratioMode: r = "total", formatValue: i, trendSentiment: a = "higher-is-better", sortByValue: o, showRank: s = !1, summary: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f = !0, state: p, skeletonRows: m = 3, ariaLabel: h = "Breakdown chart", onItemClick: g, onItemHover: _, className: y, ...b }) {
5799
- let { tooltip: x, legend: S, summary: C } = lr(), w = p ?? (t.length === 0 ? "empty" : "ready"), [T, E] = U.useState(null), D = g !== void 0, O = hr(u), k = U.useRef(null), [A, j] = U.useState(null), M = U.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = U.useMemo(() => vr(M, r), [M, r]), P = U.useCallback((e) => {
5812
+ function Dr({ items: t, variant: n = "list", ratioMode: r = "total", formatValue: i, trendSentiment: a = "higher-is-better", sortByValue: o, showRank: s = !1, summary: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f = !0, state: p, skeletonRows: m = 3, ariaLabel: h = "Breakdown chart", onItemClick: g, onItemHover: _, className: y, ...b }) {
5813
+ let { tooltip: x, legend: S, summary: C } = ur(), w = p ?? (t.length === 0 ? "empty" : "ready"), [T, E] = U.useState(null), D = g !== void 0, O = gr(u), k = U.useRef(null), [A, j] = U.useState(null), M = U.useMemo(() => o ? [...t].sort((e, t) => o === "asc" ? e.value - t.value : t.value - e.value) : t, [t, o]), N = U.useMemo(() => yr(M, r), [M, r]), P = U.useCallback((e) => {
5800
5814
  E(e?.key ?? null), e || j(null), _?.(e);
5801
5815
  }, [_]), F = U.useCallback((e) => {
5802
5816
  if (!x || !k.current) return;
5803
5817
  let t = k.current.getBoundingClientRect();
5804
5818
  j({
5805
- x: e.clientX - t.left + xr,
5806
- y: e.clientY - t.top + Sr
5819
+ x: e.clientX - t.left + Sr,
5820
+ y: e.clientY - t.top + Cr
5807
5821
  });
5808
5822
  }, [x]);
5809
- if (w === "loading") return /* @__PURE__ */ Y(br, {
5823
+ if (w === "loading") return /* @__PURE__ */ Y(xr, {
5810
5824
  rows: m,
5811
5825
  compact: d,
5812
5826
  className: y,
@@ -5818,11 +5832,11 @@ function Er({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5818
5832
  children: /* @__PURE__ */ Y(v, { ariaLabel: h })
5819
5833
  });
5820
5834
  let I = T ? M.findIndex((e) => e.key === T) : -1, L = I >= 0 ? M[I] : null, R = L ? {
5821
- color: _r(L, I),
5835
+ color: vr(L, I),
5822
5836
  index: I,
5823
5837
  ratio: N[I],
5824
5838
  formattedValue: i ? i(L.value) : String(L.value)
5825
- } : null, z = x && L && R && A ? /* @__PURE__ */ Y(fr, {
5839
+ } : null, z = x && L && R && A ? /* @__PURE__ */ Y(pr, {
5826
5840
  pos: A,
5827
5841
  containerRef: k,
5828
5842
  children: x.content(L, R)
@@ -5834,7 +5848,7 @@ function Er({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5834
5848
  onMouseMove: F,
5835
5849
  ...b,
5836
5850
  ref: k,
5837
- children: [/* @__PURE__ */ Y(Cr, {
5851
+ children: [/* @__PURE__ */ Y(wr, {
5838
5852
  items: M,
5839
5853
  formatValue: i,
5840
5854
  animated: u,
@@ -5846,7 +5860,7 @@ function Er({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5846
5860
  onSegmentHover: P,
5847
5861
  onSegmentClick: g
5848
5862
  }), z]
5849
- }) : /* @__PURE__ */ Y(Dr, {
5863
+ }) : /* @__PURE__ */ Y(Or, {
5850
5864
  containerRef: k,
5851
5865
  items: M,
5852
5866
  ratios: N,
@@ -5871,8 +5885,8 @@ function Er({ items: t, variant: n = "list", ratioMode: r = "total", formatValue
5871
5885
  ...b
5872
5886
  });
5873
5887
  }
5874
- function Dr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentiment: a = "higher-is-better", showRank: o = !1, summary: s, summarySlot: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f, mounted: p, ariaLabel: m = "Breakdown chart", hoveredKey: h, interactive: g, onItemHover: _, onItemClick: v, tooltipPortal: y, className: b, ...x }) {
5875
- let { visibleItems: S, collapsedCount: C, setExpanded: w } = wr(n, l);
5888
+ function Or({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentiment: a = "higher-is-better", showRank: o = !1, summary: s, summarySlot: c, maxItems: l, animated: u = !0, compact: d = !1, highlightOnHover: f, mounted: p, ariaLabel: m = "Breakdown chart", hoveredKey: h, interactive: g, onItemHover: _, onItemClick: v, tooltipPortal: y, className: b, ...x }) {
5889
+ let { visibleItems: S, collapsedCount: C, setExpanded: w } = Tr(n, l);
5876
5890
  return /* @__PURE__ */ X("div", {
5877
5891
  role: "group",
5878
5892
  "aria-label": m,
@@ -5880,11 +5894,11 @@ function Dr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
5880
5894
  ...x,
5881
5895
  ref: t,
5882
5896
  children: [
5883
- S.map((e, t) => /* @__PURE__ */ Y(sr, {
5897
+ S.map((e, t) => /* @__PURE__ */ Y(cr, {
5884
5898
  label: e.label,
5885
5899
  formattedValue: i ? i(e.value) : String(e.value),
5886
5900
  ratio: p ? r[t] : 0,
5887
- color: _r(e, t),
5901
+ color: vr(e, t),
5888
5902
  detail: e.detail,
5889
5903
  icon: e.icon,
5890
5904
  trend: e.trend,
@@ -5927,11 +5941,11 @@ function Dr({ containerRef: t, items: n, ratios: r, formatValue: i, trendSentime
5927
5941
  }
5928
5942
  //#endregion
5929
5943
  //#region src/charts/BreakdownChart/BreakdownLegend.tsx
5930
- function Or({ children: e }) {
5931
- let { setLegend: t } = lr();
5944
+ function kr({ children: e }) {
5945
+ let { setLegend: t } = ur();
5932
5946
  return U.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5933
5947
  }
5934
- function kr({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5948
+ function Ar({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5935
5949
  return /* @__PURE__ */ Y("div", {
5936
5950
  className: e("flex flex-wrap items-center gap-x-4 gap-y-1", i),
5937
5951
  ...a,
@@ -5957,13 +5971,13 @@ function kr({ items: t, colors: n, formatValue: r, className: i, ...a }) {
5957
5971
  }
5958
5972
  //#endregion
5959
5973
  //#region src/charts/BreakdownChart/BreakdownSummary.tsx
5960
- function Ar({ children: e }) {
5961
- let { setSummary: t } = lr();
5974
+ function jr({ children: e }) {
5975
+ let { setSummary: t } = ur();
5962
5976
  return U.useLayoutEffect(() => (t(e), () => t(null)), [e, t]), null;
5963
5977
  }
5964
5978
  //#endregion
5965
5979
  //#region src/charts/FilterCombobox/DataTypeIcon.tsx
5966
- function jr({ icon: t, tooltipContent: n, colorClass: r }) {
5980
+ function Mr({ icon: t, tooltipContent: n, colorClass: r }) {
5967
5981
  return /* @__PURE__ */ X(ie, { children: [/* @__PURE__ */ Y(se, {
5968
5982
  asChild: !0,
5969
5983
  children: /* @__PURE__ */ Y("span", {
@@ -5977,10 +5991,10 @@ function jr({ icon: t, tooltipContent: n, colorClass: r }) {
5977
5991
  }
5978
5992
  //#endregion
5979
5993
  //#region src/charts/FilterCombobox/DataTypeIcons.tsx
5980
- function Mr({ dataTypes: e }) {
5994
+ function Nr({ dataTypes: e }) {
5981
5995
  return e.length === 0 ? null : /* @__PURE__ */ Y("span", {
5982
5996
  className: "ml-2 flex shrink-0 items-center",
5983
- children: e.map((e) => /* @__PURE__ */ Y(jr, {
5997
+ children: e.map((e) => /* @__PURE__ */ Y(Mr, {
5984
5998
  icon: e.icon,
5985
5999
  tooltipContent: e.tooltipContent,
5986
6000
  colorClass: e.colorClass
@@ -5989,19 +6003,19 @@ function Mr({ dataTypes: e }) {
5989
6003
  }
5990
6004
  //#endregion
5991
6005
  //#region src/charts/FilterCombobox/filter-combobox-options.ts
5992
- function Nr(e, t) {
6006
+ function Pr(e, t) {
5993
6007
  return `${e}-${t}`;
5994
6008
  }
5995
- function Pr(e) {
6009
+ function Fr(e) {
5996
6010
  return e;
5997
6011
  }
5998
- function Fr(e, t) {
6012
+ function Ir(e, t) {
5999
6013
  return `${e}-option-${t}`;
6000
6014
  }
6001
- function Ir(e, t, n, r) {
6015
+ function Lr(e, t, n, r) {
6002
6016
  if (!e) return t.map((e) => ({
6003
6017
  item: e,
6004
- optionValue: Pr(e.id)
6018
+ optionValue: Fr(e.id)
6005
6019
  }));
6006
6020
  let i = [];
6007
6021
  for (let e of n) {
@@ -6009,30 +6023,30 @@ function Ir(e, t, n, r) {
6009
6023
  let n = t.filter((t) => t.scopes.includes(e.id));
6010
6024
  for (let t of n) i.push({
6011
6025
  item: t,
6012
- optionValue: Nr(e.id, t.id)
6026
+ optionValue: Pr(e.id, t.id)
6013
6027
  });
6014
6028
  }
6015
6029
  return i;
6016
6030
  }
6017
- function Lr(e, t, n) {
6031
+ function Rr(e, t, n) {
6018
6032
  if (e.length === 0) return;
6019
6033
  let r = t ? e.findIndex((e) => e.optionValue === t) : -1;
6020
6034
  return r === -1 ? n === "next" ? e[0].optionValue : e[e.length - 1].optionValue : n === "next" ? e[r < e.length - 1 ? r + 1 : 0].optionValue : e[r > 0 ? r - 1 : e.length - 1].optionValue;
6021
6035
  }
6022
- function Rr(e, t) {
6036
+ function zr(e, t) {
6023
6037
  if (t) return e.some((e) => e.optionValue === t) ? t : void 0;
6024
6038
  }
6025
6039
  //#endregion
6026
6040
  //#region src/charts/FilterCombobox/resolve-item-data-types.ts
6027
- function zr(e) {
6041
+ function Br(e) {
6028
6042
  return e.dataTypeIds ?? [];
6029
6043
  }
6030
- function Br(e, t) {
6031
- return Array.from(new Set(zr(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
6044
+ function Vr(e, t) {
6045
+ return Array.from(new Set(Br(e))).map((e) => t.find((t) => t.id === e)).filter((e) => e !== void 0);
6032
6046
  }
6033
6047
  //#endregion
6034
6048
  //#region src/charts/FilterCombobox/FilterGroupedList.tsx
6035
- function Vr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScope: a, onSelect: o, onHighlightOption: s }) {
6049
+ function Hr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScope: a, onSelect: o, onHighlightOption: s }) {
6036
6050
  return /* @__PURE__ */ Y(J, { children: t.map((t) => {
6037
6051
  let c = r.filter((e) => e.scopes.includes(t.id));
6038
6052
  if (c.length === 0) return null;
@@ -6063,7 +6077,7 @@ function Vr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScop
6063
6077
  }), /* @__PURE__ */ Y(F, { children: /* @__PURE__ */ Y(z, {
6064
6078
  className: "mt-1 ml-3 pl-1",
6065
6079
  children: (i[t.id] ?? !0) && c.map((e) => {
6066
- let r = Br(e, n), i = Nr(t.id, e.id);
6080
+ let r = Vr(e, n), i = Pr(t.id, e.id);
6067
6081
  return /* @__PURE__ */ X(ee, {
6068
6082
  "data-filter-option-value": i,
6069
6083
  value: i,
@@ -6073,7 +6087,7 @@ function Vr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScop
6073
6087
  children: [/* @__PURE__ */ Y("span", {
6074
6088
  className: "min-w-0 flex-1 truncate font-medium text-foreground",
6075
6089
  children: e.name
6076
- }), /* @__PURE__ */ Y(Mr, { dataTypes: r })]
6090
+ }), /* @__PURE__ */ Y(Nr, { dataTypes: r })]
6077
6091
  }, `${t.id}-${e.id}`);
6078
6092
  })
6079
6093
  }) })]
@@ -6082,12 +6096,12 @@ function Vr({ scopes: t, dataTypes: n, items: r, expandedScopes: i, onToggleScop
6082
6096
  }
6083
6097
  //#endregion
6084
6098
  //#region src/charts/FilterCombobox/HighlightMatch.tsx
6085
- function Hr(e) {
6099
+ function Ur(e) {
6086
6100
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
6087
6101
  }
6088
- function Ur(e, t) {
6102
+ function Wr(e, t) {
6089
6103
  if (!t.trim()) return [e];
6090
- let n = Hr(t);
6104
+ let n = Ur(t);
6091
6105
  return e.split(RegExp(`(${n})`, "gi")).map((e, n) => e.toLowerCase() === t.toLowerCase() ? /* @__PURE__ */ Y("mark", {
6092
6106
  className: "rounded-sm bg-warning/10 text-warning-foreground",
6093
6107
  children: e
@@ -6095,12 +6109,12 @@ function Ur(e, t) {
6095
6109
  }
6096
6110
  //#endregion
6097
6111
  //#region src/charts/FilterCombobox/FilterSearchList.tsx
6098
- function Wr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a, onHighlightOption: o }) {
6112
+ function Gr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a, onHighlightOption: o }) {
6099
6113
  return /* @__PURE__ */ Y(z, {
6100
6114
  heading: `Results (${r.length})`,
6101
6115
  className: "mt-1",
6102
6116
  children: r.map((r) => {
6103
- let s = Br(r, n), c = Pr(r.id);
6117
+ let s = Vr(r, n), c = Fr(r.id);
6104
6118
  return /* @__PURE__ */ X(ee, {
6105
6119
  "data-filter-option-value": c,
6106
6120
  value: c,
@@ -6111,7 +6125,7 @@ function Wr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a, on
6111
6125
  className: "flex min-w-0 flex-1 flex-col gap-1.5 overflow-hidden",
6112
6126
  children: [/* @__PURE__ */ Y("span", {
6113
6127
  className: "truncate text-sm font-medium text-foreground",
6114
- children: Ur(r.name, i)
6128
+ children: Wr(r.name, i)
6115
6129
  }), /* @__PURE__ */ Y("div", {
6116
6130
  className: "flex flex-wrap items-center gap-1.5",
6117
6131
  children: r.scopes.map((n) => {
@@ -6125,14 +6139,14 @@ function Wr({ scopes: t, dataTypes: n, items: r, searchQuery: i, onSelect: a, on
6125
6139
  }, n);
6126
6140
  })
6127
6141
  })]
6128
- }), /* @__PURE__ */ Y(Mr, { dataTypes: s })]
6142
+ }), /* @__PURE__ */ Y(Nr, { dataTypes: s })]
6129
6143
  }, r.id);
6130
6144
  })
6131
6145
  });
6132
6146
  }
6133
6147
  //#endregion
6134
6148
  //#region src/charts/FilterCombobox/use-filter-combobox.ts
6135
- function Gr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o }) {
6149
+ function Kr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open: a, onOpenChange: o }) {
6136
6150
  let s = K(), c = me(null), l = me(null), u = me(null), d = me(!1), f = a !== void 0, p = r !== void 0, [m, h] = q(!1), [g, _] = q(null), [v, y] = q(""), [b, x] = q(void 0), S = f ? a : m, C = p ? r : g, w = G((e) => {
6137
6151
  f ? o?.(e) : h(e);
6138
6152
  }, [f, o]), T = G((e) => {
@@ -6145,15 +6159,15 @@ function Gr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
6145
6159
  }, []), k = pe(() => {
6146
6160
  let t = v.trim().toLowerCase();
6147
6161
  return t ? e.filter((e) => e.name.toLowerCase().includes(t) || e.id.toLowerCase().includes(t)) : e;
6148
- }, [e, v]), A = v.trim() === "", j = pe(() => Ir(A, k, t, E), [
6162
+ }, [e, v]), A = v.trim() === "", j = pe(() => Lr(A, k, t, E), [
6149
6163
  A,
6150
6164
  k,
6151
6165
  t,
6152
6166
  E
6153
- ]), M = pe(() => Rr(j, b), [j, b]), N = M ? Fr(s, M) : void 0, P = G(() => {
6167
+ ]), M = pe(() => zr(j, b), [j, b]), N = M ? Ir(s, M) : void 0, P = G(() => {
6154
6168
  x(void 0);
6155
6169
  }, []), F = G((e) => {
6156
- x((t) => Lr(j, t, e));
6170
+ x((t) => Rr(j, t, e));
6157
6171
  }, [j]), I = G((e) => {
6158
6172
  d.current = !1, u.current = e, T(e), y(e.name), P(), w(!1), n(e);
6159
6173
  }, [
@@ -6223,7 +6237,7 @@ function Gr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
6223
6237
  }
6224
6238
  return document.addEventListener("mousedown", e), () => document.removeEventListener("mousedown", e);
6225
6239
  }, [P, w]), de(() => {
6226
- !S || !M || document.getElementById(Fr(s, M))?.scrollIntoView({ block: "nearest" });
6240
+ !S || !M || document.getElementById(Ir(s, M))?.scrollIntoView({ block: "nearest" });
6227
6241
  }, [
6228
6242
  M,
6229
6243
  S,
@@ -6236,7 +6250,7 @@ function Gr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
6236
6250
  for (let e of t) {
6237
6251
  if (!(e instanceof HTMLElement)) continue;
6238
6252
  let t = e.getAttribute("data-filter-option-value");
6239
- t && (e.id = Fr(s, t));
6253
+ t && (e.id = Ir(s, t));
6240
6254
  }
6241
6255
  }, [
6242
6256
  S,
@@ -6270,8 +6284,8 @@ function Gr({ items: e, scopes: t, onSelect: n, value: r, onValueChange: i, open
6270
6284
  }
6271
6285
  //#endregion
6272
6286
  //#region src/charts/FilterCombobox/FilterCombobox.tsx
6273
- function Kr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "Search a property...", emptyMessage: a = "No results found.", listLabel: o = "Filter options", inputId: s, value: c, onValueChange: l, open: u, onOpenChange: d }) {
6274
- let { listboxId: f, containerRef: p, inputRef: m, isOpen: h, isIdle: g, inputValue: _, highlightedOptionValue: v, activeDescendantId: y, expandedScopes: b, filteredItems: x, toggleScope: S, handleSelect: C, handleClear: w, handleInputChange: T, handleClick: E, handleHighlightOption: D, handleFocus: O, handleKeyDown: k } = Gr({
6287
+ function qr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "Search a property...", emptyMessage: a = "No results found.", listLabel: o = "Filter options", inputId: s, value: c, onValueChange: l, open: u, onOpenChange: d }) {
6288
+ let { listboxId: f, containerRef: p, inputRef: m, isOpen: h, isIdle: g, inputValue: _, highlightedOptionValue: v, activeDescendantId: y, expandedScopes: b, filteredItems: x, toggleScope: S, handleSelect: C, handleClear: w, handleInputChange: T, handleClick: E, handleHighlightOption: D, handleFocus: O, handleKeyDown: k } = Kr({
6275
6289
  items: n,
6276
6290
  scopes: e,
6277
6291
  onSelect: r,
@@ -6334,7 +6348,7 @@ function Kr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "
6334
6348
  className: "text-xs",
6335
6349
  children: a
6336
6350
  })]
6337
- }) }), g ? /* @__PURE__ */ Y(Vr, {
6351
+ }) }), g ? /* @__PURE__ */ Y(Hr, {
6338
6352
  scopes: e,
6339
6353
  dataTypes: t,
6340
6354
  items: x,
@@ -6342,7 +6356,7 @@ function Kr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "
6342
6356
  onToggleScope: S,
6343
6357
  onSelect: C,
6344
6358
  onHighlightOption: D
6345
- }) : /* @__PURE__ */ Y(Wr, {
6359
+ }) : /* @__PURE__ */ Y(Gr, {
6346
6360
  scopes: e,
6347
6361
  dataTypes: t,
6348
6362
  items: x,
@@ -6357,4 +6371,4 @@ function Kr({ scopes: e, dataTypes: t, items: n, onSelect: r, placeholder: i = "
6357
6371
  });
6358
6372
  }
6359
6373
  //#endregion
6360
- export { xn as AreaChart, Ve as AreaSeries, We as BarChart, sr as BarMeter, ze as BarSeries, Tr as BreakdownChart, br as BreakdownChartSkeleton, Or as BreakdownLegend, kr as BreakdownLegendContent, Ar as BreakdownSummary, dr as BreakdownTooltip, mr as BreakdownTooltipContent, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, we as ChartCard, E as ChartContainer, Pe as ChartLegend, Ne as ChartLegendContent, i as ChartStyle, je as ChartTooltip, Ae as ChartTooltipContent, r as DEFAULT_MARGIN, Ye as DoughnutChart, Kr as FilterCombobox, o as Grid, bn as LineChart, Le as LineSeries, nn as Metric, yn as MetricGroup, f as ReferenceLine, rr as TraceWaterfall, p as ValueAxis, p as YAxis, kn as buildTimeAxisTicks, e as cn, n as compactTick, wn as computeBarGeometry, Cn as computeTraceDurationNs, Sn as formatDurationNs, Tn as formatTracePercent, Kt as resolveSentiment, t as useChartConfig };
6374
+ export { Sn as AreaChart, Ve as AreaSeries, We as BarChart, cr as BarMeter, ze as BarSeries, Er as BreakdownChart, xr as BreakdownChartSkeleton, kr as BreakdownLegend, Ar as BreakdownLegendContent, jr as BreakdownSummary, fr as BreakdownTooltip, hr as BreakdownTooltipContent, a as CHART_THEMES, m as CartesianChart, g as CategoryAxis, g as XAxis, we as ChartCard, E as ChartContainer, Pe as ChartLegend, Ne as ChartLegendContent, i as ChartStyle, je as ChartTooltip, Ae as ChartTooltipContent, r as DEFAULT_MARGIN, Ye as DoughnutChart, qr as FilterCombobox, o as Grid, xn as LineChart, Le as LineSeries, rn as Metric, bn as MetricGroup, f as ReferenceLine, ir as TraceWaterfall, p as ValueAxis, p as YAxis, An as buildTimeAxisTicks, e as cn, n as compactTick, Tn as computeBarGeometry, wn as computeTraceDurationNs, Cn as formatDurationNs, En as formatTracePercent, qt as resolveSentiment, t as useChartConfig };