@versini/sassysaint 6.1.0 → 6.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.CVKf39VG.js → App.Bfct7pp0.js} +350 -332
- package/dist/chunks/{HeaderToolbar.VQAMrnVQ.js → HeaderToolbar.jkVrqvu1.js} +348 -322
- package/dist/chunks/{MarkdownWithExtra.CEPqANDe.js → MarkdownWithExtra.VYhMFZ4I.js} +2 -2
- package/dist/chunks/{MessageAssistant.DZZ26s7B.js → MessageAssistant.DbPbEIeG.js} +3 -3
- package/dist/chunks/{index.DUNIGQ5_.js → index.BiXPTxMY.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as E, Fragment as ke } from "react/jsx-runtime";
|
|
2
|
-
import { g as ye, ACTION_RESTORE as hn, ACTION_MESSAGE as
|
|
2
|
+
import { g as ye, ACTION_RESTORE as hn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as pn, ACTION_SEARCH as bn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as yn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as kn, PROMPT_EDITABLE_AREA_CLASSNAME as xn, ROLE_SYSTEM as wn, ROLE_INTERNAL as Qt, ROLE_HIDDEN as _n, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as En, ERROR_MESSAGE as Tn, ROLE_USER as $t, FOOTER_DISCLAIMER as Sn, isLastMessageFromRole as Nn, getMessageContaintWrapperClass as Cn, Logo as Rn, getMainPaddingClass as Or, r as In, LOCAL_STORAGE_SEARCH as Ln, LOCAL_STORAGE_SORT as On } from "./index.BiXPTxMY.js";
|
|
3
3
|
import f from "clsx";
|
|
4
4
|
import * as G from "react";
|
|
5
5
|
import V, { useRef as A, useState as Z, useCallback as re, useSyncExternalStore as An, useEffect as M, useMemo as ma, useId as er, useContext as z, createContext as $n, useLayoutEffect as Bn, useDebugValue as Mn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
|
|
@@ -253,7 +253,7 @@ function ro(e) {
|
|
|
253
253
|
};
|
|
254
254
|
}
|
|
255
255
|
function ao(e, t) {
|
|
256
|
-
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey:
|
|
256
|
+
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
|
|
257
257
|
if (r !== c)
|
|
258
258
|
return !1;
|
|
259
259
|
if (o) {
|
|
@@ -261,7 +261,7 @@ function ao(e, t) {
|
|
|
261
261
|
return !1;
|
|
262
262
|
} else if (a !== d || n !== h)
|
|
263
263
|
return !1;
|
|
264
|
-
return i !==
|
|
264
|
+
return i !== u ? !1 : !!(s && (m.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
|
|
265
265
|
}
|
|
266
266
|
function no(e) {
|
|
267
267
|
return (t) => ao(ro(e), t);
|
|
@@ -364,7 +364,7 @@ try {
|
|
|
364
364
|
});
|
|
365
365
|
} catch {
|
|
366
366
|
}
|
|
367
|
-
const it = "thead", rr = "tfoot", Ee = "tbody",
|
|
367
|
+
const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
|
|
368
368
|
ASC: "asc",
|
|
369
369
|
DESC: "desc"
|
|
370
370
|
}, go = ({
|
|
@@ -712,20 +712,20 @@ const it = "thead", rr = "tfoot", Ee = "tbody", $e = {
|
|
|
712
712
|
noBorder: c,
|
|
713
713
|
labelRight: d,
|
|
714
714
|
labelLeft: h,
|
|
715
|
-
noBackground:
|
|
716
|
-
variant:
|
|
715
|
+
noBackground: u,
|
|
716
|
+
variant: m,
|
|
717
717
|
noTruncate: g,
|
|
718
718
|
align: p,
|
|
719
719
|
radius: b
|
|
720
|
-
}) => (
|
|
720
|
+
}) => (m || (m = "primary"), r ? f(Vr, t) : f(
|
|
721
721
|
Vr,
|
|
722
722
|
xo({
|
|
723
723
|
mode: a,
|
|
724
|
-
variant:
|
|
725
|
-
noBackground:
|
|
724
|
+
variant: m,
|
|
725
|
+
noBackground: u,
|
|
726
726
|
noTruncate: g
|
|
727
727
|
}),
|
|
728
|
-
wo({ mode: a, noBackground:
|
|
728
|
+
wo({ mode: a, noBackground: u, variant: m }),
|
|
729
729
|
_o({ radius: b }),
|
|
730
730
|
vo({
|
|
731
731
|
type: e,
|
|
@@ -735,10 +735,10 @@ const it = "thead", rr = "tfoot", Ee = "tbody", $e = {
|
|
|
735
735
|
align: p
|
|
736
736
|
}),
|
|
737
737
|
ko({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
738
|
-
So({ mode: a, variant:
|
|
738
|
+
So({ mode: a, variant: m, noBorder: c }),
|
|
739
739
|
No({ focusMode: n }),
|
|
740
|
-
Eo({ mode: a, variant:
|
|
741
|
-
To({ mode: a, variant:
|
|
740
|
+
Eo({ mode: a, variant: m, disabled: o }),
|
|
741
|
+
To({ mode: a, variant: m, disabled: o }),
|
|
742
742
|
{
|
|
743
743
|
"w-full": i,
|
|
744
744
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -787,8 +787,8 @@ const Na = V.forwardRef(
|
|
|
787
787
|
noBorder: c = !1,
|
|
788
788
|
"aria-label": d,
|
|
789
789
|
label: h,
|
|
790
|
-
size:
|
|
791
|
-
labelRight:
|
|
790
|
+
size: u = "medium",
|
|
791
|
+
labelRight: m,
|
|
792
792
|
labelLeft: g,
|
|
793
793
|
noBackground: p = !1,
|
|
794
794
|
align: b = "center",
|
|
@@ -805,8 +805,8 @@ const Na = V.forwardRef(
|
|
|
805
805
|
raw: s,
|
|
806
806
|
className: o,
|
|
807
807
|
noBorder: c,
|
|
808
|
-
size:
|
|
809
|
-
labelRight:
|
|
808
|
+
size: u,
|
|
809
|
+
labelRight: m,
|
|
810
810
|
labelLeft: g,
|
|
811
811
|
noBackground: p,
|
|
812
812
|
align: b,
|
|
@@ -845,7 +845,7 @@ const Na = V.forwardRef(
|
|
|
845
845
|
children: [
|
|
846
846
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
847
847
|
/* @__PURE__ */ l("div", { className: x, children: e }),
|
|
848
|
-
|
|
848
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
849
849
|
]
|
|
850
850
|
}
|
|
851
851
|
) });
|
|
@@ -987,7 +987,7 @@ try {
|
|
|
987
987
|
});
|
|
988
988
|
} catch {
|
|
989
989
|
}
|
|
990
|
-
const
|
|
990
|
+
const Le = V.createContext({
|
|
991
991
|
mode: "light",
|
|
992
992
|
cellWrapper: "thead",
|
|
993
993
|
stickyHeader: !1,
|
|
@@ -1006,7 +1006,7 @@ const Ie = V.createContext({
|
|
|
1006
1006
|
stickyFooter: d,
|
|
1007
1007
|
...h
|
|
1008
1008
|
}) => {
|
|
1009
|
-
const
|
|
1009
|
+
const u = go({
|
|
1010
1010
|
mode: t,
|
|
1011
1011
|
className: o,
|
|
1012
1012
|
wrapperClassName: i,
|
|
@@ -1014,18 +1014,18 @@ const Ie = V.createContext({
|
|
|
1014
1014
|
stickyFooter: d
|
|
1015
1015
|
});
|
|
1016
1016
|
return /* @__PURE__ */ l(
|
|
1017
|
-
|
|
1017
|
+
Le.Provider,
|
|
1018
1018
|
{
|
|
1019
1019
|
value: { mode: t, stickyHeader: c, stickyFooter: d, compact: a },
|
|
1020
1020
|
children: /* @__PURE__ */ l(
|
|
1021
1021
|
"div",
|
|
1022
1022
|
{
|
|
1023
|
-
className:
|
|
1023
|
+
className: u.wrapper,
|
|
1024
1024
|
...s && {
|
|
1025
1025
|
style: { maxHeight: s }
|
|
1026
1026
|
},
|
|
1027
|
-
children: /* @__PURE__ */ E("table", { className:
|
|
1028
|
-
r && /* @__PURE__ */ l("caption", { className:
|
|
1027
|
+
children: /* @__PURE__ */ E("table", { className: u.table, summary: n, ...h, children: [
|
|
1028
|
+
r && /* @__PURE__ */ l("caption", { className: u.caption, children: r }),
|
|
1029
1029
|
e
|
|
1030
1030
|
] })
|
|
1031
1031
|
}
|
|
@@ -1037,7 +1037,7 @@ const Ie = V.createContext({
|
|
|
1037
1037
|
className: t,
|
|
1038
1038
|
...r
|
|
1039
1039
|
}) => {
|
|
1040
|
-
const a = z(
|
|
1040
|
+
const a = z(Le);
|
|
1041
1041
|
a.cellWrapper = it;
|
|
1042
1042
|
const n = fo({
|
|
1043
1043
|
className: t,
|
|
@@ -1050,7 +1050,7 @@ const Ie = V.createContext({
|
|
|
1050
1050
|
className: t,
|
|
1051
1051
|
...r
|
|
1052
1052
|
}) => {
|
|
1053
|
-
const a = z(
|
|
1053
|
+
const a = z(Le);
|
|
1054
1054
|
a.cellWrapper = rr;
|
|
1055
1055
|
const n = ho({
|
|
1056
1056
|
className: t,
|
|
@@ -1059,14 +1059,14 @@ const Ie = V.createContext({
|
|
|
1059
1059
|
});
|
|
1060
1060
|
return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
|
|
1061
1061
|
}, Yl = ({ children: e, ...t }) => {
|
|
1062
|
-
const r = z(
|
|
1062
|
+
const r = z(Le);
|
|
1063
1063
|
return r.cellWrapper = Ee, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
1064
1064
|
}, Jl = ({
|
|
1065
1065
|
children: e,
|
|
1066
1066
|
className: t,
|
|
1067
1067
|
...r
|
|
1068
1068
|
}) => {
|
|
1069
|
-
const a = z(
|
|
1069
|
+
const a = z(Le), n = po({
|
|
1070
1070
|
mode: a.mode,
|
|
1071
1071
|
cellWrapper: a.cellWrapper,
|
|
1072
1072
|
className: t
|
|
@@ -1079,7 +1079,7 @@ const Ie = V.createContext({
|
|
|
1079
1079
|
align: a,
|
|
1080
1080
|
...n
|
|
1081
1081
|
}) => {
|
|
1082
|
-
const o = z(
|
|
1082
|
+
const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = bo({
|
|
1083
1083
|
cellWrapper: o.cellWrapper,
|
|
1084
1084
|
className: r,
|
|
1085
1085
|
mode: o.mode,
|
|
@@ -1099,22 +1099,22 @@ const Ie = V.createContext({
|
|
|
1099
1099
|
sortDirection: c,
|
|
1100
1100
|
sortedCell: d,
|
|
1101
1101
|
cellId: h,
|
|
1102
|
-
...
|
|
1102
|
+
...u
|
|
1103
1103
|
}) => {
|
|
1104
|
-
const
|
|
1104
|
+
const m = yo({ buttonClassName: r });
|
|
1105
1105
|
return /* @__PURE__ */ l(
|
|
1106
1106
|
Ao,
|
|
1107
1107
|
{
|
|
1108
1108
|
component: n,
|
|
1109
1109
|
className: a,
|
|
1110
1110
|
role: "columnheader",
|
|
1111
|
-
"aria-sort": c ===
|
|
1112
|
-
...
|
|
1111
|
+
"aria-sort": c === Be.ASC && d === h ? "ascending" : c === Be.DESC && d === h ? "descending" : "other",
|
|
1112
|
+
...u,
|
|
1113
1113
|
children: /* @__PURE__ */ l(
|
|
1114
1114
|
Na,
|
|
1115
1115
|
{
|
|
1116
1116
|
active: d === h,
|
|
1117
|
-
className:
|
|
1117
|
+
className: m,
|
|
1118
1118
|
onClick: s,
|
|
1119
1119
|
align: e,
|
|
1120
1120
|
noBorder: !0,
|
|
@@ -1122,7 +1122,7 @@ const Ie = V.createContext({
|
|
|
1122
1122
|
mode: i,
|
|
1123
1123
|
fullWidth: !0,
|
|
1124
1124
|
labelRight: t,
|
|
1125
|
-
children: c ===
|
|
1125
|
+
children: c === Be.ASC && d === h ? /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Lo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Io, { className: "size-4", monotone: !0 })
|
|
1126
1126
|
}
|
|
1127
1127
|
)
|
|
1128
1128
|
}
|
|
@@ -1177,7 +1177,7 @@ const Po = (e, t) => {
|
|
|
1177
1177
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
if ((t == null ? void 0 : t.type) ===
|
|
1180
|
+
if ((t == null ? void 0 : t.type) === Ve) {
|
|
1181
1181
|
const n = t.payload.message.role, o = t.payload.message.content, i = t.payload.message.name, s = t.payload.message.processingTime, c = t.payload.message.messageId;
|
|
1182
1182
|
if (n !== "") {
|
|
1183
1183
|
const d = {
|
|
@@ -1187,26 +1187,26 @@ const Po = (e, t) => {
|
|
|
1187
1187
|
processingTime: s,
|
|
1188
1188
|
messageId: c
|
|
1189
1189
|
};
|
|
1190
|
-
if (n ===
|
|
1190
|
+
if (n === Pe) {
|
|
1191
1191
|
const h = e.messages.findIndex(
|
|
1192
|
-
(
|
|
1192
|
+
(u) => u.message.messageId === c
|
|
1193
1193
|
);
|
|
1194
1194
|
if (h !== -1) {
|
|
1195
|
-
const
|
|
1195
|
+
const u = e.messages.map((m, g) => g === h ? {
|
|
1196
1196
|
message: {
|
|
1197
|
-
...
|
|
1198
|
-
content: `${
|
|
1197
|
+
...m.message,
|
|
1198
|
+
content: `${m.message.content}${o}`,
|
|
1199
1199
|
processingTime: s,
|
|
1200
1200
|
name: i
|
|
1201
1201
|
}
|
|
1202
|
-
} :
|
|
1202
|
+
} : m);
|
|
1203
1203
|
return {
|
|
1204
1204
|
...e,
|
|
1205
1205
|
id: e.id,
|
|
1206
1206
|
model: e.model,
|
|
1207
1207
|
usage: e.usage,
|
|
1208
1208
|
isComponent: e.isComponent,
|
|
1209
|
-
messages:
|
|
1209
|
+
messages: u,
|
|
1210
1210
|
engine: e.engine,
|
|
1211
1211
|
prompts: e.prompts,
|
|
1212
1212
|
streaming: e.streaming,
|
|
@@ -1233,13 +1233,14 @@ const Po = (e, t) => {
|
|
|
1233
1233
|
};
|
|
1234
1234
|
}
|
|
1235
1235
|
}
|
|
1236
|
-
if ((t == null ? void 0 : t.type) ===
|
|
1237
|
-
|
|
1236
|
+
if ((t == null ? void 0 : t.type) === Ie) {
|
|
1237
|
+
let n = !1;
|
|
1238
|
+
return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.private) == "boolean" ? n = t.payload.private : typeof e.private == "boolean" && (n = e.private), {
|
|
1238
1239
|
...e,
|
|
1239
1240
|
id: or(),
|
|
1240
1241
|
model: e.model,
|
|
1241
|
-
engine: ((
|
|
1242
|
-
private:
|
|
1242
|
+
engine: ((a = t == null ? void 0 : t.payload) == null ? void 0 : a.engine) || e.engine,
|
|
1243
|
+
private: n,
|
|
1243
1244
|
usage: 0,
|
|
1244
1245
|
messages: [],
|
|
1245
1246
|
isComponent: e.isComponent,
|
|
@@ -1247,6 +1248,7 @@ const Po = (e, t) => {
|
|
|
1247
1248
|
streaming: e.streaming,
|
|
1248
1249
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
|
1249
1250
|
};
|
|
1251
|
+
}
|
|
1250
1252
|
if ((t == null ? void 0 : t.type) === la)
|
|
1251
1253
|
return {
|
|
1252
1254
|
...e,
|
|
@@ -1317,38 +1319,38 @@ function Uo() {
|
|
|
1317
1319
|
if (Dr) return Et;
|
|
1318
1320
|
Dr = 1;
|
|
1319
1321
|
var e = V;
|
|
1320
|
-
function t(
|
|
1321
|
-
return
|
|
1322
|
+
function t(u, m) {
|
|
1323
|
+
return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
|
|
1322
1324
|
}
|
|
1323
1325
|
var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
|
|
1324
|
-
function s(
|
|
1325
|
-
var g =
|
|
1326
|
+
function s(u, m) {
|
|
1327
|
+
var g = m(), p = a({ inst: { value: g, getSnapshot: m } }), b = p[0].inst, v = p[1];
|
|
1326
1328
|
return o(
|
|
1327
1329
|
function() {
|
|
1328
|
-
b.value = g, b.getSnapshot =
|
|
1330
|
+
b.value = g, b.getSnapshot = m, c(b) && v({ inst: b });
|
|
1329
1331
|
},
|
|
1330
|
-
[
|
|
1332
|
+
[u, g, m]
|
|
1331
1333
|
), n(
|
|
1332
1334
|
function() {
|
|
1333
|
-
return c(b) && v({ inst: b }),
|
|
1335
|
+
return c(b) && v({ inst: b }), u(function() {
|
|
1334
1336
|
c(b) && v({ inst: b });
|
|
1335
1337
|
});
|
|
1336
1338
|
},
|
|
1337
|
-
[
|
|
1339
|
+
[u]
|
|
1338
1340
|
), i(g), g;
|
|
1339
1341
|
}
|
|
1340
|
-
function c(
|
|
1341
|
-
var
|
|
1342
|
-
|
|
1342
|
+
function c(u) {
|
|
1343
|
+
var m = u.getSnapshot;
|
|
1344
|
+
u = u.value;
|
|
1343
1345
|
try {
|
|
1344
|
-
var g =
|
|
1345
|
-
return !r(
|
|
1346
|
+
var g = m();
|
|
1347
|
+
return !r(u, g);
|
|
1346
1348
|
} catch {
|
|
1347
1349
|
return !0;
|
|
1348
1350
|
}
|
|
1349
1351
|
}
|
|
1350
|
-
function d(
|
|
1351
|
-
return
|
|
1352
|
+
function d(u, m) {
|
|
1353
|
+
return m();
|
|
1352
1354
|
}
|
|
1353
1355
|
var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : s;
|
|
1354
1356
|
return Et.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, Et;
|
|
@@ -1374,11 +1376,11 @@ function Ho() {
|
|
|
1374
1376
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1375
1377
|
));
|
|
1376
1378
|
var b = p();
|
|
1377
|
-
if (!
|
|
1379
|
+
if (!u) {
|
|
1378
1380
|
var v = p();
|
|
1379
1381
|
o(b, v) || (console.error(
|
|
1380
1382
|
"The result of getSnapshot should be cached to avoid an infinite loop"
|
|
1381
|
-
),
|
|
1383
|
+
), u = !0);
|
|
1382
1384
|
}
|
|
1383
1385
|
v = i({
|
|
1384
1386
|
inst: { value: b, getSnapshot: p }
|
|
@@ -1412,8 +1414,8 @@ function Ho() {
|
|
|
1412
1414
|
return p();
|
|
1413
1415
|
}
|
|
1414
1416
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1415
|
-
var n = V, o = typeof Object.is == "function" ? Object.is : e, i = n.useState, s = n.useEffect, c = n.useLayoutEffect, d = n.useDebugValue, h = !1,
|
|
1416
|
-
Tt.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore :
|
|
1417
|
+
var n = V, o = typeof Object.is == "function" ? Object.is : e, i = n.useState, s = n.useEffect, c = n.useLayoutEffect, d = n.useDebugValue, h = !1, u = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
|
|
1418
|
+
Tt.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1417
1419
|
}()), Tt;
|
|
1418
1420
|
}
|
|
1419
1421
|
var Ur;
|
|
@@ -1493,7 +1495,7 @@ const jo = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
|
|
|
1493
1495
|
}, Xo = {
|
|
1494
1496
|
initFocus: Ko,
|
|
1495
1497
|
initReconnect: Yo
|
|
1496
|
-
}, Fr = !V.useId,
|
|
1498
|
+
}, Fr = !V.useId, De = !st || "Deno" in globalThis, Zo = (e) => Go() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? M : Bn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
|
|
1497
1499
|
"slow-2g",
|
|
1498
1500
|
"2g"
|
|
1499
1501
|
].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => Dt.prototype.toString.call(e) === `[object ${t}]`;
|
|
@@ -1533,7 +1535,7 @@ const Wt = (e) => {
|
|
|
1533
1535
|
};
|
|
1534
1536
|
let ei = 0;
|
|
1535
1537
|
const Gt = () => ++ei, Ia = 0, La = 1, Oa = 2, ti = 3;
|
|
1536
|
-
var
|
|
1538
|
+
var $e = {
|
|
1537
1539
|
__proto__: null,
|
|
1538
1540
|
ERROR_REVALIDATE_EVENT: ti,
|
|
1539
1541
|
FOCUS_EVENT: Ia,
|
|
@@ -1550,21 +1552,21 @@ async function Aa(...e) {
|
|
|
1550
1552
|
let i = o.populateCache;
|
|
1551
1553
|
const s = o.rollbackOnError;
|
|
1552
1554
|
let c = o.optimisticData;
|
|
1553
|
-
const d = (
|
|
1555
|
+
const d = (m) => typeof s == "function" ? s(m) : s !== !1, h = o.throwOnError;
|
|
1554
1556
|
if (se(r)) {
|
|
1555
|
-
const
|
|
1557
|
+
const m = r, g = [], p = t.keys();
|
|
1556
1558
|
for (const b of p)
|
|
1557
1559
|
// Skip the special useSWRInfinite and useSWRSubscription keys.
|
|
1558
|
-
!/^\$(inf|sub)\$/.test(b) &&
|
|
1559
|
-
return Promise.all(g.map(
|
|
1560
|
+
!/^\$(inf|sub)\$/.test(b) && m(t.get(b)._k) && g.push(b);
|
|
1561
|
+
return Promise.all(g.map(u));
|
|
1560
1562
|
}
|
|
1561
|
-
return
|
|
1562
|
-
async function m
|
|
1563
|
-
const [g] = lt(
|
|
1563
|
+
return u(r);
|
|
1564
|
+
async function u(m) {
|
|
1565
|
+
const [g] = lt(m);
|
|
1564
1566
|
if (!g) return;
|
|
1565
1567
|
const [p, b] = Ra(t, g), [v, y, k, w] = ie.get(t), _ = () => {
|
|
1566
1568
|
const $ = v[g];
|
|
1567
|
-
return (se(o.revalidate) ? o.revalidate(p().data,
|
|
1569
|
+
return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], $ && $[0]) ? $[0](Oa).then(() => p().data) : p().data;
|
|
1568
1570
|
};
|
|
1569
1571
|
if (e.length < 3)
|
|
1570
1572
|
return _();
|
|
@@ -1626,15 +1628,15 @@ const Gr = (e, t) => {
|
|
|
1626
1628
|
if (!ie.has(e)) {
|
|
1627
1629
|
const r = pe(Xo, t), a = {}, n = Aa.bind(X, e);
|
|
1628
1630
|
let o = he;
|
|
1629
|
-
const i = {}, s = (h,
|
|
1630
|
-
const
|
|
1631
|
-
return i[h] =
|
|
1632
|
-
}, c = (h,
|
|
1633
|
-
e.set(h,
|
|
1631
|
+
const i = {}, s = (h, u) => {
|
|
1632
|
+
const m = i[h] || [];
|
|
1633
|
+
return i[h] = m, m.push(u), () => m.splice(m.indexOf(u), 1);
|
|
1634
|
+
}, c = (h, u, m) => {
|
|
1635
|
+
e.set(h, u);
|
|
1634
1636
|
const g = i[h];
|
|
1635
1637
|
if (g)
|
|
1636
1638
|
for (const p of g)
|
|
1637
|
-
p(
|
|
1639
|
+
p(u, m);
|
|
1638
1640
|
}, d = () => {
|
|
1639
1641
|
if (!ie.has(e) && (ie.set(e, [
|
|
1640
1642
|
a,
|
|
@@ -1644,10 +1646,10 @@ const Gr = (e, t) => {
|
|
|
1644
1646
|
n,
|
|
1645
1647
|
c,
|
|
1646
1648
|
s
|
|
1647
|
-
]), !
|
|
1648
|
-
const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, Ia))),
|
|
1649
|
+
]), !De)) {
|
|
1650
|
+
const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, Ia))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, La)));
|
|
1649
1651
|
o = () => {
|
|
1650
|
-
h && h(),
|
|
1652
|
+
h && h(), u && u(), ie.delete(e);
|
|
1651
1653
|
};
|
|
1652
1654
|
}
|
|
1653
1655
|
};
|
|
@@ -1724,8 +1726,8 @@ const Gr = (e, t) => {
|
|
|
1724
1726
|
const a = gi(), [n, o, i] = mi(r), s = si(a, i);
|
|
1725
1727
|
let c = e;
|
|
1726
1728
|
const { use: d } = s, h = (d || []).concat(hi);
|
|
1727
|
-
for (let
|
|
1728
|
-
c = h[
|
|
1729
|
+
for (let u = h.length; u--; )
|
|
1730
|
+
c = h[u](c);
|
|
1729
1731
|
return c(n, o || s.fetcher || null, s);
|
|
1730
1732
|
}, bi = (e, t, r) => {
|
|
1731
1733
|
const a = t[e] || (t[e] = []);
|
|
@@ -1757,7 +1759,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1757
1759
|
}), Lt = {
|
|
1758
1760
|
dedupe: !0
|
|
1759
1761
|
}, yi = (e, t, r) => {
|
|
1760
|
-
const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline:
|
|
1762
|
+
const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, $] = Ra(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
|
|
1761
1763
|
for (const q in R) {
|
|
1762
1764
|
const B = q;
|
|
1763
1765
|
if (B === "data") {
|
|
@@ -1769,12 +1771,12 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1769
1771
|
return !0;
|
|
1770
1772
|
}, Y = ma(() => {
|
|
1771
1773
|
const I = !y || !t ? !1 : C(s) ? N().isPaused() || o ? !1 : c !== !1 : s, L = (J) => {
|
|
1772
|
-
const
|
|
1773
|
-
return delete
|
|
1774
|
+
const ue = pe(J);
|
|
1775
|
+
return delete ue._k, I ? {
|
|
1774
1776
|
isValidating: !0,
|
|
1775
1777
|
isLoading: !0,
|
|
1776
|
-
...
|
|
1777
|
-
} :
|
|
1778
|
+
...ue
|
|
1779
|
+
} : ue;
|
|
1778
1780
|
}, q = O(), B = $(), oe = L(q), _e = q === B ? oe : L(B);
|
|
1779
1781
|
let F = oe;
|
|
1780
1782
|
return [
|
|
@@ -1796,17 +1798,17 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1796
1798
|
a,
|
|
1797
1799
|
y
|
|
1798
1800
|
]
|
|
1799
|
-
), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ca(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je =
|
|
1801
|
+
), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ca(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), mn = C(U.isValidating) ? wr : U.isValidating, gn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
|
|
1800
1802
|
async (I) => {
|
|
1801
1803
|
const L = T.current;
|
|
1802
1804
|
if (!y || !L || _.current || N().isPaused())
|
|
1803
1805
|
return !1;
|
|
1804
1806
|
let q, B, oe = !0;
|
|
1805
|
-
const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current,
|
|
1807
|
+
const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current, ue = {
|
|
1806
1808
|
isValidating: !1,
|
|
1807
1809
|
isLoading: !1
|
|
1808
1810
|
}, Er = () => {
|
|
1809
|
-
j(
|
|
1811
|
+
j(ue);
|
|
1810
1812
|
}, Tr = () => {
|
|
1811
1813
|
const te = b[y];
|
|
1812
1814
|
te && te[1] === B && delete b[y];
|
|
@@ -1822,21 +1824,21 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1822
1824
|
Gt()
|
|
1823
1825
|
]), [q, B] = b[y], q = await q, F && setTimeout(Tr, r.dedupingInterval), !b[y] || b[y][1] !== B)
|
|
1824
1826
|
return F && J() && N().onDiscarded(y), !1;
|
|
1825
|
-
|
|
1827
|
+
ue.error = X;
|
|
1826
1828
|
const te = p[y];
|
|
1827
1829
|
if (!C(te) && // case 1
|
|
1828
1830
|
(B <= te[0] || // case 2
|
|
1829
1831
|
B <= te[1] || // case 3
|
|
1830
1832
|
te[1] === 0))
|
|
1831
1833
|
return Er(), F && J() && N().onDiscarded(y), !1;
|
|
1832
|
-
const
|
|
1833
|
-
|
|
1834
|
+
const me = O().data;
|
|
1835
|
+
ue.data = n(me, q) ? me : q, F && J() && N().onSuccess(q, y, r);
|
|
1834
1836
|
} catch (te) {
|
|
1835
1837
|
Tr();
|
|
1836
|
-
const
|
|
1837
|
-
|
|
1838
|
+
const me = N(), { shouldRetryOnError: vt } = me;
|
|
1839
|
+
me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (fn) => {
|
|
1838
1840
|
const kt = g[y];
|
|
1839
|
-
kt && kt[0] && kt[0](
|
|
1841
|
+
kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, fn);
|
|
1840
1842
|
}, {
|
|
1841
1843
|
retryCount: (_e.retryCount || 0) + 1,
|
|
1842
1844
|
dedupe: !0
|
|
@@ -1869,24 +1871,24 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1869
1871
|
T.current = t, S.current = r, C(xe) || (kr.current = xe);
|
|
1870
1872
|
}), Nt(() => {
|
|
1871
1873
|
if (!y) return;
|
|
1872
|
-
const I =
|
|
1874
|
+
const I = Ae.bind(X, Lt);
|
|
1873
1875
|
let L = 0;
|
|
1874
1876
|
const B = bi(y, g, (oe, _e = {}) => {
|
|
1875
|
-
if (oe ==
|
|
1877
|
+
if (oe == $e.FOCUS_EVENT) {
|
|
1876
1878
|
const F = Date.now();
|
|
1877
1879
|
N().revalidateOnFocus && F > L && D() && (L = F + N().focusThrottleInterval, I());
|
|
1878
|
-
} else if (oe ==
|
|
1880
|
+
} else if (oe == $e.RECONNECT_EVENT)
|
|
1879
1881
|
N().revalidateOnReconnect && D() && I();
|
|
1880
1882
|
else {
|
|
1881
|
-
if (oe ==
|
|
1882
|
-
return
|
|
1883
|
-
if (oe ==
|
|
1884
|
-
return
|
|
1883
|
+
if (oe == $e.MUTATE_EVENT)
|
|
1884
|
+
return Ae();
|
|
1885
|
+
if (oe == $e.ERROR_REVALIDATE_EVENT)
|
|
1886
|
+
return Ae(_e);
|
|
1885
1887
|
}
|
|
1886
1888
|
});
|
|
1887
1889
|
return _.current = !1, x.current = y, w.current = !0, j({
|
|
1888
1890
|
_k: k
|
|
1889
|
-
}), xr && (C(we) ||
|
|
1891
|
+
}), xr && (C(we) || De ? I() : Zo(I)), () => {
|
|
1890
1892
|
_.current = !0, B();
|
|
1891
1893
|
};
|
|
1892
1894
|
}, [
|
|
@@ -1898,7 +1900,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1898
1900
|
B && I !== -1 && (I = setTimeout(q, B));
|
|
1899
1901
|
}
|
|
1900
1902
|
function q() {
|
|
1901
|
-
!O().error && (h || N().isVisible()) && (
|
|
1903
|
+
!O().error && (h || N().isVisible()) && (u || N().isOnline()) ? Ae(Lt).then(L) : L();
|
|
1902
1904
|
}
|
|
1903
1905
|
return L(), () => {
|
|
1904
1906
|
I && (clearTimeout(I), I = -1);
|
|
@@ -1906,10 +1908,10 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1906
1908
|
}, [
|
|
1907
1909
|
d,
|
|
1908
1910
|
h,
|
|
1909
|
-
|
|
1911
|
+
u,
|
|
1910
1912
|
y
|
|
1911
1913
|
]), Mn(Je), o && C(we) && y) {
|
|
1912
|
-
if (!Fr &&
|
|
1914
|
+
if (!Fr && De)
|
|
1913
1915
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
1914
1916
|
T.current = t, S.current = r, _.current = !1;
|
|
1915
1917
|
const I = v[y];
|
|
@@ -1918,7 +1920,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1918
1920
|
It(L);
|
|
1919
1921
|
}
|
|
1920
1922
|
if (C(Ye)) {
|
|
1921
|
-
const L =
|
|
1923
|
+
const L = Ae(Lt);
|
|
1922
1924
|
C(Je) || (L.status = "fulfilled", L.value = !0), It(L);
|
|
1923
1925
|
} else
|
|
1924
1926
|
throw Ye;
|
|
@@ -2013,6 +2015,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2013
2015
|
slot
|
|
2014
2016
|
label
|
|
2015
2017
|
content
|
|
2018
|
+
privateChat
|
|
2016
2019
|
}
|
|
2017
2020
|
}
|
|
2018
2021
|
}`,
|
|
@@ -2153,12 +2156,18 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2153
2156
|
}
|
|
2154
2157
|
}), lr = ({
|
|
2155
2158
|
keys: e,
|
|
2156
|
-
getAccessToken: t
|
|
2159
|
+
getAccessToken: t,
|
|
2160
|
+
isPaused: r = !1
|
|
2157
2161
|
}) => ct({
|
|
2158
2162
|
fetcher: wi,
|
|
2159
2163
|
scope: "/preferences",
|
|
2160
2164
|
keys: e,
|
|
2161
|
-
swrOptions: {
|
|
2165
|
+
swrOptions: {
|
|
2166
|
+
keepPreviousData: !0,
|
|
2167
|
+
revalidateIfStale: r,
|
|
2168
|
+
revalidateOnFocus: r,
|
|
2169
|
+
revalidateOnReconnect: r
|
|
2170
|
+
},
|
|
2162
2171
|
getAccessToken: t
|
|
2163
2172
|
}), _i = async ([e, t], r) => dt({
|
|
2164
2173
|
getAccessToken: r,
|
|
@@ -2215,7 +2224,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2215
2224
|
getAccessToken: e
|
|
2216
2225
|
}) => {
|
|
2217
2226
|
Ba(["/capabilities"], (t) => Da(t, e));
|
|
2218
|
-
}, Si = "z-20", Ni = "z-10",
|
|
2227
|
+
}, Si = "z-20", Ni = "z-10", de = V.createContext({
|
|
2219
2228
|
state: {
|
|
2220
2229
|
id: "",
|
|
2221
2230
|
model: Te,
|
|
@@ -2255,7 +2264,7 @@ try {
|
|
|
2255
2264
|
});
|
|
2256
2265
|
} catch {
|
|
2257
2266
|
}
|
|
2258
|
-
const Ri = "av-tooltip", Ii = "av-tooltip-arrow",
|
|
2267
|
+
const Ri = "av-tooltip", Ii = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
|
|
2259
2268
|
x: e,
|
|
2260
2269
|
y: e
|
|
2261
2270
|
}), Li = {
|
|
@@ -2268,7 +2277,7 @@ const Ri = "av-tooltip", Ii = "av-tooltip-arrow", De = Math.min, Se = Math.max,
|
|
|
2268
2277
|
end: "start"
|
|
2269
2278
|
};
|
|
2270
2279
|
function jt(e, t, r) {
|
|
2271
|
-
return Se(e,
|
|
2280
|
+
return Se(e, ze(t, r));
|
|
2272
2281
|
}
|
|
2273
2282
|
function Ge(e, t) {
|
|
2274
2283
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -2365,7 +2374,7 @@ function jr(e, t, r) {
|
|
|
2365
2374
|
reference: a,
|
|
2366
2375
|
floating: n
|
|
2367
2376
|
} = e;
|
|
2368
|
-
const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = a.x + a.width / 2 - n.width / 2,
|
|
2377
|
+
const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, m = a[s] / 2 - n[s] / 2;
|
|
2369
2378
|
let g;
|
|
2370
2379
|
switch (c) {
|
|
2371
2380
|
case "top":
|
|
@@ -2383,13 +2392,13 @@ function jr(e, t, r) {
|
|
|
2383
2392
|
case "right":
|
|
2384
2393
|
g = {
|
|
2385
2394
|
x: a.x + a.width,
|
|
2386
|
-
y:
|
|
2395
|
+
y: u
|
|
2387
2396
|
};
|
|
2388
2397
|
break;
|
|
2389
2398
|
case "left":
|
|
2390
2399
|
g = {
|
|
2391
2400
|
x: a.x - n.width,
|
|
2392
|
-
y:
|
|
2401
|
+
y: u
|
|
2393
2402
|
};
|
|
2394
2403
|
break;
|
|
2395
2404
|
default:
|
|
@@ -2400,10 +2409,10 @@ function jr(e, t, r) {
|
|
|
2400
2409
|
}
|
|
2401
2410
|
switch (je(t)) {
|
|
2402
2411
|
case "start":
|
|
2403
|
-
g[i] -=
|
|
2412
|
+
g[i] -= m * (r && d ? -1 : 1);
|
|
2404
2413
|
break;
|
|
2405
2414
|
case "end":
|
|
2406
|
-
g[i] +=
|
|
2415
|
+
g[i] += m * (r && d ? -1 : 1);
|
|
2407
2416
|
break;
|
|
2408
2417
|
}
|
|
2409
2418
|
return g;
|
|
@@ -2421,8 +2430,8 @@ const Pi = async (e, t, r) => {
|
|
|
2421
2430
|
strategy: n
|
|
2422
2431
|
}), {
|
|
2423
2432
|
x: h,
|
|
2424
|
-
y:
|
|
2425
|
-
} = jr(d, a, c),
|
|
2433
|
+
y: u
|
|
2434
|
+
} = jr(d, a, c), m = a, g = {}, p = 0;
|
|
2426
2435
|
for (let b = 0; b < s.length; b++) {
|
|
2427
2436
|
const {
|
|
2428
2437
|
name: v,
|
|
@@ -2434,9 +2443,9 @@ const Pi = async (e, t, r) => {
|
|
|
2434
2443
|
reset: x
|
|
2435
2444
|
} = await y({
|
|
2436
2445
|
x: h,
|
|
2437
|
-
y:
|
|
2446
|
+
y: u,
|
|
2438
2447
|
initialPlacement: a,
|
|
2439
|
-
placement:
|
|
2448
|
+
placement: m,
|
|
2440
2449
|
strategy: n,
|
|
2441
2450
|
middlewareData: g,
|
|
2442
2451
|
rects: d,
|
|
@@ -2446,25 +2455,25 @@ const Pi = async (e, t, r) => {
|
|
|
2446
2455
|
floating: t
|
|
2447
2456
|
}
|
|
2448
2457
|
});
|
|
2449
|
-
h = k ?? h,
|
|
2458
|
+
h = k ?? h, u = w ?? u, g = {
|
|
2450
2459
|
...g,
|
|
2451
2460
|
[v]: {
|
|
2452
2461
|
...g[v],
|
|
2453
2462
|
..._
|
|
2454
2463
|
}
|
|
2455
|
-
}, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (
|
|
2464
|
+
}, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (d = x.rects === !0 ? await i.getElementRects({
|
|
2456
2465
|
reference: e,
|
|
2457
2466
|
floating: t,
|
|
2458
2467
|
strategy: n
|
|
2459
2468
|
}) : x.rects), {
|
|
2460
2469
|
x: h,
|
|
2461
|
-
y:
|
|
2462
|
-
} = jr(d,
|
|
2470
|
+
y: u
|
|
2471
|
+
} = jr(d, m, c)), b = -1);
|
|
2463
2472
|
}
|
|
2464
2473
|
return {
|
|
2465
2474
|
x: h,
|
|
2466
|
-
y:
|
|
2467
|
-
placement:
|
|
2475
|
+
y: u,
|
|
2476
|
+
placement: m,
|
|
2468
2477
|
strategy: n,
|
|
2469
2478
|
middlewareData: g
|
|
2470
2479
|
};
|
|
@@ -2482,15 +2491,15 @@ async function Ha(e, t) {
|
|
|
2482
2491
|
} = e, {
|
|
2483
2492
|
boundary: d = "clippingAncestors",
|
|
2484
2493
|
rootBoundary: h = "viewport",
|
|
2485
|
-
elementContext:
|
|
2486
|
-
altBoundary:
|
|
2494
|
+
elementContext: u = "floating",
|
|
2495
|
+
altBoundary: m = !1,
|
|
2487
2496
|
padding: g = 0
|
|
2488
|
-
} = Ge(t, e), p = Ua(g), b = s[
|
|
2497
|
+
} = Ge(t, e), p = Ua(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
|
|
2489
2498
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
2490
2499
|
boundary: d,
|
|
2491
2500
|
rootBoundary: h,
|
|
2492
2501
|
strategy: c
|
|
2493
|
-
})), y =
|
|
2502
|
+
})), y = u === "floating" ? {
|
|
2494
2503
|
x: a,
|
|
2495
2504
|
y: n,
|
|
2496
2505
|
width: i.floating.width,
|
|
@@ -2532,15 +2541,15 @@ const Di = (e) => ({
|
|
|
2532
2541
|
} = Ge(e, t) || {};
|
|
2533
2542
|
if (d == null)
|
|
2534
2543
|
return {};
|
|
2535
|
-
const
|
|
2544
|
+
const u = Ua(h), m = {
|
|
2536
2545
|
x: r,
|
|
2537
2546
|
y: a
|
|
2538
|
-
}, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] -
|
|
2547
|
+
}, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
2539
2548
|
let S = T ? T[w] : 0;
|
|
2540
2549
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = s.floating[w] || o.floating[p]);
|
|
2541
|
-
const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O =
|
|
2550
|
+
const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, $ = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, $), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - $ : 0;
|
|
2542
2551
|
return {
|
|
2543
|
-
[g]:
|
|
2552
|
+
[g]: m[g] + Y,
|
|
2544
2553
|
data: {
|
|
2545
2554
|
[g]: Q,
|
|
2546
2555
|
centerOffset: R - Q - Y,
|
|
@@ -2566,8 +2575,8 @@ const Di = (e) => ({
|
|
|
2566
2575
|
elements: d
|
|
2567
2576
|
} = t, {
|
|
2568
2577
|
mainAxis: h = !0,
|
|
2569
|
-
crossAxis:
|
|
2570
|
-
fallbackPlacements:
|
|
2578
|
+
crossAxis: u = !0,
|
|
2579
|
+
fallbackPlacements: m,
|
|
2571
2580
|
fallbackStrategy: g = "bestFit",
|
|
2572
2581
|
fallbackAxisSideDirection: p = "none",
|
|
2573
2582
|
flipAlignment: b = !0,
|
|
@@ -2575,11 +2584,11 @@ const Di = (e) => ({
|
|
|
2575
2584
|
} = Ge(e, t);
|
|
2576
2585
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2577
2586
|
return {};
|
|
2578
|
-
const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x =
|
|
2579
|
-
!
|
|
2587
|
+
const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : $i(s)), T = p !== "none";
|
|
2588
|
+
!m && T && x.push(...Mi(s, b, p, _));
|
|
2580
2589
|
const S = [s, ...x], N = await Ha(t, v), D = [];
|
|
2581
2590
|
let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
2582
|
-
if (h && D.push(N[y]),
|
|
2591
|
+
if (h && D.push(N[y]), u) {
|
|
2583
2592
|
const R = Ai(n, i, _);
|
|
2584
2593
|
D.push(N[R[0]], N[R[1]]);
|
|
2585
2594
|
}
|
|
@@ -2636,25 +2645,25 @@ async function Ui(e, t) {
|
|
|
2636
2645
|
placement: r,
|
|
2637
2646
|
platform: a,
|
|
2638
2647
|
elements: n
|
|
2639
|
-
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1,
|
|
2648
|
+
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1, u = Ge(t, e);
|
|
2640
2649
|
let {
|
|
2641
|
-
mainAxis:
|
|
2650
|
+
mainAxis: m,
|
|
2642
2651
|
crossAxis: g,
|
|
2643
2652
|
alignmentAxis: p
|
|
2644
|
-
} = typeof
|
|
2645
|
-
mainAxis:
|
|
2653
|
+
} = typeof u == "number" ? {
|
|
2654
|
+
mainAxis: u,
|
|
2646
2655
|
crossAxis: 0,
|
|
2647
2656
|
alignmentAxis: null
|
|
2648
2657
|
} : {
|
|
2649
|
-
mainAxis:
|
|
2650
|
-
crossAxis:
|
|
2651
|
-
alignmentAxis:
|
|
2658
|
+
mainAxis: u.mainAxis || 0,
|
|
2659
|
+
crossAxis: u.crossAxis || 0,
|
|
2660
|
+
alignmentAxis: u.alignmentAxis
|
|
2652
2661
|
};
|
|
2653
2662
|
return s && typeof p == "number" && (g = s === "end" ? p * -1 : p), c ? {
|
|
2654
2663
|
x: g * h,
|
|
2655
|
-
y:
|
|
2664
|
+
y: m * d
|
|
2656
2665
|
} : {
|
|
2657
|
-
x:
|
|
2666
|
+
x: m * d,
|
|
2658
2667
|
y: g * h
|
|
2659
2668
|
};
|
|
2660
2669
|
}
|
|
@@ -2708,20 +2717,20 @@ const Hi = function(e) {
|
|
|
2708
2717
|
} = Ge(e, t), d = {
|
|
2709
2718
|
x: r,
|
|
2710
2719
|
y: a
|
|
2711
|
-
}, h = await Ha(t, c),
|
|
2712
|
-
let g = d[
|
|
2720
|
+
}, h = await Ha(t, c), u = Ce(ve(n)), m = za(u);
|
|
2721
|
+
let g = d[m], p = d[u];
|
|
2713
2722
|
if (o) {
|
|
2714
|
-
const v =
|
|
2723
|
+
const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
|
|
2715
2724
|
g = jt(k, g, w);
|
|
2716
2725
|
}
|
|
2717
2726
|
if (i) {
|
|
2718
|
-
const v =
|
|
2727
|
+
const v = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", k = p + h[v], w = p - h[y];
|
|
2719
2728
|
p = jt(k, p, w);
|
|
2720
2729
|
}
|
|
2721
2730
|
const b = s.fn({
|
|
2722
2731
|
...t,
|
|
2723
|
-
[
|
|
2724
|
-
[
|
|
2732
|
+
[m]: g,
|
|
2733
|
+
[u]: p
|
|
2725
2734
|
});
|
|
2726
2735
|
return {
|
|
2727
2736
|
...b,
|
|
@@ -2729,8 +2738,8 @@ const Hi = function(e) {
|
|
|
2729
2738
|
x: b.x - r,
|
|
2730
2739
|
y: b.y - a,
|
|
2731
2740
|
enabled: {
|
|
2732
|
-
[
|
|
2733
|
-
[
|
|
2741
|
+
[m]: o,
|
|
2742
|
+
[u]: i
|
|
2734
2743
|
}
|
|
2735
2744
|
}
|
|
2736
2745
|
};
|
|
@@ -2740,7 +2749,7 @@ const Hi = function(e) {
|
|
|
2740
2749
|
function mt() {
|
|
2741
2750
|
return typeof window < "u";
|
|
2742
2751
|
}
|
|
2743
|
-
function
|
|
2752
|
+
function Oe(e) {
|
|
2744
2753
|
return Fa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2745
2754
|
}
|
|
2746
2755
|
function ee(e) {
|
|
@@ -2773,7 +2782,7 @@ function qe(e) {
|
|
|
2773
2782
|
return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
|
|
2774
2783
|
}
|
|
2775
2784
|
function Wi(e) {
|
|
2776
|
-
return ["table", "td", "th"].includes(
|
|
2785
|
+
return ["table", "td", "th"].includes(Oe(e));
|
|
2777
2786
|
}
|
|
2778
2787
|
function gt(e) {
|
|
2779
2788
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -2803,7 +2812,7 @@ function mr() {
|
|
|
2803
2812
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2804
2813
|
}
|
|
2805
2814
|
function Re(e) {
|
|
2806
|
-
return ["html", "body", "#document"].includes(
|
|
2815
|
+
return ["html", "body", "#document"].includes(Oe(e));
|
|
2807
2816
|
}
|
|
2808
2817
|
function ne(e) {
|
|
2809
2818
|
return ee(e).getComputedStyle(e);
|
|
@@ -2818,7 +2827,7 @@ function ft(e) {
|
|
|
2818
2827
|
};
|
|
2819
2828
|
}
|
|
2820
2829
|
function be(e) {
|
|
2821
|
-
if (
|
|
2830
|
+
if (Oe(e) === "html")
|
|
2822
2831
|
return e;
|
|
2823
2832
|
const t = (
|
|
2824
2833
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
@@ -2881,31 +2890,31 @@ function Ka(e) {
|
|
|
2881
2890
|
function qi(e, t, r) {
|
|
2882
2891
|
return t === void 0 && (t = !1), !r || t && r !== ee(e) ? !1 : t;
|
|
2883
2892
|
}
|
|
2884
|
-
function
|
|
2893
|
+
function Ue(e, t, r, a) {
|
|
2885
2894
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2886
2895
|
const n = e.getBoundingClientRect(), o = qa(e);
|
|
2887
2896
|
let i = le(1);
|
|
2888
2897
|
t && (a ? ae(a) && (i = Ne(a)) : i = Ne(e));
|
|
2889
2898
|
const s = qi(o, r, a) ? Ka(o) : le(0);
|
|
2890
|
-
let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x,
|
|
2899
|
+
let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, u = n.height / i.y;
|
|
2891
2900
|
if (o) {
|
|
2892
|
-
const
|
|
2893
|
-
let p =
|
|
2901
|
+
const m = ee(o), g = a && ae(a) ? ee(a) : a;
|
|
2902
|
+
let p = m, b = Kr(p);
|
|
2894
2903
|
for (; b && a && g !== p; ) {
|
|
2895
2904
|
const v = Ne(b), y = b.getBoundingClientRect(), k = ne(b), w = y.left + (b.clientLeft + parseFloat(k.paddingLeft)) * v.x, _ = y.top + (b.clientTop + parseFloat(k.paddingTop)) * v.y;
|
|
2896
|
-
c *= v.x, d *= v.y, h *= v.x,
|
|
2905
|
+
c *= v.x, d *= v.y, h *= v.x, u *= v.y, c += w, d += _, p = ee(b), b = Kr(p);
|
|
2897
2906
|
}
|
|
2898
2907
|
}
|
|
2899
2908
|
return nt({
|
|
2900
2909
|
width: h,
|
|
2901
|
-
height:
|
|
2910
|
+
height: u,
|
|
2902
2911
|
x: c,
|
|
2903
2912
|
y: d
|
|
2904
2913
|
});
|
|
2905
2914
|
}
|
|
2906
2915
|
function gr(e, t) {
|
|
2907
2916
|
const r = ft(e).scrollLeft;
|
|
2908
|
-
return t ? t.left + r :
|
|
2917
|
+
return t ? t.left + r : Ue(ge(e)).left + r;
|
|
2909
2918
|
}
|
|
2910
2919
|
function Ya(e, t, r) {
|
|
2911
2920
|
r === void 0 && (r = !1);
|
|
@@ -2932,17 +2941,17 @@ function Ki(e) {
|
|
|
2932
2941
|
scrollLeft: 0,
|
|
2933
2942
|
scrollTop: 0
|
|
2934
2943
|
}, d = le(1);
|
|
2935
|
-
const h = le(0),
|
|
2936
|
-
if ((
|
|
2937
|
-
const g =
|
|
2944
|
+
const h = le(0), u = ce(a);
|
|
2945
|
+
if ((u || !u && !o) && ((Oe(a) !== "body" || qe(i)) && (c = ft(a)), ce(a))) {
|
|
2946
|
+
const g = Ue(a);
|
|
2938
2947
|
d = Ne(a), h.x = g.x + a.clientLeft, h.y = g.y + a.clientTop;
|
|
2939
2948
|
}
|
|
2940
|
-
const
|
|
2949
|
+
const m = i && !u && !o ? Ya(i, c, !0) : le(0);
|
|
2941
2950
|
return {
|
|
2942
2951
|
width: r.width * d.x,
|
|
2943
2952
|
height: r.height * d.y,
|
|
2944
|
-
x: r.x * d.x - c.scrollLeft * d.x + h.x +
|
|
2945
|
-
y: r.y * d.y - c.scrollTop * d.y + h.y +
|
|
2953
|
+
x: r.x * d.x - c.scrollLeft * d.x + h.x + m.x,
|
|
2954
|
+
y: r.y * d.y - c.scrollTop * d.y + h.y + m.y
|
|
2946
2955
|
};
|
|
2947
2956
|
}
|
|
2948
2957
|
function Yi(e) {
|
|
@@ -2975,7 +2984,7 @@ function Xi(e, t) {
|
|
|
2975
2984
|
};
|
|
2976
2985
|
}
|
|
2977
2986
|
function Zi(e, t) {
|
|
2978
|
-
const r =
|
|
2987
|
+
const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
|
|
2979
2988
|
return {
|
|
2980
2989
|
width: i,
|
|
2981
2990
|
height: s,
|
|
@@ -3010,7 +3019,7 @@ function Qi(e, t) {
|
|
|
3010
3019
|
const r = t.get(e);
|
|
3011
3020
|
if (r)
|
|
3012
3021
|
return r;
|
|
3013
|
-
let a = Ga(e, []).filter((s) => ae(s) &&
|
|
3022
|
+
let a = Ga(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
|
|
3014
3023
|
const o = ne(e).position === "fixed";
|
|
3015
3024
|
let i = o ? be(e) : e;
|
|
3016
3025
|
for (; ae(i) && !Re(i); ) {
|
|
@@ -3028,7 +3037,7 @@ function es(e) {
|
|
|
3028
3037
|
} = e;
|
|
3029
3038
|
const o = [...r === "clippingAncestors" ? gt(t) ? [] : Qi(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
|
|
3030
3039
|
const h = Yr(t, d, n);
|
|
3031
|
-
return c.top = Se(h.top, c.top), c.right =
|
|
3040
|
+
return c.top = Se(h.top, c.top), c.right = ze(h.right, c.right), c.bottom = ze(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
|
|
3032
3041
|
}, Yr(t, i, n));
|
|
3033
3042
|
return {
|
|
3034
3043
|
width: s.right - s.left,
|
|
@@ -3048,21 +3057,21 @@ function ts(e) {
|
|
|
3048
3057
|
};
|
|
3049
3058
|
}
|
|
3050
3059
|
function rs(e, t, r) {
|
|
3051
|
-
const a = ce(t), n = ge(t), o = r === "fixed", i =
|
|
3060
|
+
const a = ce(t), n = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
|
|
3052
3061
|
let s = {
|
|
3053
3062
|
scrollLeft: 0,
|
|
3054
3063
|
scrollTop: 0
|
|
3055
3064
|
};
|
|
3056
3065
|
const c = le(0);
|
|
3057
3066
|
if (a || !a && !o)
|
|
3058
|
-
if ((
|
|
3059
|
-
const
|
|
3060
|
-
c.x =
|
|
3067
|
+
if ((Oe(t) !== "body" || qe(n)) && (s = ft(t)), a) {
|
|
3068
|
+
const m = Ue(t, !0, o, t);
|
|
3069
|
+
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
3061
3070
|
} else n && (c.x = gr(n));
|
|
3062
|
-
const d = n && !a && !o ? Ya(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x,
|
|
3071
|
+
const d = n && !a && !o ? Ya(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
|
|
3063
3072
|
return {
|
|
3064
3073
|
x: h,
|
|
3065
|
-
y:
|
|
3074
|
+
y: u,
|
|
3066
3075
|
width: i.width,
|
|
3067
3076
|
height: i.height
|
|
3068
3077
|
};
|
|
@@ -3211,7 +3220,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3211
3220
|
}) => {
|
|
3212
3221
|
const c = us(() => {
|
|
3213
3222
|
b.stop(), p(!1);
|
|
3214
|
-
}), d = A(null), h = A(null), [
|
|
3223
|
+
}), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = ms(() => {
|
|
3215
3224
|
p(!1);
|
|
3216
3225
|
}, ys), v = ps({
|
|
3217
3226
|
mode: a,
|
|
@@ -3259,14 +3268,14 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3259
3268
|
}
|
|
3260
3269
|
}, [r, y, c]);
|
|
3261
3270
|
M(() => {
|
|
3262
|
-
(async () =>
|
|
3263
|
-
}, [k,
|
|
3271
|
+
(async () => u && await k())();
|
|
3272
|
+
}, [k, u]);
|
|
3264
3273
|
const w = () => {
|
|
3265
|
-
|
|
3274
|
+
m(!1), p(!0), b.start();
|
|
3266
3275
|
}, _ = () => {
|
|
3267
|
-
g ||
|
|
3276
|
+
g || m(!0);
|
|
3268
3277
|
}, x = () => {
|
|
3269
|
-
g ||
|
|
3278
|
+
g || m(!1);
|
|
3270
3279
|
};
|
|
3271
3280
|
return /* @__PURE__ */ E(
|
|
3272
3281
|
"div",
|
|
@@ -3278,7 +3287,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3278
3287
|
onClick: w,
|
|
3279
3288
|
children: [
|
|
3280
3289
|
e,
|
|
3281
|
-
|
|
3290
|
+
u && /* @__PURE__ */ E(
|
|
3282
3291
|
"div",
|
|
3283
3292
|
{
|
|
3284
3293
|
role: "tooltip",
|
|
@@ -3296,9 +3305,9 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
|
|
|
3296
3305
|
}, vs = ({
|
|
3297
3306
|
className: e
|
|
3298
3307
|
}) => {
|
|
3299
|
-
const { state: t, dispatch: r } = z(
|
|
3308
|
+
const { state: t, dispatch: r } = z(de), a = A(null), n = A(!1), o = (i) => {
|
|
3300
3309
|
i.preventDefault(), r({
|
|
3301
|
-
type:
|
|
3310
|
+
type: Ie
|
|
3302
3311
|
});
|
|
3303
3312
|
};
|
|
3304
3313
|
return M(() => {
|
|
@@ -3584,20 +3593,20 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3584
3593
|
noBorder: c,
|
|
3585
3594
|
labelRight: d,
|
|
3586
3595
|
labelLeft: h,
|
|
3587
|
-
noBackground:
|
|
3588
|
-
variant:
|
|
3596
|
+
noBackground: u,
|
|
3597
|
+
variant: m,
|
|
3589
3598
|
noTruncate: g,
|
|
3590
3599
|
align: p,
|
|
3591
3600
|
radius: b
|
|
3592
|
-
}) => (
|
|
3601
|
+
}) => (m || (m = "primary"), r ? f(ta, t) : f(
|
|
3593
3602
|
ta,
|
|
3594
3603
|
ws({
|
|
3595
3604
|
mode: a,
|
|
3596
|
-
variant:
|
|
3597
|
-
noBackground:
|
|
3605
|
+
variant: m,
|
|
3606
|
+
noBackground: u,
|
|
3598
3607
|
noTruncate: g
|
|
3599
3608
|
}),
|
|
3600
|
-
_s({ mode: a, noBackground:
|
|
3609
|
+
_s({ mode: a, noBackground: u, variant: m }),
|
|
3601
3610
|
Es({ radius: b }),
|
|
3602
3611
|
ks({
|
|
3603
3612
|
type: e,
|
|
@@ -3607,10 +3616,10 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
|
|
|
3607
3616
|
align: p
|
|
3608
3617
|
}),
|
|
3609
3618
|
xs({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
3610
|
-
Ns({ mode: a, variant:
|
|
3619
|
+
Ns({ mode: a, variant: m, noBorder: c }),
|
|
3611
3620
|
Cs({ focusMode: n }),
|
|
3612
|
-
Ts({ mode: a, variant:
|
|
3613
|
-
Ss({ mode: a, variant:
|
|
3621
|
+
Ts({ mode: a, variant: m, disabled: o }),
|
|
3622
|
+
Ss({ mode: a, variant: m, disabled: o }),
|
|
3614
3623
|
{
|
|
3615
3624
|
"w-full": i,
|
|
3616
3625
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -3646,8 +3655,8 @@ const en = V.forwardRef(
|
|
|
3646
3655
|
noBorder: c = !1,
|
|
3647
3656
|
"aria-label": d,
|
|
3648
3657
|
label: h,
|
|
3649
|
-
size:
|
|
3650
|
-
labelRight:
|
|
3658
|
+
size: u = "medium",
|
|
3659
|
+
labelRight: m,
|
|
3651
3660
|
labelLeft: g,
|
|
3652
3661
|
noBackground: p = !1,
|
|
3653
3662
|
align: b = "center",
|
|
@@ -3665,8 +3674,8 @@ const en = V.forwardRef(
|
|
|
3665
3674
|
raw: s,
|
|
3666
3675
|
className: o,
|
|
3667
3676
|
noBorder: c,
|
|
3668
|
-
size:
|
|
3669
|
-
labelRight:
|
|
3677
|
+
size: u,
|
|
3678
|
+
labelRight: m,
|
|
3670
3679
|
labelLeft: g,
|
|
3671
3680
|
noBackground: p,
|
|
3672
3681
|
align: b,
|
|
@@ -3685,7 +3694,7 @@ const en = V.forwardRef(
|
|
|
3685
3694
|
children: [
|
|
3686
3695
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
3687
3696
|
/* @__PURE__ */ l("div", { className: T, children: e }),
|
|
3688
|
-
|
|
3697
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
3689
3698
|
]
|
|
3690
3699
|
}
|
|
3691
3700
|
);
|
|
@@ -3718,8 +3727,8 @@ const Ls = V.forwardRef(
|
|
|
3718
3727
|
noBorder: c = !1,
|
|
3719
3728
|
"aria-label": d,
|
|
3720
3729
|
label: h,
|
|
3721
|
-
size:
|
|
3722
|
-
labelRight:
|
|
3730
|
+
size: u = "medium",
|
|
3731
|
+
labelRight: m,
|
|
3723
3732
|
labelLeft: g,
|
|
3724
3733
|
noBackground: p = !1,
|
|
3725
3734
|
align: b = "center",
|
|
@@ -3736,8 +3745,8 @@ const Ls = V.forwardRef(
|
|
|
3736
3745
|
raw: s,
|
|
3737
3746
|
className: o,
|
|
3738
3747
|
noBorder: c,
|
|
3739
|
-
size:
|
|
3740
|
-
labelRight:
|
|
3748
|
+
size: u,
|
|
3749
|
+
labelRight: m,
|
|
3741
3750
|
labelLeft: g,
|
|
3742
3751
|
noBackground: p,
|
|
3743
3752
|
align: b,
|
|
@@ -3776,7 +3785,7 @@ const Ls = V.forwardRef(
|
|
|
3776
3785
|
children: [
|
|
3777
3786
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
3778
3787
|
/* @__PURE__ */ l("div", { className: x, children: e }),
|
|
3779
|
-
|
|
3788
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
3780
3789
|
]
|
|
3781
3790
|
}
|
|
3782
3791
|
) });
|
|
@@ -3869,27 +3878,27 @@ function $s({
|
|
|
3869
3878
|
open: t,
|
|
3870
3879
|
onOpenChange: r
|
|
3871
3880
|
} = {}) {
|
|
3872
|
-
const [a, n] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? a, h = r ?? n,
|
|
3881
|
+
const [a, n] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? a, h = r ?? n, u = ba({
|
|
3873
3882
|
open: d,
|
|
3874
3883
|
onOpenChange: h
|
|
3875
|
-
}),
|
|
3884
|
+
}), m = u.context, g = ya(m, {
|
|
3876
3885
|
enabled: t == null
|
|
3877
|
-
}), p = va(
|
|
3886
|
+
}), p = va(m, {
|
|
3878
3887
|
outsidePress: !1,
|
|
3879
3888
|
outsidePressEvent: "mousedown"
|
|
3880
|
-
}), b = ka(
|
|
3889
|
+
}), b = ka(m), v = xa([g, p, b]);
|
|
3881
3890
|
return G.useMemo(
|
|
3882
3891
|
() => ({
|
|
3883
3892
|
open: d,
|
|
3884
3893
|
setOpen: h,
|
|
3885
3894
|
...v,
|
|
3886
|
-
...
|
|
3895
|
+
...u,
|
|
3887
3896
|
labelId: o,
|
|
3888
3897
|
descriptionId: s,
|
|
3889
3898
|
setLabelId: i,
|
|
3890
3899
|
setDescriptionId: c
|
|
3891
3900
|
}),
|
|
3892
|
-
[d, h, v,
|
|
3901
|
+
[d, h, v, u, o, s]
|
|
3893
3902
|
);
|
|
3894
3903
|
}
|
|
3895
3904
|
const pt = () => {
|
|
@@ -3950,19 +3959,19 @@ try {
|
|
|
3950
3959
|
});
|
|
3951
3960
|
} catch {
|
|
3952
3961
|
}
|
|
3953
|
-
const
|
|
3962
|
+
const Me = "panel", tt = "messagebox", zs = ({
|
|
3954
3963
|
className: e,
|
|
3955
3964
|
kind: t,
|
|
3956
3965
|
borderMode: r
|
|
3957
3966
|
}) => ({
|
|
3958
3967
|
main: f("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
3959
|
-
[`${ea} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t ===
|
|
3960
|
-
[`${ea} w-full sm:w-[95%] md:max-w-2xl`]: t ===
|
|
3968
|
+
[`${ea} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Me,
|
|
3969
|
+
[`${ea} w-full sm:w-[95%] md:max-w-2xl`]: t === Me && !e,
|
|
3961
3970
|
[`${Qr} rounded-lg border-2`]: t === tt,
|
|
3962
3971
|
[`${Qr} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === tt && !e,
|
|
3963
3972
|
[`${e}`]: !!e,
|
|
3964
|
-
"sm:border-border-dark": r === "dark" && t ===
|
|
3965
|
-
"sm:border-border-accent": r === "light" && t ===
|
|
3973
|
+
"sm:border-border-dark": r === "dark" && t === Me,
|
|
3974
|
+
"sm:border-border-accent": r === "light" && t === Me,
|
|
3966
3975
|
"border-border-dark": r === "dark" && t === tt,
|
|
3967
3976
|
"border-border-accent": r === "light" && t === tt
|
|
3968
3977
|
}),
|
|
@@ -3977,7 +3986,7 @@ const Be = "panel", tt = "messagebox", zs = ({
|
|
|
3977
3986
|
children: a,
|
|
3978
3987
|
footer: n,
|
|
3979
3988
|
borderMode: o = "light",
|
|
3980
|
-
kind: i =
|
|
3989
|
+
kind: i = Me,
|
|
3981
3990
|
className: s
|
|
3982
3991
|
}) => {
|
|
3983
3992
|
const c = A(""), d = zs({ className: s, kind: i, borderMode: o });
|
|
@@ -4050,12 +4059,12 @@ const Be = "panel", tt = "messagebox", zs = ({
|
|
|
4050
4059
|
), Fs = ({
|
|
4051
4060
|
className: e
|
|
4052
4061
|
}) => {
|
|
4053
|
-
const { state: t, dispatch: r } = z(
|
|
4062
|
+
const { state: t, dispatch: r } = z(de), [a, n] = Z(!1), [o, i] = Mt({
|
|
4054
4063
|
key: At + vn,
|
|
4055
4064
|
initialValue: ""
|
|
4056
4065
|
}), s = () => {
|
|
4057
4066
|
r({
|
|
4058
|
-
type:
|
|
4067
|
+
type: Ie,
|
|
4059
4068
|
payload: {
|
|
4060
4069
|
private: !(t != null && t.private)
|
|
4061
4070
|
}
|
|
@@ -4133,7 +4142,7 @@ const Be = "panel", tt = "messagebox", zs = ({
|
|
|
4133
4142
|
focusMode: i = "system",
|
|
4134
4143
|
...s
|
|
4135
4144
|
}, c) => {
|
|
4136
|
-
const [d, h] = Z(!1), [
|
|
4145
|
+
const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Pn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
|
|
4137
4146
|
nodeId: w,
|
|
4138
4147
|
open: d,
|
|
4139
4148
|
onOpenChange: (H) => {
|
|
@@ -4167,7 +4176,7 @@ const Be = "panel", tt = "messagebox", zs = ({
|
|
|
4167
4176
|
...Y,
|
|
4168
4177
|
"aria-label": r,
|
|
4169
4178
|
"data-open": d ? "" : void 0,
|
|
4170
|
-
"data-focus-inside":
|
|
4179
|
+
"data-focus-inside": u ? "" : void 0,
|
|
4171
4180
|
ref: tr([T.setReference, _.ref, c]),
|
|
4172
4181
|
...$(
|
|
4173
4182
|
y.getItemProps({
|
|
@@ -4196,7 +4205,7 @@ const Be = "panel", tt = "messagebox", zs = ({
|
|
|
4196
4205
|
activeIndex: g,
|
|
4197
4206
|
setActiveIndex: p,
|
|
4198
4207
|
getItemProps: Q,
|
|
4199
|
-
setHasFocusInside:
|
|
4208
|
+
setHasFocusInside: m,
|
|
4200
4209
|
isOpen: d
|
|
4201
4210
|
},
|
|
4202
4211
|
children: /* @__PURE__ */ l(jn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
|
|
@@ -4237,7 +4246,7 @@ const ot = G.forwardRef(
|
|
|
4237
4246
|
...s
|
|
4238
4247
|
}, c) => {
|
|
4239
4248
|
let d = "";
|
|
4240
|
-
const h = G.useContext(Yt),
|
|
4249
|
+
const h = G.useContext(Yt), u = _a({ label: t ? null : e }), m = wa(), g = tr([u.ref, c]);
|
|
4241
4250
|
if (a && n)
|
|
4242
4251
|
return /* @__PURE__ */ l(
|
|
4243
4252
|
"div",
|
|
@@ -4246,7 +4255,7 @@ const ot = G.forwardRef(
|
|
|
4246
4255
|
...h.getItemProps({
|
|
4247
4256
|
onClick(b) {
|
|
4248
4257
|
var v;
|
|
4249
|
-
o || ((v = s.onClick) == null || v.call(s, b),
|
|
4258
|
+
o || ((v = s.onClick) == null || v.call(s, b), m == null || m.events.emit("click"));
|
|
4250
4259
|
}
|
|
4251
4260
|
}),
|
|
4252
4261
|
children: n
|
|
@@ -4273,7 +4282,7 @@ const ot = G.forwardRef(
|
|
|
4273
4282
|
...h.getItemProps({
|
|
4274
4283
|
onClick(b) {
|
|
4275
4284
|
var v;
|
|
4276
|
-
o || ((v = s.onClick) == null || v.call(s, b),
|
|
4285
|
+
o || ((v = s.onClick) == null || v.call(s, b), m == null || m.events.emit("click"));
|
|
4277
4286
|
},
|
|
4278
4287
|
onFocus(b) {
|
|
4279
4288
|
var v;
|
|
@@ -4324,22 +4333,27 @@ const Ws = (e) => {
|
|
|
4324
4333
|
className: e,
|
|
4325
4334
|
defaultPlacement: t = "top-start"
|
|
4326
4335
|
}) => {
|
|
4327
|
-
const { dispatch: r } = z(ut), { getAccessToken:
|
|
4328
|
-
data:
|
|
4329
|
-
error:
|
|
4330
|
-
isLoading:
|
|
4336
|
+
const { dispatch: r } = z(de), { dispatch: a } = z(ut), { getAccessToken: n, user: o } = Fe(), {
|
|
4337
|
+
data: i,
|
|
4338
|
+
error: s,
|
|
4339
|
+
isLoading: c
|
|
4331
4340
|
} = lr({
|
|
4332
|
-
keys: [
|
|
4333
|
-
getAccessToken:
|
|
4334
|
-
}),
|
|
4335
|
-
|
|
4341
|
+
keys: [o == null ? void 0 : o.username],
|
|
4342
|
+
getAccessToken: n
|
|
4343
|
+
}), d = (h, u, m) => {
|
|
4344
|
+
h.preventDefault(), m && r({
|
|
4345
|
+
type: Ie,
|
|
4346
|
+
payload: {
|
|
4347
|
+
private: !0
|
|
4348
|
+
}
|
|
4349
|
+
}), a({
|
|
4336
4350
|
type: ua,
|
|
4337
4351
|
payload: {
|
|
4338
|
-
prompt:
|
|
4352
|
+
prompt: u
|
|
4339
4353
|
}
|
|
4340
4354
|
});
|
|
4341
4355
|
};
|
|
4342
|
-
return
|
|
4356
|
+
return s || c ? null : i && i.tags && Ws(i.tags) && /* @__PURE__ */ l(
|
|
4343
4357
|
Ke,
|
|
4344
4358
|
{
|
|
4345
4359
|
label: "Custom Prompts",
|
|
@@ -4354,13 +4368,17 @@ const Ws = (e) => {
|
|
|
4354
4368
|
defaultPlacement: t,
|
|
4355
4369
|
children: [
|
|
4356
4370
|
/* @__PURE__ */ l(an, { children: "Prompts" }),
|
|
4357
|
-
|
|
4371
|
+
i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
|
|
4358
4372
|
ot,
|
|
4359
4373
|
{
|
|
4360
|
-
label:
|
|
4361
|
-
onClick: (
|
|
4374
|
+
label: h.label,
|
|
4375
|
+
onClick: (u) => d(
|
|
4376
|
+
u,
|
|
4377
|
+
h.content,
|
|
4378
|
+
h == null ? void 0 : h.privateChat
|
|
4379
|
+
)
|
|
4362
4380
|
},
|
|
4363
|
-
`prompt-button-${
|
|
4381
|
+
`prompt-button-${h.slot}`
|
|
4364
4382
|
))
|
|
4365
4383
|
]
|
|
4366
4384
|
}
|
|
@@ -4370,7 +4388,7 @@ const Ws = (e) => {
|
|
|
4370
4388
|
}, js = ({
|
|
4371
4389
|
className: e
|
|
4372
4390
|
}) => {
|
|
4373
|
-
const { state: t } = z(
|
|
4391
|
+
const { state: t } = z(de);
|
|
4374
4392
|
return /* @__PURE__ */ l(
|
|
4375
4393
|
Ke,
|
|
4376
4394
|
{
|
|
@@ -4396,7 +4414,7 @@ const Ws = (e) => {
|
|
|
4396
4414
|
}, qs = ({
|
|
4397
4415
|
className: e
|
|
4398
4416
|
}) => {
|
|
4399
|
-
const { state: t, dispatch: r } = z(
|
|
4417
|
+
const { state: t, dispatch: r } = z(de), { getAccessToken: a, user: n } = Fe(), {
|
|
4400
4418
|
data: o,
|
|
4401
4419
|
error: i,
|
|
4402
4420
|
isLoading: s,
|
|
@@ -4414,7 +4432,7 @@ const Ws = (e) => {
|
|
|
4414
4432
|
engine: h
|
|
4415
4433
|
}
|
|
4416
4434
|
}), c({ ...o }), t && r({
|
|
4417
|
-
type:
|
|
4435
|
+
type: Ie,
|
|
4418
4436
|
payload: {
|
|
4419
4437
|
engine: h
|
|
4420
4438
|
}
|
|
@@ -4498,7 +4516,7 @@ const Ws = (e) => {
|
|
|
4498
4516
|
ref: i,
|
|
4499
4517
|
...s
|
|
4500
4518
|
}) => {
|
|
4501
|
-
const { state:
|
|
4519
|
+
const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = co([i, p]), v = mo(), y = Zs({
|
|
4502
4520
|
className: e
|
|
4503
4521
|
}), [k, w] = uo({
|
|
4504
4522
|
value: r,
|
|
@@ -4527,12 +4545,12 @@ const Ws = (e) => {
|
|
|
4527
4545
|
w(S.target.value), _();
|
|
4528
4546
|
};
|
|
4529
4547
|
return M(() => {
|
|
4530
|
-
|
|
4531
|
-
}, [
|
|
4532
|
-
|
|
4548
|
+
u && u.usage === 0 && u.messages.length === 0 && p.current && (p.current.style.height = "24px");
|
|
4549
|
+
}, [u]), M(() => {
|
|
4550
|
+
m.lastTriggeredTimestamp && setTimeout(() => {
|
|
4533
4551
|
_();
|
|
4534
4552
|
}, 100);
|
|
4535
|
-
}, [
|
|
4553
|
+
}, [m.lastTriggeredTimestamp, _]), /* @__PURE__ */ l(
|
|
4536
4554
|
"div",
|
|
4537
4555
|
{
|
|
4538
4556
|
className: y.wrapper,
|
|
@@ -4574,7 +4592,7 @@ const Ws = (e) => {
|
|
|
4574
4592
|
});
|
|
4575
4593
|
}, na = (e) => {
|
|
4576
4594
|
Jt(e, !1), e({
|
|
4577
|
-
type:
|
|
4595
|
+
type: Ve,
|
|
4578
4596
|
payload: {
|
|
4579
4597
|
message: {
|
|
4580
4598
|
role: Qt,
|
|
@@ -4583,18 +4601,18 @@ const Ws = (e) => {
|
|
|
4583
4601
|
}
|
|
4584
4602
|
});
|
|
4585
4603
|
}, el = () => {
|
|
4586
|
-
const { state: e, dispatch: t } = z(
|
|
4604
|
+
const { state: e, dispatch: t } = z(de), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
|
|
4587
4605
|
null
|
|
4588
4606
|
);
|
|
4589
4607
|
M(() => {
|
|
4590
4608
|
(async () => {
|
|
4591
|
-
var
|
|
4609
|
+
var m;
|
|
4592
4610
|
if (!e || e.messages.length === 0) {
|
|
4593
|
-
(
|
|
4611
|
+
(m = d == null ? void 0 : d.current) == null || m.cancel();
|
|
4594
4612
|
return;
|
|
4595
4613
|
}
|
|
4596
|
-
const
|
|
4597
|
-
if (!(e.messages.length === 0 ||
|
|
4614
|
+
const u = e.messages[e.messages.length - 1];
|
|
4615
|
+
if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === wn || u.message.role === Qt || u.message.role === _n))
|
|
4598
4616
|
try {
|
|
4599
4617
|
const g = await xi({
|
|
4600
4618
|
accessToken: await i(),
|
|
@@ -4629,11 +4647,11 @@ const Ws = (e) => {
|
|
|
4629
4647
|
usage: x.usage
|
|
4630
4648
|
}
|
|
4631
4649
|
}), t({
|
|
4632
|
-
type:
|
|
4650
|
+
type: Ve,
|
|
4633
4651
|
payload: {
|
|
4634
4652
|
message: {
|
|
4635
4653
|
content: _,
|
|
4636
|
-
role:
|
|
4654
|
+
role: Pe,
|
|
4637
4655
|
messageId: p,
|
|
4638
4656
|
processingTime: x.processingTime,
|
|
4639
4657
|
name: x.name
|
|
@@ -4643,11 +4661,11 @@ const Ws = (e) => {
|
|
|
4643
4661
|
break;
|
|
4644
4662
|
} else
|
|
4645
4663
|
t({
|
|
4646
|
-
type:
|
|
4664
|
+
type: Ve,
|
|
4647
4665
|
payload: {
|
|
4648
4666
|
message: {
|
|
4649
4667
|
content: k,
|
|
4650
|
-
role:
|
|
4668
|
+
role: Pe,
|
|
4651
4669
|
messageId: p
|
|
4652
4670
|
}
|
|
4653
4671
|
}
|
|
@@ -4661,9 +4679,9 @@ const Ws = (e) => {
|
|
|
4661
4679
|
}
|
|
4662
4680
|
})();
|
|
4663
4681
|
}, [e == null ? void 0 : e.messages]);
|
|
4664
|
-
const h = async (
|
|
4665
|
-
|
|
4666
|
-
type:
|
|
4682
|
+
const h = async (u) => {
|
|
4683
|
+
u.preventDefault(), t({
|
|
4684
|
+
type: Ve,
|
|
4667
4685
|
payload: {
|
|
4668
4686
|
message: {
|
|
4669
4687
|
role: $t,
|
|
@@ -4674,10 +4692,10 @@ const Ws = (e) => {
|
|
|
4674
4692
|
};
|
|
4675
4693
|
return M(() => {
|
|
4676
4694
|
if (r.prompt !== "") {
|
|
4677
|
-
const
|
|
4678
|
-
|
|
4679
|
-
o(
|
|
4680
|
-
}) : o(
|
|
4695
|
+
const u = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
|
|
4696
|
+
u.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
|
|
4697
|
+
o(u.replace(Lr, g));
|
|
4698
|
+
}) : o(u), c.current && c.current.focus(), a({
|
|
4681
4699
|
type: da
|
|
4682
4700
|
});
|
|
4683
4701
|
}
|
|
@@ -4692,11 +4710,11 @@ const Ws = (e) => {
|
|
|
4692
4710
|
onSubmit: h,
|
|
4693
4711
|
ref: c,
|
|
4694
4712
|
value: n,
|
|
4695
|
-
onChange: (
|
|
4713
|
+
onChange: (u) => o(u.target.value)
|
|
4696
4714
|
}
|
|
4697
4715
|
) });
|
|
4698
4716
|
}, tl = ({ isComponent: e }) => {
|
|
4699
|
-
const { state: t } = z(
|
|
4717
|
+
const { state: t } = z(de), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
|
|
4700
4718
|
a ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
|
|
4701
4719
|
);
|
|
4702
4720
|
return M(() => {
|
|
@@ -5006,20 +5024,20 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
5006
5024
|
noBorder: c,
|
|
5007
5025
|
labelRight: d,
|
|
5008
5026
|
labelLeft: h,
|
|
5009
|
-
noBackground:
|
|
5010
|
-
variant:
|
|
5027
|
+
noBackground: u,
|
|
5028
|
+
variant: m,
|
|
5011
5029
|
noTruncate: g,
|
|
5012
5030
|
align: p,
|
|
5013
5031
|
radius: b
|
|
5014
|
-
}) => (
|
|
5032
|
+
}) => (m || (m = "primary"), r ? f(oa, t) : f(
|
|
5015
5033
|
oa,
|
|
5016
5034
|
il({
|
|
5017
5035
|
mode: a,
|
|
5018
|
-
variant:
|
|
5019
|
-
noBackground:
|
|
5036
|
+
variant: m,
|
|
5037
|
+
noBackground: u,
|
|
5020
5038
|
noTruncate: g
|
|
5021
5039
|
}),
|
|
5022
|
-
sl({ mode: a, noBackground:
|
|
5040
|
+
sl({ mode: a, noBackground: u, variant: m }),
|
|
5023
5041
|
ll({ radius: b }),
|
|
5024
5042
|
nl({
|
|
5025
5043
|
type: e,
|
|
@@ -5029,10 +5047,10 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
|
|
|
5029
5047
|
align: p
|
|
5030
5048
|
}),
|
|
5031
5049
|
ol({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
5032
|
-
ul({ mode: a, variant:
|
|
5050
|
+
ul({ mode: a, variant: m, noBorder: c }),
|
|
5033
5051
|
ml({ focusMode: n }),
|
|
5034
|
-
cl({ mode: a, variant:
|
|
5035
|
-
dl({ mode: a, variant:
|
|
5052
|
+
cl({ mode: a, variant: m, disabled: o }),
|
|
5053
|
+
dl({ mode: a, variant: m, disabled: o }),
|
|
5036
5054
|
{
|
|
5037
5055
|
"w-full": i,
|
|
5038
5056
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -5068,8 +5086,8 @@ const sn = V.forwardRef(
|
|
|
5068
5086
|
noBorder: c = !1,
|
|
5069
5087
|
"aria-label": d,
|
|
5070
5088
|
label: h,
|
|
5071
|
-
size:
|
|
5072
|
-
labelRight:
|
|
5089
|
+
size: u = "medium",
|
|
5090
|
+
labelRight: m,
|
|
5073
5091
|
labelLeft: g,
|
|
5074
5092
|
noBackground: p = !1,
|
|
5075
5093
|
align: b = "center",
|
|
@@ -5087,8 +5105,8 @@ const sn = V.forwardRef(
|
|
|
5087
5105
|
raw: s,
|
|
5088
5106
|
className: o,
|
|
5089
5107
|
noBorder: c,
|
|
5090
|
-
size:
|
|
5091
|
-
labelRight:
|
|
5108
|
+
size: u,
|
|
5109
|
+
labelRight: m,
|
|
5092
5110
|
labelLeft: g,
|
|
5093
5111
|
noBackground: p,
|
|
5094
5112
|
align: b,
|
|
@@ -5107,7 +5125,7 @@ const sn = V.forwardRef(
|
|
|
5107
5125
|
children: [
|
|
5108
5126
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
5109
5127
|
/* @__PURE__ */ l("div", { className: T, children: e }),
|
|
5110
|
-
|
|
5128
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
5111
5129
|
]
|
|
5112
5130
|
}
|
|
5113
5131
|
);
|
|
@@ -5140,8 +5158,8 @@ const hl = V.forwardRef(
|
|
|
5140
5158
|
noBorder: c = !1,
|
|
5141
5159
|
"aria-label": d,
|
|
5142
5160
|
label: h,
|
|
5143
|
-
size:
|
|
5144
|
-
labelRight:
|
|
5161
|
+
size: u = "medium",
|
|
5162
|
+
labelRight: m,
|
|
5145
5163
|
labelLeft: g,
|
|
5146
5164
|
noBackground: p = !1,
|
|
5147
5165
|
align: b = "center",
|
|
@@ -5158,8 +5176,8 @@ const hl = V.forwardRef(
|
|
|
5158
5176
|
raw: s,
|
|
5159
5177
|
className: o,
|
|
5160
5178
|
noBorder: c,
|
|
5161
|
-
size:
|
|
5162
|
-
labelRight:
|
|
5179
|
+
size: u,
|
|
5180
|
+
labelRight: m,
|
|
5163
5181
|
labelLeft: g,
|
|
5164
5182
|
noBackground: p,
|
|
5165
5183
|
align: b,
|
|
@@ -5198,7 +5216,7 @@ const hl = V.forwardRef(
|
|
|
5198
5216
|
children: [
|
|
5199
5217
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
5200
5218
|
/* @__PURE__ */ l("div", { className: x, children: e }),
|
|
5201
|
-
|
|
5219
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
5202
5220
|
]
|
|
5203
5221
|
}
|
|
5204
5222
|
) });
|
|
@@ -5361,7 +5379,7 @@ const yl = ({
|
|
|
5361
5379
|
copyToClipboardMode: s = "system",
|
|
5362
5380
|
noMaxWidth: c = !1
|
|
5363
5381
|
}) => {
|
|
5364
|
-
const [d, h] = Z(!1),
|
|
5382
|
+
const [d, h] = Z(!1), u = wl({ kind: t, className: r, noMaxWidth: c }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
|
|
5365
5383
|
h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
5366
5384
|
};
|
|
5367
5385
|
return M(() => {
|
|
@@ -5371,17 +5389,17 @@ const yl = ({
|
|
|
5371
5389
|
}, 3e3)), () => {
|
|
5372
5390
|
clearTimeout(p);
|
|
5373
5391
|
};
|
|
5374
|
-
}, [d]), /* @__PURE__ */ E("div", { className:
|
|
5392
|
+
}, [d]), /* @__PURE__ */ E("div", { className: u.wrapper, children: [
|
|
5375
5393
|
/* @__PURE__ */ E("div", { children: [
|
|
5376
|
-
/* @__PURE__ */ l("div", { className:
|
|
5377
|
-
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className:
|
|
5394
|
+
/* @__PURE__ */ l("div", { className: u.main, children: e }),
|
|
5395
|
+
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className: u.footer, children: [
|
|
5378
5396
|
p,
|
|
5379
5397
|
": ",
|
|
5380
5398
|
a[p]
|
|
5381
5399
|
] }) }, `-${p}`) : null),
|
|
5382
5400
|
n && n
|
|
5383
5401
|
] }),
|
|
5384
|
-
|
|
5402
|
+
m && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
|
|
5385
5403
|
sn,
|
|
5386
5404
|
{
|
|
5387
5405
|
noBorder: !0,
|
|
@@ -5629,20 +5647,20 @@ const yl = ({
|
|
|
5629
5647
|
noBorder: c,
|
|
5630
5648
|
labelRight: d,
|
|
5631
5649
|
labelLeft: h,
|
|
5632
|
-
noBackground:
|
|
5633
|
-
variant:
|
|
5650
|
+
noBackground: u,
|
|
5651
|
+
variant: m,
|
|
5634
5652
|
noTruncate: g,
|
|
5635
5653
|
align: p,
|
|
5636
5654
|
radius: b
|
|
5637
|
-
}) => (
|
|
5655
|
+
}) => (m || (m = "primary"), r ? f(ia, t) : f(
|
|
5638
5656
|
ia,
|
|
5639
5657
|
Sl({
|
|
5640
5658
|
mode: a,
|
|
5641
|
-
variant:
|
|
5642
|
-
noBackground:
|
|
5659
|
+
variant: m,
|
|
5660
|
+
noBackground: u,
|
|
5643
5661
|
noTruncate: g
|
|
5644
5662
|
}),
|
|
5645
|
-
Nl({ mode: a, noBackground:
|
|
5663
|
+
Nl({ mode: a, noBackground: u, variant: m }),
|
|
5646
5664
|
Cl({ radius: b }),
|
|
5647
5665
|
El({
|
|
5648
5666
|
type: e,
|
|
@@ -5652,10 +5670,10 @@ const yl = ({
|
|
|
5652
5670
|
align: p
|
|
5653
5671
|
}),
|
|
5654
5672
|
Tl({ type: e, size: s, labelRight: d, labelLeft: h }),
|
|
5655
|
-
Ll({ mode: a, variant:
|
|
5673
|
+
Ll({ mode: a, variant: m, noBorder: c }),
|
|
5656
5674
|
Ol({ focusMode: n }),
|
|
5657
|
-
Rl({ mode: a, variant:
|
|
5658
|
-
Il({ mode: a, variant:
|
|
5675
|
+
Rl({ mode: a, variant: m, disabled: o }),
|
|
5676
|
+
Il({ mode: a, variant: m, disabled: o }),
|
|
5659
5677
|
{
|
|
5660
5678
|
"w-full": i,
|
|
5661
5679
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -5691,8 +5709,8 @@ const dn = V.forwardRef(
|
|
|
5691
5709
|
noBorder: c = !1,
|
|
5692
5710
|
variant: d = "primary",
|
|
5693
5711
|
noTruncate: h = !1,
|
|
5694
|
-
radius:
|
|
5695
|
-
...
|
|
5712
|
+
radius: u = "large",
|
|
5713
|
+
...m
|
|
5696
5714
|
}, g) => {
|
|
5697
5715
|
const p = cn({
|
|
5698
5716
|
type: yr,
|
|
@@ -5706,7 +5724,7 @@ const dn = V.forwardRef(
|
|
|
5706
5724
|
noBorder: c,
|
|
5707
5725
|
variant: d,
|
|
5708
5726
|
noTruncate: h,
|
|
5709
|
-
radius:
|
|
5727
|
+
radius: u
|
|
5710
5728
|
});
|
|
5711
5729
|
return /* @__PURE__ */ l(
|
|
5712
5730
|
vr,
|
|
@@ -5714,7 +5732,7 @@ const dn = V.forwardRef(
|
|
|
5714
5732
|
ref: g,
|
|
5715
5733
|
className: p,
|
|
5716
5734
|
disabled: t,
|
|
5717
|
-
...
|
|
5735
|
+
...m,
|
|
5718
5736
|
children: e
|
|
5719
5737
|
}
|
|
5720
5738
|
);
|
|
@@ -5747,8 +5765,8 @@ const $l = V.forwardRef(
|
|
|
5747
5765
|
noBorder: c = !1,
|
|
5748
5766
|
"aria-label": d,
|
|
5749
5767
|
label: h,
|
|
5750
|
-
size:
|
|
5751
|
-
labelRight:
|
|
5768
|
+
size: u = "medium",
|
|
5769
|
+
labelRight: m,
|
|
5752
5770
|
labelLeft: g,
|
|
5753
5771
|
noBackground: p = !1,
|
|
5754
5772
|
align: b = "center",
|
|
@@ -5765,8 +5783,8 @@ const $l = V.forwardRef(
|
|
|
5765
5783
|
raw: s,
|
|
5766
5784
|
className: o,
|
|
5767
5785
|
noBorder: c,
|
|
5768
|
-
size:
|
|
5769
|
-
labelRight:
|
|
5786
|
+
size: u,
|
|
5787
|
+
labelRight: m,
|
|
5770
5788
|
labelLeft: g,
|
|
5771
5789
|
noBackground: p,
|
|
5772
5790
|
align: b,
|
|
@@ -5805,7 +5823,7 @@ const $l = V.forwardRef(
|
|
|
5805
5823
|
children: [
|
|
5806
5824
|
g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
|
|
5807
5825
|
/* @__PURE__ */ l("div", { className: x, children: e }),
|
|
5808
|
-
|
|
5826
|
+
m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
|
|
5809
5827
|
]
|
|
5810
5828
|
}
|
|
5811
5829
|
) });
|
|
@@ -5871,14 +5889,14 @@ try {
|
|
|
5871
5889
|
const sa = fa(
|
|
5872
5890
|
() => import(
|
|
5873
5891
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
5874
|
-
"./MessageAssistant.
|
|
5892
|
+
"./MessageAssistant.DbPbEIeG.js"
|
|
5875
5893
|
).then((e) => e.MessageAssistant)
|
|
5876
5894
|
), Pl = () => {
|
|
5877
|
-
const { state: e } = z(
|
|
5895
|
+
const { state: e } = z(de);
|
|
5878
5896
|
return /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
|
|
5879
5897
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
5880
5898
|
const { role: a, content: n, name: o, processingTime: i } = t.message;
|
|
5881
|
-
return (a ===
|
|
5899
|
+
return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(
|
|
5882
5900
|
_l,
|
|
5883
5901
|
{
|
|
5884
5902
|
kind: "right",
|
|
@@ -5907,7 +5925,7 @@ const sa = fa(
|
|
|
5907
5925
|
}, zl = fa(
|
|
5908
5926
|
() => import(
|
|
5909
5927
|
/* webpackChunkName: "LazyHeader" */
|
|
5910
|
-
"./HeaderToolbar.
|
|
5928
|
+
"./HeaderToolbar.jkVrqvu1.js"
|
|
5911
5929
|
)
|
|
5912
5930
|
);
|
|
5913
5931
|
function un({ isComponent: e = !1 }) {
|
|
@@ -5916,7 +5934,7 @@ function un({ isComponent: e = !1 }) {
|
|
|
5916
5934
|
initialValue: ""
|
|
5917
5935
|
}), [n] = Mt({
|
|
5918
5936
|
key: At + On,
|
|
5919
|
-
initialValue:
|
|
5937
|
+
initialValue: Be.ASC
|
|
5920
5938
|
}), [o, i] = wt(Po, {
|
|
5921
5939
|
id: or(),
|
|
5922
5940
|
model: Te,
|
|
@@ -5942,7 +5960,7 @@ function un({ isComponent: e = !1 }) {
|
|
|
5942
5960
|
],
|
|
5943
5961
|
getAccessToken: r
|
|
5944
5962
|
}), Ti({ getAccessToken: r });
|
|
5945
|
-
const { data:
|
|
5963
|
+
const { data: u } = lr({
|
|
5946
5964
|
keys: [t == null ? void 0 : t.username],
|
|
5947
5965
|
getAccessToken: r
|
|
5948
5966
|
});
|
|
@@ -5953,13 +5971,13 @@ function un({ isComponent: e = !1 }) {
|
|
|
5953
5971
|
(p = document.getElementById("root")) == null || p.classList.replace("app-hidden", "fadeIn");
|
|
5954
5972
|
}, 500);
|
|
5955
5973
|
}), M(() => {
|
|
5956
|
-
|
|
5957
|
-
type:
|
|
5974
|
+
u && i({
|
|
5975
|
+
type: Ie,
|
|
5958
5976
|
payload: {
|
|
5959
|
-
engine:
|
|
5977
|
+
engine: u.engine || Te
|
|
5960
5978
|
}
|
|
5961
5979
|
});
|
|
5962
|
-
}, [
|
|
5980
|
+
}, [u]), /* @__PURE__ */ l(de.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ l(
|
|
5963
5981
|
Ci.Provider,
|
|
5964
5982
|
{
|
|
5965
5983
|
value: {
|
|
@@ -6006,7 +6024,7 @@ un.displayName = "App";
|
|
|
6006
6024
|
const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: un }, Symbol.toStringTag, { value: "Module" }));
|
|
6007
6025
|
export {
|
|
6008
6026
|
rc as App,
|
|
6009
|
-
|
|
6027
|
+
de as AppContext,
|
|
6010
6028
|
Hs as ConfirmationPanel,
|
|
6011
6029
|
Mt as E,
|
|
6012
6030
|
Ci as HistoryContext,
|
|
@@ -6016,7 +6034,7 @@ export {
|
|
|
6016
6034
|
We as SERVICE_TYPES,
|
|
6017
6035
|
Ke as _e,
|
|
6018
6036
|
Kl as be,
|
|
6019
|
-
|
|
6037
|
+
Be as f,
|
|
6020
6038
|
jl as ge,
|
|
6021
6039
|
ql as he,
|
|
6022
6040
|
mo as i,
|