teodor-new-chat-ui 4.3.643 → 4.3.646
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 +800 -807
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -10,7 +10,7 @@ import { cva as Ec } from "class-variance-authority";
|
|
|
10
10
|
import * as Ac from "react-dom";
|
|
11
11
|
import Nc from "react-dom";
|
|
12
12
|
import { X as Xo, XCircle as yp, CheckCircle2 as bp, Loader2 as An, ChevronUp as wp, ChevronDown as vp, Loader as Va, ChevronLeft as Sp, ChevronRight as hr, Copy as jc, Edit as _c, RotateCcw as Pc, Bot as Ws, Wrench as Cp, User as kp, Check as Oc, Circle as Tp, Square as Ip, Send as Rp, Paperclip as Ka, Plus as Ep, FileSpreadsheet as Ap, Edit3 as oo, Search as Np, MoreVertical as jp, Share2 as _p, Trash2 as Pp, MessageSquare as Mc, MoreHorizontal as Op, Maximize2 as Mp, Minimize2 as Dp, History as Lp } from "lucide-react";
|
|
13
|
-
function
|
|
13
|
+
function Sk(...e) {
|
|
14
14
|
return Rc(Ic(e));
|
|
15
15
|
}
|
|
16
16
|
function Dc(e, t) {
|
|
@@ -1747,22 +1747,22 @@ pt.getAdapter = nu.getAdapter;
|
|
|
1747
1747
|
pt.HttpStatusCode = wi;
|
|
1748
1748
|
pt.default = pt;
|
|
1749
1749
|
const {
|
|
1750
|
-
Axios:
|
|
1751
|
-
AxiosError:
|
|
1752
|
-
CanceledError:
|
|
1750
|
+
Axios: Tk,
|
|
1751
|
+
AxiosError: Ik,
|
|
1752
|
+
CanceledError: Rk,
|
|
1753
1753
|
isCancel: cl,
|
|
1754
|
-
CancelToken:
|
|
1755
|
-
VERSION:
|
|
1756
|
-
all:
|
|
1757
|
-
Cancel:
|
|
1758
|
-
isAxiosError:
|
|
1759
|
-
spread:
|
|
1760
|
-
toFormData:
|
|
1761
|
-
AxiosHeaders:
|
|
1762
|
-
HttpStatusCode:
|
|
1763
|
-
formToJSON:
|
|
1764
|
-
getAdapter:
|
|
1765
|
-
mergeConfig:
|
|
1754
|
+
CancelToken: Ek,
|
|
1755
|
+
VERSION: Ak,
|
|
1756
|
+
all: Nk,
|
|
1757
|
+
Cancel: jk,
|
|
1758
|
+
isAxiosError: _k,
|
|
1759
|
+
spread: Pk,
|
|
1760
|
+
toFormData: Ok,
|
|
1761
|
+
AxiosHeaders: Mk,
|
|
1762
|
+
HttpStatusCode: Dk,
|
|
1763
|
+
formToJSON: Lk,
|
|
1764
|
+
getAdapter: $k,
|
|
1765
|
+
mergeConfig: Fk
|
|
1766
1766
|
} = pt, Kn = {
|
|
1767
1767
|
authToken: "authToken",
|
|
1768
1768
|
authTokenExpiresAt: "authTokenExpiresAt",
|
|
@@ -3693,7 +3693,7 @@ function Gr(e) {
|
|
|
3693
3693
|
return "";
|
|
3694
3694
|
}
|
|
3695
3695
|
}
|
|
3696
|
-
function
|
|
3696
|
+
function zk(e) {
|
|
3697
3697
|
const t = Gr(e);
|
|
3698
3698
|
return typeof e == "string" && Rg(e) ? { content: e, isMarkdown: !0 } : { content: t, isMarkdown: !1 };
|
|
3699
3699
|
}
|
|
@@ -3769,14 +3769,6 @@ function Yg(e) {
|
|
|
3769
3769
|
value: t
|
|
3770
3770
|
};
|
|
3771
3771
|
}
|
|
3772
|
-
function Xg(e, t) {
|
|
3773
|
-
for (let n = t + 1; n < e.length; n++) {
|
|
3774
|
-
const r = e[n];
|
|
3775
|
-
if (!(r.__syntheticStreaming || r.id === "thinking-assistant") && (r.role === "user" || r.role === "assistant"))
|
|
3776
|
-
return !0;
|
|
3777
|
-
}
|
|
3778
|
-
return !1;
|
|
3779
|
-
}
|
|
3780
3772
|
function $o(e) {
|
|
3781
3773
|
var s;
|
|
3782
3774
|
const t = e.map((i) => Ui(i)).filter(Boolean), n = /* @__PURE__ */ new Map();
|
|
@@ -3789,16 +3781,17 @@ function $o(e) {
|
|
|
3789
3781
|
if (i.role !== "assistant" || !Array.isArray(i.toolCalls) || i.toolCalls.length === 0)
|
|
3790
3782
|
return i;
|
|
3791
3783
|
const c = i.toolCalls.map((l) => {
|
|
3792
|
-
var
|
|
3793
|
-
const u = l.id || l.toolCallId || l.tool_call_id, f = u ? n.get(u) : void 0, h = f && Array.isArray(f.content) ? (
|
|
3784
|
+
var g;
|
|
3785
|
+
const u = l.id || l.toolCallId || l.tool_call_id, f = u ? n.get(u) : void 0, h = f && Array.isArray(f.content) ? (g = f.content.find((x) => x.type === "text")) == null ? void 0 : g.text : typeof (f == null ? void 0 : f.content) == "string" ? f == null ? void 0 : f.content : void 0;
|
|
3794
3786
|
let p = (f == null ? void 0 : f.artifact) ?? l.artifact;
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3787
|
+
f && t.indexOf(f);
|
|
3788
|
+
const m = f ? "completed" : l.status || "running";
|
|
3789
|
+
if (p && typeof p == "object") {
|
|
3790
|
+
const x = p.metadata || {};
|
|
3791
|
+
x.status !== "failed" && (p = {
|
|
3799
3792
|
...p,
|
|
3800
3793
|
metadata: {
|
|
3801
|
-
...
|
|
3794
|
+
...x,
|
|
3802
3795
|
status: "in_progress"
|
|
3803
3796
|
}
|
|
3804
3797
|
});
|
|
@@ -3806,7 +3799,7 @@ function $o(e) {
|
|
|
3806
3799
|
return {
|
|
3807
3800
|
...l,
|
|
3808
3801
|
id: u || l.id,
|
|
3809
|
-
status:
|
|
3802
|
+
status: m,
|
|
3810
3803
|
content: h,
|
|
3811
3804
|
artifact: p
|
|
3812
3805
|
};
|
|
@@ -3848,7 +3841,7 @@ function $o(e) {
|
|
|
3848
3841
|
function Ar(e, t, n) {
|
|
3849
3842
|
return t < 0 || t >= e.length ? e : [...e.slice(0, t), n, ...e.slice(t + 1)];
|
|
3850
3843
|
}
|
|
3851
|
-
function
|
|
3844
|
+
function Xg(e) {
|
|
3852
3845
|
let t = !1;
|
|
3853
3846
|
const n = e.map((r) => {
|
|
3854
3847
|
var s;
|
|
@@ -3857,7 +3850,7 @@ function Jg(e) {
|
|
|
3857
3850
|
});
|
|
3858
3851
|
return t ? n : e;
|
|
3859
3852
|
}
|
|
3860
|
-
function
|
|
3853
|
+
function Jg(e, t, n) {
|
|
3861
3854
|
for (let r = e.length - 1; r >= 0; r--)
|
|
3862
3855
|
if (e[r].role === "assistant") {
|
|
3863
3856
|
const s = { ...e[r], checkpointId: t, checkpointNs: n ?? void 0 };
|
|
@@ -3865,7 +3858,7 @@ function Zg(e, t, n) {
|
|
|
3865
3858
|
}
|
|
3866
3859
|
return e;
|
|
3867
3860
|
}
|
|
3868
|
-
function
|
|
3861
|
+
function Zg(e) {
|
|
3869
3862
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
3870
3863
|
return e.slice().sort((r, o) => {
|
|
3871
3864
|
const s = r.createdAt ? Date.parse(r.createdAt) : 0, i = o.createdAt ? Date.parse(o.createdAt) : 0;
|
|
@@ -3879,7 +3872,7 @@ function Qg(e) {
|
|
|
3879
3872
|
return s - i;
|
|
3880
3873
|
}), n;
|
|
3881
3874
|
}
|
|
3882
|
-
const
|
|
3875
|
+
const Qg = {
|
|
3883
3876
|
messages: [],
|
|
3884
3877
|
assemblingId: null,
|
|
3885
3878
|
lastCheckpointId: null,
|
|
@@ -3888,7 +3881,7 @@ const ex = {
|
|
|
3888
3881
|
pendingInterrupt: null,
|
|
3889
3882
|
values: {}
|
|
3890
3883
|
};
|
|
3891
|
-
function
|
|
3884
|
+
function ex(e, t) {
|
|
3892
3885
|
var n;
|
|
3893
3886
|
switch (t.type) {
|
|
3894
3887
|
case "reset":
|
|
@@ -3943,8 +3936,8 @@ function tx(e, t) {
|
|
|
3943
3936
|
return e;
|
|
3944
3937
|
}
|
|
3945
3938
|
}
|
|
3946
|
-
function
|
|
3947
|
-
const [t, n] = hp(
|
|
3939
|
+
function tx(e = []) {
|
|
3940
|
+
const [t, n] = hp(ex, { ...Qg, messages: e }), r = ve([]), o = ve(null), s = ve(null), i = ne(() => {
|
|
3948
3941
|
o.current !== null && typeof window < "u" && window.cancelAnimationFrame(o.current), s.current !== null && clearTimeout(s.current), o.current = null, s.current = null;
|
|
3949
3942
|
const u = r.current;
|
|
3950
3943
|
u.length && (r.current = [], n({ type: "batch", payload: { events: u } }));
|
|
@@ -3967,17 +3960,17 @@ function nx(e = []) {
|
|
|
3967
3960
|
}
|
|
3968
3961
|
function gl(e, t) {
|
|
3969
3962
|
if (t.type === "tool.start")
|
|
3970
|
-
return
|
|
3963
|
+
return ox(e, t);
|
|
3971
3964
|
if (t.type === "tool.progress")
|
|
3972
|
-
return
|
|
3965
|
+
return sx(e, t);
|
|
3973
3966
|
if (t.type === "tool.end") {
|
|
3974
3967
|
const n = { ...t };
|
|
3975
|
-
return delete n.artifact,
|
|
3968
|
+
return delete n.artifact, ix(e, n);
|
|
3976
3969
|
}
|
|
3977
3970
|
if (t.type === "artifact.update")
|
|
3978
|
-
return
|
|
3971
|
+
return ax(e, t);
|
|
3979
3972
|
if (t.type === "checkpoint") {
|
|
3980
|
-
const n = t.checkpointNs ?? e.lastCheckpointNs ?? null, r =
|
|
3973
|
+
const n = t.checkpointNs ?? e.lastCheckpointNs ?? null, r = Jg(e.messages, t.checkpointId, n);
|
|
3981
3974
|
return { ...e, lastCheckpointId: t.checkpointId, lastCheckpointNs: n, messages: r };
|
|
3982
3975
|
}
|
|
3983
3976
|
if (t.type === "error") {
|
|
@@ -3990,7 +3983,7 @@ function gl(e, t) {
|
|
|
3990
3983
|
return { ...e, messages: [...e.messages, n] };
|
|
3991
3984
|
}
|
|
3992
3985
|
if (t.type === "state_history") {
|
|
3993
|
-
const n = pr(t), r = n.interrupt, o = n.latest, s =
|
|
3986
|
+
const n = pr(t), r = n.interrupt, o = n.latest, s = Zg(n.checkpoints);
|
|
3994
3987
|
let i = s.length ? s : o == null ? void 0 : o.messages;
|
|
3995
3988
|
if (i) {
|
|
3996
3989
|
if (e.assemblingId && !i.some((a) => a.id === e.assemblingId)) {
|
|
@@ -3999,7 +3992,7 @@ function gl(e, t) {
|
|
|
3999
3992
|
}
|
|
4000
3993
|
i = $o(i);
|
|
4001
3994
|
} else
|
|
4002
|
-
i = r === null ?
|
|
3995
|
+
i = r === null ? Xg(e.messages) : e.messages;
|
|
4003
3996
|
return {
|
|
4004
3997
|
...e,
|
|
4005
3998
|
messages: i,
|
|
@@ -4050,7 +4043,7 @@ function Ki(e, t) {
|
|
|
4050
4043
|
}
|
|
4051
4044
|
return -1;
|
|
4052
4045
|
}
|
|
4053
|
-
function
|
|
4046
|
+
function nx(e, t) {
|
|
4054
4047
|
var n;
|
|
4055
4048
|
if (!t) return -1;
|
|
4056
4049
|
for (let r = e.length - 1; r >= 0; r--) {
|
|
@@ -4061,14 +4054,14 @@ function rx(e, t) {
|
|
|
4061
4054
|
return -1;
|
|
4062
4055
|
}
|
|
4063
4056
|
function qi(e, t, n) {
|
|
4064
|
-
const r =
|
|
4057
|
+
const r = nx(e, t);
|
|
4065
4058
|
if (r === -1) return e;
|
|
4066
4059
|
const o = e[r], s = (o.toolCalls ?? []).map(
|
|
4067
4060
|
(i) => i.id === t ? { ...i, ...n } : i
|
|
4068
4061
|
);
|
|
4069
4062
|
return Ar(e, r, { ...o, toolCalls: s });
|
|
4070
4063
|
}
|
|
4071
|
-
function
|
|
4064
|
+
function rx(e) {
|
|
4072
4065
|
if (e == null)
|
|
4073
4066
|
return [];
|
|
4074
4067
|
const t = wr(e);
|
|
@@ -4087,7 +4080,7 @@ function Gi(e, t) {
|
|
|
4087
4080
|
additionalKwargs: o
|
|
4088
4081
|
};
|
|
4089
4082
|
}
|
|
4090
|
-
function
|
|
4083
|
+
function ox(e, t) {
|
|
4091
4084
|
const n = Vi(t), r = t.name ?? t.tool ?? void 0, o = mu(t), s = {
|
|
4092
4085
|
type: t.type,
|
|
4093
4086
|
content: `Starting ${r ?? "tool"}...`,
|
|
@@ -4115,7 +4108,7 @@ function sx(e, t) {
|
|
|
4115
4108
|
const c = gu(o, n, r, t.args), l = Gi(c, s);
|
|
4116
4109
|
return { ...e, messages: [...i, l] };
|
|
4117
4110
|
}
|
|
4118
|
-
function
|
|
4111
|
+
function sx(e, t) {
|
|
4119
4112
|
var l, u, f;
|
|
4120
4113
|
const n = t.id ?? t.callId ?? ((l = t.data) == null ? void 0 : l.id) ?? Vi(t);
|
|
4121
4114
|
if (!n) return e;
|
|
@@ -4135,7 +4128,7 @@ function ix(e, t) {
|
|
|
4135
4128
|
const c = Gi(i[a], s);
|
|
4136
4129
|
return { ...e, messages: Ar(i, a, c) };
|
|
4137
4130
|
}
|
|
4138
|
-
function
|
|
4131
|
+
function ix(e, t) {
|
|
4139
4132
|
const n = Vi(t), r = mu(t);
|
|
4140
4133
|
let o = e.messages;
|
|
4141
4134
|
const s = t.content ?? t.error ?? null, i = typeof s == "string" ? s : JSON.stringify(s), a = wr(s);
|
|
@@ -4150,7 +4143,7 @@ function ax(e, t) {
|
|
|
4150
4143
|
const y = t.name ?? t.tool ?? void 0;
|
|
4151
4144
|
o = [...o, gu(r, n, y, {})], l = o.length - 1;
|
|
4152
4145
|
}
|
|
4153
|
-
const u = o[l], f =
|
|
4146
|
+
const u = o[l], f = rx(s), h = [...u.content, ...f], p = {
|
|
4154
4147
|
type: t.type,
|
|
4155
4148
|
content: typeof t.content == "string" ? t.content : void 0,
|
|
4156
4149
|
seq: t.seq ?? null,
|
|
@@ -4169,7 +4162,7 @@ function ax(e, t) {
|
|
|
4169
4162
|
};
|
|
4170
4163
|
return { ...e, messages: Ar(o, l, x) };
|
|
4171
4164
|
}
|
|
4172
|
-
function
|
|
4165
|
+
function ax(e, t) {
|
|
4173
4166
|
const n = t.artifactId ?? t.artifact_id, r = Gg(e.messages, n);
|
|
4174
4167
|
if (!r) {
|
|
4175
4168
|
const i = {
|
|
@@ -4209,7 +4202,7 @@ function lx(e, t) {
|
|
|
4209
4202
|
};
|
|
4210
4203
|
}
|
|
4211
4204
|
const xl = 120;
|
|
4212
|
-
function
|
|
4205
|
+
function lx(e) {
|
|
4213
4206
|
if (!Array.isArray(e))
|
|
4214
4207
|
return "";
|
|
4215
4208
|
const t = e.filter((r) => !!(r && r.type === "text")).map((r) => (r.text ?? "").trim()).filter(Boolean);
|
|
@@ -4218,10 +4211,10 @@ function cx(e) {
|
|
|
4218
4211
|
const n = t.join(" ").replace(/\s+/g, " ").trim();
|
|
4219
4212
|
return n ? n.length > xl ? `${n.slice(0, xl - 3)}…` : n : "";
|
|
4220
4213
|
}
|
|
4221
|
-
function
|
|
4222
|
-
return
|
|
4214
|
+
function cx(e) {
|
|
4215
|
+
return lx(e.content) || "";
|
|
4223
4216
|
}
|
|
4224
|
-
function
|
|
4217
|
+
function ux(e) {
|
|
4225
4218
|
const t = /* @__PURE__ */ new Map(), n = [], r = /* @__PURE__ */ new Map(), o = [];
|
|
4226
4219
|
for (let l = 0; l < e.length; l++) {
|
|
4227
4220
|
const u = e[l], f = u.checkpointId, h = f ?? `cp-${l}`, p = u.metadata ?? {}, m = typeof p.step == "number" ? p.step : null, g = typeof p.source == "string" ? p.source : null;
|
|
@@ -4241,7 +4234,7 @@ function dx(e) {
|
|
|
4241
4234
|
userMessageId: x
|
|
4242
4235
|
};
|
|
4243
4236
|
if (o.push(C), f && t.set(f, C), f && y) {
|
|
4244
|
-
const v =
|
|
4237
|
+
const v = cx(y);
|
|
4245
4238
|
v && r.set(f, v);
|
|
4246
4239
|
}
|
|
4247
4240
|
n.push({
|
|
@@ -4294,7 +4287,7 @@ function dx(e) {
|
|
|
4294
4287
|
}
|
|
4295
4288
|
};
|
|
4296
4289
|
}
|
|
4297
|
-
function
|
|
4290
|
+
function dx(e, t, n) {
|
|
4298
4291
|
if (!e)
|
|
4299
4292
|
return { attemptCount: 1, attemptIndex: 0, attempts: [] };
|
|
4300
4293
|
const r = n.getMessageAttempts(e);
|
|
@@ -4311,10 +4304,10 @@ function fx(e, t, n) {
|
|
|
4311
4304
|
attempts: r
|
|
4312
4305
|
};
|
|
4313
4306
|
}
|
|
4314
|
-
function
|
|
4315
|
-
return De(() =>
|
|
4307
|
+
function fx(e) {
|
|
4308
|
+
return De(() => ux(e), [e]);
|
|
4316
4309
|
}
|
|
4317
|
-
function
|
|
4310
|
+
function hx({
|
|
4318
4311
|
api: e,
|
|
4319
4312
|
seed: t,
|
|
4320
4313
|
onError: n,
|
|
@@ -4329,7 +4322,7 @@ function px({
|
|
|
4329
4322
|
const [u, f] = ue(null), p = De(
|
|
4330
4323
|
() => pr(u),
|
|
4331
4324
|
[u]
|
|
4332
|
-
).checkpoints, m =
|
|
4325
|
+
).checkpoints, m = fx(p), g = m.timeline, [x, y] = ue(!1), [w, k] = ue(!1), [I, C] = ue(null), v = ve(r), T = ve(null), A = ve(null), N = ve(null), D = ve(null), H = ve(null), q = ve(/* @__PURE__ */ new Map()), W = ve(null);
|
|
4333
4326
|
Pe(() => {
|
|
4334
4327
|
v.current = r;
|
|
4335
4328
|
}, [r]);
|
|
@@ -4528,13 +4521,13 @@ function vs() {
|
|
|
4528
4521
|
if (!e) throw new Error("useThreadState must be used within a ThreadStateProvider");
|
|
4529
4522
|
return e;
|
|
4530
4523
|
}
|
|
4531
|
-
function
|
|
4524
|
+
function px() {
|
|
4532
4525
|
const e = kr(yu);
|
|
4533
4526
|
if (!e)
|
|
4534
4527
|
throw new Error("useThreadStateUpdater must be used within a ThreadStateProvider");
|
|
4535
4528
|
return e;
|
|
4536
4529
|
}
|
|
4537
|
-
function
|
|
4530
|
+
function mx({
|
|
4538
4531
|
children: e,
|
|
4539
4532
|
initialThreadId: t = null,
|
|
4540
4533
|
initialCheckpointId: n = null,
|
|
@@ -4543,7 +4536,7 @@ function gx({
|
|
|
4543
4536
|
isStreaming: s,
|
|
4544
4537
|
onError: i
|
|
4545
4538
|
}) {
|
|
4546
|
-
const { chatApi: a } = Rr(), { currentThreadId: c } = co(), { state: l, seed: u, onEvent: f, dispatch: h } =
|
|
4539
|
+
const { chatApi: a } = Rr(), { currentThreadId: c } = co(), { state: l, seed: u, onEvent: f, dispatch: h } = tx(), {
|
|
4547
4540
|
threadCheckpoints: p,
|
|
4548
4541
|
threadTimeline: m,
|
|
4549
4542
|
checkpointIndex: g,
|
|
@@ -4558,7 +4551,7 @@ function gx({
|
|
|
4558
4551
|
markSkipNextLoad: A,
|
|
4559
4552
|
markStreamPendingThread: N,
|
|
4560
4553
|
resetHistoryState: D
|
|
4561
|
-
} =
|
|
4554
|
+
} = hx({
|
|
4562
4555
|
api: a,
|
|
4563
4556
|
seed: u,
|
|
4564
4557
|
onError: i,
|
|
@@ -4685,23 +4678,23 @@ function yl(e, t) {
|
|
|
4685
4678
|
const r = Gn(n.configurable) ?? n;
|
|
4686
4679
|
return zr(r, t) ?? null;
|
|
4687
4680
|
}
|
|
4688
|
-
function
|
|
4681
|
+
function gx(e) {
|
|
4689
4682
|
const t = yl(e, ["checkpoint_id", "checkpointId"]);
|
|
4690
4683
|
if (!t) return null;
|
|
4691
4684
|
const n = yl(e, ["checkpoint_ns", "checkpointNs"]);
|
|
4692
4685
|
return { checkpointId: t, checkpointNs: n };
|
|
4693
4686
|
}
|
|
4694
|
-
function
|
|
4687
|
+
function xx(e, t) {
|
|
4695
4688
|
const n = typeof e.step == "number" ? e.step : Number.POSITIVE_INFINITY, r = typeof t.step == "number" ? t.step : Number.POSITIVE_INFINITY;
|
|
4696
4689
|
if (n !== r) return n - r;
|
|
4697
4690
|
const o = e.createdAt ? Date.parse(e.createdAt) : 0, s = t.createdAt ? Date.parse(t.createdAt) : 0;
|
|
4698
4691
|
return o - s;
|
|
4699
4692
|
}
|
|
4700
|
-
function
|
|
4701
|
-
const n = [...e].sort(
|
|
4693
|
+
function yx(e, t) {
|
|
4694
|
+
const n = [...e].sort(xx);
|
|
4702
4695
|
for (const r of n) {
|
|
4703
4696
|
if (r.messageId !== t) continue;
|
|
4704
|
-
const o =
|
|
4697
|
+
const o = gx(r.parentConfig);
|
|
4705
4698
|
if (!o)
|
|
4706
4699
|
throw new Error(`Parent checkpoint info missing for message ${t}`);
|
|
4707
4700
|
return o;
|
|
@@ -4709,7 +4702,7 @@ function bx(e, t) {
|
|
|
4709
4702
|
throw new Error(`Message ${t} not found in timeline`);
|
|
4710
4703
|
}
|
|
4711
4704
|
const bu = Cr(null), wu = Cr(!1);
|
|
4712
|
-
function
|
|
4705
|
+
function bx({
|
|
4713
4706
|
children: e,
|
|
4714
4707
|
initialThreadId: t = null,
|
|
4715
4708
|
initialCheckpointId: n = null,
|
|
@@ -4731,7 +4724,7 @@ function wx({
|
|
|
4731
4724
|
onError: s,
|
|
4732
4725
|
onThreadChange: a,
|
|
4733
4726
|
children: /* @__PURE__ */ d.jsx(
|
|
4734
|
-
|
|
4727
|
+
mx,
|
|
4735
4728
|
{
|
|
4736
4729
|
initialThreadId: t,
|
|
4737
4730
|
initialCheckpointId: n,
|
|
@@ -4740,7 +4733,7 @@ function wx({
|
|
|
4740
4733
|
onError: s,
|
|
4741
4734
|
isStreaming: k,
|
|
4742
4735
|
children: /* @__PURE__ */ d.jsx(wu.Provider, { value: !0, children: /* @__PURE__ */ d.jsx(
|
|
4743
|
-
|
|
4736
|
+
wx,
|
|
4744
4737
|
{
|
|
4745
4738
|
api: u,
|
|
4746
4739
|
streamApi: { stream: p, stop: m, clear: g, isStreaming: x, error: y, connected: w },
|
|
@@ -4756,7 +4749,7 @@ function wx({
|
|
|
4756
4749
|
}
|
|
4757
4750
|
);
|
|
4758
4751
|
}
|
|
4759
|
-
function
|
|
4752
|
+
function wx({
|
|
4760
4753
|
children: e,
|
|
4761
4754
|
api: t,
|
|
4762
4755
|
streamApi: n,
|
|
@@ -4780,7 +4773,7 @@ function vx({
|
|
|
4780
4773
|
pushUser: A,
|
|
4781
4774
|
onEvent: N,
|
|
4782
4775
|
messages: D
|
|
4783
|
-
} = vs(), { registerClearThread: H, registerRespondToInterrupt: q } =
|
|
4776
|
+
} = vs(), { registerClearThread: H, registerRespondToInterrupt: q } = px(), W = ne(
|
|
4784
4777
|
(B) => {
|
|
4785
4778
|
g(B), m.current !== B.threadId && ((B.created ?? !m.current) && C(B.threadId), v(B.threadId), p(B.threadId));
|
|
4786
4779
|
},
|
|
@@ -4870,7 +4863,7 @@ function vx({
|
|
|
4870
4863
|
He.length ? nt.messages = He : "messages" in nt || (nt.messages = []);
|
|
4871
4864
|
let xt = (R == null ? void 0 : R.checkpointId) ?? w.id ?? void 0, at = (R == null ? void 0 : R.checkpointNs) ?? w.namespace ?? void 0;
|
|
4872
4865
|
if (We && xe) {
|
|
4873
|
-
const Le =
|
|
4866
|
+
const Le = yx(k, xe);
|
|
4874
4867
|
xt = Le.checkpointId, at = Le.checkpointNs ?? void 0;
|
|
4875
4868
|
}
|
|
4876
4869
|
const Ue = {
|
|
@@ -4908,13 +4901,13 @@ function vu() {
|
|
|
4908
4901
|
if (!e) throw new Error("useStream must be used within StreamingProvider");
|
|
4909
4902
|
return e;
|
|
4910
4903
|
}
|
|
4911
|
-
function
|
|
4904
|
+
function Bk() {
|
|
4912
4905
|
return kr(wu);
|
|
4913
4906
|
}
|
|
4914
4907
|
function bl(e) {
|
|
4915
4908
|
return typeof e == "object" && e !== null;
|
|
4916
4909
|
}
|
|
4917
|
-
function
|
|
4910
|
+
function vx(e, t) {
|
|
4918
4911
|
if (Object.is(e, t)) return !0;
|
|
4919
4912
|
if (!bl(e) || !bl(t)) return !1;
|
|
4920
4913
|
const n = Object.keys(e), r = Object.keys(t);
|
|
@@ -4925,18 +4918,18 @@ function Sx(e, t) {
|
|
|
4925
4918
|
return !1;
|
|
4926
4919
|
return !0;
|
|
4927
4920
|
}
|
|
4928
|
-
function
|
|
4921
|
+
function Sx(e) {
|
|
4929
4922
|
const t = ve(e), n = ve(e);
|
|
4930
|
-
return
|
|
4923
|
+
return vx(t.current, e) || (t.current = e, n.current = e), n.current;
|
|
4931
4924
|
}
|
|
4932
|
-
function
|
|
4925
|
+
function Cx(e) {
|
|
4933
4926
|
const t = e.artifact && typeof e.artifact == "object" ? e.artifact : null, n = !t && e.content && typeof e.content == "object" ? e.content : null, r = t ?? n, o = (r == null ? void 0 : r.task_id) ?? (r == null ? void 0 : r.taskId) ?? null;
|
|
4934
4927
|
return typeof o == "string" ? o : null;
|
|
4935
4928
|
}
|
|
4936
|
-
function
|
|
4929
|
+
function Hk(e) {
|
|
4937
4930
|
const { setCurrentTaskId: t, getCurrentTaskId: n, onToolEnd: r } = e;
|
|
4938
4931
|
return (o) => {
|
|
4939
|
-
const s =
|
|
4932
|
+
const s = Cx(o), i = (n == null ? void 0 : n()) ?? null;
|
|
4940
4933
|
s && s !== i && t(s), r == null || r(o);
|
|
4941
4934
|
};
|
|
4942
4935
|
}
|
|
@@ -4953,7 +4946,7 @@ function Fo({
|
|
|
4953
4946
|
onThreadChange: l,
|
|
4954
4947
|
onToolEnd: u
|
|
4955
4948
|
}) {
|
|
4956
|
-
const f =
|
|
4949
|
+
const f = Sx(t), h = Lr(a), p = Lr(c), m = Lr(i), g = Lr(l), x = Lr(u), y = De(
|
|
4957
4950
|
() => ({
|
|
4958
4951
|
initialThreadId: n,
|
|
4959
4952
|
initialCheckpointId: r,
|
|
@@ -4977,7 +4970,7 @@ function Fo({
|
|
|
4977
4970
|
x
|
|
4978
4971
|
]
|
|
4979
4972
|
);
|
|
4980
|
-
return /* @__PURE__ */ d.jsx(vg, { apiConfig: f, children: /* @__PURE__ */ d.jsx(
|
|
4973
|
+
return /* @__PURE__ */ d.jsx(vg, { apiConfig: f, children: /* @__PURE__ */ d.jsx(bx, { ...y, children: e }) });
|
|
4981
4974
|
}
|
|
4982
4975
|
function Lr(e) {
|
|
4983
4976
|
const t = ve(e);
|
|
@@ -5019,12 +5012,12 @@ function ku(...e) {
|
|
|
5019
5012
|
return t.trim().replace(/\/+$/, "");
|
|
5020
5013
|
return "";
|
|
5021
5014
|
}
|
|
5022
|
-
function
|
|
5015
|
+
function kx() {
|
|
5023
5016
|
const e = {}, t = Su(), n = Cu();
|
|
5024
5017
|
return t && (e.baseUrl = t), n && (e.apiKey = n), e;
|
|
5025
5018
|
}
|
|
5026
|
-
function
|
|
5027
|
-
const e =
|
|
5019
|
+
function Tx() {
|
|
5020
|
+
const e = kx(), t = Jn.getAuthToken(), n = Su();
|
|
5028
5021
|
return {
|
|
5029
5022
|
apiBaseUrl: ku(
|
|
5030
5023
|
e.baseUrl,
|
|
@@ -5043,7 +5036,7 @@ function Ix() {
|
|
|
5043
5036
|
};
|
|
5044
5037
|
}
|
|
5045
5038
|
const Tu = Kn.chatSettings;
|
|
5046
|
-
function
|
|
5039
|
+
function Ix() {
|
|
5047
5040
|
try {
|
|
5048
5041
|
const e = localStorage.getItem(Tu);
|
|
5049
5042
|
return e ? JSON.parse(e) : {};
|
|
@@ -5051,7 +5044,7 @@ function Rx() {
|
|
|
5051
5044
|
return console.error("Failed to parse stored settings:", e), {};
|
|
5052
5045
|
}
|
|
5053
5046
|
}
|
|
5054
|
-
function
|
|
5047
|
+
function Rx(e) {
|
|
5055
5048
|
try {
|
|
5056
5049
|
const t = {
|
|
5057
5050
|
...e,
|
|
@@ -5062,8 +5055,8 @@ function Ex(e) {
|
|
|
5062
5055
|
console.error("Failed to save settings:", t);
|
|
5063
5056
|
}
|
|
5064
5057
|
}
|
|
5065
|
-
function
|
|
5066
|
-
const e =
|
|
5058
|
+
function Uk() {
|
|
5059
|
+
const e = Tx(), t = Ix(), n = Jn.getAuthToken(), r = typeof t.apiBaseUrl == "string" ? t.apiBaseUrl : void 0;
|
|
5067
5060
|
return {
|
|
5068
5061
|
...e,
|
|
5069
5062
|
...t,
|
|
@@ -5077,16 +5070,16 @@ function Wk() {
|
|
|
5077
5070
|
)
|
|
5078
5071
|
};
|
|
5079
5072
|
}
|
|
5080
|
-
function
|
|
5073
|
+
function Wk(e) {
|
|
5081
5074
|
Jn.updateConfig({
|
|
5082
5075
|
baseUrl: e.apiBaseUrl,
|
|
5083
5076
|
apiKey: e.apiKey ?? void 0
|
|
5084
|
-
}),
|
|
5077
|
+
}), Rx(e);
|
|
5085
5078
|
}
|
|
5086
5079
|
function le(...e) {
|
|
5087
5080
|
return Rc(Ic(e));
|
|
5088
5081
|
}
|
|
5089
|
-
const
|
|
5082
|
+
const Ex = Ec(
|
|
5090
5083
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
5091
5084
|
{
|
|
5092
5085
|
variants: {
|
|
@@ -5116,7 +5109,7 @@ const Ax = Ec(
|
|
|
5116
5109
|
return /* @__PURE__ */ d.jsx(
|
|
5117
5110
|
i,
|
|
5118
5111
|
{
|
|
5119
|
-
className: le(
|
|
5112
|
+
className: le(Ex({ variant: t, size: n, className: e })),
|
|
5120
5113
|
ref: s,
|
|
5121
5114
|
...o
|
|
5122
5115
|
}
|
|
@@ -5128,7 +5121,7 @@ const Ss = 0, $n = 1, Nr = 2, Iu = 4;
|
|
|
5128
5121
|
function wl(e) {
|
|
5129
5122
|
return () => e;
|
|
5130
5123
|
}
|
|
5131
|
-
function
|
|
5124
|
+
function Ax(e) {
|
|
5132
5125
|
e();
|
|
5133
5126
|
}
|
|
5134
5127
|
function Ru(e, t) {
|
|
@@ -5137,15 +5130,15 @@ function Ru(e, t) {
|
|
|
5137
5130
|
function vl(e, t) {
|
|
5138
5131
|
return () => e(t);
|
|
5139
5132
|
}
|
|
5140
|
-
function
|
|
5133
|
+
function Nx(e, t) {
|
|
5141
5134
|
return (n) => e(t, n);
|
|
5142
5135
|
}
|
|
5143
5136
|
function Yi(e) {
|
|
5144
5137
|
return e !== void 0;
|
|
5145
5138
|
}
|
|
5146
|
-
function
|
|
5139
|
+
function jx(...e) {
|
|
5147
5140
|
return () => {
|
|
5148
|
-
e.map(
|
|
5141
|
+
e.map(Ax);
|
|
5149
5142
|
};
|
|
5150
5143
|
}
|
|
5151
5144
|
function jr() {
|
|
@@ -5153,7 +5146,7 @@ function jr() {
|
|
|
5153
5146
|
function Cs(e, t) {
|
|
5154
5147
|
return t(e), e;
|
|
5155
5148
|
}
|
|
5156
|
-
function
|
|
5149
|
+
function _x(e, t) {
|
|
5157
5150
|
return t(e);
|
|
5158
5151
|
}
|
|
5159
5152
|
function tt(...e) {
|
|
@@ -5172,7 +5165,7 @@ function ht(e) {
|
|
|
5172
5165
|
return e(Iu);
|
|
5173
5166
|
}
|
|
5174
5167
|
function pe(e, t) {
|
|
5175
|
-
return Be(e,
|
|
5168
|
+
return Be(e, Nx(t, Ss));
|
|
5176
5169
|
}
|
|
5177
5170
|
function on(e, t) {
|
|
5178
5171
|
const n = e($n, (r) => {
|
|
@@ -5211,7 +5204,7 @@ function hn(e) {
|
|
|
5211
5204
|
};
|
|
5212
5205
|
}
|
|
5213
5206
|
function Q(e, ...t) {
|
|
5214
|
-
const n =
|
|
5207
|
+
const n = Px(...t);
|
|
5215
5208
|
return (r, o) => {
|
|
5216
5209
|
switch (r) {
|
|
5217
5210
|
case Nr:
|
|
@@ -5257,10 +5250,10 @@ function je(...e) {
|
|
|
5257
5250
|
n === o ? a() : r = a;
|
|
5258
5251
|
};
|
|
5259
5252
|
}
|
|
5260
|
-
function
|
|
5261
|
-
return (t) => e.reduceRight(
|
|
5253
|
+
function Px(...e) {
|
|
5254
|
+
return (t) => e.reduceRight(_x, t);
|
|
5262
5255
|
}
|
|
5263
|
-
function
|
|
5256
|
+
function Ox(e) {
|
|
5264
5257
|
let t, n;
|
|
5265
5258
|
const r = () => t == null ? void 0 : t();
|
|
5266
5259
|
return function(o, s) {
|
|
@@ -5321,12 +5314,12 @@ function $e(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
|
5321
5314
|
return {
|
|
5322
5315
|
constructor: e,
|
|
5323
5316
|
dependencies: t,
|
|
5324
|
-
id:
|
|
5317
|
+
id: Mx(),
|
|
5325
5318
|
singleton: n
|
|
5326
5319
|
};
|
|
5327
5320
|
}
|
|
5328
|
-
const
|
|
5329
|
-
function
|
|
5321
|
+
const Mx = () => Symbol();
|
|
5322
|
+
function Dx(e) {
|
|
5330
5323
|
const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
|
|
5331
5324
|
if (i && t.has(s))
|
|
5332
5325
|
return t.get(s);
|
|
@@ -5364,17 +5357,17 @@ function Ci(...e) {
|
|
|
5364
5357
|
case Nr:
|
|
5365
5358
|
return;
|
|
5366
5359
|
case $n:
|
|
5367
|
-
return
|
|
5360
|
+
return jx(...e.map((r) => Be(r, n)));
|
|
5368
5361
|
}
|
|
5369
5362
|
};
|
|
5370
5363
|
}
|
|
5371
5364
|
var Bt = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Bt || {});
|
|
5372
|
-
const
|
|
5365
|
+
const Lx = {
|
|
5373
5366
|
0: "debug",
|
|
5374
5367
|
3: "error",
|
|
5375
5368
|
1: "log",
|
|
5376
5369
|
2: "warn"
|
|
5377
|
-
},
|
|
5370
|
+
}, $x = () => typeof globalThis > "u" ? window : globalThis, Fn = $e(
|
|
5378
5371
|
() => {
|
|
5379
5372
|
const e = oe(
|
|
5380
5373
|
3
|
|
@@ -5383,8 +5376,8 @@ const $x = {
|
|
|
5383
5376
|
return {
|
|
5384
5377
|
log: oe((t, n, r = 1) => {
|
|
5385
5378
|
var o;
|
|
5386
|
-
const s = (o =
|
|
5387
|
-
r >= s && console[
|
|
5379
|
+
const s = (o = $x().VIRTUOSO_LOG_LEVEL) != null ? o : ht(e);
|
|
5380
|
+
r >= s && console[Lx[r]](
|
|
5388
5381
|
"%creact-virtuoso: %c%s %o",
|
|
5389
5382
|
"color: #0253b3; font-weight: bold",
|
|
5390
5383
|
"color: initial",
|
|
@@ -5416,10 +5409,10 @@ function Ji(e, t, n) {
|
|
|
5416
5409
|
i && t ? (s == null || s.observe(i), r.current = i) : (r.current && (s == null || s.unobserve(r.current)), r.current = null);
|
|
5417
5410
|
}, { callbackRef: o, ref: r };
|
|
5418
5411
|
}
|
|
5419
|
-
function
|
|
5412
|
+
function Fx(e, t, n, r, o, s, i, a, c) {
|
|
5420
5413
|
const l = ee.useCallback(
|
|
5421
5414
|
(u) => {
|
|
5422
|
-
const f =
|
|
5415
|
+
const f = zx(u.children, t, a ? "offsetWidth" : "offsetHeight", o);
|
|
5423
5416
|
let h = u.parentElement;
|
|
5424
5417
|
for (; !h.dataset.virtuosoScroller; )
|
|
5425
5418
|
h = h.parentElement;
|
|
@@ -5439,7 +5432,7 @@ function zx(e, t, n, r, o, s, i, a, c) {
|
|
|
5439
5432
|
);
|
|
5440
5433
|
return Ji(l, n, c);
|
|
5441
5434
|
}
|
|
5442
|
-
function
|
|
5435
|
+
function zx(e, t, n, r) {
|
|
5443
5436
|
const o = e.length;
|
|
5444
5437
|
if (o === 0)
|
|
5445
5438
|
return null;
|
|
@@ -5582,7 +5575,7 @@ function ks(e, t, n) {
|
|
|
5582
5575
|
if (qe(e))
|
|
5583
5576
|
return [];
|
|
5584
5577
|
const r = sn(e, t)[0];
|
|
5585
|
-
return
|
|
5578
|
+
return Bx(Ti(e, r, n));
|
|
5586
5579
|
}
|
|
5587
5580
|
function ki(e, t) {
|
|
5588
5581
|
if (qe(e)) return Yr;
|
|
@@ -5674,7 +5667,7 @@ function Ii(e) {
|
|
|
5674
5667
|
const { lvl: t, r: n } = e;
|
|
5675
5668
|
return !qe(n) && !qe(n.r) && n.lvl === t && n.r.lvl === t ? bt(n, { l: bt(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
5676
5669
|
}
|
|
5677
|
-
function
|
|
5670
|
+
function Bx(e) {
|
|
5678
5671
|
return Nu(e, ({ k: t, v: n }) => ({ index: t, value: n }));
|
|
5679
5672
|
}
|
|
5680
5673
|
function Mu(e, t) {
|
|
@@ -5709,7 +5702,7 @@ function es(e, t, n, r = 0) {
|
|
|
5709
5702
|
}
|
|
5710
5703
|
throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`);
|
|
5711
5704
|
}
|
|
5712
|
-
function
|
|
5705
|
+
function Hx(e, t, n, r) {
|
|
5713
5706
|
const o = es(e, t, r), s = es(e, n, r, o);
|
|
5714
5707
|
return e.slice(o, s + 1);
|
|
5715
5708
|
}
|
|
@@ -5722,7 +5715,7 @@ function Ts(e) {
|
|
|
5722
5715
|
function Qi({ index: e }, t) {
|
|
5723
5716
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
5724
5717
|
}
|
|
5725
|
-
function
|
|
5718
|
+
function Ux() {
|
|
5726
5719
|
return {
|
|
5727
5720
|
groupIndices: [],
|
|
5728
5721
|
groupOffsetTree: gr(),
|
|
@@ -5733,7 +5726,7 @@ function Wx() {
|
|
|
5733
5726
|
sizeTree: gr()
|
|
5734
5727
|
};
|
|
5735
5728
|
}
|
|
5736
|
-
function
|
|
5729
|
+
function Wx(e, t) {
|
|
5737
5730
|
let n = qe(e) ? 0 : 1 / 0;
|
|
5738
5731
|
for (const r of t) {
|
|
5739
5732
|
const { endIndex: o, size: s, startIndex: i } = r;
|
|
@@ -5742,7 +5735,7 @@ function Vx(e, t) {
|
|
|
5742
5735
|
continue;
|
|
5743
5736
|
}
|
|
5744
5737
|
const a = ks(e, i - 1, o + 1);
|
|
5745
|
-
if (a.some(
|
|
5738
|
+
if (a.some(Jx(r)))
|
|
5746
5739
|
continue;
|
|
5747
5740
|
let c = !1, l = !1;
|
|
5748
5741
|
for (const { end: u, start: f, value: h } of a)
|
|
@@ -5751,10 +5744,10 @@ function Vx(e, t) {
|
|
|
5751
5744
|
}
|
|
5752
5745
|
return [e, n];
|
|
5753
5746
|
}
|
|
5754
|
-
function
|
|
5747
|
+
function Vx(e) {
|
|
5755
5748
|
return typeof e.groupIndex < "u";
|
|
5756
5749
|
}
|
|
5757
|
-
function
|
|
5750
|
+
function Kx({ offset: e }, t) {
|
|
5758
5751
|
return t === e ? 0 : t < e ? -1 : 1;
|
|
5759
5752
|
}
|
|
5760
5753
|
function Zr(e, t, n) {
|
|
@@ -5772,7 +5765,7 @@ function Lu(e, t) {
|
|
|
5772
5765
|
return e + n;
|
|
5773
5766
|
}
|
|
5774
5767
|
function $u(e, t, n) {
|
|
5775
|
-
if (
|
|
5768
|
+
if (Vx(e))
|
|
5776
5769
|
return t.groupIndices[e.groupIndex] + 1;
|
|
5777
5770
|
{
|
|
5778
5771
|
const r = e.index === "LAST" ? n : e.index;
|
|
@@ -5780,10 +5773,10 @@ function $u(e, t, n) {
|
|
|
5780
5773
|
return o = Math.max(0, o, Math.min(n, o)), o;
|
|
5781
5774
|
}
|
|
5782
5775
|
}
|
|
5783
|
-
function
|
|
5784
|
-
return r > 0 && (t = Math.max(t, Du(e, r, Qi).offset)), Nu(
|
|
5776
|
+
function qx(e, t, n, r = 0) {
|
|
5777
|
+
return r > 0 && (t = Math.max(t, Du(e, r, Qi).offset)), Nu(Hx(e, t, n, Kx), Xx);
|
|
5785
5778
|
}
|
|
5786
|
-
function
|
|
5779
|
+
function Gx(e, [t, n, r, o]) {
|
|
5787
5780
|
t.length > 0 && r("received item sizes", t, Bt.DEBUG);
|
|
5788
5781
|
const s = e.sizeTree;
|
|
5789
5782
|
let i = s, a = 0;
|
|
@@ -5791,7 +5784,7 @@ function Yx(e, [t, n, r, o]) {
|
|
|
5791
5784
|
const h = t[0].size, p = t[1].size;
|
|
5792
5785
|
i = n.reduce((m, g) => Kt(Kt(m, g, h), g + 1, p), i);
|
|
5793
5786
|
} else
|
|
5794
|
-
[i, a] =
|
|
5787
|
+
[i, a] = Wx(i, t);
|
|
5795
5788
|
if (i === s)
|
|
5796
5789
|
return e;
|
|
5797
5790
|
const { lastIndex: c, lastOffset: l, lastSize: u, offsetTree: f } = Ri(e.offsetTree, a, i, o);
|
|
@@ -5805,7 +5798,7 @@ function Yx(e, [t, n, r, o]) {
|
|
|
5805
5798
|
sizeTree: i
|
|
5806
5799
|
};
|
|
5807
5800
|
}
|
|
5808
|
-
function
|
|
5801
|
+
function Yx(e) {
|
|
5809
5802
|
return Wn(e).map(({ k: t, v: n }, r, o) => {
|
|
5810
5803
|
const s = o[r + 1];
|
|
5811
5804
|
return { endIndex: s ? s.k - 1 : 1 / 0, size: n, startIndex: t };
|
|
@@ -5840,20 +5833,20 @@ function Ri(e, t, n, r) {
|
|
|
5840
5833
|
offsetTree: o
|
|
5841
5834
|
};
|
|
5842
5835
|
}
|
|
5843
|
-
function
|
|
5836
|
+
function Xx(e) {
|
|
5844
5837
|
return { index: e.index, value: e };
|
|
5845
5838
|
}
|
|
5846
|
-
function
|
|
5839
|
+
function Jx(e) {
|
|
5847
5840
|
const { endIndex: t, size: n, startIndex: r } = e;
|
|
5848
5841
|
return (o) => o.start === r && (o.end === t || o.end === 1 / 0) && o.value === n;
|
|
5849
5842
|
}
|
|
5850
|
-
const
|
|
5843
|
+
const Zx = {
|
|
5851
5844
|
offsetHeight: "height",
|
|
5852
5845
|
offsetWidth: "width"
|
|
5853
5846
|
}, wn = $e(
|
|
5854
5847
|
([{ log: e }, { recalcInProgress: t }]) => {
|
|
5855
|
-
const n = Me(), r = Me(), o = At(r, 0), s = Me(), i = Me(), a = oe(0), c = oe([]), l = oe(void 0), u = oe(void 0), f = oe((C, v) => jn(C,
|
|
5856
|
-
Q(n, je(c, e, p), mn(
|
|
5848
|
+
const n = Me(), r = Me(), o = At(r, 0), s = Me(), i = Me(), a = oe(0), c = oe([]), l = oe(void 0), u = oe(void 0), f = oe((C, v) => jn(C, Zx[v])), h = oe(void 0), p = oe(0), m = Ux(), g = At(
|
|
5849
|
+
Q(n, je(c, e, p), mn(Gx, m), et()),
|
|
5857
5850
|
m
|
|
5858
5851
|
), x = At(
|
|
5859
5852
|
Q(
|
|
@@ -6086,7 +6079,7 @@ const Qx = {
|
|
|
6086
6079
|
tt(Fn, Zi),
|
|
6087
6080
|
{ singleton: !0 }
|
|
6088
6081
|
);
|
|
6089
|
-
function
|
|
6082
|
+
function Qx(e) {
|
|
6090
6083
|
return e.reduce(
|
|
6091
6084
|
(t, n) => (t.groupIndices.push(t.totalCount), t.totalCount += n + 1, t),
|
|
6092
6085
|
{
|
|
@@ -6097,7 +6090,7 @@ function ey(e) {
|
|
|
6097
6090
|
}
|
|
6098
6091
|
const Fu = $e(
|
|
6099
6092
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
6100
|
-
const s = Me(), i = Me(), a = qt(Q(s, ce(
|
|
6093
|
+
const s = Me(), i = Me(), a = qt(Q(s, ce(Qx)));
|
|
6101
6094
|
return pe(
|
|
6102
6095
|
Q(
|
|
6103
6096
|
a,
|
|
@@ -6137,10 +6130,10 @@ const Fu = $e(
|
|
|
6137
6130
|
},
|
|
6138
6131
|
tt(Fn),
|
|
6139
6132
|
{ singleton: !0 }
|
|
6140
|
-
),
|
|
6133
|
+
), ey = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
|
|
6141
6134
|
function zu(e) {
|
|
6142
6135
|
const t = typeof e == "number" ? { index: e } : e;
|
|
6143
|
-
return t.align || (t.align = "start"), (!t.behavior || !
|
|
6136
|
+
return t.align || (t.align = "start"), (!t.behavior || !ey) && (t.behavior = "auto"), t.offset || (t.offset = 0), t;
|
|
6144
6137
|
}
|
|
6145
6138
|
const uo = $e(
|
|
6146
6139
|
([
|
|
@@ -6188,7 +6181,7 @@ const uo = $e(
|
|
|
6188
6181
|
R(E);
|
|
6189
6182
|
});
|
|
6190
6183
|
} else
|
|
6191
|
-
x = on(Q(t,
|
|
6184
|
+
x = on(Q(t, ty(150)), R);
|
|
6192
6185
|
return y = setTimeout(() => {
|
|
6193
6186
|
k();
|
|
6194
6187
|
}, 1200), Ae(c, !0), H("scrolling from index to", { behavior: ie, index: X, top: B }, Bt.DEBUG), { behavior: ie, top: B };
|
|
@@ -6205,7 +6198,7 @@ const uo = $e(
|
|
|
6205
6198
|
tt(wn, jt, Fn),
|
|
6206
6199
|
{ singleton: !0 }
|
|
6207
6200
|
);
|
|
6208
|
-
function
|
|
6201
|
+
function ty(e) {
|
|
6209
6202
|
return (t) => {
|
|
6210
6203
|
const n = setTimeout(() => {
|
|
6211
6204
|
t(!1);
|
|
@@ -6271,7 +6264,7 @@ const fo = $e(
|
|
|
6271
6264
|
function Bu(e, t) {
|
|
6272
6265
|
return Math.abs(e - t) < 1.01;
|
|
6273
6266
|
}
|
|
6274
|
-
const Qr = "up", Ur = "down",
|
|
6267
|
+
const Qr = "up", Ur = "down", ny = "none", ry = {
|
|
6275
6268
|
atBottom: !1,
|
|
6276
6269
|
notAtBottomBecause: "NOT_SHOWING_LAST_ITEM",
|
|
6277
6270
|
state: {
|
|
@@ -6280,8 +6273,8 @@ const Qr = "up", Ur = "down", ry = "none", oy = {
|
|
|
6280
6273
|
scrollTop: 0,
|
|
6281
6274
|
viewportHeight: 0
|
|
6282
6275
|
}
|
|
6283
|
-
},
|
|
6284
|
-
const i = oe(!1), a = oe(!0), c = Me(), l = Me(), u = oe(4), f = oe(
|
|
6276
|
+
}, oy = 0, ho = $e(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
|
|
6277
|
+
const i = oe(!1), a = oe(!0), c = Me(), l = Me(), u = oe(4), f = oe(oy), h = At(
|
|
6285
6278
|
Q(
|
|
6286
6279
|
Ci(Q(be(o), Zn(1), hn(!0)), Q(be(o), Zn(1), hn(!1), Sl(100))),
|
|
6287
6280
|
et()
|
|
@@ -6323,7 +6316,7 @@ const Qr = "up", Ur = "down", ry = "none", oy = {
|
|
|
6323
6316
|
notAtBottomBecause: H,
|
|
6324
6317
|
state: D
|
|
6325
6318
|
};
|
|
6326
|
-
},
|
|
6319
|
+
}, ry),
|
|
6327
6320
|
et((w, k) => w && w.atBottom === k.atBottom)
|
|
6328
6321
|
)
|
|
6329
6322
|
), g = At(
|
|
@@ -6380,7 +6373,7 @@ const Qr = "up", Ur = "down", ry = "none", oy = {
|
|
|
6380
6373
|
ce((w) => w.direction)
|
|
6381
6374
|
),
|
|
6382
6375
|
x
|
|
6383
|
-
), pe(Q(r, Tn(50), hn(
|
|
6376
|
+
), pe(Q(r, Tn(50), hn(ny)), x);
|
|
6384
6377
|
const y = oe(0);
|
|
6385
6378
|
return pe(
|
|
6386
6379
|
Q(
|
|
@@ -6474,7 +6467,7 @@ const na = $e(
|
|
|
6474
6467
|
tt(jt),
|
|
6475
6468
|
{ singleton: !0 }
|
|
6476
6469
|
);
|
|
6477
|
-
function
|
|
6470
|
+
function sy(e, t, n) {
|
|
6478
6471
|
if (Ts(t)) {
|
|
6479
6472
|
const r = Lu(e, t);
|
|
6480
6473
|
return [
|
|
@@ -6611,7 +6604,7 @@ const rr = $e(
|
|
|
6611
6604
|
return L === 0 ? { ...Xs, totalCount: A } : Hu(L, D, N, W, P, G || []);
|
|
6612
6605
|
if (qe(U))
|
|
6613
6606
|
return L > 0 ? null : Bo(
|
|
6614
|
-
|
|
6607
|
+
sy(ta(D, A), Y, G),
|
|
6615
6608
|
[],
|
|
6616
6609
|
A,
|
|
6617
6610
|
P,
|
|
@@ -6630,7 +6623,7 @@ const rr = $e(
|
|
|
6630
6623
|
}
|
|
6631
6624
|
if (!H)
|
|
6632
6625
|
return Bo([], X, A, P, Y, W);
|
|
6633
|
-
const B = q.length > 0 ? q[q.length - 1] + 1 : 0, R =
|
|
6626
|
+
const B = q.length > 0 ? q[q.length - 1] + 1 : 0, R = qx(ie, v, T, B);
|
|
6634
6627
|
if (R.length === 0)
|
|
6635
6628
|
return null;
|
|
6636
6629
|
const E = A - 1, M = Cs([], (O) => {
|
|
@@ -6746,7 +6739,7 @@ const rr = $e(
|
|
|
6746
6739
|
},
|
|
6747
6740
|
tt(jt, rr),
|
|
6748
6741
|
{ singleton: !0 }
|
|
6749
|
-
),
|
|
6742
|
+
), iy = $e(
|
|
6750
6743
|
([{ viewportHeight: e }, { totalListHeight: t }]) => {
|
|
6751
6744
|
const n = oe(!1), r = At(
|
|
6752
6745
|
Q(
|
|
@@ -6764,7 +6757,7 @@ const rr = $e(
|
|
|
6764
6757
|
{ singleton: !0 }
|
|
6765
6758
|
), Wu = $e(() => ({
|
|
6766
6759
|
context: oe(null)
|
|
6767
|
-
})),
|
|
6760
|
+
})), ay = ({
|
|
6768
6761
|
itemBottom: e,
|
|
6769
6762
|
itemTop: t,
|
|
6770
6763
|
locationParams: { align: n, behavior: r, ...o },
|
|
@@ -6783,7 +6776,7 @@ const rr = $e(
|
|
|
6783
6776
|
je(t, c, n, s, o, r, a),
|
|
6784
6777
|
je(e),
|
|
6785
6778
|
ce(([[f, h, p, m, g, x, y, w], k]) => {
|
|
6786
|
-
const { align: I, behavior: C, calculateViewLocation: v =
|
|
6779
|
+
const { align: I, behavior: C, calculateViewLocation: v = ay, done: T, ...A } = f, N = $u(f, h, m - 1), D = Zr(N, h.offsetTree, k) + g + x, H = D + sn(h.sizeTree, N)[1], q = w + x, W = w + p - y, P = v({
|
|
6787
6780
|
itemBottom: H,
|
|
6788
6781
|
itemTop: D,
|
|
6789
6782
|
locationParams: { align: I, behavior: C, ...A },
|
|
@@ -6814,7 +6807,7 @@ const rr = $e(
|
|
|
6814
6807
|
function Nl(e) {
|
|
6815
6808
|
return e ? e === "smooth" ? "smooth" : "auto" : !1;
|
|
6816
6809
|
}
|
|
6817
|
-
const
|
|
6810
|
+
const ly = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), cy = $e(
|
|
6818
6811
|
([
|
|
6819
6812
|
{ listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
|
|
6820
6813
|
{ atBottomState: o, isAtBottom: s },
|
|
@@ -6841,7 +6834,7 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
6841
6834
|
je(be(m), s, a, f),
|
|
6842
6835
|
ce(([[C, v], T, A, N, D]) => {
|
|
6843
6836
|
let H = v && N, q = "auto";
|
|
6844
|
-
return H && (q =
|
|
6837
|
+
return H && (q = ly(T, A || D), H = H && !!q), { followOutputBehavior: q, shouldFollow: H, totalCount: C };
|
|
6845
6838
|
}),
|
|
6846
6839
|
we(({ shouldFollow: C }) => C)
|
|
6847
6840
|
),
|
|
@@ -6919,7 +6912,7 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
6919
6912
|
Wu,
|
|
6920
6913
|
Vu
|
|
6921
6914
|
)
|
|
6922
|
-
),
|
|
6915
|
+
), uy = $e(
|
|
6923
6916
|
([{ data: e, firstItemIndex: t, gap: n, sizes: r }, { initialTopMostItemIndex: o }, { initialItemCount: s, listState: i }, { didMount: a }]) => (pe(
|
|
6924
6917
|
Q(
|
|
6925
6918
|
a,
|
|
@@ -6932,7 +6925,7 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
6932
6925
|
), {}),
|
|
6933
6926
|
tt(wn, fo, rr, zn),
|
|
6934
6927
|
{ singleton: !0 }
|
|
6935
|
-
),
|
|
6928
|
+
), dy = $e(
|
|
6936
6929
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
6937
6930
|
const r = oe(0);
|
|
6938
6931
|
return Be(
|
|
@@ -7023,7 +7016,7 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
7023
7016
|
windowScrollTo: o,
|
|
7024
7017
|
windowViewportRect: r
|
|
7025
7018
|
};
|
|
7026
|
-
}, tt(jt)),
|
|
7019
|
+
}, tt(jt)), fy = $e(
|
|
7027
7020
|
([
|
|
7028
7021
|
{ sizeRanges: e, sizes: t },
|
|
7029
7022
|
{ headerHeight: n, scrollTop: r },
|
|
@@ -7038,10 +7031,10 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
7038
7031
|
je(t, r, i, f, h, n)
|
|
7039
7032
|
),
|
|
7040
7033
|
([p, m, g, x, y, w, k]) => {
|
|
7041
|
-
const I =
|
|
7034
|
+
const I = Yx(m.sizeTree);
|
|
7042
7035
|
x && y !== null && w !== null && (g = y.scrollTop - w.offsetTop), g -= k, p({ ranges: I, scrollTop: g });
|
|
7043
7036
|
}
|
|
7044
|
-
), pe(Q(u, we(Yi), ce(
|
|
7037
|
+
), pe(Q(u, we(Yi), ce(hy)), o), pe(
|
|
7045
7038
|
Q(
|
|
7046
7039
|
s,
|
|
7047
7040
|
je(u),
|
|
@@ -7057,10 +7050,10 @@ const cy = (e, t) => typeof e == "function" ? Nl(e(t)) : t && Nl(e), uy = $e(
|
|
|
7057
7050
|
},
|
|
7058
7051
|
tt(wn, jt, fo, zn, ra)
|
|
7059
7052
|
);
|
|
7060
|
-
function
|
|
7053
|
+
function hy(e) {
|
|
7061
7054
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
7062
7055
|
}
|
|
7063
|
-
const
|
|
7056
|
+
const py = $e(([{ topItemsIndexes: e }]) => {
|
|
7064
7057
|
const t = oe(0);
|
|
7065
7058
|
return pe(
|
|
7066
7059
|
Q(
|
|
@@ -7075,7 +7068,7 @@ function qu(e) {
|
|
|
7075
7068
|
let t = !1, n;
|
|
7076
7069
|
return () => (t || (t = !0, n = e()), n);
|
|
7077
7070
|
}
|
|
7078
|
-
const
|
|
7071
|
+
const my = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.test(navigator.userAgent)), gy = $e(
|
|
7079
7072
|
([
|
|
7080
7073
|
{ deviation: e, scrollBy: t, scrollingInProgress: n, scrollTop: r },
|
|
7081
7074
|
{ isAtBottom: o, isScrolling: s, lastJumpDueToItemResize: i, scrollDirection: a },
|
|
@@ -7106,7 +7099,7 @@ const gy = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7106
7099
|
y > 0 ? (Ae(t, { behavior: "auto", top: -y }), Ae(e, 0)) : (Ae(e, 0), Ae(t, { behavior: "auto", top: -y }));
|
|
7107
7100
|
}
|
|
7108
7101
|
return Be(Q(g, je(e, s)), ([y, w, k]) => {
|
|
7109
|
-
k &&
|
|
7102
|
+
k && my() ? Ae(e, w - y) : x(-y);
|
|
7110
7103
|
}), Be(
|
|
7111
7104
|
Q(
|
|
7112
7105
|
gt(At(s, !1), e, m),
|
|
@@ -7154,7 +7147,7 @@ const gy = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7154
7147
|
), { deviation: e };
|
|
7155
7148
|
},
|
|
7156
7149
|
tt(jt, ho, rr, wn, Fn, Zi)
|
|
7157
|
-
),
|
|
7150
|
+
), xy = $e(
|
|
7158
7151
|
([
|
|
7159
7152
|
e,
|
|
7160
7153
|
t,
|
|
@@ -7182,12 +7175,12 @@ const gy = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7182
7175
|
}),
|
|
7183
7176
|
tt(
|
|
7184
7177
|
na,
|
|
7185
|
-
|
|
7178
|
+
uy,
|
|
7186
7179
|
zn,
|
|
7187
7180
|
Ku,
|
|
7188
7181
|
Uu,
|
|
7189
|
-
|
|
7190
|
-
|
|
7182
|
+
dy,
|
|
7183
|
+
iy,
|
|
7191
7184
|
ra,
|
|
7192
7185
|
Vu,
|
|
7193
7186
|
Fn,
|
|
@@ -7260,17 +7253,17 @@ const gy = qu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
7260
7253
|
wn,
|
|
7261
7254
|
fo,
|
|
7262
7255
|
jt,
|
|
7263
|
-
|
|
7264
|
-
|
|
7256
|
+
fy,
|
|
7257
|
+
cy,
|
|
7265
7258
|
rr,
|
|
7266
7259
|
uo,
|
|
7267
|
-
|
|
7268
|
-
|
|
7260
|
+
gy,
|
|
7261
|
+
py,
|
|
7269
7262
|
Fu,
|
|
7270
|
-
|
|
7263
|
+
xy
|
|
7271
7264
|
)
|
|
7272
7265
|
);
|
|
7273
|
-
function
|
|
7266
|
+
function yy(e, t) {
|
|
7274
7267
|
const n = {}, r = {};
|
|
7275
7268
|
let o = 0;
|
|
7276
7269
|
const s = e.length;
|
|
@@ -7303,10 +7296,10 @@ function Yu(e, t, n) {
|
|
|
7303
7296
|
}, y), {});
|
|
7304
7297
|
}
|
|
7305
7298
|
function u(x) {
|
|
7306
|
-
return i.reduce((y, w) => (y[w] =
|
|
7299
|
+
return i.reduce((y, w) => (y[w] = Ox(x[t.events[w]]), y), {});
|
|
7307
7300
|
}
|
|
7308
7301
|
const f = ee.forwardRef((x, y) => {
|
|
7309
|
-
const { children: w, ...k } = x, [I] = ee.useState(() => Cs(
|
|
7302
|
+
const { children: w, ...k } = x, [I] = ee.useState(() => Cs(Dx(e), (T) => {
|
|
7310
7303
|
c(T, k);
|
|
7311
7304
|
})), [C] = ee.useState(vl(u, I));
|
|
7312
7305
|
wo(() => {
|
|
@@ -7319,7 +7312,7 @@ function Yu(e, t, n) {
|
|
|
7319
7312
|
c(I, k);
|
|
7320
7313
|
}), ee.useImperativeHandle(y, wl(l(I)));
|
|
7321
7314
|
const v = n;
|
|
7322
|
-
return /* @__PURE__ */ d.jsx(a.Provider, { value: I, children: n ? /* @__PURE__ */ d.jsx(v, { ...
|
|
7315
|
+
return /* @__PURE__ */ d.jsx(a.Provider, { value: I, children: n ? /* @__PURE__ */ d.jsx(v, { ...yy([...r, ...o, ...i], k), children: w }) : w });
|
|
7323
7316
|
}), h = (x) => {
|
|
7324
7317
|
const y = ee.useContext(a);
|
|
7325
7318
|
return ee.useCallback(
|
|
@@ -7361,7 +7354,7 @@ const Xu = ee.createContext(void 0), Ju = ee.createContext(void 0), Zu = typeof
|
|
|
7361
7354
|
function Js(e) {
|
|
7362
7355
|
return "self" in e;
|
|
7363
7356
|
}
|
|
7364
|
-
function
|
|
7357
|
+
function by(e) {
|
|
7365
7358
|
return "body" in e;
|
|
7366
7359
|
}
|
|
7367
7360
|
function Qu(e, t, n, r = jr, o, s) {
|
|
@@ -7369,7 +7362,7 @@ function Qu(e, t, n, r = jr, o, s) {
|
|
|
7369
7362
|
(h) => {
|
|
7370
7363
|
let p, m, g;
|
|
7371
7364
|
const x = h.target;
|
|
7372
|
-
if (
|
|
7365
|
+
if (by(x) || Js(x)) {
|
|
7373
7366
|
const w = Js(x) ? x : x.defaultView;
|
|
7374
7367
|
g = s ? w.scrollX : w.scrollY, p = s ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight, m = s ? w.innerWidth : w.innerHeight;
|
|
7375
7368
|
} else
|
|
@@ -7424,7 +7417,7 @@ const Zs = "-webkit-sticky", jl = "sticky", oa = qu(() => {
|
|
|
7424
7417
|
function sa(e) {
|
|
7425
7418
|
return e;
|
|
7426
7419
|
}
|
|
7427
|
-
const
|
|
7420
|
+
const wy = /* @__PURE__ */ $e(() => {
|
|
7428
7421
|
const e = oe((a) => `Item ${a}`), t = oe((a) => `Group ${a}`), n = oe({}), r = oe(sa), o = oe("div"), s = oe(jr), i = (a, c = null) => At(
|
|
7429
7422
|
Q(
|
|
7430
7423
|
n,
|
|
@@ -7450,11 +7443,11 @@ const vy = /* @__PURE__ */ $e(() => {
|
|
|
7450
7443
|
ScrollSeekPlaceholder: i("ScrollSeekPlaceholder"),
|
|
7451
7444
|
TopItemListComponent: i("TopItemList")
|
|
7452
7445
|
};
|
|
7453
|
-
}),
|
|
7446
|
+
}), vy = /* @__PURE__ */ $e(
|
|
7454
7447
|
([e, t]) => ({ ...e, ...t }),
|
|
7455
|
-
tt(Gu,
|
|
7456
|
-
),
|
|
7457
|
-
const t = Ie("listState"), n = Zt("sizeRanges"), r = Ie("useWindowScroll"), o = Ie("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, c = Ie("itemContent"), l = Ie("context"), u = Ie("groupContent"), f = Ie("trackItemSizes"), h = Ie("itemSize"), p = Ie("log"), m = Zt("gap"), g = Ie("horizontalDirection"), { callbackRef: x } =
|
|
7448
|
+
tt(Gu, wy)
|
|
7449
|
+
), Sy = ({ height: e }) => /* @__PURE__ */ d.jsx("div", { style: { height: e } }), Cy = { overflowAnchor: "none", position: oa(), zIndex: 1 }, ed = { overflowAnchor: "none" }, ky = { ...ed, display: "inline-block", height: "100%" }, _l = /* @__PURE__ */ ee.memo(function({ showTopList: e = !1 }) {
|
|
7450
|
+
const t = Ie("listState"), n = Zt("sizeRanges"), r = Ie("useWindowScroll"), o = Ie("customScrollParent"), s = Zt("windowScrollContainerState"), i = Zt("scrollContainerState"), a = o || r ? s : i, c = Ie("itemContent"), l = Ie("context"), u = Ie("groupContent"), f = Ie("trackItemSizes"), h = Ie("itemSize"), p = Ie("log"), m = Zt("gap"), g = Ie("horizontalDirection"), { callbackRef: x } = Fx(
|
|
7458
7451
|
n,
|
|
7459
7452
|
h,
|
|
7460
7453
|
f,
|
|
@@ -7468,7 +7461,7 @@ const vy = /* @__PURE__ */ $e(() => {
|
|
|
7468
7461
|
ia("deviation", (P) => {
|
|
7469
7462
|
y !== P && w(P);
|
|
7470
7463
|
});
|
|
7471
|
-
const k = Ie("EmptyPlaceholder"), I = Ie("ScrollSeekPlaceholder") ||
|
|
7464
|
+
const k = Ie("EmptyPlaceholder"), I = Ie("ScrollSeekPlaceholder") || Sy, C = Ie("ListComponent"), v = Ie("ItemComponent"), T = Ie("GroupComponent"), A = Ie("computeItemKey"), N = Ie("isSeeking"), D = Ie("groupIndices").length > 0, H = Ie("alignToBottom"), q = Ie("initialItemFinalLocationReached"), W = e ? {} : {
|
|
7472
7465
|
boxSizing: "border-box",
|
|
7473
7466
|
...g ? {
|
|
7474
7467
|
display: "inline-block",
|
|
@@ -7511,33 +7504,33 @@ const vy = /* @__PURE__ */ $e(() => {
|
|
|
7511
7504
|
"data-item-index": P.index,
|
|
7512
7505
|
"data-known-size": P.size,
|
|
7513
7506
|
key: Y,
|
|
7514
|
-
style:
|
|
7507
|
+
style: Cy
|
|
7515
7508
|
},
|
|
7516
7509
|
u(P.index, l)
|
|
7517
7510
|
) : /* @__PURE__ */ _o(
|
|
7518
7511
|
v,
|
|
7519
7512
|
{
|
|
7520
7513
|
...Rt(v, l),
|
|
7521
|
-
...
|
|
7514
|
+
...Ey(v, P.data),
|
|
7522
7515
|
"data-index": G,
|
|
7523
7516
|
"data-item-group-index": P.groupIndex,
|
|
7524
7517
|
"data-item-index": P.index,
|
|
7525
7518
|
"data-known-size": P.size,
|
|
7526
7519
|
key: Y,
|
|
7527
|
-
style: g ?
|
|
7520
|
+
style: g ? ky : ed
|
|
7528
7521
|
},
|
|
7529
7522
|
D ? c(P.index, P.groupIndex, P.data, l) : c(P.index, P.data, l)
|
|
7530
7523
|
);
|
|
7531
7524
|
})
|
|
7532
7525
|
}
|
|
7533
7526
|
);
|
|
7534
|
-
}),
|
|
7527
|
+
}), Ty = {
|
|
7535
7528
|
height: "100%",
|
|
7536
7529
|
outline: "none",
|
|
7537
7530
|
overflowY: "auto",
|
|
7538
7531
|
position: "relative",
|
|
7539
7532
|
WebkitOverflowScrolling: "touch"
|
|
7540
|
-
},
|
|
7533
|
+
}, Iy = {
|
|
7541
7534
|
outline: "none",
|
|
7542
7535
|
overflowX: "auto",
|
|
7543
7536
|
position: "relative"
|
|
@@ -7547,7 +7540,7 @@ const vy = /* @__PURE__ */ $e(() => {
|
|
|
7547
7540
|
top: 0,
|
|
7548
7541
|
width: "100%",
|
|
7549
7542
|
...e ? { display: "flex", flexDirection: "column" } : {}
|
|
7550
|
-
}),
|
|
7543
|
+
}), Ry = {
|
|
7551
7544
|
position: oa(),
|
|
7552
7545
|
top: 0,
|
|
7553
7546
|
width: "100%",
|
|
@@ -7557,10 +7550,10 @@ function Rt(e, t) {
|
|
|
7557
7550
|
if (typeof e != "string")
|
|
7558
7551
|
return { context: t };
|
|
7559
7552
|
}
|
|
7560
|
-
function
|
|
7553
|
+
function Ey(e, t) {
|
|
7561
7554
|
return { item: typeof e == "string" ? void 0 : t };
|
|
7562
7555
|
}
|
|
7563
|
-
const
|
|
7556
|
+
const Ay = /* @__PURE__ */ ee.memo(function() {
|
|
7564
7557
|
const e = Ie("HeaderComponent"), t = Zt("headerHeight"), n = Ie("HeaderFooterTag"), r = nr(
|
|
7565
7558
|
ee.useMemo(
|
|
7566
7559
|
() => (s) => {
|
|
@@ -7572,7 +7565,7 @@ const Ny = /* @__PURE__ */ ee.memo(function() {
|
|
|
7572
7565
|
Ie("skipAnimationFrameInResizeObserver")
|
|
7573
7566
|
), o = Ie("context");
|
|
7574
7567
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
7575
|
-
}),
|
|
7568
|
+
}), Ny = /* @__PURE__ */ ee.memo(function() {
|
|
7576
7569
|
const e = Ie("FooterComponent"), t = Zt("footerHeight"), n = Ie("HeaderFooterTag"), r = nr(
|
|
7577
7570
|
ee.useMemo(
|
|
7578
7571
|
() => (s) => {
|
|
@@ -7601,7 +7594,7 @@ function td({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7601
7594
|
"data-testid": "virtuoso-scroller",
|
|
7602
7595
|
"data-virtuoso-scroller": !0,
|
|
7603
7596
|
ref: p,
|
|
7604
|
-
style: { ...f ?
|
|
7597
|
+
style: { ...f ? Iy : Ty, ...o },
|
|
7605
7598
|
tabIndex: 0,
|
|
7606
7599
|
...i,
|
|
7607
7600
|
...Rt(c, s),
|
|
@@ -7637,7 +7630,7 @@ function nd({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
|
|
|
7637
7630
|
);
|
|
7638
7631
|
});
|
|
7639
7632
|
}
|
|
7640
|
-
const
|
|
7633
|
+
const jy = ({ children: e }) => {
|
|
7641
7634
|
const t = ee.useContext(Xu), n = Zt("viewportHeight"), r = Zt("fixedItemHeight"), o = Ie("alignToBottom"), s = Ie("horizontalDirection"), i = ee.useMemo(
|
|
7642
7635
|
() => Ru(n, (c) => jn(c, s ? "width" : "height")),
|
|
7643
7636
|
[n, s]
|
|
@@ -7645,7 +7638,7 @@ const _y = ({ children: e }) => {
|
|
|
7645
7638
|
return ee.useEffect(() => {
|
|
7646
7639
|
t && (n(t.viewportHeight), r(t.itemHeight));
|
|
7647
7640
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "element", ref: a, style: Is(o), children: e });
|
|
7648
|
-
},
|
|
7641
|
+
}, _y = ({ children: e }) => {
|
|
7649
7642
|
const t = ee.useContext(Xu), n = Zt("windowViewportRect"), r = Zt("fixedItemHeight"), o = Ie("customScrollParent"), s = Au(
|
|
7650
7643
|
n,
|
|
7651
7644
|
o,
|
|
@@ -7654,26 +7647,26 @@ const _y = ({ children: e }) => {
|
|
|
7654
7647
|
return ee.useEffect(() => {
|
|
7655
7648
|
t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
|
|
7656
7649
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { "data-viewport-type": "window", ref: s, style: Is(i), children: e });
|
|
7657
|
-
},
|
|
7658
|
-
const t = Ie("TopItemListComponent") || "div", n = Ie("headerHeight"), r = { ...
|
|
7650
|
+
}, Py = ({ children: e }) => {
|
|
7651
|
+
const t = Ie("TopItemListComponent") || "div", n = Ie("headerHeight"), r = { ...Ry, marginTop: `${n}px` }, o = Ie("context");
|
|
7659
7652
|
return /* @__PURE__ */ d.jsx(t, { style: r, ...Rt(t, o), children: e });
|
|
7660
|
-
},
|
|
7653
|
+
}, Oy = /* @__PURE__ */ ee.memo(function(e) {
|
|
7661
7654
|
const t = Ie("useWindowScroll"), n = Ie("topItemsIndexes").length > 0, r = Ie("customScrollParent"), o = Ie("context");
|
|
7662
|
-
return /* @__PURE__ */ d.jsxs(r || t ?
|
|
7663
|
-
n && /* @__PURE__ */ d.jsx(
|
|
7664
|
-
/* @__PURE__ */ d.jsxs(r || t ?
|
|
7665
|
-
/* @__PURE__ */ d.jsx(
|
|
7655
|
+
return /* @__PURE__ */ d.jsxs(r || t ? Ly : Dy, { ...e, context: o, children: [
|
|
7656
|
+
n && /* @__PURE__ */ d.jsx(Py, { children: /* @__PURE__ */ d.jsx(_l, { showTopList: !0 }) }),
|
|
7657
|
+
/* @__PURE__ */ d.jsxs(r || t ? _y : jy, { children: [
|
|
7658
|
+
/* @__PURE__ */ d.jsx(Ay, {}),
|
|
7666
7659
|
/* @__PURE__ */ d.jsx(_l, {}),
|
|
7667
|
-
/* @__PURE__ */ d.jsx(
|
|
7660
|
+
/* @__PURE__ */ d.jsx(Ny, {})
|
|
7668
7661
|
] })
|
|
7669
7662
|
] });
|
|
7670
7663
|
}), {
|
|
7671
|
-
Component:
|
|
7664
|
+
Component: My,
|
|
7672
7665
|
useEmitter: ia,
|
|
7673
7666
|
useEmitterValue: Ie,
|
|
7674
7667
|
usePublisher: Zt
|
|
7675
7668
|
} = /* @__PURE__ */ Yu(
|
|
7676
|
-
|
|
7669
|
+
vy,
|
|
7677
7670
|
{
|
|
7678
7671
|
required: {},
|
|
7679
7672
|
optional: {
|
|
@@ -7730,8 +7723,8 @@ const _y = ({ children: e }) => {
|
|
|
7730
7723
|
groupIndices: "groupIndices"
|
|
7731
7724
|
}
|
|
7732
7725
|
},
|
|
7733
|
-
|
|
7734
|
-
),
|
|
7726
|
+
Oy
|
|
7727
|
+
), Dy = /* @__PURE__ */ td({ useEmitter: ia, useEmitterValue: Ie, usePublisher: Zt }), Ly = /* @__PURE__ */ nd({ useEmitter: ia, useEmitterValue: Ie, usePublisher: Zt }), $y = My, Fy = /* @__PURE__ */ $e(() => {
|
|
7735
7728
|
const e = oe((l) => /* @__PURE__ */ d.jsxs("td", { children: [
|
|
7736
7729
|
"Item $",
|
|
7737
7730
|
l
|
|
@@ -7767,7 +7760,7 @@ const _y = ({ children: e }) => {
|
|
|
7767
7760
|
GroupComponent: c("Group", "tr")
|
|
7768
7761
|
};
|
|
7769
7762
|
});
|
|
7770
|
-
tt(Gu,
|
|
7763
|
+
tt(Gu, Fy);
|
|
7771
7764
|
oa();
|
|
7772
7765
|
const Pl = {
|
|
7773
7766
|
bottom: 0,
|
|
@@ -7777,7 +7770,7 @@ const Pl = {
|
|
|
7777
7770
|
offsetBottom: 0,
|
|
7778
7771
|
offsetTop: 0,
|
|
7779
7772
|
top: 0
|
|
7780
|
-
},
|
|
7773
|
+
}, zy = {
|
|
7781
7774
|
bottom: 0,
|
|
7782
7775
|
itemHeight: 0,
|
|
7783
7776
|
items: [{ index: 0 }],
|
|
@@ -7789,19 +7782,19 @@ const Pl = {
|
|
|
7789
7782
|
function Dl(e, t, n) {
|
|
7790
7783
|
return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
|
|
7791
7784
|
}
|
|
7792
|
-
function
|
|
7785
|
+
function By(e) {
|
|
7793
7786
|
return {
|
|
7794
|
-
...
|
|
7787
|
+
...zy,
|
|
7795
7788
|
items: e
|
|
7796
7789
|
};
|
|
7797
7790
|
}
|
|
7798
7791
|
function vo(e, t) {
|
|
7799
7792
|
return e && e.width === t.width && e.height === t.height;
|
|
7800
7793
|
}
|
|
7801
|
-
function
|
|
7794
|
+
function Hy(e, t) {
|
|
7802
7795
|
return e && e.column === t.column && e.row === t.row;
|
|
7803
7796
|
}
|
|
7804
|
-
const
|
|
7797
|
+
const Uy = /* @__PURE__ */ $e(
|
|
7805
7798
|
([
|
|
7806
7799
|
{ increaseViewportBy: e, listBoundary: t, overscan: n, visibleRange: r },
|
|
7807
7800
|
{ footerHeight: o, headerHeight: s, scrollBy: i, scrollContainerState: a, scrollTo: c, scrollTop: l, smoothScrollTargetReached: u, viewportHeight: f },
|
|
@@ -7878,7 +7871,7 @@ const Wy = /* @__PURE__ */ $e(
|
|
|
7878
7871
|
gt(
|
|
7879
7872
|
be(v),
|
|
7880
7873
|
r,
|
|
7881
|
-
be(G,
|
|
7874
|
+
be(G, Hy),
|
|
7882
7875
|
be(D, vo),
|
|
7883
7876
|
be(N, vo),
|
|
7884
7877
|
be(P),
|
|
@@ -7906,7 +7899,7 @@ const Wy = /* @__PURE__ */ $e(
|
|
|
7906
7899
|
return Pl;
|
|
7907
7900
|
if (xt === 0) {
|
|
7908
7901
|
const lt = ta(Fe, j), nn = lt + Math.max(xe - 1, 0);
|
|
7909
|
-
return
|
|
7902
|
+
return By(Dl(lt, nn, ke));
|
|
7910
7903
|
}
|
|
7911
7904
|
const Ue = rd(at, xt, _e);
|
|
7912
7905
|
let Le, Qe;
|
|
@@ -8062,7 +8055,7 @@ function Ei(e, t, n, r) {
|
|
|
8062
8055
|
const o = rd(e.width, n.width, t.column), s = rs(r / o), i = s * n.height + Wr(0, s - 1) * t.row;
|
|
8063
8056
|
return i > 0 ? i + t.row : i;
|
|
8064
8057
|
}
|
|
8065
|
-
const
|
|
8058
|
+
const Wy = /* @__PURE__ */ $e(() => {
|
|
8066
8059
|
const e = oe((f) => `Item ${f}`), t = oe({}), n = oe(null), r = oe("virtuoso-grid-item"), o = oe("virtuoso-grid-list"), s = oe(sa), i = oe("div"), a = oe(jr), c = (f, h = null) => At(
|
|
8067
8060
|
Q(
|
|
8068
8061
|
t,
|
|
@@ -8089,10 +8082,10 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8089
8082
|
scrollerRef: a,
|
|
8090
8083
|
ScrollSeekPlaceholder: c("ScrollSeekPlaceholder", "div")
|
|
8091
8084
|
};
|
|
8092
|
-
}),
|
|
8085
|
+
}), Vy = /* @__PURE__ */ $e(
|
|
8093
8086
|
([e, t]) => ({ ...e, ...t }),
|
|
8094
|
-
tt(
|
|
8095
|
-
),
|
|
8087
|
+
tt(Uy, Wy)
|
|
8088
|
+
), Ky = /* @__PURE__ */ ee.memo(function() {
|
|
8096
8089
|
const e = ot("gridState"), t = ot("listClassName"), n = ot("itemClassName"), r = ot("itemContent"), o = ot("computeItemKey"), s = ot("isSeeking"), i = Qt("scrollHeight"), a = ot("ItemComponent"), c = ot("ListComponent"), l = ot("ScrollSeekPlaceholder"), u = ot("context"), f = Qt("itemDimensions"), h = Qt("gap"), p = ot("log"), m = ot("stateRestoreInProgress"), g = Qt("reportReadyState"), x = nr(
|
|
8097
8090
|
ee.useMemo(
|
|
8098
8091
|
() => (y) => {
|
|
@@ -8147,7 +8140,7 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8147
8140
|
})
|
|
8148
8141
|
}
|
|
8149
8142
|
);
|
|
8150
|
-
}),
|
|
8143
|
+
}), qy = ee.memo(function() {
|
|
8151
8144
|
const e = ot("HeaderComponent"), t = Qt("headerHeight"), n = ot("headerFooterTag"), r = nr(
|
|
8152
8145
|
ee.useMemo(
|
|
8153
8146
|
() => (s) => {
|
|
@@ -8159,7 +8152,7 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8159
8152
|
!1
|
|
8160
8153
|
), o = ot("context");
|
|
8161
8154
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
8162
|
-
}),
|
|
8155
|
+
}), Gy = ee.memo(function() {
|
|
8163
8156
|
const e = ot("FooterComponent"), t = Qt("footerHeight"), n = ot("headerFooterTag"), r = nr(
|
|
8164
8157
|
ee.useMemo(
|
|
8165
8158
|
() => (s) => {
|
|
@@ -8171,7 +8164,7 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8171
8164
|
!1
|
|
8172
8165
|
), o = ot("context");
|
|
8173
8166
|
return e ? /* @__PURE__ */ d.jsx(n, { ref: r, children: /* @__PURE__ */ d.jsx(e, { ...Rt(e, o) }) }) : null;
|
|
8174
|
-
}),
|
|
8167
|
+
}), Yy = ({ children: e }) => {
|
|
8175
8168
|
const t = ee.useContext(Ju), n = Qt("itemDimensions"), r = Qt("viewportDimensions"), o = nr(
|
|
8176
8169
|
ee.useMemo(
|
|
8177
8170
|
() => (s) => {
|
|
@@ -8185,24 +8178,24 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8185
8178
|
return ee.useEffect(() => {
|
|
8186
8179
|
t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
|
|
8187
8180
|
}, [t, r, n]), /* @__PURE__ */ d.jsx("div", { ref: o, style: Is(!1), children: e });
|
|
8188
|
-
},
|
|
8181
|
+
}, Xy = ({ children: e }) => {
|
|
8189
8182
|
const t = ee.useContext(Ju), n = Qt("windowViewportRect"), r = Qt("itemDimensions"), o = ot("customScrollParent"), s = Au(n, o, !1);
|
|
8190
8183
|
return ee.useEffect(() => {
|
|
8191
8184
|
t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
|
|
8192
8185
|
}, [t, n, r]), /* @__PURE__ */ d.jsx("div", { ref: s, style: Is(!1), children: e });
|
|
8193
|
-
},
|
|
8194
|
-
const t = ot("useWindowScroll"), n = ot("customScrollParent"), r = n || t ?
|
|
8186
|
+
}, Jy = /* @__PURE__ */ ee.memo(function({ ...e }) {
|
|
8187
|
+
const t = ot("useWindowScroll"), n = ot("customScrollParent"), r = n || t ? Qy : Zy, o = n || t ? Xy : Yy, s = ot("context");
|
|
8195
8188
|
return /* @__PURE__ */ d.jsx(r, { ...e, ...Rt(r, s), children: /* @__PURE__ */ d.jsxs(o, { children: [
|
|
8196
|
-
/* @__PURE__ */ d.jsx(Gy, {}),
|
|
8197
8189
|
/* @__PURE__ */ d.jsx(qy, {}),
|
|
8198
|
-
/* @__PURE__ */ d.jsx(
|
|
8190
|
+
/* @__PURE__ */ d.jsx(Ky, {}),
|
|
8191
|
+
/* @__PURE__ */ d.jsx(Gy, {})
|
|
8199
8192
|
] }) });
|
|
8200
8193
|
}), {
|
|
8201
8194
|
useEmitter: od,
|
|
8202
8195
|
useEmitterValue: ot,
|
|
8203
8196
|
usePublisher: Qt
|
|
8204
8197
|
} = /* @__PURE__ */ Yu(
|
|
8205
|
-
|
|
8198
|
+
Vy,
|
|
8206
8199
|
{
|
|
8207
8200
|
optional: {
|
|
8208
8201
|
context: "context",
|
|
@@ -8241,8 +8234,8 @@ const Vy = /* @__PURE__ */ $e(() => {
|
|
|
8241
8234
|
readyStateChanged: "readyStateChanged"
|
|
8242
8235
|
}
|
|
8243
8236
|
},
|
|
8244
|
-
|
|
8245
|
-
),
|
|
8237
|
+
Jy
|
|
8238
|
+
), Zy = /* @__PURE__ */ td({ useEmitter: od, useEmitterValue: ot, usePublisher: Qt }), Qy = /* @__PURE__ */ nd({ useEmitter: od, useEmitterValue: ot, usePublisher: Qt });
|
|
8246
8239
|
function $l(e, t, n) {
|
|
8247
8240
|
return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, Bt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
|
|
8248
8241
|
}
|
|
@@ -8276,7 +8269,7 @@ function _n(...e) {
|
|
|
8276
8269
|
function st(...e) {
|
|
8277
8270
|
return b.useCallback(_n(...e), e);
|
|
8278
8271
|
}
|
|
8279
|
-
function
|
|
8272
|
+
function eb(e, t) {
|
|
8280
8273
|
const n = b.createContext(t), r = (s) => {
|
|
8281
8274
|
const { children: i, ...a } = s, c = b.useMemo(() => a, Object.values(a));
|
|
8282
8275
|
return /* @__PURE__ */ d.jsx(n.Provider, { value: c, children: i });
|
|
@@ -8320,9 +8313,9 @@ function Bn(e, t = []) {
|
|
|
8320
8313
|
);
|
|
8321
8314
|
};
|
|
8322
8315
|
};
|
|
8323
|
-
return o.scopeName = e, [r,
|
|
8316
|
+
return o.scopeName = e, [r, tb(o, ...t)];
|
|
8324
8317
|
}
|
|
8325
|
-
function
|
|
8318
|
+
function tb(...e) {
|
|
8326
8319
|
const t = e[0];
|
|
8327
8320
|
if (e.length === 1) return t;
|
|
8328
8321
|
const n = () => {
|
|
@@ -8341,15 +8334,15 @@ function nb(...e) {
|
|
|
8341
8334
|
return n.scopeName = t.scopeName, n;
|
|
8342
8335
|
}
|
|
8343
8336
|
var yn = globalThis != null && globalThis.document ? b.useLayoutEffect : () => {
|
|
8344
|
-
},
|
|
8345
|
-
}),
|
|
8337
|
+
}, nb = b[" useId ".trim().toString()] || (() => {
|
|
8338
|
+
}), rb = 0;
|
|
8346
8339
|
function Gt(e) {
|
|
8347
|
-
const [t, n] = b.useState(
|
|
8340
|
+
const [t, n] = b.useState(nb());
|
|
8348
8341
|
return yn(() => {
|
|
8349
|
-
n((r) => r ?? String(
|
|
8342
|
+
n((r) => r ?? String(rb++));
|
|
8350
8343
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
8351
8344
|
}
|
|
8352
|
-
var
|
|
8345
|
+
var ob = b[" useInsertionEffect ".trim().toString()] || yn;
|
|
8353
8346
|
function Rs({
|
|
8354
8347
|
prop: e,
|
|
8355
8348
|
defaultProp: t,
|
|
@@ -8357,7 +8350,7 @@ function Rs({
|
|
|
8357
8350
|
},
|
|
8358
8351
|
caller: r
|
|
8359
8352
|
}) {
|
|
8360
|
-
const [o, s, i] =
|
|
8353
|
+
const [o, s, i] = sb({
|
|
8361
8354
|
defaultProp: t,
|
|
8362
8355
|
onChange: n
|
|
8363
8356
|
}), a = e !== void 0, c = a ? e : o;
|
|
@@ -8374,7 +8367,7 @@ function Rs({
|
|
|
8374
8367
|
(u) => {
|
|
8375
8368
|
var f;
|
|
8376
8369
|
if (a) {
|
|
8377
|
-
const h =
|
|
8370
|
+
const h = ib(u) ? u(e) : u;
|
|
8378
8371
|
h !== e && ((f = i.current) == null || f.call(i, h));
|
|
8379
8372
|
} else
|
|
8380
8373
|
s(u);
|
|
@@ -8383,22 +8376,22 @@ function Rs({
|
|
|
8383
8376
|
);
|
|
8384
8377
|
return [c, l];
|
|
8385
8378
|
}
|
|
8386
|
-
function
|
|
8379
|
+
function sb({
|
|
8387
8380
|
defaultProp: e,
|
|
8388
8381
|
onChange: t
|
|
8389
8382
|
}) {
|
|
8390
8383
|
const [n, r] = b.useState(e), o = b.useRef(n), s = b.useRef(t);
|
|
8391
|
-
return
|
|
8384
|
+
return ob(() => {
|
|
8392
8385
|
s.current = t;
|
|
8393
8386
|
}, [t]), b.useEffect(() => {
|
|
8394
8387
|
var i;
|
|
8395
8388
|
o.current !== n && ((i = s.current) == null || i.call(s, n), o.current = n);
|
|
8396
8389
|
}, [n, o]), [n, r, s];
|
|
8397
8390
|
}
|
|
8398
|
-
function
|
|
8391
|
+
function ib(e) {
|
|
8399
8392
|
return typeof e == "function";
|
|
8400
8393
|
}
|
|
8401
|
-
var
|
|
8394
|
+
var ab = [
|
|
8402
8395
|
"a",
|
|
8403
8396
|
"button",
|
|
8404
8397
|
"div",
|
|
@@ -8416,7 +8409,7 @@ var lb = [
|
|
|
8416
8409
|
"span",
|
|
8417
8410
|
"svg",
|
|
8418
8411
|
"ul"
|
|
8419
|
-
], Oe =
|
|
8412
|
+
], Oe = ab.reduce((e, t) => {
|
|
8420
8413
|
const n = qr(`Primitive.${t}`), r = b.forwardRef((o, s) => {
|
|
8421
8414
|
const { asChild: i, ...a } = o, c = i ? n : t;
|
|
8422
8415
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d.jsx(c, { ...a, ref: s });
|
|
@@ -8435,7 +8428,7 @@ function Et(e) {
|
|
|
8435
8428
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
8436
8429
|
}, []);
|
|
8437
8430
|
}
|
|
8438
|
-
function
|
|
8431
|
+
function lb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8439
8432
|
const n = Et(e);
|
|
8440
8433
|
b.useEffect(() => {
|
|
8441
8434
|
const r = (o) => {
|
|
@@ -8444,7 +8437,7 @@ function cb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8444
8437
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
8445
8438
|
}, [n, t]);
|
|
8446
8439
|
}
|
|
8447
|
-
var
|
|
8440
|
+
var cb = "DismissableLayer", Ai = "dismissableLayer.update", ub = "dismissableLayer.pointerDownOutside", db = "dismissableLayer.focusOutside", zl, id = b.createContext({
|
|
8448
8441
|
layers: /* @__PURE__ */ new Set(),
|
|
8449
8442
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
8450
8443
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -8458,14 +8451,14 @@ var ub = "DismissableLayer", Ai = "dismissableLayer.update", db = "dismissableLa
|
|
|
8458
8451
|
onInteractOutside: i,
|
|
8459
8452
|
onDismiss: a,
|
|
8460
8453
|
...c
|
|
8461
|
-
} = e, l = b.useContext(id), [u, f] = b.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = b.useState({}), m = st(t, (T) => f(T)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(x), w = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, I = w >= y, C =
|
|
8454
|
+
} = e, l = b.useContext(id), [u, f] = b.useState(null), h = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = b.useState({}), m = st(t, (T) => f(T)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = g.indexOf(x), w = u ? g.indexOf(u) : -1, k = l.layersWithOutsidePointerEventsDisabled.size > 0, I = w >= y, C = pb((T) => {
|
|
8462
8455
|
const A = T.target, N = [...l.branches].some((D) => D.contains(A));
|
|
8463
8456
|
!I || N || (o == null || o(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
8464
|
-
}, h), v =
|
|
8457
|
+
}, h), v = mb((T) => {
|
|
8465
8458
|
const A = T.target;
|
|
8466
8459
|
[...l.branches].some((D) => D.contains(A)) || (s == null || s(T), i == null || i(T), T.defaultPrevented || a == null || a());
|
|
8467
8460
|
}, h);
|
|
8468
|
-
return
|
|
8461
|
+
return lb((T) => {
|
|
8469
8462
|
w === l.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && a && (T.preventDefault(), a()));
|
|
8470
8463
|
}, h), b.useEffect(() => {
|
|
8471
8464
|
if (u)
|
|
@@ -8496,8 +8489,8 @@ var ub = "DismissableLayer", Ai = "dismissableLayer.update", db = "dismissableLa
|
|
|
8496
8489
|
);
|
|
8497
8490
|
}
|
|
8498
8491
|
);
|
|
8499
|
-
aa.displayName =
|
|
8500
|
-
var
|
|
8492
|
+
aa.displayName = cb;
|
|
8493
|
+
var fb = "DismissableLayerBranch", hb = b.forwardRef((e, t) => {
|
|
8501
8494
|
const n = b.useContext(id), r = b.useRef(null), o = st(t, r);
|
|
8502
8495
|
return b.useEffect(() => {
|
|
8503
8496
|
const s = r.current;
|
|
@@ -8507,8 +8500,8 @@ var hb = "DismissableLayerBranch", pb = b.forwardRef((e, t) => {
|
|
|
8507
8500
|
};
|
|
8508
8501
|
}, [n.branches]), /* @__PURE__ */ d.jsx(Oe.div, { ...e, ref: o });
|
|
8509
8502
|
});
|
|
8510
|
-
|
|
8511
|
-
function
|
|
8503
|
+
hb.displayName = fb;
|
|
8504
|
+
function pb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8512
8505
|
const n = Et(e), r = b.useRef(!1), o = b.useRef(() => {
|
|
8513
8506
|
});
|
|
8514
8507
|
return b.useEffect(() => {
|
|
@@ -8516,7 +8509,7 @@ function mb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8516
8509
|
if (a.target && !r.current) {
|
|
8517
8510
|
let c = function() {
|
|
8518
8511
|
ad(
|
|
8519
|
-
|
|
8512
|
+
ub,
|
|
8520
8513
|
n,
|
|
8521
8514
|
l,
|
|
8522
8515
|
{ discrete: !0 }
|
|
@@ -8538,11 +8531,11 @@ function mb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
8538
8531
|
onPointerDownCapture: () => r.current = !0
|
|
8539
8532
|
};
|
|
8540
8533
|
}
|
|
8541
|
-
function
|
|
8534
|
+
function mb(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
8542
8535
|
const n = Et(e), r = b.useRef(!1);
|
|
8543
8536
|
return b.useEffect(() => {
|
|
8544
8537
|
const o = (s) => {
|
|
8545
|
-
s.target && !r.current && ad(
|
|
8538
|
+
s.target && !r.current && ad(db, n, { originalEvent: s }, {
|
|
8546
8539
|
discrete: !1
|
|
8547
8540
|
});
|
|
8548
8541
|
};
|
|
@@ -8560,7 +8553,7 @@ function ad(e, t, n, { discrete: r }) {
|
|
|
8560
8553
|
const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
8561
8554
|
t && o.addEventListener(e, t, { once: !0 }), r ? sd(o, s) : o.dispatchEvent(s);
|
|
8562
8555
|
}
|
|
8563
|
-
var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl = { bubbles: !1, cancelable: !0 },
|
|
8556
|
+
var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl = { bubbles: !1, cancelable: !0 }, gb = "FocusScope", la = b.forwardRef((e, t) => {
|
|
8564
8557
|
const {
|
|
8565
8558
|
loop: n = !1,
|
|
8566
8559
|
trapped: r = !1,
|
|
@@ -8603,7 +8596,7 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8603
8596
|
const g = document.activeElement;
|
|
8604
8597
|
if (!a.contains(g)) {
|
|
8605
8598
|
const y = new CustomEvent(ei, Hl);
|
|
8606
|
-
a.addEventListener(ei, l), a.dispatchEvent(y), y.defaultPrevented || (
|
|
8599
|
+
a.addEventListener(ei, l), a.dispatchEvent(y), y.defaultPrevented || (xb(Sb(ld(a)), { select: !0 }), document.activeElement === g && En(a));
|
|
8607
8600
|
}
|
|
8608
8601
|
return () => {
|
|
8609
8602
|
a.removeEventListener(ei, l), setTimeout(() => {
|
|
@@ -8618,7 +8611,7 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8618
8611
|
if (!n && !r || p.paused) return;
|
|
8619
8612
|
const x = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, y = document.activeElement;
|
|
8620
8613
|
if (x && y) {
|
|
8621
|
-
const w = g.currentTarget, [k, I] =
|
|
8614
|
+
const w = g.currentTarget, [k, I] = yb(w);
|
|
8622
8615
|
k && I ? !g.shiftKey && y === I ? (g.preventDefault(), n && En(k, { select: !0 })) : g.shiftKey && y === k && (g.preventDefault(), n && En(I, { select: !0 })) : y === w && g.preventDefault();
|
|
8623
8616
|
}
|
|
8624
8617
|
},
|
|
@@ -8626,13 +8619,13 @@ var ei = "focusScope.autoFocusOnMount", ti = "focusScope.autoFocusOnUnmount", Hl
|
|
|
8626
8619
|
);
|
|
8627
8620
|
return /* @__PURE__ */ d.jsx(Oe.div, { tabIndex: -1, ...i, ref: h, onKeyDown: m });
|
|
8628
8621
|
});
|
|
8629
|
-
la.displayName =
|
|
8630
|
-
function
|
|
8622
|
+
la.displayName = gb;
|
|
8623
|
+
function xb(e, { select: t = !1 } = {}) {
|
|
8631
8624
|
const n = document.activeElement;
|
|
8632
8625
|
for (const r of e)
|
|
8633
8626
|
if (En(r, { select: t }), document.activeElement !== n) return;
|
|
8634
8627
|
}
|
|
8635
|
-
function
|
|
8628
|
+
function yb(e) {
|
|
8636
8629
|
const t = ld(e), n = Ul(t, e), r = Ul(t.reverse(), e);
|
|
8637
8630
|
return [n, r];
|
|
8638
8631
|
}
|
|
@@ -8648,9 +8641,9 @@ function ld(e) {
|
|
|
8648
8641
|
}
|
|
8649
8642
|
function Ul(e, t) {
|
|
8650
8643
|
for (const n of e)
|
|
8651
|
-
if (!
|
|
8644
|
+
if (!bb(n, { upTo: t })) return n;
|
|
8652
8645
|
}
|
|
8653
|
-
function
|
|
8646
|
+
function bb(e, { upTo: t }) {
|
|
8654
8647
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
8655
8648
|
for (; e; ) {
|
|
8656
8649
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -8659,17 +8652,17 @@ function wb(e, { upTo: t }) {
|
|
|
8659
8652
|
}
|
|
8660
8653
|
return !1;
|
|
8661
8654
|
}
|
|
8662
|
-
function
|
|
8655
|
+
function wb(e) {
|
|
8663
8656
|
return e instanceof HTMLInputElement && "select" in e;
|
|
8664
8657
|
}
|
|
8665
8658
|
function En(e, { select: t = !1 } = {}) {
|
|
8666
8659
|
if (e && e.focus) {
|
|
8667
8660
|
const n = document.activeElement;
|
|
8668
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
8661
|
+
e.focus({ preventScroll: !0 }), e !== n && wb(e) && t && e.select();
|
|
8669
8662
|
}
|
|
8670
8663
|
}
|
|
8671
|
-
var Wl =
|
|
8672
|
-
function
|
|
8664
|
+
var Wl = vb();
|
|
8665
|
+
function vb() {
|
|
8673
8666
|
let e = [];
|
|
8674
8667
|
return {
|
|
8675
8668
|
add(t) {
|
|
@@ -8686,27 +8679,27 @@ function Vl(e, t) {
|
|
|
8686
8679
|
const n = [...e], r = n.indexOf(t);
|
|
8687
8680
|
return r !== -1 && n.splice(r, 1), n;
|
|
8688
8681
|
}
|
|
8689
|
-
function
|
|
8682
|
+
function Sb(e) {
|
|
8690
8683
|
return e.filter((t) => t.tagName !== "A");
|
|
8691
8684
|
}
|
|
8692
|
-
var
|
|
8685
|
+
var Cb = "Portal", ca = b.forwardRef((e, t) => {
|
|
8693
8686
|
var a;
|
|
8694
8687
|
const { container: n, ...r } = e, [o, s] = b.useState(!1);
|
|
8695
8688
|
yn(() => s(!0), []);
|
|
8696
8689
|
const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
8697
8690
|
return i ? Nc.createPortal(/* @__PURE__ */ d.jsx(Oe.div, { ...r, ref: t }), i) : null;
|
|
8698
8691
|
});
|
|
8699
|
-
ca.displayName =
|
|
8700
|
-
function
|
|
8692
|
+
ca.displayName = Cb;
|
|
8693
|
+
function kb(e, t) {
|
|
8701
8694
|
return b.useReducer((n, r) => t[n][r] ?? n, e);
|
|
8702
8695
|
}
|
|
8703
8696
|
var Xt = (e) => {
|
|
8704
|
-
const { present: t, children: n } = e, r =
|
|
8697
|
+
const { present: t, children: n } = e, r = Tb(t), o = typeof n == "function" ? n({ present: r.isPresent }) : b.Children.only(n), s = st(r.ref, Ib(o));
|
|
8705
8698
|
return typeof n == "function" || r.isPresent ? b.cloneElement(o, { ref: s }) : null;
|
|
8706
8699
|
};
|
|
8707
8700
|
Xt.displayName = "Presence";
|
|
8708
|
-
function
|
|
8709
|
-
const [t, n] = b.useState(), r = b.useRef(null), o = b.useRef(e), s = b.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] =
|
|
8701
|
+
function Tb(e) {
|
|
8702
|
+
const [t, n] = b.useState(), r = b.useRef(null), o = b.useRef(e), s = b.useRef("none"), i = e ? "mounted" : "unmounted", [a, c] = kb(i, {
|
|
8710
8703
|
mounted: {
|
|
8711
8704
|
UNMOUNT: "unmounted",
|
|
8712
8705
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -8757,7 +8750,7 @@ function Ib(e) {
|
|
|
8757
8750
|
function So(e) {
|
|
8758
8751
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
8759
8752
|
}
|
|
8760
|
-
function
|
|
8753
|
+
function Ib(e) {
|
|
8761
8754
|
var r, o;
|
|
8762
8755
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
8763
8756
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -8792,16 +8785,16 @@ function ud(e, t) {
|
|
|
8792
8785
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
8793
8786
|
return n;
|
|
8794
8787
|
}
|
|
8795
|
-
function
|
|
8788
|
+
function Rb(e, t, n) {
|
|
8796
8789
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
|
|
8797
8790
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
8798
8791
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
8799
8792
|
}
|
|
8800
|
-
var Ho = "right-scroll-bar-position", Uo = "width-before-scroll-bar",
|
|
8793
|
+
var Ho = "right-scroll-bar-position", Uo = "width-before-scroll-bar", Eb = "with-scroll-bars-hidden", Ab = "--removed-body-scroll-bar-size";
|
|
8801
8794
|
function ri(e, t) {
|
|
8802
8795
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
8803
8796
|
}
|
|
8804
|
-
function
|
|
8797
|
+
function Nb(e, t) {
|
|
8805
8798
|
var n = ue(function() {
|
|
8806
8799
|
return {
|
|
8807
8800
|
// value
|
|
@@ -8822,14 +8815,14 @@ function jb(e, t) {
|
|
|
8822
8815
|
})[0];
|
|
8823
8816
|
return n.callback = t, n.facade;
|
|
8824
8817
|
}
|
|
8825
|
-
var
|
|
8826
|
-
function
|
|
8827
|
-
var n =
|
|
8818
|
+
var jb = typeof window < "u" ? b.useLayoutEffect : b.useEffect, ql = /* @__PURE__ */ new WeakMap();
|
|
8819
|
+
function _b(e, t) {
|
|
8820
|
+
var n = Nb(null, function(r) {
|
|
8828
8821
|
return e.forEach(function(o) {
|
|
8829
8822
|
return ri(o, r);
|
|
8830
8823
|
});
|
|
8831
8824
|
});
|
|
8832
|
-
return
|
|
8825
|
+
return jb(function() {
|
|
8833
8826
|
var r = ql.get(n);
|
|
8834
8827
|
if (r) {
|
|
8835
8828
|
var o = new Set(r), s = new Set(e), i = n.current;
|
|
@@ -8842,11 +8835,11 @@ function Pb(e, t) {
|
|
|
8842
8835
|
ql.set(n, e);
|
|
8843
8836
|
}, [e]), n;
|
|
8844
8837
|
}
|
|
8845
|
-
function
|
|
8838
|
+
function Pb(e) {
|
|
8846
8839
|
return e;
|
|
8847
8840
|
}
|
|
8848
|
-
function
|
|
8849
|
-
t === void 0 && (t =
|
|
8841
|
+
function Ob(e, t) {
|
|
8842
|
+
t === void 0 && (t = Pb);
|
|
8850
8843
|
var n = [], r = !1, o = {
|
|
8851
8844
|
read: function() {
|
|
8852
8845
|
if (r)
|
|
@@ -8900,9 +8893,9 @@ function Mb(e, t) {
|
|
|
8900
8893
|
};
|
|
8901
8894
|
return o;
|
|
8902
8895
|
}
|
|
8903
|
-
function
|
|
8896
|
+
function Mb(e) {
|
|
8904
8897
|
e === void 0 && (e = {});
|
|
8905
|
-
var t =
|
|
8898
|
+
var t = Ob(null);
|
|
8906
8899
|
return t.options = pn({ async: !0, ssr: !1 }, e), t;
|
|
8907
8900
|
}
|
|
8908
8901
|
var dd = function(e) {
|
|
@@ -8915,16 +8908,16 @@ var dd = function(e) {
|
|
|
8915
8908
|
return b.createElement(r, pn({}, n));
|
|
8916
8909
|
};
|
|
8917
8910
|
dd.isSideCarExport = !0;
|
|
8918
|
-
function
|
|
8911
|
+
function Db(e, t) {
|
|
8919
8912
|
return e.useMedium(t), dd;
|
|
8920
8913
|
}
|
|
8921
|
-
var fd =
|
|
8914
|
+
var fd = Mb(), oi = function() {
|
|
8922
8915
|
}, Es = b.forwardRef(function(e, t) {
|
|
8923
8916
|
var n = b.useRef(null), r = b.useState({
|
|
8924
8917
|
onScrollCapture: oi,
|
|
8925
8918
|
onWheelCapture: oi,
|
|
8926
8919
|
onTouchMoveCapture: oi
|
|
8927
|
-
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, m = e.noIsolation, g = e.inert, x = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, k = e.gapMode, I = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, v =
|
|
8920
|
+
}), o = r[0], s = r[1], i = e.forwardProps, a = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, p = e.noRelative, m = e.noIsolation, g = e.inert, x = e.allowPinchZoom, y = e.as, w = y === void 0 ? "div" : y, k = e.gapMode, I = ud(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = h, v = _b([n, t]), T = pn(pn({}, I), o);
|
|
8928
8921
|
return b.createElement(
|
|
8929
8922
|
b.Fragment,
|
|
8930
8923
|
null,
|
|
@@ -8941,37 +8934,37 @@ Es.classNames = {
|
|
|
8941
8934
|
fullWidth: Uo,
|
|
8942
8935
|
zeroRight: Ho
|
|
8943
8936
|
};
|
|
8944
|
-
var
|
|
8937
|
+
var Lb = function() {
|
|
8945
8938
|
if (typeof __webpack_nonce__ < "u")
|
|
8946
8939
|
return __webpack_nonce__;
|
|
8947
8940
|
};
|
|
8948
|
-
function
|
|
8941
|
+
function $b() {
|
|
8949
8942
|
if (!document)
|
|
8950
8943
|
return null;
|
|
8951
8944
|
var e = document.createElement("style");
|
|
8952
8945
|
e.type = "text/css";
|
|
8953
|
-
var t =
|
|
8946
|
+
var t = Lb();
|
|
8954
8947
|
return t && e.setAttribute("nonce", t), e;
|
|
8955
8948
|
}
|
|
8956
|
-
function
|
|
8949
|
+
function Fb(e, t) {
|
|
8957
8950
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
8958
8951
|
}
|
|
8959
|
-
function
|
|
8952
|
+
function zb(e) {
|
|
8960
8953
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
8961
8954
|
t.appendChild(e);
|
|
8962
8955
|
}
|
|
8963
|
-
var
|
|
8956
|
+
var Bb = function() {
|
|
8964
8957
|
var e = 0, t = null;
|
|
8965
8958
|
return {
|
|
8966
8959
|
add: function(n) {
|
|
8967
|
-
e == 0 && (t =
|
|
8960
|
+
e == 0 && (t = $b()) && (Fb(t, n), zb(t)), e++;
|
|
8968
8961
|
},
|
|
8969
8962
|
remove: function() {
|
|
8970
8963
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
8971
8964
|
}
|
|
8972
8965
|
};
|
|
8973
|
-
},
|
|
8974
|
-
var e =
|
|
8966
|
+
}, Hb = function() {
|
|
8967
|
+
var e = Bb();
|
|
8975
8968
|
return function(t, n) {
|
|
8976
8969
|
b.useEffect(function() {
|
|
8977
8970
|
return e.add(t), function() {
|
|
@@ -8980,35 +8973,35 @@ var Hb = function() {
|
|
|
8980
8973
|
}, [t && n]);
|
|
8981
8974
|
};
|
|
8982
8975
|
}, hd = function() {
|
|
8983
|
-
var e =
|
|
8976
|
+
var e = Hb(), t = function(n) {
|
|
8984
8977
|
var r = n.styles, o = n.dynamic;
|
|
8985
8978
|
return e(r, o), null;
|
|
8986
8979
|
};
|
|
8987
8980
|
return t;
|
|
8988
|
-
},
|
|
8981
|
+
}, Ub = {
|
|
8989
8982
|
left: 0,
|
|
8990
8983
|
top: 0,
|
|
8991
8984
|
right: 0,
|
|
8992
8985
|
gap: 0
|
|
8993
8986
|
}, si = function(e) {
|
|
8994
8987
|
return parseInt(e || "", 10) || 0;
|
|
8995
|
-
},
|
|
8988
|
+
}, Wb = function(e) {
|
|
8996
8989
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
8997
8990
|
return [si(n), si(r), si(o)];
|
|
8998
|
-
},
|
|
8991
|
+
}, Vb = function(e) {
|
|
8999
8992
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
9000
|
-
return
|
|
9001
|
-
var t =
|
|
8993
|
+
return Ub;
|
|
8994
|
+
var t = Wb(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
9002
8995
|
return {
|
|
9003
8996
|
left: t[0],
|
|
9004
8997
|
top: t[1],
|
|
9005
8998
|
right: t[2],
|
|
9006
8999
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
9007
9000
|
};
|
|
9008
|
-
},
|
|
9001
|
+
}, Kb = hd(), xr = "data-scroll-locked", qb = function(e, t, n, r) {
|
|
9009
9002
|
var o = e.left, s = e.top, i = e.right, a = e.gap;
|
|
9010
9003
|
return n === void 0 && (n = "margin"), `
|
|
9011
|
-
.`.concat(
|
|
9004
|
+
.`.concat(Eb, ` {
|
|
9012
9005
|
overflow: hidden `).concat(r, `;
|
|
9013
9006
|
padding-right: `).concat(a, "px ").concat(r, `;
|
|
9014
9007
|
}
|
|
@@ -9046,26 +9039,26 @@ var Hb = function() {
|
|
|
9046
9039
|
}
|
|
9047
9040
|
|
|
9048
9041
|
body[`).concat(xr, `] {
|
|
9049
|
-
`).concat(
|
|
9042
|
+
`).concat(Ab, ": ").concat(a, `px;
|
|
9050
9043
|
}
|
|
9051
9044
|
`);
|
|
9052
9045
|
}, Gl = function() {
|
|
9053
9046
|
var e = parseInt(document.body.getAttribute(xr) || "0", 10);
|
|
9054
9047
|
return isFinite(e) ? e : 0;
|
|
9055
|
-
},
|
|
9048
|
+
}, Gb = function() {
|
|
9056
9049
|
b.useEffect(function() {
|
|
9057
9050
|
return document.body.setAttribute(xr, (Gl() + 1).toString()), function() {
|
|
9058
9051
|
var e = Gl() - 1;
|
|
9059
9052
|
e <= 0 ? document.body.removeAttribute(xr) : document.body.setAttribute(xr, e.toString());
|
|
9060
9053
|
};
|
|
9061
9054
|
}, []);
|
|
9062
|
-
},
|
|
9055
|
+
}, Yb = function(e) {
|
|
9063
9056
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
9064
|
-
|
|
9057
|
+
Gb();
|
|
9065
9058
|
var s = b.useMemo(function() {
|
|
9066
|
-
return
|
|
9059
|
+
return Vb(o);
|
|
9067
9060
|
}, [o]);
|
|
9068
|
-
return b.createElement(
|
|
9061
|
+
return b.createElement(Kb, { styles: qb(s, !t, o, n ? "" : "!important") });
|
|
9069
9062
|
}, Ni = !1;
|
|
9070
9063
|
if (typeof window < "u")
|
|
9071
9064
|
try {
|
|
@@ -9078,7 +9071,7 @@ if (typeof window < "u")
|
|
|
9078
9071
|
} catch {
|
|
9079
9072
|
Ni = !1;
|
|
9080
9073
|
}
|
|
9081
|
-
var lr = Ni ? { passive: !1 } : !1,
|
|
9074
|
+
var lr = Ni ? { passive: !1 } : !1, Xb = function(e) {
|
|
9082
9075
|
return e.tagName === "TEXTAREA";
|
|
9083
9076
|
}, pd = function(e, t) {
|
|
9084
9077
|
if (!(e instanceof Element))
|
|
@@ -9087,11 +9080,11 @@ var lr = Ni ? { passive: !1 } : !1, Jb = function(e) {
|
|
|
9087
9080
|
return (
|
|
9088
9081
|
// not-not-scrollable
|
|
9089
9082
|
n[t] !== "hidden" && // contains scroll inside self
|
|
9090
|
-
!(n.overflowY === n.overflowX && !
|
|
9083
|
+
!(n.overflowY === n.overflowX && !Xb(e) && n[t] === "visible")
|
|
9091
9084
|
);
|
|
9092
|
-
},
|
|
9085
|
+
}, Jb = function(e) {
|
|
9093
9086
|
return pd(e, "overflowY");
|
|
9094
|
-
},
|
|
9087
|
+
}, Zb = function(e) {
|
|
9095
9088
|
return pd(e, "overflowX");
|
|
9096
9089
|
}, Yl = function(e, t) {
|
|
9097
9090
|
var n = t.ownerDocument, r = t;
|
|
@@ -9106,14 +9099,14 @@ var lr = Ni ? { passive: !1 } : !1, Jb = function(e) {
|
|
|
9106
9099
|
r = r.parentNode;
|
|
9107
9100
|
} while (r && r !== n.body);
|
|
9108
9101
|
return !1;
|
|
9109
|
-
},
|
|
9102
|
+
}, Qb = function(e) {
|
|
9110
9103
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
9111
9104
|
return [
|
|
9112
9105
|
t,
|
|
9113
9106
|
n,
|
|
9114
9107
|
r
|
|
9115
9108
|
];
|
|
9116
|
-
},
|
|
9109
|
+
}, ew = function(e) {
|
|
9117
9110
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
9118
9111
|
return [
|
|
9119
9112
|
t,
|
|
@@ -9121,13 +9114,13 @@ var lr = Ni ? { passive: !1 } : !1, Jb = function(e) {
|
|
|
9121
9114
|
r
|
|
9122
9115
|
];
|
|
9123
9116
|
}, md = function(e, t) {
|
|
9124
|
-
return e === "v" ?
|
|
9117
|
+
return e === "v" ? Jb(t) : Zb(t);
|
|
9125
9118
|
}, gd = function(e, t) {
|
|
9126
|
-
return e === "v" ?
|
|
9127
|
-
},
|
|
9119
|
+
return e === "v" ? Qb(t) : ew(t);
|
|
9120
|
+
}, tw = function(e, t) {
|
|
9128
9121
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
9129
|
-
},
|
|
9130
|
-
var s =
|
|
9122
|
+
}, nw = function(e, t, n, r, o) {
|
|
9123
|
+
var s = tw(e, window.getComputedStyle(t).direction), i = s * r, a = n.target, c = t.contains(a), l = !1, u = i > 0, f = 0, h = 0;
|
|
9131
9124
|
do {
|
|
9132
9125
|
if (!a)
|
|
9133
9126
|
break;
|
|
@@ -9147,22 +9140,22 @@ var lr = Ni ? { passive: !1 } : !1, Jb = function(e) {
|
|
|
9147
9140
|
return [e.deltaX, e.deltaY];
|
|
9148
9141
|
}, Jl = function(e) {
|
|
9149
9142
|
return e && "current" in e ? e.current : e;
|
|
9150
|
-
},
|
|
9143
|
+
}, rw = function(e, t) {
|
|
9151
9144
|
return e[0] === t[0] && e[1] === t[1];
|
|
9152
|
-
},
|
|
9145
|
+
}, ow = function(e) {
|
|
9153
9146
|
return `
|
|
9154
9147
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
9155
9148
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
9156
9149
|
`);
|
|
9157
|
-
},
|
|
9158
|
-
function
|
|
9159
|
-
var t = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(
|
|
9150
|
+
}, sw = 0, cr = [];
|
|
9151
|
+
function iw(e) {
|
|
9152
|
+
var t = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(sw++)[0], s = b.useState(hd)[0], i = b.useRef(e);
|
|
9160
9153
|
b.useEffect(function() {
|
|
9161
9154
|
i.current = e;
|
|
9162
9155
|
}, [e]), b.useEffect(function() {
|
|
9163
9156
|
if (e.inert) {
|
|
9164
9157
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
9165
|
-
var g =
|
|
9158
|
+
var g = Rb([e.lockRef.current], (e.shards || []).map(Jl), !0).filter(Boolean);
|
|
9166
9159
|
return g.forEach(function(x) {
|
|
9167
9160
|
return x.classList.add("allow-interactivity-".concat(o));
|
|
9168
9161
|
}), function() {
|
|
@@ -9186,12 +9179,12 @@ function aw(e) {
|
|
|
9186
9179
|
if (!r.current && "changedTouches" in g && (k || I) && (r.current = C), !C)
|
|
9187
9180
|
return !0;
|
|
9188
9181
|
var N = r.current || C;
|
|
9189
|
-
return
|
|
9182
|
+
return nw(N, x, g, N === "h" ? k : I);
|
|
9190
9183
|
}, []), c = b.useCallback(function(g) {
|
|
9191
9184
|
var x = g;
|
|
9192
9185
|
if (!(!cr.length || cr[cr.length - 1] !== s)) {
|
|
9193
9186
|
var y = "deltaY" in x ? Xl(x) : ko(x), w = t.current.filter(function(C) {
|
|
9194
|
-
return C.name === x.type && (C.target === x.target || x.target === C.shadowParent) &&
|
|
9187
|
+
return C.name === x.type && (C.target === x.target || x.target === C.shadowParent) && rw(C.delta, y);
|
|
9195
9188
|
})[0];
|
|
9196
9189
|
if (w && w.should) {
|
|
9197
9190
|
x.cancelable && x.preventDefault();
|
|
@@ -9205,7 +9198,7 @@ function aw(e) {
|
|
|
9205
9198
|
}
|
|
9206
9199
|
}
|
|
9207
9200
|
}, []), l = b.useCallback(function(g, x, y, w) {
|
|
9208
|
-
var k = { name: g, delta: x, target: y, should: w, shadowParent:
|
|
9201
|
+
var k = { name: g, delta: x, target: y, should: w, shadowParent: aw(y) };
|
|
9209
9202
|
t.current.push(k), setTimeout(function() {
|
|
9210
9203
|
t.current = t.current.filter(function(I) {
|
|
9211
9204
|
return I !== k;
|
|
@@ -9233,28 +9226,28 @@ function aw(e) {
|
|
|
9233
9226
|
return b.createElement(
|
|
9234
9227
|
b.Fragment,
|
|
9235
9228
|
null,
|
|
9236
|
-
m ? b.createElement(s, { styles:
|
|
9237
|
-
p ? b.createElement(
|
|
9229
|
+
m ? b.createElement(s, { styles: ow(o) }) : null,
|
|
9230
|
+
p ? b.createElement(Yb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
9238
9231
|
);
|
|
9239
9232
|
}
|
|
9240
|
-
function
|
|
9233
|
+
function aw(e) {
|
|
9241
9234
|
for (var t = null; e !== null; )
|
|
9242
9235
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
9243
9236
|
return t;
|
|
9244
9237
|
}
|
|
9245
|
-
const
|
|
9238
|
+
const lw = Db(fd, iw);
|
|
9246
9239
|
var ua = b.forwardRef(function(e, t) {
|
|
9247
|
-
return b.createElement(Es, pn({}, e, { ref: t, sideCar:
|
|
9240
|
+
return b.createElement(Es, pn({}, e, { ref: t, sideCar: lw }));
|
|
9248
9241
|
});
|
|
9249
9242
|
ua.classNames = Es.classNames;
|
|
9250
|
-
var
|
|
9243
|
+
var cw = function(e) {
|
|
9251
9244
|
if (typeof document > "u")
|
|
9252
9245
|
return null;
|
|
9253
9246
|
var t = Array.isArray(e) ? e[0] : e;
|
|
9254
9247
|
return t.ownerDocument.body;
|
|
9255
9248
|
}, ur = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakMap(), Io = {}, ii = 0, xd = function(e) {
|
|
9256
9249
|
return e && (e.host || xd(e.parentNode));
|
|
9257
|
-
},
|
|
9250
|
+
}, uw = function(e, t) {
|
|
9258
9251
|
return t.map(function(n) {
|
|
9259
9252
|
if (e.contains(n))
|
|
9260
9253
|
return n;
|
|
@@ -9263,8 +9256,8 @@ var uw = function(e) {
|
|
|
9263
9256
|
}).filter(function(n) {
|
|
9264
9257
|
return !!n;
|
|
9265
9258
|
});
|
|
9266
|
-
},
|
|
9267
|
-
var o =
|
|
9259
|
+
}, dw = function(e, t, n, r) {
|
|
9260
|
+
var o = uw(t, Array.isArray(e) ? e : [e]);
|
|
9268
9261
|
Io[n] || (Io[n] = /* @__PURE__ */ new WeakMap());
|
|
9269
9262
|
var s = Io[n], i = [], a = /* @__PURE__ */ new Set(), c = new Set(o), l = function(f) {
|
|
9270
9263
|
!f || a.has(f) || (a.add(f), l(f.parentNode));
|
|
@@ -9291,11 +9284,11 @@ var uw = function(e) {
|
|
|
9291
9284
|
};
|
|
9292
9285
|
}, yd = function(e, t, n) {
|
|
9293
9286
|
n === void 0 && (n = "data-aria-hidden");
|
|
9294
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
9295
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
9287
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = cw(e);
|
|
9288
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), dw(r, o, n, "aria-hidden")) : function() {
|
|
9296
9289
|
return null;
|
|
9297
9290
|
};
|
|
9298
|
-
}, As = "Dialog", [bd,
|
|
9291
|
+
}, As = "Dialog", [bd, Vk] = Bn(As), [fw, un] = bd(As), wd = (e) => {
|
|
9299
9292
|
const {
|
|
9300
9293
|
__scopeDialog: t,
|
|
9301
9294
|
children: n,
|
|
@@ -9310,7 +9303,7 @@ var uw = function(e) {
|
|
|
9310
9303
|
caller: As
|
|
9311
9304
|
});
|
|
9312
9305
|
return /* @__PURE__ */ d.jsx(
|
|
9313
|
-
|
|
9306
|
+
fw,
|
|
9314
9307
|
{
|
|
9315
9308
|
scope: t,
|
|
9316
9309
|
triggerRef: a,
|
|
@@ -9327,7 +9320,7 @@ var uw = function(e) {
|
|
|
9327
9320
|
);
|
|
9328
9321
|
};
|
|
9329
9322
|
wd.displayName = As;
|
|
9330
|
-
var vd = "DialogTrigger",
|
|
9323
|
+
var vd = "DialogTrigger", hw = b.forwardRef(
|
|
9331
9324
|
(e, t) => {
|
|
9332
9325
|
const { __scopeDialog: n, ...r } = e, o = un(vd, n), s = st(t, o.triggerRef);
|
|
9333
9326
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -9345,28 +9338,28 @@ var vd = "DialogTrigger", pw = b.forwardRef(
|
|
|
9345
9338
|
);
|
|
9346
9339
|
}
|
|
9347
9340
|
);
|
|
9348
|
-
|
|
9349
|
-
var da = "DialogPortal", [
|
|
9341
|
+
hw.displayName = vd;
|
|
9342
|
+
var da = "DialogPortal", [pw, Sd] = bd(da, {
|
|
9350
9343
|
forceMount: void 0
|
|
9351
9344
|
}), Cd = (e) => {
|
|
9352
9345
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, s = un(da, t);
|
|
9353
|
-
return /* @__PURE__ */ d.jsx(
|
|
9346
|
+
return /* @__PURE__ */ d.jsx(pw, { scope: t, forceMount: n, children: b.Children.map(r, (i) => /* @__PURE__ */ d.jsx(Xt, { present: n || s.open, children: /* @__PURE__ */ d.jsx(ca, { asChild: !0, container: o, children: i }) })) });
|
|
9354
9347
|
};
|
|
9355
9348
|
Cd.displayName = da;
|
|
9356
9349
|
var os = "DialogOverlay", kd = b.forwardRef(
|
|
9357
9350
|
(e, t) => {
|
|
9358
9351
|
const n = Sd(os, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(os, e.__scopeDialog);
|
|
9359
|
-
return s.modal ? /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(
|
|
9352
|
+
return s.modal ? /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(gw, { ...o, ref: t }) }) : null;
|
|
9360
9353
|
}
|
|
9361
9354
|
);
|
|
9362
9355
|
kd.displayName = os;
|
|
9363
|
-
var
|
|
9356
|
+
var mw = qr("DialogOverlay.RemoveScroll"), gw = b.forwardRef(
|
|
9364
9357
|
(e, t) => {
|
|
9365
9358
|
const { __scopeDialog: n, ...r } = e, o = un(os, n);
|
|
9366
9359
|
return (
|
|
9367
9360
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
9368
9361
|
// ie. when `Overlay` and `Content` are siblings
|
|
9369
|
-
/* @__PURE__ */ d.jsx(ua, { as:
|
|
9362
|
+
/* @__PURE__ */ d.jsx(ua, { as: mw, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ d.jsx(
|
|
9370
9363
|
Oe.div,
|
|
9371
9364
|
{
|
|
9372
9365
|
"data-state": ha(o.open),
|
|
@@ -9380,11 +9373,11 @@ var gw = qr("DialogOverlay.RemoveScroll"), xw = b.forwardRef(
|
|
|
9380
9373
|
), Qn = "DialogContent", Td = b.forwardRef(
|
|
9381
9374
|
(e, t) => {
|
|
9382
9375
|
const n = Sd(Qn, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, s = un(Qn, e.__scopeDialog);
|
|
9383
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(
|
|
9376
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: s.modal ? /* @__PURE__ */ d.jsx(xw, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(yw, { ...o, ref: t }) });
|
|
9384
9377
|
}
|
|
9385
9378
|
);
|
|
9386
9379
|
Td.displayName = Qn;
|
|
9387
|
-
var
|
|
9380
|
+
var xw = b.forwardRef(
|
|
9388
9381
|
(e, t) => {
|
|
9389
9382
|
const n = un(Qn, e.__scopeDialog), r = b.useRef(null), o = st(t, n.contentRef, r);
|
|
9390
9383
|
return b.useEffect(() => {
|
|
@@ -9412,7 +9405,7 @@ var yw = b.forwardRef(
|
|
|
9412
9405
|
}
|
|
9413
9406
|
);
|
|
9414
9407
|
}
|
|
9415
|
-
),
|
|
9408
|
+
), yw = b.forwardRef(
|
|
9416
9409
|
(e, t) => {
|
|
9417
9410
|
const n = un(Qn, e.__scopeDialog), r = b.useRef(!1), o = b.useRef(!1);
|
|
9418
9411
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -9463,8 +9456,8 @@ var yw = b.forwardRef(
|
|
|
9463
9456
|
}
|
|
9464
9457
|
),
|
|
9465
9458
|
/* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
9466
|
-
/* @__PURE__ */ d.jsx(
|
|
9467
|
-
/* @__PURE__ */ d.jsx(
|
|
9459
|
+
/* @__PURE__ */ d.jsx(bw, { titleId: a.titleId }),
|
|
9460
|
+
/* @__PURE__ */ d.jsx(vw, { contentRef: c, descriptionId: a.descriptionId })
|
|
9468
9461
|
] })
|
|
9469
9462
|
] });
|
|
9470
9463
|
}
|
|
@@ -9500,11 +9493,11 @@ jd.displayName = Nd;
|
|
|
9500
9493
|
function ha(e) {
|
|
9501
9494
|
return e ? "open" : "closed";
|
|
9502
9495
|
}
|
|
9503
|
-
var _d = "DialogTitleWarning", [
|
|
9496
|
+
var _d = "DialogTitleWarning", [Kk, Pd] = eb(_d, {
|
|
9504
9497
|
contentName: Qn,
|
|
9505
9498
|
titleName: fa,
|
|
9506
9499
|
docsSlug: "dialog"
|
|
9507
|
-
}),
|
|
9500
|
+
}), bw = ({ titleId: e }) => {
|
|
9508
9501
|
const t = Pd(_d), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
9509
9502
|
|
|
9510
9503
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -9513,15 +9506,15 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
9513
9506
|
return b.useEffect(() => {
|
|
9514
9507
|
e && (document.getElementById(e) || console.error(n));
|
|
9515
9508
|
}, [n, e]), null;
|
|
9516
|
-
},
|
|
9517
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pd(
|
|
9509
|
+
}, ww = "DialogDescriptionWarning", vw = ({ contentRef: e, descriptionId: t }) => {
|
|
9510
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pd(ww).contentName}}.`;
|
|
9518
9511
|
return b.useEffect(() => {
|
|
9519
9512
|
var s;
|
|
9520
9513
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
9521
9514
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
9522
9515
|
}, [r, e, t]), null;
|
|
9523
|
-
}, Od = wd, Md = Cd, pa = kd, ma = Td, Vr = Rd, Dd = Ad,
|
|
9524
|
-
const Ld = Od,
|
|
9516
|
+
}, Od = wd, Md = Cd, pa = kd, ma = Td, Vr = Rd, Dd = Ad, Sw = jd;
|
|
9517
|
+
const Ld = Od, Cw = Md, $d = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
9525
9518
|
pa,
|
|
9526
9519
|
{
|
|
9527
9520
|
ref: n,
|
|
@@ -9549,7 +9542,7 @@ const ga = b.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
9549
9542
|
}
|
|
9550
9543
|
return i(t), s;
|
|
9551
9544
|
}, [t]);
|
|
9552
|
-
return /* @__PURE__ */ d.jsxs(
|
|
9545
|
+
return /* @__PURE__ */ d.jsxs(Cw, { children: [
|
|
9553
9546
|
/* @__PURE__ */ d.jsx($d, {}),
|
|
9554
9547
|
/* @__PURE__ */ d.jsxs(
|
|
9555
9548
|
ma,
|
|
@@ -9563,7 +9556,7 @@ const ga = b.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
9563
9556
|
children: [
|
|
9564
9557
|
!o && /* @__PURE__ */ d.jsx(Vr, { className: "sr-only", children: "Dialog" }),
|
|
9565
9558
|
t,
|
|
9566
|
-
/* @__PURE__ */ d.jsxs(
|
|
9559
|
+
/* @__PURE__ */ d.jsxs(Sw, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
9567
9560
|
/* @__PURE__ */ d.jsx(Xo, { className: "h-4 w-4" }),
|
|
9568
9561
|
/* @__PURE__ */ d.jsx("span", { className: "sr-only", children: "Close" })
|
|
9569
9562
|
] })
|
|
@@ -9599,7 +9592,7 @@ const zd = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9599
9592
|
}
|
|
9600
9593
|
));
|
|
9601
9594
|
zd.displayName = Vr.displayName;
|
|
9602
|
-
const
|
|
9595
|
+
const kw = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
9603
9596
|
Dd,
|
|
9604
9597
|
{
|
|
9605
9598
|
ref: n,
|
|
@@ -9607,14 +9600,14 @@ const Tw = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9607
9600
|
...t
|
|
9608
9601
|
}
|
|
9609
9602
|
));
|
|
9610
|
-
|
|
9611
|
-
function
|
|
9603
|
+
kw.displayName = Dd.displayName;
|
|
9604
|
+
function Tw(e, t) {
|
|
9612
9605
|
return t === "application/octet-stream" && e.toLowerCase().endsWith(".pdf") ? "application/pdf" : t;
|
|
9613
9606
|
}
|
|
9614
|
-
function
|
|
9607
|
+
function Iw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
9615
9608
|
const { chatApi: s } = Rr(), i = s.getAuthToken();
|
|
9616
9609
|
if (!e || !n) return null;
|
|
9617
|
-
const a = `${s.baseUrl}/files/${n}/view?token=${i}`, l =
|
|
9610
|
+
const a = `${s.baseUrl}/files/${n}/view?token=${i}`, l = Tw(r, o).startsWith("image/");
|
|
9618
9611
|
return /* @__PURE__ */ d.jsx(Ld, { open: e, onOpenChange: t, children: /* @__PURE__ */ d.jsx(ga, { className: "max-w-6xl w-[95vw] h-[90vh] p-0 overflow-hidden border-none bg-background/95 backdrop-blur-md shadow-2xl", children: /* @__PURE__ */ d.jsxs("div", { className: "w-full h-full flex flex-col relative group", children: [
|
|
9619
9612
|
/* @__PURE__ */ d.jsx("div", { className: "flex-1 min-h-0 w-full h-full bg-background/50 overflow-hidden", children: l ? /* @__PURE__ */ d.jsx("div", { className: "w-full h-full flex items-center justify-center p-8", children: /* @__PURE__ */ d.jsx(
|
|
9620
9613
|
"img",
|
|
@@ -9636,7 +9629,7 @@ function Rw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
|
|
|
9636
9629
|
/* @__PURE__ */ d.jsx("div", { className: "absolute top-4 left-4 bg-background/80 backdrop-blur-md px-3 py-1.5 rounded-full border border-border text-xs font-medium text-muted-foreground opacity-100 group-hover:opacity-0 transition-opacity pointer-events-none shadow-sm", children: r })
|
|
9637
9630
|
] }) }) });
|
|
9638
9631
|
}
|
|
9639
|
-
function
|
|
9632
|
+
function Rw({ artifact: e, showPartialData: t = !1 }) {
|
|
9640
9633
|
if (!e || typeof e != "object") return null;
|
|
9641
9634
|
const n = ws({ artifact: e });
|
|
9642
9635
|
if (!n) return null;
|
|
@@ -9690,11 +9683,11 @@ function Ew({ artifact: e, showPartialData: t = !1 }) {
|
|
|
9690
9683
|
] })
|
|
9691
9684
|
] });
|
|
9692
9685
|
}
|
|
9693
|
-
const
|
|
9694
|
-
function
|
|
9695
|
-
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ d.jsx("div", { className:
|
|
9686
|
+
const Ew = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
|
|
9687
|
+
function Aw({ data: e }) {
|
|
9688
|
+
return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ d.jsx("div", { className: Ew, children: /* @__PURE__ */ d.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ d.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ d.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Gr(e) }) : /* @__PURE__ */ d.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Gr(e) });
|
|
9696
9689
|
}
|
|
9697
|
-
function
|
|
9690
|
+
function Nw(e) {
|
|
9698
9691
|
return e.toolCalls ? e.toolCalls.map((t) => {
|
|
9699
9692
|
let n = t.artifact;
|
|
9700
9693
|
if (!n && typeof t.content == "string") {
|
|
@@ -9717,7 +9710,7 @@ function Bd(e) {
|
|
|
9717
9710
|
}, []);
|
|
9718
9711
|
return {
|
|
9719
9712
|
...De(() => {
|
|
9720
|
-
const s =
|
|
9713
|
+
const s = Nw(e), i = s.filter((a) => a.artifact).map((a) => a.artifact);
|
|
9721
9714
|
return t && !s.some((a) => a.toolCallId === t) && n(null), {
|
|
9722
9715
|
steps: s,
|
|
9723
9716
|
artifacts: i,
|
|
@@ -9810,7 +9803,7 @@ const Kd = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
9810
9803
|
}
|
|
9811
9804
|
));
|
|
9812
9805
|
Kd.displayName = "CardFooter";
|
|
9813
|
-
const
|
|
9806
|
+
const jw = (e) => !!e && typeof e == "object" && e.type === "user_choice" && typeof e.question == "string" && Array.isArray(e.alternatives);
|
|
9814
9807
|
function qd({
|
|
9815
9808
|
interruptPart: e,
|
|
9816
9809
|
onApprove: t,
|
|
@@ -9820,7 +9813,7 @@ function qd({
|
|
|
9820
9813
|
isActive: s,
|
|
9821
9814
|
payload: i
|
|
9822
9815
|
}) {
|
|
9823
|
-
const a =
|
|
9816
|
+
const a = jw(i) ? i : null, c = (a == null ? void 0 : a.question) ?? e.title ?? "Approve the result?", l = a ? s ? "Select one of the alternatives to continue." : "Waiting for approval from another participant." : s ? "Please approve or reject this action to resume the workflow." : "Waiting for approval from another participant.";
|
|
9824
9817
|
let u = null;
|
|
9825
9818
|
if (!a && i !== void 0 && i !== null)
|
|
9826
9819
|
if (typeof i == "string")
|
|
@@ -9883,7 +9876,7 @@ function qd({
|
|
|
9883
9876
|
}
|
|
9884
9877
|
);
|
|
9885
9878
|
}
|
|
9886
|
-
function
|
|
9879
|
+
function _w({ className: e }) {
|
|
9887
9880
|
const t = ve(null);
|
|
9888
9881
|
return Pe(() => {
|
|
9889
9882
|
let n = 0;
|
|
@@ -9931,50 +9924,50 @@ function Gd() {
|
|
|
9931
9924
|
};
|
|
9932
9925
|
}
|
|
9933
9926
|
let or = Gd();
|
|
9934
|
-
function
|
|
9927
|
+
function Pw(e) {
|
|
9935
9928
|
or = e;
|
|
9936
9929
|
}
|
|
9937
|
-
const Yd = /[&<>"']/,
|
|
9930
|
+
const Yd = /[&<>"']/, Ow = new RegExp(Yd.source, "g"), Xd = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Mw = new RegExp(Xd.source, "g"), Dw = {
|
|
9938
9931
|
"&": "&",
|
|
9939
9932
|
"<": "<",
|
|
9940
9933
|
">": ">",
|
|
9941
9934
|
'"': """,
|
|
9942
9935
|
"'": "'"
|
|
9943
|
-
}, Ql = (e) =>
|
|
9936
|
+
}, Ql = (e) => Dw[e];
|
|
9944
9937
|
function Tt(e, t) {
|
|
9945
9938
|
if (t) {
|
|
9946
9939
|
if (Yd.test(e))
|
|
9947
|
-
return e.replace(
|
|
9940
|
+
return e.replace(Ow, Ql);
|
|
9948
9941
|
} else if (Xd.test(e))
|
|
9949
|
-
return e.replace(
|
|
9942
|
+
return e.replace(Mw, Ql);
|
|
9950
9943
|
return e;
|
|
9951
9944
|
}
|
|
9952
|
-
const
|
|
9945
|
+
const Lw = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
|
9953
9946
|
function Jd(e) {
|
|
9954
|
-
return e.replace(
|
|
9947
|
+
return e.replace(Lw, (t, n) => (n = n.toLowerCase(), n === "colon" ? ":" : n.charAt(0) === "#" ? n.charAt(1) === "x" ? String.fromCharCode(parseInt(n.substring(2), 16)) : String.fromCharCode(+n.substring(1)) : ""));
|
|
9955
9948
|
}
|
|
9956
|
-
const
|
|
9949
|
+
const $w = /(^|[^\[])\^/g;
|
|
9957
9950
|
function Ge(e, t) {
|
|
9958
9951
|
e = typeof e == "string" ? e : e.source, t = t || "";
|
|
9959
9952
|
const n = {
|
|
9960
|
-
replace: (r, o) => (o = o.source || o, o = o.replace(
|
|
9953
|
+
replace: (r, o) => (o = o.source || o, o = o.replace($w, "$1"), e = e.replace(r, o), n),
|
|
9961
9954
|
getRegex: () => new RegExp(e, t)
|
|
9962
9955
|
};
|
|
9963
9956
|
return n;
|
|
9964
9957
|
}
|
|
9965
|
-
const
|
|
9958
|
+
const Fw = /[^\w:]/g, zw = /^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;
|
|
9966
9959
|
function ec(e, t, n) {
|
|
9967
9960
|
if (e) {
|
|
9968
9961
|
let r;
|
|
9969
9962
|
try {
|
|
9970
|
-
r = decodeURIComponent(Jd(n)).replace(
|
|
9963
|
+
r = decodeURIComponent(Jd(n)).replace(Fw, "").toLowerCase();
|
|
9971
9964
|
} catch {
|
|
9972
9965
|
return null;
|
|
9973
9966
|
}
|
|
9974
9967
|
if (r.indexOf("javascript:") === 0 || r.indexOf("vbscript:") === 0 || r.indexOf("data:") === 0)
|
|
9975
9968
|
return null;
|
|
9976
9969
|
}
|
|
9977
|
-
t && !
|
|
9970
|
+
t && !zw.test(n) && (n = Ww(t, n));
|
|
9978
9971
|
try {
|
|
9979
9972
|
n = encodeURI(n).replace(/%25/g, "%");
|
|
9980
9973
|
} catch {
|
|
@@ -9982,11 +9975,11 @@ function ec(e, t, n) {
|
|
|
9982
9975
|
}
|
|
9983
9976
|
return n;
|
|
9984
9977
|
}
|
|
9985
|
-
const Ro = {},
|
|
9986
|
-
function
|
|
9987
|
-
Ro[" " + e] || (
|
|
9978
|
+
const Ro = {}, Bw = /^[^:]+:\/*[^/]*$/, Hw = /^([^:]+:)[\s\S]*$/, Uw = /^([^:]+:\/*[^/]*)[\s\S]*$/;
|
|
9979
|
+
function Ww(e, t) {
|
|
9980
|
+
Ro[" " + e] || (Bw.test(e) ? Ro[" " + e] = e + "/" : Ro[" " + e] = Wo(e, "/", !0)), e = Ro[" " + e];
|
|
9988
9981
|
const n = e.indexOf(":") === -1;
|
|
9989
|
-
return t.substring(0, 2) === "//" ? n ? t : e.replace(
|
|
9982
|
+
return t.substring(0, 2) === "//" ? n ? t : e.replace(Hw, "$1") + t : t.charAt(0) === "/" ? n ? t : e.replace(Uw, "$1") + t : e + t;
|
|
9990
9983
|
}
|
|
9991
9984
|
const ss = { exec: function() {
|
|
9992
9985
|
} };
|
|
@@ -10021,7 +10014,7 @@ function Wo(e, t, n) {
|
|
|
10021
10014
|
}
|
|
10022
10015
|
return e.slice(0, r - o);
|
|
10023
10016
|
}
|
|
10024
|
-
function
|
|
10017
|
+
function Vw(e, t) {
|
|
10025
10018
|
if (e.indexOf(t[1]) === -1)
|
|
10026
10019
|
return -1;
|
|
10027
10020
|
const n = e.length;
|
|
@@ -10035,7 +10028,7 @@ function Kw(e, t) {
|
|
|
10035
10028
|
return o;
|
|
10036
10029
|
return -1;
|
|
10037
10030
|
}
|
|
10038
|
-
function
|
|
10031
|
+
function Kw(e) {
|
|
10039
10032
|
e && e.sanitize && !e.silent && console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options");
|
|
10040
10033
|
}
|
|
10041
10034
|
function nc(e, t) {
|
|
@@ -10068,7 +10061,7 @@ function rc(e, t, n, r) {
|
|
|
10068
10061
|
text: Tt(i)
|
|
10069
10062
|
};
|
|
10070
10063
|
}
|
|
10071
|
-
function
|
|
10064
|
+
function qw(e, t) {
|
|
10072
10065
|
const n = e.match(/^(\s+)(?:```)/);
|
|
10073
10066
|
if (n === null)
|
|
10074
10067
|
return t;
|
|
@@ -10111,7 +10104,7 @@ class xa {
|
|
|
10111
10104
|
fences(t) {
|
|
10112
10105
|
const n = this.rules.block.fences.exec(t);
|
|
10113
10106
|
if (n) {
|
|
10114
|
-
const r = n[0], o =
|
|
10107
|
+
const r = n[0], o = qw(r, n[3] || "");
|
|
10115
10108
|
return {
|
|
10116
10109
|
type: "code",
|
|
10117
10110
|
raw: r,
|
|
@@ -10336,7 +10329,7 @@ class xa {
|
|
|
10336
10329
|
if ((r.length - i.length) % 2 === 0)
|
|
10337
10330
|
return;
|
|
10338
10331
|
} else {
|
|
10339
|
-
const i =
|
|
10332
|
+
const i = Vw(n[2], "()");
|
|
10340
10333
|
if (i > -1) {
|
|
10341
10334
|
const c = (n[0].indexOf("!") === 0 ? 5 : 4) + n[1].length + i;
|
|
10342
10335
|
n[2] = n[2].substring(0, i), n[0] = n[0].substring(0, c).trim(), n[3] = "";
|
|
@@ -10624,7 +10617,7 @@ de.breaks = {
|
|
|
10624
10617
|
br: Ge(de.br).replace("{2,}", "*").getRegex(),
|
|
10625
10618
|
text: Ge(de.gfm.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
|
10626
10619
|
};
|
|
10627
|
-
function
|
|
10620
|
+
function Gw(e) {
|
|
10628
10621
|
return e.replace(/---/g, "—").replace(/--/g, "–").replace(/(^|[-\u2014/(\[{"\s])'/g, "$1‘").replace(/'/g, "’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g, "$1“").replace(/"/g, "”").replace(/\.{3}/g, "…");
|
|
10629
10622
|
}
|
|
10630
10623
|
function oc(e) {
|
|
@@ -10838,7 +10831,7 @@ class Pn {
|
|
|
10838
10831
|
h = p.call({ lexer: this }, f), typeof h == "number" && h >= 0 && (u = Math.min(u, h));
|
|
10839
10832
|
}), u < 1 / 0 && u >= 0 && (s = t.substring(0, u + 1));
|
|
10840
10833
|
}
|
|
10841
|
-
if (r = this.tokenizer.inlineText(s,
|
|
10834
|
+
if (r = this.tokenizer.inlineText(s, Gw)) {
|
|
10842
10835
|
t = t.substring(r.raw.length), r.raw.slice(-1) !== "_" && (l = r.raw.slice(-1)), c = !0, o = n[n.length - 1], o && o.type === "text" ? (o.raw += r.raw, o.text += r.text) : n.push(r);
|
|
10843
10836
|
continue;
|
|
10844
10837
|
}
|
|
@@ -11262,7 +11255,7 @@ Us(is, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
|
11262
11255
|
"preprocess",
|
|
11263
11256
|
"postprocess"
|
|
11264
11257
|
]));
|
|
11265
|
-
function
|
|
11258
|
+
function Yw(e, t, n) {
|
|
11266
11259
|
return (r) => {
|
|
11267
11260
|
if (r.message += `
|
|
11268
11261
|
Please report this to https://github.com/markedjs/marked.`, e) {
|
|
@@ -11289,12 +11282,12 @@ function ef(e, t) {
|
|
|
11289
11282
|
typeof r == "function" && (o = r, r = null);
|
|
11290
11283
|
const s = { ...r };
|
|
11291
11284
|
r = { ...me.defaults, ...s };
|
|
11292
|
-
const i =
|
|
11285
|
+
const i = Yw(r.silent, r.async, o);
|
|
11293
11286
|
if (typeof n > "u" || n === null)
|
|
11294
11287
|
return i(new Error("marked(): input parameter is undefined or null"));
|
|
11295
11288
|
if (typeof n != "string")
|
|
11296
11289
|
return i(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
11297
|
-
if (
|
|
11290
|
+
if (Kw(r), r.hooks && (r.hooks.options = r), o) {
|
|
11298
11291
|
const a = r.highlight;
|
|
11299
11292
|
let c;
|
|
11300
11293
|
try {
|
|
@@ -11342,7 +11335,7 @@ function me(e, t, n) {
|
|
|
11342
11335
|
return ef(Pn.lex, On.parse)(e, t, n);
|
|
11343
11336
|
}
|
|
11344
11337
|
me.options = me.setOptions = function(e) {
|
|
11345
|
-
return me.defaults = { ...me.defaults, ...e },
|
|
11338
|
+
return me.defaults = { ...me.defaults, ...e }, Pw(me.defaults), me;
|
|
11346
11339
|
};
|
|
11347
11340
|
me.getDefaults = Gd;
|
|
11348
11341
|
me.defaults = or;
|
|
@@ -11521,7 +11514,7 @@ function Vo({
|
|
|
11521
11514
|
}
|
|
11522
11515
|
);
|
|
11523
11516
|
}
|
|
11524
|
-
function
|
|
11517
|
+
function Xw({
|
|
11525
11518
|
text: e,
|
|
11526
11519
|
expanded: t,
|
|
11527
11520
|
onExpandedChange: n,
|
|
@@ -11564,7 +11557,7 @@ function Jw({
|
|
|
11564
11557
|
)
|
|
11565
11558
|
] });
|
|
11566
11559
|
}
|
|
11567
|
-
function
|
|
11560
|
+
function Jw(e, t, n) {
|
|
11568
11561
|
const [r, o] = ue(e), s = ve(e), i = ve(null);
|
|
11569
11562
|
return Pe(() => {
|
|
11570
11563
|
s.current = e;
|
|
@@ -11582,7 +11575,7 @@ function Zw(e, t, n) {
|
|
|
11582
11575
|
};
|
|
11583
11576
|
}, [e, t, n]), r;
|
|
11584
11577
|
}
|
|
11585
|
-
function
|
|
11578
|
+
function Zw({
|
|
11586
11579
|
message: e,
|
|
11587
11580
|
isToolMessage: t,
|
|
11588
11581
|
showToolMessages: n,
|
|
@@ -11615,7 +11608,7 @@ function Qw({
|
|
|
11615
11608
|
const q = ne(() => /* @__PURE__ */ d.jsxs("div", { className: "flex items-center gap-2 p-2 bg-muted/30 rounded", children: [
|
|
11616
11609
|
/* @__PURE__ */ d.jsx(Va, { className: "h-4 w-4 text-muted-foreground" }),
|
|
11617
11610
|
/* @__PURE__ */ d.jsx("span", { className: "text-sm text-muted-foreground", children: "File upload" })
|
|
11618
|
-
] }), []), P =
|
|
11611
|
+
] }), []), P = Jw(
|
|
11619
11612
|
r,
|
|
11620
11613
|
(f ?? !0) && c,
|
|
11621
11614
|
l ?? 0
|
|
@@ -11628,7 +11621,7 @@ function Qw({
|
|
|
11628
11621
|
), { artifacts: ie } = Bd(e), U = De(() => {
|
|
11629
11622
|
if (!h)
|
|
11630
11623
|
return null;
|
|
11631
|
-
const $ =
|
|
11624
|
+
const $ = ev(Y);
|
|
11632
11625
|
return {
|
|
11633
11626
|
stablePart: Y.slice(0, $),
|
|
11634
11627
|
tailPart: Y.slice($)
|
|
@@ -11676,8 +11669,8 @@ function Qw({
|
|
|
11676
11669
|
if (h)
|
|
11677
11670
|
return null;
|
|
11678
11671
|
const K = $.text ?? "", re = K.trim(), fe = Er(re);
|
|
11679
|
-
return fe && g !== "tool" ? /* @__PURE__ */ d.jsx(
|
|
11680
|
-
|
|
11672
|
+
return fe && g !== "tool" ? /* @__PURE__ */ d.jsx(Aw, { data: fe }, j) : g === "user" && x && re.length > y ? /* @__PURE__ */ d.jsx(
|
|
11673
|
+
Xw,
|
|
11681
11674
|
{
|
|
11682
11675
|
text: re,
|
|
11683
11676
|
expanded: w,
|
|
@@ -11752,7 +11745,7 @@ function Qw({
|
|
|
11752
11745
|
toolConfig: v
|
|
11753
11746
|
}
|
|
11754
11747
|
) }),
|
|
11755
|
-
R.map(($, j) => h &&
|
|
11748
|
+
R.map(($, j) => h && tv($) ? L ? /* @__PURE__ */ d.jsx("div", { className: "space-y-2", children: L }, `streaming-md-${j}`) : null : /* @__PURE__ */ d.jsx(M, { part: $, i: j }, j)),
|
|
11756
11749
|
E(),
|
|
11757
11750
|
H && (ie.length > 0 || !!e.artifact) && /* @__PURE__ */ d.jsxs("div", { className: "mt-4 pt-4 border-t border-border/40 space-y-4", children: [
|
|
11758
11751
|
!!e.artifact && /* @__PURE__ */ d.jsx(
|
|
@@ -11786,29 +11779,29 @@ function Qw({
|
|
|
11786
11779
|
className: "inline-block w-2 h-4 ml-0.5 bg-current opacity-70 animate-pulse align-middle",
|
|
11787
11780
|
"aria-hidden": "true"
|
|
11788
11781
|
}
|
|
11789
|
-
) : /* @__PURE__ */ d.jsx(
|
|
11782
|
+
) : /* @__PURE__ */ d.jsx(_w, { className: C })
|
|
11790
11783
|
] });
|
|
11791
11784
|
}
|
|
11792
11785
|
return V;
|
|
11793
11786
|
}
|
|
11794
|
-
function
|
|
11787
|
+
function Qw(e) {
|
|
11795
11788
|
return e ? !($r(e, /```/g) || $r(e, /`/g) || $r(e, /\*\*/g) || $r(e, /__/g) || $r(e, /~~/g) || /[^\\]\[[^\]]*$/.test(e) || /\[[^\]]*\]\([^)]*$/.test(e)) : !0;
|
|
11796
11789
|
}
|
|
11797
11790
|
function $r(e, t) {
|
|
11798
11791
|
const n = e.match(t);
|
|
11799
11792
|
return ((n == null ? void 0 : n.length) ?? 0) % 2 !== 0;
|
|
11800
11793
|
}
|
|
11801
|
-
function
|
|
11794
|
+
function ev(e) {
|
|
11802
11795
|
if (!e) return 0;
|
|
11803
11796
|
for (let t = e.length; t >= 0; t -= 1)
|
|
11804
|
-
if (
|
|
11797
|
+
if (Qw(e.slice(0, t)))
|
|
11805
11798
|
return t;
|
|
11806
11799
|
return 0;
|
|
11807
11800
|
}
|
|
11808
|
-
function
|
|
11801
|
+
function tv(e) {
|
|
11809
11802
|
return e.type === "text" && !!e.__streamingMarkdownAggregate;
|
|
11810
11803
|
}
|
|
11811
|
-
const
|
|
11804
|
+
const nv = Ec(
|
|
11812
11805
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
11813
11806
|
{
|
|
11814
11807
|
variants: {
|
|
@@ -11824,10 +11817,10 @@ const rv = Ec(
|
|
|
11824
11817
|
}
|
|
11825
11818
|
}
|
|
11826
11819
|
);
|
|
11827
|
-
function
|
|
11828
|
-
return /* @__PURE__ */ d.jsx("div", { className: le(
|
|
11820
|
+
function rv({ className: e, variant: t, ...n }) {
|
|
11821
|
+
return /* @__PURE__ */ d.jsx("div", { className: le(nv({ variant: t }), e), ...n });
|
|
11829
11822
|
}
|
|
11830
|
-
function
|
|
11823
|
+
function ov({
|
|
11831
11824
|
showTimestamp: e,
|
|
11832
11825
|
showAgentName: t,
|
|
11833
11826
|
isToolMessage: n,
|
|
@@ -11867,7 +11860,7 @@ function sv({
|
|
|
11867
11860
|
i,
|
|
11868
11861
|
t && s && /* @__PURE__ */ d.jsx("span", { className: le("font-medium", l ? "text-xs" : "text-sm"), children: s }),
|
|
11869
11862
|
n && !r && /* @__PURE__ */ d.jsx(
|
|
11870
|
-
|
|
11863
|
+
rv,
|
|
11871
11864
|
{
|
|
11872
11865
|
variant: "outline",
|
|
11873
11866
|
className: le(
|
|
@@ -11981,9 +11974,9 @@ function sv({
|
|
|
11981
11974
|
}
|
|
11982
11975
|
);
|
|
11983
11976
|
}
|
|
11984
|
-
const
|
|
11977
|
+
const sv = 1, iv = 1e6;
|
|
11985
11978
|
let ai = 0;
|
|
11986
|
-
function
|
|
11979
|
+
function av() {
|
|
11987
11980
|
return ai = (ai + 1) % Number.MAX_SAFE_INTEGER, ai.toString();
|
|
11988
11981
|
}
|
|
11989
11982
|
const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
@@ -11994,14 +11987,14 @@ const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
|
11994
11987
|
type: "REMOVE_TOAST",
|
|
11995
11988
|
toastId: e
|
|
11996
11989
|
});
|
|
11997
|
-
},
|
|
11990
|
+
}, iv);
|
|
11998
11991
|
li.set(e, t);
|
|
11999
|
-
},
|
|
11992
|
+
}, lv = (e, t) => {
|
|
12000
11993
|
switch (t.type) {
|
|
12001
11994
|
case "ADD_TOAST":
|
|
12002
11995
|
return {
|
|
12003
11996
|
...e,
|
|
12004
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
11997
|
+
toasts: [t.toast, ...e.toasts].slice(0, sv)
|
|
12005
11998
|
};
|
|
12006
11999
|
case "UPDATE_TOAST":
|
|
12007
12000
|
return {
|
|
@@ -12036,12 +12029,12 @@ const li = /* @__PURE__ */ new Map(), sc = (e) => {
|
|
|
12036
12029
|
}, Ko = [];
|
|
12037
12030
|
let qo = { toasts: [] };
|
|
12038
12031
|
function Kr(e) {
|
|
12039
|
-
qo =
|
|
12032
|
+
qo = lv(qo, e), Ko.forEach((t) => {
|
|
12040
12033
|
t(qo);
|
|
12041
12034
|
});
|
|
12042
12035
|
}
|
|
12043
|
-
function
|
|
12044
|
-
const t =
|
|
12036
|
+
function cv({ ...e }) {
|
|
12037
|
+
const t = av(), n = (o) => Kr({
|
|
12045
12038
|
type: "UPDATE_TOAST",
|
|
12046
12039
|
toast: { ...o, id: t }
|
|
12047
12040
|
}), r = () => Kr({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -12061,19 +12054,19 @@ function uv({ ...e }) {
|
|
|
12061
12054
|
update: n
|
|
12062
12055
|
};
|
|
12063
12056
|
}
|
|
12064
|
-
function
|
|
12057
|
+
function uv() {
|
|
12065
12058
|
const [e, t] = b.useState(qo);
|
|
12066
12059
|
return b.useEffect(() => (Ko.push(t), () => {
|
|
12067
12060
|
const n = Ko.indexOf(t);
|
|
12068
12061
|
n > -1 && Ko.splice(n, 1);
|
|
12069
12062
|
}), [e]), {
|
|
12070
12063
|
...e,
|
|
12071
|
-
toast:
|
|
12064
|
+
toast: cv,
|
|
12072
12065
|
dismiss: (n) => Kr({ type: "DISMISS_TOAST", toastId: n })
|
|
12073
12066
|
};
|
|
12074
12067
|
}
|
|
12075
|
-
function
|
|
12076
|
-
const { allowFileOpen: t, currentThreadId: n } = e, { fileApi: r } = Rr(), { toast: o } =
|
|
12068
|
+
function dv(e) {
|
|
12069
|
+
const { allowFileOpen: t, currentThreadId: n } = e, { fileApi: r } = Rr(), { toast: o } = uv(), [s, i] = ue({}), [a, c] = ue(null), [l, u] = ue(!1), f = ne(() => {
|
|
12077
12070
|
u(!1), c(null);
|
|
12078
12071
|
}, []), h = ne((m) => {
|
|
12079
12072
|
c(m), u(!0);
|
|
@@ -12144,7 +12137,7 @@ function fv(e) {
|
|
|
12144
12137
|
closeFileViewer: f
|
|
12145
12138
|
};
|
|
12146
12139
|
}
|
|
12147
|
-
function
|
|
12140
|
+
function fv(e) {
|
|
12148
12141
|
return De(() => {
|
|
12149
12142
|
const t = e;
|
|
12150
12143
|
let n = Array.isArray(t.content) ? t.content : [];
|
|
@@ -12163,7 +12156,7 @@ function hv(e) {
|
|
|
12163
12156
|
}, [e]);
|
|
12164
12157
|
}
|
|
12165
12158
|
const ic = "data:";
|
|
12166
|
-
function
|
|
12159
|
+
function hv(e) {
|
|
12167
12160
|
if (!e) return [];
|
|
12168
12161
|
const t = [], n = e.split(/\r?\n/);
|
|
12169
12162
|
for (const r of n) {
|
|
@@ -12178,7 +12171,7 @@ function pv(e) {
|
|
|
12178
12171
|
}
|
|
12179
12172
|
return t;
|
|
12180
12173
|
}
|
|
12181
|
-
function
|
|
12174
|
+
function pv(e) {
|
|
12182
12175
|
for (let t = e.length - 1; t >= 0; t -= 1) {
|
|
12183
12176
|
const n = e[t];
|
|
12184
12177
|
if (n && typeof n == "object" && n.type === "tool.end")
|
|
@@ -12186,7 +12179,7 @@ function mv(e) {
|
|
|
12186
12179
|
}
|
|
12187
12180
|
return null;
|
|
12188
12181
|
}
|
|
12189
|
-
function
|
|
12182
|
+
function mv(e) {
|
|
12190
12183
|
return De(() => {
|
|
12191
12184
|
const t = e.content.filter(
|
|
12192
12185
|
(l) => l.type === "text"
|
|
@@ -12194,7 +12187,7 @@ function gv(e) {
|
|
|
12194
12187
|
if (!t.length)
|
|
12195
12188
|
return null;
|
|
12196
12189
|
let r = t.flatMap(
|
|
12197
|
-
(l) =>
|
|
12190
|
+
(l) => hv(l.text ?? "")
|
|
12198
12191
|
);
|
|
12199
12192
|
if (!r.length) {
|
|
12200
12193
|
const l = t.map((f) => f.text ?? "").join(`
|
|
@@ -12203,7 +12196,7 @@ function gv(e) {
|
|
|
12203
12196
|
}
|
|
12204
12197
|
if (!r.length)
|
|
12205
12198
|
return null;
|
|
12206
|
-
const s =
|
|
12199
|
+
const s = pv(r) ?? r[r.length - 1];
|
|
12207
12200
|
if (!s)
|
|
12208
12201
|
return null;
|
|
12209
12202
|
const i = s.output ?? s.payload ?? s, a = Hr(i), c = wr(a);
|
|
@@ -12253,7 +12246,7 @@ const tf = pp(function({
|
|
|
12253
12246
|
fileViewerOpen: K,
|
|
12254
12247
|
currentFileInfo: re,
|
|
12255
12248
|
closeFileViewer: fe
|
|
12256
|
-
} =
|
|
12249
|
+
} = dv({ allowFileOpen: V, currentThreadId: G }), te = De(() => {
|
|
12257
12250
|
switch (X) {
|
|
12258
12251
|
case "user":
|
|
12259
12252
|
return "text-[hsl(var(--chat-bubble-user-text))]";
|
|
@@ -12268,7 +12261,7 @@ const tf = pp(function({
|
|
|
12268
12261
|
default:
|
|
12269
12262
|
return "text-[hsl(var(--chat-bubble-ai-text))]";
|
|
12270
12263
|
}
|
|
12271
|
-
}, [X]), ye =
|
|
12264
|
+
}, [X]), ye = fv(t), {
|
|
12272
12265
|
contentParts: ke,
|
|
12273
12266
|
imageParts: xe,
|
|
12274
12267
|
fileParts: We,
|
|
@@ -12405,7 +12398,7 @@ const tf = pp(function({
|
|
|
12405
12398
|
);
|
|
12406
12399
|
}
|
|
12407
12400
|
}, [L, X]), Nt = f || B, ut = /* @__PURE__ */ d.jsx(
|
|
12408
|
-
|
|
12401
|
+
Zw,
|
|
12409
12402
|
{
|
|
12410
12403
|
message: t,
|
|
12411
12404
|
isToolMessage: R,
|
|
@@ -12449,7 +12442,7 @@ const tf = pp(function({
|
|
|
12449
12442
|
return R && !f ? null : /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
|
12450
12443
|
/* @__PURE__ */ d.jsx("div", { className: le(lt(), p.container), children: /* @__PURE__ */ d.jsxs("div", { className: le(nn(), p.content), children: [
|
|
12451
12444
|
/* @__PURE__ */ d.jsx(
|
|
12452
|
-
|
|
12445
|
+
ov,
|
|
12453
12446
|
{
|
|
12454
12447
|
showTimestamp: i,
|
|
12455
12448
|
showAgentName: a,
|
|
@@ -12521,7 +12514,7 @@ const tf = pp(function({
|
|
|
12521
12514
|
)
|
|
12522
12515
|
] }) }),
|
|
12523
12516
|
re && /* @__PURE__ */ d.jsx(
|
|
12524
|
-
|
|
12517
|
+
Iw,
|
|
12525
12518
|
{
|
|
12526
12519
|
isOpen: K,
|
|
12527
12520
|
onClose: fe,
|
|
@@ -12548,7 +12541,7 @@ const tf = pp(function({
|
|
|
12548
12541
|
return !(!o || !s);
|
|
12549
12542
|
});
|
|
12550
12543
|
tf.displayName = "MessageComponent";
|
|
12551
|
-
const
|
|
12544
|
+
const gv = {
|
|
12552
12545
|
checkpoints: [],
|
|
12553
12546
|
checkpointMetaByCheckpointId: /* @__PURE__ */ new Map(),
|
|
12554
12547
|
timeline: [],
|
|
@@ -12577,8 +12570,8 @@ const xv = {
|
|
|
12577
12570
|
toolConfig: x,
|
|
12578
12571
|
renderArtifactsInline: y = !0
|
|
12579
12572
|
}) {
|
|
12580
|
-
const w = nf(t, n), C = !!t.__syntheticStreaming || r === t.id && t.role === "assistant", v = h ??
|
|
12581
|
-
() =>
|
|
12573
|
+
const w = nf(t, n), C = !!t.__syntheticStreaming || r === t.id && t.role === "assistant", v = h ?? gv, T = t.checkpointId ?? null, { attemptCount: A, attemptIndex: N, attempts: D } = De(
|
|
12574
|
+
() => dx(t.id, T, v),
|
|
12582
12575
|
[t.id, T, v]
|
|
12583
12576
|
), H = m == null ? void 0 : m(t);
|
|
12584
12577
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -12621,7 +12614,7 @@ const xv = {
|
|
|
12621
12614
|
);
|
|
12622
12615
|
});
|
|
12623
12616
|
rf.displayName = "MessageRow";
|
|
12624
|
-
const
|
|
12617
|
+
const xv = Object.freeze({}), of = ee.forwardRef(({
|
|
12625
12618
|
messages: e = [],
|
|
12626
12619
|
isStreaming: t,
|
|
12627
12620
|
streamingAssistantId: n,
|
|
@@ -12687,7 +12680,7 @@ const yv = Object.freeze({}), of = ee.forwardRef(({
|
|
|
12687
12680
|
expandable: !0
|
|
12688
12681
|
};
|
|
12689
12682
|
}, [D, C]), B = ee.useMemo(() => !X || ie || e.some((te) => te.id === X.id) ? e : [...e, X], [e, X, ie]), R = De(() => B.filter((te) => te.role !== "tool"), [B]), E = De(
|
|
12690
|
-
() => k ??
|
|
12683
|
+
() => k ?? xv,
|
|
12691
12684
|
[k]
|
|
12692
12685
|
), M = ne((te) => {
|
|
12693
12686
|
x && x(!te), y && y(te);
|
|
@@ -12740,7 +12733,7 @@ const yv = Object.freeze({}), of = ee.forwardRef(({
|
|
|
12740
12733
|
}),
|
|
12741
12734
|
[R]
|
|
12742
12735
|
), /* @__PURE__ */ d.jsx("div", { className: j, style: h, children: /* @__PURE__ */ d.jsx("div", { className: "relative flex-1 min-h-0 min-w-0", children: fe ? /* @__PURE__ */ d.jsx(
|
|
12743
|
-
|
|
12736
|
+
$y,
|
|
12744
12737
|
{
|
|
12745
12738
|
ref: (te) => {
|
|
12746
12739
|
W.current = te;
|
|
@@ -12827,20 +12820,20 @@ function sf(e) {
|
|
|
12827
12820
|
r
|
|
12828
12821
|
];
|
|
12829
12822
|
}
|
|
12830
|
-
var
|
|
12823
|
+
var yv = b.createContext(void 0);
|
|
12831
12824
|
function ba(e) {
|
|
12832
|
-
const t = b.useContext(
|
|
12825
|
+
const t = b.useContext(yv);
|
|
12833
12826
|
return e || t || "ltr";
|
|
12834
12827
|
}
|
|
12835
|
-
const
|
|
12828
|
+
const bv = ["top", "right", "bottom", "left"], Mn = Math.min, Vt = Math.max, as = Math.round, Eo = Math.floor, xn = (e) => ({
|
|
12836
12829
|
x: e,
|
|
12837
12830
|
y: e
|
|
12838
|
-
}),
|
|
12831
|
+
}), wv = {
|
|
12839
12832
|
left: "right",
|
|
12840
12833
|
right: "left",
|
|
12841
12834
|
bottom: "top",
|
|
12842
12835
|
top: "bottom"
|
|
12843
|
-
},
|
|
12836
|
+
}, vv = {
|
|
12844
12837
|
start: "end",
|
|
12845
12838
|
end: "start"
|
|
12846
12839
|
};
|
|
@@ -12862,48 +12855,48 @@ function wa(e) {
|
|
|
12862
12855
|
function va(e) {
|
|
12863
12856
|
return e === "y" ? "height" : "width";
|
|
12864
12857
|
}
|
|
12865
|
-
const
|
|
12858
|
+
const Sv = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
12866
12859
|
function gn(e) {
|
|
12867
|
-
return
|
|
12860
|
+
return Sv.has(Rn(e)) ? "y" : "x";
|
|
12868
12861
|
}
|
|
12869
12862
|
function Sa(e) {
|
|
12870
12863
|
return wa(gn(e));
|
|
12871
12864
|
}
|
|
12872
|
-
function
|
|
12865
|
+
function Cv(e, t, n) {
|
|
12873
12866
|
n === void 0 && (n = !1);
|
|
12874
12867
|
const r = _r(e), o = Sa(e), s = va(o);
|
|
12875
12868
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
12876
12869
|
return t.reference[s] > t.floating[s] && (i = ls(i)), [i, ls(i)];
|
|
12877
12870
|
}
|
|
12878
|
-
function
|
|
12871
|
+
function kv(e) {
|
|
12879
12872
|
const t = ls(e);
|
|
12880
12873
|
return [Pi(e), t, Pi(t)];
|
|
12881
12874
|
}
|
|
12882
12875
|
function Pi(e) {
|
|
12883
|
-
return e.replace(/start|end/g, (t) =>
|
|
12876
|
+
return e.replace(/start|end/g, (t) => vv[t]);
|
|
12884
12877
|
}
|
|
12885
|
-
const ac = ["left", "right"], lc = ["right", "left"],
|
|
12886
|
-
function
|
|
12878
|
+
const ac = ["left", "right"], lc = ["right", "left"], Tv = ["top", "bottom"], Iv = ["bottom", "top"];
|
|
12879
|
+
function Rv(e, t, n) {
|
|
12887
12880
|
switch (e) {
|
|
12888
12881
|
case "top":
|
|
12889
12882
|
case "bottom":
|
|
12890
12883
|
return n ? t ? lc : ac : t ? ac : lc;
|
|
12891
12884
|
case "left":
|
|
12892
12885
|
case "right":
|
|
12893
|
-
return t ?
|
|
12886
|
+
return t ? Tv : Iv;
|
|
12894
12887
|
default:
|
|
12895
12888
|
return [];
|
|
12896
12889
|
}
|
|
12897
12890
|
}
|
|
12898
|
-
function
|
|
12891
|
+
function Ev(e, t, n, r) {
|
|
12899
12892
|
const o = _r(e);
|
|
12900
|
-
let s =
|
|
12893
|
+
let s = Rv(Rn(e), n === "start", r);
|
|
12901
12894
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(Pi)))), s;
|
|
12902
12895
|
}
|
|
12903
12896
|
function ls(e) {
|
|
12904
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
12897
|
+
return e.replace(/left|right|bottom|top/g, (t) => wv[t]);
|
|
12905
12898
|
}
|
|
12906
|
-
function
|
|
12899
|
+
function Av(e) {
|
|
12907
12900
|
return {
|
|
12908
12901
|
top: 0,
|
|
12909
12902
|
right: 0,
|
|
@@ -12913,7 +12906,7 @@ function Nv(e) {
|
|
|
12913
12906
|
};
|
|
12914
12907
|
}
|
|
12915
12908
|
function af(e) {
|
|
12916
|
-
return typeof e != "number" ?
|
|
12909
|
+
return typeof e != "number" ? Av(e) : {
|
|
12917
12910
|
top: e,
|
|
12918
12911
|
right: e,
|
|
12919
12912
|
bottom: e,
|
|
@@ -12986,7 +12979,7 @@ function cc(e, t, n) {
|
|
|
12986
12979
|
}
|
|
12987
12980
|
return p;
|
|
12988
12981
|
}
|
|
12989
|
-
const
|
|
12982
|
+
const Nv = async (e, t, n) => {
|
|
12990
12983
|
const {
|
|
12991
12984
|
placement: r = "bottom",
|
|
12992
12985
|
strategy: o = "absolute",
|
|
@@ -13092,7 +13085,7 @@ async function eo(e, t) {
|
|
|
13092
13085
|
right: (C.right - y.right + m.right) / I.x
|
|
13093
13086
|
};
|
|
13094
13087
|
}
|
|
13095
|
-
const
|
|
13088
|
+
const jv = (e) => ({
|
|
13096
13089
|
name: "arrow",
|
|
13097
13090
|
options: e,
|
|
13098
13091
|
async fn(t) {
|
|
@@ -13129,7 +13122,7 @@ const _v = (e) => ({
|
|
|
13129
13122
|
reset: Y
|
|
13130
13123
|
};
|
|
13131
13124
|
}
|
|
13132
|
-
}),
|
|
13125
|
+
}), _v = function(e) {
|
|
13133
13126
|
return e === void 0 && (e = {}), {
|
|
13134
13127
|
name: "flip",
|
|
13135
13128
|
options: e,
|
|
@@ -13153,12 +13146,12 @@ const _v = (e) => ({
|
|
|
13153
13146
|
} = In(e, t);
|
|
13154
13147
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
13155
13148
|
return {};
|
|
13156
|
-
const y = Rn(o), w = gn(a), k = Rn(a) === a, I = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = h || (k || !g ? [ls(a)] :
|
|
13157
|
-
!h && v && C.push(...
|
|
13149
|
+
const y = Rn(o), w = gn(a), k = Rn(a) === a, I = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), C = h || (k || !g ? [ls(a)] : kv(a)), v = m !== "none";
|
|
13150
|
+
!h && v && C.push(...Ev(a, g, m, I));
|
|
13158
13151
|
const T = [a, ...C], A = await eo(t, x), N = [];
|
|
13159
13152
|
let D = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
13160
13153
|
if (u && N.push(A[y]), f) {
|
|
13161
|
-
const P =
|
|
13154
|
+
const P = Cv(o, i, I);
|
|
13162
13155
|
N.push(A[P[0]], A[P[1]]);
|
|
13163
13156
|
}
|
|
13164
13157
|
if (D = [...D, {
|
|
@@ -13220,9 +13213,9 @@ function uc(e, t) {
|
|
|
13220
13213
|
};
|
|
13221
13214
|
}
|
|
13222
13215
|
function dc(e) {
|
|
13223
|
-
return
|
|
13216
|
+
return bv.some((t) => e[t] >= 0);
|
|
13224
13217
|
}
|
|
13225
|
-
const
|
|
13218
|
+
const Pv = function(e) {
|
|
13226
13219
|
return e === void 0 && (e = {}), {
|
|
13227
13220
|
name: "hide",
|
|
13228
13221
|
options: e,
|
|
@@ -13264,7 +13257,7 @@ const Ov = function(e) {
|
|
|
13264
13257
|
}
|
|
13265
13258
|
};
|
|
13266
13259
|
}, lf = /* @__PURE__ */ new Set(["left", "top"]);
|
|
13267
|
-
async function
|
|
13260
|
+
async function Ov(e, t) {
|
|
13268
13261
|
const {
|
|
13269
13262
|
placement: n,
|
|
13270
13263
|
platform: r,
|
|
@@ -13291,7 +13284,7 @@ async function Mv(e, t) {
|
|
|
13291
13284
|
y: p * u
|
|
13292
13285
|
};
|
|
13293
13286
|
}
|
|
13294
|
-
const
|
|
13287
|
+
const Mv = function(e) {
|
|
13295
13288
|
return e === void 0 && (e = 0), {
|
|
13296
13289
|
name: "offset",
|
|
13297
13290
|
options: e,
|
|
@@ -13302,7 +13295,7 @@ const Dv = function(e) {
|
|
|
13302
13295
|
y: s,
|
|
13303
13296
|
placement: i,
|
|
13304
13297
|
middlewareData: a
|
|
13305
|
-
} = t, c = await
|
|
13298
|
+
} = t, c = await Ov(t, e);
|
|
13306
13299
|
return i === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
13307
13300
|
x: o + c.x,
|
|
13308
13301
|
y: s + c.y,
|
|
@@ -13313,7 +13306,7 @@ const Dv = function(e) {
|
|
|
13313
13306
|
};
|
|
13314
13307
|
}
|
|
13315
13308
|
};
|
|
13316
|
-
},
|
|
13309
|
+
}, Dv = function(e) {
|
|
13317
13310
|
return e === void 0 && (e = {}), {
|
|
13318
13311
|
name: "shift",
|
|
13319
13312
|
options: e,
|
|
@@ -13369,7 +13362,7 @@ const Dv = function(e) {
|
|
|
13369
13362
|
};
|
|
13370
13363
|
}
|
|
13371
13364
|
};
|
|
13372
|
-
},
|
|
13365
|
+
}, Lv = function(e) {
|
|
13373
13366
|
return e === void 0 && (e = {}), {
|
|
13374
13367
|
options: e,
|
|
13375
13368
|
fn(t) {
|
|
@@ -13411,7 +13404,7 @@ const Dv = function(e) {
|
|
|
13411
13404
|
};
|
|
13412
13405
|
}
|
|
13413
13406
|
};
|
|
13414
|
-
},
|
|
13407
|
+
}, $v = function(e) {
|
|
13415
13408
|
return e === void 0 && (e = {}), {
|
|
13416
13409
|
name: "size",
|
|
13417
13410
|
options: e,
|
|
@@ -13478,7 +13471,7 @@ function bn(e) {
|
|
|
13478
13471
|
function fc(e) {
|
|
13479
13472
|
return !Ns() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Yt(e).ShadowRoot;
|
|
13480
13473
|
}
|
|
13481
|
-
const
|
|
13474
|
+
const Fv = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
13482
13475
|
function po(e) {
|
|
13483
13476
|
const {
|
|
13484
13477
|
overflow: t,
|
|
@@ -13486,15 +13479,15 @@ function po(e) {
|
|
|
13486
13479
|
overflowY: r,
|
|
13487
13480
|
display: o
|
|
13488
13481
|
} = ln(e);
|
|
13489
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !
|
|
13482
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !Fv.has(o);
|
|
13490
13483
|
}
|
|
13491
|
-
const
|
|
13492
|
-
function
|
|
13493
|
-
return
|
|
13484
|
+
const zv = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
13485
|
+
function Bv(e) {
|
|
13486
|
+
return zv.has(Pr(e));
|
|
13494
13487
|
}
|
|
13495
|
-
const
|
|
13488
|
+
const Hv = [":popover-open", ":modal"];
|
|
13496
13489
|
function js(e) {
|
|
13497
|
-
return
|
|
13490
|
+
return Hv.some((t) => {
|
|
13498
13491
|
try {
|
|
13499
13492
|
return e.matches(t);
|
|
13500
13493
|
} catch {
|
|
@@ -13502,12 +13495,12 @@ function js(e) {
|
|
|
13502
13495
|
}
|
|
13503
13496
|
});
|
|
13504
13497
|
}
|
|
13505
|
-
const
|
|
13498
|
+
const Uv = ["transform", "translate", "scale", "rotate", "perspective"], Wv = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Vv = ["paint", "layout", "strict", "content"];
|
|
13506
13499
|
function Ca(e) {
|
|
13507
13500
|
const t = ka(), n = an(e) ? ln(e) : e;
|
|
13508
|
-
return
|
|
13501
|
+
return Uv.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || Wv.some((r) => (n.willChange || "").includes(r)) || Vv.some((r) => (n.contain || "").includes(r));
|
|
13509
13502
|
}
|
|
13510
|
-
function
|
|
13503
|
+
function Kv(e) {
|
|
13511
13504
|
let t = Dn(e);
|
|
13512
13505
|
for (; bn(t) && !vr(t); ) {
|
|
13513
13506
|
if (Ca(t))
|
|
@@ -13521,9 +13514,9 @@ function qv(e) {
|
|
|
13521
13514
|
function ka() {
|
|
13522
13515
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
13523
13516
|
}
|
|
13524
|
-
const
|
|
13517
|
+
const qv = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
13525
13518
|
function vr(e) {
|
|
13526
|
-
return
|
|
13519
|
+
return qv.has(Pr(e));
|
|
13527
13520
|
}
|
|
13528
13521
|
function ln(e) {
|
|
13529
13522
|
return Yt(e).getComputedStyle(e);
|
|
@@ -13594,15 +13587,15 @@ function yr(e) {
|
|
|
13594
13587
|
y: a
|
|
13595
13588
|
};
|
|
13596
13589
|
}
|
|
13597
|
-
const
|
|
13590
|
+
const Gv = /* @__PURE__ */ xn(0);
|
|
13598
13591
|
function ff(e) {
|
|
13599
13592
|
const t = Yt(e);
|
|
13600
|
-
return !ka() || !t.visualViewport ?
|
|
13593
|
+
return !ka() || !t.visualViewport ? Gv : {
|
|
13601
13594
|
x: t.visualViewport.offsetLeft,
|
|
13602
13595
|
y: t.visualViewport.offsetTop
|
|
13603
13596
|
};
|
|
13604
13597
|
}
|
|
13605
|
-
function
|
|
13598
|
+
function Yv(e, t, n) {
|
|
13606
13599
|
return t === void 0 && (t = !1), !n || t && n !== Yt(e) ? !1 : t;
|
|
13607
13600
|
}
|
|
13608
13601
|
function er(e, t, n, r) {
|
|
@@ -13610,7 +13603,7 @@ function er(e, t, n, r) {
|
|
|
13610
13603
|
const o = e.getBoundingClientRect(), s = Ta(e);
|
|
13611
13604
|
let i = xn(1);
|
|
13612
13605
|
t && (r ? an(r) && (i = yr(r)) : i = yr(e));
|
|
13613
|
-
const a =
|
|
13606
|
+
const a = Yv(s, n, r) ? ff(s) : xn(0);
|
|
13614
13607
|
let c = (o.left + a.x) / i.x, l = (o.top + a.y) / i.y, u = o.width / i.x, f = o.height / i.y;
|
|
13615
13608
|
if (s) {
|
|
13616
13609
|
const h = Yt(s), p = r && an(r) ? Yt(r) : r;
|
|
@@ -13638,7 +13631,7 @@ function hf(e, t) {
|
|
|
13638
13631
|
y: o
|
|
13639
13632
|
};
|
|
13640
13633
|
}
|
|
13641
|
-
function
|
|
13634
|
+
function Xv(e) {
|
|
13642
13635
|
let {
|
|
13643
13636
|
elements: t,
|
|
13644
13637
|
rect: n,
|
|
@@ -13665,10 +13658,10 @@ function Jv(e) {
|
|
|
13665
13658
|
y: n.y * l.y - c.scrollTop * l.y + u.y + h.y
|
|
13666
13659
|
};
|
|
13667
13660
|
}
|
|
13668
|
-
function
|
|
13661
|
+
function Jv(e) {
|
|
13669
13662
|
return Array.from(e.getClientRects());
|
|
13670
13663
|
}
|
|
13671
|
-
function
|
|
13664
|
+
function Zv(e) {
|
|
13672
13665
|
const t = vn(e), n = _s(e), r = e.ownerDocument.body, o = Vt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Vt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
13673
13666
|
let i = -n.scrollLeft + Ps(e);
|
|
13674
13667
|
const a = -n.scrollTop;
|
|
@@ -13680,7 +13673,7 @@ function Qv(e) {
|
|
|
13680
13673
|
};
|
|
13681
13674
|
}
|
|
13682
13675
|
const hc = 25;
|
|
13683
|
-
function
|
|
13676
|
+
function Qv(e, t) {
|
|
13684
13677
|
const n = Yt(e), r = vn(e), o = n.visualViewport;
|
|
13685
13678
|
let s = r.clientWidth, i = r.clientHeight, a = 0, c = 0;
|
|
13686
13679
|
if (o) {
|
|
@@ -13700,8 +13693,8 @@ function e0(e, t) {
|
|
|
13700
13693
|
y: c
|
|
13701
13694
|
};
|
|
13702
13695
|
}
|
|
13703
|
-
const
|
|
13704
|
-
function
|
|
13696
|
+
const e0 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
13697
|
+
function t0(e, t) {
|
|
13705
13698
|
const n = er(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = bn(e) ? yr(e) : xn(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, c = o * s.x, l = r * s.y;
|
|
13706
13699
|
return {
|
|
13707
13700
|
width: i,
|
|
@@ -13713,11 +13706,11 @@ function n0(e, t) {
|
|
|
13713
13706
|
function pc(e, t, n) {
|
|
13714
13707
|
let r;
|
|
13715
13708
|
if (t === "viewport")
|
|
13716
|
-
r =
|
|
13709
|
+
r = Qv(e, n);
|
|
13717
13710
|
else if (t === "document")
|
|
13718
|
-
r =
|
|
13711
|
+
r = Zv(vn(e));
|
|
13719
13712
|
else if (an(t))
|
|
13720
|
-
r =
|
|
13713
|
+
r = t0(t, n);
|
|
13721
13714
|
else {
|
|
13722
13715
|
const o = ff(e);
|
|
13723
13716
|
r = {
|
|
@@ -13733,7 +13726,7 @@ function pf(e, t) {
|
|
|
13733
13726
|
const n = Dn(e);
|
|
13734
13727
|
return n === t || !an(n) || vr(n) ? !1 : ln(n).position === "fixed" || pf(n, t);
|
|
13735
13728
|
}
|
|
13736
|
-
function
|
|
13729
|
+
function n0(e, t) {
|
|
13737
13730
|
const n = t.get(e);
|
|
13738
13731
|
if (n)
|
|
13739
13732
|
return n;
|
|
@@ -13742,18 +13735,18 @@ function r0(e, t) {
|
|
|
13742
13735
|
let i = s ? Dn(e) : e;
|
|
13743
13736
|
for (; an(i) && !vr(i); ) {
|
|
13744
13737
|
const a = ln(i), c = Ca(i);
|
|
13745
|
-
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o &&
|
|
13738
|
+
!c && a.position === "fixed" && (o = null), (s ? !c && !o : !c && a.position === "static" && !!o && e0.has(o.position) || po(i) && !c && pf(e, i)) ? r = r.filter((u) => u !== i) : o = a, i = Dn(i);
|
|
13746
13739
|
}
|
|
13747
13740
|
return t.set(e, r), r;
|
|
13748
13741
|
}
|
|
13749
|
-
function
|
|
13742
|
+
function r0(e) {
|
|
13750
13743
|
let {
|
|
13751
13744
|
element: t,
|
|
13752
13745
|
boundary: n,
|
|
13753
13746
|
rootBoundary: r,
|
|
13754
13747
|
strategy: o
|
|
13755
13748
|
} = e;
|
|
13756
|
-
const i = [...n === "clippingAncestors" ? js(t) ? [] :
|
|
13749
|
+
const i = [...n === "clippingAncestors" ? js(t) ? [] : n0(t, this._c) : [].concat(n), r], a = i[0], c = i.reduce((l, u) => {
|
|
13757
13750
|
const f = pc(t, u, o);
|
|
13758
13751
|
return l.top = Vt(f.top, l.top), l.right = Mn(f.right, l.right), l.bottom = Mn(f.bottom, l.bottom), l.left = Vt(f.left, l.left), l;
|
|
13759
13752
|
}, pc(t, a, o));
|
|
@@ -13764,7 +13757,7 @@ function o0(e) {
|
|
|
13764
13757
|
y: c.top
|
|
13765
13758
|
};
|
|
13766
13759
|
}
|
|
13767
|
-
function
|
|
13760
|
+
function o0(e) {
|
|
13768
13761
|
const {
|
|
13769
13762
|
width: t,
|
|
13770
13763
|
height: n
|
|
@@ -13774,7 +13767,7 @@ function s0(e) {
|
|
|
13774
13767
|
height: n
|
|
13775
13768
|
};
|
|
13776
13769
|
}
|
|
13777
|
-
function
|
|
13770
|
+
function s0(e, t, n) {
|
|
13778
13771
|
const r = bn(t), o = vn(t), s = n === "fixed", i = er(e, !0, s, t);
|
|
13779
13772
|
let a = {
|
|
13780
13773
|
scrollLeft: 0,
|
|
@@ -13823,14 +13816,14 @@ function mf(e, t) {
|
|
|
13823
13816
|
return n;
|
|
13824
13817
|
}
|
|
13825
13818
|
let r = mc(e, t);
|
|
13826
|
-
for (; r &&
|
|
13819
|
+
for (; r && Bv(r) && ci(r); )
|
|
13827
13820
|
r = mc(r, t);
|
|
13828
|
-
return r && vr(r) && ci(r) && !Ca(r) ? n : r ||
|
|
13821
|
+
return r && vr(r) && ci(r) && !Ca(r) ? n : r || Kv(e) || n;
|
|
13829
13822
|
}
|
|
13830
|
-
const
|
|
13823
|
+
const i0 = async function(e) {
|
|
13831
13824
|
const t = this.getOffsetParent || mf, n = this.getDimensions, r = await n(e.floating);
|
|
13832
13825
|
return {
|
|
13833
|
-
reference:
|
|
13826
|
+
reference: s0(e.reference, await t(e.floating), e.strategy),
|
|
13834
13827
|
floating: {
|
|
13835
13828
|
x: 0,
|
|
13836
13829
|
y: 0,
|
|
@@ -13839,25 +13832,25 @@ const a0 = async function(e) {
|
|
|
13839
13832
|
}
|
|
13840
13833
|
};
|
|
13841
13834
|
};
|
|
13842
|
-
function
|
|
13835
|
+
function a0(e) {
|
|
13843
13836
|
return ln(e).direction === "rtl";
|
|
13844
13837
|
}
|
|
13845
|
-
const
|
|
13846
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
13838
|
+
const l0 = {
|
|
13839
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Xv,
|
|
13847
13840
|
getDocumentElement: vn,
|
|
13848
|
-
getClippingRect:
|
|
13841
|
+
getClippingRect: r0,
|
|
13849
13842
|
getOffsetParent: mf,
|
|
13850
|
-
getElementRects:
|
|
13851
|
-
getClientRects:
|
|
13852
|
-
getDimensions:
|
|
13843
|
+
getElementRects: i0,
|
|
13844
|
+
getClientRects: Jv,
|
|
13845
|
+
getDimensions: o0,
|
|
13853
13846
|
getScale: yr,
|
|
13854
13847
|
isElement: an,
|
|
13855
|
-
isRTL:
|
|
13848
|
+
isRTL: a0
|
|
13856
13849
|
};
|
|
13857
13850
|
function gf(e, t) {
|
|
13858
13851
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
13859
13852
|
}
|
|
13860
|
-
function
|
|
13853
|
+
function c0(e, t) {
|
|
13861
13854
|
let n = null, r;
|
|
13862
13855
|
const o = vn(e);
|
|
13863
13856
|
function s() {
|
|
@@ -13903,7 +13896,7 @@ function u0(e, t) {
|
|
|
13903
13896
|
}
|
|
13904
13897
|
return i(!0), s;
|
|
13905
13898
|
}
|
|
13906
|
-
function
|
|
13899
|
+
function u0(e, t, n, r) {
|
|
13907
13900
|
r === void 0 && (r = {});
|
|
13908
13901
|
const {
|
|
13909
13902
|
ancestorScroll: o = !0,
|
|
@@ -13917,7 +13910,7 @@ function d0(e, t, n, r) {
|
|
|
13917
13910
|
passive: !0
|
|
13918
13911
|
}), s && y.addEventListener("resize", n);
|
|
13919
13912
|
});
|
|
13920
|
-
const f = l && a ?
|
|
13913
|
+
const f = l && a ? c0(l, n) : null;
|
|
13921
13914
|
let h = -1, p = null;
|
|
13922
13915
|
i && (p = new ResizeObserver((y) => {
|
|
13923
13916
|
let [w] = y;
|
|
@@ -13939,21 +13932,21 @@ function d0(e, t, n, r) {
|
|
|
13939
13932
|
}), f == null || f(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
13940
13933
|
};
|
|
13941
13934
|
}
|
|
13942
|
-
const f0 = Dv, h0 =
|
|
13935
|
+
const d0 = Mv, f0 = Dv, h0 = _v, p0 = $v, m0 = Pv, gc = jv, g0 = Lv, x0 = (e, t, n) => {
|
|
13943
13936
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
13944
|
-
platform:
|
|
13937
|
+
platform: l0,
|
|
13945
13938
|
...n
|
|
13946
13939
|
}, s = {
|
|
13947
13940
|
...o.platform,
|
|
13948
13941
|
_c: r
|
|
13949
13942
|
};
|
|
13950
|
-
return
|
|
13943
|
+
return Nv(e, t, {
|
|
13951
13944
|
...o,
|
|
13952
13945
|
platform: s
|
|
13953
13946
|
});
|
|
13954
13947
|
};
|
|
13955
|
-
var
|
|
13956
|
-
}, Go =
|
|
13948
|
+
var y0 = typeof document < "u", b0 = function() {
|
|
13949
|
+
}, Go = y0 ? gp : b0;
|
|
13957
13950
|
function us(e, t) {
|
|
13958
13951
|
if (e === t)
|
|
13959
13952
|
return !0;
|
|
@@ -13997,7 +13990,7 @@ function ui(e) {
|
|
|
13997
13990
|
t.current = e;
|
|
13998
13991
|
}), t;
|
|
13999
13992
|
}
|
|
14000
|
-
function
|
|
13993
|
+
function w0(e) {
|
|
14001
13994
|
e === void 0 && (e = {});
|
|
14002
13995
|
const {
|
|
14003
13996
|
placement: t = "bottom",
|
|
@@ -14032,7 +14025,7 @@ function v0(e) {
|
|
|
14032
14025
|
strategy: n,
|
|
14033
14026
|
middleware: h
|
|
14034
14027
|
};
|
|
14035
|
-
H.current && (U.platform = H.current),
|
|
14028
|
+
H.current && (U.platform = H.current), x0(v.current, T.current, U).then((L) => {
|
|
14036
14029
|
const X = {
|
|
14037
14030
|
...L,
|
|
14038
14031
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -14099,7 +14092,7 @@ function v0(e) {
|
|
|
14099
14092
|
floatingStyles: ie
|
|
14100
14093
|
}), [u, W, G, Y, ie]);
|
|
14101
14094
|
}
|
|
14102
|
-
const
|
|
14095
|
+
const v0 = (e) => {
|
|
14103
14096
|
function t(n) {
|
|
14104
14097
|
return {}.hasOwnProperty.call(n, "current");
|
|
14105
14098
|
}
|
|
@@ -14120,14 +14113,17 @@ const S0 = (e) => {
|
|
|
14120
14113
|
}).fn(n) : {};
|
|
14121
14114
|
}
|
|
14122
14115
|
};
|
|
14123
|
-
},
|
|
14116
|
+
}, S0 = (e, t) => ({
|
|
14117
|
+
...d0(e),
|
|
14118
|
+
options: [e, t]
|
|
14119
|
+
}), C0 = (e, t) => ({
|
|
14124
14120
|
...f0(e),
|
|
14125
14121
|
options: [e, t]
|
|
14126
14122
|
}), k0 = (e, t) => ({
|
|
14127
|
-
...
|
|
14123
|
+
...g0(e),
|
|
14128
14124
|
options: [e, t]
|
|
14129
14125
|
}), T0 = (e, t) => ({
|
|
14130
|
-
...
|
|
14126
|
+
...h0(e),
|
|
14131
14127
|
options: [e, t]
|
|
14132
14128
|
}), I0 = (e, t) => ({
|
|
14133
14129
|
...p0(e),
|
|
@@ -14136,13 +14132,10 @@ const S0 = (e) => {
|
|
|
14136
14132
|
...m0(e),
|
|
14137
14133
|
options: [e, t]
|
|
14138
14134
|
}), E0 = (e, t) => ({
|
|
14139
|
-
...
|
|
14140
|
-
options: [e, t]
|
|
14141
|
-
}), A0 = (e, t) => ({
|
|
14142
|
-
...S0(e),
|
|
14135
|
+
...v0(e),
|
|
14143
14136
|
options: [e, t]
|
|
14144
14137
|
});
|
|
14145
|
-
var
|
|
14138
|
+
var A0 = "Arrow", yf = b.forwardRef((e, t) => {
|
|
14146
14139
|
const { children: n, width: r = 10, height: o = 5, ...s } = e;
|
|
14147
14140
|
return /* @__PURE__ */ d.jsx(
|
|
14148
14141
|
Oe.svg,
|
|
@@ -14157,9 +14150,9 @@ var N0 = "Arrow", yf = b.forwardRef((e, t) => {
|
|
|
14157
14150
|
}
|
|
14158
14151
|
);
|
|
14159
14152
|
});
|
|
14160
|
-
yf.displayName =
|
|
14161
|
-
var
|
|
14162
|
-
function
|
|
14153
|
+
yf.displayName = A0;
|
|
14154
|
+
var N0 = yf;
|
|
14155
|
+
function j0(e) {
|
|
14163
14156
|
const [t, n] = b.useState(void 0);
|
|
14164
14157
|
return yn(() => {
|
|
14165
14158
|
if (e) {
|
|
@@ -14181,9 +14174,9 @@ function _0(e) {
|
|
|
14181
14174
|
n(void 0);
|
|
14182
14175
|
}, [e]), t;
|
|
14183
14176
|
}
|
|
14184
|
-
var Ia = "Popper", [bf, wf] = Bn(Ia), [
|
|
14177
|
+
var Ia = "Popper", [bf, wf] = Bn(Ia), [_0, vf] = bf(Ia), Sf = (e) => {
|
|
14185
14178
|
const { __scopePopper: t, children: n } = e, [r, o] = b.useState(null);
|
|
14186
|
-
return /* @__PURE__ */ d.jsx(
|
|
14179
|
+
return /* @__PURE__ */ d.jsx(_0, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
14187
14180
|
};
|
|
14188
14181
|
Sf.displayName = Ia;
|
|
14189
14182
|
var Cf = "PopperAnchor", kf = b.forwardRef(
|
|
@@ -14196,7 +14189,7 @@ var Cf = "PopperAnchor", kf = b.forwardRef(
|
|
|
14196
14189
|
}
|
|
14197
14190
|
);
|
|
14198
14191
|
kf.displayName = Cf;
|
|
14199
|
-
var Ra = "PopperContent", [
|
|
14192
|
+
var Ra = "PopperContent", [P0, O0] = bf(Ra), Tf = b.forwardRef(
|
|
14200
14193
|
(e, t) => {
|
|
14201
14194
|
var $, j, K, re, fe, te;
|
|
14202
14195
|
const {
|
|
@@ -14214,40 +14207,40 @@ var Ra = "PopperContent", [O0, M0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14214
14207
|
updatePositionStrategy: p = "optimized",
|
|
14215
14208
|
onPlaced: m,
|
|
14216
14209
|
...g
|
|
14217
|
-
} = e, x = vf(Ra, n), [y, w] = b.useState(null), k = st(t, (ye) => w(ye)), [I, C] = b.useState(null), v =
|
|
14210
|
+
} = e, x = vf(Ra, n), [y, w] = b.useState(null), k = st(t, (ye) => w(ye)), [I, C] = b.useState(null), v = j0(I), T = (v == null ? void 0 : v.width) ?? 0, A = (v == null ? void 0 : v.height) ?? 0, N = r + (s !== "center" ? "-" + s : ""), D = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, H = Array.isArray(l) ? l : [l], q = H.length > 0, W = {
|
|
14218
14211
|
padding: D,
|
|
14219
|
-
boundary: H.filter(
|
|
14212
|
+
boundary: H.filter(D0),
|
|
14220
14213
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
14221
14214
|
altBoundary: q
|
|
14222
|
-
}, { refs: P, floatingStyles: G, placement: Y, isPositioned: ie, middlewareData: U } =
|
|
14215
|
+
}, { refs: P, floatingStyles: G, placement: Y, isPositioned: ie, middlewareData: U } = w0({
|
|
14223
14216
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
14224
14217
|
strategy: "fixed",
|
|
14225
14218
|
placement: N,
|
|
14226
|
-
whileElementsMounted: (...ye) =>
|
|
14219
|
+
whileElementsMounted: (...ye) => u0(...ye, {
|
|
14227
14220
|
animationFrame: p === "always"
|
|
14228
14221
|
}),
|
|
14229
14222
|
elements: {
|
|
14230
14223
|
reference: x.anchor
|
|
14231
14224
|
},
|
|
14232
14225
|
middleware: [
|
|
14233
|
-
|
|
14234
|
-
c &&
|
|
14226
|
+
S0({ mainAxis: o + A, alignmentAxis: i }),
|
|
14227
|
+
c && C0({
|
|
14235
14228
|
mainAxis: !0,
|
|
14236
14229
|
crossAxis: !1,
|
|
14237
|
-
limiter: f === "partial" ?
|
|
14230
|
+
limiter: f === "partial" ? k0() : void 0,
|
|
14238
14231
|
...W
|
|
14239
14232
|
}),
|
|
14240
|
-
c &&
|
|
14241
|
-
|
|
14233
|
+
c && T0({ ...W }),
|
|
14234
|
+
I0({
|
|
14242
14235
|
...W,
|
|
14243
14236
|
apply: ({ elements: ye, rects: ke, availableWidth: xe, availableHeight: We }) => {
|
|
14244
14237
|
const { width: Fe, height: _e } = ke.reference, He = ye.floating.style;
|
|
14245
14238
|
He.setProperty("--radix-popper-available-width", `${xe}px`), He.setProperty("--radix-popper-available-height", `${We}px`), He.setProperty("--radix-popper-anchor-width", `${Fe}px`), He.setProperty("--radix-popper-anchor-height", `${_e}px`);
|
|
14246
14239
|
}
|
|
14247
14240
|
}),
|
|
14248
|
-
I &&
|
|
14249
|
-
|
|
14250
|
-
h &&
|
|
14241
|
+
I && E0({ element: I, padding: a }),
|
|
14242
|
+
L0({ arrowWidth: T, arrowHeight: A }),
|
|
14243
|
+
h && R0({ strategy: "referenceHidden", ...W })
|
|
14251
14244
|
]
|
|
14252
14245
|
}), [L, X] = Ef(Y), B = Et(m);
|
|
14253
14246
|
yn(() => {
|
|
@@ -14281,7 +14274,7 @@ var Ra = "PopperContent", [O0, M0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14281
14274
|
},
|
|
14282
14275
|
dir: e.dir,
|
|
14283
14276
|
children: /* @__PURE__ */ d.jsx(
|
|
14284
|
-
|
|
14277
|
+
P0,
|
|
14285
14278
|
{
|
|
14286
14279
|
scope: n,
|
|
14287
14280
|
placedSide: L,
|
|
@@ -14311,13 +14304,13 @@ var Ra = "PopperContent", [O0, M0] = bf(Ra), Tf = b.forwardRef(
|
|
|
14311
14304
|
}
|
|
14312
14305
|
);
|
|
14313
14306
|
Tf.displayName = Ra;
|
|
14314
|
-
var If = "PopperArrow",
|
|
14307
|
+
var If = "PopperArrow", M0 = {
|
|
14315
14308
|
top: "bottom",
|
|
14316
14309
|
right: "left",
|
|
14317
14310
|
bottom: "top",
|
|
14318
14311
|
left: "right"
|
|
14319
14312
|
}, Rf = b.forwardRef(function(t, n) {
|
|
14320
|
-
const { __scopePopper: r, ...o } = t, s =
|
|
14313
|
+
const { __scopePopper: r, ...o } = t, s = O0(If, r), i = M0[s.placedSide];
|
|
14321
14314
|
return (
|
|
14322
14315
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
14323
14316
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -14346,7 +14339,7 @@ var If = "PopperArrow", D0 = {
|
|
|
14346
14339
|
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
14347
14340
|
},
|
|
14348
14341
|
children: /* @__PURE__ */ d.jsx(
|
|
14349
|
-
|
|
14342
|
+
N0,
|
|
14350
14343
|
{
|
|
14351
14344
|
...o,
|
|
14352
14345
|
ref: n,
|
|
@@ -14362,10 +14355,10 @@ var If = "PopperArrow", D0 = {
|
|
|
14362
14355
|
);
|
|
14363
14356
|
});
|
|
14364
14357
|
Rf.displayName = If;
|
|
14365
|
-
function
|
|
14358
|
+
function D0(e) {
|
|
14366
14359
|
return e !== null;
|
|
14367
14360
|
}
|
|
14368
|
-
var
|
|
14361
|
+
var L0 = (e) => ({
|
|
14369
14362
|
name: "transformOrigin",
|
|
14370
14363
|
options: e,
|
|
14371
14364
|
fn(t) {
|
|
@@ -14379,14 +14372,14 @@ function Ef(e) {
|
|
|
14379
14372
|
const [t, n = "center"] = e.split("-");
|
|
14380
14373
|
return [t, n];
|
|
14381
14374
|
}
|
|
14382
|
-
var
|
|
14375
|
+
var $0 = Sf, F0 = kf, z0 = Tf, B0 = Rf, di = "rovingFocusGroup.onEntryFocus", H0 = { bubbles: !1, cancelable: !0 }, mo = "RovingFocusGroup", [Mi, Af, U0] = sf(mo), [W0, Nf] = Bn(
|
|
14383
14376
|
mo,
|
|
14384
|
-
[
|
|
14385
|
-
), [
|
|
14386
|
-
(e, t) => /* @__PURE__ */ d.jsx(Mi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(
|
|
14377
|
+
[U0]
|
|
14378
|
+
), [V0, K0] = W0(mo), jf = b.forwardRef(
|
|
14379
|
+
(e, t) => /* @__PURE__ */ d.jsx(Mi.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(Mi.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(q0, { ...e, ref: t }) }) })
|
|
14387
14380
|
);
|
|
14388
14381
|
jf.displayName = mo;
|
|
14389
|
-
var
|
|
14382
|
+
var q0 = b.forwardRef((e, t) => {
|
|
14390
14383
|
const {
|
|
14391
14384
|
__scopeRovingFocusGroup: n,
|
|
14392
14385
|
orientation: r,
|
|
@@ -14409,7 +14402,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14409
14402
|
if (A)
|
|
14410
14403
|
return A.addEventListener(di, k), () => A.removeEventListener(di, k);
|
|
14411
14404
|
}, [k]), /* @__PURE__ */ d.jsx(
|
|
14412
|
-
|
|
14405
|
+
V0,
|
|
14413
14406
|
{
|
|
14414
14407
|
scope: n,
|
|
14415
14408
|
orientation: r,
|
|
@@ -14443,7 +14436,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14443
14436
|
onFocus: Se(e.onFocus, (A) => {
|
|
14444
14437
|
const N = !C.current;
|
|
14445
14438
|
if (A.target === A.currentTarget && N && !y) {
|
|
14446
|
-
const D = new CustomEvent(di,
|
|
14439
|
+
const D = new CustomEvent(di, H0);
|
|
14447
14440
|
if (A.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
14448
14441
|
const H = I().filter((Y) => Y.focusable), q = H.find((Y) => Y.active), W = H.find((Y) => Y.id === g), G = [q, W, ...H].filter(
|
|
14449
14442
|
Boolean
|
|
@@ -14467,7 +14460,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14467
14460
|
tabStopId: s,
|
|
14468
14461
|
children: i,
|
|
14469
14462
|
...a
|
|
14470
|
-
} = e, c = Gt(), l = s || c, u =
|
|
14463
|
+
} = e, c = Gt(), l = s || c, u = K0(_f, n), f = u.currentTabStopId === l, h = Af(n), { onFocusableItemAdd: p, onFocusableItemRemove: m, currentTabStopId: g } = u;
|
|
14471
14464
|
return b.useEffect(() => {
|
|
14472
14465
|
if (r)
|
|
14473
14466
|
return p(), () => m();
|
|
@@ -14495,7 +14488,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14495
14488
|
return;
|
|
14496
14489
|
}
|
|
14497
14490
|
if (x.target !== x.currentTarget) return;
|
|
14498
|
-
const y =
|
|
14491
|
+
const y = X0(x, u.orientation, u.dir);
|
|
14499
14492
|
if (y !== void 0) {
|
|
14500
14493
|
if (x.metaKey || x.ctrlKey || x.altKey || x.shiftKey) return;
|
|
14501
14494
|
x.preventDefault();
|
|
@@ -14504,7 +14497,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14504
14497
|
else if (y === "prev" || y === "next") {
|
|
14505
14498
|
y === "prev" && k.reverse();
|
|
14506
14499
|
const I = k.indexOf(x.currentTarget);
|
|
14507
|
-
k = u.loop ?
|
|
14500
|
+
k = u.loop ? J0(k, I + 1) : k.slice(I + 1);
|
|
14508
14501
|
}
|
|
14509
14502
|
setTimeout(() => Of(k));
|
|
14510
14503
|
}
|
|
@@ -14517,7 +14510,7 @@ var G0 = b.forwardRef((e, t) => {
|
|
|
14517
14510
|
}
|
|
14518
14511
|
);
|
|
14519
14512
|
Pf.displayName = _f;
|
|
14520
|
-
var
|
|
14513
|
+
var G0 = {
|
|
14521
14514
|
ArrowLeft: "prev",
|
|
14522
14515
|
ArrowUp: "prev",
|
|
14523
14516
|
ArrowRight: "next",
|
|
@@ -14527,33 +14520,33 @@ var Y0 = {
|
|
|
14527
14520
|
PageDown: "last",
|
|
14528
14521
|
End: "last"
|
|
14529
14522
|
};
|
|
14530
|
-
function
|
|
14523
|
+
function Y0(e, t) {
|
|
14531
14524
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
14532
14525
|
}
|
|
14533
|
-
function
|
|
14534
|
-
const r =
|
|
14526
|
+
function X0(e, t, n) {
|
|
14527
|
+
const r = Y0(e.key, n);
|
|
14535
14528
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
14536
|
-
return
|
|
14529
|
+
return G0[r];
|
|
14537
14530
|
}
|
|
14538
14531
|
function Of(e, t = !1) {
|
|
14539
14532
|
const n = document.activeElement;
|
|
14540
14533
|
for (const r of e)
|
|
14541
14534
|
if (r === n || (r.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
14542
14535
|
}
|
|
14543
|
-
function
|
|
14536
|
+
function J0(e, t) {
|
|
14544
14537
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
14545
14538
|
}
|
|
14546
|
-
var
|
|
14539
|
+
var Z0 = jf, Q0 = Pf, Di = ["Enter", " "], eS = ["ArrowDown", "PageUp", "Home"], Mf = ["ArrowUp", "PageDown", "End"], tS = [...eS, ...Mf], nS = {
|
|
14547
14540
|
ltr: [...Di, "ArrowRight"],
|
|
14548
14541
|
rtl: [...Di, "ArrowLeft"]
|
|
14549
|
-
},
|
|
14542
|
+
}, rS = {
|
|
14550
14543
|
ltr: ["ArrowLeft"],
|
|
14551
14544
|
rtl: ["ArrowRight"]
|
|
14552
|
-
}, go = "Menu", [no,
|
|
14553
|
-
|
|
14545
|
+
}, go = "Menu", [no, oS, sS] = sf(go), [sr, Df] = Bn(go, [
|
|
14546
|
+
sS,
|
|
14554
14547
|
wf,
|
|
14555
14548
|
Nf
|
|
14556
|
-
]), Os = wf(), Lf = Nf(), [
|
|
14549
|
+
]), Os = wf(), Lf = Nf(), [iS, ir] = sr(go), [aS, xo] = sr(go), $f = (e) => {
|
|
14557
14550
|
const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Os(t), [c, l] = b.useState(null), u = b.useRef(!1), f = Et(s), h = ba(o);
|
|
14558
14551
|
return b.useEffect(() => {
|
|
14559
14552
|
const p = () => {
|
|
@@ -14562,8 +14555,8 @@ var Q0 = jf, eS = Pf, Di = ["Enter", " "], tS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14562
14555
|
return document.addEventListener("keydown", p, { capture: !0 }), () => {
|
|
14563
14556
|
document.removeEventListener("keydown", p, { capture: !0 }), document.removeEventListener("pointerdown", m, { capture: !0 }), document.removeEventListener("pointermove", m, { capture: !0 });
|
|
14564
14557
|
};
|
|
14565
|
-
}, []), /* @__PURE__ */ d.jsx(
|
|
14566
|
-
|
|
14558
|
+
}, []), /* @__PURE__ */ d.jsx($0, { ...a, children: /* @__PURE__ */ d.jsx(
|
|
14559
|
+
iS,
|
|
14567
14560
|
{
|
|
14568
14561
|
scope: t,
|
|
14569
14562
|
open: n,
|
|
@@ -14571,7 +14564,7 @@ var Q0 = jf, eS = Pf, Di = ["Enter", " "], tS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14571
14564
|
content: c,
|
|
14572
14565
|
onContentChange: l,
|
|
14573
14566
|
children: /* @__PURE__ */ d.jsx(
|
|
14574
|
-
|
|
14567
|
+
aS,
|
|
14575
14568
|
{
|
|
14576
14569
|
scope: t,
|
|
14577
14570
|
onClose: b.useCallback(() => f(!1), [f]),
|
|
@@ -14585,26 +14578,26 @@ var Q0 = jf, eS = Pf, Di = ["Enter", " "], tS = ["ArrowDown", "PageUp", "Home"],
|
|
|
14585
14578
|
) });
|
|
14586
14579
|
};
|
|
14587
14580
|
$f.displayName = go;
|
|
14588
|
-
var
|
|
14581
|
+
var lS = "MenuAnchor", Ea = b.forwardRef(
|
|
14589
14582
|
(e, t) => {
|
|
14590
14583
|
const { __scopeMenu: n, ...r } = e, o = Os(n);
|
|
14591
|
-
return /* @__PURE__ */ d.jsx(
|
|
14584
|
+
return /* @__PURE__ */ d.jsx(F0, { ...o, ...r, ref: t });
|
|
14592
14585
|
}
|
|
14593
14586
|
);
|
|
14594
|
-
Ea.displayName =
|
|
14595
|
-
var Aa = "MenuPortal", [
|
|
14587
|
+
Ea.displayName = lS;
|
|
14588
|
+
var Aa = "MenuPortal", [cS, Ff] = sr(Aa, {
|
|
14596
14589
|
forceMount: void 0
|
|
14597
14590
|
}), zf = (e) => {
|
|
14598
14591
|
const { __scopeMenu: t, forceMount: n, children: r, container: o } = e, s = ir(Aa, t);
|
|
14599
|
-
return /* @__PURE__ */ d.jsx(
|
|
14592
|
+
return /* @__PURE__ */ d.jsx(cS, { scope: t, forceMount: n, children: /* @__PURE__ */ d.jsx(Xt, { present: n || s.open, children: /* @__PURE__ */ d.jsx(ca, { asChild: !0, container: o, children: r }) }) });
|
|
14600
14593
|
};
|
|
14601
14594
|
zf.displayName = Aa;
|
|
14602
|
-
var en = "MenuContent", [
|
|
14595
|
+
var en = "MenuContent", [uS, Na] = sr(en), Bf = b.forwardRef(
|
|
14603
14596
|
(e, t) => {
|
|
14604
14597
|
const n = Ff(en, e.__scopeMenu), { forceMount: r = n.forceMount, ...o } = e, s = ir(en, e.__scopeMenu), i = xo(en, e.__scopeMenu);
|
|
14605
|
-
return /* @__PURE__ */ d.jsx(no.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(no.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(
|
|
14598
|
+
return /* @__PURE__ */ d.jsx(no.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d.jsx(Xt, { present: r || s.open, children: /* @__PURE__ */ d.jsx(no.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d.jsx(dS, { ...o, ref: t }) : /* @__PURE__ */ d.jsx(fS, { ...o, ref: t }) }) }) });
|
|
14606
14599
|
}
|
|
14607
|
-
),
|
|
14600
|
+
), dS = b.forwardRef(
|
|
14608
14601
|
(e, t) => {
|
|
14609
14602
|
const n = ir(en, e.__scopeMenu), r = b.useRef(null), o = st(t, r);
|
|
14610
14603
|
return b.useEffect(() => {
|
|
@@ -14627,7 +14620,7 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14627
14620
|
}
|
|
14628
14621
|
);
|
|
14629
14622
|
}
|
|
14630
|
-
),
|
|
14623
|
+
), fS = b.forwardRef((e, t) => {
|
|
14631
14624
|
const n = ir(en, e.__scopeMenu);
|
|
14632
14625
|
return /* @__PURE__ */ d.jsx(
|
|
14633
14626
|
ja,
|
|
@@ -14640,7 +14633,7 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14640
14633
|
onDismiss: () => n.onOpenChange(!1)
|
|
14641
14634
|
}
|
|
14642
14635
|
);
|
|
14643
|
-
}),
|
|
14636
|
+
}), hS = qr("MenuContent.ScrollLock"), ja = b.forwardRef(
|
|
14644
14637
|
(e, t) => {
|
|
14645
14638
|
const {
|
|
14646
14639
|
__scopeMenu: n,
|
|
@@ -14657,9 +14650,9 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14657
14650
|
onDismiss: p,
|
|
14658
14651
|
disableOutsideScroll: m,
|
|
14659
14652
|
...g
|
|
14660
|
-
} = e, x = ir(en, n), y = xo(en, n), w = Os(n), k = Lf(n), I =
|
|
14653
|
+
} = e, x = ir(en, n), y = xo(en, n), w = Os(n), k = Lf(n), I = oS(n), [C, v] = b.useState(null), T = b.useRef(null), A = st(t, T, x.onContentChange), N = b.useRef(0), D = b.useRef(""), H = b.useRef(0), q = b.useRef(null), W = b.useRef("right"), P = b.useRef(0), G = m ? ua : b.Fragment, Y = m ? { as: hS, allowPinchZoom: !0 } : void 0, ie = (L) => {
|
|
14661
14654
|
var $, j;
|
|
14662
|
-
const X = D.current + L, B = I().filter((K) => !K.disabled), R = document.activeElement, E = ($ = B.find((K) => K.ref.current === R)) == null ? void 0 : $.textValue, M = B.map((K) => K.textValue), O =
|
|
14655
|
+
const X = D.current + L, B = I().filter((K) => !K.disabled), R = document.activeElement, E = ($ = B.find((K) => K.ref.current === R)) == null ? void 0 : $.textValue, M = B.map((K) => K.textValue), O = TS(M, X, E), V = (j = B.find((K) => K.textValue === O)) == null ? void 0 : j.ref.current;
|
|
14663
14656
|
(function K(re) {
|
|
14664
14657
|
D.current = re, window.clearTimeout(N.current), re !== "" && (N.current = window.setTimeout(() => K(""), 1e3));
|
|
14665
14658
|
})(X), V && setTimeout(() => V.focus());
|
|
@@ -14667,10 +14660,10 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14667
14660
|
b.useEffect(() => () => window.clearTimeout(N.current), []), cd();
|
|
14668
14661
|
const U = b.useCallback((L) => {
|
|
14669
14662
|
var B, R;
|
|
14670
|
-
return W.current === ((B = q.current) == null ? void 0 : B.side) &&
|
|
14663
|
+
return W.current === ((B = q.current) == null ? void 0 : B.side) && RS(L, (R = q.current) == null ? void 0 : R.area);
|
|
14671
14664
|
}, []);
|
|
14672
14665
|
return /* @__PURE__ */ d.jsx(
|
|
14673
|
-
|
|
14666
|
+
uS,
|
|
14674
14667
|
{
|
|
14675
14668
|
scope: n,
|
|
14676
14669
|
searchRef: D,
|
|
@@ -14718,7 +14711,7 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14718
14711
|
onInteractOutside: h,
|
|
14719
14712
|
onDismiss: p,
|
|
14720
14713
|
children: /* @__PURE__ */ d.jsx(
|
|
14721
|
-
|
|
14714
|
+
Z0,
|
|
14722
14715
|
{
|
|
14723
14716
|
asChild: !0,
|
|
14724
14717
|
...k,
|
|
@@ -14732,7 +14725,7 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14732
14725
|
}),
|
|
14733
14726
|
preventScrollOnEntryFocus: !0,
|
|
14734
14727
|
children: /* @__PURE__ */ d.jsx(
|
|
14735
|
-
|
|
14728
|
+
z0,
|
|
14736
14729
|
{
|
|
14737
14730
|
role: "menu",
|
|
14738
14731
|
"aria-orientation": "vertical",
|
|
@@ -14747,10 +14740,10 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14747
14740
|
const B = L.target.closest("[data-radix-menu-content]") === L.currentTarget, R = L.ctrlKey || L.altKey || L.metaKey, E = L.key.length === 1;
|
|
14748
14741
|
B && (L.key === "Tab" && L.preventDefault(), !R && E && ie(L.key));
|
|
14749
14742
|
const M = T.current;
|
|
14750
|
-
if (L.target !== M || !
|
|
14743
|
+
if (L.target !== M || !tS.includes(L.key)) return;
|
|
14751
14744
|
L.preventDefault();
|
|
14752
14745
|
const V = I().filter(($) => !$.disabled).map(($) => $.ref.current);
|
|
14753
|
-
Mf.includes(L.key) && V.reverse(),
|
|
14746
|
+
Mf.includes(L.key) && V.reverse(), CS(V);
|
|
14754
14747
|
}),
|
|
14755
14748
|
onBlur: Se(e.onBlur, (L) => {
|
|
14756
14749
|
L.currentTarget.contains(L.target) || (window.clearTimeout(N.current), D.current = "");
|
|
@@ -14778,20 +14771,20 @@ var en = "MenuContent", [dS, Na] = sr(en), Bf = b.forwardRef(
|
|
|
14778
14771
|
}
|
|
14779
14772
|
);
|
|
14780
14773
|
Bf.displayName = en;
|
|
14781
|
-
var
|
|
14774
|
+
var pS = "MenuGroup", _a = b.forwardRef(
|
|
14782
14775
|
(e, t) => {
|
|
14783
14776
|
const { __scopeMenu: n, ...r } = e;
|
|
14784
14777
|
return /* @__PURE__ */ d.jsx(Oe.div, { role: "group", ...r, ref: t });
|
|
14785
14778
|
}
|
|
14786
14779
|
);
|
|
14787
|
-
_a.displayName =
|
|
14788
|
-
var
|
|
14780
|
+
_a.displayName = pS;
|
|
14781
|
+
var mS = "MenuLabel", Hf = b.forwardRef(
|
|
14789
14782
|
(e, t) => {
|
|
14790
14783
|
const { __scopeMenu: n, ...r } = e;
|
|
14791
14784
|
return /* @__PURE__ */ d.jsx(Oe.div, { ...r, ref: t });
|
|
14792
14785
|
}
|
|
14793
14786
|
);
|
|
14794
|
-
Hf.displayName =
|
|
14787
|
+
Hf.displayName = mS;
|
|
14795
14788
|
var ds = "MenuItem", yc = "menu.itemSelect", Ms = b.forwardRef(
|
|
14796
14789
|
(e, t) => {
|
|
14797
14790
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = b.useRef(null), i = xo(ds, e.__scopeMenu), a = Na(ds, e.__scopeMenu), c = st(t, s), l = b.useRef(!1), u = () => {
|
|
@@ -14837,7 +14830,7 @@ var Uf = b.forwardRef(
|
|
|
14837
14830
|
scope: n,
|
|
14838
14831
|
disabled: r,
|
|
14839
14832
|
textValue: o ?? h,
|
|
14840
|
-
children: /* @__PURE__ */ d.jsx(
|
|
14833
|
+
children: /* @__PURE__ */ d.jsx(Q0, { asChild: !0, ...a, focusable: !r, children: /* @__PURE__ */ d.jsx(
|
|
14841
14834
|
Oe.div,
|
|
14842
14835
|
{
|
|
14843
14836
|
role: "menuitem",
|
|
@@ -14863,7 +14856,7 @@ var Uf = b.forwardRef(
|
|
|
14863
14856
|
}
|
|
14864
14857
|
);
|
|
14865
14858
|
}
|
|
14866
|
-
),
|
|
14859
|
+
), gS = "MenuCheckboxItem", Wf = b.forwardRef(
|
|
14867
14860
|
(e, t) => {
|
|
14868
14861
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
14869
14862
|
return /* @__PURE__ */ d.jsx(Yf, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ d.jsx(
|
|
@@ -14883,21 +14876,21 @@ var Uf = b.forwardRef(
|
|
|
14883
14876
|
) });
|
|
14884
14877
|
}
|
|
14885
14878
|
);
|
|
14886
|
-
Wf.displayName =
|
|
14887
|
-
var Vf = "MenuRadioGroup", [
|
|
14879
|
+
Wf.displayName = gS;
|
|
14880
|
+
var Vf = "MenuRadioGroup", [xS, yS] = sr(
|
|
14888
14881
|
Vf,
|
|
14889
14882
|
{ value: void 0, onValueChange: () => {
|
|
14890
14883
|
} }
|
|
14891
14884
|
), Kf = b.forwardRef(
|
|
14892
14885
|
(e, t) => {
|
|
14893
14886
|
const { value: n, onValueChange: r, ...o } = e, s = Et(r);
|
|
14894
|
-
return /* @__PURE__ */ d.jsx(
|
|
14887
|
+
return /* @__PURE__ */ d.jsx(xS, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ d.jsx(_a, { ...o, ref: t }) });
|
|
14895
14888
|
}
|
|
14896
14889
|
);
|
|
14897
14890
|
Kf.displayName = Vf;
|
|
14898
14891
|
var qf = "MenuRadioItem", Gf = b.forwardRef(
|
|
14899
14892
|
(e, t) => {
|
|
14900
|
-
const { value: n, ...r } = e, o =
|
|
14893
|
+
const { value: n, ...r } = e, o = yS(qf, e.__scopeMenu), s = n === o.value;
|
|
14901
14894
|
return /* @__PURE__ */ d.jsx(Yf, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ d.jsx(
|
|
14902
14895
|
Ms,
|
|
14903
14896
|
{
|
|
@@ -14919,12 +14912,12 @@ var qf = "MenuRadioItem", Gf = b.forwardRef(
|
|
|
14919
14912
|
}
|
|
14920
14913
|
);
|
|
14921
14914
|
Gf.displayName = qf;
|
|
14922
|
-
var Pa = "MenuItemIndicator", [Yf,
|
|
14915
|
+
var Pa = "MenuItemIndicator", [Yf, bS] = sr(
|
|
14923
14916
|
Pa,
|
|
14924
14917
|
{ checked: !1 }
|
|
14925
14918
|
), Xf = b.forwardRef(
|
|
14926
14919
|
(e, t) => {
|
|
14927
|
-
const { __scopeMenu: n, forceMount: r, ...o } = e, s =
|
|
14920
|
+
const { __scopeMenu: n, forceMount: r, ...o } = e, s = bS(Pa, n);
|
|
14928
14921
|
return /* @__PURE__ */ d.jsx(
|
|
14929
14922
|
Xt,
|
|
14930
14923
|
{
|
|
@@ -14942,7 +14935,7 @@ var Pa = "MenuItemIndicator", [Yf, wS] = sr(
|
|
|
14942
14935
|
}
|
|
14943
14936
|
);
|
|
14944
14937
|
Xf.displayName = Pa;
|
|
14945
|
-
var
|
|
14938
|
+
var wS = "MenuSeparator", Jf = b.forwardRef(
|
|
14946
14939
|
(e, t) => {
|
|
14947
14940
|
const { __scopeMenu: n, ...r } = e;
|
|
14948
14941
|
return /* @__PURE__ */ d.jsx(
|
|
@@ -14956,15 +14949,15 @@ var vS = "MenuSeparator", Jf = b.forwardRef(
|
|
|
14956
14949
|
);
|
|
14957
14950
|
}
|
|
14958
14951
|
);
|
|
14959
|
-
Jf.displayName =
|
|
14960
|
-
var
|
|
14952
|
+
Jf.displayName = wS;
|
|
14953
|
+
var vS = "MenuArrow", Zf = b.forwardRef(
|
|
14961
14954
|
(e, t) => {
|
|
14962
14955
|
const { __scopeMenu: n, ...r } = e, o = Os(n);
|
|
14963
|
-
return /* @__PURE__ */ d.jsx(
|
|
14956
|
+
return /* @__PURE__ */ d.jsx(B0, { ...o, ...r, ref: t });
|
|
14964
14957
|
}
|
|
14965
14958
|
);
|
|
14966
|
-
Zf.displayName =
|
|
14967
|
-
var
|
|
14959
|
+
Zf.displayName = vS;
|
|
14960
|
+
var SS = "MenuSub", [qk, Qf] = sr(SS), Br = "MenuSubTrigger", eh = b.forwardRef(
|
|
14968
14961
|
(e, t) => {
|
|
14969
14962
|
const n = ir(Br, e.__scopeMenu), r = xo(Br, e.__scopeMenu), o = Qf(Br, e.__scopeMenu), s = Na(Br, e.__scopeMenu), i = b.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: c } = s, l = { __scopeMenu: e.__scopeMenu }, u = b.useCallback(() => {
|
|
14970
14963
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
@@ -15028,7 +15021,7 @@ var CS = "MenuSub", [Gk, Qf] = sr(CS), Br = "MenuSubTrigger", eh = b.forwardRef(
|
|
|
15028
15021
|
onKeyDown: Se(e.onKeyDown, (f) => {
|
|
15029
15022
|
var p;
|
|
15030
15023
|
const h = s.searchRef.current !== "";
|
|
15031
|
-
e.disabled || h && f.key === " " ||
|
|
15024
|
+
e.disabled || h && f.key === " " || nS[r.dir].includes(f.key) && (n.onOpenChange(!0), (p = n.content) == null || p.focus(), f.preventDefault());
|
|
15032
15025
|
})
|
|
15033
15026
|
}
|
|
15034
15027
|
) });
|
|
@@ -15063,7 +15056,7 @@ var th = "MenuSubContent", nh = b.forwardRef(
|
|
|
15063
15056
|
}),
|
|
15064
15057
|
onKeyDown: Se(e.onKeyDown, (u) => {
|
|
15065
15058
|
var p;
|
|
15066
|
-
const f = u.currentTarget.contains(u.target), h =
|
|
15059
|
+
const f = u.currentTarget.contains(u.target), h = rS[i.dir].includes(u.key);
|
|
15067
15060
|
f && h && (s.onOpenChange(!1), (p = a.trigger) == null || p.focus(), u.preventDefault());
|
|
15068
15061
|
})
|
|
15069
15062
|
}
|
|
@@ -15080,24 +15073,24 @@ function fs(e) {
|
|
|
15080
15073
|
function Oa(e) {
|
|
15081
15074
|
return fs(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
15082
15075
|
}
|
|
15083
|
-
function
|
|
15076
|
+
function CS(e) {
|
|
15084
15077
|
const t = document.activeElement;
|
|
15085
15078
|
for (const n of e)
|
|
15086
15079
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
15087
15080
|
}
|
|
15088
|
-
function
|
|
15081
|
+
function kS(e, t) {
|
|
15089
15082
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
15090
15083
|
}
|
|
15091
|
-
function
|
|
15084
|
+
function TS(e, t, n) {
|
|
15092
15085
|
const o = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
15093
|
-
let i =
|
|
15086
|
+
let i = kS(e, Math.max(s, 0));
|
|
15094
15087
|
o.length === 1 && (i = i.filter((l) => l !== n));
|
|
15095
15088
|
const c = i.find(
|
|
15096
15089
|
(l) => l.toLowerCase().startsWith(o.toLowerCase())
|
|
15097
15090
|
);
|
|
15098
15091
|
return c !== n ? c : void 0;
|
|
15099
15092
|
}
|
|
15100
|
-
function
|
|
15093
|
+
function IS(e, t) {
|
|
15101
15094
|
const { x: n, y: r } = e;
|
|
15102
15095
|
let o = !1;
|
|
15103
15096
|
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
@@ -15106,18 +15099,18 @@ function RS(e, t) {
|
|
|
15106
15099
|
}
|
|
15107
15100
|
return o;
|
|
15108
15101
|
}
|
|
15109
|
-
function
|
|
15102
|
+
function RS(e, t) {
|
|
15110
15103
|
if (!t) return !1;
|
|
15111
15104
|
const n = { x: e.clientX, y: e.clientY };
|
|
15112
|
-
return
|
|
15105
|
+
return IS(n, t);
|
|
15113
15106
|
}
|
|
15114
15107
|
function ro(e) {
|
|
15115
15108
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
15116
15109
|
}
|
|
15117
|
-
var
|
|
15110
|
+
var ES = $f, AS = Ea, NS = zf, jS = Bf, _S = _a, PS = Hf, OS = Ms, MS = Wf, DS = Kf, LS = Gf, $S = Xf, FS = Jf, zS = Zf, BS = eh, HS = nh, Ds = "DropdownMenu", [US, Gk] = Bn(
|
|
15118
15111
|
Ds,
|
|
15119
15112
|
[Df]
|
|
15120
|
-
), _t = Df(), [
|
|
15113
|
+
), _t = Df(), [WS, oh] = US(Ds), sh = (e) => {
|
|
15121
15114
|
const {
|
|
15122
15115
|
__scopeDropdownMenu: t,
|
|
15123
15116
|
children: n,
|
|
@@ -15133,7 +15126,7 @@ var AS = $f, NS = Ea, jS = zf, _S = Bf, PS = _a, OS = Hf, MS = Ms, DS = Wf, LS =
|
|
|
15133
15126
|
caller: Ds
|
|
15134
15127
|
});
|
|
15135
15128
|
return /* @__PURE__ */ d.jsx(
|
|
15136
|
-
|
|
15129
|
+
WS,
|
|
15137
15130
|
{
|
|
15138
15131
|
scope: t,
|
|
15139
15132
|
triggerId: Gt(),
|
|
@@ -15143,7 +15136,7 @@ var AS = $f, NS = Ea, jS = zf, _S = Bf, PS = _a, OS = Hf, MS = Ms, DS = Wf, LS =
|
|
|
15143
15136
|
onOpenChange: f,
|
|
15144
15137
|
onOpenToggle: b.useCallback(() => f((h) => !h), [f]),
|
|
15145
15138
|
modal: a,
|
|
15146
|
-
children: /* @__PURE__ */ d.jsx(
|
|
15139
|
+
children: /* @__PURE__ */ d.jsx(ES, { ...c, open: u, onOpenChange: f, dir: r, modal: a, children: n })
|
|
15147
15140
|
}
|
|
15148
15141
|
);
|
|
15149
15142
|
};
|
|
@@ -15151,7 +15144,7 @@ sh.displayName = Ds;
|
|
|
15151
15144
|
var ih = "DropdownMenuTrigger", ah = b.forwardRef(
|
|
15152
15145
|
(e, t) => {
|
|
15153
15146
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = oh(ih, n), i = _t(n);
|
|
15154
|
-
return /* @__PURE__ */ d.jsx(
|
|
15147
|
+
return /* @__PURE__ */ d.jsx(AS, { asChild: !0, ...i, children: /* @__PURE__ */ d.jsx(
|
|
15155
15148
|
Oe.button,
|
|
15156
15149
|
{
|
|
15157
15150
|
type: "button",
|
|
@@ -15175,16 +15168,16 @@ var ih = "DropdownMenuTrigger", ah = b.forwardRef(
|
|
|
15175
15168
|
}
|
|
15176
15169
|
);
|
|
15177
15170
|
ah.displayName = ih;
|
|
15178
|
-
var
|
|
15171
|
+
var VS = "DropdownMenuPortal", lh = (e) => {
|
|
15179
15172
|
const { __scopeDropdownMenu: t, ...n } = e, r = _t(t);
|
|
15180
|
-
return /* @__PURE__ */ d.jsx(
|
|
15173
|
+
return /* @__PURE__ */ d.jsx(NS, { ...r, ...n });
|
|
15181
15174
|
};
|
|
15182
|
-
lh.displayName =
|
|
15175
|
+
lh.displayName = VS;
|
|
15183
15176
|
var ch = "DropdownMenuContent", uh = b.forwardRef(
|
|
15184
15177
|
(e, t) => {
|
|
15185
15178
|
const { __scopeDropdownMenu: n, ...r } = e, o = oh(ch, n), s = _t(n), i = b.useRef(!1);
|
|
15186
15179
|
return /* @__PURE__ */ d.jsx(
|
|
15187
|
-
|
|
15180
|
+
jS,
|
|
15188
15181
|
{
|
|
15189
15182
|
id: o.contentId,
|
|
15190
15183
|
"aria-labelledby": o.triggerId,
|
|
@@ -15212,68 +15205,68 @@ var ch = "DropdownMenuContent", uh = b.forwardRef(
|
|
|
15212
15205
|
}
|
|
15213
15206
|
);
|
|
15214
15207
|
uh.displayName = ch;
|
|
15215
|
-
var
|
|
15208
|
+
var KS = "DropdownMenuGroup", qS = b.forwardRef(
|
|
15216
15209
|
(e, t) => {
|
|
15217
15210
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15218
|
-
return /* @__PURE__ */ d.jsx(
|
|
15211
|
+
return /* @__PURE__ */ d.jsx(_S, { ...o, ...r, ref: t });
|
|
15219
15212
|
}
|
|
15220
15213
|
);
|
|
15221
|
-
|
|
15222
|
-
var
|
|
15214
|
+
qS.displayName = KS;
|
|
15215
|
+
var GS = "DropdownMenuLabel", dh = b.forwardRef(
|
|
15223
15216
|
(e, t) => {
|
|
15224
15217
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15225
|
-
return /* @__PURE__ */ d.jsx(
|
|
15218
|
+
return /* @__PURE__ */ d.jsx(PS, { ...o, ...r, ref: t });
|
|
15226
15219
|
}
|
|
15227
15220
|
);
|
|
15228
|
-
dh.displayName =
|
|
15229
|
-
var
|
|
15221
|
+
dh.displayName = GS;
|
|
15222
|
+
var YS = "DropdownMenuItem", fh = b.forwardRef(
|
|
15230
15223
|
(e, t) => {
|
|
15231
15224
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15232
|
-
return /* @__PURE__ */ d.jsx(
|
|
15225
|
+
return /* @__PURE__ */ d.jsx(OS, { ...o, ...r, ref: t });
|
|
15233
15226
|
}
|
|
15234
15227
|
);
|
|
15235
|
-
fh.displayName =
|
|
15236
|
-
var
|
|
15228
|
+
fh.displayName = YS;
|
|
15229
|
+
var XS = "DropdownMenuCheckboxItem", hh = b.forwardRef((e, t) => {
|
|
15230
|
+
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15231
|
+
return /* @__PURE__ */ d.jsx(MS, { ...o, ...r, ref: t });
|
|
15232
|
+
});
|
|
15233
|
+
hh.displayName = XS;
|
|
15234
|
+
var JS = "DropdownMenuRadioGroup", ZS = b.forwardRef((e, t) => {
|
|
15237
15235
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15238
15236
|
return /* @__PURE__ */ d.jsx(DS, { ...o, ...r, ref: t });
|
|
15239
15237
|
});
|
|
15240
|
-
|
|
15241
|
-
var
|
|
15238
|
+
ZS.displayName = JS;
|
|
15239
|
+
var QS = "DropdownMenuRadioItem", ph = b.forwardRef((e, t) => {
|
|
15242
15240
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15243
15241
|
return /* @__PURE__ */ d.jsx(LS, { ...o, ...r, ref: t });
|
|
15244
15242
|
});
|
|
15245
|
-
|
|
15246
|
-
var eC = "
|
|
15243
|
+
ph.displayName = QS;
|
|
15244
|
+
var eC = "DropdownMenuItemIndicator", mh = b.forwardRef((e, t) => {
|
|
15247
15245
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15248
15246
|
return /* @__PURE__ */ d.jsx($S, { ...o, ...r, ref: t });
|
|
15249
15247
|
});
|
|
15250
|
-
|
|
15251
|
-
var tC = "
|
|
15248
|
+
mh.displayName = eC;
|
|
15249
|
+
var tC = "DropdownMenuSeparator", gh = b.forwardRef((e, t) => {
|
|
15252
15250
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15253
15251
|
return /* @__PURE__ */ d.jsx(FS, { ...o, ...r, ref: t });
|
|
15254
15252
|
});
|
|
15255
|
-
|
|
15256
|
-
var nC = "
|
|
15257
|
-
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15258
|
-
return /* @__PURE__ */ d.jsx(zS, { ...o, ...r, ref: t });
|
|
15259
|
-
});
|
|
15260
|
-
gh.displayName = nC;
|
|
15261
|
-
var rC = "DropdownMenuArrow", oC = b.forwardRef(
|
|
15253
|
+
gh.displayName = tC;
|
|
15254
|
+
var nC = "DropdownMenuArrow", rC = b.forwardRef(
|
|
15262
15255
|
(e, t) => {
|
|
15263
15256
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15264
|
-
return /* @__PURE__ */ d.jsx(
|
|
15257
|
+
return /* @__PURE__ */ d.jsx(zS, { ...o, ...r, ref: t });
|
|
15265
15258
|
}
|
|
15266
15259
|
);
|
|
15267
|
-
|
|
15268
|
-
var
|
|
15260
|
+
rC.displayName = nC;
|
|
15261
|
+
var oC = "DropdownMenuSubTrigger", xh = b.forwardRef((e, t) => {
|
|
15269
15262
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15270
|
-
return /* @__PURE__ */ d.jsx(
|
|
15263
|
+
return /* @__PURE__ */ d.jsx(BS, { ...o, ...r, ref: t });
|
|
15271
15264
|
});
|
|
15272
|
-
xh.displayName =
|
|
15273
|
-
var
|
|
15265
|
+
xh.displayName = oC;
|
|
15266
|
+
var sC = "DropdownMenuSubContent", yh = b.forwardRef((e, t) => {
|
|
15274
15267
|
const { __scopeDropdownMenu: n, ...r } = e, o = _t(n);
|
|
15275
15268
|
return /* @__PURE__ */ d.jsx(
|
|
15276
|
-
|
|
15269
|
+
HS,
|
|
15277
15270
|
{
|
|
15278
15271
|
...o,
|
|
15279
15272
|
...r,
|
|
@@ -15289,9 +15282,9 @@ var iC = "DropdownMenuSubContent", yh = b.forwardRef((e, t) => {
|
|
|
15289
15282
|
}
|
|
15290
15283
|
);
|
|
15291
15284
|
});
|
|
15292
|
-
yh.displayName =
|
|
15293
|
-
var
|
|
15294
|
-
const Ma =
|
|
15285
|
+
yh.displayName = sC;
|
|
15286
|
+
var iC = sh, aC = ah, lC = lh, bh = uh, wh = dh, vh = fh, Sh = hh, Ch = ph, kh = mh, Th = gh, Ih = xh, Rh = yh;
|
|
15287
|
+
const Ma = iC, Da = aC, cC = b.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ d.jsxs(
|
|
15295
15288
|
Ih,
|
|
15296
15289
|
{
|
|
15297
15290
|
ref: o,
|
|
@@ -15307,8 +15300,8 @@ const Ma = aC, Da = lC, uC = b.forwardRef(({ className: e, inset: t, children: n
|
|
|
15307
15300
|
]
|
|
15308
15301
|
}
|
|
15309
15302
|
));
|
|
15310
|
-
|
|
15311
|
-
const
|
|
15303
|
+
cC.displayName = Ih.displayName;
|
|
15304
|
+
const uC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15312
15305
|
Rh,
|
|
15313
15306
|
{
|
|
15314
15307
|
ref: n,
|
|
@@ -15319,8 +15312,8 @@ const dC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
15319
15312
|
...t
|
|
15320
15313
|
}
|
|
15321
15314
|
));
|
|
15322
|
-
|
|
15323
|
-
const Ls = b.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ d.jsx(
|
|
15315
|
+
uC.displayName = Rh.displayName;
|
|
15316
|
+
const Ls = b.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ d.jsx(lC, { children: /* @__PURE__ */ d.jsx(
|
|
15324
15317
|
bh,
|
|
15325
15318
|
{
|
|
15326
15319
|
ref: r,
|
|
@@ -15346,7 +15339,7 @@ const Yn = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
15346
15339
|
}
|
|
15347
15340
|
));
|
|
15348
15341
|
Yn.displayName = vh.displayName;
|
|
15349
|
-
const
|
|
15342
|
+
const dC = b.forwardRef(({ className: e, children: t, checked: n, ...r }, o) => /* @__PURE__ */ d.jsxs(
|
|
15350
15343
|
Sh,
|
|
15351
15344
|
{
|
|
15352
15345
|
ref: o,
|
|
@@ -15362,8 +15355,8 @@ const fC = b.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
|
|
|
15362
15355
|
]
|
|
15363
15356
|
}
|
|
15364
15357
|
));
|
|
15365
|
-
|
|
15366
|
-
const
|
|
15358
|
+
dC.displayName = Sh.displayName;
|
|
15359
|
+
const fC = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d.jsxs(
|
|
15367
15360
|
Ch,
|
|
15368
15361
|
{
|
|
15369
15362
|
ref: r,
|
|
@@ -15378,8 +15371,8 @@ const hC = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
15378
15371
|
]
|
|
15379
15372
|
}
|
|
15380
15373
|
));
|
|
15381
|
-
|
|
15382
|
-
const
|
|
15374
|
+
fC.displayName = Ch.displayName;
|
|
15375
|
+
const hC = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ d.jsx(
|
|
15383
15376
|
wh,
|
|
15384
15377
|
{
|
|
15385
15378
|
ref: r,
|
|
@@ -15391,8 +15384,8 @@ const pC = b.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */
|
|
|
15391
15384
|
...n
|
|
15392
15385
|
}
|
|
15393
15386
|
));
|
|
15394
|
-
|
|
15395
|
-
const
|
|
15387
|
+
hC.displayName = wh.displayName;
|
|
15388
|
+
const pC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15396
15389
|
Th,
|
|
15397
15390
|
{
|
|
15398
15391
|
ref: n,
|
|
@@ -15400,7 +15393,7 @@ const mC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
15400
15393
|
...t
|
|
15401
15394
|
}
|
|
15402
15395
|
));
|
|
15403
|
-
|
|
15396
|
+
pC.displayName = Th.displayName;
|
|
15404
15397
|
const Eh = b.forwardRef(
|
|
15405
15398
|
({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
15406
15399
|
"textarea",
|
|
@@ -15415,14 +15408,14 @@ const Eh = b.forwardRef(
|
|
|
15415
15408
|
)
|
|
15416
15409
|
);
|
|
15417
15410
|
Eh.displayName = "Textarea";
|
|
15418
|
-
const
|
|
15419
|
-
function
|
|
15411
|
+
const mC = 1e4;
|
|
15412
|
+
function gC({
|
|
15420
15413
|
initialValue: e = "",
|
|
15421
15414
|
editingMessageId: t = null,
|
|
15422
15415
|
placeholder: n = "Type your message...",
|
|
15423
15416
|
isStreaming: r = !1,
|
|
15424
15417
|
disabled: o = !1,
|
|
15425
|
-
maxLength: s =
|
|
15418
|
+
maxLength: s = mC,
|
|
15426
15419
|
value: i,
|
|
15427
15420
|
onValueChange: a,
|
|
15428
15421
|
onSend: c,
|
|
@@ -15560,8 +15553,8 @@ function xC({
|
|
|
15560
15553
|
) })
|
|
15561
15554
|
] }) });
|
|
15562
15555
|
}
|
|
15563
|
-
const
|
|
15564
|
-
function
|
|
15556
|
+
const xC = ee.memo(gC);
|
|
15557
|
+
function yC({
|
|
15565
15558
|
composerValue: e,
|
|
15566
15559
|
onComposerChange: t,
|
|
15567
15560
|
onSend: n,
|
|
@@ -15726,7 +15719,7 @@ function bC({
|
|
|
15726
15719
|
] })
|
|
15727
15720
|
] }),
|
|
15728
15721
|
/* @__PURE__ */ d.jsx("div", { className: "flex-1", children: /* @__PURE__ */ d.jsx(
|
|
15729
|
-
|
|
15722
|
+
xC,
|
|
15730
15723
|
{
|
|
15731
15724
|
initialValue: i,
|
|
15732
15725
|
editingMessageId: s,
|
|
@@ -15746,7 +15739,7 @@ function bC({
|
|
|
15746
15739
|
] })
|
|
15747
15740
|
] });
|
|
15748
15741
|
}
|
|
15749
|
-
const
|
|
15742
|
+
const bC = ee.memo(yC), bc = {
|
|
15750
15743
|
value: ""
|
|
15751
15744
|
};
|
|
15752
15745
|
function Yo({
|
|
@@ -16064,7 +16057,7 @@ function Yo({
|
|
|
16064
16057
|
] }) }),
|
|
16065
16058
|
wt && /* @__PURE__ */ d.jsx("div", { className: "mb-3 text-sm text-red-600 bg-red-50 border border-red-200 rounded px-3 py-2", children: wt }),
|
|
16066
16059
|
/* @__PURE__ */ d.jsx(
|
|
16067
|
-
|
|
16060
|
+
bC,
|
|
16068
16061
|
{
|
|
16069
16062
|
composerValue: ut,
|
|
16070
16063
|
onComposerChange: ze,
|
|
@@ -16089,25 +16082,25 @@ function Yo({
|
|
|
16089
16082
|
] })
|
|
16090
16083
|
] });
|
|
16091
16084
|
}
|
|
16092
|
-
var wc = 1,
|
|
16085
|
+
var wc = 1, wC = 0.9, vC = 0.8, SC = 0.17, fi = 0.1, hi = 0.999, CC = 0.9999, kC = 0.99, TC = /[\\\/_+.#"@\[\(\{&]/, IC = /[\\\/_+.#"@\[\(\{&]/g, RC = /[\s-]/, Ah = /[\s-]/g;
|
|
16093
16086
|
function Li(e, t, n, r, o, s, i) {
|
|
16094
|
-
if (s === t.length) return o === e.length ? wc :
|
|
16087
|
+
if (s === t.length) return o === e.length ? wc : kC;
|
|
16095
16088
|
var a = `${o},${s}`;
|
|
16096
16089
|
if (i[a] !== void 0) return i[a];
|
|
16097
|
-
for (var c = r.charAt(s), l = n.indexOf(c, o), u = 0, f, h, p, m; l >= 0; ) f = Li(e, t, n, r, l + 1, s + 1, i), f > u && (l === o ? f *= wc :
|
|
16090
|
+
for (var c = r.charAt(s), l = n.indexOf(c, o), u = 0, f, h, p, m; l >= 0; ) f = Li(e, t, n, r, l + 1, s + 1, i), f > u && (l === o ? f *= wc : TC.test(e.charAt(l - 1)) ? (f *= vC, p = e.slice(o, l - 1).match(IC), p && o > 0 && (f *= Math.pow(hi, p.length))) : RC.test(e.charAt(l - 1)) ? (f *= wC, m = e.slice(o, l - 1).match(Ah), m && o > 0 && (f *= Math.pow(hi, m.length))) : (f *= SC, o > 0 && (f *= Math.pow(hi, l - o))), e.charAt(l) !== t.charAt(s) && (f *= CC)), (f < fi && n.charAt(l - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(l - 1) !== r.charAt(s)) && (h = Li(e, t, n, r, l + 1, s + 2, i), h * fi > f && (f = h * fi)), f > u && (u = f), l = n.indexOf(c, l + 1);
|
|
16098
16091
|
return i[a] = u, u;
|
|
16099
16092
|
}
|
|
16100
16093
|
function vc(e) {
|
|
16101
16094
|
return e.toLowerCase().replace(Ah, " ");
|
|
16102
16095
|
}
|
|
16103
|
-
function
|
|
16096
|
+
function EC(e, t, n) {
|
|
16104
16097
|
return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, Li(e, t, vc(e), vc(t), 0, 0, {});
|
|
16105
16098
|
}
|
|
16106
|
-
var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]',
|
|
16099
|
+
var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', AC = '[cmdk-group-heading=""]', Nh = '[cmdk-item=""]', Sc = `${Nh}:not([aria-disabled="true"])`, $i = "cmdk-item-select", dr = "data-value", NC = (e, t, n) => EC(e, t, n), jh = b.createContext(void 0), yo = () => b.useContext(jh), _h = b.createContext(void 0), La = () => b.useContext(_h), Ph = b.createContext(void 0), Oh = b.forwardRef((e, t) => {
|
|
16107
16100
|
let n = fr(() => {
|
|
16108
16101
|
var R, E;
|
|
16109
16102
|
return { search: "", value: (E = (R = e.value) != null ? R : e.defaultValue) != null ? E : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
16110
|
-
}), r = fr(() => /* @__PURE__ */ new Set()), o = fr(() => /* @__PURE__ */ new Map()), s = fr(() => /* @__PURE__ */ new Map()), i = fr(() => /* @__PURE__ */ new Set()), a = Mh(e), { label: c, children: l, value: u, onValueChange: f, filter: h, shouldFilter: p, loop: m, disablePointerSelection: g = !1, vimBindings: x = !0, ...y } = e, w = Gt(), k = Gt(), I = Gt(), C = b.useRef(null), v =
|
|
16103
|
+
}), r = fr(() => /* @__PURE__ */ new Set()), o = fr(() => /* @__PURE__ */ new Map()), s = fr(() => /* @__PURE__ */ new Map()), i = fr(() => /* @__PURE__ */ new Set()), a = Mh(e), { label: c, children: l, value: u, onValueChange: f, filter: h, shouldFilter: p, loop: m, disablePointerSelection: g = !1, vimBindings: x = !0, ...y } = e, w = Gt(), k = Gt(), I = Gt(), C = b.useRef(null), v = BC();
|
|
16111
16104
|
tr(() => {
|
|
16112
16105
|
if (u !== void 0) {
|
|
16113
16106
|
let R = u.trim();
|
|
@@ -16156,7 +16149,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16156
16149
|
}), filter: () => a.current.shouldFilter, label: c || e["aria-label"], getDisablePointerSelection: () => a.current.disablePointerSelection, listId: w, inputId: I, labelId: k, listInnerRef: C }), []);
|
|
16157
16150
|
function N(R, E) {
|
|
16158
16151
|
var M, O;
|
|
16159
|
-
let V = (O = (M = a.current) == null ? void 0 : M.filter) != null ? O :
|
|
16152
|
+
let V = (O = (M = a.current) == null ? void 0 : M.filter) != null ? O : NC;
|
|
16160
16153
|
return R ? V(R, n.current.search, E) : 0;
|
|
16161
16154
|
}
|
|
16162
16155
|
function D() {
|
|
@@ -16208,7 +16201,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16208
16201
|
function W() {
|
|
16209
16202
|
var R, E, M;
|
|
16210
16203
|
let O = P();
|
|
16211
|
-
O && (((R = O.parentElement) == null ? void 0 : R.firstChild) === O && ((M = (E = O.closest(Fr)) == null ? void 0 : E.querySelector(
|
|
16204
|
+
O && (((R = O.parentElement) == null ? void 0 : R.firstChild) === O && ((M = (E = O.closest(Fr)) == null ? void 0 : E.querySelector(AC)) == null || M.scrollIntoView({ block: "nearest" })), O.scrollIntoView({ block: "nearest" }));
|
|
16212
16205
|
}
|
|
16213
16206
|
function P() {
|
|
16214
16207
|
var R;
|
|
@@ -16229,7 +16222,7 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16229
16222
|
}
|
|
16230
16223
|
function U(R) {
|
|
16231
16224
|
let E = P(), M = E == null ? void 0 : E.closest(Fr), O;
|
|
16232
|
-
for (; M && !O; ) M = R > 0 ?
|
|
16225
|
+
for (; M && !O; ) M = R > 0 ? FC(M, Fr) : zC(M, Fr), O = M == null ? void 0 : M.querySelector(Sc);
|
|
16233
16226
|
O ? T.setState("value", O.getAttribute(dr)) : ie(R);
|
|
16234
16227
|
}
|
|
16235
16228
|
let L = () => Y(G().length - 1), X = (R) => {
|
|
@@ -16277,8 +16270,8 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16277
16270
|
}
|
|
16278
16271
|
}
|
|
16279
16272
|
}
|
|
16280
|
-
} }, b.createElement("label", { "cmdk-label": "", htmlFor: A.inputId, id: A.labelId, style:
|
|
16281
|
-
}),
|
|
16273
|
+
} }, b.createElement("label", { "cmdk-label": "", htmlFor: A.inputId, id: A.labelId, style: UC }, c), $s(e, (R) => b.createElement(_h.Provider, { value: T }, b.createElement(jh.Provider, { value: A }, R))));
|
|
16274
|
+
}), jC = b.forwardRef((e, t) => {
|
|
16282
16275
|
var n, r;
|
|
16283
16276
|
let o = Gt(), s = b.useRef(null), i = b.useContext(Ph), a = yo(), c = Mh(e), l = (r = (n = c.current) == null ? void 0 : n.forceMount) != null ? r : i == null ? void 0 : i.forceMount;
|
|
16284
16277
|
tr(() => {
|
|
@@ -16299,22 +16292,22 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16299
16292
|
if (!p) return null;
|
|
16300
16293
|
let { disabled: x, value: y, onSelect: w, forceMount: k, keywords: I, ...C } = e;
|
|
16301
16294
|
return b.createElement(Oe.div, { ref: _n(s, t), ...C, id: o, "cmdk-item": "", role: "option", "aria-disabled": !!x, "aria-selected": !!h, "data-disabled": !!x, "data-selected": !!h, onPointerMove: x || a.getDisablePointerSelection() ? void 0 : g, onClick: x ? void 0 : m }, e.children);
|
|
16302
|
-
}),
|
|
16295
|
+
}), _C = b.forwardRef((e, t) => {
|
|
16303
16296
|
let { heading: n, children: r, forceMount: o, ...s } = e, i = Gt(), a = b.useRef(null), c = b.useRef(null), l = Gt(), u = yo(), f = Ln((p) => o || u.filter() === !1 ? !0 : p.search ? p.filtered.groups.has(i) : !0);
|
|
16304
16297
|
tr(() => u.group(i), []), Dh(i, a, [e.value, e.heading, c]);
|
|
16305
16298
|
let h = b.useMemo(() => ({ id: i, forceMount: o }), [o]);
|
|
16306
16299
|
return b.createElement(Oe.div, { ref: _n(a, t), ...s, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, n && b.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: l }, n), $s(e, (p) => b.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? l : void 0 }, b.createElement(Ph.Provider, { value: h }, p))));
|
|
16307
|
-
}),
|
|
16300
|
+
}), PC = b.forwardRef((e, t) => {
|
|
16308
16301
|
let { alwaysRender: n, ...r } = e, o = b.useRef(null), s = Ln((i) => !i.search);
|
|
16309
16302
|
return !n && !s ? null : b.createElement(Oe.div, { ref: _n(o, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
16310
|
-
}),
|
|
16303
|
+
}), OC = b.forwardRef((e, t) => {
|
|
16311
16304
|
let { onValueChange: n, ...r } = e, o = e.value != null, s = La(), i = Ln((l) => l.search), a = Ln((l) => l.selectedItemId), c = yo();
|
|
16312
16305
|
return b.useEffect(() => {
|
|
16313
16306
|
e.value != null && s.setState("search", e.value);
|
|
16314
16307
|
}, [e.value]), b.createElement(Oe.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": c.listId, "aria-labelledby": c.labelId, "aria-activedescendant": a, id: c.inputId, type: "text", value: o ? e.value : i, onChange: (l) => {
|
|
16315
16308
|
o || s.setState("search", l.target.value), n == null || n(l.target.value);
|
|
16316
16309
|
} });
|
|
16317
|
-
}),
|
|
16310
|
+
}), MC = b.forwardRef((e, t) => {
|
|
16318
16311
|
let { children: n, label: r = "Suggestions", ...o } = e, s = b.useRef(null), i = b.useRef(null), a = Ln((l) => l.selectedItemId), c = yo();
|
|
16319
16312
|
return b.useEffect(() => {
|
|
16320
16313
|
if (i.current && s.current) {
|
|
@@ -16329,21 +16322,21 @@ var Fr = '[cmdk-group=""]', pi = '[cmdk-group-items=""]', NC = '[cmdk-group-head
|
|
|
16329
16322
|
};
|
|
16330
16323
|
}
|
|
16331
16324
|
}, []), b.createElement(Oe.div, { ref: _n(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": a, "aria-label": r, id: c.listId }, $s(e, (l) => b.createElement("div", { ref: _n(i, c.listInnerRef), "cmdk-list-sizer": "" }, l)));
|
|
16332
|
-
}),
|
|
16325
|
+
}), DC = b.forwardRef((e, t) => {
|
|
16333
16326
|
let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: i, ...a } = e;
|
|
16334
16327
|
return b.createElement(Od, { open: n, onOpenChange: r }, b.createElement(Md, { container: i }, b.createElement(pa, { "cmdk-overlay": "", className: o }), b.createElement(ma, { "aria-label": e.label, "cmdk-dialog": "", className: s }, b.createElement(Oh, { ref: t, ...a }))));
|
|
16335
|
-
}),
|
|
16328
|
+
}), LC = b.forwardRef((e, t) => Ln((n) => n.filtered.count === 0) ? b.createElement(Oe.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), $C = b.forwardRef((e, t) => {
|
|
16336
16329
|
let { progress: n, children: r, label: o = "Loading...", ...s } = e;
|
|
16337
16330
|
return b.createElement(Oe.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, $s(e, (i) => b.createElement("div", { "aria-hidden": !0 }, i)));
|
|
16338
|
-
}), Ht = Object.assign(Oh, { List:
|
|
16339
|
-
function
|
|
16331
|
+
}), Ht = Object.assign(Oh, { List: MC, Item: jC, Input: OC, Group: _C, Separator: PC, Dialog: DC, Empty: LC, Loading: $C });
|
|
16332
|
+
function FC(e, t) {
|
|
16340
16333
|
let n = e.nextElementSibling;
|
|
16341
16334
|
for (; n; ) {
|
|
16342
16335
|
if (n.matches(t)) return n;
|
|
16343
16336
|
n = n.nextElementSibling;
|
|
16344
16337
|
}
|
|
16345
16338
|
}
|
|
16346
|
-
function
|
|
16339
|
+
function zC(e, t) {
|
|
16347
16340
|
let n = e.previousElementSibling;
|
|
16348
16341
|
for (; n; ) {
|
|
16349
16342
|
if (n.matches(t)) return n;
|
|
@@ -16379,7 +16372,7 @@ function Dh(e, t, n, r = []) {
|
|
|
16379
16372
|
s.value(e, a, c), (i = t.current) == null || i.setAttribute(dr, a), o.current = a;
|
|
16380
16373
|
}), o;
|
|
16381
16374
|
}
|
|
16382
|
-
var
|
|
16375
|
+
var BC = () => {
|
|
16383
16376
|
let [e, t] = b.useState(), n = fr(() => /* @__PURE__ */ new Map());
|
|
16384
16377
|
return tr(() => {
|
|
16385
16378
|
n.current.forEach((r) => r()), n.current = /* @__PURE__ */ new Map();
|
|
@@ -16387,14 +16380,14 @@ var HC = () => {
|
|
|
16387
16380
|
n.current.set(r, o), t({});
|
|
16388
16381
|
};
|
|
16389
16382
|
};
|
|
16390
|
-
function
|
|
16383
|
+
function HC(e) {
|
|
16391
16384
|
let t = e.type;
|
|
16392
16385
|
return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
|
|
16393
16386
|
}
|
|
16394
16387
|
function $s({ asChild: e, children: t }, n) {
|
|
16395
|
-
return e && b.isValidElement(t) ? b.cloneElement(
|
|
16388
|
+
return e && b.isValidElement(t) ? b.cloneElement(HC(t), { ref: t.ref }, n(t.props.children)) : n(t);
|
|
16396
16389
|
}
|
|
16397
|
-
var
|
|
16390
|
+
var UC = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
16398
16391
|
const Lh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16399
16392
|
Ht,
|
|
16400
16393
|
{
|
|
@@ -16452,7 +16445,7 @@ const Bh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16452
16445
|
}
|
|
16453
16446
|
));
|
|
16454
16447
|
Bh.displayName = Ht.Group.displayName;
|
|
16455
|
-
const
|
|
16448
|
+
const WC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16456
16449
|
Ht.Separator,
|
|
16457
16450
|
{
|
|
16458
16451
|
ref: n,
|
|
@@ -16460,7 +16453,7 @@ const VC = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16460
16453
|
...t
|
|
16461
16454
|
}
|
|
16462
16455
|
));
|
|
16463
|
-
|
|
16456
|
+
WC.displayName = Ht.Separator.displayName;
|
|
16464
16457
|
const Hh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
16465
16458
|
Ht.Item,
|
|
16466
16459
|
{
|
|
@@ -16473,13 +16466,13 @@ const Hh = b.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ d.jsx(
|
|
|
16473
16466
|
}
|
|
16474
16467
|
));
|
|
16475
16468
|
Hh.displayName = Ht.Item.displayName;
|
|
16476
|
-
function
|
|
16469
|
+
function VC(e, [t, n]) {
|
|
16477
16470
|
return Math.min(n, Math.max(t, e));
|
|
16478
16471
|
}
|
|
16479
|
-
function
|
|
16472
|
+
function KC(e, t) {
|
|
16480
16473
|
return b.useReducer((n, r) => t[n][r] ?? n, e);
|
|
16481
16474
|
}
|
|
16482
|
-
var $a = "ScrollArea", [Uh,
|
|
16475
|
+
var $a = "ScrollArea", [Uh, Yk] = Bn($a), [qC, tn] = Uh($a), Wh = b.forwardRef(
|
|
16483
16476
|
(e, t) => {
|
|
16484
16477
|
const {
|
|
16485
16478
|
__scopeScrollArea: n,
|
|
@@ -16489,7 +16482,7 @@ var $a = "ScrollArea", [Uh, Xk] = Bn($a), [GC, tn] = Uh($a), Wh = b.forwardRef(
|
|
|
16489
16482
|
...i
|
|
16490
16483
|
} = e, [a, c] = b.useState(null), [l, u] = b.useState(null), [f, h] = b.useState(null), [p, m] = b.useState(null), [g, x] = b.useState(null), [y, w] = b.useState(0), [k, I] = b.useState(0), [C, v] = b.useState(!1), [T, A] = b.useState(!1), N = st(t, (H) => c(H)), D = ba(o);
|
|
16491
16484
|
return /* @__PURE__ */ d.jsx(
|
|
16492
|
-
|
|
16485
|
+
qC,
|
|
16493
16486
|
{
|
|
16494
16487
|
scope: n,
|
|
16495
16488
|
type: r,
|
|
@@ -16577,11 +16570,11 @@ var Sn = "ScrollAreaScrollbar", Fa = b.forwardRef(
|
|
|
16577
16570
|
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), { onScrollbarXEnabledChange: s, onScrollbarYEnabledChange: i } = o, a = e.orientation === "horizontal";
|
|
16578
16571
|
return b.useEffect(() => (a ? s(!0) : i(!0), () => {
|
|
16579
16572
|
a ? s(!1) : i(!1);
|
|
16580
|
-
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(
|
|
16573
|
+
}), [a, s, i]), o.type === "hover" ? /* @__PURE__ */ d.jsx(GC, { ...r, ref: t, forceMount: n }) : o.type === "scroll" ? /* @__PURE__ */ d.jsx(YC, { ...r, ref: t, forceMount: n }) : o.type === "auto" ? /* @__PURE__ */ d.jsx(qh, { ...r, ref: t, forceMount: n }) : o.type === "always" ? /* @__PURE__ */ d.jsx(za, { ...r, ref: t }) : null;
|
|
16581
16574
|
}
|
|
16582
16575
|
);
|
|
16583
16576
|
Fa.displayName = Sn;
|
|
16584
|
-
var
|
|
16577
|
+
var GC = b.forwardRef((e, t) => {
|
|
16585
16578
|
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), [s, i] = b.useState(!1);
|
|
16586
16579
|
return b.useEffect(() => {
|
|
16587
16580
|
const a = o.scrollArea;
|
|
@@ -16604,8 +16597,8 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16604
16597
|
ref: t
|
|
16605
16598
|
}
|
|
16606
16599
|
) });
|
|
16607
|
-
}),
|
|
16608
|
-
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = zs(() => c("SCROLL_END"), 100), [a, c] =
|
|
16600
|
+
}), YC = b.forwardRef((e, t) => {
|
|
16601
|
+
const { forceMount: n, ...r } = e, o = tn(Sn, e.__scopeScrollArea), s = e.orientation === "horizontal", i = zs(() => c("SCROLL_END"), 100), [a, c] = KC("hidden", {
|
|
16609
16602
|
hidden: {
|
|
16610
16603
|
SCROLL: "scrolling"
|
|
16611
16604
|
},
|
|
@@ -16678,10 +16671,10 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16678
16671
|
onThumbPointerDown: (h) => i.current = h
|
|
16679
16672
|
};
|
|
16680
16673
|
function f(h, p) {
|
|
16681
|
-
return
|
|
16674
|
+
return tk(h, i.current, a, p);
|
|
16682
16675
|
}
|
|
16683
16676
|
return n === "horizontal" ? /* @__PURE__ */ d.jsx(
|
|
16684
|
-
|
|
16677
|
+
XC,
|
|
16685
16678
|
{
|
|
16686
16679
|
...u,
|
|
16687
16680
|
ref: t,
|
|
@@ -16699,7 +16692,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16699
16692
|
}
|
|
16700
16693
|
}
|
|
16701
16694
|
) : n === "vertical" ? /* @__PURE__ */ d.jsx(
|
|
16702
|
-
|
|
16695
|
+
JC,
|
|
16703
16696
|
{
|
|
16704
16697
|
...u,
|
|
16705
16698
|
ref: t,
|
|
@@ -16717,7 +16710,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16717
16710
|
}
|
|
16718
16711
|
}
|
|
16719
16712
|
) : null;
|
|
16720
|
-
}),
|
|
16713
|
+
}), XC = b.forwardRef((e, t) => {
|
|
16721
16714
|
const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = b.useState(), c = b.useRef(null), l = st(t, c, s.onScrollbarXChange);
|
|
16722
16715
|
return b.useEffect(() => {
|
|
16723
16716
|
c.current && a(getComputedStyle(c.current));
|
|
@@ -16756,7 +16749,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16756
16749
|
}
|
|
16757
16750
|
}
|
|
16758
16751
|
);
|
|
16759
|
-
}),
|
|
16752
|
+
}), JC = b.forwardRef((e, t) => {
|
|
16760
16753
|
const { sizes: n, onSizesChange: r, ...o } = e, s = tn(Sn, e.__scopeScrollArea), [i, a] = b.useState(), c = b.useRef(null), l = st(t, c, s.onScrollbarYChange);
|
|
16761
16754
|
return b.useEffect(() => {
|
|
16762
16755
|
c.current && a(getComputedStyle(c.current));
|
|
@@ -16796,7 +16789,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16796
16789
|
}
|
|
16797
16790
|
}
|
|
16798
16791
|
);
|
|
16799
|
-
}), [
|
|
16792
|
+
}), [ZC, Gh] = Uh(Sn), Yh = b.forwardRef((e, t) => {
|
|
16800
16793
|
const {
|
|
16801
16794
|
__scopeScrollArea: n,
|
|
16802
16795
|
sizes: r,
|
|
@@ -16823,7 +16816,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16823
16816
|
};
|
|
16824
16817
|
return document.addEventListener("wheel", N, { passive: !1 }), () => document.removeEventListener("wheel", N, { passive: !1 });
|
|
16825
16818
|
}, [k, m, I, C]), b.useEffect(v, [r, v]), Sr(m, T), Sr(p.content, T), /* @__PURE__ */ d.jsx(
|
|
16826
|
-
|
|
16819
|
+
ZC,
|
|
16827
16820
|
{
|
|
16828
16821
|
scope: n,
|
|
16829
16822
|
scrollbar: m,
|
|
@@ -16853,9 +16846,9 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16853
16846
|
}), hs = "ScrollAreaThumb", Xh = b.forwardRef(
|
|
16854
16847
|
(e, t) => {
|
|
16855
16848
|
const { forceMount: n, ...r } = e, o = Gh(hs, e.__scopeScrollArea);
|
|
16856
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.hasThumb, children: /* @__PURE__ */ d.jsx(
|
|
16849
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.hasThumb, children: /* @__PURE__ */ d.jsx(QC, { ref: t, ...r }) });
|
|
16857
16850
|
}
|
|
16858
|
-
),
|
|
16851
|
+
), QC = b.forwardRef(
|
|
16859
16852
|
(e, t) => {
|
|
16860
16853
|
const { __scopeScrollArea: n, style: r, ...o } = e, s = tn(hs, n), i = Gh(hs, n), { onThumbPositionChange: a } = i, c = st(
|
|
16861
16854
|
t,
|
|
@@ -16868,7 +16861,7 @@ var YC = b.forwardRef((e, t) => {
|
|
|
16868
16861
|
if (f) {
|
|
16869
16862
|
const h = () => {
|
|
16870
16863
|
if (u(), !l.current) {
|
|
16871
|
-
const p =
|
|
16864
|
+
const p = nk(f, a);
|
|
16872
16865
|
l.current = p, a();
|
|
16873
16866
|
}
|
|
16874
16867
|
};
|
|
@@ -16898,11 +16891,11 @@ Xh.displayName = hs;
|
|
|
16898
16891
|
var Ba = "ScrollAreaCorner", Jh = b.forwardRef(
|
|
16899
16892
|
(e, t) => {
|
|
16900
16893
|
const n = tn(Ba, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
|
|
16901
|
-
return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(
|
|
16894
|
+
return n.type !== "scroll" && r ? /* @__PURE__ */ d.jsx(ek, { ...e, ref: t }) : null;
|
|
16902
16895
|
}
|
|
16903
16896
|
);
|
|
16904
16897
|
Jh.displayName = Ba;
|
|
16905
|
-
var
|
|
16898
|
+
var ek = b.forwardRef((e, t) => {
|
|
16906
16899
|
const { __scopeScrollArea: n, ...r } = e, o = tn(Ba, n), [s, i] = b.useState(0), [a, c] = b.useState(0), l = !!(s && a);
|
|
16907
16900
|
return Sr(o.scrollbarX, () => {
|
|
16908
16901
|
var f;
|
|
@@ -16940,12 +16933,12 @@ function Fs(e) {
|
|
|
16940
16933
|
const t = Zh(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
|
|
16941
16934
|
return Math.max(r, 18);
|
|
16942
16935
|
}
|
|
16943
|
-
function
|
|
16936
|
+
function tk(e, t, n, r = "ltr") {
|
|
16944
16937
|
const o = Fs(n), s = o / 2, i = t || s, a = o - i, c = n.scrollbar.paddingStart + i, l = n.scrollbar.size - n.scrollbar.paddingEnd - a, u = n.content - n.viewport, f = r === "ltr" ? [0, u] : [u * -1, 0];
|
|
16945
16938
|
return Qh([c, l], f)(e);
|
|
16946
16939
|
}
|
|
16947
16940
|
function Cc(e, t, n = "ltr") {
|
|
16948
|
-
const r = Fs(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, c = n === "ltr" ? [0, i] : [i * -1, 0], l =
|
|
16941
|
+
const r = Fs(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, i = t.content - t.viewport, a = s - r, c = n === "ltr" ? [0, i] : [i * -1, 0], l = VC(e, c);
|
|
16949
16942
|
return Qh([0, i], [0, a])(l);
|
|
16950
16943
|
}
|
|
16951
16944
|
function Qh(e, t) {
|
|
@@ -16958,7 +16951,7 @@ function Qh(e, t) {
|
|
|
16958
16951
|
function ep(e, t) {
|
|
16959
16952
|
return e > 0 && e < t;
|
|
16960
16953
|
}
|
|
16961
|
-
var
|
|
16954
|
+
var nk = (e, t = () => {
|
|
16962
16955
|
}) => {
|
|
16963
16956
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
16964
16957
|
return function o() {
|
|
@@ -16986,7 +16979,7 @@ function Sr(e, t) {
|
|
|
16986
16979
|
}
|
|
16987
16980
|
}, [e, n]);
|
|
16988
16981
|
}
|
|
16989
|
-
var tp = Wh,
|
|
16982
|
+
var tp = Wh, rk = Kh, ok = Jh;
|
|
16990
16983
|
const np = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d.jsxs(
|
|
16991
16984
|
tp,
|
|
16992
16985
|
{
|
|
@@ -16994,9 +16987,9 @@ const np = b.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
16994
16987
|
className: le("relative overflow-hidden", e),
|
|
16995
16988
|
...n,
|
|
16996
16989
|
children: [
|
|
16997
|
-
/* @__PURE__ */ d.jsx(
|
|
16990
|
+
/* @__PURE__ */ d.jsx(rk, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
|
|
16998
16991
|
/* @__PURE__ */ d.jsx(rp, {}),
|
|
16999
|
-
/* @__PURE__ */ d.jsx(
|
|
16992
|
+
/* @__PURE__ */ d.jsx(ok, {})
|
|
17000
16993
|
]
|
|
17001
16994
|
}
|
|
17002
16995
|
));
|
|
@@ -17116,7 +17109,7 @@ function mi({
|
|
|
17116
17109
|
}
|
|
17117
17110
|
);
|
|
17118
17111
|
}
|
|
17119
|
-
var Bs = "Collapsible", [
|
|
17112
|
+
var Bs = "Collapsible", [sk, Xk] = Bn(Bs), [ik, Ha] = sk(Bs), op = b.forwardRef(
|
|
17120
17113
|
(e, t) => {
|
|
17121
17114
|
const {
|
|
17122
17115
|
__scopeCollapsible: n,
|
|
@@ -17132,7 +17125,7 @@ var Bs = "Collapsible", [ik, Jk] = Bn(Bs), [ak, Ha] = ik(Bs), op = b.forwardRef(
|
|
|
17132
17125
|
caller: Bs
|
|
17133
17126
|
});
|
|
17134
17127
|
return /* @__PURE__ */ d.jsx(
|
|
17135
|
-
|
|
17128
|
+
ik,
|
|
17136
17129
|
{
|
|
17137
17130
|
scope: n,
|
|
17138
17131
|
disabled: s,
|
|
@@ -17176,11 +17169,11 @@ ip.displayName = sp;
|
|
|
17176
17169
|
var Ua = "CollapsibleContent", ap = b.forwardRef(
|
|
17177
17170
|
(e, t) => {
|
|
17178
17171
|
const { forceMount: n, ...r } = e, o = Ha(Ua, e.__scopeCollapsible);
|
|
17179
|
-
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ d.jsx(
|
|
17172
|
+
return /* @__PURE__ */ d.jsx(Xt, { present: n || o.open, children: ({ present: s }) => /* @__PURE__ */ d.jsx(ak, { ...r, ref: t, present: s }) });
|
|
17180
17173
|
}
|
|
17181
17174
|
);
|
|
17182
17175
|
ap.displayName = Ua;
|
|
17183
|
-
var
|
|
17176
|
+
var ak = b.forwardRef((e, t) => {
|
|
17184
17177
|
const { __scopeCollapsible: n, present: r, children: o, ...s } = e, i = Ha(Ua, n), [a, c] = b.useState(r), l = b.useRef(null), u = st(t, l), f = b.useRef(0), h = f.current, p = b.useRef(0), m = p.current, g = i.open || a, x = b.useRef(g), y = b.useRef(void 0);
|
|
17185
17178
|
return b.useEffect(() => {
|
|
17186
17179
|
const w = requestAnimationFrame(() => x.current = !1);
|
|
@@ -17216,22 +17209,22 @@ var lk = b.forwardRef((e, t) => {
|
|
|
17216
17209
|
function Wa(e) {
|
|
17217
17210
|
return e ? "open" : "closed";
|
|
17218
17211
|
}
|
|
17219
|
-
var
|
|
17220
|
-
const Ao =
|
|
17212
|
+
var lk = op;
|
|
17213
|
+
const Ao = lk, No = ip, jo = ap, kc = 25, lp = Kn.threadManagerView, ck = (e) => e === "default" || e === "shared", uk = () => {
|
|
17221
17214
|
if (typeof window > "u")
|
|
17222
17215
|
return null;
|
|
17223
17216
|
try {
|
|
17224
17217
|
const e = window.localStorage.getItem(lp);
|
|
17225
|
-
if (
|
|
17218
|
+
if (ck(e))
|
|
17226
17219
|
return e;
|
|
17227
17220
|
} catch {
|
|
17228
17221
|
}
|
|
17229
17222
|
return null;
|
|
17230
17223
|
};
|
|
17231
|
-
function
|
|
17224
|
+
function dk({
|
|
17232
17225
|
defaultView: e
|
|
17233
17226
|
} = {}) {
|
|
17234
|
-
const [t, n] = ue(() =>
|
|
17227
|
+
const [t, n] = ue(() => uk() ?? e ?? "default");
|
|
17235
17228
|
Pe(() => {
|
|
17236
17229
|
if (!(typeof window > "u"))
|
|
17237
17230
|
try {
|
|
@@ -17244,7 +17237,7 @@ function fk({
|
|
|
17244
17237
|
}, []);
|
|
17245
17238
|
return { view: t, setView: r };
|
|
17246
17239
|
}
|
|
17247
|
-
const
|
|
17240
|
+
const fk = [
|
|
17248
17241
|
{ key: "default", label: "My chats" },
|
|
17249
17242
|
{ key: "shared", label: "Shared with you" }
|
|
17250
17243
|
];
|
|
@@ -17303,7 +17296,7 @@ function Fi({
|
|
|
17303
17296
|
}
|
|
17304
17297
|
})();
|
|
17305
17298
|
}, [xe, y, xt.length, Ue, v]);
|
|
17306
|
-
const it = y ?? xt, Ye = w ?? Ue, mt = m && m.length > 0 ? m :
|
|
17299
|
+
const it = y ?? xt, Ye = w ?? Ue, mt = m && m.length > 0 ? m : fk, wt = dk({ defaultView: h }), Ve = g ?? wt, lt = f ?? Ve.view, nn = ne(
|
|
17307
17300
|
(J) => {
|
|
17308
17301
|
f || Ve.setView(J), p == null || p(J);
|
|
17309
17302
|
},
|
|
@@ -17649,7 +17642,7 @@ function Fi({
|
|
|
17649
17642
|
] }) })
|
|
17650
17643
|
] });
|
|
17651
17644
|
}
|
|
17652
|
-
function
|
|
17645
|
+
function Jk({
|
|
17653
17646
|
layout: e = "sidebar",
|
|
17654
17647
|
layoutSize: t = "desktop",
|
|
17655
17648
|
showThreads: n = !0,
|
|
@@ -17724,7 +17717,7 @@ function Zk({
|
|
|
17724
17717
|
}
|
|
17725
17718
|
) });
|
|
17726
17719
|
}
|
|
17727
|
-
function
|
|
17720
|
+
function hk({ placeholder: e, onMessageSent: t }) {
|
|
17728
17721
|
const [n, r] = ue("chat");
|
|
17729
17722
|
return /* @__PURE__ */ d.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
17730
17723
|
/* @__PURE__ */ d.jsxs("div", { className: "flex border-b border-gray-200 bg-gray-50", children: [
|
|
@@ -17768,7 +17761,7 @@ function pk({ placeholder: e, onMessageSent: t }) {
|
|
|
17768
17761
|
) })
|
|
17769
17762
|
] });
|
|
17770
17763
|
}
|
|
17771
|
-
function
|
|
17764
|
+
function Zk({
|
|
17772
17765
|
className: e = "",
|
|
17773
17766
|
placeholder: t,
|
|
17774
17767
|
isAuthenticated: n = !0,
|
|
@@ -17835,14 +17828,14 @@ function Qk({
|
|
|
17835
17828
|
)
|
|
17836
17829
|
] })
|
|
17837
17830
|
] }) }),
|
|
17838
|
-
!a && /* @__PURE__ */ d.jsx("div", { className: "h-96 flex flex-col", children: /* @__PURE__ */ d.jsx(
|
|
17831
|
+
!a && /* @__PURE__ */ d.jsx("div", { className: "h-96 flex flex-col", children: /* @__PURE__ */ d.jsx(hk, { placeholder: t, onMessageSent: r }) })
|
|
17839
17832
|
]
|
|
17840
17833
|
}
|
|
17841
17834
|
)
|
|
17842
17835
|
}
|
|
17843
17836
|
) }) : null;
|
|
17844
17837
|
}
|
|
17845
|
-
function
|
|
17838
|
+
function Qk({
|
|
17846
17839
|
label: e = "New chat",
|
|
17847
17840
|
children: t,
|
|
17848
17841
|
className: n,
|
|
@@ -17876,7 +17869,7 @@ function Tc({
|
|
|
17876
17869
|
artifactOverride: s = null,
|
|
17877
17870
|
contentOverride: i = null
|
|
17878
17871
|
}) {
|
|
17879
|
-
const { toolRenderers: a, toolArtifactRenderers: c } = r ?? {}, l = Wi(e), u = s ?? e.artifact ?? null, f = Array.isArray(i) ? i : e.content, h =
|
|
17872
|
+
const { toolRenderers: a, toolArtifactRenderers: c } = r ?? {}, l = Wi(e), u = s ?? e.artifact ?? null, f = Array.isArray(i) ? i : e.content, h = mv(e), m = (h ? Yg(h) : null) ?? h, g = f.find((P) => P.type !== "tool_call"), x = (P) => {
|
|
17880
17873
|
if (P == null) return null;
|
|
17881
17874
|
const G = typeof P == "string" ? P : (() => {
|
|
17882
17875
|
try {
|
|
@@ -17935,7 +17928,7 @@ function Tc({
|
|
|
17935
17928
|
}) : null, q = A ?? v, W = D ? H : null;
|
|
17936
17929
|
return /* @__PURE__ */ d.jsxs("div", { className: "space-y-2", children: [
|
|
17937
17930
|
n && /* @__PURE__ */ d.jsx(
|
|
17938
|
-
|
|
17931
|
+
Rw,
|
|
17939
17932
|
{
|
|
17940
17933
|
artifact: u,
|
|
17941
17934
|
showPartialData: !1
|
|
@@ -17945,7 +17938,7 @@ function Tc({
|
|
|
17945
17938
|
T ? q : null
|
|
17946
17939
|
] });
|
|
17947
17940
|
}
|
|
17948
|
-
function
|
|
17941
|
+
function eT({
|
|
17949
17942
|
submit: e,
|
|
17950
17943
|
chatRequest: t,
|
|
17951
17944
|
lastCheckpointId: n,
|
|
@@ -18114,52 +18107,52 @@ function tT({
|
|
|
18114
18107
|
export {
|
|
18115
18108
|
vg as ApiProvider,
|
|
18116
18109
|
mg as ChatApi,
|
|
18117
|
-
|
|
18110
|
+
Jk as ChatApp,
|
|
18118
18111
|
Yo as ChatContainer,
|
|
18119
|
-
|
|
18120
|
-
|
|
18121
|
-
|
|
18112
|
+
gC as ChatInput,
|
|
18113
|
+
yC as ChatInputArea,
|
|
18114
|
+
yC as ChatInputRow,
|
|
18122
18115
|
Yo as ChatInterface,
|
|
18123
18116
|
of as ChatMessagesArea,
|
|
18124
18117
|
Fo as ChatProviders,
|
|
18125
|
-
|
|
18126
|
-
|
|
18118
|
+
Zk as ChatWidget,
|
|
18119
|
+
gC as Composer,
|
|
18127
18120
|
fg as DEFAULT_TIMEOUT_MS,
|
|
18128
18121
|
gg as FileApi,
|
|
18129
18122
|
hg as HISTORY_TIMEOUT_MS,
|
|
18130
18123
|
Vo as MarkdownContent,
|
|
18131
18124
|
tf as MessageComponent,
|
|
18132
|
-
|
|
18125
|
+
Zw as MessageContent,
|
|
18133
18126
|
of as MessageList,
|
|
18134
18127
|
rf as MessageRow,
|
|
18135
|
-
|
|
18128
|
+
Qk as NewChatButton,
|
|
18136
18129
|
Tu as SETTINGS_STORAGE_KEY,
|
|
18137
18130
|
Kn as STORAGE_KEYS,
|
|
18138
18131
|
Fi as ThreadManager,
|
|
18139
|
-
|
|
18132
|
+
mx as ThreadStateProvider,
|
|
18140
18133
|
Hg as ThreadsProvider,
|
|
18141
18134
|
Tc as ToolContent,
|
|
18142
|
-
|
|
18135
|
+
Wk as applySettings,
|
|
18143
18136
|
Jn as chatApiClient,
|
|
18144
|
-
|
|
18145
|
-
|
|
18137
|
+
Sk as cn,
|
|
18138
|
+
Hk as createTaskSyncToolEndHandler,
|
|
18146
18139
|
ul as del,
|
|
18147
18140
|
Gs as draftKey,
|
|
18148
|
-
|
|
18141
|
+
Cx as extractTaskIdFromToolEnd,
|
|
18149
18142
|
wr as extractToolContent,
|
|
18150
18143
|
lu as fileApiClient,
|
|
18151
18144
|
Sg as fileToBase64,
|
|
18152
|
-
|
|
18145
|
+
zk as formatToolOutput,
|
|
18153
18146
|
Wt as get,
|
|
18154
18147
|
iu as getChatToken,
|
|
18155
|
-
|
|
18156
|
-
|
|
18157
|
-
|
|
18148
|
+
Uk as getCurrentSettings,
|
|
18149
|
+
kx as getDefaultApiConfig,
|
|
18150
|
+
Tx as getDefaultChatSettings,
|
|
18158
18151
|
nf as getMessageDomKey,
|
|
18159
18152
|
$t as httpClient,
|
|
18160
18153
|
Lg as isEnvelope,
|
|
18161
18154
|
pu as isFileLike,
|
|
18162
|
-
|
|
18155
|
+
Ix as loadStoredSettings,
|
|
18163
18156
|
Rg as looksLikeMarkdown,
|
|
18164
18157
|
Yg as normalizeToolPayload,
|
|
18165
18158
|
Hr as normalizeToolPayloadValue,
|
|
@@ -18170,19 +18163,19 @@ export {
|
|
|
18170
18163
|
Cg as processAttachments,
|
|
18171
18164
|
pg as put,
|
|
18172
18165
|
Qo as sanitizeForDisplay,
|
|
18173
|
-
|
|
18166
|
+
Rx as saveSettings,
|
|
18174
18167
|
qn as setChatToken,
|
|
18175
18168
|
Vg as stringifyTool,
|
|
18176
18169
|
Lt as unwrap,
|
|
18177
18170
|
Rr as useApi,
|
|
18178
|
-
|
|
18179
|
-
|
|
18180
|
-
|
|
18171
|
+
eT as useChatController,
|
|
18172
|
+
Bk as useHasChatSession,
|
|
18173
|
+
Sx as useShallowStableValue,
|
|
18181
18174
|
vu as useStream,
|
|
18182
|
-
|
|
18183
|
-
|
|
18175
|
+
hx as useThreadHistoryState,
|
|
18176
|
+
dk as useThreadManagerViewState,
|
|
18184
18177
|
vs as useThreadState,
|
|
18185
|
-
|
|
18178
|
+
px as useThreadStateUpdater,
|
|
18186
18179
|
co as useThreads,
|
|
18187
18180
|
Bg as useThreadsState
|
|
18188
18181
|
};
|