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