@flesler/cursor-canvas-web 1.0.2 → 1.1.0

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