@oomol-lab/open-flow 0.1.0-alpha.13 → 0.1.0-alpha.15
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/browser/{createResourceDialog-CWD62rU0.js → createResourceDialog-DjNiIu_v.js} +169 -169
- package/dist/browser/{esm-C04lx1pd.js → esm-DNDXFYy8.js} +1 -1
- package/dist/browser/flow-authoring.js +103 -185
- package/dist/browser/{addNodeOptions-JRHMwVOl.js → flowChanges-B-JaKseF.js} +2697 -1725
- package/dist/browser/{flowWorkspace-_qaqIyDi.js → flowWorkspace-nnM1b6Wz.js} +10501 -10485
- package/dist/browser/{typeScriptSession-D5neIpug.js → typeScriptSession-mPCiA9sV.js} +241 -222
- package/dist/browser/{useOpenInteractionType-CRgOHg5M.js → useOpenInteractionType-BmBaSEl4.js} +1255 -1028
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +1086 -2034
- package/package.json +1 -1
- package/dist/browser/change-BATEvjif.js +0 -229
package/dist/browser/{useOpenInteractionType-CRgOHg5M.js → useOpenInteractionType-BmBaSEl4.js}
RENAMED
|
@@ -156,30 +156,30 @@ var oe = {};
|
|
|
156
156
|
function V(e, t, n, r, i) {
|
|
157
157
|
if (!n && !r && !i && !e) return H(t);
|
|
158
158
|
let a = H(e);
|
|
159
|
-
return t && (a =
|
|
159
|
+
return t && (a = ce(a, t)), n && (a = ce(a, n)), r && (a = ce(a, r)), i && (a = ce(a, i)), a;
|
|
160
160
|
}
|
|
161
161
|
function se(e) {
|
|
162
162
|
if (e.length === 0) return oe;
|
|
163
163
|
if (e.length === 1) return H(e[0]);
|
|
164
164
|
let t = H(e[0]);
|
|
165
|
-
for (let n = 1; n < e.length; n += 1) t =
|
|
165
|
+
for (let n = 1; n < e.length; n += 1) t = ce(t, e[n]);
|
|
166
166
|
return t;
|
|
167
167
|
}
|
|
168
168
|
function H(e) {
|
|
169
|
-
return
|
|
169
|
+
return fe(e) ? { ...pe(e, oe) } : le(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
return
|
|
171
|
+
function ce(e, t) {
|
|
172
|
+
return fe(t) ? pe(t, e) : ue(e, t);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function le(e) {
|
|
175
175
|
let t = { ...e };
|
|
176
176
|
for (let e in t) {
|
|
177
177
|
let n = t[e];
|
|
178
|
-
|
|
178
|
+
de(e, n) && (t[e] = he(n));
|
|
179
179
|
}
|
|
180
180
|
return t;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function ue(e, t) {
|
|
183
183
|
if (!t) return e;
|
|
184
184
|
for (let n in t) {
|
|
185
185
|
let r = t[n];
|
|
@@ -188,71 +188,71 @@ function le(e, t) {
|
|
|
188
188
|
e[n] = ae(e.style, r);
|
|
189
189
|
break;
|
|
190
190
|
case "className":
|
|
191
|
-
e[n] =
|
|
191
|
+
e[n] = _e(e.className, r);
|
|
192
192
|
break;
|
|
193
|
-
default: e[n] =
|
|
193
|
+
default: e[n] = de(n, r) ? me(e[n], r) : r;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
return e;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function de(e, t) {
|
|
199
199
|
let n = e.charCodeAt(0), r = e.charCodeAt(1), i = e.charCodeAt(2);
|
|
200
200
|
return n === 111 && r === 110 && i >= 65 && i <= 90 && (typeof t == "function" || t === void 0);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function fe(e) {
|
|
203
203
|
return typeof e == "function";
|
|
204
204
|
}
|
|
205
|
-
function fe(e, t) {
|
|
206
|
-
return de(e) ? e(t) : e ?? oe;
|
|
207
|
-
}
|
|
208
205
|
function pe(e, t) {
|
|
206
|
+
return fe(e) ? e(t) : e ?? oe;
|
|
207
|
+
}
|
|
208
|
+
function me(e, t) {
|
|
209
209
|
return t ? e ? (...n) => {
|
|
210
210
|
let r = n[0];
|
|
211
|
-
if (
|
|
211
|
+
if (ve(r)) {
|
|
212
212
|
let i = r;
|
|
213
|
-
|
|
213
|
+
ge(i);
|
|
214
214
|
let a = t(...n);
|
|
215
215
|
return i.baseUIHandlerPrevented || e?.(...n), a;
|
|
216
216
|
}
|
|
217
217
|
let i = t(...n);
|
|
218
218
|
return e?.(...n), i;
|
|
219
|
-
} :
|
|
219
|
+
} : he(t) : e;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function he(e) {
|
|
222
222
|
return e && ((...t) => {
|
|
223
223
|
let n = t[0];
|
|
224
|
-
return
|
|
224
|
+
return ve(n) && ge(n), e(...t);
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function ge(e) {
|
|
228
228
|
return e.preventBaseUIHandler = () => {
|
|
229
229
|
e.baseUIHandlerPrevented = !0;
|
|
230
230
|
}, e;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function _e(e, t) {
|
|
233
233
|
return t ? e ? t + " " + e : t : e;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function ve(e) {
|
|
236
236
|
return typeof e == "object" && !!e && "nativeEvent" in e;
|
|
237
237
|
}
|
|
238
238
|
//#endregion
|
|
239
239
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/formatErrorMessage.js
|
|
240
|
-
function
|
|
240
|
+
function ye(e, t) {
|
|
241
241
|
return function(n, ...r) {
|
|
242
242
|
let i = new URL(e);
|
|
243
243
|
return i.searchParams.set("code", n.toString()), r.forEach((e) => i.searchParams.append("args[]", e)), `${t} error #${n}; visit ${i} for the full message.`;
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
|
-
var
|
|
247
|
-
process.env.NODE_ENV !== "production" && (
|
|
248
|
-
function
|
|
249
|
-
let t = n.useContext(
|
|
250
|
-
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ?
|
|
246
|
+
var be = ye("https://base-ui.com/production-error", "Base UI"), xe = /*#__PURE__*/ n.createContext(void 0);
|
|
247
|
+
process.env.NODE_ENV !== "production" && (xe.displayName = "CompositeRootContext");
|
|
248
|
+
function Se(e = !1) {
|
|
249
|
+
let t = n.useContext(xe);
|
|
250
|
+
if (t === void 0 && !e) throw Error(process.env.NODE_ENV === "production" ? be(16) : "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.");
|
|
251
251
|
return t;
|
|
252
252
|
}
|
|
253
253
|
//#endregion
|
|
254
254
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/useFocusableWhenDisabled.js
|
|
255
|
-
function
|
|
255
|
+
function Ce(e) {
|
|
256
256
|
let { focusableWhenDisabled: t, disabled: r, composite: i = !1, tabIndex: a = 0, isNativeButton: o } = e, s = i && t !== !1, c = i && t === !1;
|
|
257
257
|
return { props: n.useMemo(() => {
|
|
258
258
|
let e = { onKeyDown(e) {
|
|
@@ -271,8 +271,8 @@ function Se(e) {
|
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/use-button/useButton.js
|
|
274
|
-
function
|
|
275
|
-
let { disabled: t = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = e, s = n.useRef(null), c =
|
|
274
|
+
function we(e = {}) {
|
|
275
|
+
let { disabled: t = !1, focusableWhenDisabled: r, tabIndex: i = 0, native: a = !0, composite: o } = e, s = n.useRef(null), c = Se(!0), l = o ?? c !== void 0, { props: u } = Ce({
|
|
276
276
|
focusableWhenDisabled: r,
|
|
277
277
|
disabled: t,
|
|
278
278
|
composite: l,
|
|
@@ -281,12 +281,12 @@ function Ce(e = {}) {
|
|
|
281
281
|
});
|
|
282
282
|
process.env.NODE_ENV !== "production" && n.useEffect(() => {
|
|
283
283
|
if (!s.current) return;
|
|
284
|
-
let e =
|
|
284
|
+
let e = Te(s.current);
|
|
285
285
|
a ? e || z(`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\`.${ie.captureOwnerStack?.() || ""}`) : e && z(`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\`.${ie.captureOwnerStack?.() || ""}`);
|
|
286
286
|
}, [a]);
|
|
287
287
|
let d = n.useCallback(() => {
|
|
288
288
|
let e = s.current;
|
|
289
|
-
|
|
289
|
+
Te(e) && l && t && u.disabled === void 0 && e.disabled && (e.disabled = !1);
|
|
290
290
|
}, [
|
|
291
291
|
t,
|
|
292
292
|
u.disabled,
|
|
@@ -308,8 +308,8 @@ function Ce(e = {}) {
|
|
|
308
308
|
t || r?.(e);
|
|
309
309
|
},
|
|
310
310
|
onKeyDown(e) {
|
|
311
|
-
if (t || (
|
|
312
|
-
let r = e.target === e.currentTarget, i = e.currentTarget, s =
|
|
311
|
+
if (t || (ge(e), o?.(e), e.baseUIHandlerPrevented)) return;
|
|
312
|
+
let r = e.target === e.currentTarget, i = e.currentTarget, s = Te(i), c = !a && Ee(i), u = r && (a ? s : !c), d = e.key === "Enter", f = e.key === " ", p = i.getAttribute("role"), m = p?.startsWith("menuitem") || p === "option" || p === "gridcell";
|
|
313
313
|
if (r && l && f) {
|
|
314
314
|
if (e.defaultPrevented && m) return;
|
|
315
315
|
e.preventDefault(), c || a && s ? (i.click(), e.preventBaseUIHandler()) : u && (n?.(e), e.preventBaseUIHandler());
|
|
@@ -319,7 +319,7 @@ function Ce(e = {}) {
|
|
|
319
319
|
},
|
|
320
320
|
onKeyUp(e) {
|
|
321
321
|
if (!t) {
|
|
322
|
-
if (
|
|
322
|
+
if (ge(e), i?.(e), e.target === e.currentTarget && a && l && Te(e.currentTarget) && e.key === " ") {
|
|
323
323
|
e.preventDefault();
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
@@ -345,41 +345,41 @@ function Ce(e = {}) {
|
|
|
345
345
|
})
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Te(e) {
|
|
349
349
|
return g(e) && e.tagName === "BUTTON";
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Ee(e) {
|
|
352
352
|
return !!(e?.tagName === "A" && e?.href);
|
|
353
353
|
}
|
|
354
354
|
//#endregion
|
|
355
355
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useMergedRefs.js
|
|
356
|
-
function
|
|
357
|
-
let i = P(
|
|
358
|
-
return
|
|
356
|
+
function De(e, t, n, r) {
|
|
357
|
+
let i = P(ke).current;
|
|
358
|
+
return Ae(i, e, t, n, r) && Me(i, [
|
|
359
359
|
e,
|
|
360
360
|
t,
|
|
361
361
|
n,
|
|
362
362
|
r
|
|
363
363
|
]), i.callback;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
let t = P(
|
|
367
|
-
return
|
|
365
|
+
function Oe(e) {
|
|
366
|
+
let t = P(ke).current;
|
|
367
|
+
return je(t, e) && Me(t, e), t.callback;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function ke() {
|
|
370
370
|
return {
|
|
371
371
|
callback: null,
|
|
372
372
|
cleanup: null,
|
|
373
373
|
refs: []
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Ae(e, t, n, r, i) {
|
|
377
377
|
return e.refs[0] !== t || e.refs[1] !== n || e.refs[2] !== r || e.refs[3] !== i;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function je(e, t) {
|
|
380
380
|
return e.refs.length !== t.length || e.refs.some((e, n) => e !== t[n]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Me(e, t) {
|
|
383
383
|
if (e.refs = t, t.every((e) => e == null)) {
|
|
384
384
|
e.callback = null;
|
|
385
385
|
return;
|
|
@@ -416,34 +416,34 @@ function je(e, t) {
|
|
|
416
416
|
}
|
|
417
417
|
//#endregion
|
|
418
418
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/reactVersion.js
|
|
419
|
-
var
|
|
420
|
-
function
|
|
421
|
-
return
|
|
419
|
+
var Ne = parseInt(n.version, 10);
|
|
420
|
+
function Pe(e) {
|
|
421
|
+
return Ne >= e;
|
|
422
422
|
}
|
|
423
423
|
//#endregion
|
|
424
424
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
425
|
-
function
|
|
425
|
+
function Fe(e) {
|
|
426
426
|
if (!/*#__PURE__*/ n.isValidElement(e)) return null;
|
|
427
427
|
let t = e, r = t.props;
|
|
428
|
-
return (
|
|
428
|
+
return (Pe(19) ? r?.ref : t.ref) ?? null;
|
|
429
429
|
}
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/warn.js
|
|
432
|
-
var
|
|
433
|
-
process.env.NODE_ENV !== "production" && (
|
|
434
|
-
function
|
|
432
|
+
var Ie;
|
|
433
|
+
process.env.NODE_ENV !== "production" && (Ie = /* @__PURE__ */ new Set());
|
|
434
|
+
function Le(...e) {
|
|
435
435
|
if (process.env.NODE_ENV !== "production") {
|
|
436
436
|
let t = e.join(" ");
|
|
437
|
-
|
|
437
|
+
Ie.has(t) || (Ie.add(t), console.warn(`Base UI: ${t}`));
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
//#endregion
|
|
441
441
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/empty.js
|
|
442
|
-
function
|
|
443
|
-
var
|
|
442
|
+
function U() {}
|
|
443
|
+
var Re = Object.freeze([]), W = Object.freeze({});
|
|
444
444
|
//#endregion
|
|
445
445
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
|
|
446
|
-
function
|
|
446
|
+
function ze(e, t) {
|
|
447
447
|
let n = {};
|
|
448
448
|
for (let r in e) {
|
|
449
449
|
let i = e[r];
|
|
@@ -458,53 +458,53 @@ function Re(e, t) {
|
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
460
460
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/resolveClassName.js
|
|
461
|
-
function
|
|
461
|
+
function Be(e, t) {
|
|
462
462
|
return typeof e == "function" ? e(t) : e;
|
|
463
463
|
}
|
|
464
464
|
//#endregion
|
|
465
465
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/resolveStyle.js
|
|
466
|
-
function
|
|
466
|
+
function Ve(e, t) {
|
|
467
467
|
return typeof e == "function" ? e(t) : e;
|
|
468
468
|
}
|
|
469
469
|
//#endregion
|
|
470
470
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useRenderElement.js
|
|
471
|
-
function
|
|
472
|
-
let r = t.render, i =
|
|
473
|
-
return n.enabled === !1 ? null :
|
|
471
|
+
function He(e, t, n = {}) {
|
|
472
|
+
let r = t.render, i = Ue(t, n);
|
|
473
|
+
return n.enabled === !1 ? null : Je(e, r, i, n.state ?? W);
|
|
474
474
|
}
|
|
475
|
-
function
|
|
476
|
-
let { className: n, style: r, render: i } = e, { state: a =
|
|
477
|
-
return typeof document < "u" && (l ? m.ref = Array.isArray(o) ?
|
|
475
|
+
function Ue(e, t = {}) {
|
|
476
|
+
let { className: n, style: r, render: i } = e, { state: a = W, ref: o, props: s, stateAttributesMapping: c, enabled: l = !0 } = t, u = l ? Be(n, a) : void 0, d = l ? Ve(r, a) : void 0, f = l ? ze(a, c) : W, p = l && s ? We(s) : void 0, m = l ? ae(f, p) ?? {} : W;
|
|
477
|
+
return typeof document < "u" && (l ? m.ref = Array.isArray(o) ? Oe([
|
|
478
478
|
m.ref,
|
|
479
|
-
|
|
479
|
+
Fe(i),
|
|
480
480
|
...o
|
|
481
|
-
]) :
|
|
481
|
+
]) : De(m.ref, Fe(i), o) : De(null, null)), l ? (u !== void 0 && (m.className = _e(m.className, u)), d !== void 0 && (m.style = ae(m.style, d)), m) : W;
|
|
482
482
|
}
|
|
483
|
-
function
|
|
483
|
+
function We(e) {
|
|
484
484
|
return Array.isArray(e) ? se(e) : V(void 0, e);
|
|
485
485
|
}
|
|
486
|
-
var
|
|
487
|
-
function
|
|
486
|
+
var Ge = Symbol.for("react.lazy"), Ke = /^[A-Z][A-Za-z0-9$]*$/, qe = /[a-z]/;
|
|
487
|
+
function Je(e, t, r, i) {
|
|
488
488
|
if (t) {
|
|
489
|
-
if (typeof t == "function") return process.env.NODE_ENV !== "production" &&
|
|
489
|
+
if (typeof t == "function") return process.env.NODE_ENV !== "production" && Ye(t), t(r, i);
|
|
490
490
|
let e = V(r, t.props);
|
|
491
491
|
e.ref = r.ref;
|
|
492
492
|
let a = t;
|
|
493
|
-
if (a?.$$typeof ===
|
|
493
|
+
if (a?.$$typeof === Ge && (a = n.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/*#__PURE__*/ n.isValidElement(a)) throw Error([
|
|
494
494
|
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
495
495
|
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
496
496
|
"https://base-ui.com/r/invalid-render-prop"
|
|
497
497
|
].join("\n"));
|
|
498
498
|
return /*#__PURE__*/ n.cloneElement(a, e);
|
|
499
499
|
}
|
|
500
|
-
if (e && typeof e == "string") return
|
|
501
|
-
throw Error(process.env.NODE_ENV === "production" ?
|
|
500
|
+
if (e && typeof e == "string") return Xe(e, r);
|
|
501
|
+
throw Error(process.env.NODE_ENV === "production" ? be(8) : "Base UI: Render element or function are not defined.");
|
|
502
502
|
}
|
|
503
|
-
function
|
|
503
|
+
function Ye(e) {
|
|
504
504
|
let t = e.name;
|
|
505
|
-
t.length !== 0 &&
|
|
505
|
+
t.length !== 0 && Ke.test(t) && qe.test(t) && Le(`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");
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Xe(e, t) {
|
|
508
508
|
return e === "button" ? /*#__PURE__*/ r("button", {
|
|
509
509
|
type: "button",
|
|
510
510
|
...t,
|
|
@@ -517,50 +517,50 @@ function Ye(e, t) {
|
|
|
517
517
|
}
|
|
518
518
|
//#endregion
|
|
519
519
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/button/Button.js
|
|
520
|
-
var
|
|
521
|
-
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } =
|
|
520
|
+
var Ze = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
521
|
+
let { render: n, className: r, disabled: i = !1, focusableWhenDisabled: a = !1, nativeButton: o = !0, style: s, ...c } = e, { getButtonProps: l, buttonRef: u } = we({
|
|
522
522
|
disabled: i,
|
|
523
523
|
focusableWhenDisabled: a,
|
|
524
524
|
native: o
|
|
525
525
|
});
|
|
526
|
-
return
|
|
526
|
+
return He("button", e, {
|
|
527
527
|
state: { disabled: i },
|
|
528
528
|
ref: [t, u],
|
|
529
529
|
props: [c, l]
|
|
530
530
|
});
|
|
531
531
|
});
|
|
532
|
-
process.env.NODE_ENV !== "production" && (
|
|
532
|
+
process.env.NODE_ENV !== "production" && (Ze.displayName = "Button");
|
|
533
533
|
//#endregion
|
|
534
534
|
//#region ../../node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
|
|
535
|
-
function
|
|
535
|
+
function Qe(e) {
|
|
536
536
|
var t, n, r = "";
|
|
537
537
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
538
538
|
else if (typeof e == "object") {
|
|
539
539
|
if (Array.isArray(e)) {
|
|
540
540
|
var i = e.length;
|
|
541
|
-
for (t = 0; t < i; t++) e[t] && (n =
|
|
541
|
+
for (t = 0; t < i; t++) e[t] && (n = Qe(e[t])) && (r && (r += " "), r += n);
|
|
542
542
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
543
543
|
}
|
|
544
544
|
return r;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t =
|
|
546
|
+
function $e() {
|
|
547
|
+
for (var e, t, n = 0, r = "", i = arguments.length; n < i; n++) (e = arguments[n]) && (t = Qe(e)) && (r && (r += " "), r += t);
|
|
548
548
|
return r;
|
|
549
549
|
}
|
|
550
550
|
//#endregion
|
|
551
551
|
//#region ../../node_modules/.bun/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.mjs
|
|
552
|
-
var
|
|
553
|
-
if (t?.variants == null) return
|
|
552
|
+
var et = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, tt = $e, nt = (e, t) => (n) => {
|
|
553
|
+
if (t?.variants == null) return tt(e, n?.class, n?.className);
|
|
554
554
|
let { variants: r, defaultVariants: i } = t, a = Object.keys(r).map((e) => {
|
|
555
555
|
let t = n?.[e], a = i?.[e];
|
|
556
556
|
if (t === null) return null;
|
|
557
|
-
let o =
|
|
557
|
+
let o = et(t) || et(a);
|
|
558
558
|
return r[e][o];
|
|
559
559
|
}), o = n && Object.entries(n).reduce((e, t) => {
|
|
560
560
|
let [n, r] = t;
|
|
561
561
|
return r === void 0 || (e[n] = r), e;
|
|
562
562
|
}, {});
|
|
563
|
-
return
|
|
563
|
+
return tt(e, a, t?.compoundVariants?.reduce((e, t) => {
|
|
564
564
|
let { class: n, className: r, ...a } = t;
|
|
565
565
|
return Object.entries(a).every((e) => {
|
|
566
566
|
let [t, n] = e;
|
|
@@ -577,100 +577,100 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
577
577
|
r
|
|
578
578
|
] : e;
|
|
579
579
|
}, []), n?.class, n?.className);
|
|
580
|
-
},
|
|
580
|
+
}, rt = (e, t) => {
|
|
581
581
|
let n = Array(e.length + t.length);
|
|
582
582
|
for (let t = 0; t < e.length; t++) n[t] = e[t];
|
|
583
583
|
for (let r = 0; r < t.length; r++) n[e.length + r] = t[r];
|
|
584
584
|
return n;
|
|
585
|
-
},
|
|
585
|
+
}, it = (e, t) => ({
|
|
586
586
|
classGroupId: e,
|
|
587
587
|
validator: t
|
|
588
|
-
}),
|
|
588
|
+
}), at = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
589
589
|
nextPart: e,
|
|
590
590
|
validators: t,
|
|
591
591
|
classGroupId: n
|
|
592
|
-
}),
|
|
593
|
-
let t =
|
|
592
|
+
}), ot = "-", st = [], ct = "arbitrary..", lt = (e) => {
|
|
593
|
+
let t = ft(e), { conflictingClassGroups: n, conflictingClassGroupModifiers: r } = e;
|
|
594
594
|
return {
|
|
595
595
|
getClassGroupId: (e) => {
|
|
596
|
-
if (e.startsWith("[") && e.endsWith("]")) return
|
|
597
|
-
let n = e.split(
|
|
598
|
-
return
|
|
596
|
+
if (e.startsWith("[") && e.endsWith("]")) return dt(e);
|
|
597
|
+
let n = e.split(ot);
|
|
598
|
+
return ut(n, +(n[0] === "" && n.length > 1), t);
|
|
599
599
|
},
|
|
600
600
|
getConflictingClassGroupIds: (e, t) => {
|
|
601
601
|
if (t) {
|
|
602
602
|
let t = r[e], i = n[e];
|
|
603
|
-
return t ? i ?
|
|
603
|
+
return t ? i ? rt(i, t) : t : i || st;
|
|
604
604
|
}
|
|
605
|
-
return n[e] ||
|
|
605
|
+
return n[e] || st;
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
},
|
|
608
|
+
}, ut = (e, t, n) => {
|
|
609
609
|
if (e.length - t === 0) return n.classGroupId;
|
|
610
610
|
let r = e[t], i = n.nextPart.get(r);
|
|
611
611
|
if (i) {
|
|
612
|
-
let n =
|
|
612
|
+
let n = ut(e, t + 1, i);
|
|
613
613
|
if (n) return n;
|
|
614
614
|
}
|
|
615
615
|
let a = n.validators;
|
|
616
616
|
if (a === null) return;
|
|
617
|
-
let o = t === 0 ? e.join(
|
|
617
|
+
let o = t === 0 ? e.join(ot) : e.slice(t).join(ot), s = a.length;
|
|
618
618
|
for (let e = 0; e < s; e++) {
|
|
619
619
|
let t = a[e];
|
|
620
620
|
if (t.validator(o)) return t.classGroupId;
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, dt = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
623
623
|
let t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
624
|
-
return r ?
|
|
625
|
-
})(),
|
|
624
|
+
return r ? ct + r : void 0;
|
|
625
|
+
})(), ft = (e) => {
|
|
626
626
|
let { theme: t, classGroups: n } = e;
|
|
627
|
-
return
|
|
628
|
-
},
|
|
629
|
-
let n =
|
|
627
|
+
return pt(n, t);
|
|
628
|
+
}, pt = (e, t) => {
|
|
629
|
+
let n = at();
|
|
630
630
|
for (let r in e) {
|
|
631
631
|
let i = e[r];
|
|
632
|
-
|
|
632
|
+
mt(i, n, r, t);
|
|
633
633
|
}
|
|
634
634
|
return n;
|
|
635
|
-
},
|
|
635
|
+
}, mt = (e, t, n, r) => {
|
|
636
636
|
let i = e.length;
|
|
637
637
|
for (let a = 0; a < i; a++) {
|
|
638
638
|
let i = e[a];
|
|
639
|
-
|
|
639
|
+
ht(i, t, n, r);
|
|
640
640
|
}
|
|
641
|
-
},
|
|
641
|
+
}, ht = (e, t, n, r) => {
|
|
642
642
|
if (typeof e == "string") {
|
|
643
|
-
|
|
643
|
+
gt(e, t, n);
|
|
644
644
|
return;
|
|
645
645
|
}
|
|
646
646
|
if (typeof e == "function") {
|
|
647
|
-
|
|
647
|
+
_t(e, t, n, r);
|
|
648
648
|
return;
|
|
649
649
|
}
|
|
650
|
-
|
|
651
|
-
},
|
|
652
|
-
let r = e === "" ? t :
|
|
650
|
+
vt(e, t, n, r);
|
|
651
|
+
}, gt = (e, t, n) => {
|
|
652
|
+
let r = e === "" ? t : yt(t, e);
|
|
653
653
|
r.classGroupId = n;
|
|
654
|
-
},
|
|
655
|
-
if (
|
|
656
|
-
|
|
654
|
+
}, _t = (e, t, n, r) => {
|
|
655
|
+
if (bt(e)) {
|
|
656
|
+
mt(e(r), t, n, r);
|
|
657
657
|
return;
|
|
658
658
|
}
|
|
659
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
660
|
-
},
|
|
659
|
+
t.validators === null && (t.validators = []), t.validators.push(it(n, e));
|
|
660
|
+
}, vt = (e, t, n, r) => {
|
|
661
661
|
let i = Object.entries(e), a = i.length;
|
|
662
662
|
for (let e = 0; e < a; e++) {
|
|
663
663
|
let [a, o] = i[e];
|
|
664
|
-
|
|
664
|
+
mt(o, yt(t, a), n, r);
|
|
665
665
|
}
|
|
666
|
-
},
|
|
667
|
-
let n = e, r = t.split(
|
|
666
|
+
}, yt = (e, t) => {
|
|
667
|
+
let n = e, r = t.split(ot), i = r.length;
|
|
668
668
|
for (let e = 0; e < i; e++) {
|
|
669
669
|
let t = r[e], i = n.nextPart.get(t);
|
|
670
|
-
i || (i =
|
|
670
|
+
i || (i = at(), n.nextPart.set(t, i)), n = i;
|
|
671
671
|
}
|
|
672
672
|
return n;
|
|
673
|
-
},
|
|
673
|
+
}, bt = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, xt = (e) => {
|
|
674
674
|
if (e < 1) return {
|
|
675
675
|
get: () => void 0,
|
|
676
676
|
set: () => {}
|
|
@@ -688,19 +688,19 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
688
688
|
e in n ? n[e] = t : i(e, t);
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
|
-
},
|
|
691
|
+
}, St = "!", Ct = ":", wt = [], Tt = (e, t, n, r, i) => ({
|
|
692
692
|
modifiers: e,
|
|
693
693
|
hasImportantModifier: t,
|
|
694
694
|
baseClassName: n,
|
|
695
695
|
maybePostfixModifierPosition: r,
|
|
696
696
|
isExternal: i
|
|
697
|
-
}),
|
|
697
|
+
}), Et = (e) => {
|
|
698
698
|
let { prefix: t, experimentalParseClassName: n } = e, r = (e) => {
|
|
699
699
|
let t = [], n = 0, r = 0, i = 0, a, o = e.length;
|
|
700
700
|
for (let s = 0; s < o; s++) {
|
|
701
701
|
let o = e[s];
|
|
702
702
|
if (n === 0 && r === 0) {
|
|
703
|
-
if (o ===
|
|
703
|
+
if (o === Ct) {
|
|
704
704
|
t.push(e.slice(i, s)), i = s + 1;
|
|
705
705
|
continue;
|
|
706
706
|
}
|
|
@@ -712,13 +712,13 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
712
712
|
o === "[" ? n++ : o === "]" ? n-- : o === "(" ? r++ : o === ")" && r--;
|
|
713
713
|
}
|
|
714
714
|
let s = t.length === 0 ? e : e.slice(i), c = s, l = !1;
|
|
715
|
-
s.endsWith(
|
|
715
|
+
s.endsWith(St) ? (c = s.slice(0, -1), l = !0) : s.startsWith(St) && (c = s.slice(1), l = !0);
|
|
716
716
|
let u = a && a > i ? a - i : void 0;
|
|
717
|
-
return
|
|
717
|
+
return Tt(t, l, c, u);
|
|
718
718
|
};
|
|
719
719
|
if (t) {
|
|
720
|
-
let e = t +
|
|
721
|
-
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : wt
|
|
720
|
+
let e = t + Ct, n = r;
|
|
721
|
+
r = (t) => t.startsWith(e) ? n(t.slice(e.length)) : Tt(wt, !1, t, void 0, !0);
|
|
722
722
|
}
|
|
723
723
|
if (n) {
|
|
724
724
|
let e = r;
|
|
@@ -728,7 +728,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
730
|
return r;
|
|
731
|
-
},
|
|
731
|
+
}, Dt = (e) => {
|
|
732
732
|
let t = /* @__PURE__ */ new Map();
|
|
733
733
|
return e.orderSensitiveModifiers.forEach((e, n) => {
|
|
734
734
|
t.set(e, 1e6 + n);
|
|
@@ -740,18 +740,18 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
740
740
|
}
|
|
741
741
|
return r.length > 0 && (r.sort(), n.push(...r)), n;
|
|
742
742
|
};
|
|
743
|
-
},
|
|
744
|
-
cache:
|
|
745
|
-
parseClassName:
|
|
746
|
-
sortModifiers:
|
|
747
|
-
postfixLookupClassGroupIds:
|
|
748
|
-
...
|
|
749
|
-
}),
|
|
743
|
+
}, Ot = (e) => ({
|
|
744
|
+
cache: xt(e.cacheSize),
|
|
745
|
+
parseClassName: Et(e),
|
|
746
|
+
sortModifiers: Dt(e),
|
|
747
|
+
postfixLookupClassGroupIds: kt(e),
|
|
748
|
+
...lt(e)
|
|
749
|
+
}), kt = (e) => {
|
|
750
750
|
let t = Object.create(null), n = e.postfixLookupClassGroups;
|
|
751
751
|
if (n) for (let e = 0; e < n.length; e++) t[n[e]] = !0;
|
|
752
752
|
return t;
|
|
753
|
-
},
|
|
754
|
-
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(
|
|
753
|
+
}, At = /\s+/, jt = (e, t) => {
|
|
754
|
+
let { parseClassName: n, getClassGroupId: r, getConflictingClassGroupIds: i, sortModifiers: a, postfixLookupClassGroupIds: o } = t, s = [], c = e.trim().split(At), l = "";
|
|
755
755
|
for (let e = c.length - 1; e >= 0; --e) {
|
|
756
756
|
let t = c[e], { isExternal: u, modifiers: d, hasImportantModifier: f, baseClassName: p, maybePostfixModifierPosition: m } = n(t);
|
|
757
757
|
if (u) {
|
|
@@ -775,7 +775,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
775
775
|
}
|
|
776
776
|
h = !1;
|
|
777
777
|
}
|
|
778
|
-
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ +
|
|
778
|
+
let _ = d.length === 0 ? "" : d.length === 1 ? d[0] : a(d).join(":"), v = f ? _ + St : _, y = v + g;
|
|
779
779
|
if (s.indexOf(y) > -1) continue;
|
|
780
780
|
s.push(y);
|
|
781
781
|
let b = i(g, h);
|
|
@@ -786,34 +786,34 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
786
786
|
l = t + (l.length > 0 ? " " + l : l);
|
|
787
787
|
}
|
|
788
788
|
return l;
|
|
789
|
-
},
|
|
789
|
+
}, Mt = (...e) => {
|
|
790
790
|
let t = 0, n, r, i = "";
|
|
791
|
-
for (; t < e.length;) (n = e[t++]) && (r =
|
|
791
|
+
for (; t < e.length;) (n = e[t++]) && (r = Nt(n)) && (i && (i += " "), i += r);
|
|
792
792
|
return i;
|
|
793
|
-
},
|
|
793
|
+
}, Nt = (e) => {
|
|
794
794
|
if (typeof e == "string") return e;
|
|
795
795
|
let t, n = "";
|
|
796
|
-
for (let r = 0; r < e.length; r++) e[r] && (t =
|
|
796
|
+
for (let r = 0; r < e.length; r++) e[r] && (t = Nt(e[r])) && (n && (n += " "), n += t);
|
|
797
797
|
return n;
|
|
798
|
-
},
|
|
799
|
-
let n, r, i, a, o = (o) => (n =
|
|
798
|
+
}, Pt = (e, ...t) => {
|
|
799
|
+
let n, r, i, a, o = (o) => (n = Ot(t.reduce((e, t) => t(e), e())), r = n.cache.get, i = n.cache.set, a = s, s(o)), s = (e) => {
|
|
800
800
|
let t = r(e);
|
|
801
801
|
if (t) return t;
|
|
802
|
-
let a =
|
|
802
|
+
let a = jt(e, n);
|
|
803
803
|
return i(e, a), a;
|
|
804
804
|
};
|
|
805
|
-
return a = o, (...e) => a(
|
|
806
|
-
},
|
|
807
|
-
let t = (t) => t[e] ||
|
|
805
|
+
return a = o, (...e) => a(Mt(...e));
|
|
806
|
+
}, Ft = [], G = (e) => {
|
|
807
|
+
let t = (t) => t[e] || Ft;
|
|
808
808
|
return t.isThemeGetter = !0, t;
|
|
809
|
-
},
|
|
810
|
-
let r = Ft.exec(e);
|
|
811
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
812
|
-
}, _n = (e, t, n = !1) => {
|
|
809
|
+
}, It = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Lt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Rt = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, zt = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Bt = /\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)\(.+\)$/, Ht = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ut = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Wt = (e) => Rt.test(e), K = (e) => !!e && !Number.isNaN(Number(e)), Gt = (e) => !!e && Number.isInteger(Number(e)), Kt = (e) => e.endsWith("%") && K(e.slice(0, -1)), qt = (e) => zt.test(e), Jt = () => !0, Yt = (e) => Bt.test(e) && !Vt.test(e), Xt = () => !1, Zt = (e) => Ht.test(e), Qt = (e) => Ut.test(e), $t = (e) => !q(e) && !J(e), en = (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)), tn = (e) => _n(e, xn, Xt), q = (e) => It.test(e), nn = (e) => _n(e, Sn, Yt), rn = (e) => _n(e, Cn, K), an = (e) => _n(e, Tn, Jt), on = (e) => _n(e, wn, Xt), sn = (e) => _n(e, yn, Xt), cn = (e) => _n(e, bn, Qt), ln = (e) => _n(e, En, Zt), J = (e) => Lt.test(e), un = (e) => vn(e, Sn), dn = (e) => vn(e, wn), fn = (e) => vn(e, yn), pn = (e) => vn(e, xn), mn = (e) => vn(e, bn), hn = (e) => vn(e, En, !0), gn = (e) => vn(e, Tn, !0), _n = (e, t, n) => {
|
|
813
810
|
let r = It.exec(e);
|
|
811
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
812
|
+
}, vn = (e, t, n = !1) => {
|
|
813
|
+
let r = Lt.exec(e);
|
|
814
814
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
815
|
-
},
|
|
816
|
-
let e =
|
|
815
|
+
}, yn = (e) => e === "position" || e === "percentage", bn = (e) => e === "image" || e === "url", xn = (e) => e === "length" || e === "size" || e === "bg-size", Sn = (e) => e === "length", Cn = (e) => e === "number", wn = (e) => e === "family-name", Tn = (e) => e === "number" || e === "weight", En = (e) => e === "shadow", Dn = /*#__PURE__*/ Pt(() => {
|
|
816
|
+
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 = () => [
|
|
817
817
|
"auto",
|
|
818
818
|
"avoid",
|
|
819
819
|
"all",
|
|
@@ -838,8 +838,8 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
838
838
|
"left-bottom"
|
|
839
839
|
], x = () => [
|
|
840
840
|
...b(),
|
|
841
|
-
|
|
842
|
-
|
|
841
|
+
J,
|
|
842
|
+
q
|
|
843
843
|
], S = () => [
|
|
844
844
|
"auto",
|
|
845
845
|
"hidden",
|
|
@@ -851,43 +851,43 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
851
851
|
"contain",
|
|
852
852
|
"none"
|
|
853
853
|
], w = () => [
|
|
854
|
-
Y,
|
|
855
854
|
J,
|
|
855
|
+
q,
|
|
856
856
|
c
|
|
857
857
|
], T = () => [
|
|
858
|
-
|
|
858
|
+
Wt,
|
|
859
859
|
"full",
|
|
860
860
|
"auto",
|
|
861
861
|
...w()
|
|
862
862
|
], ee = () => [
|
|
863
|
-
|
|
863
|
+
Gt,
|
|
864
864
|
"none",
|
|
865
865
|
"subgrid",
|
|
866
|
-
|
|
867
|
-
|
|
866
|
+
J,
|
|
867
|
+
q
|
|
868
868
|
], E = () => [
|
|
869
869
|
"auto",
|
|
870
870
|
{ span: [
|
|
871
871
|
"full",
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
872
|
+
Gt,
|
|
873
|
+
J,
|
|
874
|
+
q
|
|
875
875
|
] },
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
876
|
+
Gt,
|
|
877
|
+
J,
|
|
878
|
+
q
|
|
879
879
|
], D = () => [
|
|
880
|
-
|
|
880
|
+
Gt,
|
|
881
881
|
"auto",
|
|
882
|
-
|
|
883
|
-
|
|
882
|
+
J,
|
|
883
|
+
q
|
|
884
884
|
], O = () => [
|
|
885
885
|
"auto",
|
|
886
886
|
"min",
|
|
887
887
|
"max",
|
|
888
888
|
"fr",
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
J,
|
|
890
|
+
q
|
|
891
891
|
], te = () => [
|
|
892
892
|
"start",
|
|
893
893
|
"end",
|
|
@@ -907,7 +907,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
907
907
|
"center-safe",
|
|
908
908
|
"end-safe"
|
|
909
909
|
], A = () => ["auto", ...w()], j = () => [
|
|
910
|
-
|
|
910
|
+
Wt,
|
|
911
911
|
"auto",
|
|
912
912
|
"full",
|
|
913
913
|
"dvw",
|
|
@@ -921,7 +921,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
921
921
|
"fit",
|
|
922
922
|
...w()
|
|
923
923
|
], M = () => [
|
|
924
|
-
|
|
924
|
+
Wt,
|
|
925
925
|
"screen",
|
|
926
926
|
"full",
|
|
927
927
|
"dvw",
|
|
@@ -932,7 +932,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
932
932
|
"fit",
|
|
933
933
|
...w()
|
|
934
934
|
], N = () => [
|
|
935
|
-
|
|
935
|
+
Wt,
|
|
936
936
|
"screen",
|
|
937
937
|
"full",
|
|
938
938
|
"lh",
|
|
@@ -945,13 +945,13 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
945
945
|
...w()
|
|
946
946
|
], P = () => [
|
|
947
947
|
e,
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
J,
|
|
949
|
+
q
|
|
950
950
|
], ne = () => [
|
|
951
951
|
...b(),
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
{ position: [
|
|
952
|
+
fn,
|
|
953
|
+
sn,
|
|
954
|
+
{ position: [J, q] }
|
|
955
955
|
], re = () => ["no-repeat", { repeat: [
|
|
956
956
|
"",
|
|
957
957
|
"x",
|
|
@@ -962,25 +962,25 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
962
962
|
"auto",
|
|
963
963
|
"cover",
|
|
964
964
|
"contain",
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
{ size: [
|
|
965
|
+
pn,
|
|
966
|
+
tn,
|
|
967
|
+
{ size: [J, q] }
|
|
968
968
|
], I = () => [
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
Kt,
|
|
970
|
+
un,
|
|
971
|
+
nn
|
|
972
972
|
], L = () => [
|
|
973
973
|
"",
|
|
974
974
|
"none",
|
|
975
975
|
"full",
|
|
976
976
|
l,
|
|
977
|
-
|
|
978
|
-
|
|
977
|
+
J,
|
|
978
|
+
q
|
|
979
979
|
], R = () => [
|
|
980
980
|
"",
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
981
|
+
K,
|
|
982
|
+
un,
|
|
983
|
+
nn
|
|
984
984
|
], z = () => [
|
|
985
985
|
"solid",
|
|
986
986
|
"dashed",
|
|
@@ -1004,32 +1004,32 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1004
1004
|
"color",
|
|
1005
1005
|
"luminosity"
|
|
1006
1006
|
], B = () => [
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1007
|
+
K,
|
|
1008
|
+
Kt,
|
|
1009
|
+
fn,
|
|
1010
|
+
sn
|
|
1011
1011
|
], ae = () => [
|
|
1012
1012
|
"",
|
|
1013
1013
|
"none",
|
|
1014
1014
|
m,
|
|
1015
|
-
|
|
1016
|
-
|
|
1015
|
+
J,
|
|
1016
|
+
q
|
|
1017
1017
|
], oe = () => [
|
|
1018
1018
|
"none",
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1019
|
+
K,
|
|
1020
|
+
J,
|
|
1021
|
+
q
|
|
1022
1022
|
], V = () => [
|
|
1023
1023
|
"none",
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1024
|
+
K,
|
|
1025
|
+
J,
|
|
1026
|
+
q
|
|
1027
1027
|
], se = () => [
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1028
|
+
K,
|
|
1029
|
+
J,
|
|
1030
|
+
q
|
|
1031
1031
|
], H = () => [
|
|
1032
|
-
|
|
1032
|
+
Wt,
|
|
1033
1033
|
"full",
|
|
1034
1034
|
...w()
|
|
1035
1035
|
];
|
|
@@ -1043,17 +1043,17 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1043
1043
|
"bounce"
|
|
1044
1044
|
],
|
|
1045
1045
|
aspect: ["video"],
|
|
1046
|
-
blur: [
|
|
1047
|
-
breakpoint: [
|
|
1048
|
-
color: [
|
|
1049
|
-
container: [
|
|
1050
|
-
"drop-shadow": [
|
|
1046
|
+
blur: [qt],
|
|
1047
|
+
breakpoint: [qt],
|
|
1048
|
+
color: [Jt],
|
|
1049
|
+
container: [qt],
|
|
1050
|
+
"drop-shadow": [qt],
|
|
1051
1051
|
ease: [
|
|
1052
1052
|
"in",
|
|
1053
1053
|
"out",
|
|
1054
1054
|
"in-out"
|
|
1055
1055
|
],
|
|
1056
|
-
font: [
|
|
1056
|
+
font: [$t],
|
|
1057
1057
|
"font-weight": [
|
|
1058
1058
|
"thin",
|
|
1059
1059
|
"extralight",
|
|
@@ -1065,7 +1065,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1065
1065
|
"extrabold",
|
|
1066
1066
|
"black"
|
|
1067
1067
|
],
|
|
1068
|
-
"inset-shadow": [
|
|
1068
|
+
"inset-shadow": [qt],
|
|
1069
1069
|
leading: [
|
|
1070
1070
|
"none",
|
|
1071
1071
|
"tight",
|
|
@@ -1082,11 +1082,11 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1082
1082
|
"distant",
|
|
1083
1083
|
"none"
|
|
1084
1084
|
],
|
|
1085
|
-
radius: [
|
|
1086
|
-
shadow: [
|
|
1087
|
-
spacing: ["px",
|
|
1088
|
-
text: [
|
|
1089
|
-
"text-shadow": [
|
|
1085
|
+
radius: [qt],
|
|
1086
|
+
shadow: [qt],
|
|
1087
|
+
spacing: ["px", K],
|
|
1088
|
+
text: [qt],
|
|
1089
|
+
"text-shadow": [qt],
|
|
1090
1090
|
tracking: [
|
|
1091
1091
|
"tighter",
|
|
1092
1092
|
"tight",
|
|
@@ -1100,9 +1100,9 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1100
1100
|
aspect: [{ aspect: [
|
|
1101
1101
|
"auto",
|
|
1102
1102
|
"square",
|
|
1103
|
-
|
|
1103
|
+
Wt,
|
|
1104
|
+
q,
|
|
1104
1105
|
J,
|
|
1105
|
-
Y,
|
|
1106
1106
|
g
|
|
1107
1107
|
] }],
|
|
1108
1108
|
container: ["container"],
|
|
@@ -1110,14 +1110,14 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1110
1110
|
"",
|
|
1111
1111
|
"normal",
|
|
1112
1112
|
"size",
|
|
1113
|
-
|
|
1114
|
-
|
|
1113
|
+
J,
|
|
1114
|
+
q
|
|
1115
1115
|
] }],
|
|
1116
|
-
"container-named": [
|
|
1116
|
+
"container-named": [en],
|
|
1117
1117
|
columns: [{ columns: [
|
|
1118
|
+
K,
|
|
1118
1119
|
q,
|
|
1119
1120
|
J,
|
|
1120
|
-
Y,
|
|
1121
1121
|
s
|
|
1122
1122
|
] }],
|
|
1123
1123
|
"break-after": [{ "break-after": y() }],
|
|
@@ -1214,13 +1214,13 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1214
1214
|
"collapse"
|
|
1215
1215
|
],
|
|
1216
1216
|
z: [{ z: [
|
|
1217
|
-
|
|
1217
|
+
Gt,
|
|
1218
1218
|
"auto",
|
|
1219
|
-
|
|
1220
|
-
|
|
1219
|
+
J,
|
|
1220
|
+
q
|
|
1221
1221
|
] }],
|
|
1222
1222
|
basis: [{ basis: [
|
|
1223
|
-
|
|
1223
|
+
Wt,
|
|
1224
1224
|
"full",
|
|
1225
1225
|
"auto",
|
|
1226
1226
|
s,
|
|
@@ -1238,32 +1238,32 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1238
1238
|
"wrap-reverse"
|
|
1239
1239
|
] }],
|
|
1240
1240
|
flex: [{ flex: [
|
|
1241
|
-
|
|
1242
|
-
|
|
1241
|
+
K,
|
|
1242
|
+
Wt,
|
|
1243
1243
|
"auto",
|
|
1244
1244
|
"initial",
|
|
1245
1245
|
"none",
|
|
1246
|
-
|
|
1246
|
+
q
|
|
1247
1247
|
] }],
|
|
1248
1248
|
grow: [{ grow: [
|
|
1249
1249
|
"",
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1250
|
+
K,
|
|
1251
|
+
J,
|
|
1252
|
+
q
|
|
1253
1253
|
] }],
|
|
1254
1254
|
shrink: [{ shrink: [
|
|
1255
1255
|
"",
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1256
|
+
K,
|
|
1257
|
+
J,
|
|
1258
|
+
q
|
|
1259
1259
|
] }],
|
|
1260
1260
|
order: [{ order: [
|
|
1261
|
-
|
|
1261
|
+
Gt,
|
|
1262
1262
|
"first",
|
|
1263
1263
|
"last",
|
|
1264
1264
|
"none",
|
|
1265
|
-
|
|
1266
|
-
|
|
1265
|
+
J,
|
|
1266
|
+
q
|
|
1267
1267
|
] }],
|
|
1268
1268
|
"grid-cols": [{ "grid-cols": ee() }],
|
|
1269
1269
|
"col-start-end": [{ col: E() }],
|
|
@@ -1369,15 +1369,15 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1369
1369
|
"font-size": [{ text: [
|
|
1370
1370
|
"base",
|
|
1371
1371
|
n,
|
|
1372
|
-
|
|
1373
|
-
|
|
1372
|
+
un,
|
|
1373
|
+
nn
|
|
1374
1374
|
] }],
|
|
1375
1375
|
"font-smoothing": ["antialiased", "subpixel-antialiased"],
|
|
1376
1376
|
"font-style": ["italic", "not-italic"],
|
|
1377
1377
|
"font-weight": [{ font: [
|
|
1378
1378
|
r,
|
|
1379
|
-
|
|
1380
|
-
|
|
1379
|
+
gn,
|
|
1380
|
+
an
|
|
1381
1381
|
] }],
|
|
1382
1382
|
"font-stretch": [{ "font-stretch": [
|
|
1383
1383
|
"ultra-condensed",
|
|
@@ -1389,15 +1389,15 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1389
1389
|
"expanded",
|
|
1390
1390
|
"extra-expanded",
|
|
1391
1391
|
"ultra-expanded",
|
|
1392
|
-
|
|
1393
|
-
|
|
1392
|
+
Kt,
|
|
1393
|
+
q
|
|
1394
1394
|
] }],
|
|
1395
1395
|
"font-family": [{ font: [
|
|
1396
|
-
|
|
1397
|
-
|
|
1396
|
+
dn,
|
|
1397
|
+
on,
|
|
1398
1398
|
t
|
|
1399
1399
|
] }],
|
|
1400
|
-
"font-features": [{ "font-features": [
|
|
1400
|
+
"font-features": [{ "font-features": [q] }],
|
|
1401
1401
|
"fvn-normal": ["normal-nums"],
|
|
1402
1402
|
"fvn-ordinal": ["ordinal"],
|
|
1403
1403
|
"fvn-slashed-zero": ["slashed-zero"],
|
|
@@ -1406,28 +1406,28 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1406
1406
|
"fvn-fraction": ["diagonal-fractions", "stacked-fractions"],
|
|
1407
1407
|
tracking: [{ tracking: [
|
|
1408
1408
|
i,
|
|
1409
|
-
|
|
1410
|
-
|
|
1409
|
+
J,
|
|
1410
|
+
q
|
|
1411
1411
|
] }],
|
|
1412
1412
|
"line-clamp": [{ "line-clamp": [
|
|
1413
|
-
|
|
1413
|
+
K,
|
|
1414
1414
|
"none",
|
|
1415
|
-
|
|
1416
|
-
|
|
1415
|
+
J,
|
|
1416
|
+
rn
|
|
1417
1417
|
] }],
|
|
1418
1418
|
leading: [{ leading: [a, ...w()] }],
|
|
1419
1419
|
"list-image": [{ "list-image": [
|
|
1420
1420
|
"none",
|
|
1421
|
-
|
|
1422
|
-
|
|
1421
|
+
J,
|
|
1422
|
+
q
|
|
1423
1423
|
] }],
|
|
1424
1424
|
"list-style-position": [{ list: ["inside", "outside"] }],
|
|
1425
1425
|
"list-style-type": [{ list: [
|
|
1426
1426
|
"disc",
|
|
1427
1427
|
"decimal",
|
|
1428
1428
|
"none",
|
|
1429
|
-
|
|
1430
|
-
|
|
1429
|
+
J,
|
|
1430
|
+
q
|
|
1431
1431
|
] }],
|
|
1432
1432
|
"text-alignment": [{ text: [
|
|
1433
1433
|
"left",
|
|
@@ -1447,18 +1447,18 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1447
1447
|
],
|
|
1448
1448
|
"text-decoration-style": [{ decoration: [...z(), "wavy"] }],
|
|
1449
1449
|
"text-decoration-thickness": [{ decoration: [
|
|
1450
|
-
|
|
1450
|
+
K,
|
|
1451
1451
|
"from-font",
|
|
1452
1452
|
"auto",
|
|
1453
|
-
|
|
1454
|
-
|
|
1453
|
+
J,
|
|
1454
|
+
nn
|
|
1455
1455
|
] }],
|
|
1456
1456
|
"text-decoration-color": [{ decoration: P() }],
|
|
1457
1457
|
"underline-offset": [{ "underline-offset": [
|
|
1458
|
-
|
|
1458
|
+
K,
|
|
1459
1459
|
"auto",
|
|
1460
|
-
|
|
1461
|
-
|
|
1460
|
+
J,
|
|
1461
|
+
q
|
|
1462
1462
|
] }],
|
|
1463
1463
|
"text-transform": [
|
|
1464
1464
|
"uppercase",
|
|
@@ -1479,9 +1479,9 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1479
1479
|
] }],
|
|
1480
1480
|
indent: [{ indent: w() }],
|
|
1481
1481
|
"tab-size": [{ tab: [
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1482
|
+
Gt,
|
|
1483
|
+
J,
|
|
1484
|
+
q
|
|
1485
1485
|
] }],
|
|
1486
1486
|
"vertical-align": [{ align: [
|
|
1487
1487
|
"baseline",
|
|
@@ -1492,8 +1492,8 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1492
1492
|
"text-bottom",
|
|
1493
1493
|
"sub",
|
|
1494
1494
|
"super",
|
|
1495
|
-
|
|
1496
|
-
|
|
1495
|
+
J,
|
|
1496
|
+
q
|
|
1497
1497
|
] }],
|
|
1498
1498
|
whitespace: [{ whitespace: [
|
|
1499
1499
|
"normal",
|
|
@@ -1521,8 +1521,8 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1521
1521
|
] }],
|
|
1522
1522
|
content: [{ content: [
|
|
1523
1523
|
"none",
|
|
1524
|
-
|
|
1525
|
-
|
|
1524
|
+
J,
|
|
1525
|
+
q
|
|
1526
1526
|
] }],
|
|
1527
1527
|
"bg-attachment": [{ bg: [
|
|
1528
1528
|
"fixed",
|
|
@@ -1557,23 +1557,23 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1557
1557
|
"l",
|
|
1558
1558
|
"tl"
|
|
1559
1559
|
] },
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1560
|
+
Gt,
|
|
1561
|
+
J,
|
|
1562
|
+
q
|
|
1563
1563
|
],
|
|
1564
1564
|
radial: [
|
|
1565
1565
|
"",
|
|
1566
|
-
|
|
1567
|
-
|
|
1566
|
+
J,
|
|
1567
|
+
q
|
|
1568
1568
|
],
|
|
1569
1569
|
conic: [
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1570
|
+
Gt,
|
|
1571
|
+
J,
|
|
1572
|
+
q
|
|
1573
1573
|
]
|
|
1574
1574
|
},
|
|
1575
|
-
|
|
1576
|
-
|
|
1575
|
+
mn,
|
|
1576
|
+
cn
|
|
1577
1577
|
] }],
|
|
1578
1578
|
"bg-color": [{ bg: P() }],
|
|
1579
1579
|
"gradient-from-pos": [{ from: I() }],
|
|
@@ -1640,50 +1640,50 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1640
1640
|
"hidden"
|
|
1641
1641
|
] }],
|
|
1642
1642
|
"outline-offset": [{ "outline-offset": [
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1643
|
+
K,
|
|
1644
|
+
J,
|
|
1645
|
+
q
|
|
1646
1646
|
] }],
|
|
1647
1647
|
"outline-w": [{ outline: [
|
|
1648
1648
|
"",
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1649
|
+
K,
|
|
1650
|
+
un,
|
|
1651
|
+
nn
|
|
1652
1652
|
] }],
|
|
1653
1653
|
"outline-color": [{ outline: P() }],
|
|
1654
1654
|
shadow: [{ shadow: [
|
|
1655
1655
|
"",
|
|
1656
1656
|
"none",
|
|
1657
1657
|
u,
|
|
1658
|
-
|
|
1659
|
-
|
|
1658
|
+
hn,
|
|
1659
|
+
ln
|
|
1660
1660
|
] }],
|
|
1661
1661
|
"shadow-color": [{ shadow: P() }],
|
|
1662
1662
|
"inset-shadow": [{ "inset-shadow": [
|
|
1663
1663
|
"none",
|
|
1664
1664
|
d,
|
|
1665
|
-
|
|
1666
|
-
|
|
1665
|
+
hn,
|
|
1666
|
+
ln
|
|
1667
1667
|
] }],
|
|
1668
1668
|
"inset-shadow-color": [{ "inset-shadow": P() }],
|
|
1669
1669
|
"ring-w": [{ ring: R() }],
|
|
1670
1670
|
"ring-w-inset": ["ring-inset"],
|
|
1671
1671
|
"ring-color": [{ ring: P() }],
|
|
1672
|
-
"ring-offset-w": [{ "ring-offset": [
|
|
1672
|
+
"ring-offset-w": [{ "ring-offset": [K, nn] }],
|
|
1673
1673
|
"ring-offset-color": [{ "ring-offset": P() }],
|
|
1674
1674
|
"inset-ring-w": [{ "inset-ring": R() }],
|
|
1675
1675
|
"inset-ring-color": [{ "inset-ring": P() }],
|
|
1676
1676
|
"text-shadow": [{ "text-shadow": [
|
|
1677
1677
|
"none",
|
|
1678
1678
|
f,
|
|
1679
|
-
|
|
1680
|
-
|
|
1679
|
+
hn,
|
|
1680
|
+
ln
|
|
1681
1681
|
] }],
|
|
1682
1682
|
"text-shadow-color": [{ "text-shadow": P() }],
|
|
1683
1683
|
opacity: [{ opacity: [
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1684
|
+
K,
|
|
1685
|
+
J,
|
|
1686
|
+
q
|
|
1687
1687
|
] }],
|
|
1688
1688
|
"mix-blend": [{ "mix-blend": [
|
|
1689
1689
|
...ie(),
|
|
@@ -1705,7 +1705,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1705
1705
|
"intersect",
|
|
1706
1706
|
"exclude"
|
|
1707
1707
|
] }],
|
|
1708
|
-
"mask-image-linear-pos": [{ "mask-linear": [
|
|
1708
|
+
"mask-image-linear-pos": [{ "mask-linear": [K] }],
|
|
1709
1709
|
"mask-image-linear-from-pos": [{ "mask-linear-from": B() }],
|
|
1710
1710
|
"mask-image-linear-to-pos": [{ "mask-linear-to": B() }],
|
|
1711
1711
|
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
@@ -1734,7 +1734,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1734
1734
|
"mask-image-y-to-pos": [{ "mask-y-to": B() }],
|
|
1735
1735
|
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
1736
1736
|
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
1737
|
-
"mask-image-radial": [{ "mask-radial": [
|
|
1737
|
+
"mask-image-radial": [{ "mask-radial": [J, q] }],
|
|
1738
1738
|
"mask-image-radial-from-pos": [{ "mask-radial-from": B() }],
|
|
1739
1739
|
"mask-image-radial-to-pos": [{ "mask-radial-to": B() }],
|
|
1740
1740
|
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
@@ -1745,7 +1745,7 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1745
1745
|
farthest: ["side", "corner"]
|
|
1746
1746
|
}] }],
|
|
1747
1747
|
"mask-image-radial-pos": [{ "mask-radial-at": b() }],
|
|
1748
|
-
"mask-image-conic-pos": [{ "mask-conic": [
|
|
1748
|
+
"mask-image-conic-pos": [{ "mask-conic": [K] }],
|
|
1749
1749
|
"mask-image-conic-from-pos": [{ "mask-conic-from": B() }],
|
|
1750
1750
|
"mask-image-conic-to-pos": [{ "mask-conic-to": B() }],
|
|
1751
1751
|
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
@@ -1769,111 +1769,111 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1769
1769
|
"mask-type": [{ "mask-type": ["alpha", "luminance"] }],
|
|
1770
1770
|
"mask-image": [{ mask: [
|
|
1771
1771
|
"none",
|
|
1772
|
-
|
|
1773
|
-
|
|
1772
|
+
J,
|
|
1773
|
+
q
|
|
1774
1774
|
] }],
|
|
1775
1775
|
filter: [{ filter: [
|
|
1776
1776
|
"",
|
|
1777
1777
|
"none",
|
|
1778
|
-
|
|
1779
|
-
|
|
1778
|
+
J,
|
|
1779
|
+
q
|
|
1780
1780
|
] }],
|
|
1781
1781
|
blur: [{ blur: ae() }],
|
|
1782
1782
|
brightness: [{ brightness: [
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1783
|
+
K,
|
|
1784
|
+
J,
|
|
1785
|
+
q
|
|
1786
1786
|
] }],
|
|
1787
1787
|
contrast: [{ contrast: [
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1788
|
+
K,
|
|
1789
|
+
J,
|
|
1790
|
+
q
|
|
1791
1791
|
] }],
|
|
1792
1792
|
"drop-shadow": [{ "drop-shadow": [
|
|
1793
1793
|
"",
|
|
1794
1794
|
"none",
|
|
1795
1795
|
p,
|
|
1796
|
-
|
|
1797
|
-
|
|
1796
|
+
hn,
|
|
1797
|
+
ln
|
|
1798
1798
|
] }],
|
|
1799
1799
|
"drop-shadow-color": [{ "drop-shadow": P() }],
|
|
1800
1800
|
grayscale: [{ grayscale: [
|
|
1801
1801
|
"",
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1802
|
+
K,
|
|
1803
|
+
J,
|
|
1804
|
+
q
|
|
1805
1805
|
] }],
|
|
1806
1806
|
"hue-rotate": [{ "hue-rotate": [
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1807
|
+
K,
|
|
1808
|
+
J,
|
|
1809
|
+
q
|
|
1810
1810
|
] }],
|
|
1811
1811
|
invert: [{ invert: [
|
|
1812
1812
|
"",
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1813
|
+
K,
|
|
1814
|
+
J,
|
|
1815
|
+
q
|
|
1816
1816
|
] }],
|
|
1817
1817
|
saturate: [{ saturate: [
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1818
|
+
K,
|
|
1819
|
+
J,
|
|
1820
|
+
q
|
|
1821
1821
|
] }],
|
|
1822
1822
|
sepia: [{ sepia: [
|
|
1823
1823
|
"",
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1824
|
+
K,
|
|
1825
|
+
J,
|
|
1826
|
+
q
|
|
1827
1827
|
] }],
|
|
1828
1828
|
"backdrop-filter": [{ "backdrop-filter": [
|
|
1829
1829
|
"",
|
|
1830
1830
|
"none",
|
|
1831
|
-
|
|
1832
|
-
|
|
1831
|
+
J,
|
|
1832
|
+
q
|
|
1833
1833
|
] }],
|
|
1834
1834
|
"backdrop-blur": [{ "backdrop-blur": ae() }],
|
|
1835
1835
|
"backdrop-brightness": [{ "backdrop-brightness": [
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1836
|
+
K,
|
|
1837
|
+
J,
|
|
1838
|
+
q
|
|
1839
1839
|
] }],
|
|
1840
1840
|
"backdrop-contrast": [{ "backdrop-contrast": [
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1841
|
+
K,
|
|
1842
|
+
J,
|
|
1843
|
+
q
|
|
1844
1844
|
] }],
|
|
1845
1845
|
"backdrop-grayscale": [{ "backdrop-grayscale": [
|
|
1846
1846
|
"",
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1847
|
+
K,
|
|
1848
|
+
J,
|
|
1849
|
+
q
|
|
1850
1850
|
] }],
|
|
1851
1851
|
"backdrop-hue-rotate": [{ "backdrop-hue-rotate": [
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1852
|
+
K,
|
|
1853
|
+
J,
|
|
1854
|
+
q
|
|
1855
1855
|
] }],
|
|
1856
1856
|
"backdrop-invert": [{ "backdrop-invert": [
|
|
1857
1857
|
"",
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1858
|
+
K,
|
|
1859
|
+
J,
|
|
1860
|
+
q
|
|
1861
1861
|
] }],
|
|
1862
1862
|
"backdrop-opacity": [{ "backdrop-opacity": [
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1863
|
+
K,
|
|
1864
|
+
J,
|
|
1865
|
+
q
|
|
1866
1866
|
] }],
|
|
1867
1867
|
"backdrop-saturate": [{ "backdrop-saturate": [
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1868
|
+
K,
|
|
1869
|
+
J,
|
|
1870
|
+
q
|
|
1871
1871
|
] }],
|
|
1872
1872
|
"backdrop-sepia": [{ "backdrop-sepia": [
|
|
1873
1873
|
"",
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1874
|
+
K,
|
|
1875
|
+
J,
|
|
1876
|
+
q
|
|
1877
1877
|
] }],
|
|
1878
1878
|
"border-collapse": [{ border: ["collapse", "separate"] }],
|
|
1879
1879
|
"border-spacing": [{ "border-spacing": w() }],
|
|
@@ -1889,39 +1889,39 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1889
1889
|
"shadow",
|
|
1890
1890
|
"transform",
|
|
1891
1891
|
"none",
|
|
1892
|
-
|
|
1893
|
-
|
|
1892
|
+
J,
|
|
1893
|
+
q
|
|
1894
1894
|
] }],
|
|
1895
1895
|
"transition-behavior": [{ transition: ["normal", "discrete"] }],
|
|
1896
1896
|
duration: [{ duration: [
|
|
1897
|
-
|
|
1897
|
+
K,
|
|
1898
1898
|
"initial",
|
|
1899
|
-
|
|
1900
|
-
|
|
1899
|
+
J,
|
|
1900
|
+
q
|
|
1901
1901
|
] }],
|
|
1902
1902
|
ease: [{ ease: [
|
|
1903
1903
|
"linear",
|
|
1904
1904
|
"initial",
|
|
1905
1905
|
_,
|
|
1906
|
-
|
|
1907
|
-
|
|
1906
|
+
J,
|
|
1907
|
+
q
|
|
1908
1908
|
] }],
|
|
1909
1909
|
delay: [{ delay: [
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1910
|
+
K,
|
|
1911
|
+
J,
|
|
1912
|
+
q
|
|
1913
1913
|
] }],
|
|
1914
1914
|
animate: [{ animate: [
|
|
1915
1915
|
"none",
|
|
1916
1916
|
v,
|
|
1917
|
-
|
|
1918
|
-
|
|
1917
|
+
J,
|
|
1918
|
+
q
|
|
1919
1919
|
] }],
|
|
1920
1920
|
backface: [{ backface: ["hidden", "visible"] }],
|
|
1921
1921
|
perspective: [{ perspective: [
|
|
1922
1922
|
h,
|
|
1923
|
-
|
|
1924
|
-
|
|
1923
|
+
J,
|
|
1924
|
+
q
|
|
1925
1925
|
] }],
|
|
1926
1926
|
"perspective-origin": [{ "perspective-origin": x() }],
|
|
1927
1927
|
rotate: [{ rotate: oe() }],
|
|
@@ -1937,8 +1937,8 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1937
1937
|
"skew-x": [{ "skew-x": se() }],
|
|
1938
1938
|
"skew-y": [{ "skew-y": se() }],
|
|
1939
1939
|
transform: [{ transform: [
|
|
1940
|
-
Y,
|
|
1941
1940
|
J,
|
|
1941
|
+
q,
|
|
1942
1942
|
"",
|
|
1943
1943
|
"none",
|
|
1944
1944
|
"gpu",
|
|
@@ -1952,9 +1952,9 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
1952
1952
|
"translate-z": [{ "translate-z": H() }],
|
|
1953
1953
|
"translate-none": ["translate-none"],
|
|
1954
1954
|
zoom: [{ zoom: [
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1955
|
+
Gt,
|
|
1956
|
+
J,
|
|
1957
|
+
q
|
|
1958
1958
|
] }],
|
|
1959
1959
|
accent: [{ accent: P() }],
|
|
1960
1960
|
appearance: [{ appearance: ["none", "auto"] }],
|
|
@@ -2004,8 +2004,8 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
2004
2004
|
"nwse-resize",
|
|
2005
2005
|
"zoom-in",
|
|
2006
2006
|
"zoom-out",
|
|
2007
|
-
|
|
2008
|
-
|
|
2007
|
+
J,
|
|
2008
|
+
q
|
|
2009
2009
|
] }],
|
|
2010
2010
|
"field-sizing": [{ "field-sizing": ["fixed", "content"] }],
|
|
2011
2011
|
"pointer-events": [{ "pointer-events": ["auto", "none"] }],
|
|
@@ -2091,15 +2091,15 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
2091
2091
|
"scroll",
|
|
2092
2092
|
"contents",
|
|
2093
2093
|
"transform",
|
|
2094
|
-
|
|
2095
|
-
|
|
2094
|
+
J,
|
|
2095
|
+
q
|
|
2096
2096
|
] }],
|
|
2097
2097
|
fill: [{ fill: ["none", ...P()] }],
|
|
2098
2098
|
"stroke-w": [{ stroke: [
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2099
|
+
K,
|
|
2100
|
+
un,
|
|
2101
|
+
nn,
|
|
2102
|
+
rn
|
|
2103
2103
|
] }],
|
|
2104
2104
|
stroke: [{ stroke: ["none", ...P()] }],
|
|
2105
2105
|
"forced-color-adjust": [{ "forced-color-adjust": ["auto", "none"] }]
|
|
@@ -2290,12 +2290,12 @@ var $e = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, et = Qe, tt
|
|
|
2290
2290
|
});
|
|
2291
2291
|
//#endregion
|
|
2292
2292
|
//#region src/ui/browser/utils.ts
|
|
2293
|
-
function
|
|
2294
|
-
return
|
|
2293
|
+
function On(...e) {
|
|
2294
|
+
return Dn($e(e));
|
|
2295
2295
|
}
|
|
2296
2296
|
//#endregion
|
|
2297
2297
|
//#region src/ui/browser/button.tsx
|
|
2298
|
-
var
|
|
2298
|
+
var kn = nt("nodrag group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap no-underline transition-[color,background-color,border-color,box-shadow,opacity,transform] outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
2299
2299
|
variants: {
|
|
2300
2300
|
variant: {
|
|
2301
2301
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
@@ -2320,13 +2320,13 @@ var On = tt("nodrag group/button inline-flex shrink-0 items-center justify-cente
|
|
|
2320
2320
|
variant: "default",
|
|
2321
2321
|
size: "default"
|
|
2322
2322
|
}
|
|
2323
|
-
}),
|
|
2324
|
-
return /* @__PURE__ */ s(
|
|
2323
|
+
}), An = i(function({ className: e, variant: t = "default", size: n = "default", ...r }, i) {
|
|
2324
|
+
return /* @__PURE__ */ s(Ze, {
|
|
2325
2325
|
ref: i,
|
|
2326
2326
|
"data-slot": "button",
|
|
2327
2327
|
"data-size": n,
|
|
2328
2328
|
"data-variant": t,
|
|
2329
|
-
className:
|
|
2329
|
+
className: On(kn({
|
|
2330
2330
|
variant: t,
|
|
2331
2331
|
size: n,
|
|
2332
2332
|
className: e
|
|
@@ -2336,23 +2336,23 @@ var On = tt("nodrag group/button inline-flex shrink-0 items-center justify-cente
|
|
|
2336
2336
|
});
|
|
2337
2337
|
//#endregion
|
|
2338
2338
|
//#region src/ui/browser/label.tsx
|
|
2339
|
-
function
|
|
2339
|
+
function jn({ className: e, ...t }) {
|
|
2340
2340
|
return /* @__PURE__ */ s("label", {
|
|
2341
2341
|
"data-slot": "label",
|
|
2342
|
-
className:
|
|
2342
|
+
className: On("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
2343
2343
|
...t
|
|
2344
2344
|
});
|
|
2345
2345
|
}
|
|
2346
2346
|
//#endregion
|
|
2347
2347
|
//#region src/ui/browser/field.tsx
|
|
2348
|
-
function
|
|
2348
|
+
function Mn({ className: e, ...t }) {
|
|
2349
2349
|
return /* @__PURE__ */ s("div", {
|
|
2350
2350
|
"data-slot": "field-group",
|
|
2351
|
-
className:
|
|
2351
|
+
className: On("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
2352
2352
|
...t
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
|
-
var
|
|
2355
|
+
var Nn = nt("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
2356
2356
|
variants: { orientation: {
|
|
2357
2357
|
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
2358
2358
|
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
@@ -2360,30 +2360,30 @@ var Mn = tt("group/field flex w-full gap-2 data-[invalid=true]:text-destructive"
|
|
|
2360
2360
|
} },
|
|
2361
2361
|
defaultVariants: { orientation: "vertical" }
|
|
2362
2362
|
});
|
|
2363
|
-
function
|
|
2363
|
+
function Pn({ className: e, orientation: t = "vertical", ...n }) {
|
|
2364
2364
|
return /* @__PURE__ */ s("div", {
|
|
2365
2365
|
role: "group",
|
|
2366
2366
|
"data-slot": "field",
|
|
2367
2367
|
"data-orientation": t,
|
|
2368
|
-
className:
|
|
2368
|
+
className: On(Nn({ orientation: t }), e),
|
|
2369
2369
|
...n
|
|
2370
2370
|
});
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2373
|
-
return /* @__PURE__ */ s(
|
|
2372
|
+
function Fn({ className: e, ...t }) {
|
|
2373
|
+
return /* @__PURE__ */ s(jn, {
|
|
2374
2374
|
"data-slot": "field-label",
|
|
2375
|
-
className:
|
|
2375
|
+
className: On("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
2376
2376
|
...t
|
|
2377
2377
|
});
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function In({ className: e, ...t }) {
|
|
2380
2380
|
return /* @__PURE__ */ s("p", {
|
|
2381
2381
|
"data-slot": "field-description",
|
|
2382
|
-
className:
|
|
2382
|
+
className: On("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
2383
2383
|
...t
|
|
2384
2384
|
});
|
|
2385
2385
|
}
|
|
2386
|
-
function
|
|
2386
|
+
function Ln({ className: e, children: t, errors: n, ...r }) {
|
|
2387
2387
|
let i = a(() => {
|
|
2388
2388
|
if (t) return t;
|
|
2389
2389
|
if (!n?.length) return null;
|
|
@@ -2396,16 +2396,16 @@ function In({ className: e, children: t, errors: n, ...r }) {
|
|
|
2396
2396
|
return i ? /* @__PURE__ */ s("div", {
|
|
2397
2397
|
role: "alert",
|
|
2398
2398
|
"data-slot": "field-error",
|
|
2399
|
-
className:
|
|
2399
|
+
className: On("text-sm font-normal text-destructive", e),
|
|
2400
2400
|
...r,
|
|
2401
2401
|
children: i
|
|
2402
2402
|
}) : null;
|
|
2403
2403
|
}
|
|
2404
2404
|
//#endregion
|
|
2405
2405
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/field/control/FieldControlDataAttributes.js
|
|
2406
|
-
var
|
|
2406
|
+
var Rn = /*#__PURE__*/ function(e) {
|
|
2407
2407
|
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
2408
|
-
}({}),
|
|
2408
|
+
}({}), zn = {
|
|
2409
2409
|
badInput: !1,
|
|
2410
2410
|
customError: !1,
|
|
2411
2411
|
patternMismatch: !1,
|
|
@@ -2417,102 +2417,102 @@ var Ln = /*#__PURE__*/ function(e) {
|
|
|
2417
2417
|
typeMismatch: !1,
|
|
2418
2418
|
valid: null,
|
|
2419
2419
|
valueMissing: !1
|
|
2420
|
-
},
|
|
2420
|
+
}, Bn = {
|
|
2421
2421
|
valid: null,
|
|
2422
2422
|
touched: !1,
|
|
2423
2423
|
dirty: !1,
|
|
2424
2424
|
filled: !1,
|
|
2425
2425
|
focused: !1
|
|
2426
|
-
},
|
|
2426
|
+
}, Vn = {
|
|
2427
2427
|
disabled: !1,
|
|
2428
|
-
...
|
|
2429
|
-
},
|
|
2430
|
-
return e === null ? null : e ? { [
|
|
2431
|
-
} },
|
|
2428
|
+
...Bn
|
|
2429
|
+
}, Hn = { valid(e) {
|
|
2430
|
+
return e === null ? null : e ? { [Rn.valid]: "" } : { [Rn.invalid]: "" };
|
|
2431
|
+
} }, Un = /*#__PURE__*/ n.createContext({
|
|
2432
2432
|
invalid: void 0,
|
|
2433
2433
|
name: void 0,
|
|
2434
2434
|
validityData: {
|
|
2435
|
-
state:
|
|
2435
|
+
state: zn,
|
|
2436
2436
|
errors: [],
|
|
2437
2437
|
error: "",
|
|
2438
2438
|
value: "",
|
|
2439
2439
|
initialValue: null
|
|
2440
2440
|
},
|
|
2441
|
-
setValidityData:
|
|
2441
|
+
setValidityData: U,
|
|
2442
2442
|
disabled: void 0,
|
|
2443
|
-
touched:
|
|
2444
|
-
setTouched:
|
|
2445
|
-
dirty:
|
|
2446
|
-
setDirty:
|
|
2447
|
-
filled:
|
|
2448
|
-
setFilled:
|
|
2449
|
-
focused:
|
|
2450
|
-
setFocused:
|
|
2443
|
+
touched: Bn.touched,
|
|
2444
|
+
setTouched: U,
|
|
2445
|
+
dirty: Bn.dirty,
|
|
2446
|
+
setDirty: U,
|
|
2447
|
+
filled: Bn.filled,
|
|
2448
|
+
setFilled: U,
|
|
2449
|
+
focused: Bn.focused,
|
|
2450
|
+
setFocused: U,
|
|
2451
2451
|
validate: () => null,
|
|
2452
2452
|
validationMode: "onSubmit",
|
|
2453
2453
|
validationDebounceTime: 0,
|
|
2454
2454
|
shouldValidateOnChange: () => !1,
|
|
2455
|
-
state:
|
|
2455
|
+
state: Vn,
|
|
2456
2456
|
markedDirtyRef: { current: !1 },
|
|
2457
|
-
registerFieldControl:
|
|
2457
|
+
registerFieldControl: U,
|
|
2458
2458
|
validation: {
|
|
2459
|
-
getValidationProps: (e =
|
|
2460
|
-
getInputValidationProps: (e =
|
|
2459
|
+
getValidationProps: (e = W) => e,
|
|
2460
|
+
getInputValidationProps: (e = W) => e,
|
|
2461
2461
|
inputRef: { current: null },
|
|
2462
2462
|
commit: async () => {}
|
|
2463
2463
|
}
|
|
2464
2464
|
});
|
|
2465
|
-
process.env.NODE_ENV !== "production" && (
|
|
2466
|
-
function
|
|
2467
|
-
let t = n.useContext(
|
|
2468
|
-
if (t.setValidityData ===
|
|
2465
|
+
process.env.NODE_ENV !== "production" && (Un.displayName = "FieldRootContext");
|
|
2466
|
+
function Wn(e = !0) {
|
|
2467
|
+
let t = n.useContext(Un);
|
|
2468
|
+
if (t.setValidityData === U && !e) throw Error(process.env.NODE_ENV === "production" ? be(28) : "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.");
|
|
2469
2469
|
return t;
|
|
2470
2470
|
}
|
|
2471
2471
|
//#endregion
|
|
2472
2472
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useId.js
|
|
2473
|
-
var
|
|
2474
|
-
function
|
|
2473
|
+
var Gn = 0;
|
|
2474
|
+
function Kn(e, t = "mui") {
|
|
2475
2475
|
let [r, i] = n.useState(e), a = e || r;
|
|
2476
2476
|
return n.useEffect(() => {
|
|
2477
|
-
r ?? (
|
|
2477
|
+
r ?? (Gn += 1, i(`${t}-${Gn}`));
|
|
2478
2478
|
}, [r, t]), a;
|
|
2479
2479
|
}
|
|
2480
|
-
var
|
|
2481
|
-
function
|
|
2482
|
-
if (
|
|
2483
|
-
let n =
|
|
2480
|
+
var qn = ie.useId;
|
|
2481
|
+
function Jn(e, t) {
|
|
2482
|
+
if (qn !== void 0) {
|
|
2483
|
+
let n = qn();
|
|
2484
2484
|
return e ?? (t ? `${t}-${n}` : n);
|
|
2485
2485
|
}
|
|
2486
|
-
return
|
|
2486
|
+
return Kn(e, t);
|
|
2487
2487
|
}
|
|
2488
2488
|
//#endregion
|
|
2489
2489
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useBaseUiId.js
|
|
2490
|
-
function
|
|
2491
|
-
return
|
|
2490
|
+
function Yn(e) {
|
|
2491
|
+
return Jn(e, "base-ui");
|
|
2492
2492
|
}
|
|
2493
2493
|
//#endregion
|
|
2494
2494
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
|
|
2495
|
-
var
|
|
2495
|
+
var Xn = /*#__PURE__*/ n.createContext({
|
|
2496
2496
|
controlId: void 0,
|
|
2497
|
-
registerControlId:
|
|
2497
|
+
registerControlId: U,
|
|
2498
2498
|
labelId: void 0,
|
|
2499
|
-
setLabelId:
|
|
2499
|
+
setLabelId: U,
|
|
2500
2500
|
messageIds: [],
|
|
2501
|
-
setMessageIds:
|
|
2501
|
+
setMessageIds: U,
|
|
2502
2502
|
getDescriptionProps: (e) => e
|
|
2503
2503
|
});
|
|
2504
|
-
process.env.NODE_ENV !== "production" && (
|
|
2505
|
-
function
|
|
2506
|
-
return n.useContext(
|
|
2504
|
+
process.env.NODE_ENV !== "production" && (Xn.displayName = "LabelableContext");
|
|
2505
|
+
function Zn() {
|
|
2506
|
+
return n.useContext(Xn);
|
|
2507
2507
|
}
|
|
2508
2508
|
//#endregion
|
|
2509
2509
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
2510
|
-
function
|
|
2511
|
-
let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: a, registerControlId: o } =
|
|
2512
|
-
!u.current || o ===
|
|
2510
|
+
function Qn(e = {}) {
|
|
2511
|
+
let { id: t, implicit: r = !1, controlRef: i } = e, { controlId: a, registerControlId: o } = Zn(), s = Yn(t), c = r ? a : void 0, l = P(() => Symbol("labelable-control")), u = n.useRef(!1), d = n.useRef(t != null), f = F(() => {
|
|
2512
|
+
!u.current || o === U || (u.current = !1, o(l.current, void 0));
|
|
2513
2513
|
});
|
|
2514
2514
|
return B(() => {
|
|
2515
|
-
if (o ===
|
|
2515
|
+
if (o === U) return;
|
|
2516
2516
|
let e;
|
|
2517
2517
|
if (r) {
|
|
2518
2518
|
let n = i?.current;
|
|
@@ -2541,18 +2541,18 @@ function Zn(e = {}) {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
//#endregion
|
|
2543
2543
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/owner.js
|
|
2544
|
-
function
|
|
2544
|
+
function Y(e) {
|
|
2545
2545
|
return e?.ownerDocument || document;
|
|
2546
2546
|
}
|
|
2547
2547
|
//#endregion
|
|
2548
2548
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/detectBrowser.js
|
|
2549
|
-
var
|
|
2550
|
-
|
|
2551
|
-
var
|
|
2552
|
-
|
|
2553
|
-
var
|
|
2554
|
-
function
|
|
2555
|
-
if (
|
|
2549
|
+
var $n = typeof navigator < "u", er = lr(), tr = dr(), nr = ur(), rr = typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter:none"), ir = er.platform === "MacIntel" && er.maxTouchPoints > 1 || /iP(hone|ad|od)|iOS/.test(er.platform);
|
|
2550
|
+
$n && /firefox/i.test(nr);
|
|
2551
|
+
var ar = $n && /apple/i.test(navigator.vendor);
|
|
2552
|
+
$n && /Edg/i.test(nr);
|
|
2553
|
+
var or = $n && /android/i.test(tr) || /android/i.test(nr), sr = $n && tr.toLowerCase().startsWith("mac") && !navigator.maxTouchPoints, cr = nr.includes("jsdom/");
|
|
2554
|
+
function lr() {
|
|
2555
|
+
if (!$n) return {
|
|
2556
2556
|
platform: "",
|
|
2557
2557
|
maxTouchPoints: -1
|
|
2558
2558
|
};
|
|
@@ -2565,27 +2565,27 @@ function cr() {
|
|
|
2565
2565
|
maxTouchPoints: navigator.maxTouchPoints ?? -1
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2569
|
-
if (
|
|
2568
|
+
function ur() {
|
|
2569
|
+
if (!$n) return "";
|
|
2570
2570
|
let e = navigator.userAgentData;
|
|
2571
2571
|
return e && Array.isArray(e.brands) ? e.brands.map(({ brand: e, version: t }) => `${e}/${t}`).join(" ") : navigator.userAgent;
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2574
|
-
if (
|
|
2573
|
+
function dr() {
|
|
2574
|
+
if (!$n) return "";
|
|
2575
2575
|
let e = navigator.userAgentData;
|
|
2576
2576
|
return e?.platform ? e.platform : navigator.platform ?? "";
|
|
2577
2577
|
}
|
|
2578
2578
|
//#endregion
|
|
2579
2579
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/constants.js
|
|
2580
|
-
var
|
|
2580
|
+
var fr = "data-base-ui-focusable", pr = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])", mr = "ArrowLeft", hr = "ArrowRight", gr = "ArrowUp", _r = "ArrowDown";
|
|
2581
2581
|
//#endregion
|
|
2582
2582
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/shadowDom.js
|
|
2583
|
-
function
|
|
2583
|
+
function vr(e) {
|
|
2584
2584
|
let t = e.activeElement;
|
|
2585
2585
|
for (; t?.shadowRoot?.activeElement != null;) t = t.shadowRoot.activeElement;
|
|
2586
2586
|
return t;
|
|
2587
2587
|
}
|
|
2588
|
-
function
|
|
2588
|
+
function X(e, t) {
|
|
2589
2589
|
if (!e || !t) return !1;
|
|
2590
2590
|
let n = t.getRootNode?.();
|
|
2591
2591
|
if (e.contains(t)) return !0;
|
|
@@ -2598,53 +2598,53 @@ function Z(e, t) {
|
|
|
2598
2598
|
}
|
|
2599
2599
|
return !1;
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function yr(e) {
|
|
2602
2602
|
return "composedPath" in e ? e.composedPath()[0] : e.target;
|
|
2603
2603
|
}
|
|
2604
2604
|
//#endregion
|
|
2605
2605
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/element.js
|
|
2606
|
-
function
|
|
2606
|
+
function br(e, t) {
|
|
2607
2607
|
if (!h(e)) return !1;
|
|
2608
2608
|
let n = e;
|
|
2609
2609
|
if (t.hasElement(n)) return !n.hasAttribute("data-trigger-disabled");
|
|
2610
|
-
for (let [, e] of t.entries()) if (
|
|
2610
|
+
for (let [, e] of t.entries()) if (X(e, n)) return !e.hasAttribute("data-trigger-disabled");
|
|
2611
2611
|
return !1;
|
|
2612
2612
|
}
|
|
2613
|
-
function
|
|
2613
|
+
function xr(e, t) {
|
|
2614
2614
|
if (t == null) return !1;
|
|
2615
2615
|
if ("composedPath" in e) return e.composedPath().includes(t);
|
|
2616
2616
|
let n = e;
|
|
2617
2617
|
return n.target != null && t.contains(n.target);
|
|
2618
2618
|
}
|
|
2619
|
-
function xr(e) {
|
|
2620
|
-
return e.matches("html,body");
|
|
2621
|
-
}
|
|
2622
2619
|
function Sr(e) {
|
|
2623
|
-
return
|
|
2620
|
+
return e.matches("html,body");
|
|
2624
2621
|
}
|
|
2625
2622
|
function Cr(e) {
|
|
2626
|
-
return e
|
|
2623
|
+
return g(e) && e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])");
|
|
2627
2624
|
}
|
|
2628
2625
|
function wr(e) {
|
|
2629
|
-
return e
|
|
2626
|
+
return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${pr}`) != null;
|
|
2630
2627
|
}
|
|
2631
2628
|
function Tr(e) {
|
|
2632
|
-
|
|
2629
|
+
return e ? e.getAttribute("role") === "combobox" && Cr(e) : !1;
|
|
2630
|
+
}
|
|
2631
|
+
function Er(e) {
|
|
2632
|
+
if (!e || cr) return !0;
|
|
2633
2633
|
try {
|
|
2634
2634
|
return e.matches(":focus-visible");
|
|
2635
2635
|
} catch {
|
|
2636
2636
|
return !0;
|
|
2637
2637
|
}
|
|
2638
2638
|
}
|
|
2639
|
-
function
|
|
2639
|
+
function Dr(e) {
|
|
2640
2640
|
return e ? e.hasAttribute("data-base-ui-focusable") ? e : e.querySelector("[data-base-ui-focusable]") || e : null;
|
|
2641
2641
|
}
|
|
2642
2642
|
//#endregion
|
|
2643
2643
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/nodes.js
|
|
2644
|
-
function
|
|
2645
|
-
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...
|
|
2644
|
+
function Or(e, t, n = !0) {
|
|
2645
|
+
return e.filter((e) => e.parentId === t).flatMap((t) => [...!n || t.context?.open ? [t] : [], ...Or(e, t.id, n)]);
|
|
2646
2646
|
}
|
|
2647
|
-
function
|
|
2647
|
+
function kr(e, t) {
|
|
2648
2648
|
let n = [], r = e.find((e) => e.id === t)?.parentId;
|
|
2649
2649
|
for (; r;) {
|
|
2650
2650
|
let t = e.find((e) => e.id === r);
|
|
@@ -2654,102 +2654,102 @@ function Or(e, t) {
|
|
|
2654
2654
|
}
|
|
2655
2655
|
//#endregion
|
|
2656
2656
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/event.js
|
|
2657
|
-
function kr(e) {
|
|
2658
|
-
e.preventDefault(), e.stopPropagation();
|
|
2659
|
-
}
|
|
2660
2657
|
function Ar(e) {
|
|
2661
|
-
|
|
2658
|
+
e.preventDefault(), e.stopPropagation();
|
|
2662
2659
|
}
|
|
2663
2660
|
function jr(e) {
|
|
2664
|
-
return
|
|
2661
|
+
return "nativeEvent" in e;
|
|
2665
2662
|
}
|
|
2666
2663
|
function Mr(e) {
|
|
2667
|
-
return
|
|
2664
|
+
return e.pointerType === "" && e.isTrusted ? !0 : or && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
2665
|
+
}
|
|
2666
|
+
function Nr(e) {
|
|
2667
|
+
return cr ? !1 : !or && e.width === 0 && e.height === 0 || or && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
2668
2668
|
}
|
|
2669
|
-
function
|
|
2669
|
+
function Pr(e, t) {
|
|
2670
2670
|
let n = ["mouse", "pen"];
|
|
2671
2671
|
return t || n.push("", void 0), n.includes(e);
|
|
2672
2672
|
}
|
|
2673
|
-
function
|
|
2673
|
+
function Fr(e) {
|
|
2674
2674
|
let t = e.type;
|
|
2675
2675
|
return t === "click" || t === "mousedown" || t === "keydown" || t === "keyup";
|
|
2676
2676
|
}
|
|
2677
2677
|
//#endregion
|
|
2678
2678
|
//#region ../../node_modules/.bun/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
2679
|
-
var
|
|
2679
|
+
var Ir = [
|
|
2680
2680
|
"top",
|
|
2681
2681
|
"right",
|
|
2682
2682
|
"bottom",
|
|
2683
2683
|
"left"
|
|
2684
|
-
],
|
|
2684
|
+
], Lr = Math.min, Rr = Math.max, zr = Math.round, Br = Math.floor, Vr = (e) => ({
|
|
2685
2685
|
x: e,
|
|
2686
2686
|
y: e
|
|
2687
|
-
}),
|
|
2687
|
+
}), Hr = {
|
|
2688
2688
|
left: "right",
|
|
2689
2689
|
right: "left",
|
|
2690
2690
|
bottom: "top",
|
|
2691
2691
|
top: "bottom"
|
|
2692
2692
|
};
|
|
2693
|
-
function
|
|
2694
|
-
return
|
|
2693
|
+
function Ur(e, t, n) {
|
|
2694
|
+
return Rr(e, Lr(t, n));
|
|
2695
2695
|
}
|
|
2696
|
-
function
|
|
2696
|
+
function Wr(e, t) {
|
|
2697
2697
|
return typeof e == "function" ? e(t) : e;
|
|
2698
2698
|
}
|
|
2699
|
-
function
|
|
2699
|
+
function Gr(e) {
|
|
2700
2700
|
return e.split("-")[0];
|
|
2701
2701
|
}
|
|
2702
|
-
function
|
|
2702
|
+
function Kr(e) {
|
|
2703
2703
|
return e.split("-")[1];
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function qr(e) {
|
|
2706
2706
|
return e === "x" ? "y" : "x";
|
|
2707
2707
|
}
|
|
2708
|
-
function
|
|
2708
|
+
function Jr(e) {
|
|
2709
2709
|
return e === "y" ? "height" : "width";
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2711
|
+
function Yr(e) {
|
|
2712
2712
|
let t = e[0];
|
|
2713
2713
|
return t === "t" || t === "b" ? "y" : "x";
|
|
2714
2714
|
}
|
|
2715
|
-
function
|
|
2716
|
-
return
|
|
2715
|
+
function Xr(e) {
|
|
2716
|
+
return qr(Yr(e));
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2718
|
+
function Zr(e, t, n) {
|
|
2719
2719
|
n === void 0 && (n = !1);
|
|
2720
|
-
let r =
|
|
2721
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
2720
|
+
let r = Kr(e), i = Xr(e), a = Jr(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
2721
|
+
return t.reference[a] > t.floating[a] && (o = oi(o)), [o, oi(o)];
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2724
|
-
let t =
|
|
2723
|
+
function Qr(e) {
|
|
2724
|
+
let t = oi(e);
|
|
2725
2725
|
return [
|
|
2726
|
-
|
|
2726
|
+
$r(e),
|
|
2727
2727
|
t,
|
|
2728
|
-
|
|
2728
|
+
$r(t)
|
|
2729
2729
|
];
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function $r(e) {
|
|
2732
2732
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
2733
2733
|
}
|
|
2734
|
-
var
|
|
2735
|
-
function
|
|
2734
|
+
var ei = ["left", "right"], ti = ["right", "left"], ni = ["top", "bottom"], ri = ["bottom", "top"];
|
|
2735
|
+
function ii(e, t, n) {
|
|
2736
2736
|
switch (e) {
|
|
2737
2737
|
case "top":
|
|
2738
|
-
case "bottom": return n ? t ?
|
|
2738
|
+
case "bottom": return n ? t ? ti : ei : t ? ei : ti;
|
|
2739
2739
|
case "left":
|
|
2740
|
-
case "right": return t ?
|
|
2740
|
+
case "right": return t ? ni : ri;
|
|
2741
2741
|
default: return [];
|
|
2742
2742
|
}
|
|
2743
2743
|
}
|
|
2744
|
-
function
|
|
2745
|
-
let i =
|
|
2746
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
2747
|
-
}
|
|
2748
|
-
function ai(e) {
|
|
2749
|
-
let t = Wr(e);
|
|
2750
|
-
return Vr[t] + e.slice(t.length);
|
|
2744
|
+
function ai(e, t, n, r) {
|
|
2745
|
+
let i = Kr(e), a = ii(Gr(e), n === "start", r);
|
|
2746
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map($r)))), a;
|
|
2751
2747
|
}
|
|
2752
2748
|
function oi(e) {
|
|
2749
|
+
let t = Gr(e);
|
|
2750
|
+
return Hr[t] + e.slice(t.length);
|
|
2751
|
+
}
|
|
2752
|
+
function si(e) {
|
|
2753
2753
|
return {
|
|
2754
2754
|
top: e.top ?? 0,
|
|
2755
2755
|
right: e.right ?? 0,
|
|
@@ -2757,15 +2757,15 @@ function oi(e) {
|
|
|
2757
2757
|
left: e.left ?? 0
|
|
2758
2758
|
};
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function ci(e) {
|
|
2761
2761
|
return typeof e == "number" ? {
|
|
2762
2762
|
top: e,
|
|
2763
2763
|
right: e,
|
|
2764
2764
|
bottom: e,
|
|
2765
2765
|
left: e
|
|
2766
|
-
} :
|
|
2766
|
+
} : si(e);
|
|
2767
2767
|
}
|
|
2768
|
-
function
|
|
2768
|
+
function li(e) {
|
|
2769
2769
|
let { x: t, y: n, width: r, height: i } = e;
|
|
2770
2770
|
return {
|
|
2771
2771
|
width: r,
|
|
@@ -2780,30 +2780,30 @@ function ci(e) {
|
|
|
2780
2780
|
}
|
|
2781
2781
|
//#endregion
|
|
2782
2782
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js
|
|
2783
|
-
function
|
|
2783
|
+
function ui(e, t, n) {
|
|
2784
2784
|
return Math.floor(e / t) !== n;
|
|
2785
2785
|
}
|
|
2786
|
-
function ui(e, t) {
|
|
2787
|
-
return t < 0 || t >= e.length;
|
|
2788
|
-
}
|
|
2789
2786
|
function di(e, t) {
|
|
2790
|
-
return
|
|
2787
|
+
return t < 0 || t >= e.length;
|
|
2791
2788
|
}
|
|
2792
2789
|
function fi(e, t) {
|
|
2793
|
-
return
|
|
2790
|
+
return mi(e.current, { disabledIndices: t });
|
|
2791
|
+
}
|
|
2792
|
+
function pi(e, t) {
|
|
2793
|
+
return mi(e.current, {
|
|
2794
2794
|
decrement: !0,
|
|
2795
2795
|
startingIndex: e.current.length,
|
|
2796
2796
|
disabledIndices: t
|
|
2797
2797
|
});
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2799
|
+
function mi(e, { startingIndex: t = -1, decrement: n = !1, disabledIndices: r, amount: i = 1 } = {}) {
|
|
2800
2800
|
let a = t;
|
|
2801
2801
|
do
|
|
2802
2802
|
a += n ? -i : i;
|
|
2803
|
-
while (a >= 0 && a <= e.length - 1 &&
|
|
2803
|
+
while (a >= 0 && a <= e.length - 1 && yi(e, a, r));
|
|
2804
2804
|
return a;
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function hi(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols: o, disabledIndices: s, minIndex: c, maxIndex: l, prevIndex: u, stopEvent: d = !1 }) {
|
|
2807
2807
|
let f = u, p;
|
|
2808
2808
|
if (t.key === "ArrowUp" ? p = "up" : t.key === "ArrowDown" && (p = "down"), p) {
|
|
2809
2809
|
let n = [], a = [], m = !1, h = 0;
|
|
@@ -2837,26 +2837,26 @@ function mi(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols
|
|
|
2837
2837
|
let c = n[o];
|
|
2838
2838
|
for (let t = Math.min(l, c.length - 1); t >= 0; --t) {
|
|
2839
2839
|
let n = c[t];
|
|
2840
|
-
if (!
|
|
2840
|
+
if (!yi(e, n, s)) return n;
|
|
2841
2841
|
}
|
|
2842
2842
|
}
|
|
2843
2843
|
}, x = (t) => {
|
|
2844
2844
|
if (!v || u === -1) return;
|
|
2845
|
-
let n = u % y, i = t === "up" ? -y : y, a = l - l % y, o =
|
|
2845
|
+
let n = u % y, i = t === "up" ? -y : y, a = l - l % y, o = Br(l / y) + 1;
|
|
2846
2846
|
for (let t = u - n + i, c = 0; c < o; c += 1, t += i) {
|
|
2847
2847
|
if (t < 0 || t > l) {
|
|
2848
2848
|
if (!r) return;
|
|
2849
2849
|
t = t < 0 ? a : 0;
|
|
2850
2850
|
}
|
|
2851
2851
|
let i = Math.min(t + y - 1, l);
|
|
2852
|
-
for (let r = Math.min(t + n, i); r >= t; --r) if (!
|
|
2852
|
+
for (let r = Math.min(t + n, i); r >= t; --r) if (!yi(e, r, s)) return r;
|
|
2853
2853
|
}
|
|
2854
2854
|
};
|
|
2855
|
-
d &&
|
|
2855
|
+
d && Ar(t);
|
|
2856
2856
|
let S = b(p) ?? x(p);
|
|
2857
2857
|
if (S !== void 0) f = S;
|
|
2858
2858
|
else if (u === -1) f = p === "up" ? l : c;
|
|
2859
|
-
else if (f =
|
|
2859
|
+
else if (f = mi(e, {
|
|
2860
2860
|
startingIndex: u,
|
|
2861
2861
|
amount: y,
|
|
2862
2862
|
decrement: p === "up",
|
|
@@ -2866,47 +2866,47 @@ function mi(e, { event: t, orientation: n, loopFocus: r, onLoop: i, rtl: a, cols
|
|
|
2866
2866
|
let e = u % y, n = l % y, r = l - (n - e);
|
|
2867
2867
|
f = n === e ? l : n > e ? r : r - y, i && (f = i(t, u, f));
|
|
2868
2868
|
}
|
|
2869
|
-
p === "down" && u + y > l && (f =
|
|
2869
|
+
p === "down" && u + y > l && (f = mi(e, {
|
|
2870
2870
|
startingIndex: u % y - y,
|
|
2871
2871
|
amount: y,
|
|
2872
2872
|
disabledIndices: s
|
|
2873
2873
|
}), i && (f = i(t, u, f)));
|
|
2874
2874
|
}
|
|
2875
|
-
|
|
2875
|
+
di(e, f) && (f = u);
|
|
2876
2876
|
}
|
|
2877
2877
|
if (n === "both") {
|
|
2878
|
-
let n =
|
|
2879
|
-
t.key === (a ? "ArrowLeft" : "ArrowRight") && (d &&
|
|
2878
|
+
let n = Br(u / o);
|
|
2879
|
+
t.key === (a ? "ArrowLeft" : "ArrowRight") && (d && Ar(t), u % o === o - 1 ? r && (f = mi(e, {
|
|
2880
2880
|
startingIndex: u - u % o - 1,
|
|
2881
2881
|
disabledIndices: s
|
|
2882
|
-
}), i && (f = i(t, u, f))) : (f =
|
|
2882
|
+
}), i && (f = i(t, u, f))) : (f = mi(e, {
|
|
2883
2883
|
startingIndex: u,
|
|
2884
2884
|
disabledIndices: s
|
|
2885
|
-
}), r &&
|
|
2885
|
+
}), r && ui(f, o, n) && (f = mi(e, {
|
|
2886
2886
|
startingIndex: u - u % o - 1,
|
|
2887
2887
|
disabledIndices: s
|
|
2888
|
-
}), i && (f = i(t, u, f)))),
|
|
2888
|
+
}), i && (f = i(t, u, f)))), ui(f, o, n) && (f = u)), t.key === (a ? "ArrowRight" : "ArrowLeft") && (d && Ar(t), u % o === 0 ? r && (f = mi(e, {
|
|
2889
2889
|
startingIndex: u + (o - u % o),
|
|
2890
2890
|
decrement: !0,
|
|
2891
2891
|
disabledIndices: s
|
|
2892
|
-
}), i && (f = i(t, u, f))) : (f =
|
|
2892
|
+
}), i && (f = i(t, u, f))) : (f = mi(e, {
|
|
2893
2893
|
startingIndex: u,
|
|
2894
2894
|
decrement: !0,
|
|
2895
2895
|
disabledIndices: s
|
|
2896
|
-
}), r &&
|
|
2896
|
+
}), r && ui(f, o, n) && (f = mi(e, {
|
|
2897
2897
|
startingIndex: u + (o - u % o),
|
|
2898
2898
|
decrement: !0,
|
|
2899
2899
|
disabledIndices: s
|
|
2900
|
-
}), i && (f = i(t, u, f)))),
|
|
2901
|
-
let c =
|
|
2902
|
-
|
|
2900
|
+
}), i && (f = i(t, u, f)))), ui(f, o, n) && (f = u));
|
|
2901
|
+
let c = Br(l / o) === n;
|
|
2902
|
+
di(e, f) && (r && c ? (f = t.key === (a ? "ArrowRight" : "ArrowLeft") ? l : mi(e, {
|
|
2903
2903
|
startingIndex: u - u % o - 1,
|
|
2904
2904
|
disabledIndices: s
|
|
2905
2905
|
}), i && (f = i(t, u, f))) : f = u);
|
|
2906
2906
|
}
|
|
2907
2907
|
return f;
|
|
2908
2908
|
}
|
|
2909
|
-
function
|
|
2909
|
+
function gi(e, t, n) {
|
|
2910
2910
|
let r = [], i = 0;
|
|
2911
2911
|
return e.forEach(({ width: e, height: a }, o) => {
|
|
2912
2912
|
if (e > t && process.env.NODE_ENV !== "production") throw Error(`[Floating UI]: Invalid grid - item width at index ${o} is greater than grid columns`);
|
|
@@ -2920,7 +2920,7 @@ function hi(e, t, n) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
}), [...r];
|
|
2922
2922
|
}
|
|
2923
|
-
function
|
|
2923
|
+
function _i(e, t, n, r, i) {
|
|
2924
2924
|
if (e === -1) return -1;
|
|
2925
2925
|
let a = n.indexOf(e), o = t[e];
|
|
2926
2926
|
switch (i) {
|
|
@@ -2931,55 +2931,55 @@ function gi(e, t, n, r, i) {
|
|
|
2931
2931
|
default: return -1;
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function vi(e, t) {
|
|
2935
2935
|
return t.flatMap((t, n) => e.includes(t) ? [n] : []);
|
|
2936
2936
|
}
|
|
2937
|
-
function
|
|
2937
|
+
function yi(e, t, n) {
|
|
2938
2938
|
if (typeof n == "function" ? n(t) : n?.includes(t) ?? !1) return !0;
|
|
2939
2939
|
let r = e[t];
|
|
2940
|
-
return r ? !
|
|
2940
|
+
return r ? !xi(r) || !n && (r.hasAttribute("disabled") || r.getAttribute("aria-disabled") === "true") : !1;
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function bi(e) {
|
|
2943
2943
|
return e.visibility === "hidden" || e.visibility === "collapse";
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2946
|
-
return !e || !e.isConnected || !t ||
|
|
2945
|
+
function xi(e, t = e ? O(e) : null) {
|
|
2946
|
+
return !e || !e.isConnected || !t || bi(t) ? !1 : typeof e.checkVisibility == "function" ? e.checkVisibility() : t.display !== "none" && t.display !== "contents";
|
|
2947
2947
|
}
|
|
2948
2948
|
//#endregion
|
|
2949
2949
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/tabbable.js
|
|
2950
|
-
var
|
|
2951
|
-
function
|
|
2950
|
+
var Si = "a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable=\"false\"]),audio[controls],video[controls]";
|
|
2951
|
+
function Ci(e) {
|
|
2952
2952
|
let t = e.assignedSlot;
|
|
2953
2953
|
if (t) return t;
|
|
2954
2954
|
if (e.parentElement) return e.parentElement;
|
|
2955
2955
|
let n = e.getRootNode();
|
|
2956
2956
|
return _(n) ? n.host : null;
|
|
2957
2957
|
}
|
|
2958
|
-
function
|
|
2958
|
+
function wi(e) {
|
|
2959
2959
|
for (let t of Array.from(e.children)) if (d(t) === "summary") return t;
|
|
2960
2960
|
return null;
|
|
2961
2961
|
}
|
|
2962
|
-
function
|
|
2963
|
-
let n =
|
|
2964
|
-
return !!n && (e === n ||
|
|
2962
|
+
function Ti(e, t) {
|
|
2963
|
+
let n = wi(t);
|
|
2964
|
+
return !!n && (e === n || X(n, e));
|
|
2965
2965
|
}
|
|
2966
|
-
function
|
|
2966
|
+
function Ei(e) {
|
|
2967
2967
|
let t = e ? d(e) : "";
|
|
2968
|
-
return e != null && e.matches(
|
|
2968
|
+
return e != null && e.matches(Si) && (t !== "summary" || e.parentElement != null && d(e.parentElement) === "details" && wi(e.parentElement) === e) && (t !== "details" || wi(e) == null) && (t !== "input" || e.type !== "hidden");
|
|
2969
2969
|
}
|
|
2970
|
-
function
|
|
2971
|
-
if (!
|
|
2972
|
-
for (let t = e; t; t =
|
|
2970
|
+
function Di(e) {
|
|
2971
|
+
if (!Ei(e) || !e.isConnected || e.matches(":disabled")) return !1;
|
|
2972
|
+
for (let t = e; t; t = Ci(t)) {
|
|
2973
2973
|
let n = t !== e, r = d(t) === "slot";
|
|
2974
|
-
if (t.hasAttribute("inert") || n && d(t) === "details" && !t.open && !
|
|
2974
|
+
if (t.hasAttribute("inert") || n && d(t) === "details" && !t.open && !Ti(e, t) || t.hasAttribute("hidden") || !r && !Oi(t, n)) return !1;
|
|
2975
2975
|
}
|
|
2976
2976
|
return !0;
|
|
2977
2977
|
}
|
|
2978
|
-
function
|
|
2978
|
+
function Oi(e, t) {
|
|
2979
2979
|
let n = O(e);
|
|
2980
|
-
return t ? n.display !== "none" :
|
|
2980
|
+
return t ? n.display !== "none" : xi(e, n);
|
|
2981
2981
|
}
|
|
2982
|
-
function
|
|
2982
|
+
function ki(e) {
|
|
2983
2983
|
let t = e.tabIndex;
|
|
2984
2984
|
if (t < 0) {
|
|
2985
2985
|
let t = d(e);
|
|
@@ -2987,125 +2987,125 @@ function Oi(e) {
|
|
|
2987
2987
|
}
|
|
2988
2988
|
return t;
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function Ai(e) {
|
|
2991
2991
|
if (d(e) !== "input") return null;
|
|
2992
2992
|
let t = e;
|
|
2993
2993
|
return t.type === "radio" && t.name !== "" ? t : null;
|
|
2994
2994
|
}
|
|
2995
|
-
function
|
|
2996
|
-
let n =
|
|
2995
|
+
function ji(e, t) {
|
|
2996
|
+
let n = Ai(e);
|
|
2997
2997
|
if (!n) return !0;
|
|
2998
2998
|
let r = t.find((e) => {
|
|
2999
|
-
let t =
|
|
2999
|
+
let t = Ai(e);
|
|
3000
3000
|
return t?.name === n.name && t.form === n.form && t.checked;
|
|
3001
3001
|
});
|
|
3002
3002
|
return r ? r === n : t.find((e) => {
|
|
3003
|
-
let t =
|
|
3003
|
+
let t = Ai(e);
|
|
3004
3004
|
return t?.name === n.name && t.form === n.form;
|
|
3005
3005
|
}) === n;
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function Mi(e) {
|
|
3008
3008
|
if (g(e) && d(e) === "slot") {
|
|
3009
3009
|
let t = e.assignedElements({ flatten: !0 });
|
|
3010
3010
|
if (t.length > 0) return t;
|
|
3011
3011
|
}
|
|
3012
3012
|
return g(e) && e.shadowRoot ? Array.from(e.shadowRoot.children) : Array.from(e.children);
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3015
|
-
|
|
3016
|
-
|
|
3014
|
+
function Ni(e, t) {
|
|
3015
|
+
Mi(e).forEach((e) => {
|
|
3016
|
+
Ei(e) && t.push(e), Ni(e, t);
|
|
3017
3017
|
});
|
|
3018
3018
|
}
|
|
3019
|
-
function
|
|
3020
|
-
|
|
3021
|
-
g(e) && e.matches(t) && n.push(e),
|
|
3019
|
+
function Pi(e, t, n) {
|
|
3020
|
+
Mi(e).forEach((e) => {
|
|
3021
|
+
g(e) && e.matches(t) && n.push(e), Pi(e, t, n);
|
|
3022
3022
|
});
|
|
3023
3023
|
}
|
|
3024
|
-
function Pi(e) {
|
|
3025
|
-
return Ei(e) && Oi(e) >= 0;
|
|
3026
|
-
}
|
|
3027
3024
|
function Fi(e) {
|
|
3028
|
-
|
|
3029
|
-
return Mi(e, t), t.filter(Ei);
|
|
3025
|
+
return Di(e) && ki(e) >= 0;
|
|
3030
3026
|
}
|
|
3031
3027
|
function Ii(e) {
|
|
3032
|
-
let t =
|
|
3033
|
-
return
|
|
3028
|
+
let t = [];
|
|
3029
|
+
return Ni(e, t), t.filter(Di);
|
|
3034
3030
|
}
|
|
3035
|
-
function Li(e
|
|
3036
|
-
let
|
|
3031
|
+
function Li(e) {
|
|
3032
|
+
let t = Ii(e);
|
|
3033
|
+
return t.filter((e) => ki(e) >= 0 && ji(e, t));
|
|
3034
|
+
}
|
|
3035
|
+
function Ri(e, t) {
|
|
3036
|
+
let n = Li(e), r = n.length;
|
|
3037
3037
|
if (r === 0) return;
|
|
3038
|
-
let i =
|
|
3038
|
+
let i = vr(Y(e)), a = n.indexOf(i);
|
|
3039
3039
|
return n[a === -1 ? t === 1 ? 0 : r - 1 : a + t];
|
|
3040
3040
|
}
|
|
3041
|
-
function Ri(e) {
|
|
3042
|
-
return Li(X(e).body, 1) || e;
|
|
3043
|
-
}
|
|
3044
3041
|
function zi(e) {
|
|
3045
|
-
return
|
|
3042
|
+
return Ri(Y(e).body, 1) || e;
|
|
3046
3043
|
}
|
|
3047
|
-
function Bi(e
|
|
3044
|
+
function Bi(e) {
|
|
3045
|
+
return Ri(Y(e).body, -1) || e;
|
|
3046
|
+
}
|
|
3047
|
+
function Vi(e, t) {
|
|
3048
3048
|
if (!e) return null;
|
|
3049
|
-
let n =
|
|
3049
|
+
let n = Li(Y(e).body), r = n.length;
|
|
3050
3050
|
if (r === 0) return null;
|
|
3051
3051
|
let i = n.indexOf(e);
|
|
3052
3052
|
return i === -1 ? null : n[(i + t + r) % r];
|
|
3053
3053
|
}
|
|
3054
|
-
function Vi(e) {
|
|
3055
|
-
return Bi(e, 1);
|
|
3056
|
-
}
|
|
3057
3054
|
function Hi(e) {
|
|
3058
|
-
return
|
|
3055
|
+
return Vi(e, 1);
|
|
3056
|
+
}
|
|
3057
|
+
function Ui(e) {
|
|
3058
|
+
return Vi(e, -1);
|
|
3059
3059
|
}
|
|
3060
|
-
function
|
|
3060
|
+
function Wi(e, t) {
|
|
3061
3061
|
let n = t || e.currentTarget, r = e.relatedTarget;
|
|
3062
|
-
return !r || !
|
|
3062
|
+
return !r || !X(n, r);
|
|
3063
3063
|
}
|
|
3064
|
-
function
|
|
3065
|
-
|
|
3064
|
+
function Gi(e) {
|
|
3065
|
+
Li(e).forEach((e) => {
|
|
3066
3066
|
e.dataset.tabindex = e.getAttribute("tabindex") || "", e.setAttribute("tabindex", "-1");
|
|
3067
3067
|
});
|
|
3068
3068
|
}
|
|
3069
|
-
function
|
|
3069
|
+
function Ki(e) {
|
|
3070
3070
|
let t = [];
|
|
3071
|
-
|
|
3071
|
+
Pi(e, "[data-tabindex]", t), t.forEach((e) => {
|
|
3072
3072
|
let t = e.dataset.tabindex;
|
|
3073
3073
|
delete e.dataset.tabindex, t ? e.setAttribute("tabindex", t) : e.removeAttribute("tabindex");
|
|
3074
3074
|
});
|
|
3075
3075
|
}
|
|
3076
3076
|
//#endregion
|
|
3077
3077
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useOnMount.js
|
|
3078
|
-
var
|
|
3079
|
-
function
|
|
3080
|
-
n.useEffect(e,
|
|
3078
|
+
var qi = [];
|
|
3079
|
+
function Ji(e) {
|
|
3080
|
+
n.useEffect(e, qi);
|
|
3081
3081
|
}
|
|
3082
3082
|
//#endregion
|
|
3083
3083
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useTimeout.js
|
|
3084
|
-
var
|
|
3084
|
+
var Yi = 0, Xi = class e {
|
|
3085
3085
|
static create() {
|
|
3086
3086
|
return new e();
|
|
3087
3087
|
}
|
|
3088
|
-
currentId =
|
|
3088
|
+
currentId = Yi;
|
|
3089
3089
|
start(e, t) {
|
|
3090
3090
|
this.clear(), this.currentId = setTimeout(() => {
|
|
3091
|
-
this.currentId =
|
|
3091
|
+
this.currentId = Yi, t();
|
|
3092
3092
|
}, e);
|
|
3093
3093
|
}
|
|
3094
3094
|
isStarted() {
|
|
3095
|
-
return this.currentId !==
|
|
3095
|
+
return this.currentId !== Yi;
|
|
3096
3096
|
}
|
|
3097
3097
|
clear = () => {
|
|
3098
|
-
this.currentId !==
|
|
3098
|
+
this.currentId !== Yi && (clearTimeout(this.currentId), this.currentId = Yi);
|
|
3099
3099
|
};
|
|
3100
3100
|
disposeEffect = () => this.clear;
|
|
3101
3101
|
};
|
|
3102
|
-
function
|
|
3103
|
-
let e = P(
|
|
3104
|
-
return
|
|
3102
|
+
function Zi() {
|
|
3103
|
+
let e = P(Xi.create).current;
|
|
3104
|
+
return Ji(e.disposeEffect), e;
|
|
3105
3105
|
}
|
|
3106
3106
|
//#endregion
|
|
3107
3107
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useAnimationFrame.js
|
|
3108
|
-
var
|
|
3108
|
+
var Qi = null, $i = globalThis.requestAnimationFrame, ea = new class {
|
|
3109
3109
|
callbacks = [];
|
|
3110
3110
|
callbacksCount = 0;
|
|
3111
3111
|
nextId = 1;
|
|
@@ -3119,57 +3119,57 @@ var Zi = null, Qi = globalThis.requestAnimationFrame, $i = new class {
|
|
|
3119
3119
|
request(e) {
|
|
3120
3120
|
let t = this.nextId;
|
|
3121
3121
|
this.nextId += 1, this.callbacks.push(e), this.callbacksCount += 1;
|
|
3122
|
-
let n = process.env.NODE_ENV !== "production" &&
|
|
3122
|
+
let n = process.env.NODE_ENV !== "production" && $i !== requestAnimationFrame && ($i = requestAnimationFrame, !0);
|
|
3123
3123
|
return (!this.isScheduled || n) && (requestAnimationFrame(this.tick), this.isScheduled = !0), t;
|
|
3124
3124
|
}
|
|
3125
3125
|
cancel(e) {
|
|
3126
3126
|
let t = e - this.startId;
|
|
3127
3127
|
t < 0 || t >= this.callbacks.length || (this.callbacks[t] = null, --this.callbacksCount);
|
|
3128
3128
|
}
|
|
3129
|
-
}(),
|
|
3129
|
+
}(), ta = class e {
|
|
3130
3130
|
static create() {
|
|
3131
3131
|
return new e();
|
|
3132
3132
|
}
|
|
3133
3133
|
static request(e) {
|
|
3134
|
-
return
|
|
3134
|
+
return ea.request(e);
|
|
3135
3135
|
}
|
|
3136
3136
|
static cancel(e) {
|
|
3137
|
-
return
|
|
3137
|
+
return ea.cancel(e);
|
|
3138
3138
|
}
|
|
3139
|
-
currentId =
|
|
3139
|
+
currentId = Qi;
|
|
3140
3140
|
request(e) {
|
|
3141
|
-
this.cancel(), this.currentId =
|
|
3142
|
-
this.currentId =
|
|
3141
|
+
this.cancel(), this.currentId = ea.request(() => {
|
|
3142
|
+
this.currentId = Qi, e();
|
|
3143
3143
|
});
|
|
3144
3144
|
}
|
|
3145
3145
|
cancel = () => {
|
|
3146
|
-
this.currentId !==
|
|
3146
|
+
this.currentId !== Qi && (ea.cancel(this.currentId), this.currentId = Qi);
|
|
3147
3147
|
};
|
|
3148
3148
|
disposeEffect = () => this.cancel;
|
|
3149
3149
|
};
|
|
3150
|
-
function
|
|
3151
|
-
let e = P(
|
|
3152
|
-
return
|
|
3150
|
+
function na() {
|
|
3151
|
+
let e = P(ta.create).current;
|
|
3152
|
+
return Ji(e.disposeEffect), e;
|
|
3153
3153
|
}
|
|
3154
3154
|
//#endregion
|
|
3155
3155
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/resolveRef.js
|
|
3156
|
-
function
|
|
3156
|
+
function ra(e) {
|
|
3157
3157
|
return e == null ? e : "current" in e ? e.current : e;
|
|
3158
3158
|
}
|
|
3159
3159
|
//#endregion
|
|
3160
3160
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/stateAttributesMapping.js
|
|
3161
|
-
var
|
|
3161
|
+
var ia = /*#__PURE__*/ function(e) {
|
|
3162
3162
|
return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
|
|
3163
|
-
}({}),
|
|
3164
|
-
return e === "starting" ?
|
|
3163
|
+
}({}), aa = { [ia.startingStyle]: "" }, oa = { [ia.endingStyle]: "" }, sa = { transitionStatus(e) {
|
|
3164
|
+
return e === "starting" ? aa : e === "ending" ? oa : null;
|
|
3165
3165
|
} };
|
|
3166
3166
|
//#endregion
|
|
3167
3167
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useAnimationsFinished.js
|
|
3168
|
-
function
|
|
3169
|
-
let r =
|
|
3168
|
+
function ca(e, t = !1, n = !0) {
|
|
3169
|
+
let r = na();
|
|
3170
3170
|
return F((i, a = null) => {
|
|
3171
3171
|
r.cancel();
|
|
3172
|
-
let o =
|
|
3172
|
+
let o = ra(e);
|
|
3173
3173
|
if (o == null) return;
|
|
3174
3174
|
let s = o, c = () => {
|
|
3175
3175
|
l.flushSync(i);
|
|
@@ -3191,7 +3191,7 @@ function sa(e, t = !1, n = !0) {
|
|
|
3191
3191
|
});
|
|
3192
3192
|
}
|
|
3193
3193
|
if (t) {
|
|
3194
|
-
let e =
|
|
3194
|
+
let e = ia.startingStyle;
|
|
3195
3195
|
if (!s.hasAttribute(e)) {
|
|
3196
3196
|
r.request(u);
|
|
3197
3197
|
return;
|
|
@@ -3210,8 +3210,8 @@ function sa(e, t = !1, n = !0) {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
//#endregion
|
|
3212
3212
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useOpenChangeComplete.js
|
|
3213
|
-
function
|
|
3214
|
-
let { enabled: t = !0, open: r, ref: i, onComplete: a } = e, o = F(a), s =
|
|
3213
|
+
function la(e) {
|
|
3214
|
+
let { enabled: t = !0, open: r, ref: i, onComplete: a } = e, o = F(a), s = ca(i, r, !1);
|
|
3215
3215
|
n.useEffect(() => {
|
|
3216
3216
|
if (!t) return;
|
|
3217
3217
|
let e = new AbortController();
|
|
@@ -3227,15 +3227,15 @@ function ca(e) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
//#endregion
|
|
3229
3229
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useTransitionStatus.js
|
|
3230
|
-
function
|
|
3230
|
+
function ua(e, t = !1, r = !1) {
|
|
3231
3231
|
let [i, a] = n.useState(e && t ? "idle" : void 0), [o, s] = n.useState(e);
|
|
3232
3232
|
return e && !o && (s(!0), a("starting")), !e && o && i !== "ending" && !r && a("ending"), !e && !o && i === "ending" && a(void 0), B(() => {
|
|
3233
3233
|
if (!e && o && i !== "ending" && r) {
|
|
3234
|
-
let e =
|
|
3234
|
+
let e = ta.request(() => {
|
|
3235
3235
|
a("ending");
|
|
3236
3236
|
});
|
|
3237
3237
|
return () => {
|
|
3238
|
-
|
|
3238
|
+
ta.cancel(e);
|
|
3239
3239
|
};
|
|
3240
3240
|
}
|
|
3241
3241
|
}, [
|
|
@@ -3245,20 +3245,20 @@ function la(e, t = !1, r = !1) {
|
|
|
3245
3245
|
r
|
|
3246
3246
|
]), B(() => {
|
|
3247
3247
|
if (!e || t) return;
|
|
3248
|
-
let n =
|
|
3248
|
+
let n = ta.request(() => {
|
|
3249
3249
|
a(void 0);
|
|
3250
3250
|
});
|
|
3251
3251
|
return () => {
|
|
3252
|
-
|
|
3252
|
+
ta.cancel(n);
|
|
3253
3253
|
};
|
|
3254
3254
|
}, [t, e]), B(() => {
|
|
3255
3255
|
if (!e || !t) return;
|
|
3256
3256
|
e && o && i !== "idle" && a("starting");
|
|
3257
|
-
let n =
|
|
3257
|
+
let n = ta.request(() => {
|
|
3258
3258
|
a("idle");
|
|
3259
3259
|
});
|
|
3260
3260
|
return () => {
|
|
3261
|
-
|
|
3261
|
+
ta.cancel(n);
|
|
3262
3262
|
};
|
|
3263
3263
|
}, [
|
|
3264
3264
|
t,
|
|
@@ -3273,7 +3273,7 @@ function la(e, t = !1, r = !1) {
|
|
|
3273
3273
|
}
|
|
3274
3274
|
//#endregion
|
|
3275
3275
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useControlled.js
|
|
3276
|
-
function
|
|
3276
|
+
function da({ controlled: e, default: t, name: r, state: i = "value" }) {
|
|
3277
3277
|
let { current: a } = n.useRef(e !== void 0), [o, s] = n.useState(t), c = a ? e : o;
|
|
3278
3278
|
if (process.env.NODE_ENV !== "production") {
|
|
3279
3279
|
n.useEffect(() => {
|
|
@@ -3291,14 +3291,14 @@ function ua({ controlled: e, default: t, name: r, state: i = "value" }) {
|
|
|
3291
3291
|
]);
|
|
3292
3292
|
let { current: o } = n.useRef(t);
|
|
3293
3293
|
n.useEffect(() => {
|
|
3294
|
-
!a &&
|
|
3294
|
+
!a && fa(o) !== fa(t) && z([`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"));
|
|
3295
3295
|
}, [t]);
|
|
3296
3296
|
}
|
|
3297
3297
|
return [c, n.useCallback((e) => {
|
|
3298
3298
|
a || s(e);
|
|
3299
3299
|
}, [])];
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function fa(e) {
|
|
3302
3302
|
let t = 0, n = /* @__PURE__ */ new WeakMap();
|
|
3303
3303
|
try {
|
|
3304
3304
|
return JSON.stringify(e, function(e, r) {
|
|
@@ -3318,8 +3318,8 @@ function da(e) {
|
|
|
3318
3318
|
}
|
|
3319
3319
|
//#endregion
|
|
3320
3320
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/field-register-control/useRegisterFieldControl.js
|
|
3321
|
-
function
|
|
3322
|
-
let { enabled: r = !0, getValue: i, id: a, value: o } = t, { registerFieldControl: s } =
|
|
3321
|
+
function pa(e, t) {
|
|
3322
|
+
let { enabled: r = !0, getValue: i, id: a, value: o } = t, { registerFieldControl: s } = Wn(), c = n.useRef(null);
|
|
3323
3323
|
c.current ||= Symbol(), B(() => {
|
|
3324
3324
|
let t = c.current;
|
|
3325
3325
|
if (!(!t || !r)) return s(t, {
|
|
@@ -3341,11 +3341,11 @@ function fa(e, t) {
|
|
|
3341
3341
|
}
|
|
3342
3342
|
//#endregion
|
|
3343
3343
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/reason-parts.js
|
|
3344
|
-
var
|
|
3344
|
+
var ma = "none", ha = "trigger-press", ga = "trigger-hover", _a = "trigger-focus", va = "outside-press", ya = "item-press", ba = "close-press", xa = "focus-out", Sa = "escape-key", Ca = "list-navigation", wa = "cancel-open", Ta = "sibling-open", Ea = "disabled", Da = "imperative-action", Oa = "window-resize";
|
|
3345
3345
|
//#endregion
|
|
3346
3346
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/createBaseUIEventDetails.js
|
|
3347
|
-
function
|
|
3348
|
-
let i = !1, a = !1, o = r ??
|
|
3347
|
+
function ka(e, t, n, r) {
|
|
3348
|
+
let i = !1, a = !1, o = r ?? W;
|
|
3349
3349
|
return {
|
|
3350
3350
|
reason: e,
|
|
3351
3351
|
event: t ?? new Event("base-ui"),
|
|
@@ -3367,11 +3367,11 @@ function Oa(e, t, n, r) {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
//#endregion
|
|
3369
3369
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/field/control/FieldControl.js
|
|
3370
|
-
var
|
|
3371
|
-
let { render: r, className: i, id: a, name: o, value: s, disabled: c = !1, onValueChange: l, defaultValue: u, autoFocus: d = !1, style: f, ...p } = e, { state: m, name: h, disabled: g, setTouched: _, setDirty: v, validityData: y, setFocused: b, setFilled: x, validationMode: S, validation: C } =
|
|
3370
|
+
var Aa = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
3371
|
+
let { render: r, className: i, id: a, name: o, value: s, disabled: c = !1, onValueChange: l, defaultValue: u, autoFocus: d = !1, style: f, ...p } = e, { state: m, name: h, disabled: g, setTouched: _, setDirty: v, validityData: y, setFocused: b, setFilled: x, validationMode: S, validation: C } = Wn(), w = g || c, T = h ?? o, ee = {
|
|
3372
3372
|
...m,
|
|
3373
3373
|
disabled: w
|
|
3374
|
-
}, { labelId: E } =
|
|
3374
|
+
}, { labelId: E } = Zn(), D = Qn({ id: a });
|
|
3375
3375
|
B(() => {
|
|
3376
3376
|
let e = s != null;
|
|
3377
3377
|
C.inputRef.current?.value || e && s !== "" ? x(!0) : e && s === "" && x(!1);
|
|
@@ -3382,19 +3382,19 @@ var ka = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3382
3382
|
]);
|
|
3383
3383
|
let O = n.useRef(null);
|
|
3384
3384
|
B(() => {
|
|
3385
|
-
d && O.current ===
|
|
3385
|
+
d && O.current === vr(Y(O.current)) && b(!0);
|
|
3386
3386
|
}, [d, b]);
|
|
3387
|
-
let [te] =
|
|
3387
|
+
let [te] = da({
|
|
3388
3388
|
controlled: s,
|
|
3389
3389
|
default: u,
|
|
3390
3390
|
name: "FieldControl",
|
|
3391
3391
|
state: "value"
|
|
3392
3392
|
}), k = s !== void 0, A = k ? te : void 0, j = F(() => C.inputRef.current?.value);
|
|
3393
|
-
return
|
|
3393
|
+
return pa(C.inputRef, {
|
|
3394
3394
|
id: D,
|
|
3395
3395
|
value: A,
|
|
3396
3396
|
getValue: j
|
|
3397
|
-
}),
|
|
3397
|
+
}), He("input", e, {
|
|
3398
3398
|
ref: [t, O],
|
|
3399
3399
|
state: ee,
|
|
3400
3400
|
props: [
|
|
@@ -3408,7 +3408,7 @@ var ka = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3408
3408
|
...k ? { value: A } : { defaultValue: u },
|
|
3409
3409
|
onChange(e) {
|
|
3410
3410
|
let t = e.currentTarget.value;
|
|
3411
|
-
l?.(t,
|
|
3411
|
+
l?.(t, ka(ma, e.nativeEvent)), v(t !== y.initialValue), x(t !== "");
|
|
3412
3412
|
},
|
|
3413
3413
|
onFocus() {
|
|
3414
3414
|
b(!0);
|
|
@@ -3423,30 +3423,30 @@ var ka = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3423
3423
|
C.getInputValidationProps(),
|
|
3424
3424
|
p
|
|
3425
3425
|
],
|
|
3426
|
-
stateAttributesMapping:
|
|
3426
|
+
stateAttributesMapping: Hn
|
|
3427
3427
|
});
|
|
3428
3428
|
});
|
|
3429
|
-
process.env.NODE_ENV !== "production" && (
|
|
3429
|
+
process.env.NODE_ENV !== "production" && (Aa.displayName = "FieldControl");
|
|
3430
3430
|
//#endregion
|
|
3431
3431
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/input/Input.js
|
|
3432
|
-
var
|
|
3433
|
-
return /*#__PURE__*/ s(
|
|
3432
|
+
var ja = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
3433
|
+
return /*#__PURE__*/ s(Aa, {
|
|
3434
3434
|
ref: t,
|
|
3435
3435
|
...e
|
|
3436
3436
|
});
|
|
3437
3437
|
});
|
|
3438
|
-
process.env.NODE_ENV !== "production" && (
|
|
3438
|
+
process.env.NODE_ENV !== "production" && (ja.displayName = "Input");
|
|
3439
3439
|
//#endregion
|
|
3440
3440
|
//#region src/ui/browser/input.tsx
|
|
3441
|
-
var
|
|
3442
|
-
return /* @__PURE__ */ s(
|
|
3441
|
+
var Ma = n.forwardRef(function({ className: e, type: t, ...n }, r) {
|
|
3442
|
+
return /* @__PURE__ */ s(ja, {
|
|
3443
3443
|
ref: r,
|
|
3444
3444
|
type: t,
|
|
3445
3445
|
"data-slot": "input",
|
|
3446
|
-
className:
|
|
3446
|
+
className: On("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", e),
|
|
3447
3447
|
...n
|
|
3448
3448
|
});
|
|
3449
|
-
}),
|
|
3449
|
+
}), Na = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Pa = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), Fa = {
|
|
3450
3450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3451
3451
|
width: 24,
|
|
3452
3452
|
height: 24,
|
|
@@ -3456,27 +3456,254 @@ var ja = n.forwardRef(function({ className: e, type: t, ...n }, r) {
|
|
|
3456
3456
|
strokeWidth: 2,
|
|
3457
3457
|
strokeLinecap: "round",
|
|
3458
3458
|
strokeLinejoin: "round"
|
|
3459
|
-
},
|
|
3459
|
+
}, Ia = i(({ color: e = "currentColor", size: t = 24, strokeWidth: n = 2, absoluteStrokeWidth: i, className: a = "", children: o, iconNode: s, ...c }, l) => r("svg", {
|
|
3460
3460
|
ref: l,
|
|
3461
|
-
...
|
|
3461
|
+
...Fa,
|
|
3462
3462
|
width: t,
|
|
3463
3463
|
height: t,
|
|
3464
3464
|
stroke: e,
|
|
3465
3465
|
strokeWidth: i ? Number(n) * 24 / Number(t) : n,
|
|
3466
|
-
className:
|
|
3466
|
+
className: Pa("lucide", a),
|
|
3467
3467
|
...c
|
|
3468
|
-
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]])),
|
|
3469
|
-
let n = i(({ className: n, ...i }, a) => r(
|
|
3468
|
+
}, [...s.map(([e, t]) => r(e, t)), ...Array.isArray(o) ? o : [o]])), La = (e, t) => {
|
|
3469
|
+
let n = i(({ className: n, ...i }, a) => r(Ia, {
|
|
3470
3470
|
ref: a,
|
|
3471
3471
|
iconNode: t,
|
|
3472
|
-
className:
|
|
3472
|
+
className: Pa(`lucide-${Na(e)}`, n),
|
|
3473
3473
|
...i
|
|
3474
3474
|
}));
|
|
3475
3475
|
return n.displayName = `${e}`, n;
|
|
3476
3476
|
};
|
|
3477
|
+
function Ra(e) {
|
|
3478
|
+
let t = e.trim();
|
|
3479
|
+
if (t.length == 0) return "empty";
|
|
3480
|
+
if (t.length > 80) return "tooLong";
|
|
3481
|
+
for (let e of t) {
|
|
3482
|
+
let t = e.charCodeAt(0);
|
|
3483
|
+
if (t <= 31 || t >= 127 && t <= 159) return "controlCharacter";
|
|
3484
|
+
}
|
|
3485
|
+
if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
|
|
3486
|
+
}
|
|
3487
|
+
function za(e) {
|
|
3488
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
3489
|
+
}
|
|
3490
|
+
var Ba = class extends Error {};
|
|
3491
|
+
function Z() {
|
|
3492
|
+
throw new Ba();
|
|
3493
|
+
}
|
|
3494
|
+
function Va(e, t) {
|
|
3495
|
+
if (t.kind == "flow") return e.graph;
|
|
3496
|
+
let n = e.subflows[t.id];
|
|
3497
|
+
return n ?? Z(), n.graph;
|
|
3498
|
+
}
|
|
3499
|
+
function Ha(e, t, n) {
|
|
3500
|
+
if (t.kind == "flow") return {
|
|
3501
|
+
...e,
|
|
3502
|
+
graph: n
|
|
3503
|
+
};
|
|
3504
|
+
let r = e.subflows[t.id];
|
|
3505
|
+
return r ?? Z(), {
|
|
3506
|
+
...e,
|
|
3507
|
+
subflows: {
|
|
3508
|
+
...e.subflows,
|
|
3509
|
+
[t.id]: {
|
|
3510
|
+
...r,
|
|
3511
|
+
graph: n
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
};
|
|
3515
|
+
}
|
|
3516
|
+
function Ua(e, t) {
|
|
3517
|
+
if (!("inputs" in e)) return e;
|
|
3518
|
+
let n = { ...e.inputs };
|
|
3519
|
+
for (let [e, r] of Object.entries(n)) {
|
|
3520
|
+
if (r.kind != "sources") continue;
|
|
3521
|
+
let i = r.sources.filter((e) => e.kind != "node" || !t.has(e.nodeId));
|
|
3522
|
+
i.length == 0 ? delete n[e] : n[e] = {
|
|
3523
|
+
kind: "sources",
|
|
3524
|
+
sources: i
|
|
3525
|
+
};
|
|
3526
|
+
}
|
|
3527
|
+
return {
|
|
3528
|
+
...e,
|
|
3529
|
+
inputs: n
|
|
3530
|
+
};
|
|
3531
|
+
}
|
|
3532
|
+
function Wa(e, t) {
|
|
3533
|
+
let n = { ...e.document }, r = { ...e.modules };
|
|
3534
|
+
for (let e of t) switch (e.kind) {
|
|
3535
|
+
case "binding.create":
|
|
3536
|
+
n.bindings[e.bindingId] != null && Z(), n.bindings = {
|
|
3537
|
+
...n.bindings,
|
|
3538
|
+
[e.bindingId]: e.binding
|
|
3539
|
+
};
|
|
3540
|
+
break;
|
|
3541
|
+
case "binding.replace":
|
|
3542
|
+
n.bindings[e.bindingId] ?? Z(), n.bindings = {
|
|
3543
|
+
...n.bindings,
|
|
3544
|
+
[e.bindingId]: e.binding
|
|
3545
|
+
};
|
|
3546
|
+
break;
|
|
3547
|
+
case "binding.delete": {
|
|
3548
|
+
n.bindings[e.bindingId] ?? Z();
|
|
3549
|
+
let t = { ...n.bindings };
|
|
3550
|
+
delete t[e.bindingId], n.bindings = t;
|
|
3551
|
+
break;
|
|
3552
|
+
}
|
|
3553
|
+
case "graph.edge.connect": {
|
|
3554
|
+
let t = Va(n, e.target);
|
|
3555
|
+
t.nodes[e.edge.source] ?? Z();
|
|
3556
|
+
let r = t.nodes[e.edge.target];
|
|
3557
|
+
(r == null || !("inputs" in r)) && Z();
|
|
3558
|
+
let i = r.inputs[e.edge.targetHandle], a = {
|
|
3559
|
+
kind: "node",
|
|
3560
|
+
nodeId: e.edge.source,
|
|
3561
|
+
output: e.edge.sourceHandle
|
|
3562
|
+
}, o = i?.kind == "sources" ? i.sources.filter((e) => e.kind != "binding" || n.bindings[e.bindingId]?.kind != "variable") : [];
|
|
3563
|
+
o.some((e) => e.kind == "node" && e.nodeId == a.nodeId && e.output == a.output) && Z();
|
|
3564
|
+
let s = {
|
|
3565
|
+
...r,
|
|
3566
|
+
inputs: {
|
|
3567
|
+
...r.inputs,
|
|
3568
|
+
[e.edge.targetHandle]: {
|
|
3569
|
+
kind: "sources",
|
|
3570
|
+
sources: [...o, a]
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
};
|
|
3574
|
+
Object.assign(n, Ha(n, e.target, { nodes: {
|
|
3575
|
+
...t.nodes,
|
|
3576
|
+
[e.edge.target]: s
|
|
3577
|
+
} }));
|
|
3578
|
+
break;
|
|
3579
|
+
}
|
|
3580
|
+
case "graph.edge.disconnect": {
|
|
3581
|
+
let t = Va(n, e.target), r = t.nodes[e.edge.target];
|
|
3582
|
+
(r == null || !("inputs" in r)) && Z();
|
|
3583
|
+
let i = r.inputs[e.edge.targetHandle];
|
|
3584
|
+
i?.kind != "sources" && Z();
|
|
3585
|
+
let a = i.sources.filter((t) => t.kind != "node" || t.nodeId != e.edge.source || t.output != e.edge.sourceHandle);
|
|
3586
|
+
a.length == i.sources.length && Z();
|
|
3587
|
+
let o = { ...r.inputs };
|
|
3588
|
+
a.length == 0 ? delete o[e.edge.targetHandle] : o[e.edge.targetHandle] = {
|
|
3589
|
+
kind: "sources",
|
|
3590
|
+
sources: a
|
|
3591
|
+
}, Object.assign(n, Ha(n, e.target, { nodes: {
|
|
3592
|
+
...t.nodes,
|
|
3593
|
+
[e.edge.target]: {
|
|
3594
|
+
...r,
|
|
3595
|
+
inputs: o
|
|
3596
|
+
}
|
|
3597
|
+
} }));
|
|
3598
|
+
break;
|
|
3599
|
+
}
|
|
3600
|
+
case "graph.node.create": {
|
|
3601
|
+
let t = Va(n, e.target);
|
|
3602
|
+
(t.nodes[e.nodeId] != null || e.target.kind == "subflow" && !("inputs" in e.node)) && Z(), Object.assign(n, Ha(n, e.target, { nodes: {
|
|
3603
|
+
...t.nodes,
|
|
3604
|
+
[e.nodeId]: e.node
|
|
3605
|
+
} }));
|
|
3606
|
+
break;
|
|
3607
|
+
}
|
|
3608
|
+
case "graph.node.delete": {
|
|
3609
|
+
let t = Va(n, e.target);
|
|
3610
|
+
t.nodes[e.nodeId] ?? Z();
|
|
3611
|
+
let r = /* @__PURE__ */ new Set([e.nodeId]), i = Object.fromEntries(Object.entries(t.nodes).flatMap(([e, t]) => r.has(e) ? [] : [[e, Ua(t, r)]]));
|
|
3612
|
+
if (Object.assign(n, Ha(n, e.target, { nodes: i })), e.target.kind == "subflow") {
|
|
3613
|
+
let t = n.subflows[e.target.id], i = t.outputs.map((e) => ({
|
|
3614
|
+
...e,
|
|
3615
|
+
sources: e.sources.filter((e) => e.kind != "node" || !r.has(e.nodeId))
|
|
3616
|
+
}));
|
|
3617
|
+
n.subflows = {
|
|
3618
|
+
...n.subflows,
|
|
3619
|
+
[e.target.id]: {
|
|
3620
|
+
...t,
|
|
3621
|
+
outputs: i
|
|
3622
|
+
}
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
break;
|
|
3626
|
+
}
|
|
3627
|
+
case "graph.node.replace": {
|
|
3628
|
+
let t = Va(n, e.target);
|
|
3629
|
+
(t.nodes[e.nodeId] == null || e.target.kind == "subflow" && !("inputs" in e.node)) && Z(), Object.assign(n, Ha(n, e.target, { nodes: {
|
|
3630
|
+
...t.nodes,
|
|
3631
|
+
[e.nodeId]: e.node
|
|
3632
|
+
} }));
|
|
3633
|
+
break;
|
|
3634
|
+
}
|
|
3635
|
+
case "module.create":
|
|
3636
|
+
r[e.moduleId] != null && Z(), r[e.moduleId] = e.module;
|
|
3637
|
+
break;
|
|
3638
|
+
case "module.delete":
|
|
3639
|
+
r[e.moduleId] ?? Z(), delete r[e.moduleId];
|
|
3640
|
+
break;
|
|
3641
|
+
case "module.rename": {
|
|
3642
|
+
let t = r[e.moduleId];
|
|
3643
|
+
t ?? Z(), r[e.moduleId] = {
|
|
3644
|
+
...t,
|
|
3645
|
+
name: e.name
|
|
3646
|
+
};
|
|
3647
|
+
break;
|
|
3648
|
+
}
|
|
3649
|
+
case "module.source.replace": {
|
|
3650
|
+
let t = r[e.moduleId];
|
|
3651
|
+
t ?? Z(), r[e.moduleId] = {
|
|
3652
|
+
...t,
|
|
3653
|
+
imports: e.imports,
|
|
3654
|
+
source: e.source
|
|
3655
|
+
};
|
|
3656
|
+
break;
|
|
3657
|
+
}
|
|
3658
|
+
case "subflow.create":
|
|
3659
|
+
n.subflows[e.subflowId] != null && Z(), n.subflows = {
|
|
3660
|
+
...n.subflows,
|
|
3661
|
+
[e.subflowId]: e.subflow
|
|
3662
|
+
};
|
|
3663
|
+
break;
|
|
3664
|
+
case "subflow.definition.replace": {
|
|
3665
|
+
let t = n.subflows[e.subflowId];
|
|
3666
|
+
t ?? Z(), n.subflows = {
|
|
3667
|
+
...n.subflows,
|
|
3668
|
+
[e.subflowId]: {
|
|
3669
|
+
...e.definition,
|
|
3670
|
+
graph: t.graph
|
|
3671
|
+
}
|
|
3672
|
+
};
|
|
3673
|
+
break;
|
|
3674
|
+
}
|
|
3675
|
+
case "subflow.delete": {
|
|
3676
|
+
n.subflows[e.subflowId] ?? Z();
|
|
3677
|
+
let t = { ...n.subflows };
|
|
3678
|
+
delete t[e.subflowId], n.subflows = t;
|
|
3679
|
+
break;
|
|
3680
|
+
}
|
|
3681
|
+
case "task.create":
|
|
3682
|
+
n.tasks[e.taskId] != null && Z(), n.tasks = {
|
|
3683
|
+
...n.tasks,
|
|
3684
|
+
[e.taskId]: e.task
|
|
3685
|
+
};
|
|
3686
|
+
break;
|
|
3687
|
+
case "task.delete": {
|
|
3688
|
+
n.tasks[e.taskId] ?? Z();
|
|
3689
|
+
let t = { ...n.tasks };
|
|
3690
|
+
delete t[e.taskId], n.tasks = t;
|
|
3691
|
+
break;
|
|
3692
|
+
}
|
|
3693
|
+
case "task.replace": n.tasks[e.taskId] ?? Z(), n.tasks = {
|
|
3694
|
+
...n.tasks,
|
|
3695
|
+
[e.taskId]: e.task
|
|
3696
|
+
};
|
|
3697
|
+
}
|
|
3698
|
+
return {
|
|
3699
|
+
document: n,
|
|
3700
|
+
modelVersion: e.modelVersion,
|
|
3701
|
+
modules: r
|
|
3702
|
+
};
|
|
3703
|
+
}
|
|
3477
3704
|
//#endregion
|
|
3478
3705
|
//#region src/workbench/browser/runtime/icons.tsx
|
|
3479
|
-
function
|
|
3706
|
+
function Ga(e) {
|
|
3480
3707
|
switch (e) {
|
|
3481
3708
|
case "alert": return /* @__PURE__ */ c(o, { children: [
|
|
3482
3709
|
/* @__PURE__ */ s("circle", {
|
|
@@ -3655,7 +3882,7 @@ function La(e) {
|
|
|
3655
3882
|
] });
|
|
3656
3883
|
}
|
|
3657
3884
|
}
|
|
3658
|
-
function
|
|
3885
|
+
function Ka({ name: e, size: t = 18, ...n }) {
|
|
3659
3886
|
return /* @__PURE__ */ s("svg", {
|
|
3660
3887
|
"aria-hidden": "true",
|
|
3661
3888
|
fill: "none",
|
|
@@ -3668,29 +3895,29 @@ function Ra({ name: e, size: t = 18, ...n }) {
|
|
|
3668
3895
|
strokeLinecap: "round",
|
|
3669
3896
|
strokeLinejoin: "round",
|
|
3670
3897
|
strokeWidth: "1.7",
|
|
3671
|
-
children:
|
|
3898
|
+
children: Ga(e)
|
|
3672
3899
|
})
|
|
3673
3900
|
});
|
|
3674
3901
|
}
|
|
3675
3902
|
//#endregion
|
|
3676
3903
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popupStateMapping.js
|
|
3677
|
-
var
|
|
3678
|
-
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle =
|
|
3679
|
-
}({}),
|
|
3904
|
+
var qa = function(e) {
|
|
3905
|
+
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = ia.startingStyle] = "startingStyle", e[e.endingStyle = ia.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
3906
|
+
}({}), Ja = /*#__PURE__*/ function(e) {
|
|
3680
3907
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
3681
|
-
}({}),
|
|
3682
|
-
[
|
|
3683
|
-
[
|
|
3684
|
-
},
|
|
3685
|
-
return e ?
|
|
3686
|
-
} },
|
|
3687
|
-
return e ?
|
|
3688
|
-
} },
|
|
3908
|
+
}({}), Ya = { [Ja.popupOpen]: "" }, Xa = {
|
|
3909
|
+
[Ja.popupOpen]: "",
|
|
3910
|
+
[Ja.pressed]: ""
|
|
3911
|
+
}, Za = { [qa.open]: "" }, Qa = { [qa.closed]: "" }, $a = { [qa.anchorHidden]: "" }, eo = { open(e) {
|
|
3912
|
+
return e ? Ya : null;
|
|
3913
|
+
} }, to = { open(e) {
|
|
3914
|
+
return e ? Xa : null;
|
|
3915
|
+
} }, no = {
|
|
3689
3916
|
open(e) {
|
|
3690
|
-
return e ?
|
|
3917
|
+
return e ? Za : Qa;
|
|
3691
3918
|
},
|
|
3692
3919
|
anchorHidden(e) {
|
|
3693
|
-
return e ?
|
|
3920
|
+
return e ? $a : null;
|
|
3694
3921
|
}
|
|
3695
3922
|
};
|
|
3696
3923
|
//#endregion
|
|
@@ -3702,7 +3929,7 @@ function Q(e, t, n, r) {
|
|
|
3702
3929
|
}
|
|
3703
3930
|
//#endregion
|
|
3704
3931
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/mergeCleanups.js
|
|
3705
|
-
function
|
|
3932
|
+
function ro(...e) {
|
|
3706
3933
|
return () => {
|
|
3707
3934
|
for (let t = 0; t < e.length; t += 1) {
|
|
3708
3935
|
let n = e[t];
|
|
@@ -3712,11 +3939,11 @@ function Ya(...e) {
|
|
|
3712
3939
|
}
|
|
3713
3940
|
//#endregion
|
|
3714
3941
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useValueAsRef.js
|
|
3715
|
-
function
|
|
3716
|
-
let t = P(
|
|
3942
|
+
function io(e) {
|
|
3943
|
+
let t = P(ao, e).current;
|
|
3717
3944
|
return t.next = e, B(t.effect), t;
|
|
3718
3945
|
}
|
|
3719
|
-
function
|
|
3946
|
+
function ao(e) {
|
|
3720
3947
|
let t = {
|
|
3721
3948
|
current: e,
|
|
3722
3949
|
next: e,
|
|
@@ -3728,7 +3955,7 @@ function Za(e) {
|
|
|
3728
3955
|
}
|
|
3729
3956
|
//#endregion
|
|
3730
3957
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/visuallyHidden.js
|
|
3731
|
-
var
|
|
3958
|
+
var oo = {
|
|
3732
3959
|
clipPath: "inset(50%)",
|
|
3733
3960
|
overflow: "hidden",
|
|
3734
3961
|
whiteSpace: "nowrap",
|
|
@@ -3737,18 +3964,18 @@ var Qa = {
|
|
|
3737
3964
|
width: 1,
|
|
3738
3965
|
height: 1,
|
|
3739
3966
|
margin: -1
|
|
3740
|
-
},
|
|
3741
|
-
...
|
|
3967
|
+
}, so = {
|
|
3968
|
+
...oo,
|
|
3742
3969
|
position: "fixed",
|
|
3743
3970
|
top: 0,
|
|
3744
3971
|
left: 0
|
|
3745
|
-
},
|
|
3746
|
-
...
|
|
3972
|
+
}, co = {
|
|
3973
|
+
...oo,
|
|
3747
3974
|
position: "absolute"
|
|
3748
|
-
},
|
|
3975
|
+
}, lo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
3749
3976
|
let [r, i] = n.useState();
|
|
3750
3977
|
B(() => {
|
|
3751
|
-
|
|
3978
|
+
ar && i("button");
|
|
3752
3979
|
}, []);
|
|
3753
3980
|
let a = {
|
|
3754
3981
|
tabIndex: 0,
|
|
@@ -3757,57 +3984,57 @@ var Qa = {
|
|
|
3757
3984
|
return /*#__PURE__*/ s("span", {
|
|
3758
3985
|
...e,
|
|
3759
3986
|
ref: t,
|
|
3760
|
-
style:
|
|
3987
|
+
style: so,
|
|
3761
3988
|
"aria-hidden": !r || void 0,
|
|
3762
3989
|
...a,
|
|
3763
3990
|
"data-base-ui-focus-guard": ""
|
|
3764
3991
|
});
|
|
3765
3992
|
});
|
|
3766
|
-
process.env.NODE_ENV !== "production" && (
|
|
3993
|
+
process.env.NODE_ENV !== "production" && (lo.displayName = "FocusGuard");
|
|
3767
3994
|
//#endregion
|
|
3768
3995
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/createAttribute.js
|
|
3769
|
-
function
|
|
3996
|
+
function uo(e) {
|
|
3770
3997
|
return `data-base-ui-${e}`;
|
|
3771
3998
|
}
|
|
3772
3999
|
//#endregion
|
|
3773
4000
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/enqueueFocus.js
|
|
3774
|
-
var
|
|
3775
|
-
function
|
|
4001
|
+
var fo = 0;
|
|
4002
|
+
function po(e, t = {}) {
|
|
3776
4003
|
let { preventScroll: n = !1, cancelPrevious: r = !0, sync: i = !1 } = t;
|
|
3777
|
-
r && cancelAnimationFrame(
|
|
4004
|
+
r && cancelAnimationFrame(fo);
|
|
3778
4005
|
let a = () => e?.focus({ preventScroll: n });
|
|
3779
|
-
if (i) return a(),
|
|
4006
|
+
if (i) return a(), U;
|
|
3780
4007
|
let o = requestAnimationFrame(a);
|
|
3781
|
-
return
|
|
3782
|
-
|
|
4008
|
+
return fo = o, () => {
|
|
4009
|
+
fo === o && (cancelAnimationFrame(o), fo = 0);
|
|
3783
4010
|
};
|
|
3784
4011
|
}
|
|
3785
4012
|
//#endregion
|
|
3786
4013
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js
|
|
3787
|
-
var
|
|
4014
|
+
var mo = {
|
|
3788
4015
|
inert: /* @__PURE__ */ new WeakMap(),
|
|
3789
4016
|
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
3790
|
-
},
|
|
4017
|
+
}, ho = "data-base-ui-inert", go = {
|
|
3791
4018
|
inert: /* @__PURE__ */ new WeakSet(),
|
|
3792
4019
|
"aria-hidden": /* @__PURE__ */ new WeakSet()
|
|
3793
|
-
},
|
|
3794
|
-
function
|
|
3795
|
-
return
|
|
4020
|
+
}, _o = /* @__PURE__ */ new WeakMap(), vo = 0;
|
|
4021
|
+
function yo(e) {
|
|
4022
|
+
return go[e];
|
|
3796
4023
|
}
|
|
3797
|
-
function
|
|
3798
|
-
return e ? _(e) ? e.host :
|
|
4024
|
+
function bo(e) {
|
|
4025
|
+
return e ? _(e) ? e.host : bo(e.parentNode) : null;
|
|
3799
4026
|
}
|
|
3800
|
-
var
|
|
4027
|
+
var xo = (e, t) => t.map((t) => {
|
|
3801
4028
|
if (e.contains(t)) return t;
|
|
3802
|
-
let n =
|
|
4029
|
+
let n = bo(t);
|
|
3803
4030
|
return e.contains(n) ? n : null;
|
|
3804
|
-
}).filter((e) => e != null),
|
|
4031
|
+
}).filter((e) => e != null), So = (e) => {
|
|
3805
4032
|
let t = /* @__PURE__ */ new Set();
|
|
3806
4033
|
return e.forEach((e) => {
|
|
3807
4034
|
let n = e;
|
|
3808
4035
|
for (; n && !t.has(n);) t.add(n), n = n.parentNode;
|
|
3809
4036
|
}), t;
|
|
3810
|
-
},
|
|
4037
|
+
}, Co = (e, t, n) => {
|
|
3811
4038
|
let r = [], i = (e) => {
|
|
3812
4039
|
!e || n.has(e) || Array.from(e.children).forEach((e) => {
|
|
3813
4040
|
d(e) !== "script" && (t.has(e) ? i(e) : r.push(e));
|
|
@@ -3815,49 +4042,49 @@ var po = (e, t) => t.map((t) => {
|
|
|
3815
4042
|
};
|
|
3816
4043
|
return i(e), r;
|
|
3817
4044
|
};
|
|
3818
|
-
function
|
|
3819
|
-
let o = r ? "inert" : n ? "aria-hidden" : null, s = null, c = null, l =
|
|
4045
|
+
function wo(e, t, n, r, { mark: i = !0, markerIgnoreElements: a = [] }) {
|
|
4046
|
+
let o = r ? "inert" : n ? "aria-hidden" : null, s = null, c = null, l = xo(t, e), u = i ? xo(t, a) : [], d = new Set(u), f = i ? Co(t, So(l), new Set(l)).filter((e) => !d.has(e)) : [], p = [], m = [];
|
|
3820
4047
|
if (o) {
|
|
3821
|
-
let e =
|
|
4048
|
+
let e = mo[o], n = yo(o);
|
|
3822
4049
|
c = n, s = e;
|
|
3823
|
-
let r =
|
|
3824
|
-
|
|
4050
|
+
let r = xo(t, Array.from(t.querySelectorAll("[aria-live]"))), i = l.concat(r);
|
|
4051
|
+
Co(t, So(i), new Set(i)).forEach((t) => {
|
|
3825
4052
|
let r = t.getAttribute(o), i = r !== null && r !== "false", a = (e.get(t) || 0) + 1;
|
|
3826
4053
|
e.set(t, a), p.push(t), a === 1 && i && n.add(t), i || t.setAttribute(o, o === "inert" ? "" : "true");
|
|
3827
4054
|
});
|
|
3828
4055
|
}
|
|
3829
4056
|
return i && f.forEach((e) => {
|
|
3830
|
-
let t = (
|
|
3831
|
-
|
|
3832
|
-
}),
|
|
4057
|
+
let t = (_o.get(e) || 0) + 1;
|
|
4058
|
+
_o.set(e, t), m.push(e), t === 1 && e.setAttribute(ho, "");
|
|
4059
|
+
}), vo += 1, () => {
|
|
3833
4060
|
s && p.forEach((e) => {
|
|
3834
4061
|
let t = (s.get(e) || 0) - 1;
|
|
3835
4062
|
s.set(e, t), t || (!c?.has(e) && o && e.removeAttribute(o), c?.delete(e));
|
|
3836
4063
|
}), i && m.forEach((e) => {
|
|
3837
|
-
let t = (
|
|
3838
|
-
|
|
3839
|
-
}), --
|
|
4064
|
+
let t = (_o.get(e) || 0) - 1;
|
|
4065
|
+
_o.set(e, t), t || e.removeAttribute(ho);
|
|
4066
|
+
}), --vo, vo || (mo.inert = /* @__PURE__ */ new WeakMap(), mo["aria-hidden"] = /* @__PURE__ */ new WeakMap(), go.inert = /* @__PURE__ */ new WeakSet(), go["aria-hidden"] = /* @__PURE__ */ new WeakSet(), _o = /* @__PURE__ */ new WeakMap());
|
|
3840
4067
|
};
|
|
3841
4068
|
}
|
|
3842
|
-
function
|
|
3843
|
-
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o =
|
|
3844
|
-
return
|
|
4069
|
+
function To(e, t = {}) {
|
|
4070
|
+
let { ariaHidden: n = !1, inert: r = !1, mark: i = !0, markerIgnoreElements: a = [] } = t, o = Y(e[0]).body;
|
|
4071
|
+
return wo(e, o, n, r, {
|
|
3845
4072
|
mark: i,
|
|
3846
4073
|
markerIgnoreElements: a
|
|
3847
4074
|
});
|
|
3848
4075
|
}
|
|
3849
4076
|
//#endregion
|
|
3850
4077
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/constants.js
|
|
3851
|
-
var
|
|
4078
|
+
var Eo = { style: { transition: "none" } }, Do = "data-base-ui-click-trigger", Oo = { fallbackAxisSide: "none" }, ko = { fallbackAxisSide: "end" }, Ao = {
|
|
3852
4079
|
clipPath: "inset(50%)",
|
|
3853
4080
|
position: "fixed",
|
|
3854
4081
|
top: 0,
|
|
3855
4082
|
left: 0
|
|
3856
|
-
},
|
|
3857
|
-
process.env.NODE_ENV !== "production" && (
|
|
3858
|
-
var
|
|
3859
|
-
function
|
|
3860
|
-
let { ref: t, container: r, componentProps: i =
|
|
4083
|
+
}, jo = /*#__PURE__*/ n.createContext(null);
|
|
4084
|
+
process.env.NODE_ENV !== "production" && (jo.displayName = "PortalContext");
|
|
4085
|
+
var Mo = () => n.useContext(jo), No = uo("portal");
|
|
4086
|
+
function Po(e = {}) {
|
|
4087
|
+
let { ref: t, container: r, componentProps: i = W, elementProps: a } = e, o = Jn(), s = Mo()?.portalNode, [c, u] = n.useState(null), [d, f] = n.useState(null), p = F((e) => {
|
|
3861
4088
|
e !== null && f(e);
|
|
3862
4089
|
}), h = n.useRef(null);
|
|
3863
4090
|
B(() => {
|
|
@@ -3877,11 +4104,11 @@ function Eo(e = {}) {
|
|
|
3877
4104
|
s,
|
|
3878
4105
|
o
|
|
3879
4106
|
]);
|
|
3880
|
-
let g =
|
|
4107
|
+
let g = He("div", i, {
|
|
3881
4108
|
ref: [t, p],
|
|
3882
4109
|
props: [{
|
|
3883
4110
|
id: o,
|
|
3884
|
-
[
|
|
4111
|
+
[No]: ""
|
|
3885
4112
|
}, a]
|
|
3886
4113
|
});
|
|
3887
4114
|
return {
|
|
@@ -3889,8 +4116,8 @@ function Eo(e = {}) {
|
|
|
3889
4116
|
portalSubtree: c && g ? /*#__PURE__*/ l.createPortal(g, c) : null
|
|
3890
4117
|
};
|
|
3891
4118
|
}
|
|
3892
|
-
var
|
|
3893
|
-
let { children: r, container: i, className: a, render: o, renderGuards: u, style: d, ...f } = e, { portalNode: p, portalSubtree: m } =
|
|
4119
|
+
var Fo = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
4120
|
+
let { children: r, container: i, className: a, render: o, renderGuards: u, style: d, ...f } = e, { portalNode: p, portalSubtree: m } = Po({
|
|
3894
4121
|
container: i,
|
|
3895
4122
|
ref: t,
|
|
3896
4123
|
componentProps: e,
|
|
@@ -3899,11 +4126,11 @@ var Do = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3899
4126
|
n.useEffect(() => {
|
|
3900
4127
|
if (!p || S) return;
|
|
3901
4128
|
function e(e) {
|
|
3902
|
-
p && e.relatedTarget &&
|
|
4129
|
+
p && e.relatedTarget && Wi(e) && (e.type === "focusin" ? x.current &&= (Ki(p), !1) : (Gi(p), x.current = !0));
|
|
3903
4130
|
}
|
|
3904
|
-
return
|
|
4131
|
+
return ro(Q(p, "focusin", e, !0), Q(p, "focusout", e, !0));
|
|
3905
4132
|
}, [p, S]), n.useEffect(() => {
|
|
3906
|
-
!p || C !== !1 || (
|
|
4133
|
+
!p || C !== !1 || (Ki(p), x.current = !1);
|
|
3907
4134
|
}, [C, p]);
|
|
3908
4135
|
let T = n.useMemo(() => ({
|
|
3909
4136
|
beforeOutsideRef: h,
|
|
@@ -3913,35 +4140,35 @@ var Do = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
3913
4140
|
portalNode: p,
|
|
3914
4141
|
setFocusManagerState: b
|
|
3915
4142
|
}), [p]);
|
|
3916
|
-
return /*#__PURE__*/ c(n.Fragment, { children: [m, /*#__PURE__*/ c(
|
|
4143
|
+
return /*#__PURE__*/ c(n.Fragment, { children: [m, /*#__PURE__*/ c(jo.Provider, {
|
|
3917
4144
|
value: T,
|
|
3918
4145
|
children: [
|
|
3919
|
-
w && p && /*#__PURE__*/ s(
|
|
4146
|
+
w && p && /*#__PURE__*/ s(lo, {
|
|
3920
4147
|
"data-type": "outside",
|
|
3921
4148
|
ref: h,
|
|
3922
4149
|
onFocus: (e) => {
|
|
3923
|
-
|
|
4150
|
+
Wi(e, p) ? _.current?.focus() : Bi(y ? y.domReference : null)?.focus();
|
|
3924
4151
|
}
|
|
3925
4152
|
}),
|
|
3926
4153
|
w && p && /*#__PURE__*/ s("span", {
|
|
3927
4154
|
"aria-owns": p.id,
|
|
3928
|
-
style:
|
|
4155
|
+
style: Ao
|
|
3929
4156
|
}),
|
|
3930
4157
|
p && /*#__PURE__*/ l.createPortal(r, p),
|
|
3931
|
-
w && p && /*#__PURE__*/ s(
|
|
4158
|
+
w && p && /*#__PURE__*/ s(lo, {
|
|
3932
4159
|
"data-type": "outside",
|
|
3933
4160
|
ref: g,
|
|
3934
4161
|
onFocus: (e) => {
|
|
3935
|
-
|
|
4162
|
+
Wi(e, p) ? v.current?.focus() : (zi(y ? y.domReference : null)?.focus(), y?.closeOnFocusOut && y?.onOpenChange(!1, ka("focus-out", e.nativeEvent)));
|
|
3936
4163
|
}
|
|
3937
4164
|
})
|
|
3938
4165
|
]
|
|
3939
4166
|
})] });
|
|
3940
4167
|
});
|
|
3941
|
-
process.env.NODE_ENV !== "production" && (
|
|
4168
|
+
process.env.NODE_ENV !== "production" && (Fo.displayName = "FloatingPortal");
|
|
3942
4169
|
//#endregion
|
|
3943
4170
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/createEventEmitter.js
|
|
3944
|
-
function
|
|
4171
|
+
function Io() {
|
|
3945
4172
|
let e = /* @__PURE__ */ new Map();
|
|
3946
4173
|
return {
|
|
3947
4174
|
emit(t, n) {
|
|
@@ -3957,9 +4184,9 @@ function Oo() {
|
|
|
3957
4184
|
}
|
|
3958
4185
|
//#endregion
|
|
3959
4186
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTreeStore.js
|
|
3960
|
-
var
|
|
4187
|
+
var Lo = class {
|
|
3961
4188
|
nodesRef = { current: [] };
|
|
3962
|
-
events =
|
|
4189
|
+
events = Io();
|
|
3963
4190
|
addNode(e) {
|
|
3964
4191
|
this.nodesRef.current.push(e);
|
|
3965
4192
|
}
|
|
@@ -3967,16 +4194,16 @@ var ko = class {
|
|
|
3967
4194
|
let t = this.nodesRef.current.findIndex((t) => t === e);
|
|
3968
4195
|
t !== -1 && this.nodesRef.current.splice(t, 1);
|
|
3969
4196
|
}
|
|
3970
|
-
},
|
|
3971
|
-
process.env.NODE_ENV !== "production" && (
|
|
3972
|
-
var
|
|
3973
|
-
process.env.NODE_ENV !== "production" && (
|
|
3974
|
-
var
|
|
3975
|
-
let t = n.useContext(
|
|
4197
|
+
}, Ro = /*#__PURE__*/ n.createContext(null);
|
|
4198
|
+
process.env.NODE_ENV !== "production" && (Ro.displayName = "FloatingNodeContext");
|
|
4199
|
+
var zo = /*#__PURE__*/ n.createContext(null);
|
|
4200
|
+
process.env.NODE_ENV !== "production" && (zo.displayName = "FloatingTreeContext");
|
|
4201
|
+
var Bo = () => n.useContext(Ro)?.id || null, Vo = (e) => {
|
|
4202
|
+
let t = n.useContext(zo);
|
|
3976
4203
|
return e ?? t;
|
|
3977
4204
|
};
|
|
3978
|
-
function
|
|
3979
|
-
let t =
|
|
4205
|
+
function Ho(e) {
|
|
4206
|
+
let t = Jn(), n = Vo(e), r = Bo();
|
|
3980
4207
|
return B(() => {
|
|
3981
4208
|
if (!t) return;
|
|
3982
4209
|
let e = {
|
|
@@ -3992,9 +4219,9 @@ function Po(e) {
|
|
|
3992
4219
|
r
|
|
3993
4220
|
]), t;
|
|
3994
4221
|
}
|
|
3995
|
-
function
|
|
3996
|
-
let { children: t, id: r } = e, i =
|
|
3997
|
-
return /*#__PURE__*/ s(
|
|
4222
|
+
function Uo(e) {
|
|
4223
|
+
let { children: t, id: r } = e, i = Bo();
|
|
4224
|
+
return /*#__PURE__*/ s(Ro.Provider, {
|
|
3998
4225
|
value: n.useMemo(() => ({
|
|
3999
4226
|
id: r,
|
|
4000
4227
|
parentId: i
|
|
@@ -4002,48 +4229,48 @@ function Fo(e) {
|
|
|
4002
4229
|
children: t
|
|
4003
4230
|
});
|
|
4004
4231
|
}
|
|
4005
|
-
function
|
|
4006
|
-
let { children: t, externalTree: n } = e, r = P(() => n ?? new
|
|
4007
|
-
return /*#__PURE__*/ s(
|
|
4232
|
+
function Wo(e) {
|
|
4233
|
+
let { children: t, externalTree: n } = e, r = P(() => n ?? new Lo()).current;
|
|
4234
|
+
return /*#__PURE__*/ s(zo.Provider, {
|
|
4008
4235
|
value: r,
|
|
4009
4236
|
children: t
|
|
4010
4237
|
});
|
|
4011
4238
|
}
|
|
4012
4239
|
//#endregion
|
|
4013
4240
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingFocusManager.js
|
|
4014
|
-
function
|
|
4015
|
-
let n = f(
|
|
4241
|
+
function Go(e, t) {
|
|
4242
|
+
let n = f(yr(e));
|
|
4016
4243
|
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
4017
4244
|
}
|
|
4018
|
-
var
|
|
4019
|
-
function
|
|
4020
|
-
|
|
4245
|
+
var Ko = 20, qo = [];
|
|
4246
|
+
function Jo() {
|
|
4247
|
+
qo = qo.filter((e) => e.deref()?.isConnected);
|
|
4021
4248
|
}
|
|
4022
|
-
function
|
|
4023
|
-
|
|
4249
|
+
function Yo(e) {
|
|
4250
|
+
Jo(), e && d(e) !== "body" && (qo.push(new WeakRef(e)), qo.length > Ko && (qo = qo.slice(-20)));
|
|
4024
4251
|
}
|
|
4025
|
-
function
|
|
4026
|
-
return
|
|
4252
|
+
function Xo() {
|
|
4253
|
+
return Jo(), qo[qo.length - 1]?.deref();
|
|
4027
4254
|
}
|
|
4028
|
-
function
|
|
4029
|
-
return e ?
|
|
4255
|
+
function Zo(e) {
|
|
4256
|
+
return e ? Fi(e) ? e : Li(e)[0] || e : null;
|
|
4030
4257
|
}
|
|
4031
|
-
function
|
|
4258
|
+
function Qo(e, t) {
|
|
4032
4259
|
if (e.hasAttribute("tabindex") && !e.hasAttribute("data-tabindex") || !t.current.includes("floating") && !e.getAttribute("role")?.includes("dialog")) return;
|
|
4033
|
-
let n =
|
|
4260
|
+
let n = Ii(e).filter((e) => {
|
|
4034
4261
|
let t = e.getAttribute("data-tabindex") || "";
|
|
4035
|
-
return
|
|
4262
|
+
return Fi(e) || e.hasAttribute("data-tabindex") && !t.startsWith("-");
|
|
4036
4263
|
}), r = e.getAttribute("tabindex");
|
|
4037
4264
|
t.current.includes("floating") || n.length === 0 ? r !== "0" && e.setAttribute("tabindex", "0") : (r !== "-1" || e.hasAttribute("data-tabindex") && e.getAttribute("data-tabindex") !== "-1") && (e.setAttribute("tabindex", "-1"), e.setAttribute("data-tabindex", "-1"));
|
|
4038
4265
|
}
|
|
4039
|
-
function
|
|
4040
|
-
let { context: t, children: r, disabled: i = !1, initialFocus: a = !0, returnFocus: o = !0, restoreFocus: l = !1, modal: u = !0, closeOnFocusOut: d = !0, openInteractionType: f = "", nextFocusableElement: p, previousFocusableElement: m, beforeContentFocusGuardRef: h, externalTree: _, getInsideElements: v } = e, y = "rootStore" in t ? t.rootStore : t, b = y.useState("open"), x = y.useState("domReferenceElement"), S = y.useState("floatingElement"), { events: C, dataRef: w } = y.context, T = F(() => w.current.floatingContext?.nodeId), ee = a === !1, E =
|
|
4266
|
+
function $o(e) {
|
|
4267
|
+
let { context: t, children: r, disabled: i = !1, initialFocus: a = !0, returnFocus: o = !0, restoreFocus: l = !1, modal: u = !0, closeOnFocusOut: d = !0, openInteractionType: f = "", nextFocusableElement: p, previousFocusableElement: m, beforeContentFocusGuardRef: h, externalTree: _, getInsideElements: v } = e, y = "rootStore" in t ? t.rootStore : t, b = y.useState("open"), x = y.useState("domReferenceElement"), S = y.useState("floatingElement"), { events: C, dataRef: w } = y.context, T = F(() => w.current.floatingContext?.nodeId), ee = a === !1, E = Tr(x) && ee, D = n.useRef(["content"]), O = io(a), te = io(o), k = io(f), A = Vo(_), j = Mo(), M = n.useRef(!1), N = n.useRef(!1), P = n.useRef(!1), ne = n.useRef(null), re = n.useRef(""), I = n.useRef(""), L = n.useRef(null), R = n.useRef(null), z = De(L, h, j?.beforeInsideRef), ie = De(R, j?.afterInsideRef), ae = Zi(), oe = Zi(), V = na(), se = j != null, H = Dr(S), ce = F((e = H) => e ? Li(e) : []), le = F(() => v?.().filter((e) => e != null) ?? []);
|
|
4041
4268
|
n.useEffect(() => {
|
|
4042
4269
|
if (i || !u) return;
|
|
4043
4270
|
function e(e) {
|
|
4044
|
-
e.key === "Tab" &&
|
|
4271
|
+
e.key === "Tab" && X(H, vr(Y(H))) && ce().length === 0 && !E && Ar(e);
|
|
4045
4272
|
}
|
|
4046
|
-
return Q(
|
|
4273
|
+
return Q(Y(H), "keydown", e);
|
|
4047
4274
|
}, [
|
|
4048
4275
|
i,
|
|
4049
4276
|
x,
|
|
@@ -4051,21 +4278,21 @@ function Go(e) {
|
|
|
4051
4278
|
u,
|
|
4052
4279
|
D,
|
|
4053
4280
|
E,
|
|
4054
|
-
|
|
4281
|
+
ce
|
|
4055
4282
|
]), n.useEffect(() => {
|
|
4056
4283
|
if (i || !b) return;
|
|
4057
|
-
let e =
|
|
4284
|
+
let e = Y(H);
|
|
4058
4285
|
function t() {
|
|
4059
4286
|
P.current = !1;
|
|
4060
4287
|
}
|
|
4061
4288
|
function n(e) {
|
|
4062
|
-
let t =
|
|
4289
|
+
let t = yr(e), n = le(), r = X(S, t) || X(x, t) || X(j?.portalNode, t) || n.some((e) => e === t || X(e, t));
|
|
4063
4290
|
P.current = !r, I.current = e.pointerType || "keyboard", t?.closest("[data-base-ui-click-trigger]") && (N.current = !0);
|
|
4064
4291
|
}
|
|
4065
4292
|
function r() {
|
|
4066
4293
|
I.current = "keyboard";
|
|
4067
4294
|
}
|
|
4068
|
-
return
|
|
4295
|
+
return ro(Q(e, "pointerdown", n, !0), Q(e, "pointerup", t, !0), Q(e, "pointercancel", t, !0), Q(e, "keydown", r, !0));
|
|
4069
4296
|
}, [
|
|
4070
4297
|
i,
|
|
4071
4298
|
S,
|
|
@@ -4073,47 +4300,47 @@ function Go(e) {
|
|
|
4073
4300
|
H,
|
|
4074
4301
|
b,
|
|
4075
4302
|
j,
|
|
4076
|
-
|
|
4303
|
+
le
|
|
4077
4304
|
]), n.useEffect(() => {
|
|
4078
4305
|
if (i || !d) return;
|
|
4079
|
-
let e =
|
|
4306
|
+
let e = Y(H);
|
|
4080
4307
|
function t() {
|
|
4081
4308
|
N.current = !0, oe.start(0, () => {
|
|
4082
4309
|
N.current = !1;
|
|
4083
4310
|
});
|
|
4084
4311
|
}
|
|
4085
4312
|
function n(e) {
|
|
4086
|
-
let t =
|
|
4087
|
-
|
|
4313
|
+
let t = yr(e);
|
|
4314
|
+
Fi(t) && (ne.current = t);
|
|
4088
4315
|
}
|
|
4089
4316
|
function r(t) {
|
|
4090
|
-
let n = t.relatedTarget, r = t.currentTarget, i =
|
|
4317
|
+
let n = t.relatedTarget, r = t.currentTarget, i = yr(t);
|
|
4091
4318
|
queueMicrotask(() => {
|
|
4092
|
-
let a = T(), o = y.context.triggerElements, s =
|
|
4319
|
+
let a = T(), o = y.context.triggerElements, s = le(), c = n?.hasAttribute(uo("focus-guard")) && [
|
|
4093
4320
|
L.current,
|
|
4094
4321
|
R.current,
|
|
4095
4322
|
j?.beforeInsideRef.current,
|
|
4096
4323
|
j?.afterInsideRef.current,
|
|
4097
4324
|
j?.beforeOutsideRef.current,
|
|
4098
4325
|
j?.afterOutsideRef.current,
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
].includes(n), d = !(
|
|
4102
|
-
if (r === x && H &&
|
|
4326
|
+
ra(m),
|
|
4327
|
+
ra(p)
|
|
4328
|
+
].includes(n), d = !(X(x, n) || X(S, n) || X(n, S) || X(j?.portalNode, n) || s.some((e) => e === n || X(e, n)) || n != null && o.hasElement(n) || o.hasMatchingElement((e) => X(e, n)) || c || A && (Or(A.nodesRef.current, a).find((e) => X(e.context?.elements.floating, n) || X(e.context?.elements.domReference, n)) || kr(A.nodesRef.current, a).find((e) => [e.context?.elements.floating, Dr(e.context?.elements.floating)].includes(n) || e.context?.elements.domReference === n)));
|
|
4329
|
+
if (r === x && H && Qo(H, D), l && r !== x && !xi(i) && vr(e) === e.body) {
|
|
4103
4330
|
if (g(H) && (H.focus(), l === "popup")) {
|
|
4104
4331
|
V.request(() => {
|
|
4105
4332
|
H.focus();
|
|
4106
4333
|
});
|
|
4107
4334
|
return;
|
|
4108
4335
|
}
|
|
4109
|
-
let e =
|
|
4336
|
+
let e = ce(), t = ne.current, n = (t && e.includes(t) ? t : null) || e[e.length - 1] || H;
|
|
4110
4337
|
g(n) && n.focus();
|
|
4111
4338
|
}
|
|
4112
4339
|
if (w.current.insideReactTree) {
|
|
4113
4340
|
w.current.insideReactTree = !1;
|
|
4114
4341
|
return;
|
|
4115
4342
|
}
|
|
4116
|
-
(E || !u) && n && d && !N.current && (E || n !==
|
|
4343
|
+
(E || !u) && n && d && !N.current && (E || n !== Xo()) && (M.current = !0, y.setOpen(!1, ka(xa, t)));
|
|
4117
4344
|
});
|
|
4118
4345
|
}
|
|
4119
4346
|
function a() {
|
|
@@ -4122,7 +4349,7 @@ function Go(e) {
|
|
|
4122
4349
|
}));
|
|
4123
4350
|
}
|
|
4124
4351
|
let o = g(x) ? x : null;
|
|
4125
|
-
if (!(!S && !o)) return
|
|
4352
|
+
if (!(!S && !o)) return ro(o && Q(o, "focusout", r), o && Q(o, "pointerdown", t), S && Q(S, "focusin", n), S && Q(S, "focusout", r), S && j && Q(S, "focusout", a, !0));
|
|
4126
4353
|
}, [
|
|
4127
4354
|
i,
|
|
4128
4355
|
x,
|
|
@@ -4134,7 +4361,7 @@ function Go(e) {
|
|
|
4134
4361
|
y,
|
|
4135
4362
|
d,
|
|
4136
4363
|
l,
|
|
4137
|
-
|
|
4364
|
+
ce,
|
|
4138
4365
|
E,
|
|
4139
4366
|
T,
|
|
4140
4367
|
D,
|
|
@@ -4144,25 +4371,25 @@ function Go(e) {
|
|
|
4144
4371
|
V,
|
|
4145
4372
|
p,
|
|
4146
4373
|
m,
|
|
4147
|
-
|
|
4374
|
+
le
|
|
4148
4375
|
]), n.useEffect(() => {
|
|
4149
4376
|
if (i || !S || !b) return;
|
|
4150
|
-
let e = Array.from(j?.portalNode?.querySelectorAll(`[${
|
|
4377
|
+
let e = Array.from(j?.portalNode?.querySelectorAll(`[${uo("portal")}]`) || []), t = (A ? kr(A.nodesRef.current, T()) : []).find((e) => Tr(e.context?.elements.domReference || null))?.context?.elements.domReference, n = To([
|
|
4151
4378
|
S,
|
|
4152
4379
|
...e,
|
|
4153
4380
|
L.current,
|
|
4154
4381
|
R.current,
|
|
4155
4382
|
j?.beforeOutsideRef.current,
|
|
4156
4383
|
j?.afterOutsideRef.current,
|
|
4157
|
-
...
|
|
4384
|
+
...le(),
|
|
4158
4385
|
t,
|
|
4159
|
-
|
|
4160
|
-
|
|
4386
|
+
ra(m),
|
|
4387
|
+
ra(p),
|
|
4161
4388
|
E ? x : null
|
|
4162
4389
|
].filter((e) => e != null), {
|
|
4163
4390
|
ariaHidden: u || E,
|
|
4164
4391
|
mark: !1
|
|
4165
|
-
}), r =
|
|
4392
|
+
}), r = To([S, ...e].filter((e) => e != null));
|
|
4166
4393
|
return () => {
|
|
4167
4394
|
r(), n();
|
|
4168
4395
|
};
|
|
@@ -4179,35 +4406,35 @@ function Go(e) {
|
|
|
4179
4406
|
T,
|
|
4180
4407
|
p,
|
|
4181
4408
|
m,
|
|
4182
|
-
|
|
4409
|
+
le
|
|
4183
4410
|
]), B(() => {
|
|
4184
4411
|
if (!b || i || !g(H)) return;
|
|
4185
|
-
let e =
|
|
4412
|
+
let e = vr(Y(H));
|
|
4186
4413
|
queueMicrotask(() => {
|
|
4187
4414
|
let t = O.current, n = typeof t == "function" ? t(k.current || "") : t;
|
|
4188
|
-
if (n === void 0 || n === !1 ||
|
|
4189
|
-
let r = null, i = () => (r ??=
|
|
4190
|
-
a = n === !0 || n === null ? i() :
|
|
4415
|
+
if (n === void 0 || n === !1 || X(H, e)) return;
|
|
4416
|
+
let r = null, i = () => (r ??= ce(H), r[0] || H), a;
|
|
4417
|
+
a = n === !0 || n === null ? i() : ra(n), a ||= i(), po(a, { preventScroll: a === H });
|
|
4191
4418
|
});
|
|
4192
4419
|
}, [
|
|
4193
4420
|
i,
|
|
4194
4421
|
b,
|
|
4195
4422
|
H,
|
|
4196
4423
|
ee,
|
|
4197
|
-
|
|
4424
|
+
ce,
|
|
4198
4425
|
O,
|
|
4199
4426
|
k
|
|
4200
4427
|
]), B(() => {
|
|
4201
4428
|
if (i || !H) return;
|
|
4202
|
-
let e =
|
|
4203
|
-
|
|
4429
|
+
let e = Y(H);
|
|
4430
|
+
Yo(vr(e));
|
|
4204
4431
|
function t(e) {
|
|
4205
|
-
if (e.open || (re.current =
|
|
4432
|
+
if (e.open || (re.current = Go(e.nativeEvent, I.current)), e.reason === "trigger-hover" && e.nativeEvent.type === "mouseleave" && (M.current = !0), e.reason === "outside-press") {
|
|
4206
4433
|
if (e.nested) M.current = !1;
|
|
4207
|
-
else if (
|
|
4434
|
+
else if (Mr(e.nativeEvent) || Nr(e.nativeEvent)) M.current = !1;
|
|
4208
4435
|
else {
|
|
4209
4436
|
let e = !1;
|
|
4210
|
-
|
|
4437
|
+
Y(H).createElement("div").focus({ get preventScroll() {
|
|
4211
4438
|
return e = !0, !1;
|
|
4212
4439
|
} }), e ? M.current = !1 : M.current = !0;
|
|
4213
4440
|
}
|
|
@@ -4218,17 +4445,17 @@ function Go(e) {
|
|
|
4218
4445
|
let e = te.current, t = typeof e == "function" ? e(re.current) : e;
|
|
4219
4446
|
if (t === void 0 || t === !1) return null;
|
|
4220
4447
|
if (t === null && (t = !0), typeof t == "boolean") {
|
|
4221
|
-
let e = x ||
|
|
4448
|
+
let e = x || Xo();
|
|
4222
4449
|
return e && e.isConnected ? e : null;
|
|
4223
4450
|
}
|
|
4224
|
-
let n = x ||
|
|
4225
|
-
return
|
|
4451
|
+
let n = x || Xo();
|
|
4452
|
+
return ra(t) || n || null;
|
|
4226
4453
|
}
|
|
4227
4454
|
return () => {
|
|
4228
4455
|
C.off("openchange", t);
|
|
4229
|
-
let r =
|
|
4456
|
+
let r = vr(e), i = le(), a = X(S, r) || i.some((e) => e === r || X(e, r)) || A && Or(A.nodesRef.current, T(), !1).some((e) => X(e.context?.elements.floating, r)), o = te.current, s = n();
|
|
4230
4457
|
queueMicrotask(() => {
|
|
4231
|
-
let t =
|
|
4458
|
+
let t = Zo(s), n = typeof o != "boolean";
|
|
4232
4459
|
o && !M.current && g(t) && (!(!n && t !== r && r !== e.body) || a) && t.focus({ preventScroll: !0 }), M.current = !1;
|
|
4233
4460
|
});
|
|
4234
4461
|
};
|
|
@@ -4242,11 +4469,11 @@ function Go(e) {
|
|
|
4242
4469
|
A,
|
|
4243
4470
|
x,
|
|
4244
4471
|
T,
|
|
4245
|
-
|
|
4472
|
+
le
|
|
4246
4473
|
]), B(() => {
|
|
4247
|
-
if (!
|
|
4248
|
-
let e =
|
|
4249
|
-
!g(e) || !
|
|
4474
|
+
if (!rr || b || !S) return;
|
|
4475
|
+
let e = vr(Y(S));
|
|
4476
|
+
!g(e) || !Cr(e) || X(S, e) && e.blur();
|
|
4250
4477
|
}, [b, S]), B(() => {
|
|
4251
4478
|
if (!(i || !j)) return j.setFocusManagerState({
|
|
4252
4479
|
modal: u,
|
|
@@ -4266,64 +4493,64 @@ function Go(e) {
|
|
|
4266
4493
|
d,
|
|
4267
4494
|
x
|
|
4268
4495
|
]), B(() => {
|
|
4269
|
-
if (!(i || !H)) return
|
|
4270
|
-
queueMicrotask(
|
|
4496
|
+
if (!(i || !H)) return Qo(H, D), () => {
|
|
4497
|
+
queueMicrotask(Jo);
|
|
4271
4498
|
};
|
|
4272
4499
|
}, [
|
|
4273
4500
|
i,
|
|
4274
4501
|
H,
|
|
4275
4502
|
D
|
|
4276
4503
|
]);
|
|
4277
|
-
let
|
|
4504
|
+
let ue = !i && (!u || !E) && (se || u);
|
|
4278
4505
|
return /*#__PURE__*/ c(n.Fragment, { children: [
|
|
4279
|
-
|
|
4506
|
+
ue && /*#__PURE__*/ s(lo, {
|
|
4280
4507
|
"data-type": "inside",
|
|
4281
4508
|
ref: z,
|
|
4282
4509
|
onFocus: (e) => {
|
|
4283
4510
|
if (u) {
|
|
4284
|
-
let e =
|
|
4285
|
-
|
|
4286
|
-
} else j?.portalNode && (M.current = !1,
|
|
4511
|
+
let e = ce();
|
|
4512
|
+
po(e[e.length - 1]);
|
|
4513
|
+
} else j?.portalNode && (M.current = !1, Wi(e, j.portalNode) ? zi(x)?.focus() : ra(m ?? j.beforeOutsideRef)?.focus());
|
|
4287
4514
|
}
|
|
4288
4515
|
}),
|
|
4289
4516
|
r,
|
|
4290
|
-
|
|
4517
|
+
ue && /*#__PURE__*/ s(lo, {
|
|
4291
4518
|
"data-type": "inside",
|
|
4292
4519
|
ref: ie,
|
|
4293
4520
|
onFocus: (e) => {
|
|
4294
|
-
u ?
|
|
4521
|
+
u ? po(ce()[0]) : j?.portalNode && (d && (M.current = !0), Wi(e, j.portalNode) ? Bi(x)?.focus() : ra(p ?? j.afterOutsideRef)?.focus());
|
|
4295
4522
|
}
|
|
4296
4523
|
})
|
|
4297
4524
|
] });
|
|
4298
4525
|
}
|
|
4299
4526
|
//#endregion
|
|
4300
4527
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useDismiss.js
|
|
4301
|
-
var
|
|
4528
|
+
var es = {
|
|
4302
4529
|
intentional: "onClick",
|
|
4303
4530
|
sloppy: "onPointerDown"
|
|
4304
4531
|
};
|
|
4305
|
-
function
|
|
4532
|
+
function ts() {
|
|
4306
4533
|
return !1;
|
|
4307
4534
|
}
|
|
4308
|
-
function
|
|
4535
|
+
function ns(e) {
|
|
4309
4536
|
return {
|
|
4310
4537
|
escapeKey: typeof e == "boolean" ? e : e?.escapeKey ?? !1,
|
|
4311
4538
|
outsidePress: typeof e == "boolean" ? e : e?.outsidePress ?? !0
|
|
4312
4539
|
};
|
|
4313
4540
|
}
|
|
4314
|
-
function
|
|
4315
|
-
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingElement"), { dataRef: o } = r.context, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "sloppy", referencePress: d =
|
|
4541
|
+
function rs(e, t = {}) {
|
|
4542
|
+
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingElement"), { dataRef: o } = r.context, { enabled: s = !0, escapeKey: c = !0, outsidePress: l = !0, outsidePressEvent: u = "sloppy", referencePress: d = ts, referencePressEvent: f = "sloppy", bubbles: p, externalTree: m } = t, v = Vo(m), y = F(typeof l == "function" ? l : () => !1), b = typeof l == "function" ? y : l, x = b !== !1, S = F(() => u), C = n.useRef(!1), w = n.useRef(!1), T = n.useRef(!1), { escapeKey: ee, outsidePress: te } = ns(p), A = n.useRef(null), j = Zi(), M = Zi(), N = F(() => {
|
|
4316
4543
|
M.clear(), o.current.insideReactTree = !1;
|
|
4317
4544
|
}), P = n.useRef(!1), ne = n.useRef(""), re = F(d), I = F((e) => {
|
|
4318
4545
|
if (!i || !s || !c || e.key !== "Escape" || P.current) return;
|
|
4319
|
-
let t = o.current.floatingContext?.nodeId, n = v ?
|
|
4546
|
+
let t = o.current.floatingContext?.nodeId, n = v ? Or(v.nodesRef.current, t) : [];
|
|
4320
4547
|
if (!ee && n.length > 0) {
|
|
4321
4548
|
let e = !0;
|
|
4322
4549
|
if (n.forEach((t) => {
|
|
4323
4550
|
t.context?.open && !t.context.dataRef.current.__escapeKeyBubbles && (e = !1);
|
|
4324
4551
|
}), !e) return;
|
|
4325
4552
|
}
|
|
4326
|
-
let a =
|
|
4553
|
+
let a = ka(Sa, jr(e) ? e.nativeEvent : e);
|
|
4327
4554
|
r.setOpen(!1, a), !ee && !a.isPropagationAllowed && e.stopPropagation();
|
|
4328
4555
|
}), L = F(() => {
|
|
4329
4556
|
o.current.insideReactTree = !0, M.start(0, N);
|
|
@@ -4331,7 +4558,7 @@ function Yo(e, t = {}) {
|
|
|
4331
4558
|
n.useEffect(() => {
|
|
4332
4559
|
if (!i || !s) return;
|
|
4333
4560
|
o.current.__escapeKeyBubbles = ee, o.current.__outsidePressBubbles = te;
|
|
4334
|
-
let e = new
|
|
4561
|
+
let e = new Xi(), t = new Xi();
|
|
4335
4562
|
function n() {
|
|
4336
4563
|
e.clear(), P.current = !0;
|
|
4337
4564
|
}
|
|
@@ -4357,8 +4584,8 @@ function Yo(e, t = {}) {
|
|
|
4357
4584
|
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
4358
4585
|
}
|
|
4359
4586
|
function m(e) {
|
|
4360
|
-
let t = o.current.floatingContext?.nodeId, n = v &&
|
|
4361
|
-
return
|
|
4587
|
+
let t = o.current.floatingContext?.nodeId, n = v && Or(v.nodesRef.current, t).some((t) => xr(e, t.context?.elements.floating));
|
|
4588
|
+
return xr(e, r.select("floatingElement")) || xr(e, r.select("domReferenceElement")) || n;
|
|
4362
4589
|
}
|
|
4363
4590
|
function y(e) {
|
|
4364
4591
|
if (p(e)) {
|
|
@@ -4369,15 +4596,15 @@ function Yo(e, t = {}) {
|
|
|
4369
4596
|
N();
|
|
4370
4597
|
return;
|
|
4371
4598
|
}
|
|
4372
|
-
let n =
|
|
4373
|
-
if (n && (c.hasElement(n) || c.hasMatchingElement((e) =>
|
|
4599
|
+
let n = yr(e), i = `[${uo("inert")}]`, a = h(n) ? n.getRootNode() : null, s = Array.from((_(a) ? a : Y(r.select("floatingElement"))).querySelectorAll(i)), c = r.context.triggerElements;
|
|
4600
|
+
if (n && (c.hasElement(n) || c.hasMatchingElement((e) => X(e, n)))) return;
|
|
4374
4601
|
let l = h(n) ? n : null;
|
|
4375
4602
|
for (; l && !D(l);) {
|
|
4376
4603
|
let e = k(l);
|
|
4377
4604
|
if (D(e) || !h(e)) break;
|
|
4378
4605
|
l = e;
|
|
4379
4606
|
}
|
|
4380
|
-
if (s.length && h(n) && !
|
|
4607
|
+
if (s.length && h(n) && !Sr(n) && !X(n, r.select("floatingElement")) && s.every((e) => !X(l, e))) return;
|
|
4381
4608
|
if (g(n) && !("touches" in e)) {
|
|
4382
4609
|
let t = D(n), r = O(n), i = /auto|scroll/, a = t || i.test(r.overflowX), o = t || i.test(r.overflowY), s = a && n.clientWidth > 0 && n.scrollWidth > n.clientWidth, c = o && n.clientHeight > 0 && n.scrollHeight > n.clientHeight, l = r.direction === "rtl", u = c && (l ? e.offsetX <= n.offsetWidth - n.clientWidth : e.offsetX > n.clientWidth), d = s && e.offsetY > n.clientHeight;
|
|
4383
4610
|
if (u || d) return;
|
|
@@ -4388,20 +4615,20 @@ function Yo(e, t = {}) {
|
|
|
4388
4615
|
return;
|
|
4389
4616
|
}
|
|
4390
4617
|
if (typeof b == "function" && !b(e)) return;
|
|
4391
|
-
let u = o.current.floatingContext?.nodeId, d = v ?
|
|
4618
|
+
let u = o.current.floatingContext?.nodeId, d = v ? Or(v.nodesRef.current, u) : [];
|
|
4392
4619
|
if (d.length > 0) {
|
|
4393
4620
|
let e = !0;
|
|
4394
4621
|
if (d.forEach((t) => {
|
|
4395
4622
|
t.context?.open && !t.context.dataRef.current.__outsidePressBubbles && (e = !1);
|
|
4396
4623
|
}), !e) return;
|
|
4397
4624
|
}
|
|
4398
|
-
r.setOpen(!1,
|
|
4625
|
+
r.setOpen(!1, ka(va, e)), N();
|
|
4399
4626
|
}
|
|
4400
4627
|
function M(e) {
|
|
4401
|
-
f() !== "sloppy" || e.pointerType === "touch" || !r.select("open") || !s ||
|
|
4628
|
+
f() !== "sloppy" || e.pointerType === "touch" || !r.select("open") || !s || xr(e, r.select("floatingElement")) || xr(e, r.select("domReferenceElement")) || y(e);
|
|
4402
4629
|
}
|
|
4403
4630
|
function re(e) {
|
|
4404
|
-
if (f() !== "sloppy" || !r.select("open") || !s ||
|
|
4631
|
+
if (f() !== "sloppy" || !r.select("open") || !s || xr(e, r.select("floatingElement")) || xr(e, r.select("domReferenceElement"))) return;
|
|
4405
4632
|
let t = e.touches[0];
|
|
4406
4633
|
t && (A.current = {
|
|
4407
4634
|
startTime: Date.now(),
|
|
@@ -4414,7 +4641,7 @@ function Yo(e, t = {}) {
|
|
|
4414
4641
|
}));
|
|
4415
4642
|
}
|
|
4416
4643
|
function F(e, t) {
|
|
4417
|
-
let n =
|
|
4644
|
+
let n = yr(e);
|
|
4418
4645
|
if (!n) return;
|
|
4419
4646
|
let r = Q(n, e.type, () => {
|
|
4420
4647
|
t(e), r();
|
|
@@ -4446,7 +4673,7 @@ function Yo(e, t = {}) {
|
|
|
4446
4673
|
}
|
|
4447
4674
|
}
|
|
4448
4675
|
function ie(e) {
|
|
4449
|
-
if (f() !== "sloppy" || !A.current ||
|
|
4676
|
+
if (f() !== "sloppy" || !A.current || xr(e, r.select("floatingElement")) || xr(e, r.select("domReferenceElement"))) return;
|
|
4450
4677
|
let t = e.touches[0];
|
|
4451
4678
|
if (!t) return;
|
|
4452
4679
|
let n = Math.abs(t.clientX - A.current.startX), i = Math.abs(t.clientY - A.current.startY), a = Math.sqrt(n * n + i * i);
|
|
@@ -4456,12 +4683,12 @@ function Yo(e, t = {}) {
|
|
|
4456
4683
|
F(e, ie);
|
|
4457
4684
|
}
|
|
4458
4685
|
function ae(e) {
|
|
4459
|
-
f() !== "sloppy" || !A.current ||
|
|
4686
|
+
f() !== "sloppy" || !A.current || xr(e, r.select("floatingElement")) || xr(e, r.select("domReferenceElement")) || (A.current.dismissOnTouchEnd && y(e), j.clear(), A.current = null);
|
|
4460
4687
|
}
|
|
4461
4688
|
function oe(e) {
|
|
4462
4689
|
F(e, ae);
|
|
4463
4690
|
}
|
|
4464
|
-
let V =
|
|
4691
|
+
let V = Y(a), se = ro(c && ro(Q(V, "keydown", I), Q(V, "compositionstart", n), Q(V, "compositionend", l)), x && ro(Q(V, "click", R, !0), Q(V, "pointerdown", R, !0), Q(V, "pointerup", z, !0), Q(V, "pointercancel", z, !0), Q(V, "mousedown", R, !0), Q(V, "mouseup", z, !0), Q(V, "touchstart", L, !0), Q(V, "touchmove", B, !0), Q(V, "touchend", oe, !0)));
|
|
4465
4692
|
return () => {
|
|
4466
4693
|
se(), e.clear(), t.clear(), d(), T.current = !1;
|
|
4467
4694
|
};
|
|
@@ -4484,11 +4711,11 @@ function Yo(e, t = {}) {
|
|
|
4484
4711
|
]), n.useEffect(N, [b, N]);
|
|
4485
4712
|
let R = n.useMemo(() => ({
|
|
4486
4713
|
onKeyDown: I,
|
|
4487
|
-
[
|
|
4488
|
-
re() && r.setOpen(!1,
|
|
4714
|
+
[es[f]]: (e) => {
|
|
4715
|
+
re() && r.setOpen(!1, ka(ha, e.nativeEvent));
|
|
4489
4716
|
},
|
|
4490
4717
|
...f !== "intentional" && { onClick(e) {
|
|
4491
|
-
re() && r.setOpen(!1,
|
|
4718
|
+
re() && r.setOpen(!1, ka("trigger-press", e.nativeEvent));
|
|
4492
4719
|
} }
|
|
4493
4720
|
}), [
|
|
4494
4721
|
I,
|
|
@@ -4497,8 +4724,8 @@ function Yo(e, t = {}) {
|
|
|
4497
4724
|
re
|
|
4498
4725
|
]), z = F((e) => {
|
|
4499
4726
|
if (!i || !s || e.button !== 0) return;
|
|
4500
|
-
let t =
|
|
4501
|
-
|
|
4727
|
+
let t = yr(e.nativeEvent);
|
|
4728
|
+
X(r.select("floatingElement"), t) && (C.current || (C.current = !0, w.current = !1));
|
|
4502
4729
|
}), ie = F((e) => {
|
|
4503
4730
|
!i || !s || (e.defaultPrevented || e.nativeEvent.defaultPrevented) && C.current && (w.current = !0);
|
|
4504
4731
|
}), B = n.useMemo(() => ({
|
|
@@ -4534,7 +4761,7 @@ function Yo(e, t = {}) {
|
|
|
4534
4761
|
//#endregion
|
|
4535
4762
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/store/createSelector.js
|
|
4536
4763
|
var $ = (e, t, n, r, i, a, ...o) => {
|
|
4537
|
-
if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
4764
|
+
if (o.length > 0) throw Error(process.env.NODE_ENV === "production" ? be(1) : "Unsupported number of selectors");
|
|
4538
4765
|
let s;
|
|
4539
4766
|
if (e && t && n && r && i && a) s = (o, s, c, l) => a(e(o, s, c, l), t(o, s, c, l), n(o, s, c, l), r(o, s, c, l), i(o, s, c, l), s, c, l);
|
|
4540
4767
|
else if (e && t && n && r && i) s = (a, o, s, c) => i(e(a, o, s, c), t(a, o, s, c), n(a, o, s, c), r(a, o, s, c), o, s, c);
|
|
@@ -4544,10 +4771,10 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
4544
4771
|
else if (e) s = e;
|
|
4545
4772
|
else throw Error("Missing arguments");
|
|
4546
4773
|
return s;
|
|
4547
|
-
},
|
|
4774
|
+
}, is = /* @__PURE__ */ t(((e, t) => {
|
|
4548
4775
|
t.exports = { ...n };
|
|
4549
|
-
})),
|
|
4550
|
-
var t =
|
|
4776
|
+
})), as = /* @__PURE__ */ t(((e) => {
|
|
4777
|
+
var t = is();
|
|
4551
4778
|
function n(e, t) {
|
|
4552
4779
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
4553
4780
|
}
|
|
@@ -4584,7 +4811,7 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
4584
4811
|
}
|
|
4585
4812
|
var d = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? u : c;
|
|
4586
4813
|
e.useSyncExternalStore = t.useSyncExternalStore === void 0 ? d : t.useSyncExternalStore;
|
|
4587
|
-
})),
|
|
4814
|
+
})), os = /* @__PURE__ */ t(((e) => {
|
|
4588
4815
|
process.env.NODE_ENV !== "production" && (function() {
|
|
4589
4816
|
function t(e, t) {
|
|
4590
4817
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
@@ -4627,13 +4854,13 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
4627
4854
|
return t();
|
|
4628
4855
|
}
|
|
4629
4856
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
4630
|
-
var a =
|
|
4857
|
+
var a = is(), o = typeof Object.is == "function" ? Object.is : t, s = a.useState, c = a.useEffect, l = a.useLayoutEffect, u = a.useDebugValue, d = !1, f = !1, p = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? i : n;
|
|
4631
4858
|
e.useSyncExternalStore = a.useSyncExternalStore === void 0 ? p : a.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
4632
4859
|
})();
|
|
4633
|
-
})),
|
|
4634
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
4635
|
-
})),
|
|
4636
|
-
var t =
|
|
4860
|
+
})), ss = /* @__PURE__ */ t(((e, t) => {
|
|
4861
|
+
t.exports = process.env.NODE_ENV === "production" ? as() : os();
|
|
4862
|
+
})), cs = /* @__PURE__ */ t(((e) => {
|
|
4863
|
+
var t = is(), n = ss();
|
|
4637
4864
|
function r(e, t) {
|
|
4638
4865
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
4639
4866
|
}
|
|
@@ -4677,13 +4904,13 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
4677
4904
|
f.hasValue = !0, f.value = p;
|
|
4678
4905
|
}, [p]), l(p), p;
|
|
4679
4906
|
};
|
|
4680
|
-
})),
|
|
4907
|
+
})), ls = /* @__PURE__ */ t(((e) => {
|
|
4681
4908
|
process.env.NODE_ENV !== "production" && (function() {
|
|
4682
4909
|
function t(e, t) {
|
|
4683
4910
|
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
4684
4911
|
}
|
|
4685
4912
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
4686
|
-
var n =
|
|
4913
|
+
var n = is(), r = ss(), i = typeof Object.is == "function" ? Object.is : t, a = r.useSyncExternalStore, o = n.useRef, s = n.useEffect, c = n.useMemo, l = n.useDebugValue;
|
|
4687
4914
|
e.useSyncExternalStoreWithSelector = function(e, t, n, r, u) {
|
|
4688
4915
|
var d = o(null);
|
|
4689
4916
|
if (d.current === null) {
|
|
@@ -4724,44 +4951,44 @@ var $ = (e, t, n, r, i, a, ...o) => {
|
|
|
4724
4951
|
}, [p]), l(p), p;
|
|
4725
4952
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
4726
4953
|
})();
|
|
4727
|
-
})),
|
|
4728
|
-
t.exports = process.env.NODE_ENV === "production" ?
|
|
4729
|
-
})),
|
|
4730
|
-
function
|
|
4731
|
-
return
|
|
4954
|
+
})), us = /* @__PURE__ */ t(((e, t) => {
|
|
4955
|
+
t.exports = process.env.NODE_ENV === "production" ? cs() : ls();
|
|
4956
|
+
})), ds = ss(), fs = /* @__PURE__ */ e(us()), ps = [], ms = void 0;
|
|
4957
|
+
function hs() {
|
|
4958
|
+
return ms;
|
|
4732
4959
|
}
|
|
4733
|
-
function
|
|
4734
|
-
|
|
4960
|
+
function gs(e) {
|
|
4961
|
+
ps.push(e);
|
|
4735
4962
|
}
|
|
4736
|
-
function
|
|
4963
|
+
function _s(e) {
|
|
4737
4964
|
let t = (t, n) => {
|
|
4738
|
-
let r = P(
|
|
4965
|
+
let r = P(ys).current, i;
|
|
4739
4966
|
try {
|
|
4740
|
-
|
|
4741
|
-
for (let e of
|
|
4967
|
+
ms = r;
|
|
4968
|
+
for (let e of ps) e.before(r);
|
|
4742
4969
|
i = e(t, n);
|
|
4743
|
-
for (let e of
|
|
4970
|
+
for (let e of ps) e.after(r);
|
|
4744
4971
|
r.didInitialize = !0;
|
|
4745
4972
|
} finally {
|
|
4746
|
-
|
|
4973
|
+
ms = void 0;
|
|
4747
4974
|
}
|
|
4748
4975
|
return i;
|
|
4749
4976
|
};
|
|
4750
4977
|
return t.displayName = e.displayName || e.name, t;
|
|
4751
4978
|
}
|
|
4752
|
-
function
|
|
4753
|
-
return /*#__PURE__*/ n.forwardRef(
|
|
4979
|
+
function vs(e) {
|
|
4980
|
+
return /*#__PURE__*/ n.forwardRef(_s(e));
|
|
4754
4981
|
}
|
|
4755
|
-
function
|
|
4982
|
+
function ys() {
|
|
4756
4983
|
return { didInitialize: !1 };
|
|
4757
4984
|
}
|
|
4758
4985
|
//#endregion
|
|
4759
4986
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/store/useStore.js
|
|
4760
|
-
var
|
|
4761
|
-
function
|
|
4762
|
-
return
|
|
4987
|
+
var bs = Pe(19) ? Cs : ws;
|
|
4988
|
+
function xs(e, t, n, r, i) {
|
|
4989
|
+
return bs(e, t, n, r, i);
|
|
4763
4990
|
}
|
|
4764
|
-
function
|
|
4991
|
+
function Ss(e, t, r, i, a) {
|
|
4765
4992
|
let o = n.useCallback(() => t(e.getSnapshot(), r, i, a), [
|
|
4766
4993
|
e,
|
|
4767
4994
|
t,
|
|
@@ -4769,9 +4996,9 @@ function ms(e, t, r, i, a) {
|
|
|
4769
4996
|
i,
|
|
4770
4997
|
a
|
|
4771
4998
|
]);
|
|
4772
|
-
return (0,
|
|
4999
|
+
return (0, ds.useSyncExternalStore)(e.subscribe, o, o);
|
|
4773
5000
|
}
|
|
4774
|
-
|
|
5001
|
+
gs({
|
|
4775
5002
|
before(e) {
|
|
4776
5003
|
e.syncIndex = 0, e.didInitialize || (e.syncTick = 1, e.syncHooks = [], e.didChangeStore = !0, e.getSnapshot = () => {
|
|
4777
5004
|
let t = !1;
|
|
@@ -4791,12 +5018,12 @@ cs({
|
|
|
4791
5018
|
return () => {
|
|
4792
5019
|
for (let e of r) e();
|
|
4793
5020
|
};
|
|
4794
|
-
}), (0,
|
|
5021
|
+
}), (0, ds.useSyncExternalStore)(e.subscribe, e.getSnapshot, e.getSnapshot));
|
|
4795
5022
|
}
|
|
4796
5023
|
});
|
|
4797
|
-
function
|
|
4798
|
-
let a =
|
|
4799
|
-
if (!a) return
|
|
5024
|
+
function Cs(e, t, n, r, i) {
|
|
5025
|
+
let a = hs();
|
|
5026
|
+
if (!a) return Ss(e, t, n, r, i);
|
|
4800
5027
|
let o = a.syncIndex;
|
|
4801
5028
|
a.syncIndex += 1;
|
|
4802
5029
|
let s;
|
|
@@ -4810,12 +5037,12 @@ function hs(e, t, n, r, i) {
|
|
|
4810
5037
|
didChange: !1
|
|
4811
5038
|
}, a.syncHooks.push(s)), s.value;
|
|
4812
5039
|
}
|
|
4813
|
-
function
|
|
4814
|
-
return (0,
|
|
5040
|
+
function ws(e, t, n, r, i) {
|
|
5041
|
+
return (0, fs.useSyncExternalStoreWithSelector)(e.subscribe, e.getSnapshot, e.getSnapshot, (e) => t(e, n, r, i));
|
|
4815
5042
|
}
|
|
4816
5043
|
//#endregion
|
|
4817
5044
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/store/Store.js
|
|
4818
|
-
var
|
|
5045
|
+
var Ts = class {
|
|
4819
5046
|
constructor(e) {
|
|
4820
5047
|
this.state = e, this.listeners = /* @__PURE__ */ new Set(), this.updateTick = 0;
|
|
4821
5048
|
}
|
|
@@ -4852,9 +5079,9 @@ var _s = class {
|
|
|
4852
5079
|
this.setState(e);
|
|
4853
5080
|
}
|
|
4854
5081
|
use(e, t, n, r) {
|
|
4855
|
-
return
|
|
5082
|
+
return xs(this, e, t, n, r);
|
|
4856
5083
|
}
|
|
4857
|
-
},
|
|
5084
|
+
}, Es = class extends Ts {
|
|
4858
5085
|
constructor(e, t = {}, n) {
|
|
4859
5086
|
super(e), this.context = t, this.selectors = n;
|
|
4860
5087
|
}
|
|
@@ -4908,11 +5135,11 @@ var _s = class {
|
|
|
4908
5135
|
return i(this.state, t, n, r);
|
|
4909
5136
|
}
|
|
4910
5137
|
useState(e, t, r, i) {
|
|
4911
|
-
return n.useDebugValue(e),
|
|
5138
|
+
return n.useDebugValue(e), xs(this, this.selectors[e], t, r, i);
|
|
4912
5139
|
}
|
|
4913
5140
|
useContextCallback(e, t) {
|
|
4914
5141
|
n.useDebugValue(e);
|
|
4915
|
-
let r = F(t ??
|
|
5142
|
+
let r = F(t ?? U);
|
|
4916
5143
|
this.context[e] = r;
|
|
4917
5144
|
}
|
|
4918
5145
|
useStateSetter(e) {
|
|
@@ -4933,14 +5160,14 @@ var _s = class {
|
|
|
4933
5160
|
}
|
|
4934
5161
|
});
|
|
4935
5162
|
}
|
|
4936
|
-
},
|
|
5163
|
+
}, Ds = {
|
|
4937
5164
|
open: $((e) => e.open),
|
|
4938
5165
|
transitionStatus: $((e) => e.transitionStatus),
|
|
4939
5166
|
domReferenceElement: $((e) => e.domReferenceElement),
|
|
4940
5167
|
referenceElement: $((e) => e.positionReference ?? e.referenceElement),
|
|
4941
5168
|
floatingElement: $((e) => e.floatingElement),
|
|
4942
5169
|
floatingId: $((e) => e.floatingId)
|
|
4943
|
-
},
|
|
5170
|
+
}, Os = class extends Es {
|
|
4944
5171
|
constructor(e) {
|
|
4945
5172
|
let { syncOnly: t, nested: n, onOpenChange: r, triggerElements: i, ...a } = e;
|
|
4946
5173
|
super({
|
|
@@ -4950,13 +5177,13 @@ var _s = class {
|
|
|
4950
5177
|
}, {
|
|
4951
5178
|
onOpenChange: r,
|
|
4952
5179
|
dataRef: { current: {} },
|
|
4953
|
-
events:
|
|
5180
|
+
events: Io(),
|
|
4954
5181
|
nested: n,
|
|
4955
5182
|
triggerElements: i
|
|
4956
|
-
},
|
|
5183
|
+
}, Ds), this.syncOnly = t;
|
|
4957
5184
|
}
|
|
4958
5185
|
syncOpenEvent = (e, t) => {
|
|
4959
|
-
(!e || !this.state.open || t != null &&
|
|
5186
|
+
(!e || !this.state.open || t != null && Fr(t)) && (this.context.dataRef.current.openEvent = e ? t : void 0);
|
|
4960
5187
|
};
|
|
4961
5188
|
dispatchOpenChange = (e, t) => {
|
|
4962
5189
|
this.syncOpenEvent(e, t.event);
|
|
@@ -4979,7 +5206,7 @@ var _s = class {
|
|
|
4979
5206
|
};
|
|
4980
5207
|
//#endregion
|
|
4981
5208
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
|
|
4982
|
-
function
|
|
5209
|
+
function ks(e, t) {
|
|
4983
5210
|
let r = n.useRef(null), i = n.useRef(null);
|
|
4984
5211
|
return n.useCallback((n) => {
|
|
4985
5212
|
if (e !== void 0) {
|
|
@@ -4991,8 +5218,8 @@ function xs(e, t) {
|
|
|
4991
5218
|
}
|
|
4992
5219
|
}, [t, e]);
|
|
4993
5220
|
}
|
|
4994
|
-
function
|
|
4995
|
-
let i = n.useState("isMountedByTrigger", e), a =
|
|
5221
|
+
function As(e, t, n, r) {
|
|
5222
|
+
let i = n.useState("isMountedByTrigger", e), a = ks(e, n), o = F((t) => {
|
|
4996
5223
|
if (a(t), !t || !n.select("open")) return;
|
|
4997
5224
|
let i = n.select("activeTriggerId");
|
|
4998
5225
|
if (i === e) {
|
|
@@ -5023,7 +5250,7 @@ function Ss(e, t, n, r) {
|
|
|
5023
5250
|
isMountedByThisTrigger: i
|
|
5024
5251
|
};
|
|
5025
5252
|
}
|
|
5026
|
-
function
|
|
5253
|
+
function js(e) {
|
|
5027
5254
|
let t = e.useState("open");
|
|
5028
5255
|
B(() => {
|
|
5029
5256
|
if (t && !e.select("activeTriggerId") && e.context.triggerElements.size === 1) {
|
|
@@ -5038,8 +5265,8 @@ function Cs(e) {
|
|
|
5038
5265
|
}
|
|
5039
5266
|
}, [t, e]);
|
|
5040
5267
|
}
|
|
5041
|
-
function
|
|
5042
|
-
let { mounted: r, setMounted: i, transitionStatus: a } =
|
|
5268
|
+
function Ms(e, t, n) {
|
|
5269
|
+
let { mounted: r, setMounted: i, transitionStatus: a } = ua(e);
|
|
5043
5270
|
t.useSyncedValues({
|
|
5044
5271
|
mounted: r,
|
|
5045
5272
|
transitionStatus: a
|
|
@@ -5051,7 +5278,7 @@ function ws(e, t, n) {
|
|
|
5051
5278
|
mounted: !1
|
|
5052
5279
|
}), n?.(), t.context.onOpenChangeComplete?.(!1);
|
|
5053
5280
|
});
|
|
5054
|
-
return
|
|
5281
|
+
return la({
|
|
5055
5282
|
enabled: !t.useState("preventUnmountingOnClose"),
|
|
5056
5283
|
open: e,
|
|
5057
5284
|
ref: t.context.popupRef,
|
|
@@ -5065,7 +5292,7 @@ function ws(e, t, n) {
|
|
|
5065
5292
|
}
|
|
5066
5293
|
//#endregion
|
|
5067
5294
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js
|
|
5068
|
-
var
|
|
5295
|
+
var Ns = class {
|
|
5069
5296
|
constructor() {
|
|
5070
5297
|
this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
5071
5298
|
}
|
|
@@ -5099,13 +5326,13 @@ var Ts = class {
|
|
|
5099
5326
|
};
|
|
5100
5327
|
//#endregion
|
|
5101
5328
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js
|
|
5102
|
-
function
|
|
5103
|
-
return new
|
|
5329
|
+
function Ps() {
|
|
5330
|
+
return new Os({
|
|
5104
5331
|
open: !1,
|
|
5105
5332
|
transitionStatus: void 0,
|
|
5106
5333
|
floatingElement: null,
|
|
5107
5334
|
referenceElement: null,
|
|
5108
|
-
triggerElements: new
|
|
5335
|
+
triggerElements: new Ns(),
|
|
5109
5336
|
floatingId: "",
|
|
5110
5337
|
syncOnly: !1,
|
|
5111
5338
|
nested: !1,
|
|
@@ -5114,13 +5341,13 @@ function Es() {
|
|
|
5114
5341
|
}
|
|
5115
5342
|
//#endregion
|
|
5116
5343
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/store.js
|
|
5117
|
-
function
|
|
5344
|
+
function Fs() {
|
|
5118
5345
|
return {
|
|
5119
5346
|
open: !1,
|
|
5120
5347
|
openProp: void 0,
|
|
5121
5348
|
mounted: !1,
|
|
5122
5349
|
transitionStatus: void 0,
|
|
5123
|
-
floatingRootContext:
|
|
5350
|
+
floatingRootContext: Ps(),
|
|
5124
5351
|
preventUnmountingOnClose: !1,
|
|
5125
5352
|
payload: void 0,
|
|
5126
5353
|
activeTriggerId: null,
|
|
@@ -5128,23 +5355,23 @@ function Ds() {
|
|
|
5128
5355
|
triggerIdProp: void 0,
|
|
5129
5356
|
popupElement: null,
|
|
5130
5357
|
positionerElement: null,
|
|
5131
|
-
activeTriggerProps:
|
|
5132
|
-
inactiveTriggerProps:
|
|
5133
|
-
popupProps:
|
|
5358
|
+
activeTriggerProps: W,
|
|
5359
|
+
inactiveTriggerProps: W,
|
|
5360
|
+
popupProps: W
|
|
5134
5361
|
};
|
|
5135
5362
|
}
|
|
5136
|
-
var
|
|
5363
|
+
var Is = $((e) => e.triggerIdProp ?? e.activeTriggerId), Ls = {
|
|
5137
5364
|
open: $((e) => e.openProp ?? e.open),
|
|
5138
5365
|
mounted: $((e) => e.mounted),
|
|
5139
5366
|
transitionStatus: $((e) => e.transitionStatus),
|
|
5140
5367
|
floatingRootContext: $((e) => e.floatingRootContext),
|
|
5141
5368
|
preventUnmountingOnClose: $((e) => e.preventUnmountingOnClose),
|
|
5142
5369
|
payload: $((e) => e.payload),
|
|
5143
|
-
activeTriggerId:
|
|
5370
|
+
activeTriggerId: Is,
|
|
5144
5371
|
activeTriggerElement: $((e) => e.mounted ? e.activeTriggerElement : null),
|
|
5145
|
-
isTriggerActive: $((e, t) => t !== void 0 &&
|
|
5146
|
-
isOpenedByTrigger: $((e, t) => t !== void 0 &&
|
|
5147
|
-
isMountedByTrigger: $((e, t) => t !== void 0 &&
|
|
5372
|
+
isTriggerActive: $((e, t) => t !== void 0 && Is(e) === t),
|
|
5373
|
+
isOpenedByTrigger: $((e, t) => t !== void 0 && Is(e) === t && e.open),
|
|
5374
|
+
isMountedByTrigger: $((e, t) => t !== void 0 && Is(e) === t && e.mounted),
|
|
5148
5375
|
triggerProps: $((e, t) => t ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
5149
5376
|
popupProps: $((e) => e.popupProps),
|
|
5150
5377
|
popupElement: $((e) => e.popupElement),
|
|
@@ -5152,8 +5379,8 @@ var Os = $((e) => e.triggerIdProp ?? e.activeTriggerId), ks = {
|
|
|
5152
5379
|
};
|
|
5153
5380
|
//#endregion
|
|
5154
5381
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
|
|
5155
|
-
function
|
|
5156
|
-
let { popupStore: t, treatPopupAsFloatingElement: n = !1, onOpenChange: r } = e, i =
|
|
5382
|
+
function Rs(e) {
|
|
5383
|
+
let { popupStore: t, treatPopupAsFloatingElement: n = !1, onOpenChange: r } = e, i = Jn(), a = Bo() != null, o = t.useState("open"), s = t.useState("activeTriggerElement"), c = t.useState(n ? "popupElement" : "positionerElement"), l = t.context.triggerElements, u = P(() => new Os({
|
|
5157
5384
|
open: o,
|
|
5158
5385
|
transitionStatus: void 0,
|
|
5159
5386
|
referenceElement: s,
|
|
@@ -5182,8 +5409,8 @@ function As(e) {
|
|
|
5182
5409
|
}
|
|
5183
5410
|
//#endregion
|
|
5184
5411
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useInteractions.js
|
|
5185
|
-
function
|
|
5186
|
-
let t = e.map((e) => e?.reference), r = e.map((e) => e?.floating), i = e.map((e) => e?.item), a = e.map((e) => e?.trigger), o = n.useCallback((t) =>
|
|
5412
|
+
function zs(e = []) {
|
|
5413
|
+
let t = e.map((e) => e?.reference), r = e.map((e) => e?.floating), i = e.map((e) => e?.item), a = e.map((e) => e?.trigger), o = n.useCallback((t) => Bs(t, e, "reference"), t), s = n.useCallback((t) => Bs(t, e, "floating"), r), c = n.useCallback((t) => Bs(t, e, "item"), i), l = n.useCallback((t) => Bs(t, e, "trigger"), a);
|
|
5187
5414
|
return n.useMemo(() => ({
|
|
5188
5415
|
getReferenceProps: o,
|
|
5189
5416
|
getFloatingProps: s,
|
|
@@ -5196,17 +5423,17 @@ function js(e = []) {
|
|
|
5196
5423
|
l
|
|
5197
5424
|
]);
|
|
5198
5425
|
}
|
|
5199
|
-
function
|
|
5426
|
+
function Bs(e, t, n) {
|
|
5200
5427
|
let r = /* @__PURE__ */ new Map(), i = n === "item", a = {};
|
|
5201
|
-
n === "floating" && (a.tabIndex = -1, a[
|
|
5428
|
+
n === "floating" && (a.tabIndex = -1, a[fr] = "");
|
|
5202
5429
|
for (let t in e) i && e && (t === "active" || t === "selected") || (a[t] = e[t]);
|
|
5203
5430
|
for (let o = 0; o < t.length; o += 1) {
|
|
5204
5431
|
let s, c = t[o]?.[n];
|
|
5205
|
-
s = typeof c == "function" ? e ? c(e) : null : c, s &&
|
|
5432
|
+
s = typeof c == "function" ? e ? c(e) : null : c, s && Vs(a, s, i, r);
|
|
5206
5433
|
}
|
|
5207
|
-
return
|
|
5434
|
+
return Vs(a, e, i, r), a;
|
|
5208
5435
|
}
|
|
5209
|
-
function
|
|
5436
|
+
function Vs(e, t, n, r) {
|
|
5210
5437
|
for (let i in t) {
|
|
5211
5438
|
let a = t[i];
|
|
5212
5439
|
n && (i === "active" || i === "selected") || (i.startsWith("on") ? (r.has(i) || r.set(i, []), typeof a == "function" && (r.get(i)?.push(a), e[i] = (...e) => r.get(i)?.map((t) => t(...e)).find((e) => e !== void 0))) : e[i] = a);
|
|
@@ -5214,13 +5441,13 @@ function Ns(e, t, n, r) {
|
|
|
5214
5441
|
}
|
|
5215
5442
|
//#endregion
|
|
5216
5443
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.js
|
|
5217
|
-
var
|
|
5444
|
+
var Hs = /* @__PURE__ */ new Map([
|
|
5218
5445
|
["select", "listbox"],
|
|
5219
5446
|
["combobox", "listbox"],
|
|
5220
5447
|
["label", !1]
|
|
5221
5448
|
]);
|
|
5222
|
-
function
|
|
5223
|
-
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingId"), o = r.useState("domReferenceElement"), s = r.useState("floatingElement"), { role: c = "dialog" } = t, l =
|
|
5449
|
+
function Us(e, t = {}) {
|
|
5450
|
+
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingId"), o = r.useState("domReferenceElement"), s = r.useState("floatingElement"), { role: c = "dialog" } = t, l = Jn(), u = o?.id || l, d = n.useMemo(() => Dr(s)?.id || a, [s, a]), f = Hs.get(c) ?? c, p = Bo() != null, m = n.useMemo(() => f === "tooltip" || c === "label" ? W : {
|
|
5224
5451
|
"aria-haspopup": f === "alertdialog" ? "dialog" : f,
|
|
5225
5452
|
"aria-expanded": "false",
|
|
5226
5453
|
...f === "listbox" && { role: "combobox" },
|
|
@@ -5285,48 +5512,48 @@ function Fs(e, t = {}) {
|
|
|
5285
5512
|
}
|
|
5286
5513
|
//#endregion
|
|
5287
5514
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/composite/composite.js
|
|
5288
|
-
var
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5515
|
+
var Ws = "ArrowUp", Gs = "ArrowDown", Ks = "ArrowLeft", qs = "ArrowRight", Js = "Home", Ys = /* @__PURE__ */ new Set([Ks, qs]), Xs = /* @__PURE__ */ new Set([
|
|
5516
|
+
Ks,
|
|
5517
|
+
qs,
|
|
5518
|
+
Js,
|
|
5292
5519
|
"End"
|
|
5293
|
-
]),
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
|
|
5520
|
+
]), Zs = /* @__PURE__ */ new Set([Ws, Gs]), Qs = /* @__PURE__ */ new Set([
|
|
5521
|
+
Ws,
|
|
5522
|
+
Gs,
|
|
5523
|
+
Js,
|
|
5297
5524
|
"End"
|
|
5298
|
-
]),
|
|
5299
|
-
|
|
5300
|
-
|
|
5525
|
+
]), $s = /* @__PURE__ */ new Set([...Ys, ...Zs]), ec = /* @__PURE__ */ new Set([
|
|
5526
|
+
...$s,
|
|
5527
|
+
Js,
|
|
5301
5528
|
"End"
|
|
5302
|
-
]),
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5529
|
+
]), tc = /* @__PURE__ */ new Set([
|
|
5530
|
+
Ws,
|
|
5531
|
+
Gs,
|
|
5532
|
+
Ks,
|
|
5533
|
+
qs,
|
|
5534
|
+
Js,
|
|
5308
5535
|
"End"
|
|
5309
|
-
]),
|
|
5536
|
+
]), nc = /* @__PURE__ */ new Set([
|
|
5310
5537
|
"Shift",
|
|
5311
5538
|
"Control",
|
|
5312
5539
|
"Alt",
|
|
5313
5540
|
"Meta"
|
|
5314
5541
|
]);
|
|
5315
|
-
function
|
|
5542
|
+
function rc(e) {
|
|
5316
5543
|
return g(e) && e.tagName === "INPUT";
|
|
5317
5544
|
}
|
|
5318
|
-
function
|
|
5319
|
-
return !!(
|
|
5545
|
+
function ic(e) {
|
|
5546
|
+
return !!(rc(e) && e.selectionStart != null || g(e) && e.tagName === "TEXTAREA");
|
|
5320
5547
|
}
|
|
5321
|
-
function
|
|
5548
|
+
function ac(e, t, n, r) {
|
|
5322
5549
|
if (!e || !t || !t.scrollTo) return;
|
|
5323
5550
|
let i = e.scrollLeft, a = e.scrollTop, o = e.clientWidth < e.scrollWidth, s = e.clientHeight < e.scrollHeight;
|
|
5324
5551
|
if (o && r !== "vertical") {
|
|
5325
|
-
let r =
|
|
5552
|
+
let r = oc(e, t, "left"), a = sc(e), o = sc(t);
|
|
5326
5553
|
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.scrollMarginRight < 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));
|
|
5327
5554
|
}
|
|
5328
5555
|
if (s && r !== "horizontal") {
|
|
5329
|
-
let n =
|
|
5556
|
+
let n = oc(e, t, "top"), r = sc(e), i = sc(t);
|
|
5330
5557
|
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);
|
|
5331
5558
|
}
|
|
5332
5559
|
e.scrollTo({
|
|
@@ -5335,12 +5562,12 @@ function Zs(e, t, n, r) {
|
|
|
5335
5562
|
behavior: "auto"
|
|
5336
5563
|
});
|
|
5337
5564
|
}
|
|
5338
|
-
function
|
|
5565
|
+
function oc(e, t, n) {
|
|
5339
5566
|
let r = n === "left" ? "offsetLeft" : "offsetTop", i = 0;
|
|
5340
5567
|
for (; t.offsetParent && (i += t[r], t.offsetParent !== e);) t = t.offsetParent;
|
|
5341
5568
|
return i;
|
|
5342
5569
|
}
|
|
5343
|
-
function
|
|
5570
|
+
function sc(e) {
|
|
5344
5571
|
let t = getComputedStyle(e);
|
|
5345
5572
|
return {
|
|
5346
5573
|
scrollMarginTop: parseFloat(t.scrollMarginTop) || 0,
|
|
@@ -5355,12 +5582,12 @@ function $s(e) {
|
|
|
5355
5582
|
}
|
|
5356
5583
|
//#endregion
|
|
5357
5584
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/inertValue.js
|
|
5358
|
-
function
|
|
5359
|
-
return
|
|
5585
|
+
function cc(e) {
|
|
5586
|
+
return Pe(19) ? e : e ? "true" : void 0;
|
|
5360
5587
|
}
|
|
5361
5588
|
//#endregion
|
|
5362
5589
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
|
|
5363
|
-
var
|
|
5590
|
+
var lc = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
5364
5591
|
let { cutout: n, ...r } = e, i;
|
|
5365
5592
|
if (n) {
|
|
5366
5593
|
let e = n.getBoundingClientRect();
|
|
@@ -5380,26 +5607,26 @@ var tc = /*#__PURE__*/ n.forwardRef(function(e, t) {
|
|
|
5380
5607
|
}
|
|
5381
5608
|
});
|
|
5382
5609
|
});
|
|
5383
|
-
process.env.NODE_ENV !== "production" && (
|
|
5610
|
+
process.env.NODE_ENV !== "production" && (lc.displayName = "InternalBackdrop");
|
|
5384
5611
|
//#endregion
|
|
5385
5612
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useScrollLock.js
|
|
5386
|
-
var
|
|
5387
|
-
function
|
|
5613
|
+
var uc = {}, dc = {}, fc = "";
|
|
5614
|
+
function pc(e) {
|
|
5388
5615
|
if (typeof document > "u") return !1;
|
|
5389
|
-
let t =
|
|
5616
|
+
let t = Y(e);
|
|
5390
5617
|
return f(t).innerWidth - t.documentElement.clientWidth > 0;
|
|
5391
5618
|
}
|
|
5392
|
-
function
|
|
5619
|
+
function mc(e) {
|
|
5393
5620
|
if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u") return !1;
|
|
5394
|
-
let t =
|
|
5621
|
+
let t = Y(e), n = t.documentElement, r = t.body, i = v(n) ? n : r, a = i.style.overflowY, o = n.style.scrollbarGutter;
|
|
5395
5622
|
n.style.scrollbarGutter = "stable", i.style.overflowY = "scroll";
|
|
5396
5623
|
let s = i.offsetWidth;
|
|
5397
5624
|
i.style.overflowY = "hidden";
|
|
5398
5625
|
let c = i.offsetWidth;
|
|
5399
5626
|
return i.style.overflowY = a, n.style.scrollbarGutter = o, s === c;
|
|
5400
5627
|
}
|
|
5401
|
-
function
|
|
5402
|
-
let t =
|
|
5628
|
+
function hc(e) {
|
|
5629
|
+
let t = Y(e), n = t.documentElement, r = t.body, i = v(n) ? n : r, a = {
|
|
5403
5630
|
overflowY: i.style.overflowY,
|
|
5404
5631
|
overflowX: i.style.overflowX
|
|
5405
5632
|
};
|
|
@@ -5410,16 +5637,16 @@ function sc(e) {
|
|
|
5410
5637
|
Object.assign(i.style, a);
|
|
5411
5638
|
};
|
|
5412
5639
|
}
|
|
5413
|
-
function
|
|
5414
|
-
let t =
|
|
5415
|
-
if (
|
|
5640
|
+
function gc(e) {
|
|
5641
|
+
let t = Y(e), n = t.documentElement, r = t.body, i = f(n), a = 0, o = 0, s = !1, c = ta.create();
|
|
5642
|
+
if (rr && (i.visualViewport?.scale ?? 1) !== 1) return () => {};
|
|
5416
5643
|
function l() {
|
|
5417
5644
|
let t = i.getComputedStyle(n), c = i.getComputedStyle(r), l = (t.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
|
|
5418
|
-
a = n.scrollTop, o = n.scrollLeft,
|
|
5645
|
+
a = n.scrollTop, o = n.scrollLeft, uc = {
|
|
5419
5646
|
scrollbarGutter: n.style.scrollbarGutter,
|
|
5420
5647
|
overflowY: n.style.overflowY,
|
|
5421
5648
|
overflowX: n.style.overflowX
|
|
5422
|
-
},
|
|
5649
|
+
}, fc = n.style.scrollBehavior, dc = {
|
|
5423
5650
|
position: r.style.position,
|
|
5424
5651
|
height: r.style.height,
|
|
5425
5652
|
width: r.style.width,
|
|
@@ -5429,7 +5656,7 @@ function cc(e) {
|
|
|
5429
5656
|
scrollBehavior: r.style.scrollBehavior
|
|
5430
5657
|
};
|
|
5431
5658
|
let u = n.scrollHeight > n.clientHeight, d = n.scrollWidth > n.clientWidth, f = t.overflowY === "scroll" || c.overflowY === "scroll", p = t.overflowX === "scroll" || c.overflowX === "scroll", m = Math.max(0, i.innerWidth - r.clientWidth), h = Math.max(0, i.innerHeight - r.clientHeight), g = parseFloat(c.marginTop) + parseFloat(c.marginBottom), _ = parseFloat(c.marginLeft) + parseFloat(c.marginRight), y = v(n) ? n : r;
|
|
5432
|
-
if (s =
|
|
5659
|
+
if (s = mc(e), s) {
|
|
5433
5660
|
n.style.scrollbarGutter = l, y.style.overflowY = "hidden", y.style.overflowX = "hidden";
|
|
5434
5661
|
return;
|
|
5435
5662
|
}
|
|
@@ -5447,7 +5674,7 @@ function cc(e) {
|
|
|
5447
5674
|
}), r.scrollTop = a, r.scrollLeft = o, n.setAttribute("data-base-ui-scroll-locked", ""), n.style.scrollBehavior = "unset";
|
|
5448
5675
|
}
|
|
5449
5676
|
function u() {
|
|
5450
|
-
Object.assign(n.style,
|
|
5677
|
+
Object.assign(n.style, uc), Object.assign(r.style, dc), s || (n.scrollTop = a, n.scrollLeft = o, n.removeAttribute("data-base-ui-scroll-locked"), n.style.scrollBehavior = fc);
|
|
5451
5678
|
}
|
|
5452
5679
|
function d() {
|
|
5453
5680
|
u(), c.request(l);
|
|
@@ -5458,11 +5685,11 @@ function cc(e) {
|
|
|
5458
5685
|
c.cancel(), u(), typeof i.removeEventListener == "function" && p();
|
|
5459
5686
|
};
|
|
5460
5687
|
}
|
|
5461
|
-
var
|
|
5688
|
+
var _c = new class {
|
|
5462
5689
|
lockCount = 0;
|
|
5463
5690
|
restore = null;
|
|
5464
|
-
timeoutLock =
|
|
5465
|
-
timeoutUnlock =
|
|
5691
|
+
timeoutLock = Xi.create();
|
|
5692
|
+
timeoutUnlock = Xi.create();
|
|
5466
5693
|
acquire(e) {
|
|
5467
5694
|
return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
|
|
5468
5695
|
}
|
|
@@ -5474,29 +5701,29 @@ var lc = new class {
|
|
|
5474
5701
|
};
|
|
5475
5702
|
lock(e) {
|
|
5476
5703
|
if (this.lockCount === 0 || this.restore !== null) return;
|
|
5477
|
-
let t =
|
|
5704
|
+
let t = Y(e).documentElement, n = f(t).getComputedStyle(t).overflowY;
|
|
5478
5705
|
if (n === "hidden" || n === "clip") {
|
|
5479
|
-
this.restore =
|
|
5706
|
+
this.restore = U;
|
|
5480
5707
|
return;
|
|
5481
5708
|
}
|
|
5482
|
-
let r =
|
|
5483
|
-
this.restore = r ?
|
|
5709
|
+
let r = ir || !pc(e);
|
|
5710
|
+
this.restore = r ? hc(e) : gc(e);
|
|
5484
5711
|
}
|
|
5485
5712
|
}();
|
|
5486
|
-
function
|
|
5713
|
+
function vc(e = !0, t = null) {
|
|
5487
5714
|
B(() => {
|
|
5488
|
-
if (e) return
|
|
5715
|
+
if (e) return _c.acquire(t);
|
|
5489
5716
|
}, [e, t]);
|
|
5490
5717
|
}
|
|
5491
5718
|
//#endregion
|
|
5492
5719
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useOnFirstRender.js
|
|
5493
|
-
function
|
|
5720
|
+
function yc(e) {
|
|
5494
5721
|
let t = n.useRef(!0);
|
|
5495
5722
|
t.current && (t.current = !1, e());
|
|
5496
5723
|
}
|
|
5497
5724
|
//#endregion
|
|
5498
5725
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
|
|
5499
|
-
function
|
|
5726
|
+
function bc(e) {
|
|
5500
5727
|
let t = n.useRef(""), r = n.useCallback((n) => {
|
|
5501
5728
|
n.defaultPrevented || (t.current = n.pointerType, e(n, n.pointerType));
|
|
5502
5729
|
}, [e]);
|
|
@@ -5513,7 +5740,7 @@ function fc(e) {
|
|
|
5513
5740
|
}
|
|
5514
5741
|
//#endregion
|
|
5515
5742
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/internals/useValueChanged.js
|
|
5516
|
-
function
|
|
5743
|
+
function xc(e, t) {
|
|
5517
5744
|
let r = n.useRef(e), i = F(t);
|
|
5518
5745
|
B(() => {
|
|
5519
5746
|
r.current !== e && i(r.current);
|
|
@@ -5523,14 +5750,14 @@ function pc(e, t) {
|
|
|
5523
5750
|
}
|
|
5524
5751
|
//#endregion
|
|
5525
5752
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/useOpenInteractionType.js
|
|
5526
|
-
function
|
|
5753
|
+
function Sc(e) {
|
|
5527
5754
|
let [t, r] = n.useState(null), i = F((t, n) => {
|
|
5528
|
-
e || r(n || (
|
|
5755
|
+
e || r(n || (ir ? "touch" : ""));
|
|
5529
5756
|
});
|
|
5530
|
-
|
|
5757
|
+
xc(e, (t) => {
|
|
5531
5758
|
t && !e && r(null);
|
|
5532
5759
|
});
|
|
5533
|
-
let { onClick: a, onPointerDown: o } =
|
|
5760
|
+
let { onClick: a, onPointerDown: o } = bc(i);
|
|
5534
5761
|
return n.useMemo(() => ({
|
|
5535
5762
|
openMethod: t,
|
|
5536
5763
|
triggerProps: {
|
|
@@ -5544,4 +5771,4 @@ function mc(e) {
|
|
|
5544
5771
|
]);
|
|
5545
5772
|
}
|
|
5546
5773
|
//#endregion
|
|
5547
|
-
export {
|
|
5774
|
+
export { Oo as $, Jn as $n, _i as $t, As as A, Nr as An, ee as Ar, va as At, $ as B, X as Bn, g as Br, ca as Bt, zs as C, Lr as Cn, V as Cr, Ea as Ct, Ns as D, Fr as Dn, F as Dr, ya as Dt, Ls as E, Ir as En, z as Er, Da as Et, xs as F, br as Fn, j as Fr, Oa as Ft, Ho as G, gr as Gn, E as Gr, Zi as Gt, $o as H, _r as Hn, v as Hr, sa as Ht, _s as I, Tr as In, k as Ir, pa as It, Lo as J, rr as Jn, Hi as Jt, Bo as K, sr as Kn, Ji as Kt, vs as L, Cr as Ln, f as Lr, da as Lt, Os as M, Or as Mn, M as Mr, _a as Mt, Es as N, Dr as Nn, d as Nr, ga as Nt, js as O, Pr as On, P as Or, Ca as Ot, Ts as P, wr as Pn, te as Pr, ha as Pt, Eo as Q, Yn as Qn, mi as Qt, us as R, Er as Rn, T as Rr, ua as Rt, Us as S, Rr as Sn, be as Sr, ba as St, Fs as T, zr as Tn, ie as Tr, xa as Tt, Uo as U, mr as Un, y as Ur, na as Ut, rs as V, yr as Vn, D as Vr, ia as Vt, Wo as W, hr as Wn, b as Wr, Xi as Wt, Po as X, Qn as Xn, Wi as Xt, Fo as Y, Y as Yn, Ui as Yt, Do as Z, Zn, gi as Zt, nc as _, ai as _n, Le as _r, Ra as _t, lc as a, di as an, Mn as ar, co as at, ic as b, Gr as bn, xe as br, ka as bt, Gs as c, Vr as cn, An as cr, Q as ct, qs as d, Kr as dn, nt as dr, no as dt, vi as en, Wn as er, ko as et, Ws as f, Xr as fn, $e as fr, to as ft, Xs as g, qr as gn, U as gr, za as gt, Ys as h, Qr as hn, W as hr, Wa as ht, vc as i, xi as in, Ln as ir, so as it, ks as j, Ar as jn, p as jr, Ta as jt, Ms as k, Mr as kn, O as kr, ma as kt, $s as l, Wr as ln, kn as lr, qa as lt, Js as m, Jr as mn, Re as mr, Ka as mt, xc as n, pi as nn, Pn as nr, uo as nt, cc as o, yi as on, Fn as or, io as ot, tc as p, Zr as pn, He as pr, eo as pt, Vo as q, ar as qn, zi as qt, yc as r, fi as rn, In as rr, lo as rt, ec as s, Ur as sn, jn as sr, ro as st, Sc as t, hi as tn, Hn as tr, po as tt, Ks as u, Br as un, On as ur, Ja as ut, Zs as v, oi as vn, De as vr, La as vt, Rs as w, li as wn, B as wr, Sa as wt, ac as x, Yr as xn, Se as xr, wa as xt, Qs as y, ci as yn, we as yr, Ma as yt, is as z, vr as zn, h as zr, la as zt };
|