@sentinel-core/sentinel 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sentinel.css +1 -1
- package/dist/sentinel.es.js +3634 -0
- package/dist/sentinel.umd.js +55 -0
- package/dist/src/react/Sentinel.d.ts +1 -1
- package/dist/src/react/provider.d.ts +1 -1
- package/dist/src/ui/components/Dialog.d.ts +2 -2
- package/dist/src/ui/widgets/MarkdownViewer.d.ts +7 -0
- package/dist/src/ui/widgets/SentinelDialog.d.ts +2 -1
- package/dist/src/ui/widgets/Spotlight.d.ts +1 -1
- package/package.json +7 -7
- package/dist/sentinel.js +0 -18659
|
@@ -0,0 +1,3634 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import t, { createContext as n, useContext as r, useState as i } from "react";
|
|
3
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
4
|
+
import * as c from "react-dom";
|
|
5
|
+
import l from "react-dom";
|
|
6
|
+
//#region ../../node_modules/@huin-core/react-context/dist/index.mjs
|
|
7
|
+
function u(t, n) {
|
|
8
|
+
let r = e.createContext(n);
|
|
9
|
+
function i(t) {
|
|
10
|
+
let { children: n, ...i } = t, a = e.useMemo(() => i, Object.values(i));
|
|
11
|
+
return /* @__PURE__ */ o(r.Provider, {
|
|
12
|
+
value: a,
|
|
13
|
+
children: n
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function a(i) {
|
|
17
|
+
let a = e.useContext(r);
|
|
18
|
+
if (a) return a;
|
|
19
|
+
if (n !== void 0) return n;
|
|
20
|
+
throw Error(`\`${i}\` must be used within \`${t}\``);
|
|
21
|
+
}
|
|
22
|
+
return i.displayName = t + "Provider", [i, a];
|
|
23
|
+
}
|
|
24
|
+
function d(t, n = []) {
|
|
25
|
+
let r = [];
|
|
26
|
+
function i(n, i) {
|
|
27
|
+
let a = e.createContext(i), s = r.length;
|
|
28
|
+
r = [...r, i];
|
|
29
|
+
function c(n) {
|
|
30
|
+
let { scope: r, children: i, ...c } = n, l = r?.[t][s] || a, u = e.useMemo(() => c, Object.values(c));
|
|
31
|
+
return /* @__PURE__ */ o(l.Provider, {
|
|
32
|
+
value: u,
|
|
33
|
+
children: i
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
function l(r, o) {
|
|
37
|
+
let c = o?.[t][s] || a, l = e.useContext(c);
|
|
38
|
+
if (l) return l;
|
|
39
|
+
if (i !== void 0) return i;
|
|
40
|
+
throw Error(`\`${r}\` must be used within \`${n}\``);
|
|
41
|
+
}
|
|
42
|
+
return c.displayName = n + "Provider", [c, l];
|
|
43
|
+
}
|
|
44
|
+
let a = () => {
|
|
45
|
+
let n = r.map((t) => e.createContext(t));
|
|
46
|
+
return function(r) {
|
|
47
|
+
let i = r?.[t] || n;
|
|
48
|
+
return e.useMemo(() => ({ [`__scope${t}`]: {
|
|
49
|
+
...r,
|
|
50
|
+
[t]: i
|
|
51
|
+
} }), [r, i]);
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
return a.scopeName = t, [i, f(a, ...n)];
|
|
55
|
+
}
|
|
56
|
+
function f(...t) {
|
|
57
|
+
let n = t[0];
|
|
58
|
+
if (t.length === 1) return n;
|
|
59
|
+
let r = () => {
|
|
60
|
+
let r = t.map((e) => ({
|
|
61
|
+
useScope: e(),
|
|
62
|
+
scopeName: e.scopeName
|
|
63
|
+
}));
|
|
64
|
+
return function(t) {
|
|
65
|
+
let i = r.reduce((e, { useScope: n, scopeName: r }) => {
|
|
66
|
+
let i = n(t)[`__scope${r}`];
|
|
67
|
+
return {
|
|
68
|
+
...e,
|
|
69
|
+
...i
|
|
70
|
+
};
|
|
71
|
+
}, {});
|
|
72
|
+
return e.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
return r.scopeName = n.scopeName, r;
|
|
76
|
+
}
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region ../../node_modules/@huin-core/primitive/dist/index.mjs
|
|
79
|
+
function p(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
80
|
+
return function(r) {
|
|
81
|
+
if (e?.(r), n === !1 || !r.defaultPrevented) return t?.(r);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region ../../node_modules/@huin-core/react-compose-refs/dist/index.mjs
|
|
86
|
+
function m(e, t) {
|
|
87
|
+
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
88
|
+
}
|
|
89
|
+
function h(...e) {
|
|
90
|
+
return (t) => e.forEach((e) => m(e, t));
|
|
91
|
+
}
|
|
92
|
+
function g(...t) {
|
|
93
|
+
return e.useCallback(h(...t), t);
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region ../../node_modules/@huin-core/react-slot/dist/index.mjs
|
|
97
|
+
var _ = e.forwardRef((t, n) => {
|
|
98
|
+
let { children: r, ...i } = t, a = e.Children.toArray(r), s = a.find(b);
|
|
99
|
+
if (s) {
|
|
100
|
+
let t = s.props.children, r = a.map((n) => n === s ? e.Children.count(t) > 1 ? e.Children.only(null) : e.isValidElement(t) ? t.props.children : null : n);
|
|
101
|
+
return /* @__PURE__ */ o(v, {
|
|
102
|
+
...i,
|
|
103
|
+
ref: n,
|
|
104
|
+
children: e.isValidElement(t) ? e.cloneElement(t, void 0, r) : null
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return /* @__PURE__ */ o(v, {
|
|
108
|
+
...i,
|
|
109
|
+
ref: n,
|
|
110
|
+
children: r
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
_.displayName = "Slot";
|
|
114
|
+
var v = e.forwardRef((t, n) => {
|
|
115
|
+
let { children: r, ...i } = t;
|
|
116
|
+
if (e.isValidElement(r)) {
|
|
117
|
+
let t = S(r);
|
|
118
|
+
return e.cloneElement(r, {
|
|
119
|
+
...x(i, r.props),
|
|
120
|
+
ref: n ? h(n, t) : t
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return e.Children.count(r) > 1 ? e.Children.only(null) : null;
|
|
124
|
+
});
|
|
125
|
+
v.displayName = "SlotClone";
|
|
126
|
+
var y = ({ children: e }) => /* @__PURE__ */ o(a, { children: e });
|
|
127
|
+
function b(t) {
|
|
128
|
+
return e.isValidElement(t) && t.type === y;
|
|
129
|
+
}
|
|
130
|
+
function x(e, t) {
|
|
131
|
+
let n = { ...t };
|
|
132
|
+
for (let r in t) {
|
|
133
|
+
let i = e[r], a = t[r];
|
|
134
|
+
/^on[A-Z]/.test(r) ? i && a ? n[r] = (...e) => {
|
|
135
|
+
a(...e), i(...e);
|
|
136
|
+
} : i && (n[r] = i) : r === "style" ? n[r] = {
|
|
137
|
+
...i,
|
|
138
|
+
...a
|
|
139
|
+
} : r === "className" && (n[r] = [i, a].filter(Boolean).join(" "));
|
|
140
|
+
}
|
|
141
|
+
return {
|
|
142
|
+
...e,
|
|
143
|
+
...n
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function S(e) {
|
|
147
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
148
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
149
|
+
}
|
|
150
|
+
//#endregion
|
|
151
|
+
//#region ../../node_modules/@huin-core/react-collection/dist/index.mjs
|
|
152
|
+
function C(e) {
|
|
153
|
+
let n = e + "CollectionProvider", [r, i] = d(n), [a, s] = r(n, {
|
|
154
|
+
collectionRef: { current: null },
|
|
155
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
156
|
+
}), c = (e) => {
|
|
157
|
+
let { scope: n, children: r } = e, i = t.useRef(null), s = t.useRef(/* @__PURE__ */ new Map()).current;
|
|
158
|
+
return /* @__PURE__ */ o(a, {
|
|
159
|
+
scope: n,
|
|
160
|
+
itemMap: s,
|
|
161
|
+
collectionRef: i,
|
|
162
|
+
children: r
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
c.displayName = n;
|
|
166
|
+
let l = e + "CollectionSlot", u = t.forwardRef((e, t) => {
|
|
167
|
+
let { scope: n, children: r } = e;
|
|
168
|
+
return /* @__PURE__ */ o(_, {
|
|
169
|
+
ref: g(t, s(l, n).collectionRef),
|
|
170
|
+
children: r
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
u.displayName = l;
|
|
174
|
+
let f = e + "CollectionItemSlot", p = "data-huin-core-collection-item", m = t.forwardRef((e, n) => {
|
|
175
|
+
let { scope: r, children: i, ...a } = e, c = t.useRef(null), l = g(n, c), u = s(f, r);
|
|
176
|
+
return t.useEffect(() => (u.itemMap.set(c, {
|
|
177
|
+
ref: c,
|
|
178
|
+
...a
|
|
179
|
+
}), () => void u.itemMap.delete(c))), /* @__PURE__ */ o(_, {
|
|
180
|
+
[p]: "",
|
|
181
|
+
ref: l,
|
|
182
|
+
children: i
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
m.displayName = f;
|
|
186
|
+
function h(n) {
|
|
187
|
+
let r = s(e + "CollectionConsumer", n);
|
|
188
|
+
return t.useCallback(() => {
|
|
189
|
+
let e = r.collectionRef.current;
|
|
190
|
+
if (!e) return [];
|
|
191
|
+
let t = Array.from(e.querySelectorAll(`[${p}]`));
|
|
192
|
+
return Array.from(r.itemMap.values()).sort((e, n) => t.indexOf(e.ref.current) - t.indexOf(n.ref.current));
|
|
193
|
+
}, [r.collectionRef, r.itemMap]);
|
|
194
|
+
}
|
|
195
|
+
return [
|
|
196
|
+
{
|
|
197
|
+
Provider: c,
|
|
198
|
+
Slot: u,
|
|
199
|
+
ItemSlot: m
|
|
200
|
+
},
|
|
201
|
+
h,
|
|
202
|
+
i
|
|
203
|
+
];
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/@huin-core/react-use-layout-effect/dist/index.mjs
|
|
207
|
+
var w = globalThis?.document ? e.useLayoutEffect : () => {}, T = e.useId || (() => void 0), E = 0;
|
|
208
|
+
function D(t) {
|
|
209
|
+
let [n, r] = e.useState(T());
|
|
210
|
+
return w(() => {
|
|
211
|
+
t || r((e) => e ?? String(E++));
|
|
212
|
+
}, [t]), t || (n ? `huin-${n}` : "");
|
|
213
|
+
}
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region ../../node_modules/@huin-core/react-primitive/dist/index.mjs
|
|
216
|
+
var O = [
|
|
217
|
+
"a",
|
|
218
|
+
"button",
|
|
219
|
+
"div",
|
|
220
|
+
"form",
|
|
221
|
+
"h2",
|
|
222
|
+
"h3",
|
|
223
|
+
"img",
|
|
224
|
+
"input",
|
|
225
|
+
"textarea",
|
|
226
|
+
"label",
|
|
227
|
+
"li",
|
|
228
|
+
"nav",
|
|
229
|
+
"ol",
|
|
230
|
+
"p",
|
|
231
|
+
"span",
|
|
232
|
+
"svg",
|
|
233
|
+
"ul"
|
|
234
|
+
].reduce((t, n) => {
|
|
235
|
+
let r = e.forwardRef((e, t) => {
|
|
236
|
+
let { asChild: r, ...i } = e, a = r ? _ : n;
|
|
237
|
+
return typeof window < "u" && (window[Symbol.for("huin-core")] = !0), /* @__PURE__ */ o(a, {
|
|
238
|
+
...i,
|
|
239
|
+
ref: t
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
return r.displayName = `Primitive.${n}`, {
|
|
243
|
+
...t,
|
|
244
|
+
[n]: r
|
|
245
|
+
};
|
|
246
|
+
}, {});
|
|
247
|
+
function ee(e, t) {
|
|
248
|
+
e && c.flushSync(() => e.dispatchEvent(t));
|
|
249
|
+
}
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region ../../node_modules/@huin-core/react-use-callback-ref/dist/index.mjs
|
|
252
|
+
function k(t) {
|
|
253
|
+
let n = e.useRef(t);
|
|
254
|
+
return e.useEffect(() => {
|
|
255
|
+
n.current = t;
|
|
256
|
+
}), e.useMemo(() => (...e) => n.current?.(...e), []);
|
|
257
|
+
}
|
|
258
|
+
//#endregion
|
|
259
|
+
//#region ../../node_modules/@huin-core/react-use-controllable-state/dist/index.mjs
|
|
260
|
+
function A({ prop: t, defaultProp: n, onChange: r = () => {} }) {
|
|
261
|
+
let [i, a] = j({
|
|
262
|
+
defaultProp: n,
|
|
263
|
+
onChange: r
|
|
264
|
+
}), o = t !== void 0, s = o ? t : i, c = k(r);
|
|
265
|
+
return [s, e.useCallback((e) => {
|
|
266
|
+
if (o) {
|
|
267
|
+
let n = typeof e == "function" ? e(t) : e;
|
|
268
|
+
n !== t && c(n);
|
|
269
|
+
} else a(e);
|
|
270
|
+
}, [
|
|
271
|
+
o,
|
|
272
|
+
t,
|
|
273
|
+
a,
|
|
274
|
+
c
|
|
275
|
+
])];
|
|
276
|
+
}
|
|
277
|
+
function j({ defaultProp: t, onChange: n }) {
|
|
278
|
+
let r = e.useState(t), [i] = r, a = e.useRef(i), o = k(n);
|
|
279
|
+
return e.useEffect(() => {
|
|
280
|
+
a.current !== i && (o(i), a.current = i);
|
|
281
|
+
}, [
|
|
282
|
+
i,
|
|
283
|
+
a,
|
|
284
|
+
o
|
|
285
|
+
]), r;
|
|
286
|
+
}
|
|
287
|
+
//#endregion
|
|
288
|
+
//#region ../../node_modules/@huin-core/react-direction/dist/index.mjs
|
|
289
|
+
var M = e.createContext(void 0);
|
|
290
|
+
function te(t) {
|
|
291
|
+
let n = e.useContext(M);
|
|
292
|
+
return t || n || "ltr";
|
|
293
|
+
}
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region ../../node_modules/@huin-core/react-roving-focus/dist/index.mjs
|
|
296
|
+
var N = "rovingFocusGroup.onEntryFocus", P = {
|
|
297
|
+
bubbles: !1,
|
|
298
|
+
cancelable: !0
|
|
299
|
+
}, F = "RovingFocusGroup", [ne, re, ie] = C(F), [I, L] = d(F, [ie]), [ae, oe] = I(F), R = e.forwardRef((e, t) => /* @__PURE__ */ o(ne.Provider, {
|
|
300
|
+
scope: e.__scopeRovingFocusGroup,
|
|
301
|
+
children: /* @__PURE__ */ o(ne.Slot, {
|
|
302
|
+
scope: e.__scopeRovingFocusGroup,
|
|
303
|
+
children: /* @__PURE__ */ o(se, {
|
|
304
|
+
...e,
|
|
305
|
+
ref: t
|
|
306
|
+
})
|
|
307
|
+
})
|
|
308
|
+
}));
|
|
309
|
+
R.displayName = F;
|
|
310
|
+
var se = e.forwardRef((t, n) => {
|
|
311
|
+
let { __scopeRovingFocusGroup: r, orientation: i, loop: a = !1, dir: s, currentTabStopId: c, defaultCurrentTabStopId: l, onCurrentTabStopIdChange: u, onEntryFocus: d, preventScrollOnEntryFocus: f = !1, ...m } = t, h = e.useRef(null), _ = g(n, h), v = te(s), [y = null, b] = A({
|
|
312
|
+
prop: c,
|
|
313
|
+
defaultProp: l,
|
|
314
|
+
onChange: u
|
|
315
|
+
}), [x, S] = e.useState(!1), C = k(d), w = re(r), T = e.useRef(!1), [E, D] = e.useState(0);
|
|
316
|
+
return e.useEffect(() => {
|
|
317
|
+
let e = h.current;
|
|
318
|
+
if (e) return e.addEventListener(N, C), () => e.removeEventListener(N, C);
|
|
319
|
+
}, [C]), /* @__PURE__ */ o(ae, {
|
|
320
|
+
scope: r,
|
|
321
|
+
orientation: i,
|
|
322
|
+
dir: v,
|
|
323
|
+
loop: a,
|
|
324
|
+
currentTabStopId: y,
|
|
325
|
+
onItemFocus: e.useCallback((e) => b(e), [b]),
|
|
326
|
+
onItemShiftTab: e.useCallback(() => S(!0), []),
|
|
327
|
+
onFocusableItemAdd: e.useCallback(() => D((e) => e + 1), []),
|
|
328
|
+
onFocusableItemRemove: e.useCallback(() => D((e) => e - 1), []),
|
|
329
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
330
|
+
tabIndex: x || E === 0 ? -1 : 0,
|
|
331
|
+
"data-orientation": i,
|
|
332
|
+
...m,
|
|
333
|
+
ref: _,
|
|
334
|
+
style: {
|
|
335
|
+
outline: "none",
|
|
336
|
+
...t.style
|
|
337
|
+
},
|
|
338
|
+
onMouseDown: p(t.onMouseDown, () => {
|
|
339
|
+
T.current = !0;
|
|
340
|
+
}),
|
|
341
|
+
onFocus: p(t.onFocus, (e) => {
|
|
342
|
+
let t = !T.current;
|
|
343
|
+
if (e.target === e.currentTarget && t && !x) {
|
|
344
|
+
let t = new CustomEvent(N, P);
|
|
345
|
+
if (e.currentTarget.dispatchEvent(t), !t.defaultPrevented) {
|
|
346
|
+
let e = w().filter((e) => e.focusable);
|
|
347
|
+
pe([
|
|
348
|
+
e.find((e) => e.active),
|
|
349
|
+
e.find((e) => e.id === y),
|
|
350
|
+
...e
|
|
351
|
+
].filter(Boolean).map((e) => e.ref.current), f);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
T.current = !1;
|
|
355
|
+
}),
|
|
356
|
+
onBlur: p(t.onBlur, () => S(!1))
|
|
357
|
+
})
|
|
358
|
+
});
|
|
359
|
+
}), ce = "RovingFocusGroupItem", le = e.forwardRef((t, n) => {
|
|
360
|
+
let { __scopeRovingFocusGroup: r, focusable: i = !0, active: a = !1, tabStopId: s, ...c } = t, l = D(), u = s || l, d = oe(ce, r), f = d.currentTabStopId === u, m = re(r), { onFocusableItemAdd: h, onFocusableItemRemove: g } = d;
|
|
361
|
+
return e.useEffect(() => {
|
|
362
|
+
if (i) return h(), () => g();
|
|
363
|
+
}, [
|
|
364
|
+
i,
|
|
365
|
+
h,
|
|
366
|
+
g
|
|
367
|
+
]), /* @__PURE__ */ o(ne.ItemSlot, {
|
|
368
|
+
scope: r,
|
|
369
|
+
id: u,
|
|
370
|
+
focusable: i,
|
|
371
|
+
active: a,
|
|
372
|
+
children: /* @__PURE__ */ o(O.span, {
|
|
373
|
+
tabIndex: f ? 0 : -1,
|
|
374
|
+
"data-orientation": d.orientation,
|
|
375
|
+
...c,
|
|
376
|
+
ref: n,
|
|
377
|
+
onMouseDown: p(t.onMouseDown, (e) => {
|
|
378
|
+
i ? d.onItemFocus(u) : e.preventDefault();
|
|
379
|
+
}),
|
|
380
|
+
onFocus: p(t.onFocus, () => d.onItemFocus(u)),
|
|
381
|
+
onKeyDown: p(t.onKeyDown, (e) => {
|
|
382
|
+
if (e.key === "Tab" && e.shiftKey) {
|
|
383
|
+
d.onItemShiftTab();
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
if (e.target !== e.currentTarget) return;
|
|
387
|
+
let t = fe(e, d.orientation, d.dir);
|
|
388
|
+
if (t !== void 0) {
|
|
389
|
+
if (e.metaKey || e.ctrlKey || e.altKey || e.shiftKey) return;
|
|
390
|
+
e.preventDefault();
|
|
391
|
+
let n = m().filter((e) => e.focusable).map((e) => e.ref.current);
|
|
392
|
+
if (t === "last") n.reverse();
|
|
393
|
+
else if (t === "prev" || t === "next") {
|
|
394
|
+
t === "prev" && n.reverse();
|
|
395
|
+
let r = n.indexOf(e.currentTarget);
|
|
396
|
+
n = d.loop ? me(n, r + 1) : n.slice(r + 1);
|
|
397
|
+
}
|
|
398
|
+
setTimeout(() => pe(n));
|
|
399
|
+
}
|
|
400
|
+
})
|
|
401
|
+
})
|
|
402
|
+
});
|
|
403
|
+
});
|
|
404
|
+
le.displayName = ce;
|
|
405
|
+
var ue = {
|
|
406
|
+
ArrowLeft: "prev",
|
|
407
|
+
ArrowUp: "prev",
|
|
408
|
+
ArrowRight: "next",
|
|
409
|
+
ArrowDown: "next",
|
|
410
|
+
PageUp: "first",
|
|
411
|
+
Home: "first",
|
|
412
|
+
PageDown: "last",
|
|
413
|
+
End: "last"
|
|
414
|
+
};
|
|
415
|
+
function de(e, t) {
|
|
416
|
+
return t === "rtl" ? e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e : e;
|
|
417
|
+
}
|
|
418
|
+
function fe(e, t, n) {
|
|
419
|
+
let r = de(e.key, n);
|
|
420
|
+
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r))) return ue[r];
|
|
421
|
+
}
|
|
422
|
+
function pe(e, t = !1) {
|
|
423
|
+
let n = document.activeElement;
|
|
424
|
+
for (let r of e) if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
425
|
+
}
|
|
426
|
+
function me(e, t) {
|
|
427
|
+
return e.map((n, r) => e[(t + r) % e.length]);
|
|
428
|
+
}
|
|
429
|
+
var he = R, ge = le;
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region ../../node_modules/@huin-core/react-presence/dist/index.mjs
|
|
432
|
+
function _e(t, n) {
|
|
433
|
+
return e.useReducer((e, t) => n[e][t] ?? e, t);
|
|
434
|
+
}
|
|
435
|
+
var ve = (t) => {
|
|
436
|
+
let { present: n, children: r } = t, i = ye(n), a = typeof r == "function" ? r({ present: i.isPresent }) : e.Children.only(r), o = g(i.ref, xe(a));
|
|
437
|
+
return typeof r == "function" || i.isPresent ? e.cloneElement(a, { ref: o }) : null;
|
|
438
|
+
};
|
|
439
|
+
ve.displayName = "Presence";
|
|
440
|
+
function ye(t) {
|
|
441
|
+
let [n, r] = e.useState(), i = e.useRef({}), a = e.useRef(t), o = e.useRef("none"), [s, l] = _e(t ? "mounted" : "unmounted", {
|
|
442
|
+
mounted: {
|
|
443
|
+
UNMOUNT: "unmounted",
|
|
444
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
445
|
+
},
|
|
446
|
+
unmountSuspended: {
|
|
447
|
+
MOUNT: "mounted",
|
|
448
|
+
ANIMATION_END: "unmounted"
|
|
449
|
+
},
|
|
450
|
+
unmounted: { MOUNT: "mounted" }
|
|
451
|
+
});
|
|
452
|
+
return e.useEffect(() => {
|
|
453
|
+
let e = be(i.current);
|
|
454
|
+
o.current = s === "mounted" ? e : "none";
|
|
455
|
+
}, [s]), w(() => {
|
|
456
|
+
let e = i.current, n = a.current;
|
|
457
|
+
if (n !== t) {
|
|
458
|
+
let r = o.current, i = be(e);
|
|
459
|
+
t ? l("MOUNT") : i === "none" || e?.display === "none" ? l("UNMOUNT") : l(n && r !== i ? "ANIMATION_OUT" : "UNMOUNT"), a.current = t;
|
|
460
|
+
}
|
|
461
|
+
}, [t, l]), w(() => {
|
|
462
|
+
if (n) {
|
|
463
|
+
let e = (e) => {
|
|
464
|
+
let t = be(i.current).includes(e.animationName);
|
|
465
|
+
e.target === n && t && c.flushSync(() => l("ANIMATION_END"));
|
|
466
|
+
}, t = (e) => {
|
|
467
|
+
e.target === n && (o.current = be(i.current));
|
|
468
|
+
};
|
|
469
|
+
return n.addEventListener("animationstart", t), n.addEventListener("animationcancel", e), n.addEventListener("animationend", e), () => {
|
|
470
|
+
n.removeEventListener("animationstart", t), n.removeEventListener("animationcancel", e), n.removeEventListener("animationend", e);
|
|
471
|
+
};
|
|
472
|
+
} else l("ANIMATION_END");
|
|
473
|
+
}, [n, l]), {
|
|
474
|
+
isPresent: ["mounted", "unmountSuspended"].includes(s),
|
|
475
|
+
ref: e.useCallback((e) => {
|
|
476
|
+
e && (i.current = getComputedStyle(e)), r(e);
|
|
477
|
+
}, [])
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
function be(e) {
|
|
481
|
+
return e?.animationName || "none";
|
|
482
|
+
}
|
|
483
|
+
function xe(e) {
|
|
484
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
485
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
486
|
+
}
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region ../../node_modules/@huin-core/react-tabs/dist/index.mjs
|
|
489
|
+
var Se = "Tabs", [Ce, we] = d(Se, [L]), [Te, Ee] = Ce(Se), De = e.forwardRef((e, t) => {
|
|
490
|
+
let { __scopeTabs: n, value: r, onValueChange: i, defaultValue: a, orientation: s = "horizontal", dir: c, activationMode: l = "automatic", ...u } = e, d = te(c), [f, p] = A({
|
|
491
|
+
prop: r,
|
|
492
|
+
onChange: i,
|
|
493
|
+
defaultProp: a
|
|
494
|
+
});
|
|
495
|
+
return /* @__PURE__ */ o(Te, {
|
|
496
|
+
scope: n,
|
|
497
|
+
baseId: D(),
|
|
498
|
+
value: f,
|
|
499
|
+
onValueChange: p,
|
|
500
|
+
orientation: s,
|
|
501
|
+
dir: d,
|
|
502
|
+
activationMode: l,
|
|
503
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
504
|
+
dir: d,
|
|
505
|
+
"data-orientation": s,
|
|
506
|
+
...u,
|
|
507
|
+
ref: t
|
|
508
|
+
})
|
|
509
|
+
});
|
|
510
|
+
});
|
|
511
|
+
De.displayName = Se;
|
|
512
|
+
var Oe = "TabsList", ke = L(), Ae = t.forwardRef((e, t) => {
|
|
513
|
+
let { __scopeTabs: n, loop: r = !0, ...i } = e, a = Ee(Oe, n);
|
|
514
|
+
return /* @__PURE__ */ o(he, {
|
|
515
|
+
asChild: !0,
|
|
516
|
+
...ke(n),
|
|
517
|
+
orientation: a.orientation,
|
|
518
|
+
dir: a.dir,
|
|
519
|
+
loop: r,
|
|
520
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
521
|
+
role: "tablist",
|
|
522
|
+
"aria-orientation": a.orientation,
|
|
523
|
+
...i,
|
|
524
|
+
ref: t
|
|
525
|
+
})
|
|
526
|
+
});
|
|
527
|
+
});
|
|
528
|
+
Ae.displayName = Oe;
|
|
529
|
+
var je = "TabsContent", Me = t.forwardRef((e, n) => {
|
|
530
|
+
let { __scopeTabs: r, value: i, forceMount: a, children: s, ...c } = e, l = Ee(je, r), u = Ne(l.baseId, i), d = Pe(l.baseId, i), f = i === l.value, p = t.useRef(f);
|
|
531
|
+
return t.useEffect(() => {
|
|
532
|
+
let e = requestAnimationFrame(() => p.current = !1);
|
|
533
|
+
return () => cancelAnimationFrame(e);
|
|
534
|
+
}, []), /* @__PURE__ */ o(ve, {
|
|
535
|
+
present: a || f,
|
|
536
|
+
children: ({ present: t }) => /* @__PURE__ */ o(O.div, {
|
|
537
|
+
"data-state": f ? "active" : "inactive",
|
|
538
|
+
"data-orientation": l.orientation,
|
|
539
|
+
role: "tabpanel",
|
|
540
|
+
"aria-labelledby": u,
|
|
541
|
+
hidden: !t,
|
|
542
|
+
id: d,
|
|
543
|
+
tabIndex: 0,
|
|
544
|
+
...c,
|
|
545
|
+
ref: n,
|
|
546
|
+
style: {
|
|
547
|
+
...e.style,
|
|
548
|
+
animationDuration: p.current ? "0s" : void 0
|
|
549
|
+
},
|
|
550
|
+
children: t && s
|
|
551
|
+
})
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
Me.displayName = je;
|
|
555
|
+
function Ne(e, t) {
|
|
556
|
+
return `${e}-trigger-${t}`;
|
|
557
|
+
}
|
|
558
|
+
function Pe(e, t) {
|
|
559
|
+
return `${e}-content-${t}`;
|
|
560
|
+
}
|
|
561
|
+
var Fe = "TabsTrigger", Ie = t.forwardRef((e, t) => {
|
|
562
|
+
let { __scopeTabs: n, value: r, disabled: i = !1, ...a } = e, s = Ee(Fe, n), c = ke(n), l = Ne(s.baseId, r), u = Pe(s.baseId, r), d = r === s.value;
|
|
563
|
+
return /* @__PURE__ */ o(ge, {
|
|
564
|
+
asChild: !0,
|
|
565
|
+
...c,
|
|
566
|
+
focusable: !i,
|
|
567
|
+
active: d,
|
|
568
|
+
children: /* @__PURE__ */ o(O.button, {
|
|
569
|
+
type: "button",
|
|
570
|
+
role: "tab",
|
|
571
|
+
"aria-selected": d,
|
|
572
|
+
"aria-controls": u,
|
|
573
|
+
"data-state": d ? "active" : "inactive",
|
|
574
|
+
"data-disabled": i ? "" : void 0,
|
|
575
|
+
disabled: i,
|
|
576
|
+
id: l,
|
|
577
|
+
...a,
|
|
578
|
+
ref: t,
|
|
579
|
+
onMouseDown: p(e.onMouseDown, (e) => {
|
|
580
|
+
!i && e.button === 0 && e.ctrlKey === !1 ? s.onValueChange(r) : e.preventDefault();
|
|
581
|
+
}),
|
|
582
|
+
onKeyDown: p(e.onKeyDown, (e) => {
|
|
583
|
+
[" ", "Enter"].includes(e.key) && s.onValueChange(r);
|
|
584
|
+
}),
|
|
585
|
+
onFocus: p(e.onFocus, () => {
|
|
586
|
+
let e = s.activationMode !== "manual";
|
|
587
|
+
!d && !i && e && s.onValueChange(r);
|
|
588
|
+
})
|
|
589
|
+
})
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
Ie.displayName = Fe;
|
|
593
|
+
//#endregion
|
|
594
|
+
//#region ../../node_modules/clsx/dist/clsx.mjs
|
|
595
|
+
function Le(e) {
|
|
596
|
+
var t, n, r = "";
|
|
597
|
+
if (typeof e == "string" || typeof e == "number") r += e;
|
|
598
|
+
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
599
|
+
var i = e.length;
|
|
600
|
+
for (t = 0; t < i; t++) e[t] && (n = Le(e[t])) && (r && (r += " "), r += n);
|
|
601
|
+
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
602
|
+
return r;
|
|
603
|
+
}
|
|
604
|
+
function Re() {
|
|
605
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Le(e)) && (r && (r += " "), r += t);
|
|
606
|
+
return r;
|
|
607
|
+
}
|
|
608
|
+
//#endregion
|
|
609
|
+
//#region ../../node_modules/tailwind-merge/dist/bundle-mjs.mjs
|
|
610
|
+
var ze = (e, t) => {
|
|
611
|
+
let n = Array(e.length + t.length);
|
|
612
|
+
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
613
|
+
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
614
|
+
return n;
|
|
615
|
+
}, Be = (e, t) => ({
|
|
616
|
+
classGroupId: e,
|
|
617
|
+
validator: t
|
|
618
|
+
}), Ve = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
619
|
+
nextPart: e,
|
|
620
|
+
validators: t,
|
|
621
|
+
classGroupId: n
|
|
622
|
+
}), He = "-", Ue = [], We = "arbitrary..", Ge = (e) => {
|
|
623
|
+
let t = Je(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
624
|
+
return {
|
|
625
|
+
getClassGroupId: (e) => {
|
|
626
|
+
if (e.startsWith("[") && e.endsWith("]")) return qe(e);
|
|
627
|
+
let n = e.split(He);
|
|
628
|
+
return Ke(n, +(n[0] === "" && n.length > 1), t);
|
|
629
|
+
},
|
|
630
|
+
getConflictingClassGroupIds: (e, t) => {
|
|
631
|
+
if (t) {
|
|
632
|
+
let t = r[e], i = n[e];
|
|
633
|
+
return t ? i ? ze(i, t) : t : i || Ue;
|
|
634
|
+
}
|
|
635
|
+
return n[e] || Ue;
|
|
636
|
+
}
|
|
637
|
+
};
|
|
638
|
+
}, Ke = (e, t, n) => {
|
|
639
|
+
if (e.length - t === 0) return n.classGroupId;
|
|
640
|
+
let r = e[t], i = n.nextPart.get(r);
|
|
641
|
+
if (i) {
|
|
642
|
+
let n = Ke(e, t + 1, i);
|
|
643
|
+
if (n) return n;
|
|
644
|
+
}
|
|
645
|
+
let a = n.validators;
|
|
646
|
+
if (a === null) return;
|
|
647
|
+
let o = t === 0 ? e.join(He) : e.slice(t).join(He), s = a.length;
|
|
648
|
+
for (let e = 0; e < s; e++) {
|
|
649
|
+
let t = a[e];
|
|
650
|
+
if (t.validator(o)) return t.classGroupId;
|
|
651
|
+
}
|
|
652
|
+
}, qe = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
653
|
+
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
654
|
+
return r ? We + r : void 0;
|
|
655
|
+
})(), Je = (e) => {
|
|
656
|
+
let { theme: t, classGroups: n } = e;
|
|
657
|
+
return Ye(n, t);
|
|
658
|
+
}, Ye = (e, t) => {
|
|
659
|
+
let n = Ve();
|
|
660
|
+
for (let r in e) {
|
|
661
|
+
let i = e[r];
|
|
662
|
+
Xe(i, n, r, t);
|
|
663
|
+
}
|
|
664
|
+
return n;
|
|
665
|
+
}, Xe = (e, t, n, r) => {
|
|
666
|
+
let i = e.length;
|
|
667
|
+
for (let a = 0; a < i; a++) {
|
|
668
|
+
let i = e[a];
|
|
669
|
+
Ze(i, t, n, r);
|
|
670
|
+
}
|
|
671
|
+
}, Ze = (e, t, n, r) => {
|
|
672
|
+
if (typeof e == "string") {
|
|
673
|
+
Qe(e, t, n);
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
if (typeof e == "function") {
|
|
677
|
+
$e(e, t, n, r);
|
|
678
|
+
return;
|
|
679
|
+
}
|
|
680
|
+
et(e, t, n, r);
|
|
681
|
+
}, Qe = (e, t, n) => {
|
|
682
|
+
let r = e === "" ? t : tt(t, e);
|
|
683
|
+
r.classGroupId = n;
|
|
684
|
+
}, $e = (e, t, n, r) => {
|
|
685
|
+
if (nt(e)) {
|
|
686
|
+
Xe(e(r), t, n, r);
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
t.validators === null && (t.validators = []), t.validators.push(Be(n, e));
|
|
690
|
+
}, et = (e, t, n, r) => {
|
|
691
|
+
let i = Object.entries(e), a = i.length;
|
|
692
|
+
for (let e = 0; e < a; e++) {
|
|
693
|
+
let [a, o] = i[e];
|
|
694
|
+
Xe(o, tt(t, a), n, r);
|
|
695
|
+
}
|
|
696
|
+
}, tt = (e, t) => {
|
|
697
|
+
let n = e, r = t.split(He), i = r.length;
|
|
698
|
+
for (let e = 0; e < i; e++) {
|
|
699
|
+
let t = r[e], i = n.nextPart.get(t);
|
|
700
|
+
i || (i = Ve(), n.nextPart.set(t, i)), n = i;
|
|
701
|
+
}
|
|
702
|
+
return n;
|
|
703
|
+
}, nt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, rt = (e) => {
|
|
704
|
+
if (e < 1) return {
|
|
705
|
+
get: () => void 0,
|
|
706
|
+
set: () => {}
|
|
707
|
+
};
|
|
708
|
+
let t = 0, n = Object.create(null), r = Object.create(null), i = (i, a) => {
|
|
709
|
+
n[i] = a, t++, t > e && (t = 0, r = n, n = Object.create(null));
|
|
710
|
+
};
|
|
711
|
+
return {
|
|
712
|
+
get(e) {
|
|
713
|
+
let t = n[e];
|
|
714
|
+
if (t !== void 0) return t;
|
|
715
|
+
if ((t = r[e]) !== void 0) return i(e, t), t;
|
|
716
|
+
},
|
|
717
|
+
set(e, t) {
|
|
718
|
+
e in n ? n[e] = t : i(e, t);
|
|
719
|
+
}
|
|
720
|
+
};
|
|
721
|
+
}, it = "!", at = ":", ot = [], st = (e, t, n, r, i) => ({
|
|
722
|
+
modifiers: e,
|
|
723
|
+
hasImportantModifier: t,
|
|
724
|
+
baseClassName: n,
|
|
725
|
+
maybePostfixModifierPosition: r,
|
|
726
|
+
isExternal: i
|
|
727
|
+
}), ct = (e) => {
|
|
728
|
+
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
729
|
+
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
730
|
+
for (let s = 0; s < o; s++) {
|
|
731
|
+
let o = e[s];
|
|
732
|
+
if (n === 0 && r === 0) {
|
|
733
|
+
if (o === at) {
|
|
734
|
+
t.push(e.slice(i, s)), i = s + 1;
|
|
735
|
+
continue;
|
|
736
|
+
}
|
|
737
|
+
if (o === "/") {
|
|
738
|
+
a = s;
|
|
739
|
+
continue;
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
743
|
+
}
|
|
744
|
+
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
745
|
+
s.endsWith(it) ? (c = s.slice(0, -1), l = !0) : s.startsWith(it) && (c = s.slice(1), l = !0);
|
|
746
|
+
let u = a && a > i ? a - i : void 0;
|
|
747
|
+
return st(t, l, c, u);
|
|
748
|
+
};
|
|
749
|
+
if (t) {
|
|
750
|
+
let e = t + at, n = r;
|
|
751
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : st(ot, !1, t, void 0, !0);
|
|
752
|
+
}
|
|
753
|
+
if (n) {
|
|
754
|
+
let e = r;
|
|
755
|
+
r = (t) => n({
|
|
756
|
+
className: t,
|
|
757
|
+
parseClassName: e
|
|
758
|
+
});
|
|
759
|
+
}
|
|
760
|
+
return r;
|
|
761
|
+
}, lt = (e) => {
|
|
762
|
+
let t = /* @__PURE__ */ new Map();
|
|
763
|
+
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
764
|
+
t.set(e, 1e6 + n);
|
|
765
|
+
}), (e) => {
|
|
766
|
+
let n = [], r = [];
|
|
767
|
+
for (let i = 0; i < e.length; i++) {
|
|
768
|
+
let a = e[i], o = a[0] === "[", s = t.has(a);
|
|
769
|
+
o || s ? (r.length > 0 && (r.sort(), n.push(...r), r = []), n.push(a)) : r.push(a);
|
|
770
|
+
}
|
|
771
|
+
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
772
|
+
};
|
|
773
|
+
}, ut = (e) => ({
|
|
774
|
+
cache: rt(e.cacheSize),
|
|
775
|
+
parseClassName: ct(e),
|
|
776
|
+
sortModifiers: lt(e),
|
|
777
|
+
postfixLookupClassGroupIds: dt(e),
|
|
778
|
+
...Ge(e)
|
|
779
|
+
}), dt = (e) => {
|
|
780
|
+
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
781
|
+
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
782
|
+
return t;
|
|
783
|
+
}, ft = /\s+/, pt = (e, t) => {
|
|
784
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(ft), l = "";
|
|
785
|
+
for (let e = c.length - 1; e >= 0; --e) {
|
|
786
|
+
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
787
|
+
if (u) {
|
|
788
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
789
|
+
continue;
|
|
790
|
+
}
|
|
791
|
+
let h = !!m, g;
|
|
792
|
+
if (h) {
|
|
793
|
+
g = r(p.substring(0, m));
|
|
794
|
+
let e = g && o[g] ? r(p) : void 0;
|
|
795
|
+
e && e !== g && (g = e, h = !1);
|
|
796
|
+
} else g = r(p);
|
|
797
|
+
if (!g) {
|
|
798
|
+
if (!h) {
|
|
799
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
800
|
+
continue;
|
|
801
|
+
}
|
|
802
|
+
if (g = r(p), !g) {
|
|
803
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
804
|
+
continue;
|
|
805
|
+
}
|
|
806
|
+
h = !1;
|
|
807
|
+
}
|
|
808
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + it : _, y = v + g;
|
|
809
|
+
if (s.indexOf(y) > -1) continue;
|
|
810
|
+
s.push(y);
|
|
811
|
+
let b = i(g, h);
|
|
812
|
+
for (let e = 0; e < b.length; ++e) {
|
|
813
|
+
let t = b[e];
|
|
814
|
+
s.push(v + t);
|
|
815
|
+
}
|
|
816
|
+
l = t + (l.length > 0 ? " " + l : l);
|
|
817
|
+
}
|
|
818
|
+
return l;
|
|
819
|
+
}, mt = (...e) => {
|
|
820
|
+
let t = 0, n, r, i = "";
|
|
821
|
+
for (; t < e.length;) (n = e[t++]) && (r = ht(n)) && (i && (i += " "), i += r);
|
|
822
|
+
return i;
|
|
823
|
+
}, ht = (e) => {
|
|
824
|
+
if (typeof e == "string") return e;
|
|
825
|
+
let t, n = "";
|
|
826
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = ht(e[r])) && (n && (n += " "), n += t);
|
|
827
|
+
return n;
|
|
828
|
+
}, gt = (e, ...t) => {
|
|
829
|
+
let n, r, i, a, o = (o) => (n = ut(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
830
|
+
let t = r(e);
|
|
831
|
+
if (t) return t;
|
|
832
|
+
let a = pt(e, n);
|
|
833
|
+
return i(e, a), a;
|
|
834
|
+
};
|
|
835
|
+
return a = o, (...e) => a(mt(...e));
|
|
836
|
+
}, _t = [], z = (e) => {
|
|
837
|
+
let t = (t) => t[e] || _t;
|
|
838
|
+
return t.isThemeGetter = !0, t;
|
|
839
|
+
}, vt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, yt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, bt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, xt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, St = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Ct = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, wt = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Tt = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, B = (e) => bt.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), H = (e) => !!e && Number.isInteger(Number(e)), Et = (e) => e.endsWith("%") && V(e.slice(0, -1)), U = (e) => xt.test(e), Dt = () => !0, Ot = (e) => St.test(e) && !Ct.test(e), kt = () => !1, At = (e) => wt.test(e), jt = (e) => Tt.test(e), Mt = (e) => !W(e) && !K(e), Nt = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Pt = (e) => q(e, Xt, kt), W = (e) => vt.test(e), G = (e) => q(e, Zt, Ot), Ft = (e) => q(e, Qt, V), It = (e) => q(e, en, Dt), Lt = (e) => q(e, $t, kt), Rt = (e) => q(e, Jt, kt), zt = (e) => q(e, Yt, jt), Bt = (e) => q(e, tn, At), K = (e) => yt.test(e), Vt = (e) => J(e, Zt), Ht = (e) => J(e, $t), Ut = (e) => J(e, Jt), Wt = (e) => J(e, Xt), Gt = (e) => J(e, Yt), Kt = (e) => J(e, tn, !0), qt = (e) => J(e, en, !0), q = (e, t, n) => {
|
|
840
|
+
let r = vt.exec(e);
|
|
841
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
842
|
+
}, J = (e, t, n = !1) => {
|
|
843
|
+
let r = yt.exec(e);
|
|
844
|
+
return r ? r[1] ? t(r[1]) : n : !1;
|
|
845
|
+
}, Jt = (e) => e === "position" || e === "percentage", Yt = (e) => e === "image" || e === "url", Xt = (e) => e === "length" || e === "size" || e === "bg-size", Zt = (e) => e === "length", Qt = (e) => e === "number", $t = (e) => e === "family-name", en = (e) => e === "number" || e === "weight", tn = (e) => e === "shadow", nn = /*#__PURE__*/ gt(() => {
|
|
846
|
+
let e = z("color"), t = z("font"), n = z("text"), r = z("font-weight"), i = z("tracking"), a = z("leading"), o = z("breakpoint"), s = z("container"), c = z("spacing"), l = z("radius"), u = z("shadow"), d = z("inset-shadow"), f = z("text-shadow"), p = z("drop-shadow"), m = z("blur"), h = z("perspective"), g = z("aspect"), _ = z("ease"), v = z("animate"), y = () => [
|
|
847
|
+
"auto",
|
|
848
|
+
"avoid",
|
|
849
|
+
"all",
|
|
850
|
+
"avoid-page",
|
|
851
|
+
"page",
|
|
852
|
+
"left",
|
|
853
|
+
"right",
|
|
854
|
+
"column"
|
|
855
|
+
], b = () => [
|
|
856
|
+
"center",
|
|
857
|
+
"top",
|
|
858
|
+
"bottom",
|
|
859
|
+
"left",
|
|
860
|
+
"right",
|
|
861
|
+
"top-left",
|
|
862
|
+
"left-top",
|
|
863
|
+
"top-right",
|
|
864
|
+
"right-top",
|
|
865
|
+
"bottom-right",
|
|
866
|
+
"right-bottom",
|
|
867
|
+
"bottom-left",
|
|
868
|
+
"left-bottom"
|
|
869
|
+
], x = () => [
|
|
870
|
+
...b(),
|
|
871
|
+
K,
|
|
872
|
+
W
|
|
873
|
+
], S = () => [
|
|
874
|
+
"auto",
|
|
875
|
+
"hidden",
|
|
876
|
+
"clip",
|
|
877
|
+
"visible",
|
|
878
|
+
"scroll"
|
|
879
|
+
], C = () => [
|
|
880
|
+
"auto",
|
|
881
|
+
"contain",
|
|
882
|
+
"none"
|
|
883
|
+
], w = () => [
|
|
884
|
+
K,
|
|
885
|
+
W,
|
|
886
|
+
c
|
|
887
|
+
], T = () => [
|
|
888
|
+
B,
|
|
889
|
+
"full",
|
|
890
|
+
"auto",
|
|
891
|
+
...w()
|
|
892
|
+
], E = () => [
|
|
893
|
+
H,
|
|
894
|
+
"none",
|
|
895
|
+
"subgrid",
|
|
896
|
+
K,
|
|
897
|
+
W
|
|
898
|
+
], D = () => [
|
|
899
|
+
"auto",
|
|
900
|
+
{ span: [
|
|
901
|
+
"full",
|
|
902
|
+
H,
|
|
903
|
+
K,
|
|
904
|
+
W
|
|
905
|
+
] },
|
|
906
|
+
H,
|
|
907
|
+
K,
|
|
908
|
+
W
|
|
909
|
+
], O = () => [
|
|
910
|
+
H,
|
|
911
|
+
"auto",
|
|
912
|
+
K,
|
|
913
|
+
W
|
|
914
|
+
], ee = () => [
|
|
915
|
+
"auto",
|
|
916
|
+
"min",
|
|
917
|
+
"max",
|
|
918
|
+
"fr",
|
|
919
|
+
K,
|
|
920
|
+
W
|
|
921
|
+
], k = () => [
|
|
922
|
+
"start",
|
|
923
|
+
"end",
|
|
924
|
+
"center",
|
|
925
|
+
"between",
|
|
926
|
+
"around",
|
|
927
|
+
"evenly",
|
|
928
|
+
"stretch",
|
|
929
|
+
"baseline",
|
|
930
|
+
"center-safe",
|
|
931
|
+
"end-safe"
|
|
932
|
+
], A = () => [
|
|
933
|
+
"start",
|
|
934
|
+
"end",
|
|
935
|
+
"center",
|
|
936
|
+
"stretch",
|
|
937
|
+
"center-safe",
|
|
938
|
+
"end-safe"
|
|
939
|
+
], j = () => ["auto", ...w()], M = () => [
|
|
940
|
+
B,
|
|
941
|
+
"auto",
|
|
942
|
+
"full",
|
|
943
|
+
"dvw",
|
|
944
|
+
"dvh",
|
|
945
|
+
"lvw",
|
|
946
|
+
"lvh",
|
|
947
|
+
"svw",
|
|
948
|
+
"svh",
|
|
949
|
+
"min",
|
|
950
|
+
"max",
|
|
951
|
+
"fit",
|
|
952
|
+
...w()
|
|
953
|
+
], te = () => [
|
|
954
|
+
B,
|
|
955
|
+
"screen",
|
|
956
|
+
"full",
|
|
957
|
+
"dvw",
|
|
958
|
+
"lvw",
|
|
959
|
+
"svw",
|
|
960
|
+
"min",
|
|
961
|
+
"max",
|
|
962
|
+
"fit",
|
|
963
|
+
...w()
|
|
964
|
+
], N = () => [
|
|
965
|
+
B,
|
|
966
|
+
"screen",
|
|
967
|
+
"full",
|
|
968
|
+
"lh",
|
|
969
|
+
"dvh",
|
|
970
|
+
"lvh",
|
|
971
|
+
"svh",
|
|
972
|
+
"min",
|
|
973
|
+
"max",
|
|
974
|
+
"fit",
|
|
975
|
+
...w()
|
|
976
|
+
], P = () => [
|
|
977
|
+
e,
|
|
978
|
+
K,
|
|
979
|
+
W
|
|
980
|
+
], F = () => [
|
|
981
|
+
...b(),
|
|
982
|
+
Ut,
|
|
983
|
+
Rt,
|
|
984
|
+
{ position: [K, W] }
|
|
985
|
+
], ne = () => ["no-repeat", { repeat: [
|
|
986
|
+
"",
|
|
987
|
+
"x",
|
|
988
|
+
"y",
|
|
989
|
+
"space",
|
|
990
|
+
"round"
|
|
991
|
+
] }], re = () => [
|
|
992
|
+
"auto",
|
|
993
|
+
"cover",
|
|
994
|
+
"contain",
|
|
995
|
+
Wt,
|
|
996
|
+
Pt,
|
|
997
|
+
{ size: [K, W] }
|
|
998
|
+
], ie = () => [
|
|
999
|
+
Et,
|
|
1000
|
+
Vt,
|
|
1001
|
+
G
|
|
1002
|
+
], I = () => [
|
|
1003
|
+
"",
|
|
1004
|
+
"none",
|
|
1005
|
+
"full",
|
|
1006
|
+
l,
|
|
1007
|
+
K,
|
|
1008
|
+
W
|
|
1009
|
+
], L = () => [
|
|
1010
|
+
"",
|
|
1011
|
+
V,
|
|
1012
|
+
Vt,
|
|
1013
|
+
G
|
|
1014
|
+
], ae = () => [
|
|
1015
|
+
"solid",
|
|
1016
|
+
"dashed",
|
|
1017
|
+
"dotted",
|
|
1018
|
+
"double"
|
|
1019
|
+
], oe = () => [
|
|
1020
|
+
"normal",
|
|
1021
|
+
"multiply",
|
|
1022
|
+
"screen",
|
|
1023
|
+
"overlay",
|
|
1024
|
+
"darken",
|
|
1025
|
+
"lighten",
|
|
1026
|
+
"color-dodge",
|
|
1027
|
+
"color-burn",
|
|
1028
|
+
"hard-light",
|
|
1029
|
+
"soft-light",
|
|
1030
|
+
"difference",
|
|
1031
|
+
"exclusion",
|
|
1032
|
+
"hue",
|
|
1033
|
+
"saturation",
|
|
1034
|
+
"color",
|
|
1035
|
+
"luminosity"
|
|
1036
|
+
], R = () => [
|
|
1037
|
+
V,
|
|
1038
|
+
Et,
|
|
1039
|
+
Ut,
|
|
1040
|
+
Rt
|
|
1041
|
+
], se = () => [
|
|
1042
|
+
"",
|
|
1043
|
+
"none",
|
|
1044
|
+
m,
|
|
1045
|
+
K,
|
|
1046
|
+
W
|
|
1047
|
+
], ce = () => [
|
|
1048
|
+
"none",
|
|
1049
|
+
V,
|
|
1050
|
+
K,
|
|
1051
|
+
W
|
|
1052
|
+
], le = () => [
|
|
1053
|
+
"none",
|
|
1054
|
+
V,
|
|
1055
|
+
K,
|
|
1056
|
+
W
|
|
1057
|
+
], ue = () => [
|
|
1058
|
+
V,
|
|
1059
|
+
K,
|
|
1060
|
+
W
|
|
1061
|
+
], de = () => [
|
|
1062
|
+
B,
|
|
1063
|
+
"full",
|
|
1064
|
+
...w()
|
|
1065
|
+
];
|
|
1066
|
+
return {
|
|
1067
|
+
cacheSize: 500,
|
|
1068
|
+
theme: {
|
|
1069
|
+
animate: [
|
|
1070
|
+
"spin",
|
|
1071
|
+
"ping",
|
|
1072
|
+
"pulse",
|
|
1073
|
+
"bounce"
|
|
1074
|
+
],
|
|
1075
|
+
aspect: ["video"],
|
|
1076
|
+
blur: [U],
|
|
1077
|
+
breakpoint: [U],
|
|
1078
|
+
color: [Dt],
|
|
1079
|
+
container: [U],
|
|
1080
|
+
"drop-shadow": [U],
|
|
1081
|
+
ease: [
|
|
1082
|
+
"in",
|
|
1083
|
+
"out",
|
|
1084
|
+
"in-out"
|
|
1085
|
+
],
|
|
1086
|
+
font: [Mt],
|
|
1087
|
+
"font-weight": [
|
|
1088
|
+
"thin",
|
|
1089
|
+
"extralight",
|
|
1090
|
+
"light",
|
|
1091
|
+
"normal",
|
|
1092
|
+
"medium",
|
|
1093
|
+
"semibold",
|
|
1094
|
+
"bold",
|
|
1095
|
+
"extrabold",
|
|
1096
|
+
"black"
|
|
1097
|
+
],
|
|
1098
|
+
"inset-shadow": [U],
|
|
1099
|
+
leading: [
|
|
1100
|
+
"none",
|
|
1101
|
+
"tight",
|
|
1102
|
+
"snug",
|
|
1103
|
+
"normal",
|
|
1104
|
+
"relaxed",
|
|
1105
|
+
"loose"
|
|
1106
|
+
],
|
|
1107
|
+
perspective: [
|
|
1108
|
+
"dramatic",
|
|
1109
|
+
"near",
|
|
1110
|
+
"normal",
|
|
1111
|
+
"midrange",
|
|
1112
|
+
"distant",
|
|
1113
|
+
"none"
|
|
1114
|
+
],
|
|
1115
|
+
radius: [U],
|
|
1116
|
+
shadow: [U],
|
|
1117
|
+
spacing: ["px", V],
|
|
1118
|
+
text: [U],
|
|
1119
|
+
"text-shadow": [U],
|
|
1120
|
+
tracking: [
|
|
1121
|
+
"tighter",
|
|
1122
|
+
"tight",
|
|
1123
|
+
"normal",
|
|
1124
|
+
"wide",
|
|
1125
|
+
"wider",
|
|
1126
|
+
"widest"
|
|
1127
|
+
]
|
|
1128
|
+
},
|
|
1129
|
+
classGroups: {
|
|
1130
|
+
aspect: [{ aspect: [
|
|
1131
|
+
"auto",
|
|
1132
|
+
"square",
|
|
1133
|
+
B,
|
|
1134
|
+
W,
|
|
1135
|
+
K,
|
|
1136
|
+
g
|
|
1137
|
+
] }],
|
|
1138
|
+
container: ["container"],
|
|
1139
|
+
"container-type": [{ "@container": [
|
|
1140
|
+
"",
|
|
1141
|
+
"normal",
|
|
1142
|
+
"size",
|
|
1143
|
+
K,
|
|
1144
|
+
W
|
|
1145
|
+
] }],
|
|
1146
|
+
"container-named": [Nt],
|
|
1147
|
+
columns: [{ columns: [
|
|
1148
|
+
V,
|
|
1149
|
+
W,
|
|
1150
|
+
K,
|
|
1151
|
+
s
|
|
1152
|
+
] }],
|
|
1153
|
+
"break-after": [{ "break-after": y() }],
|
|
1154
|
+
"break-before": [{ "break-before": y() }],
|
|
1155
|
+
"break-inside": [{ "break-inside": [
|
|
1156
|
+
"auto",
|
|
1157
|
+
"avoid",
|
|
1158
|
+
"avoid-page",
|
|
1159
|
+
"avoid-column"
|
|
1160
|
+
] }],
|
|
1161
|
+
"box-decoration": [{ "box-decoration": ["slice", "clone"] }],
|
|
1162
|
+
box: [{ box: ["border", "content"] }],
|
|
1163
|
+
display: [
|
|
1164
|
+
"block",
|
|
1165
|
+
"inline-block",
|
|
1166
|
+
"inline",
|
|
1167
|
+
"flex",
|
|
1168
|
+
"inline-flex",
|
|
1169
|
+
"table",
|
|
1170
|
+
"inline-table",
|
|
1171
|
+
"table-caption",
|
|
1172
|
+
"table-cell",
|
|
1173
|
+
"table-column",
|
|
1174
|
+
"table-column-group",
|
|
1175
|
+
"table-footer-group",
|
|
1176
|
+
"table-header-group",
|
|
1177
|
+
"table-row-group",
|
|
1178
|
+
"table-row",
|
|
1179
|
+
"flow-root",
|
|
1180
|
+
"grid",
|
|
1181
|
+
"inline-grid",
|
|
1182
|
+
"contents",
|
|
1183
|
+
"list-item",
|
|
1184
|
+
"hidden"
|
|
1185
|
+
],
|
|
1186
|
+
sr: ["sr-only", "not-sr-only"],
|
|
1187
|
+
float: [{ float: [
|
|
1188
|
+
"right",
|
|
1189
|
+
"left",
|
|
1190
|
+
"none",
|
|
1191
|
+
"start",
|
|
1192
|
+
"end"
|
|
1193
|
+
] }],
|
|
1194
|
+
clear: [{ clear: [
|
|
1195
|
+
"left",
|
|
1196
|
+
"right",
|
|
1197
|
+
"both",
|
|
1198
|
+
"none",
|
|
1199
|
+
"start",
|
|
1200
|
+
"end"
|
|
1201
|
+
] }],
|
|
1202
|
+
isolation: ["isolate", "isolation-auto"],
|
|
1203
|
+
"object-fit": [{ object: [
|
|
1204
|
+
"contain",
|
|
1205
|
+
"cover",
|
|
1206
|
+
"fill",
|
|
1207
|
+
"none",
|
|
1208
|
+
"scale-down"
|
|
1209
|
+
] }],
|
|
1210
|
+
"object-position": [{ object: x() }],
|
|
1211
|
+
overflow: [{ overflow: S() }],
|
|
1212
|
+
"overflow-x": [{ "overflow-x": S() }],
|
|
1213
|
+
"overflow-y": [{ "overflow-y": S() }],
|
|
1214
|
+
overscroll: [{ overscroll: C() }],
|
|
1215
|
+
"overscroll-x": [{ "overscroll-x": C() }],
|
|
1216
|
+
"overscroll-y": [{ "overscroll-y": C() }],
|
|
1217
|
+
position: [
|
|
1218
|
+
"static",
|
|
1219
|
+
"fixed",
|
|
1220
|
+
"absolute",
|
|
1221
|
+
"relative",
|
|
1222
|
+
"sticky"
|
|
1223
|
+
],
|
|
1224
|
+
inset: [{ inset: T() }],
|
|
1225
|
+
"inset-x": [{ "inset-x": T() }],
|
|
1226
|
+
"inset-y": [{ "inset-y": T() }],
|
|
1227
|
+
start: [{
|
|
1228
|
+
"inset-s": T(),
|
|
1229
|
+
start: T()
|
|
1230
|
+
}],
|
|
1231
|
+
end: [{
|
|
1232
|
+
"inset-e": T(),
|
|
1233
|
+
end: T()
|
|
1234
|
+
}],
|
|
1235
|
+
"inset-bs": [{ "inset-bs": T() }],
|
|
1236
|
+
"inset-be": [{ "inset-be": T() }],
|
|
1237
|
+
top: [{ top: T() }],
|
|
1238
|
+
right: [{ right: T() }],
|
|
1239
|
+
bottom: [{ bottom: T() }],
|
|
1240
|
+
left: [{ left: T() }],
|
|
1241
|
+
visibility: [
|
|
1242
|
+
"visible",
|
|
1243
|
+
"invisible",
|
|
1244
|
+
"collapse"
|
|
1245
|
+
],
|
|
1246
|
+
z: [{ z: [
|
|
1247
|
+
H,
|
|
1248
|
+
"auto",
|
|
1249
|
+
K,
|
|
1250
|
+
W
|
|
1251
|
+
] }],
|
|
1252
|
+
basis: [{ basis: [
|
|
1253
|
+
B,
|
|
1254
|
+
"full",
|
|
1255
|
+
"auto",
|
|
1256
|
+
s,
|
|
1257
|
+
...w()
|
|
1258
|
+
] }],
|
|
1259
|
+
"flex-direction": [{ flex: [
|
|
1260
|
+
"row",
|
|
1261
|
+
"row-reverse",
|
|
1262
|
+
"col",
|
|
1263
|
+
"col-reverse"
|
|
1264
|
+
] }],
|
|
1265
|
+
"flex-wrap": [{ flex: [
|
|
1266
|
+
"nowrap",
|
|
1267
|
+
"wrap",
|
|
1268
|
+
"wrap-reverse"
|
|
1269
|
+
] }],
|
|
1270
|
+
flex: [{ flex: [
|
|
1271
|
+
V,
|
|
1272
|
+
B,
|
|
1273
|
+
"auto",
|
|
1274
|
+
"initial",
|
|
1275
|
+
"none",
|
|
1276
|
+
W
|
|
1277
|
+
] }],
|
|
1278
|
+
grow: [{ grow: [
|
|
1279
|
+
"",
|
|
1280
|
+
V,
|
|
1281
|
+
K,
|
|
1282
|
+
W
|
|
1283
|
+
] }],
|
|
1284
|
+
shrink: [{ shrink: [
|
|
1285
|
+
"",
|
|
1286
|
+
V,
|
|
1287
|
+
K,
|
|
1288
|
+
W
|
|
1289
|
+
] }],
|
|
1290
|
+
order: [{ order: [
|
|
1291
|
+
H,
|
|
1292
|
+
"first",
|
|
1293
|
+
"last",
|
|
1294
|
+
"none",
|
|
1295
|
+
K,
|
|
1296
|
+
W
|
|
1297
|
+
] }],
|
|
1298
|
+
"grid-cols": [{ "grid-cols": E() }],
|
|
1299
|
+
"col-start-end": [{ col: D() }],
|
|
1300
|
+
"col-start": [{ "col-start": O() }],
|
|
1301
|
+
"col-end": [{ "col-end": O() }],
|
|
1302
|
+
"grid-rows": [{ "grid-rows": E() }],
|
|
1303
|
+
"row-start-end": [{ row: D() }],
|
|
1304
|
+
"row-start": [{ "row-start": O() }],
|
|
1305
|
+
"row-end": [{ "row-end": O() }],
|
|
1306
|
+
"grid-flow": [{ "grid-flow": [
|
|
1307
|
+
"row",
|
|
1308
|
+
"col",
|
|
1309
|
+
"dense",
|
|
1310
|
+
"row-dense",
|
|
1311
|
+
"col-dense"
|
|
1312
|
+
] }],
|
|
1313
|
+
"auto-cols": [{ "auto-cols": ee() }],
|
|
1314
|
+
"auto-rows": [{ "auto-rows": ee() }],
|
|
1315
|
+
gap: [{ gap: w() }],
|
|
1316
|
+
"gap-x": [{ "gap-x": w() }],
|
|
1317
|
+
"gap-y": [{ "gap-y": w() }],
|
|
1318
|
+
"justify-content": [{ justify: [...k(), "normal"] }],
|
|
1319
|
+
"justify-items": [{ "justify-items": [...A(), "normal"] }],
|
|
1320
|
+
"justify-self": [{ "justify-self": ["auto", ...A()] }],
|
|
1321
|
+
"align-content": [{ content: ["normal", ...k()] }],
|
|
1322
|
+
"align-items": [{ items: [...A(), { baseline: ["", "last"] }] }],
|
|
1323
|
+
"align-self": [{ self: [
|
|
1324
|
+
"auto",
|
|
1325
|
+
...A(),
|
|
1326
|
+
{ baseline: ["", "last"] }
|
|
1327
|
+
] }],
|
|
1328
|
+
"place-content": [{ "place-content": k() }],
|
|
1329
|
+
"place-items": [{ "place-items": [...A(), "baseline"] }],
|
|
1330
|
+
"place-self": [{ "place-self": ["auto", ...A()] }],
|
|
1331
|
+
p: [{ p: w() }],
|
|
1332
|
+
px: [{ px: w() }],
|
|
1333
|
+
py: [{ py: w() }],
|
|
1334
|
+
ps: [{ ps: w() }],
|
|
1335
|
+
pe: [{ pe: w() }],
|
|
1336
|
+
pbs: [{ pbs: w() }],
|
|
1337
|
+
pbe: [{ pbe: w() }],
|
|
1338
|
+
pt: [{ pt: w() }],
|
|
1339
|
+
pr: [{ pr: w() }],
|
|
1340
|
+
pb: [{ pb: w() }],
|
|
1341
|
+
pl: [{ pl: w() }],
|
|
1342
|
+
m: [{ m: j() }],
|
|
1343
|
+
mx: [{ mx: j() }],
|
|
1344
|
+
my: [{ my: j() }],
|
|
1345
|
+
ms: [{ ms: j() }],
|
|
1346
|
+
me: [{ me: j() }],
|
|
1347
|
+
mbs: [{ mbs: j() }],
|
|
1348
|
+
mbe: [{ mbe: j() }],
|
|
1349
|
+
mt: [{ mt: j() }],
|
|
1350
|
+
mr: [{ mr: j() }],
|
|
1351
|
+
mb: [{ mb: j() }],
|
|
1352
|
+
ml: [{ ml: j() }],
|
|
1353
|
+
"space-x": [{ "space-x": w() }],
|
|
1354
|
+
"space-x-reverse": ["space-x-reverse"],
|
|
1355
|
+
"space-y": [{ "space-y": w() }],
|
|
1356
|
+
"space-y-reverse": ["space-y-reverse"],
|
|
1357
|
+
size: [{ size: M() }],
|
|
1358
|
+
"inline-size": [{ inline: ["auto", ...te()] }],
|
|
1359
|
+
"min-inline-size": [{ "min-inline": ["auto", ...te()] }],
|
|
1360
|
+
"max-inline-size": [{ "max-inline": ["none", ...te()] }],
|
|
1361
|
+
"block-size": [{ block: ["auto", ...N()] }],
|
|
1362
|
+
"min-block-size": [{ "min-block": ["auto", ...N()] }],
|
|
1363
|
+
"max-block-size": [{ "max-block": ["none", ...N()] }],
|
|
1364
|
+
w: [{ w: [
|
|
1365
|
+
s,
|
|
1366
|
+
"screen",
|
|
1367
|
+
...M()
|
|
1368
|
+
] }],
|
|
1369
|
+
"min-w": [{ "min-w": [
|
|
1370
|
+
s,
|
|
1371
|
+
"screen",
|
|
1372
|
+
"none",
|
|
1373
|
+
...M()
|
|
1374
|
+
] }],
|
|
1375
|
+
"max-w": [{ "max-w": [
|
|
1376
|
+
s,
|
|
1377
|
+
"screen",
|
|
1378
|
+
"none",
|
|
1379
|
+
"prose",
|
|
1380
|
+
{ screen: [o] },
|
|
1381
|
+
...M()
|
|
1382
|
+
] }],
|
|
1383
|
+
h: [{ h: [
|
|
1384
|
+
"screen",
|
|
1385
|
+
"lh",
|
|
1386
|
+
...M()
|
|
1387
|
+
] }],
|
|
1388
|
+
"min-h": [{ "min-h": [
|
|
1389
|
+
"screen",
|
|
1390
|
+
"lh",
|
|
1391
|
+
"none",
|
|
1392
|
+
...M()
|
|
1393
|
+
] }],
|
|
1394
|
+
"max-h": [{ "max-h": [
|
|
1395
|
+
"screen",
|
|
1396
|
+
"lh",
|
|
1397
|
+
...M()
|
|
1398
|
+
] }],
|
|
1399
|
+
"font-size": [{ text: [
|
|
1400
|
+
"base",
|
|
1401
|
+
n,
|
|
1402
|
+
Vt,
|
|
1403
|
+
G
|
|
1404
|
+
] }],
|
|
1405
|
+
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1406
|
+
"font-style": ["italic", "not-italic"],
|
|
1407
|
+
"font-weight": [{ font: [
|
|
1408
|
+
r,
|
|
1409
|
+
qt,
|
|
1410
|
+
It
|
|
1411
|
+
] }],
|
|
1412
|
+
"font-stretch": [{ "font-stretch": [
|
|
1413
|
+
"ultra-condensed",
|
|
1414
|
+
"extra-condensed",
|
|
1415
|
+
"condensed",
|
|
1416
|
+
"semi-condensed",
|
|
1417
|
+
"normal",
|
|
1418
|
+
"semi-expanded",
|
|
1419
|
+
"expanded",
|
|
1420
|
+
"extra-expanded",
|
|
1421
|
+
"ultra-expanded",
|
|
1422
|
+
Et,
|
|
1423
|
+
W
|
|
1424
|
+
] }],
|
|
1425
|
+
"font-family": [{ font: [
|
|
1426
|
+
Ht,
|
|
1427
|
+
Lt,
|
|
1428
|
+
t
|
|
1429
|
+
] }],
|
|
1430
|
+
"font-features": [{ "font-features": [W] }],
|
|
1431
|
+
"fvn-normal": ["normal-nums"],
|
|
1432
|
+
"fvn-ordinal": ["ordinal"],
|
|
1433
|
+
"fvn-slashed-zero": ["slashed-zero"],
|
|
1434
|
+
"fvn-figure": ["lining-nums", "oldstyle-nums"],
|
|
1435
|
+
"fvn-spacing": ["proportional-nums", "tabular-nums"],
|
|
1436
|
+
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1437
|
+
tracking: [{ tracking: [
|
|
1438
|
+
i,
|
|
1439
|
+
K,
|
|
1440
|
+
W
|
|
1441
|
+
] }],
|
|
1442
|
+
"line-clamp": [{ "line-clamp": [
|
|
1443
|
+
V,
|
|
1444
|
+
"none",
|
|
1445
|
+
K,
|
|
1446
|
+
Ft
|
|
1447
|
+
] }],
|
|
1448
|
+
leading: [{ leading: [a, ...w()] }],
|
|
1449
|
+
"list-image": [{ "list-image": [
|
|
1450
|
+
"none",
|
|
1451
|
+
K,
|
|
1452
|
+
W
|
|
1453
|
+
] }],
|
|
1454
|
+
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1455
|
+
"list-style-type": [{ list: [
|
|
1456
|
+
"disc",
|
|
1457
|
+
"decimal",
|
|
1458
|
+
"none",
|
|
1459
|
+
K,
|
|
1460
|
+
W
|
|
1461
|
+
] }],
|
|
1462
|
+
"text-alignment": [{ text: [
|
|
1463
|
+
"left",
|
|
1464
|
+
"center",
|
|
1465
|
+
"right",
|
|
1466
|
+
"justify",
|
|
1467
|
+
"start",
|
|
1468
|
+
"end"
|
|
1469
|
+
] }],
|
|
1470
|
+
"placeholder-color": [{ placeholder: P() }],
|
|
1471
|
+
"text-color": [{ text: P() }],
|
|
1472
|
+
"text-decoration": [
|
|
1473
|
+
"underline",
|
|
1474
|
+
"overline",
|
|
1475
|
+
"line-through",
|
|
1476
|
+
"no-underline"
|
|
1477
|
+
],
|
|
1478
|
+
"text-decoration-style": [{ decoration: [...ae(), "wavy"] }],
|
|
1479
|
+
"text-decoration-thickness": [{ decoration: [
|
|
1480
|
+
V,
|
|
1481
|
+
"from-font",
|
|
1482
|
+
"auto",
|
|
1483
|
+
K,
|
|
1484
|
+
G
|
|
1485
|
+
] }],
|
|
1486
|
+
"text-decoration-color": [{ decoration: P() }],
|
|
1487
|
+
"underline-offset": [{ "underline-offset": [
|
|
1488
|
+
V,
|
|
1489
|
+
"auto",
|
|
1490
|
+
K,
|
|
1491
|
+
W
|
|
1492
|
+
] }],
|
|
1493
|
+
"text-transform": [
|
|
1494
|
+
"uppercase",
|
|
1495
|
+
"lowercase",
|
|
1496
|
+
"capitalize",
|
|
1497
|
+
"normal-case"
|
|
1498
|
+
],
|
|
1499
|
+
"text-overflow": [
|
|
1500
|
+
"truncate",
|
|
1501
|
+
"text-ellipsis",
|
|
1502
|
+
"text-clip"
|
|
1503
|
+
],
|
|
1504
|
+
"text-wrap": [{ text: [
|
|
1505
|
+
"wrap",
|
|
1506
|
+
"nowrap",
|
|
1507
|
+
"balance",
|
|
1508
|
+
"pretty"
|
|
1509
|
+
] }],
|
|
1510
|
+
indent: [{ indent: w() }],
|
|
1511
|
+
"tab-size": [{ tab: [
|
|
1512
|
+
H,
|
|
1513
|
+
K,
|
|
1514
|
+
W
|
|
1515
|
+
] }],
|
|
1516
|
+
"vertical-align": [{ align: [
|
|
1517
|
+
"baseline",
|
|
1518
|
+
"top",
|
|
1519
|
+
"middle",
|
|
1520
|
+
"bottom",
|
|
1521
|
+
"text-top",
|
|
1522
|
+
"text-bottom",
|
|
1523
|
+
"sub",
|
|
1524
|
+
"super",
|
|
1525
|
+
K,
|
|
1526
|
+
W
|
|
1527
|
+
] }],
|
|
1528
|
+
whitespace: [{ whitespace: [
|
|
1529
|
+
"normal",
|
|
1530
|
+
"nowrap",
|
|
1531
|
+
"pre",
|
|
1532
|
+
"pre-line",
|
|
1533
|
+
"pre-wrap",
|
|
1534
|
+
"break-spaces"
|
|
1535
|
+
] }],
|
|
1536
|
+
break: [{ break: [
|
|
1537
|
+
"normal",
|
|
1538
|
+
"words",
|
|
1539
|
+
"all",
|
|
1540
|
+
"keep"
|
|
1541
|
+
] }],
|
|
1542
|
+
wrap: [{ wrap: [
|
|
1543
|
+
"break-word",
|
|
1544
|
+
"anywhere",
|
|
1545
|
+
"normal"
|
|
1546
|
+
] }],
|
|
1547
|
+
hyphens: [{ hyphens: [
|
|
1548
|
+
"none",
|
|
1549
|
+
"manual",
|
|
1550
|
+
"auto"
|
|
1551
|
+
] }],
|
|
1552
|
+
content: [{ content: [
|
|
1553
|
+
"none",
|
|
1554
|
+
K,
|
|
1555
|
+
W
|
|
1556
|
+
] }],
|
|
1557
|
+
"bg-attachment": [{ bg: [
|
|
1558
|
+
"fixed",
|
|
1559
|
+
"local",
|
|
1560
|
+
"scroll"
|
|
1561
|
+
] }],
|
|
1562
|
+
"bg-clip": [{ "bg-clip": [
|
|
1563
|
+
"border",
|
|
1564
|
+
"padding",
|
|
1565
|
+
"content",
|
|
1566
|
+
"text"
|
|
1567
|
+
] }],
|
|
1568
|
+
"bg-origin": [{ "bg-origin": [
|
|
1569
|
+
"border",
|
|
1570
|
+
"padding",
|
|
1571
|
+
"content"
|
|
1572
|
+
] }],
|
|
1573
|
+
"bg-position": [{ bg: F() }],
|
|
1574
|
+
"bg-repeat": [{ bg: ne() }],
|
|
1575
|
+
"bg-size": [{ bg: re() }],
|
|
1576
|
+
"bg-image": [{ bg: [
|
|
1577
|
+
"none",
|
|
1578
|
+
{
|
|
1579
|
+
linear: [
|
|
1580
|
+
{ to: [
|
|
1581
|
+
"t",
|
|
1582
|
+
"tr",
|
|
1583
|
+
"r",
|
|
1584
|
+
"br",
|
|
1585
|
+
"b",
|
|
1586
|
+
"bl",
|
|
1587
|
+
"l",
|
|
1588
|
+
"tl"
|
|
1589
|
+
] },
|
|
1590
|
+
H,
|
|
1591
|
+
K,
|
|
1592
|
+
W
|
|
1593
|
+
],
|
|
1594
|
+
radial: [
|
|
1595
|
+
"",
|
|
1596
|
+
K,
|
|
1597
|
+
W
|
|
1598
|
+
],
|
|
1599
|
+
conic: [
|
|
1600
|
+
H,
|
|
1601
|
+
K,
|
|
1602
|
+
W
|
|
1603
|
+
]
|
|
1604
|
+
},
|
|
1605
|
+
Gt,
|
|
1606
|
+
zt
|
|
1607
|
+
] }],
|
|
1608
|
+
"bg-color": [{ bg: P() }],
|
|
1609
|
+
"gradient-from-pos": [{ from: ie() }],
|
|
1610
|
+
"gradient-via-pos": [{ via: ie() }],
|
|
1611
|
+
"gradient-to-pos": [{ to: ie() }],
|
|
1612
|
+
"gradient-from": [{ from: P() }],
|
|
1613
|
+
"gradient-via": [{ via: P() }],
|
|
1614
|
+
"gradient-to": [{ to: P() }],
|
|
1615
|
+
rounded: [{ rounded: I() }],
|
|
1616
|
+
"rounded-s": [{ "rounded-s": I() }],
|
|
1617
|
+
"rounded-e": [{ "rounded-e": I() }],
|
|
1618
|
+
"rounded-t": [{ "rounded-t": I() }],
|
|
1619
|
+
"rounded-r": [{ "rounded-r": I() }],
|
|
1620
|
+
"rounded-b": [{ "rounded-b": I() }],
|
|
1621
|
+
"rounded-l": [{ "rounded-l": I() }],
|
|
1622
|
+
"rounded-ss": [{ "rounded-ss": I() }],
|
|
1623
|
+
"rounded-se": [{ "rounded-se": I() }],
|
|
1624
|
+
"rounded-ee": [{ "rounded-ee": I() }],
|
|
1625
|
+
"rounded-es": [{ "rounded-es": I() }],
|
|
1626
|
+
"rounded-tl": [{ "rounded-tl": I() }],
|
|
1627
|
+
"rounded-tr": [{ "rounded-tr": I() }],
|
|
1628
|
+
"rounded-br": [{ "rounded-br": I() }],
|
|
1629
|
+
"rounded-bl": [{ "rounded-bl": I() }],
|
|
1630
|
+
"border-w": [{ border: L() }],
|
|
1631
|
+
"border-w-x": [{ "border-x": L() }],
|
|
1632
|
+
"border-w-y": [{ "border-y": L() }],
|
|
1633
|
+
"border-w-s": [{ "border-s": L() }],
|
|
1634
|
+
"border-w-e": [{ "border-e": L() }],
|
|
1635
|
+
"border-w-bs": [{ "border-bs": L() }],
|
|
1636
|
+
"border-w-be": [{ "border-be": L() }],
|
|
1637
|
+
"border-w-t": [{ "border-t": L() }],
|
|
1638
|
+
"border-w-r": [{ "border-r": L() }],
|
|
1639
|
+
"border-w-b": [{ "border-b": L() }],
|
|
1640
|
+
"border-w-l": [{ "border-l": L() }],
|
|
1641
|
+
"divide-x": [{ "divide-x": L() }],
|
|
1642
|
+
"divide-x-reverse": ["divide-x-reverse"],
|
|
1643
|
+
"divide-y": [{ "divide-y": L() }],
|
|
1644
|
+
"divide-y-reverse": ["divide-y-reverse"],
|
|
1645
|
+
"border-style": [{ border: [
|
|
1646
|
+
...ae(),
|
|
1647
|
+
"hidden",
|
|
1648
|
+
"none"
|
|
1649
|
+
] }],
|
|
1650
|
+
"divide-style": [{ divide: [
|
|
1651
|
+
...ae(),
|
|
1652
|
+
"hidden",
|
|
1653
|
+
"none"
|
|
1654
|
+
] }],
|
|
1655
|
+
"border-color": [{ border: P() }],
|
|
1656
|
+
"border-color-x": [{ "border-x": P() }],
|
|
1657
|
+
"border-color-y": [{ "border-y": P() }],
|
|
1658
|
+
"border-color-s": [{ "border-s": P() }],
|
|
1659
|
+
"border-color-e": [{ "border-e": P() }],
|
|
1660
|
+
"border-color-bs": [{ "border-bs": P() }],
|
|
1661
|
+
"border-color-be": [{ "border-be": P() }],
|
|
1662
|
+
"border-color-t": [{ "border-t": P() }],
|
|
1663
|
+
"border-color-r": [{ "border-r": P() }],
|
|
1664
|
+
"border-color-b": [{ "border-b": P() }],
|
|
1665
|
+
"border-color-l": [{ "border-l": P() }],
|
|
1666
|
+
"divide-color": [{ divide: P() }],
|
|
1667
|
+
"outline-style": [{ outline: [
|
|
1668
|
+
...ae(),
|
|
1669
|
+
"none",
|
|
1670
|
+
"hidden"
|
|
1671
|
+
] }],
|
|
1672
|
+
"outline-offset": [{ "outline-offset": [
|
|
1673
|
+
V,
|
|
1674
|
+
K,
|
|
1675
|
+
W
|
|
1676
|
+
] }],
|
|
1677
|
+
"outline-w": [{ outline: [
|
|
1678
|
+
"",
|
|
1679
|
+
V,
|
|
1680
|
+
Vt,
|
|
1681
|
+
G
|
|
1682
|
+
] }],
|
|
1683
|
+
"outline-color": [{ outline: P() }],
|
|
1684
|
+
shadow: [{ shadow: [
|
|
1685
|
+
"",
|
|
1686
|
+
"none",
|
|
1687
|
+
u,
|
|
1688
|
+
Kt,
|
|
1689
|
+
Bt
|
|
1690
|
+
] }],
|
|
1691
|
+
"shadow-color": [{ shadow: P() }],
|
|
1692
|
+
"inset-shadow": [{ "inset-shadow": [
|
|
1693
|
+
"none",
|
|
1694
|
+
d,
|
|
1695
|
+
Kt,
|
|
1696
|
+
Bt
|
|
1697
|
+
] }],
|
|
1698
|
+
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1699
|
+
"ring-w": [{ ring: L() }],
|
|
1700
|
+
"ring-w-inset": ["ring-inset"],
|
|
1701
|
+
"ring-color": [{ ring: P() }],
|
|
1702
|
+
"ring-offset-w": [{ "ring-offset": [V, G] }],
|
|
1703
|
+
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1704
|
+
"inset-ring-w": [{ "inset-ring": L() }],
|
|
1705
|
+
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1706
|
+
"text-shadow": [{ "text-shadow": [
|
|
1707
|
+
"none",
|
|
1708
|
+
f,
|
|
1709
|
+
Kt,
|
|
1710
|
+
Bt
|
|
1711
|
+
] }],
|
|
1712
|
+
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1713
|
+
opacity: [{ opacity: [
|
|
1714
|
+
V,
|
|
1715
|
+
K,
|
|
1716
|
+
W
|
|
1717
|
+
] }],
|
|
1718
|
+
"mix-blend": [{ "mix-blend": [
|
|
1719
|
+
...oe(),
|
|
1720
|
+
"plus-darker",
|
|
1721
|
+
"plus-lighter"
|
|
1722
|
+
] }],
|
|
1723
|
+
"bg-blend": [{ "bg-blend": oe() }],
|
|
1724
|
+
"mask-clip": [{ "mask-clip": [
|
|
1725
|
+
"border",
|
|
1726
|
+
"padding",
|
|
1727
|
+
"content",
|
|
1728
|
+
"fill",
|
|
1729
|
+
"stroke",
|
|
1730
|
+
"view"
|
|
1731
|
+
] }, "mask-no-clip"],
|
|
1732
|
+
"mask-composite": [{ mask: [
|
|
1733
|
+
"add",
|
|
1734
|
+
"subtract",
|
|
1735
|
+
"intersect",
|
|
1736
|
+
"exclude"
|
|
1737
|
+
] }],
|
|
1738
|
+
"mask-image-linear-pos": [{ "mask-linear": [V] }],
|
|
1739
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": R() }],
|
|
1740
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": R() }],
|
|
1741
|
+
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
1742
|
+
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
1743
|
+
"mask-image-t-from-pos": [{ "mask-t-from": R() }],
|
|
1744
|
+
"mask-image-t-to-pos": [{ "mask-t-to": R() }],
|
|
1745
|
+
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
1746
|
+
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
1747
|
+
"mask-image-r-from-pos": [{ "mask-r-from": R() }],
|
|
1748
|
+
"mask-image-r-to-pos": [{ "mask-r-to": R() }],
|
|
1749
|
+
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
1750
|
+
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
1751
|
+
"mask-image-b-from-pos": [{ "mask-b-from": R() }],
|
|
1752
|
+
"mask-image-b-to-pos": [{ "mask-b-to": R() }],
|
|
1753
|
+
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
1754
|
+
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
1755
|
+
"mask-image-l-from-pos": [{ "mask-l-from": R() }],
|
|
1756
|
+
"mask-image-l-to-pos": [{ "mask-l-to": R() }],
|
|
1757
|
+
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
1758
|
+
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
1759
|
+
"mask-image-x-from-pos": [{ "mask-x-from": R() }],
|
|
1760
|
+
"mask-image-x-to-pos": [{ "mask-x-to": R() }],
|
|
1761
|
+
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
1762
|
+
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
1763
|
+
"mask-image-y-from-pos": [{ "mask-y-from": R() }],
|
|
1764
|
+
"mask-image-y-to-pos": [{ "mask-y-to": R() }],
|
|
1765
|
+
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1766
|
+
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1767
|
+
"mask-image-radial": [{ "mask-radial": [K, W] }],
|
|
1768
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": R() }],
|
|
1769
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": R() }],
|
|
1770
|
+
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
1771
|
+
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
1772
|
+
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
1773
|
+
"mask-image-radial-size": [{ "mask-radial": [{
|
|
1774
|
+
closest: ["side", "corner"],
|
|
1775
|
+
farthest: ["side", "corner"]
|
|
1776
|
+
}] }],
|
|
1777
|
+
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1778
|
+
"mask-image-conic-pos": [{ "mask-conic": [V] }],
|
|
1779
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": R() }],
|
|
1780
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": R() }],
|
|
1781
|
+
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
1782
|
+
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
1783
|
+
"mask-mode": [{ mask: [
|
|
1784
|
+
"alpha",
|
|
1785
|
+
"luminance",
|
|
1786
|
+
"match"
|
|
1787
|
+
] }],
|
|
1788
|
+
"mask-origin": [{ "mask-origin": [
|
|
1789
|
+
"border",
|
|
1790
|
+
"padding",
|
|
1791
|
+
"content",
|
|
1792
|
+
"fill",
|
|
1793
|
+
"stroke",
|
|
1794
|
+
"view"
|
|
1795
|
+
] }],
|
|
1796
|
+
"mask-position": [{ mask: F() }],
|
|
1797
|
+
"mask-repeat": [{ mask: ne() }],
|
|
1798
|
+
"mask-size": [{ mask: re() }],
|
|
1799
|
+
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1800
|
+
"mask-image": [{ mask: [
|
|
1801
|
+
"none",
|
|
1802
|
+
K,
|
|
1803
|
+
W
|
|
1804
|
+
] }],
|
|
1805
|
+
filter: [{ filter: [
|
|
1806
|
+
"",
|
|
1807
|
+
"none",
|
|
1808
|
+
K,
|
|
1809
|
+
W
|
|
1810
|
+
] }],
|
|
1811
|
+
blur: [{ blur: se() }],
|
|
1812
|
+
brightness: [{ brightness: [
|
|
1813
|
+
V,
|
|
1814
|
+
K,
|
|
1815
|
+
W
|
|
1816
|
+
] }],
|
|
1817
|
+
contrast: [{ contrast: [
|
|
1818
|
+
V,
|
|
1819
|
+
K,
|
|
1820
|
+
W
|
|
1821
|
+
] }],
|
|
1822
|
+
"drop-shadow": [{ "drop-shadow": [
|
|
1823
|
+
"",
|
|
1824
|
+
"none",
|
|
1825
|
+
p,
|
|
1826
|
+
Kt,
|
|
1827
|
+
Bt
|
|
1828
|
+
] }],
|
|
1829
|
+
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
1830
|
+
grayscale: [{ grayscale: [
|
|
1831
|
+
"",
|
|
1832
|
+
V,
|
|
1833
|
+
K,
|
|
1834
|
+
W
|
|
1835
|
+
] }],
|
|
1836
|
+
"hue-rotate": [{ "hue-rotate": [
|
|
1837
|
+
V,
|
|
1838
|
+
K,
|
|
1839
|
+
W
|
|
1840
|
+
] }],
|
|
1841
|
+
invert: [{ invert: [
|
|
1842
|
+
"",
|
|
1843
|
+
V,
|
|
1844
|
+
K,
|
|
1845
|
+
W
|
|
1846
|
+
] }],
|
|
1847
|
+
saturate: [{ saturate: [
|
|
1848
|
+
V,
|
|
1849
|
+
K,
|
|
1850
|
+
W
|
|
1851
|
+
] }],
|
|
1852
|
+
sepia: [{ sepia: [
|
|
1853
|
+
"",
|
|
1854
|
+
V,
|
|
1855
|
+
K,
|
|
1856
|
+
W
|
|
1857
|
+
] }],
|
|
1858
|
+
"backdrop-filter": [{ "backdrop-filter": [
|
|
1859
|
+
"",
|
|
1860
|
+
"none",
|
|
1861
|
+
K,
|
|
1862
|
+
W
|
|
1863
|
+
] }],
|
|
1864
|
+
"backdrop-blur": [{ "backdrop-blur": se() }],
|
|
1865
|
+
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1866
|
+
V,
|
|
1867
|
+
K,
|
|
1868
|
+
W
|
|
1869
|
+
] }],
|
|
1870
|
+
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1871
|
+
V,
|
|
1872
|
+
K,
|
|
1873
|
+
W
|
|
1874
|
+
] }],
|
|
1875
|
+
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1876
|
+
"",
|
|
1877
|
+
V,
|
|
1878
|
+
K,
|
|
1879
|
+
W
|
|
1880
|
+
] }],
|
|
1881
|
+
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1882
|
+
V,
|
|
1883
|
+
K,
|
|
1884
|
+
W
|
|
1885
|
+
] }],
|
|
1886
|
+
"backdrop-invert": [{ "backdrop-invert": [
|
|
1887
|
+
"",
|
|
1888
|
+
V,
|
|
1889
|
+
K,
|
|
1890
|
+
W
|
|
1891
|
+
] }],
|
|
1892
|
+
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1893
|
+
V,
|
|
1894
|
+
K,
|
|
1895
|
+
W
|
|
1896
|
+
] }],
|
|
1897
|
+
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1898
|
+
V,
|
|
1899
|
+
K,
|
|
1900
|
+
W
|
|
1901
|
+
] }],
|
|
1902
|
+
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1903
|
+
"",
|
|
1904
|
+
V,
|
|
1905
|
+
K,
|
|
1906
|
+
W
|
|
1907
|
+
] }],
|
|
1908
|
+
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1909
|
+
"border-spacing": [{ "border-spacing": w() }],
|
|
1910
|
+
"border-spacing-x": [{ "border-spacing-x": w() }],
|
|
1911
|
+
"border-spacing-y": [{ "border-spacing-y": w() }],
|
|
1912
|
+
"table-layout": [{ table: ["auto", "fixed"] }],
|
|
1913
|
+
caption: [{ caption: ["top", "bottom"] }],
|
|
1914
|
+
transition: [{ transition: [
|
|
1915
|
+
"",
|
|
1916
|
+
"all",
|
|
1917
|
+
"colors",
|
|
1918
|
+
"opacity",
|
|
1919
|
+
"shadow",
|
|
1920
|
+
"transform",
|
|
1921
|
+
"none",
|
|
1922
|
+
K,
|
|
1923
|
+
W
|
|
1924
|
+
] }],
|
|
1925
|
+
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1926
|
+
duration: [{ duration: [
|
|
1927
|
+
V,
|
|
1928
|
+
"initial",
|
|
1929
|
+
K,
|
|
1930
|
+
W
|
|
1931
|
+
] }],
|
|
1932
|
+
ease: [{ ease: [
|
|
1933
|
+
"linear",
|
|
1934
|
+
"initial",
|
|
1935
|
+
_,
|
|
1936
|
+
K,
|
|
1937
|
+
W
|
|
1938
|
+
] }],
|
|
1939
|
+
delay: [{ delay: [
|
|
1940
|
+
V,
|
|
1941
|
+
K,
|
|
1942
|
+
W
|
|
1943
|
+
] }],
|
|
1944
|
+
animate: [{ animate: [
|
|
1945
|
+
"none",
|
|
1946
|
+
v,
|
|
1947
|
+
K,
|
|
1948
|
+
W
|
|
1949
|
+
] }],
|
|
1950
|
+
backface: [{ backface: ["hidden", "visible"] }],
|
|
1951
|
+
perspective: [{ perspective: [
|
|
1952
|
+
h,
|
|
1953
|
+
K,
|
|
1954
|
+
W
|
|
1955
|
+
] }],
|
|
1956
|
+
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1957
|
+
rotate: [{ rotate: ce() }],
|
|
1958
|
+
"rotate-x": [{ "rotate-x": ce() }],
|
|
1959
|
+
"rotate-y": [{ "rotate-y": ce() }],
|
|
1960
|
+
"rotate-z": [{ "rotate-z": ce() }],
|
|
1961
|
+
scale: [{ scale: le() }],
|
|
1962
|
+
"scale-x": [{ "scale-x": le() }],
|
|
1963
|
+
"scale-y": [{ "scale-y": le() }],
|
|
1964
|
+
"scale-z": [{ "scale-z": le() }],
|
|
1965
|
+
"scale-3d": ["scale-3d"],
|
|
1966
|
+
skew: [{ skew: ue() }],
|
|
1967
|
+
"skew-x": [{ "skew-x": ue() }],
|
|
1968
|
+
"skew-y": [{ "skew-y": ue() }],
|
|
1969
|
+
transform: [{ transform: [
|
|
1970
|
+
K,
|
|
1971
|
+
W,
|
|
1972
|
+
"",
|
|
1973
|
+
"none",
|
|
1974
|
+
"gpu",
|
|
1975
|
+
"cpu"
|
|
1976
|
+
] }],
|
|
1977
|
+
"transform-origin": [{ origin: x() }],
|
|
1978
|
+
"transform-style": [{ transform: ["3d", "flat"] }],
|
|
1979
|
+
translate: [{ translate: de() }],
|
|
1980
|
+
"translate-x": [{ "translate-x": de() }],
|
|
1981
|
+
"translate-y": [{ "translate-y": de() }],
|
|
1982
|
+
"translate-z": [{ "translate-z": de() }],
|
|
1983
|
+
"translate-none": ["translate-none"],
|
|
1984
|
+
zoom: [{ zoom: [
|
|
1985
|
+
H,
|
|
1986
|
+
K,
|
|
1987
|
+
W
|
|
1988
|
+
] }],
|
|
1989
|
+
accent: [{ accent: P() }],
|
|
1990
|
+
appearance: [{ appearance: ["none", "auto"] }],
|
|
1991
|
+
"caret-color": [{ caret: P() }],
|
|
1992
|
+
"color-scheme": [{ scheme: [
|
|
1993
|
+
"normal",
|
|
1994
|
+
"dark",
|
|
1995
|
+
"light",
|
|
1996
|
+
"light-dark",
|
|
1997
|
+
"only-dark",
|
|
1998
|
+
"only-light"
|
|
1999
|
+
] }],
|
|
2000
|
+
cursor: [{ cursor: [
|
|
2001
|
+
"auto",
|
|
2002
|
+
"default",
|
|
2003
|
+
"pointer",
|
|
2004
|
+
"wait",
|
|
2005
|
+
"text",
|
|
2006
|
+
"move",
|
|
2007
|
+
"help",
|
|
2008
|
+
"not-allowed",
|
|
2009
|
+
"none",
|
|
2010
|
+
"context-menu",
|
|
2011
|
+
"progress",
|
|
2012
|
+
"cell",
|
|
2013
|
+
"crosshair",
|
|
2014
|
+
"vertical-text",
|
|
2015
|
+
"alias",
|
|
2016
|
+
"copy",
|
|
2017
|
+
"no-drop",
|
|
2018
|
+
"grab",
|
|
2019
|
+
"grabbing",
|
|
2020
|
+
"all-scroll",
|
|
2021
|
+
"col-resize",
|
|
2022
|
+
"row-resize",
|
|
2023
|
+
"n-resize",
|
|
2024
|
+
"e-resize",
|
|
2025
|
+
"s-resize",
|
|
2026
|
+
"w-resize",
|
|
2027
|
+
"ne-resize",
|
|
2028
|
+
"nw-resize",
|
|
2029
|
+
"se-resize",
|
|
2030
|
+
"sw-resize",
|
|
2031
|
+
"ew-resize",
|
|
2032
|
+
"ns-resize",
|
|
2033
|
+
"nesw-resize",
|
|
2034
|
+
"nwse-resize",
|
|
2035
|
+
"zoom-in",
|
|
2036
|
+
"zoom-out",
|
|
2037
|
+
K,
|
|
2038
|
+
W
|
|
2039
|
+
] }],
|
|
2040
|
+
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
2041
|
+
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
2042
|
+
resize: [{ resize: [
|
|
2043
|
+
"none",
|
|
2044
|
+
"",
|
|
2045
|
+
"y",
|
|
2046
|
+
"x"
|
|
2047
|
+
] }],
|
|
2048
|
+
"scroll-behavior": [{ scroll: ["auto", "smooth"] }],
|
|
2049
|
+
"scrollbar-thumb-color": [{ "scrollbar-thumb": P() }],
|
|
2050
|
+
"scrollbar-track-color": [{ "scrollbar-track": P() }],
|
|
2051
|
+
"scrollbar-gutter": [{ "scrollbar-gutter": [
|
|
2052
|
+
"auto",
|
|
2053
|
+
"stable",
|
|
2054
|
+
"both"
|
|
2055
|
+
] }],
|
|
2056
|
+
"scrollbar-w": [{ scrollbar: [
|
|
2057
|
+
"auto",
|
|
2058
|
+
"thin",
|
|
2059
|
+
"none"
|
|
2060
|
+
] }],
|
|
2061
|
+
"scroll-m": [{ "scroll-m": w() }],
|
|
2062
|
+
"scroll-mx": [{ "scroll-mx": w() }],
|
|
2063
|
+
"scroll-my": [{ "scroll-my": w() }],
|
|
2064
|
+
"scroll-ms": [{ "scroll-ms": w() }],
|
|
2065
|
+
"scroll-me": [{ "scroll-me": w() }],
|
|
2066
|
+
"scroll-mbs": [{ "scroll-mbs": w() }],
|
|
2067
|
+
"scroll-mbe": [{ "scroll-mbe": w() }],
|
|
2068
|
+
"scroll-mt": [{ "scroll-mt": w() }],
|
|
2069
|
+
"scroll-mr": [{ "scroll-mr": w() }],
|
|
2070
|
+
"scroll-mb": [{ "scroll-mb": w() }],
|
|
2071
|
+
"scroll-ml": [{ "scroll-ml": w() }],
|
|
2072
|
+
"scroll-p": [{ "scroll-p": w() }],
|
|
2073
|
+
"scroll-px": [{ "scroll-px": w() }],
|
|
2074
|
+
"scroll-py": [{ "scroll-py": w() }],
|
|
2075
|
+
"scroll-ps": [{ "scroll-ps": w() }],
|
|
2076
|
+
"scroll-pe": [{ "scroll-pe": w() }],
|
|
2077
|
+
"scroll-pbs": [{ "scroll-pbs": w() }],
|
|
2078
|
+
"scroll-pbe": [{ "scroll-pbe": w() }],
|
|
2079
|
+
"scroll-pt": [{ "scroll-pt": w() }],
|
|
2080
|
+
"scroll-pr": [{ "scroll-pr": w() }],
|
|
2081
|
+
"scroll-pb": [{ "scroll-pb": w() }],
|
|
2082
|
+
"scroll-pl": [{ "scroll-pl": w() }],
|
|
2083
|
+
"snap-align": [{ snap: [
|
|
2084
|
+
"start",
|
|
2085
|
+
"end",
|
|
2086
|
+
"center",
|
|
2087
|
+
"align-none"
|
|
2088
|
+
] }],
|
|
2089
|
+
"snap-stop": [{ snap: ["normal", "always"] }],
|
|
2090
|
+
"snap-type": [{ snap: [
|
|
2091
|
+
"none",
|
|
2092
|
+
"x",
|
|
2093
|
+
"y",
|
|
2094
|
+
"both"
|
|
2095
|
+
] }],
|
|
2096
|
+
"snap-strictness": [{ snap: ["mandatory", "proximity"] }],
|
|
2097
|
+
touch: [{ touch: [
|
|
2098
|
+
"auto",
|
|
2099
|
+
"none",
|
|
2100
|
+
"manipulation"
|
|
2101
|
+
] }],
|
|
2102
|
+
"touch-x": [{ "touch-pan": [
|
|
2103
|
+
"x",
|
|
2104
|
+
"left",
|
|
2105
|
+
"right"
|
|
2106
|
+
] }],
|
|
2107
|
+
"touch-y": [{ "touch-pan": [
|
|
2108
|
+
"y",
|
|
2109
|
+
"up",
|
|
2110
|
+
"down"
|
|
2111
|
+
] }],
|
|
2112
|
+
"touch-pz": ["touch-pinch-zoom"],
|
|
2113
|
+
select: [{ select: [
|
|
2114
|
+
"none",
|
|
2115
|
+
"text",
|
|
2116
|
+
"all",
|
|
2117
|
+
"auto"
|
|
2118
|
+
] }],
|
|
2119
|
+
"will-change": [{ "will-change": [
|
|
2120
|
+
"auto",
|
|
2121
|
+
"scroll",
|
|
2122
|
+
"contents",
|
|
2123
|
+
"transform",
|
|
2124
|
+
K,
|
|
2125
|
+
W
|
|
2126
|
+
] }],
|
|
2127
|
+
fill: [{ fill: ["none", ...P()] }],
|
|
2128
|
+
"stroke-w": [{ stroke: [
|
|
2129
|
+
V,
|
|
2130
|
+
Vt,
|
|
2131
|
+
G,
|
|
2132
|
+
Ft
|
|
2133
|
+
] }],
|
|
2134
|
+
stroke: [{ stroke: ["none", ...P()] }],
|
|
2135
|
+
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
2136
|
+
},
|
|
2137
|
+
conflictingClassGroups: {
|
|
2138
|
+
"container-named": ["container-type"],
|
|
2139
|
+
overflow: ["overflow-x", "overflow-y"],
|
|
2140
|
+
overscroll: ["overscroll-x", "overscroll-y"],
|
|
2141
|
+
inset: [
|
|
2142
|
+
"inset-x",
|
|
2143
|
+
"inset-y",
|
|
2144
|
+
"inset-bs",
|
|
2145
|
+
"inset-be",
|
|
2146
|
+
"start",
|
|
2147
|
+
"end",
|
|
2148
|
+
"top",
|
|
2149
|
+
"right",
|
|
2150
|
+
"bottom",
|
|
2151
|
+
"left"
|
|
2152
|
+
],
|
|
2153
|
+
"inset-x": ["right", "left"],
|
|
2154
|
+
"inset-y": ["top", "bottom"],
|
|
2155
|
+
flex: [
|
|
2156
|
+
"basis",
|
|
2157
|
+
"grow",
|
|
2158
|
+
"shrink"
|
|
2159
|
+
],
|
|
2160
|
+
gap: ["gap-x", "gap-y"],
|
|
2161
|
+
p: [
|
|
2162
|
+
"px",
|
|
2163
|
+
"py",
|
|
2164
|
+
"ps",
|
|
2165
|
+
"pe",
|
|
2166
|
+
"pbs",
|
|
2167
|
+
"pbe",
|
|
2168
|
+
"pt",
|
|
2169
|
+
"pr",
|
|
2170
|
+
"pb",
|
|
2171
|
+
"pl"
|
|
2172
|
+
],
|
|
2173
|
+
px: ["pr", "pl"],
|
|
2174
|
+
py: ["pt", "pb"],
|
|
2175
|
+
m: [
|
|
2176
|
+
"mx",
|
|
2177
|
+
"my",
|
|
2178
|
+
"ms",
|
|
2179
|
+
"me",
|
|
2180
|
+
"mbs",
|
|
2181
|
+
"mbe",
|
|
2182
|
+
"mt",
|
|
2183
|
+
"mr",
|
|
2184
|
+
"mb",
|
|
2185
|
+
"ml"
|
|
2186
|
+
],
|
|
2187
|
+
mx: ["mr", "ml"],
|
|
2188
|
+
my: ["mt", "mb"],
|
|
2189
|
+
size: ["w", "h"],
|
|
2190
|
+
"font-size": ["leading"],
|
|
2191
|
+
"fvn-normal": [
|
|
2192
|
+
"fvn-ordinal",
|
|
2193
|
+
"fvn-slashed-zero",
|
|
2194
|
+
"fvn-figure",
|
|
2195
|
+
"fvn-spacing",
|
|
2196
|
+
"fvn-fraction"
|
|
2197
|
+
],
|
|
2198
|
+
"fvn-ordinal": ["fvn-normal"],
|
|
2199
|
+
"fvn-slashed-zero": ["fvn-normal"],
|
|
2200
|
+
"fvn-figure": ["fvn-normal"],
|
|
2201
|
+
"fvn-spacing": ["fvn-normal"],
|
|
2202
|
+
"fvn-fraction": ["fvn-normal"],
|
|
2203
|
+
"line-clamp": ["display", "overflow"],
|
|
2204
|
+
rounded: [
|
|
2205
|
+
"rounded-s",
|
|
2206
|
+
"rounded-e",
|
|
2207
|
+
"rounded-t",
|
|
2208
|
+
"rounded-r",
|
|
2209
|
+
"rounded-b",
|
|
2210
|
+
"rounded-l",
|
|
2211
|
+
"rounded-ss",
|
|
2212
|
+
"rounded-se",
|
|
2213
|
+
"rounded-ee",
|
|
2214
|
+
"rounded-es",
|
|
2215
|
+
"rounded-tl",
|
|
2216
|
+
"rounded-tr",
|
|
2217
|
+
"rounded-br",
|
|
2218
|
+
"rounded-bl"
|
|
2219
|
+
],
|
|
2220
|
+
"rounded-s": ["rounded-ss", "rounded-es"],
|
|
2221
|
+
"rounded-e": ["rounded-se", "rounded-ee"],
|
|
2222
|
+
"rounded-t": ["rounded-tl", "rounded-tr"],
|
|
2223
|
+
"rounded-r": ["rounded-tr", "rounded-br"],
|
|
2224
|
+
"rounded-b": ["rounded-br", "rounded-bl"],
|
|
2225
|
+
"rounded-l": ["rounded-tl", "rounded-bl"],
|
|
2226
|
+
"border-spacing": ["border-spacing-x", "border-spacing-y"],
|
|
2227
|
+
"border-w": [
|
|
2228
|
+
"border-w-x",
|
|
2229
|
+
"border-w-y",
|
|
2230
|
+
"border-w-s",
|
|
2231
|
+
"border-w-e",
|
|
2232
|
+
"border-w-bs",
|
|
2233
|
+
"border-w-be",
|
|
2234
|
+
"border-w-t",
|
|
2235
|
+
"border-w-r",
|
|
2236
|
+
"border-w-b",
|
|
2237
|
+
"border-w-l"
|
|
2238
|
+
],
|
|
2239
|
+
"border-w-x": ["border-w-r", "border-w-l"],
|
|
2240
|
+
"border-w-y": ["border-w-t", "border-w-b"],
|
|
2241
|
+
"border-color": [
|
|
2242
|
+
"border-color-x",
|
|
2243
|
+
"border-color-y",
|
|
2244
|
+
"border-color-s",
|
|
2245
|
+
"border-color-e",
|
|
2246
|
+
"border-color-bs",
|
|
2247
|
+
"border-color-be",
|
|
2248
|
+
"border-color-t",
|
|
2249
|
+
"border-color-r",
|
|
2250
|
+
"border-color-b",
|
|
2251
|
+
"border-color-l"
|
|
2252
|
+
],
|
|
2253
|
+
"border-color-x": ["border-color-r", "border-color-l"],
|
|
2254
|
+
"border-color-y": ["border-color-t", "border-color-b"],
|
|
2255
|
+
translate: [
|
|
2256
|
+
"translate-x",
|
|
2257
|
+
"translate-y",
|
|
2258
|
+
"translate-none"
|
|
2259
|
+
],
|
|
2260
|
+
"translate-none": [
|
|
2261
|
+
"translate",
|
|
2262
|
+
"translate-x",
|
|
2263
|
+
"translate-y",
|
|
2264
|
+
"translate-z"
|
|
2265
|
+
],
|
|
2266
|
+
"scroll-m": [
|
|
2267
|
+
"scroll-mx",
|
|
2268
|
+
"scroll-my",
|
|
2269
|
+
"scroll-ms",
|
|
2270
|
+
"scroll-me",
|
|
2271
|
+
"scroll-mbs",
|
|
2272
|
+
"scroll-mbe",
|
|
2273
|
+
"scroll-mt",
|
|
2274
|
+
"scroll-mr",
|
|
2275
|
+
"scroll-mb",
|
|
2276
|
+
"scroll-ml"
|
|
2277
|
+
],
|
|
2278
|
+
"scroll-mx": ["scroll-mr", "scroll-ml"],
|
|
2279
|
+
"scroll-my": ["scroll-mt", "scroll-mb"],
|
|
2280
|
+
"scroll-p": [
|
|
2281
|
+
"scroll-px",
|
|
2282
|
+
"scroll-py",
|
|
2283
|
+
"scroll-ps",
|
|
2284
|
+
"scroll-pe",
|
|
2285
|
+
"scroll-pbs",
|
|
2286
|
+
"scroll-pbe",
|
|
2287
|
+
"scroll-pt",
|
|
2288
|
+
"scroll-pr",
|
|
2289
|
+
"scroll-pb",
|
|
2290
|
+
"scroll-pl"
|
|
2291
|
+
],
|
|
2292
|
+
"scroll-px": ["scroll-pr", "scroll-pl"],
|
|
2293
|
+
"scroll-py": ["scroll-pt", "scroll-pb"],
|
|
2294
|
+
touch: [
|
|
2295
|
+
"touch-x",
|
|
2296
|
+
"touch-y",
|
|
2297
|
+
"touch-pz"
|
|
2298
|
+
],
|
|
2299
|
+
"touch-x": ["touch"],
|
|
2300
|
+
"touch-y": ["touch"],
|
|
2301
|
+
"touch-pz": ["touch"]
|
|
2302
|
+
},
|
|
2303
|
+
conflictingClassGroupModifiers: { "font-size": ["leading"] },
|
|
2304
|
+
postfixLookupClassGroups: ["container-type"],
|
|
2305
|
+
orderSensitiveModifiers: [
|
|
2306
|
+
"*",
|
|
2307
|
+
"**",
|
|
2308
|
+
"after",
|
|
2309
|
+
"backdrop",
|
|
2310
|
+
"before",
|
|
2311
|
+
"details-content",
|
|
2312
|
+
"file",
|
|
2313
|
+
"first-letter",
|
|
2314
|
+
"first-line",
|
|
2315
|
+
"marker",
|
|
2316
|
+
"placeholder",
|
|
2317
|
+
"selection"
|
|
2318
|
+
]
|
|
2319
|
+
};
|
|
2320
|
+
});
|
|
2321
|
+
//#endregion
|
|
2322
|
+
//#region src/utils/cn.ts
|
|
2323
|
+
function Y(...e) {
|
|
2324
|
+
return nn(Re(e));
|
|
2325
|
+
}
|
|
2326
|
+
//#endregion
|
|
2327
|
+
//#region src/ui/components/Tabs.tsx
|
|
2328
|
+
var rn = De, an = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ae, {
|
|
2329
|
+
ref: r,
|
|
2330
|
+
className: Y("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", t),
|
|
2331
|
+
...n
|
|
2332
|
+
}));
|
|
2333
|
+
an.displayName = Ae.displayName;
|
|
2334
|
+
var on = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ie, {
|
|
2335
|
+
ref: r,
|
|
2336
|
+
className: Y("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs", t),
|
|
2337
|
+
...n
|
|
2338
|
+
}));
|
|
2339
|
+
on.displayName = Ie.displayName;
|
|
2340
|
+
var sn = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Me, {
|
|
2341
|
+
ref: r,
|
|
2342
|
+
className: Y("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
2343
|
+
...n
|
|
2344
|
+
}));
|
|
2345
|
+
sn.displayName = Me.displayName;
|
|
2346
|
+
//#endregion
|
|
2347
|
+
//#region ../../node_modules/@huin-core/react-portal/dist/index.mjs
|
|
2348
|
+
var cn = "Portal", ln = e.forwardRef((t, n) => {
|
|
2349
|
+
let { container: r, ...i } = t, [a, s] = e.useState(!1);
|
|
2350
|
+
w(() => s(!0), []);
|
|
2351
|
+
let c = r || a && globalThis?.document?.body;
|
|
2352
|
+
return c ? l.createPortal(/* @__PURE__ */ o(O.div, {
|
|
2353
|
+
...i,
|
|
2354
|
+
ref: n
|
|
2355
|
+
}), c) : null;
|
|
2356
|
+
});
|
|
2357
|
+
ln.displayName = cn;
|
|
2358
|
+
//#endregion
|
|
2359
|
+
//#region ../../node_modules/tslib/tslib.es6.mjs
|
|
2360
|
+
var X = function() {
|
|
2361
|
+
return X = Object.assign || function(e) {
|
|
2362
|
+
for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
|
|
2363
|
+
return e;
|
|
2364
|
+
}, X.apply(this, arguments);
|
|
2365
|
+
};
|
|
2366
|
+
function un(e, t) {
|
|
2367
|
+
var n = {};
|
|
2368
|
+
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
2369
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++) t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
2370
|
+
return n;
|
|
2371
|
+
}
|
|
2372
|
+
function dn(e, t, n) {
|
|
2373
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++) (a || !(r in t)) && (a ||= Array.prototype.slice.call(t, 0, r), a[r] = t[r]);
|
|
2374
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
2375
|
+
}
|
|
2376
|
+
//#endregion
|
|
2377
|
+
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/constants.js
|
|
2378
|
+
var fn = "right-scroll-bar-position", pn = "width-before-scroll-bar", mn = "with-scroll-bars-hidden", hn = "--removed-body-scroll-bar-size";
|
|
2379
|
+
//#endregion
|
|
2380
|
+
//#region ../../node_modules/use-callback-ref/dist/es2015/assignRef.js
|
|
2381
|
+
function gn(e, t) {
|
|
2382
|
+
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
2383
|
+
}
|
|
2384
|
+
//#endregion
|
|
2385
|
+
//#region ../../node_modules/use-callback-ref/dist/es2015/useRef.js
|
|
2386
|
+
function _n(e, t) {
|
|
2387
|
+
var n = i(function() {
|
|
2388
|
+
return {
|
|
2389
|
+
value: e,
|
|
2390
|
+
callback: t,
|
|
2391
|
+
facade: {
|
|
2392
|
+
get current() {
|
|
2393
|
+
return n.value;
|
|
2394
|
+
},
|
|
2395
|
+
set current(e) {
|
|
2396
|
+
var t = n.value;
|
|
2397
|
+
t !== e && (n.value = e, n.callback(e, t));
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
};
|
|
2401
|
+
})[0];
|
|
2402
|
+
return n.callback = t, n.facade;
|
|
2403
|
+
}
|
|
2404
|
+
//#endregion
|
|
2405
|
+
//#region ../../node_modules/use-callback-ref/dist/es2015/useMergeRef.js
|
|
2406
|
+
var vn = typeof window < "u" ? e.useLayoutEffect : e.useEffect, yn = /* @__PURE__ */ new WeakMap();
|
|
2407
|
+
function bn(e, t) {
|
|
2408
|
+
var n = _n(t || null, function(t) {
|
|
2409
|
+
return e.forEach(function(e) {
|
|
2410
|
+
return gn(e, t);
|
|
2411
|
+
});
|
|
2412
|
+
});
|
|
2413
|
+
return vn(function() {
|
|
2414
|
+
var t = yn.get(n);
|
|
2415
|
+
if (t) {
|
|
2416
|
+
var r = new Set(t), i = new Set(e), a = n.current;
|
|
2417
|
+
r.forEach(function(e) {
|
|
2418
|
+
i.has(e) || gn(e, null);
|
|
2419
|
+
}), i.forEach(function(e) {
|
|
2420
|
+
r.has(e) || gn(e, a);
|
|
2421
|
+
});
|
|
2422
|
+
}
|
|
2423
|
+
yn.set(n, e);
|
|
2424
|
+
}, [e]), n;
|
|
2425
|
+
}
|
|
2426
|
+
//#endregion
|
|
2427
|
+
//#region ../../node_modules/use-sidecar/dist/es2015/medium.js
|
|
2428
|
+
function xn(e) {
|
|
2429
|
+
return e;
|
|
2430
|
+
}
|
|
2431
|
+
function Sn(e, t) {
|
|
2432
|
+
t === void 0 && (t = xn);
|
|
2433
|
+
var n = [], r = !1;
|
|
2434
|
+
return {
|
|
2435
|
+
read: function() {
|
|
2436
|
+
if (r) throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
|
|
2437
|
+
return n.length ? n[n.length - 1] : e;
|
|
2438
|
+
},
|
|
2439
|
+
useMedium: function(e) {
|
|
2440
|
+
var i = t(e, r);
|
|
2441
|
+
return n.push(i), function() {
|
|
2442
|
+
n = n.filter(function(e) {
|
|
2443
|
+
return e !== i;
|
|
2444
|
+
});
|
|
2445
|
+
};
|
|
2446
|
+
},
|
|
2447
|
+
assignSyncMedium: function(e) {
|
|
2448
|
+
for (r = !0; n.length;) {
|
|
2449
|
+
var t = n;
|
|
2450
|
+
n = [], t.forEach(e);
|
|
2451
|
+
}
|
|
2452
|
+
n = {
|
|
2453
|
+
push: function(t) {
|
|
2454
|
+
return e(t);
|
|
2455
|
+
},
|
|
2456
|
+
filter: function() {
|
|
2457
|
+
return n;
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
},
|
|
2461
|
+
assignMedium: function(e) {
|
|
2462
|
+
r = !0;
|
|
2463
|
+
var t = [];
|
|
2464
|
+
if (n.length) {
|
|
2465
|
+
var i = n;
|
|
2466
|
+
n = [], i.forEach(e), t = n;
|
|
2467
|
+
}
|
|
2468
|
+
var a = function() {
|
|
2469
|
+
var n = t;
|
|
2470
|
+
t = [], n.forEach(e);
|
|
2471
|
+
}, o = function() {
|
|
2472
|
+
return Promise.resolve().then(a);
|
|
2473
|
+
};
|
|
2474
|
+
o(), n = {
|
|
2475
|
+
push: function(e) {
|
|
2476
|
+
t.push(e), o();
|
|
2477
|
+
},
|
|
2478
|
+
filter: function(e) {
|
|
2479
|
+
return t = t.filter(e), n;
|
|
2480
|
+
}
|
|
2481
|
+
};
|
|
2482
|
+
}
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
2485
|
+
function Cn(e) {
|
|
2486
|
+
e === void 0 && (e = {});
|
|
2487
|
+
var t = Sn(null);
|
|
2488
|
+
return t.options = X({
|
|
2489
|
+
async: !0,
|
|
2490
|
+
ssr: !1
|
|
2491
|
+
}, e), t;
|
|
2492
|
+
}
|
|
2493
|
+
//#endregion
|
|
2494
|
+
//#region ../../node_modules/use-sidecar/dist/es2015/exports.js
|
|
2495
|
+
var wn = function(t) {
|
|
2496
|
+
var n = t.sideCar, r = un(t, ["sideCar"]);
|
|
2497
|
+
if (!n) throw Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
2498
|
+
var i = n.read();
|
|
2499
|
+
if (!i) throw Error("Sidecar medium not found");
|
|
2500
|
+
return e.createElement(i, X({}, r));
|
|
2501
|
+
};
|
|
2502
|
+
wn.isSideCarExport = !0;
|
|
2503
|
+
function Tn(e, t) {
|
|
2504
|
+
return e.useMedium(t), wn;
|
|
2505
|
+
}
|
|
2506
|
+
//#endregion
|
|
2507
|
+
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/medium.js
|
|
2508
|
+
var En = Cn(), Dn = function() {}, On = e.forwardRef(function(t, n) {
|
|
2509
|
+
var r = e.useRef(null), i = e.useState({
|
|
2510
|
+
onScrollCapture: Dn,
|
|
2511
|
+
onWheelCapture: Dn,
|
|
2512
|
+
onTouchMoveCapture: Dn
|
|
2513
|
+
}), a = i[0], o = i[1], s = t.forwardProps, c = t.children, l = t.className, u = t.removeScrollBar, d = t.enabled, f = t.shards, p = t.sideCar, m = t.noIsolation, h = t.inert, g = t.allowPinchZoom, _ = t.as, v = _ === void 0 ? "div" : _, y = t.gapMode, b = un(t, [
|
|
2514
|
+
"forwardProps",
|
|
2515
|
+
"children",
|
|
2516
|
+
"className",
|
|
2517
|
+
"removeScrollBar",
|
|
2518
|
+
"enabled",
|
|
2519
|
+
"shards",
|
|
2520
|
+
"sideCar",
|
|
2521
|
+
"noIsolation",
|
|
2522
|
+
"inert",
|
|
2523
|
+
"allowPinchZoom",
|
|
2524
|
+
"as",
|
|
2525
|
+
"gapMode"
|
|
2526
|
+
]), x = p, S = bn([r, n]), C = X(X({}, b), a);
|
|
2527
|
+
return e.createElement(e.Fragment, null, d && e.createElement(x, {
|
|
2528
|
+
sideCar: En,
|
|
2529
|
+
removeScrollBar: u,
|
|
2530
|
+
shards: f,
|
|
2531
|
+
noIsolation: m,
|
|
2532
|
+
inert: h,
|
|
2533
|
+
setCallbacks: o,
|
|
2534
|
+
allowPinchZoom: !!g,
|
|
2535
|
+
lockRef: r,
|
|
2536
|
+
gapMode: y
|
|
2537
|
+
}), s ? e.cloneElement(e.Children.only(c), X(X({}, C), { ref: S })) : e.createElement(v, X({}, C, {
|
|
2538
|
+
className: l,
|
|
2539
|
+
ref: S
|
|
2540
|
+
}), c));
|
|
2541
|
+
});
|
|
2542
|
+
On.defaultProps = {
|
|
2543
|
+
enabled: !0,
|
|
2544
|
+
removeScrollBar: !0,
|
|
2545
|
+
inert: !1
|
|
2546
|
+
}, On.classNames = {
|
|
2547
|
+
fullWidth: pn,
|
|
2548
|
+
zeroRight: fn
|
|
2549
|
+
};
|
|
2550
|
+
//#endregion
|
|
2551
|
+
//#region ../../node_modules/get-nonce/dist/es2015/index.js
|
|
2552
|
+
var kn, An = function() {
|
|
2553
|
+
if (kn) return kn;
|
|
2554
|
+
if (typeof __webpack_nonce__ < "u") return __webpack_nonce__;
|
|
2555
|
+
};
|
|
2556
|
+
//#endregion
|
|
2557
|
+
//#region ../../node_modules/react-style-singleton/dist/es2015/singleton.js
|
|
2558
|
+
function jn() {
|
|
2559
|
+
if (!document) return null;
|
|
2560
|
+
var e = document.createElement("style");
|
|
2561
|
+
e.type = "text/css";
|
|
2562
|
+
var t = An();
|
|
2563
|
+
return t && e.setAttribute("nonce", t), e;
|
|
2564
|
+
}
|
|
2565
|
+
function Mn(e, t) {
|
|
2566
|
+
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
2567
|
+
}
|
|
2568
|
+
function Nn(e) {
|
|
2569
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(e);
|
|
2570
|
+
}
|
|
2571
|
+
var Pn = function() {
|
|
2572
|
+
var e = 0, t = null;
|
|
2573
|
+
return {
|
|
2574
|
+
add: function(n) {
|
|
2575
|
+
e == 0 && (t = jn()) && (Mn(t, n), Nn(t)), e++;
|
|
2576
|
+
},
|
|
2577
|
+
remove: function() {
|
|
2578
|
+
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
2579
|
+
}
|
|
2580
|
+
};
|
|
2581
|
+
}, Fn = function() {
|
|
2582
|
+
var t = Pn();
|
|
2583
|
+
return function(n, r) {
|
|
2584
|
+
e.useEffect(function() {
|
|
2585
|
+
return t.add(n), function() {
|
|
2586
|
+
t.remove();
|
|
2587
|
+
};
|
|
2588
|
+
}, [n && r]);
|
|
2589
|
+
};
|
|
2590
|
+
}, In = function() {
|
|
2591
|
+
var e = Fn();
|
|
2592
|
+
return function(t) {
|
|
2593
|
+
var n = t.styles, r = t.dynamic;
|
|
2594
|
+
return e(n, r), null;
|
|
2595
|
+
};
|
|
2596
|
+
}, Ln = {
|
|
2597
|
+
left: 0,
|
|
2598
|
+
top: 0,
|
|
2599
|
+
right: 0,
|
|
2600
|
+
gap: 0
|
|
2601
|
+
}, Rn = function(e) {
|
|
2602
|
+
return parseInt(e || "", 10) || 0;
|
|
2603
|
+
}, zn = function(e) {
|
|
2604
|
+
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], i = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
2605
|
+
return [
|
|
2606
|
+
Rn(n),
|
|
2607
|
+
Rn(r),
|
|
2608
|
+
Rn(i)
|
|
2609
|
+
];
|
|
2610
|
+
}, Bn = function(e) {
|
|
2611
|
+
if (e === void 0 && (e = "margin"), typeof window > "u") return Ln;
|
|
2612
|
+
var t = zn(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
2613
|
+
return {
|
|
2614
|
+
left: t[0],
|
|
2615
|
+
top: t[1],
|
|
2616
|
+
right: t[2],
|
|
2617
|
+
gap: Math.max(0, r - n + t[2] - t[0])
|
|
2618
|
+
};
|
|
2619
|
+
}, Vn = In(), Hn = "data-scroll-locked", Un = function(e, t, n, r) {
|
|
2620
|
+
var i = e.left, a = e.top, o = e.right, s = e.gap;
|
|
2621
|
+
return n === void 0 && (n = "margin"), `
|
|
2622
|
+
.${mn} {
|
|
2623
|
+
overflow: hidden ${r};
|
|
2624
|
+
padding-right: ${s}px ${r};
|
|
2625
|
+
}
|
|
2626
|
+
body[${Hn}] {
|
|
2627
|
+
overflow: hidden ${r};
|
|
2628
|
+
overscroll-behavior: contain;
|
|
2629
|
+
${[
|
|
2630
|
+
t && `position: relative ${r};`,
|
|
2631
|
+
n === "margin" && `
|
|
2632
|
+
padding-left: ${i}px;
|
|
2633
|
+
padding-top: ${a}px;
|
|
2634
|
+
padding-right: ${o}px;
|
|
2635
|
+
margin-left:0;
|
|
2636
|
+
margin-top:0;
|
|
2637
|
+
margin-right: ${s}px ${r};
|
|
2638
|
+
`,
|
|
2639
|
+
n === "padding" && `padding-right: ${s}px ${r};`
|
|
2640
|
+
].filter(Boolean).join("")}
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
.${fn} {
|
|
2644
|
+
right: ${s}px ${r};
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
.${pn} {
|
|
2648
|
+
margin-right: ${s}px ${r};
|
|
2649
|
+
}
|
|
2650
|
+
|
|
2651
|
+
.${fn} .${fn} {
|
|
2652
|
+
right: 0 ${r};
|
|
2653
|
+
}
|
|
2654
|
+
|
|
2655
|
+
.${pn} .${pn} {
|
|
2656
|
+
margin-right: 0 ${r};
|
|
2657
|
+
}
|
|
2658
|
+
|
|
2659
|
+
body[${Hn}] {
|
|
2660
|
+
${hn}: ${s}px;
|
|
2661
|
+
}
|
|
2662
|
+
`;
|
|
2663
|
+
}, Wn = function() {
|
|
2664
|
+
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
2665
|
+
return isFinite(e) ? e : 0;
|
|
2666
|
+
}, Gn = function() {
|
|
2667
|
+
e.useEffect(function() {
|
|
2668
|
+
return document.body.setAttribute(Hn, (Wn() + 1).toString()), function() {
|
|
2669
|
+
var e = Wn() - 1;
|
|
2670
|
+
e <= 0 ? document.body.removeAttribute(Hn) : document.body.setAttribute(Hn, e.toString());
|
|
2671
|
+
};
|
|
2672
|
+
}, []);
|
|
2673
|
+
}, Kn = function(t) {
|
|
2674
|
+
var n = t.noRelative, r = t.noImportant, i = t.gapMode, a = i === void 0 ? "margin" : i;
|
|
2675
|
+
Gn();
|
|
2676
|
+
var o = e.useMemo(function() {
|
|
2677
|
+
return Bn(a);
|
|
2678
|
+
}, [a]);
|
|
2679
|
+
return e.createElement(Vn, { styles: Un(o, !n, a, r ? "" : "!important") });
|
|
2680
|
+
}, qn = !1;
|
|
2681
|
+
if (typeof window < "u") try {
|
|
2682
|
+
var Jn = Object.defineProperty({}, "passive", { get: function() {
|
|
2683
|
+
return qn = !0, !0;
|
|
2684
|
+
} });
|
|
2685
|
+
window.addEventListener("test", Jn, Jn), window.removeEventListener("test", Jn, Jn);
|
|
2686
|
+
} catch {
|
|
2687
|
+
qn = !1;
|
|
2688
|
+
}
|
|
2689
|
+
var Yn = qn ? { passive: !1 } : !1, Xn = function(e) {
|
|
2690
|
+
return e.tagName === "TEXTAREA";
|
|
2691
|
+
}, Zn = function(e, t) {
|
|
2692
|
+
var n = window.getComputedStyle(e);
|
|
2693
|
+
return n[t] !== "hidden" && !(n.overflowY === n.overflowX && !Xn(e) && n[t] === "visible");
|
|
2694
|
+
}, Qn = function(e) {
|
|
2695
|
+
return Zn(e, "overflowY");
|
|
2696
|
+
}, $n = function(e) {
|
|
2697
|
+
return Zn(e, "overflowX");
|
|
2698
|
+
}, er = function(e, t) {
|
|
2699
|
+
var n = t.ownerDocument, r = t;
|
|
2700
|
+
do {
|
|
2701
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), rr(e, r)) {
|
|
2702
|
+
var i = ir(e, r);
|
|
2703
|
+
if (i[1] > i[2]) return !0;
|
|
2704
|
+
}
|
|
2705
|
+
r = r.parentNode;
|
|
2706
|
+
} while (r && r !== n.body);
|
|
2707
|
+
return !1;
|
|
2708
|
+
}, tr = function(e) {
|
|
2709
|
+
return [
|
|
2710
|
+
e.scrollTop,
|
|
2711
|
+
e.scrollHeight,
|
|
2712
|
+
e.clientHeight
|
|
2713
|
+
];
|
|
2714
|
+
}, nr = function(e) {
|
|
2715
|
+
return [
|
|
2716
|
+
e.scrollLeft,
|
|
2717
|
+
e.scrollWidth,
|
|
2718
|
+
e.clientWidth
|
|
2719
|
+
];
|
|
2720
|
+
}, rr = function(e, t) {
|
|
2721
|
+
return e === "v" ? Qn(t) : $n(t);
|
|
2722
|
+
}, ir = function(e, t) {
|
|
2723
|
+
return e === "v" ? tr(t) : nr(t);
|
|
2724
|
+
}, ar = function(e, t) {
|
|
2725
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
2726
|
+
}, or = function(e, t, n, r, i) {
|
|
2727
|
+
var a = ar(e, window.getComputedStyle(t).direction), o = a * r, s = n.target, c = t.contains(s), l = !1, u = o > 0, d = 0, f = 0;
|
|
2728
|
+
do {
|
|
2729
|
+
var p = ir(e, s), m = p[0], h = p[1] - p[2] - a * m;
|
|
2730
|
+
(m || h) && rr(e, s) && (d += h, f += m), s = s instanceof ShadowRoot ? s.host : s.parentNode;
|
|
2731
|
+
} while (!c && s !== document.body || c && (t.contains(s) || t === s));
|
|
2732
|
+
return (u && (i && Math.abs(d) < 1 || !i && o > d) || !u && (i && Math.abs(f) < 1 || !i && -o > f)) && (l = !0), l;
|
|
2733
|
+
}, sr = function(e) {
|
|
2734
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
2735
|
+
}, cr = function(e) {
|
|
2736
|
+
return [e.deltaX, e.deltaY];
|
|
2737
|
+
}, lr = function(e) {
|
|
2738
|
+
return e && "current" in e ? e.current : e;
|
|
2739
|
+
}, ur = function(e, t) {
|
|
2740
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
2741
|
+
}, dr = function(e) {
|
|
2742
|
+
return `
|
|
2743
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
2744
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
2745
|
+
`;
|
|
2746
|
+
}, fr = 0, pr = [];
|
|
2747
|
+
function mr(t) {
|
|
2748
|
+
var n = e.useRef([]), r = e.useRef([0, 0]), i = e.useRef(), a = e.useState(fr++)[0], o = e.useState(In)[0], s = e.useRef(t);
|
|
2749
|
+
e.useEffect(function() {
|
|
2750
|
+
s.current = t;
|
|
2751
|
+
}, [t]), e.useEffect(function() {
|
|
2752
|
+
if (t.inert) {
|
|
2753
|
+
document.body.classList.add(`block-interactivity-${a}`);
|
|
2754
|
+
var e = dn([t.lockRef.current], (t.shards || []).map(lr), !0).filter(Boolean);
|
|
2755
|
+
return e.forEach(function(e) {
|
|
2756
|
+
return e.classList.add(`allow-interactivity-${a}`);
|
|
2757
|
+
}), function() {
|
|
2758
|
+
document.body.classList.remove(`block-interactivity-${a}`), e.forEach(function(e) {
|
|
2759
|
+
return e.classList.remove(`allow-interactivity-${a}`);
|
|
2760
|
+
});
|
|
2761
|
+
};
|
|
2762
|
+
}
|
|
2763
|
+
}, [
|
|
2764
|
+
t.inert,
|
|
2765
|
+
t.lockRef.current,
|
|
2766
|
+
t.shards
|
|
2767
|
+
]);
|
|
2768
|
+
var c = e.useCallback(function(e, t) {
|
|
2769
|
+
if ("touches" in e && e.touches.length === 2) return !s.current.allowPinchZoom;
|
|
2770
|
+
var n = sr(e), a = r.current, o = "deltaX" in e ? e.deltaX : a[0] - n[0], c = "deltaY" in e ? e.deltaY : a[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
2771
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
2772
|
+
var f = er(d, u);
|
|
2773
|
+
if (!f) return !0;
|
|
2774
|
+
if (f ? l = d : (l = d === "v" ? "h" : "v", f = er(d, u)), !f) return !1;
|
|
2775
|
+
if (!i.current && "changedTouches" in e && (o || c) && (i.current = l), !l) return !0;
|
|
2776
|
+
var p = i.current || l;
|
|
2777
|
+
return or(p, t, e, p === "h" ? o : c, !0);
|
|
2778
|
+
}, []), l = e.useCallback(function(e) {
|
|
2779
|
+
var t = e;
|
|
2780
|
+
if (!(!pr.length || pr[pr.length - 1] !== o)) {
|
|
2781
|
+
var r = "deltaY" in t ? cr(t) : sr(t), i = n.current.filter(function(e) {
|
|
2782
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && ur(e.delta, r);
|
|
2783
|
+
})[0];
|
|
2784
|
+
if (i && i.should) {
|
|
2785
|
+
t.cancelable && t.preventDefault();
|
|
2786
|
+
return;
|
|
2787
|
+
}
|
|
2788
|
+
if (!i) {
|
|
2789
|
+
var a = (s.current.shards || []).map(lr).filter(Boolean).filter(function(e) {
|
|
2790
|
+
return e.contains(t.target);
|
|
2791
|
+
});
|
|
2792
|
+
(a.length > 0 ? c(t, a[0]) : !s.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
2793
|
+
}
|
|
2794
|
+
}
|
|
2795
|
+
}, []), u = e.useCallback(function(e, t, r, i) {
|
|
2796
|
+
var a = {
|
|
2797
|
+
name: e,
|
|
2798
|
+
delta: t,
|
|
2799
|
+
target: r,
|
|
2800
|
+
should: i,
|
|
2801
|
+
shadowParent: hr(r)
|
|
2802
|
+
};
|
|
2803
|
+
n.current.push(a), setTimeout(function() {
|
|
2804
|
+
n.current = n.current.filter(function(e) {
|
|
2805
|
+
return e !== a;
|
|
2806
|
+
});
|
|
2807
|
+
}, 1);
|
|
2808
|
+
}, []), d = e.useCallback(function(e) {
|
|
2809
|
+
r.current = sr(e), i.current = void 0;
|
|
2810
|
+
}, []), f = e.useCallback(function(e) {
|
|
2811
|
+
u(e.type, cr(e), e.target, c(e, t.lockRef.current));
|
|
2812
|
+
}, []), p = e.useCallback(function(e) {
|
|
2813
|
+
u(e.type, sr(e), e.target, c(e, t.lockRef.current));
|
|
2814
|
+
}, []);
|
|
2815
|
+
e.useEffect(function() {
|
|
2816
|
+
return pr.push(o), t.setCallbacks({
|
|
2817
|
+
onScrollCapture: f,
|
|
2818
|
+
onWheelCapture: f,
|
|
2819
|
+
onTouchMoveCapture: p
|
|
2820
|
+
}), document.addEventListener("wheel", l, Yn), document.addEventListener("touchmove", l, Yn), document.addEventListener("touchstart", d, Yn), function() {
|
|
2821
|
+
pr = pr.filter(function(e) {
|
|
2822
|
+
return e !== o;
|
|
2823
|
+
}), document.removeEventListener("wheel", l, Yn), document.removeEventListener("touchmove", l, Yn), document.removeEventListener("touchstart", d, Yn);
|
|
2824
|
+
};
|
|
2825
|
+
}, []);
|
|
2826
|
+
var m = t.removeScrollBar, h = t.inert;
|
|
2827
|
+
return e.createElement(e.Fragment, null, h ? e.createElement(o, { styles: dr(a) }) : null, m ? e.createElement(Kn, { gapMode: t.gapMode }) : null);
|
|
2828
|
+
}
|
|
2829
|
+
function hr(e) {
|
|
2830
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
2831
|
+
return t;
|
|
2832
|
+
}
|
|
2833
|
+
//#endregion
|
|
2834
|
+
//#region ../../node_modules/@huin-core/react-dialog/node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
2835
|
+
var gr = Tn(En, mr), _r = e.forwardRef(function(t, n) {
|
|
2836
|
+
return e.createElement(On, X({}, t, {
|
|
2837
|
+
ref: n,
|
|
2838
|
+
sideCar: gr
|
|
2839
|
+
}));
|
|
2840
|
+
});
|
|
2841
|
+
_r.classNames = On.classNames;
|
|
2842
|
+
//#endregion
|
|
2843
|
+
//#region ../../node_modules/aria-hidden/dist/es2015/index.js
|
|
2844
|
+
var vr = function(e) {
|
|
2845
|
+
return typeof document > "u" ? null : (Array.isArray(e) ? e[0] : e).ownerDocument.body;
|
|
2846
|
+
}, yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {}, Sr = 0, Cr = function(e) {
|
|
2847
|
+
return e && (e.host || Cr(e.parentNode));
|
|
2848
|
+
}, wr = function(e, t) {
|
|
2849
|
+
return t.map(function(t) {
|
|
2850
|
+
if (e.contains(t)) return t;
|
|
2851
|
+
var n = Cr(t);
|
|
2852
|
+
return n && e.contains(n) ? n : (console.error("aria-hidden", t, "in not contained inside", e, ". Doing nothing"), null);
|
|
2853
|
+
}).filter(function(e) {
|
|
2854
|
+
return !!e;
|
|
2855
|
+
});
|
|
2856
|
+
}, Tr = function(e, t, n, r) {
|
|
2857
|
+
var i = wr(t, Array.isArray(e) ? e : [e]);
|
|
2858
|
+
xr[n] || (xr[n] = /* @__PURE__ */ new WeakMap());
|
|
2859
|
+
var a = xr[n], o = [], s = /* @__PURE__ */ new Set(), c = new Set(i), l = function(e) {
|
|
2860
|
+
!e || s.has(e) || (s.add(e), l(e.parentNode));
|
|
2861
|
+
};
|
|
2862
|
+
i.forEach(l);
|
|
2863
|
+
var u = function(e) {
|
|
2864
|
+
!e || c.has(e) || Array.prototype.forEach.call(e.children, function(e) {
|
|
2865
|
+
if (s.has(e)) u(e);
|
|
2866
|
+
else try {
|
|
2867
|
+
var t = e.getAttribute(r), i = t !== null && t !== "false", c = (yr.get(e) || 0) + 1, l = (a.get(e) || 0) + 1;
|
|
2868
|
+
yr.set(e, c), a.set(e, l), o.push(e), c === 1 && i && br.set(e, !0), l === 1 && e.setAttribute(n, "true"), i || e.setAttribute(r, "true");
|
|
2869
|
+
} catch (t) {
|
|
2870
|
+
console.error("aria-hidden: cannot operate on ", e, t);
|
|
2871
|
+
}
|
|
2872
|
+
});
|
|
2873
|
+
};
|
|
2874
|
+
return u(t), s.clear(), Sr++, function() {
|
|
2875
|
+
o.forEach(function(e) {
|
|
2876
|
+
var t = yr.get(e) - 1, i = a.get(e) - 1;
|
|
2877
|
+
yr.set(e, t), a.set(e, i), t || (br.has(e) || e.removeAttribute(r), br.delete(e)), i || e.removeAttribute(n);
|
|
2878
|
+
}), Sr--, Sr || (yr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), br = /* @__PURE__ */ new WeakMap(), xr = {});
|
|
2879
|
+
};
|
|
2880
|
+
}, Er = function(e, t, n) {
|
|
2881
|
+
n === void 0 && (n = "data-aria-hidden");
|
|
2882
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), i = t || vr(e);
|
|
2883
|
+
return i ? (r.push.apply(r, Array.from(i.querySelectorAll("[aria-live], script"))), Tr(r, i, n, "aria-hidden")) : function() {
|
|
2884
|
+
return null;
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2887
|
+
//#endregion
|
|
2888
|
+
//#region ../../node_modules/@huin-core/react-use-escape-keydown/dist/index.mjs
|
|
2889
|
+
function Dr(t, n = globalThis?.document) {
|
|
2890
|
+
let r = k(t);
|
|
2891
|
+
e.useEffect(() => {
|
|
2892
|
+
let e = (e) => {
|
|
2893
|
+
e.key === "Escape" && r(e);
|
|
2894
|
+
};
|
|
2895
|
+
return n.addEventListener("keydown", e, { capture: !0 }), () => n.removeEventListener("keydown", e, { capture: !0 });
|
|
2896
|
+
}, [r, n]);
|
|
2897
|
+
}
|
|
2898
|
+
//#endregion
|
|
2899
|
+
//#region ../../node_modules/@huin-core/react-dismissable-layer/dist/index.mjs
|
|
2900
|
+
var Or = "DismissableLayer", kr = "dismissableLayer.update", Ar = "dismissableLayer.pointerDownOutside", jr = "dismissableLayer.focusOutside", Mr, Nr = e.createContext({
|
|
2901
|
+
layers: /* @__PURE__ */ new Set(),
|
|
2902
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
2903
|
+
branches: /* @__PURE__ */ new Set()
|
|
2904
|
+
}), Pr = e.forwardRef((t, n) => {
|
|
2905
|
+
let { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: a, onFocusOutside: s, onInteractOutside: c, onDismiss: l, ...u } = t, d = e.useContext(Nr), [f, m] = e.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, _] = e.useState({}), v = g(n, (e) => m(e)), y = Array.from(d.layers), [b] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = y.indexOf(b), S = f ? y.indexOf(f) : -1, C = d.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= x, T = Lr((e) => {
|
|
2906
|
+
let t = e.target, n = [...d.branches].some((e) => e.contains(t));
|
|
2907
|
+
!w || n || (a?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
2908
|
+
}, h), E = Rr((e) => {
|
|
2909
|
+
let t = e.target;
|
|
2910
|
+
[...d.branches].some((e) => e.contains(t)) || (s?.(e), c?.(e), e.defaultPrevented || l?.());
|
|
2911
|
+
}, h);
|
|
2912
|
+
return Dr((e) => {
|
|
2913
|
+
S === d.layers.size - 1 && (i?.(e), !e.defaultPrevented && l && (e.preventDefault(), l()));
|
|
2914
|
+
}, h), e.useEffect(() => {
|
|
2915
|
+
if (f) return r && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Mr = h.body.style.pointerEvents, h.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(f)), d.layers.add(f), zr(), () => {
|
|
2916
|
+
r && d.layersWithOutsidePointerEventsDisabled.size === 1 && (h.body.style.pointerEvents = Mr);
|
|
2917
|
+
};
|
|
2918
|
+
}, [
|
|
2919
|
+
f,
|
|
2920
|
+
h,
|
|
2921
|
+
r,
|
|
2922
|
+
d
|
|
2923
|
+
]), e.useEffect(() => () => {
|
|
2924
|
+
f && (d.layers.delete(f), d.layersWithOutsidePointerEventsDisabled.delete(f), zr());
|
|
2925
|
+
}, [f, d]), e.useEffect(() => {
|
|
2926
|
+
let e = () => _({});
|
|
2927
|
+
return document.addEventListener(kr, e), () => document.removeEventListener(kr, e);
|
|
2928
|
+
}, []), /* @__PURE__ */ o(O.div, {
|
|
2929
|
+
...u,
|
|
2930
|
+
ref: v,
|
|
2931
|
+
style: {
|
|
2932
|
+
pointerEvents: C ? w ? "auto" : "none" : void 0,
|
|
2933
|
+
...t.style
|
|
2934
|
+
},
|
|
2935
|
+
onFocusCapture: p(t.onFocusCapture, E.onFocusCapture),
|
|
2936
|
+
onBlurCapture: p(t.onBlurCapture, E.onBlurCapture),
|
|
2937
|
+
onPointerDownCapture: p(t.onPointerDownCapture, T.onPointerDownCapture)
|
|
2938
|
+
});
|
|
2939
|
+
});
|
|
2940
|
+
Pr.displayName = Or;
|
|
2941
|
+
var Fr = "DismissableLayerBranch", Ir = e.forwardRef((t, n) => {
|
|
2942
|
+
let r = e.useContext(Nr), i = e.useRef(null), a = g(n, i);
|
|
2943
|
+
return e.useEffect(() => {
|
|
2944
|
+
let e = i.current;
|
|
2945
|
+
if (e) return r.branches.add(e), () => {
|
|
2946
|
+
r.branches.delete(e);
|
|
2947
|
+
};
|
|
2948
|
+
}, [r.branches]), /* @__PURE__ */ o(O.div, {
|
|
2949
|
+
...t,
|
|
2950
|
+
ref: a
|
|
2951
|
+
});
|
|
2952
|
+
});
|
|
2953
|
+
Ir.displayName = Fr;
|
|
2954
|
+
function Lr(t, n = globalThis?.document) {
|
|
2955
|
+
let r = k(t), i = e.useRef(!1), a = e.useRef(() => {});
|
|
2956
|
+
return e.useEffect(() => {
|
|
2957
|
+
let e = (e) => {
|
|
2958
|
+
if (e.target && !i.current) {
|
|
2959
|
+
let t = function() {
|
|
2960
|
+
Br(Ar, r, i, { discrete: !0 });
|
|
2961
|
+
}, i = { originalEvent: e };
|
|
2962
|
+
e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = t, n.addEventListener("click", a.current, { once: !0 })) : t();
|
|
2963
|
+
} else n.removeEventListener("click", a.current);
|
|
2964
|
+
i.current = !1;
|
|
2965
|
+
}, t = window.setTimeout(() => {
|
|
2966
|
+
n.addEventListener("pointerdown", e);
|
|
2967
|
+
}, 0);
|
|
2968
|
+
return () => {
|
|
2969
|
+
window.clearTimeout(t), n.removeEventListener("pointerdown", e), n.removeEventListener("click", a.current);
|
|
2970
|
+
};
|
|
2971
|
+
}, [n, r]), { onPointerDownCapture: () => i.current = !0 };
|
|
2972
|
+
}
|
|
2973
|
+
function Rr(t, n = globalThis?.document) {
|
|
2974
|
+
let r = k(t), i = e.useRef(!1);
|
|
2975
|
+
return e.useEffect(() => {
|
|
2976
|
+
let e = (e) => {
|
|
2977
|
+
e.target && !i.current && Br(jr, r, { originalEvent: e }, { discrete: !1 });
|
|
2978
|
+
};
|
|
2979
|
+
return n.addEventListener("focusin", e), () => n.removeEventListener("focusin", e);
|
|
2980
|
+
}, [n, r]), {
|
|
2981
|
+
onFocusCapture: () => i.current = !0,
|
|
2982
|
+
onBlurCapture: () => i.current = !1
|
|
2983
|
+
};
|
|
2984
|
+
}
|
|
2985
|
+
function zr() {
|
|
2986
|
+
let e = new CustomEvent(kr);
|
|
2987
|
+
document.dispatchEvent(e);
|
|
2988
|
+
}
|
|
2989
|
+
function Br(e, t, n, { discrete: r }) {
|
|
2990
|
+
let i = n.originalEvent.target, a = new CustomEvent(e, {
|
|
2991
|
+
bubbles: !1,
|
|
2992
|
+
cancelable: !0,
|
|
2993
|
+
detail: n
|
|
2994
|
+
});
|
|
2995
|
+
t && i.addEventListener(e, t, { once: !0 }), r ? ee(i, a) : i.dispatchEvent(a);
|
|
2996
|
+
}
|
|
2997
|
+
//#endregion
|
|
2998
|
+
//#region ../../node_modules/@huin-core/react-focus-scope/dist/index.mjs
|
|
2999
|
+
var Vr = "focusScope.autoFocusOnMount", Hr = "focusScope.autoFocusOnUnmount", Ur = {
|
|
3000
|
+
bubbles: !1,
|
|
3001
|
+
cancelable: !0
|
|
3002
|
+
}, Wr = "FocusScope", Gr = e.forwardRef((t, n) => {
|
|
3003
|
+
let { loop: r = !1, trapped: i = !1, onMountAutoFocus: a, onUnmountAutoFocus: s, ...c } = t, [l, u] = e.useState(null), d = k(a), f = k(s), p = e.useRef(null), m = g(n, (e) => u(e)), h = e.useRef({
|
|
3004
|
+
paused: !1,
|
|
3005
|
+
pause() {
|
|
3006
|
+
this.paused = !0;
|
|
3007
|
+
},
|
|
3008
|
+
resume() {
|
|
3009
|
+
this.paused = !1;
|
|
3010
|
+
}
|
|
3011
|
+
}).current;
|
|
3012
|
+
e.useEffect(() => {
|
|
3013
|
+
if (i) {
|
|
3014
|
+
let e = function(e) {
|
|
3015
|
+
if (h.paused || !l) return;
|
|
3016
|
+
let t = e.target;
|
|
3017
|
+
l.contains(t) ? p.current = t : Z(p.current, { select: !0 });
|
|
3018
|
+
}, t = function(e) {
|
|
3019
|
+
if (h.paused || !l) return;
|
|
3020
|
+
let t = e.relatedTarget;
|
|
3021
|
+
t !== null && (l.contains(t) || Z(p.current, { select: !0 }));
|
|
3022
|
+
}, n = function(e) {
|
|
3023
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Z(l);
|
|
3024
|
+
};
|
|
3025
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
3026
|
+
let r = new MutationObserver(n);
|
|
3027
|
+
return l && r.observe(l, {
|
|
3028
|
+
childList: !0,
|
|
3029
|
+
subtree: !0
|
|
3030
|
+
}), () => {
|
|
3031
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
3032
|
+
};
|
|
3033
|
+
}
|
|
3034
|
+
}, [
|
|
3035
|
+
i,
|
|
3036
|
+
l,
|
|
3037
|
+
h.paused
|
|
3038
|
+
]), e.useEffect(() => {
|
|
3039
|
+
if (l) {
|
|
3040
|
+
Qr.add(h);
|
|
3041
|
+
let e = document.activeElement;
|
|
3042
|
+
if (!l.contains(e)) {
|
|
3043
|
+
let t = new CustomEvent(Vr, Ur);
|
|
3044
|
+
l.addEventListener(Vr, d), l.dispatchEvent(t), t.defaultPrevented || (Kr(ti(Jr(l)), { select: !0 }), document.activeElement === e && Z(l));
|
|
3045
|
+
}
|
|
3046
|
+
return () => {
|
|
3047
|
+
l.removeEventListener(Vr, d), setTimeout(() => {
|
|
3048
|
+
let t = new CustomEvent(Hr, Ur);
|
|
3049
|
+
l.addEventListener(Hr, f), l.dispatchEvent(t), t.defaultPrevented || Z(e ?? document.body, { select: !0 }), l.removeEventListener(Hr, f), Qr.remove(h);
|
|
3050
|
+
}, 0);
|
|
3051
|
+
};
|
|
3052
|
+
}
|
|
3053
|
+
}, [
|
|
3054
|
+
l,
|
|
3055
|
+
d,
|
|
3056
|
+
f,
|
|
3057
|
+
h
|
|
3058
|
+
]);
|
|
3059
|
+
let _ = e.useCallback((e) => {
|
|
3060
|
+
if (!r && !i || h.paused) return;
|
|
3061
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
3062
|
+
if (t && n) {
|
|
3063
|
+
let t = e.currentTarget, [i, a] = qr(t);
|
|
3064
|
+
i && a ? !e.shiftKey && n === a ? (e.preventDefault(), r && Z(i, { select: !0 })) : e.shiftKey && n === i && (e.preventDefault(), r && Z(a, { select: !0 })) : n === t && e.preventDefault();
|
|
3065
|
+
}
|
|
3066
|
+
}, [
|
|
3067
|
+
r,
|
|
3068
|
+
i,
|
|
3069
|
+
h.paused
|
|
3070
|
+
]);
|
|
3071
|
+
return /* @__PURE__ */ o(O.div, {
|
|
3072
|
+
tabIndex: -1,
|
|
3073
|
+
...c,
|
|
3074
|
+
ref: m,
|
|
3075
|
+
onKeyDown: _
|
|
3076
|
+
});
|
|
3077
|
+
});
|
|
3078
|
+
Gr.displayName = Wr;
|
|
3079
|
+
function Kr(e, { select: t = !1 } = {}) {
|
|
3080
|
+
let n = document.activeElement;
|
|
3081
|
+
for (let r of e) if (Z(r, { select: t }), document.activeElement !== n) return;
|
|
3082
|
+
}
|
|
3083
|
+
function qr(e) {
|
|
3084
|
+
let t = Jr(e);
|
|
3085
|
+
return [Yr(t, e), Yr(t.reverse(), e)];
|
|
3086
|
+
}
|
|
3087
|
+
function Jr(e) {
|
|
3088
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
3089
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
3090
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
3091
|
+
} });
|
|
3092
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
3093
|
+
return t;
|
|
3094
|
+
}
|
|
3095
|
+
function Yr(e, t) {
|
|
3096
|
+
for (let n of e) if (!Xr(n, { upTo: t })) return n;
|
|
3097
|
+
}
|
|
3098
|
+
function Xr(e, { upTo: t }) {
|
|
3099
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3100
|
+
for (; e;) {
|
|
3101
|
+
if (t !== void 0 && e === t) return !1;
|
|
3102
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
3103
|
+
e = e.parentElement;
|
|
3104
|
+
}
|
|
3105
|
+
return !1;
|
|
3106
|
+
}
|
|
3107
|
+
function Zr(e) {
|
|
3108
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
3109
|
+
}
|
|
3110
|
+
function Z(e, { select: t = !1 } = {}) {
|
|
3111
|
+
if (e && e.focus) {
|
|
3112
|
+
let n = document.activeElement;
|
|
3113
|
+
e.focus({ preventScroll: !0 }), e !== n && Zr(e) && t && e.select();
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
var Qr = $r();
|
|
3117
|
+
function $r() {
|
|
3118
|
+
let e = [];
|
|
3119
|
+
return {
|
|
3120
|
+
add(t) {
|
|
3121
|
+
let n = e[0];
|
|
3122
|
+
t !== n && n?.pause(), e = ei(e, t), e.unshift(t);
|
|
3123
|
+
},
|
|
3124
|
+
remove(t) {
|
|
3125
|
+
e = ei(e, t), e[0]?.resume();
|
|
3126
|
+
}
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3129
|
+
function ei(e, t) {
|
|
3130
|
+
let n = [...e], r = n.indexOf(t);
|
|
3131
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
3132
|
+
}
|
|
3133
|
+
function ti(e) {
|
|
3134
|
+
return e.filter((e) => e.tagName !== "A");
|
|
3135
|
+
}
|
|
3136
|
+
//#endregion
|
|
3137
|
+
//#region ../../node_modules/@huin-core/react-focus-guards/dist/index.mjs
|
|
3138
|
+
var ni = 0;
|
|
3139
|
+
function ri() {
|
|
3140
|
+
e.useEffect(() => {
|
|
3141
|
+
let e = document.querySelectorAll("[data-huin-core-focus-guard]");
|
|
3142
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? ii()), document.body.insertAdjacentElement("beforeend", e[1] ?? ii()), ni++, () => {
|
|
3143
|
+
ni === 1 && document.querySelectorAll("[data-huin-core-focus-guard]").forEach((e) => e.remove()), ni--;
|
|
3144
|
+
};
|
|
3145
|
+
}, []);
|
|
3146
|
+
}
|
|
3147
|
+
function ii() {
|
|
3148
|
+
let e = document.createElement("span");
|
|
3149
|
+
return e.setAttribute("data-huin-core-focus-guard", ""), e.tabIndex = 0, e.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none", e;
|
|
3150
|
+
}
|
|
3151
|
+
//#endregion
|
|
3152
|
+
//#region ../../node_modules/@huin-core/react-dialog/dist/index.mjs
|
|
3153
|
+
var ai = "Dialog", [oi, si] = d(ai), [ci, Q] = oi(ai), li = (t) => {
|
|
3154
|
+
let { __scopeDialog: n, children: r, open: i, defaultOpen: a, onOpenChange: s, modal: c = !0 } = t, l = e.useRef(null), u = e.useRef(null), [d = !1, f] = A({
|
|
3155
|
+
prop: i,
|
|
3156
|
+
defaultProp: a,
|
|
3157
|
+
onChange: s
|
|
3158
|
+
});
|
|
3159
|
+
return /* @__PURE__ */ o(ci, {
|
|
3160
|
+
scope: n,
|
|
3161
|
+
triggerRef: l,
|
|
3162
|
+
contentRef: u,
|
|
3163
|
+
contentId: D(),
|
|
3164
|
+
titleId: D(),
|
|
3165
|
+
descriptionId: D(),
|
|
3166
|
+
open: d,
|
|
3167
|
+
onOpenChange: f,
|
|
3168
|
+
onOpenToggle: e.useCallback(() => f((e) => !e), [f]),
|
|
3169
|
+
modal: c,
|
|
3170
|
+
children: r
|
|
3171
|
+
});
|
|
3172
|
+
};
|
|
3173
|
+
li.displayName = ai;
|
|
3174
|
+
function ui(e) {
|
|
3175
|
+
return e ? "open" : "closed";
|
|
3176
|
+
}
|
|
3177
|
+
var di = li, fi = "DialogTrigger", pi = t.forwardRef((e, t) => {
|
|
3178
|
+
let { __scopeDialog: n, ...r } = e, i = Q(fi, n), a = g(t, i.triggerRef);
|
|
3179
|
+
return /* @__PURE__ */ o(O.button, {
|
|
3180
|
+
type: "button",
|
|
3181
|
+
"aria-haspopup": "dialog",
|
|
3182
|
+
"aria-expanded": i.open,
|
|
3183
|
+
"aria-controls": i.contentId,
|
|
3184
|
+
"data-state": ui(i.open),
|
|
3185
|
+
...r,
|
|
3186
|
+
ref: a,
|
|
3187
|
+
onClick: p(e.onClick, i.onOpenToggle)
|
|
3188
|
+
});
|
|
3189
|
+
});
|
|
3190
|
+
pi.displayName = fi;
|
|
3191
|
+
var mi = "DialogPortal", [hi] = d(ai), [gi, _i] = hi(mi, { forceMount: void 0 }), vi = (e) => {
|
|
3192
|
+
let { __scopeDialog: n, forceMount: r, children: i, container: a } = e, s = Q(mi, n);
|
|
3193
|
+
return /* @__PURE__ */ o(gi, {
|
|
3194
|
+
scope: n,
|
|
3195
|
+
forceMount: r,
|
|
3196
|
+
children: t.Children.map(i, (e) => /* @__PURE__ */ o(ve, {
|
|
3197
|
+
present: r || s.open,
|
|
3198
|
+
children: /* @__PURE__ */ o(ln, {
|
|
3199
|
+
asChild: !0,
|
|
3200
|
+
container: a,
|
|
3201
|
+
children: e
|
|
3202
|
+
})
|
|
3203
|
+
}))
|
|
3204
|
+
});
|
|
3205
|
+
};
|
|
3206
|
+
vi.displayName = mi;
|
|
3207
|
+
var yi = "DialogOverlay", bi = t.forwardRef((e, t) => {
|
|
3208
|
+
let n = _i(yi, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Q(yi, e.__scopeDialog);
|
|
3209
|
+
return a.modal ? /* @__PURE__ */ o(ve, {
|
|
3210
|
+
present: r || a.open,
|
|
3211
|
+
children: /* @__PURE__ */ o(xi, {
|
|
3212
|
+
...i,
|
|
3213
|
+
ref: t
|
|
3214
|
+
})
|
|
3215
|
+
}) : null;
|
|
3216
|
+
});
|
|
3217
|
+
bi.displayName = yi;
|
|
3218
|
+
var xi = t.forwardRef((e, t) => {
|
|
3219
|
+
let { __scopeDialog: n, ...r } = e, i = Q(yi, n);
|
|
3220
|
+
return /* @__PURE__ */ o(_r, {
|
|
3221
|
+
as: _,
|
|
3222
|
+
allowPinchZoom: !0,
|
|
3223
|
+
shards: [i.contentRef],
|
|
3224
|
+
children: /* @__PURE__ */ o(O.div, {
|
|
3225
|
+
"data-state": ui(i.open),
|
|
3226
|
+
...r,
|
|
3227
|
+
ref: t,
|
|
3228
|
+
style: {
|
|
3229
|
+
pointerEvents: "auto",
|
|
3230
|
+
...r.style
|
|
3231
|
+
}
|
|
3232
|
+
})
|
|
3233
|
+
});
|
|
3234
|
+
}), Si = "DialogTitle", Ci = t.forwardRef((e, t) => {
|
|
3235
|
+
let { __scopeDialog: n, ...r } = e, i = Q(Si, n);
|
|
3236
|
+
return /* @__PURE__ */ o(O.h2, {
|
|
3237
|
+
id: i.titleId,
|
|
3238
|
+
...r,
|
|
3239
|
+
ref: t
|
|
3240
|
+
});
|
|
3241
|
+
});
|
|
3242
|
+
Ci.displayName = Si;
|
|
3243
|
+
var $ = "DialogContent", wi = t.forwardRef((e, t) => {
|
|
3244
|
+
let n = _i($, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = Q($, e.__scopeDialog);
|
|
3245
|
+
return /* @__PURE__ */ o(ve, {
|
|
3246
|
+
present: r || a.open,
|
|
3247
|
+
children: a.modal ? /* @__PURE__ */ o(Ti, {
|
|
3248
|
+
...i,
|
|
3249
|
+
ref: t
|
|
3250
|
+
}) : /* @__PURE__ */ o(Ei, {
|
|
3251
|
+
...i,
|
|
3252
|
+
ref: t
|
|
3253
|
+
})
|
|
3254
|
+
});
|
|
3255
|
+
});
|
|
3256
|
+
wi.displayName = $;
|
|
3257
|
+
var Ti = t.forwardRef((e, n) => {
|
|
3258
|
+
let r = Q($, e.__scopeDialog), i = t.useRef(null), a = g(n, r.contentRef, i);
|
|
3259
|
+
return t.useEffect(() => {
|
|
3260
|
+
let e = i.current;
|
|
3261
|
+
if (e) return Er(e);
|
|
3262
|
+
}, []), /* @__PURE__ */ o(Di, {
|
|
3263
|
+
...e,
|
|
3264
|
+
ref: a,
|
|
3265
|
+
trapFocus: r.open,
|
|
3266
|
+
disableOutsidePointerEvents: !0,
|
|
3267
|
+
onCloseAutoFocus: p(e.onCloseAutoFocus, (e) => {
|
|
3268
|
+
e.preventDefault(), r.triggerRef.current?.focus();
|
|
3269
|
+
}),
|
|
3270
|
+
onPointerDownOutside: p(e.onPointerDownOutside, (e) => {
|
|
3271
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
3272
|
+
(t.button === 2 || n) && e.preventDefault();
|
|
3273
|
+
}),
|
|
3274
|
+
onFocusOutside: p(e.onFocusOutside, (e) => e.preventDefault())
|
|
3275
|
+
});
|
|
3276
|
+
}), Ei = t.forwardRef((e, n) => {
|
|
3277
|
+
let r = Q($, e.__scopeDialog), i = t.useRef(!1), a = t.useRef(!1);
|
|
3278
|
+
return /* @__PURE__ */ o(Di, {
|
|
3279
|
+
...e,
|
|
3280
|
+
ref: n,
|
|
3281
|
+
trapFocus: !1,
|
|
3282
|
+
disableOutsidePointerEvents: !1,
|
|
3283
|
+
onCloseAutoFocus: (t) => {
|
|
3284
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (i.current || r.triggerRef.current?.focus(), t.preventDefault()), i.current = !1, a.current = !1;
|
|
3285
|
+
},
|
|
3286
|
+
onInteractOutside: (t) => {
|
|
3287
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (i.current = !0, t.detail.originalEvent.type === "pointerdown" && (a.current = !0));
|
|
3288
|
+
let n = t.target;
|
|
3289
|
+
r.triggerRef.current?.contains(n) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && a.current && t.preventDefault();
|
|
3290
|
+
}
|
|
3291
|
+
});
|
|
3292
|
+
}), Di = t.forwardRef((e, n) => {
|
|
3293
|
+
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: c, onCloseAutoFocus: l, ...u } = e, d = Q($, r), f = t.useRef(null), p = g(n, f);
|
|
3294
|
+
return ri(), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(Gr, {
|
|
3295
|
+
asChild: !0,
|
|
3296
|
+
loop: !0,
|
|
3297
|
+
trapped: i,
|
|
3298
|
+
onMountAutoFocus: c,
|
|
3299
|
+
onUnmountAutoFocus: l,
|
|
3300
|
+
children: /* @__PURE__ */ o(Pr, {
|
|
3301
|
+
role: "dialog",
|
|
3302
|
+
id: d.contentId,
|
|
3303
|
+
"aria-describedby": d.descriptionId,
|
|
3304
|
+
"aria-labelledby": d.titleId,
|
|
3305
|
+
"data-state": ui(d.open),
|
|
3306
|
+
...u,
|
|
3307
|
+
ref: p,
|
|
3308
|
+
onDismiss: () => d.onOpenChange(!1)
|
|
3309
|
+
})
|
|
3310
|
+
}), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(ji, { titleId: d.titleId }), /* @__PURE__ */ o(Ni, {
|
|
3311
|
+
contentRef: f,
|
|
3312
|
+
descriptionId: d.descriptionId
|
|
3313
|
+
})] })] });
|
|
3314
|
+
}), Oi = "DialogTitleWarning", [ki, Ai] = u(Oi, {
|
|
3315
|
+
contentName: $,
|
|
3316
|
+
titleName: Si,
|
|
3317
|
+
docsSlug: "dialog"
|
|
3318
|
+
}), ji = ({ titleId: e }) => {
|
|
3319
|
+
let n = Ai(Oi), r = `\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users.
|
|
3320
|
+
|
|
3321
|
+
If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
3322
|
+
|
|
3323
|
+
For more information, see https://huinhub.com/primitives/docs/components/${n.docsSlug}`;
|
|
3324
|
+
return t.useEffect(() => {
|
|
3325
|
+
e && (document.getElementById(e) || console.error(r));
|
|
3326
|
+
}, [r, e]), null;
|
|
3327
|
+
}, Mi = "DialogDescriptionWarning", Ni = ({ contentRef: e, descriptionId: n }) => {
|
|
3328
|
+
let r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ai(Mi).contentName}}.`;
|
|
3329
|
+
return t.useEffect(() => {
|
|
3330
|
+
let t = e.current?.getAttribute("aria-describedby");
|
|
3331
|
+
n && t && (document.getElementById(n) || console.warn(r));
|
|
3332
|
+
}, [
|
|
3333
|
+
r,
|
|
3334
|
+
e,
|
|
3335
|
+
n
|
|
3336
|
+
]), null;
|
|
3337
|
+
}, Pi = "DialogDescription", Fi = t.forwardRef((e, t) => {
|
|
3338
|
+
let { __scopeDialog: n, className: r, ...i } = e, a = Q(Pi, n);
|
|
3339
|
+
return /* @__PURE__ */ o(O.p, {
|
|
3340
|
+
id: a.descriptionId,
|
|
3341
|
+
...i,
|
|
3342
|
+
ref: t
|
|
3343
|
+
});
|
|
3344
|
+
});
|
|
3345
|
+
Fi.displayName = Pi;
|
|
3346
|
+
var Ii = "DialogClose", Li = t.forwardRef((e, t) => {
|
|
3347
|
+
let { __scopeDialog: n, ...r } = e, i = Q(Ii, n);
|
|
3348
|
+
return /* @__PURE__ */ o(O.button, {
|
|
3349
|
+
type: "button",
|
|
3350
|
+
...r,
|
|
3351
|
+
ref: t,
|
|
3352
|
+
onClick: p(e.onClick, () => i.onOpenChange(!1))
|
|
3353
|
+
});
|
|
3354
|
+
});
|
|
3355
|
+
Li.displayName = Ii;
|
|
3356
|
+
//#endregion
|
|
3357
|
+
//#region ../../node_modules/class-variance-authority/dist/index.mjs
|
|
3358
|
+
var Ri = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zi = Re, Bi = (e, t) => (n) => {
|
|
3359
|
+
if (t?.variants == null) return zi(e, n?.class, n?.className);
|
|
3360
|
+
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
3361
|
+
let t = n?.[e], a = i?.[e];
|
|
3362
|
+
if (t === null) return null;
|
|
3363
|
+
let o = Ri(t) || Ri(a);
|
|
3364
|
+
return r[e][o];
|
|
3365
|
+
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
3366
|
+
let [n, r] = t;
|
|
3367
|
+
return r === void 0 || (e[n] = r), e;
|
|
3368
|
+
}, {});
|
|
3369
|
+
return zi(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
3370
|
+
let { class: n, className: r, ...a } = t;
|
|
3371
|
+
return Object.entries(a).every((e) => {
|
|
3372
|
+
let [t, n] = e;
|
|
3373
|
+
return Array.isArray(n) ? n.includes({
|
|
3374
|
+
...i,
|
|
3375
|
+
...o
|
|
3376
|
+
}[t]) : {
|
|
3377
|
+
...i,
|
|
3378
|
+
...o
|
|
3379
|
+
}[t] === n;
|
|
3380
|
+
}) ? [
|
|
3381
|
+
...e,
|
|
3382
|
+
n,
|
|
3383
|
+
r
|
|
3384
|
+
] : e;
|
|
3385
|
+
}, []), n?.class, n?.className);
|
|
3386
|
+
}, Vi = Bi("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", {
|
|
3387
|
+
variants: {
|
|
3388
|
+
variant: {
|
|
3389
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
3390
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
3391
|
+
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
3392
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
3393
|
+
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
3394
|
+
link: "text-primary underline-offset-4 hover:underline"
|
|
3395
|
+
},
|
|
3396
|
+
size: {
|
|
3397
|
+
default: "h-10 px-4 py-2",
|
|
3398
|
+
sm: "h-9 rounded-md px-3",
|
|
3399
|
+
lg: "h-11 rounded-md px-8",
|
|
3400
|
+
icon: "h-10 w-10"
|
|
3401
|
+
}
|
|
3402
|
+
},
|
|
3403
|
+
defaultVariants: {
|
|
3404
|
+
variant: "default",
|
|
3405
|
+
size: "default"
|
|
3406
|
+
}
|
|
3407
|
+
}), Hi = e.forwardRef(({ asChild: t = !1, variant: n, size: r, className: i, ...a }, o) => {
|
|
3408
|
+
let s = t ? _ : O.button;
|
|
3409
|
+
return /* @__PURE__ */ e.createElement(s, {
|
|
3410
|
+
ref: o,
|
|
3411
|
+
className: Y(Vi({
|
|
3412
|
+
variant: n,
|
|
3413
|
+
size: r,
|
|
3414
|
+
className: i
|
|
3415
|
+
})),
|
|
3416
|
+
...a
|
|
3417
|
+
});
|
|
3418
|
+
});
|
|
3419
|
+
Hi.displayName = "Button";
|
|
3420
|
+
//#endregion
|
|
3421
|
+
//#region src/ui/components/Dialog.tsx
|
|
3422
|
+
var Ui = Bi("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500", {
|
|
3423
|
+
variants: { variant: {
|
|
3424
|
+
center: "left-[50%] top-[50%] grid w-full h-full max-w-5/6 max-h-5/6 translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 sm:rounded-lg",
|
|
3425
|
+
top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
|
|
3426
|
+
bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
|
|
3427
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
|
|
3428
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
|
|
3429
|
+
} },
|
|
3430
|
+
defaultVariants: { variant: "center" }
|
|
3431
|
+
}), Wi = di, Gi = vi, Ki = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(bi, {
|
|
3432
|
+
ref: r,
|
|
3433
|
+
className: Y("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
3434
|
+
...n
|
|
3435
|
+
}));
|
|
3436
|
+
Ki.displayName = bi.displayName;
|
|
3437
|
+
var qi = e.forwardRef(({ className: t, variant: n, children: r, ...i }, a) => /* @__PURE__ */ e.createElement(Gi, null, /* @__PURE__ */ e.createElement(Ki, null), /* @__PURE__ */ e.createElement(wi, {
|
|
3438
|
+
ref: a,
|
|
3439
|
+
className: Y(Ui({
|
|
3440
|
+
variant: n,
|
|
3441
|
+
className: t
|
|
3442
|
+
})),
|
|
3443
|
+
...i
|
|
3444
|
+
}, r, /* @__PURE__ */ e.createElement(Li, { className: "absolute right-2 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground" }, /* @__PURE__ */ e.createElement(Hi, {
|
|
3445
|
+
variant: "ghost",
|
|
3446
|
+
size: "icon"
|
|
3447
|
+
}, /* @__PURE__ */ e.createElement("svg", {
|
|
3448
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3449
|
+
viewBox: "0 0 24 24",
|
|
3450
|
+
className: "!size-4",
|
|
3451
|
+
fill: "none",
|
|
3452
|
+
stroke: "currentColor",
|
|
3453
|
+
strokeWidth: "1.5",
|
|
3454
|
+
strokeLinecap: "round",
|
|
3455
|
+
strokeLinejoin: "round"
|
|
3456
|
+
}, /* @__PURE__ */ e.createElement("path", { d: "M18 6 6 18" }), /* @__PURE__ */ e.createElement("path", { d: "m6 6 12 12" }))), /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Close")))));
|
|
3457
|
+
qi.displayName = wi.displayName;
|
|
3458
|
+
var Ji = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3459
|
+
className: Y("flex flex-col space-y-1.5 text-center sm:text-left", t),
|
|
3460
|
+
...n
|
|
3461
|
+
});
|
|
3462
|
+
Ji.displayName = "DialogHeader";
|
|
3463
|
+
var Yi = ({ className: t, ...n }) => /* @__PURE__ */ e.createElement("div", {
|
|
3464
|
+
className: Y("flex flex-col-reverse h-fit sm:flex-row sm:justify-end sm:space-x-2 mt-auto", t),
|
|
3465
|
+
...n
|
|
3466
|
+
});
|
|
3467
|
+
Yi.displayName = "DialogFooter";
|
|
3468
|
+
var Xi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Ci, {
|
|
3469
|
+
ref: r,
|
|
3470
|
+
className: Y("text-lg font-semibold leading-none tracking-tight", t),
|
|
3471
|
+
...n
|
|
3472
|
+
}));
|
|
3473
|
+
Xi.displayName = Ci.displayName;
|
|
3474
|
+
var Zi = e.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ e.createElement(Fi, {
|
|
3475
|
+
ref: r,
|
|
3476
|
+
className: Y("text-sm text-muted-foreground", t),
|
|
3477
|
+
...n
|
|
3478
|
+
}));
|
|
3479
|
+
Zi.displayName = Fi.displayName;
|
|
3480
|
+
//#endregion
|
|
3481
|
+
//#region src/ui/widgets/MarkdownViewer.tsx
|
|
3482
|
+
var Qi = (e) => {
|
|
3483
|
+
let n = [], r = /(\*\*[^*]+\*\*|\*[^*]+\*|`[^`]+`|\[[^\]]+\]\([^)]+\))/g, i = 0, a;
|
|
3484
|
+
for (; (a = r.exec(e)) !== null;) {
|
|
3485
|
+
a.index > i && n.push(e.slice(i, a.index));
|
|
3486
|
+
let r = a[0];
|
|
3487
|
+
if (r.startsWith("**")) n.push(/* @__PURE__ */ t.createElement("strong", null, r.slice(2, -2)));
|
|
3488
|
+
else if (r.startsWith("*")) n.push(/* @__PURE__ */ t.createElement("em", null, r.slice(1, -1)));
|
|
3489
|
+
else if (r.startsWith("`")) n.push(/* @__PURE__ */ t.createElement("code", { className: "px-1 py-0.5 bg-primary rounded text-sm text-primary-foreground" }, r.slice(1, -1)));
|
|
3490
|
+
else if (r.startsWith("[")) {
|
|
3491
|
+
let [, e, i] = r.match(/\[([^\]]+)\]\(([^)]+)\)/) || [];
|
|
3492
|
+
n.push(/* @__PURE__ */ t.createElement("a", {
|
|
3493
|
+
href: i,
|
|
3494
|
+
target: "_blank",
|
|
3495
|
+
rel: "noreferrer",
|
|
3496
|
+
className: "text-blue-400 underline"
|
|
3497
|
+
}, e));
|
|
3498
|
+
}
|
|
3499
|
+
i = a.index + r.length;
|
|
3500
|
+
}
|
|
3501
|
+
return i < e.length && n.push(e.slice(i)), n;
|
|
3502
|
+
}, $i = ({ code: e }) => /* @__PURE__ */ t.createElement("div", { className: "bg-[#0f172a] text-gray-200 rounded-xl overflow-hidden my-4 border border-gray-800" }, /* @__PURE__ */ t.createElement("div", { className: "flex items-center justify-between px-3 py-2 bg-[#111827] text-xs text-gray-400" }, /* @__PURE__ */ t.createElement("span", null, "code"), /* @__PURE__ */ t.createElement("span", null, "copy")), /* @__PURE__ */ t.createElement("pre", { className: "p-4 text-sm overflow-x-auto" }, /* @__PURE__ */ t.createElement("code", null, e))), ea = ({ rows: e }) => /* @__PURE__ */ t.createElement("div", { className: "overflow-x-auto my-4" }, /* @__PURE__ */ t.createElement("table", { className: "w-full border border-gray-700 text-sm" }, /* @__PURE__ */ t.createElement("tbody", null, e.map((e, n) => /* @__PURE__ */ t.createElement("tr", {
|
|
3503
|
+
key: n,
|
|
3504
|
+
className: "border-b border-gray-800"
|
|
3505
|
+
}, e.map((e, n) => /* @__PURE__ */ t.createElement("td", {
|
|
3506
|
+
key: n,
|
|
3507
|
+
className: "px-3 py-2"
|
|
3508
|
+
}, Qi(e)))))))), ta = ({ items: e }) => /* @__PURE__ */ t.createElement("ul", { className: "list-disc ml-6 my-2 space-y-1" }, e.map((e, n) => /* @__PURE__ */ t.createElement("li", { key: n }, Qi(e)))), na = ({ content: e, className: n = "" }) => {
|
|
3509
|
+
let r = e.split("\n"), i = [], a = [], o = !1, s = [], c = [], l = () => {
|
|
3510
|
+
s.length && (i.push(/* @__PURE__ */ t.createElement(ta, { items: s })), s = []);
|
|
3511
|
+
}, u = () => {
|
|
3512
|
+
c.length && (i.push(/* @__PURE__ */ t.createElement(ea, { rows: c })), c = []);
|
|
3513
|
+
}, d = () => {
|
|
3514
|
+
a.length && (i.push(/* @__PURE__ */ t.createElement($i, { code: a.join("\n") })), a = []);
|
|
3515
|
+
};
|
|
3516
|
+
for (let e of r) {
|
|
3517
|
+
let n = e.trim();
|
|
3518
|
+
if (n.startsWith("```")) {
|
|
3519
|
+
o ? (o = !1, d()) : (l(), u(), o = !0);
|
|
3520
|
+
continue;
|
|
3521
|
+
}
|
|
3522
|
+
if (o) {
|
|
3523
|
+
a.push(e);
|
|
3524
|
+
continue;
|
|
3525
|
+
}
|
|
3526
|
+
if (n.includes("|")) {
|
|
3527
|
+
let e = n.split("|").map((e) => e.trim()).filter(Boolean);
|
|
3528
|
+
c.push(e);
|
|
3529
|
+
continue;
|
|
3530
|
+
} else u();
|
|
3531
|
+
if (/^[-*]\s+/.test(n)) {
|
|
3532
|
+
s.push(n.replace(/^[-*]\s+/, ""));
|
|
3533
|
+
continue;
|
|
3534
|
+
} else l();
|
|
3535
|
+
if (n.startsWith("# ")) {
|
|
3536
|
+
i.push(/* @__PURE__ */ t.createElement("h1", { className: "text-3xl font-bold my-4" }, Qi(n.slice(2))));
|
|
3537
|
+
continue;
|
|
3538
|
+
}
|
|
3539
|
+
if (n.startsWith("## ")) {
|
|
3540
|
+
i.push(/* @__PURE__ */ t.createElement("h2", { className: "text-2xl font-semibold my-3" }, Qi(n.slice(3))));
|
|
3541
|
+
continue;
|
|
3542
|
+
}
|
|
3543
|
+
if (n.startsWith("### ")) {
|
|
3544
|
+
i.push(/* @__PURE__ */ t.createElement("h3", { className: "text-xl font-medium my-2" }, Qi(n.slice(4))));
|
|
3545
|
+
continue;
|
|
3546
|
+
}
|
|
3547
|
+
if (!n) {
|
|
3548
|
+
i.push(/* @__PURE__ */ t.createElement("div", { className: "h-3" }));
|
|
3549
|
+
continue;
|
|
3550
|
+
}
|
|
3551
|
+
i.push(/* @__PURE__ */ t.createElement("p", { className: "text-sm leading-7" }, Qi(n)));
|
|
3552
|
+
}
|
|
3553
|
+
return l(), u(), d(), /* @__PURE__ */ t.createElement("div", { className: `markdown-body ${n}` }, i);
|
|
3554
|
+
}, ra = () => {
|
|
3555
|
+
let { openDialogId: e, closeDialog: n, dialogMeta: r } = sa();
|
|
3556
|
+
return /* @__PURE__ */ t.createElement(Wi, {
|
|
3557
|
+
open: e !== null,
|
|
3558
|
+
onOpenChange: (e) => !e && n()
|
|
3559
|
+
}, /* @__PURE__ */ t.createElement(rn, {
|
|
3560
|
+
className: "mt-1",
|
|
3561
|
+
defaultValue: "md"
|
|
3562
|
+
}, /* @__PURE__ */ t.createElement(qi, { className: "h-fit overflow-y-auto" }, /* @__PURE__ */ t.createElement(Ji, null, /* @__PURE__ */ t.createElement(Xi, null, "Sentinel"), /* @__PURE__ */ t.createElement(Zi, null, /* @__PURE__ */ t.createElement(an, { className: "grid w-full grid-cols-4" }, /* @__PURE__ */ t.createElement(on, { value: "md" }, ".md"), /* @__PURE__ */ t.createElement(on, { value: "props-tracker" }, "Props Tracker"), /* @__PURE__ */ t.createElement(on, { value: "api-layer" }, "API Layer"), /* @__PURE__ */ t.createElement(on, { value: "event-tracker" }, "Event Tracker")))), /* @__PURE__ */ t.createElement(sn, { value: "md" }, /* @__PURE__ */ t.createElement(na, { content: r?.md || "" })), /* @__PURE__ */ t.createElement(sn, { value: "props-tracker" }, r.componentProps && /* @__PURE__ */ t.createElement("pre", { className: "bg-primary text-primary-foreground p-4 rounded-md overflow-x-auto h-full" }, /* @__PURE__ */ t.createElement("code", { className: "text-wrap block whitespace-pre text-sm" }, JSON.stringify(r.componentProps, null, 2)))), /* @__PURE__ */ t.createElement(sn, { value: "api-layer" }), /* @__PURE__ */ t.createElement(sn, { value: "event-tracker" }), /* @__PURE__ */ t.createElement(Yi, null))));
|
|
3563
|
+
}, ia = ({ children: e, active: n = !0 }) => {
|
|
3564
|
+
if (!n) return /* @__PURE__ */ t.createElement(t.Fragment, null, e);
|
|
3565
|
+
let { activeRect: r } = sa(), i = r ? r.left + r.width / 2 : 0, a = r ? r.top + r.height / 2 : 0;
|
|
3566
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(ln, null, r && /* @__PURE__ */ t.createElement("div", {
|
|
3567
|
+
className: "pointer-events-none fixed inset-0 z-50 transition-all duration-500 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3568
|
+
style: {
|
|
3569
|
+
background: `
|
|
3570
|
+
radial-gradient(
|
|
3571
|
+
circle at ${i}px ${a}px,
|
|
3572
|
+
rgba(255, 255, 255, 0.04) 0%,
|
|
3573
|
+
rgba(255,255,255,0.01) 25%,
|
|
3574
|
+
rgba(15, 15, 18, 0.35) 60%,
|
|
3575
|
+
rgba(10, 10, 12, 0.75) 100%
|
|
3576
|
+
)
|
|
3577
|
+
`,
|
|
3578
|
+
backdropFilter: "blur(8px) saturate(140%) contrast(105%)",
|
|
3579
|
+
WebkitBackdropFilter: "blur(8px) saturate(140%) contrast(105%)"
|
|
3580
|
+
}
|
|
3581
|
+
}), e));
|
|
3582
|
+
}, aa = n(void 0), oa = ({ children: e }) => {
|
|
3583
|
+
let [n, r] = i(null), [a, o] = i(null), [s, c] = i(null), [l, u] = i({});
|
|
3584
|
+
return /* @__PURE__ */ t.createElement(aa.Provider, { value: {
|
|
3585
|
+
activeId: n,
|
|
3586
|
+
activeRect: a,
|
|
3587
|
+
openDialogId: s,
|
|
3588
|
+
dialogMeta: l,
|
|
3589
|
+
registerHover: (e, t) => {
|
|
3590
|
+
r(e), o(t);
|
|
3591
|
+
},
|
|
3592
|
+
unregisterHover: (e) => {
|
|
3593
|
+
r((t) => t === e ? null : t), o((t) => t?.width && n === e ? null : a);
|
|
3594
|
+
},
|
|
3595
|
+
openDialog: (e, t, n, r) => {
|
|
3596
|
+
c(e), u({
|
|
3597
|
+
title: t,
|
|
3598
|
+
md: n,
|
|
3599
|
+
componentProps: r
|
|
3600
|
+
});
|
|
3601
|
+
},
|
|
3602
|
+
closeDialog: () => {
|
|
3603
|
+
c(null), u({});
|
|
3604
|
+
}
|
|
3605
|
+
} }, e, /* @__PURE__ */ t.createElement(ia, null, /* @__PURE__ */ t.createElement(ra, null)));
|
|
3606
|
+
}, sa = () => {
|
|
3607
|
+
let e = r(aa);
|
|
3608
|
+
if (!e) throw Error("useSentinel must be used within a SentinelProvider");
|
|
3609
|
+
return e;
|
|
3610
|
+
}, ca = ({ children: e, dialogTitle: n, dialogMd: r, componentProps: i }) => {
|
|
3611
|
+
let a = D(), { activeId: o, registerHover: s, unregisterHover: c, openDialog: l } = sa(), u = o === a;
|
|
3612
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
3613
|
+
onMouseMove: (e) => {
|
|
3614
|
+
e.stopPropagation(), s(a, e.currentTarget.getBoundingClientRect());
|
|
3615
|
+
},
|
|
3616
|
+
onMouseLeave: (e) => {
|
|
3617
|
+
e.stopPropagation(), c(a);
|
|
3618
|
+
},
|
|
3619
|
+
onClick: (e) => {
|
|
3620
|
+
e.stopPropagation(), l(a, n, r, i);
|
|
3621
|
+
},
|
|
3622
|
+
style: { zIndex: u ? 51 : "initial" },
|
|
3623
|
+
className: "relative transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]"
|
|
3624
|
+
}, /* @__PURE__ */ t.createElement("div", {
|
|
3625
|
+
className: "w-full h-full p-0.5 transition-all duration-300 ease-[cubic-bezier(0.16,1,0.3,1)]",
|
|
3626
|
+
style: {
|
|
3627
|
+
zIndex: u ? 51 : "auto",
|
|
3628
|
+
border: u ? "2px dashed rgba(99, 102, 241, 0.55)" : "2px solid transparent",
|
|
3629
|
+
borderRadius: "inherit"
|
|
3630
|
+
}
|
|
3631
|
+
}, e));
|
|
3632
|
+
};
|
|
3633
|
+
//#endregion
|
|
3634
|
+
export { ca as Sentinel, oa as SentinelProvider, sa as useSentinel };
|