@mechane-ai/elements 0.62.0 → 0.63.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.
- package/dist/ai.js +7 -7
- package/dist/{article-DBRkXW1r.js → article-lhByzGCW.js} +6 -6
- package/dist/article.js +1 -1
- package/dist/catalog.json +1 -1
- package/dist/{categorical-values-Bq5dMg0i.js → categorical-values-3g2m87_m.js} +1 -1
- package/dist/charts/cartesian.js +1 -1
- package/dist/charts/comparison.js +1 -1
- package/dist/charts/distribution.js +1 -1
- package/dist/charts/figure.js +12 -12
- package/dist/charts/graph.js +1 -1
- package/dist/charts/hierarchy.js +1 -1
- package/dist/charts/image.js +1 -1
- package/dist/charts/matrix.js +1 -1
- package/dist/charts/plot.js +3 -3
- package/dist/charts/relationship.js +1 -1
- package/dist/charts/text.js +1 -1
- package/dist/charts/timeline.js +2 -2
- package/dist/charts/trend.js +1 -1
- package/dist/charts.js +2 -2
- package/dist/{code-block-C_Ze7QLO.js → code-block-CJkiWSrX.js} +1 -1
- package/dist/collections.js +1 -1
- package/dist/{commands-BWwMKUdd.js → commands-DlitIiMJ.js} +2 -2
- package/dist/content/code.js +1 -1
- package/dist/content/diff.js +3 -3
- package/dist/content/link.js +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/tree.js +2 -2
- package/dist/{content-link-BSR0a887.js → content-link-DQ3tt_SK.js} +1 -1
- package/dist/content.js +1 -1
- package/dist/{dates-DNb7_KSp.js → dates-Cvrsj4l9.js} +2 -2
- package/dist/{dumbbell-plot-DWybxZAH.js → dumbbell-plot-CEShrjuI.js} +3 -3
- package/dist/{embedding-map-B5JjgyGR.js → embedding-map-CQZn0DCg.js} +6 -6
- package/dist/feedback.js +1 -1
- package/dist/{figure-frame-zyCmHlgX.js → figure-frame-BljHBC77.js} +3 -3
- package/dist/forms/dates.js +1 -1
- package/dist/{forms-C5vXBA_C.js → forms-BYk8t91h.js} +1 -1
- package/dist/forms.js +2 -2
- package/dist/{image-grid-Cgkz2fsU.js → image-grid-ClMUSwqO.js} +3 -3
- package/dist/index.js +1 -1
- package/dist/kits/evaluation.js +4 -4
- package/dist/kits/interpretability.js +11 -11
- package/dist/kits/operations.js +6 -6
- package/dist/kits/research.js +8 -8
- package/dist/kits/training.js +5 -5
- package/dist/layout.js +1 -1
- package/dist/lesson.js +3 -3
- package/dist/{markdown-BkFwgQzJ.js → markdown-_4ZFsDyM.js} +2 -2
- package/dist/mdx.js +6 -6
- package/dist/navigation/commands.js +1 -1
- package/dist/{navigation-Bqouujdr.js → navigation-CwXM887i.js} +1 -1
- package/dist/navigation.js +3 -3
- package/dist/packages/charts/src/timeline/trace-timeline.d.ts +1 -1
- package/dist/{param-BLGHbZoi.js → param-BxLsoDip.js} +1 -1
- package/dist/{pierre-diff-TAaZTeg-.js → pierre-diff-DwmKtFYy.js} +1 -1
- package/dist/{plot-layout-JgEcW4fY.js → plot-layout-oXzW4fgJ.js} +2 -2
- package/dist/{plot-surface-CAAzoXJh.js → plot-surface-BuXeoeBq.js} +1 -1
- package/dist/{reference-lines-BGE13uMG.js → reference-lines-Kmxs_hXa.js} +1 -1
- package/dist/{scene-GBAHedGg.js → scene-AWpudPHv.js} +6 -6
- package/dist/scene.js +1 -1
- package/dist/{slope-chart-Bh7fntOb.js → slope-chart-DzbDOBUo.js} +4 -4
- package/dist/{src-KTMBylbq.js → src-CJ-0r20F.js} +1 -1
- package/dist/{src-CoRsRnHQ.js → src-CZyleIH0.js} +4 -4
- package/dist/{src-D_BL6n5Q.js → src-CuTIcRwk.js} +2 -2
- package/dist/{src-XMHLpSe9.js → src-DFkzV7H0.js} +4 -4
- package/dist/{src-k0l1Y4Xl.js → src-DH2Xqu32.js} +8 -11
- package/dist/{src-DxZdE_P5.js → src-DpVApV62.js} +1 -1
- package/dist/{src-Ddx3fHei.js → src-yrBVxkaf.js} +3 -3
- package/dist/styles2.css +26 -12
- package/dist/{time-series-_wZflmIb.js → time-series-D7TCUK56.js} +8 -8
- package/dist/{timeline-DsNPo_57.js → timeline-CR5VPm_f.js} +347 -302
- package/dist/{token-heatmap-Chnea1Iv.js → token-heatmap-DEpcsiRR.js} +3 -3
- package/dist/{token-predictions-DQEd5sj7.js → token-predictions-DMYbc2-N.js} +3 -3
- package/dist/{transport-CagqVWwW.js → transport-VwKG58nR.js} +4 -4
- package/dist/{tree-diagram-CL8RI9gT.js → tree-diagram-BqL3fTdB.js} +4 -4
- package/dist/{treemap-C3zmI4of.js → treemap-C0CeP3PD.js} +4 -4
- package/dist/{use-tween-C2VZtQjV.js → use-tween-D-wmSMa8.js} +1 -1
- package/dist/{violin-plot-CgpyGuSe.js → violin-plot-6829_9q5.js} +3 -3
- package/dist/{waterfall-S8CLEUib.js → waterfall-C5HRWlEe.js} +163 -167
- package/package.json +1 -1
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
import { E as e, c as t, m as n } from "./src-
|
|
1
|
+
import { E as e, c as t, m as n } from "./src-DH2Xqu32.js";
|
|
2
2
|
import { n as r, t as i } from "./chart-tones-ei3BC2AL.js";
|
|
3
|
-
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-
|
|
3
|
+
import { A as a, E as o, M as s, S as c, f as l, j as u, l as d, s as f } from "./plot-layout-oXzW4fgJ.js";
|
|
4
4
|
import { i as ee } from "./chart-link-AE_xuxiP.js";
|
|
5
5
|
import { a as te } from "./tone-scope-DKiSw-JR.js";
|
|
6
6
|
import { n as p, r as m } from "./figure-format-B8kRZMlo.js";
|
|
7
7
|
import { a as h, o as ne, r as re } from "./scale-C2xgZyZN.js";
|
|
8
8
|
import { t as ie } from "./chart-cursor-1mFd48Jc.js";
|
|
9
|
-
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-
|
|
9
|
+
import { i as ae, l as g, n as oe, r as se, t as _ } from "./figure-frame-BljHBC77.js";
|
|
10
10
|
import { n as ce } from "./plot-width-D3hTycYX.js";
|
|
11
11
|
import { t as le } from "./plot-axes-D5S9BnBa.js";
|
|
12
12
|
import { a as v, c as ue, f as de, r as y } from "./plot-marks-DgCtcd3L.js";
|
|
13
|
-
import { n as b, r as fe, t as pe } from "./plot-surface-
|
|
13
|
+
import { n as b, r as fe, t as pe } from "./plot-surface-BuXeoeBq.js";
|
|
14
14
|
import * as x from "@stylexjs/stylex";
|
|
15
15
|
import { useId as me, useState as he } from "react";
|
|
16
16
|
import { stackSpans as ge } from "@ui-sdk/core";
|
|
17
17
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
18
|
-
import {
|
|
18
|
+
import { ChevronsDownUp as _e, ChevronsUpDown as ve } from "lucide-react";
|
|
19
|
+
import { Waterfall as ye, WaterfallBar as T, WaterfallCell as be, WaterfallColumnHeader as E, WaterfallHeaderRow as xe, WaterfallRow as Se, WaterfallRowHeader as Ce } from "@ui-sdk/react/waterfall";
|
|
19
20
|
// packages/charts/src/timeline/event-strip.tsx
|
|
20
21
|
var D = {
|
|
21
22
|
lanes: 12,
|
|
22
23
|
events: 1e3
|
|
23
|
-
}, O = 24, k = 8,
|
|
24
|
+
}, O = 24, k = 8, A = 14, we = 4, j = 5, M = 14, N = 5, P = 18, F = 5, Te = .65, Ee = 6.5, De = 12, I = .5, L = .04, R = 1e3, z = 60 * R, B = 60 * z, Oe = 24 * B, ke = {
|
|
24
25
|
unit: "second",
|
|
25
|
-
size:
|
|
26
|
-
},
|
|
26
|
+
size: R
|
|
27
|
+
}, Ae = [
|
|
27
28
|
{
|
|
28
29
|
unit: "day",
|
|
29
|
-
size:
|
|
30
|
+
size: Oe
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
33
|
unit: "hour",
|
|
33
|
-
size:
|
|
34
|
+
size: B
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
unit: "minute",
|
|
37
|
-
size:
|
|
38
|
+
size: z
|
|
38
39
|
},
|
|
39
|
-
|
|
40
|
-
],
|
|
40
|
+
ke
|
|
41
|
+
], je = { separator: {
|
|
41
42
|
kfzvcC: "x47corl",
|
|
42
43
|
$$css: !0
|
|
43
44
|
} };
|
|
44
|
-
function
|
|
45
|
+
function Me(e) {
|
|
45
46
|
return d({
|
|
46
47
|
width: Infinity,
|
|
47
48
|
valueLabels: e,
|
|
@@ -49,8 +50,8 @@ function Ae(e) {
|
|
|
49
50
|
hasYTitle: !1
|
|
50
51
|
}).left;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
let n =
|
|
53
|
+
function Ne(e, t) {
|
|
54
|
+
let n = Ae.find((t) => e >= t.size) ?? ke;
|
|
54
55
|
return m({
|
|
55
56
|
value: e / n.size,
|
|
56
57
|
locale: t,
|
|
@@ -62,13 +63,13 @@ function je(e, t) {
|
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function Pe(e, t) {
|
|
66
67
|
let n = [...e.flatMap((e) => e.end === void 0 ? [e.start] : [e.start, e.end]), ...t.map((e) => e.at)];
|
|
67
|
-
if (n.length === 0) return [0,
|
|
68
|
-
let r = Math.min(...n), i = Math.max(...n), a = i - r, o = a > 0 ? Math.max(
|
|
68
|
+
if (n.length === 0) return [0, B];
|
|
69
|
+
let r = Math.min(...n), i = Math.max(...n), a = i - r, o = a > 0 ? Math.max(z, Math.round(a * L)) : B * I;
|
|
69
70
|
return [r - o, i + o];
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function Fe({ lanes: e, events: t, markers: n, domain: r, zone: i }) {
|
|
72
73
|
let a = ne(r);
|
|
73
74
|
if (a !== void 0) return a;
|
|
74
75
|
if (i === void 0) return "A function time format needs a timeZone beside it, so the axis ticks fall on that zone.";
|
|
@@ -82,19 +83,19 @@ function Ne({ lanes: e, events: t, markers: n, domain: r, zone: i }) {
|
|
|
82
83
|
});
|
|
83
84
|
return l === void 0 ? n.some((e) => h(e.at, r)) ? "A marker lies outside the domain." : void 0 : `Event ${l.id} must start inside the domain and, when it has an end, end after its start inside the domain.`;
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
let { lanes: r, events: i, domain: s, markers: m = [], windows: h, defaultWindowId: ne, windowId: _e, onWindowChange: ve, gutterWidth: ye, timeFormat: T, timeZone: be, selected: E, onSelectedChange: xe, ...
|
|
86
|
+
function Ie(t) {
|
|
87
|
+
let { lanes: r, events: i, domain: s, markers: m = [], windows: h, defaultWindowId: ne, windowId: _e, onWindowChange: ve, gutterWidth: ye, timeFormat: T, timeZone: be, selected: E, onSelectedChange: xe, ...Se } = t, { emptyLabel: Ce = "No events in this window.", ...D } = Se, { locale: L, title: R } = D, z = fe("compact"), B = me(), Oe = te(), ke = ee(), Ae = h?.[0]?.id ?? "", [Me, Ie] = he(() => ne ?? Ae), V = _e ?? Me;
|
|
87
88
|
function Le(e) {
|
|
88
|
-
_e === void 0 &&
|
|
89
|
+
_e === void 0 && Ie(e), ve?.(e);
|
|
89
90
|
}
|
|
90
|
-
if (
|
|
91
|
-
...
|
|
91
|
+
if (D.status === "loading") return /* @__PURE__ */ C(ae, {
|
|
92
|
+
...D,
|
|
92
93
|
height: "compact"
|
|
93
94
|
});
|
|
94
95
|
let H = i.map((e) => e.end !== void 0 && e.end <= e.start ? {
|
|
95
96
|
...e,
|
|
96
97
|
end: void 0
|
|
97
|
-
} : e), U = s ??
|
|
98
|
+
} : e), U = s ?? Pe(H, m), Re = h === void 0 || h.length === 0 ? void 0 : h.find((e) => e.id === V) ?? h[0], W = Re?.durationMs ?? null, G = W !== null && W > 0, K = G ? [Math.max(U[0], U[1] - W), U[1]] : U, q = G ? H.flatMap((e) => {
|
|
98
99
|
if ((e.end ?? e.start) < K[0] || e.start > K[1]) return [];
|
|
99
100
|
let t = Math.max(K[0], e.start), n = e.end === void 0 ? void 0 : Math.min(K[1], e.end), r = n !== void 0 && n > t ? n : void 0;
|
|
100
101
|
return [{
|
|
@@ -102,7 +103,7 @@ function Pe(t) {
|
|
|
102
103
|
start: t,
|
|
103
104
|
end: r
|
|
104
105
|
}];
|
|
105
|
-
}) : H, ze = G ? m.filter((e) => e.at >= K[0] && e.at <= K[1]) : m, J = typeof T == "function" ? be : T.timeZone, Be =
|
|
106
|
+
}) : H, ze = G ? m.filter((e) => e.at >= K[0] && e.at <= K[1]) : m, J = typeof T == "function" ? be : T.timeZone, Be = Fe({
|
|
106
107
|
lanes: r,
|
|
107
108
|
events: q,
|
|
108
109
|
markers: ze,
|
|
@@ -110,10 +111,10 @@ function Pe(t) {
|
|
|
110
111
|
zone: J
|
|
111
112
|
});
|
|
112
113
|
if (Be !== void 0 || J === void 0) return /* @__PURE__ */ C(se, {
|
|
113
|
-
...
|
|
114
|
+
...D,
|
|
114
115
|
message: Be ?? "The strip needs a time zone."
|
|
115
116
|
});
|
|
116
|
-
let Ve = h === void 0 || h.length <= 1 ?
|
|
117
|
+
let Ve = h === void 0 || h.length <= 1 ? D.actions : /* @__PURE__ */ w(n, { children: [h.map((t) => {
|
|
117
118
|
let n = t.id === Re?.id;
|
|
118
119
|
return /* @__PURE__ */ C(e, {
|
|
119
120
|
type: "button",
|
|
@@ -123,7 +124,7 @@ function Pe(t) {
|
|
|
123
124
|
onClick: () => Le(t.id),
|
|
124
125
|
children: t.label
|
|
125
126
|
}, t.id);
|
|
126
|
-
}),
|
|
127
|
+
}), D.actions] });
|
|
127
128
|
function Y(e) {
|
|
128
129
|
return p({
|
|
129
130
|
timestamp: e,
|
|
@@ -143,7 +144,7 @@ function Pe(t) {
|
|
|
143
144
|
domain: K,
|
|
144
145
|
range: [X.left, X.left + Z]
|
|
145
146
|
}), We = ze.map((e) => {
|
|
146
|
-
let t = Ue.position(e.at), n = e.label, r = `${e.label} · ${Y(e.at)}`, i = n.length *
|
|
147
|
+
let t = Ue.position(e.at), n = e.label, r = `${e.label} · ${Y(e.at)}`, i = n.length * Ee + 10, a = t > X.left + Z * Te;
|
|
147
148
|
return {
|
|
148
149
|
marker: e,
|
|
149
150
|
at: t,
|
|
@@ -158,11 +159,11 @@ function Pe(t) {
|
|
|
158
159
|
track: "markers",
|
|
159
160
|
start: e.start,
|
|
160
161
|
end: e.end
|
|
161
|
-
}))), Ke = Math.max(0, ...We.map((e) => (Ge.get(e.marker.id)?.lane ?? 0) + 1)), qe = X.top + Ke *
|
|
162
|
+
}))), Ke = Math.max(0, ...We.map((e) => (Ge.get(e.marker.id)?.lane ?? 0) + 1)), qe = X.top + Ke * P, Je = (K[1] - K[0]) * M / Z, Ye = (K[1] - K[0]) * we / Z, Xe = ge(q.map((e) => ({
|
|
162
163
|
id: e.id,
|
|
163
164
|
track: e.laneId,
|
|
164
|
-
start: e.end === void 0 ? e.start - Je *
|
|
165
|
-
end: e.end === void 0 ? e.start + Je *
|
|
165
|
+
start: e.end === void 0 ? e.start - Je * I : e.start,
|
|
166
|
+
end: e.end === void 0 ? e.start + Je * I : Math.max(e.end, e.start + Ye)
|
|
166
167
|
}))), Ze = r.map((e) => Math.max(1, ...q.flatMap((t) => t.laneId === e.id ? [(Xe.get(t.id)?.lane ?? 0) + 1] : []))), Qe = r.flatMap((e, t) => Array.from({ length: Ze[t] ?? 1 }, (t, n) => ({
|
|
167
168
|
laneId: e.id,
|
|
168
169
|
row: n
|
|
@@ -193,13 +194,13 @@ function Pe(t) {
|
|
|
193
194
|
label: tt.labels[t] ?? ""
|
|
194
195
|
})), rt = et.map((e) => ({
|
|
195
196
|
key: e.lane.id,
|
|
196
|
-
position: (e.start + e.end) *
|
|
197
|
+
position: (e.start + e.end) * I,
|
|
197
198
|
label: e.lane.label
|
|
198
199
|
})), $ = q.map((e, t) => ({
|
|
199
200
|
event: e,
|
|
200
201
|
index: t
|
|
201
202
|
})).toSorted((e, t) => e.event.start === t.event.start ? e.index - t.index : e.event.start - t.event.start).map((e) => e.event).map((e, t) => {
|
|
202
|
-
let n = et.find((t) => t.lane.id === e.laneId), i = n?.index ?? 0, a = r[i], o = Xe.get(e.id)?.lane ?? 0, s = (n?.start ?? Q.top) + k + (o +
|
|
203
|
+
let n = et.find((t) => t.lane.id === e.laneId), i = n?.index ?? 0, a = r[i], o = Xe.get(e.id)?.lane ?? 0, s = (n?.start ?? Q.top) + k + (o + I) * O, c = Ue.position(e.start), l = e.end === void 0 ? c : Math.max(c + we, Ue.position(e.end)), u = e.tone ?? Oe({
|
|
203
204
|
id: e.laneId,
|
|
204
205
|
tone: a?.tone,
|
|
205
206
|
index: i
|
|
@@ -215,7 +216,7 @@ function Pe(t) {
|
|
|
215
216
|
tone: u
|
|
216
217
|
};
|
|
217
218
|
}), it = $.map(({ event: e, laneLabel: t }) => {
|
|
218
|
-
let n = e.end === void 0 ? Y(e.start) : `${Y(e.start)} – ${Y(e.end)} · ${
|
|
219
|
+
let n = e.end === void 0 ? Y(e.start) : `${Y(e.start)} – ${Y(e.end)} · ${Ne(e.end - e.start, L)}`;
|
|
219
220
|
return {
|
|
220
221
|
id: e.id,
|
|
221
222
|
label: [
|
|
@@ -228,14 +229,14 @@ function Pe(t) {
|
|
|
228
229
|
}), at = 1 / (r.length * 2 + 1);
|
|
229
230
|
function ot(e) {
|
|
230
231
|
let t = e.x / e.width * Q.width, n = e.y / e.height * Q.height, r, i = Infinity;
|
|
231
|
-
for (let e of $) if (t >= e.x1 -
|
|
232
|
+
for (let e of $) if (t >= e.x1 - j - N && t <= e.x2 + j + N && Math.abs(n - e.y) <= O * I) {
|
|
232
233
|
let a = Math.max(e.x1, Math.min(e.x2, t)), o = Math.hypot(t - a, n - e.y);
|
|
233
234
|
o <= i && (i = o, r = e.event.id);
|
|
234
235
|
}
|
|
235
236
|
return r;
|
|
236
237
|
}
|
|
237
238
|
return /* @__PURE__ */ C(o, {
|
|
238
|
-
...
|
|
239
|
+
...ke,
|
|
239
240
|
items: it,
|
|
240
241
|
place: (e) => {
|
|
241
242
|
let t = $.find((t) => t.event.id === e), n = t?.rank ?? 0, r = (t?.laneIndex ?? 0) * at;
|
|
@@ -252,14 +253,14 @@ function Pe(t) {
|
|
|
252
253
|
render: (e, { inspected: t, cursor: n }) => {
|
|
253
254
|
let r = $.find((e) => e.event.id === n);
|
|
254
255
|
return /* @__PURE__ */ C(oe, {
|
|
255
|
-
...
|
|
256
|
+
...D,
|
|
256
257
|
actions: Ve,
|
|
257
258
|
figure: e,
|
|
258
259
|
footer: q.length === 0 ? void 0 : /* @__PURE__ */ C(c, {
|
|
259
260
|
id: B,
|
|
260
261
|
children: a(it, t)
|
|
261
262
|
}),
|
|
262
|
-
children: q.length === 0 ? /* @__PURE__ */ C(_, { children:
|
|
263
|
+
children: q.length === 0 ? /* @__PURE__ */ C(_, { children: Ce }) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w(b, {
|
|
263
264
|
plotRef: z.ref,
|
|
264
265
|
box: Q,
|
|
265
266
|
label: u({
|
|
@@ -288,35 +289,35 @@ function Pe(t) {
|
|
|
288
289
|
x2: Q.right,
|
|
289
290
|
y1: e.start,
|
|
290
291
|
y2: e.start,
|
|
291
|
-
...x.props(ce.grid,
|
|
292
|
+
...x.props(ce.grid, je.separator)
|
|
292
293
|
}, e.lane.id)),
|
|
293
294
|
/* @__PURE__ */ C(pe, {
|
|
294
295
|
box: Q,
|
|
295
296
|
children: $.map((e) => e.event.end === void 0 ? /* @__PURE__ */ C(v, {
|
|
296
297
|
x: e.x1,
|
|
297
298
|
y: e.y,
|
|
298
|
-
radius:
|
|
299
|
+
radius: j,
|
|
299
300
|
tone: e.tone,
|
|
300
301
|
isInspected: t === e.event.id,
|
|
301
302
|
isSelected: E === e.event.id
|
|
302
303
|
}, e.event.id) : /* @__PURE__ */ C(y, {
|
|
303
304
|
x: e.x1,
|
|
304
|
-
y: e.y -
|
|
305
|
+
y: e.y - A * I,
|
|
305
306
|
width: e.x2 - e.x1,
|
|
306
|
-
height:
|
|
307
|
+
height: A,
|
|
307
308
|
tone: e.tone,
|
|
308
309
|
isInspected: t === e.event.id,
|
|
309
310
|
isSelected: E === e.event.id
|
|
310
311
|
}, e.event.id))
|
|
311
312
|
}),
|
|
312
313
|
We.map(({ marker: e, at: t, text: n, tooltip: r, isEnd: i }) => {
|
|
313
|
-
let a = Ge.get(e.id)?.lane ?? 0, o = Q.top - 10 - a *
|
|
314
|
+
let a = Ge.get(e.id)?.lane ?? 0, o = Q.top - 10 - a * P, s = Math.max(Q.left + F, Math.min(Q.right - F, i ? t - F : t + F));
|
|
314
315
|
return /* @__PURE__ */ w("g", { children: [
|
|
315
316
|
/* @__PURE__ */ C("title", { children: r }),
|
|
316
317
|
/* @__PURE__ */ C(de, {
|
|
317
318
|
x1: t,
|
|
318
319
|
x2: t,
|
|
319
|
-
y1: o +
|
|
320
|
+
y1: o + F,
|
|
320
321
|
y2: Q.bottom,
|
|
321
322
|
stroke: "dashed"
|
|
322
323
|
}),
|
|
@@ -329,10 +330,10 @@ function Pe(t) {
|
|
|
329
330
|
] }, e.id);
|
|
330
331
|
}),
|
|
331
332
|
r !== void 0 && /* @__PURE__ */ C(ie, {
|
|
332
|
-
x: (r.x1 + r.x2) *
|
|
333
|
+
x: (r.x1 + r.x2) * I,
|
|
333
334
|
top: Q.top,
|
|
334
335
|
bottom: Q.bottom,
|
|
335
|
-
width:
|
|
336
|
+
width: De
|
|
336
337
|
})
|
|
337
338
|
]
|
|
338
339
|
}), /* @__PURE__ */ C(g, {
|
|
@@ -351,18 +352,18 @@ function Pe(t) {
|
|
|
351
352
|
});
|
|
352
353
|
}
|
|
353
354
|
// packages/charts/src/timeline/waterfall.tsx
|
|
354
|
-
var V = 5,
|
|
355
|
+
var V = 5, Le = 6, H = 14, U = .5, Re = [
|
|
355
356
|
0,
|
|
356
357
|
.5,
|
|
357
358
|
1
|
|
358
|
-
],
|
|
359
|
+
], W = 100, G = 2, K = 14, q = 2, ze = {
|
|
359
360
|
k1xSpc: "x1rg5ohu",
|
|
360
361
|
kzqmXN: "x1v4s8kt",
|
|
361
362
|
kZKoxP: "xols6we",
|
|
362
363
|
kaIpWk: "x1cum3z5",
|
|
363
364
|
kmuXW: "x2lah0s",
|
|
364
365
|
$$css: !0
|
|
365
|
-
},
|
|
366
|
+
}, J = {
|
|
366
367
|
cell: {
|
|
367
368
|
k7Eaqz: "xeuugli",
|
|
368
369
|
k3XXqK: "x1t137rt",
|
|
@@ -372,19 +373,8 @@ var V = 5, Fe = 6, Ie = 14, Le = .5, H = [
|
|
|
372
373
|
kiEn40: "x7s97pk",
|
|
373
374
|
$$css: !0
|
|
374
375
|
},
|
|
375
|
-
nameWrap: {
|
|
376
|
-
k1xSpc: "x78zum5",
|
|
377
|
-
kGNEyG: "x6s0dn4",
|
|
378
|
-
kOIVth: "xunmzkg",
|
|
379
|
-
k7Eaqz: "xeuugli",
|
|
380
|
-
$$css: !0
|
|
381
|
-
},
|
|
382
|
-
indent: (e) => [{
|
|
383
|
-
kZCmMZ: e == null ? e : "xnvo3vl",
|
|
384
|
-
$$css: !0
|
|
385
|
-
}, { "--x-paddingInlineStart": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e) }],
|
|
386
376
|
leafDot: (e) => [
|
|
387
|
-
|
|
377
|
+
ze,
|
|
388
378
|
{
|
|
389
379
|
kWkggS: e == null ? e : "xl8spv7",
|
|
390
380
|
$$css: !0
|
|
@@ -403,7 +393,7 @@ var V = 5, Fe = 6, Ie = 14, Le = .5, H = [
|
|
|
403
393
|
$$css: !0
|
|
404
394
|
}, { "--x-color": e ?? void 0 }]
|
|
405
395
|
};
|
|
406
|
-
function
|
|
396
|
+
function Be(e, t) {
|
|
407
397
|
let n = /* @__PURE__ */ new Set([e]), r = [...t.get(e) ?? []], i = 0;
|
|
408
398
|
for (; r.length > 0;) {
|
|
409
399
|
let e = r.pop();
|
|
@@ -414,8 +404,8 @@ function ze(e, t) {
|
|
|
414
404
|
}
|
|
415
405
|
return i;
|
|
416
406
|
}
|
|
417
|
-
function
|
|
418
|
-
let { actions: g, ..._ } = ae, { title: ce, locale: le } = _, [v, ue] = he(() => /* @__PURE__ */ new Set()), de =
|
|
407
|
+
function Ve({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLabel: l, density: u = "comfortable", emptyLabel: d = "No timing records are available.", selected: f, selectedRef: ee, onSelectedChange: te, onClearSelection: p, highlightedIds: h, onActivate: ne, offsetFormat: ie, ...ae }) {
|
|
408
|
+
let { actions: g, ..._ } = ae, { title: ce, locale: le } = _, [v, ue] = he(() => /* @__PURE__ */ new Set()), de = Y({
|
|
419
409
|
items: r,
|
|
420
410
|
start: a,
|
|
421
411
|
end: o
|
|
@@ -427,17 +417,17 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
427
417
|
});
|
|
428
418
|
let y = s === void 0 ? a : Math.max(a, Math.min(o, s[0])), b = s === void 0 ? o : Math.max(y, Math.min(o, s[1])), fe = b - y, pe = re({
|
|
429
419
|
domain: [y, b],
|
|
430
|
-
range: [0,
|
|
431
|
-
}), me = fe > 0 ?
|
|
420
|
+
range: [0, W]
|
|
421
|
+
}), me = fe > 0 ? Re : [0], ge = r.some((e) => e.geometry.kind !== "unavailable"), S = new Map(r.map((e) => [e.id, e])), D = /* @__PURE__ */ new Map();
|
|
432
422
|
for (let e of r) if (e.parentId !== void 0 && S.has(e.parentId)) {
|
|
433
423
|
let t = D.get(e.parentId);
|
|
434
424
|
t === void 0 ? D.set(e.parentId, [e.id]) : t.push(e.id);
|
|
435
425
|
}
|
|
436
|
-
let O = new Set(D.keys()), k = O.size > 0,
|
|
437
|
-
function
|
|
438
|
-
if (e.depth !== void 0) return Math.max(0, Math.min(
|
|
426
|
+
let O = new Set(D.keys()), k = O.size > 0, A = k && [...O].every((e) => v.has(e));
|
|
427
|
+
function we(e) {
|
|
428
|
+
if (e.depth !== void 0) return Math.max(0, Math.min(Le, e.depth));
|
|
439
429
|
let t = 0, n = e.parentId, r = /* @__PURE__ */ new Set([e.id]);
|
|
440
|
-
for (; n !== void 0 && !r.has(n) && t <
|
|
430
|
+
for (; n !== void 0 && !r.has(n) && t < Le;) {
|
|
441
431
|
r.add(n);
|
|
442
432
|
let e = S.get(n);
|
|
443
433
|
if (e === void 0) break;
|
|
@@ -445,7 +435,7 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
445
435
|
}
|
|
446
436
|
return t;
|
|
447
437
|
}
|
|
448
|
-
function
|
|
438
|
+
function j(e) {
|
|
449
439
|
let t = e.parentId, n = /* @__PURE__ */ new Set([e.id]);
|
|
450
440
|
for (; t !== void 0 && !n.has(t);) {
|
|
451
441
|
if (v.has(t)) return !0;
|
|
@@ -453,22 +443,22 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
453
443
|
}
|
|
454
444
|
return !1;
|
|
455
445
|
}
|
|
456
|
-
let
|
|
457
|
-
function
|
|
446
|
+
let M = r.filter((e) => !j(e)), N = h !== void 0 && h.length > 0 ? new Set(h) : null;
|
|
447
|
+
function P(e) {
|
|
458
448
|
return m({
|
|
459
449
|
value: e,
|
|
460
450
|
locale: le,
|
|
461
451
|
format: ie
|
|
462
452
|
});
|
|
463
453
|
}
|
|
464
|
-
let
|
|
454
|
+
let F = new Map(M.map((e) => [e.id, Z({
|
|
465
455
|
geometry: e.geometry,
|
|
466
456
|
start: a,
|
|
467
|
-
offset:
|
|
468
|
-
})])), Te =
|
|
457
|
+
offset: P
|
|
458
|
+
})])), Te = M.map((e) => ({
|
|
469
459
|
value: e.id,
|
|
470
|
-
label: `${e.label} · ${e.detail} · ${e.summary} · ${
|
|
471
|
-
...
|
|
460
|
+
label: `${e.label} · ${e.detail} · ${e.summary} · ${F.get(e.id)}`,
|
|
461
|
+
...X(e.geometry)
|
|
472
462
|
}));
|
|
473
463
|
function Ee(e) {
|
|
474
464
|
ue((t) => {
|
|
@@ -476,27 +466,19 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
476
466
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
477
467
|
});
|
|
478
468
|
}
|
|
479
|
-
function
|
|
469
|
+
function De({ event: e, itemId: t, hasChildren: n, isCollapsed: r }) {
|
|
480
470
|
let i = f != null;
|
|
481
471
|
e.key === "Escape" && i && p !== void 0 ? (e.preventDefault(), p()) : n && (e.target === e.currentTarget || e.target instanceof Element && e.target.closest("[role=\"rowheader\"]") !== null) && (e.key === "ArrowLeft" && !r || e.key === "ArrowRight" && r) && (e.preventDefault(), Ee(t));
|
|
482
472
|
}
|
|
483
|
-
let
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}),
|
|
491
|
-
|
|
492
|
-
variant: "ghost",
|
|
493
|
-
density: "compact",
|
|
494
|
-
disabled: Ce,
|
|
495
|
-
onClick: () => ue(new Set(O)),
|
|
496
|
-
children: "Collapse all"
|
|
497
|
-
}),
|
|
498
|
-
g
|
|
499
|
-
] }) : g, I = u === "compact", L = j.length === 0 ? /* @__PURE__ */ C("div", {
|
|
473
|
+
let I = k ? /* @__PURE__ */ w(e, {
|
|
474
|
+
variant: "ghost",
|
|
475
|
+
density: "compact",
|
|
476
|
+
onClick: () => ue(A ? /* @__PURE__ */ new Set() : new Set(O)),
|
|
477
|
+
children: [C(A ? ve : _e, {
|
|
478
|
+
size: H,
|
|
479
|
+
"aria-hidden": !0
|
|
480
|
+
}), A ? "Expand all" : "Collapse all"]
|
|
481
|
+
}) : null, L = I === null ? g : g === void 0 ? I : /* @__PURE__ */ w(n, { children: [I, g] }), R = u === "compact", z = M.length === 0 ? /* @__PURE__ */ C("div", {
|
|
500
482
|
role: "group",
|
|
501
483
|
"aria-label": ce,
|
|
502
484
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
@@ -507,30 +489,30 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
507
489
|
children: d
|
|
508
490
|
})
|
|
509
491
|
})
|
|
510
|
-
}) : /* @__PURE__ */ w(
|
|
492
|
+
}) : /* @__PURE__ */ w(ye, {
|
|
511
493
|
items: Te,
|
|
512
494
|
range: [y, b],
|
|
513
495
|
value: f ?? null,
|
|
514
496
|
onValueChange: (e, t) => {
|
|
515
497
|
e !== null && te(e, t);
|
|
516
498
|
},
|
|
517
|
-
getBarLabel: (e) =>
|
|
499
|
+
getBarLabel: (e) => F.get(e.value) ?? "",
|
|
518
500
|
"aria-label": ce,
|
|
519
501
|
className: "xeuugli x1hz01jw x12h1iku",
|
|
520
|
-
children: [/* @__PURE__ */ w(
|
|
521
|
-
className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
502
|
+
children: [/* @__PURE__ */ w(xe, {
|
|
503
|
+
className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 x1pn6w2t x153jb6y xy8obcc xso031l x1q0q8m5 x1qndepd",
|
|
522
504
|
children: [
|
|
523
|
-
/* @__PURE__ */ C(
|
|
505
|
+
/* @__PURE__ */ C(E, { children: /* @__PURE__ */ C(t, {
|
|
524
506
|
variant: "caption",
|
|
525
507
|
tone: "muted",
|
|
526
508
|
children: c
|
|
527
509
|
}) }),
|
|
528
|
-
/* @__PURE__ */ C(
|
|
510
|
+
/* @__PURE__ */ C(E, {
|
|
529
511
|
"aria-label": "Timing",
|
|
530
512
|
className: "xeuugli xl4o6ss x1npkx4u x1v577k8 x1ms6mhf x1aa6nly x78zum5 x1qughib x6s0dn4 xy8obcc xas2l8k xss6m8b",
|
|
531
|
-
children: ge ? me.map((e) => /* @__PURE__ */ C("span", { children:
|
|
513
|
+
children: ge ? me.map((e) => /* @__PURE__ */ C("span", { children: P(y - a + fe * e) }, e)) : /* @__PURE__ */ C("span", { children: "Timing unavailable" })
|
|
532
514
|
}),
|
|
533
|
-
/* @__PURE__ */ C(
|
|
515
|
+
/* @__PURE__ */ C(E, {
|
|
534
516
|
className: "xeuugli x1k3v4rp x14r0xmm x1ms6mhf xp4054r xb3r6kr xuxw1ft xlyipyv xss6m8b",
|
|
535
517
|
children: /* @__PURE__ */ C(t, {
|
|
536
518
|
variant: "caption",
|
|
@@ -539,16 +521,16 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
539
521
|
})
|
|
540
522
|
})
|
|
541
523
|
]
|
|
542
|
-
}),
|
|
543
|
-
let n =
|
|
544
|
-
return /* @__PURE__ */ w(
|
|
524
|
+
}), M.map((e) => {
|
|
525
|
+
let n = F.get(e.id), r = f === e.id, a = N !== null && !N.has(e.id), o = e.tone ?? "neutral", s = i[o], c = we(e), l = O.has(e.id), u = v.has(e.id), d = l && u ? Be(e.id, D) : 0;
|
|
526
|
+
return /* @__PURE__ */ w(Se, {
|
|
545
527
|
value: e.id,
|
|
546
528
|
ref: r ? ee : void 0,
|
|
547
529
|
"aria-controls": e.controls,
|
|
548
530
|
onClick: (e) => {
|
|
549
531
|
r && p !== void 0 && e.detail < 2 && p();
|
|
550
532
|
},
|
|
551
|
-
onKeyDownCapture: (t) =>
|
|
533
|
+
onKeyDownCapture: (t) => De({
|
|
552
534
|
event: t,
|
|
553
535
|
itemId: e.id,
|
|
554
536
|
hasChildren: l,
|
|
@@ -556,56 +538,70 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
556
538
|
}),
|
|
557
539
|
onDoubleClick: () => ne?.(e.id),
|
|
558
540
|
...{
|
|
559
|
-
0: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
560
|
-
4: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
561
|
-
2: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
562
|
-
6: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
563
|
-
1: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
564
|
-
5: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
565
|
-
3: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
566
|
-
7: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4
|
|
567
|
-
}[!!
|
|
541
|
+
0: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf" },
|
|
542
|
+
4: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq" },
|
|
543
|
+
2: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1r7kqkb xh3r7i3" },
|
|
544
|
+
6: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1r7kqkb xh3r7i3" },
|
|
545
|
+
1: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf xtg6wg7" },
|
|
546
|
+
5: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xpvm0e4 xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq xtg6wg7" },
|
|
547
|
+
3: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xdd8jsf x1r7kqkb xh3r7i3 xtg6wg7" },
|
|
548
|
+
7: { className: "xrvj5dj x822y6v x1prkh4w x6s0dn4 xxs79tx x18ljxdw x8zbtdt xh8yej3 x9f619 x5g2kb4 xc342km xso031l x1q0q8m5 x1qndepd xbixft x1hz01jw x1yc453h x1ypdohk x1t137rt xif5pkx x1ecmtor x19rmrnh x9v5kkp x13qnu6 x1bqaal x1t1lzn6 xc9qbxq x1r7kqkb xh3r7i3 xtg6wg7" }
|
|
549
|
+
}[!!R << 2 | !!r << 1 | !!a],
|
|
568
550
|
children: [
|
|
569
|
-
/* @__PURE__ */ C(
|
|
570
|
-
className: "xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk",
|
|
551
|
+
/* @__PURE__ */ C(Ce, {
|
|
552
|
+
className: "xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk x5yr21d x78zum5 x1qjc9v5",
|
|
571
553
|
children: /* @__PURE__ */ w("div", {
|
|
572
|
-
|
|
573
|
-
children: [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
"
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
},
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
554
|
+
className: "x78zum5 x6s0dn4 xeuugli xh8yej3 x5yr21d",
|
|
555
|
+
children: [c > 0 && /* @__PURE__ */ C("span", {
|
|
556
|
+
"aria-hidden": !0,
|
|
557
|
+
className: "x3nfvp2 x1qjc9v5 xkh2ocl x2lah0s",
|
|
558
|
+
children: Array.from({ length: c }, (e, t) => /* @__PURE__ */ C("span", {
|
|
559
|
+
className: "x1n2onr6 x1kky2od x2lah0s",
|
|
560
|
+
children: /* @__PURE__ */ C("span", { className: "x10l6tqk x10no89f xrotz4w x1i1rx1s x1fa40ue x47corl" })
|
|
561
|
+
}, t))
|
|
562
|
+
}), /* @__PURE__ */ w("div", {
|
|
563
|
+
className: "x78zum5 x6s0dn4 xunmzkg xeuugli x98rzlu",
|
|
564
|
+
children: [l ? /* @__PURE__ */ C("button", {
|
|
565
|
+
type: "button",
|
|
566
|
+
"aria-label": u ? `Expand ${e.label}` : `Collapse ${e.label}`,
|
|
567
|
+
"aria-expanded": !u,
|
|
568
|
+
onClick: (t) => {
|
|
569
|
+
t.stopPropagation(), Ee(e.id);
|
|
570
|
+
},
|
|
571
|
+
className: "x3nfvp2 x6s0dn4 xl56j7k x1kky2od xlup9mm x2lah0s x1717udv xc342km x1ok0vyi xjbqb8w x153jb6y xy8obcc x1ypdohk x1mkwuse x16kmaj",
|
|
572
|
+
children: u ? "▸" : "▾"
|
|
573
|
+
}) : k ? /* @__PURE__ */ C("span", {
|
|
574
|
+
"aria-hidden": !0,
|
|
575
|
+
className: "x3nfvp2 x6s0dn4 xl56j7k x1kky2od xlup9mm x2lah0s",
|
|
576
|
+
children: /* @__PURE__ */ C("span", { ...x.props(J.leafDot(s)) })
|
|
577
|
+
}) : /* @__PURE__ */ C("span", { ...x.props(J.leafDot(s)) }), /* @__PURE__ */ w("div", {
|
|
578
|
+
className: "xeuugli x98rzlu xrvj5dj xfko13i",
|
|
579
|
+
children: [/* @__PURE__ */ w("span", {
|
|
580
|
+
className: "x78zum5 x1pha0wt xunmzkg xeuugli",
|
|
581
|
+
children: [/* @__PURE__ */ C("span", {
|
|
582
|
+
title: `${e.label} — ${e.detail}`,
|
|
583
|
+
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
584
|
+
children: /* @__PURE__ */ C(t, { children: e.label })
|
|
585
|
+
}), d > 0 && /* @__PURE__ */ C("span", {
|
|
586
|
+
className: "x153jb6y xy8obcc xss6m8b x2lah0s",
|
|
587
|
+
children: `(${d})`
|
|
588
|
+
})]
|
|
589
|
+
}), !R && /* @__PURE__ */ C("span", {
|
|
590
|
+
title: e.detail,
|
|
588
591
|
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
589
|
-
children: /* @__PURE__ */ C(t, {
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
592
|
+
children: /* @__PURE__ */ C(t, {
|
|
593
|
+
variant: "caption",
|
|
594
|
+
tone: "muted",
|
|
595
|
+
children: e.detail
|
|
596
|
+
})
|
|
593
597
|
})]
|
|
594
|
-
}), !I && /* @__PURE__ */ C("span", {
|
|
595
|
-
title: e.detail,
|
|
596
|
-
className: "x1lliihq xeuugli xb3r6kr xuxw1ft xlyipyv",
|
|
597
|
-
children: /* @__PURE__ */ C(t, {
|
|
598
|
-
variant: "caption",
|
|
599
|
-
tone: "muted",
|
|
600
|
-
children: e.detail
|
|
601
|
-
})
|
|
602
598
|
})]
|
|
603
599
|
})]
|
|
604
600
|
})
|
|
605
601
|
}),
|
|
606
|
-
/* @__PURE__ */ C(
|
|
602
|
+
/* @__PURE__ */ C(T, {
|
|
607
603
|
title: n,
|
|
608
|
-
...x.props(
|
|
604
|
+
...x.props(J.plot, J.cell, J.toned(s)),
|
|
609
605
|
children: e.geometry.kind === "unavailable" ? /* @__PURE__ */ C(t, {
|
|
610
606
|
variant: "caption",
|
|
611
607
|
tone: "muted",
|
|
@@ -614,12 +610,12 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
614
610
|
"aria-hidden": !0,
|
|
615
611
|
className: "x1lliihq xh8yej3 xmix8c7 x1rea2x4",
|
|
616
612
|
children: [me.map((e) => /* @__PURE__ */ C("line", {
|
|
617
|
-
x1: `${e *
|
|
618
|
-
x2: `${e *
|
|
613
|
+
x1: `${e * W}%`,
|
|
614
|
+
x2: `${e * W}%`,
|
|
619
615
|
y1: "0",
|
|
620
616
|
y2: "18",
|
|
621
617
|
className: "x13hfdr1"
|
|
622
|
-
}, e)), /* @__PURE__ */ C(
|
|
618
|
+
}, e)), /* @__PURE__ */ C(He, {
|
|
623
619
|
geometry: e.geometry,
|
|
624
620
|
tone: o,
|
|
625
621
|
scale: pe,
|
|
@@ -628,7 +624,7 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
628
624
|
})]
|
|
629
625
|
})
|
|
630
626
|
}),
|
|
631
|
-
/* @__PURE__ */ C(
|
|
627
|
+
/* @__PURE__ */ C(be, {
|
|
632
628
|
title: n,
|
|
633
629
|
className: "x1k3v4rp x14r0xmm x1ms6mhf xp4054r xb3r6kr xuxw1ft xlyipyv xss6m8b xeuugli x1t137rt x19rmrnh x9v5kkp x13qnu6 x7s97pk",
|
|
634
630
|
children: /* @__PURE__ */ C(t, {
|
|
@@ -643,11 +639,11 @@ function J({ items: r, start: a, end: o, visibleRange: s, rowLabel: c, summaryLa
|
|
|
643
639
|
});
|
|
644
640
|
return /* @__PURE__ */ C(oe, {
|
|
645
641
|
..._,
|
|
646
|
-
actions:
|
|
647
|
-
children:
|
|
642
|
+
actions: L,
|
|
643
|
+
children: z
|
|
648
644
|
});
|
|
649
645
|
}
|
|
650
|
-
function
|
|
646
|
+
function Y({ items: e, start: t, end: n }) {
|
|
651
647
|
if (!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(n - t) || n < t) return "The timing domain must have finite, ordered endpoints.";
|
|
652
648
|
if (!s(e)) return "Timing records must have unique identifiers.";
|
|
653
649
|
for (let r of e) {
|
|
@@ -659,7 +655,7 @@ function Be({ items: e, start: t, end: n }) {
|
|
|
659
655
|
if (e.kind === "point" && (!Number.isFinite(e.at) || e.at < t || e.at > n)) return "Timing points must be finite and fit inside the supplied domain.";
|
|
660
656
|
}
|
|
661
657
|
}
|
|
662
|
-
function
|
|
658
|
+
function He({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
663
659
|
switch (e.kind) {
|
|
664
660
|
case "unavailable": return null;
|
|
665
661
|
case "interval": {
|
|
@@ -671,13 +667,13 @@ function Ve({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
|
671
667
|
r: 3,
|
|
672
668
|
className: "x117rol3"
|
|
673
669
|
});
|
|
674
|
-
let d = Math.max(
|
|
670
|
+
let d = Math.max(U, Math.min(W - l, u));
|
|
675
671
|
return /* @__PURE__ */ C("rect", {
|
|
676
672
|
x: `${l}%`,
|
|
677
|
-
y:
|
|
673
|
+
y: G,
|
|
678
674
|
width: `${d}%`,
|
|
679
|
-
height:
|
|
680
|
-
rx:
|
|
675
|
+
height: K,
|
|
676
|
+
rx: q,
|
|
681
677
|
fill: i[t],
|
|
682
678
|
stroke: r[t],
|
|
683
679
|
className: "xnpr05h x13efnbd"
|
|
@@ -714,7 +710,7 @@ function Ve({ geometry: e, tone: t, scale: n, rangeStart: a, rangeEnd: o }) {
|
|
|
714
710
|
}
|
|
715
711
|
}
|
|
716
712
|
}
|
|
717
|
-
function
|
|
713
|
+
function X(e) {
|
|
718
714
|
switch (e.kind) {
|
|
719
715
|
case "interval": return {
|
|
720
716
|
start: e.start,
|
|
@@ -730,11 +726,11 @@ function Y(e) {
|
|
|
730
726
|
};
|
|
731
727
|
}
|
|
732
728
|
}
|
|
733
|
-
function
|
|
729
|
+
function Z({ geometry: e, start: t, offset: n }) {
|
|
734
730
|
switch (e.kind) {
|
|
735
731
|
case "interval": return `Start ${n(e.start - t)}, end ${n(e.end - t)}, duration ${n(e.end - e.start)}`;
|
|
736
732
|
case "point": return `At ${n(e.at - t)}`;
|
|
737
733
|
case "unavailable": return "Timing unavailable";
|
|
738
734
|
}
|
|
739
735
|
}
|
|
740
|
-
export { D as i,
|
|
736
|
+
export { D as i, Ie as n, Me as r, Ve as t };
|