@flesler/cursor-canvas-web 1.1.0 → 1.1.2
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/cursor-canvas.cjs +1 -1
- package/dist/cursor-canvas.js +604 -426
- package/dist/runtime.cjs +5 -1
- package/dist/runtime.js +35 -27
- package/package.json +2 -1
package/dist/cursor-canvas.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useComputedColorScheme as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useEffect as
|
|
5
|
-
import { r as
|
|
6
|
-
import { c as
|
|
7
|
-
import { BarChart as
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import { useComputedColorScheme as ge, Button as xe, Alert as ve, Card as be, Checkbox as Se, Divider as ke, Title as W, ActionIcon as Ce, Badge as we, Group as Le, Select as Te, Stack as Pe, Text as H, Table as w, Textarea as Ae, TextInput as Me, Switch as Be } from "@mantine/core";
|
|
3
|
+
import { useState as $, createContext as $e, useCallback as _, useContext as oe } from "react";
|
|
4
|
+
import { useEffect as Zt, useMemo as Jt, useRef as Ut, useState as Qt } from "react";
|
|
5
|
+
import { r as Fe, u as te } from "./host-tokens-Dh2BFFjv.js";
|
|
6
|
+
import { c as tr, a as rr, b as nr, d as or, e as ar, f as ir, g as sr, h as lr, i as cr } from "./host-tokens-Dh2BFFjv.js";
|
|
7
|
+
import { BarChart as De, AreaChart as Ee, LineChart as Ie, DonutChart as ze, PieChart as Ne, ChartLegend as Re } from "@mantine/charts";
|
|
8
8
|
const k = {
|
|
9
9
|
success: "#1F8A65",
|
|
10
10
|
danger: "#CF2D56",
|
|
@@ -14,7 +14,7 @@ const k = {
|
|
|
14
14
|
added: "#1F8A65",
|
|
15
15
|
deleted: "#CF2D56",
|
|
16
16
|
renamed: "#5A6CC0"
|
|
17
|
-
},
|
|
17
|
+
}, ae = {
|
|
18
18
|
success: "green",
|
|
19
19
|
danger: "red",
|
|
20
20
|
warning: "orange",
|
|
@@ -24,15 +24,25 @@ const k = {
|
|
|
24
24
|
deleted: "red",
|
|
25
25
|
renamed: "indigo"
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
const t =
|
|
29
|
-
return
|
|
27
|
+
function m() {
|
|
28
|
+
const t = ge("light") === "dark" ? "dark" : "light";
|
|
29
|
+
return Fe(t);
|
|
30
30
|
}
|
|
31
|
+
const ie = {
|
|
32
|
+
verticalAlign: "bottom",
|
|
33
|
+
align: "center"
|
|
34
|
+
}, se = {
|
|
35
|
+
legend: { justifyContent: "center" }
|
|
36
|
+
};
|
|
31
37
|
function G() {
|
|
32
|
-
const t =
|
|
38
|
+
const t = m().chart.sequence;
|
|
33
39
|
return (r, n) => r ? k[r] : t[n % t.length];
|
|
34
40
|
}
|
|
35
|
-
function
|
|
41
|
+
function le() {
|
|
42
|
+
const t = m().text.primary;
|
|
43
|
+
return { textColor: t, barLabelColor: t };
|
|
44
|
+
}
|
|
45
|
+
function ce(e, t) {
|
|
36
46
|
return e.map((r, n) => {
|
|
37
47
|
const i = { category: r };
|
|
38
48
|
for (const o of t)
|
|
@@ -40,17 +50,16 @@ function ot(e, t) {
|
|
|
40
50
|
return i;
|
|
41
51
|
});
|
|
42
52
|
}
|
|
43
|
-
function
|
|
53
|
+
function de(e, t) {
|
|
44
54
|
return e.map((r, n) => ({
|
|
45
55
|
name: r.name,
|
|
46
56
|
color: t(r.tone, n)
|
|
47
57
|
}));
|
|
48
58
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
return (r) => `${t ?? ""}${r}${e ?? ""}`;
|
|
59
|
+
function ue(e, t) {
|
|
60
|
+
return (r) => `${t ?? ""}${r}${e ?? ""}`;
|
|
52
61
|
}
|
|
53
|
-
function
|
|
62
|
+
function He(e, t) {
|
|
54
63
|
if (e != null && e.length)
|
|
55
64
|
return e.map((r) => ({
|
|
56
65
|
...t ? { x: r.value } : { y: r.value },
|
|
@@ -58,8 +67,8 @@ function It(e, t) {
|
|
|
58
67
|
color: r.tone ? k[r.tone] : k.neutral
|
|
59
68
|
}));
|
|
60
69
|
}
|
|
61
|
-
function
|
|
62
|
-
const t =
|
|
70
|
+
function fe(e) {
|
|
71
|
+
const t = He(e.referenceLines, !!e.horizontal);
|
|
63
72
|
if (e.stacked || e.normalized)
|
|
64
73
|
return { referenceLines: t };
|
|
65
74
|
const r = e.beginAtZero !== !1, n = [
|
|
@@ -68,207 +77,376 @@ function st(e) {
|
|
|
68
77
|
];
|
|
69
78
|
return e.horizontal ? { xAxisProps: { domain: n }, referenceLines: t } : { yAxisProps: { domain: n }, referenceLines: t };
|
|
70
79
|
}
|
|
71
|
-
function
|
|
80
|
+
function We(e, t, r) {
|
|
72
81
|
return e !== void 0 ? e : t.length === 1 && r.length <= 8;
|
|
73
82
|
}
|
|
74
|
-
|
|
83
|
+
const re = 14;
|
|
84
|
+
function _e(e) {
|
|
85
|
+
return e.length <= re ? e : `${e.slice(0, re - 1)}…`;
|
|
86
|
+
}
|
|
87
|
+
function Ge(e) {
|
|
88
|
+
var o;
|
|
89
|
+
const t = typeof e.x == "number" ? e.x : Number(e.x) || 0, r = typeof e.y == "number" ? e.y : Number(e.y) || 0, n = String(((o = e.payload) == null ? void 0 : o.value) ?? ""), i = _e(n);
|
|
90
|
+
return /* @__PURE__ */ a("g", { transform: `translate(${t},${r})`, children: /* @__PURE__ */ y(
|
|
91
|
+
"text",
|
|
92
|
+
{
|
|
93
|
+
x: -10,
|
|
94
|
+
y: 0,
|
|
95
|
+
dy: 4,
|
|
96
|
+
textAnchor: "end",
|
|
97
|
+
fill: "currentColor",
|
|
98
|
+
fontSize: 12,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ a("title", { children: n }),
|
|
101
|
+
i
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
) });
|
|
105
|
+
}
|
|
106
|
+
function je(e) {
|
|
107
|
+
return {
|
|
108
|
+
fontWeight: 700,
|
|
109
|
+
fill: e
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function Oe() {
|
|
113
|
+
return {
|
|
114
|
+
yAxisProps: {
|
|
115
|
+
tick: Ge,
|
|
116
|
+
width: 96
|
|
117
|
+
},
|
|
118
|
+
barChartProps: {
|
|
119
|
+
margin: { right: 32 }
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
function Ke() {
|
|
124
|
+
return {
|
|
125
|
+
barChartProps: {
|
|
126
|
+
margin: { top: 22 }
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function dt({
|
|
75
131
|
categories: e,
|
|
76
132
|
series: t,
|
|
77
133
|
height: r = 240,
|
|
78
134
|
fill: n,
|
|
79
135
|
valueSuffix: i,
|
|
80
136
|
valuePrefix: o,
|
|
81
|
-
showValues:
|
|
82
|
-
showHoverGuide:
|
|
137
|
+
showValues: c,
|
|
138
|
+
showHoverGuide: f = !0,
|
|
83
139
|
beginAtZero: d,
|
|
84
|
-
yMin:
|
|
85
|
-
yMax:
|
|
86
|
-
referenceLines:
|
|
87
|
-
style:
|
|
140
|
+
yMin: l,
|
|
141
|
+
yMax: u,
|
|
142
|
+
referenceLines: g,
|
|
143
|
+
style: v,
|
|
144
|
+
smooth: h
|
|
88
145
|
}) {
|
|
89
|
-
const
|
|
146
|
+
const C = G(), S = le(), T = ce(e, t), P = de(t, C), A = fe({
|
|
90
147
|
beginAtZero: d,
|
|
91
|
-
yMin:
|
|
92
|
-
yMax:
|
|
93
|
-
referenceLines:
|
|
148
|
+
yMin: l,
|
|
149
|
+
yMax: u,
|
|
150
|
+
referenceLines: g,
|
|
94
151
|
horizontal: !1
|
|
95
|
-
}),
|
|
152
|
+
}), L = {
|
|
96
153
|
h: r,
|
|
97
|
-
data:
|
|
154
|
+
data: T,
|
|
98
155
|
dataKey: "category",
|
|
99
|
-
series:
|
|
100
|
-
curveType: "monotone",
|
|
156
|
+
series: P,
|
|
157
|
+
curveType: h ? "monotone" : "linear",
|
|
101
158
|
withLegend: t.length > 1,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
159
|
+
legendProps: ie,
|
|
160
|
+
valueFormatter: ue(i, o),
|
|
161
|
+
withPointLabels: c ?? e.length <= 20,
|
|
162
|
+
tooltipProps: f ? void 0 : { cursor: !1 },
|
|
163
|
+
styles: {
|
|
164
|
+
...se,
|
|
165
|
+
legendItemName: { color: S.textColor }
|
|
166
|
+
},
|
|
167
|
+
...S,
|
|
168
|
+
...A,
|
|
169
|
+
style: v
|
|
107
170
|
};
|
|
108
|
-
return n ? /* @__PURE__ */
|
|
171
|
+
return n ? /* @__PURE__ */ a(Ee, { ...L }) : /* @__PURE__ */ a(Ie, { ...L });
|
|
109
172
|
}
|
|
110
|
-
function
|
|
173
|
+
function ut({
|
|
111
174
|
categories: e,
|
|
112
175
|
series: t,
|
|
113
176
|
height: r = 240,
|
|
114
177
|
stacked: n,
|
|
115
178
|
horizontal: i,
|
|
116
179
|
normalized: o,
|
|
117
|
-
valueSuffix:
|
|
118
|
-
valuePrefix:
|
|
180
|
+
valueSuffix: c,
|
|
181
|
+
valuePrefix: f,
|
|
119
182
|
showValues: d,
|
|
120
|
-
beginAtZero:
|
|
121
|
-
yMin:
|
|
122
|
-
yMax:
|
|
123
|
-
referenceLines:
|
|
124
|
-
style:
|
|
183
|
+
beginAtZero: l,
|
|
184
|
+
yMin: u,
|
|
185
|
+
yMax: g,
|
|
186
|
+
referenceLines: v,
|
|
187
|
+
style: h
|
|
125
188
|
}) {
|
|
126
|
-
const
|
|
127
|
-
beginAtZero:
|
|
128
|
-
yMin:
|
|
129
|
-
yMax:
|
|
130
|
-
referenceLines:
|
|
189
|
+
const C = G(), S = le(), T = ce(e, t), P = o ? "percent" : n ? "stacked" : "default", A = fe({
|
|
190
|
+
beginAtZero: l,
|
|
191
|
+
yMin: u,
|
|
192
|
+
yMax: g,
|
|
193
|
+
referenceLines: v,
|
|
131
194
|
horizontal: i,
|
|
132
195
|
stacked: n,
|
|
133
196
|
normalized: o
|
|
134
|
-
}),
|
|
135
|
-
return /* @__PURE__ */
|
|
136
|
-
|
|
197
|
+
}), L = !n && !o && We(d, t, e);
|
|
198
|
+
return /* @__PURE__ */ a(
|
|
199
|
+
De,
|
|
137
200
|
{
|
|
138
201
|
h: r,
|
|
139
|
-
data:
|
|
202
|
+
data: T,
|
|
140
203
|
dataKey: "category",
|
|
141
|
-
series:
|
|
142
|
-
type:
|
|
204
|
+
series: de(t, C),
|
|
205
|
+
type: P,
|
|
143
206
|
orientation: i ? "vertical" : "horizontal",
|
|
144
207
|
withLegend: t.length > 1,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
208
|
+
legendProps: ie,
|
|
209
|
+
valueFormatter: ue(c, f),
|
|
210
|
+
withBarValueLabel: L,
|
|
211
|
+
...L ? { valueLabelProps: je(S.barLabelColor) } : {},
|
|
212
|
+
...i ? Oe() : L ? Ke() : {},
|
|
213
|
+
styles: {
|
|
214
|
+
...se,
|
|
215
|
+
legendItemName: { color: S.textColor }
|
|
216
|
+
},
|
|
217
|
+
...S,
|
|
218
|
+
...A,
|
|
219
|
+
style: h
|
|
149
220
|
}
|
|
150
221
|
);
|
|
151
222
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
223
|
+
const Xe = 180, Ye = 540;
|
|
224
|
+
function qe(e, t) {
|
|
225
|
+
if (t <= 0)
|
|
226
|
+
return "0%";
|
|
227
|
+
const r = e / t * 100;
|
|
228
|
+
return r < 10 && Math.abs(r - Math.round(r)) > 0.05 ? `${r.toFixed(1)}%` : `${Math.round(r)}%`;
|
|
229
|
+
}
|
|
230
|
+
function Ve(e) {
|
|
231
|
+
return Math.max(28, Math.round(e * 0.22));
|
|
232
|
+
}
|
|
233
|
+
function Ze(e) {
|
|
234
|
+
return e.map((t) => ({
|
|
235
|
+
dataKey: t.name,
|
|
236
|
+
value: t.name,
|
|
237
|
+
color: t.color,
|
|
238
|
+
type: "circle"
|
|
239
|
+
}));
|
|
240
|
+
}
|
|
241
|
+
function Je(e, t) {
|
|
242
|
+
return e.map((r) => ({
|
|
243
|
+
name: r.name,
|
|
244
|
+
color: r.color,
|
|
245
|
+
label: `${r.name} ${qe(r.value, t)}`
|
|
157
246
|
}));
|
|
158
|
-
|
|
247
|
+
}
|
|
248
|
+
function Ue({
|
|
249
|
+
total: e,
|
|
250
|
+
family: t,
|
|
251
|
+
primary: r,
|
|
252
|
+
subtitle: n
|
|
253
|
+
}) {
|
|
254
|
+
return /* @__PURE__ */ y(
|
|
255
|
+
"text",
|
|
256
|
+
{
|
|
257
|
+
x: "50%",
|
|
258
|
+
y: "50%",
|
|
259
|
+
textAnchor: "middle",
|
|
260
|
+
dominantBaseline: "central",
|
|
261
|
+
fontFamily: t,
|
|
262
|
+
children: [
|
|
263
|
+
/* @__PURE__ */ a("tspan", { x: "50%", dy: "-0.4em", fontSize: 20, fontWeight: 600, fill: r, children: e }),
|
|
264
|
+
/* @__PURE__ */ a("tspan", { x: "50%", dy: "1.55em", fontSize: 16, fontWeight: 500, fill: n, children: "Total" })
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
function ft({ data: e, size: t = 200, donut: r, style: n }) {
|
|
270
|
+
const [i, o] = $(null), c = m(), f = G(), d = e.map((h, C) => ({
|
|
271
|
+
name: h.label,
|
|
272
|
+
value: h.value,
|
|
273
|
+
color: f(h.tone, C)
|
|
274
|
+
})), l = d.reduce((h, C) => h + C.value, 0), u = {
|
|
275
|
+
startAngle: Xe,
|
|
276
|
+
endAngle: Ye
|
|
277
|
+
}, g = (h) => ({
|
|
278
|
+
opacity: i === null || i === h ? 1 : 0.35
|
|
279
|
+
}), v = r ? /* @__PURE__ */ a(
|
|
280
|
+
ze,
|
|
281
|
+
{
|
|
282
|
+
data: d,
|
|
283
|
+
size: t,
|
|
284
|
+
thickness: Ve(t),
|
|
285
|
+
withTooltip: !0,
|
|
286
|
+
cellProps: (h) => g(h.name),
|
|
287
|
+
...u,
|
|
288
|
+
children: /* @__PURE__ */ a(
|
|
289
|
+
Ue,
|
|
290
|
+
{
|
|
291
|
+
total: l,
|
|
292
|
+
family: c.typography.fontFamily,
|
|
293
|
+
primary: c.text.primary,
|
|
294
|
+
subtitle: c.text.secondary
|
|
295
|
+
}
|
|
296
|
+
)
|
|
297
|
+
}
|
|
298
|
+
) : /* @__PURE__ */ a(
|
|
299
|
+
Ne,
|
|
300
|
+
{
|
|
301
|
+
data: d,
|
|
302
|
+
size: t,
|
|
303
|
+
withTooltip: !0,
|
|
304
|
+
withLabelsLine: !1,
|
|
305
|
+
cellProps: (h) => g(h.name),
|
|
306
|
+
...u
|
|
307
|
+
}
|
|
308
|
+
);
|
|
309
|
+
return /* @__PURE__ */ y(
|
|
159
310
|
"div",
|
|
160
311
|
{
|
|
161
312
|
style: {
|
|
162
313
|
width: "100%",
|
|
163
|
-
height: t,
|
|
164
|
-
minHeight: t,
|
|
165
314
|
display: "flex",
|
|
315
|
+
flexDirection: "column",
|
|
166
316
|
alignItems: "center",
|
|
167
|
-
|
|
317
|
+
...n
|
|
168
318
|
},
|
|
169
|
-
children:
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
319
|
+
children: [
|
|
320
|
+
/* @__PURE__ */ a(
|
|
321
|
+
"div",
|
|
322
|
+
{
|
|
323
|
+
style: {
|
|
324
|
+
width: "100%",
|
|
325
|
+
height: t,
|
|
326
|
+
minHeight: t,
|
|
327
|
+
display: "flex",
|
|
328
|
+
alignItems: "center",
|
|
329
|
+
justifyContent: "center"
|
|
330
|
+
},
|
|
331
|
+
children: v
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ a(
|
|
335
|
+
Re,
|
|
336
|
+
{
|
|
337
|
+
payload: Ze(d),
|
|
338
|
+
series: Je(d, l),
|
|
339
|
+
legendPosition: "bottom",
|
|
340
|
+
centered: !0,
|
|
341
|
+
onHighlight: o,
|
|
342
|
+
mt: "sm",
|
|
343
|
+
w: "100%",
|
|
344
|
+
styles: {
|
|
345
|
+
legend: {
|
|
346
|
+
justifyContent: "center",
|
|
347
|
+
gap: 12,
|
|
348
|
+
color: c.text.primary
|
|
349
|
+
},
|
|
350
|
+
legendItemName: {
|
|
351
|
+
color: c.text.primary
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
)
|
|
356
|
+
]
|
|
179
357
|
}
|
|
180
358
|
);
|
|
181
359
|
}
|
|
182
|
-
function
|
|
360
|
+
function ht(e) {
|
|
183
361
|
const {
|
|
184
362
|
nodes: t,
|
|
185
363
|
edges: r,
|
|
186
364
|
direction: n = "vertical",
|
|
187
365
|
nodeWidth: i = 160,
|
|
188
366
|
nodeHeight: o = 40,
|
|
189
|
-
rankGap:
|
|
190
|
-
nodeGap:
|
|
367
|
+
rankGap: c = 64,
|
|
368
|
+
nodeGap: f = 48,
|
|
191
369
|
padding: d = 24
|
|
192
|
-
} = e,
|
|
193
|
-
for (const
|
|
194
|
-
for (const
|
|
195
|
-
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
for (const
|
|
199
|
-
const
|
|
200
|
-
|
|
370
|
+
} = e, l = t.map((s) => s.id), u = new Set(l), g = /* @__PURE__ */ new Map();
|
|
371
|
+
for (const s of l) g.set(s, []);
|
|
372
|
+
for (const s of r)
|
|
373
|
+
u.has(s.from) && u.has(s.to) && g.get(s.from).push(s.to);
|
|
374
|
+
const v = 0, h = 1, C = 2, S = new Map(l.map((s) => [s, v])), T = /* @__PURE__ */ new Set(), P = (s, p) => `${s}\0${p}`, A = (s) => {
|
|
375
|
+
S.set(s, h);
|
|
376
|
+
for (const p of g.get(s) ?? []) {
|
|
377
|
+
const x = S.get(p);
|
|
378
|
+
x === h ? T.add(P(s, p)) : x === v && A(p);
|
|
201
379
|
}
|
|
202
|
-
|
|
380
|
+
S.set(s, C);
|
|
203
381
|
};
|
|
204
|
-
for (const
|
|
205
|
-
const
|
|
206
|
-
(
|
|
207
|
-
),
|
|
208
|
-
for (const
|
|
209
|
-
|
|
210
|
-
const
|
|
211
|
-
for (;
|
|
212
|
-
const
|
|
213
|
-
for (const
|
|
214
|
-
|
|
382
|
+
for (const s of l) S.get(s) === v && A(s);
|
|
383
|
+
const L = r.filter(
|
|
384
|
+
(s) => u.has(s.from) && u.has(s.to) && !T.has(P(s.from, s.to))
|
|
385
|
+
), M = new Map(l.map((s) => [s, 0])), K = new Map(l.map((s) => [s, []]));
|
|
386
|
+
for (const s of L)
|
|
387
|
+
K.get(s.from).push(s.to), M.set(s.to, (M.get(s.to) ?? 0) + 1);
|
|
388
|
+
const F = new Map(l.map((s) => [s, 0])), z = l.filter((s) => (M.get(s) ?? 0) === 0);
|
|
389
|
+
for (; z.length > 0; ) {
|
|
390
|
+
const s = z.shift(), p = F.get(s);
|
|
391
|
+
for (const x of K.get(s))
|
|
392
|
+
F.set(x, Math.max(F.get(x), p + 1)), M.set(x, M.get(x) - 1), M.get(x) === 0 && z.push(x);
|
|
215
393
|
}
|
|
216
|
-
const
|
|
217
|
-
for (const
|
|
218
|
-
const
|
|
219
|
-
|
|
394
|
+
const B = /* @__PURE__ */ new Map();
|
|
395
|
+
for (const s of l) {
|
|
396
|
+
const p = F.get(s);
|
|
397
|
+
B.has(p) || B.set(p, []), B.get(p).push(s);
|
|
220
398
|
}
|
|
221
|
-
const
|
|
399
|
+
const D = [...B.keys()].sort((s, p) => s - p), b = n === "vertical", X = (s) => s * (b ? i : o) + Math.max(0, s - 1) * f, Y = Math.max(
|
|
222
400
|
0,
|
|
223
|
-
...
|
|
224
|
-
),
|
|
225
|
-
|
|
226
|
-
const
|
|
227
|
-
|
|
228
|
-
const
|
|
229
|
-
|
|
401
|
+
...D.map((s) => X(B.get(s).length))
|
|
402
|
+
), E = /* @__PURE__ */ new Map(), q = [];
|
|
403
|
+
D.forEach((s, p) => {
|
|
404
|
+
const x = B.get(s), N = X(x.length), R = d + (Y - N) / 2, I = d + p * ((b ? o : i) + c);
|
|
405
|
+
x.forEach((U, Q) => {
|
|
406
|
+
const ee = R + Q * ((b ? i : o) + f), ye = b ? ee : I, me = b ? I : ee;
|
|
407
|
+
E.set(U, { id: U, x: ye, y: me, rank: s, order: Q });
|
|
230
408
|
}), q.push({
|
|
231
|
-
rank:
|
|
232
|
-
x:
|
|
233
|
-
y:
|
|
234
|
-
width:
|
|
235
|
-
height:
|
|
236
|
-
nodeIds:
|
|
409
|
+
rank: s,
|
|
410
|
+
x: b ? R : I,
|
|
411
|
+
y: b ? I : R,
|
|
412
|
+
width: b ? N : i,
|
|
413
|
+
height: b ? o : N,
|
|
414
|
+
nodeIds: x
|
|
237
415
|
});
|
|
238
416
|
});
|
|
239
|
-
const V = (
|
|
240
|
-
x:
|
|
241
|
-
y:
|
|
417
|
+
const V = (s, p) => s ? b ? {
|
|
418
|
+
x: s.x + i / 2,
|
|
419
|
+
y: p === "source" ? s.y + o : s.y
|
|
242
420
|
} : {
|
|
243
|
-
x:
|
|
244
|
-
y:
|
|
245
|
-
} : { x: 0, y: 0 },
|
|
246
|
-
const
|
|
421
|
+
x: p === "source" ? s.x + i : s.x,
|
|
422
|
+
y: s.y + o / 2
|
|
423
|
+
} : { x: 0, y: 0 }, pe = r.filter((s) => u.has(s.from) && u.has(s.to)).map((s) => {
|
|
424
|
+
const p = V(E.get(s.from), "source"), x = V(E.get(s.to), "target");
|
|
247
425
|
return {
|
|
248
|
-
from:
|
|
249
|
-
to:
|
|
250
|
-
sourceX:
|
|
251
|
-
sourceY:
|
|
252
|
-
targetX:
|
|
253
|
-
targetY:
|
|
254
|
-
isBackEdge: T.has(
|
|
426
|
+
from: s.from,
|
|
427
|
+
to: s.to,
|
|
428
|
+
sourceX: p.x,
|
|
429
|
+
sourceY: p.y,
|
|
430
|
+
targetX: x.x,
|
|
431
|
+
targetY: x.y,
|
|
432
|
+
isBackEdge: T.has(P(s.from, s.to))
|
|
255
433
|
};
|
|
256
|
-
}),
|
|
434
|
+
}), Z = d * 2 + D.length * (b ? o : i) + Math.max(0, D.length - 1) * c, J = d * 2 + Y;
|
|
257
435
|
return {
|
|
258
|
-
nodes: [...
|
|
259
|
-
edges:
|
|
436
|
+
nodes: [...E.values()],
|
|
437
|
+
edges: pe,
|
|
260
438
|
ranks: q,
|
|
261
439
|
direction: n,
|
|
262
|
-
width:
|
|
263
|
-
height:
|
|
440
|
+
width: b ? J : Z,
|
|
441
|
+
height: b ? Z : J
|
|
264
442
|
};
|
|
265
443
|
}
|
|
266
|
-
function
|
|
444
|
+
function pt({
|
|
267
445
|
additions: e = 0,
|
|
268
446
|
deletions: t = 0,
|
|
269
447
|
style: r
|
|
270
448
|
}) {
|
|
271
|
-
return e === 0 && t === 0 ? null : /* @__PURE__ */
|
|
449
|
+
return e === 0 && t === 0 ? null : /* @__PURE__ */ y(
|
|
272
450
|
"span",
|
|
273
451
|
{
|
|
274
452
|
style: {
|
|
@@ -280,11 +458,11 @@ function Ut({
|
|
|
280
458
|
...r
|
|
281
459
|
},
|
|
282
460
|
children: [
|
|
283
|
-
e > 0 && /* @__PURE__ */
|
|
461
|
+
e > 0 && /* @__PURE__ */ y("span", { style: { color: k.added }, children: [
|
|
284
462
|
"+",
|
|
285
463
|
e
|
|
286
464
|
] }),
|
|
287
|
-
t > 0 && /* @__PURE__ */
|
|
465
|
+
t > 0 && /* @__PURE__ */ y("span", { style: { color: k.deleted }, children: [
|
|
288
466
|
"-",
|
|
289
467
|
t
|
|
290
468
|
] })
|
|
@@ -292,20 +470,20 @@ function Ut({
|
|
|
292
470
|
}
|
|
293
471
|
);
|
|
294
472
|
}
|
|
295
|
-
const
|
|
473
|
+
const Qe = {
|
|
296
474
|
added: "+",
|
|
297
475
|
removed: "-",
|
|
298
476
|
unchanged: " "
|
|
299
477
|
};
|
|
300
|
-
function
|
|
478
|
+
function yt({
|
|
301
479
|
lines: e,
|
|
302
480
|
showLineNumbers: t = !0,
|
|
303
481
|
coloredLineNumbers: r = !0,
|
|
304
482
|
showAccentStrip: n = !0,
|
|
305
483
|
style: i
|
|
306
484
|
}) {
|
|
307
|
-
const o =
|
|
308
|
-
return /* @__PURE__ */
|
|
485
|
+
const o = m(), c = (l) => l === "added" ? o.diff.insertedLine : l === "removed" ? o.diff.removedLine : "transparent", f = (l) => l === "added" ? o.diff.stripAdded : l === "removed" ? o.diff.stripRemoved : "transparent", d = (l) => r && l === "added" ? k.added : r && l === "removed" ? k.deleted : o.text.tertiary;
|
|
486
|
+
return /* @__PURE__ */ a(
|
|
309
487
|
"div",
|
|
310
488
|
{
|
|
311
489
|
style: {
|
|
@@ -316,17 +494,17 @@ function Zt({
|
|
|
316
494
|
overflowX: "auto",
|
|
317
495
|
...i
|
|
318
496
|
},
|
|
319
|
-
children: e.map((
|
|
497
|
+
children: e.map((l, u) => /* @__PURE__ */ y(
|
|
320
498
|
"div",
|
|
321
499
|
{
|
|
322
500
|
style: {
|
|
323
501
|
display: "flex",
|
|
324
502
|
alignItems: "stretch",
|
|
325
|
-
background: l
|
|
326
|
-
borderLeft: n ? `3px solid ${
|
|
503
|
+
background: c(l.type),
|
|
504
|
+
borderLeft: n ? `3px solid ${f(l.type)}` : void 0
|
|
327
505
|
},
|
|
328
506
|
children: [
|
|
329
|
-
t && /* @__PURE__ */
|
|
507
|
+
t && /* @__PURE__ */ a(
|
|
330
508
|
"span",
|
|
331
509
|
{
|
|
332
510
|
style: {
|
|
@@ -335,12 +513,12 @@ function Zt({
|
|
|
335
513
|
textAlign: "right",
|
|
336
514
|
paddingRight: 10,
|
|
337
515
|
userSelect: "none",
|
|
338
|
-
color: d(
|
|
516
|
+
color: d(l.type)
|
|
339
517
|
},
|
|
340
|
-
children:
|
|
518
|
+
children: l.lineNumber ?? ""
|
|
341
519
|
}
|
|
342
520
|
),
|
|
343
|
-
/* @__PURE__ */
|
|
521
|
+
/* @__PURE__ */ a(
|
|
344
522
|
"span",
|
|
345
523
|
{
|
|
346
524
|
style: {
|
|
@@ -348,12 +526,12 @@ function Zt({
|
|
|
348
526
|
width: 14,
|
|
349
527
|
textAlign: "center",
|
|
350
528
|
userSelect: "none",
|
|
351
|
-
color: d(
|
|
529
|
+
color: d(l.type)
|
|
352
530
|
},
|
|
353
|
-
children:
|
|
531
|
+
children: Qe[l.type]
|
|
354
532
|
}
|
|
355
533
|
),
|
|
356
|
-
/* @__PURE__ */
|
|
534
|
+
/* @__PURE__ */ a(
|
|
357
535
|
"pre",
|
|
358
536
|
{
|
|
359
537
|
style: {
|
|
@@ -362,19 +540,19 @@ function Zt({
|
|
|
362
540
|
whiteSpace: "pre",
|
|
363
541
|
fontFamily: "inherit"
|
|
364
542
|
},
|
|
365
|
-
children:
|
|
543
|
+
children: l.content
|
|
366
544
|
}
|
|
367
545
|
)
|
|
368
546
|
]
|
|
369
547
|
},
|
|
370
|
-
|
|
548
|
+
u
|
|
371
549
|
))
|
|
372
550
|
}
|
|
373
551
|
);
|
|
374
552
|
}
|
|
375
|
-
function
|
|
376
|
-
const t =
|
|
377
|
-
return /* @__PURE__ */
|
|
553
|
+
function et({ status: e }) {
|
|
554
|
+
const t = m(), r = e === "completed" ? k.success : e === "in_progress" ? t.accent.primary : e === "cancelled" ? k.danger : t.text.tertiary;
|
|
555
|
+
return /* @__PURE__ */ y(
|
|
378
556
|
"svg",
|
|
379
557
|
{
|
|
380
558
|
width: 14,
|
|
@@ -384,8 +562,8 @@ function Wt({ status: e }) {
|
|
|
384
562
|
style: { flex: "0 0 auto", marginTop: 3 },
|
|
385
563
|
"aria-hidden": !0,
|
|
386
564
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
e === "completed" && /* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ a("circle", { cx: 7, cy: 7, r: 6, stroke: r, strokeWidth: 1.4 }),
|
|
566
|
+
e === "completed" && /* @__PURE__ */ a(
|
|
389
567
|
"path",
|
|
390
568
|
{
|
|
391
569
|
d: "M4 7.2l2 2 4-4.4",
|
|
@@ -395,8 +573,8 @@ function Wt({ status: e }) {
|
|
|
395
573
|
strokeLinejoin: "round"
|
|
396
574
|
}
|
|
397
575
|
),
|
|
398
|
-
e === "in_progress" && /* @__PURE__ */
|
|
399
|
-
e === "cancelled" && /* @__PURE__ */
|
|
576
|
+
e === "in_progress" && /* @__PURE__ */ a("circle", { cx: 7, cy: 7, r: 3, fill: r }),
|
|
577
|
+
e === "cancelled" && /* @__PURE__ */ a(
|
|
400
578
|
"path",
|
|
401
579
|
{
|
|
402
580
|
d: "M4.8 4.8l4.4 4.4M9.2 4.8l-4.4 4.4",
|
|
@@ -409,16 +587,16 @@ function Wt({ status: e }) {
|
|
|
409
587
|
}
|
|
410
588
|
);
|
|
411
589
|
}
|
|
412
|
-
function
|
|
590
|
+
function tt({
|
|
413
591
|
todos: e,
|
|
414
592
|
dimmedTodoIds: t,
|
|
415
593
|
onTodoClick: r,
|
|
416
594
|
style: n
|
|
417
595
|
}) {
|
|
418
|
-
const i =
|
|
419
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
420
|
-
const
|
|
421
|
-
return /* @__PURE__ */
|
|
596
|
+
const i = m();
|
|
597
|
+
return e.length === 0 ? null : /* @__PURE__ */ a("div", { style: { display: "flex", flexDirection: "column", ...n }, children: e.map((o) => {
|
|
598
|
+
const c = t == null ? void 0 : t.has(o.id);
|
|
599
|
+
return /* @__PURE__ */ y(
|
|
422
600
|
"button",
|
|
423
601
|
{
|
|
424
602
|
type: "button",
|
|
@@ -436,11 +614,11 @@ function Ht({
|
|
|
436
614
|
color: i.text.primary,
|
|
437
615
|
fontSize: 14,
|
|
438
616
|
lineHeight: "20px",
|
|
439
|
-
opacity:
|
|
617
|
+
opacity: c ? 0.45 : 1
|
|
440
618
|
},
|
|
441
619
|
children: [
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ a(et, { status: o.status }),
|
|
621
|
+
/* @__PURE__ */ a(
|
|
444
622
|
"span",
|
|
445
623
|
{
|
|
446
624
|
style: {
|
|
@@ -456,17 +634,17 @@ function Ht({
|
|
|
456
634
|
);
|
|
457
635
|
}) });
|
|
458
636
|
}
|
|
459
|
-
function
|
|
637
|
+
function mt({
|
|
460
638
|
todos: e,
|
|
461
639
|
dimmedTodoIds: t,
|
|
462
640
|
defaultExpanded: r = !1,
|
|
463
641
|
onTodoClick: n,
|
|
464
642
|
style: i
|
|
465
643
|
}) {
|
|
466
|
-
const o =
|
|
644
|
+
const o = m(), [c, f] = $(r);
|
|
467
645
|
if (e.length === 0) return null;
|
|
468
|
-
const d = e.filter((
|
|
469
|
-
return /* @__PURE__ */
|
|
646
|
+
const d = e.filter((l) => l.status === "completed").length;
|
|
647
|
+
return /* @__PURE__ */ y(
|
|
470
648
|
"div",
|
|
471
649
|
{
|
|
472
650
|
style: {
|
|
@@ -476,18 +654,18 @@ function Qt({
|
|
|
476
654
|
...i
|
|
477
655
|
},
|
|
478
656
|
children: [
|
|
479
|
-
/* @__PURE__ */
|
|
657
|
+
/* @__PURE__ */ y(
|
|
480
658
|
"button",
|
|
481
659
|
{
|
|
482
660
|
type: "button",
|
|
483
|
-
onClick: () =>
|
|
661
|
+
onClick: () => f((l) => !l),
|
|
484
662
|
style: {
|
|
485
663
|
display: "flex",
|
|
486
664
|
alignItems: "center",
|
|
487
665
|
gap: 8,
|
|
488
666
|
width: "100%",
|
|
489
667
|
padding: "6px 10px",
|
|
490
|
-
background:
|
|
668
|
+
background: o.fill.secondary,
|
|
491
669
|
border: "none",
|
|
492
670
|
cursor: "pointer",
|
|
493
671
|
color: o.text.secondary,
|
|
@@ -495,7 +673,7 @@ function Qt({
|
|
|
495
673
|
fontWeight: 600
|
|
496
674
|
},
|
|
497
675
|
children: [
|
|
498
|
-
/* @__PURE__ */
|
|
676
|
+
/* @__PURE__ */ a(
|
|
499
677
|
"svg",
|
|
500
678
|
{
|
|
501
679
|
width: 12,
|
|
@@ -503,11 +681,11 @@ function Qt({
|
|
|
503
681
|
viewBox: "0 0 12 12",
|
|
504
682
|
fill: "none",
|
|
505
683
|
style: {
|
|
506
|
-
transform:
|
|
684
|
+
transform: c ? "rotate(90deg)" : "none",
|
|
507
685
|
transition: "transform 120ms"
|
|
508
686
|
},
|
|
509
687
|
"aria-hidden": !0,
|
|
510
|
-
children: /* @__PURE__ */
|
|
688
|
+
children: /* @__PURE__ */ a(
|
|
511
689
|
"path",
|
|
512
690
|
{
|
|
513
691
|
d: "M4 2.5L8 6l-4 3.5",
|
|
@@ -519,9 +697,9 @@ function Qt({
|
|
|
519
697
|
)
|
|
520
698
|
}
|
|
521
699
|
),
|
|
522
|
-
/* @__PURE__ */
|
|
523
|
-
/* @__PURE__ */
|
|
524
|
-
/* @__PURE__ */
|
|
700
|
+
/* @__PURE__ */ a("span", { children: "Todos" }),
|
|
701
|
+
/* @__PURE__ */ a("span", { style: { flex: 1 } }),
|
|
702
|
+
/* @__PURE__ */ y("span", { children: [
|
|
525
703
|
d,
|
|
526
704
|
" of ",
|
|
527
705
|
e.length,
|
|
@@ -530,8 +708,8 @@ function Qt({
|
|
|
530
708
|
]
|
|
531
709
|
}
|
|
532
710
|
),
|
|
533
|
-
|
|
534
|
-
|
|
711
|
+
c && /* @__PURE__ */ a("div", { style: { padding: 6 }, children: /* @__PURE__ */ a(
|
|
712
|
+
tt,
|
|
535
713
|
{
|
|
536
714
|
todos: e,
|
|
537
715
|
dimmedTodoIds: t,
|
|
@@ -542,19 +720,19 @@ function Qt({
|
|
|
542
720
|
}
|
|
543
721
|
);
|
|
544
722
|
}
|
|
545
|
-
function
|
|
546
|
-
const r = `canvas:${e}`, [n, i] =
|
|
723
|
+
function gt(e, t) {
|
|
724
|
+
const r = `canvas:${e}`, [n, i] = $(() => {
|
|
547
725
|
if (typeof localStorage > "u") return t;
|
|
548
726
|
try {
|
|
549
|
-
const
|
|
550
|
-
return
|
|
727
|
+
const c = localStorage.getItem(r);
|
|
728
|
+
return c === null ? t : JSON.parse(c);
|
|
551
729
|
} catch {
|
|
552
730
|
return t;
|
|
553
731
|
}
|
|
554
|
-
}), o =
|
|
555
|
-
(
|
|
556
|
-
i((
|
|
557
|
-
const d = typeof
|
|
732
|
+
}), o = _(
|
|
733
|
+
(c) => {
|
|
734
|
+
i((f) => {
|
|
735
|
+
const d = typeof c == "function" ? c(f) : c;
|
|
558
736
|
try {
|
|
559
737
|
localStorage == null || localStorage.setItem(r, JSON.stringify(d));
|
|
560
738
|
} catch {
|
|
@@ -566,14 +744,14 @@ function te(e, t) {
|
|
|
566
744
|
);
|
|
567
745
|
return [n, o];
|
|
568
746
|
}
|
|
569
|
-
function
|
|
570
|
-
return
|
|
747
|
+
function xt() {
|
|
748
|
+
return _((e) => {
|
|
571
749
|
}, []);
|
|
572
750
|
}
|
|
573
|
-
function
|
|
751
|
+
function vt(e, t) {
|
|
574
752
|
return { ...e, ...t };
|
|
575
753
|
}
|
|
576
|
-
function
|
|
754
|
+
function j(e, t, r) {
|
|
577
755
|
const n = e.typography[t];
|
|
578
756
|
return {
|
|
579
757
|
fontFamily: e.typography.fontFamily,
|
|
@@ -585,56 +763,56 @@ function N(e, t, r) {
|
|
|
585
763
|
...r
|
|
586
764
|
};
|
|
587
765
|
}
|
|
588
|
-
function
|
|
589
|
-
const r =
|
|
590
|
-
return /* @__PURE__ */
|
|
766
|
+
function bt({ children: e, style: t }) {
|
|
767
|
+
const r = m();
|
|
768
|
+
return /* @__PURE__ */ a(W, { order: 1, style: j(r, "h1", t), children: e });
|
|
591
769
|
}
|
|
592
|
-
function
|
|
593
|
-
const r =
|
|
594
|
-
return /* @__PURE__ */
|
|
770
|
+
function St({ children: e, style: t }) {
|
|
771
|
+
const r = m();
|
|
772
|
+
return /* @__PURE__ */ a(W, { order: 2, style: j(r, "h2", t), children: e });
|
|
595
773
|
}
|
|
596
|
-
function
|
|
597
|
-
const r =
|
|
598
|
-
return /* @__PURE__ */
|
|
774
|
+
function kt({ children: e, style: t }) {
|
|
775
|
+
const r = m();
|
|
776
|
+
return /* @__PURE__ */ a(W, { order: 3, style: j(r, "h3", t), children: e });
|
|
599
777
|
}
|
|
600
|
-
const
|
|
778
|
+
const rt = {
|
|
601
779
|
normal: 400,
|
|
602
780
|
medium: 500,
|
|
603
781
|
semibold: 600,
|
|
604
782
|
bold: 700
|
|
605
783
|
};
|
|
606
|
-
function
|
|
784
|
+
function Ct({
|
|
607
785
|
children: e,
|
|
608
786
|
tone: t = "primary",
|
|
609
787
|
size: r = "body",
|
|
610
788
|
as: n = "p",
|
|
611
789
|
weight: i = "normal",
|
|
612
790
|
italic: o,
|
|
613
|
-
truncate:
|
|
614
|
-
style:
|
|
791
|
+
truncate: c,
|
|
792
|
+
style: f
|
|
615
793
|
}) {
|
|
616
|
-
const d =
|
|
617
|
-
return /* @__PURE__ */
|
|
794
|
+
const d = m();
|
|
795
|
+
return /* @__PURE__ */ a(
|
|
618
796
|
H,
|
|
619
797
|
{
|
|
620
798
|
component: n,
|
|
621
799
|
size: r === "small" ? "xs" : "sm",
|
|
622
|
-
fw:
|
|
800
|
+
fw: rt[i],
|
|
623
801
|
c: t === "primary" ? void 0 : d.text[t],
|
|
624
|
-
truncate:
|
|
802
|
+
truncate: c,
|
|
625
803
|
style: {
|
|
626
804
|
fontStyle: o ? "italic" : void 0,
|
|
627
805
|
...t === "primary" ? { color: d.text.primary } : void 0,
|
|
628
806
|
fontFamily: d.typography.fontFamily,
|
|
629
|
-
...
|
|
807
|
+
...f
|
|
630
808
|
},
|
|
631
809
|
children: e
|
|
632
810
|
}
|
|
633
811
|
);
|
|
634
812
|
}
|
|
635
|
-
function
|
|
636
|
-
const r =
|
|
637
|
-
return /* @__PURE__ */
|
|
813
|
+
function wt({ children: e, style: t }) {
|
|
814
|
+
const r = m();
|
|
815
|
+
return /* @__PURE__ */ a(
|
|
638
816
|
"code",
|
|
639
817
|
{
|
|
640
818
|
style: {
|
|
@@ -650,9 +828,9 @@ function se({ children: e, style: t }) {
|
|
|
650
828
|
}
|
|
651
829
|
);
|
|
652
830
|
}
|
|
653
|
-
function
|
|
654
|
-
const n =
|
|
655
|
-
return /* @__PURE__ */
|
|
831
|
+
function Lt({ children: e, href: t, style: r }) {
|
|
832
|
+
const n = m();
|
|
833
|
+
return /* @__PURE__ */ a(
|
|
656
834
|
"a",
|
|
657
835
|
{
|
|
658
836
|
href: t,
|
|
@@ -663,17 +841,17 @@ function ce({ children: e, href: t, style: r }) {
|
|
|
663
841
|
}
|
|
664
842
|
);
|
|
665
843
|
}
|
|
666
|
-
function
|
|
667
|
-
return /* @__PURE__ */
|
|
844
|
+
function Tt({ children: e, gap: t, style: r }) {
|
|
845
|
+
return /* @__PURE__ */ a(Pe, { gap: t, style: r, children: e });
|
|
668
846
|
}
|
|
669
|
-
const
|
|
847
|
+
const ne = {
|
|
670
848
|
start: "flex-start",
|
|
671
849
|
center: "center",
|
|
672
850
|
end: "flex-end",
|
|
673
851
|
stretch: "stretch",
|
|
674
852
|
"space-between": "space-between"
|
|
675
853
|
};
|
|
676
|
-
function
|
|
854
|
+
function Pt({
|
|
677
855
|
children: e,
|
|
678
856
|
gap: t,
|
|
679
857
|
align: r = "center",
|
|
@@ -681,24 +859,24 @@ function de({
|
|
|
681
859
|
wrap: i = !1,
|
|
682
860
|
style: o
|
|
683
861
|
}) {
|
|
684
|
-
return /* @__PURE__ */
|
|
685
|
-
|
|
862
|
+
return /* @__PURE__ */ a(
|
|
863
|
+
Le,
|
|
686
864
|
{
|
|
687
865
|
gap: t,
|
|
688
|
-
align:
|
|
689
|
-
justify:
|
|
866
|
+
align: ne[r],
|
|
867
|
+
justify: ne[n],
|
|
690
868
|
wrap: i ? "wrap" : "nowrap",
|
|
691
869
|
style: o,
|
|
692
870
|
children: e
|
|
693
871
|
}
|
|
694
872
|
);
|
|
695
873
|
}
|
|
696
|
-
function
|
|
697
|
-
return /* @__PURE__ */
|
|
874
|
+
function At() {
|
|
875
|
+
return /* @__PURE__ */ a("div", { style: { flex: 1 } });
|
|
698
876
|
}
|
|
699
|
-
function
|
|
877
|
+
function Mt({ children: e, columns: t, gap: r = 16, align: n, style: i }) {
|
|
700
878
|
const o = typeof t == "number" ? `repeat(${t}, minmax(0, 1fr))` : t;
|
|
701
|
-
return /* @__PURE__ */
|
|
879
|
+
return /* @__PURE__ */ a(
|
|
702
880
|
"div",
|
|
703
881
|
{
|
|
704
882
|
style: {
|
|
@@ -712,49 +890,49 @@ function fe({ children: e, columns: t, gap: r = 16, align: n, style: i }) {
|
|
|
712
890
|
}
|
|
713
891
|
);
|
|
714
892
|
}
|
|
715
|
-
function
|
|
716
|
-
return /* @__PURE__ */
|
|
893
|
+
function Bt({ style: e }) {
|
|
894
|
+
return /* @__PURE__ */ a(ke, { style: e });
|
|
717
895
|
}
|
|
718
|
-
const O =
|
|
896
|
+
const O = $e({
|
|
719
897
|
collapsible: !1,
|
|
720
898
|
open: !0,
|
|
721
899
|
toggle: () => {
|
|
722
900
|
}
|
|
723
901
|
});
|
|
724
|
-
function
|
|
902
|
+
function $t({
|
|
725
903
|
children: e,
|
|
726
904
|
variant: t = "default",
|
|
727
905
|
collapsible: r = !1,
|
|
728
906
|
defaultOpen: n = !0,
|
|
729
907
|
open: i,
|
|
730
908
|
onOpenChange: o,
|
|
731
|
-
style:
|
|
909
|
+
style: c
|
|
732
910
|
}) {
|
|
733
|
-
const
|
|
734
|
-
const
|
|
735
|
-
i === void 0 &&
|
|
736
|
-
}, [
|
|
737
|
-
return /* @__PURE__ */
|
|
738
|
-
|
|
911
|
+
const f = m(), [d, l] = $(n), u = i ?? d, g = _(() => {
|
|
912
|
+
const v = !u;
|
|
913
|
+
i === void 0 && l(v), o == null || o(v);
|
|
914
|
+
}, [u, i, o]);
|
|
915
|
+
return /* @__PURE__ */ a(
|
|
916
|
+
be,
|
|
739
917
|
{
|
|
740
918
|
withBorder: t !== "borderless",
|
|
741
|
-
radius:
|
|
919
|
+
radius: f.radius.md,
|
|
742
920
|
padding: 0,
|
|
743
921
|
style: {
|
|
744
|
-
background:
|
|
745
|
-
borderColor:
|
|
746
|
-
...
|
|
922
|
+
background: f.bg.elevated,
|
|
923
|
+
borderColor: f.stroke.secondary,
|
|
924
|
+
...c
|
|
747
925
|
},
|
|
748
|
-
children: /* @__PURE__ */
|
|
926
|
+
children: /* @__PURE__ */ a(O.Provider, { value: { collapsible: r, open: u, toggle: g }, children: e })
|
|
749
927
|
}
|
|
750
928
|
);
|
|
751
929
|
}
|
|
752
|
-
function
|
|
753
|
-
const n =
|
|
754
|
-
return /* @__PURE__ */
|
|
930
|
+
function Ft({ children: e, trailing: t, style: r }) {
|
|
931
|
+
const n = m(), { collapsible: i, open: o, toggle: c } = oe(O);
|
|
932
|
+
return /* @__PURE__ */ y(
|
|
755
933
|
"div",
|
|
756
934
|
{
|
|
757
|
-
onClick: i ?
|
|
935
|
+
onClick: i ? c : void 0,
|
|
758
936
|
style: {
|
|
759
937
|
display: "flex",
|
|
760
938
|
alignItems: "center",
|
|
@@ -764,28 +942,28 @@ function ye({ children: e, trailing: t, style: r }) {
|
|
|
764
942
|
borderBottom: `1px solid ${n.stroke.secondary}`,
|
|
765
943
|
fontSize: n.typography.small.fontSize,
|
|
766
944
|
fontWeight: n.typography.h3.fontWeight,
|
|
767
|
-
color: n.text.
|
|
945
|
+
color: n.text.primary,
|
|
768
946
|
fontFamily: n.typography.fontFamily,
|
|
769
947
|
cursor: i ? "pointer" : void 0,
|
|
770
948
|
userSelect: i ? "none" : void 0,
|
|
771
949
|
...r
|
|
772
950
|
},
|
|
773
951
|
children: [
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
i && /* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ y("span", { style: { display: "inline-flex", alignItems: "center", gap: 6 }, children: [
|
|
953
|
+
i && /* @__PURE__ */ a(he, { expanded: o }),
|
|
776
954
|
e
|
|
777
955
|
] }),
|
|
778
|
-
t != null && /* @__PURE__ */
|
|
956
|
+
t != null && /* @__PURE__ */ a("span", { children: t })
|
|
779
957
|
]
|
|
780
958
|
}
|
|
781
959
|
);
|
|
782
960
|
}
|
|
783
|
-
function
|
|
784
|
-
const { collapsible: r, open: n } =
|
|
785
|
-
return r && !n ? null : /* @__PURE__ */
|
|
961
|
+
function Dt({ children: e, style: t }) {
|
|
962
|
+
const { collapsible: r, open: n } = oe(O);
|
|
963
|
+
return r && !n ? null : /* @__PURE__ */ a("div", { style: { padding: 14, ...t }, children: e });
|
|
786
964
|
}
|
|
787
|
-
function
|
|
788
|
-
return /* @__PURE__ */
|
|
965
|
+
function he({ expanded: e }) {
|
|
966
|
+
return /* @__PURE__ */ a(
|
|
789
967
|
"svg",
|
|
790
968
|
{
|
|
791
969
|
width: 12,
|
|
@@ -797,7 +975,7 @@ function ct({ expanded: e }) {
|
|
|
797
975
|
transition: "transform 120ms"
|
|
798
976
|
},
|
|
799
977
|
"aria-hidden": !0,
|
|
800
|
-
children: /* @__PURE__ */
|
|
978
|
+
children: /* @__PURE__ */ a(
|
|
801
979
|
"path",
|
|
802
980
|
{
|
|
803
981
|
d: "M4 2.5L8 6l-4 3.5",
|
|
@@ -810,10 +988,10 @@ function ct({ expanded: e }) {
|
|
|
810
988
|
}
|
|
811
989
|
);
|
|
812
990
|
}
|
|
813
|
-
function
|
|
814
|
-
const i =
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
-
/* @__PURE__ */
|
|
991
|
+
function Et({ value: e, label: t, tone: r, style: n }) {
|
|
992
|
+
const i = m();
|
|
993
|
+
return /* @__PURE__ */ y("div", { style: n, children: [
|
|
994
|
+
/* @__PURE__ */ a(
|
|
817
995
|
H,
|
|
818
996
|
{
|
|
819
997
|
fz: 22,
|
|
@@ -826,7 +1004,7 @@ function me({ value: e, label: t, tone: r, style: n }) {
|
|
|
826
1004
|
children: e
|
|
827
1005
|
}
|
|
828
1006
|
),
|
|
829
|
-
/* @__PURE__ */
|
|
1007
|
+
/* @__PURE__ */ a(
|
|
830
1008
|
H,
|
|
831
1009
|
{
|
|
832
1010
|
fz: 12,
|
|
@@ -839,47 +1017,47 @@ function me({ value: e, label: t, tone: r, style: n }) {
|
|
|
839
1017
|
)
|
|
840
1018
|
] });
|
|
841
1019
|
}
|
|
842
|
-
function
|
|
1020
|
+
function It({
|
|
843
1021
|
children: e,
|
|
844
1022
|
active: t,
|
|
845
1023
|
tone: r = "neutral",
|
|
846
1024
|
size: n = "md",
|
|
847
1025
|
leadingContent: i,
|
|
848
1026
|
keyboardHint: o,
|
|
849
|
-
title:
|
|
850
|
-
style:
|
|
1027
|
+
title: c,
|
|
1028
|
+
style: f,
|
|
851
1029
|
onClick: d
|
|
852
1030
|
}) {
|
|
853
|
-
return /* @__PURE__ */
|
|
854
|
-
|
|
1031
|
+
return /* @__PURE__ */ a(
|
|
1032
|
+
we,
|
|
855
1033
|
{
|
|
856
|
-
color:
|
|
1034
|
+
color: ae[r],
|
|
857
1035
|
variant: t ? "filled" : "light",
|
|
858
1036
|
size: n === "sm" ? "sm" : "md",
|
|
859
1037
|
leftSection: i,
|
|
860
1038
|
rightSection: o,
|
|
861
|
-
title:
|
|
1039
|
+
title: c,
|
|
862
1040
|
onClick: d,
|
|
863
1041
|
style: {
|
|
864
1042
|
cursor: d ? "pointer" : void 0,
|
|
865
1043
|
textTransform: "none",
|
|
866
|
-
...
|
|
1044
|
+
...f
|
|
867
1045
|
},
|
|
868
1046
|
children: e
|
|
869
1047
|
}
|
|
870
1048
|
);
|
|
871
1049
|
}
|
|
872
|
-
function
|
|
1050
|
+
function zt({
|
|
873
1051
|
children: e,
|
|
874
1052
|
tone: t = "neutral",
|
|
875
1053
|
title: r,
|
|
876
1054
|
icon: n,
|
|
877
1055
|
style: i
|
|
878
1056
|
}) {
|
|
879
|
-
return /* @__PURE__ */
|
|
880
|
-
|
|
1057
|
+
return /* @__PURE__ */ a(
|
|
1058
|
+
ve,
|
|
881
1059
|
{
|
|
882
|
-
color:
|
|
1060
|
+
color: ae[t],
|
|
883
1061
|
title: r,
|
|
884
1062
|
icon: n,
|
|
885
1063
|
variant: "light",
|
|
@@ -888,63 +1066,63 @@ function ve({
|
|
|
888
1066
|
}
|
|
889
1067
|
);
|
|
890
1068
|
}
|
|
891
|
-
const
|
|
1069
|
+
const nt = {
|
|
892
1070
|
success: "rgba(31,138,101,0.12)",
|
|
893
1071
|
danger: "rgba(207,45,86,0.12)",
|
|
894
1072
|
warning: "rgba(232,163,61,0.14)",
|
|
895
1073
|
info: "rgba(46,121,181,0.12)",
|
|
896
1074
|
neutral: "rgba(136,136,168,0.12)"
|
|
897
1075
|
};
|
|
898
|
-
function
|
|
1076
|
+
function Nt({
|
|
899
1077
|
headers: e,
|
|
900
1078
|
rows: t,
|
|
901
1079
|
columnAlign: r,
|
|
902
1080
|
rowTone: n,
|
|
903
1081
|
framed: i = !0,
|
|
904
1082
|
striped: o,
|
|
905
|
-
stickyHeader:
|
|
906
|
-
style:
|
|
1083
|
+
stickyHeader: c,
|
|
1084
|
+
style: f,
|
|
907
1085
|
emptyMessage: d
|
|
908
1086
|
}) {
|
|
909
|
-
return /* @__PURE__ */
|
|
910
|
-
|
|
1087
|
+
return /* @__PURE__ */ y(
|
|
1088
|
+
w,
|
|
911
1089
|
{
|
|
912
1090
|
withTableBorder: i,
|
|
913
1091
|
withColumnBorders: !1,
|
|
914
1092
|
striped: o,
|
|
915
|
-
stickyHeader:
|
|
1093
|
+
stickyHeader: c,
|
|
916
1094
|
highlightOnHover: !0,
|
|
917
|
-
style:
|
|
1095
|
+
style: f,
|
|
918
1096
|
children: [
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
/* @__PURE__ */
|
|
921
|
-
const
|
|
922
|
-
return /* @__PURE__ */
|
|
923
|
-
|
|
1097
|
+
/* @__PURE__ */ a(w.Thead, { children: /* @__PURE__ */ a(w.Tr, { children: e.map((l, u) => /* @__PURE__ */ a(w.Th, { ta: (r == null ? void 0 : r[u]) ?? "left", children: l }, u)) }) }),
|
|
1098
|
+
/* @__PURE__ */ a(w.Tbody, { children: t.length === 0 ? /* @__PURE__ */ a(w.Tr, { children: /* @__PURE__ */ a(w.Td, { colSpan: e.length, ta: "center", c: "dimmed", children: d ?? "No data" }) }) : t.map((l, u) => {
|
|
1099
|
+
const g = n == null ? void 0 : n[u];
|
|
1100
|
+
return /* @__PURE__ */ a(
|
|
1101
|
+
w.Tr,
|
|
924
1102
|
{
|
|
925
|
-
style:
|
|
926
|
-
children: e.map((
|
|
927
|
-
|
|
1103
|
+
style: g ? { background: nt[g] } : void 0,
|
|
1104
|
+
children: e.map((v, h) => /* @__PURE__ */ a(
|
|
1105
|
+
w.Td,
|
|
928
1106
|
{
|
|
929
|
-
ta: (r == null ? void 0 : r[
|
|
930
|
-
children:
|
|
1107
|
+
ta: (r == null ? void 0 : r[h]) ?? "left",
|
|
1108
|
+
children: l[h]
|
|
931
1109
|
},
|
|
932
|
-
|
|
1110
|
+
h
|
|
933
1111
|
))
|
|
934
1112
|
},
|
|
935
|
-
|
|
1113
|
+
u
|
|
936
1114
|
);
|
|
937
1115
|
}) })
|
|
938
1116
|
]
|
|
939
1117
|
}
|
|
940
1118
|
);
|
|
941
1119
|
}
|
|
942
|
-
const
|
|
1120
|
+
const ot = {
|
|
943
1121
|
primary: "filled",
|
|
944
1122
|
secondary: "default",
|
|
945
1123
|
ghost: "subtle"
|
|
946
1124
|
};
|
|
947
|
-
function
|
|
1125
|
+
function Rt({
|
|
948
1126
|
children: e,
|
|
949
1127
|
variant: t = "secondary",
|
|
950
1128
|
disabled: r,
|
|
@@ -952,10 +1130,10 @@ function ke({
|
|
|
952
1130
|
style: i,
|
|
953
1131
|
onClick: o
|
|
954
1132
|
}) {
|
|
955
|
-
return /* @__PURE__ */
|
|
956
|
-
|
|
1133
|
+
return /* @__PURE__ */ a(
|
|
1134
|
+
xe,
|
|
957
1135
|
{
|
|
958
|
-
variant:
|
|
1136
|
+
variant: ot[t],
|
|
959
1137
|
color: t === "primary" ? "accent" : void 0,
|
|
960
1138
|
size: "xs",
|
|
961
1139
|
disabled: r,
|
|
@@ -966,17 +1144,17 @@ function ke({
|
|
|
966
1144
|
}
|
|
967
1145
|
);
|
|
968
1146
|
}
|
|
969
|
-
function
|
|
1147
|
+
function Ht({
|
|
970
1148
|
children: e,
|
|
971
1149
|
onClick: t,
|
|
972
1150
|
disabled: r,
|
|
973
1151
|
title: n,
|
|
974
1152
|
variant: i = "default",
|
|
975
1153
|
size: o = "md",
|
|
976
|
-
style:
|
|
1154
|
+
style: c
|
|
977
1155
|
}) {
|
|
978
|
-
return /* @__PURE__ */
|
|
979
|
-
|
|
1156
|
+
return /* @__PURE__ */ a(
|
|
1157
|
+
Ce,
|
|
980
1158
|
{
|
|
981
1159
|
variant: i === "circle" ? "light" : "subtle",
|
|
982
1160
|
radius: i === "circle" ? "xl" : "sm",
|
|
@@ -986,12 +1164,12 @@ function Se({
|
|
|
986
1164
|
title: n,
|
|
987
1165
|
"aria-label": n,
|
|
988
1166
|
onClick: t,
|
|
989
|
-
style:
|
|
1167
|
+
style: c,
|
|
990
1168
|
children: e
|
|
991
1169
|
}
|
|
992
1170
|
);
|
|
993
1171
|
}
|
|
994
|
-
function
|
|
1172
|
+
function Wt({
|
|
995
1173
|
value: e,
|
|
996
1174
|
onChange: t,
|
|
997
1175
|
options: r,
|
|
@@ -999,30 +1177,30 @@ function we({
|
|
|
999
1177
|
disabled: i,
|
|
1000
1178
|
style: o
|
|
1001
1179
|
}) {
|
|
1002
|
-
return /* @__PURE__ */
|
|
1003
|
-
|
|
1180
|
+
return /* @__PURE__ */ a(
|
|
1181
|
+
Te,
|
|
1004
1182
|
{
|
|
1005
1183
|
value: e,
|
|
1006
1184
|
data: r,
|
|
1007
1185
|
placeholder: n,
|
|
1008
1186
|
disabled: i,
|
|
1009
1187
|
allowDeselect: !1,
|
|
1010
|
-
onChange: (
|
|
1011
|
-
|
|
1188
|
+
onChange: (c) => {
|
|
1189
|
+
c !== null && (t == null || t(c));
|
|
1012
1190
|
},
|
|
1013
1191
|
style: o
|
|
1014
1192
|
}
|
|
1015
1193
|
);
|
|
1016
1194
|
}
|
|
1017
|
-
function
|
|
1195
|
+
function _t({
|
|
1018
1196
|
checked: e,
|
|
1019
1197
|
onChange: t,
|
|
1020
1198
|
disabled: r,
|
|
1021
1199
|
label: n,
|
|
1022
1200
|
style: i
|
|
1023
1201
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1025
|
-
|
|
1202
|
+
return /* @__PURE__ */ a(
|
|
1203
|
+
Se,
|
|
1026
1204
|
{
|
|
1027
1205
|
checked: e,
|
|
1028
1206
|
disabled: r,
|
|
@@ -1032,15 +1210,15 @@ function Ce({
|
|
|
1032
1210
|
}
|
|
1033
1211
|
);
|
|
1034
1212
|
}
|
|
1035
|
-
function
|
|
1213
|
+
function Gt({
|
|
1036
1214
|
checked: e,
|
|
1037
1215
|
onChange: t,
|
|
1038
1216
|
disabled: r,
|
|
1039
1217
|
size: n = "sm",
|
|
1040
1218
|
style: i
|
|
1041
1219
|
}) {
|
|
1042
|
-
return /* @__PURE__ */
|
|
1043
|
-
|
|
1220
|
+
return /* @__PURE__ */ a(
|
|
1221
|
+
Be,
|
|
1044
1222
|
{
|
|
1045
1223
|
checked: e,
|
|
1046
1224
|
disabled: r,
|
|
@@ -1050,7 +1228,7 @@ function Te({
|
|
|
1050
1228
|
}
|
|
1051
1229
|
);
|
|
1052
1230
|
}
|
|
1053
|
-
function
|
|
1231
|
+
function jt({
|
|
1054
1232
|
value: e,
|
|
1055
1233
|
onChange: t,
|
|
1056
1234
|
placeholder: r,
|
|
@@ -1058,19 +1236,19 @@ function Le({
|
|
|
1058
1236
|
type: i,
|
|
1059
1237
|
style: o
|
|
1060
1238
|
}) {
|
|
1061
|
-
return /* @__PURE__ */
|
|
1062
|
-
|
|
1239
|
+
return /* @__PURE__ */ a(
|
|
1240
|
+
Me,
|
|
1063
1241
|
{
|
|
1064
1242
|
value: e,
|
|
1065
1243
|
placeholder: r,
|
|
1066
1244
|
disabled: n,
|
|
1067
1245
|
type: i,
|
|
1068
|
-
onChange: (
|
|
1246
|
+
onChange: (c) => t == null ? void 0 : t(c.currentTarget.value),
|
|
1069
1247
|
style: o
|
|
1070
1248
|
}
|
|
1071
1249
|
);
|
|
1072
1250
|
}
|
|
1073
|
-
function
|
|
1251
|
+
function Ot({
|
|
1074
1252
|
value: e,
|
|
1075
1253
|
onChange: t,
|
|
1076
1254
|
placeholder: r,
|
|
@@ -1078,22 +1256,22 @@ function Me({
|
|
|
1078
1256
|
rows: i = 3,
|
|
1079
1257
|
style: o
|
|
1080
1258
|
}) {
|
|
1081
|
-
return /* @__PURE__ */
|
|
1082
|
-
|
|
1259
|
+
return /* @__PURE__ */ a(
|
|
1260
|
+
Ae,
|
|
1083
1261
|
{
|
|
1084
1262
|
value: e,
|
|
1085
1263
|
placeholder: r,
|
|
1086
1264
|
disabled: n,
|
|
1087
1265
|
autosize: !0,
|
|
1088
1266
|
minRows: i,
|
|
1089
|
-
onChange: (
|
|
1267
|
+
onChange: (c) => t == null ? void 0 : t(c.currentTarget.value),
|
|
1090
1268
|
style: o
|
|
1091
1269
|
}
|
|
1092
1270
|
);
|
|
1093
1271
|
}
|
|
1094
|
-
function
|
|
1095
|
-
const r =
|
|
1096
|
-
return /* @__PURE__ */
|
|
1272
|
+
function Kt({ color: e, style: t }) {
|
|
1273
|
+
const r = m();
|
|
1274
|
+
return /* @__PURE__ */ a(
|
|
1097
1275
|
"span",
|
|
1098
1276
|
{
|
|
1099
1277
|
style: {
|
|
@@ -1108,19 +1286,19 @@ function Be({ color: e, style: t }) {
|
|
|
1108
1286
|
}
|
|
1109
1287
|
);
|
|
1110
1288
|
}
|
|
1111
|
-
function
|
|
1289
|
+
function Xt({
|
|
1112
1290
|
segments: e,
|
|
1113
1291
|
total: t,
|
|
1114
1292
|
topLeftLabel: r,
|
|
1115
1293
|
topRightLabel: n,
|
|
1116
1294
|
style: i
|
|
1117
1295
|
}) {
|
|
1118
|
-
const o =
|
|
1119
|
-
(
|
|
1296
|
+
const o = m(), c = t > 0 ? t : 1, f = e.reduce(
|
|
1297
|
+
(l, u) => l + (Number.isFinite(u.value) && u.value > 0 ? u.value : 0),
|
|
1120
1298
|
0
|
|
1121
|
-
), d = Math.max(0,
|
|
1122
|
-
return /* @__PURE__ */
|
|
1123
|
-
(r != null || n != null) && /* @__PURE__ */
|
|
1299
|
+
), d = Math.max(0, c - f);
|
|
1300
|
+
return /* @__PURE__ */ y("div", { style: i, children: [
|
|
1301
|
+
(r != null || n != null) && /* @__PURE__ */ y(
|
|
1124
1302
|
"div",
|
|
1125
1303
|
{
|
|
1126
1304
|
style: {
|
|
@@ -1131,31 +1309,31 @@ function Fe({
|
|
|
1131
1309
|
marginBottom: 6
|
|
1132
1310
|
},
|
|
1133
1311
|
children: [
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1312
|
+
/* @__PURE__ */ a("span", { children: r }),
|
|
1313
|
+
/* @__PURE__ */ a("span", { children: n })
|
|
1136
1314
|
]
|
|
1137
1315
|
}
|
|
1138
1316
|
),
|
|
1139
|
-
/* @__PURE__ */
|
|
1140
|
-
e.map((
|
|
1141
|
-
const
|
|
1142
|
-
return /* @__PURE__ */
|
|
1317
|
+
/* @__PURE__ */ y("div", { style: { display: "flex", gap: 2, height: 8 }, children: [
|
|
1318
|
+
e.map((l, u) => {
|
|
1319
|
+
const g = Number.isFinite(l.value) && l.value > 0 ? l.value : 0, v = o.category[l.color ?? te[u % te.length]];
|
|
1320
|
+
return /* @__PURE__ */ a(
|
|
1143
1321
|
"div",
|
|
1144
1322
|
{
|
|
1145
1323
|
style: {
|
|
1146
|
-
width: `${
|
|
1147
|
-
background:
|
|
1324
|
+
width: `${g / c * 100}%`,
|
|
1325
|
+
background: v,
|
|
1148
1326
|
borderRadius: 3
|
|
1149
1327
|
}
|
|
1150
1328
|
},
|
|
1151
|
-
|
|
1329
|
+
l.id
|
|
1152
1330
|
);
|
|
1153
1331
|
}),
|
|
1154
|
-
d > 0 && /* @__PURE__ */
|
|
1332
|
+
d > 0 && /* @__PURE__ */ a(
|
|
1155
1333
|
"div",
|
|
1156
1334
|
{
|
|
1157
1335
|
style: {
|
|
1158
|
-
width: `${d /
|
|
1336
|
+
width: `${d / c * 100}%`,
|
|
1159
1337
|
background: o.fill.tertiary,
|
|
1160
1338
|
borderRadius: 3
|
|
1161
1339
|
}
|
|
@@ -1164,21 +1342,21 @@ function Fe({
|
|
|
1164
1342
|
] })
|
|
1165
1343
|
] });
|
|
1166
1344
|
}
|
|
1167
|
-
function
|
|
1345
|
+
function Yt({
|
|
1168
1346
|
title: e,
|
|
1169
1347
|
leading: t,
|
|
1170
1348
|
count: r,
|
|
1171
1349
|
trailing: n,
|
|
1172
1350
|
children: i,
|
|
1173
1351
|
defaultOpen: o = !1,
|
|
1174
|
-
style:
|
|
1352
|
+
style: c
|
|
1175
1353
|
}) {
|
|
1176
|
-
const
|
|
1177
|
-
return /* @__PURE__ */
|
|
1178
|
-
/* @__PURE__ */
|
|
1354
|
+
const f = m(), [d, l] = $(o);
|
|
1355
|
+
return /* @__PURE__ */ y("div", { style: c, children: [
|
|
1356
|
+
/* @__PURE__ */ y(
|
|
1179
1357
|
"div",
|
|
1180
1358
|
{
|
|
1181
|
-
onClick: () =>
|
|
1359
|
+
onClick: () => l((u) => !u),
|
|
1182
1360
|
style: {
|
|
1183
1361
|
display: "flex",
|
|
1184
1362
|
alignItems: "center",
|
|
@@ -1186,75 +1364,75 @@ function $e({
|
|
|
1186
1364
|
padding: "4px 0",
|
|
1187
1365
|
cursor: "pointer",
|
|
1188
1366
|
userSelect: "none",
|
|
1189
|
-
color:
|
|
1367
|
+
color: f.text.primary,
|
|
1190
1368
|
fontSize: 14
|
|
1191
1369
|
},
|
|
1192
1370
|
children: [
|
|
1193
|
-
/* @__PURE__ */
|
|
1371
|
+
/* @__PURE__ */ a(he, { expanded: d }),
|
|
1194
1372
|
t,
|
|
1195
|
-
/* @__PURE__ */
|
|
1196
|
-
r != null && /* @__PURE__ */
|
|
1197
|
-
/* @__PURE__ */
|
|
1198
|
-
n != null && /* @__PURE__ */
|
|
1373
|
+
/* @__PURE__ */ a("span", { style: { fontWeight: 500 }, children: e }),
|
|
1374
|
+
r != null && /* @__PURE__ */ a("span", { style: { color: f.text.tertiary, fontSize: 12 }, children: r }),
|
|
1375
|
+
/* @__PURE__ */ a("span", { style: { flex: 1 } }),
|
|
1376
|
+
n != null && /* @__PURE__ */ a("span", { style: { color: f.text.tertiary }, children: n })
|
|
1199
1377
|
]
|
|
1200
1378
|
}
|
|
1201
1379
|
),
|
|
1202
|
-
d && /* @__PURE__ */
|
|
1380
|
+
d && /* @__PURE__ */ a("div", { style: { paddingLeft: 18, paddingBottom: 4 }, children: i })
|
|
1203
1381
|
] });
|
|
1204
1382
|
}
|
|
1205
1383
|
export {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1384
|
+
ut as BarChart,
|
|
1385
|
+
Rt as Button,
|
|
1386
|
+
zt as Callout,
|
|
1387
|
+
$t as Card,
|
|
1388
|
+
Dt as CardBody,
|
|
1389
|
+
Ft as CardHeader,
|
|
1390
|
+
_t as Checkbox,
|
|
1391
|
+
wt as Code,
|
|
1392
|
+
Yt as CollapsibleSection,
|
|
1393
|
+
pt as DiffStats,
|
|
1394
|
+
yt as DiffView,
|
|
1395
|
+
Bt as Divider,
|
|
1396
|
+
Mt as Grid,
|
|
1397
|
+
bt as H1,
|
|
1398
|
+
St as H2,
|
|
1399
|
+
kt as H3,
|
|
1400
|
+
Ht as IconButton,
|
|
1401
|
+
dt as LineChart,
|
|
1402
|
+
Lt as Link,
|
|
1403
|
+
ft as PieChart,
|
|
1404
|
+
It as Pill,
|
|
1405
|
+
Pt as Row,
|
|
1406
|
+
Wt as Select,
|
|
1407
|
+
At as Spacer,
|
|
1408
|
+
Tt as Stack,
|
|
1409
|
+
Et as Stat,
|
|
1410
|
+
Kt as Swatch,
|
|
1411
|
+
Nt as Table,
|
|
1412
|
+
Ct as Text,
|
|
1413
|
+
Ot as TextArea,
|
|
1414
|
+
jt as TextInput,
|
|
1415
|
+
tt as TodoList,
|
|
1416
|
+
mt as TodoListCard,
|
|
1417
|
+
Gt as Toggle,
|
|
1418
|
+
Xt as UsageBar,
|
|
1419
|
+
tr as canvasPaletteDark,
|
|
1420
|
+
rr as canvasPaletteGrokDark,
|
|
1421
|
+
nr as canvasPaletteGrokLight,
|
|
1422
|
+
or as canvasPaletteLight,
|
|
1423
|
+
ar as canvasTokens,
|
|
1424
|
+
ir as canvasTokensLight,
|
|
1425
|
+
sr as categoryPaletteDark,
|
|
1426
|
+
lr as categoryPaletteLight,
|
|
1427
|
+
cr as colorPalette,
|
|
1428
|
+
ht as computeDAGLayout,
|
|
1429
|
+
vt as mergeStyle,
|
|
1430
|
+
te as usageColorSequence,
|
|
1431
|
+
xt as useCanvasAction,
|
|
1432
|
+
gt as useCanvasState,
|
|
1433
|
+
Zt as useEffect,
|
|
1434
|
+
m as useHostTheme,
|
|
1435
|
+
Jt as useMemo,
|
|
1436
|
+
Ut as useRef,
|
|
1437
|
+
Qt as useState
|
|
1260
1438
|
};
|