@overdoser/react-toolkit 0.9.0 → 0.10.1

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.
@@ -1,305 +1,330 @@
1
1
  import { jsx as n, jsxs as r, Fragment as R } from "react/jsx-runtime";
2
- import { forwardRef as Ht, useRef as M, useState as x, useCallback as le, useEffect as Et, useLayoutEffect as Pt, useMemo as Bt } from "react";
2
+ import { forwardRef as $t, useRef as x, useState as N, useCallback as _, useEffect as Ft, useLayoutEffect as jt, useMemo as zt } from "react";
3
3
  import c from "clsx";
4
- import a from "./Timeline.module.scss.js";
5
- import l from "./TraceTimeline.module.scss.js";
6
- import { fmtDateISO as Re, fmtISO as I, ticks as Dt, fmtClockUTC as Je, TL_COLORS as v, fmtDur as se, eventMatches as It, tint as H, TIMELINE_PALETTE_VARS as Qe } from "./timelineCore.js";
7
- import { traceChipWidth as qt, layoutTraceBand as Wt } from "./traceLayout.js";
8
- import { TimelineSummary as Ot, TimelineZoomControls as At, TimelineLegend as Vt, HighlightText as Ut, TimelineTooltip as Xt } from "./TimelineShared.js";
9
- import { useNowTicker as $t, useContainerWidth as Ft, useTimelinePan as Kt, useWheelZoom as jt, animateScrollTo as zt } from "./useTimeline.js";
10
- const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
11
- function(tt, nt) {
4
+ import i from "./Timeline.module.scss.js";
5
+ import s from "./TraceTimeline.module.scss.js";
6
+ import { fmtDateISO as de, fmtClockUTC as Y, fmtISO as I, ticks as Zt, tickSubdiv as _t, TL_COLORS as w, fmtDur as ue, eventMatches as Yt, tint as H, TIMELINE_PALETTE_VARS as ot } from "./timelineCore.js";
7
+ import { traceChipWidth as Gt, layoutTraceBand as Jt } from "./traceLayout.js";
8
+ import { TimelineSummary as Qt, TimelineZoomControls as en, TimelineLegend as tn, HighlightText as nn, TimelineTooltip as sn } from "./TimelineShared.js";
9
+ import { useNowTicker as ln, useContainerWidth as an, useTimelinePan as rn, useWheelZoom as cn, animateScrollTo as on } from "./useTimeline.js";
10
+ const p = 84, dt = 24, q = 400, dn = 51, me = 300, yn = $t(
11
+ function(ut, mt) {
12
12
  const {
13
- events: d,
14
- title: ie,
15
- meta: re,
16
- highlight: ce,
17
- defaultHighlight: lt,
18
- onHighlightChange: st,
19
- showSearch: at = !0,
20
- renderSearch: He,
21
- services: Ee,
22
- serviceColors: it,
23
- compactRows: rt = !1,
24
- showGridlines: ct = !0,
25
- showControls: Pe = !0,
26
- showLegend: ot = !0,
27
- showSummary: K = !1,
13
+ events: u,
14
+ title: he,
15
+ meta: pe,
16
+ highlight: fe,
17
+ defaultHighlight: ht,
18
+ onHighlightChange: pt,
19
+ showSearch: ft = !0,
20
+ renderSearch: Ve,
21
+ services: Ue,
22
+ serviceColors: vt,
23
+ compactRows: gt = !1,
24
+ showGridlines: Nt = !0,
25
+ showControls: Ke = !0,
26
+ showLegend: wt = !0,
27
+ showSummary: G = !1,
28
28
  summaryPlacement: E = "left",
29
- summaryDefaultPosition: dt,
30
- maxHeight: ut = "80vh",
31
- selectedEventId: oe,
32
- defaultSelectedEventId: ht = null,
33
- onEventSelect: mt,
34
- renderChip: Be,
35
- renderTooltip: de,
36
- renderDetails: ue,
37
- classes: h,
38
- className: pt,
39
- style: ft
40
- } = tt, m = M(null), [De, Ie] = x(null), [qe, We] = x(!0), [p, he] = x(null), [vt, Oe] = x(null), [T, me] = x(null), [q, Ae] = x(null), [gt, Nt] = x(null), [yt, wt] = x(ht), P = oe !== void 0 ? oe : yt, [j, xt] = x({ l: 0, w: 0 }), Ve = M(K);
41
- Ve.current = K;
42
- const pe = le(() => {
43
- const e = m.current;
44
- e && xt(
29
+ summaryDefaultPosition: xt,
30
+ maxHeight: yt = "80vh",
31
+ selectedEventId: ve,
32
+ defaultSelectedEventId: bt = null,
33
+ onEventSelect: Mt,
34
+ renderChip: Xe,
35
+ renderTooltip: ge,
36
+ renderDetails: Ne,
37
+ classes: m,
38
+ className: Tt,
39
+ style: St
40
+ } = ut, h = x(null), [$e, Fe] = N(null), [je, ze] = N(!0), [f, we] = N(null), [Lt, Ze] = N(null), [S, xe] = N(null), [O, _e] = N(null), [kt, Ct] = N(null), [Rt, Ht] = N(null), Ye = x(!1), [Et, Pt] = N(bt), P = ve !== void 0 ? ve : Et, [J, Dt] = N({ l: 0, w: 0 }), Ge = x(G);
41
+ Ge.current = G;
42
+ const ye = _(() => {
43
+ const e = h.current;
44
+ e && Dt(
45
45
  (t) => t.l === e.scrollLeft && t.w === e.clientWidth ? t : { l: e.scrollLeft, w: e.clientWidth }
46
46
  );
47
47
  }, []);
48
- Et(() => {
49
- K && pe();
48
+ Ft(() => {
49
+ G && ye();
50
50
  });
51
- const Ue = d.some((e) => e.end == null), b = $t(Ue, 400), fe = Ft(m), W = Kt(m), [bt, Mt] = x(lt ?? ""), ve = ce !== void 0 ? ce : bt, L = ve.trim(), Xe = (e) => {
52
- ce === void 0 && Mt(e), st?.(e);
53
- }, $e = He ? He({ value: ve, setValue: Xe }) : at ? /* @__PURE__ */ n(
51
+ const [A, Bt] = N({ l: 0, w: 2e3 }), be = x(A);
52
+ be.current = A;
53
+ const Me = _(() => {
54
+ const e = h.current;
55
+ if (!e) return;
56
+ const t = Math.floor(e.scrollLeft / q) * q, l = (Math.ceil((e.clientWidth || 1600) / q) + 1) * q;
57
+ (t !== be.current.l || l !== be.current.w) && Bt({ l: t, w: l });
58
+ }, []), Je = u.some((e) => e.end == null), M = ln(Je, 400), Te = an(h), V = rn(h), [Wt, It] = N(ht ?? ""), Se = fe !== void 0 ? fe : Wt, L = Se.trim(), Qe = (e) => {
59
+ fe === void 0 && It(e), pt?.(e);
60
+ }, et = Ve ? Ve({ value: Se, setValue: Qe }) : ft ? /* @__PURE__ */ n(
54
61
  "input",
55
62
  {
56
- className: c(a.searchInput, h?.search),
63
+ className: c(i.searchInput, m?.search),
57
64
  placeholder: "Highlight keyword in events…",
58
65
  "aria-label": "Highlight keyword",
59
- value: ve,
60
- onChange: (e) => Xe(e.target.value)
66
+ value: Se,
67
+ onChange: (e) => Qe(e.target.value)
61
68
  }
62
- ) : null, O = (e) => e.op || e.requestId || e.reqHeaders && e.reqHeaders["x-request-id"] || e.id, z = (e) => e.source || "client";
63
- let u, k;
64
- d.length ? (u = Math.min(...d.map((e) => e.start)), k = Math.max(u + 1e3, ...d.map((e) => e.end ?? b))) : (u = b - 3e4, k = b + 5e3);
65
- const ge = (k - u) * 0.03;
66
- u -= ge, k += ge;
67
- const A = k - u, Fe = Math.max(240, fe - g - et), Z = Math.max(Fe * 0.45, Fe - 210) / A, N = qe || !De ? Z : De, Ne = M(Z), B = M(N), ye = M(u), we = M(1e9);
68
- Ne.current = Z, B.current = N, ye.current = u;
69
- const _ = M(null);
70
- Pt(() => {
71
- _.current != null && m.current && (m.current.scrollLeft = _.current, _.current = null);
69
+ ) : null, U = (e) => e.op || e.requestId || e.reqHeaders && e.reqHeaders["x-request-id"] || e.id, Q = (e) => e.source || "client";
70
+ let o, K;
71
+ u.length ? (o = Math.min(...u.map((e) => e.start)), K = Math.max(o + 1e3, ...u.map((e) => e.end ?? M))) : (o = M - 3e4, K = M + 5e3);
72
+ const Le = (K - o) * 0.03;
73
+ o -= Le, K += Le;
74
+ const ke = K - o, tt = Math.max(240, Te - p - dt), ee = Math.max(tt * 0.45, tt - 210) / ke, v = je || !$e ? ee : $e, Ce = x(ee), D = x(v), Re = x(o), He = x(1e9);
75
+ Ce.current = ee, D.current = v, Re.current = o;
76
+ const te = x(null);
77
+ jt(() => {
78
+ te.current != null && h.current && (h.current.scrollLeft = te.current, te.current = null), Me();
72
79
  });
73
- const xe = le((e, t) => {
74
- const s = m.current;
75
- if (!s) return;
76
- const y = B.current || 1e-3, o = Math.max(Ne.current ? Ne.current * 0.2 : 1e-7, Math.min(10, y * e)), f = (s.scrollLeft + t - g) / y;
77
- _.current = f * o + g - t, We(!1), Ie(o);
80
+ const Ee = _((e, t) => {
81
+ const l = h.current;
82
+ if (!l) return;
83
+ const y = D.current || 1e-3, d = Math.max(Ce.current ? Ce.current * 0.2 : 1e-7, Math.min(10, y * e)), g = (l.scrollLeft + t - p) / y;
84
+ te.current = g * d + p - t, ze(!1), Fe(d);
78
85
  }, []);
79
- jt(m, (e) => {
86
+ cn(h, (e) => {
80
87
  e.preventDefault();
81
- const t = m.current;
82
- t && xe(
88
+ const t = h.current;
89
+ t && Ee(
83
90
  Math.exp(-(e.deltaY || e.deltaX) * 22e-4),
84
91
  e.clientX - t.getBoundingClientRect().left
85
92
  );
86
93
  });
87
- const be = M(null), St = le(() => {
88
- be.current == null && (be.current = requestAnimationFrame(() => {
89
- be.current = null;
90
- const e = m.current;
91
- if (!e || !B.current) return;
92
- const t = ye.current + Math.max(0, e.scrollLeft + 117 - g) / B.current;
93
- Nt(Re(t)), Ve.current && pe();
94
+ const Pe = x(null), qt = _(() => {
95
+ Pe.current == null && (Pe.current = requestAnimationFrame(() => {
96
+ Pe.current = null;
97
+ const e = h.current;
98
+ if (!e || !D.current) return;
99
+ const t = Re.current + Math.max(0, e.scrollLeft + 117 - p) / D.current;
100
+ Ct(de(t)), Ht(Ye.current ? Y(t) : null), Me(), Ge.current && ye();
94
101
  }));
95
- }, [pe]), Me = M(null), Tt = le((e) => {
102
+ }, [ye, Me]), De = x(null), Ot = _((e) => {
96
103
  const t = e.clientX;
97
- Me.current == null && (Me.current = requestAnimationFrame(() => {
98
- Me.current = null;
99
- const s = m.current;
100
- if (!s) return;
101
- const y = s.getBoundingClientRect(), o = t - y.left + s.scrollLeft;
102
- if (o < g + 5 || !B.current) {
103
- me(null);
104
+ De.current == null && (De.current = requestAnimationFrame(() => {
105
+ De.current = null;
106
+ const l = h.current;
107
+ if (!l) return;
108
+ const y = l.getBoundingClientRect(), d = t - y.left + l.scrollLeft;
109
+ if (d < p + 5 || !D.current) {
110
+ xe(null);
104
111
  return;
105
112
  }
106
- const f = ye.current + (o - g) / B.current, w = Math.max(88, Math.min(Math.round(o), we.current - 88));
107
- me({ left: Math.round(o), chipLeft: w, label: I(f, !0), t: f });
113
+ const g = Re.current + (d - p) / D.current, b = Math.max(88, Math.min(Math.round(d), He.current - 88));
114
+ xe({ left: Math.round(d), chipLeft: b, label: I(g, !0), t: g });
108
115
  }));
109
- }, []), Se = (e) => {
110
- oe === void 0 && wt(e ? e.id : null), mt?.(e);
111
- }, Ke = Bt(() => {
116
+ }, []), Be = (e) => {
117
+ ve === void 0 && Pt(e ? e.id : null), Mt?.(e);
118
+ }, nt = zt(() => {
112
119
  const e = [];
113
- return (Ee || []).forEach((t) => {
114
- d.some((s) => s.service === t) && e.push(t);
115
- }), d.forEach((t) => {
120
+ return (Ue || []).forEach((t) => {
121
+ u.some((l) => l.service === t) && e.push(t);
122
+ }), u.forEach((t) => {
116
123
  e.includes(t.service) || e.push(t.service);
117
124
  }), e;
118
- }, [d, Ee]), S = {};
119
- Ke.forEach((e, t) => {
120
- S[e] = Qe[t % Qe.length];
121
- }), Object.assign(S, it);
122
- const je = rt, ze = je ? 20 : 26, Lt = je ? 60 : 66, kt = d.map((e) => ({
125
+ }, [u, Ue]), T = {};
126
+ nt.forEach((e, t) => {
127
+ T[e] = ot[t % ot.length];
128
+ }), Object.assign(T, vt);
129
+ const st = gt, lt = st ? 20 : 26, At = st ? 60 : 66, Vt = u.map((e) => ({
123
130
  id: e.id,
124
- left: Math.round(g + (e.start - u) * N),
125
- width: Math.round(Math.max(12, ((e.end ?? b) - e.start) * N)),
126
- labelW: qt(z(e), e.service, String(O(e)))
127
- })), Y = Wt(kt, {
128
- barH: ze,
129
- rowH: Lt,
130
- chipH: Zt,
131
+ left: Math.round(p + (e.start - o) * v),
132
+ width: Math.round(Math.max(12, ((e.end ?? M) - e.start) * v)),
133
+ labelW: Gt(Q(e), e.service, String(U(e)))
134
+ })), ne = Jt(Vt, {
135
+ barH: lt,
136
+ rowH: At,
137
+ chipH: dn,
131
138
  minH: 420
132
- }), G = new Map(Y.items.map((e) => [e.id, e])), Ze = Dt(u, k, A * N, 64), Te = [];
133
- let _e = null;
134
- Ze.list.forEach((e) => {
135
- const t = Re(e.t);
136
- Te.push({
137
- left: Math.round(g + (e.t - u) * N),
138
- label: Je(e.t),
139
- dateLabel: t !== _e ? t : null
140
- }), _e = t;
139
+ }), se = new Map(ne.items.map((e) => [e.id, e])), We = Math.ceil(Math.max(p + ke * v + dt + 60, ne.maxExt + 26));
140
+ He.current = We;
141
+ const Ut = o + (We - p) / v, X = Math.max(o, o + (A.l - q - p) / v), le = Math.min(Ut, o + (A.l + A.w + q - p) / v), k = Zt(X, le, Math.max(1, (le - X) * v), 64), ie = k.step < 1e3;
142
+ Ye.current = ie;
143
+ const Ie = [], it = Math.max(o, (k.list.length ? k.list[0].t : X) - k.step);
144
+ let at = de(it), rt = Y(it);
145
+ k.list.forEach((e) => {
146
+ const t = de(e.t), l = Y(e.t);
147
+ Ie.push({
148
+ left: Math.round(p + (e.t - o) * v),
149
+ date: t !== at ? t : null,
150
+ time: !ie || l !== rt ? l : null,
151
+ sub: ie ? "." + String(new Date(e.t).getUTCMilliseconds()).padStart(3, "0") : null
152
+ }), at = t, rt = l;
141
153
  });
142
- const Ye = [], J = Ze.step / 4;
143
- if (A / J < 700)
144
- for (let e = Math.ceil(u / J); e * J <= k; e++)
145
- e % 4 !== 0 && Ye.push(Math.round(g + (e * J - u) * N));
146
- const Ge = Math.ceil(Math.max(g + A * N + et + 60, Y.maxExt + 26));
147
- we.current = Ge;
148
- const Le = T ? T.t : null, i = P != null && d.find((e) => e.id === P) || null, Ct = (e, t) => {
149
- const s = G.get(e.id);
150
- if (!s) return;
151
- const y = e.end == null, o = (e.end ?? b) - e.start;
152
- if (Ae({
153
- left: s.left,
154
- chipLeft: Math.max(88, Math.min(s.left, we.current - 88)),
154
+ const ct = [], B = _t(k.step);
155
+ if (B.parts > 1) {
156
+ const e = k.step / B.parts;
157
+ if ((le - X) / e < 2e3)
158
+ for (let t = Math.ceil(X / e); t * e <= le; t++)
159
+ t % B.parts !== 0 && ct.push({
160
+ left: Math.round(p + (t * e - o) * v),
161
+ medium: B.medium > 0 && t % B.parts === B.medium
162
+ });
163
+ }
164
+ const qe = S ? S.t : null, a = P != null && u.find((e) => e.id === P) || null, Kt = (e, t) => {
165
+ const l = se.get(e.id);
166
+ if (!l) return;
167
+ const y = e.end == null, d = (e.end ?? M) - e.start;
168
+ if (_e({
169
+ left: l.left,
170
+ chipLeft: Math.max(88, Math.min(l.left, He.current - 88)),
155
171
  label: I(e.start, !0)
156
- }), Oe(e.id), P === e.id) return;
157
- const f = m.current, w = f ? f.getBoundingClientRect() : { left: 0 }, V = f ? f.scrollLeft : 0, ee = window.innerWidth || 1200, U = window.innerHeight || 800, te = s.showLabel ? s.labelW : 0, X = s.showLabel ? s.labelX : s.left, Ce = w.left - V + Math.min(s.left, X), $ = w.left - V + Math.max(s.left + s.width, X + te), F = t.currentTarget.getBoundingClientRect();
158
- let C = $ + 28, ne = Math.max(95, Math.min(t.clientY, U - 120));
159
- C + ae > ee - 12 && (C = Ce - ae - 28), C < 12 && (C = Math.max(12, Math.min(ee - ae - 12, t.clientX - ae / 2)), ne = F.bottom + 108, ne > U - 95 && (ne = Math.max(95, F.top - 108))), he({
172
+ }), Ze(e.id), P === e.id) return;
173
+ const g = h.current, b = g ? g.getBoundingClientRect() : { left: 0 }, $ = g ? g.scrollLeft : 0, re = window.innerWidth || 1200, F = window.innerHeight || 800, ce = l.showLabel ? l.labelW : 0, j = l.showLabel ? l.labelX : l.left, Ae = b.left - $ + Math.min(l.left, j), z = b.left - $ + Math.max(l.left + l.width, j + ce), Z = t.currentTarget.getBoundingClientRect();
174
+ let C = z + 28, oe = Math.max(95, Math.min(t.clientY, F - 120));
175
+ C + me > re - 12 && (C = Ae - me - 28), C < 12 && (C = Math.max(12, Math.min(re - me - 12, t.clientX - me / 2)), oe = Z.bottom + 108, oe > F - 95 && (oe = Math.max(95, Z.top - 108))), we({
160
176
  id: e.id,
161
177
  x: C,
162
- y: ne,
163
- rid: String(O(e)),
164
- route: z(e) + " → " + e.service,
178
+ y: oe,
179
+ rid: String(U(e)),
180
+ route: Q(e) + " → " + e.service,
165
181
  label: e.label || (e.method || "GET") + " " + (e.url ? e.url.replace(/^https?:\/\/[^/]+/, "") : e.id),
166
182
  time: I(e.start, !0),
167
- durLine: y ? "in flight · " + se(o) + " so far" : se(o) + " · status " + (e.status ?? "—"),
183
+ durLine: y ? "in flight · " + ue(d) + " so far" : ue(d) + " · status " + (e.status ?? "—"),
168
184
  url: e.url || ""
169
185
  });
170
- }, Rt = () => {
171
- he(null), Ae(null), Oe(null);
172
- }, ke = (e) => Object.entries(e || {}).map(([t, s]) => ({ k: t, v: String(s) })), D = i ? i.end == null : !1, Q = K ? /* @__PURE__ */ n(
173
- Ot,
186
+ }, Xt = () => {
187
+ we(null), _e(null), Ze(null);
188
+ }, Oe = (e) => Object.entries(e || {}).map(([t, l]) => ({ k: t, v: String(l) })), W = a ? a.end == null : !1, ae = G ? /* @__PURE__ */ n(
189
+ Qt,
174
190
  {
175
- className: h?.summary,
191
+ className: m?.summary,
176
192
  placement: E,
177
- floatingDefaultPosition: dt,
178
- items: d.slice().sort((e, t) => e.start - t.start).map((e, t) => {
179
- const s = G.get(e.id);
193
+ floatingDefaultPosition: xt,
194
+ items: u.slice().sort((e, t) => e.start - t.start).map((e, t) => {
195
+ const l = se.get(e.id);
180
196
  return {
181
197
  id: e.id,
182
198
  number: String(t + 1).padStart(2, "0"),
183
- label: String(O(e)),
184
- color: S[e.service] || v.body,
185
- time: Je(e.start),
186
- inView: !s || !j.w ? !0 : s.left < j.l + j.w && s.left + s.width > j.l,
199
+ label: String(U(e)),
200
+ color: T[e.service] || w.body,
201
+ time: Y(e.start),
202
+ inView: !l || !J.w ? !0 : l.left < J.l + J.w && l.left + l.width > J.l,
187
203
  selected: P === e.id
188
204
  };
189
205
  }),
190
206
  onPick: (e) => {
191
- const t = G.get(e), s = m.current;
192
- !t || !s || zt(s, {
193
- left: Math.max(0, t.left + t.width / 2 - s.clientWidth / 2)
207
+ const t = se.get(e), l = h.current;
208
+ !t || !l || on(l, {
209
+ left: Math.max(0, t.left + t.width / 2 - l.clientWidth / 2)
194
210
  });
195
211
  }
196
212
  }
197
213
  ) : null;
198
- return /* @__PURE__ */ r("div", { ref: nt, className: c(a.root, h?.root, pt), style: ft, children: [
199
- (Pe || $e || ie != null || re != null) && /* @__PURE__ */ r("div", { className: c(a.toolbar, h?.toolbar), children: [
200
- /* @__PURE__ */ r("div", { className: a.toolbarText, children: [
201
- ie != null && /* @__PURE__ */ n("span", { className: a.toolbarTitle, children: ie }),
202
- /* @__PURE__ */ n("span", { className: a.toolbarMeta, children: re ?? (d.length ? `${d.length} events · span ${se(A - 2 * ge)} · times in UTC` : "No events") })
214
+ return /* @__PURE__ */ r("div", { ref: mt, className: c(i.root, m?.root, Tt), style: St, children: [
215
+ (Ke || et || he != null || pe != null) && /* @__PURE__ */ r("div", { className: c(i.toolbar, m?.toolbar), children: [
216
+ /* @__PURE__ */ r("div", { className: i.toolbarText, children: [
217
+ he != null && /* @__PURE__ */ n("span", { className: i.toolbarTitle, children: he }),
218
+ /* @__PURE__ */ n("span", { className: i.toolbarMeta, children: pe ?? (u.length ? `${u.length} events · span ${ue(ke - 2 * Le)} · times in UTC` : "No events") })
203
219
  ] }),
204
- $e,
205
- Pe && /* @__PURE__ */ n(
206
- At,
220
+ et,
221
+ Ke && /* @__PURE__ */ n(
222
+ en,
207
223
  {
208
- zoomPct: `${Math.round(N / Z * 100)}%`,
209
- fitActive: qe,
210
- onZoomIn: () => xe(1.5, fe / 2),
211
- onZoomOut: () => xe(1 / 1.5, fe / 2),
224
+ zoomPct: `${Math.round(v / ee * 100)}%`,
225
+ fitActive: je,
226
+ onZoomIn: () => Ee(1.5, Te / 2),
227
+ onZoomOut: () => Ee(1 / 1.5, Te / 2),
212
228
  onFit: () => {
213
- We(!0), Ie(null);
229
+ ze(!0), Fe(null);
214
230
  },
215
231
  hint: "scroll zooms · drag pans"
216
232
  }
217
233
  )
218
234
  ] }),
219
- ot && /* @__PURE__ */ n(
220
- Vt,
235
+ wt && /* @__PURE__ */ n(
236
+ tn,
221
237
  {
222
- className: h?.legend,
223
- items: Ke.map((e) => ({ name: e, color: S[e] }))
238
+ className: m?.legend,
239
+ items: nt.map((e) => ({ name: e, color: T[e] }))
224
240
  }
225
241
  ),
226
- E === "top" && Q,
227
- /* @__PURE__ */ r("div", { className: a.layout, children: [
228
- E === "left" && Q,
229
- /* @__PURE__ */ r("div", { className: a.main, children: [
230
- /* @__PURE__ */ n("div", { className: c(a.card, h?.card), children: /* @__PURE__ */ n(
242
+ E === "top" && ae,
243
+ /* @__PURE__ */ r("div", { className: i.layout, children: [
244
+ E === "left" && ae,
245
+ /* @__PURE__ */ r("div", { className: i.main, children: [
246
+ /* @__PURE__ */ n("div", { className: c(i.card, m?.card), children: /* @__PURE__ */ n(
231
247
  "div",
232
248
  {
233
- ref: m,
234
- className: c(a.scroller, l.scroller, h?.scroller),
235
- style: { maxHeight: ut },
236
- onPointerDown: W.onPointerDown,
237
- onPointerMove: W.onPointerMove,
238
- onPointerUp: W.onPointerUp,
249
+ ref: h,
250
+ className: c(i.scroller, s.scroller, m?.scroller),
251
+ style: { maxHeight: yt },
252
+ onPointerDown: V.onPointerDown,
253
+ onPointerMove: V.onPointerMove,
254
+ onPointerUp: V.onPointerUp,
239
255
  onPointerLeave: () => {
240
- W.onPointerUp(), me(null);
256
+ V.onPointerUp(), xe(null);
241
257
  },
242
- onMouseMove: Tt,
243
- onScroll: St,
244
- children: /* @__PURE__ */ r("div", { className: l.inner, style: { width: Ge }, children: [
245
- ct && Te.map((e, t) => /* @__PURE__ */ n("div", { className: l.gridline, style: { left: e.left } }, t)),
246
- Ue && /* @__PURE__ */ n(
258
+ onMouseMove: Ot,
259
+ onScroll: qt,
260
+ children: /* @__PURE__ */ r("div", { className: s.inner, style: { width: We }, children: [
261
+ Nt && Ie.map((e, t) => /* @__PURE__ */ n("div", { className: s.gridline, style: { left: e.left } }, t)),
262
+ Je && /* @__PURE__ */ n(
247
263
  "div",
248
264
  {
249
- className: l.nowLine,
250
- style: { left: Math.round(g + (b - u) * N) }
265
+ className: s.nowLine,
266
+ style: { left: Math.round(p + (M - o) * v) }
251
267
  }
252
268
  ),
253
- T && !p && /* @__PURE__ */ n("div", { className: l.cursorLine, style: { left: T.left } }),
254
- q && /* @__PURE__ */ n("div", { className: l.eventLine, style: { left: q.left } }),
255
- /* @__PURE__ */ r("div", { className: c(l.axis, h?.axis), children: [
256
- /* @__PURE__ */ n("div", { className: l.axisDivider }),
257
- /* @__PURE__ */ r("div", { className: l.axisSticky, children: [
258
- /* @__PURE__ */ n("span", { className: l.axisUtc, children: "UTC" }),
259
- /* @__PURE__ */ n("span", { className: l.axisViewDate, children: gt || (d.length ? Re(u) : "") })
269
+ S && !f && /* @__PURE__ */ n("div", { className: s.cursorLine, style: { left: S.left } }),
270
+ O && /* @__PURE__ */ n("div", { className: s.eventLine, style: { left: O.left } }),
271
+ /* @__PURE__ */ r("div", { className: c(s.axis, m?.axis), children: [
272
+ /* @__PURE__ */ n("div", { className: s.axisDivider }),
273
+ /* @__PURE__ */ r("div", { className: s.axisSticky, children: [
274
+ /* @__PURE__ */ n("span", { className: s.axisUtc, children: "UTC" }),
275
+ /* @__PURE__ */ n("span", { className: s.axisViewDate, children: kt || (u.length ? de(o) : "") }),
276
+ ie && /* @__PURE__ */ n("span", { className: s.axisViewTime, children: Rt || Y(o) })
260
277
  ] }),
261
- Te.map((e, t) => /* @__PURE__ */ r("span", { children: [
262
- /* @__PURE__ */ n("span", { className: l.axisTickLabel, style: { left: e.left }, children: e.label }),
263
- e.dateLabel && /* @__PURE__ */ n("span", { className: l.axisDateLabel, style: { left: e.left }, children: e.dateLabel }),
264
- /* @__PURE__ */ n("span", { className: l.axisTickMark, style: { left: e.left } })
278
+ Ie.map((e, t) => /* @__PURE__ */ r("span", { children: [
279
+ e.date && /* @__PURE__ */ n("span", { className: s.axisDateLabel, style: { left: e.left }, children: e.date }),
280
+ e.time && /* @__PURE__ */ n("span", { className: s.axisTickLabel, style: { left: e.left }, children: e.time }),
281
+ e.sub && /* @__PURE__ */ n("span", { className: s.axisSubLabel, style: { left: e.left }, children: e.sub }),
282
+ /* @__PURE__ */ n("span", { className: s.axisTickMark, style: { left: e.left } })
265
283
  ] }, t)),
266
- Ye.map((e, t) => /* @__PURE__ */ n("span", { className: l.axisMinorMark, style: { left: e } }, t)),
267
- T && !p && /* @__PURE__ */ n("div", { className: l.axisChip, style: { left: T.chipLeft }, children: T.label }),
268
- q && /* @__PURE__ */ r(
284
+ ct.map((e, t) => /* @__PURE__ */ n(
285
+ "span",
286
+ {
287
+ className: c(s.axisMinorMark, e.medium && s.axisMinorMedium),
288
+ style: { left: e.left }
289
+ },
290
+ t
291
+ )),
292
+ S && !f && /* @__PURE__ */ n("div", { className: s.axisChip, style: { left: S.chipLeft }, children: S.label }),
293
+ O && /* @__PURE__ */ r(
269
294
  "div",
270
295
  {
271
- className: c(l.axisChip, l.axisChipEvent),
272
- style: { left: q.chipLeft },
296
+ className: c(s.axisChip, s.axisChipEvent),
297
+ style: { left: O.chipLeft },
273
298
  children: [
274
299
  "▸ ",
275
- q.label
300
+ O.label
276
301
  ]
277
302
  }
278
303
  )
279
304
  ] }),
280
- /* @__PURE__ */ r("div", { className: l.lane, style: { height: Y.h }, children: [
281
- /* @__PURE__ */ n("div", { className: l.axisLine, style: { top: Y.axisY } }),
282
- d.map((e) => {
283
- const t = G.get(e.id);
305
+ /* @__PURE__ */ r("div", { className: s.lane, style: { height: ne.h }, children: [
306
+ /* @__PURE__ */ n("div", { className: s.axisLine, style: { top: ne.axisY } }),
307
+ u.map((e) => {
308
+ const t = se.get(e.id);
284
309
  if (!t) return null;
285
- const s = S[e.service] || v.body, y = e.end == null, o = It(e, L), f = Le != null && Le >= e.start && Le <= (e.end ?? b), w = vt === e.id, V = L && !o ? 0.25 : 1, ee = String(O(e)), U = z(e), te = S[U] || v.body, X = S[e.service] || v.body, Ce = w ? `0 0 0 3px ${H(s, 55)}, 0 4px 14px rgba(35,32,28,.22)` : L && o ? `0 0 0 3px ${v.hlRing}` : P === e.id ? `0 0 0 3px ${v.selectedRing}` : f ? `0 0 0 3px ${H(s, 30)}` : "none", $ = w ? s : f ? v.stemHot : v.stem, F = {
310
+ const l = T[e.service] || w.body, y = e.end == null, d = Yt(e, L), g = qe != null && qe >= e.start && qe <= (e.end ?? M), b = Lt === e.id, $ = L && !d ? 0.25 : 1, re = String(U(e)), F = Q(e), ce = T[F] || w.body, j = T[e.service] || w.body, Ae = b ? `0 0 0 3px ${H(l, 55)}, 0 4px 14px rgba(35,32,28,.22)` : L && d ? `0 0 0 3px ${w.hlRing}` : P === e.id ? `0 0 0 3px ${w.selectedRing}` : g ? `0 0 0 3px ${H(l, 30)}` : "none", z = b ? l : g ? w.stemHot : w.stem, Z = {
286
311
  onClick: () => {
287
- W.wasDragSuppressed() || (he(null), Se(P === e.id ? null : e));
312
+ V.wasDragSuppressed() || (we(null), Be(P === e.id ? null : e));
288
313
  },
289
- onMouseEnter: (C) => Ct(e, C),
290
- onMouseLeave: Rt
314
+ onMouseEnter: (C) => Kt(e, C),
315
+ onMouseLeave: Xt
291
316
  };
292
317
  return /* @__PURE__ */ r("span", { children: [
293
318
  t.showLabel && /* @__PURE__ */ r(R, { children: [
294
319
  t.conn && !t.hconn && /* @__PURE__ */ n(
295
320
  "div",
296
321
  {
297
- className: l.stem,
322
+ className: s.stem,
298
323
  style: {
299
324
  left: t.left,
300
325
  top: t.connTop,
301
326
  height: t.connH,
302
- background: $
327
+ background: z
303
328
  }
304
329
  }
305
330
  ),
@@ -307,24 +332,24 @@ const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
307
332
  /* @__PURE__ */ n(
308
333
  "div",
309
334
  {
310
- className: l.stem,
335
+ className: s.stem,
311
336
  style: {
312
337
  left: t.left,
313
338
  top: t.connTop,
314
339
  height: t.connH,
315
- background: $
340
+ background: z
316
341
  }
317
342
  }
318
343
  ),
319
344
  /* @__PURE__ */ n(
320
345
  "div",
321
346
  {
322
- className: l.elbow,
347
+ className: s.elbow,
323
348
  style: {
324
349
  left: t.hconnLeft,
325
350
  top: t.hconnTop,
326
351
  width: t.hconnW,
327
- background: $
352
+ background: z
328
353
  }
329
354
  }
330
355
  )
@@ -332,42 +357,42 @@ const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
332
357
  /* @__PURE__ */ n(
333
358
  "div",
334
359
  {
335
- ...F,
336
- className: c(l.chip, h?.chip),
360
+ ...Z,
361
+ className: c(s.chip, m?.chip),
337
362
  style: {
338
363
  left: t.labelX,
339
364
  top: t.labelTop,
340
- opacity: V,
341
- background: w ? H(s, 7) : L && o ? v.hlWashSoft : void 0,
342
- borderColor: w ? s : L && o ? v.hlBorder : f ? s : void 0,
343
- boxShadow: w ? `0 0 0 2px ${H(s, 40)}, 0 4px 12px rgba(35,32,28,.16)` : "0 1px 2px rgba(35,32,28,.06)"
365
+ opacity: $,
366
+ background: b ? H(l, 7) : L && d ? w.hlWashSoft : void 0,
367
+ borderColor: b ? l : L && d ? w.hlBorder : g ? l : void 0,
368
+ boxShadow: b ? `0 0 0 2px ${H(l, 40)}, 0 4px 12px rgba(35,32,28,.16)` : "0 1px 2px rgba(35,32,28,.06)"
344
369
  },
345
- children: Be ? Be(e, {
346
- color: s,
370
+ children: Xe ? Xe(e, {
371
+ color: l,
347
372
  pending: y,
348
- durationMs: (e.end ?? b) - e.start
373
+ durationMs: (e.end ?? M) - e.start
349
374
  }) : /* @__PURE__ */ r(R, { children: [
350
375
  /* @__PURE__ */ r("div", { children: [
351
376
  /* @__PURE__ */ n(
352
377
  "span",
353
378
  {
354
- className: l.chipBadge,
355
- style: { background: H(te, 14), color: te },
356
- children: U
379
+ className: s.chipBadge,
380
+ style: { background: H(ce, 14), color: ce },
381
+ children: F
357
382
  }
358
383
  ),
359
- /* @__PURE__ */ n("span", { className: l.chipArrow, children: " → " }),
384
+ /* @__PURE__ */ n("span", { className: s.chipArrow, children: " → " }),
360
385
  /* @__PURE__ */ n(
361
386
  "span",
362
387
  {
363
- className: l.chipBadge,
364
- style: { background: H(X, 14), color: X },
388
+ className: s.chipBadge,
389
+ style: { background: H(j, 14), color: j },
365
390
  children: e.service
366
391
  }
367
392
  )
368
393
  ] }),
369
- /* @__PURE__ */ n("div", { className: l.chipOp, children: /* @__PURE__ */ n(Ut, { text: ee, query: L }) }),
370
- /* @__PURE__ */ n("div", { className: l.chipTime, children: I(e.start, !0) })
394
+ /* @__PURE__ */ n("div", { className: s.chipOp, children: /* @__PURE__ */ n(nn, { text: re, query: L }) }),
395
+ /* @__PURE__ */ n("div", { className: s.chipTime, children: I(e.start, !0) })
371
396
  ] })
372
397
  }
373
398
  )
@@ -375,23 +400,23 @@ const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
375
400
  /* @__PURE__ */ n(
376
401
  "div",
377
402
  {
378
- ...F,
379
- className: c(l.bar, y && l.barPending, h?.bar),
403
+ ...Z,
404
+ className: c(s.bar, y && s.barPending, m?.bar),
380
405
  style: {
381
406
  left: t.left,
382
407
  top: t.barTop,
383
408
  width: t.width,
384
- height: ze,
385
- background: L && o ? v.hlBarBg : H(s, 22),
386
- borderColor: s,
387
- opacity: V,
388
- boxShadow: Ce
409
+ height: lt,
410
+ background: L && d ? w.hlBarBg : H(l, 22),
411
+ borderColor: l,
412
+ opacity: $,
413
+ boxShadow: Ae
389
414
  },
390
415
  children: y && /* @__PURE__ */ n(
391
416
  "span",
392
417
  {
393
- className: c(a.pulseDot, l.barDot),
394
- style: { background: s }
418
+ className: c(i.pulseDot, s.barDot),
419
+ style: { background: l }
395
420
  }
396
421
  )
397
422
  }
@@ -402,103 +427,103 @@ const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
402
427
  ] })
403
428
  }
404
429
  ) }),
405
- /* @__PURE__ */ n("div", { className: c(a.footnote, h?.footnote), children: "Click an event to open its details in the side panel · dashed pills are still in flight" })
430
+ /* @__PURE__ */ n("div", { className: c(i.footnote, m?.footnote), children: "Click an event to open its details in the side panel · dashed pills are still in flight" })
406
431
  ] }),
407
- i && ue && /* @__PURE__ */ n("aside", { className: c(a.aside, l.drawerCustom, h?.drawer), children: ue(i, { close: () => Se(null), pending: D }) }),
408
- i && !ue && /* @__PURE__ */ r("aside", { className: c(a.aside, h?.drawer), children: [
409
- /* @__PURE__ */ r("div", { className: l.drawerHead, children: [
410
- /* @__PURE__ */ r("div", { className: l.drawerHeadRow, children: [
411
- /* @__PURE__ */ n("span", { className: l.methodBadge, children: i.method || "—" }),
432
+ a && Ne && /* @__PURE__ */ n("aside", { className: c(i.aside, s.drawerCustom, m?.drawer), children: Ne(a, { close: () => Be(null), pending: W }) }),
433
+ a && !Ne && /* @__PURE__ */ r("aside", { className: c(i.aside, m?.drawer), children: [
434
+ /* @__PURE__ */ r("div", { className: s.drawerHead, children: [
435
+ /* @__PURE__ */ r("div", { className: s.drawerHeadRow, children: [
436
+ /* @__PURE__ */ n("span", { className: s.methodBadge, children: a.method || "—" }),
412
437
  /* @__PURE__ */ n(
413
438
  "span",
414
439
  {
415
440
  className: c(
416
- l.statusBadge,
417
- D && l.statusPending,
418
- !D && (i.status ?? 0) >= 400 && l.statusError
441
+ s.statusBadge,
442
+ W && s.statusPending,
443
+ !W && (a.status ?? 0) >= 400 && s.statusError
419
444
  ),
420
- children: D ? "pending" : String(i.status ?? "—")
445
+ children: W ? "pending" : String(a.status ?? "—")
421
446
  }
422
447
  ),
423
- /* @__PURE__ */ n("span", { className: l.drawerRoute, children: z(i) + " → " + i.service }),
424
- /* @__PURE__ */ n("div", { className: l.drawerSpacer }),
448
+ /* @__PURE__ */ n("span", { className: s.drawerRoute, children: Q(a) + " → " + a.service }),
449
+ /* @__PURE__ */ n("div", { className: s.drawerSpacer }),
425
450
  /* @__PURE__ */ n(
426
451
  "button",
427
452
  {
428
453
  type: "button",
429
- className: a.asideClose,
454
+ className: i.asideClose,
430
455
  "aria-label": "Close details",
431
- onClick: () => Se(null),
456
+ onClick: () => Be(null),
432
457
  children: "✕"
433
458
  }
434
459
  )
435
460
  ] }),
436
- /* @__PURE__ */ n("div", { className: l.drawerUrl, children: i.url || i.label || i.id }),
437
- /* @__PURE__ */ n("div", { className: l.drawerRid, children: String(O(i)) }),
438
- /* @__PURE__ */ n("div", { className: l.drawerXrid, children: i.reqHeaders && i.reqHeaders["x-request-id"] || i.requestId || i.id }),
439
- /* @__PURE__ */ n("div", { className: l.drawerTiming, children: I(i.start, !0) + (D ? " · in flight" : " → " + I(i.end, !0) + " · " + se(i.end - i.start)) })
461
+ /* @__PURE__ */ n("div", { className: s.drawerUrl, children: a.url || a.label || a.id }),
462
+ /* @__PURE__ */ n("div", { className: s.drawerRid, children: String(U(a)) }),
463
+ /* @__PURE__ */ n("div", { className: s.drawerXrid, children: a.reqHeaders && a.reqHeaders["x-request-id"] || a.requestId || a.id }),
464
+ /* @__PURE__ */ n("div", { className: s.drawerTiming, children: I(a.start, !0) + (W ? " · in flight" : " → " + I(a.end, !0) + " · " + ue(a.end - a.start)) })
440
465
  ] }),
441
- /* @__PURE__ */ r("div", { className: l.drawerBody, children: [
442
- /* @__PURE__ */ n("div", { className: l.drawerSection, children: "Request" }),
443
- !!Object.keys(i.query || {}).length && /* @__PURE__ */ r(R, { children: [
444
- /* @__PURE__ */ n("div", { className: a.asideSection, children: "Query parameters" }),
445
- ke(i.query).map((e) => /* @__PURE__ */ r("div", { className: l.kvRow, children: [
446
- /* @__PURE__ */ n("span", { className: c(l.kvKey, l.kvKeyQuery), children: e.k }),
447
- /* @__PURE__ */ n("span", { className: l.kvVal, children: e.v })
466
+ /* @__PURE__ */ r("div", { className: s.drawerBody, children: [
467
+ /* @__PURE__ */ n("div", { className: s.drawerSection, children: "Request" }),
468
+ !!Object.keys(a.query || {}).length && /* @__PURE__ */ r(R, { children: [
469
+ /* @__PURE__ */ n("div", { className: i.asideSection, children: "Query parameters" }),
470
+ Oe(a.query).map((e) => /* @__PURE__ */ r("div", { className: s.kvRow, children: [
471
+ /* @__PURE__ */ n("span", { className: c(s.kvKey, s.kvKeyQuery), children: e.k }),
472
+ /* @__PURE__ */ n("span", { className: s.kvVal, children: e.v })
448
473
  ] }, e.k))
449
474
  ] }),
450
- /* @__PURE__ */ n("div", { className: a.asideSection, children: "Headers" }),
451
- ke(i.reqHeaders).map((e) => /* @__PURE__ */ r("div", { className: l.kvRow, children: [
452
- /* @__PURE__ */ n("span", { className: l.kvKey, children: e.k }),
453
- /* @__PURE__ */ n("span", { className: l.kvVal, children: e.v })
475
+ /* @__PURE__ */ n("div", { className: i.asideSection, children: "Headers" }),
476
+ Oe(a.reqHeaders).map((e) => /* @__PURE__ */ r("div", { className: s.kvRow, children: [
477
+ /* @__PURE__ */ n("span", { className: s.kvKey, children: e.k }),
478
+ /* @__PURE__ */ n("span", { className: s.kvVal, children: e.v })
454
479
  ] }, e.k)),
455
- i.reqBody != null && /* @__PURE__ */ r(R, { children: [
456
- /* @__PURE__ */ n("div", { className: a.asideSection, children: "Body" }),
457
- /* @__PURE__ */ n("pre", { className: a.asideRaw, children: JSON.stringify(i.reqBody, null, 2) })
480
+ a.reqBody != null && /* @__PURE__ */ r(R, { children: [
481
+ /* @__PURE__ */ n("div", { className: i.asideSection, children: "Body" }),
482
+ /* @__PURE__ */ n("pre", { className: i.asideRaw, children: JSON.stringify(a.reqBody, null, 2) })
458
483
  ] }),
459
- /* @__PURE__ */ n("div", { className: l.drawerSection, children: "Response" }),
460
- D ? /* @__PURE__ */ r("div", { className: l.awaiting, children: [
461
- /* @__PURE__ */ n("span", { className: c(a.pulseDot, l.awaitingDot) }),
484
+ /* @__PURE__ */ n("div", { className: s.drawerSection, children: "Response" }),
485
+ W ? /* @__PURE__ */ r("div", { className: s.awaiting, children: [
486
+ /* @__PURE__ */ n("span", { className: c(i.pulseDot, s.awaitingDot) }),
462
487
  "Awaiting response…"
463
488
  ] }) : /* @__PURE__ */ r(R, { children: [
464
- /* @__PURE__ */ n("div", { className: a.asideSection, children: "Headers" }),
465
- ke(i.resHeaders).map((e) => /* @__PURE__ */ r("div", { className: l.kvRow, children: [
466
- /* @__PURE__ */ n("span", { className: l.kvKey, children: e.k }),
467
- /* @__PURE__ */ n("span", { className: l.kvVal, children: e.v })
489
+ /* @__PURE__ */ n("div", { className: i.asideSection, children: "Headers" }),
490
+ Oe(a.resHeaders).map((e) => /* @__PURE__ */ r("div", { className: s.kvRow, children: [
491
+ /* @__PURE__ */ n("span", { className: s.kvKey, children: e.k }),
492
+ /* @__PURE__ */ n("span", { className: s.kvVal, children: e.v })
468
493
  ] }, e.k)),
469
- /* @__PURE__ */ n("div", { className: a.asideSection, children: "Body" }),
470
- /* @__PURE__ */ n("pre", { className: a.asideRaw, children: i.resBody != null ? JSON.stringify(i.resBody, null, 2) : "(empty)" })
494
+ /* @__PURE__ */ n("div", { className: i.asideSection, children: "Body" }),
495
+ /* @__PURE__ */ n("pre", { className: i.asideRaw, children: a.resBody != null ? JSON.stringify(a.resBody, null, 2) : "(empty)" })
471
496
  ] })
472
497
  ] })
473
498
  ] }),
474
- (E === "right" || E === "floating") && Q
499
+ (E === "right" || E === "floating") && ae
475
500
  ] }),
476
- E === "bottom" && Q,
477
- p && (() => {
478
- const e = d.find((s) => s.id === p.id), t = e && de ? de(e, {
479
- color: S[e.service] || v.body,
501
+ E === "bottom" && ae,
502
+ f && (() => {
503
+ const e = u.find((l) => l.id === f.id), t = e && ge ? ge(e, {
504
+ color: T[e.service] || w.body,
480
505
  pending: e.end == null,
481
- durationMs: (e.end ?? b) - e.start
506
+ durationMs: (e.end ?? M) - e.start
482
507
  }) : void 0;
483
- return de && t == null ? null : /* @__PURE__ */ n(Xt, { x: p.x, y: p.y, className: h?.tooltip, children: t !== void 0 ? t : /* @__PURE__ */ r(R, { children: [
484
- /* @__PURE__ */ n("div", { className: c(a.tooltipTitle, a.tooltipMono), children: p.rid }),
485
- /* @__PURE__ */ n("div", { className: a.tooltipLine, style: { marginTop: 4 }, children: p.route }),
508
+ return ge && t == null ? null : /* @__PURE__ */ n(sn, { x: f.x, y: f.y, className: m?.tooltip, children: t !== void 0 ? t : /* @__PURE__ */ r(R, { children: [
509
+ /* @__PURE__ */ n("div", { className: c(i.tooltipTitle, i.tooltipMono), children: f.rid }),
510
+ /* @__PURE__ */ n("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: f.route }),
486
511
  /* @__PURE__ */ n(
487
512
  "div",
488
513
  {
489
- className: c(a.tooltipLine, a.tooltipMono),
514
+ className: c(i.tooltipLine, i.tooltipMono),
490
515
  style: { marginTop: 2 },
491
- children: p.label
516
+ children: f.label
492
517
  }
493
518
  ),
494
- /* @__PURE__ */ n("div", { className: a.tooltipLine, style: { marginTop: 4 }, children: p.time }),
495
- /* @__PURE__ */ n("div", { className: a.tooltipLine, children: p.durLine }),
496
- p.url && /* @__PURE__ */ n(
519
+ /* @__PURE__ */ n("div", { className: i.tooltipLine, style: { marginTop: 4 }, children: f.time }),
520
+ /* @__PURE__ */ n("div", { className: i.tooltipLine, children: f.durLine }),
521
+ f.url && /* @__PURE__ */ n(
497
522
  "div",
498
523
  {
499
- className: c(a.tooltipDim, a.tooltipMono),
524
+ className: c(i.tooltipDim, i.tooltipMono),
500
525
  style: { marginTop: 4, wordBreak: "break-all", fontSize: "10.5px" },
501
- children: p.url
526
+ children: f.url
502
527
  }
503
528
  )
504
529
  ] }) });
@@ -507,5 +532,5 @@ const g = 84, et = 24, Zt = 51, ae = 300, an = Ht(
507
532
  }
508
533
  );
509
534
  export {
510
- an as TraceTimeline
535
+ yn as TraceTimeline
511
536
  };