teodor-new-chat-ui 4.3.84 → 4.3.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +383 -386
- package/dist/index.umd.js +17 -17
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -136,14 +136,14 @@ function ug() {
|
|
|
136
136
|
}
|
|
137
137
|
return null;
|
|
138
138
|
}
|
|
139
|
-
var _ = Object.assign, D = 0, L, ne, K, z,
|
|
139
|
+
var _ = Object.assign, D = 0, L, ne, K, z, fe, W, ce;
|
|
140
140
|
function B() {
|
|
141
141
|
}
|
|
142
142
|
B.__reactDisabledLog = !0;
|
|
143
143
|
function Z() {
|
|
144
144
|
{
|
|
145
145
|
if (D === 0) {
|
|
146
|
-
L = console.log, ne = console.info, K = console.warn, z = console.error,
|
|
146
|
+
L = console.log, ne = console.info, K = console.warn, z = console.error, fe = console.group, W = console.groupCollapsed, ce = console.groupEnd;
|
|
147
147
|
var R = {
|
|
148
148
|
configurable: !0,
|
|
149
149
|
enumerable: !0,
|
|
@@ -185,7 +185,7 @@ function ug() {
|
|
|
185
185
|
value: z
|
|
186
186
|
}),
|
|
187
187
|
group: _({}, R, {
|
|
188
|
-
value:
|
|
188
|
+
value: fe
|
|
189
189
|
}),
|
|
190
190
|
groupCollapsed: _({}, R, {
|
|
191
191
|
value: W
|
|
@@ -267,18 +267,18 @@ function ug() {
|
|
|
267
267
|
if (kt && Ce && typeof kt.stack == "string") {
|
|
268
268
|
for (var $ = kt.stack.split(`
|
|
269
269
|
`), ue = Ce.stack.split(`
|
|
270
|
-
`),
|
|
271
|
-
|
|
272
|
-
for (;
|
|
273
|
-
if ($[
|
|
274
|
-
if (
|
|
270
|
+
`), he = $.length - 1, _e = ue.length - 1; he >= 1 && _e >= 0 && $[he] !== ue[_e]; )
|
|
271
|
+
_e--;
|
|
272
|
+
for (; he >= 1 && _e >= 0; he--, _e--)
|
|
273
|
+
if ($[he] !== ue[_e]) {
|
|
274
|
+
if (he !== 1 || _e !== 1)
|
|
275
275
|
do
|
|
276
|
-
if (
|
|
276
|
+
if (he--, _e--, _e < 0 || $[he] !== ue[_e]) {
|
|
277
277
|
var ot = `
|
|
278
|
-
` + $[
|
|
278
|
+
` + $[he].replace(" at new ", " at ");
|
|
279
279
|
return R.displayName && ot.includes("<anonymous>") && (ot = ot.replace("<anonymous>", R.displayName)), typeof R == "function" && oe.set(R, ot), ot;
|
|
280
280
|
}
|
|
281
|
-
while (
|
|
281
|
+
while (he >= 1 && _e >= 0);
|
|
282
282
|
break;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
@@ -344,8 +344,8 @@ function ug() {
|
|
|
344
344
|
throw ue.name = "Invariant Violation", ue;
|
|
345
345
|
}
|
|
346
346
|
$ = R[Fe](H, Fe, Ce, le, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
347
|
-
} catch (
|
|
348
|
-
$ =
|
|
347
|
+
} catch (he) {
|
|
348
|
+
$ = he;
|
|
349
349
|
}
|
|
350
350
|
$ && !($ instanceof Error) && (nt(Ge), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Ce || "React class", le, Fe, typeof $), nt(null)), $ instanceof Error && !($.message in at) && (at[$.message] = !0, nt(Ge), w("Failed %s type: %s", le, $.message), nt(null));
|
|
351
351
|
}
|
|
@@ -375,7 +375,7 @@ function ug() {
|
|
|
375
375
|
if (ft(R))
|
|
376
376
|
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", vt(R)), Ze(R);
|
|
377
377
|
}
|
|
378
|
-
var
|
|
378
|
+
var Ne = x.ReactCurrentOwner, ke = {
|
|
379
379
|
key: !0,
|
|
380
380
|
ref: !0,
|
|
381
381
|
__self: !0,
|
|
@@ -398,7 +398,7 @@ function ug() {
|
|
|
398
398
|
return R.key !== void 0;
|
|
399
399
|
}
|
|
400
400
|
function Et(R, H) {
|
|
401
|
-
typeof R.ref == "string" &&
|
|
401
|
+
typeof R.ref == "string" && Ne.current;
|
|
402
402
|
}
|
|
403
403
|
function Tt(R, H) {
|
|
404
404
|
{
|
|
@@ -458,15 +458,15 @@ function ug() {
|
|
|
458
458
|
for (ze in H)
|
|
459
459
|
st.call(H, ze) && !ke.hasOwnProperty(ze) && (Fe[ze] = H[ze]);
|
|
460
460
|
if (R && R.defaultProps) {
|
|
461
|
-
var
|
|
462
|
-
for (ze in
|
|
463
|
-
Fe[ze] === void 0 && (Fe[ze] =
|
|
461
|
+
var he = R.defaultProps;
|
|
462
|
+
for (ze in he)
|
|
463
|
+
Fe[ze] === void 0 && (Fe[ze] = he[ze]);
|
|
464
464
|
}
|
|
465
465
|
if ($ || ue) {
|
|
466
|
-
var
|
|
467
|
-
$ && Tt(Fe,
|
|
466
|
+
var _e = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
|
|
467
|
+
$ && Tt(Fe, _e), ue && qt(Fe, _e);
|
|
468
468
|
}
|
|
469
|
-
return It(R, $, ue, Ge, Ce,
|
|
469
|
+
return It(R, $, ue, Ge, Ce, Ne.current, Fe);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Gt = x.ReactCurrentOwner, dn = x.ReactDebugCurrentFrame;
|
|
@@ -588,12 +588,12 @@ Check the top-level render call using <` + le + ">.");
|
|
|
588
588
|
(R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && ($ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
589
589
|
var ue = xt();
|
|
590
590
|
ue ? $ += ue : $ += fn();
|
|
591
|
-
var
|
|
592
|
-
R === null ?
|
|
591
|
+
var he;
|
|
592
|
+
R === null ? he = "null" : ut(R) ? he = "array" : R !== void 0 && R.$$typeof === t ? (he = "<" + (j(R.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : he = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", he, $);
|
|
593
593
|
}
|
|
594
|
-
var
|
|
595
|
-
if (
|
|
596
|
-
return
|
|
594
|
+
var _e = qn(R, H, le, Ge, ze);
|
|
595
|
+
if (_e == null)
|
|
596
|
+
return _e;
|
|
597
597
|
if (Fe) {
|
|
598
598
|
var ot = H.children;
|
|
599
599
|
if (ot !== void 0)
|
|
@@ -621,7 +621,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
621
621
|
<%s key={someKey} {...props} />`, Xr, nn, E, nn), pn[nn + Xr] = !0;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
return R === r ? kn(
|
|
624
|
+
return R === r ? kn(_e) : lr(_e), _e;
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
function cr(R, H, le) {
|
|
@@ -1919,10 +1919,10 @@ const Uu = (e) => {
|
|
|
1919
1919
|
);
|
|
1920
1920
|
}
|
|
1921
1921
|
k = k || "text";
|
|
1922
|
-
let
|
|
1922
|
+
let fe = await f[P.findKey(f, k) || "text"](K, m);
|
|
1923
1923
|
return !z && _ && _(), await new Promise((W, ce) => {
|
|
1924
1924
|
Bu(W, ce, {
|
|
1925
|
-
data:
|
|
1925
|
+
data: fe,
|
|
1926
1926
|
headers: Vt.from(K.headers),
|
|
1927
1927
|
status: K.status,
|
|
1928
1928
|
statusText: K.statusText,
|
|
@@ -3318,7 +3318,7 @@ function vy(e = {}) {
|
|
|
3318
3318
|
threadId: F.threadId ?? null,
|
|
3319
3319
|
headers: {}
|
|
3320
3320
|
}, (async () => {
|
|
3321
|
-
var L, ne, K, z,
|
|
3321
|
+
var L, ne, K, z, fe, W, ce, B, Z;
|
|
3322
3322
|
const D = (we) => {
|
|
3323
3323
|
var xe;
|
|
3324
3324
|
try {
|
|
@@ -3413,16 +3413,16 @@ function vy(e = {}) {
|
|
|
3413
3413
|
for (S.current && !S.current.threadId && (S.current = {
|
|
3414
3414
|
...S.current,
|
|
3415
3415
|
threadId: vt
|
|
3416
|
-
}), (
|
|
3416
|
+
}), (fe = j == null ? void 0 : j.onOpen) == null || fe.call(j, { threadId: vt, created: ft }); ; ) {
|
|
3417
3417
|
const { value: Ze, done: ie } = await oe.read();
|
|
3418
3418
|
if (ie) break;
|
|
3419
3419
|
se += ge.decode(Ze, { stream: !0 }), se.length > Me && (se = "", console.warn("Stream buffer reset: exceeded 1MB"));
|
|
3420
|
-
let
|
|
3421
|
-
for (; (
|
|
3420
|
+
let Ne;
|
|
3421
|
+
for (; (Ne = se.indexOf(`
|
|
3422
3422
|
|
|
3423
3423
|
`)) >= 0; ) {
|
|
3424
|
-
const ke = se.slice(0,
|
|
3425
|
-
se = se.slice(
|
|
3424
|
+
const ke = se.slice(0, Ne);
|
|
3425
|
+
se = se.slice(Ne + 2);
|
|
3426
3426
|
const qe = by(ke);
|
|
3427
3427
|
if (!qe) continue;
|
|
3428
3428
|
let rt;
|
|
@@ -3889,7 +3889,7 @@ function By({
|
|
|
3889
3889
|
ki(f, (I = l.getAuthToken) == null ? void 0 : I.call(l))
|
|
3890
3890
|
);
|
|
3891
3891
|
return zo(E);
|
|
3892
|
-
}), C = it(() => Ei(b), [b]), [S, k] = ye(t), [A, N] = ye(!1), [M, F] = ye(!1), [q, j] = ye(null), [_, D] = ye(null), [L, ne] = ye(null), [K, z] = ye([]),
|
|
3892
|
+
}), C = it(() => Ei(b), [b]), [S, k] = ye(t), [A, N] = ye(!1), [M, F] = ye(!1), [q, j] = ye(null), [_, D] = ye(null), [L, ne] = ye(null), [K, z] = ye([]), fe = Te(() => {
|
|
3893
3893
|
const E = Ri(x);
|
|
3894
3894
|
Lo(() => {
|
|
3895
3895
|
T(zo(E));
|
|
@@ -3906,7 +3906,7 @@ function By({
|
|
|
3906
3906
|
dt(() => {
|
|
3907
3907
|
Me.current = S;
|
|
3908
3908
|
}, [S]);
|
|
3909
|
-
const We = Le(!1), ut = Le([]), vt = Le(null), ft = Le(null), Ze = Le(/* @__PURE__ */ new Map()), ie = Le(S),
|
|
3909
|
+
const We = Le(!1), ut = Le([]), vt = Le(null), ft = Le(null), Ze = Le(/* @__PURE__ */ new Map()), ie = Le(S), Ne = Le(!1), ke = Le(null), qe = Le(/* @__PURE__ */ new Map()), rt = Le(/* @__PURE__ */ new Map()), Pe = Le(/* @__PURE__ */ new Map()), Xe = Le(/* @__PURE__ */ new Map()), Et = Te(
|
|
3910
3910
|
(E) => {
|
|
3911
3911
|
if (!E) {
|
|
3912
3912
|
z([]);
|
|
@@ -4240,11 +4240,11 @@ function By({
|
|
|
4240
4240
|
H(E);
|
|
4241
4241
|
const I = (ae) => {
|
|
4242
4242
|
const Q = ki(f, ae);
|
|
4243
|
-
ke.current !== Q && (ke.current = Q,
|
|
4243
|
+
ke.current !== Q && (ke.current = Q, Ne.current = !1), w(Q);
|
|
4244
4244
|
const Be = Ri(Q);
|
|
4245
4245
|
Lo(() => {
|
|
4246
4246
|
T(zo(Be));
|
|
4247
|
-
}), ae && !
|
|
4247
|
+
}), ae && !Ne.current && (Ne.current = !0);
|
|
4248
4248
|
};
|
|
4249
4249
|
I(E);
|
|
4250
4250
|
const Y = (ee = l.onTokenChange) == null ? void 0 : ee.call(l, (ae) => {
|
|
@@ -4402,7 +4402,7 @@ function By({
|
|
|
4402
4402
|
), ue = Te(async () => {
|
|
4403
4403
|
if (!Me.current) throw new Error("No active thread");
|
|
4404
4404
|
await ze(Me.current, void 0, void 0, !0);
|
|
4405
|
-
}, [ze]),
|
|
4405
|
+
}, [ze]), he = Te(
|
|
4406
4406
|
async () => {
|
|
4407
4407
|
if (!Me.current) throw new Error("No active thread");
|
|
4408
4408
|
if (B || !W) return;
|
|
@@ -4445,7 +4445,7 @@ function By({
|
|
|
4445
4445
|
qt,
|
|
4446
4446
|
It
|
|
4447
4447
|
]
|
|
4448
|
-
),
|
|
4448
|
+
), _e = Te(
|
|
4449
4449
|
(E) => {
|
|
4450
4450
|
if (E != null && E.threadId) {
|
|
4451
4451
|
if (E.checkpointId) {
|
|
@@ -4629,7 +4629,7 @@ function By({
|
|
|
4629
4629
|
refreshThreads: () => Mt()
|
|
4630
4630
|
},
|
|
4631
4631
|
persistThreadsCache: ar,
|
|
4632
|
-
hydrateFromCache:
|
|
4632
|
+
hydrateFromCache: fe
|
|
4633
4633
|
}),
|
|
4634
4634
|
[
|
|
4635
4635
|
C,
|
|
@@ -4641,7 +4641,7 @@ function By({
|
|
|
4641
4641
|
Ge,
|
|
4642
4642
|
Mt,
|
|
4643
4643
|
ar,
|
|
4644
|
-
|
|
4644
|
+
fe,
|
|
4645
4645
|
k
|
|
4646
4646
|
]
|
|
4647
4647
|
), kt = it(() => {
|
|
@@ -4664,8 +4664,8 @@ function By({
|
|
|
4664
4664
|
isHistoryLoading: B,
|
|
4665
4665
|
error: _,
|
|
4666
4666
|
hasMore: W,
|
|
4667
|
-
loadOlder:
|
|
4668
|
-
seedFromSnapshot:
|
|
4667
|
+
loadOlder: he,
|
|
4668
|
+
seedFromSnapshot: _e,
|
|
4669
4669
|
clearState: pn,
|
|
4670
4670
|
navigateToCheckpoint: $,
|
|
4671
4671
|
returnToLatest: ue,
|
|
@@ -4681,7 +4681,7 @@ function By({
|
|
|
4681
4681
|
W,
|
|
4682
4682
|
B,
|
|
4683
4683
|
M,
|
|
4684
|
-
|
|
4684
|
+
he,
|
|
4685
4685
|
ze,
|
|
4686
4686
|
re.assemblingId,
|
|
4687
4687
|
re.lastBranch,
|
|
@@ -4691,7 +4691,7 @@ function By({
|
|
|
4691
4691
|
$,
|
|
4692
4692
|
Dt,
|
|
4693
4693
|
ue,
|
|
4694
|
-
|
|
4694
|
+
_e,
|
|
4695
4695
|
_,
|
|
4696
4696
|
K
|
|
4697
4697
|
]), Xr = it(
|
|
@@ -4848,7 +4848,7 @@ function Wy({
|
|
|
4848
4848
|
id: ne,
|
|
4849
4849
|
shouldClear: !0
|
|
4850
4850
|
}, b(() => {
|
|
4851
|
-
var K, z,
|
|
4851
|
+
var K, z, fe;
|
|
4852
4852
|
try {
|
|
4853
4853
|
const W = l(L);
|
|
4854
4854
|
W && typeof W.then == "function" ? W.then(() => {
|
|
@@ -4859,7 +4859,7 @@ function Wy({
|
|
|
4859
4859
|
((ce = S.current) == null ? void 0 : ce.id) === ne && (S.current = null);
|
|
4860
4860
|
}) : (((K = S.current) == null ? void 0 : K.id) === ne && S.current.shouldClear && (m || (v(""), T.current && (T.current.style.height = "auto"), a == null || a(""))), ((z = S.current) == null ? void 0 : z.id) === ne && (S.current = null));
|
|
4861
4861
|
} catch {
|
|
4862
|
-
((
|
|
4862
|
+
((fe = S.current) == null ? void 0 : fe.id) === ne && (S.current = null);
|
|
4863
4863
|
}
|
|
4864
4864
|
});
|
|
4865
4865
|
},
|
|
@@ -4990,12 +4990,12 @@ function ht(e = ud) {
|
|
|
4990
4990
|
e(t, r) || (t = r, n(r));
|
|
4991
4991
|
};
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function Ee(e) {
|
|
4994
4994
|
return (t) => (n) => {
|
|
4995
4995
|
e(n) && t(n);
|
|
4996
4996
|
};
|
|
4997
4997
|
}
|
|
4998
|
-
function
|
|
4998
|
+
function de(e) {
|
|
4999
4999
|
return (t) => cd(t, e);
|
|
5000
5000
|
}
|
|
5001
5001
|
function _n(e) {
|
|
@@ -5148,7 +5148,7 @@ function Ct(...e) {
|
|
|
5148
5148
|
}
|
|
5149
5149
|
};
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5151
|
+
function Re(e, t = ud) {
|
|
5152
5152
|
return V(e, ht(t));
|
|
5153
5153
|
}
|
|
5154
5154
|
function la(...e) {
|
|
@@ -5301,13 +5301,13 @@ const Bt = Je(
|
|
|
5301
5301
|
return ve(
|
|
5302
5302
|
V(
|
|
5303
5303
|
e,
|
|
5304
|
-
|
|
5304
|
+
de(({ scrollTop: v }) => v)
|
|
5305
5305
|
),
|
|
5306
5306
|
t
|
|
5307
5307
|
), ve(
|
|
5308
5308
|
V(
|
|
5309
5309
|
e,
|
|
5310
|
-
|
|
5310
|
+
de(({ scrollHeight: v }) => v)
|
|
5311
5311
|
),
|
|
5312
5312
|
i
|
|
5313
5313
|
), ve(t, o), {
|
|
@@ -5656,16 +5656,16 @@ const mv = {
|
|
|
5656
5656
|
current: [],
|
|
5657
5657
|
prev: []
|
|
5658
5658
|
}),
|
|
5659
|
-
|
|
5659
|
+
de(({ prev: C }) => C)
|
|
5660
5660
|
),
|
|
5661
5661
|
[]
|
|
5662
5662
|
);
|
|
5663
5663
|
ve(
|
|
5664
5664
|
V(
|
|
5665
5665
|
l,
|
|
5666
|
-
|
|
5666
|
+
Ee((C) => C.length > 0),
|
|
5667
5667
|
$e(y, p),
|
|
5668
|
-
|
|
5668
|
+
de(([C, S, k]) => {
|
|
5669
5669
|
const A = C.reduce((N, M, F) => Jt(N, M, yo(M, S.offsetTree, k) || F), Mr());
|
|
5670
5670
|
return {
|
|
5671
5671
|
...S,
|
|
@@ -5679,8 +5679,8 @@ const mv = {
|
|
|
5679
5679
|
V(
|
|
5680
5680
|
r,
|
|
5681
5681
|
$e(y),
|
|
5682
|
-
|
|
5683
|
-
|
|
5682
|
+
Ee(([C, { lastIndex: S }]) => C < S),
|
|
5683
|
+
de(([C, { lastIndex: S, lastSize: k }]) => [
|
|
5684
5684
|
{
|
|
5685
5685
|
endIndex: S,
|
|
5686
5686
|
size: k,
|
|
@@ -5693,15 +5693,15 @@ const mv = {
|
|
|
5693
5693
|
const x = zt(
|
|
5694
5694
|
V(
|
|
5695
5695
|
c,
|
|
5696
|
-
|
|
5696
|
+
de((C) => C === void 0)
|
|
5697
5697
|
),
|
|
5698
5698
|
!0
|
|
5699
5699
|
);
|
|
5700
5700
|
ve(
|
|
5701
5701
|
V(
|
|
5702
5702
|
d,
|
|
5703
|
-
|
|
5704
|
-
|
|
5703
|
+
Ee((C) => C !== void 0 && lt(bt(y).sizeTree)),
|
|
5704
|
+
de((C) => [{ endIndex: 0, size: C, startIndex: 0 }])
|
|
5705
5705
|
),
|
|
5706
5706
|
n
|
|
5707
5707
|
);
|
|
@@ -5716,7 +5716,7 @@ const mv = {
|
|
|
5716
5716
|
}),
|
|
5717
5717
|
{ changed: !1, sizes: m }
|
|
5718
5718
|
),
|
|
5719
|
-
|
|
5719
|
+
de((C) => C.changed)
|
|
5720
5720
|
)
|
|
5721
5721
|
);
|
|
5722
5722
|
tt(
|
|
@@ -5726,7 +5726,7 @@ const mv = {
|
|
|
5726
5726
|
(C, S) => ({ diff: C.prev - S, prev: S }),
|
|
5727
5727
|
{ diff: 0, prev: 0 }
|
|
5728
5728
|
),
|
|
5729
|
-
|
|
5729
|
+
de((C) => C.diff)
|
|
5730
5730
|
),
|
|
5731
5731
|
(C) => {
|
|
5732
5732
|
const { groupIndices: S } = bt(y);
|
|
@@ -5749,7 +5749,7 @@ const mv = {
|
|
|
5749
5749
|
V(
|
|
5750
5750
|
s,
|
|
5751
5751
|
$e(y),
|
|
5752
|
-
|
|
5752
|
+
de(([C, S]) => {
|
|
5753
5753
|
const k = S.groupIndices.length > 0, A = [], N = S.lastSize;
|
|
5754
5754
|
if (k) {
|
|
5755
5755
|
const M = go(S.sizeTree, 0);
|
|
@@ -5810,7 +5810,7 @@ const mv = {
|
|
|
5810
5810
|
V(
|
|
5811
5811
|
i,
|
|
5812
5812
|
$e(y, p),
|
|
5813
|
-
|
|
5813
|
+
de(([C, { offsetTree: S }, k]) => {
|
|
5814
5814
|
const A = -C;
|
|
5815
5815
|
return yo(A, S, k);
|
|
5816
5816
|
})
|
|
@@ -5820,7 +5820,7 @@ const mv = {
|
|
|
5820
5820
|
V(
|
|
5821
5821
|
i,
|
|
5822
5822
|
$e(y, p),
|
|
5823
|
-
|
|
5823
|
+
de(([C, S, k]) => {
|
|
5824
5824
|
if (S.groupIndices.length > 0) {
|
|
5825
5825
|
if (lt(S.sizeTree))
|
|
5826
5826
|
return S;
|
|
@@ -5890,26 +5890,26 @@ function gv(e) {
|
|
|
5890
5890
|
}
|
|
5891
5891
|
const bd = Je(
|
|
5892
5892
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
5893
|
-
const s = Ye(), i = Ye(), a = Zt(V(s,
|
|
5893
|
+
const s = Ye(), i = Ye(), a = Zt(V(s, de(gv)));
|
|
5894
5894
|
return ve(
|
|
5895
5895
|
V(
|
|
5896
5896
|
a,
|
|
5897
|
-
|
|
5897
|
+
de((l) => l.totalCount)
|
|
5898
5898
|
),
|
|
5899
5899
|
n
|
|
5900
5900
|
), ve(
|
|
5901
5901
|
V(
|
|
5902
5902
|
a,
|
|
5903
|
-
|
|
5903
|
+
de((l) => l.groupIndices)
|
|
5904
5904
|
),
|
|
5905
5905
|
e
|
|
5906
5906
|
), ve(
|
|
5907
5907
|
V(
|
|
5908
5908
|
Ct(o, t, r),
|
|
5909
|
-
|
|
5910
|
-
|
|
5909
|
+
Ee(([l, c]) => Ws(c)),
|
|
5910
|
+
de(([l, c, d]) => yn(c.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
|
|
5911
5911
|
ht(),
|
|
5912
|
-
|
|
5912
|
+
de((l) => [l])
|
|
5913
5913
|
),
|
|
5914
5914
|
i
|
|
5915
5915
|
), { groupCounts: s, topItemsIndexes: i };
|
|
@@ -5920,7 +5920,7 @@ const bd = Je(
|
|
|
5920
5920
|
const t = J(!1), n = Zt(
|
|
5921
5921
|
V(
|
|
5922
5922
|
t,
|
|
5923
|
-
|
|
5923
|
+
Ee((r) => r),
|
|
5924
5924
|
ht()
|
|
5925
5925
|
)
|
|
5926
5926
|
);
|
|
@@ -5960,16 +5960,16 @@ const No = Je(
|
|
|
5960
5960
|
p,
|
|
5961
5961
|
$e(n, f, r, y, a, i, h),
|
|
5962
5962
|
$e(e, s, o),
|
|
5963
|
-
|
|
5963
|
+
de(
|
|
5964
5964
|
([
|
|
5965
5965
|
[T, C, S, k, A, N, M, F],
|
|
5966
5966
|
q,
|
|
5967
5967
|
j,
|
|
5968
5968
|
_
|
|
5969
5969
|
]) => {
|
|
5970
|
-
const D = Sd(T), { align: L, behavior: ne, offset: K } = D, z = k - 1,
|
|
5971
|
-
let W = yo(
|
|
5972
|
-
L === "end" ? (W += j + yn(C.sizeTree,
|
|
5970
|
+
const D = Sd(T), { align: L, behavior: ne, offset: K } = D, z = k - 1, fe = wd(D, C, z);
|
|
5971
|
+
let W = yo(fe, C.offsetTree, q) + N;
|
|
5972
|
+
L === "end" ? (W += j + yn(C.sizeTree, fe)[1] - S + _, fe === z && (W += M)) : L === "center" ? W += (j + yn(C.sizeTree, fe)[1] - S + _) / 2 : W -= A, K && (W += K);
|
|
5973
5973
|
const ce = (B) => {
|
|
5974
5974
|
b(), B ? (F("retrying to scroll to", { location: T }, Kt.DEBUG), Oe(p, T)) : (Oe(m, !0), F("list did not change, scroll successful", {}, Kt.DEBUG));
|
|
5975
5975
|
};
|
|
@@ -5984,7 +5984,7 @@ const No = Je(
|
|
|
5984
5984
|
v = xn(V(t, yv(150)), ce);
|
|
5985
5985
|
return x = setTimeout(() => {
|
|
5986
5986
|
b();
|
|
5987
|
-
}, 1200), Oe(l, !0), F("scrolling from index to", { behavior: ne, index:
|
|
5987
|
+
}, 1200), Oe(l, !0), F("scrolling from index to", { behavior: ne, index: fe, top: W }, Kt.DEBUG), { behavior: ne, top: W };
|
|
5988
5988
|
}
|
|
5989
5989
|
)
|
|
5990
5990
|
),
|
|
@@ -6024,7 +6024,7 @@ const _o = Je(
|
|
|
6024
6024
|
V(
|
|
6025
6025
|
i,
|
|
6026
6026
|
$e(l),
|
|
6027
|
-
|
|
6027
|
+
Ee(([d, f]) => !!f),
|
|
6028
6028
|
_n(!1)
|
|
6029
6029
|
),
|
|
6030
6030
|
a
|
|
@@ -6032,7 +6032,7 @@ const _o = Je(
|
|
|
6032
6032
|
V(
|
|
6033
6033
|
i,
|
|
6034
6034
|
$e(l),
|
|
6035
|
-
|
|
6035
|
+
Ee(([d, f]) => !!f),
|
|
6036
6036
|
_n(!1)
|
|
6037
6037
|
),
|
|
6038
6038
|
c
|
|
@@ -6040,7 +6040,7 @@ const _o = Je(
|
|
|
6040
6040
|
V(
|
|
6041
6041
|
Ct(t, i),
|
|
6042
6042
|
$e(a, n, e, c),
|
|
6043
|
-
|
|
6043
|
+
Ee(([[, d], f, { sizeTree: h }, p, m]) => d && (!lt(h) || Ha(p)) && !f && !m),
|
|
6044
6044
|
$e(l)
|
|
6045
6045
|
),
|
|
6046
6046
|
([, d]) => {
|
|
@@ -6076,7 +6076,7 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6076
6076
|
}, bv = 0, jo = Je(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
6077
6077
|
const i = J(!1), a = J(!0), l = Ye(), c = Ye(), d = J(4), f = J(bv), h = zt(
|
|
6078
6078
|
V(
|
|
6079
|
-
la(V(
|
|
6079
|
+
la(V(Re(o), yr(1), _n(!0)), V(Re(o), yr(1), _n(!1), yc(100))),
|
|
6080
6080
|
ht()
|
|
6081
6081
|
),
|
|
6082
6082
|
!1
|
|
@@ -6086,15 +6086,15 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6086
6086
|
);
|
|
6087
6087
|
ve(
|
|
6088
6088
|
V(
|
|
6089
|
-
Ct(
|
|
6090
|
-
|
|
6089
|
+
Ct(Re(o), Re(f)),
|
|
6090
|
+
de(([w, b]) => w <= b),
|
|
6091
6091
|
ht()
|
|
6092
6092
|
),
|
|
6093
6093
|
a
|
|
6094
6094
|
), ve(V(a, Un(50)), c);
|
|
6095
6095
|
const m = Zt(
|
|
6096
6096
|
V(
|
|
6097
|
-
Ct(r,
|
|
6097
|
+
Ct(r, Re(s), Re(t), Re(e), Re(d)),
|
|
6098
6098
|
Pn((w, [{ scrollHeight: b, scrollTop: T }, C, S, k, A]) => {
|
|
6099
6099
|
const N = T + C - b > -A, M = {
|
|
6100
6100
|
scrollHeight: b,
|
|
@@ -6148,15 +6148,15 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6148
6148
|
},
|
|
6149
6149
|
{ changed: !1, jump: 0, scrollHeight: 0, scrollTop: 0 }
|
|
6150
6150
|
),
|
|
6151
|
-
|
|
6152
|
-
|
|
6151
|
+
Ee((w) => w.changed),
|
|
6152
|
+
de((w) => w.jump)
|
|
6153
6153
|
),
|
|
6154
6154
|
0
|
|
6155
6155
|
);
|
|
6156
6156
|
ve(
|
|
6157
6157
|
V(
|
|
6158
6158
|
m,
|
|
6159
|
-
|
|
6159
|
+
de((w) => w.atBottom)
|
|
6160
6160
|
),
|
|
6161
6161
|
i
|
|
6162
6162
|
), ve(V(i, Un(50)), l);
|
|
@@ -6164,13 +6164,13 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6164
6164
|
ve(
|
|
6165
6165
|
V(
|
|
6166
6166
|
r,
|
|
6167
|
-
|
|
6167
|
+
de(({ scrollTop: w }) => w),
|
|
6168
6168
|
ht(),
|
|
6169
6169
|
Pn(
|
|
6170
6170
|
(w, b) => bt(p) ? { direction: w.direction, prevScrollTop: b } : { direction: b < w.prevScrollTop ? vo : ao, prevScrollTop: b },
|
|
6171
6171
|
{ direction: ao, prevScrollTop: 0 }
|
|
6172
6172
|
),
|
|
6173
|
-
|
|
6173
|
+
de((w) => w.direction)
|
|
6174
6174
|
),
|
|
6175
6175
|
v
|
|
6176
6176
|
), ve(V(r, Un(50), _n(vv)), v);
|
|
@@ -6178,7 +6178,7 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6178
6178
|
return ve(
|
|
6179
6179
|
V(
|
|
6180
6180
|
h,
|
|
6181
|
-
|
|
6181
|
+
Ee((w) => !w),
|
|
6182
6182
|
_n(0)
|
|
6183
6183
|
),
|
|
6184
6184
|
x
|
|
@@ -6187,9 +6187,9 @@ const vo = "up", ao = "down", vv = "none", wv = {
|
|
|
6187
6187
|
o,
|
|
6188
6188
|
Un(100),
|
|
6189
6189
|
$e(h),
|
|
6190
|
-
|
|
6190
|
+
Ee(([w, b]) => !!b),
|
|
6191
6191
|
Pn(([w, b], [T]) => [b, T], [0, 0]),
|
|
6192
|
-
|
|
6192
|
+
de(([w, b]) => b - w)
|
|
6193
6193
|
),
|
|
6194
6194
|
x
|
|
6195
6195
|
), {
|
|
@@ -6218,17 +6218,17 @@ const Ya = Je(
|
|
|
6218
6218
|
const s = Ye(), i = J(0), a = J(0), l = J(0), c = zt(
|
|
6219
6219
|
V(
|
|
6220
6220
|
Ct(
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6226
|
-
|
|
6227
|
-
|
|
6228
|
-
|
|
6229
|
-
|
|
6221
|
+
Re(r),
|
|
6222
|
+
Re(o),
|
|
6223
|
+
Re(n),
|
|
6224
|
+
Re(s, xo),
|
|
6225
|
+
Re(l),
|
|
6226
|
+
Re(i),
|
|
6227
|
+
Re(t),
|
|
6228
|
+
Re(e),
|
|
6229
|
+
Re(a)
|
|
6230
6230
|
),
|
|
6231
|
-
|
|
6231
|
+
de(
|
|
6232
6232
|
([
|
|
6233
6233
|
d,
|
|
6234
6234
|
f,
|
|
@@ -6249,7 +6249,7 @@ const Ya = Je(
|
|
|
6249
6249
|
] : null;
|
|
6250
6250
|
}
|
|
6251
6251
|
),
|
|
6252
|
-
|
|
6252
|
+
Ee((d) => d != null),
|
|
6253
6253
|
ht(xo)
|
|
6254
6254
|
),
|
|
6255
6255
|
[0, 0]
|
|
@@ -6369,21 +6369,21 @@ const kr = Je(
|
|
|
6369
6369
|
Ct(
|
|
6370
6370
|
p,
|
|
6371
6371
|
m,
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6372
|
+
Re(l, xo),
|
|
6373
|
+
Re(o),
|
|
6374
|
+
Re(r),
|
|
6375
|
+
Re(c),
|
|
6376
6376
|
d,
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6377
|
+
Re(y),
|
|
6378
|
+
Re(t),
|
|
6379
|
+
Re(n),
|
|
6380
6380
|
e
|
|
6381
6381
|
),
|
|
6382
|
-
|
|
6382
|
+
Ee(([S, k, , A, , , , , , , N]) => {
|
|
6383
6383
|
const M = N && N.length !== A;
|
|
6384
6384
|
return S && !k && !M;
|
|
6385
6385
|
}),
|
|
6386
|
-
|
|
6386
|
+
de(
|
|
6387
6387
|
([
|
|
6388
6388
|
,
|
|
6389
6389
|
,
|
|
@@ -6411,18 +6411,18 @@ const kr = Je(
|
|
|
6411
6411
|
L,
|
|
6412
6412
|
j
|
|
6413
6413
|
);
|
|
6414
|
-
const
|
|
6414
|
+
const fe = [];
|
|
6415
6415
|
if (q.length > 0) {
|
|
6416
6416
|
const we = q[0], xe = q[q.length - 1];
|
|
6417
6417
|
let G = 0;
|
|
6418
6418
|
for (const O of Us(K, we, xe)) {
|
|
6419
6419
|
const X = O.value, oe = Math.max(O.start, we), ge = Math.min(O.end, xe);
|
|
6420
6420
|
for (let se = oe; se <= ge; se++)
|
|
6421
|
-
|
|
6421
|
+
fe.push({ data: D == null ? void 0 : D[se], index: se, offset: G, size: X }), G += X;
|
|
6422
6422
|
}
|
|
6423
6423
|
}
|
|
6424
6424
|
if (!F)
|
|
6425
|
-
return os([],
|
|
6425
|
+
return os([], fe, A, _, L, j);
|
|
6426
6426
|
const W = q.length > 0 ? q[q.length - 1] + 1 : 0, ce = uv(ne, S, k, W);
|
|
6427
6427
|
if (ce.length === 0)
|
|
6428
6428
|
return null;
|
|
@@ -6442,11 +6442,11 @@ const kr = Je(
|
|
|
6442
6442
|
we.push({ data: D == null ? void 0 : D[se], index: se, offset: O, size: oe }), O += oe + _;
|
|
6443
6443
|
}
|
|
6444
6444
|
});
|
|
6445
|
-
return os(Z,
|
|
6445
|
+
return os(Z, fe, A, _, L, j);
|
|
6446
6446
|
}
|
|
6447
6447
|
),
|
|
6448
6448
|
//@ts-expect-error filter needs to be fixed
|
|
6449
|
-
|
|
6449
|
+
Ee((S) => S !== null),
|
|
6450
6450
|
ht()
|
|
6451
6451
|
),
|
|
6452
6452
|
Ni
|
|
@@ -6454,52 +6454,52 @@ const kr = Je(
|
|
|
6454
6454
|
ve(
|
|
6455
6455
|
V(
|
|
6456
6456
|
e,
|
|
6457
|
-
|
|
6458
|
-
|
|
6457
|
+
Ee(Ha),
|
|
6458
|
+
de((S) => S == null ? void 0 : S.length)
|
|
6459
6459
|
),
|
|
6460
6460
|
o
|
|
6461
6461
|
), ve(
|
|
6462
6462
|
V(
|
|
6463
6463
|
w,
|
|
6464
|
-
|
|
6464
|
+
de((S) => S.topListHeight)
|
|
6465
6465
|
),
|
|
6466
6466
|
f
|
|
6467
6467
|
), ve(f, a), ve(
|
|
6468
6468
|
V(
|
|
6469
6469
|
w,
|
|
6470
|
-
|
|
6470
|
+
de((S) => [S.top, S.bottom])
|
|
6471
6471
|
),
|
|
6472
6472
|
i
|
|
6473
6473
|
), ve(
|
|
6474
6474
|
V(
|
|
6475
6475
|
w,
|
|
6476
|
-
|
|
6476
|
+
de((S) => S.items)
|
|
6477
6477
|
),
|
|
6478
6478
|
x
|
|
6479
6479
|
);
|
|
6480
6480
|
const b = Zt(
|
|
6481
6481
|
V(
|
|
6482
6482
|
w,
|
|
6483
|
-
|
|
6483
|
+
Ee(({ items: S }) => S.length > 0),
|
|
6484
6484
|
$e(o, e),
|
|
6485
|
-
|
|
6486
|
-
|
|
6485
|
+
Ee(([{ items: S }, k]) => S[S.length - 1].originalIndex === k - 1),
|
|
6486
|
+
de(([, S, k]) => [S - 1, k]),
|
|
6487
6487
|
ht(xo),
|
|
6488
|
-
|
|
6488
|
+
de(([S]) => S)
|
|
6489
6489
|
)
|
|
6490
6490
|
), T = Zt(
|
|
6491
6491
|
V(
|
|
6492
6492
|
w,
|
|
6493
6493
|
Un(200),
|
|
6494
|
-
|
|
6495
|
-
|
|
6494
|
+
Ee(({ items: S, topItems: k }) => S.length > 0 && S[0].originalIndex === k.length),
|
|
6495
|
+
de(({ items: S }) => S[0].index),
|
|
6496
6496
|
ht()
|
|
6497
6497
|
)
|
|
6498
6498
|
), C = Zt(
|
|
6499
6499
|
V(
|
|
6500
6500
|
w,
|
|
6501
|
-
|
|
6502
|
-
|
|
6501
|
+
Ee(({ items: S }) => S.length > 0),
|
|
6502
|
+
de(({ items: S }) => {
|
|
6503
6503
|
let k = 0, A = S.length - 1;
|
|
6504
6504
|
for (; S[k].type === "group" && k < A; )
|
|
6505
6505
|
k++;
|
|
@@ -6531,11 +6531,11 @@ const kr = Je(
|
|
|
6531
6531
|
const s = Ye(), i = zt(
|
|
6532
6532
|
V(
|
|
6533
6533
|
Ct(n, e, r, t, o),
|
|
6534
|
-
|
|
6534
|
+
de(([a, l, c, d, f]) => a + l + c + d + f.offsetBottom + f.bottom)
|
|
6535
6535
|
),
|
|
6536
6536
|
0
|
|
6537
6537
|
);
|
|
6538
|
-
return ve(
|
|
6538
|
+
return ve(Re(i), s), { totalListHeight: i, totalListHeightChanged: s };
|
|
6539
6539
|
},
|
|
6540
6540
|
pt(Bt, kr),
|
|
6541
6541
|
{ singleton: !0 }
|
|
@@ -6544,8 +6544,8 @@ const kr = Je(
|
|
|
6544
6544
|
const n = J(!1), r = zt(
|
|
6545
6545
|
V(
|
|
6546
6546
|
Ct(n, e, t),
|
|
6547
|
-
|
|
6548
|
-
|
|
6547
|
+
Ee(([o]) => o),
|
|
6548
|
+
de(([, o, s]) => Math.max(0, o - s)),
|
|
6549
6549
|
Un(0),
|
|
6550
6550
|
ht()
|
|
6551
6551
|
),
|
|
@@ -6575,7 +6575,7 @@ const kr = Je(
|
|
|
6575
6575
|
d,
|
|
6576
6576
|
$e(t, l, n, s, o, r, a),
|
|
6577
6577
|
$e(e),
|
|
6578
|
-
|
|
6578
|
+
de(([[f, h, p, m, y, v, x, w], b]) => {
|
|
6579
6579
|
const { align: T, behavior: C, calculateViewLocation: S = Tv, done: k, ...A } = f, N = wd(f, h, m - 1), M = yo(N, h.offsetTree, b) + y + v, F = M + yn(h.sizeTree, N)[1], q = w + v, j = w + p - x, _ = S({
|
|
6580
6580
|
itemBottom: F,
|
|
6581
6581
|
itemTop: M,
|
|
@@ -6586,7 +6586,7 @@ const kr = Je(
|
|
|
6586
6586
|
return _ ? k && xn(
|
|
6587
6587
|
V(
|
|
6588
6588
|
i,
|
|
6589
|
-
|
|
6589
|
+
Ee((D) => !D),
|
|
6590
6590
|
// skips the initial publish of false, and the cleanup call.
|
|
6591
6591
|
// but if scrollingInProgress is true, we skip the initial publish.
|
|
6592
6592
|
yr(bt(i) ? 1 : 2)
|
|
@@ -6594,7 +6594,7 @@ const kr = Je(
|
|
|
6594
6594
|
k
|
|
6595
6595
|
) : k && k(), _;
|
|
6596
6596
|
}),
|
|
6597
|
-
|
|
6597
|
+
Ee((f) => f !== null)
|
|
6598
6598
|
),
|
|
6599
6599
|
c
|
|
6600
6600
|
), {
|
|
@@ -6630,13 +6630,13 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6630
6630
|
}
|
|
6631
6631
|
tt(
|
|
6632
6632
|
V(
|
|
6633
|
-
Ct(V(
|
|
6634
|
-
$e(
|
|
6635
|
-
|
|
6633
|
+
Ct(V(Re(t), yr(1)), l),
|
|
6634
|
+
$e(Re(m), s, a, f),
|
|
6635
|
+
de(([[C, S], k, A, N, M]) => {
|
|
6636
6636
|
let F = S && N, q = "auto";
|
|
6637
6637
|
return F && (q = kv(k, A || M), F = F && !!q), { followOutputBehavior: q, shouldFollow: F, totalCount: C };
|
|
6638
6638
|
}),
|
|
6639
|
-
|
|
6639
|
+
Ee(({ shouldFollow: C }) => C)
|
|
6640
6640
|
),
|
|
6641
6641
|
({ followOutputBehavior: C, totalCount: S }) => {
|
|
6642
6642
|
v && (v(), v = null), bt(n) ? requestAnimationFrame(() => {
|
|
@@ -6654,13 +6654,13 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6654
6654
|
}
|
|
6655
6655
|
tt(
|
|
6656
6656
|
V(
|
|
6657
|
-
Ct(
|
|
6658
|
-
|
|
6657
|
+
Ct(Re(m), t, c),
|
|
6658
|
+
Ee(([C, , S]) => C && S),
|
|
6659
6659
|
Pn(
|
|
6660
6660
|
({ value: C }, [, S]) => ({ refreshed: C === S, value: S }),
|
|
6661
6661
|
{ refreshed: !1, value: 0 }
|
|
6662
6662
|
),
|
|
6663
|
-
|
|
6663
|
+
Ee(({ refreshed: C }) => C),
|
|
6664
6664
|
$e(m, t)
|
|
6665
6665
|
),
|
|
6666
6666
|
([, C]) => {
|
|
@@ -6668,28 +6668,28 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6668
6668
|
}
|
|
6669
6669
|
), tt(y, () => {
|
|
6670
6670
|
w(bt(m) !== !1);
|
|
6671
|
-
}), tt(Ct(
|
|
6671
|
+
}), tt(Ct(Re(m), o), ([C, S]) => {
|
|
6672
6672
|
C && !S.atBottom && S.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && x("auto");
|
|
6673
6673
|
});
|
|
6674
6674
|
const b = J(null), T = Ye();
|
|
6675
6675
|
return ve(
|
|
6676
6676
|
la(
|
|
6677
6677
|
V(
|
|
6678
|
-
|
|
6679
|
-
|
|
6678
|
+
Re(r),
|
|
6679
|
+
de((C) => {
|
|
6680
6680
|
var S;
|
|
6681
6681
|
return (S = C == null ? void 0 : C.length) != null ? S : 0;
|
|
6682
6682
|
})
|
|
6683
6683
|
),
|
|
6684
|
-
V(
|
|
6684
|
+
V(Re(t))
|
|
6685
6685
|
),
|
|
6686
6686
|
T
|
|
6687
6687
|
), tt(
|
|
6688
6688
|
V(
|
|
6689
6689
|
Ct(V(T, yr(1)), l),
|
|
6690
|
-
$e(
|
|
6691
|
-
|
|
6692
|
-
|
|
6690
|
+
$e(Re(b), a, f, h),
|
|
6691
|
+
de(([[C, S], k, A, N, M]) => S && A && (k == null ? void 0 : k({ context: M, totalCount: C, scrollingInProgress: N }))),
|
|
6692
|
+
Ee((C) => !!C),
|
|
6693
6693
|
Un(0)
|
|
6694
6694
|
),
|
|
6695
6695
|
(C) => {
|
|
@@ -6717,9 +6717,9 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6717
6717
|
V(
|
|
6718
6718
|
a,
|
|
6719
6719
|
$e(s),
|
|
6720
|
-
|
|
6720
|
+
Ee(([, l]) => l !== 0),
|
|
6721
6721
|
$e(o, r, t, n, e),
|
|
6722
|
-
|
|
6722
|
+
de(([[, l], c, d, f, h, p = []]) => Td(l, c, d, f, h, p))
|
|
6723
6723
|
),
|
|
6724
6724
|
i
|
|
6725
6725
|
), {}),
|
|
@@ -6732,15 +6732,15 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6732
6732
|
V(
|
|
6733
6733
|
e,
|
|
6734
6734
|
$e(r),
|
|
6735
|
-
|
|
6736
|
-
|
|
6735
|
+
Ee(([, o]) => o !== 0),
|
|
6736
|
+
de(([, o]) => ({ top: o }))
|
|
6737
6737
|
),
|
|
6738
6738
|
(o) => {
|
|
6739
6739
|
xn(
|
|
6740
6740
|
V(
|
|
6741
6741
|
n,
|
|
6742
6742
|
yr(1),
|
|
6743
|
-
|
|
6743
|
+
Ee((s) => s.items.length > 1)
|
|
6744
6744
|
),
|
|
6745
6745
|
() => {
|
|
6746
6746
|
requestAnimationFrame(() => {
|
|
@@ -6762,8 +6762,8 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6762
6762
|
V(
|
|
6763
6763
|
e,
|
|
6764
6764
|
$e(r, t, n),
|
|
6765
|
-
|
|
6766
|
-
|
|
6765
|
+
Ee(([o, s]) => !!s),
|
|
6766
|
+
de(([o, s, i, a]) => {
|
|
6767
6767
|
const { enter: l, exit: c } = s;
|
|
6768
6768
|
if (i) {
|
|
6769
6769
|
if (c(o, a))
|
|
@@ -6789,7 +6789,7 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6789
6789
|
return ve(
|
|
6790
6790
|
V(
|
|
6791
6791
|
Ct(n, r),
|
|
6792
|
-
|
|
6792
|
+
de(([{ scrollHeight: a, scrollTop: l, viewportHeight: c }, { offsetTop: d }]) => ({
|
|
6793
6793
|
scrollHeight: a,
|
|
6794
6794
|
scrollTop: Math.max(0, l - d),
|
|
6795
6795
|
viewportHeight: c
|
|
@@ -6800,7 +6800,7 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6800
6800
|
V(
|
|
6801
6801
|
t,
|
|
6802
6802
|
$e(r),
|
|
6803
|
-
|
|
6803
|
+
de(([a, { offsetTop: l }]) => ({
|
|
6804
6804
|
...a,
|
|
6805
6805
|
top: a.top + l
|
|
6806
6806
|
}))
|
|
@@ -6834,13 +6834,13 @@ const kv = (e, t) => typeof e == "function" ? Rc(e(t)) : t && Rc(e), Rv = Je(
|
|
|
6834
6834
|
const T = fv(m.sizeTree);
|
|
6835
6835
|
v && x !== null && w !== null && (y = x.scrollTop - w.offsetTop), y -= b, p({ ranges: T, scrollTop: y });
|
|
6836
6836
|
}
|
|
6837
|
-
), ve(V(d,
|
|
6837
|
+
), ve(V(d, Ee(Ha), de(Nv)), o), ve(
|
|
6838
6838
|
V(
|
|
6839
6839
|
s,
|
|
6840
6840
|
$e(d),
|
|
6841
|
-
|
|
6841
|
+
Ee(([, p]) => p !== void 0),
|
|
6842
6842
|
ht(),
|
|
6843
|
-
|
|
6843
|
+
de(([, p]) => p.ranges)
|
|
6844
6844
|
),
|
|
6845
6845
|
e
|
|
6846
6846
|
), {
|
|
@@ -6858,8 +6858,8 @@ const _v = Je(([{ topItemsIndexes: e }]) => {
|
|
|
6858
6858
|
return ve(
|
|
6859
6859
|
V(
|
|
6860
6860
|
t,
|
|
6861
|
-
|
|
6862
|
-
|
|
6861
|
+
Ee((n) => n >= 0),
|
|
6862
|
+
de((n) => Array.from({ length: n }).map((r, o) => o))
|
|
6863
6863
|
),
|
|
6864
6864
|
e
|
|
6865
6865
|
), { topItemCount: t };
|
|
@@ -6889,10 +6889,10 @@ const jv = Ad(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6889
6889
|
},
|
|
6890
6890
|
[0, [], 0, 0]
|
|
6891
6891
|
),
|
|
6892
|
-
|
|
6892
|
+
Ee(([x]) => x !== 0),
|
|
6893
6893
|
$e(r, a, n, o, p, m),
|
|
6894
|
-
|
|
6895
|
-
|
|
6894
|
+
Ee(([, x, w, b, , , T]) => !T && !b && x !== 0 && w === vo),
|
|
6895
|
+
de(([[x], , , , , w]) => (w("Upward scrolling compensation", { amount: x }, Kt.DEBUG), x))
|
|
6896
6896
|
)
|
|
6897
6897
|
);
|
|
6898
6898
|
function v(x) {
|
|
@@ -6903,22 +6903,22 @@ const jv = Ad(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6903
6903
|
}), tt(
|
|
6904
6904
|
V(
|
|
6905
6905
|
Ct(zt(s, !1), e, m),
|
|
6906
|
-
|
|
6907
|
-
|
|
6906
|
+
Ee(([x, w, b]) => !x && !b && w !== 0),
|
|
6907
|
+
de(([x, w]) => w),
|
|
6908
6908
|
Un(1)
|
|
6909
6909
|
),
|
|
6910
6910
|
v
|
|
6911
6911
|
), ve(
|
|
6912
6912
|
V(
|
|
6913
6913
|
f,
|
|
6914
|
-
|
|
6914
|
+
de((x) => ({ top: -x }))
|
|
6915
6915
|
),
|
|
6916
6916
|
t
|
|
6917
6917
|
), tt(
|
|
6918
6918
|
V(
|
|
6919
6919
|
c,
|
|
6920
6920
|
$e(h, d),
|
|
6921
|
-
|
|
6921
|
+
de(([x, { groupIndices: w, lastSize: b, sizeTree: T }, C]) => {
|
|
6922
6922
|
function S(k) {
|
|
6923
6923
|
return k * (b + C);
|
|
6924
6924
|
}
|
|
@@ -7015,7 +7015,7 @@ const jv = Ad(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7015
7015
|
]) => (ve(T.rangeChanged, N.scrollSeekRangeChanged), ve(
|
|
7016
7016
|
V(
|
|
7017
7017
|
N.windowViewportRect,
|
|
7018
|
-
|
|
7018
|
+
de((M) => M.visibleHeight)
|
|
7019
7019
|
),
|
|
7020
7020
|
y.viewportHeight
|
|
7021
7021
|
), {
|
|
@@ -7221,7 +7221,7 @@ const Lv = /* @__PURE__ */ Je(() => {
|
|
|
7221
7221
|
const e = J((a) => `Item ${a}`), t = J((a) => `Group ${a}`), n = J({}), r = J(Za), o = J("div"), s = J(Kr), i = (a, l = null) => zt(
|
|
7222
7222
|
V(
|
|
7223
7223
|
n,
|
|
7224
|
-
|
|
7224
|
+
de((c) => c[a]),
|
|
7225
7225
|
ht()
|
|
7226
7226
|
),
|
|
7227
7227
|
l
|
|
@@ -7247,7 +7247,7 @@ const Lv = /* @__PURE__ */ Je(() => {
|
|
|
7247
7247
|
([e, t]) => ({ ...e, ...t }),
|
|
7248
7248
|
pt(Nd, Lv)
|
|
7249
7249
|
), $v = ({ height: e }) => /* @__PURE__ */ u.jsx("div", { style: { height: e } }), zv = { overflowAnchor: "none", position: Ja(), zIndex: 1 }, Dd = { overflowAnchor: "none" }, Bv = { ...Dd, display: "inline-block", height: "100%" }, Ic = /* @__PURE__ */ U.memo(function({ showTopList: e = !1 }) {
|
|
7250
|
-
const t =
|
|
7250
|
+
const t = Ae("listState"), n = sn("sizeRanges"), r = Ae("useWindowScroll"), o = Ae("customScrollParent"), s = sn("windowScrollContainerState"), i = sn("scrollContainerState"), a = o || r ? s : i, l = Ae("itemContent"), c = Ae("context"), d = Ae("groupContent"), f = Ae("trackItemSizes"), h = Ae("itemSize"), p = Ae("log"), m = sn("gap"), y = Ae("horizontalDirection"), { callbackRef: v } = nv(
|
|
7251
7251
|
n,
|
|
7252
7252
|
h,
|
|
7253
7253
|
f,
|
|
@@ -7256,12 +7256,12 @@ const Lv = /* @__PURE__ */ Je(() => {
|
|
|
7256
7256
|
m,
|
|
7257
7257
|
o,
|
|
7258
7258
|
y,
|
|
7259
|
-
|
|
7259
|
+
Ae("skipAnimationFrameInResizeObserver")
|
|
7260
7260
|
), [x, w] = U.useState(0);
|
|
7261
7261
|
Qa("deviation", (_) => {
|
|
7262
7262
|
x !== _ && w(_);
|
|
7263
7263
|
});
|
|
7264
|
-
const b =
|
|
7264
|
+
const b = Ae("EmptyPlaceholder"), T = Ae("ScrollSeekPlaceholder") || $v, C = Ae("ListComponent"), S = Ae("ItemComponent"), k = Ae("GroupComponent"), A = Ae("computeItemKey"), N = Ae("isSeeking"), M = Ae("groupIndices").length > 0, F = Ae("alignToBottom"), q = Ae("initialItemFinalLocationReached"), j = e ? {} : {
|
|
7265
7265
|
boxSizing: "border-box",
|
|
7266
7266
|
...y ? {
|
|
7267
7267
|
display: "inline-block",
|
|
@@ -7354,7 +7354,7 @@ function Vv(e, t) {
|
|
|
7354
7354
|
return { item: typeof e == "string" ? void 0 : t };
|
|
7355
7355
|
}
|
|
7356
7356
|
const Kv = /* @__PURE__ */ U.memo(function() {
|
|
7357
|
-
const e =
|
|
7357
|
+
const e = Ae("HeaderComponent"), t = sn("headerHeight"), n = Ae("HeaderFooterTag"), r = Tr(
|
|
7358
7358
|
U.useMemo(
|
|
7359
7359
|
() => (s) => {
|
|
7360
7360
|
t(Jn(s, "height"));
|
|
@@ -7362,11 +7362,11 @@ const Kv = /* @__PURE__ */ U.memo(function() {
|
|
|
7362
7362
|
[t]
|
|
7363
7363
|
),
|
|
7364
7364
|
!0,
|
|
7365
|
-
|
|
7366
|
-
), o =
|
|
7365
|
+
Ae("skipAnimationFrameInResizeObserver")
|
|
7366
|
+
), o = Ae("context");
|
|
7367
7367
|
return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...$t(e, o) }) }) : null;
|
|
7368
7368
|
}), qv = /* @__PURE__ */ U.memo(function() {
|
|
7369
|
-
const e =
|
|
7369
|
+
const e = Ae("FooterComponent"), t = sn("footerHeight"), n = Ae("HeaderFooterTag"), r = Tr(
|
|
7370
7370
|
U.useMemo(
|
|
7371
7371
|
() => (s) => {
|
|
7372
7372
|
t(Jn(s, "height"));
|
|
@@ -7374,8 +7374,8 @@ const Kv = /* @__PURE__ */ U.memo(function() {
|
|
|
7374
7374
|
[t]
|
|
7375
7375
|
),
|
|
7376
7376
|
!0,
|
|
7377
|
-
|
|
7378
|
-
), o =
|
|
7377
|
+
Ae("skipAnimationFrameInResizeObserver")
|
|
7378
|
+
), o = Ae("context");
|
|
7379
7379
|
return e ? /* @__PURE__ */ u.jsx(n, { ref: r, children: /* @__PURE__ */ u.jsx(e, { ...$t(e, o) }) }) : null;
|
|
7380
7380
|
});
|
|
7381
7381
|
function Ld({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
@@ -7431,27 +7431,27 @@ function Fd({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7431
7431
|
});
|
|
7432
7432
|
}
|
|
7433
7433
|
const Gv = ({ children: e }) => {
|
|
7434
|
-
const t = U.useContext(jd), n = sn("viewportHeight"), r = sn("fixedItemHeight"), o =
|
|
7434
|
+
const t = U.useContext(jd), n = sn("viewportHeight"), r = sn("fixedItemHeight"), o = Ae("alignToBottom"), s = Ae("horizontalDirection"), i = U.useMemo(
|
|
7435
7435
|
() => cd(n, (l) => Jn(l, s ? "width" : "height")),
|
|
7436
7436
|
[n, s]
|
|
7437
|
-
), a = Tr(i, !0,
|
|
7437
|
+
), a = Tr(i, !0, Ae("skipAnimationFrameInResizeObserver"));
|
|
7438
7438
|
return U.useEffect(() => {
|
|
7439
7439
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
7440
7440
|
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: a, style: Vs(o), children: e });
|
|
7441
7441
|
}, Yv = ({ children: e }) => {
|
|
7442
|
-
const t = U.useContext(jd), n = sn("windowViewportRect"), r = sn("fixedItemHeight"), o =
|
|
7442
|
+
const t = U.useContext(jd), n = sn("windowViewportRect"), r = sn("fixedItemHeight"), o = Ae("customScrollParent"), s = dd(
|
|
7443
7443
|
n,
|
|
7444
7444
|
o,
|
|
7445
|
-
|
|
7446
|
-
), i =
|
|
7445
|
+
Ae("skipAnimationFrameInResizeObserver")
|
|
7446
|
+
), i = Ae("alignToBottom");
|
|
7447
7447
|
return U.useEffect(() => {
|
|
7448
7448
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
7449
7449
|
}, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style: Vs(i), children: e });
|
|
7450
7450
|
}, Xv = ({ children: e }) => {
|
|
7451
|
-
const t =
|
|
7451
|
+
const t = Ae("TopItemListComponent") || "div", n = Ae("headerHeight"), r = { ...Wv, marginTop: `${n}px` }, o = Ae("context");
|
|
7452
7452
|
return /* @__PURE__ */ u.jsx(t, { style: r, ...$t(t, o), children: e });
|
|
7453
7453
|
}, Jv = /* @__PURE__ */ U.memo(function(e) {
|
|
7454
|
-
const t =
|
|
7454
|
+
const t = Ae("useWindowScroll"), n = Ae("topItemsIndexes").length > 0, r = Ae("customScrollParent"), o = Ae("context");
|
|
7455
7455
|
return /* @__PURE__ */ u.jsxs(r || t ? ew : Qv, { ...e, context: o, children: [
|
|
7456
7456
|
n && /* @__PURE__ */ u.jsx(Xv, { children: /* @__PURE__ */ u.jsx(Ic, { showTopList: !0 }) }),
|
|
7457
7457
|
/* @__PURE__ */ u.jsxs(r || t ? Yv : Gv, { children: [
|
|
@@ -7463,7 +7463,7 @@ const Gv = ({ children: e }) => {
|
|
|
7463
7463
|
}), {
|
|
7464
7464
|
Component: Zv,
|
|
7465
7465
|
useEmitter: Qa,
|
|
7466
|
-
useEmitterValue:
|
|
7466
|
+
useEmitterValue: Ae,
|
|
7467
7467
|
usePublisher: sn
|
|
7468
7468
|
} = /* @__PURE__ */ _d(
|
|
7469
7469
|
Fv,
|
|
@@ -7524,7 +7524,7 @@ const Gv = ({ children: e }) => {
|
|
|
7524
7524
|
}
|
|
7525
7525
|
},
|
|
7526
7526
|
Jv
|
|
7527
|
-
), Qv = /* @__PURE__ */ Ld({ useEmitter: Qa, useEmitterValue:
|
|
7527
|
+
), Qv = /* @__PURE__ */ Ld({ useEmitter: Qa, useEmitterValue: Ae, usePublisher: sn }), ew = /* @__PURE__ */ Fd({ useEmitter: Qa, useEmitterValue: Ae, usePublisher: sn }), tw = Zv, nw = /* @__PURE__ */ Je(() => {
|
|
7528
7528
|
const e = J((c) => /* @__PURE__ */ u.jsxs("td", { children: [
|
|
7529
7529
|
"Item $",
|
|
7530
7530
|
c
|
|
@@ -7534,7 +7534,7 @@ const Gv = ({ children: e }) => {
|
|
|
7534
7534
|
] })), r = J(null), o = J(null), s = J({}), i = J(Za), a = J(Kr), l = (c, d = null) => zt(
|
|
7535
7535
|
V(
|
|
7536
7536
|
s,
|
|
7537
|
-
|
|
7537
|
+
de((f) => f[c]),
|
|
7538
7538
|
ht()
|
|
7539
7539
|
),
|
|
7540
7540
|
d
|
|
@@ -7604,32 +7604,32 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7604
7604
|
{ customScrollParent: v, useWindowScroll: x, windowScrollContainerState: w, windowScrollTo: b, windowViewportRect: T },
|
|
7605
7605
|
C
|
|
7606
7606
|
]) => {
|
|
7607
|
-
const S = J(0), k = J(0), A = J(Ac), N = J({ height: 0, width: 0 }), M = J({ height: 0, width: 0 }), F = Ye(), q = Ye(), j = J(0), _ = J(null), D = J({ column: 0, row: 0 }), L = Ye(), ne = Ye(), K = J(!1), z = J(0),
|
|
7607
|
+
const S = J(0), k = J(0), A = J(Ac), N = J({ height: 0, width: 0 }), M = J({ height: 0, width: 0 }), F = Ye(), q = Ye(), j = J(0), _ = J(null), D = J({ column: 0, row: 0 }), L = Ye(), ne = Ye(), K = J(!1), z = J(0), fe = J(!0), W = J(!1), ce = J(!1);
|
|
7608
7608
|
tt(
|
|
7609
7609
|
V(
|
|
7610
7610
|
m,
|
|
7611
7611
|
$e(z),
|
|
7612
|
-
|
|
7612
|
+
Ee(([O, X]) => !!X)
|
|
7613
7613
|
),
|
|
7614
7614
|
() => {
|
|
7615
|
-
Oe(
|
|
7615
|
+
Oe(fe, !1);
|
|
7616
7616
|
}
|
|
7617
7617
|
), tt(
|
|
7618
7618
|
V(
|
|
7619
|
-
Ct(m,
|
|
7620
|
-
|
|
7619
|
+
Ct(m, fe, M, N, z, W),
|
|
7620
|
+
Ee(([O, X, oe, ge, , se]) => O && !X && oe.height !== 0 && ge.height !== 0 && !se)
|
|
7621
7621
|
),
|
|
7622
7622
|
([, , , , O]) => {
|
|
7623
7623
|
Oe(W, !0), qa(1, () => {
|
|
7624
7624
|
Oe(F, O);
|
|
7625
7625
|
}), xn(V(c), () => {
|
|
7626
|
-
Oe(t, [0, 0]), Oe(
|
|
7626
|
+
Oe(t, [0, 0]), Oe(fe, !0);
|
|
7627
7627
|
});
|
|
7628
7628
|
}
|
|
7629
7629
|
), ve(
|
|
7630
7630
|
V(
|
|
7631
7631
|
ne,
|
|
7632
|
-
|
|
7632
|
+
Ee((O) => O != null && O.scrollTop > 0),
|
|
7633
7633
|
_n(0)
|
|
7634
7634
|
),
|
|
7635
7635
|
k
|
|
@@ -7637,7 +7637,7 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7637
7637
|
V(
|
|
7638
7638
|
m,
|
|
7639
7639
|
$e(ne),
|
|
7640
|
-
|
|
7640
|
+
Ee(([, O]) => O != null)
|
|
7641
7641
|
),
|
|
7642
7642
|
([, O]) => {
|
|
7643
7643
|
O && (Oe(N, O.viewport), Oe(M, O.item), Oe(D, O.gap), O.scrollTop > 0 && (Oe(K, !0), xn(V(c, yr(1)), (X) => {
|
|
@@ -7647,18 +7647,18 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7647
7647
|
), ve(
|
|
7648
7648
|
V(
|
|
7649
7649
|
N,
|
|
7650
|
-
|
|
7650
|
+
de(({ height: O }) => O)
|
|
7651
7651
|
),
|
|
7652
7652
|
f
|
|
7653
7653
|
), ve(
|
|
7654
7654
|
V(
|
|
7655
7655
|
Ct(
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7656
|
+
Re(N, Ho),
|
|
7657
|
+
Re(M, Ho),
|
|
7658
|
+
Re(D, (O, X) => O && O.column === X.column && O.row === X.row),
|
|
7659
|
+
Re(c)
|
|
7660
7660
|
),
|
|
7661
|
-
|
|
7661
|
+
de(([O, X, oe, ge]) => ({
|
|
7662
7662
|
gap: oe,
|
|
7663
7663
|
item: X,
|
|
7664
7664
|
scrollTop: ge,
|
|
@@ -7669,19 +7669,19 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7669
7669
|
), ve(
|
|
7670
7670
|
V(
|
|
7671
7671
|
Ct(
|
|
7672
|
-
|
|
7672
|
+
Re(S),
|
|
7673
7673
|
r,
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7674
|
+
Re(D, sw),
|
|
7675
|
+
Re(M, Ho),
|
|
7676
|
+
Re(N, Ho),
|
|
7677
|
+
Re(_),
|
|
7678
|
+
Re(k),
|
|
7679
|
+
Re(K),
|
|
7680
|
+
Re(fe),
|
|
7681
|
+
Re(z)
|
|
7682
7682
|
),
|
|
7683
|
-
|
|
7684
|
-
|
|
7683
|
+
Ee(([, , , , , , , O]) => !O),
|
|
7684
|
+
de(
|
|
7685
7685
|
([
|
|
7686
7686
|
O,
|
|
7687
7687
|
[X, oe],
|
|
@@ -7704,8 +7704,8 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7704
7704
|
const vt = $d(ut, We, gt);
|
|
7705
7705
|
let ft, Ze;
|
|
7706
7706
|
st ? X === 0 && oe === 0 && Ke > 0 ? (ft = 0, Ze = Ke - 1) : (ft = vt * xs((X + nt) / (Me + nt)), Ze = vt * Nc((oe + nt) / (Me + nt)) - 1, Ze = Pi(O - 1, lo(Ze, vt - 1)), ft = Pi(Ze, lo(0, ft))) : (ft = 0, Ze = -1);
|
|
7707
|
-
const ie = jc(ft, Ze, Ue), { bottom:
|
|
7708
|
-
return { bottom:
|
|
7707
|
+
const ie = jc(ft, Ze, Ue), { bottom: Ne, top: ke } = Pc(re, ge, se, ie), qe = Nc(O / vt), rt = qe * Me + (qe - 1) * nt - Ne;
|
|
7708
|
+
return { bottom: Ne, itemHeight: Me, items: ie, itemWidth: We, offsetBottom: rt, offsetTop: ke, top: ke };
|
|
7709
7709
|
}
|
|
7710
7710
|
)
|
|
7711
7711
|
),
|
|
@@ -7713,15 +7713,15 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7713
7713
|
), ve(
|
|
7714
7714
|
V(
|
|
7715
7715
|
_,
|
|
7716
|
-
|
|
7717
|
-
|
|
7716
|
+
Ee((O) => O !== null),
|
|
7717
|
+
de((O) => O.length)
|
|
7718
7718
|
),
|
|
7719
7719
|
S
|
|
7720
7720
|
), ve(
|
|
7721
7721
|
V(
|
|
7722
7722
|
Ct(N, M, A, D),
|
|
7723
|
-
|
|
7724
|
-
|
|
7723
|
+
Ee(([O, X, { items: oe }]) => oe.length > 0 && X.height !== 0 && O.height !== 0),
|
|
7724
|
+
de(([O, X, { items: oe }, ge]) => {
|
|
7725
7725
|
const { bottom: se, top: re } = Pc(O, ge, X, oe);
|
|
7726
7726
|
return [re, se];
|
|
7727
7727
|
}),
|
|
@@ -7734,35 +7734,35 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7734
7734
|
V(
|
|
7735
7735
|
c,
|
|
7736
7736
|
$e(B),
|
|
7737
|
-
|
|
7737
|
+
de(([O, X]) => X || O !== 0)
|
|
7738
7738
|
),
|
|
7739
7739
|
B
|
|
7740
7740
|
);
|
|
7741
7741
|
const Z = Zt(
|
|
7742
7742
|
V(
|
|
7743
7743
|
Ct(A, S),
|
|
7744
|
-
|
|
7744
|
+
Ee(([{ items: O }]) => O.length > 0),
|
|
7745
7745
|
$e(B),
|
|
7746
|
-
|
|
7746
|
+
Ee(([[O, X], oe]) => {
|
|
7747
7747
|
const ge = O.items[O.items.length - 1].index === X - 1;
|
|
7748
7748
|
return (oe || O.bottom > 0 && O.itemHeight > 0 && O.offsetBottom === 0 && O.items.length === X) && ge;
|
|
7749
7749
|
}),
|
|
7750
|
-
|
|
7750
|
+
de(([[, O]]) => O - 1),
|
|
7751
7751
|
ht()
|
|
7752
7752
|
)
|
|
7753
7753
|
), we = Zt(
|
|
7754
7754
|
V(
|
|
7755
|
-
|
|
7756
|
-
|
|
7755
|
+
Re(A),
|
|
7756
|
+
Ee(({ items: O }) => O.length > 0 && O[0].index === 0),
|
|
7757
7757
|
_n(0),
|
|
7758
7758
|
ht()
|
|
7759
7759
|
)
|
|
7760
7760
|
), xe = Zt(
|
|
7761
7761
|
V(
|
|
7762
|
-
|
|
7762
|
+
Re(A),
|
|
7763
7763
|
$e(K),
|
|
7764
|
-
|
|
7765
|
-
|
|
7764
|
+
Ee(([{ items: O }, X]) => O.length > 0 && !X),
|
|
7765
|
+
de(([{ items: O }]) => ({
|
|
7766
7766
|
endIndex: O[O.length - 1].index,
|
|
7767
7767
|
startIndex: O[0].index
|
|
7768
7768
|
})),
|
|
@@ -7774,7 +7774,7 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7774
7774
|
V(
|
|
7775
7775
|
F,
|
|
7776
7776
|
$e(N, M, S, D),
|
|
7777
|
-
|
|
7777
|
+
de(([O, X, oe, ge, se]) => {
|
|
7778
7778
|
const re = Sd(O), { align: Ue, behavior: Ke, offset: st } = re;
|
|
7779
7779
|
let at = re.index;
|
|
7780
7780
|
at === "LAST" && (at = ge - 1), at = lo(0, at, Pi(ge - 1, at));
|
|
@@ -7787,14 +7787,14 @@ const iw = /* @__PURE__ */ Je(
|
|
|
7787
7787
|
const G = zt(
|
|
7788
7788
|
V(
|
|
7789
7789
|
A,
|
|
7790
|
-
|
|
7790
|
+
de((O) => O.offsetBottom + O.bottom)
|
|
7791
7791
|
),
|
|
7792
7792
|
0
|
|
7793
7793
|
);
|
|
7794
7794
|
return ve(
|
|
7795
7795
|
V(
|
|
7796
7796
|
T,
|
|
7797
|
-
|
|
7797
|
+
de((O) => ({ height: O.visibleHeight, width: O.visibleWidth }))
|
|
7798
7798
|
),
|
|
7799
7799
|
N
|
|
7800
7800
|
), {
|
|
@@ -7859,12 +7859,12 @@ const aw = /* @__PURE__ */ Je(() => {
|
|
|
7859
7859
|
const e = J((f) => `Item ${f}`), t = J({}), n = J(null), r = J("virtuoso-grid-item"), o = J("virtuoso-grid-list"), s = J(Za), i = J("div"), a = J(Kr), l = (f, h = null) => zt(
|
|
7860
7860
|
V(
|
|
7861
7861
|
t,
|
|
7862
|
-
|
|
7862
|
+
de((p) => p[f]),
|
|
7863
7863
|
ht()
|
|
7864
7864
|
),
|
|
7865
7865
|
h
|
|
7866
7866
|
), c = J(!1), d = J(!1);
|
|
7867
|
-
return ve(
|
|
7867
|
+
return ve(Re(d), c), {
|
|
7868
7868
|
components: t,
|
|
7869
7869
|
computeItemKey: s,
|
|
7870
7870
|
context: n,
|
|
@@ -8273,7 +8273,7 @@ var Cw = [
|
|
|
8273
8273
|
"span",
|
|
8274
8274
|
"svg",
|
|
8275
8275
|
"ul"
|
|
8276
|
-
],
|
|
8276
|
+
], Ie = Cw.reduce((e, t) => {
|
|
8277
8277
|
const n = $r(`Primitive.${t}`), r = g.forwardRef((o, s) => {
|
|
8278
8278
|
const { asChild: i, ...a } = o, l = i ? n : t;
|
|
8279
8279
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u.jsx(l, { ...a, ref: s });
|
|
@@ -8380,7 +8380,7 @@ var Ks = "Collapsible", [Aw, uR] = $n(Ks), [Nw, tl] = Aw(Ks), Vd = g.forwardRef(
|
|
|
8380
8380
|
open: l,
|
|
8381
8381
|
onOpenToggle: g.useCallback(() => c((d) => !d), [c]),
|
|
8382
8382
|
children: /* @__PURE__ */ u.jsx(
|
|
8383
|
-
|
|
8383
|
+
Ie.div,
|
|
8384
8384
|
{
|
|
8385
8385
|
"data-state": rl(l),
|
|
8386
8386
|
"data-disabled": s ? "" : void 0,
|
|
@@ -8397,7 +8397,7 @@ var Kd = "CollapsibleTrigger", qd = g.forwardRef(
|
|
|
8397
8397
|
(e, t) => {
|
|
8398
8398
|
const { __scopeCollapsible: n, ...r } = e, o = tl(Kd, n);
|
|
8399
8399
|
return /* @__PURE__ */ u.jsx(
|
|
8400
|
-
|
|
8400
|
+
Ie.button,
|
|
8401
8401
|
{
|
|
8402
8402
|
type: "button",
|
|
8403
8403
|
"aria-controls": o.contentId,
|
|
@@ -8436,7 +8436,7 @@ var jw = g.forwardRef((e, t) => {
|
|
|
8436
8436
|
f.current = b.height, p.current = b.width, v.current || (w.style.transitionDuration = x.current.transitionDuration, w.style.animationName = x.current.animationName), l(r);
|
|
8437
8437
|
}
|
|
8438
8438
|
}, [i.open, r]), /* @__PURE__ */ u.jsx(
|
|
8439
|
-
|
|
8439
|
+
Ie.div,
|
|
8440
8440
|
{
|
|
8441
8441
|
"data-state": rl(i.open),
|
|
8442
8442
|
"data-disabled": i.disabled ? "" : void 0,
|
|
@@ -8697,7 +8697,7 @@ var Ww = "DismissableLayer", pa = "dismissableLayer.update", Vw = "dismissableLa
|
|
|
8697
8697
|
const k = () => p({});
|
|
8698
8698
|
return document.addEventListener(pa, k), () => document.removeEventListener(pa, k);
|
|
8699
8699
|
}, []), /* @__PURE__ */ u.jsx(
|
|
8700
|
-
|
|
8700
|
+
Ie.div,
|
|
8701
8701
|
{
|
|
8702
8702
|
...l,
|
|
8703
8703
|
ref: m,
|
|
@@ -8724,7 +8724,7 @@ var qw = "DismissableLayerBranch", Gw = g.forwardRef((e, t) => {
|
|
|
8724
8724
|
return n.branches.add(s), () => {
|
|
8725
8725
|
n.branches.delete(s);
|
|
8726
8726
|
};
|
|
8727
|
-
}, [n.branches]), /* @__PURE__ */ u.jsx(
|
|
8727
|
+
}, [n.branches]), /* @__PURE__ */ u.jsx(Ie.div, { ...e, ref: o });
|
|
8728
8728
|
});
|
|
8729
8729
|
Gw.displayName = qw;
|
|
8730
8730
|
function Yw(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -8843,7 +8843,7 @@ var Di = "focusScope.autoFocusOnMount", Li = "focusScope.autoFocusOnUnmount", zc
|
|
|
8843
8843
|
},
|
|
8844
8844
|
[n, r, p.paused]
|
|
8845
8845
|
);
|
|
8846
|
-
return /* @__PURE__ */ u.jsx(
|
|
8846
|
+
return /* @__PURE__ */ u.jsx(Ie.div, { tabIndex: -1, ...i, ref: h, onKeyDown: m });
|
|
8847
8847
|
});
|
|
8848
8848
|
Gs.displayName = Jw;
|
|
8849
8849
|
function Zw(e, { select: t = !1 } = {}) {
|
|
@@ -8913,7 +8913,7 @@ var ob = "Portal", Ys = g.forwardRef((e, t) => {
|
|
|
8913
8913
|
const { container: n, ...r } = e, [o, s] = g.useState(!1);
|
|
8914
8914
|
Nt(() => s(!0), []);
|
|
8915
8915
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
8916
|
-
return i ? Tu.createPortal(/* @__PURE__ */ u.jsx(
|
|
8916
|
+
return i ? Tu.createPortal(/* @__PURE__ */ u.jsx(Ie.div, { ...r, ref: t }), i) : null;
|
|
8917
8917
|
});
|
|
8918
8918
|
Ys.displayName = ob;
|
|
8919
8919
|
var Fi = 0;
|
|
@@ -9485,7 +9485,7 @@ var df = "DialogTrigger", ff = g.forwardRef(
|
|
|
9485
9485
|
(e, t) => {
|
|
9486
9486
|
const { __scopeDialog: n, ...r } = e, o = Sn(df, n), s = Ve(t, o.triggerRef);
|
|
9487
9487
|
return /* @__PURE__ */ u.jsx(
|
|
9488
|
-
|
|
9488
|
+
Ie.button,
|
|
9489
9489
|
{
|
|
9490
9490
|
type: "button",
|
|
9491
9491
|
"aria-haspopup": "dialog",
|
|
@@ -9521,7 +9521,7 @@ var Kb = $r("DialogOverlay.RemoveScroll"), qb = g.forwardRef(
|
|
|
9521
9521
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
9522
9522
|
// ie. when `Overlay` and `Content` are siblings
|
|
9523
9523
|
/* @__PURE__ */ u.jsx(Js, { as: Kb, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
|
|
9524
|
-
|
|
9524
|
+
Ie.div,
|
|
9525
9525
|
{
|
|
9526
9526
|
"data-state": cl(o.open),
|
|
9527
9527
|
...r,
|
|
@@ -9625,14 +9625,14 @@ var Gb = g.forwardRef(
|
|
|
9625
9625
|
), ll = "DialogTitle", yf = g.forwardRef(
|
|
9626
9626
|
(e, t) => {
|
|
9627
9627
|
const { __scopeDialog: n, ...r } = e, o = Sn(ll, n);
|
|
9628
|
-
return /* @__PURE__ */ u.jsx(
|
|
9628
|
+
return /* @__PURE__ */ u.jsx(Ie.h2, { id: o.titleId, ...r, ref: t });
|
|
9629
9629
|
}
|
|
9630
9630
|
);
|
|
9631
9631
|
yf.displayName = ll;
|
|
9632
9632
|
var vf = "DialogDescription", wf = g.forwardRef(
|
|
9633
9633
|
(e, t) => {
|
|
9634
9634
|
const { __scopeDialog: n, ...r } = e, o = Sn(vf, n);
|
|
9635
|
-
return /* @__PURE__ */ u.jsx(
|
|
9635
|
+
return /* @__PURE__ */ u.jsx(Ie.p, { id: o.descriptionId, ...r, ref: t });
|
|
9636
9636
|
}
|
|
9637
9637
|
);
|
|
9638
9638
|
wf.displayName = vf;
|
|
@@ -9640,7 +9640,7 @@ var bf = "DialogClose", Sf = g.forwardRef(
|
|
|
9640
9640
|
(e, t) => {
|
|
9641
9641
|
const { __scopeDialog: n, ...r } = e, o = Sn(bf, n);
|
|
9642
9642
|
return /* @__PURE__ */ u.jsx(
|
|
9643
|
-
|
|
9643
|
+
Ie.button,
|
|
9644
9644
|
{
|
|
9645
9645
|
type: "button",
|
|
9646
9646
|
...r,
|
|
@@ -11584,7 +11584,7 @@ const ru = U.memo(function({
|
|
|
11584
11584
|
}) {
|
|
11585
11585
|
const [C, S] = ye(!1), [k, A] = ye("preview"), [N, M] = ye(!1), { currentThreadId: F } = za(), { respondToInterrupt: q } = Ba(), j = l === "phone" || l === "half-screen", _ = t.role, D = _ === "tool", L = it(() => "type" in t && t.type === "default_message" ? t : null, [t]), ne = !!L, K = !(r && _ !== "user"), {
|
|
11586
11586
|
uploadingFiles: z,
|
|
11587
|
-
handleFileClick:
|
|
11587
|
+
handleFileClick: fe,
|
|
11588
11588
|
fileViewerOpen: W,
|
|
11589
11589
|
currentFileInfo: ce,
|
|
11590
11590
|
closeFileViewer: B
|
|
@@ -11612,7 +11612,7 @@ const ru = U.memo(function({
|
|
|
11612
11612
|
[L, t]
|
|
11613
11613
|
), oe = (x == null ? void 0 : x.id) ?? (x == null ? void 0 : x.interrupt_id), ge = Yo(oe), se = x == null ? void 0 : x.value, re = it(() => L ? "" : C0(t.content), [L, t]), Ue = U.useCallback(async () => {
|
|
11614
11614
|
const ie = D ? re : we;
|
|
11615
|
-
async function
|
|
11615
|
+
async function Ne(ke) {
|
|
11616
11616
|
if (navigator.clipboard && typeof navigator.clipboard.writeText == "function") {
|
|
11617
11617
|
await navigator.clipboard.writeText(ke);
|
|
11618
11618
|
return;
|
|
@@ -11629,7 +11629,7 @@ const ru = U.memo(function({
|
|
|
11629
11629
|
throw new Error("Clipboard API not supported in this context.");
|
|
11630
11630
|
}
|
|
11631
11631
|
try {
|
|
11632
|
-
await
|
|
11632
|
+
await Ne(ie), S(!0), setTimeout(() => S(!1), 2e3), v == null || v(ie);
|
|
11633
11633
|
} catch (ke) {
|
|
11634
11634
|
console.error("Failed to copy:", ke);
|
|
11635
11635
|
}
|
|
@@ -11640,16 +11640,16 @@ const ru = U.memo(function({
|
|
|
11640
11640
|
}, [p, t.id, D, re, we]), st = U.useCallback(() => {
|
|
11641
11641
|
m == null || m(n);
|
|
11642
11642
|
}, [m, n]), at = U.useCallback(() => {
|
|
11643
|
-
const
|
|
11643
|
+
const Ne = te(j ? "h-3 w-3" : "h-4 w-4", "opacity-60 flex-shrink-0", Z);
|
|
11644
11644
|
switch (_) {
|
|
11645
11645
|
case "user":
|
|
11646
|
-
return /* @__PURE__ */ u.jsx(Wm, { className:
|
|
11646
|
+
return /* @__PURE__ */ u.jsx(Wm, { className: Ne });
|
|
11647
11647
|
case "assistant":
|
|
11648
|
-
return /* @__PURE__ */ u.jsx(vi, { className:
|
|
11648
|
+
return /* @__PURE__ */ u.jsx(vi, { className: Ne });
|
|
11649
11649
|
case "tool":
|
|
11650
|
-
return /* @__PURE__ */ u.jsx(Um, { className:
|
|
11650
|
+
return /* @__PURE__ */ u.jsx(Um, { className: Ne });
|
|
11651
11651
|
default:
|
|
11652
|
-
return /* @__PURE__ */ u.jsx(vi, { className:
|
|
11652
|
+
return /* @__PURE__ */ u.jsx(vi, { className: Ne });
|
|
11653
11653
|
}
|
|
11654
11654
|
}, [j, Z, _]), gt = U.useCallback(() => {
|
|
11655
11655
|
const ie = "group relative mb-4 flex w-full";
|
|
@@ -11720,15 +11720,15 @@ const ru = U.memo(function({
|
|
|
11720
11720
|
const Me = U.useCallback(async (ie) => {
|
|
11721
11721
|
if (w)
|
|
11722
11722
|
return;
|
|
11723
|
-
const
|
|
11723
|
+
const Ne = Yo(
|
|
11724
11724
|
(ie == null ? void 0 : ie.id) ?? (ie == null ? void 0 : ie.interrupt_id)
|
|
11725
11725
|
);
|
|
11726
|
-
if (!
|
|
11726
|
+
if (!Ne) {
|
|
11727
11727
|
console.warn("Interrupt part missing id", ie);
|
|
11728
11728
|
return;
|
|
11729
11729
|
}
|
|
11730
11730
|
try {
|
|
11731
|
-
b == null || b(), await q(
|
|
11731
|
+
b == null || b(), await q(Ne, !0);
|
|
11732
11732
|
} catch (ke) {
|
|
11733
11733
|
console.error("Failed to approve interrupt:", ke);
|
|
11734
11734
|
} finally {
|
|
@@ -11737,24 +11737,24 @@ const ru = U.memo(function({
|
|
|
11737
11737
|
}, [w, T, b, q]), We = U.useCallback(async (ie) => {
|
|
11738
11738
|
if (w)
|
|
11739
11739
|
return;
|
|
11740
|
-
const
|
|
11740
|
+
const Ne = Yo(
|
|
11741
11741
|
(ie == null ? void 0 : ie.id) ?? (ie == null ? void 0 : ie.interrupt_id)
|
|
11742
11742
|
);
|
|
11743
|
-
if (!
|
|
11743
|
+
if (!Ne) {
|
|
11744
11744
|
console.warn("Interrupt part missing id", ie);
|
|
11745
11745
|
return;
|
|
11746
11746
|
}
|
|
11747
11747
|
try {
|
|
11748
|
-
b == null || b(), await q(
|
|
11748
|
+
b == null || b(), await q(Ne, !1);
|
|
11749
11749
|
} catch (ke) {
|
|
11750
11750
|
console.error("Failed to reject interrupt:", ke);
|
|
11751
11751
|
} finally {
|
|
11752
11752
|
T == null || T();
|
|
11753
11753
|
}
|
|
11754
|
-
}, [w, T, b, q]), ut = U.useCallback(({ part: ie, i:
|
|
11754
|
+
}, [w, T, b, q]), ut = U.useCallback(({ part: ie, i: Ne }) => {
|
|
11755
11755
|
if (ie.type === "text") {
|
|
11756
11756
|
const ke = ie.text ?? "", qe = ke.trim(), rt = Yd(qe);
|
|
11757
|
-
return rt && _ !== "tool" ? /* @__PURE__ */ u.jsx(zf, { data: rt },
|
|
11757
|
+
return rt && _ !== "tool" ? /* @__PURE__ */ u.jsx(zf, { data: rt }, Ne) : _ === "user" && c && qe.length > d ? /* @__PURE__ */ u.jsx(
|
|
11758
11758
|
I0,
|
|
11759
11759
|
{
|
|
11760
11760
|
text: qe,
|
|
@@ -11763,8 +11763,8 @@ const ru = U.memo(function({
|
|
|
11763
11763
|
previewLength: d,
|
|
11764
11764
|
isCompact: j
|
|
11765
11765
|
},
|
|
11766
|
-
|
|
11767
|
-
) : /* @__PURE__ */ u.jsx(ga, { content: ke, allowHtml: !1 },
|
|
11766
|
+
Ne
|
|
11767
|
+
) : /* @__PURE__ */ u.jsx(ga, { content: ke, allowHtml: !1 }, Ne);
|
|
11768
11768
|
}
|
|
11769
11769
|
if (ie.type === "image_url") {
|
|
11770
11770
|
const ke = ie;
|
|
@@ -11776,7 +11776,7 @@ const ru = U.memo(function({
|
|
|
11776
11776
|
loading: "lazy",
|
|
11777
11777
|
className: "border rounded max-h-[420px] w-auto object-contain"
|
|
11778
11778
|
}
|
|
11779
|
-
) },
|
|
11779
|
+
) }, Ne);
|
|
11780
11780
|
}
|
|
11781
11781
|
if (ie.type === "file") {
|
|
11782
11782
|
const ke = ie, qe = ke.name || "file";
|
|
@@ -11784,18 +11784,18 @@ const ru = U.memo(function({
|
|
|
11784
11784
|
"a",
|
|
11785
11785
|
{
|
|
11786
11786
|
href: ke.url,
|
|
11787
|
-
onClick: (rt) =>
|
|
11787
|
+
onClick: (rt) => fe(rt, ke, Ne),
|
|
11788
11788
|
className: `inline-flex items-center gap-2 rounded px-2 py-1 text-xs bg-gray-100 border hover:bg-gray-200
|
|
11789
11789
|
dark:bg-background/10 dark:border-border/30 dark:hover:bg-background/20`,
|
|
11790
11790
|
children: [
|
|
11791
|
-
z[
|
|
11791
|
+
z[Ne] ? /* @__PURE__ */ u.jsx(_a, { className: "h-4 w-4 animate-spin" }) : null,
|
|
11792
11792
|
/* @__PURE__ */ u.jsxs("span", { className: "truncate max-w-[180px]", children: [
|
|
11793
11793
|
qe,
|
|
11794
|
-
z[
|
|
11794
|
+
z[Ne] ? " (processing)" : ""
|
|
11795
11795
|
] })
|
|
11796
11796
|
]
|
|
11797
11797
|
},
|
|
11798
|
-
|
|
11798
|
+
Ne
|
|
11799
11799
|
);
|
|
11800
11800
|
}
|
|
11801
11801
|
if (ie.type === "interrupt") {
|
|
@@ -11812,12 +11812,12 @@ const ru = U.memo(function({
|
|
|
11812
11812
|
isActive: rt,
|
|
11813
11813
|
payload: Pe
|
|
11814
11814
|
},
|
|
11815
|
-
|
|
11815
|
+
Ne
|
|
11816
11816
|
);
|
|
11817
11817
|
}
|
|
11818
11818
|
return null;
|
|
11819
11819
|
}, [
|
|
11820
|
-
|
|
11820
|
+
fe,
|
|
11821
11821
|
z,
|
|
11822
11822
|
Me,
|
|
11823
11823
|
We,
|
|
@@ -11850,7 +11850,7 @@ const ru = U.memo(function({
|
|
|
11850
11850
|
t.id
|
|
11851
11851
|
);
|
|
11852
11852
|
if (!D && !L) {
|
|
11853
|
-
const
|
|
11853
|
+
const Ne = t, ke = /* @__PURE__ */ u.jsx("div", { className: "space-y-2", children: Ne.content.map((qe, rt) => /* @__PURE__ */ u.jsx(ut, { part: qe, i: rt }, rt)) });
|
|
11854
11854
|
return r ? /* @__PURE__ */ u.jsxs("div", { "aria-busy": "true", role: "status", children: [
|
|
11855
11855
|
ke,
|
|
11856
11856
|
/* @__PURE__ */ u.jsx(k0, { className: Z })
|
|
@@ -11897,7 +11897,7 @@ const ru = U.memo(function({
|
|
|
11897
11897
|
"aria-expanded": k === "expanded",
|
|
11898
11898
|
onClick: () => A((ie) => ie === "expanded" ? "preview" : "expanded"),
|
|
11899
11899
|
onKeyDown: (ie) => {
|
|
11900
|
-
(ie.key === "Enter" || ie.key === " ") && (ie.preventDefault(), A((
|
|
11900
|
+
(ie.key === "Enter" || ie.key === " ") && (ie.preventDefault(), A((Ne) => Ne === "expanded" ? "preview" : "expanded"));
|
|
11901
11901
|
},
|
|
11902
11902
|
children: [
|
|
11903
11903
|
/* @__PURE__ */ u.jsx("span", { children: xe.name ?? "Tool Output" }),
|
|
@@ -12310,7 +12310,7 @@ const ou = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Bf = U.forwa
|
|
|
12310
12310
|
}
|
|
12311
12311
|
}
|
|
12312
12312
|
};
|
|
12313
|
-
}, [a]), z = it(() => !m || y ? !1 : F ? "auto" : !1, [F, m, y]),
|
|
12313
|
+
}, [a]), z = it(() => !m || y ? !1 : F ? "auto" : !1, [F, m, y]), fe = it(() => {
|
|
12314
12314
|
if (typeof p != "string") return null;
|
|
12315
12315
|
const W = p.trim();
|
|
12316
12316
|
return W ? {
|
|
@@ -12321,10 +12321,10 @@ const ou = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Bf = U.forwa
|
|
|
12321
12321
|
createdAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
12322
12322
|
} : null;
|
|
12323
12323
|
}, [p]);
|
|
12324
|
-
return L.length === 0 ?
|
|
12324
|
+
return L.length === 0 ? fe ? /* @__PURE__ */ u.jsx("div", { className: f, style: h, children: /* @__PURE__ */ u.jsx("div", { className: "p-6 overflow-y-auto h-full flex items-start justify-center", children: /* @__PURE__ */ u.jsx("div", { className: "w-full max-w-2xl", children: /* @__PURE__ */ u.jsx(
|
|
12325
12325
|
ru,
|
|
12326
12326
|
{
|
|
12327
|
-
message:
|
|
12327
|
+
message: fe,
|
|
12328
12328
|
messageIndex: 0,
|
|
12329
12329
|
isStreamingMessage: !1,
|
|
12330
12330
|
showActions: !1,
|
|
@@ -12844,7 +12844,7 @@ const K0 = (e) => ({
|
|
|
12844
12844
|
z === "y";
|
|
12845
12845
|
}
|
|
12846
12846
|
return !0;
|
|
12847
|
-
}).map((K) => [K.placement, K.overflows.filter((z) => z > 0).reduce((z,
|
|
12847
|
+
}).map((K) => [K.placement, K.overflows.filter((z) => z > 0).reduce((z, fe) => z + fe, 0)]).sort((K, z) => K[1] - z[1])[0]) == null ? void 0 : j[0];
|
|
12848
12848
|
ne && (L = ne);
|
|
12849
12849
|
break;
|
|
12850
12850
|
}
|
|
@@ -13685,7 +13685,7 @@ function MS(e) {
|
|
|
13685
13685
|
middleware: h
|
|
13686
13686
|
};
|
|
13687
13687
|
F.current && (K.platform = F.current), jS(S.current, k.current, K).then((z) => {
|
|
13688
|
-
const
|
|
13688
|
+
const fe = {
|
|
13689
13689
|
...z,
|
|
13690
13690
|
// The floating element's position may be recomputed while it's closed
|
|
13691
13691
|
// but still mounted (such as when transitioning out). To ensure
|
|
@@ -13693,8 +13693,8 @@ function MS(e) {
|
|
|
13693
13693
|
// setting it to `true` when `open === false` (must be specified).
|
|
13694
13694
|
isPositioned: q.current !== !1
|
|
13695
13695
|
};
|
|
13696
|
-
_.current && !ks(A.current,
|
|
13697
|
-
f(
|
|
13696
|
+
_.current && !ks(A.current, fe) && (A.current = fe, Ms.flushSync(() => {
|
|
13697
|
+
f(fe);
|
|
13698
13698
|
}));
|
|
13699
13699
|
});
|
|
13700
13700
|
}, [h, t, n, F, q]);
|
|
@@ -13730,17 +13730,17 @@ function MS(e) {
|
|
|
13730
13730
|
};
|
|
13731
13731
|
if (!L.floating)
|
|
13732
13732
|
return K;
|
|
13733
|
-
const z = mu(L.floating, d.x),
|
|
13733
|
+
const z = mu(L.floating, d.x), fe = mu(L.floating, d.y);
|
|
13734
13734
|
return a ? {
|
|
13735
13735
|
...K,
|
|
13736
|
-
transform: "translate(" + z + "px, " +
|
|
13736
|
+
transform: "translate(" + z + "px, " + fe + "px)",
|
|
13737
13737
|
...Zf(L.floating) >= 1.5 && {
|
|
13738
13738
|
willChange: "transform"
|
|
13739
13739
|
}
|
|
13740
13740
|
} : {
|
|
13741
13741
|
position: n,
|
|
13742
13742
|
left: z,
|
|
13743
|
-
top:
|
|
13743
|
+
top: fe
|
|
13744
13744
|
};
|
|
13745
13745
|
}, [n, a, L.floating, d.x, d.y]);
|
|
13746
13746
|
return g.useMemo(() => ({
|
|
@@ -13797,7 +13797,7 @@ const DS = (e) => {
|
|
|
13797
13797
|
var WS = "Arrow", Qf = g.forwardRef((e, t) => {
|
|
13798
13798
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
13799
13799
|
return /* @__PURE__ */ u.jsx(
|
|
13800
|
-
|
|
13800
|
+
Ie.svg,
|
|
13801
13801
|
{
|
|
13802
13802
|
...s,
|
|
13803
13803
|
ref: t,
|
|
@@ -13844,7 +13844,7 @@ var oh = "PopperAnchor", sh = g.forwardRef(
|
|
|
13844
13844
|
return g.useEffect(() => {
|
|
13845
13845
|
const c = l.current;
|
|
13846
13846
|
l.current = (r == null ? void 0 : r.current) || i.current, c !== l.current && s.onAnchorChange(l.current);
|
|
13847
|
-
}), r ? null : /* @__PURE__ */ u.jsx(
|
|
13847
|
+
}), r ? null : /* @__PURE__ */ u.jsx(Ie.div, { ...o, ref: a });
|
|
13848
13848
|
}
|
|
13849
13849
|
);
|
|
13850
13850
|
sh.displayName = oh;
|
|
@@ -13901,7 +13901,7 @@ var wl = "PopperContent", [qS, GS] = th(wl), ih = g.forwardRef(
|
|
|
13901
13901
|
JS({ arrowWidth: k, arrowHeight: A }),
|
|
13902
13902
|
h && HS({ strategy: "referenceHidden", ...j })
|
|
13903
13903
|
]
|
|
13904
|
-
}), [z,
|
|
13904
|
+
}), [z, fe] = ch(L), W = Ot(m);
|
|
13905
13905
|
Nt(() => {
|
|
13906
13906
|
ne && (W == null || W());
|
|
13907
13907
|
}, [ne, W]);
|
|
@@ -13942,10 +13942,10 @@ var wl = "PopperContent", [qS, GS] = th(wl), ih = g.forwardRef(
|
|
|
13942
13942
|
arrowY: B,
|
|
13943
13943
|
shouldHideArrow: Z,
|
|
13944
13944
|
children: /* @__PURE__ */ u.jsx(
|
|
13945
|
-
|
|
13945
|
+
Ie.div,
|
|
13946
13946
|
{
|
|
13947
13947
|
"data-side": z,
|
|
13948
|
-
"data-align":
|
|
13948
|
+
"data-align": fe,
|
|
13949
13949
|
...y,
|
|
13950
13950
|
ref: b,
|
|
13951
13951
|
style: {
|
|
@@ -14082,7 +14082,7 @@ var rC = g.forwardRef((e, t) => {
|
|
|
14082
14082
|
[]
|
|
14083
14083
|
),
|
|
14084
14084
|
children: /* @__PURE__ */ u.jsx(
|
|
14085
|
-
|
|
14085
|
+
Ie.div,
|
|
14086
14086
|
{
|
|
14087
14087
|
tabIndex: x || S === 0 ? -1 : 0,
|
|
14088
14088
|
"data-orientation": r,
|
|
@@ -14131,7 +14131,7 @@ var rC = g.forwardRef((e, t) => {
|
|
|
14131
14131
|
focusable: r,
|
|
14132
14132
|
active: o,
|
|
14133
14133
|
children: /* @__PURE__ */ u.jsx(
|
|
14134
|
-
|
|
14134
|
+
Ie.span,
|
|
14135
14135
|
{
|
|
14136
14136
|
tabIndex: f ? 0 : -1,
|
|
14137
14137
|
"data-orientation": d.orientation,
|
|
@@ -14311,10 +14311,10 @@ var ln = "MenuContent", [wC, Cl] = Er(ln), Rh = g.forwardRef(
|
|
|
14311
14311
|
...y
|
|
14312
14312
|
} = e, v = Ir(ln, n), x = Do(ln, n), w = li(n), b = Sh(n), T = pC(n), [C, S] = g.useState(null), k = g.useRef(null), A = Ve(t, k, v.onContentChange), N = g.useRef(0), M = g.useRef(""), F = g.useRef(0), q = g.useRef(null), j = g.useRef("right"), _ = g.useRef(0), D = m ? Js : g.Fragment, L = m ? { as: CC, allowPinchZoom: !0 } : void 0, ne = (z) => {
|
|
14313
14313
|
var G, O;
|
|
14314
|
-
const
|
|
14314
|
+
const fe = M.current + z, W = T().filter((X) => !X.disabled), ce = document.activeElement, B = (G = W.find((X) => X.ref.current === ce)) == null ? void 0 : G.textValue, Z = W.map((X) => X.textValue), we = MC(Z, fe, B), xe = (O = W.find((X) => X.textValue === we)) == null ? void 0 : O.ref.current;
|
|
14315
14315
|
(function X(oe) {
|
|
14316
14316
|
M.current = oe, window.clearTimeout(N.current), oe !== "" && (N.current = window.setTimeout(() => X(""), 1e3));
|
|
14317
|
-
})(
|
|
14317
|
+
})(fe), xe && setTimeout(() => xe.focus());
|
|
14318
14318
|
};
|
|
14319
14319
|
g.useEffect(() => () => window.clearTimeout(N.current), []), sl();
|
|
14320
14320
|
const K = g.useCallback((z) => {
|
|
@@ -14334,8 +14334,8 @@ var ln = "MenuContent", [wC, Cl] = Er(ln), Rh = g.forwardRef(
|
|
|
14334
14334
|
),
|
|
14335
14335
|
onItemLeave: g.useCallback(
|
|
14336
14336
|
(z) => {
|
|
14337
|
-
var
|
|
14338
|
-
K(z) || ((
|
|
14337
|
+
var fe;
|
|
14338
|
+
K(z) || ((fe = k.current) == null || fe.focus(), S(null));
|
|
14339
14339
|
},
|
|
14340
14340
|
[K]
|
|
14341
14341
|
),
|
|
@@ -14355,8 +14355,8 @@ var ln = "MenuContent", [wC, Cl] = Er(ln), Rh = g.forwardRef(
|
|
|
14355
14355
|
asChild: !0,
|
|
14356
14356
|
trapped: o,
|
|
14357
14357
|
onMountAutoFocus: me(s, (z) => {
|
|
14358
|
-
var
|
|
14359
|
-
z.preventDefault(), (
|
|
14358
|
+
var fe;
|
|
14359
|
+
z.preventDefault(), (fe = k.current) == null || fe.focus({ preventScroll: !0 });
|
|
14360
14360
|
}),
|
|
14361
14361
|
onUnmountAutoFocus: i,
|
|
14362
14362
|
children: /* @__PURE__ */ u.jsx(
|
|
@@ -14410,8 +14410,8 @@ var ln = "MenuContent", [wC, Cl] = Er(ln), Rh = g.forwardRef(
|
|
|
14410
14410
|
onPointerMove: me(
|
|
14411
14411
|
e.onPointerMove,
|
|
14412
14412
|
To((z) => {
|
|
14413
|
-
const
|
|
14414
|
-
if (z.currentTarget.contains(
|
|
14413
|
+
const fe = z.target, W = _.current !== z.clientX;
|
|
14414
|
+
if (z.currentTarget.contains(fe) && W) {
|
|
14415
14415
|
const ce = z.clientX > _.current ? "right" : "left";
|
|
14416
14416
|
j.current = ce, _.current = z.clientX;
|
|
14417
14417
|
}
|
|
@@ -14433,14 +14433,14 @@ Rh.displayName = ln;
|
|
|
14433
14433
|
var TC = "MenuGroup", kl = g.forwardRef(
|
|
14434
14434
|
(e, t) => {
|
|
14435
14435
|
const { __scopeMenu: n, ...r } = e;
|
|
14436
|
-
return /* @__PURE__ */ u.jsx(
|
|
14436
|
+
return /* @__PURE__ */ u.jsx(Ie.div, { role: "group", ...r, ref: t });
|
|
14437
14437
|
}
|
|
14438
14438
|
);
|
|
14439
14439
|
kl.displayName = TC;
|
|
14440
14440
|
var kC = "MenuLabel", Eh = g.forwardRef(
|
|
14441
14441
|
(e, t) => {
|
|
14442
14442
|
const { __scopeMenu: n, ...r } = e;
|
|
14443
|
-
return /* @__PURE__ */ u.jsx(
|
|
14443
|
+
return /* @__PURE__ */ u.jsx(Ie.div, { ...r, ref: t });
|
|
14444
14444
|
}
|
|
14445
14445
|
);
|
|
14446
14446
|
Eh.displayName = kC;
|
|
@@ -14490,7 +14490,7 @@ var Ih = g.forwardRef(
|
|
|
14490
14490
|
disabled: r,
|
|
14491
14491
|
textValue: o ?? h,
|
|
14492
14492
|
children: /* @__PURE__ */ u.jsx(cC, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ u.jsx(
|
|
14493
|
-
|
|
14493
|
+
Ie.div,
|
|
14494
14494
|
{
|
|
14495
14495
|
role: "menuitem",
|
|
14496
14496
|
"data-highlighted": d ? "" : void 0,
|
|
@@ -14582,7 +14582,7 @@ var Rl = "MenuItemIndicator", [Oh, AC] = Er(
|
|
|
14582
14582
|
{
|
|
14583
14583
|
present: r || Es(s.checked) || s.checked === !0,
|
|
14584
14584
|
children: /* @__PURE__ */ u.jsx(
|
|
14585
|
-
|
|
14585
|
+
Ie.span,
|
|
14586
14586
|
{
|
|
14587
14587
|
...o,
|
|
14588
14588
|
ref: t,
|
|
@@ -14598,7 +14598,7 @@ var NC = "MenuSeparator", Dh = g.forwardRef(
|
|
|
14598
14598
|
(e, t) => {
|
|
14599
14599
|
const { __scopeMenu: n, ...r } = e;
|
|
14600
14600
|
return /* @__PURE__ */ u.jsx(
|
|
14601
|
-
|
|
14601
|
+
Ie.div,
|
|
14602
14602
|
{
|
|
14603
14603
|
role: "separator",
|
|
14604
14604
|
"aria-orientation": "horizontal",
|
|
@@ -14804,7 +14804,7 @@ var Vh = "DropdownMenuTrigger", Kh = g.forwardRef(
|
|
|
14804
14804
|
(e, t) => {
|
|
14805
14805
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = Uh(Vh, n), i = Ht(n);
|
|
14806
14806
|
return /* @__PURE__ */ u.jsx($C, { asChild: !0, ...i, children: /* @__PURE__ */ u.jsx(
|
|
14807
|
-
|
|
14807
|
+
Ie.button,
|
|
14808
14808
|
{
|
|
14809
14809
|
type: "button",
|
|
14810
14810
|
id: s.triggerId,
|
|
@@ -15086,7 +15086,7 @@ function Ki({
|
|
|
15086
15086
|
checkpoints: M,
|
|
15087
15087
|
interrupt: F,
|
|
15088
15088
|
metadata: q
|
|
15089
|
-
} = Ba(), { isStreaming: j, error: _, submit: D, stop: L } = Hy(), ne = x ?? v ?? null, K = (N == null ? void 0 : N.id) ?? null, z = (N == null ? void 0 : N.namespace) ?? null,
|
|
15089
|
+
} = Ba(), { isStreaming: j, error: _, submit: D, stop: L } = Hy(), ne = x ?? v ?? null, K = (N == null ? void 0 : N.id) ?? null, z = (N == null ? void 0 : N.namespace) ?? null, fe = (q == null ? void 0 : q.assemblingMessageId) ?? null, W = F, [ce, B] = ye(!1);
|
|
15090
15090
|
dt(() => {
|
|
15091
15091
|
W || B(!1);
|
|
15092
15092
|
}, [W]);
|
|
@@ -15094,29 +15094,29 @@ function Ki({
|
|
|
15094
15094
|
B(!0);
|
|
15095
15095
|
}, []), we = Te(() => {
|
|
15096
15096
|
B(!1);
|
|
15097
|
-
}, []), xe = !!W || ce, [G, O] = ye(null), [X, oe] = ye(""), [ge, se] = ye(null), [re, Ue] = ye([]), [Ke, st] = ye(0), [at, gt] = ye(0), [nt, Me] = ye(!1), [We, ut] = ye(null), [vt, ft] = ye(null), [Ze, ie] = ye(!1), [
|
|
15097
|
+
}, []), xe = !!W || ce, [G, O] = ye(null), [X, oe] = ye(""), [ge, se] = ye(null), [re, Ue] = ye([]), [Ke, st] = ye(0), [at, gt] = ye(0), [nt, Me] = ye(!1), [We, ut] = ye(null), [vt, ft] = ye(null), [Ze, ie] = ye(!1), [Ne, ke] = ye(null), [qe, rt] = ye(!1), Pe = Le(!1), [Xe, Et] = ye(() => xu.value), Tt = Le(Xe), qt = Le(null), It = Te(($) => {
|
|
15098
15098
|
xu.value = $, Et($);
|
|
15099
15099
|
}, []), [qn, Gt] = ye(!1), dn = Te(
|
|
15100
15100
|
($, ue) => {
|
|
15101
15101
|
if (!$ || typeof $ != "object") return null;
|
|
15102
|
-
const
|
|
15103
|
-
return typeof
|
|
15102
|
+
const he = $[ue];
|
|
15103
|
+
return typeof he == "number" ? he : null;
|
|
15104
15104
|
},
|
|
15105
15105
|
[]
|
|
15106
15106
|
), tn = Te(
|
|
15107
15107
|
($, ue) => {
|
|
15108
15108
|
if (!$ || typeof $ != "object") return null;
|
|
15109
|
-
const
|
|
15110
|
-
return typeof
|
|
15109
|
+
const he = $[ue];
|
|
15110
|
+
return typeof he == "string" && he.trim() ? he : null;
|
|
15111
15111
|
},
|
|
15112
15112
|
[]
|
|
15113
15113
|
), Mt = it(() => {
|
|
15114
15114
|
const $ = Array.isArray(M) ? [...M] : [];
|
|
15115
|
-
return $.some((
|
|
15116
|
-
const ot = dn(
|
|
15115
|
+
return $.some((he) => dn(he.metadata, "step") !== null) && $.sort((he, _e) => {
|
|
15116
|
+
const ot = dn(he.metadata, "step"), Dt = dn(_e.metadata, "step");
|
|
15117
15117
|
if (ot !== null || Dt !== null)
|
|
15118
15118
|
return (Dt ?? Number.NEGATIVE_INFINITY) - (ot ?? Number.NEGATIVE_INFINITY);
|
|
15119
|
-
const nn = Date.parse(
|
|
15119
|
+
const nn = Date.parse(he.createdAt ?? ""), kt = Date.parse(_e.createdAt ?? "");
|
|
15120
15120
|
return Number.isNaN(nn) || Number.isNaN(kt) ? 0 : kt - nn;
|
|
15121
15121
|
}), $;
|
|
15122
15122
|
}, [M, dn]), Cn = Le(null), fn = Le(null), xt = Te(() => {
|
|
@@ -15163,8 +15163,8 @@ function Ki({
|
|
|
15163
15163
|
return;
|
|
15164
15164
|
}
|
|
15165
15165
|
try {
|
|
15166
|
-
const
|
|
15167
|
-
ke(
|
|
15166
|
+
const he = (await y.getAgent("default")).uiDefaultMessage || "";
|
|
15167
|
+
ke(he || null);
|
|
15168
15168
|
} catch (ue) {
|
|
15169
15169
|
console.warn("Failed to fetch default message:", ue), ke(null);
|
|
15170
15170
|
}
|
|
@@ -15184,9 +15184,9 @@ function Ki({
|
|
|
15184
15184
|
const ue = $.trim();
|
|
15185
15185
|
if (!(!ue && re.length === 0)) {
|
|
15186
15186
|
if (ue) {
|
|
15187
|
-
const
|
|
15188
|
-
if (
|
|
15189
|
-
se(
|
|
15187
|
+
const he = kn(ue);
|
|
15188
|
+
if (he) {
|
|
15189
|
+
se(he);
|
|
15190
15190
|
return;
|
|
15191
15191
|
}
|
|
15192
15192
|
}
|
|
@@ -15202,9 +15202,9 @@ function Ki({
|
|
|
15202
15202
|
checkpointNs: z ?? void 0
|
|
15203
15203
|
}
|
|
15204
15204
|
), h == null || h(ue), It(""), se(null), Ue([]), xt(), O(null), oe("");
|
|
15205
|
-
} catch (
|
|
15206
|
-
const
|
|
15207
|
-
se(
|
|
15205
|
+
} catch (he) {
|
|
15206
|
+
const _e = (he == null ? void 0 : he.message) || "Failed to send message";
|
|
15207
|
+
se(_e), m == null || m(_e);
|
|
15208
15208
|
}
|
|
15209
15209
|
}
|
|
15210
15210
|
}, Hn = U.useCallback(
|
|
@@ -15217,20 +15217,17 @@ function Ki({
|
|
|
15217
15217
|
}, [Xe, It]), Ar = Te(($, ue) => {
|
|
15218
15218
|
Hn($, ue);
|
|
15219
15219
|
}, [Hn]), Nr = Te(($) => {
|
|
15220
|
-
|
|
15221
|
-
|
|
15222
|
-
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15227
|
-
|
|
15228
|
-
|
|
15229
|
-
|
|
15230
|
-
|
|
15231
|
-
const Re = ue(w[de]);
|
|
15232
|
-
Re && D(
|
|
15233
|
-
{ text: Re },
|
|
15220
|
+
for (let ue = $ - 1; ue >= 0; ue--)
|
|
15221
|
+
if (w[ue].role === "user") {
|
|
15222
|
+
const he = w[ue].content || [], ot = he.filter((Dt) => Dt.type === "text").map((Dt) => Dt.text).join("") || (() => {
|
|
15223
|
+
try {
|
|
15224
|
+
return JSON.stringify(he, null, 2);
|
|
15225
|
+
} catch {
|
|
15226
|
+
return String(he);
|
|
15227
|
+
}
|
|
15228
|
+
})();
|
|
15229
|
+
ot && D(
|
|
15230
|
+
{ text: ot },
|
|
15234
15231
|
{
|
|
15235
15232
|
checkpointId: K ?? void 0,
|
|
15236
15233
|
checkpointNs: z ?? void 0
|
|
@@ -15240,11 +15237,11 @@ function Ki({
|
|
|
15240
15237
|
}
|
|
15241
15238
|
}, [w, D, K, z]), Gn = ($) => {
|
|
15242
15239
|
const ue = Array.from($.target.files || []);
|
|
15243
|
-
Ue((
|
|
15240
|
+
Ue((he) => [...he, ...ue]), $.target.value = "";
|
|
15244
15241
|
}, R = ($) => {
|
|
15245
15242
|
Ue((ue) => {
|
|
15246
|
-
const
|
|
15247
|
-
return
|
|
15243
|
+
const he = ue.filter((_e, ot) => $ !== ot);
|
|
15244
|
+
return he.length === 0 && xt(), he;
|
|
15248
15245
|
});
|
|
15249
15246
|
}, H = async ($) => {
|
|
15250
15247
|
const ue = ($.target.files || [])[0];
|
|
@@ -15258,11 +15255,11 @@ function Ki({
|
|
|
15258
15255
|
checkpointNs: z ?? void 0
|
|
15259
15256
|
}
|
|
15260
15257
|
);
|
|
15261
|
-
const
|
|
15262
|
-
ft(
|
|
15263
|
-
} catch (
|
|
15264
|
-
const
|
|
15265
|
-
console.error("Excel upload failed",
|
|
15258
|
+
const he = `Uploaded ${ue.name} - processing through chat stream`;
|
|
15259
|
+
ft(he);
|
|
15260
|
+
} catch (he) {
|
|
15261
|
+
const _e = he instanceof Error ? he.message : "Failed to upload Excel file";
|
|
15262
|
+
console.error("Excel upload failed", he), ut(_e), m == null || m(_e);
|
|
15266
15263
|
} finally {
|
|
15267
15264
|
Me(!1), $.target.value = "", xt();
|
|
15268
15265
|
}
|
|
@@ -15279,8 +15276,8 @@ function Ki({
|
|
|
15279
15276
|
await A();
|
|
15280
15277
|
return;
|
|
15281
15278
|
}
|
|
15282
|
-
const ue = Mt.find((
|
|
15283
|
-
await k($,
|
|
15279
|
+
const ue = Mt.find((_e) => _e.checkpointId === $), he = (ue == null ? void 0 : ue.checkpointNs) ?? null;
|
|
15280
|
+
await k($, he);
|
|
15284
15281
|
} finally {
|
|
15285
15282
|
Gt(!1);
|
|
15286
15283
|
}
|
|
@@ -15315,9 +15312,9 @@ function Ki({
|
|
|
15315
15312
|
children: [
|
|
15316
15313
|
/* @__PURE__ */ u.jsx("option", { value: "", children: "Latest" }),
|
|
15317
15314
|
Mt.map(($) => {
|
|
15318
|
-
const ue = dn($.metadata, "step"),
|
|
15319
|
-
ue !== null &&
|
|
15320
|
-
const ot =
|
|
15315
|
+
const ue = dn($.metadata, "step"), he = tn($.metadata, "source"), _e = [];
|
|
15316
|
+
ue !== null && _e.push(`Step ${ue}`), he && _e.push(he);
|
|
15317
|
+
const ot = _e.length ? ` — ${_e.join(" • ")}` : "";
|
|
15321
15318
|
return /* @__PURE__ */ u.jsxs("option", { value: $.checkpointId, children: [
|
|
15322
15319
|
le($.createdAt),
|
|
15323
15320
|
ot
|
|
@@ -15340,7 +15337,7 @@ function Ki({
|
|
|
15340
15337
|
style: { height: "100%" },
|
|
15341
15338
|
messages: w,
|
|
15342
15339
|
isStreaming: j,
|
|
15343
|
-
streamingAssistantId:
|
|
15340
|
+
streamingAssistantId: fe,
|
|
15344
15341
|
streamingDebounceMs: typeof s == "number" ? s : o,
|
|
15345
15342
|
followNewMessages: i,
|
|
15346
15343
|
layoutSize: ar,
|
|
@@ -15359,7 +15356,7 @@ function Ki({
|
|
|
15359
15356
|
onEdit: Ar,
|
|
15360
15357
|
onRegenerate: Nr,
|
|
15361
15358
|
onCancelEdit: cr,
|
|
15362
|
-
emptyMessage:
|
|
15359
|
+
emptyMessage: Ne ?? void 0,
|
|
15363
15360
|
isNavigatingCheckpoint: qn,
|
|
15364
15361
|
activeInterrupt: W,
|
|
15365
15362
|
disableInterruptActions: ce,
|
|
@@ -15555,7 +15552,7 @@ var Il = "ScrollArea", [pp, mR] = $n(Il), [IT, un] = pp(Il), mp = g.forwardRef(
|
|
|
15555
15552
|
onCornerWidthChange: w,
|
|
15556
15553
|
onCornerHeightChange: T,
|
|
15557
15554
|
children: /* @__PURE__ */ u.jsx(
|
|
15558
|
-
|
|
15555
|
+
Ie.div,
|
|
15559
15556
|
{
|
|
15560
15557
|
dir: M,
|
|
15561
15558
|
...i,
|
|
@@ -15588,7 +15585,7 @@ var gp = "ScrollAreaViewport", xp = g.forwardRef(
|
|
|
15588
15585
|
}
|
|
15589
15586
|
),
|
|
15590
15587
|
/* @__PURE__ */ u.jsx(
|
|
15591
|
-
|
|
15588
|
+
Ie.div,
|
|
15592
15589
|
{
|
|
15593
15590
|
"data-radix-scroll-area-viewport": "",
|
|
15594
15591
|
...s,
|
|
@@ -15877,7 +15874,7 @@ var AT = g.forwardRef((e, t) => {
|
|
|
15877
15874
|
onThumbPositionChange: S,
|
|
15878
15875
|
onThumbPointerDown: Ot(a),
|
|
15879
15876
|
children: /* @__PURE__ */ u.jsx(
|
|
15880
|
-
|
|
15877
|
+
Ie.div,
|
|
15881
15878
|
{
|
|
15882
15879
|
...h,
|
|
15883
15880
|
ref: v,
|
|
@@ -15919,7 +15916,7 @@ var AT = g.forwardRef((e, t) => {
|
|
|
15919
15916
|
return a(), f.addEventListener("scroll", h), () => f.removeEventListener("scroll", h);
|
|
15920
15917
|
}
|
|
15921
15918
|
}, [s.viewport, d, a]), /* @__PURE__ */ u.jsx(
|
|
15922
|
-
|
|
15919
|
+
Ie.div,
|
|
15923
15920
|
{
|
|
15924
15921
|
"data-state": i.hasThumb ? "visible" : "hidden",
|
|
15925
15922
|
...o,
|
|
@@ -15957,7 +15954,7 @@ var MT = g.forwardRef((e, t) => {
|
|
|
15957
15954
|
const d = ((f = o.scrollbarY) == null ? void 0 : f.offsetWidth) || 0;
|
|
15958
15955
|
o.onCornerWidthChange(d), i(d);
|
|
15959
15956
|
}), c ? /* @__PURE__ */ u.jsx(
|
|
15960
|
-
|
|
15957
|
+
Ie.div,
|
|
15961
15958
|
{
|
|
15962
15959
|
...r,
|
|
15963
15960
|
ref: t,
|
|
@@ -16141,7 +16138,7 @@ function vu({
|
|
|
16141
16138
|
}
|
|
16142
16139
|
}, z = () => {
|
|
16143
16140
|
N(null), F("");
|
|
16144
|
-
},
|
|
16141
|
+
}, fe = (B, Z) => {
|
|
16145
16142
|
B.key === "Enter" ? K(Z) : B.key === "Escape" && z();
|
|
16146
16143
|
}, W = (B) => {
|
|
16147
16144
|
if (!B) return "";
|
|
@@ -16185,7 +16182,7 @@ function vu({
|
|
|
16185
16182
|
children: [
|
|
16186
16183
|
/* @__PURE__ */ u.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
16187
16184
|
/* @__PURE__ */ u.jsx("div", { className: "flex-1 min-w-0", children: A === B.threadId ? /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2", onClick: (Z) => Z.stopPropagation(), children: [
|
|
16188
|
-
/* @__PURE__ */ u.jsx(Is, { value: M, onChange: (Z) => F(Z.target.value), onKeyDown: (Z) =>
|
|
16185
|
+
/* @__PURE__ */ u.jsx(Is, { value: M, onChange: (Z) => F(Z.target.value), onKeyDown: (Z) => fe(Z, B.threadId), className: "h-6 text-sm", autoFocus: !0 }),
|
|
16189
16186
|
/* @__PURE__ */ u.jsx(et, { variant: "ghost", size: "sm", onClick: () => K(B.threadId), className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Pa, { size: 12 }) }),
|
|
16190
16187
|
/* @__PURE__ */ u.jsx(et, { variant: "ghost", size: "sm", onClick: z, className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(Or, { size: 12 }) })
|
|
16191
16188
|
] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
@@ -16322,7 +16319,7 @@ function xR(e) {
|
|
|
16322
16319
|
}), WT(e);
|
|
16323
16320
|
}
|
|
16324
16321
|
var VT = "Label", Pp = g.forwardRef((e, t) => /* @__PURE__ */ u.jsx(
|
|
16325
|
-
|
|
16322
|
+
Ie.label,
|
|
16326
16323
|
{
|
|
16327
16324
|
...e,
|
|
16328
16325
|
ref: t,
|
|
@@ -16370,7 +16367,7 @@ var hi = "Switch", [qT, yR] = $n(hi), [GT, YT] = qT(hi), Dp = g.forwardRef(
|
|
|
16370
16367
|
});
|
|
16371
16368
|
return /* @__PURE__ */ u.jsxs(GT, { scope: n, checked: x, disabled: a, children: [
|
|
16372
16369
|
/* @__PURE__ */ u.jsx(
|
|
16373
|
-
|
|
16370
|
+
Ie.button,
|
|
16374
16371
|
{
|
|
16375
16372
|
type: "button",
|
|
16376
16373
|
role: "switch",
|
|
@@ -16409,7 +16406,7 @@ var Lp = "SwitchThumb", Fp = g.forwardRef(
|
|
|
16409
16406
|
(e, t) => {
|
|
16410
16407
|
const { __scopeSwitch: n, ...r } = e, o = YT(Lp, n);
|
|
16411
16408
|
return /* @__PURE__ */ u.jsx(
|
|
16412
|
-
|
|
16409
|
+
Ie.span,
|
|
16413
16410
|
{
|
|
16414
16411
|
"data-state": zp(o.checked),
|
|
16415
16412
|
"data-disabled": o.disabled ? "" : void 0,
|
|
@@ -16500,7 +16497,7 @@ var Hp = Object.freeze({
|
|
|
16500
16497
|
wordWrap: "normal"
|
|
16501
16498
|
}), ZT = "VisuallyHidden", QT = g.forwardRef(
|
|
16502
16499
|
(e, t) => /* @__PURE__ */ u.jsx(
|
|
16503
|
-
|
|
16500
|
+
Ie.span,
|
|
16504
16501
|
{
|
|
16505
16502
|
...e,
|
|
16506
16503
|
ref: t,
|
|
@@ -16611,7 +16608,7 @@ var Wp = "SelectTrigger", Vp = g.forwardRef(
|
|
|
16611
16608
|
});
|
|
16612
16609
|
};
|
|
16613
16610
|
return /* @__PURE__ */ u.jsx(dh, { asChild: !0, ...s, children: /* @__PURE__ */ u.jsx(
|
|
16614
|
-
|
|
16611
|
+
Ie.button,
|
|
16615
16612
|
{
|
|
16616
16613
|
type: "button",
|
|
16617
16614
|
role: "combobox",
|
|
@@ -16649,7 +16646,7 @@ var Kp = "SelectValue", qp = g.forwardRef(
|
|
|
16649
16646
|
return Nt(() => {
|
|
16650
16647
|
c(d);
|
|
16651
16648
|
}, [c, d]), /* @__PURE__ */ u.jsx(
|
|
16652
|
-
|
|
16649
|
+
Ie.span,
|
|
16653
16650
|
{
|
|
16654
16651
|
...a,
|
|
16655
16652
|
ref: f,
|
|
@@ -16663,7 +16660,7 @@ qp.displayName = Kp;
|
|
|
16663
16660
|
var ik = "SelectIcon", Gp = g.forwardRef(
|
|
16664
16661
|
(e, t) => {
|
|
16665
16662
|
const { __scopeSelect: n, children: r, ...o } = e;
|
|
16666
|
-
return /* @__PURE__ */ u.jsx(
|
|
16663
|
+
return /* @__PURE__ */ u.jsx(Ie.span, { "aria-hidden": !0, ...o, ref: t, children: r || "▼" });
|
|
16667
16664
|
}
|
|
16668
16665
|
);
|
|
16669
16666
|
Gp.displayName = ik;
|
|
@@ -16750,7 +16747,7 @@ var gn = 10, [Jp, ir] = Yr(Cr), lk = "SelectContentImpl", ck = $r("SelectContent
|
|
|
16750
16747
|
window.removeEventListener("blur", G), window.removeEventListener("resize", G);
|
|
16751
16748
|
};
|
|
16752
16749
|
}, [K]);
|
|
16753
|
-
const [
|
|
16750
|
+
const [fe, W] = mm((G) => {
|
|
16754
16751
|
const O = q().filter((ge) => !ge.disabled), X = O.find((ge) => ge.ref.current === document.activeElement), oe = gm(O, G, X);
|
|
16755
16752
|
oe && setTimeout(() => oe.ref.current.focus());
|
|
16756
16753
|
}), ce = g.useCallback(
|
|
@@ -16792,7 +16789,7 @@ var gn = 10, [Jp, ir] = Yr(Cr), lk = "SelectContentImpl", ck = $r("SelectContent
|
|
|
16792
16789
|
selectedItemText: M,
|
|
16793
16790
|
position: r,
|
|
16794
16791
|
isPositioned: j,
|
|
16795
|
-
searchRef:
|
|
16792
|
+
searchRef: fe,
|
|
16796
16793
|
children: /* @__PURE__ */ u.jsx(Js, { as: ck, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
|
|
16797
16794
|
Gs,
|
|
16798
16795
|
{
|
|
@@ -16878,7 +16875,7 @@ var uk = "SelectItemAlignedPosition", Qp = g.forwardRef((e, t) => {
|
|
|
16878
16875
|
]);
|
|
16879
16876
|
a.style.minWidth = Ue + "px", a.style.right = at + "px";
|
|
16880
16877
|
}
|
|
16881
|
-
const F = h(), q = window.innerHeight - gn * 2, j = y.scrollHeight, _ = window.getComputedStyle(c), D = parseInt(_.borderTopWidth, 10), L = parseInt(_.paddingTop, 10), ne = parseInt(_.borderBottomWidth, 10), K = parseInt(_.paddingBottom, 10), z = D + L + j + K + ne,
|
|
16878
|
+
const F = h(), q = window.innerHeight - gn * 2, j = y.scrollHeight, _ = window.getComputedStyle(c), D = parseInt(_.borderTopWidth, 10), L = parseInt(_.paddingTop, 10), ne = parseInt(_.borderBottomWidth, 10), K = parseInt(_.paddingBottom, 10), z = D + L + j + K + ne, fe = Math.min(v.offsetHeight * 5, z), W = window.getComputedStyle(y), ce = parseInt(W.paddingTop, 10), B = parseInt(W.paddingBottom, 10), Z = k.top + k.height / 2 - gn, we = q - Z, xe = v.offsetHeight / 2, G = v.offsetTop + xe, O = D + L + G, X = z - O;
|
|
16882
16879
|
if (O <= Z) {
|
|
16883
16880
|
const ge = F.length > 0 && v === F[F.length - 1].ref.current;
|
|
16884
16881
|
a.style.bottom = "0px";
|
|
@@ -16898,7 +16895,7 @@ var uk = "SelectItemAlignedPosition", Qp = g.forwardRef((e, t) => {
|
|
|
16898
16895
|
) + X;
|
|
16899
16896
|
a.style.height = re + "px", y.scrollTop = O - Z + y.offsetTop;
|
|
16900
16897
|
}
|
|
16901
|
-
a.style.margin = `${gn}px 0`, a.style.minHeight =
|
|
16898
|
+
a.style.margin = `${gn}px 0`, a.style.minHeight = fe + "px", a.style.maxHeight = q + "px", r == null || r(), requestAnimationFrame(() => p.current = !0);
|
|
16902
16899
|
}
|
|
16903
16900
|
}, [
|
|
16904
16901
|
h,
|
|
@@ -16941,7 +16938,7 @@ var uk = "SelectItemAlignedPosition", Qp = g.forwardRef((e, t) => {
|
|
|
16941
16938
|
zIndex: T
|
|
16942
16939
|
},
|
|
16943
16940
|
children: /* @__PURE__ */ u.jsx(
|
|
16944
|
-
|
|
16941
|
+
Ie.div,
|
|
16945
16942
|
{
|
|
16946
16943
|
...o,
|
|
16947
16944
|
ref: f,
|
|
@@ -17004,7 +17001,7 @@ var [fk, jl] = Yr(Cr, {}), ka = "SelectViewport", em = g.forwardRef(
|
|
|
17004
17001
|
}
|
|
17005
17002
|
),
|
|
17006
17003
|
/* @__PURE__ */ u.jsx(pi.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
|
|
17007
|
-
|
|
17004
|
+
Ie.div,
|
|
17008
17005
|
{
|
|
17009
17006
|
"data-radix-select-viewport": "",
|
|
17010
17007
|
role: "presentation",
|
|
@@ -17046,14 +17043,14 @@ em.displayName = ka;
|
|
|
17046
17043
|
var tm = "SelectGroup", [hk, pk] = Yr(tm), mk = g.forwardRef(
|
|
17047
17044
|
(e, t) => {
|
|
17048
17045
|
const { __scopeSelect: n, ...r } = e, o = Mn();
|
|
17049
|
-
return /* @__PURE__ */ u.jsx(hk, { scope: n, id: o, children: /* @__PURE__ */ u.jsx(
|
|
17046
|
+
return /* @__PURE__ */ u.jsx(hk, { scope: n, id: o, children: /* @__PURE__ */ u.jsx(Ie.div, { role: "group", "aria-labelledby": o, ...r, ref: t }) });
|
|
17050
17047
|
}
|
|
17051
17048
|
);
|
|
17052
17049
|
mk.displayName = tm;
|
|
17053
17050
|
var nm = "SelectLabel", rm = g.forwardRef(
|
|
17054
17051
|
(e, t) => {
|
|
17055
17052
|
const { __scopeSelect: n, ...r } = e, o = pk(nm, n);
|
|
17056
|
-
return /* @__PURE__ */ u.jsx(
|
|
17053
|
+
return /* @__PURE__ */ u.jsx(Ie.div, { id: o.id, ...r, ref: t });
|
|
17057
17054
|
}
|
|
17058
17055
|
);
|
|
17059
17056
|
rm.displayName = nm;
|
|
@@ -17097,7 +17094,7 @@ var _s = "SelectItem", [gk, om] = Yr(_s), sm = g.forwardRef(
|
|
|
17097
17094
|
disabled: o,
|
|
17098
17095
|
textValue: d,
|
|
17099
17096
|
children: /* @__PURE__ */ u.jsx(
|
|
17100
|
-
|
|
17097
|
+
Ie.div,
|
|
17101
17098
|
{
|
|
17102
17099
|
role: "option",
|
|
17103
17100
|
"aria-labelledby": y,
|
|
@@ -17156,7 +17153,7 @@ var so = "SelectItemText", im = g.forwardRef(
|
|
|
17156
17153
|
[l.disabled, l.value, p]
|
|
17157
17154
|
), { onNativeOptionAdd: y, onNativeOptionRemove: v } = c;
|
|
17158
17155
|
return Nt(() => (y(m), () => v(m)), [y, v, m]), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
|
|
17159
|
-
/* @__PURE__ */ u.jsx(
|
|
17156
|
+
/* @__PURE__ */ u.jsx(Ie.span, { id: l.textId, ...s, ref: h }),
|
|
17160
17157
|
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? Ms.createPortal(s.children, i.valueNode) : null
|
|
17161
17158
|
] });
|
|
17162
17159
|
}
|
|
@@ -17165,7 +17162,7 @@ im.displayName = so;
|
|
|
17165
17162
|
var am = "SelectItemIndicator", lm = g.forwardRef(
|
|
17166
17163
|
(e, t) => {
|
|
17167
17164
|
const { __scopeSelect: n, ...r } = e;
|
|
17168
|
-
return om(am, n).isSelected ? /* @__PURE__ */ u.jsx(
|
|
17165
|
+
return om(am, n).isSelected ? /* @__PURE__ */ u.jsx(Ie.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
17169
17166
|
}
|
|
17170
17167
|
);
|
|
17171
17168
|
lm.displayName = am;
|
|
@@ -17226,7 +17223,7 @@ var dm = g.forwardRef((e, t) => {
|
|
|
17226
17223
|
const c = a().find((f) => f.ref.current === document.activeElement);
|
|
17227
17224
|
(d = c == null ? void 0 : c.ref.current) == null || d.scrollIntoView({ block: "nearest" });
|
|
17228
17225
|
}, [a]), /* @__PURE__ */ u.jsx(
|
|
17229
|
-
|
|
17226
|
+
Ie.div,
|
|
17230
17227
|
{
|
|
17231
17228
|
"aria-hidden": !0,
|
|
17232
17229
|
...o,
|
|
@@ -17247,7 +17244,7 @@ var dm = g.forwardRef((e, t) => {
|
|
|
17247
17244
|
}), xk = "SelectSeparator", fm = g.forwardRef(
|
|
17248
17245
|
(e, t) => {
|
|
17249
17246
|
const { __scopeSelect: n, ...r } = e;
|
|
17250
|
-
return /* @__PURE__ */ u.jsx(
|
|
17247
|
+
return /* @__PURE__ */ u.jsx(Ie.div, { "aria-hidden": !0, ...r, ref: t });
|
|
17251
17248
|
}
|
|
17252
17249
|
);
|
|
17253
17250
|
fm.displayName = xk;
|
|
@@ -17273,7 +17270,7 @@ var vk = "SelectBubbleInput", hm = g.forwardRef(
|
|
|
17273
17270
|
d.call(a, t), a.dispatchEvent(f);
|
|
17274
17271
|
}
|
|
17275
17272
|
}, [i, t]), /* @__PURE__ */ u.jsx(
|
|
17276
|
-
|
|
17273
|
+
Ie.select,
|
|
17277
17274
|
{
|
|
17278
17275
|
...n,
|
|
17279
17276
|
style: { ...Hp, ...n.style },
|
|
@@ -17421,7 +17418,7 @@ Ak.displayName = Cm.displayName;
|
|
|
17421
17418
|
var Nk = "Separator", Su = "horizontal", _k = ["horizontal", "vertical"], Rm = g.forwardRef((e, t) => {
|
|
17422
17419
|
const { decorative: n, orientation: r = Su, ...o } = e, s = jk(r) ? r : Su, a = n ? { role: "none" } : { "aria-orientation": s === "vertical" ? s : void 0, role: "separator" };
|
|
17423
17420
|
return /* @__PURE__ */ u.jsx(
|
|
17424
|
-
|
|
17421
|
+
Ie.div,
|
|
17425
17422
|
{
|
|
17426
17423
|
"data-orientation": s,
|
|
17427
17424
|
...a,
|