@zen-ui-capri/system 1.1.0 → 1.1.4
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/bin/capri.mjs +7 -2
- package/dist/lib/capri/capri-engine.d.ts +1 -1
- package/dist/lib/capri/capri-engine.d.ts.map +1 -1
- package/dist/lib/components/ZenIcon.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +1118 -975
- package/dist/lib/theme/ZenThemeProvider.d.ts +2 -22
- package/dist/lib/theme/ZenThemeProvider.d.ts.map +1 -1
- package/dist/lib/theme/zen-theme-core.d.ts +23 -0
- package/dist/lib/theme/zen-theme-core.d.ts.map +1 -0
- package/dist/lib/universal/zen-universal.d.ts +1 -1
- package/dist/lib/universal/zen-universal.d.ts.map +1 -1
- package/dist/lib/universal/zen-universal.js +7 -7
- package/dist/lib/{zen-universal-C0PD8AI9.js → zen-universal-B_4UHCPT.js} +378 -465
- package/package.json +42 -12
- package/src/lib/audio/ZenAudioController.tsx +114 -114
- package/src/lib/capri/capri-engine.ts +1 -1
- package/src/lib/components/ZenIcon.tsx +24 -7
- package/src/lib/index.ts +1 -1
- package/src/lib/theme/ZenThemeProvider.tsx +36 -191
- package/src/lib/theme/zen-theme-core.ts +186 -0
- package/src/lib/universal/zen-universal.ts +95 -7
package/dist/lib/index.js
CHANGED
|
@@ -1,35 +1,83 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Loader2 as
|
|
6
|
-
import { Canvas as
|
|
7
|
-
import { EffectComposer as
|
|
8
|
-
import * as
|
|
9
|
-
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as ft, useState as F, useEffect as U, useMemo as se, createContext as ht, useRef as R, useId as re, useCallback as Ne, useImperativeHandle as vt, Suspense as xt } from "react";
|
|
3
|
+
import { Z as we, s as bt, c as Oe, C as xe } from "./zen-universal-B_4UHCPT.js";
|
|
4
|
+
import { a as fn, b as hn, d as vn, e as xn, f as bn, g as yn, h as gn, i as zn, j as wn, r as Nn, k as kn, z as Cn, l as Sn } from "./zen-universal-B_4UHCPT.js";
|
|
5
|
+
import { Loader2 as yt, Check as Se, Copy as gt, CheckCircle2 as Fe, ArrowUpRight as Ue, ChevronDown as et, X as Me, AlertTriangle as tt, Info as rt, ArrowUp as zt, ArrowDown as wt, ArrowUpDown as Nt, Menu as kt, Radio as Ct, Minimize2 as St, Maximize2 as Mt, Sparkles as We, Terminal as At, Activity as Tt, Cpu as Et, ShieldAlert as nt, FileText as at, Minus as st, UploadCloud as Rt, Plus as Lt, ChevronRight as it, ChevronLeft as It, Search as Pt, CornerDownLeft as Dt, TrendingUp as $t, TrendingDown as Ot, Inbox as Ft, Volume2 as qe, VolumeX as Ke, Disc3 as Vt } from "lucide-react";
|
|
6
|
+
import { Canvas as Ht, useFrame as Zt } from "@react-three/fiber";
|
|
7
|
+
import { EffectComposer as Gt, Bloom as Bt } from "@react-three/postprocessing";
|
|
8
|
+
import * as N from "three";
|
|
9
|
+
let Pe = null;
|
|
10
|
+
function lt() {
|
|
11
|
+
return Pe || (Pe = ht(null)), Pe;
|
|
12
|
+
}
|
|
13
|
+
function vr({
|
|
14
|
+
defaultTheme: t = "blackwall-crimson",
|
|
15
|
+
defaultDensity: r = "comfortable",
|
|
16
|
+
defaultRadius: n = "architectural",
|
|
17
|
+
overrides: o,
|
|
18
|
+
syncDocumentRoot: i = !0,
|
|
19
|
+
children: u
|
|
20
|
+
}) {
|
|
21
|
+
const [l, s] = F(t), [c, d] = F(r), [f, p] = F(n), [m, v] = F(() => typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches), h = we.find((x) => x.id === l) ?? we[0];
|
|
22
|
+
U(() => {
|
|
23
|
+
if (typeof window > "u") return;
|
|
24
|
+
const x = window.matchMedia("(prefers-reduced-motion: reduce)"), g = (I) => v(I.matches);
|
|
25
|
+
return x.addEventListener("change", g), () => x.removeEventListener("change", g);
|
|
26
|
+
}, []), U(() => {
|
|
27
|
+
if (!i || typeof document > "u") return;
|
|
28
|
+
const x = document.documentElement;
|
|
29
|
+
x.setAttribute("data-theme", l), x.setAttribute("data-polarity", h.polarity), x.setAttribute("data-density", c), x.setAttribute("data-radius", f), o != null && o.accentPrimary ? x.style.setProperty("--zen-accent-primary", o.accentPrimary) : x.style.removeProperty("--zen-accent-primary"), o != null && o.bgCanvas ? x.style.setProperty("--zen-bg-canvas", o.bgCanvas) : x.style.removeProperty("--zen-bg-canvas"), o != null && o.surface1 ? x.style.setProperty("--zen-surface-1", o.surface1) : x.style.removeProperty("--zen-surface-1"), o != null && o.inkPrimary ? x.style.setProperty("--zen-ink-primary", o.inkPrimary) : x.style.removeProperty("--zen-ink-primary"), bt(h, o);
|
|
30
|
+
}, [l, h, c, f, o, i]);
|
|
31
|
+
const S = () => {
|
|
32
|
+
s((x) => (we.find((I) => I.id === x) ?? we[0]).polarity === "dark" ? x === "blackwall-crimson" ? "cyber-daylight" : x === "neon-emerald" ? "kyoto-matcha" : x === "midnight-cobalt" ? "nordic-snow" : "atelier-paper" : x === "cyber-daylight" ? "blackwall-crimson" : x === "kyoto-matcha" ? "neon-emerald" : x === "nordic-snow" ? "midnight-cobalt" : "obsidian-gold");
|
|
33
|
+
}, M = se(
|
|
34
|
+
() => ({
|
|
35
|
+
theme: l,
|
|
36
|
+
themeMeta: h,
|
|
37
|
+
polarity: h.polarity,
|
|
38
|
+
density: c,
|
|
39
|
+
radius: f,
|
|
40
|
+
reducedMotion: m,
|
|
41
|
+
themes: we,
|
|
42
|
+
setTheme: s,
|
|
43
|
+
togglePolarity: S,
|
|
44
|
+
setDensity: d,
|
|
45
|
+
setRadius: p
|
|
46
|
+
}),
|
|
47
|
+
[l, h, c, f, m]
|
|
48
|
+
), y = lt();
|
|
49
|
+
return /* @__PURE__ */ e(y.Provider, { value: M, children: u });
|
|
50
|
+
}
|
|
51
|
+
function Ve() {
|
|
52
|
+
const t = ft(lt());
|
|
53
|
+
if (!t)
|
|
54
|
+
throw new Error("useZenTheme must be used within a ZenThemeProvider");
|
|
55
|
+
return t;
|
|
56
|
+
}
|
|
57
|
+
const _t = {
|
|
10
58
|
sm: "px-3.5 py-1.5 text-xs",
|
|
11
59
|
md: "px-5 py-2.5 text-xs sm:text-sm",
|
|
12
60
|
lg: "px-6 py-3.5 text-sm"
|
|
13
|
-
},
|
|
61
|
+
}, jt = {
|
|
14
62
|
primary: "zen-btn-primary",
|
|
15
63
|
secondary: "zen-btn-secondary",
|
|
16
64
|
ghost: "zen-btn-ghost",
|
|
17
65
|
danger: "zen-btn-danger"
|
|
18
66
|
};
|
|
19
|
-
function
|
|
67
|
+
function Ce({
|
|
20
68
|
variant: t = "primary",
|
|
21
69
|
size: r = "md",
|
|
22
70
|
pressed: n,
|
|
23
|
-
mono:
|
|
71
|
+
mono: o = !1,
|
|
24
72
|
loading: i = !1,
|
|
25
73
|
iconLeft: u,
|
|
26
74
|
iconRight: l,
|
|
27
75
|
disabled: s,
|
|
28
76
|
className: c = "",
|
|
29
|
-
children:
|
|
77
|
+
children: d,
|
|
30
78
|
...f
|
|
31
79
|
}) {
|
|
32
|
-
const
|
|
80
|
+
const m = n === !0 && t !== "primary" ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] border-[var(--zen-accent-primary)] shadow-[var(--zen-shadow-btn-primary)]" : "";
|
|
33
81
|
return /* @__PURE__ */ a(
|
|
34
82
|
"button",
|
|
35
83
|
{
|
|
@@ -37,43 +85,138 @@ function ze({
|
|
|
37
85
|
"data-zen-occlude": "true",
|
|
38
86
|
"aria-pressed": n,
|
|
39
87
|
disabled: s || i,
|
|
40
|
-
className: `zen-btn-base zen-focus-ring ${
|
|
88
|
+
className: `zen-btn-base zen-focus-ring ${jt[t]} ${_t[r]} ${o ? "zen-font-mono" : "zen-font-sans"} ${m} ${c}`.trim(),
|
|
41
89
|
...f,
|
|
42
90
|
children: [
|
|
43
|
-
i ? /* @__PURE__ */ e(
|
|
44
|
-
/* @__PURE__ */ e("span", { children:
|
|
91
|
+
i ? /* @__PURE__ */ e(yt, { className: "w-4 h-4 animate-spin shrink-0" }) : u && /* @__PURE__ */ e("span", { className: "shrink-0 inline-flex", children: u }),
|
|
92
|
+
/* @__PURE__ */ e("span", { children: d }),
|
|
45
93
|
l && /* @__PURE__ */ e("span", { className: "shrink-0 inline-flex", children: l })
|
|
46
94
|
]
|
|
47
95
|
}
|
|
48
96
|
);
|
|
49
97
|
}
|
|
50
|
-
function
|
|
98
|
+
function ot({
|
|
51
99
|
value: t,
|
|
52
100
|
label: r = "COPY",
|
|
53
101
|
copiedLabel: n = "COPIED",
|
|
54
|
-
size:
|
|
102
|
+
size: o = "md",
|
|
55
103
|
variant: i = "secondary",
|
|
56
104
|
className: u = ""
|
|
57
105
|
}) {
|
|
58
|
-
const [l, s] =
|
|
59
|
-
return
|
|
106
|
+
const [l, s] = F(!1), c = R(null);
|
|
107
|
+
return U(() => () => {
|
|
60
108
|
c.current !== null && window.clearTimeout(c.current);
|
|
61
109
|
}, []), /* @__PURE__ */ e(
|
|
62
|
-
|
|
110
|
+
Ce,
|
|
63
111
|
{
|
|
64
112
|
variant: i,
|
|
65
|
-
size:
|
|
113
|
+
size: o,
|
|
66
114
|
mono: !0,
|
|
67
115
|
onClick: () => {
|
|
68
116
|
navigator.clipboard.writeText(t), s(!0), c.current !== null && window.clearTimeout(c.current), c.current = window.setTimeout(() => s(!1), 2e3);
|
|
69
117
|
},
|
|
70
118
|
className: u,
|
|
71
|
-
iconLeft: l ? /* @__PURE__ */ e(
|
|
119
|
+
iconLeft: l ? /* @__PURE__ */ e(Se, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)]" }) : /* @__PURE__ */ e(gt, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)]" }),
|
|
72
120
|
children: l ? n : r
|
|
73
121
|
}
|
|
74
122
|
);
|
|
75
123
|
}
|
|
76
|
-
const
|
|
124
|
+
const be = {
|
|
125
|
+
xs: 12,
|
|
126
|
+
sm: 14,
|
|
127
|
+
md: 16,
|
|
128
|
+
lg: 20,
|
|
129
|
+
xl: 24
|
|
130
|
+
}, ye = {
|
|
131
|
+
inherit: "currentColor",
|
|
132
|
+
primary: "var(--zen-ink-primary)",
|
|
133
|
+
secondary: "var(--zen-ink-secondary)",
|
|
134
|
+
muted: "var(--zen-ink-muted)",
|
|
135
|
+
accent: "var(--zen-accent-primary)",
|
|
136
|
+
success: "var(--zen-status-success)",
|
|
137
|
+
warning: "var(--zen-status-warning)",
|
|
138
|
+
danger: "var(--zen-status-danger)"
|
|
139
|
+
}, fe = {
|
|
140
|
+
search: '<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',
|
|
141
|
+
plus: '<path d="M5 12h14"/><path d="M12 5v14"/>',
|
|
142
|
+
minus: '<path d="M5 12h14"/>',
|
|
143
|
+
close: '<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',
|
|
144
|
+
check: '<path d="M20 6 9 17l-5-5"/>',
|
|
145
|
+
copy: '<rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/>',
|
|
146
|
+
"chevron-down": '<path d="m6 9 6 6 6-6"/>',
|
|
147
|
+
"chevron-right": '<path d="m9 18 6-6-6-6"/>',
|
|
148
|
+
"chevron-left": '<path d="m15 18-6-6 6-6"/>',
|
|
149
|
+
"external-link": '<path d="M15 3h6v6"/><path d="M10 14 21 3"/><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/>',
|
|
150
|
+
bolt: '<path d="M13 2 3 14h9l-1 8 10-12h-9l1-8z"/>',
|
|
151
|
+
sparkles: '<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"/><path d="M20 3v4"/><path d="M22 5h-4"/>',
|
|
152
|
+
terminal: '<polyline points="4 17 10 11 4 5"/><line x1="12" x2="20" y1="19" y2="19"/>',
|
|
153
|
+
cpu: '<rect width="16" height="16" x="4" y="4" rx="2"/><rect width="6" height="6" x="9" y="9" rx="1"/><path d="M15 2v2"/><path d="M15 20v2"/><path d="M2 15h2"/><path d="M2 9h2"/><path d="M20 15h2"/><path d="M20 9h2"/><path d="M9 2v2"/><path d="M9 20v2"/>',
|
|
154
|
+
database: '<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/>',
|
|
155
|
+
layers: '<path d="m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z"/><path d="m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65"/><path d="m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65"/>',
|
|
156
|
+
shield: '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/>',
|
|
157
|
+
sliders: '<line x1="4" x2="4" y1="21" y2="14"/><line x1="4" x2="4" y1="10" y2="3"/><line x1="12" x2="12" y1="21" y2="12"/><line x1="12" x2="12" y1="8" y2="3"/><line x1="20" x2="20" y1="21" y2="16"/><line x1="20" x2="20" y1="12" y2="3"/><line x1="2" x2="6" y1="14" y2="14"/><line x1="10" x2="14" y1="8" y2="8"/><line x1="18" x2="22" y1="16" y2="16"/>',
|
|
158
|
+
command: '<path d="M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3"/>',
|
|
159
|
+
code: '<polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/>',
|
|
160
|
+
activity: '<path d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"/>',
|
|
161
|
+
info: '<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',
|
|
162
|
+
success: '<circle cx="12" cy="12" r="10"/><path d="m9 12 2 2 4-4"/>',
|
|
163
|
+
warning: '<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3"/><path d="M12 9v4"/><path d="M12 17h.01"/>',
|
|
164
|
+
danger: '<path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"/><path d="M12 8v4"/><path d="M12 16h.01"/>',
|
|
165
|
+
"trend-up": '<polyline points="22 7 13.5 15.5 8.5 10.5 2 17"/><polyline points="16 7 22 7 22 13"/>',
|
|
166
|
+
"trend-down": '<polyline points="22 17 13.5 8.5 8.5 13.5 2 7"/><polyline points="16 17 22 17 22 11"/>',
|
|
167
|
+
radio: '<path d="M4.9 19.1C1 15.2 1 8.8 4.9 4.9"/><path d="M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5"/><circle cx="12" cy="12" r="2"/><path d="M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5"/><path d="M19.1 4.9C23 8.8 23 15.1 19.1 19"/>',
|
|
168
|
+
sun: '<circle cx="12" cy="12" r="4"/><path d="M12 2v2"/><path d="M12 20v2"/><path d="m4.93 4.93 1.41 1.41"/><path d="m17.66 17.66 1.41 1.41"/><path d="M2 12h2"/><path d="M20 12h2"/><path d="m6.34 17.66-1.41 1.41"/><path d="m19.07 4.93-1.41 1.41"/>',
|
|
169
|
+
moon: '<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"/>',
|
|
170
|
+
eye: '<path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/>',
|
|
171
|
+
upload: '<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>',
|
|
172
|
+
trash: '<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/>',
|
|
173
|
+
refresh: '<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',
|
|
174
|
+
menu: '<line x1="4" x2="20" y1="12" y2="12"/><line x1="4" x2="20" y1="6" y2="6"/><line x1="4" x2="20" y1="18" y2="18"/>',
|
|
175
|
+
"panel-right": '<rect width="18" height="18" x="3" y="3" rx="2"/><path d="M15 3v18"/>',
|
|
176
|
+
user: '<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>',
|
|
177
|
+
lock: '<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',
|
|
178
|
+
globe: '<circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/>',
|
|
179
|
+
folder: '<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>'
|
|
180
|
+
}, xr = Object.keys(
|
|
181
|
+
fe
|
|
182
|
+
);
|
|
183
|
+
function br(t) {
|
|
184
|
+
const r = t.size ?? "md", n = Object.prototype.hasOwnProperty.call(be, r) ? be[r] : be.md, o = t.tone ?? "inherit", i = Object.prototype.hasOwnProperty.call(ye, o) ? ye[o] : ye.inherit, u = typeof t.strokeWidth == "number" && Number.isFinite(t.strokeWidth) ? Math.min(Math.max(t.strokeWidth, 0.5), 4) : 2, l = Object.prototype.hasOwnProperty.call(fe, t.name) ? fe[t.name] : fe.sparkles, s = t.spin ? "animation: spin 1s linear infinite;" : "";
|
|
185
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${n}" viewBox="0 0 24 24" fill="none" stroke="${i}" stroke-width="${u}" stroke-linecap="round" stroke-linejoin="round" style="display:inline-block;vertical-align:middle;flex-shrink:0;${s}">${l}</svg>`;
|
|
186
|
+
}
|
|
187
|
+
function yr({
|
|
188
|
+
name: t,
|
|
189
|
+
size: r = "md",
|
|
190
|
+
tone: n = "inherit",
|
|
191
|
+
strokeWidth: o = 2,
|
|
192
|
+
spin: i = !1,
|
|
193
|
+
ariaLabel: u,
|
|
194
|
+
className: l = "",
|
|
195
|
+
...s
|
|
196
|
+
}) {
|
|
197
|
+
const c = Object.prototype.hasOwnProperty.call(be, r) ? be[r] : be.md, d = Object.prototype.hasOwnProperty.call(ye, n) ? ye[n] : ye.inherit, f = Object.prototype.hasOwnProperty.call(fe, t) ? fe[t] : fe.sparkles;
|
|
198
|
+
return /* @__PURE__ */ e(
|
|
199
|
+
"svg",
|
|
200
|
+
{
|
|
201
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
202
|
+
width: c,
|
|
203
|
+
height: c,
|
|
204
|
+
viewBox: "0 0 24 24",
|
|
205
|
+
fill: "none",
|
|
206
|
+
stroke: d,
|
|
207
|
+
strokeWidth: o,
|
|
208
|
+
strokeLinecap: "round",
|
|
209
|
+
strokeLinejoin: "round",
|
|
210
|
+
role: u ? "img" : void 0,
|
|
211
|
+
"aria-label": u,
|
|
212
|
+
"aria-hidden": u ? void 0 : "true",
|
|
213
|
+
className: `inline-block shrink-0 ${i ? "animate-spin" : ""} ${l}`.trim(),
|
|
214
|
+
dangerouslySetInnerHTML: { __html: f },
|
|
215
|
+
...s
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
const Ut = {
|
|
77
220
|
gold: {
|
|
78
221
|
pill: "bg-[var(--zen-accent-subtle)] text-[var(--zen-accent-primary)] border-[var(--zen-accent-border)]",
|
|
79
222
|
dot: "bg-[var(--zen-accent-primary)]"
|
|
@@ -99,14 +242,14 @@ const Ot = {
|
|
|
99
242
|
dot: "bg-[var(--zen-ink-muted)]"
|
|
100
243
|
}
|
|
101
244
|
};
|
|
102
|
-
function
|
|
245
|
+
function Ye({
|
|
103
246
|
tone: t = "neutral",
|
|
104
247
|
pulse: r = !1,
|
|
105
248
|
icon: n,
|
|
106
|
-
children:
|
|
249
|
+
children: o,
|
|
107
250
|
className: i = ""
|
|
108
251
|
}) {
|
|
109
|
-
const u =
|
|
252
|
+
const u = Ut[t];
|
|
110
253
|
return /* @__PURE__ */ a(
|
|
111
254
|
"span",
|
|
112
255
|
{
|
|
@@ -120,12 +263,12 @@ function Ue({
|
|
|
120
263
|
}
|
|
121
264
|
),
|
|
122
265
|
n && /* @__PURE__ */ e("span", { className: "shrink-0 inline-flex", children: n }),
|
|
123
|
-
/* @__PURE__ */ e("span", { children:
|
|
266
|
+
/* @__PURE__ */ e("span", { children: o })
|
|
124
267
|
]
|
|
125
268
|
}
|
|
126
269
|
);
|
|
127
270
|
}
|
|
128
|
-
function
|
|
271
|
+
function ct({ tags: t, className: r = "" }) {
|
|
129
272
|
return /* @__PURE__ */ e("div", { className: `flex flex-wrap gap-2 ${r}`.trim(), children: t.map((n) => /* @__PURE__ */ e(
|
|
130
273
|
"span",
|
|
131
274
|
{
|
|
@@ -135,7 +278,7 @@ function nt({ tags: t, className: r = "" }) {
|
|
|
135
278
|
n
|
|
136
279
|
)) });
|
|
137
280
|
}
|
|
138
|
-
function
|
|
281
|
+
function Xe({ keys: t, className: r = "" }) {
|
|
139
282
|
return /* @__PURE__ */ e("span", { className: `inline-flex items-center gap-1 ${r}`.trim(), children: t.map((n) => /* @__PURE__ */ e(
|
|
140
283
|
"kbd",
|
|
141
284
|
{
|
|
@@ -145,18 +288,18 @@ function je({ keys: t, className: r = "" }) {
|
|
|
145
288
|
n
|
|
146
289
|
)) });
|
|
147
290
|
}
|
|
148
|
-
const
|
|
291
|
+
const Wt = {
|
|
149
292
|
hero: "text-4xl sm:text-5xl lg:text-6xl font-extrabold tracking-tight leading-[1.03]",
|
|
150
293
|
display: "text-3xl sm:text-5xl font-bold tracking-tight leading-[1.04]",
|
|
151
294
|
section: "text-2xl sm:text-4xl font-bold tracking-tight leading-tight",
|
|
152
295
|
title: "text-xl sm:text-2xl font-bold tracking-tight leading-snug",
|
|
153
296
|
subtitle: "text-lg sm:text-xl font-bold tracking-tight leading-snug"
|
|
154
297
|
};
|
|
155
|
-
function
|
|
298
|
+
function gr({
|
|
156
299
|
as: t = "h2",
|
|
157
300
|
size: r = "display",
|
|
158
301
|
eyebrow: n,
|
|
159
|
-
eyebrowIcon:
|
|
302
|
+
eyebrowIcon: o,
|
|
160
303
|
accentText: i,
|
|
161
304
|
subtitle: u,
|
|
162
305
|
children: l,
|
|
@@ -164,16 +307,16 @@ function lr({
|
|
|
164
307
|
}) {
|
|
165
308
|
return /* @__PURE__ */ a("div", { className: s, children: [
|
|
166
309
|
n && /* @__PURE__ */ a("div", { className: "inline-flex items-center gap-2 zen-telemetry-label text-[var(--zen-accent-primary)] mb-2.5", children: [
|
|
167
|
-
|
|
310
|
+
o && /* @__PURE__ */ e("span", { className: "shrink-0", children: o }),
|
|
168
311
|
/* @__PURE__ */ e("span", { children: n })
|
|
169
312
|
] }),
|
|
170
313
|
/* @__PURE__ */ a(
|
|
171
314
|
t,
|
|
172
315
|
{
|
|
173
|
-
className: `zen-font-display text-[var(--zen-ink-primary)] ${
|
|
316
|
+
className: `zen-font-display text-[var(--zen-ink-primary)] ${Wt[r]}`,
|
|
174
317
|
children: [
|
|
175
318
|
l,
|
|
176
|
-
i && /* @__PURE__ */ a(
|
|
319
|
+
i && /* @__PURE__ */ a(ke, { children: [
|
|
177
320
|
" ",
|
|
178
321
|
/* @__PURE__ */ e("span", { className: "zen-font-serif italic font-normal text-[var(--zen-accent-primary)]", children: i })
|
|
179
322
|
] })
|
|
@@ -183,53 +326,53 @@ function lr({
|
|
|
183
326
|
u && /* @__PURE__ */ e("div", { className: "zen-font-serif italic text-xl sm:text-2xl text-[var(--zen-accent-primary)] mt-2", children: u })
|
|
184
327
|
] });
|
|
185
328
|
}
|
|
186
|
-
const
|
|
329
|
+
const qt = {
|
|
187
330
|
none: "p-0",
|
|
188
331
|
sm: "p-3.5 sm:p-5",
|
|
189
332
|
md: "p-4 sm:p-6 lg:p-8",
|
|
190
333
|
lg: "p-5 sm:p-8 lg:p-12"
|
|
191
334
|
};
|
|
192
|
-
function
|
|
335
|
+
function He({
|
|
193
336
|
variant: t = "static",
|
|
194
337
|
selected: r = !1,
|
|
195
338
|
disabled: n = !1,
|
|
196
|
-
padding:
|
|
339
|
+
padding: o = "md",
|
|
197
340
|
onSelect: i,
|
|
198
341
|
selectOnHover: u = !1,
|
|
199
342
|
className: l = "",
|
|
200
343
|
children: s,
|
|
201
344
|
onClick: c,
|
|
202
|
-
onMouseEnter:
|
|
345
|
+
onMouseEnter: d,
|
|
203
346
|
onKeyDown: f,
|
|
204
347
|
...p
|
|
205
348
|
}) {
|
|
206
|
-
const
|
|
349
|
+
const m = t === "interactive" || !!i, v = r || t === "selected";
|
|
207
350
|
return /* @__PURE__ */ e(
|
|
208
351
|
"div",
|
|
209
352
|
{
|
|
210
353
|
"data-zen-occlude": "true",
|
|
211
354
|
"data-selected": v ? "true" : "false",
|
|
212
355
|
"data-disabled": n ? "true" : "false",
|
|
213
|
-
role:
|
|
214
|
-
"aria-pressed":
|
|
356
|
+
role: m ? "button" : void 0,
|
|
357
|
+
"aria-pressed": m ? v : void 0,
|
|
215
358
|
"aria-disabled": n ? !0 : void 0,
|
|
216
|
-
tabIndex:
|
|
217
|
-
onClick: (
|
|
218
|
-
c == null || c(
|
|
359
|
+
tabIndex: m && !n ? 0 : void 0,
|
|
360
|
+
onClick: (M) => {
|
|
361
|
+
c == null || c(M), n || i == null || i();
|
|
219
362
|
},
|
|
220
|
-
onMouseEnter: (
|
|
221
|
-
|
|
363
|
+
onMouseEnter: (M) => {
|
|
364
|
+
d == null || d(M), !n && u && (i == null || i());
|
|
222
365
|
},
|
|
223
|
-
onKeyDown: (
|
|
224
|
-
f == null || f(
|
|
366
|
+
onKeyDown: (M) => {
|
|
367
|
+
f == null || f(M), !n && m && (M.key === "Enter" || M.key === " ") && (M.preventDefault(), i == null || i());
|
|
225
368
|
},
|
|
226
|
-
className: `rounded-3xl ${
|
|
369
|
+
className: `rounded-3xl ${m ? "zen-surface-interactive zen-focus-ring cursor-pointer" : v ? "zen-surface-selected" : "zen-surface-static"} ${qt[o]} ${n ? "opacity-50 pointer-events-none" : ""} ${l}`.trim(),
|
|
227
370
|
...p,
|
|
228
371
|
children: s
|
|
229
372
|
}
|
|
230
373
|
);
|
|
231
374
|
}
|
|
232
|
-
function
|
|
375
|
+
function Kt({
|
|
233
376
|
metrics: t,
|
|
234
377
|
columns: r = 4,
|
|
235
378
|
className: n = ""
|
|
@@ -251,7 +394,7 @@ function Gt({
|
|
|
251
394
|
}
|
|
252
395
|
);
|
|
253
396
|
}
|
|
254
|
-
function
|
|
397
|
+
function Yt({
|
|
255
398
|
label: t = "SYSTEM ARCHITECTURE NOTE",
|
|
256
399
|
children: r,
|
|
257
400
|
className: n = ""
|
|
@@ -267,14 +410,14 @@ function Zt({
|
|
|
267
410
|
}
|
|
268
411
|
);
|
|
269
412
|
}
|
|
270
|
-
function
|
|
413
|
+
function dt({ items: t, className: r = "" }) {
|
|
271
414
|
return /* @__PURE__ */ e("ul", { className: `space-y-2 ${r}`.trim(), children: t.map((n) => /* @__PURE__ */ a(
|
|
272
415
|
"li",
|
|
273
416
|
{
|
|
274
417
|
className: "flex items-start gap-2 text-xs sm:text-sm text-[var(--zen-ink-secondary)]",
|
|
275
418
|
children: [
|
|
276
419
|
/* @__PURE__ */ e(
|
|
277
|
-
|
|
420
|
+
Fe,
|
|
278
421
|
{
|
|
279
422
|
className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)] shrink-0 mt-0.5",
|
|
280
423
|
"aria-hidden": "true"
|
|
@@ -286,12 +429,12 @@ function at({ items: t, className: r = "" }) {
|
|
|
286
429
|
n
|
|
287
430
|
)) });
|
|
288
431
|
}
|
|
289
|
-
function
|
|
432
|
+
function zr({
|
|
290
433
|
item: t,
|
|
291
434
|
footerSlot: r,
|
|
292
435
|
className: n = ""
|
|
293
436
|
}) {
|
|
294
|
-
return /* @__PURE__ */ a(
|
|
437
|
+
return /* @__PURE__ */ a(He, { variant: "selected", padding: "md", className: n, children: [
|
|
295
438
|
/* @__PURE__ */ a("div", { className: "flex items-center justify-between zen-telemetry-label text-[var(--zen-accent-primary)] mb-3", children: [
|
|
296
439
|
/* @__PURE__ */ a("span", { children: [
|
|
297
440
|
t.categoryLabel,
|
|
@@ -303,17 +446,17 @@ function or({
|
|
|
303
446
|
/* @__PURE__ */ e("h3", { className: "zen-font-serif italic text-4xl sm:text-5xl mb-1 text-[var(--zen-ink-primary)]", children: t.title }),
|
|
304
447
|
t.role && /* @__PURE__ */ e("div", { className: "zen-font-mono text-xs text-[var(--zen-accent-secondary)] mb-2", children: t.role }),
|
|
305
448
|
/* @__PURE__ */ e("div", { className: "zen-font-mono text-xs text-[var(--zen-ink-muted)] mb-5", children: t.subtitle }),
|
|
306
|
-
t.metrics && t.metrics.length > 0 && /* @__PURE__ */ e(
|
|
449
|
+
t.metrics && t.metrics.length > 0 && /* @__PURE__ */ e(Kt, { metrics: t.metrics, className: "mb-5" }),
|
|
307
450
|
/* @__PURE__ */ e(
|
|
308
|
-
|
|
451
|
+
Yt,
|
|
309
452
|
{
|
|
310
453
|
label: t.engineeringLabel ?? "SYSTEM ARCHITECTURE NOTE",
|
|
311
454
|
className: "mb-5",
|
|
312
455
|
children: t.engineeringNote
|
|
313
456
|
}
|
|
314
457
|
),
|
|
315
|
-
t.highlights && t.highlights.length > 0 && /* @__PURE__ */ e(
|
|
316
|
-
/* @__PURE__ */ e(
|
|
458
|
+
t.highlights && t.highlights.length > 0 && /* @__PURE__ */ e(dt, { items: t.highlights, className: "mb-6" }),
|
|
459
|
+
/* @__PURE__ */ e(ct, { tags: t.tags, className: "mb-6" }),
|
|
317
460
|
(t.primaryAction || t.secondaryAction) && /* @__PURE__ */ a("div", { className: "flex flex-col sm:flex-row gap-3", children: [
|
|
318
461
|
t.primaryAction && /* @__PURE__ */ a(
|
|
319
462
|
"a",
|
|
@@ -325,7 +468,7 @@ function or({
|
|
|
325
468
|
children: [
|
|
326
469
|
t.primaryAction.icon,
|
|
327
470
|
/* @__PURE__ */ e("span", { children: t.primaryAction.label }),
|
|
328
|
-
/* @__PURE__ */ e(
|
|
471
|
+
/* @__PURE__ */ e(Ue, { className: "w-4 h-4" })
|
|
329
472
|
]
|
|
330
473
|
}
|
|
331
474
|
),
|
|
@@ -339,7 +482,7 @@ function or({
|
|
|
339
482
|
children: [
|
|
340
483
|
t.secondaryAction.icon,
|
|
341
484
|
/* @__PURE__ */ e("span", { children: t.secondaryAction.label }),
|
|
342
|
-
/* @__PURE__ */ e(
|
|
485
|
+
/* @__PURE__ */ e(Ue, { className: "w-4 h-4" })
|
|
343
486
|
]
|
|
344
487
|
}
|
|
345
488
|
)
|
|
@@ -347,11 +490,11 @@ function or({
|
|
|
347
490
|
r && /* @__PURE__ */ e("div", { className: "mt-4", children: r })
|
|
348
491
|
] });
|
|
349
492
|
}
|
|
350
|
-
function
|
|
493
|
+
function wr({
|
|
351
494
|
period: t,
|
|
352
495
|
location: r,
|
|
353
496
|
title: n,
|
|
354
|
-
institution:
|
|
497
|
+
institution: o,
|
|
355
498
|
summary: i,
|
|
356
499
|
bullets: u,
|
|
357
500
|
tags: l,
|
|
@@ -359,7 +502,7 @@ function cr({
|
|
|
359
502
|
className: c = ""
|
|
360
503
|
}) {
|
|
361
504
|
return /* @__PURE__ */ a(
|
|
362
|
-
|
|
505
|
+
He,
|
|
363
506
|
{
|
|
364
507
|
variant: "static",
|
|
365
508
|
padding: "md",
|
|
@@ -374,29 +517,29 @@ function cr({
|
|
|
374
517
|
/* @__PURE__ */ e("span", { className: "text-[var(--zen-ink-muted)]", children: r })
|
|
375
518
|
] }),
|
|
376
519
|
/* @__PURE__ */ e("h3", { className: "zen-font-display text-xl sm:text-2xl font-bold text-[var(--zen-ink-primary)]", children: n }),
|
|
377
|
-
/* @__PURE__ */ e("div", { className: "zen-font-serif italic text-xl text-[var(--zen-accent-primary)] mt-0.5 mb-3", children:
|
|
520
|
+
/* @__PURE__ */ e("div", { className: "zen-font-serif italic text-xl text-[var(--zen-accent-primary)] mt-0.5 mb-3", children: o }),
|
|
378
521
|
/* @__PURE__ */ e("p", { className: "text-sm text-[var(--zen-ink-secondary)] leading-relaxed mb-4", children: i }),
|
|
379
|
-
u && u.length > 0 && /* @__PURE__ */ e(
|
|
522
|
+
u && u.length > 0 && /* @__PURE__ */ e(dt, { items: u, className: "mb-5" })
|
|
380
523
|
] }),
|
|
381
|
-
/* @__PURE__ */ e("div", { className: "pt-3 border-t border-[var(--zen-border-subtle)]", children: /* @__PURE__ */ e(
|
|
524
|
+
/* @__PURE__ */ e("div", { className: "pt-3 border-t border-[var(--zen-border-subtle)]", children: /* @__PURE__ */ e(ct, { tags: l }) })
|
|
382
525
|
]
|
|
383
526
|
}
|
|
384
527
|
);
|
|
385
528
|
}
|
|
386
|
-
function
|
|
529
|
+
function mt({
|
|
387
530
|
items: t,
|
|
388
531
|
value: r,
|
|
389
532
|
onChange: n,
|
|
390
|
-
ariaLabel:
|
|
533
|
+
ariaLabel: o,
|
|
391
534
|
size: i = "md",
|
|
392
535
|
className: u = ""
|
|
393
536
|
}) {
|
|
394
|
-
const l = R([]), s = t.map((p,
|
|
537
|
+
const l = R([]), s = t.map((p, m) => p.disabled ? -1 : m).filter((p) => p !== -1), c = (p) => {
|
|
395
538
|
var v;
|
|
396
|
-
const
|
|
397
|
-
!
|
|
398
|
-
},
|
|
399
|
-
const v = s.indexOf(
|
|
539
|
+
const m = t[p];
|
|
540
|
+
!m || m.disabled || ((v = l.current[p]) == null || v.focus(), n(m.value));
|
|
541
|
+
}, d = (p, m) => {
|
|
542
|
+
const v = s.indexOf(m);
|
|
400
543
|
if (v !== -1)
|
|
401
544
|
if (p.key === "ArrowRight" || p.key === "ArrowDown") {
|
|
402
545
|
p.preventDefault();
|
|
@@ -412,16 +555,16 @@ function st({
|
|
|
412
555
|
"div",
|
|
413
556
|
{
|
|
414
557
|
role: "radiogroup",
|
|
415
|
-
"aria-label":
|
|
558
|
+
"aria-label": o,
|
|
416
559
|
"data-zen-occlude": "true",
|
|
417
560
|
className: `inline-flex flex-wrap items-center gap-1.5 p-1.5 max-w-full rounded-2xl zen-surface-static ${u}`.trim(),
|
|
418
|
-
children: t.map((p,
|
|
561
|
+
children: t.map((p, m) => {
|
|
419
562
|
const v = p.value === r;
|
|
420
563
|
return /* @__PURE__ */ a(
|
|
421
564
|
"button",
|
|
422
565
|
{
|
|
423
566
|
ref: (h) => {
|
|
424
|
-
l.current[
|
|
567
|
+
l.current[m] = h;
|
|
425
568
|
},
|
|
426
569
|
type: "button",
|
|
427
570
|
role: "radio",
|
|
@@ -429,7 +572,7 @@ function st({
|
|
|
429
572
|
disabled: p.disabled,
|
|
430
573
|
tabIndex: v ? 0 : -1,
|
|
431
574
|
onClick: () => n(p.value),
|
|
432
|
-
onKeyDown: (h) =>
|
|
575
|
+
onKeyDown: (h) => d(h, m),
|
|
433
576
|
className: `zen-focus-ring rounded-xl zen-font-mono ${f} inline-flex items-center gap-1.5 transition-all cursor-pointer ${v ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] font-semibold shadow-sm" : "text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] hover:bg-[var(--zen-surface-subtle)]"} ${p.disabled ? "opacity-40 cursor-not-allowed" : ""}`.trim(),
|
|
434
577
|
children: [
|
|
435
578
|
p.icon && /* @__PURE__ */ e("span", { className: "shrink-0 inline-flex", children: p.icon }),
|
|
@@ -449,84 +592,84 @@ function st({
|
|
|
449
592
|
}
|
|
450
593
|
);
|
|
451
594
|
}
|
|
452
|
-
function
|
|
595
|
+
function Nr({
|
|
453
596
|
tabs: t,
|
|
454
597
|
activeTab: r,
|
|
455
598
|
onChange: n,
|
|
456
|
-
ariaLabel:
|
|
599
|
+
ariaLabel: o,
|
|
457
600
|
className: i = ""
|
|
458
601
|
}) {
|
|
459
|
-
const u = R([]), l = t.map((
|
|
602
|
+
const u = R([]), l = t.map((d, f) => d.disabled ? -1 : f).filter((d) => d !== -1), s = (d) => {
|
|
460
603
|
var p;
|
|
461
|
-
const f = t[
|
|
462
|
-
!f || f.disabled || ((p = u.current[
|
|
463
|
-
}, c = (
|
|
604
|
+
const f = t[d];
|
|
605
|
+
!f || f.disabled || ((p = u.current[d]) == null || p.focus(), n(f.id));
|
|
606
|
+
}, c = (d, f) => {
|
|
464
607
|
const p = l.indexOf(f);
|
|
465
608
|
if (p !== -1)
|
|
466
|
-
if (
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
s(
|
|
470
|
-
} else if (
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
s(
|
|
474
|
-
} else
|
|
609
|
+
if (d.key === "ArrowRight") {
|
|
610
|
+
d.preventDefault();
|
|
611
|
+
const m = l[(p + 1) % l.length];
|
|
612
|
+
s(m);
|
|
613
|
+
} else if (d.key === "ArrowLeft") {
|
|
614
|
+
d.preventDefault();
|
|
615
|
+
const m = l[(p - 1 + l.length) % l.length];
|
|
616
|
+
s(m);
|
|
617
|
+
} else d.key === "Home" ? (d.preventDefault(), s(l[0])) : d.key === "End" && (d.preventDefault(), s(l[l.length - 1]));
|
|
475
618
|
};
|
|
476
619
|
return /* @__PURE__ */ e(
|
|
477
620
|
"div",
|
|
478
621
|
{
|
|
479
622
|
role: "tablist",
|
|
480
|
-
"aria-label":
|
|
623
|
+
"aria-label": o,
|
|
481
624
|
"data-zen-occlude": "true",
|
|
482
625
|
className: `flex flex-wrap items-center gap-1.5 max-w-full border-b border-[var(--zen-border-subtle)] pb-2 ${i}`.trim(),
|
|
483
|
-
children: t.map((
|
|
484
|
-
const p =
|
|
626
|
+
children: t.map((d, f) => {
|
|
627
|
+
const p = d.id === r;
|
|
485
628
|
return /* @__PURE__ */ a(
|
|
486
629
|
"button",
|
|
487
630
|
{
|
|
488
|
-
ref: (
|
|
489
|
-
u.current[f] =
|
|
631
|
+
ref: (m) => {
|
|
632
|
+
u.current[f] = m;
|
|
490
633
|
},
|
|
491
634
|
type: "button",
|
|
492
635
|
role: "tab",
|
|
493
636
|
"aria-selected": p,
|
|
494
|
-
disabled:
|
|
637
|
+
disabled: d.disabled,
|
|
495
638
|
tabIndex: p ? 0 : -1,
|
|
496
|
-
onClick: () => n(
|
|
497
|
-
onKeyDown: (
|
|
498
|
-
className: `zen-focus-ring px-3 sm:px-4 py-2 rounded-xl zen-font-mono text-xs inline-flex items-center gap-2 shrink-0 transition-all cursor-pointer ${p ? "bg-[var(--zen-accent-subtle)] text-[var(--zen-accent-primary)] border border-[var(--zen-accent-border)] font-semibold" : "text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] hover:bg-[var(--zen-surface-subtle)] border border-transparent"} ${
|
|
639
|
+
onClick: () => n(d.id),
|
|
640
|
+
onKeyDown: (m) => c(m, f),
|
|
641
|
+
className: `zen-focus-ring px-3 sm:px-4 py-2 rounded-xl zen-font-mono text-xs inline-flex items-center gap-2 shrink-0 transition-all cursor-pointer ${p ? "bg-[var(--zen-accent-subtle)] text-[var(--zen-accent-primary)] border border-[var(--zen-accent-border)] font-semibold" : "text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] hover:bg-[var(--zen-surface-subtle)] border border-transparent"} ${d.disabled ? "opacity-40 cursor-not-allowed" : ""}`.trim(),
|
|
499
642
|
children: [
|
|
500
|
-
|
|
501
|
-
/* @__PURE__ */ e("span", { children:
|
|
502
|
-
|
|
643
|
+
d.icon && /* @__PURE__ */ e("span", { className: "shrink-0 inline-flex", children: d.icon }),
|
|
644
|
+
/* @__PURE__ */ e("span", { children: d.label }),
|
|
645
|
+
d.badge !== void 0 && /* @__PURE__ */ e("span", { className: "px-1.5 py-0.5 rounded-full text-[10px] bg-[var(--zen-surface-subtle)] text-[var(--zen-ink-muted)]", children: d.badge })
|
|
503
646
|
]
|
|
504
647
|
},
|
|
505
|
-
|
|
648
|
+
d.id
|
|
506
649
|
);
|
|
507
650
|
})
|
|
508
651
|
}
|
|
509
652
|
);
|
|
510
653
|
}
|
|
511
|
-
function
|
|
654
|
+
function kr({
|
|
512
655
|
label: t,
|
|
513
656
|
hint: r,
|
|
514
657
|
error: n,
|
|
515
|
-
iconLeft:
|
|
658
|
+
iconLeft: o,
|
|
516
659
|
iconRight: i,
|
|
517
660
|
mono: u = !1,
|
|
518
661
|
capriGuard: l = !0,
|
|
519
662
|
id: s,
|
|
520
663
|
value: c,
|
|
521
|
-
defaultValue:
|
|
664
|
+
defaultValue: d,
|
|
522
665
|
onChange: f,
|
|
523
666
|
className: p = "",
|
|
524
|
-
...
|
|
667
|
+
...m
|
|
525
668
|
}) {
|
|
526
|
-
const v = re(), h = s ?? v,
|
|
527
|
-
typeof
|
|
528
|
-
),
|
|
529
|
-
c === void 0 &&
|
|
669
|
+
const v = re(), h = s ?? v, S = `${h}-desc`, [M, y] = F(
|
|
670
|
+
typeof d == "string" ? d : ""
|
|
671
|
+
), x = typeof c == "string" ? c : typeof c == "number" ? String(c) : M, g = l ? Oe.scanInputSecurity(x) : null, I = g && !g.safe && g.threats[0] ? `CAPRI GUARD BLOCKED [${g.threats[0].category}]: ${g.threats[0].patternName}` : void 0, w = n || I, z = !!(w || r), L = (T) => {
|
|
672
|
+
c === void 0 && y(T.target.value), f == null || f(T);
|
|
530
673
|
};
|
|
531
674
|
return /* @__PURE__ */ a("div", { "data-zen-occlude": "true", className: `flex flex-col gap-1.5 ${p}`.trim(), children: [
|
|
532
675
|
/* @__PURE__ */ e(
|
|
@@ -540,82 +683,82 @@ function mr({
|
|
|
540
683
|
/* @__PURE__ */ a(
|
|
541
684
|
"div",
|
|
542
685
|
{
|
|
543
|
-
className: `flex items-center gap-2.5 px-3.5 py-2.5 rounded-xl bg-[var(--zen-surface-1)] border transition-colors ${
|
|
686
|
+
className: `flex items-center gap-2.5 px-3.5 py-2.5 rounded-xl bg-[var(--zen-surface-1)] border transition-colors ${w ? "border-[var(--zen-status-danger)]" : "border-[var(--zen-border-default)] focus-within:border-[var(--zen-accent-primary)]"}`,
|
|
544
687
|
children: [
|
|
545
|
-
|
|
688
|
+
o && /* @__PURE__ */ e("span", { className: "text-[var(--zen-ink-muted)] shrink-0", children: o }),
|
|
546
689
|
/* @__PURE__ */ e(
|
|
547
690
|
"input",
|
|
548
691
|
{
|
|
549
692
|
id: h,
|
|
550
693
|
value: c,
|
|
551
|
-
defaultValue:
|
|
552
|
-
onChange:
|
|
553
|
-
"aria-invalid": !!
|
|
554
|
-
"aria-describedby":
|
|
555
|
-
"data-capri-threat":
|
|
694
|
+
defaultValue: d,
|
|
695
|
+
onChange: L,
|
|
696
|
+
"aria-invalid": !!w,
|
|
697
|
+
"aria-describedby": z ? S : void 0,
|
|
698
|
+
"data-capri-threat": g && !g.safe && g.threats[0] ? g.threats[0].category : void 0,
|
|
556
699
|
className: `w-full bg-transparent text-sm text-[var(--zen-ink-primary)] placeholder:text-[var(--zen-ink-muted)] focus:outline-none ${u ? "zen-font-mono" : "zen-font-sans"}`,
|
|
557
|
-
...
|
|
700
|
+
...m
|
|
558
701
|
}
|
|
559
702
|
),
|
|
560
703
|
i && /* @__PURE__ */ e("span", { className: "text-[var(--zen-ink-muted)] shrink-0", children: i })
|
|
561
704
|
]
|
|
562
705
|
}
|
|
563
706
|
),
|
|
564
|
-
|
|
707
|
+
z && /* @__PURE__ */ e(
|
|
565
708
|
"span",
|
|
566
709
|
{
|
|
567
|
-
id:
|
|
568
|
-
className: `zen-font-mono text-[11px] ${
|
|
569
|
-
children:
|
|
710
|
+
id: S,
|
|
711
|
+
className: `zen-font-mono text-[11px] ${w ? "text-[var(--zen-status-danger)]" : "text-[var(--zen-ink-muted)]"}`,
|
|
712
|
+
children: w ?? r
|
|
570
713
|
}
|
|
571
714
|
)
|
|
572
715
|
] });
|
|
573
716
|
}
|
|
574
|
-
function
|
|
717
|
+
function Cr({
|
|
575
718
|
label: t,
|
|
576
719
|
options: r,
|
|
577
720
|
value: n,
|
|
578
|
-
onChange:
|
|
721
|
+
onChange: o,
|
|
579
722
|
ariaLabel: i,
|
|
580
723
|
align: u = "start",
|
|
581
724
|
className: l = ""
|
|
582
725
|
}) {
|
|
583
|
-
const [s, c] =
|
|
726
|
+
const [s, c] = F(!1), [d, f] = F(
|
|
584
727
|
() => Math.max(
|
|
585
728
|
0,
|
|
586
|
-
r.findIndex((
|
|
729
|
+
r.findIndex((y) => y.value === n)
|
|
587
730
|
)
|
|
588
|
-
), p = R(null),
|
|
589
|
-
|
|
590
|
-
const
|
|
591
|
-
|
|
592
|
-
}, [n, r]),
|
|
731
|
+
), p = R(null), m = R(null), v = re(), h = r.find((y) => y.value === n) ?? r[0];
|
|
732
|
+
U(() => {
|
|
733
|
+
const y = r.findIndex((x) => x.value === n);
|
|
734
|
+
y !== -1 && f(y);
|
|
735
|
+
}, [n, r]), U(() => {
|
|
593
736
|
if (!s) return;
|
|
594
|
-
const
|
|
595
|
-
p.current && !p.current.contains(
|
|
737
|
+
const y = (x) => {
|
|
738
|
+
p.current && !p.current.contains(x.target) && c(!1);
|
|
596
739
|
};
|
|
597
|
-
return window.addEventListener("mousedown",
|
|
740
|
+
return window.addEventListener("mousedown", y), () => window.removeEventListener("mousedown", y);
|
|
598
741
|
}, [s]);
|
|
599
|
-
const
|
|
600
|
-
var
|
|
601
|
-
|
|
602
|
-
},
|
|
603
|
-
var
|
|
742
|
+
const S = (y) => {
|
|
743
|
+
var x;
|
|
744
|
+
o(y), c(!1), (x = m.current) == null || x.focus();
|
|
745
|
+
}, M = (y) => {
|
|
746
|
+
var x;
|
|
604
747
|
if (!s) {
|
|
605
|
-
(
|
|
748
|
+
(y.key === "ArrowDown" || y.key === "ArrowUp" || y.key === "Enter" || y.key === " ") && (y.preventDefault(), c(!0));
|
|
606
749
|
return;
|
|
607
750
|
}
|
|
608
|
-
if (
|
|
609
|
-
|
|
610
|
-
else if (
|
|
611
|
-
|
|
612
|
-
else if (
|
|
613
|
-
|
|
614
|
-
else if (
|
|
615
|
-
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
} else
|
|
751
|
+
if (y.key === "Escape")
|
|
752
|
+
y.preventDefault(), c(!1), (x = m.current) == null || x.focus();
|
|
753
|
+
else if (y.key === "ArrowDown")
|
|
754
|
+
y.preventDefault(), f((g) => (g + 1) % r.length);
|
|
755
|
+
else if (y.key === "ArrowUp")
|
|
756
|
+
y.preventDefault(), f((g) => (g - 1 + r.length) % r.length);
|
|
757
|
+
else if (y.key === "Enter" || y.key === " ") {
|
|
758
|
+
y.preventDefault();
|
|
759
|
+
const g = r[d];
|
|
760
|
+
g && !g.disabled && S(g.value);
|
|
761
|
+
} else y.key === "Tab" && c(!1);
|
|
619
762
|
};
|
|
620
763
|
return /* @__PURE__ */ a(
|
|
621
764
|
"div",
|
|
@@ -628,14 +771,14 @@ function ur({
|
|
|
628
771
|
/* @__PURE__ */ a(
|
|
629
772
|
"button",
|
|
630
773
|
{
|
|
631
|
-
ref:
|
|
774
|
+
ref: m,
|
|
632
775
|
type: "button",
|
|
633
776
|
"aria-haspopup": "listbox",
|
|
634
777
|
"aria-expanded": s,
|
|
635
778
|
"aria-controls": v,
|
|
636
779
|
"aria-label": i ?? t,
|
|
637
|
-
onClick: () => c((
|
|
638
|
-
onKeyDown:
|
|
780
|
+
onClick: () => c((y) => !y),
|
|
781
|
+
onKeyDown: M,
|
|
639
782
|
className: "zen-focus-ring flex items-center justify-between gap-3 px-3.5 py-2.5 rounded-xl bg-[var(--zen-surface-1)] border border-[var(--zen-border-default)] hover:border-[var(--zen-border-strong)] text-left text-xs sm:text-sm text-[var(--zen-ink-primary)] cursor-pointer transition-colors",
|
|
640
783
|
children: [
|
|
641
784
|
/* @__PURE__ */ a("span", { className: "inline-flex items-center gap-2 truncate min-w-0", children: [
|
|
@@ -643,7 +786,7 @@ function ur({
|
|
|
643
786
|
/* @__PURE__ */ e("span", { className: "zen-font-mono font-medium truncate", children: h == null ? void 0 : h.label })
|
|
644
787
|
] }),
|
|
645
788
|
/* @__PURE__ */ e(
|
|
646
|
-
|
|
789
|
+
et,
|
|
647
790
|
{
|
|
648
791
|
className: `w-4 h-4 text-[var(--zen-ink-muted)] shrink-0 transition-transform ${s ? "rotate-180 text-[var(--zen-accent-primary)]" : ""}`
|
|
649
792
|
}
|
|
@@ -658,31 +801,31 @@ function ur({
|
|
|
658
801
|
role: "listbox",
|
|
659
802
|
"aria-label": i ?? t,
|
|
660
803
|
className: `absolute z-50 top-full mt-2 w-full max-w-[calc(100vw-2rem)] max-h-64 overflow-y-auto p-1.5 rounded-2xl bg-[var(--zen-bg-elevated)] border border-[var(--zen-border-strong)] shadow-[var(--zen-shadow-hud)] backdrop-blur-xl ${u === "end" ? "right-0" : "left-0"}`,
|
|
661
|
-
children: r.map((
|
|
662
|
-
const
|
|
804
|
+
children: r.map((y, x) => {
|
|
805
|
+
const g = y.value === n, I = x === d;
|
|
663
806
|
return /* @__PURE__ */ a(
|
|
664
807
|
"li",
|
|
665
808
|
{
|
|
666
809
|
role: "option",
|
|
667
|
-
"aria-selected":
|
|
668
|
-
"aria-disabled":
|
|
669
|
-
onMouseEnter: () => f(
|
|
670
|
-
onMouseDown: (
|
|
671
|
-
|
|
810
|
+
"aria-selected": g,
|
|
811
|
+
"aria-disabled": y.disabled,
|
|
812
|
+
onMouseEnter: () => f(x),
|
|
813
|
+
onMouseDown: (w) => {
|
|
814
|
+
w.preventDefault(), y.disabled || S(y.value);
|
|
672
815
|
},
|
|
673
|
-
className: `flex items-center justify-between gap-3 px-3 py-2 rounded-xl cursor-pointer transition-colors ${
|
|
816
|
+
className: `flex items-center justify-between gap-3 px-3 py-2 rounded-xl cursor-pointer transition-colors ${I ? "bg-[var(--zen-accent-subtle)] text-[var(--zen-ink-primary)]" : "text-[var(--zen-ink-secondary)]"} ${y.disabled ? "opacity-40 cursor-not-allowed" : ""}`,
|
|
674
817
|
children: [
|
|
675
818
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2.5 min-w-0", children: [
|
|
676
|
-
|
|
819
|
+
y.icon && /* @__PURE__ */ e("span", { className: "text-[var(--zen-accent-primary)] shrink-0", children: y.icon }),
|
|
677
820
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
678
|
-
/* @__PURE__ */ e("div", { className: "zen-font-mono text-xs font-medium truncate", children:
|
|
679
|
-
|
|
821
|
+
/* @__PURE__ */ e("div", { className: "zen-font-mono text-xs font-medium truncate", children: y.label }),
|
|
822
|
+
y.description && /* @__PURE__ */ e("div", { className: "text-[11px] text-[var(--zen-ink-muted)] truncate", children: y.description })
|
|
680
823
|
] })
|
|
681
824
|
] }),
|
|
682
|
-
|
|
825
|
+
g && /* @__PURE__ */ e(Se, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)] shrink-0" })
|
|
683
826
|
]
|
|
684
827
|
},
|
|
685
|
-
|
|
828
|
+
y.value
|
|
686
829
|
);
|
|
687
830
|
})
|
|
688
831
|
}
|
|
@@ -691,11 +834,11 @@ function ur({
|
|
|
691
834
|
}
|
|
692
835
|
);
|
|
693
836
|
}
|
|
694
|
-
function
|
|
837
|
+
function Sr({
|
|
695
838
|
checked: t,
|
|
696
839
|
onChange: r,
|
|
697
840
|
label: n,
|
|
698
|
-
description:
|
|
841
|
+
description: o,
|
|
699
842
|
disabled: i = !1,
|
|
700
843
|
className: u = ""
|
|
701
844
|
}) {
|
|
@@ -715,7 +858,7 @@ function pr({
|
|
|
715
858
|
children: n
|
|
716
859
|
}
|
|
717
860
|
),
|
|
718
|
-
|
|
861
|
+
o && /* @__PURE__ */ e("div", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)] mt-0.5", children: o })
|
|
719
862
|
] }),
|
|
720
863
|
/* @__PURE__ */ e(
|
|
721
864
|
"button",
|
|
@@ -739,34 +882,34 @@ function pr({
|
|
|
739
882
|
}
|
|
740
883
|
);
|
|
741
884
|
}
|
|
742
|
-
function
|
|
885
|
+
function Mr({
|
|
743
886
|
open: t,
|
|
744
887
|
onClose: r,
|
|
745
888
|
eyebrow: n = "SYSTEM DIALOG",
|
|
746
|
-
title:
|
|
889
|
+
title: o,
|
|
747
890
|
subtitle: i,
|
|
748
891
|
footer: u,
|
|
749
892
|
children: l
|
|
750
893
|
}) {
|
|
751
894
|
const s = re(), c = R(null);
|
|
752
|
-
return
|
|
895
|
+
return U(() => {
|
|
753
896
|
var p;
|
|
754
897
|
if (!t) return;
|
|
755
|
-
const
|
|
898
|
+
const d = document.activeElement;
|
|
756
899
|
(p = c.current) == null || p.focus();
|
|
757
|
-
const f = (
|
|
758
|
-
|
|
900
|
+
const f = (m) => {
|
|
901
|
+
m.key === "Escape" && (m.preventDefault(), r());
|
|
759
902
|
};
|
|
760
903
|
return window.addEventListener("keydown", f), () => {
|
|
761
|
-
window.removeEventListener("keydown", f),
|
|
904
|
+
window.removeEventListener("keydown", f), d == null || d.focus();
|
|
762
905
|
};
|
|
763
906
|
}, [t, r]), t ? /* @__PURE__ */ e(
|
|
764
907
|
"div",
|
|
765
908
|
{
|
|
766
909
|
"data-zen-occlude": "true",
|
|
767
910
|
className: "fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-6 bg-black/70 backdrop-blur-md",
|
|
768
|
-
onMouseDown: (
|
|
769
|
-
|
|
911
|
+
onMouseDown: (d) => {
|
|
912
|
+
d.target === d.currentTarget && r();
|
|
770
913
|
},
|
|
771
914
|
children: /* @__PURE__ */ a(
|
|
772
915
|
"div",
|
|
@@ -784,7 +927,7 @@ function fr({
|
|
|
784
927
|
{
|
|
785
928
|
id: s,
|
|
786
929
|
className: "zen-font-display text-xl sm:text-3xl font-bold text-[var(--zen-ink-primary)]",
|
|
787
|
-
children:
|
|
930
|
+
children: o
|
|
788
931
|
}
|
|
789
932
|
),
|
|
790
933
|
i && /* @__PURE__ */ e("div", { className: "zen-font-serif italic text-base sm:text-lg text-[var(--zen-accent-primary)] mt-0.5", children: i })
|
|
@@ -797,7 +940,7 @@ function fr({
|
|
|
797
940
|
"aria-label": "Close dialog",
|
|
798
941
|
onClick: r,
|
|
799
942
|
className: "zen-focus-ring p-2 rounded-full border border-[var(--zen-border-default)] hover:border-[var(--zen-accent-primary)] text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] cursor-pointer transition-colors shrink-0",
|
|
800
|
-
children: /* @__PURE__ */ e(
|
|
943
|
+
children: /* @__PURE__ */ e(Me, { className: "w-4 h-4" })
|
|
801
944
|
}
|
|
802
945
|
)
|
|
803
946
|
] }),
|
|
@@ -809,12 +952,12 @@ function fr({
|
|
|
809
952
|
}
|
|
810
953
|
) : null;
|
|
811
954
|
}
|
|
812
|
-
const
|
|
813
|
-
info: /* @__PURE__ */ e(
|
|
814
|
-
success: /* @__PURE__ */ e(
|
|
815
|
-
warning: /* @__PURE__ */ e(
|
|
955
|
+
const Xt = {
|
|
956
|
+
info: /* @__PURE__ */ e(rt, { className: "w-4 h-4 text-[var(--zen-status-info)] shrink-0" }),
|
|
957
|
+
success: /* @__PURE__ */ e(Fe, { className: "w-4 h-4 text-[var(--zen-status-success)] shrink-0" }),
|
|
958
|
+
warning: /* @__PURE__ */ e(tt, { className: "w-4 h-4 text-[var(--zen-accent-primary)] shrink-0" })
|
|
816
959
|
};
|
|
817
|
-
function
|
|
960
|
+
function Ar({ toasts: t, onDismiss: r }) {
|
|
818
961
|
return t.length === 0 ? null : /* @__PURE__ */ e(
|
|
819
962
|
"div",
|
|
820
963
|
{
|
|
@@ -822,7 +965,7 @@ function vr({ toasts: t, onDismiss: r }) {
|
|
|
822
965
|
"data-zen-occlude": "true",
|
|
823
966
|
className: "fixed bottom-4 inset-x-4 sm:inset-x-auto sm:bottom-6 sm:right-6 z-50 flex flex-col gap-2.5 sm:max-w-sm sm:w-full pointer-events-none",
|
|
824
967
|
children: t.map((n) => {
|
|
825
|
-
const
|
|
968
|
+
const o = n.tone ?? "info";
|
|
826
969
|
return /* @__PURE__ */ a(
|
|
827
970
|
"div",
|
|
828
971
|
{
|
|
@@ -830,7 +973,7 @@ function vr({ toasts: t, onDismiss: r }) {
|
|
|
830
973
|
className: "pointer-events-auto flex items-start justify-between gap-3 p-4 rounded-2xl bg-[var(--zen-bg-elevated)] border border-[var(--zen-border-strong)] shadow-[var(--zen-shadow-hud)] backdrop-blur-xl",
|
|
831
974
|
children: [
|
|
832
975
|
/* @__PURE__ */ a("div", { className: "flex items-start gap-2.5 min-w-0", children: [
|
|
833
|
-
/* @__PURE__ */ e("div", { className: "mt-0.5", children:
|
|
976
|
+
/* @__PURE__ */ e("div", { className: "mt-0.5", children: Xt[o] }),
|
|
834
977
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
835
978
|
/* @__PURE__ */ e("div", { className: "zen-font-mono text-xs font-semibold text-[var(--zen-ink-primary)]", children: n.title }),
|
|
836
979
|
n.detail && /* @__PURE__ */ e("div", { className: "text-xs text-[var(--zen-ink-secondary)] mt-0.5 break-words", children: n.detail })
|
|
@@ -843,7 +986,7 @@ function vr({ toasts: t, onDismiss: r }) {
|
|
|
843
986
|
"aria-label": "Dismiss notification",
|
|
844
987
|
onClick: () => r(n.id),
|
|
845
988
|
className: "zen-focus-ring p-1 rounded-lg text-[var(--zen-ink-muted)] hover:text-[var(--zen-ink-primary)] cursor-pointer shrink-0",
|
|
846
|
-
children: /* @__PURE__ */ e(
|
|
989
|
+
children: /* @__PURE__ */ e(Me, { className: "w-3.5 h-3.5" })
|
|
847
990
|
}
|
|
848
991
|
)
|
|
849
992
|
]
|
|
@@ -854,10 +997,10 @@ function vr({ toasts: t, onDismiss: r }) {
|
|
|
854
997
|
}
|
|
855
998
|
);
|
|
856
999
|
}
|
|
857
|
-
function
|
|
858
|
-
const [t, r] =
|
|
1000
|
+
function Tr() {
|
|
1001
|
+
const [t, r] = F([]), n = Ne((i) => {
|
|
859
1002
|
r((u) => u.filter((l) => l.id !== i));
|
|
860
|
-
}, []),
|
|
1003
|
+
}, []), o = Ne(
|
|
861
1004
|
(i) => {
|
|
862
1005
|
const u = `${Date.now()}-${Math.random().toString(36).slice(2, 7)}`;
|
|
863
1006
|
r((l) => [...l.slice(-3), { ...i, id: u }]), window.setTimeout(() => {
|
|
@@ -868,28 +1011,28 @@ function hr() {
|
|
|
868
1011
|
);
|
|
869
1012
|
return {
|
|
870
1013
|
toasts: t,
|
|
871
|
-
pushToast:
|
|
1014
|
+
pushToast: o,
|
|
872
1015
|
dismissToast: n
|
|
873
1016
|
};
|
|
874
1017
|
}
|
|
875
|
-
function
|
|
1018
|
+
function Er({
|
|
876
1019
|
columns: t,
|
|
877
1020
|
rows: r,
|
|
878
1021
|
rowKey: n,
|
|
879
|
-
caption:
|
|
1022
|
+
caption: o,
|
|
880
1023
|
emptyMessage: i = "No telemetry records available.",
|
|
881
1024
|
className: u = ""
|
|
882
1025
|
}) {
|
|
883
|
-
const [l, s] =
|
|
884
|
-
l ===
|
|
885
|
-
}, p =
|
|
1026
|
+
const [l, s] = F(null), [c, d] = F("asc"), f = (m) => {
|
|
1027
|
+
l === m ? d((v) => v === "asc" ? "desc" : "asc") : (s(m), d("asc"));
|
|
1028
|
+
}, p = se(() => {
|
|
886
1029
|
if (!l) return r;
|
|
887
|
-
const
|
|
888
|
-
if (!
|
|
889
|
-
const v =
|
|
890
|
-
return [...r].sort((h,
|
|
891
|
-
const
|
|
892
|
-
return
|
|
1030
|
+
const m = t.find((h) => h.key === l);
|
|
1031
|
+
if (!m || !m.sortValue) return r;
|
|
1032
|
+
const v = m.sortValue;
|
|
1033
|
+
return [...r].sort((h, S) => {
|
|
1034
|
+
const M = v(h), y = v(S);
|
|
1035
|
+
return M < y ? c === "asc" ? -1 : 1 : M > y ? c === "asc" ? 1 : -1 : 0;
|
|
893
1036
|
});
|
|
894
1037
|
}, [r, t, l, c]);
|
|
895
1038
|
return /* @__PURE__ */ e(
|
|
@@ -898,29 +1041,29 @@ function br({
|
|
|
898
1041
|
"data-zen-occlude": "true",
|
|
899
1042
|
className: `zen-table-wrapper overflow-x-auto rounded-2xl border border-[var(--zen-border-default)] zen-surface-static ${u}`.trim(),
|
|
900
1043
|
children: /* @__PURE__ */ a("table", { className: "w-full border-collapse text-left text-xs sm:text-sm", children: [
|
|
901
|
-
|
|
902
|
-
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: "border-b border-[var(--zen-border-subtle)] bg-[var(--zen-surface-subtle)]", children: t.map((
|
|
903
|
-
const v = l ===
|
|
1044
|
+
o && /* @__PURE__ */ e("caption", { className: "sr-only", children: o }),
|
|
1045
|
+
/* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e("tr", { className: "border-b border-[var(--zen-border-subtle)] bg-[var(--zen-surface-subtle)]", children: t.map((m) => {
|
|
1046
|
+
const v = l === m.key;
|
|
904
1047
|
return /* @__PURE__ */ e(
|
|
905
1048
|
"th",
|
|
906
1049
|
{
|
|
907
1050
|
scope: "col",
|
|
908
|
-
"aria-sort":
|
|
909
|
-
className: `px-4 py-3 zen-telemetry-label ${
|
|
910
|
-
children:
|
|
1051
|
+
"aria-sort": m.sortable ? v ? c === "asc" ? "ascending" : "descending" : "none" : void 0,
|
|
1052
|
+
className: `px-4 py-3 zen-telemetry-label ${m.align === "right" ? "text-right" : "text-left"}`,
|
|
1053
|
+
children: m.sortable ? /* @__PURE__ */ a(
|
|
911
1054
|
"button",
|
|
912
1055
|
{
|
|
913
1056
|
type: "button",
|
|
914
|
-
onClick: () => f(
|
|
1057
|
+
onClick: () => f(m.key),
|
|
915
1058
|
className: "zen-focus-ring inline-flex items-center gap-1.5 hover:text-[var(--zen-ink-primary)] cursor-pointer",
|
|
916
1059
|
children: [
|
|
917
|
-
/* @__PURE__ */ e("span", { children:
|
|
918
|
-
v ? c === "asc" ? /* @__PURE__ */ e(
|
|
1060
|
+
/* @__PURE__ */ e("span", { children: m.header }),
|
|
1061
|
+
v ? c === "asc" ? /* @__PURE__ */ e(zt, { className: "w-3 h-3 text-[var(--zen-accent-primary)]" }) : /* @__PURE__ */ e(wt, { className: "w-3 h-3 text-[var(--zen-accent-primary)]" }) : /* @__PURE__ */ e(Nt, { className: "w-3 h-3 opacity-50" })
|
|
919
1062
|
]
|
|
920
1063
|
}
|
|
921
|
-
) :
|
|
1064
|
+
) : m.header
|
|
922
1065
|
},
|
|
923
|
-
|
|
1066
|
+
m.key
|
|
924
1067
|
);
|
|
925
1068
|
}) }) }),
|
|
926
1069
|
/* @__PURE__ */ e("tbody", { className: "divide-y divide-[var(--zen-border-subtle)]", children: p.length === 0 ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e(
|
|
@@ -930,7 +1073,7 @@ function br({
|
|
|
930
1073
|
className: "px-4 py-8 text-center zen-font-mono text-xs text-[var(--zen-ink-muted)]",
|
|
931
1074
|
children: i
|
|
932
1075
|
}
|
|
933
|
-
) }) : p.map((
|
|
1076
|
+
) }) : p.map((m) => /* @__PURE__ */ e(
|
|
934
1077
|
"tr",
|
|
935
1078
|
{
|
|
936
1079
|
className: "hover:bg-[var(--zen-surface-subtle)] transition-colors",
|
|
@@ -938,30 +1081,30 @@ function br({
|
|
|
938
1081
|
"td",
|
|
939
1082
|
{
|
|
940
1083
|
className: `px-4 py-3.5 text-[var(--zen-ink-primary)] ${v.align === "right" ? "text-right" : "text-left"} ${v.mono ? "zen-font-mono" : "zen-font-sans"}`,
|
|
941
|
-
children: v.render(
|
|
1084
|
+
children: v.render(m)
|
|
942
1085
|
},
|
|
943
1086
|
v.key
|
|
944
1087
|
))
|
|
945
1088
|
},
|
|
946
|
-
n(
|
|
1089
|
+
n(m)
|
|
947
1090
|
)) })
|
|
948
1091
|
] })
|
|
949
1092
|
}
|
|
950
1093
|
);
|
|
951
1094
|
}
|
|
952
|
-
function
|
|
1095
|
+
function Rr({
|
|
953
1096
|
brandTitle: t,
|
|
954
1097
|
brandSubtitle: r,
|
|
955
1098
|
navSlot: n,
|
|
956
|
-
actionsSlot:
|
|
1099
|
+
actionsSlot: o,
|
|
957
1100
|
mobileActionsSlot: i,
|
|
958
1101
|
className: u = ""
|
|
959
1102
|
}) {
|
|
960
|
-
const [l, s] =
|
|
961
|
-
return
|
|
1103
|
+
const [l, s] = F(!1);
|
|
1104
|
+
return U(() => {
|
|
962
1105
|
if (!l) return;
|
|
963
|
-
const c = (
|
|
964
|
-
|
|
1106
|
+
const c = (d) => {
|
|
1107
|
+
d.key === "Escape" && s(!1);
|
|
965
1108
|
};
|
|
966
1109
|
return window.addEventListener("keydown", c), () => window.removeEventListener("keydown", c);
|
|
967
1110
|
}, [l]), /* @__PURE__ */ a(
|
|
@@ -984,7 +1127,7 @@ function xr({
|
|
|
984
1127
|
}
|
|
985
1128
|
),
|
|
986
1129
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 sm:gap-2 shrink-0", children: [
|
|
987
|
-
|
|
1130
|
+
o,
|
|
988
1131
|
n && /* @__PURE__ */ e(
|
|
989
1132
|
"button",
|
|
990
1133
|
{
|
|
@@ -993,7 +1136,7 @@ function xr({
|
|
|
993
1136
|
"aria-expanded": l,
|
|
994
1137
|
onClick: () => s((c) => !c),
|
|
995
1138
|
className: "zen-focus-ring lg:hidden inline-flex items-center justify-center w-8 h-8 sm:w-9 sm:h-9 rounded-xl border border-[var(--zen-border-default)] bg-[var(--zen-surface-1)] text-[var(--zen-ink-primary)] cursor-pointer shrink-0",
|
|
996
|
-
children: l ? /* @__PURE__ */ e(
|
|
1139
|
+
children: l ? /* @__PURE__ */ e(Me, { className: "w-4 h-4 text-[var(--zen-accent-primary)]" }) : /* @__PURE__ */ e(kt, { className: "w-4 h-4 text-[var(--zen-accent-primary)]" })
|
|
997
1140
|
}
|
|
998
1141
|
)
|
|
999
1142
|
] })
|
|
@@ -1015,13 +1158,13 @@ function xr({
|
|
|
1015
1158
|
}
|
|
1016
1159
|
);
|
|
1017
1160
|
}
|
|
1018
|
-
const
|
|
1161
|
+
const De = [
|
|
1019
1162
|
{
|
|
1020
1163
|
id: "orion",
|
|
1021
1164
|
label: "CAPRI // UNLEASHED",
|
|
1022
1165
|
status: "UI SYNTHESIS SUBROUTINE",
|
|
1023
1166
|
frequency: "51 MODULES · 40 VECTOR ICONS",
|
|
1024
|
-
transmission:
|
|
1167
|
+
transmission: xe.orion.summary,
|
|
1025
1168
|
metrics: [
|
|
1026
1169
|
{ k: "AI CHAT CMD", v: '"Capri orion"' },
|
|
1027
1170
|
{ k: "CLI CMD", v: "npx capri skill orion" },
|
|
@@ -1034,7 +1177,7 @@ const Me = [
|
|
|
1034
1177
|
label: "SCS // ARCHITECT",
|
|
1035
1178
|
status: "MULTI-STACK & TOKEN GOVERNANCE",
|
|
1036
1179
|
frequency: "ZERO ANY · READONLY T[] · --ZEN-*",
|
|
1037
|
-
transmission:
|
|
1180
|
+
transmission: xe.architect.summary,
|
|
1038
1181
|
metrics: [
|
|
1039
1182
|
{ k: "AI CHAT CMD", v: '"Capri architect"' },
|
|
1040
1183
|
{ k: "CLI CMD", v: "npx capri skill architect" },
|
|
@@ -1047,7 +1190,7 @@ const Me = [
|
|
|
1047
1190
|
label: "CYBERPSYCHOSIS // GUARD",
|
|
1048
1191
|
status: "WCAG 2.2 AA & OVERFLOW AUDITOR",
|
|
1049
1192
|
frequency: "ZERO BLUR-RACE · 320PX-4K GUARD",
|
|
1050
|
-
transmission:
|
|
1193
|
+
transmission: xe.sentinel.summary,
|
|
1051
1194
|
metrics: [
|
|
1052
1195
|
{ k: "AI CHAT CMD", v: '"Capri guard"' },
|
|
1053
1196
|
{ k: "CLI CMD", v: "npx capri skill guard" },
|
|
@@ -1060,7 +1203,7 @@ const Me = [
|
|
|
1060
1203
|
label: "THEME // MATRIX",
|
|
1061
1204
|
status: "8-THEME POLARITY & 60FPS MOTION",
|
|
1062
1205
|
frequency: "4 DARK · 4 LIGHT · SPRING PHYSICS",
|
|
1063
|
-
transmission:
|
|
1206
|
+
transmission: xe.zen.summary,
|
|
1064
1207
|
metrics: [
|
|
1065
1208
|
{ k: "AI CHAT CMD", v: '"Capri zen"' },
|
|
1066
1209
|
{ k: "CLI CMD", v: "npx capri skill zen" },
|
|
@@ -1073,7 +1216,7 @@ const Me = [
|
|
|
1073
1216
|
label: "CAPRI // AUTO-DOCU",
|
|
1074
1217
|
status: "ARCHITECTURE & USER-FLOW DOCS",
|
|
1075
1218
|
frequency: "MERMAID FLOWCHART · 0 MS BUILD COST",
|
|
1076
|
-
transmission:
|
|
1219
|
+
transmission: xe.docu.summary,
|
|
1077
1220
|
metrics: [
|
|
1078
1221
|
{ k: "AI CHAT CMD", v: '"Capri docu"' },
|
|
1079
1222
|
{ k: "CLI CMD", v: "npx capri docu" },
|
|
@@ -1082,101 +1225,101 @@ const Me = [
|
|
|
1082
1225
|
]
|
|
1083
1226
|
}
|
|
1084
1227
|
];
|
|
1085
|
-
function
|
|
1228
|
+
function Lr({
|
|
1086
1229
|
constructName: t = "CAPRI // CAPRICORN",
|
|
1087
1230
|
subtitle: r = "EDGERUNNERS S2 SOULKILLER MIXED-CONSTRUCT",
|
|
1088
1231
|
defaultMode: n = "orion",
|
|
1089
|
-
defaultFraming:
|
|
1232
|
+
defaultFraming: o = "portrait",
|
|
1090
1233
|
compact: i = !1,
|
|
1091
1234
|
className: u = ""
|
|
1092
1235
|
}) {
|
|
1093
|
-
const { polarity: l, themeMeta: s, reducedMotion: c, setTheme:
|
|
1236
|
+
const { polarity: l, themeMeta: s, reducedMotion: c, setTheme: d, setRadius: f, setDensity: p } = Ve(), [m, v] = F(n), [h, S] = F(o), [M, y] = F(!1), [x, g] = F(0), I = R(null), w = R(null), z = R({ x: 0, y: 0 }), L = R(o === "portrait" ? 1 : 0), T = De.find((k) => k.id === m) ?? De[0], E = xe[m], A = M ? `${E.aiSystemPrompt}
|
|
1094
1237
|
|
|
1095
|
-
${
|
|
1096
|
-
|
|
1238
|
+
${E.aiVoiceAddendum}` : E.aiSystemPrompt;
|
|
1239
|
+
U(() => {
|
|
1097
1240
|
const k = new Image();
|
|
1098
1241
|
k.src = "/capri-construct-base.png", k.onload = () => {
|
|
1099
|
-
|
|
1242
|
+
w.current = k;
|
|
1100
1243
|
};
|
|
1101
|
-
}, []),
|
|
1102
|
-
const k =
|
|
1244
|
+
}, []), U(() => {
|
|
1245
|
+
const k = I.current;
|
|
1103
1246
|
if (!k) return;
|
|
1104
1247
|
const b = k.getContext("2d");
|
|
1105
1248
|
if (!b) return;
|
|
1106
|
-
let _ = 0,
|
|
1107
|
-
const
|
|
1108
|
-
const
|
|
1109
|
-
(k.width !==
|
|
1249
|
+
let _ = 0, j = 0;
|
|
1250
|
+
const ie = () => {
|
|
1251
|
+
const V = Math.min(window.devicePixelRatio || 1, 2), $ = k.clientWidth || 320, G = k.clientHeight || 340;
|
|
1252
|
+
(k.width !== $ * V || k.height !== G * V) && (k.width = $ * V, k.height = G * V), b.save(), b.scale(V, V), b.clearRect(0, 0, $, G), c || (j += 0.026);
|
|
1110
1253
|
const B = h === "portrait" ? 1 : 0;
|
|
1111
|
-
|
|
1112
|
-
const K =
|
|
1254
|
+
L.current += (B - L.current) * 0.12;
|
|
1255
|
+
const K = L.current, te = l === "light", W = "#FF003C", Y = "#FF1268", oe = "#00FF44", X = "#19A0FF", le = "#FFFFFF", de = z.current.x, he = z.current.y, ce = $ * 0.5, me = G * 0.48, Le = Math.min($, G) * 0.42;
|
|
1113
1256
|
if (te) {
|
|
1114
1257
|
b.save(), b.strokeStyle = "rgba(15, 23, 42, 0.05)", b.lineWidth = 1;
|
|
1115
|
-
const
|
|
1116
|
-
for (let C =
|
|
1117
|
-
b.beginPath(), b.moveTo(C, 0), b.lineTo(C,
|
|
1118
|
-
for (let C =
|
|
1119
|
-
b.beginPath(), b.moveTo(0, C), b.lineTo(
|
|
1258
|
+
const q = 28;
|
|
1259
|
+
for (let C = q; C < $; C += q)
|
|
1260
|
+
b.beginPath(), b.moveTo(C, 0), b.lineTo(C, G), b.stroke();
|
|
1261
|
+
for (let C = q; C < G; C += q)
|
|
1262
|
+
b.beginPath(), b.moveTo(0, C), b.lineTo($, C), b.stroke();
|
|
1120
1263
|
b.restore();
|
|
1121
1264
|
}
|
|
1122
1265
|
const J = b.createRadialGradient(
|
|
1123
1266
|
ce + de * 10,
|
|
1124
|
-
me - 12 +
|
|
1267
|
+
me - 12 + he * 8,
|
|
1125
1268
|
8,
|
|
1126
1269
|
ce,
|
|
1127
1270
|
me,
|
|
1128
|
-
|
|
1271
|
+
Le * 1.45
|
|
1129
1272
|
);
|
|
1130
|
-
te ? (J.addColorStop(0, `${s.accentHex}29`), J.addColorStop(0.55, "rgba(225, 29, 72, 0.10)"), J.addColorStop(0.85, `${s.secondaryHex}12`), J.addColorStop(1, "transparent")) : (J.addColorStop(0, "rgba(255, 0, 56, 0.24)"), J.addColorStop(0.55, "rgba(180, 12, 72, 0.10)"), J.addColorStop(0.85, "rgba(110, 24, 150, 0.04)"), J.addColorStop(1, "transparent")), b.fillStyle = J, b.fillRect(0, 0,
|
|
1131
|
-
const ne =
|
|
1273
|
+
te ? (J.addColorStop(0, `${s.accentHex}29`), J.addColorStop(0.55, "rgba(225, 29, 72, 0.10)"), J.addColorStop(0.85, `${s.secondaryHex}12`), J.addColorStop(1, "transparent")) : (J.addColorStop(0, "rgba(255, 0, 56, 0.24)"), J.addColorStop(0.55, "rgba(180, 12, 72, 0.10)"), J.addColorStop(0.85, "rgba(110, 24, 150, 0.04)"), J.addColorStop(1, "transparent")), b.fillStyle = J, b.fillRect(0, 0, $, G);
|
|
1274
|
+
const ne = w.current;
|
|
1132
1275
|
if (ne && ne.complete && ne.naturalWidth > 0) {
|
|
1133
|
-
const
|
|
1134
|
-
b.save(), b.beginPath(), b.rect(0, 0,
|
|
1276
|
+
const q = Math.sin(j * 1.85) * 4, C = de * 0.028 + Math.sin(j * 0.9) * 8e-3, O = 1 + K * 0.64, H = (G - 30) * 0.96 * O, D = ne.naturalWidth / ne.naturalHeight, ae = H * D, Z = ce - ae * (0.48 + K * 0.02) + de * 7, ee = -4 - K * 6 + q + he * 4;
|
|
1277
|
+
b.save(), b.beginPath(), b.rect(0, 0, $, G - 22), b.clip(), b.translate(ce, me), b.rotate(C), b.translate(-ce, -me), x > 0 && (b.save(), b.globalAlpha = 0.35, b.drawImage(
|
|
1135
1278
|
ne,
|
|
1136
|
-
|
|
1279
|
+
Z - 3 * x,
|
|
1137
1280
|
ee,
|
|
1138
1281
|
ae,
|
|
1139
|
-
|
|
1282
|
+
H
|
|
1140
1283
|
), b.drawImage(
|
|
1141
1284
|
ne,
|
|
1142
|
-
|
|
1285
|
+
Z + 3 * x,
|
|
1143
1286
|
ee + 1,
|
|
1144
1287
|
ae,
|
|
1145
|
-
|
|
1146
|
-
), b.restore()), te ? (b.save(), b.shadowColor = "rgba(15, 23, 42, 0.22)", b.shadowBlur = 18, b.shadowOffsetY = 6, b.drawImage(ne,
|
|
1147
|
-
const
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1288
|
+
H
|
|
1289
|
+
), b.restore()), te ? (b.save(), b.shadowColor = "rgba(15, 23, 42, 0.22)", b.shadowBlur = 18, b.shadowOffsetY = 6, b.drawImage(ne, Z, ee, ae, H), b.restore()) : b.drawImage(ne, Z, ee, ae, H);
|
|
1290
|
+
const Ge = Math.sin(j * 1.1 - 1.2) > 0.992, Ee = de * (2.8 + K * 1.8), pe = he * (2.2 + K * 1.4), ze = Z + ae * 0.57 + Ee, Re = ee + H * 0.2325 + pe, Ie = ae * 0.0195, Be = Z + ae * 0.4751 + Ee * 0.65, _e = ee + H * 0.2472 + pe * 0.65, je = ae * 0.0105;
|
|
1291
|
+
Ge || (b.beginPath(), b.arc(ze, Re, Ie, 0, Math.PI * 2), b.fillStyle = X, b.fill(), b.beginPath(), b.arc(ze, Re, Ie * 0.62, 0, Math.PI * 2), b.fillStyle = "#0D1322", b.fill(), b.beginPath(), b.arc(
|
|
1292
|
+
ze + de * 0.6,
|
|
1293
|
+
Re + he * 0.5,
|
|
1294
|
+
Ie * 0.44,
|
|
1152
1295
|
0,
|
|
1153
1296
|
Math.PI * 2
|
|
1154
|
-
), b.fillStyle =
|
|
1297
|
+
), b.fillStyle = le, b.fill(), b.beginPath(), b.arc(Be, _e, je, 0, Math.PI * 2), b.fillStyle = X, b.fill(), b.beginPath(), b.arc(Be, _e, je * 0.48, 0, Math.PI * 2), b.fillStyle = le, b.fill()), b.restore();
|
|
1155
1298
|
}
|
|
1156
|
-
const ue = 28,
|
|
1299
|
+
const ue = 28, ge = $ * 0.68 / ue, Ae = $ * 0.16, Te = G - 13;
|
|
1157
1300
|
b.globalAlpha = 0.88;
|
|
1158
|
-
for (let
|
|
1159
|
-
const O = (1 - Math.abs(
|
|
1160
|
-
b.fillStyle = te ?
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
Math.max(2,
|
|
1301
|
+
for (let q = 0; q < ue; q++) {
|
|
1302
|
+
const O = (1 - Math.abs(q - ue * 0.5) / (ue * 0.5) * 0.72) * (4 + Math.abs(Math.sin(j * 4.2 + q * 0.45)) * (9 + x * 8));
|
|
1303
|
+
b.fillStyle = te ? q % 3 === 0 ? s.accentHex : q % 5 === 0 ? s.secondaryHex : W : q % 3 === 0 ? W : q % 5 === 0 ? oe : Y, b.fillRect(
|
|
1304
|
+
Ae + q * ge,
|
|
1305
|
+
Te - O * 0.5,
|
|
1306
|
+
Math.max(2, ge - 3),
|
|
1164
1307
|
O
|
|
1165
1308
|
);
|
|
1166
1309
|
}
|
|
1167
|
-
b.restore(), _ = window.requestAnimationFrame(
|
|
1310
|
+
b.restore(), _ = window.requestAnimationFrame(ie);
|
|
1168
1311
|
};
|
|
1169
|
-
return _ = window.requestAnimationFrame(
|
|
1170
|
-
}, [l, s.accentHex, s.secondaryHex, c,
|
|
1171
|
-
const
|
|
1172
|
-
v(k),
|
|
1312
|
+
return _ = window.requestAnimationFrame(ie), () => window.cancelAnimationFrame(_);
|
|
1313
|
+
}, [l, s.accentHex, s.secondaryHex, c, x, h]);
|
|
1314
|
+
const P = (k) => {
|
|
1315
|
+
v(k), g(1), window.setTimeout(() => g(0), 650);
|
|
1173
1316
|
}, Q = () => {
|
|
1174
|
-
|
|
1317
|
+
Oe.switchSubroutine(m, {
|
|
1175
1318
|
applyPresetTheme: !0,
|
|
1176
1319
|
onThemeChange: (k, b, _) => {
|
|
1177
|
-
|
|
1320
|
+
d(k), f(b), p(_);
|
|
1178
1321
|
}
|
|
1179
|
-
}),
|
|
1322
|
+
}), g(1), window.setTimeout(() => g(0), 650);
|
|
1180
1323
|
};
|
|
1181
1324
|
return /* @__PURE__ */ e(
|
|
1182
1325
|
"div",
|
|
@@ -1184,13 +1327,13 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1184
1327
|
"data-zen-occlude": "true",
|
|
1185
1328
|
onMouseMove: (k) => {
|
|
1186
1329
|
const b = k.currentTarget.getBoundingClientRect();
|
|
1187
|
-
|
|
1330
|
+
z.current = {
|
|
1188
1331
|
x: (k.clientX - b.left) / b.width * 2 - 1,
|
|
1189
1332
|
y: (k.clientY - b.top) / b.height * 2 - 1
|
|
1190
1333
|
};
|
|
1191
1334
|
},
|
|
1192
1335
|
onMouseLeave: () => {
|
|
1193
|
-
|
|
1336
|
+
z.current = { x: 0, y: 0 };
|
|
1194
1337
|
},
|
|
1195
1338
|
className: `zen-surface-selected overflow-hidden p-4 sm:p-6 lg:p-8 ${u}`.trim(),
|
|
1196
1339
|
children: /* @__PURE__ */ a("div", { className: "grid grid-cols-1 lg:grid-cols-12 gap-6 items-center", children: [
|
|
@@ -1201,32 +1344,32 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1201
1344
|
children: [
|
|
1202
1345
|
/* @__PURE__ */ a("div", { className: "w-full flex flex-wrap items-center justify-between gap-2 px-2 pt-1 z-10", children: [
|
|
1203
1346
|
/* @__PURE__ */ a("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)] font-semibold flex items-center gap-1.5 truncate", children: [
|
|
1204
|
-
/* @__PURE__ */ e(
|
|
1205
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
1347
|
+
/* @__PURE__ */ e(Ct, { className: "w-3.5 h-3.5 animate-pulse shrink-0" }),
|
|
1348
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: T.frequency })
|
|
1206
1349
|
] }),
|
|
1207
1350
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 shrink-0", children: [
|
|
1208
1351
|
/* @__PURE__ */ e(
|
|
1209
1352
|
"button",
|
|
1210
1353
|
{
|
|
1211
1354
|
type: "button",
|
|
1212
|
-
onClick: () =>
|
|
1355
|
+
onClick: () => S((k) => k === "portrait" ? "full" : "portrait"),
|
|
1213
1356
|
className: "zen-focus-ring inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full border border-[var(--zen-accent-border)] bg-[var(--zen-accent-subtle)] zen-font-mono text-[10px] font-medium text-[var(--zen-accent-primary)] hover:bg-[var(--zen-surface-subtle-hover)] cursor-pointer transition-colors",
|
|
1214
|
-
children: h === "portrait" ? /* @__PURE__ */ a(
|
|
1215
|
-
/* @__PURE__ */ e(
|
|
1357
|
+
children: h === "portrait" ? /* @__PURE__ */ a(ke, { children: [
|
|
1358
|
+
/* @__PURE__ */ e(St, { className: "w-2.5 h-2.5" }),
|
|
1216
1359
|
/* @__PURE__ */ e("span", { children: "FULL POSE" })
|
|
1217
|
-
] }) : /* @__PURE__ */ a(
|
|
1218
|
-
/* @__PURE__ */ e(
|
|
1360
|
+
] }) : /* @__PURE__ */ a(ke, { children: [
|
|
1361
|
+
/* @__PURE__ */ e(Mt, { className: "w-2.5 h-2.5" }),
|
|
1219
1362
|
/* @__PURE__ */ e("span", { children: "PORTRAIT" })
|
|
1220
1363
|
] })
|
|
1221
1364
|
}
|
|
1222
1365
|
),
|
|
1223
|
-
/* @__PURE__ */ e(
|
|
1366
|
+
/* @__PURE__ */ e(Ye, { tone: "gold", pulse: !0, children: "CAPRI LIVE" })
|
|
1224
1367
|
] })
|
|
1225
1368
|
] }),
|
|
1226
1369
|
/* @__PURE__ */ e(
|
|
1227
1370
|
"canvas",
|
|
1228
1371
|
{
|
|
1229
|
-
ref:
|
|
1372
|
+
ref: I,
|
|
1230
1373
|
"aria-label": `${t} Studio Trigger mixed-construct visualization`,
|
|
1231
1374
|
className: "w-full h-72 sm:h-96 block"
|
|
1232
1375
|
}
|
|
@@ -1242,10 +1385,10 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1242
1385
|
/* @__PURE__ */ a("div", { children: [
|
|
1243
1386
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-between gap-2 mb-2", children: [
|
|
1244
1387
|
/* @__PURE__ */ a("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)] flex items-center gap-1.5", children: [
|
|
1245
|
-
/* @__PURE__ */ e(
|
|
1388
|
+
/* @__PURE__ */ e(We, { className: "w-3.5 h-3.5 shrink-0" }),
|
|
1246
1389
|
/* @__PURE__ */ e("span", { children: r })
|
|
1247
1390
|
] }),
|
|
1248
|
-
/* @__PURE__ */ e("span", { className: "zen-font-mono text-xs text-[var(--zen-accent-secondary)]", children:
|
|
1391
|
+
/* @__PURE__ */ e("span", { className: "zen-font-mono text-xs text-[var(--zen-accent-secondary)]", children: T.status })
|
|
1249
1392
|
] }),
|
|
1250
1393
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-baseline justify-between gap-2 sm:gap-3", children: [
|
|
1251
1394
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-baseline gap-2 sm:gap-3", children: [
|
|
@@ -1256,29 +1399,29 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1256
1399
|
"button",
|
|
1257
1400
|
{
|
|
1258
1401
|
type: "button",
|
|
1259
|
-
"aria-pressed":
|
|
1260
|
-
onClick: () =>
|
|
1261
|
-
className: `zen-focus-ring px-2.5 py-1 rounded-full border zen-font-mono text-[11px] cursor-pointer transition-all ${
|
|
1262
|
-
children:
|
|
1402
|
+
"aria-pressed": M,
|
|
1403
|
+
onClick: () => y((k) => !k),
|
|
1404
|
+
className: `zen-focus-ring px-2.5 py-1 rounded-full border zen-font-mono text-[11px] cursor-pointer transition-all ${M ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] border-[var(--zen-accent-primary)] font-semibold" : "bg-[var(--zen-surface-subtle)] text-[var(--zen-ink-secondary)] border-[var(--zen-border-default)] hover:text-[var(--zen-ink-primary)]"}`,
|
|
1405
|
+
children: M ? "Persona Voice: ON (--voice)" : "Persona Voice: OFF (Default)"
|
|
1263
1406
|
}
|
|
1264
1407
|
)
|
|
1265
1408
|
] }),
|
|
1266
1409
|
/* @__PURE__ */ a("div", { className: "mt-3 sm:mt-4 p-3.5 sm:p-4 rounded-2xl bg-[var(--zen-surface-subtle)] border border-[var(--zen-border-default)] space-y-2", children: [
|
|
1267
1410
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
|
|
1268
1411
|
/* @__PURE__ */ a("div", { className: "zen-telemetry-label text-[var(--zen-accent-secondary)] flex items-center gap-1.5", children: [
|
|
1269
|
-
/* @__PURE__ */ e(
|
|
1270
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
1412
|
+
/* @__PURE__ */ e(At, { className: "w-3.5 h-3.5 shrink-0" }),
|
|
1413
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: M ? `PERSONA VOICE (--VOICE) // ${T.label}` : `SUBROUTINE SPECIFICATION // ${T.label}` })
|
|
1271
1414
|
] }),
|
|
1272
1415
|
/* @__PURE__ */ a("span", { className: "zen-font-mono text-[11px] text-[var(--zen-accent-primary)]", children: [
|
|
1273
1416
|
"Ask in Claude / Codex / Gemini: “",
|
|
1274
|
-
|
|
1417
|
+
M ? E.voiceCommand : E.chatCommand,
|
|
1275
1418
|
"”"
|
|
1276
1419
|
] })
|
|
1277
1420
|
] }),
|
|
1278
|
-
/* @__PURE__ */ e("p", { className: "text-xs sm:text-sm text-[var(--zen-ink-primary)] leading-relaxed", children:
|
|
1421
|
+
/* @__PURE__ */ e("p", { className: "text-xs sm:text-sm text-[var(--zen-ink-primary)] leading-relaxed", children: M ? `“${E.personaQuote}”` : E.summary })
|
|
1279
1422
|
] })
|
|
1280
1423
|
] }),
|
|
1281
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-2.5", children:
|
|
1424
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-2 sm:grid-cols-4 gap-2 sm:gap-2.5", children: T.metrics.map((k) => /* @__PURE__ */ a(
|
|
1282
1425
|
"div",
|
|
1283
1426
|
{
|
|
1284
1427
|
className: "p-2.5 rounded-xl bg-[var(--zen-surface-subtle)] border border-[var(--zen-border-subtle)] min-w-0",
|
|
@@ -1291,14 +1434,14 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1291
1434
|
)) }),
|
|
1292
1435
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2 pt-2 border-t border-[var(--zen-border-subtle)]", children: [
|
|
1293
1436
|
/* @__PURE__ */ e("span", { className: "zen-telemetry-label mr-1 w-full sm:w-auto", children: "5 CAPRI SUBROUTINES:" }),
|
|
1294
|
-
|
|
1295
|
-
|
|
1437
|
+
De.map((k) => /* @__PURE__ */ e(
|
|
1438
|
+
Ce,
|
|
1296
1439
|
{
|
|
1297
1440
|
size: "sm",
|
|
1298
1441
|
mono: !0,
|
|
1299
|
-
variant: k.id ===
|
|
1300
|
-
onClick: () =>
|
|
1301
|
-
iconLeft: k.id === "orion" ? /* @__PURE__ */ e(
|
|
1442
|
+
variant: k.id === m ? "primary" : "secondary",
|
|
1443
|
+
onClick: () => P(k.id),
|
|
1444
|
+
iconLeft: k.id === "orion" ? /* @__PURE__ */ e(Tt, { className: "w-3.5 h-3.5" }) : k.id === "architect" ? /* @__PURE__ */ e(Et, { className: "w-3.5 h-3.5" }) : k.id === "sentinel" ? /* @__PURE__ */ e(nt, { className: "w-3.5 h-3.5" }) : k.id === "zen" ? /* @__PURE__ */ e(We, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ e(at, { className: "w-3.5 h-3.5" }),
|
|
1302
1445
|
children: k.label
|
|
1303
1446
|
},
|
|
1304
1447
|
k.id
|
|
@@ -1308,14 +1451,14 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1308
1451
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-between gap-2", children: [
|
|
1309
1452
|
/* @__PURE__ */ a("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)]", children: [
|
|
1310
1453
|
"RULES ENFORCED BY ",
|
|
1311
|
-
|
|
1454
|
+
E.chatCommand.toUpperCase(),
|
|
1312
1455
|
" (",
|
|
1313
|
-
|
|
1456
|
+
E.cliCommand,
|
|
1314
1457
|
")"
|
|
1315
1458
|
] }),
|
|
1316
|
-
/* @__PURE__ */ e(
|
|
1459
|
+
/* @__PURE__ */ e(Ye, { tone: "emerald", children: "0 MS BUILD / RUNTIME COST" })
|
|
1317
1460
|
] }),
|
|
1318
|
-
/* @__PURE__ */ e("ul", { className: "grid grid-cols-1 sm:grid-cols-2 gap-1.5 text-xs text-[var(--zen-ink-secondary)]", children:
|
|
1461
|
+
/* @__PURE__ */ e("ul", { className: "grid grid-cols-1 sm:grid-cols-2 gap-1.5 text-xs text-[var(--zen-ink-secondary)]", children: E.ruleset.map((k) => /* @__PURE__ */ a("li", { className: "flex items-start gap-1.5", children: [
|
|
1319
1462
|
/* @__PURE__ */ e("span", { className: "text-[var(--zen-accent-primary)] zen-font-mono", children: "›" }),
|
|
1320
1463
|
/* @__PURE__ */ e("span", { children: k })
|
|
1321
1464
|
] }, k)) }),
|
|
@@ -1323,7 +1466,7 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1323
1466
|
/* @__PURE__ */ e("span", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)]", children: "In production apps, <ZenAIConstruct /> is omitted; use these 5 subroutines in Claude, Codex, Gemini, or CLI." }),
|
|
1324
1467
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
1325
1468
|
/* @__PURE__ */ a(
|
|
1326
|
-
|
|
1469
|
+
Ce,
|
|
1327
1470
|
{
|
|
1328
1471
|
size: "sm",
|
|
1329
1472
|
variant: "secondary",
|
|
@@ -1331,17 +1474,17 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1331
1474
|
onClick: Q,
|
|
1332
1475
|
children: [
|
|
1333
1476
|
"Switch Preset (",
|
|
1334
|
-
|
|
1477
|
+
E.recommendedTheme,
|
|
1335
1478
|
")"
|
|
1336
1479
|
]
|
|
1337
1480
|
}
|
|
1338
1481
|
),
|
|
1339
1482
|
/* @__PURE__ */ e(
|
|
1340
|
-
|
|
1483
|
+
ot,
|
|
1341
1484
|
{
|
|
1342
1485
|
size: "sm",
|
|
1343
1486
|
variant: "primary",
|
|
1344
|
-
value:
|
|
1487
|
+
value: A,
|
|
1345
1488
|
label: "COPY SKILL FOR CLAUDE / CODEX / GEMINI",
|
|
1346
1489
|
copiedLabel: "SKILL COPIED"
|
|
1347
1490
|
}
|
|
@@ -1354,13 +1497,13 @@ ${M.aiVoiceAddendum}` : M.aiSystemPrompt;
|
|
|
1354
1497
|
}
|
|
1355
1498
|
);
|
|
1356
1499
|
}
|
|
1357
|
-
function
|
|
1500
|
+
function Ir({
|
|
1358
1501
|
variant: t = "blackwall-lattice",
|
|
1359
1502
|
interactive: r = !0,
|
|
1360
1503
|
paused: n = !1
|
|
1361
1504
|
}) {
|
|
1362
|
-
const { themeMeta:
|
|
1363
|
-
return
|
|
1505
|
+
const { themeMeta: o, reducedMotion: i } = Ve(), u = R(null), l = R({ x: 0.5, y: 0.35 });
|
|
1506
|
+
return U(() => {
|
|
1364
1507
|
if (!r) return;
|
|
1365
1508
|
const s = (c) => {
|
|
1366
1509
|
l.current = {
|
|
@@ -1369,13 +1512,13 @@ function yr({
|
|
|
1369
1512
|
};
|
|
1370
1513
|
};
|
|
1371
1514
|
return window.addEventListener("pointermove", s, { passive: !0 }), () => window.removeEventListener("pointermove", s);
|
|
1372
|
-
}, [r]),
|
|
1515
|
+
}, [r]), U(() => {
|
|
1373
1516
|
if (t === "minimal-void") return;
|
|
1374
1517
|
const s = u.current;
|
|
1375
1518
|
if (!s) return;
|
|
1376
1519
|
const c = s.getContext("2d");
|
|
1377
1520
|
if (!c) return;
|
|
1378
|
-
const
|
|
1521
|
+
const d = Array.from({ length: 56 }, (v, h) => ({
|
|
1379
1522
|
x: h * 73 % 1e3,
|
|
1380
1523
|
y: h * 137 % 1e3,
|
|
1381
1524
|
vx: (h % 5 - 2) * 0.22,
|
|
@@ -1384,66 +1527,66 @@ function yr({
|
|
|
1384
1527
|
phase: h * 0.6
|
|
1385
1528
|
}));
|
|
1386
1529
|
let f = 0, p = 0;
|
|
1387
|
-
const
|
|
1388
|
-
const v = Math.min(window.devicePixelRatio || 1, 1.5), h = window.innerWidth,
|
|
1389
|
-
(s.width !== h * v || s.height !==
|
|
1390
|
-
const
|
|
1530
|
+
const m = () => {
|
|
1531
|
+
const v = Math.min(window.devicePixelRatio || 1, 1.5), h = window.innerWidth, S = window.innerHeight;
|
|
1532
|
+
(s.width !== h * v || s.height !== S * v) && (s.width = h * v, s.height = S * v), c.save(), c.scale(v, v), c.clearRect(0, 0, h, S), !i && !n && (p += 0.014);
|
|
1533
|
+
const M = o.accentHex, y = o.secondaryHex, x = o.polarity === "dark", g = l.current.x * h, I = l.current.y * S;
|
|
1391
1534
|
if (t === "aurora-mesh") {
|
|
1392
|
-
const
|
|
1535
|
+
const w = c.createRadialGradient(
|
|
1393
1536
|
h * (0.25 + Math.sin(p * 0.7) * 0.12),
|
|
1394
|
-
|
|
1537
|
+
S * (0.28 + Math.cos(p * 0.5) * 0.1),
|
|
1395
1538
|
20,
|
|
1396
1539
|
h * 0.35,
|
|
1397
|
-
|
|
1398
|
-
Math.max(h,
|
|
1540
|
+
S * 0.35,
|
|
1541
|
+
Math.max(h, S) * 0.55
|
|
1399
1542
|
);
|
|
1400
|
-
|
|
1401
|
-
const
|
|
1543
|
+
w.addColorStop(0, `${M}${x ? "24" : "18"}`), w.addColorStop(1, "transparent"), c.fillStyle = w, c.fillRect(0, 0, h, S);
|
|
1544
|
+
const z = c.createRadialGradient(
|
|
1402
1545
|
h * (0.75 + Math.cos(p * 0.6) * 0.12),
|
|
1403
|
-
|
|
1546
|
+
S * (0.65 + Math.sin(p * 0.8) * 0.1),
|
|
1404
1547
|
20,
|
|
1405
1548
|
h * 0.7,
|
|
1406
|
-
|
|
1407
|
-
Math.max(h,
|
|
1549
|
+
S * 0.65,
|
|
1550
|
+
Math.max(h, S) * 0.5
|
|
1408
1551
|
);
|
|
1409
|
-
|
|
1552
|
+
z.addColorStop(0, `${y}${x ? "20" : "14"}`), z.addColorStop(1, "transparent"), c.fillStyle = z, c.fillRect(0, 0, h, S);
|
|
1410
1553
|
} else if (t === "swiss-blueprint") {
|
|
1411
|
-
c.strokeStyle =
|
|
1412
|
-
for (let
|
|
1413
|
-
c.beginPath(), c.moveTo(
|
|
1414
|
-
for (let
|
|
1415
|
-
c.beginPath(), c.moveTo(0,
|
|
1416
|
-
for (let
|
|
1417
|
-
for (let
|
|
1418
|
-
const
|
|
1419
|
-
c.fillStyle =
|
|
1554
|
+
c.strokeStyle = x ? `${M}14` : `${M}16`, c.lineWidth = 1;
|
|
1555
|
+
for (let z = 0; z < h; z += 48)
|
|
1556
|
+
c.beginPath(), c.moveTo(z, 0), c.lineTo(z, S), c.stroke();
|
|
1557
|
+
for (let z = 0; z < S; z += 48)
|
|
1558
|
+
c.beginPath(), c.moveTo(0, z), c.lineTo(h, z), c.stroke();
|
|
1559
|
+
for (let z = 48; z < h; z += 96)
|
|
1560
|
+
for (let L = 48; L < S; L += 96) {
|
|
1561
|
+
const T = Math.hypot(z - g, L - I), E = Math.max(0, 1 - T / 280);
|
|
1562
|
+
c.fillStyle = E > 0.2 ? M : y, c.globalAlpha = (x ? 0.22 : 0.28) + E * 0.55, c.fillRect(z - 1.5, L - 1.5, 3, 3);
|
|
1420
1563
|
}
|
|
1421
1564
|
} else {
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
const
|
|
1425
|
-
c.strokeStyle = `${
|
|
1426
|
-
const
|
|
1427
|
-
for (let
|
|
1428
|
-
const
|
|
1429
|
-
c.beginPath(), c.moveTo(
|
|
1565
|
+
const w = c.createRadialGradient(g, I, 10, g, I, 460);
|
|
1566
|
+
w.addColorStop(0, `${M}${x ? "1c" : "14"}`), w.addColorStop(0.5, `${y}${x ? "0d" : "08"}`), w.addColorStop(1, "transparent"), c.fillStyle = w, c.fillRect(0, 0, h, S);
|
|
1567
|
+
const z = S * 0.52;
|
|
1568
|
+
c.strokeStyle = `${M}${x ? "1f" : "22"}`, c.lineWidth = 1;
|
|
1569
|
+
const L = 18;
|
|
1570
|
+
for (let A = -L; A <= L; A++) {
|
|
1571
|
+
const P = h * 0.5 + A * (h / L) * 0.32, Q = h * 0.5 + A * (h / L) * 1.45;
|
|
1572
|
+
c.beginPath(), c.moveTo(P, z), c.lineTo(Q, S), c.stroke();
|
|
1430
1573
|
}
|
|
1431
|
-
const
|
|
1432
|
-
for (let
|
|
1433
|
-
const
|
|
1434
|
-
c.globalAlpha =
|
|
1574
|
+
const T = 10, E = p * 0.8 % 1;
|
|
1575
|
+
for (let A = 0; A < T; A++) {
|
|
1576
|
+
const P = Math.pow((A + E) / T, 1.75), Q = z + P * (S - z);
|
|
1577
|
+
c.globalAlpha = P * (x ? 0.35 : 0.28), c.beginPath(), c.moveTo(0, Q), c.lineTo(h, Q), c.stroke();
|
|
1435
1578
|
}
|
|
1436
|
-
for (let
|
|
1437
|
-
const
|
|
1438
|
-
!i && !n && (
|
|
1439
|
-
const Q =
|
|
1440
|
-
c.globalAlpha = (
|
|
1579
|
+
for (let A = 0; A < d.length; A++) {
|
|
1580
|
+
const P = d[A];
|
|
1581
|
+
!i && !n && (P.x = (P.x + P.vx + 1e3) % 1e3, P.y = (P.y + P.vy + 1e3) % 1e3);
|
|
1582
|
+
const Q = P.x / 1e3 * h, k = P.y / 1e3 * S;
|
|
1583
|
+
c.globalAlpha = (x ? 0.35 : 0.4) + Math.sin(p * 2 + P.phase) * 0.2, c.fillStyle = A % 3 === 0 ? y : M, c.fillRect(Q, k, P.size, P.size * 3.2);
|
|
1441
1584
|
}
|
|
1442
1585
|
}
|
|
1443
|
-
c.restore(), f = window.requestAnimationFrame(
|
|
1586
|
+
c.restore(), f = window.requestAnimationFrame(m);
|
|
1444
1587
|
};
|
|
1445
|
-
return f = window.requestAnimationFrame(
|
|
1446
|
-
}, [t,
|
|
1588
|
+
return f = window.requestAnimationFrame(m), () => window.cancelAnimationFrame(f);
|
|
1589
|
+
}, [t, o, i, n]), t === "minimal-void" ? null : /* @__PURE__ */ e(
|
|
1447
1590
|
"canvas",
|
|
1448
1591
|
{
|
|
1449
1592
|
ref: u,
|
|
@@ -1452,24 +1595,24 @@ function yr({
|
|
|
1452
1595
|
}
|
|
1453
1596
|
);
|
|
1454
1597
|
}
|
|
1455
|
-
function
|
|
1598
|
+
function Pr({
|
|
1456
1599
|
label: t,
|
|
1457
1600
|
hint: r,
|
|
1458
1601
|
error: n,
|
|
1459
|
-
maxLengthCount:
|
|
1602
|
+
maxLengthCount: o,
|
|
1460
1603
|
mono: i = !1,
|
|
1461
1604
|
capriGuard: u = !0,
|
|
1462
1605
|
id: l,
|
|
1463
1606
|
value: s,
|
|
1464
1607
|
defaultValue: c,
|
|
1465
|
-
onChange:
|
|
1608
|
+
onChange: d,
|
|
1466
1609
|
className: f = "",
|
|
1467
1610
|
...p
|
|
1468
1611
|
}) {
|
|
1469
|
-
const
|
|
1612
|
+
const m = re(), v = l ?? m, h = `${v}-desc`, [S, M] = F(
|
|
1470
1613
|
typeof c == "string" ? c : ""
|
|
1471
|
-
),
|
|
1472
|
-
s === void 0 &&
|
|
1614
|
+
), y = typeof s == "string" ? s : typeof s == "number" ? String(s) : S, x = y.length, g = u ? Oe.scanInputSecurity(y) : null, I = g && !g.safe && g.threats[0] ? `CAPRI GUARD BLOCKED [${g.threats[0].category}]: ${g.threats[0].patternName}` : void 0, w = n || I, z = (L) => {
|
|
1615
|
+
s === void 0 && M(L.target.value), d == null || d(L);
|
|
1473
1616
|
};
|
|
1474
1617
|
return /* @__PURE__ */ a(
|
|
1475
1618
|
"div",
|
|
@@ -1486,10 +1629,10 @@ function zr({
|
|
|
1486
1629
|
children: t
|
|
1487
1630
|
}
|
|
1488
1631
|
),
|
|
1489
|
-
|
|
1490
|
-
|
|
1632
|
+
o !== void 0 && /* @__PURE__ */ a("span", { className: "zen-telemetry-label", children: [
|
|
1633
|
+
x,
|
|
1491
1634
|
" / ",
|
|
1492
|
-
|
|
1635
|
+
o
|
|
1493
1636
|
] })
|
|
1494
1637
|
] }),
|
|
1495
1638
|
/* @__PURE__ */ e(
|
|
@@ -1498,45 +1641,45 @@ function zr({
|
|
|
1498
1641
|
id: v,
|
|
1499
1642
|
value: s,
|
|
1500
1643
|
defaultValue: c,
|
|
1501
|
-
onChange:
|
|
1502
|
-
maxLength:
|
|
1503
|
-
"aria-invalid": !!
|
|
1504
|
-
"aria-describedby":
|
|
1505
|
-
"data-capri-threat":
|
|
1506
|
-
className: `w-full min-h-24 px-3.5 py-2.5 rounded-xl bg-[var(--zen-surface-1)] border text-sm text-[var(--zen-ink-primary)] placeholder:text-[var(--zen-ink-muted)] focus:outline-none transition-colors ${
|
|
1644
|
+
onChange: z,
|
|
1645
|
+
maxLength: o,
|
|
1646
|
+
"aria-invalid": !!w,
|
|
1647
|
+
"aria-describedby": w || r ? h : void 0,
|
|
1648
|
+
"data-capri-threat": g && !g.safe && g.threats[0] ? g.threats[0].category : void 0,
|
|
1649
|
+
className: `w-full min-h-24 px-3.5 py-2.5 rounded-xl bg-[var(--zen-surface-1)] border text-sm text-[var(--zen-ink-primary)] placeholder:text-[var(--zen-ink-muted)] focus:outline-none transition-colors ${w ? "border-[var(--zen-status-danger)]" : "border-[var(--zen-border-default)] focus:border-[var(--zen-accent-primary)]"} ${i ? "zen-font-mono" : "zen-font-sans"}`,
|
|
1507
1650
|
...p
|
|
1508
1651
|
}
|
|
1509
1652
|
),
|
|
1510
|
-
(
|
|
1653
|
+
(w || r) && /* @__PURE__ */ e(
|
|
1511
1654
|
"span",
|
|
1512
1655
|
{
|
|
1513
1656
|
id: h,
|
|
1514
|
-
className: `zen-font-mono text-[11px] ${
|
|
1515
|
-
children:
|
|
1657
|
+
className: `zen-font-mono text-[11px] ${w ? "text-[var(--zen-status-danger)]" : "text-[var(--zen-ink-muted)]"}`,
|
|
1658
|
+
children: w ?? r
|
|
1516
1659
|
}
|
|
1517
1660
|
)
|
|
1518
1661
|
]
|
|
1519
1662
|
}
|
|
1520
1663
|
);
|
|
1521
1664
|
}
|
|
1522
|
-
function
|
|
1665
|
+
function Dr({
|
|
1523
1666
|
label: t,
|
|
1524
1667
|
value: r,
|
|
1525
1668
|
onChange: n,
|
|
1526
|
-
min:
|
|
1669
|
+
min: o = 0,
|
|
1527
1670
|
max: i = 100,
|
|
1528
1671
|
step: u = 1,
|
|
1529
1672
|
unit: l,
|
|
1530
1673
|
disabled: s = !1,
|
|
1531
1674
|
className: c = ""
|
|
1532
1675
|
}) {
|
|
1533
|
-
const
|
|
1676
|
+
const d = re(), f = (() => {
|
|
1534
1677
|
const v = String(u), h = v.indexOf(".");
|
|
1535
1678
|
return h === -1 ? 0 : v.length - h - 1;
|
|
1536
1679
|
})(), p = (v) => {
|
|
1537
|
-
const h = Math.max(
|
|
1680
|
+
const h = Math.max(o, Math.min(i, v));
|
|
1538
1681
|
return Number(h.toFixed(f));
|
|
1539
|
-
},
|
|
1682
|
+
}, m = (v) => {
|
|
1540
1683
|
s || n(p(r + v * u));
|
|
1541
1684
|
};
|
|
1542
1685
|
return /* @__PURE__ */ a(
|
|
@@ -1548,7 +1691,7 @@ function Nr({
|
|
|
1548
1691
|
/* @__PURE__ */ e(
|
|
1549
1692
|
"span",
|
|
1550
1693
|
{
|
|
1551
|
-
id:
|
|
1694
|
+
id: d,
|
|
1552
1695
|
className: "zen-telemetry-label text-[var(--zen-ink-secondary)]",
|
|
1553
1696
|
children: t
|
|
1554
1697
|
}
|
|
@@ -1559,10 +1702,10 @@ function Nr({
|
|
|
1559
1702
|
{
|
|
1560
1703
|
type: "button",
|
|
1561
1704
|
"aria-label": `Decrease ${t}`,
|
|
1562
|
-
disabled: s || r <=
|
|
1563
|
-
onClick: () =>
|
|
1705
|
+
disabled: s || r <= o,
|
|
1706
|
+
onClick: () => m(-1),
|
|
1564
1707
|
className: "zen-focus-ring p-2 rounded-lg bg-[var(--zen-surface-subtle)] hover:bg-[var(--zen-accent-subtle)] text-[var(--zen-ink-primary)] disabled:opacity-35 cursor-pointer transition-colors",
|
|
1565
|
-
children: /* @__PURE__ */ e(
|
|
1708
|
+
children: /* @__PURE__ */ e(st, { className: "w-3.5 h-3.5" })
|
|
1566
1709
|
}
|
|
1567
1710
|
),
|
|
1568
1711
|
/* @__PURE__ */ a(
|
|
@@ -1570,12 +1713,12 @@ function Nr({
|
|
|
1570
1713
|
{
|
|
1571
1714
|
role: "spinbutton",
|
|
1572
1715
|
tabIndex: s ? -1 : 0,
|
|
1573
|
-
"aria-labelledby":
|
|
1716
|
+
"aria-labelledby": d,
|
|
1574
1717
|
"aria-valuenow": r,
|
|
1575
|
-
"aria-valuemin":
|
|
1718
|
+
"aria-valuemin": o,
|
|
1576
1719
|
"aria-valuemax": i,
|
|
1577
1720
|
onKeyDown: (v) => {
|
|
1578
|
-
v.key === "ArrowUp" ? (v.preventDefault(),
|
|
1721
|
+
v.key === "ArrowUp" ? (v.preventDefault(), m(1)) : v.key === "ArrowDown" && (v.preventDefault(), m(-1));
|
|
1579
1722
|
},
|
|
1580
1723
|
className: "zen-focus-ring px-3 py-1 rounded-lg zen-font-mono text-sm font-semibold text-[var(--zen-ink-primary)] text-center min-w-20",
|
|
1581
1724
|
children: [
|
|
@@ -1590,9 +1733,9 @@ function Nr({
|
|
|
1590
1733
|
type: "button",
|
|
1591
1734
|
"aria-label": `Increase ${t}`,
|
|
1592
1735
|
disabled: s || r >= i,
|
|
1593
|
-
onClick: () =>
|
|
1736
|
+
onClick: () => m(1),
|
|
1594
1737
|
className: "zen-focus-ring p-2 rounded-lg bg-[var(--zen-surface-subtle)] hover:bg-[var(--zen-accent-subtle)] text-[var(--zen-ink-primary)] disabled:opacity-35 cursor-pointer transition-colors",
|
|
1595
|
-
children: /* @__PURE__ */ e(
|
|
1738
|
+
children: /* @__PURE__ */ e(Lt, { className: "w-3.5 h-3.5" })
|
|
1596
1739
|
}
|
|
1597
1740
|
)
|
|
1598
1741
|
] })
|
|
@@ -1600,17 +1743,17 @@ function Nr({
|
|
|
1600
1743
|
}
|
|
1601
1744
|
);
|
|
1602
1745
|
}
|
|
1603
|
-
function
|
|
1746
|
+
function $r({
|
|
1604
1747
|
checked: t,
|
|
1605
1748
|
indeterminate: r = !1,
|
|
1606
1749
|
onChange: n,
|
|
1607
|
-
label:
|
|
1750
|
+
label: o,
|
|
1608
1751
|
description: i,
|
|
1609
1752
|
disabled: u = !1,
|
|
1610
1753
|
className: l = ""
|
|
1611
1754
|
}) {
|
|
1612
1755
|
const s = R(null), c = re();
|
|
1613
|
-
return
|
|
1756
|
+
return U(() => {
|
|
1614
1757
|
s.current && (s.current.indeterminate = r);
|
|
1615
1758
|
}, [r]), /* @__PURE__ */ a(
|
|
1616
1759
|
"label",
|
|
@@ -1629,7 +1772,7 @@ function wr({
|
|
|
1629
1772
|
checked: t,
|
|
1630
1773
|
disabled: u,
|
|
1631
1774
|
"aria-checked": r ? "mixed" : t,
|
|
1632
|
-
onChange: (
|
|
1775
|
+
onChange: (d) => n(d.target.checked),
|
|
1633
1776
|
className: "peer sr-only"
|
|
1634
1777
|
}
|
|
1635
1778
|
),
|
|
@@ -1637,37 +1780,37 @@ function wr({
|
|
|
1637
1780
|
"span",
|
|
1638
1781
|
{
|
|
1639
1782
|
className: `w-5 h-5 rounded-md border flex items-center justify-center transition-all peer-focus-visible:outline-2 peer-focus-visible:outline-[var(--zen-accent-focus)] peer-focus-visible:outline-offset-2 ${t || r ? "bg-[var(--zen-accent-primary)] border-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)]" : "bg-[var(--zen-surface-1)] border-[var(--zen-border-control)]"}`,
|
|
1640
|
-
children: r ? /* @__PURE__ */ e(
|
|
1783
|
+
children: r ? /* @__PURE__ */ e(st, { className: "w-3.5 h-3.5 stroke-[3]" }) : t ? /* @__PURE__ */ e(Se, { className: "w-3.5 h-3.5 stroke-[3]" }) : null
|
|
1641
1784
|
}
|
|
1642
1785
|
)
|
|
1643
1786
|
] }),
|
|
1644
1787
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
1645
|
-
/* @__PURE__ */ e("div", { className: "text-sm font-medium text-[var(--zen-ink-primary)]", children:
|
|
1788
|
+
/* @__PURE__ */ e("div", { className: "text-sm font-medium text-[var(--zen-ink-primary)]", children: o }),
|
|
1646
1789
|
i && /* @__PURE__ */ e("div", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)] mt-0.5", children: i })
|
|
1647
1790
|
] })
|
|
1648
1791
|
]
|
|
1649
1792
|
}
|
|
1650
1793
|
);
|
|
1651
1794
|
}
|
|
1652
|
-
function
|
|
1795
|
+
function Or({
|
|
1653
1796
|
label: t,
|
|
1654
1797
|
options: r,
|
|
1655
1798
|
value: n,
|
|
1656
|
-
onChange:
|
|
1799
|
+
onChange: o,
|
|
1657
1800
|
className: i = ""
|
|
1658
1801
|
}) {
|
|
1659
|
-
const u = re(), l = R([]), s = r.map((
|
|
1660
|
-
var
|
|
1802
|
+
const u = re(), l = R([]), s = r.map((d, f) => d.disabled ? -1 : f).filter((d) => d !== -1), c = (d, f) => {
|
|
1803
|
+
var m, v;
|
|
1661
1804
|
const p = s.indexOf(f);
|
|
1662
1805
|
if (p !== -1) {
|
|
1663
|
-
if (
|
|
1664
|
-
|
|
1806
|
+
if (d.key === "ArrowDown" || d.key === "ArrowRight") {
|
|
1807
|
+
d.preventDefault();
|
|
1665
1808
|
const h = s[(p + 1) % s.length];
|
|
1666
|
-
(
|
|
1667
|
-
} else if (
|
|
1668
|
-
|
|
1809
|
+
(m = l.current[h]) == null || m.focus(), o(r[h].value);
|
|
1810
|
+
} else if (d.key === "ArrowUp" || d.key === "ArrowLeft") {
|
|
1811
|
+
d.preventDefault();
|
|
1669
1812
|
const h = s[(p - 1 + s.length) % s.length];
|
|
1670
|
-
(v = l.current[h]) == null || v.focus(),
|
|
1813
|
+
(v = l.current[h]) == null || v.focus(), o(r[h].value);
|
|
1671
1814
|
}
|
|
1672
1815
|
}
|
|
1673
1816
|
};
|
|
@@ -1687,21 +1830,21 @@ function kr({
|
|
|
1687
1830
|
children: t
|
|
1688
1831
|
}
|
|
1689
1832
|
),
|
|
1690
|
-
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-2", children: r.map((
|
|
1691
|
-
const p =
|
|
1833
|
+
/* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-2", children: r.map((d, f) => {
|
|
1834
|
+
const p = d.value === n;
|
|
1692
1835
|
return /* @__PURE__ */ a(
|
|
1693
1836
|
"button",
|
|
1694
1837
|
{
|
|
1695
|
-
ref: (
|
|
1696
|
-
l.current[f] =
|
|
1838
|
+
ref: (m) => {
|
|
1839
|
+
l.current[f] = m;
|
|
1697
1840
|
},
|
|
1698
1841
|
type: "button",
|
|
1699
1842
|
role: "radio",
|
|
1700
1843
|
"aria-checked": p,
|
|
1701
|
-
disabled:
|
|
1844
|
+
disabled: d.disabled,
|
|
1702
1845
|
tabIndex: p ? 0 : -1,
|
|
1703
|
-
onClick: () =>
|
|
1704
|
-
onKeyDown: (
|
|
1846
|
+
onClick: () => o(d.value),
|
|
1847
|
+
onKeyDown: (m) => c(m, f),
|
|
1705
1848
|
className: `zen-focus-ring flex items-center justify-between gap-3 p-3.5 rounded-xl border text-left cursor-pointer transition-all ${p ? "bg-[var(--zen-accent-subtle)] border-[var(--zen-accent-border)]" : "bg-[var(--zen-surface-1)] border-[var(--zen-border-subtle)] hover:border-[var(--zen-border-strong)]"}`,
|
|
1706
1849
|
children: [
|
|
1707
1850
|
/* @__PURE__ */ a("div", { className: "flex items-start gap-3 min-w-0", children: [
|
|
@@ -1713,34 +1856,34 @@ function kr({
|
|
|
1713
1856
|
}
|
|
1714
1857
|
),
|
|
1715
1858
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
1716
|
-
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm font-semibold text-[var(--zen-ink-primary)]", children:
|
|
1717
|
-
|
|
1859
|
+
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm font-semibold text-[var(--zen-ink-primary)]", children: d.label }),
|
|
1860
|
+
d.description && /* @__PURE__ */ e("div", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)] mt-0.5", children: d.description })
|
|
1718
1861
|
] })
|
|
1719
1862
|
] }),
|
|
1720
|
-
|
|
1863
|
+
d.badge && /* @__PURE__ */ e("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)] shrink-0", children: d.badge })
|
|
1721
1864
|
]
|
|
1722
1865
|
},
|
|
1723
|
-
|
|
1866
|
+
d.value
|
|
1724
1867
|
);
|
|
1725
1868
|
}) })
|
|
1726
1869
|
]
|
|
1727
1870
|
}
|
|
1728
1871
|
);
|
|
1729
1872
|
}
|
|
1730
|
-
function
|
|
1873
|
+
function Fr({
|
|
1731
1874
|
label: t,
|
|
1732
1875
|
value: r,
|
|
1733
1876
|
onChange: n,
|
|
1734
|
-
min:
|
|
1877
|
+
min: o = 0,
|
|
1735
1878
|
max: i = 100,
|
|
1736
1879
|
step: u = 1,
|
|
1737
1880
|
formatValue: l,
|
|
1738
1881
|
disabled: s = !1,
|
|
1739
1882
|
className: c = ""
|
|
1740
1883
|
}) {
|
|
1741
|
-
const
|
|
1884
|
+
const d = re(), f = Math.max(
|
|
1742
1885
|
0,
|
|
1743
|
-
Math.min(100, (r -
|
|
1886
|
+
Math.min(100, (r - o) / Math.max(i - o, 1e-6) * 100)
|
|
1744
1887
|
);
|
|
1745
1888
|
return /* @__PURE__ */ a(
|
|
1746
1889
|
"div",
|
|
@@ -1752,7 +1895,7 @@ function Cr({
|
|
|
1752
1895
|
/* @__PURE__ */ e(
|
|
1753
1896
|
"label",
|
|
1754
1897
|
{
|
|
1755
|
-
htmlFor:
|
|
1898
|
+
htmlFor: d,
|
|
1756
1899
|
className: "zen-telemetry-label text-[var(--zen-ink-secondary)]",
|
|
1757
1900
|
children: t
|
|
1758
1901
|
}
|
|
@@ -1770,9 +1913,9 @@ function Cr({
|
|
|
1770
1913
|
/* @__PURE__ */ e(
|
|
1771
1914
|
"input",
|
|
1772
1915
|
{
|
|
1773
|
-
id:
|
|
1916
|
+
id: d,
|
|
1774
1917
|
type: "range",
|
|
1775
|
-
min:
|
|
1918
|
+
min: o,
|
|
1776
1919
|
max: i,
|
|
1777
1920
|
step: u,
|
|
1778
1921
|
value: r,
|
|
@@ -1786,15 +1929,15 @@ function Cr({
|
|
|
1786
1929
|
}
|
|
1787
1930
|
);
|
|
1788
1931
|
}
|
|
1789
|
-
function
|
|
1932
|
+
function Vr({
|
|
1790
1933
|
label: t,
|
|
1791
1934
|
options: r,
|
|
1792
1935
|
selected: n,
|
|
1793
|
-
onChange:
|
|
1936
|
+
onChange: o,
|
|
1794
1937
|
className: i = ""
|
|
1795
1938
|
}) {
|
|
1796
1939
|
const u = (l) => {
|
|
1797
|
-
n.includes(l) ?
|
|
1940
|
+
n.includes(l) ? o(n.filter((s) => s !== l)) : o([...n, l]);
|
|
1798
1941
|
};
|
|
1799
1942
|
return /* @__PURE__ */ a(
|
|
1800
1943
|
"div",
|
|
@@ -1813,7 +1956,7 @@ function Sr({
|
|
|
1813
1956
|
onClick: () => u(l.value),
|
|
1814
1957
|
className: `zen-focus-ring px-3 py-1.5 rounded-full border zen-font-mono text-xs inline-flex items-center gap-1.5 cursor-pointer transition-all ${s ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] border-[var(--zen-accent-primary)] font-semibold" : "bg-[var(--zen-surface-subtle)] text-[var(--zen-ink-secondary)] border-[var(--zen-border-default)] hover:border-[var(--zen-accent-border)]"}`,
|
|
1815
1958
|
children: [
|
|
1816
|
-
s && /* @__PURE__ */ e(
|
|
1959
|
+
s && /* @__PURE__ */ e(Se, { className: "w-3 h-3" }),
|
|
1817
1960
|
/* @__PURE__ */ e("span", { children: l.label })
|
|
1818
1961
|
]
|
|
1819
1962
|
},
|
|
@@ -1824,20 +1967,20 @@ function Sr({
|
|
|
1824
1967
|
}
|
|
1825
1968
|
);
|
|
1826
1969
|
}
|
|
1827
|
-
function
|
|
1970
|
+
function Hr({
|
|
1828
1971
|
label: t,
|
|
1829
1972
|
acceptHint: r = "JSON, YAML, ICS, or PDF up to 25 MB",
|
|
1830
1973
|
files: n,
|
|
1831
|
-
onFilesChange:
|
|
1974
|
+
onFilesChange: o,
|
|
1832
1975
|
className: i = ""
|
|
1833
1976
|
}) {
|
|
1834
|
-
const [u, l] =
|
|
1835
|
-
if (!
|
|
1836
|
-
const f = Array.from(
|
|
1977
|
+
const [u, l] = F(!1), s = R(null), c = (d) => {
|
|
1978
|
+
if (!d) return;
|
|
1979
|
+
const f = Array.from(d).map((p) => ({
|
|
1837
1980
|
name: p.name,
|
|
1838
1981
|
sizeBytes: p.size
|
|
1839
1982
|
}));
|
|
1840
|
-
|
|
1983
|
+
o([...n, ...f]);
|
|
1841
1984
|
};
|
|
1842
1985
|
return /* @__PURE__ */ a(
|
|
1843
1986
|
"div",
|
|
@@ -1852,19 +1995,19 @@ function Ar({
|
|
|
1852
1995
|
role: "button",
|
|
1853
1996
|
tabIndex: 0,
|
|
1854
1997
|
onClick: () => {
|
|
1855
|
-
var
|
|
1856
|
-
return (
|
|
1998
|
+
var d;
|
|
1999
|
+
return (d = s.current) == null ? void 0 : d.click();
|
|
1857
2000
|
},
|
|
1858
|
-
onKeyDown: (
|
|
2001
|
+
onKeyDown: (d) => {
|
|
1859
2002
|
var f;
|
|
1860
|
-
(
|
|
2003
|
+
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), (f = s.current) == null || f.click());
|
|
1861
2004
|
},
|
|
1862
|
-
onDragOver: (
|
|
1863
|
-
|
|
2005
|
+
onDragOver: (d) => {
|
|
2006
|
+
d.preventDefault(), l(!0);
|
|
1864
2007
|
},
|
|
1865
2008
|
onDragLeave: () => l(!1),
|
|
1866
|
-
onDrop: (
|
|
1867
|
-
|
|
2009
|
+
onDrop: (d) => {
|
|
2010
|
+
d.preventDefault(), l(!1), c(d.dataTransfer.files);
|
|
1868
2011
|
},
|
|
1869
2012
|
className: `zen-focus-ring p-5 rounded-2xl border border-dashed text-center cursor-pointer transition-all ${u ? "border-[var(--zen-accent-primary)] bg-[var(--zen-accent-subtle)]" : "border-[var(--zen-border-strong)] bg-[var(--zen-surface-subtle)] hover:border-[var(--zen-accent-border)]"}`,
|
|
1870
2013
|
children: [
|
|
@@ -1875,55 +2018,55 @@ function Ar({
|
|
|
1875
2018
|
type: "file",
|
|
1876
2019
|
"aria-label": t,
|
|
1877
2020
|
multiple: !0,
|
|
1878
|
-
onChange: (
|
|
2021
|
+
onChange: (d) => c(d.target.files),
|
|
1879
2022
|
className: "sr-only"
|
|
1880
2023
|
}
|
|
1881
2024
|
),
|
|
1882
|
-
/* @__PURE__ */ e(
|
|
2025
|
+
/* @__PURE__ */ e(Rt, { className: "w-6 h-6 text-[var(--zen-accent-primary)] mx-auto mb-2" }),
|
|
1883
2026
|
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm font-semibold text-[var(--zen-ink-primary)]", children: "Drop artifacts here or click to browse" }),
|
|
1884
2027
|
/* @__PURE__ */ e("div", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)] mt-0.5", children: r })
|
|
1885
2028
|
]
|
|
1886
2029
|
}
|
|
1887
2030
|
),
|
|
1888
|
-
n.length > 0 && /* @__PURE__ */ e("ul", { className: "space-y-1.5", children: n.map((
|
|
2031
|
+
n.length > 0 && /* @__PURE__ */ e("ul", { className: "space-y-1.5", children: n.map((d, f) => /* @__PURE__ */ a(
|
|
1889
2032
|
"li",
|
|
1890
2033
|
{
|
|
1891
2034
|
className: "flex items-center justify-between gap-2 px-3 py-2 rounded-xl bg-[var(--zen-surface-1)] border border-[var(--zen-border-subtle)] text-xs",
|
|
1892
2035
|
children: [
|
|
1893
2036
|
/* @__PURE__ */ a("span", { className: "inline-flex items-center gap-2 truncate zen-font-mono", children: [
|
|
1894
|
-
/* @__PURE__ */ e(
|
|
1895
|
-
/* @__PURE__ */ e("span", { className: "truncate", children:
|
|
2037
|
+
/* @__PURE__ */ e(at, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)] shrink-0" }),
|
|
2038
|
+
/* @__PURE__ */ e("span", { className: "truncate", children: d.name })
|
|
1896
2039
|
] }),
|
|
1897
2040
|
/* @__PURE__ */ e(
|
|
1898
2041
|
"button",
|
|
1899
2042
|
{
|
|
1900
2043
|
type: "button",
|
|
1901
|
-
"aria-label": `Remove ${
|
|
1902
|
-
onClick: () =>
|
|
2044
|
+
"aria-label": `Remove ${d.name}`,
|
|
2045
|
+
onClick: () => o(n.filter((p, m) => m !== f)),
|
|
1903
2046
|
className: "text-[var(--zen-ink-muted)] hover:text-[var(--zen-status-danger)] cursor-pointer",
|
|
1904
|
-
children: /* @__PURE__ */ e(
|
|
2047
|
+
children: /* @__PURE__ */ e(Me, { className: "w-3.5 h-3.5" })
|
|
1905
2048
|
}
|
|
1906
2049
|
)
|
|
1907
2050
|
]
|
|
1908
2051
|
},
|
|
1909
|
-
`${
|
|
2052
|
+
`${d.name}-${f}`
|
|
1910
2053
|
)) })
|
|
1911
2054
|
]
|
|
1912
2055
|
}
|
|
1913
2056
|
);
|
|
1914
2057
|
}
|
|
1915
|
-
function
|
|
2058
|
+
function Zr({ items: t, className: r = "" }) {
|
|
1916
2059
|
return /* @__PURE__ */ e(
|
|
1917
2060
|
"nav",
|
|
1918
2061
|
{
|
|
1919
2062
|
"aria-label": "Breadcrumb",
|
|
1920
2063
|
"data-zen-occlude": "true",
|
|
1921
2064
|
className: r,
|
|
1922
|
-
children: /* @__PURE__ */ e("ol", { className: "flex flex-wrap items-center gap-1.5 zen-font-mono text-xs", children: t.map((n,
|
|
1923
|
-
const i =
|
|
2065
|
+
children: /* @__PURE__ */ e("ol", { className: "flex flex-wrap items-center gap-1.5 zen-font-mono text-xs", children: t.map((n, o) => {
|
|
2066
|
+
const i = o === t.length - 1;
|
|
1924
2067
|
return /* @__PURE__ */ a("li", { className: "inline-flex items-center gap-1.5", children: [
|
|
1925
|
-
|
|
1926
|
-
|
|
2068
|
+
o > 0 && /* @__PURE__ */ e(
|
|
2069
|
+
it,
|
|
1927
2070
|
{
|
|
1928
2071
|
className: "w-3.5 h-3.5 text-[var(--zen-ink-muted)] shrink-0",
|
|
1929
2072
|
"aria-hidden": "true"
|
|
@@ -1950,11 +2093,11 @@ function Tr({ items: t, className: r = "" }) {
|
|
|
1950
2093
|
}
|
|
1951
2094
|
);
|
|
1952
2095
|
}
|
|
1953
|
-
function
|
|
2096
|
+
function Gr({
|
|
1954
2097
|
currentPage: t,
|
|
1955
2098
|
totalPages: r,
|
|
1956
2099
|
onPageChange: n,
|
|
1957
|
-
className:
|
|
2100
|
+
className: o = ""
|
|
1958
2101
|
}) {
|
|
1959
2102
|
const i = Math.max(1, r), u = Array.from({ length: i }, (l, s) => s + 1);
|
|
1960
2103
|
return /* @__PURE__ */ a(
|
|
@@ -1962,7 +2105,7 @@ function Er({
|
|
|
1962
2105
|
{
|
|
1963
2106
|
"aria-label": "Pagination",
|
|
1964
2107
|
"data-zen-occlude": "true",
|
|
1965
|
-
className: `inline-flex flex-wrap items-center gap-1.5 ${
|
|
2108
|
+
className: `inline-flex flex-wrap items-center gap-1.5 ${o}`.trim(),
|
|
1966
2109
|
children: [
|
|
1967
2110
|
/* @__PURE__ */ e(
|
|
1968
2111
|
"button",
|
|
@@ -1972,7 +2115,7 @@ function Er({
|
|
|
1972
2115
|
disabled: t <= 1,
|
|
1973
2116
|
onClick: () => n(Math.max(1, t - 1)),
|
|
1974
2117
|
className: "zen-focus-ring p-2 rounded-xl border border-[var(--zen-border-default)] bg-[var(--zen-surface-1)] text-[var(--zen-ink-primary)] disabled:opacity-40 cursor-pointer",
|
|
1975
|
-
children: /* @__PURE__ */ e(
|
|
2118
|
+
children: /* @__PURE__ */ e(It, { className: "w-4 h-4" })
|
|
1976
2119
|
}
|
|
1977
2120
|
),
|
|
1978
2121
|
u.map((l) => {
|
|
@@ -1997,46 +2140,46 @@ function Er({
|
|
|
1997
2140
|
disabled: t >= i,
|
|
1998
2141
|
onClick: () => n(Math.min(i, t + 1)),
|
|
1999
2142
|
className: "zen-focus-ring p-2 rounded-xl border border-[var(--zen-border-default)] bg-[var(--zen-surface-1)] text-[var(--zen-ink-primary)] disabled:opacity-40 cursor-pointer",
|
|
2000
|
-
children: /* @__PURE__ */ e(
|
|
2143
|
+
children: /* @__PURE__ */ e(it, { className: "w-4 h-4" })
|
|
2001
2144
|
}
|
|
2002
2145
|
)
|
|
2003
2146
|
]
|
|
2004
2147
|
}
|
|
2005
2148
|
);
|
|
2006
2149
|
}
|
|
2007
|
-
const
|
|
2150
|
+
const Qe = {
|
|
2008
2151
|
1: "grid-cols-1",
|
|
2009
2152
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
2010
2153
|
3: "grid-cols-1 sm:grid-cols-3",
|
|
2011
2154
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
2012
2155
|
};
|
|
2013
|
-
function
|
|
2156
|
+
function Br({
|
|
2014
2157
|
steps: t,
|
|
2015
2158
|
activeStepIndex: r,
|
|
2016
2159
|
onStepClick: n,
|
|
2017
|
-
className:
|
|
2160
|
+
className: o = ""
|
|
2018
2161
|
}) {
|
|
2019
|
-
const i = Math.max(1, Math.min(4, t.length)), u =
|
|
2162
|
+
const i = Math.max(1, Math.min(4, t.length)), u = Qe[i] ?? Qe[4];
|
|
2020
2163
|
return /* @__PURE__ */ e(
|
|
2021
2164
|
"ol",
|
|
2022
2165
|
{
|
|
2023
2166
|
"data-zen-occlude": "true",
|
|
2024
|
-
className: `grid ${u} gap-3 ${
|
|
2167
|
+
className: `grid ${u} gap-3 ${o}`.trim(),
|
|
2025
2168
|
children: t.map((l, s) => {
|
|
2026
|
-
const c = s < r,
|
|
2169
|
+
const c = s < r, d = s === r;
|
|
2027
2170
|
return /* @__PURE__ */ e("li", { className: "min-w-0", children: /* @__PURE__ */ a(
|
|
2028
2171
|
"button",
|
|
2029
2172
|
{
|
|
2030
2173
|
type: "button",
|
|
2031
|
-
"aria-current":
|
|
2174
|
+
"aria-current": d ? "step" : void 0,
|
|
2032
2175
|
onClick: () => n == null ? void 0 : n(s),
|
|
2033
|
-
className: `zen-focus-ring w-full p-3.5 rounded-2xl border text-left flex items-center gap-3 cursor-pointer transition-all ${
|
|
2176
|
+
className: `zen-focus-ring w-full p-3.5 rounded-2xl border text-left flex items-center gap-3 cursor-pointer transition-all ${d ? "bg-[var(--zen-accent-subtle)] border-[var(--zen-accent-border)]" : c ? "bg-[var(--zen-surface-1)] border-[var(--zen-border-default)]" : "bg-[var(--zen-surface-subtle)] border-[var(--zen-border-subtle)] opacity-75"}`,
|
|
2034
2177
|
children: [
|
|
2035
2178
|
/* @__PURE__ */ e(
|
|
2036
2179
|
"span",
|
|
2037
2180
|
{
|
|
2038
|
-
className: `w-7 h-7 rounded-full zen-font-mono text-xs font-bold flex items-center justify-center shrink-0 ${
|
|
2039
|
-
children: c ? /* @__PURE__ */ e(
|
|
2181
|
+
className: `w-7 h-7 rounded-full zen-font-mono text-xs font-bold flex items-center justify-center shrink-0 ${d || c ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)]" : "border border-[var(--zen-border-control)] text-[var(--zen-ink-muted)]"}`,
|
|
2182
|
+
children: c ? /* @__PURE__ */ e(Se, { className: "w-3.5 h-3.5" }) : s + 1
|
|
2040
2183
|
}
|
|
2041
2184
|
),
|
|
2042
2185
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
@@ -2050,11 +2193,11 @@ function Mr({
|
|
|
2050
2193
|
}
|
|
2051
2194
|
);
|
|
2052
2195
|
}
|
|
2053
|
-
function
|
|
2196
|
+
function _r({
|
|
2054
2197
|
title: t,
|
|
2055
2198
|
items: r,
|
|
2056
2199
|
activeId: n,
|
|
2057
|
-
onSelect:
|
|
2200
|
+
onSelect: o,
|
|
2058
2201
|
className: i = ""
|
|
2059
2202
|
}) {
|
|
2060
2203
|
return /* @__PURE__ */ a(
|
|
@@ -2072,7 +2215,7 @@ function Rr({
|
|
|
2072
2215
|
{
|
|
2073
2216
|
type: "button",
|
|
2074
2217
|
"aria-current": l ? "page" : void 0,
|
|
2075
|
-
onClick: () =>
|
|
2218
|
+
onClick: () => o(u.id),
|
|
2076
2219
|
className: `zen-focus-ring w-full px-3 py-2.5 rounded-xl flex items-center justify-between gap-2 text-xs sm:text-sm font-medium cursor-pointer transition-all ${l ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] font-semibold shadow-sm" : "text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] hover:bg-[var(--zen-surface-subtle)]"}`,
|
|
2077
2220
|
children: [
|
|
2078
2221
|
/* @__PURE__ */ a("span", { className: "inline-flex items-center gap-2.5 truncate", children: [
|
|
@@ -2094,11 +2237,11 @@ function Rr({
|
|
|
2094
2237
|
}
|
|
2095
2238
|
);
|
|
2096
2239
|
}
|
|
2097
|
-
function
|
|
2240
|
+
function jr({
|
|
2098
2241
|
ariaLabel: t,
|
|
2099
2242
|
active: r = !1,
|
|
2100
2243
|
className: n = "",
|
|
2101
|
-
children:
|
|
2244
|
+
children: o,
|
|
2102
2245
|
...i
|
|
2103
2246
|
}) {
|
|
2104
2247
|
return /* @__PURE__ */ e(
|
|
@@ -2110,35 +2253,35 @@ function Ir({
|
|
|
2110
2253
|
"aria-pressed": r,
|
|
2111
2254
|
className: `zen-focus-ring p-2.5 rounded-xl border transition-all cursor-pointer inline-flex items-center justify-center ${r ? "bg-[var(--zen-accent-primary)] text-[var(--zen-ink-on-accent)] border-[var(--zen-accent-primary)]" : "bg-[var(--zen-surface-1)] text-[var(--zen-ink-secondary)] border-[var(--zen-border-default)] hover:border-[var(--zen-accent-border)] hover:text-[var(--zen-ink-primary)]"} ${n}`.trim(),
|
|
2112
2255
|
...i,
|
|
2113
|
-
children:
|
|
2256
|
+
children: o
|
|
2114
2257
|
}
|
|
2115
2258
|
);
|
|
2116
2259
|
}
|
|
2117
|
-
function
|
|
2260
|
+
function Ur({
|
|
2118
2261
|
open: t,
|
|
2119
2262
|
onClose: r,
|
|
2120
2263
|
items: n,
|
|
2121
|
-
placeholder:
|
|
2264
|
+
placeholder: o = "Execute a command or jump to a primitive..."
|
|
2122
2265
|
}) {
|
|
2123
|
-
const [i, u] =
|
|
2266
|
+
const [i, u] = F(""), [l, s] = F(0), c = R(null), d = re(), f = n.filter((m) => {
|
|
2124
2267
|
if (!i.trim()) return !0;
|
|
2125
2268
|
const v = i.toLowerCase();
|
|
2126
|
-
return
|
|
2269
|
+
return m.label.toLowerCase().includes(v) || m.group.toLowerCase().includes(v);
|
|
2127
2270
|
});
|
|
2128
|
-
return
|
|
2271
|
+
return U(() => {
|
|
2129
2272
|
s(0);
|
|
2130
|
-
}, [i]),
|
|
2273
|
+
}, [i]), U(() => {
|
|
2131
2274
|
t && (u(""), s(0), window.setTimeout(() => {
|
|
2132
|
-
var
|
|
2133
|
-
return (
|
|
2275
|
+
var m;
|
|
2276
|
+
return (m = c.current) == null ? void 0 : m.focus();
|
|
2134
2277
|
}, 10));
|
|
2135
2278
|
}, [t]), t ? /* @__PURE__ */ e(
|
|
2136
2279
|
"div",
|
|
2137
2280
|
{
|
|
2138
2281
|
"data-zen-occlude": "true",
|
|
2139
2282
|
className: "fixed inset-0 z-50 flex items-start justify-center pt-12 sm:pt-20 p-3 sm:p-4 bg-black/70 backdrop-blur-md",
|
|
2140
|
-
onMouseDown: (
|
|
2141
|
-
|
|
2283
|
+
onMouseDown: (m) => {
|
|
2284
|
+
m.target === m.currentTarget && r();
|
|
2142
2285
|
},
|
|
2143
2286
|
children: /* @__PURE__ */ a(
|
|
2144
2287
|
"div",
|
|
@@ -2149,35 +2292,35 @@ function Lr({
|
|
|
2149
2292
|
className: "w-full max-w-xl max-h-[85dvh] flex flex-col rounded-3xl zen-surface-selected overflow-hidden shadow-2xl",
|
|
2150
2293
|
children: [
|
|
2151
2294
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3 px-4 py-3.5 border-b border-[var(--zen-border-subtle)]", children: [
|
|
2152
|
-
/* @__PURE__ */ e(
|
|
2295
|
+
/* @__PURE__ */ e(Pt, { className: "w-4 h-4 text-[var(--zen-accent-primary)] shrink-0" }),
|
|
2153
2296
|
/* @__PURE__ */ e(
|
|
2154
2297
|
"input",
|
|
2155
2298
|
{
|
|
2156
2299
|
ref: c,
|
|
2157
2300
|
role: "combobox",
|
|
2158
2301
|
"aria-expanded": "true",
|
|
2159
|
-
"aria-controls":
|
|
2302
|
+
"aria-controls": d,
|
|
2160
2303
|
"aria-autocomplete": "list",
|
|
2161
2304
|
value: i,
|
|
2162
|
-
onChange: (
|
|
2163
|
-
onKeyDown: (
|
|
2164
|
-
|
|
2305
|
+
onChange: (m) => u(m.target.value),
|
|
2306
|
+
onKeyDown: (m) => {
|
|
2307
|
+
m.key === "Escape" ? (m.preventDefault(), r()) : m.key === "ArrowDown" ? (m.preventDefault(), f.length > 0 && s((v) => (v + 1) % f.length)) : m.key === "ArrowUp" ? (m.preventDefault(), f.length > 0 && s(
|
|
2165
2308
|
(v) => (v - 1 + f.length) % f.length
|
|
2166
|
-
)) :
|
|
2309
|
+
)) : m.key === "Enter" && f[l] && (m.preventDefault(), f[l].onSelect(), r());
|
|
2167
2310
|
},
|
|
2168
|
-
placeholder:
|
|
2311
|
+
placeholder: o,
|
|
2169
2312
|
className: "w-full bg-transparent text-sm text-[var(--zen-ink-primary)] placeholder:text-[var(--zen-ink-muted)] focus:outline-none zen-font-mono"
|
|
2170
2313
|
}
|
|
2171
2314
|
),
|
|
2172
|
-
/* @__PURE__ */ e(
|
|
2315
|
+
/* @__PURE__ */ e(Xe, { keys: ["Esc"] })
|
|
2173
2316
|
] }),
|
|
2174
2317
|
/* @__PURE__ */ e(
|
|
2175
2318
|
"ul",
|
|
2176
2319
|
{
|
|
2177
|
-
id:
|
|
2320
|
+
id: d,
|
|
2178
2321
|
role: "listbox",
|
|
2179
2322
|
className: "max-h-80 overflow-y-auto p-2 space-y-1",
|
|
2180
|
-
children: f.length === 0 ? /* @__PURE__ */ e("li", { className: "py-8 text-center zen-font-mono text-xs text-[var(--zen-ink-muted)]", children: "No matching commands found." }) : f.map((
|
|
2323
|
+
children: f.length === 0 ? /* @__PURE__ */ e("li", { className: "py-8 text-center zen-font-mono text-xs text-[var(--zen-ink-muted)]", children: "No matching commands found." }) : f.map((m, v) => {
|
|
2181
2324
|
const h = v === l;
|
|
2182
2325
|
return /* @__PURE__ */ a(
|
|
2183
2326
|
"li",
|
|
@@ -2185,25 +2328,25 @@ function Lr({
|
|
|
2185
2328
|
role: "option",
|
|
2186
2329
|
"aria-selected": h,
|
|
2187
2330
|
onMouseEnter: () => s(v),
|
|
2188
|
-
onMouseDown: (
|
|
2189
|
-
|
|
2331
|
+
onMouseDown: (S) => {
|
|
2332
|
+
S.preventDefault(), m.onSelect(), r();
|
|
2190
2333
|
},
|
|
2191
2334
|
className: `flex items-center justify-between gap-3 px-3.5 py-2.5 rounded-xl cursor-pointer transition-colors ${h ? "bg-[var(--zen-accent-subtle)] text-[var(--zen-ink-primary)]" : "text-[var(--zen-ink-secondary)]"}`,
|
|
2192
2335
|
children: [
|
|
2193
2336
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2.5 min-w-0", children: [
|
|
2194
|
-
|
|
2337
|
+
m.icon && /* @__PURE__ */ e("span", { className: "text-[var(--zen-accent-primary)] shrink-0", children: m.icon }),
|
|
2195
2338
|
/* @__PURE__ */ a("div", { className: "min-w-0", children: [
|
|
2196
|
-
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm font-medium truncate", children:
|
|
2197
|
-
/* @__PURE__ */ e("div", { className: "zen-telemetry-label", children:
|
|
2339
|
+
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm font-medium truncate", children: m.label }),
|
|
2340
|
+
/* @__PURE__ */ e("div", { className: "zen-telemetry-label", children: m.group })
|
|
2198
2341
|
] })
|
|
2199
2342
|
] }),
|
|
2200
2343
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
2201
|
-
|
|
2202
|
-
h && /* @__PURE__ */ e(
|
|
2344
|
+
m.shortcut && /* @__PURE__ */ e(Xe, { keys: m.shortcut }),
|
|
2345
|
+
h && /* @__PURE__ */ e(Dt, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)]" })
|
|
2203
2346
|
] })
|
|
2204
2347
|
]
|
|
2205
2348
|
},
|
|
2206
|
-
|
|
2349
|
+
m.id
|
|
2207
2350
|
);
|
|
2208
2351
|
})
|
|
2209
2352
|
}
|
|
@@ -2214,16 +2357,16 @@ function Lr({
|
|
|
2214
2357
|
}
|
|
2215
2358
|
) : null;
|
|
2216
2359
|
}
|
|
2217
|
-
function
|
|
2360
|
+
function Wr({
|
|
2218
2361
|
open: t,
|
|
2219
2362
|
onClose: r,
|
|
2220
2363
|
title: n,
|
|
2221
|
-
subtitle:
|
|
2364
|
+
subtitle: o,
|
|
2222
2365
|
footer: i,
|
|
2223
2366
|
children: u
|
|
2224
2367
|
}) {
|
|
2225
2368
|
const l = re();
|
|
2226
|
-
return
|
|
2369
|
+
return U(() => {
|
|
2227
2370
|
if (!t) return;
|
|
2228
2371
|
const s = (c) => {
|
|
2229
2372
|
c.key === "Escape" && r();
|
|
@@ -2257,7 +2400,7 @@ function Pr({
|
|
|
2257
2400
|
children: n
|
|
2258
2401
|
}
|
|
2259
2402
|
),
|
|
2260
|
-
|
|
2403
|
+
o && /* @__PURE__ */ e("div", { className: "zen-font-serif italic text-lg text-[var(--zen-accent-primary)]", children: o })
|
|
2261
2404
|
] }),
|
|
2262
2405
|
/* @__PURE__ */ e(
|
|
2263
2406
|
"button",
|
|
@@ -2266,7 +2409,7 @@ function Pr({
|
|
|
2266
2409
|
"aria-label": "Close drawer",
|
|
2267
2410
|
onClick: r,
|
|
2268
2411
|
className: "zen-focus-ring p-2 rounded-full border border-[var(--zen-border-default)] text-[var(--zen-ink-secondary)] hover:text-[var(--zen-ink-primary)] cursor-pointer",
|
|
2269
|
-
children: /* @__PURE__ */ e(
|
|
2412
|
+
children: /* @__PURE__ */ e(Me, { className: "w-4 h-4" })
|
|
2270
2413
|
}
|
|
2271
2414
|
)
|
|
2272
2415
|
] }),
|
|
@@ -2279,13 +2422,13 @@ function Pr({
|
|
|
2279
2422
|
}
|
|
2280
2423
|
) : null;
|
|
2281
2424
|
}
|
|
2282
|
-
function
|
|
2425
|
+
function qr({
|
|
2283
2426
|
items: t,
|
|
2284
2427
|
defaultOpenId: r,
|
|
2285
2428
|
className: n = ""
|
|
2286
2429
|
}) {
|
|
2287
2430
|
var u;
|
|
2288
|
-
const [
|
|
2431
|
+
const [o, i] = F(
|
|
2289
2432
|
r ?? ((u = t[0]) == null ? void 0 : u.id) ?? null
|
|
2290
2433
|
);
|
|
2291
2434
|
return /* @__PURE__ */ e(
|
|
@@ -2294,7 +2437,7 @@ function Dr({
|
|
|
2294
2437
|
"data-zen-occlude": "true",
|
|
2295
2438
|
className: `space-y-2.5 ${n}`.trim(),
|
|
2296
2439
|
children: t.map((l) => {
|
|
2297
|
-
const s = l.id ===
|
|
2440
|
+
const s = l.id === o;
|
|
2298
2441
|
return /* @__PURE__ */ a(
|
|
2299
2442
|
"div",
|
|
2300
2443
|
{
|
|
@@ -2312,7 +2455,7 @@ function Dr({
|
|
|
2312
2455
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-2 shrink-0", children: [
|
|
2313
2456
|
l.badge && /* @__PURE__ */ e("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)]", children: l.badge }),
|
|
2314
2457
|
/* @__PURE__ */ e(
|
|
2315
|
-
|
|
2458
|
+
et,
|
|
2316
2459
|
{
|
|
2317
2460
|
className: `w-4 h-4 text-[var(--zen-ink-muted)] transition-transform ${s ? "rotate-180 text-[var(--zen-accent-primary)]" : ""}`
|
|
2318
2461
|
}
|
|
@@ -2330,18 +2473,18 @@ function Dr({
|
|
|
2330
2473
|
}
|
|
2331
2474
|
);
|
|
2332
2475
|
}
|
|
2333
|
-
function
|
|
2334
|
-
const [n,
|
|
2476
|
+
function Kr({ content: t, children: r }) {
|
|
2477
|
+
const [n, o] = F(!1), i = re();
|
|
2335
2478
|
return /* @__PURE__ */ a(
|
|
2336
2479
|
"span",
|
|
2337
2480
|
{
|
|
2338
2481
|
className: "relative inline-flex",
|
|
2339
|
-
onMouseEnter: () =>
|
|
2340
|
-
onMouseLeave: () =>
|
|
2341
|
-
onFocus: () =>
|
|
2342
|
-
onBlur: () =>
|
|
2482
|
+
onMouseEnter: () => o(!0),
|
|
2483
|
+
onMouseLeave: () => o(!1),
|
|
2484
|
+
onFocus: () => o(!0),
|
|
2485
|
+
onBlur: () => o(!1),
|
|
2343
2486
|
onKeyDown: (u) => {
|
|
2344
|
-
u.key === "Escape" &&
|
|
2487
|
+
u.key === "Escape" && o(!1);
|
|
2345
2488
|
},
|
|
2346
2489
|
children: [
|
|
2347
2490
|
/* @__PURE__ */ e("span", { "aria-describedby": n ? i : void 0, children: r }),
|
|
@@ -2358,7 +2501,7 @@ function $r({ content: t, children: r }) {
|
|
|
2358
2501
|
}
|
|
2359
2502
|
);
|
|
2360
2503
|
}
|
|
2361
|
-
function
|
|
2504
|
+
function Yr({ label: t, className: r = "" }) {
|
|
2362
2505
|
return t ? /* @__PURE__ */ a("div", { className: `flex items-center gap-3 ${r}`.trim(), children: [
|
|
2363
2506
|
/* @__PURE__ */ e("div", { className: "h-px flex-1 bg-[var(--zen-border-subtle)]" }),
|
|
2364
2507
|
/* @__PURE__ */ e("span", { className: "zen-telemetry-label", children: t }),
|
|
@@ -2370,16 +2513,16 @@ function Or({ label: t, className: r = "" }) {
|
|
|
2370
2513
|
}
|
|
2371
2514
|
);
|
|
2372
2515
|
}
|
|
2373
|
-
function
|
|
2516
|
+
function Qt({
|
|
2374
2517
|
data: t,
|
|
2375
2518
|
width: r = 140,
|
|
2376
2519
|
height: n = 42,
|
|
2377
|
-
className:
|
|
2520
|
+
className: o = ""
|
|
2378
2521
|
}) {
|
|
2379
|
-
const i = re(), u = t.length === 0 ? [0, 0] : t.length === 1 ? [t[0], t[0]] : t, l = Math.min(...u), s = Math.max(...u), c = s - l || 1, f = u.map((
|
|
2380
|
-
const h = v / (u.length - 1) * r,
|
|
2381
|
-
return { x: h, y:
|
|
2382
|
-
}).map((
|
|
2522
|
+
const i = re(), u = t.length === 0 ? [0, 0] : t.length === 1 ? [t[0], t[0]] : t, l = Math.min(...u), s = Math.max(...u), c = s - l || 1, f = u.map((m, v) => {
|
|
2523
|
+
const h = v / (u.length - 1) * r, S = s === l ? n * 0.5 : n - 4 - (m - l) / c * (n - 8);
|
|
2524
|
+
return { x: h, y: S };
|
|
2525
|
+
}).map((m, v) => `${v === 0 ? "M" : "L"}${m.x.toFixed(1)},${m.y.toFixed(1)}`).join(" "), p = `${f} L${r},${n} L0,${n} Z`;
|
|
2383
2526
|
return /* @__PURE__ */ a(
|
|
2384
2527
|
"svg",
|
|
2385
2528
|
{
|
|
@@ -2387,7 +2530,7 @@ function Ht({
|
|
|
2387
2530
|
height: n,
|
|
2388
2531
|
viewBox: `0 0 ${r} ${n}`,
|
|
2389
2532
|
"aria-hidden": "true",
|
|
2390
|
-
className: `overflow-visible ${
|
|
2533
|
+
className: `overflow-visible ${o}`.trim(),
|
|
2391
2534
|
children: [
|
|
2392
2535
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a("linearGradient", { id: i, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
2393
2536
|
/* @__PURE__ */ e(
|
|
@@ -2423,17 +2566,17 @@ function Ht({
|
|
|
2423
2566
|
}
|
|
2424
2567
|
);
|
|
2425
2568
|
}
|
|
2426
|
-
function
|
|
2569
|
+
function Xr({
|
|
2427
2570
|
label: t,
|
|
2428
2571
|
value: r,
|
|
2429
2572
|
delta: n,
|
|
2430
|
-
trend:
|
|
2573
|
+
trend: o = "up",
|
|
2431
2574
|
sparkline: i,
|
|
2432
2575
|
subtitle: u,
|
|
2433
2576
|
className: l = ""
|
|
2434
2577
|
}) {
|
|
2435
2578
|
return /* @__PURE__ */ a(
|
|
2436
|
-
|
|
2579
|
+
He,
|
|
2437
2580
|
{
|
|
2438
2581
|
variant: "static",
|
|
2439
2582
|
padding: "sm",
|
|
@@ -2444,9 +2587,9 @@ function Fr({
|
|
|
2444
2587
|
/* @__PURE__ */ a(
|
|
2445
2588
|
"span",
|
|
2446
2589
|
{
|
|
2447
|
-
className: `inline-flex items-center gap-1 px-2 py-0.5 rounded-full zen-font-mono text-[11px] font-semibold ${
|
|
2590
|
+
className: `inline-flex items-center gap-1 px-2 py-0.5 rounded-full zen-font-mono text-[11px] font-semibold ${o === "up" ? "bg-[var(--zen-status-success)]/15 text-[var(--zen-status-success)]" : "bg-[var(--zen-status-danger)]/15 text-[var(--zen-status-danger)]"}`,
|
|
2448
2591
|
children: [
|
|
2449
|
-
|
|
2592
|
+
o === "up" ? /* @__PURE__ */ e($t, { className: "w-3 h-3" }) : /* @__PURE__ */ e(Ot, { className: "w-3 h-3" }),
|
|
2450
2593
|
n
|
|
2451
2594
|
]
|
|
2452
2595
|
}
|
|
@@ -2457,17 +2600,17 @@ function Fr({
|
|
|
2457
2600
|
/* @__PURE__ */ e("div", { className: "zen-font-display text-2xl sm:text-3xl font-extrabold text-[var(--zen-ink-primary)]", children: r }),
|
|
2458
2601
|
u && /* @__PURE__ */ e("div", { className: "zen-font-mono text-[11px] text-[var(--zen-ink-muted)] mt-0.5", children: u })
|
|
2459
2602
|
] }),
|
|
2460
|
-
i && /* @__PURE__ */ e(
|
|
2603
|
+
i && /* @__PURE__ */ e(Qt, { data: i, width: 110, height: 36 })
|
|
2461
2604
|
] })
|
|
2462
2605
|
]
|
|
2463
2606
|
}
|
|
2464
2607
|
);
|
|
2465
2608
|
}
|
|
2466
|
-
function
|
|
2609
|
+
function Qr({
|
|
2467
2610
|
label: t,
|
|
2468
2611
|
value: r,
|
|
2469
2612
|
max: n = 100,
|
|
2470
|
-
unit:
|
|
2613
|
+
unit: o = "%",
|
|
2471
2614
|
className: i = ""
|
|
2472
2615
|
}) {
|
|
2473
2616
|
const u = Math.max(0, Math.min(100, r / Math.max(n, 1e-6) * 100));
|
|
@@ -2481,7 +2624,7 @@ function Vr({
|
|
|
2481
2624
|
/* @__PURE__ */ e("span", { className: "zen-telemetry-label", children: t }),
|
|
2482
2625
|
/* @__PURE__ */ a("span", { className: "font-semibold text-[var(--zen-ink-primary)]", children: [
|
|
2483
2626
|
r,
|
|
2484
|
-
|
|
2627
|
+
o
|
|
2485
2628
|
] })
|
|
2486
2629
|
] }),
|
|
2487
2630
|
/* @__PURE__ */ e(
|
|
@@ -2506,14 +2649,14 @@ function Vr({
|
|
|
2506
2649
|
}
|
|
2507
2650
|
);
|
|
2508
2651
|
}
|
|
2509
|
-
function
|
|
2652
|
+
function Jr({
|
|
2510
2653
|
label: t,
|
|
2511
2654
|
value: r,
|
|
2512
2655
|
max: n = 100,
|
|
2513
|
-
unit:
|
|
2656
|
+
unit: o = "%",
|
|
2514
2657
|
size: i = 96
|
|
2515
2658
|
}) {
|
|
2516
|
-
const u = Math.max(0, Math.min(100, r / Math.max(n, 1e-6) * 100)), l = 7, s = (i - l * 2) * 0.5, c = 2 * Math.PI * s,
|
|
2659
|
+
const u = Math.max(0, Math.min(100, r / Math.max(n, 1e-6) * 100)), l = 7, s = (i - l * 2) * 0.5, c = 2 * Math.PI * s, d = c - u / 100 * c;
|
|
2517
2660
|
return /* @__PURE__ */ a(
|
|
2518
2661
|
"div",
|
|
2519
2662
|
{
|
|
@@ -2547,14 +2690,14 @@ function Gr({
|
|
|
2547
2690
|
stroke: "var(--zen-accent-primary)",
|
|
2548
2691
|
strokeWidth: l,
|
|
2549
2692
|
strokeDasharray: c,
|
|
2550
|
-
strokeDashoffset:
|
|
2693
|
+
strokeDashoffset: d,
|
|
2551
2694
|
strokeLinecap: "round"
|
|
2552
2695
|
}
|
|
2553
2696
|
)
|
|
2554
2697
|
] }),
|
|
2555
2698
|
/* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center justify-center zen-font-mono text-xs font-bold text-[var(--zen-ink-primary)]", children: [
|
|
2556
2699
|
Math.round(u),
|
|
2557
|
-
|
|
2700
|
+
o
|
|
2558
2701
|
] })
|
|
2559
2702
|
] }),
|
|
2560
2703
|
/* @__PURE__ */ e("span", { className: "zen-telemetry-label", children: t })
|
|
@@ -2562,17 +2705,17 @@ function Gr({
|
|
|
2562
2705
|
}
|
|
2563
2706
|
);
|
|
2564
2707
|
}
|
|
2565
|
-
function
|
|
2708
|
+
function en({
|
|
2566
2709
|
name: t,
|
|
2567
2710
|
src: r,
|
|
2568
2711
|
status: n,
|
|
2569
|
-
size:
|
|
2712
|
+
size: o = "md"
|
|
2570
2713
|
}) {
|
|
2571
|
-
const [i, u] =
|
|
2572
|
-
|
|
2714
|
+
const [i, u] = F(!1);
|
|
2715
|
+
U(() => {
|
|
2573
2716
|
u(!1);
|
|
2574
2717
|
}, [r]);
|
|
2575
|
-
const l = t.split(" ").map((c) => c[0]).join("").slice(0, 2).toUpperCase(), s =
|
|
2718
|
+
const l = t.split(" ").map((c) => c[0]).join("").slice(0, 2).toUpperCase(), s = o === "sm" ? "w-8 h-8 text-xs" : o === "lg" ? "w-12 h-12 text-base" : "w-10 h-10 text-sm";
|
|
2576
2719
|
return /* @__PURE__ */ a("div", { className: "relative inline-flex shrink-0", children: [
|
|
2577
2720
|
r && !i ? /* @__PURE__ */ e(
|
|
2578
2721
|
"img",
|
|
@@ -2598,11 +2741,11 @@ function Zr({
|
|
|
2598
2741
|
)
|
|
2599
2742
|
] });
|
|
2600
2743
|
}
|
|
2601
|
-
function
|
|
2744
|
+
function tn({
|
|
2602
2745
|
title: t,
|
|
2603
2746
|
language: r = "TSX",
|
|
2604
2747
|
code: n,
|
|
2605
|
-
footerSlot:
|
|
2748
|
+
footerSlot: o,
|
|
2606
2749
|
className: i = ""
|
|
2607
2750
|
}) {
|
|
2608
2751
|
return /* @__PURE__ */ a(
|
|
@@ -2616,40 +2759,40 @@ function Br({
|
|
|
2616
2759
|
/* @__PURE__ */ e("span", { className: "zen-telemetry-label text-[var(--zen-accent-primary)]", children: r }),
|
|
2617
2760
|
/* @__PURE__ */ e("span", { className: "zen-font-mono text-xs text-[var(--zen-ink-secondary)] truncate", children: t })
|
|
2618
2761
|
] }),
|
|
2619
|
-
/* @__PURE__ */ e(
|
|
2762
|
+
/* @__PURE__ */ e(ot, { value: n, label: "COPY", size: "sm" })
|
|
2620
2763
|
] }),
|
|
2621
2764
|
/* @__PURE__ */ e("pre", { className: "p-4 zen-font-mono text-xs text-[var(--zen-ink-primary)] overflow-x-auto leading-relaxed", children: /* @__PURE__ */ e("code", { children: n }) }),
|
|
2622
|
-
|
|
2765
|
+
o && /* @__PURE__ */ e("div", { className: "px-4 py-2 border-t border-[var(--zen-border-subtle)]", children: o })
|
|
2623
2766
|
]
|
|
2624
2767
|
}
|
|
2625
2768
|
);
|
|
2626
2769
|
}
|
|
2627
|
-
const
|
|
2770
|
+
const Jt = {
|
|
2628
2771
|
info: {
|
|
2629
2772
|
border: "border-[var(--zen-status-info)]/50 bg-[var(--zen-status-info)]/10",
|
|
2630
|
-
icon: /* @__PURE__ */ e(
|
|
2773
|
+
icon: /* @__PURE__ */ e(rt, { className: "w-4 h-4 text-[var(--zen-status-info)] shrink-0" })
|
|
2631
2774
|
},
|
|
2632
2775
|
success: {
|
|
2633
2776
|
border: "border-[var(--zen-status-success)]/50 bg-[var(--zen-status-success)]/10",
|
|
2634
|
-
icon: /* @__PURE__ */ e(
|
|
2777
|
+
icon: /* @__PURE__ */ e(Fe, { className: "w-4 h-4 text-[var(--zen-status-success)] shrink-0" })
|
|
2635
2778
|
},
|
|
2636
2779
|
warning: {
|
|
2637
2780
|
border: "border-[var(--zen-status-warning)]/50 bg-[var(--zen-status-warning)]/10",
|
|
2638
|
-
icon: /* @__PURE__ */ e(
|
|
2781
|
+
icon: /* @__PURE__ */ e(tt, { className: "w-4 h-4 text-[var(--zen-status-warning)] shrink-0" })
|
|
2639
2782
|
},
|
|
2640
2783
|
danger: {
|
|
2641
2784
|
border: "border-[var(--zen-status-danger)]/50 bg-[var(--zen-status-danger)]/10",
|
|
2642
|
-
icon: /* @__PURE__ */ e(
|
|
2785
|
+
icon: /* @__PURE__ */ e(nt, { className: "w-4 h-4 text-[var(--zen-status-danger)] shrink-0" })
|
|
2643
2786
|
}
|
|
2644
2787
|
};
|
|
2645
|
-
function
|
|
2788
|
+
function rn({
|
|
2646
2789
|
tone: t = "info",
|
|
2647
2790
|
title: r,
|
|
2648
2791
|
children: n,
|
|
2649
|
-
actionSlot:
|
|
2792
|
+
actionSlot: o,
|
|
2650
2793
|
className: i = ""
|
|
2651
2794
|
}) {
|
|
2652
|
-
const u =
|
|
2795
|
+
const u = Jt[t];
|
|
2653
2796
|
return /* @__PURE__ */ a(
|
|
2654
2797
|
"div",
|
|
2655
2798
|
{
|
|
@@ -2664,12 +2807,12 @@ function Hr({
|
|
|
2664
2807
|
/* @__PURE__ */ e("div", { className: "text-xs sm:text-sm text-[var(--zen-ink-secondary)] mt-0.5", children: n })
|
|
2665
2808
|
] })
|
|
2666
2809
|
] }),
|
|
2667
|
-
|
|
2810
|
+
o && /* @__PURE__ */ e("div", { className: "shrink-0", children: o })
|
|
2668
2811
|
]
|
|
2669
2812
|
}
|
|
2670
2813
|
);
|
|
2671
2814
|
}
|
|
2672
|
-
function
|
|
2815
|
+
function nn({ lines: t = 3, className: r = "" }) {
|
|
2673
2816
|
return /* @__PURE__ */ e(
|
|
2674
2817
|
"div",
|
|
2675
2818
|
{
|
|
@@ -2677,22 +2820,22 @@ function _r({ lines: t = 3, className: r = "" }) {
|
|
|
2677
2820
|
"aria-busy": "true",
|
|
2678
2821
|
"aria-label": "Loading content",
|
|
2679
2822
|
className: `space-y-2.5 ${r}`.trim(),
|
|
2680
|
-
children: Array.from({ length: t }).map((n,
|
|
2823
|
+
children: Array.from({ length: t }).map((n, o) => /* @__PURE__ */ e(
|
|
2681
2824
|
"div",
|
|
2682
2825
|
{
|
|
2683
|
-
style: { width:
|
|
2826
|
+
style: { width: o === t - 1 ? "65%" : "100%" },
|
|
2684
2827
|
className: "h-3.5 rounded-lg bg-[var(--zen-surface-subtle-hover)] animate-pulse"
|
|
2685
2828
|
},
|
|
2686
|
-
|
|
2829
|
+
o
|
|
2687
2830
|
))
|
|
2688
2831
|
}
|
|
2689
2832
|
);
|
|
2690
2833
|
}
|
|
2691
|
-
function
|
|
2834
|
+
function an({
|
|
2692
2835
|
title: t,
|
|
2693
2836
|
description: r,
|
|
2694
2837
|
icon: n,
|
|
2695
|
-
actionSlot:
|
|
2838
|
+
actionSlot: o,
|
|
2696
2839
|
className: i = ""
|
|
2697
2840
|
}) {
|
|
2698
2841
|
return /* @__PURE__ */ a(
|
|
@@ -2701,15 +2844,15 @@ function Ur({
|
|
|
2701
2844
|
"data-zen-occlude": "true",
|
|
2702
2845
|
className: `p-8 rounded-3xl border border-dashed border-[var(--zen-border-strong)] bg-[var(--zen-surface-subtle)] text-center flex flex-col items-center justify-center gap-3 ${i}`.trim(),
|
|
2703
2846
|
children: [
|
|
2704
|
-
/* @__PURE__ */ e("div", { className: "p-3 rounded-2xl bg-[var(--zen-accent-subtle)] text-[var(--zen-accent-primary)]", children: n ?? /* @__PURE__ */ e(
|
|
2847
|
+
/* @__PURE__ */ e("div", { className: "p-3 rounded-2xl bg-[var(--zen-accent-subtle)] text-[var(--zen-accent-primary)]", children: n ?? /* @__PURE__ */ e(Ft, { className: "w-6 h-6" }) }),
|
|
2705
2848
|
/* @__PURE__ */ e("div", { className: "zen-font-display text-lg font-bold text-[var(--zen-ink-primary)]", children: t }),
|
|
2706
2849
|
/* @__PURE__ */ e("p", { className: "text-xs sm:text-sm text-[var(--zen-ink-secondary)] max-w-md", children: r }),
|
|
2707
|
-
|
|
2850
|
+
o && /* @__PURE__ */ e("div", { className: "mt-1", children: o })
|
|
2708
2851
|
]
|
|
2709
2852
|
}
|
|
2710
2853
|
);
|
|
2711
2854
|
}
|
|
2712
|
-
const
|
|
2855
|
+
const $e = [
|
|
2713
2856
|
{
|
|
2714
2857
|
id: "lofi-atelier",
|
|
2715
2858
|
label: "Lo-Fi Atelier (Dm9 -> Cmaj9)",
|
|
@@ -2747,97 +2890,97 @@ const Re = [
|
|
|
2747
2890
|
]
|
|
2748
2891
|
}
|
|
2749
2892
|
];
|
|
2750
|
-
function
|
|
2751
|
-
const [r, n] =
|
|
2893
|
+
function sn(t) {
|
|
2894
|
+
const [r, n] = F(!1), [o, i] = F(
|
|
2752
2895
|
(t == null ? void 0 : t.defaultPreset) ?? "lofi-atelier"
|
|
2753
|
-
), [u, l] =
|
|
2896
|
+
), [u, l] = F(
|
|
2754
2897
|
(t == null ? void 0 : t.defaultVolume) ?? 0.8
|
|
2755
|
-
), [s, c] =
|
|
2898
|
+
), [s, c] = F(0), d = R(null), f = R(null), p = R(null), m = R(null), v = R(u), h = Ne(() => {
|
|
2756
2899
|
if (typeof window > "u") return null;
|
|
2757
|
-
const
|
|
2758
|
-
if (!
|
|
2759
|
-
if (!
|
|
2760
|
-
const
|
|
2761
|
-
|
|
2762
|
-
const
|
|
2763
|
-
for (let
|
|
2764
|
-
|
|
2765
|
-
|
|
2900
|
+
const y = window.AudioContext;
|
|
2901
|
+
if (!y) return null;
|
|
2902
|
+
if (!d.current || d.current.state === "closed") {
|
|
2903
|
+
const w = new y(), z = w.createGain();
|
|
2904
|
+
z.gain.setValueAtTime(v.current, w.currentTime), z.connect(w.destination);
|
|
2905
|
+
const L = Math.floor(w.sampleRate * 0.09), T = w.createBuffer(1, L, w.sampleRate), E = T.getChannelData(0);
|
|
2906
|
+
for (let A = 0; A < L; A++)
|
|
2907
|
+
E[A] = (Math.random() * 2 - 1) * Math.exp(-A / (L * 0.35));
|
|
2908
|
+
d.current = w, f.current = z, p.current = T;
|
|
2766
2909
|
}
|
|
2767
|
-
const
|
|
2768
|
-
return !
|
|
2769
|
-
}, []),
|
|
2770
|
-
const
|
|
2771
|
-
v.current =
|
|
2772
|
-
|
|
2773
|
-
|
|
2910
|
+
const x = d.current, g = f.current, I = p.current;
|
|
2911
|
+
return !x || !g || !I ? null : (x.state === "suspended" && x.resume(), { ctx: x, master: g, snareBuffer: I });
|
|
2912
|
+
}, []), S = Ne((y) => {
|
|
2913
|
+
const x = Math.max(0, Math.min(1, y));
|
|
2914
|
+
v.current = x, l(x), f.current && d.current && f.current.gain.setTargetAtTime(
|
|
2915
|
+
x,
|
|
2916
|
+
d.current.currentTime,
|
|
2774
2917
|
0.04
|
|
2775
2918
|
);
|
|
2776
|
-
}, []),
|
|
2777
|
-
(
|
|
2778
|
-
const
|
|
2779
|
-
if (!
|
|
2780
|
-
const { ctx:
|
|
2781
|
-
|
|
2919
|
+
}, []), M = Ne(
|
|
2920
|
+
(y = 880) => {
|
|
2921
|
+
const x = h();
|
|
2922
|
+
if (!x) return;
|
|
2923
|
+
const { ctx: g, master: I } = x, w = g.currentTime, z = g.createOscillator(), L = g.createGain();
|
|
2924
|
+
z.type = "sine", z.frequency.setValueAtTime(y, w), z.frequency.exponentialRampToValueAtTime(y * 0.5, w + 0.035), L.gain.setValueAtTime(0.025, w), L.gain.exponentialRampToValueAtTime(1e-4, w + 0.04), z.connect(L), L.connect(I), z.start(w), z.stop(w + 0.045);
|
|
2782
2925
|
},
|
|
2783
2926
|
[h]
|
|
2784
2927
|
);
|
|
2785
|
-
return
|
|
2786
|
-
|
|
2787
|
-
}, []),
|
|
2928
|
+
return U(() => () => {
|
|
2929
|
+
m.current !== null && window.clearInterval(m.current), d.current && d.current.state !== "closed" && d.current.close();
|
|
2930
|
+
}, []), U(() => {
|
|
2788
2931
|
if (!r) {
|
|
2789
|
-
|
|
2932
|
+
m.current !== null && (window.clearInterval(m.current), m.current = null);
|
|
2790
2933
|
return;
|
|
2791
2934
|
}
|
|
2792
|
-
const
|
|
2793
|
-
if (!
|
|
2794
|
-
const { ctx:
|
|
2795
|
-
const
|
|
2796
|
-
if ((
|
|
2797
|
-
const
|
|
2798
|
-
|
|
2799
|
-
const B = _ === 0 ? 0.042 : 0.018, K =
|
|
2800
|
-
|
|
2801
|
-
}),
|
|
2802
|
-
const b =
|
|
2803
|
-
b.type = "sine", b.frequency.setValueAtTime(108,
|
|
2935
|
+
const y = h();
|
|
2936
|
+
if (!y) return;
|
|
2937
|
+
const { ctx: x, master: g, snareBuffer: I } = y, w = $e.find((E) => E.id === o) ?? $e[0], z = Math.round(60 / w.bpm / 2 * 1e3), L = (E) => {
|
|
2938
|
+
const A = x.currentTime, P = E % 8, Q = Math.floor(E / 8) % w.chords.length, k = w.chords[Q];
|
|
2939
|
+
if ((P === 0 || P === 3) && k.forEach((b, _) => {
|
|
2940
|
+
const j = x.createOscillator(), ie = x.createGain(), V = x.createBiquadFilter(), $ = x.createOscillator(), G = x.createGain();
|
|
2941
|
+
j.type = _ === 0 ? "sine" : "triangle", j.frequency.setValueAtTime(b, A), $.frequency.setValueAtTime(4.2, A), G.gain.setValueAtTime(_ === 0 ? 0.2 : 1.1, A), $.connect(G), G.connect(j.frequency), V.type = "lowpass", V.frequency.setValueAtTime(w.cutoffHz, A);
|
|
2942
|
+
const B = _ === 0 ? 0.042 : 0.018, K = P === 0 ? 1.45 : 1.95;
|
|
2943
|
+
ie.gain.setValueAtTime(1e-4, A), ie.gain.linearRampToValueAtTime(B, A + 0.08), ie.gain.exponentialRampToValueAtTime(1e-4, A + K), j.connect(V), V.connect(ie), ie.connect(g), j.start(A), $.start(A), j.stop(A + K + 0.05), $.stop(A + K + 0.05);
|
|
2944
|
+
}), P === 0 || P === 5) {
|
|
2945
|
+
const b = x.createOscillator(), _ = x.createGain();
|
|
2946
|
+
b.type = "sine", b.frequency.setValueAtTime(108, A), b.frequency.exponentialRampToValueAtTime(38, A + 0.14), _.gain.setValueAtTime(0.065, A), _.gain.exponentialRampToValueAtTime(1e-4, A + 0.24), b.connect(_), _.connect(g), b.start(A), b.stop(A + 0.26);
|
|
2804
2947
|
}
|
|
2805
|
-
if (
|
|
2806
|
-
const b =
|
|
2807
|
-
b.buffer =
|
|
2808
|
-
const _ =
|
|
2809
|
-
_.type = "bandpass", _.frequency.setValueAtTime(1150,
|
|
2810
|
-
const
|
|
2811
|
-
|
|
2948
|
+
if (P === 2 || P === 6) {
|
|
2949
|
+
const b = x.createBufferSource();
|
|
2950
|
+
b.buffer = I;
|
|
2951
|
+
const _ = x.createBiquadFilter();
|
|
2952
|
+
_.type = "bandpass", _.frequency.setValueAtTime(1150, A);
|
|
2953
|
+
const j = x.createGain();
|
|
2954
|
+
j.gain.setValueAtTime(0.022, A), j.gain.exponentialRampToValueAtTime(1e-4, A + 0.09), b.connect(_), _.connect(j), j.connect(g), b.start(A);
|
|
2812
2955
|
}
|
|
2813
2956
|
};
|
|
2814
|
-
let
|
|
2815
|
-
return c(0),
|
|
2816
|
-
|
|
2817
|
-
},
|
|
2818
|
-
|
|
2957
|
+
let T = 0;
|
|
2958
|
+
return c(0), L(0), m.current = window.setInterval(() => {
|
|
2959
|
+
T += 1, c(T % 8), L(T);
|
|
2960
|
+
}, z), () => {
|
|
2961
|
+
m.current !== null && (window.clearInterval(m.current), m.current = null);
|
|
2819
2962
|
};
|
|
2820
|
-
}, [r,
|
|
2963
|
+
}, [r, o, h]), {
|
|
2821
2964
|
active: r,
|
|
2822
|
-
presetId:
|
|
2965
|
+
presetId: o,
|
|
2823
2966
|
volume: u,
|
|
2824
2967
|
currentStep: s,
|
|
2825
|
-
presets:
|
|
2826
|
-
toggle: () => n((
|
|
2968
|
+
presets: $e,
|
|
2969
|
+
toggle: () => n((y) => !y),
|
|
2827
2970
|
setPresetId: i,
|
|
2828
|
-
setVolume:
|
|
2829
|
-
playMicroClick:
|
|
2971
|
+
setVolume: S,
|
|
2972
|
+
playMicroClick: M
|
|
2830
2973
|
};
|
|
2831
2974
|
}
|
|
2832
|
-
function
|
|
2975
|
+
function ln({
|
|
2833
2976
|
synth: t,
|
|
2834
2977
|
mode: r = "pill",
|
|
2835
2978
|
activeLabel: n = "Lo-Fi Radio: ON",
|
|
2836
|
-
idleLabel:
|
|
2979
|
+
idleLabel: o = "Lo-Fi Background",
|
|
2837
2980
|
className: i = ""
|
|
2838
2981
|
}) {
|
|
2839
2982
|
return r === "pill" ? /* @__PURE__ */ e(
|
|
2840
|
-
|
|
2983
|
+
Ce,
|
|
2841
2984
|
{
|
|
2842
2985
|
variant: "secondary",
|
|
2843
2986
|
size: "sm",
|
|
@@ -2846,8 +2989,8 @@ function Wr({
|
|
|
2846
2989
|
onClick: t.toggle,
|
|
2847
2990
|
"aria-label": "Toggle procedural ambient synthesizer",
|
|
2848
2991
|
className: i,
|
|
2849
|
-
iconLeft: t.active ? /* @__PURE__ */ e(
|
|
2850
|
-
children: t.active ? n :
|
|
2992
|
+
iconLeft: t.active ? /* @__PURE__ */ e(qe, { className: "w-3.5 h-3.5 animate-pulse" }) : /* @__PURE__ */ e(Ke, { className: "w-3.5 h-3.5 text-[var(--zen-accent-primary)]" }),
|
|
2993
|
+
children: t.active ? n : o
|
|
2851
2994
|
}
|
|
2852
2995
|
) : /* @__PURE__ */ a(
|
|
2853
2996
|
"div",
|
|
@@ -2858,7 +3001,7 @@ function Wr({
|
|
|
2858
3001
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
2859
3002
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
|
|
2860
3003
|
/* @__PURE__ */ e(
|
|
2861
|
-
|
|
3004
|
+
Vt,
|
|
2862
3005
|
{
|
|
2863
3006
|
className: `w-6 h-6 text-[var(--zen-accent-primary)] ${t.active ? "animate-spin" : ""}`
|
|
2864
3007
|
}
|
|
@@ -2869,21 +3012,21 @@ function Wr({
|
|
|
2869
3012
|
] })
|
|
2870
3013
|
] }),
|
|
2871
3014
|
/* @__PURE__ */ e(
|
|
2872
|
-
|
|
3015
|
+
Ce,
|
|
2873
3016
|
{
|
|
2874
3017
|
variant: t.active ? "primary" : "secondary",
|
|
2875
3018
|
size: "sm",
|
|
2876
3019
|
mono: !0,
|
|
2877
3020
|
pressed: t.active,
|
|
2878
3021
|
onClick: t.toggle,
|
|
2879
|
-
iconLeft: t.active ? /* @__PURE__ */ e(
|
|
3022
|
+
iconLeft: t.active ? /* @__PURE__ */ e(qe, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ e(Ke, { className: "w-3.5 h-3.5" }),
|
|
2880
3023
|
children: t.active ? "SYNTH ACTIVE" : "START SYNTH"
|
|
2881
3024
|
}
|
|
2882
3025
|
)
|
|
2883
3026
|
] }),
|
|
2884
3027
|
/* @__PURE__ */ a("div", { className: "flex flex-col sm:flex-row sm:items-center justify-between gap-4 pt-2 border-t border-[var(--zen-border-subtle)]", children: [
|
|
2885
3028
|
/* @__PURE__ */ e(
|
|
2886
|
-
|
|
3029
|
+
mt,
|
|
2887
3030
|
{
|
|
2888
3031
|
ariaLabel: "Select synthesizer voicing preset",
|
|
2889
3032
|
size: "sm",
|
|
@@ -2910,7 +3053,7 @@ function Wr({
|
|
|
2910
3053
|
}
|
|
2911
3054
|
);
|
|
2912
3055
|
}
|
|
2913
|
-
const
|
|
3056
|
+
const ut = [
|
|
2914
3057
|
{
|
|
2915
3058
|
id: "alpha-cen-a",
|
|
2916
3059
|
badge: "STELLAR CORE 01 · PRIMARY",
|
|
@@ -2959,58 +3102,58 @@ const it = [
|
|
|
2959
3102
|
hitRadius: 0.36,
|
|
2960
3103
|
reticleSize: 86
|
|
2961
3104
|
}
|
|
2962
|
-
],
|
|
2963
|
-
function
|
|
3105
|
+
], er = '[data-zen-occlude="true"], a, button, input, select, textarea, [role="button"], [role="radiogroup"], [role="tablist"], [role="listbox"], [role="dialog"]';
|
|
3106
|
+
function pt({
|
|
2964
3107
|
bridgeRef: t,
|
|
2965
3108
|
declarativeData: r
|
|
2966
3109
|
}) {
|
|
2967
|
-
const n = R(null),
|
|
2968
|
-
return
|
|
3110
|
+
const n = R(null), o = R(null), i = R(null), u = R(null), l = R(null), s = R(null), c = R(null), d = R(null), f = R(null);
|
|
3111
|
+
return vt(
|
|
2969
3112
|
t,
|
|
2970
3113
|
() => ({
|
|
2971
3114
|
isOccludedTarget: (p) => {
|
|
2972
3115
|
var v;
|
|
2973
|
-
const
|
|
2974
|
-
return !!((v =
|
|
3116
|
+
const m = p;
|
|
3117
|
+
return !!((v = m == null ? void 0 : m.closest) != null && v.call(m, er));
|
|
2975
3118
|
},
|
|
2976
3119
|
commitFrame: (p) => {
|
|
2977
|
-
const
|
|
2978
|
-
if (!
|
|
3120
|
+
const m = n.current, v = o.current;
|
|
3121
|
+
if (!m || !v) return;
|
|
2979
3122
|
if (!p) {
|
|
2980
|
-
|
|
3123
|
+
m.style.opacity = "0", v.style.opacity = "0";
|
|
2981
3124
|
return;
|
|
2982
3125
|
}
|
|
2983
3126
|
const {
|
|
2984
3127
|
screenX: h,
|
|
2985
|
-
screenY:
|
|
2986
|
-
reticleSize:
|
|
2987
|
-
accentHex:
|
|
2988
|
-
badge:
|
|
2989
|
-
name:
|
|
2990
|
-
classification:
|
|
2991
|
-
massLabel:
|
|
2992
|
-
tempLumLabel:
|
|
2993
|
-
velocityLabel:
|
|
2994
|
-
statusLabel:
|
|
3128
|
+
screenY: S,
|
|
3129
|
+
reticleSize: M,
|
|
3130
|
+
accentHex: y,
|
|
3131
|
+
badge: x,
|
|
3132
|
+
name: g,
|
|
3133
|
+
classification: I,
|
|
3134
|
+
massLabel: w,
|
|
3135
|
+
tempLumLabel: z,
|
|
3136
|
+
velocityLabel: L,
|
|
3137
|
+
statusLabel: T
|
|
2995
3138
|
} = p;
|
|
2996
|
-
v.style.opacity = "1", v.style.width = `${
|
|
2997
|
-
const
|
|
2998
|
-
Math.max(h +
|
|
3139
|
+
v.style.opacity = "1", v.style.width = `${M}px`, v.style.height = `${M}px`, v.style.borderColor = y, v.style.transform = `translate3d(${h - M * 0.5}px, ${S - M * 0.5}px, 0)`;
|
|
3140
|
+
const E = Math.min(
|
|
3141
|
+
Math.max(h + M * 0.5 + 16, 16),
|
|
2999
3142
|
window.innerWidth - 336
|
|
3000
|
-
),
|
|
3001
|
-
Math.max(
|
|
3143
|
+
), A = Math.min(
|
|
3144
|
+
Math.max(S - 76, 88),
|
|
3002
3145
|
window.innerHeight - 200
|
|
3003
3146
|
);
|
|
3004
|
-
|
|
3147
|
+
m.style.opacity = "1", m.style.transform = `translate3d(${E}px, ${A}px, 0)`, m.style.borderColor = `${y}77`, i.current && (i.current.textContent = x, i.current.style.color = y), u.current && (u.current.textContent = g), l.current && (l.current.textContent = I), s.current && (s.current.textContent = w), c.current && (c.current.textContent = z), d.current && (d.current.textContent = L), f.current && (f.current.textContent = T);
|
|
3005
3148
|
}
|
|
3006
3149
|
}),
|
|
3007
3150
|
[]
|
|
3008
|
-
), /* @__PURE__ */ a(
|
|
3151
|
+
), /* @__PURE__ */ a(ke, { children: [
|
|
3009
3152
|
/* @__PURE__ */ a("div", { className: "fixed inset-0 z-40 pointer-events-none overflow-hidden", children: [
|
|
3010
3153
|
/* @__PURE__ */ e(
|
|
3011
3154
|
"div",
|
|
3012
3155
|
{
|
|
3013
|
-
ref:
|
|
3156
|
+
ref: o,
|
|
3014
3157
|
style: { opacity: 0 },
|
|
3015
3158
|
className: "fixed top-0 left-0 rounded-full border border-dashed transition-opacity duration-150"
|
|
3016
3159
|
}
|
|
@@ -3072,7 +3215,7 @@ function lt({
|
|
|
3072
3215
|
/* @__PURE__ */ e(
|
|
3073
3216
|
"span",
|
|
3074
3217
|
{
|
|
3075
|
-
ref:
|
|
3218
|
+
ref: d,
|
|
3076
3219
|
className: "text-[var(--zen-accent-primary)] font-semibold"
|
|
3077
3220
|
}
|
|
3078
3221
|
)
|
|
@@ -3138,21 +3281,21 @@ function lt({
|
|
|
3138
3281
|
)
|
|
3139
3282
|
] });
|
|
3140
3283
|
}
|
|
3141
|
-
function
|
|
3284
|
+
function on({
|
|
3142
3285
|
activeTarget: t,
|
|
3143
3286
|
onSelectTarget: r,
|
|
3144
|
-
catalog: n =
|
|
3145
|
-
className:
|
|
3287
|
+
catalog: n = ut,
|
|
3288
|
+
className: o = ""
|
|
3146
3289
|
}) {
|
|
3147
3290
|
const i = n.find((u) => u.id === t) ?? null;
|
|
3148
|
-
return /* @__PURE__ */ a("div", { className: `space-y-4 ${
|
|
3291
|
+
return /* @__PURE__ */ a("div", { className: `space-y-4 ${o}`.trim(), children: [
|
|
3149
3292
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap items-center justify-between gap-3", children: [
|
|
3150
3293
|
/* @__PURE__ */ a("div", { children: [
|
|
3151
3294
|
/* @__PURE__ */ e("div", { className: "zen-telemetry-label text-[var(--zen-accent-primary)]", children: "SPATIAL TELEMETRY TARGET SELECTOR" }),
|
|
3152
3295
|
/* @__PURE__ */ e("p", { className: "text-xs text-[var(--zen-ink-secondary)] mt-0.5", children: "Hover celestial bodies in 3D space or lock a target below via keyboard roving tabindex." })
|
|
3153
3296
|
] }),
|
|
3154
3297
|
/* @__PURE__ */ e(
|
|
3155
|
-
|
|
3298
|
+
mt,
|
|
3156
3299
|
{
|
|
3157
3300
|
ariaLabel: "Select celestial telemetry target",
|
|
3158
3301
|
size: "sm",
|
|
@@ -3169,7 +3312,7 @@ function qr({
|
|
|
3169
3312
|
)
|
|
3170
3313
|
] }),
|
|
3171
3314
|
i && /* @__PURE__ */ e(
|
|
3172
|
-
|
|
3315
|
+
pt,
|
|
3173
3316
|
{
|
|
3174
3317
|
declarativeData: {
|
|
3175
3318
|
badge: i.badge,
|
|
@@ -3185,7 +3328,7 @@ function qr({
|
|
|
3185
3328
|
)
|
|
3186
3329
|
] });
|
|
3187
3330
|
}
|
|
3188
|
-
const
|
|
3331
|
+
const tr = `
|
|
3189
3332
|
attribute float aSize;
|
|
3190
3333
|
attribute vec3 aColor;
|
|
3191
3334
|
varying vec3 vColor;
|
|
@@ -3196,7 +3339,7 @@ const jt = `
|
|
|
3196
3339
|
gl_PointSize = clamp(aSize * (18.0 / -mvPosition.z), 1.2, 4.2);
|
|
3197
3340
|
gl_Position = projectionMatrix * mvPosition;
|
|
3198
3341
|
}
|
|
3199
|
-
`,
|
|
3342
|
+
`, rr = `
|
|
3200
3343
|
varying vec3 vColor;
|
|
3201
3344
|
|
|
3202
3345
|
void main() {
|
|
@@ -3206,7 +3349,7 @@ const jt = `
|
|
|
3206
3349
|
float airy = exp(-r * r * 5.2);
|
|
3207
3350
|
gl_FragColor = vec4(vColor * (1.0 + airy * 0.45), airy * 0.92);
|
|
3208
3351
|
}
|
|
3209
|
-
`,
|
|
3352
|
+
`, Ze = `
|
|
3210
3353
|
float hash31(vec3 p) {
|
|
3211
3354
|
p = fract(p * vec3(443.897, 441.423, 437.195));
|
|
3212
3355
|
p += dot(p, p.yzx + 19.19);
|
|
@@ -3262,7 +3405,7 @@ const jt = `
|
|
|
3262
3405
|
}
|
|
3263
3406
|
return v;
|
|
3264
3407
|
}
|
|
3265
|
-
`,
|
|
3408
|
+
`, nr = `
|
|
3266
3409
|
uniform float uTime;
|
|
3267
3410
|
varying vec3 vWorldNormal;
|
|
3268
3411
|
varying vec3 vWorldPosition;
|
|
@@ -3274,7 +3417,7 @@ const jt = `
|
|
|
3274
3417
|
vWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;
|
|
3275
3418
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
3276
3419
|
}
|
|
3277
|
-
`,
|
|
3420
|
+
`, ar = `
|
|
3278
3421
|
uniform float uTime;
|
|
3279
3422
|
uniform vec3 uCoreColor;
|
|
3280
3423
|
uniform vec3 uEdgeColor;
|
|
@@ -3285,7 +3428,7 @@ const jt = `
|
|
|
3285
3428
|
varying vec3 vWorldPosition;
|
|
3286
3429
|
varying vec3 vLocalPos;
|
|
3287
3430
|
|
|
3288
|
-
${
|
|
3431
|
+
${Ze}
|
|
3289
3432
|
|
|
3290
3433
|
void main() {
|
|
3291
3434
|
vec3 viewDir = normalize(cameraPosition - vWorldPosition);
|
|
@@ -3310,7 +3453,7 @@ const jt = `
|
|
|
3310
3453
|
|
|
3311
3454
|
gl_FragColor = vec4(photosphere * uGlowGain, 1.0);
|
|
3312
3455
|
}
|
|
3313
|
-
`,
|
|
3456
|
+
`, sr = `
|
|
3314
3457
|
varying vec3 vWorldNormal;
|
|
3315
3458
|
varying vec3 vWorldPosition;
|
|
3316
3459
|
varying vec3 vLocalPos;
|
|
@@ -3321,14 +3464,14 @@ const jt = `
|
|
|
3321
3464
|
vWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;
|
|
3322
3465
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
3323
3466
|
}
|
|
3324
|
-
`,
|
|
3467
|
+
`, ir = `
|
|
3325
3468
|
uniform float uTime;
|
|
3326
3469
|
uniform vec3 uCoronaColor;
|
|
3327
3470
|
varying vec3 vWorldNormal;
|
|
3328
3471
|
varying vec3 vWorldPosition;
|
|
3329
3472
|
varying vec3 vLocalPos;
|
|
3330
3473
|
|
|
3331
|
-
${
|
|
3474
|
+
${Ze}
|
|
3332
3475
|
|
|
3333
3476
|
void main() {
|
|
3334
3477
|
vec3 viewDir = normalize(cameraPosition - vWorldPosition);
|
|
@@ -3339,7 +3482,7 @@ const jt = `
|
|
|
3339
3482
|
float alpha = radialFade * (0.25 + streamer * 0.75);
|
|
3340
3483
|
gl_FragColor = vec4(uCoronaColor * (1.1 + streamer * 0.9), clamp(alpha * 0.55, 0.0, 0.75));
|
|
3341
3484
|
}
|
|
3342
|
-
`,
|
|
3485
|
+
`, lr = `
|
|
3343
3486
|
varying vec3 vWorldNormal;
|
|
3344
3487
|
varying vec3 vWorldPosition;
|
|
3345
3488
|
varying vec3 vLocalPos;
|
|
@@ -3350,7 +3493,7 @@ const jt = `
|
|
|
3350
3493
|
vWorldPosition = (modelMatrix * vec4(position, 1.0)).xyz;
|
|
3351
3494
|
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
3352
3495
|
}
|
|
3353
|
-
`,
|
|
3496
|
+
`, or = `
|
|
3354
3497
|
uniform float uTime;
|
|
3355
3498
|
uniform vec3 uSun0Pos;
|
|
3356
3499
|
uniform vec3 uSun1Pos;
|
|
@@ -3361,7 +3504,7 @@ const jt = `
|
|
|
3361
3504
|
varying vec3 vWorldPosition;
|
|
3362
3505
|
varying vec3 vLocalPos;
|
|
3363
3506
|
|
|
3364
|
-
${
|
|
3507
|
+
${Ze}
|
|
3365
3508
|
|
|
3366
3509
|
void main() {
|
|
3367
3510
|
vec3 p = vLocalPos * 3.8;
|
|
@@ -3454,347 +3597,347 @@ const jt = `
|
|
|
3454
3597
|
gl_FragColor = vec4(finalCol, 1.0);
|
|
3455
3598
|
}
|
|
3456
3599
|
`;
|
|
3457
|
-
function
|
|
3458
|
-
const
|
|
3459
|
-
t[0].pos.set(-i / l * c, -u / s * -
|
|
3600
|
+
function Je(t, r) {
|
|
3601
|
+
const o = t[0].mass, i = t[1].mass, u = t[2].mass, l = o + i, s = l + u, c = 0.96, d = 1.76, f = Math.sqrt(1.5 * l / (c + 0.02)), p = -Math.sqrt(1.5 * s / (d + 0.05));
|
|
3602
|
+
t[0].pos.set(-i / l * c, -u / s * -d, 0), t[0].vel.set(-u / s * p, -i / l * f, 0.08), t[0].acc.set(0, 0, 0), t[1].pos.set(o / l * c, -u / s * -d, 0), t[1].vel.set(-u / s * p, o / l * f, -0.08), t[1].acc.set(0, 0, 0), t[2].pos.set(0, l / s * -d, 0), t[2].vel.set(l / s * p, 0, 0), t[2].acc.set(0, 0, 0), r.pos.set(-1.2, -0.6, 0.08), r.vel.set(-1.5, 0.3, 0.05), r.acc.set(0, 0, 0);
|
|
3460
3603
|
}
|
|
3461
|
-
function
|
|
3604
|
+
function cr({
|
|
3462
3605
|
scrollProgressRef: t,
|
|
3463
3606
|
pointerNdcRef: r,
|
|
3464
3607
|
bridgeRef: n,
|
|
3465
|
-
reducedMotion:
|
|
3608
|
+
reducedMotion: o,
|
|
3466
3609
|
paused: i,
|
|
3467
3610
|
timeScale: u,
|
|
3468
3611
|
catalog: l
|
|
3469
3612
|
}) {
|
|
3470
|
-
const s = R(null), c = R(null),
|
|
3471
|
-
sun0Geo:
|
|
3472
|
-
sun1Geo:
|
|
3473
|
-
sun2Geo:
|
|
3474
|
-
planetGeo:
|
|
3475
|
-
sunShaderMats:
|
|
3476
|
-
coronaShaderMats:
|
|
3477
|
-
trisolarisShaderMat:
|
|
3478
|
-
starfieldMat:
|
|
3479
|
-
} =
|
|
3480
|
-
const
|
|
3613
|
+
const s = R(null), c = R(null), d = R(null), f = R(null), p = R(null), m = R(null), v = R(0), h = R(0), S = R(1), {
|
|
3614
|
+
sun0Geo: M,
|
|
3615
|
+
sun1Geo: y,
|
|
3616
|
+
sun2Geo: x,
|
|
3617
|
+
planetGeo: g,
|
|
3618
|
+
sunShaderMats: I,
|
|
3619
|
+
coronaShaderMats: w,
|
|
3620
|
+
trisolarisShaderMat: z,
|
|
3621
|
+
starfieldMat: L
|
|
3622
|
+
} = se(() => {
|
|
3623
|
+
const V = (W, Y, oe, X, le) => new N.ShaderMaterial({
|
|
3481
3624
|
uniforms: {
|
|
3482
3625
|
uTime: { value: 0 },
|
|
3483
|
-
uCoreColor: { value: new
|
|
3484
|
-
uEdgeColor: { value: new
|
|
3485
|
-
uSpotColor: { value: new
|
|
3626
|
+
uCoreColor: { value: new N.Color(W) },
|
|
3627
|
+
uEdgeColor: { value: new N.Color(Y) },
|
|
3628
|
+
uSpotColor: { value: new N.Color(oe) },
|
|
3486
3629
|
uGlowGain: { value: X },
|
|
3487
|
-
uGranuleScale: { value:
|
|
3630
|
+
uGranuleScale: { value: le }
|
|
3488
3631
|
},
|
|
3489
|
-
vertexShader:
|
|
3490
|
-
fragmentShader:
|
|
3632
|
+
vertexShader: nr,
|
|
3633
|
+
fragmentShader: ar,
|
|
3491
3634
|
toneMapped: !1
|
|
3492
|
-
}),
|
|
3635
|
+
}), $ = (W) => new N.ShaderMaterial({
|
|
3493
3636
|
uniforms: {
|
|
3494
3637
|
uTime: { value: 0 },
|
|
3495
|
-
uCoronaColor: { value: new
|
|
3638
|
+
uCoronaColor: { value: new N.Color(W) }
|
|
3496
3639
|
},
|
|
3497
|
-
vertexShader:
|
|
3498
|
-
fragmentShader:
|
|
3640
|
+
vertexShader: sr,
|
|
3641
|
+
fragmentShader: ir,
|
|
3499
3642
|
transparent: !0,
|
|
3500
3643
|
depthWrite: !1,
|
|
3501
|
-
blending:
|
|
3502
|
-
side:
|
|
3644
|
+
blending: N.AdditiveBlending,
|
|
3645
|
+
side: N.BackSide,
|
|
3503
3646
|
toneMapped: !1
|
|
3504
|
-
}),
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3647
|
+
}), G = [
|
|
3648
|
+
V("#FFF3D1", "#D97706", "#290D02", 1.18, 8.5),
|
|
3649
|
+
V("#FDBA74", "#C2410C", "#240A01", 1.12, 7.2),
|
|
3650
|
+
V("#FB7185", "#7F1D1D", "#180303", 1.05, 5)
|
|
3508
3651
|
], B = [
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
], K = new
|
|
3652
|
+
$("#FFB347"),
|
|
3653
|
+
$("#F97316"),
|
|
3654
|
+
$("#EF4444")
|
|
3655
|
+
], K = new N.ShaderMaterial({
|
|
3513
3656
|
uniforms: {
|
|
3514
3657
|
uTime: { value: 0 },
|
|
3515
|
-
uSun0Pos: { value: new
|
|
3516
|
-
uSun1Pos: { value: new
|
|
3517
|
-
uSun2Pos: { value: new
|
|
3658
|
+
uSun0Pos: { value: new N.Vector3() },
|
|
3659
|
+
uSun1Pos: { value: new N.Vector3() },
|
|
3660
|
+
uSun2Pos: { value: new N.Vector3() },
|
|
3518
3661
|
uTidalHeat: { value: 0.4 },
|
|
3519
3662
|
uBolometricFlux: { value: 1 }
|
|
3520
3663
|
},
|
|
3521
|
-
vertexShader:
|
|
3522
|
-
fragmentShader:
|
|
3664
|
+
vertexShader: lr,
|
|
3665
|
+
fragmentShader: or,
|
|
3523
3666
|
toneMapped: !1
|
|
3524
|
-
}), te = new
|
|
3525
|
-
vertexShader:
|
|
3526
|
-
fragmentShader:
|
|
3667
|
+
}), te = new N.ShaderMaterial({
|
|
3668
|
+
vertexShader: tr,
|
|
3669
|
+
fragmentShader: rr,
|
|
3527
3670
|
transparent: !0,
|
|
3528
3671
|
depthWrite: !1,
|
|
3529
|
-
blending:
|
|
3672
|
+
blending: N.AdditiveBlending
|
|
3530
3673
|
});
|
|
3531
3674
|
return {
|
|
3532
|
-
sun0Geo: new
|
|
3533
|
-
sun1Geo: new
|
|
3534
|
-
sun2Geo: new
|
|
3535
|
-
planetGeo: new
|
|
3536
|
-
sunShaderMats:
|
|
3675
|
+
sun0Geo: new N.SphereGeometry(0.43, 48, 48),
|
|
3676
|
+
sun1Geo: new N.SphereGeometry(0.33, 48, 48),
|
|
3677
|
+
sun2Geo: new N.SphereGeometry(0.24, 48, 48),
|
|
3678
|
+
planetGeo: new N.SphereGeometry(0.19, 48, 48),
|
|
3679
|
+
sunShaderMats: G,
|
|
3537
3680
|
coronaShaderMats: B,
|
|
3538
3681
|
trisolarisShaderMat: K,
|
|
3539
3682
|
starfieldMat: te
|
|
3540
3683
|
};
|
|
3541
|
-
}, []), { suns:
|
|
3542
|
-
const
|
|
3684
|
+
}, []), { suns: T, trisolaris: E } = se(() => {
|
|
3685
|
+
const V = [
|
|
3543
3686
|
{
|
|
3544
|
-
pos: new
|
|
3545
|
-
vel: new
|
|
3546
|
-
acc: new
|
|
3687
|
+
pos: new N.Vector3(),
|
|
3688
|
+
vel: new N.Vector3(),
|
|
3689
|
+
acc: new N.Vector3(),
|
|
3547
3690
|
mass: 1.1,
|
|
3548
3691
|
luminosity: 1.52,
|
|
3549
3692
|
radius: 0.43
|
|
3550
3693
|
},
|
|
3551
3694
|
{
|
|
3552
|
-
pos: new
|
|
3553
|
-
vel: new
|
|
3554
|
-
acc: new
|
|
3695
|
+
pos: new N.Vector3(),
|
|
3696
|
+
vel: new N.Vector3(),
|
|
3697
|
+
acc: new N.Vector3(),
|
|
3555
3698
|
mass: 0.91,
|
|
3556
3699
|
luminosity: 0.5,
|
|
3557
3700
|
radius: 0.33
|
|
3558
3701
|
},
|
|
3559
3702
|
{
|
|
3560
|
-
pos: new
|
|
3561
|
-
vel: new
|
|
3562
|
-
acc: new
|
|
3703
|
+
pos: new N.Vector3(),
|
|
3704
|
+
vel: new N.Vector3(),
|
|
3705
|
+
acc: new N.Vector3(),
|
|
3563
3706
|
mass: 0.54,
|
|
3564
3707
|
luminosity: 0.08,
|
|
3565
3708
|
radius: 0.24
|
|
3566
3709
|
}
|
|
3567
|
-
],
|
|
3568
|
-
pos: new
|
|
3569
|
-
vel: new
|
|
3570
|
-
acc: new
|
|
3710
|
+
], $ = {
|
|
3711
|
+
pos: new N.Vector3(),
|
|
3712
|
+
vel: new N.Vector3(),
|
|
3713
|
+
acc: new N.Vector3(),
|
|
3571
3714
|
mass: 3e-6,
|
|
3572
3715
|
luminosity: 0,
|
|
3573
3716
|
radius: 0.19
|
|
3574
3717
|
};
|
|
3575
|
-
return
|
|
3576
|
-
}, []),
|
|
3577
|
-
const
|
|
3578
|
-
new
|
|
3579
|
-
new
|
|
3580
|
-
new
|
|
3581
|
-
new
|
|
3718
|
+
return Je(V, $), { suns: V, trisolaris: $ };
|
|
3719
|
+
}, []), A = se(() => {
|
|
3720
|
+
const $ = new Float32Array(6e3), G = new Float32Array(2e3), B = new Float32Array(2e3 * 3), K = [
|
|
3721
|
+
new N.Color("#DCE8FF"),
|
|
3722
|
+
new N.Color("#FFF8E7"),
|
|
3723
|
+
new N.Color("#FFE4B5"),
|
|
3724
|
+
new N.Color("#FFC699")
|
|
3582
3725
|
];
|
|
3583
|
-
for (let
|
|
3726
|
+
for (let W = 0; W < 2e3; W++) {
|
|
3584
3727
|
const Y = 5.8 + Math.random() * 11.5, oe = Math.random() * Math.PI * 2, X = Math.acos(2 * Math.random() - 1);
|
|
3585
|
-
|
|
3586
|
-
const
|
|
3587
|
-
B[
|
|
3728
|
+
$[W * 3] = Y * Math.sin(X) * Math.cos(oe), $[W * 3 + 1] = Y * Math.sin(X) * Math.sin(oe), $[W * 3 + 2] = Y * Math.cos(X), G[W] = 0.85 + Math.pow(Math.random(), 2.1) * 2.25;
|
|
3729
|
+
const le = K[W % K.length];
|
|
3730
|
+
B[W * 3] = le.r, B[W * 3 + 1] = le.g, B[W * 3 + 2] = le.b;
|
|
3588
3731
|
}
|
|
3589
|
-
const te = new
|
|
3590
|
-
return te.setAttribute("position", new
|
|
3732
|
+
const te = new N.BufferGeometry();
|
|
3733
|
+
return te.setAttribute("position", new N.BufferAttribute($, 3)), te.setAttribute("aSize", new N.BufferAttribute(G, 1)), te.setAttribute("aColor", new N.BufferAttribute(B, 3)), te;
|
|
3591
3734
|
}, []);
|
|
3592
|
-
|
|
3593
|
-
|
|
3735
|
+
U(() => () => {
|
|
3736
|
+
M.dispose(), y.dispose(), x.dispose(), g.dispose(), A.dispose(), L.dispose(), z.dispose(), I.forEach((V) => V.dispose()), w.forEach((V) => V.dispose());
|
|
3594
3737
|
}, [
|
|
3595
|
-
|
|
3738
|
+
M,
|
|
3739
|
+
y,
|
|
3596
3740
|
x,
|
|
3597
3741
|
g,
|
|
3742
|
+
A,
|
|
3743
|
+
L,
|
|
3598
3744
|
z,
|
|
3599
|
-
S,
|
|
3600
3745
|
I,
|
|
3601
|
-
|
|
3602
|
-
$,
|
|
3603
|
-
N
|
|
3746
|
+
w
|
|
3604
3747
|
]);
|
|
3605
|
-
const
|
|
3606
|
-
return
|
|
3607
|
-
var
|
|
3608
|
-
const
|
|
3609
|
-
v.current =
|
|
3748
|
+
const P = se(() => new N.Vector3(), []), Q = se(() => new N.Vector3(), []), k = se(() => new N.Vector3(), []), b = se(() => new N.Vector3(), []), _ = se(() => new N.Vector3(), []), j = se(() => new N.Vector3(), []), ie = se(() => new N.Raycaster(), []);
|
|
3749
|
+
return Zt((V, $) => {
|
|
3750
|
+
var Ae, Te, q;
|
|
3751
|
+
const G = (t == null ? void 0 : t.current) ?? 0, B = Math.min($, 0.035), K = (G - v.current) / Math.max(B, 1e-3);
|
|
3752
|
+
v.current = G, h.current = N.MathUtils.lerp(
|
|
3610
3753
|
h.current,
|
|
3611
3754
|
K,
|
|
3612
3755
|
B * 12
|
|
3613
3756
|
);
|
|
3614
|
-
const te = 0.62 * u,
|
|
3757
|
+
const te = 0.62 * u, W = h.current < -0.015 ? N.MathUtils.clamp(h.current * 4.5, -3.2, -0.15) : N.MathUtils.clamp(
|
|
3615
3758
|
te + Math.max(0, h.current) * 4.2,
|
|
3616
3759
|
0.15,
|
|
3617
3760
|
3.5
|
|
3618
|
-
), Y =
|
|
3761
|
+
), Y = o || i ? 0 : W * S.current, oe = 12, X = B * Y / oe, le = 1.5, de = 0.04, he = 0.05, ce = () => {
|
|
3619
3762
|
for (let C = 0; C < 3; C++) {
|
|
3620
|
-
|
|
3763
|
+
T[C].acc.set(0, 0, 0);
|
|
3621
3764
|
for (let O = 0; O < 3; O++) {
|
|
3622
3765
|
if (C === O) continue;
|
|
3623
|
-
|
|
3624
|
-
const
|
|
3625
|
-
|
|
3766
|
+
P.subVectors(T[O].pos, T[C].pos);
|
|
3767
|
+
const H = P.lengthSq() + de, D = 1 / Math.pow(H, 1.5);
|
|
3768
|
+
T[C].acc.addScaledVector(P, le * T[O].mass * D);
|
|
3626
3769
|
}
|
|
3627
3770
|
}
|
|
3628
|
-
|
|
3771
|
+
E.acc.set(0, 0, 0);
|
|
3629
3772
|
for (let C = 0; C < 3; C++) {
|
|
3630
|
-
|
|
3631
|
-
const O =
|
|
3632
|
-
|
|
3773
|
+
P.subVectors(T[C].pos, E.pos);
|
|
3774
|
+
const O = P.lengthSq() + he, H = 1 / Math.pow(O, 1.5);
|
|
3775
|
+
E.acc.addScaledVector(P, le * T[C].mass * H);
|
|
3633
3776
|
}
|
|
3634
3777
|
};
|
|
3635
3778
|
if (Y !== 0) {
|
|
3636
3779
|
ce();
|
|
3637
|
-
for (let
|
|
3638
|
-
for (let
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
for (let
|
|
3642
|
-
|
|
3643
|
-
|
|
3780
|
+
for (let H = 0; H < oe; H++) {
|
|
3781
|
+
for (let D = 0; D < 3; D++)
|
|
3782
|
+
T[D].vel.addScaledVector(T[D].acc, 0.5 * X), T[D].pos.addScaledVector(T[D].vel, X);
|
|
3783
|
+
E.vel.addScaledVector(E.acc, 0.5 * X), E.pos.addScaledVector(E.vel, X), ce();
|
|
3784
|
+
for (let D = 0; D < 3; D++)
|
|
3785
|
+
T[D].vel.addScaledVector(T[D].acc, 0.5 * X);
|
|
3786
|
+
E.vel.addScaledVector(E.acc, 0.5 * X);
|
|
3644
3787
|
}
|
|
3645
3788
|
const C = 17.64;
|
|
3646
|
-
let O =
|
|
3647
|
-
for (let
|
|
3648
|
-
|
|
3649
|
-
O &&
|
|
3789
|
+
let O = E.pos.lengthSq() > C && E.pos.dot(E.vel) > 0;
|
|
3790
|
+
for (let H = 0; H < 3; H++)
|
|
3791
|
+
T[H].pos.lengthSq() > C && T[H].pos.dot(T[H].vel) > 0 && (O = !0);
|
|
3792
|
+
O && Je(T, E);
|
|
3650
3793
|
}
|
|
3651
|
-
const me = [c.current,
|
|
3794
|
+
const me = [c.current, d.current, f.current], Le = [1.18, 1.12, 1.05];
|
|
3652
3795
|
for (let C = 0; C < 3; C++) {
|
|
3653
3796
|
const O = me[C];
|
|
3654
|
-
O && (O.position.copy(
|
|
3797
|
+
O && (O.position.copy(T[C].pos), O.rotation.y += B * Y * (0.28 + C * 0.12), O.scale.setScalar(1)), I[C].uniforms.uTime.value += B * Y * 1.4, w[C].uniforms.uTime.value += B * Y * 1.4, I[C].uniforms.uGlowGain.value = Le[C];
|
|
3655
3798
|
}
|
|
3656
|
-
p.current && (p.current.position.copy(
|
|
3657
|
-
let J = 0, ne = 0, ue = 0,
|
|
3799
|
+
p.current && (p.current.position.copy(E.pos), p.current.rotation.y += B * Y * 0.65, p.current.rotation.z = 0.41);
|
|
3800
|
+
let J = 0, ne = 0, ue = 0, ge = -1;
|
|
3658
3801
|
for (let C = 0; C < 3; C++) {
|
|
3659
|
-
const O = Math.max(0.22,
|
|
3660
|
-
J +=
|
|
3661
|
-
const
|
|
3662
|
-
ne +=
|
|
3663
|
-
const
|
|
3664
|
-
|
|
3802
|
+
const O = Math.max(0.22, E.pos.distanceToSquared(T[C].pos));
|
|
3803
|
+
J += T[C].luminosity / O;
|
|
3804
|
+
const H = O * O * O;
|
|
3805
|
+
ne += T[C].mass * T[C].mass / (H * 4.5);
|
|
3806
|
+
const D = T[C].mass / O;
|
|
3807
|
+
D > ge && (ge = D, ue = C);
|
|
3665
3808
|
}
|
|
3666
|
-
if (s.current && s.current.updateMatrixWorld(!0), c.current &&
|
|
3667
|
-
c.current.getWorldPosition(Q),
|
|
3809
|
+
if (s.current && s.current.updateMatrixWorld(!0), c.current && d.current && f.current && p.current) {
|
|
3810
|
+
c.current.getWorldPosition(Q), d.current.getWorldPosition(k), f.current.getWorldPosition(b), p.current.getWorldPosition(_), z.uniforms.uSun0Pos.value.copy(Q), z.uniforms.uSun1Pos.value.copy(k), z.uniforms.uSun2Pos.value.copy(b);
|
|
3668
3811
|
const C = r.current, O = C.x < -10;
|
|
3669
|
-
|
|
3670
|
-
const
|
|
3671
|
-
let
|
|
3812
|
+
ie.setFromCamera(C, V.camera);
|
|
3813
|
+
const H = [Q, k, b, _];
|
|
3814
|
+
let D = -1, ae = 999;
|
|
3672
3815
|
if (!O)
|
|
3673
|
-
for (let
|
|
3674
|
-
const ee = ((
|
|
3675
|
-
ve <= ee * ee && ve < ae && (ae = ve,
|
|
3816
|
+
for (let Z = 0; Z < 4; Z++) {
|
|
3817
|
+
const ee = ((Ae = l[Z]) == null ? void 0 : Ae.hitRadius) ?? 0.4, ve = ie.ray.distanceSqToPoint(H[Z]);
|
|
3818
|
+
ve <= ee * ee && ve < ae && (ae = ve, D = Z);
|
|
3676
3819
|
}
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3820
|
+
S.current = N.MathUtils.lerp(
|
|
3821
|
+
S.current,
|
|
3822
|
+
D !== -1 ? 0 : 1,
|
|
3680
3823
|
B * 18
|
|
3681
3824
|
);
|
|
3682
|
-
for (let
|
|
3683
|
-
const ee = me[
|
|
3684
|
-
ee &&
|
|
3825
|
+
for (let Z = 0; Z < 3; Z++) {
|
|
3826
|
+
const ee = me[Z];
|
|
3827
|
+
ee && D === Z && ee.scale.setScalar(1.12);
|
|
3685
3828
|
}
|
|
3686
|
-
if (p.current && p.current.scale.setScalar(
|
|
3687
|
-
const
|
|
3688
|
-
|
|
3689
|
-
const ee = (
|
|
3829
|
+
if (p.current && p.current.scale.setScalar(D === 3 ? 1.48 : 1.32), D !== -1 && l[D]) {
|
|
3830
|
+
const Z = l[D];
|
|
3831
|
+
j.copy(H[D]).project(V.camera);
|
|
3832
|
+
const ee = (j.x * 0.5 + 0.5) * window.innerWidth, ve = (-j.y * 0.5 + 0.5) * window.innerHeight, Ee = `${((D < 3 ? T[D].vel.length() : E.vel.length()) * 29.8).toFixed(1)} km/s`;
|
|
3690
3833
|
let pe = "Inner Binary Primary · Barycentric Core";
|
|
3691
|
-
if (
|
|
3692
|
-
const
|
|
3693
|
-
pe = `${J > 1.35 ? "CHAOTIC ERA · SCORCHING" : J < 0.55 ? "CHAOTIC ERA · FROZEN" : "STABLE ERA · TEMPERATE"} (Pull: ${
|
|
3694
|
-
} else
|
|
3695
|
-
(
|
|
3696
|
-
badge:
|
|
3697
|
-
name:
|
|
3698
|
-
classification:
|
|
3699
|
-
accentHex:
|
|
3700
|
-
reticleSize:
|
|
3834
|
+
if (D === 3) {
|
|
3835
|
+
const ze = ["Alpha Cen A", "Alpha Cen B", "Proxima C"];
|
|
3836
|
+
pe = `${J > 1.35 ? "CHAOTIC ERA · SCORCHING" : J < 0.55 ? "CHAOTIC ERA · FROZEN" : "STABLE ERA · TEMPERATE"} (Pull: ${ze[ue]})`;
|
|
3837
|
+
} else D === 1 ? pe = "Inner Binary Companion · Eccentric Pair" : D === 2 && (pe = "Retrograde Outer Perturber · Flare Active");
|
|
3838
|
+
(Te = n.current) == null || Te.commitFrame({
|
|
3839
|
+
badge: Z.badge,
|
|
3840
|
+
name: Z.name,
|
|
3841
|
+
classification: Z.classification,
|
|
3842
|
+
accentHex: Z.accentHex,
|
|
3843
|
+
reticleSize: Z.reticleSize,
|
|
3701
3844
|
screenX: ee,
|
|
3702
3845
|
screenY: ve,
|
|
3703
|
-
massLabel:
|
|
3704
|
-
tempLumLabel:
|
|
3705
|
-
velocityLabel:
|
|
3846
|
+
massLabel: Z.massLabel,
|
|
3847
|
+
tempLumLabel: Z.tempLumLabel,
|
|
3848
|
+
velocityLabel: Ee,
|
|
3706
3849
|
statusLabel: pe
|
|
3707
3850
|
});
|
|
3708
3851
|
} else
|
|
3709
|
-
(
|
|
3852
|
+
(q = n.current) == null || q.commitFrame(null);
|
|
3710
3853
|
}
|
|
3711
|
-
|
|
3712
|
-
|
|
3854
|
+
z.uniforms.uTime.value += B * Y * 0.9, z.uniforms.uBolometricFlux.value = N.MathUtils.lerp(
|
|
3855
|
+
z.uniforms.uBolometricFlux.value,
|
|
3713
3856
|
J,
|
|
3714
3857
|
B * 4
|
|
3715
|
-
),
|
|
3716
|
-
|
|
3717
|
-
|
|
3858
|
+
), z.uniforms.uTidalHeat.value = N.MathUtils.lerp(
|
|
3859
|
+
z.uniforms.uTidalHeat.value,
|
|
3860
|
+
N.MathUtils.clamp(ne, 0.05, 2.5),
|
|
3718
3861
|
B * 4
|
|
3719
|
-
),
|
|
3862
|
+
), m.current && (m.current.rotation.y += B * Y * 0.015);
|
|
3720
3863
|
}), /* @__PURE__ */ a("group", { ref: s, children: [
|
|
3721
3864
|
/* @__PURE__ */ e(
|
|
3722
3865
|
"points",
|
|
3723
3866
|
{
|
|
3724
|
-
ref:
|
|
3725
|
-
geometry:
|
|
3726
|
-
material:
|
|
3867
|
+
ref: m,
|
|
3868
|
+
geometry: A,
|
|
3869
|
+
material: L
|
|
3727
3870
|
}
|
|
3728
3871
|
),
|
|
3729
3872
|
/* @__PURE__ */ a("group", { ref: c, children: [
|
|
3730
|
-
/* @__PURE__ */ e("mesh", { geometry:
|
|
3873
|
+
/* @__PURE__ */ e("mesh", { geometry: M, material: I[0] }),
|
|
3731
3874
|
/* @__PURE__ */ e(
|
|
3732
3875
|
"mesh",
|
|
3733
3876
|
{
|
|
3734
|
-
geometry:
|
|
3735
|
-
material:
|
|
3877
|
+
geometry: M,
|
|
3878
|
+
material: w[0],
|
|
3736
3879
|
scale: 1.22
|
|
3737
3880
|
}
|
|
3738
3881
|
),
|
|
3739
3882
|
/* @__PURE__ */ e("pointLight", { color: "#FFF2D6", intensity: 7.5, distance: 6 })
|
|
3740
3883
|
] }),
|
|
3741
|
-
/* @__PURE__ */ a("group", { ref:
|
|
3742
|
-
/* @__PURE__ */ e("mesh", { geometry:
|
|
3884
|
+
/* @__PURE__ */ a("group", { ref: d, children: [
|
|
3885
|
+
/* @__PURE__ */ e("mesh", { geometry: y, material: I[1] }),
|
|
3743
3886
|
/* @__PURE__ */ e(
|
|
3744
3887
|
"mesh",
|
|
3745
3888
|
{
|
|
3746
|
-
geometry:
|
|
3747
|
-
material:
|
|
3889
|
+
geometry: y,
|
|
3890
|
+
material: w[1],
|
|
3748
3891
|
scale: 1.22
|
|
3749
3892
|
}
|
|
3750
3893
|
),
|
|
3751
3894
|
/* @__PURE__ */ e("pointLight", { color: "#FFAE52", intensity: 5.2, distance: 6 })
|
|
3752
3895
|
] }),
|
|
3753
3896
|
/* @__PURE__ */ a("group", { ref: f, children: [
|
|
3754
|
-
/* @__PURE__ */ e("mesh", { geometry:
|
|
3897
|
+
/* @__PURE__ */ e("mesh", { geometry: x, material: I[2] }),
|
|
3755
3898
|
/* @__PURE__ */ e(
|
|
3756
3899
|
"mesh",
|
|
3757
3900
|
{
|
|
3758
|
-
geometry:
|
|
3759
|
-
material:
|
|
3901
|
+
geometry: x,
|
|
3902
|
+
material: w[2],
|
|
3760
3903
|
scale: 1.25
|
|
3761
3904
|
}
|
|
3762
3905
|
),
|
|
3763
3906
|
/* @__PURE__ */ e("pointLight", { color: "#F95738", intensity: 3.8, distance: 5 })
|
|
3764
3907
|
] }),
|
|
3765
|
-
/* @__PURE__ */ e("group", { ref: p, scale: 1.32, children: /* @__PURE__ */ e("mesh", { geometry:
|
|
3908
|
+
/* @__PURE__ */ e("group", { ref: p, scale: 1.32, children: /* @__PURE__ */ e("mesh", { geometry: g, material: z }) })
|
|
3766
3909
|
] });
|
|
3767
3910
|
}
|
|
3768
|
-
function
|
|
3911
|
+
function cn({
|
|
3769
3912
|
scrollProgressRef: t,
|
|
3770
3913
|
paused: r = !1,
|
|
3771
3914
|
timeScale: n = 1,
|
|
3772
|
-
catalog:
|
|
3915
|
+
catalog: o = ut
|
|
3773
3916
|
}) {
|
|
3774
|
-
const { reducedMotion: i, polarity: u } =
|
|
3775
|
-
return
|
|
3776
|
-
const c = (
|
|
3917
|
+
const { reducedMotion: i, polarity: u } = Ve(), l = R(new N.Vector2(-99, -99)), s = R(null);
|
|
3918
|
+
return U(() => {
|
|
3919
|
+
const c = (d) => {
|
|
3777
3920
|
var f;
|
|
3778
|
-
if ((f = s.current) != null && f.isOccludedTarget(
|
|
3921
|
+
if ((f = s.current) != null && f.isOccludedTarget(d.target)) {
|
|
3779
3922
|
l.current.set(-99, -99);
|
|
3780
3923
|
return;
|
|
3781
3924
|
}
|
|
3782
3925
|
l.current.set(
|
|
3783
|
-
|
|
3784
|
-
-(
|
|
3926
|
+
d.clientX / window.innerWidth * 2 - 1,
|
|
3927
|
+
-(d.clientY / window.innerHeight) * 2 + 1
|
|
3785
3928
|
);
|
|
3786
3929
|
};
|
|
3787
3930
|
return window.addEventListener("pointermove", c, {
|
|
3788
3931
|
passive: !0
|
|
3789
3932
|
}), () => window.removeEventListener("pointermove", c);
|
|
3790
|
-
}, []), /* @__PURE__ */ a(
|
|
3933
|
+
}, []), /* @__PURE__ */ a(ke, { children: [
|
|
3791
3934
|
/* @__PURE__ */ e(
|
|
3792
3935
|
"div",
|
|
3793
3936
|
{
|
|
3794
3937
|
"aria-hidden": "true",
|
|
3795
3938
|
className: `fixed inset-0 z-0 pointer-events-none transition-opacity duration-500 ${u === "light" ? "opacity-25" : "opacity-100"}`,
|
|
3796
3939
|
children: /* @__PURE__ */ a(
|
|
3797
|
-
|
|
3940
|
+
Ht,
|
|
3798
3941
|
{
|
|
3799
3942
|
dpr: [1, 1.5],
|
|
3800
3943
|
camera: { position: [0, 0, 5.2], fov: 44 },
|
|
@@ -3805,8 +3948,8 @@ function Kr({
|
|
|
3805
3948
|
},
|
|
3806
3949
|
children: [
|
|
3807
3950
|
/* @__PURE__ */ e("ambientLight", { intensity: 0.25 }),
|
|
3808
|
-
/* @__PURE__ */ e(
|
|
3809
|
-
|
|
3951
|
+
/* @__PURE__ */ e(xt, { fallback: null, children: /* @__PURE__ */ e(
|
|
3952
|
+
cr,
|
|
3810
3953
|
{
|
|
3811
3954
|
scrollProgressRef: t,
|
|
3812
3955
|
pointerNdcRef: l,
|
|
@@ -3814,11 +3957,11 @@ function Kr({
|
|
|
3814
3957
|
reducedMotion: i,
|
|
3815
3958
|
paused: r,
|
|
3816
3959
|
timeScale: n,
|
|
3817
|
-
catalog:
|
|
3960
|
+
catalog: o
|
|
3818
3961
|
}
|
|
3819
3962
|
) }),
|
|
3820
|
-
/* @__PURE__ */ e(
|
|
3821
|
-
|
|
3963
|
+
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(
|
|
3964
|
+
Bt,
|
|
3822
3965
|
{
|
|
3823
3966
|
intensity: 0.85,
|
|
3824
3967
|
luminanceThreshold: 0.78,
|
|
@@ -3831,92 +3974,92 @@ function Kr({
|
|
|
3831
3974
|
)
|
|
3832
3975
|
}
|
|
3833
3976
|
),
|
|
3834
|
-
/* @__PURE__ */ e(
|
|
3977
|
+
/* @__PURE__ */ e(pt, { bridgeRef: s })
|
|
3835
3978
|
] });
|
|
3836
3979
|
}
|
|
3837
|
-
const
|
|
3980
|
+
const dn = "1.1.4", mn = "@zen-ui/system";
|
|
3838
3981
|
export {
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3982
|
+
xe as CAPRI_SUBROUTINE_SKILLS,
|
|
3983
|
+
fn as CapriEngine,
|
|
3984
|
+
ut as DEFAULT_CELESTIAL_CATALOG,
|
|
3985
|
+
xr as ZEN_ICON_NAMES,
|
|
3986
|
+
be as ZEN_ICON_SIZE_PX,
|
|
3987
|
+
fe as ZEN_ICON_SVG_INNER,
|
|
3988
|
+
mn as ZEN_PACKAGE_NAME,
|
|
3989
|
+
$e as ZEN_SYNTH_PRESETS,
|
|
3990
|
+
we as ZEN_THEMES,
|
|
3991
|
+
dn as ZEN_UI_VERSION,
|
|
3992
|
+
hn as ZEN_UNIVERSAL_THEMES,
|
|
3993
|
+
Lr as ZenAIConstruct,
|
|
3994
|
+
vn as ZenAIConstructElement,
|
|
3995
|
+
qr as ZenAccordion,
|
|
3996
|
+
rn as ZenAlert,
|
|
3997
|
+
Ir as ZenAmbientBackground,
|
|
3998
|
+
xn as ZenAmbientBackgroundElement,
|
|
3999
|
+
Yt as ZenArchitectureNote,
|
|
4000
|
+
ln as ZenAudioController,
|
|
4001
|
+
en as ZenAvatar,
|
|
4002
|
+
Ye as ZenBadge,
|
|
4003
|
+
Zr as ZenBreadcrumbs,
|
|
4004
|
+
Ce as ZenButton,
|
|
4005
|
+
He as ZenCard,
|
|
4006
|
+
dt as ZenCheckList,
|
|
4007
|
+
$r as ZenCheckbox,
|
|
4008
|
+
Vr as ZenChipFilter,
|
|
4009
|
+
Jr as ZenCircularGauge,
|
|
4010
|
+
tn as ZenCodeBlock,
|
|
4011
|
+
Ur as ZenCommandPalette,
|
|
4012
|
+
ot as ZenCopyButton,
|
|
4013
|
+
cn as ZenCosmosCanvas,
|
|
4014
|
+
Er as ZenDataTable,
|
|
4015
|
+
Yr as ZenDivider,
|
|
4016
|
+
zr as ZenDossierPanel,
|
|
4017
|
+
Wr as ZenDrawer,
|
|
4018
|
+
Cr as ZenDropdown,
|
|
4019
|
+
an as ZenEmptyState,
|
|
4020
|
+
Hr as ZenFileUpload,
|
|
4021
|
+
gr as ZenHeading,
|
|
4022
|
+
yr as ZenIcon,
|
|
4023
|
+
jr as ZenIconButton,
|
|
4024
|
+
bn as ZenIconElement,
|
|
4025
|
+
kr as ZenInput,
|
|
4026
|
+
Xe as ZenKbd,
|
|
4027
|
+
Xr as ZenKpiCard,
|
|
4028
|
+
Kt as ZenMetricStrip,
|
|
4029
|
+
Mr as ZenModal,
|
|
4030
|
+
Rr as ZenNavbar,
|
|
4031
|
+
Dr as ZenNumberStepper,
|
|
4032
|
+
Gr as ZenPagination,
|
|
4033
|
+
Qr as ZenProgressBar,
|
|
4034
|
+
Or as ZenRadioGroup,
|
|
4035
|
+
mt as ZenSegmentedControl,
|
|
4036
|
+
_r as ZenSidebar,
|
|
4037
|
+
nn as ZenSkeleton,
|
|
4038
|
+
Fr as ZenSlider,
|
|
4039
|
+
Qt as ZenSparkline,
|
|
4040
|
+
Br as ZenStepper,
|
|
4041
|
+
Sr as ZenSwitch,
|
|
4042
|
+
Nr as ZenTabs,
|
|
4043
|
+
ct as ZenTagList,
|
|
4044
|
+
pt as ZenTelemetryHud,
|
|
4045
|
+
on as ZenTelemetryInspector,
|
|
4046
|
+
Pr as ZenTextarea,
|
|
4047
|
+
yn as ZenThemeController,
|
|
4048
|
+
vr as ZenThemeProvider,
|
|
4049
|
+
gn as ZenThemeSwitcherElement,
|
|
4050
|
+
wr as ZenTimelineCard,
|
|
4051
|
+
Ar as ZenToastStack,
|
|
4052
|
+
Kr as ZenTooltip,
|
|
4053
|
+
zn as ZenUniversalAudio,
|
|
4054
|
+
Oe as capri,
|
|
4055
|
+
wn as escapeZenHtml,
|
|
4056
|
+
Nn as registerZenElements,
|
|
4057
|
+
br as renderZenIconSvgMarkup,
|
|
4058
|
+
kn as sanitizeZenAssetUrl,
|
|
4059
|
+
bt as syncZenScrollbarStyles,
|
|
4060
|
+
sn as useZenAudioSynth,
|
|
4061
|
+
Ve as useZenTheme,
|
|
4062
|
+
Tr as useZenToast,
|
|
4063
|
+
Cn as zenAudio,
|
|
4064
|
+
Sn as zenTheme
|
|
3922
4065
|
};
|