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