teodor-new-chat-ui 4.1.29 → 4.1.31
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 +453 -454
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ var Fp = (e, t, n) => t in e ? $p(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var Ya = (e, t, n) => Fp(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import * as m from "react";
|
|
5
5
|
import V, { createContext as Jr, useContext as ts, useReducer as zp, useRef as Ge, useCallback as Me, useEffect as ct, useMemo as at, useState as xe, startTransition as zs, createElement as bo, useLayoutEffect as Bp } from "react";
|
|
6
|
-
import { Square as Hp, Send as Up, X as fr, ExternalLink as Wp, Download as Vp, Image as Kp, FileText as Xa, Loader as Oc, Bot as Ja, Wrench as qp, User as Gp, ChevronUp as
|
|
6
|
+
import { Square as Hp, Send as Up, X as fr, ExternalLink as Wp, Download as Vp, Image as Kp, FileText as Xa, Loader as Oc, Bot as Ja, Wrench as qp, User as Gp, ChevronUp as jr, ChevronDown as dr, Paperclip as gi, Copy as Za, Edit as Qa, RotateCcw as xi, ChevronRight as Yp, Check as Zi, Circle as Xp, Loader2 as vi, Edit3 as Mc, Plus as Jp, FileSpreadsheet as Zp, MessageSquarePlus as Qp, MessageSquare as em, Calendar as tm, Trash2 as nm, Settings as rm, Server as om, EyeOff as sm, Eye as im, Layout as am, MessageCircle as lm, Save as cm } from "lucide-react";
|
|
7
7
|
import { Slot as um, createSlot as vr } from "@radix-ui/react-slot";
|
|
8
8
|
import { cva as ns } from "class-variance-authority";
|
|
9
9
|
import { clsx as dm } from "clsx";
|
|
@@ -74,7 +74,7 @@ function pm() {
|
|
|
74
74
|
}
|
|
75
75
|
var R = !1, C = !1, T = !1, k = !1, I = !1, A;
|
|
76
76
|
A = Symbol.for("react.module.reference");
|
|
77
|
-
function
|
|
77
|
+
function _(b) {
|
|
78
78
|
return !!(typeof b == "string" || typeof b == "function" || b === r || b === s || I || b === o || b === u || b === d || k || b === p || R || C || T || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === f || b.$$typeof === i || b.$$typeof === a || b.$$typeof === l || // This needs to include all possible module reference object
|
|
79
79
|
// types supported by any Flight configuration anywhere since
|
|
80
80
|
// we don't know which Flight build this will end up being used
|
|
@@ -581,7 +581,7 @@ Check the top-level render call using <` + M + ">.");
|
|
|
581
581
|
}
|
|
582
582
|
function xt(b, N, M, H, X, Se) {
|
|
583
583
|
{
|
|
584
|
-
var we =
|
|
584
|
+
var we = _(b);
|
|
585
585
|
if (!we) {
|
|
586
586
|
var ge = "";
|
|
587
587
|
(b === void 0 || typeof b == "object" && b !== null && Object.keys(b).length === 0) && (ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -655,7 +655,7 @@ const xm = is("string"), Rt = is("function"), zc = is("number"), Qr = (e) => e !
|
|
|
655
655
|
let t;
|
|
656
656
|
return e && (typeof FormData == "function" && e instanceof FormData || Rt(e.append) && ((t = ss(e)) === "formdata" || // detect form-data instance
|
|
657
657
|
t === "object" && Rt(e.toString) && e.toString() === "[object FormData]"));
|
|
658
|
-
}, km = Jt("URLSearchParams"), [Em, Im, Nm, Am] = ["ReadableStream", "Request", "Response", "Headers"].map(Jt),
|
|
658
|
+
}, km = Jt("URLSearchParams"), [Em, Im, Nm, Am] = ["ReadableStream", "Request", "Response", "Headers"].map(Jt), _m = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
659
659
|
function eo(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
660
660
|
if (e === null || typeof e > "u")
|
|
661
661
|
return;
|
|
@@ -693,7 +693,7 @@ function bi() {
|
|
|
693
693
|
arguments[o] && eo(arguments[o], r);
|
|
694
694
|
return n;
|
|
695
695
|
}
|
|
696
|
-
const
|
|
696
|
+
const jm = (e, t, n, { allOwnKeys: r } = {}) => (eo(t, (o, s) => {
|
|
697
697
|
n && Rt(o) ? e[s] = Lc(o, n) : e[s] = o;
|
|
698
698
|
}, { allOwnKeys: r }), e), Pm = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Om = (e, t, n, r) => {
|
|
699
699
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
@@ -799,7 +799,7 @@ const Ym = (e) => {
|
|
|
799
799
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
800
800
|
typeof setImmediate == "function",
|
|
801
801
|
Rt(Bn.postMessage)
|
|
802
|
-
), Zm = typeof queueMicrotask < "u" ? queueMicrotask.bind(Bn) : typeof process < "u" && process.nextTick || Wc, Qm = (e) => e != null && Rt(e[os]),
|
|
802
|
+
), Zm = typeof queueMicrotask < "u" ? queueMicrotask.bind(Bn) : typeof process < "u" && process.nextTick || Wc, Qm = (e) => e != null && Rt(e[os]), j = {
|
|
803
803
|
isArray: Sr,
|
|
804
804
|
isArrayBuffer: Fc,
|
|
805
805
|
isBuffer: Zr,
|
|
@@ -827,8 +827,8 @@ const Ym = (e) => {
|
|
|
827
827
|
isFileList: Cm,
|
|
828
828
|
forEach: eo,
|
|
829
829
|
merge: bi,
|
|
830
|
-
extend:
|
|
831
|
-
trim:
|
|
830
|
+
extend: jm,
|
|
831
|
+
trim: _m,
|
|
832
832
|
stripBOM: Pm,
|
|
833
833
|
inherits: Om,
|
|
834
834
|
toFlatObject: Mm,
|
|
@@ -859,10 +859,10 @@ const Ym = (e) => {
|
|
|
859
859
|
asap: Zm,
|
|
860
860
|
isIterable: Qm
|
|
861
861
|
};
|
|
862
|
-
function
|
|
862
|
+
function _e(e, t, n, r, o) {
|
|
863
863
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
864
864
|
}
|
|
865
|
-
|
|
865
|
+
j.inherits(_e, Error, {
|
|
866
866
|
toJSON: function() {
|
|
867
867
|
return {
|
|
868
868
|
// Standard
|
|
@@ -877,13 +877,13 @@ _.inherits(je, Error, {
|
|
|
877
877
|
columnNumber: this.columnNumber,
|
|
878
878
|
stack: this.stack,
|
|
879
879
|
// Axios
|
|
880
|
-
config:
|
|
880
|
+
config: j.toJSONObject(this.config),
|
|
881
881
|
code: this.code,
|
|
882
882
|
status: this.status
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
});
|
|
886
|
-
const Vc =
|
|
886
|
+
const Vc = _e.prototype, Kc = {};
|
|
887
887
|
[
|
|
888
888
|
"ERR_BAD_OPTION_VALUE",
|
|
889
889
|
"ERR_BAD_OPTION",
|
|
@@ -901,22 +901,22 @@ const Vc = je.prototype, Kc = {};
|
|
|
901
901
|
].forEach((e) => {
|
|
902
902
|
Kc[e] = { value: e };
|
|
903
903
|
});
|
|
904
|
-
Object.defineProperties(
|
|
904
|
+
Object.defineProperties(_e, Kc);
|
|
905
905
|
Object.defineProperty(Vc, "isAxiosError", { value: !0 });
|
|
906
|
-
|
|
906
|
+
_e.from = (e, t, n, r, o, s) => {
|
|
907
907
|
const i = Object.create(Vc);
|
|
908
|
-
|
|
908
|
+
j.toFlatObject(e, i, function(d) {
|
|
909
909
|
return d !== Error.prototype;
|
|
910
910
|
}, (u) => u !== "isAxiosError");
|
|
911
911
|
const a = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
|
|
912
|
-
return
|
|
912
|
+
return _e.call(i, a, l, n, r, o), e && i.cause == null && Object.defineProperty(i, "cause", { value: e, configurable: !0 }), i.name = e && e.name || "Error", s && Object.assign(i, s), i;
|
|
913
913
|
};
|
|
914
914
|
const eg = null;
|
|
915
915
|
function yi(e) {
|
|
916
|
-
return
|
|
916
|
+
return j.isPlainObject(e) || j.isArray(e);
|
|
917
917
|
}
|
|
918
918
|
function qc(e) {
|
|
919
|
-
return
|
|
919
|
+
return j.endsWith(e, "[]") ? e.slice(0, -2) : e;
|
|
920
920
|
}
|
|
921
921
|
function rl(e, t, n) {
|
|
922
922
|
return e ? e.concat(t).map(function(o, s) {
|
|
@@ -924,42 +924,42 @@ function rl(e, t, n) {
|
|
|
924
924
|
}).join(n ? "." : "") : t;
|
|
925
925
|
}
|
|
926
926
|
function tg(e) {
|
|
927
|
-
return
|
|
927
|
+
return j.isArray(e) && !e.some(yi);
|
|
928
928
|
}
|
|
929
|
-
const ng =
|
|
929
|
+
const ng = j.toFlatObject(j, {}, null, function(t) {
|
|
930
930
|
return /^is[A-Z]/.test(t);
|
|
931
931
|
});
|
|
932
932
|
function as(e, t, n) {
|
|
933
|
-
if (!
|
|
933
|
+
if (!j.isObject(e))
|
|
934
934
|
throw new TypeError("target must be an object");
|
|
935
|
-
t = t || new FormData(), n =
|
|
935
|
+
t = t || new FormData(), n = j.toFlatObject(n, {
|
|
936
936
|
metaTokens: !0,
|
|
937
937
|
dots: !1,
|
|
938
938
|
indexes: !1
|
|
939
939
|
}, !1, function(v, g) {
|
|
940
|
-
return !
|
|
940
|
+
return !j.isUndefined(g[v]);
|
|
941
941
|
});
|
|
942
|
-
const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) &&
|
|
943
|
-
if (!
|
|
942
|
+
const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && j.isSpecCompliantForm(t);
|
|
943
|
+
if (!j.isFunction(o))
|
|
944
944
|
throw new TypeError("visitor must be a function");
|
|
945
945
|
function u(w) {
|
|
946
946
|
if (w === null) return "";
|
|
947
|
-
if (
|
|
947
|
+
if (j.isDate(w))
|
|
948
948
|
return w.toISOString();
|
|
949
|
-
if (
|
|
949
|
+
if (j.isBoolean(w))
|
|
950
950
|
return w.toString();
|
|
951
|
-
if (!l &&
|
|
952
|
-
throw new
|
|
953
|
-
return
|
|
951
|
+
if (!l && j.isBlob(w))
|
|
952
|
+
throw new _e("Blob is not supported. Use a Buffer instead.");
|
|
953
|
+
return j.isArrayBuffer(w) || j.isTypedArray(w) ? l && typeof Blob == "function" ? new Blob([w]) : Buffer.from(w) : w;
|
|
954
954
|
}
|
|
955
955
|
function d(w, v, g) {
|
|
956
956
|
let x = w;
|
|
957
957
|
if (w && !g && typeof w == "object") {
|
|
958
|
-
if (
|
|
958
|
+
if (j.endsWith(v, "{}"))
|
|
959
959
|
v = r ? v : v.slice(0, -2), w = JSON.stringify(w);
|
|
960
|
-
else if (
|
|
960
|
+
else if (j.isArray(w) && tg(w) || (j.isFileList(w) || j.endsWith(v, "[]")) && (x = j.toArray(w)))
|
|
961
961
|
return v = qc(v), x.forEach(function(S, R) {
|
|
962
|
-
!(
|
|
962
|
+
!(j.isUndefined(S) || S === null) && t.append(
|
|
963
963
|
// eslint-disable-next-line no-nested-ternary
|
|
964
964
|
i === !0 ? rl([v], R, s) : i === null ? v : v + "[]",
|
|
965
965
|
u(S)
|
|
@@ -974,21 +974,21 @@ function as(e, t, n) {
|
|
|
974
974
|
isVisitable: yi
|
|
975
975
|
});
|
|
976
976
|
function p(w, v) {
|
|
977
|
-
if (!
|
|
977
|
+
if (!j.isUndefined(w)) {
|
|
978
978
|
if (f.indexOf(w) !== -1)
|
|
979
979
|
throw Error("Circular reference detected in " + v.join("."));
|
|
980
|
-
f.push(w),
|
|
981
|
-
(!(
|
|
980
|
+
f.push(w), j.forEach(w, function(x, y) {
|
|
981
|
+
(!(j.isUndefined(x) || x === null) && o.call(
|
|
982
982
|
t,
|
|
983
983
|
x,
|
|
984
|
-
|
|
984
|
+
j.isString(y) ? y.trim() : y,
|
|
985
985
|
v,
|
|
986
986
|
h
|
|
987
987
|
)) === !0 && p(x, v ? v.concat(y) : [y]);
|
|
988
988
|
}), f.pop();
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
if (!
|
|
991
|
+
if (!j.isObject(e))
|
|
992
992
|
throw new TypeError("data must be an object");
|
|
993
993
|
return p(e), t;
|
|
994
994
|
}
|
|
@@ -1028,12 +1028,12 @@ function Yc(e, t, n) {
|
|
|
1028
1028
|
if (!t)
|
|
1029
1029
|
return e;
|
|
1030
1030
|
const r = n && n.encode || rg;
|
|
1031
|
-
|
|
1031
|
+
j.isFunction(n) && (n = {
|
|
1032
1032
|
serialize: n
|
|
1033
1033
|
});
|
|
1034
1034
|
const o = n && n.serialize;
|
|
1035
1035
|
let s;
|
|
1036
|
-
if (o ? s = o(t, n) : s =
|
|
1036
|
+
if (o ? s = o(t, n) : s = j.isURLSearchParams(t) ? t.toString() : new ea(t, n).toString(r), s) {
|
|
1037
1037
|
const i = e.indexOf("#");
|
|
1038
1038
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
|
|
1039
1039
|
}
|
|
@@ -1088,7 +1088,7 @@ class sl {
|
|
|
1088
1088
|
* @returns {void}
|
|
1089
1089
|
*/
|
|
1090
1090
|
forEach(t) {
|
|
1091
|
-
|
|
1091
|
+
j.forEach(this.handlers, function(r) {
|
|
1092
1092
|
r !== null && t(r);
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
@@ -1120,13 +1120,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ug
|
|
|
1120
1120
|
function fg(e, t) {
|
|
1121
1121
|
return as(e, new wt.classes.URLSearchParams(), {
|
|
1122
1122
|
visitor: function(n, r, o, s) {
|
|
1123
|
-
return wt.isNode &&
|
|
1123
|
+
return wt.isNode && j.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
|
|
1124
1124
|
},
|
|
1125
1125
|
...t
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
function hg(e) {
|
|
1129
|
-
return
|
|
1129
|
+
return j.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
1130
1130
|
}
|
|
1131
1131
|
function pg(e) {
|
|
1132
1132
|
const t = {}, n = Object.keys(e);
|
|
@@ -1142,20 +1142,20 @@ function Jc(e) {
|
|
|
1142
1142
|
let i = n[s++];
|
|
1143
1143
|
if (i === "__proto__") return !0;
|
|
1144
1144
|
const a = Number.isFinite(+i), l = s >= n.length;
|
|
1145
|
-
return i = !i &&
|
|
1145
|
+
return i = !i && j.isArray(o) ? o.length : i, l ? (j.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !j.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && j.isArray(o[i]) && (o[i] = pg(o[i])), !a);
|
|
1146
1146
|
}
|
|
1147
|
-
if (
|
|
1147
|
+
if (j.isFormData(e) && j.isFunction(e.entries)) {
|
|
1148
1148
|
const n = {};
|
|
1149
|
-
return
|
|
1149
|
+
return j.forEachEntry(e, (r, o) => {
|
|
1150
1150
|
t(hg(r), o, n, 0);
|
|
1151
1151
|
}), n;
|
|
1152
1152
|
}
|
|
1153
1153
|
return null;
|
|
1154
1154
|
}
|
|
1155
1155
|
function mg(e, t, n) {
|
|
1156
|
-
if (
|
|
1156
|
+
if (j.isString(e))
|
|
1157
1157
|
try {
|
|
1158
|
-
return (t || JSON.parse)(e),
|
|
1158
|
+
return (t || JSON.parse)(e), j.trim(e);
|
|
1159
1159
|
} catch (r) {
|
|
1160
1160
|
if (r.name !== "SyntaxError")
|
|
1161
1161
|
throw r;
|
|
@@ -1166,20 +1166,20 @@ const to = {
|
|
|
1166
1166
|
transitional: Xc,
|
|
1167
1167
|
adapter: ["xhr", "http", "fetch"],
|
|
1168
1168
|
transformRequest: [function(t, n) {
|
|
1169
|
-
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s =
|
|
1170
|
-
if (s &&
|
|
1169
|
+
const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = j.isObject(t);
|
|
1170
|
+
if (s && j.isHTMLForm(t) && (t = new FormData(t)), j.isFormData(t))
|
|
1171
1171
|
return o ? JSON.stringify(Jc(t)) : t;
|
|
1172
|
-
if (
|
|
1172
|
+
if (j.isArrayBuffer(t) || j.isBuffer(t) || j.isStream(t) || j.isFile(t) || j.isBlob(t) || j.isReadableStream(t))
|
|
1173
1173
|
return t;
|
|
1174
|
-
if (
|
|
1174
|
+
if (j.isArrayBufferView(t))
|
|
1175
1175
|
return t.buffer;
|
|
1176
|
-
if (
|
|
1176
|
+
if (j.isURLSearchParams(t))
|
|
1177
1177
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
1178
1178
|
let a;
|
|
1179
1179
|
if (s) {
|
|
1180
1180
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
1181
1181
|
return fg(t, this.formSerializer).toString();
|
|
1182
|
-
if ((a =
|
|
1182
|
+
if ((a = j.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
1183
1183
|
const l = this.env && this.env.FormData;
|
|
1184
1184
|
return as(
|
|
1185
1185
|
a ? { "files[]": t } : t,
|
|
@@ -1192,15 +1192,15 @@ const to = {
|
|
|
1192
1192
|
}],
|
|
1193
1193
|
transformResponse: [function(t) {
|
|
1194
1194
|
const n = this.transitional || to.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
1195
|
-
if (
|
|
1195
|
+
if (j.isResponse(t) || j.isReadableStream(t))
|
|
1196
1196
|
return t;
|
|
1197
|
-
if (t &&
|
|
1197
|
+
if (t && j.isString(t) && (r && !this.responseType || o)) {
|
|
1198
1198
|
const i = !(n && n.silentJSONParsing) && o;
|
|
1199
1199
|
try {
|
|
1200
1200
|
return JSON.parse(t, this.parseReviver);
|
|
1201
1201
|
} catch (a) {
|
|
1202
1202
|
if (i)
|
|
1203
|
-
throw a.name === "SyntaxError" ?
|
|
1203
|
+
throw a.name === "SyntaxError" ? _e.from(a, _e.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
1204
1204
|
}
|
|
1205
1205
|
}
|
|
1206
1206
|
return t;
|
|
@@ -1228,10 +1228,10 @@ const to = {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
|
-
|
|
1231
|
+
j.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
1232
1232
|
to.headers[e] = {};
|
|
1233
1233
|
});
|
|
1234
|
-
const gg =
|
|
1234
|
+
const gg = j.toObjectSet([
|
|
1235
1235
|
"age",
|
|
1236
1236
|
"authorization",
|
|
1237
1237
|
"content-length",
|
|
@@ -1257,11 +1257,11 @@ const gg = _.toObjectSet([
|
|
|
1257
1257
|
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && gg[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
1258
1258
|
}), t;
|
|
1259
1259
|
}, il = Symbol("internals");
|
|
1260
|
-
function
|
|
1260
|
+
function _r(e) {
|
|
1261
1261
|
return e && String(e).trim().toLowerCase();
|
|
1262
1262
|
}
|
|
1263
1263
|
function So(e) {
|
|
1264
|
-
return e === !1 || e == null ? e :
|
|
1264
|
+
return e === !1 || e == null ? e : j.isArray(e) ? e.map(So) : String(e);
|
|
1265
1265
|
}
|
|
1266
1266
|
function vg(e) {
|
|
1267
1267
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -1272,12 +1272,12 @@ function vg(e) {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
const wg = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
1274
1274
|
function Bs(e, t, n, r, o) {
|
|
1275
|
-
if (
|
|
1275
|
+
if (j.isFunction(r))
|
|
1276
1276
|
return r.call(this, t, n);
|
|
1277
|
-
if (o && (t = n), !!
|
|
1278
|
-
if (
|
|
1277
|
+
if (o && (t = n), !!j.isString(t)) {
|
|
1278
|
+
if (j.isString(r))
|
|
1279
1279
|
return t.indexOf(r) !== -1;
|
|
1280
|
-
if (
|
|
1280
|
+
if (j.isRegExp(r))
|
|
1281
1281
|
return r.test(t);
|
|
1282
1282
|
}
|
|
1283
1283
|
}
|
|
@@ -1285,7 +1285,7 @@ function bg(e) {
|
|
|
1285
1285
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
1286
1286
|
}
|
|
1287
1287
|
function yg(e, t) {
|
|
1288
|
-
const n =
|
|
1288
|
+
const n = j.toCamelCase(" " + t);
|
|
1289
1289
|
["get", "set", "has"].forEach((r) => {
|
|
1290
1290
|
Object.defineProperty(e, r + n, {
|
|
1291
1291
|
value: function(o, s, i) {
|
|
@@ -1302,23 +1302,23 @@ let kt = class {
|
|
|
1302
1302
|
set(t, n, r) {
|
|
1303
1303
|
const o = this;
|
|
1304
1304
|
function s(a, l, u) {
|
|
1305
|
-
const d =
|
|
1305
|
+
const d = _r(l);
|
|
1306
1306
|
if (!d)
|
|
1307
1307
|
throw new Error("header name must be a non-empty string");
|
|
1308
|
-
const f =
|
|
1308
|
+
const f = j.findKey(o, d);
|
|
1309
1309
|
(!f || o[f] === void 0 || u === !0 || u === void 0 && o[f] !== !1) && (o[f || l] = So(a));
|
|
1310
1310
|
}
|
|
1311
|
-
const i = (a, l) =>
|
|
1312
|
-
if (
|
|
1311
|
+
const i = (a, l) => j.forEach(a, (u, d) => s(u, d, l));
|
|
1312
|
+
if (j.isPlainObject(t) || t instanceof this.constructor)
|
|
1313
1313
|
i(t, n);
|
|
1314
|
-
else if (
|
|
1314
|
+
else if (j.isString(t) && (t = t.trim()) && !wg(t))
|
|
1315
1315
|
i(xg(t), n);
|
|
1316
|
-
else if (
|
|
1316
|
+
else if (j.isObject(t) && j.isIterable(t)) {
|
|
1317
1317
|
let a = {}, l, u;
|
|
1318
1318
|
for (const d of t) {
|
|
1319
|
-
if (!
|
|
1319
|
+
if (!j.isArray(d))
|
|
1320
1320
|
throw TypeError("Object iterator must return a key-value pair");
|
|
1321
|
-
a[u = d[0]] = (l = a[u]) ?
|
|
1321
|
+
a[u = d[0]] = (l = a[u]) ? j.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
|
|
1322
1322
|
}
|
|
1323
1323
|
i(a, n);
|
|
1324
1324
|
} else
|
|
@@ -1326,25 +1326,25 @@ let kt = class {
|
|
|
1326
1326
|
return this;
|
|
1327
1327
|
}
|
|
1328
1328
|
get(t, n) {
|
|
1329
|
-
if (t =
|
|
1330
|
-
const r =
|
|
1329
|
+
if (t = _r(t), t) {
|
|
1330
|
+
const r = j.findKey(this, t);
|
|
1331
1331
|
if (r) {
|
|
1332
1332
|
const o = this[r];
|
|
1333
1333
|
if (!n)
|
|
1334
1334
|
return o;
|
|
1335
1335
|
if (n === !0)
|
|
1336
1336
|
return vg(o);
|
|
1337
|
-
if (
|
|
1337
|
+
if (j.isFunction(n))
|
|
1338
1338
|
return n.call(this, o, r);
|
|
1339
|
-
if (
|
|
1339
|
+
if (j.isRegExp(n))
|
|
1340
1340
|
return n.exec(o);
|
|
1341
1341
|
throw new TypeError("parser must be boolean|regexp|function");
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
1345
|
has(t, n) {
|
|
1346
|
-
if (t =
|
|
1347
|
-
const r =
|
|
1346
|
+
if (t = _r(t), t) {
|
|
1347
|
+
const r = j.findKey(this, t);
|
|
1348
1348
|
return !!(r && this[r] !== void 0 && (!n || Bs(this, this[r], r, n)));
|
|
1349
1349
|
}
|
|
1350
1350
|
return !1;
|
|
@@ -1353,12 +1353,12 @@ let kt = class {
|
|
|
1353
1353
|
const r = this;
|
|
1354
1354
|
let o = !1;
|
|
1355
1355
|
function s(i) {
|
|
1356
|
-
if (i =
|
|
1357
|
-
const a =
|
|
1356
|
+
if (i = _r(i), i) {
|
|
1357
|
+
const a = j.findKey(r, i);
|
|
1358
1358
|
a && (!n || Bs(r, r[a], a, n)) && (delete r[a], o = !0);
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
return
|
|
1361
|
+
return j.isArray(t) ? t.forEach(s) : s(t), o;
|
|
1362
1362
|
}
|
|
1363
1363
|
clear(t) {
|
|
1364
1364
|
const n = Object.keys(this);
|
|
@@ -1371,8 +1371,8 @@ let kt = class {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
normalize(t) {
|
|
1373
1373
|
const n = this, r = {};
|
|
1374
|
-
return
|
|
1375
|
-
const i =
|
|
1374
|
+
return j.forEach(this, (o, s) => {
|
|
1375
|
+
const i = j.findKey(r, s);
|
|
1376
1376
|
if (i) {
|
|
1377
1377
|
n[i] = So(o), delete n[s];
|
|
1378
1378
|
return;
|
|
@@ -1386,8 +1386,8 @@ let kt = class {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
toJSON(t) {
|
|
1388
1388
|
const n = /* @__PURE__ */ Object.create(null);
|
|
1389
|
-
return
|
|
1390
|
-
r != null && r !== !1 && (n[o] = t &&
|
|
1389
|
+
return j.forEach(this, (r, o) => {
|
|
1390
|
+
r != null && r !== !1 && (n[o] = t && j.isArray(r) ? r.join(", ") : r);
|
|
1391
1391
|
}), n;
|
|
1392
1392
|
}
|
|
1393
1393
|
[Symbol.iterator]() {
|
|
@@ -1415,14 +1415,14 @@ let kt = class {
|
|
|
1415
1415
|
accessors: {}
|
|
1416
1416
|
}).accessors, o = this.prototype;
|
|
1417
1417
|
function s(i) {
|
|
1418
|
-
const a =
|
|
1418
|
+
const a = _r(i);
|
|
1419
1419
|
r[a] || (yg(o, i), r[a] = !0);
|
|
1420
1420
|
}
|
|
1421
|
-
return
|
|
1421
|
+
return j.isArray(t) ? t.forEach(s) : s(t), this;
|
|
1422
1422
|
}
|
|
1423
1423
|
};
|
|
1424
1424
|
kt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
1425
|
-
|
|
1425
|
+
j.reduceDescriptors(kt.prototype, ({ value: e }, t) => {
|
|
1426
1426
|
let n = t[0].toUpperCase() + t.slice(1);
|
|
1427
1427
|
return {
|
|
1428
1428
|
get: () => e,
|
|
@@ -1431,11 +1431,11 @@ _.reduceDescriptors(kt.prototype, ({ value: e }, t) => {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
};
|
|
1433
1433
|
});
|
|
1434
|
-
|
|
1434
|
+
j.freezeMethods(kt);
|
|
1435
1435
|
function Hs(e, t) {
|
|
1436
1436
|
const n = this || to, r = t || n, o = kt.from(r.headers);
|
|
1437
1437
|
let s = r.data;
|
|
1438
|
-
return
|
|
1438
|
+
return j.forEach(e, function(a) {
|
|
1439
1439
|
s = a.call(n, s, o.normalize(), t ? t.status : void 0);
|
|
1440
1440
|
}), o.normalize(), s;
|
|
1441
1441
|
}
|
|
@@ -1443,16 +1443,16 @@ function Zc(e) {
|
|
|
1443
1443
|
return !!(e && e.__CANCEL__);
|
|
1444
1444
|
}
|
|
1445
1445
|
function Cr(e, t, n) {
|
|
1446
|
-
|
|
1446
|
+
_e.call(this, e ?? "canceled", _e.ERR_CANCELED, t, n), this.name = "CanceledError";
|
|
1447
1447
|
}
|
|
1448
|
-
|
|
1448
|
+
j.inherits(Cr, _e, {
|
|
1449
1449
|
__CANCEL__: !0
|
|
1450
1450
|
});
|
|
1451
1451
|
function Qc(e, t, n) {
|
|
1452
1452
|
const r = n.config.validateStatus;
|
|
1453
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
1453
|
+
!n.status || !r || r(n.status) ? e(n) : t(new _e(
|
|
1454
1454
|
"Request failed with status code " + n.status,
|
|
1455
|
-
[
|
|
1455
|
+
[_e.ERR_BAD_REQUEST, _e.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
1456
1456
|
n.config,
|
|
1457
1457
|
n.request,
|
|
1458
1458
|
n
|
|
@@ -1516,7 +1516,7 @@ const Do = (e, t, n = 3) => {
|
|
|
1516
1516
|
total: e,
|
|
1517
1517
|
loaded: r
|
|
1518
1518
|
}), t[1]];
|
|
1519
|
-
}, ll = (e) => (...t) =>
|
|
1519
|
+
}, ll = (e) => (...t) => j.asap(() => e(...t)), Rg = wt.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, wt.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
1520
1520
|
new URL(wt.origin),
|
|
1521
1521
|
wt.navigator && /(msie|trident)/i.test(wt.navigator.userAgent)
|
|
1522
1522
|
) : () => !0, kg = wt.hasStandardBrowserEnv ? (
|
|
@@ -1524,7 +1524,7 @@ const Do = (e, t, n = 3) => {
|
|
|
1524
1524
|
{
|
|
1525
1525
|
write(e, t, n, r, o, s) {
|
|
1526
1526
|
const i = [e + "=" + encodeURIComponent(t)];
|
|
1527
|
-
|
|
1527
|
+
j.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), j.isString(r) && i.push("path=" + r), j.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
|
|
1528
1528
|
},
|
|
1529
1529
|
read(e) {
|
|
1530
1530
|
const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
|
|
@@ -1561,21 +1561,21 @@ function Vn(e, t) {
|
|
|
1561
1561
|
t = t || {};
|
|
1562
1562
|
const n = {};
|
|
1563
1563
|
function r(u, d, f, h) {
|
|
1564
|
-
return
|
|
1564
|
+
return j.isPlainObject(u) && j.isPlainObject(d) ? j.merge.call({ caseless: h }, u, d) : j.isPlainObject(d) ? j.merge({}, d) : j.isArray(d) ? d.slice() : d;
|
|
1565
1565
|
}
|
|
1566
1566
|
function o(u, d, f, h) {
|
|
1567
|
-
if (
|
|
1568
|
-
if (!
|
|
1567
|
+
if (j.isUndefined(d)) {
|
|
1568
|
+
if (!j.isUndefined(u))
|
|
1569
1569
|
return r(void 0, u, f, h);
|
|
1570
1570
|
} else return r(u, d, f, h);
|
|
1571
1571
|
}
|
|
1572
1572
|
function s(u, d) {
|
|
1573
|
-
if (!
|
|
1573
|
+
if (!j.isUndefined(d))
|
|
1574
1574
|
return r(void 0, d);
|
|
1575
1575
|
}
|
|
1576
1576
|
function i(u, d) {
|
|
1577
|
-
if (
|
|
1578
|
-
if (!
|
|
1577
|
+
if (j.isUndefined(d)) {
|
|
1578
|
+
if (!j.isUndefined(u))
|
|
1579
1579
|
return r(void 0, u);
|
|
1580
1580
|
} else return r(void 0, d);
|
|
1581
1581
|
}
|
|
@@ -1616,9 +1616,9 @@ function Vn(e, t) {
|
|
|
1616
1616
|
validateStatus: a,
|
|
1617
1617
|
headers: (u, d, f) => o(cl(u), cl(d), f, !0)
|
|
1618
1618
|
};
|
|
1619
|
-
return
|
|
1619
|
+
return j.forEach(Object.keys({ ...e, ...t }), function(d) {
|
|
1620
1620
|
const f = l[d] || o, h = f(e[d], t[d], d);
|
|
1621
|
-
|
|
1621
|
+
j.isUndefined(h) && f !== a || (n[d] = h);
|
|
1622
1622
|
}), n;
|
|
1623
1623
|
}
|
|
1624
1624
|
const tu = (e) => {
|
|
@@ -1627,17 +1627,17 @@ const tu = (e) => {
|
|
|
1627
1627
|
if (t.headers = i = kt.from(i), t.url = Yc(eu(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
|
|
1628
1628
|
"Authorization",
|
|
1629
1629
|
"Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
|
|
1630
|
-
),
|
|
1630
|
+
), j.isFormData(n)) {
|
|
1631
1631
|
if (wt.hasStandardBrowserEnv || wt.hasStandardBrowserWebWorkerEnv)
|
|
1632
1632
|
i.setContentType(void 0);
|
|
1633
|
-
else if (
|
|
1633
|
+
else if (j.isFunction(n.getHeaders)) {
|
|
1634
1634
|
const l = n.getHeaders(), u = ["content-type", "content-length"];
|
|
1635
1635
|
Object.entries(l).forEach(([d, f]) => {
|
|
1636
1636
|
u.includes(d.toLowerCase()) && i.set(d, f);
|
|
1637
1637
|
});
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
|
-
if (wt.hasStandardBrowserEnv && (r &&
|
|
1640
|
+
if (wt.hasStandardBrowserEnv && (r && j.isFunction(r) && (r = r(t)), r || r !== !1 && Rg(t.url))) {
|
|
1641
1641
|
const l = o && s && kg.read(s);
|
|
1642
1642
|
l && i.set(o, l);
|
|
1643
1643
|
}
|
|
@@ -1675,32 +1675,32 @@ const tu = (e) => {
|
|
|
1675
1675
|
"onloadend" in g ? g.onloadend = x : g.onreadystatechange = function() {
|
|
1676
1676
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
1677
1677
|
}, g.onabort = function() {
|
|
1678
|
-
g && (r(new
|
|
1678
|
+
g && (r(new _e("Request aborted", _e.ECONNABORTED, e, g)), g = null);
|
|
1679
1679
|
}, g.onerror = function(R) {
|
|
1680
|
-
const C = R && R.message ? R.message : "Network Error", T = new
|
|
1680
|
+
const C = R && R.message ? R.message : "Network Error", T = new _e(C, _e.ERR_NETWORK, e, g);
|
|
1681
1681
|
T.event = R || null, r(T), g = null;
|
|
1682
1682
|
}, g.ontimeout = function() {
|
|
1683
1683
|
let R = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
|
|
1684
1684
|
const C = o.transitional || Xc;
|
|
1685
|
-
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), r(new
|
|
1685
|
+
o.timeoutErrorMessage && (R = o.timeoutErrorMessage), r(new _e(
|
|
1686
1686
|
R,
|
|
1687
|
-
C.clarifyTimeoutError ?
|
|
1687
|
+
C.clarifyTimeoutError ? _e.ETIMEDOUT : _e.ECONNABORTED,
|
|
1688
1688
|
e,
|
|
1689
1689
|
g
|
|
1690
1690
|
)), g = null;
|
|
1691
|
-
}, s === void 0 && i.setContentType(null), "setRequestHeader" in g &&
|
|
1691
|
+
}, s === void 0 && i.setContentType(null), "setRequestHeader" in g && j.forEach(i.toJSON(), function(R, C) {
|
|
1692
1692
|
g.setRequestHeader(C, R);
|
|
1693
|
-
}),
|
|
1693
|
+
}), j.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), a && a !== "json" && (g.responseType = o.responseType), u && ([h, w] = Do(u, !0), g.addEventListener("progress", h)), l && g.upload && ([f, p] = Do(l), g.upload.addEventListener("progress", f), g.upload.addEventListener("loadend", p)), (o.cancelToken || o.signal) && (d = (S) => {
|
|
1694
1694
|
g && (r(!S || S.type ? new Cr(null, e, g) : S), g.abort(), g = null);
|
|
1695
1695
|
}, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
|
|
1696
1696
|
const y = Sg(o.url);
|
|
1697
1697
|
if (y && wt.protocols.indexOf(y) === -1) {
|
|
1698
|
-
r(new
|
|
1698
|
+
r(new _e("Unsupported protocol " + y + ":", _e.ERR_BAD_REQUEST, e));
|
|
1699
1699
|
return;
|
|
1700
1700
|
}
|
|
1701
1701
|
g.send(s || null);
|
|
1702
1702
|
});
|
|
1703
|
-
},
|
|
1703
|
+
}, _g = (e, t) => {
|
|
1704
1704
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
1705
1705
|
if (t || n) {
|
|
1706
1706
|
let r = new AbortController(), o;
|
|
@@ -1708,11 +1708,11 @@ const tu = (e) => {
|
|
|
1708
1708
|
if (!o) {
|
|
1709
1709
|
o = !0, a();
|
|
1710
1710
|
const d = u instanceof Error ? u : this.reason;
|
|
1711
|
-
r.abort(d instanceof
|
|
1711
|
+
r.abort(d instanceof _e ? d : new Cr(d instanceof Error ? d.message : d));
|
|
1712
1712
|
}
|
|
1713
1713
|
};
|
|
1714
1714
|
let i = t && setTimeout(() => {
|
|
1715
|
-
i = null, s(new
|
|
1715
|
+
i = null, s(new _e(`timeout ${t} of ms exceeded`, _e.ETIMEDOUT));
|
|
1716
1716
|
}, t);
|
|
1717
1717
|
const a = () => {
|
|
1718
1718
|
e && (i && clearTimeout(i), i = null, e.forEach((u) => {
|
|
@@ -1721,9 +1721,9 @@ const tu = (e) => {
|
|
|
1721
1721
|
};
|
|
1722
1722
|
e.forEach((u) => u.addEventListener("abort", s));
|
|
1723
1723
|
const { signal: l } = r;
|
|
1724
|
-
return l.unsubscribe = () =>
|
|
1724
|
+
return l.unsubscribe = () => j.asap(a), l;
|
|
1725
1725
|
}
|
|
1726
|
-
},
|
|
1726
|
+
}, jg = function* (e, t) {
|
|
1727
1727
|
let n = e.byteLength;
|
|
1728
1728
|
if (n < t) {
|
|
1729
1729
|
yield e;
|
|
@@ -1734,7 +1734,7 @@ const tu = (e) => {
|
|
|
1734
1734
|
o = r + t, yield e.slice(r, o), r = o;
|
|
1735
1735
|
}, Pg = async function* (e, t) {
|
|
1736
1736
|
for await (const n of Og(e))
|
|
1737
|
-
yield*
|
|
1737
|
+
yield* jg(n, t);
|
|
1738
1738
|
}, Og = async function* (e) {
|
|
1739
1739
|
if (e[Symbol.asyncIterator]) {
|
|
1740
1740
|
yield* e;
|
|
@@ -1780,20 +1780,20 @@ const tu = (e) => {
|
|
|
1780
1780
|
}, {
|
|
1781
1781
|
highWaterMark: 2
|
|
1782
1782
|
});
|
|
1783
|
-
}, dl = 64 * 1024, { isFunction: co } =
|
|
1783
|
+
}, dl = 64 * 1024, { isFunction: co } = j, Mg = (({ Request: e, Response: t }) => ({
|
|
1784
1784
|
Request: e,
|
|
1785
1785
|
Response: t
|
|
1786
|
-
}))(
|
|
1786
|
+
}))(j.global), {
|
|
1787
1787
|
ReadableStream: fl,
|
|
1788
1788
|
TextEncoder: hl
|
|
1789
|
-
} =
|
|
1789
|
+
} = j.global, pl = (e, ...t) => {
|
|
1790
1790
|
try {
|
|
1791
1791
|
return !!e(...t);
|
|
1792
1792
|
} catch {
|
|
1793
1793
|
return !1;
|
|
1794
1794
|
}
|
|
1795
1795
|
}, Dg = (e) => {
|
|
1796
|
-
e =
|
|
1796
|
+
e = j.merge.call({
|
|
1797
1797
|
skipUndefined: !0
|
|
1798
1798
|
}, Mg, e);
|
|
1799
1799
|
const { fetch: t, Request: n, Response: r } = e, o = t ? co(t) : typeof fetch == "function", s = co(n), i = co(r);
|
|
@@ -1809,7 +1809,7 @@ const tu = (e) => {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
}).headers.has("Content-Type");
|
|
1811
1811
|
return w && !v;
|
|
1812
|
-
}), d = i && a && pl(() =>
|
|
1812
|
+
}), d = i && a && pl(() => j.isReadableStream(new r("").body)), f = {
|
|
1813
1813
|
stream: d && ((w) => w.body)
|
|
1814
1814
|
};
|
|
1815
1815
|
o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((w) => {
|
|
@@ -1817,25 +1817,25 @@ const tu = (e) => {
|
|
|
1817
1817
|
let x = v && v[w];
|
|
1818
1818
|
if (x)
|
|
1819
1819
|
return x.call(v);
|
|
1820
|
-
throw new
|
|
1820
|
+
throw new _e(`Response type '${w}' is not supported`, _e.ERR_NOT_SUPPORT, g);
|
|
1821
1821
|
});
|
|
1822
1822
|
});
|
|
1823
1823
|
const h = async (w) => {
|
|
1824
1824
|
if (w == null)
|
|
1825
1825
|
return 0;
|
|
1826
|
-
if (
|
|
1826
|
+
if (j.isBlob(w))
|
|
1827
1827
|
return w.size;
|
|
1828
|
-
if (
|
|
1828
|
+
if (j.isSpecCompliantForm(w))
|
|
1829
1829
|
return (await new n(wt.origin, {
|
|
1830
1830
|
method: "POST",
|
|
1831
1831
|
body: w
|
|
1832
1832
|
}).arrayBuffer()).byteLength;
|
|
1833
|
-
if (
|
|
1833
|
+
if (j.isArrayBufferView(w) || j.isArrayBuffer(w))
|
|
1834
1834
|
return w.byteLength;
|
|
1835
|
-
if (
|
|
1835
|
+
if (j.isURLSearchParams(w) && (w = w + ""), j.isString(w))
|
|
1836
1836
|
return (await l(w)).byteLength;
|
|
1837
1837
|
}, p = async (w, v) => {
|
|
1838
|
-
const g =
|
|
1838
|
+
const g = j.toFiniteNumber(w.getContentLength());
|
|
1839
1839
|
return g ?? h(v);
|
|
1840
1840
|
};
|
|
1841
1841
|
return async (w) => {
|
|
@@ -1851,10 +1851,10 @@ const tu = (e) => {
|
|
|
1851
1851
|
responseType: k,
|
|
1852
1852
|
headers: I,
|
|
1853
1853
|
withCredentials: A = "same-origin",
|
|
1854
|
-
fetchOptions:
|
|
1854
|
+
fetchOptions: _
|
|
1855
1855
|
} = tu(w), D = t || fetch;
|
|
1856
1856
|
k = k ? (k + "").toLowerCase() : "text";
|
|
1857
|
-
let L =
|
|
1857
|
+
let L = _g([y, S && S.toAbortSignal()], R), W = null;
|
|
1858
1858
|
const P = L && L.unsubscribe && (() => {
|
|
1859
1859
|
L.unsubscribe();
|
|
1860
1860
|
});
|
|
@@ -1866,7 +1866,7 @@ const tu = (e) => {
|
|
|
1866
1866
|
body: x,
|
|
1867
1867
|
duplex: "half"
|
|
1868
1868
|
}), pe;
|
|
1869
|
-
if (
|
|
1869
|
+
if (j.isFormData(x) && (pe = B.headers.get("content-type")) && I.setContentType(pe), B.body) {
|
|
1870
1870
|
const [ue, ee] = al(
|
|
1871
1871
|
Y,
|
|
1872
1872
|
Do(ll(T))
|
|
@@ -1874,9 +1874,9 @@ const tu = (e) => {
|
|
|
1874
1874
|
x = ul(B.body, dl, ue, ee);
|
|
1875
1875
|
}
|
|
1876
1876
|
}
|
|
1877
|
-
|
|
1877
|
+
j.isString(A) || (A = A ? "include" : "omit");
|
|
1878
1878
|
const K = s && "credentials" in n.prototype, J = {
|
|
1879
|
-
...
|
|
1879
|
+
..._,
|
|
1880
1880
|
signal: L,
|
|
1881
1881
|
method: g.toUpperCase(),
|
|
1882
1882
|
headers: I.normalize().toJSON(),
|
|
@@ -1885,14 +1885,14 @@ const tu = (e) => {
|
|
|
1885
1885
|
credentials: K ? A : void 0
|
|
1886
1886
|
};
|
|
1887
1887
|
W = s && new n(v, J);
|
|
1888
|
-
let z = await (s ? D(W,
|
|
1888
|
+
let z = await (s ? D(W, _) : D(v, J));
|
|
1889
1889
|
const $ = d && (k === "stream" || k === "response");
|
|
1890
1890
|
if (d && (C || $ && P)) {
|
|
1891
1891
|
const B = {};
|
|
1892
1892
|
["status", "statusText", "headers"].forEach((Ie) => {
|
|
1893
1893
|
B[Ie] = z[Ie];
|
|
1894
1894
|
});
|
|
1895
|
-
const pe =
|
|
1895
|
+
const pe = j.toFiniteNumber(z.headers.get("content-length")), [ue, ee] = C && al(
|
|
1896
1896
|
pe,
|
|
1897
1897
|
Do(ll(C), !0)
|
|
1898
1898
|
) || [];
|
|
@@ -1904,7 +1904,7 @@ const tu = (e) => {
|
|
|
1904
1904
|
);
|
|
1905
1905
|
}
|
|
1906
1906
|
k = k || "text";
|
|
1907
|
-
let F = await f[
|
|
1907
|
+
let F = await f[j.findKey(f, k) || "text"](z, w);
|
|
1908
1908
|
return !$ && P && P(), await new Promise((B, pe) => {
|
|
1909
1909
|
Qc(B, pe, {
|
|
1910
1910
|
data: F,
|
|
@@ -1917,11 +1917,11 @@ const tu = (e) => {
|
|
|
1917
1917
|
});
|
|
1918
1918
|
} catch (K) {
|
|
1919
1919
|
throw P && P(), K && K.name === "TypeError" && /Load failed|fetch/i.test(K.message) ? Object.assign(
|
|
1920
|
-
new
|
|
1920
|
+
new _e("Network Error", _e.ERR_NETWORK, w, W),
|
|
1921
1921
|
{
|
|
1922
1922
|
cause: K.cause || K
|
|
1923
1923
|
}
|
|
1924
|
-
) :
|
|
1924
|
+
) : _e.from(K, K && K.code, w, W);
|
|
1925
1925
|
}
|
|
1926
1926
|
};
|
|
1927
1927
|
}, Lg = /* @__PURE__ */ new Map(), nu = (e) => {
|
|
@@ -1944,7 +1944,7 @@ const Ci = {
|
|
|
1944
1944
|
get: nu
|
|
1945
1945
|
}
|
|
1946
1946
|
};
|
|
1947
|
-
|
|
1947
|
+
j.forEach(Ci, (e, t) => {
|
|
1948
1948
|
if (e) {
|
|
1949
1949
|
try {
|
|
1950
1950
|
Object.defineProperty(e, "name", { value: t });
|
|
@@ -1953,9 +1953,9 @@ _.forEach(Ci, (e, t) => {
|
|
|
1953
1953
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
|
-
const ml = (e) => `- ${e}`, $g = (e) =>
|
|
1956
|
+
const ml = (e) => `- ${e}`, $g = (e) => j.isFunction(e) || e === null || e === !1, ru = {
|
|
1957
1957
|
getAdapter: (e, t) => {
|
|
1958
|
-
e =
|
|
1958
|
+
e = j.isArray(e) ? e : [e];
|
|
1959
1959
|
const { length: n } = e;
|
|
1960
1960
|
let r, o;
|
|
1961
1961
|
const s = {};
|
|
@@ -1963,8 +1963,8 @@ const ml = (e) => `- ${e}`, $g = (e) => _.isFunction(e) || e === null || e === !
|
|
|
1963
1963
|
r = e[i];
|
|
1964
1964
|
let a;
|
|
1965
1965
|
if (o = r, !$g(r) && (o = Ci[(a = String(r)).toLowerCase()], o === void 0))
|
|
1966
|
-
throw new
|
|
1967
|
-
if (o && (
|
|
1966
|
+
throw new _e(`Unknown adapter '${a}'`);
|
|
1967
|
+
if (o && (j.isFunction(o) || (o = o.get(t))))
|
|
1968
1968
|
break;
|
|
1969
1969
|
s[a || "#" + i] = o;
|
|
1970
1970
|
}
|
|
@@ -1975,7 +1975,7 @@ const ml = (e) => `- ${e}`, $g = (e) => _.isFunction(e) || e === null || e === !
|
|
|
1975
1975
|
let a = n ? i.length > 1 ? `since :
|
|
1976
1976
|
` + i.map(ml).join(`
|
|
1977
1977
|
`) : " " + ml(i[0]) : "as no adapter specified";
|
|
1978
|
-
throw new
|
|
1978
|
+
throw new _e(
|
|
1979
1979
|
"There is no suitable adapter to dispatch the request " + a,
|
|
1980
1980
|
"ERR_NOT_SUPPORT"
|
|
1981
1981
|
);
|
|
@@ -2019,9 +2019,9 @@ ls.transitional = function(t, n, r) {
|
|
|
2019
2019
|
}
|
|
2020
2020
|
return (s, i, a) => {
|
|
2021
2021
|
if (t === !1)
|
|
2022
|
-
throw new
|
|
2022
|
+
throw new _e(
|
|
2023
2023
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
2024
|
-
|
|
2024
|
+
_e.ERR_DEPRECATED
|
|
2025
2025
|
);
|
|
2026
2026
|
return n && !xl[i] && (xl[i] = !0, console.warn(
|
|
2027
2027
|
o(
|
|
@@ -2036,7 +2036,7 @@ ls.spelling = function(t) {
|
|
|
2036
2036
|
};
|
|
2037
2037
|
function Fg(e, t, n) {
|
|
2038
2038
|
if (typeof e != "object")
|
|
2039
|
-
throw new
|
|
2039
|
+
throw new _e("options must be an object", _e.ERR_BAD_OPTION_VALUE);
|
|
2040
2040
|
const r = Object.keys(e);
|
|
2041
2041
|
let o = r.length;
|
|
2042
2042
|
for (; o-- > 0; ) {
|
|
@@ -2044,11 +2044,11 @@ function Fg(e, t, n) {
|
|
|
2044
2044
|
if (i) {
|
|
2045
2045
|
const a = e[s], l = a === void 0 || i(a, s, e);
|
|
2046
2046
|
if (l !== !0)
|
|
2047
|
-
throw new
|
|
2047
|
+
throw new _e("option " + s + " must be " + l, _e.ERR_BAD_OPTION_VALUE);
|
|
2048
2048
|
continue;
|
|
2049
2049
|
}
|
|
2050
2050
|
if (n !== !0)
|
|
2051
|
-
throw new
|
|
2051
|
+
throw new _e("Unknown option " + s, _e.ERR_BAD_OPTION);
|
|
2052
2052
|
}
|
|
2053
2053
|
}
|
|
2054
2054
|
const Co = {
|
|
@@ -2094,7 +2094,7 @@ let Un = class {
|
|
|
2094
2094
|
silentJSONParsing: nn.transitional(nn.boolean),
|
|
2095
2095
|
forcedJSONParsing: nn.transitional(nn.boolean),
|
|
2096
2096
|
clarifyTimeoutError: nn.transitional(nn.boolean)
|
|
2097
|
-
}, !1), o != null && (
|
|
2097
|
+
}, !1), o != null && (j.isFunction(o) ? n.paramsSerializer = {
|
|
2098
2098
|
serialize: o
|
|
2099
2099
|
} : Co.assertOptions(o, {
|
|
2100
2100
|
encode: nn.function,
|
|
@@ -2103,11 +2103,11 @@ let Un = class {
|
|
|
2103
2103
|
baseUrl: nn.spelling("baseURL"),
|
|
2104
2104
|
withXsrfToken: nn.spelling("withXSRFToken")
|
|
2105
2105
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
2106
|
-
let i = s &&
|
|
2106
|
+
let i = s && j.merge(
|
|
2107
2107
|
s.common,
|
|
2108
2108
|
s[n.method]
|
|
2109
2109
|
);
|
|
2110
|
-
s &&
|
|
2110
|
+
s && j.forEach(
|
|
2111
2111
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
2112
2112
|
(w) => {
|
|
2113
2113
|
delete s[w];
|
|
@@ -2155,7 +2155,7 @@ let Un = class {
|
|
|
2155
2155
|
return Yc(n, t.params, t.paramsSerializer);
|
|
2156
2156
|
}
|
|
2157
2157
|
};
|
|
2158
|
-
|
|
2158
|
+
j.forEach(["delete", "get", "head", "options"], function(t) {
|
|
2159
2159
|
Un.prototype[t] = function(n, r) {
|
|
2160
2160
|
return this.request(Vn(r || {}, {
|
|
2161
2161
|
method: t,
|
|
@@ -2164,7 +2164,7 @@ _.forEach(["delete", "get", "head", "options"], function(t) {
|
|
|
2164
2164
|
}));
|
|
2165
2165
|
};
|
|
2166
2166
|
});
|
|
2167
|
-
|
|
2167
|
+
j.forEach(["post", "put", "patch"], function(t) {
|
|
2168
2168
|
function n(r) {
|
|
2169
2169
|
return function(s, i, a) {
|
|
2170
2170
|
return this.request(Vn(a || {}, {
|
|
@@ -2258,7 +2258,7 @@ function Bg(e) {
|
|
|
2258
2258
|
};
|
|
2259
2259
|
}
|
|
2260
2260
|
function Hg(e) {
|
|
2261
|
-
return
|
|
2261
|
+
return j.isObject(e) && e.isAxiosError === !0;
|
|
2262
2262
|
}
|
|
2263
2263
|
const Ti = {
|
|
2264
2264
|
Continue: 100,
|
|
@@ -2330,7 +2330,7 @@ Object.entries(Ti).forEach(([e, t]) => {
|
|
|
2330
2330
|
});
|
|
2331
2331
|
function iu(e) {
|
|
2332
2332
|
const t = new Un(e), n = Lc(Un.prototype.request, t);
|
|
2333
|
-
return
|
|
2333
|
+
return j.extend(n, Un.prototype, t, { allOwnKeys: !0 }), j.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
|
|
2334
2334
|
return iu(Vn(e, o));
|
|
2335
2335
|
}, n;
|
|
2336
2336
|
}
|
|
@@ -2341,7 +2341,7 @@ ut.CancelToken = zg;
|
|
|
2341
2341
|
ut.isCancel = Zc;
|
|
2342
2342
|
ut.VERSION = ou;
|
|
2343
2343
|
ut.toFormData = as;
|
|
2344
|
-
ut.AxiosError =
|
|
2344
|
+
ut.AxiosError = _e;
|
|
2345
2345
|
ut.Cancel = ut.CanceledError;
|
|
2346
2346
|
ut.all = function(t) {
|
|
2347
2347
|
return Promise.all(t);
|
|
@@ -2350,7 +2350,7 @@ ut.spread = Bg;
|
|
|
2350
2350
|
ut.isAxiosError = Hg;
|
|
2351
2351
|
ut.mergeConfig = Vn;
|
|
2352
2352
|
ut.AxiosHeaders = kt;
|
|
2353
|
-
ut.formToJSON = (e) => Jc(
|
|
2353
|
+
ut.formToJSON = (e) => Jc(j.isHTMLForm(e) ? new FormData(e) : e);
|
|
2354
2354
|
ut.getAdapter = ru.getAdapter;
|
|
2355
2355
|
ut.HttpStatusCode = Ti;
|
|
2356
2356
|
ut.default = ut;
|
|
@@ -2358,8 +2358,8 @@ const {
|
|
|
2358
2358
|
Axios: IT,
|
|
2359
2359
|
AxiosError: NT,
|
|
2360
2360
|
CanceledError: AT,
|
|
2361
|
-
isCancel:
|
|
2362
|
-
CancelToken:
|
|
2361
|
+
isCancel: _T,
|
|
2362
|
+
CancelToken: jT,
|
|
2363
2363
|
VERSION: PT,
|
|
2364
2364
|
all: OT,
|
|
2365
2365
|
Cancel: MT,
|
|
@@ -2845,20 +2845,19 @@ function ox(e, t) {
|
|
|
2845
2845
|
if (!s) continue;
|
|
2846
2846
|
if ((o == null ? void 0 : o.type) === "text") {
|
|
2847
2847
|
const i = o, a = i.text ?? "";
|
|
2848
|
-
if (
|
|
2848
|
+
if (!a) {
|
|
2849
2849
|
i.text = s;
|
|
2850
2850
|
continue;
|
|
2851
2851
|
}
|
|
2852
2852
|
if (s.startsWith(a)) {
|
|
2853
|
-
|
|
2853
|
+
i.text = s;
|
|
2854
2854
|
continue;
|
|
2855
2855
|
}
|
|
2856
|
-
|
|
2857
|
-
|
|
2856
|
+
const l = 3, u = /^[^\w\s]+$/.test(s);
|
|
2857
|
+
if (a.includes(s) && s.length <= l && !u)
|
|
2858
2858
|
continue;
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
l ? (console.debug("[MessageReducer] suffix computed", { suffixLength: l.length }), i.text = a + l) : (console.debug("[MessageReducer] no overlap detected - appending incoming", { incomingLength: s.length }), i.text = a + s);
|
|
2859
|
+
const d = sx(a, s);
|
|
2860
|
+
d ? i.text = a + d : i.text = a + s;
|
|
2862
2861
|
} else
|
|
2863
2862
|
n.push({ type: "text", text: s });
|
|
2864
2863
|
} else
|
|
@@ -2889,15 +2888,15 @@ function ax(e) {
|
|
|
2889
2888
|
return t[t.length - 1] || null;
|
|
2890
2889
|
}
|
|
2891
2890
|
function lx(e = {}) {
|
|
2892
|
-
const t = at(() => gn(e.baseUrl), [e.baseUrl]), n = e.streamPath ?? "/runs/stream", [r, o] = xe(e.token ?? null), s = Ge(e.headers ?? {}), i = e.credentials ?? "include", [a, l] = xe(!1), [u, d] = xe(null), [f, h] = xe(""), [p, w] = xe(null), [v, g] = xe(0), [x, y] = xe(!1), S = Ge(null), R = Ge(!0), C = Ge(0), T = Me((
|
|
2893
|
-
o(
|
|
2891
|
+
const t = at(() => gn(e.baseUrl), [e.baseUrl]), n = e.streamPath ?? "/runs/stream", [r, o] = xe(e.token ?? null), s = Ge(e.headers ?? {}), i = e.credentials ?? "include", [a, l] = xe(!1), [u, d] = xe(null), [f, h] = xe(""), [p, w] = xe(null), [v, g] = xe(0), [x, y] = xe(!1), S = Ge(null), R = Ge(!0), C = Ge(0), T = Me((_) => {
|
|
2892
|
+
o(_);
|
|
2894
2893
|
}, []), k = Me(() => {
|
|
2895
|
-
var
|
|
2896
|
-
(
|
|
2894
|
+
var _;
|
|
2895
|
+
(_ = S.current) == null || _.abort(), S.current = null, l(!1), y(!1), C.current = 0, g(0);
|
|
2897
2896
|
}, []), I = Me(() => {
|
|
2898
2897
|
h(""), w(null), d(null);
|
|
2899
2898
|
}, []), A = Me(
|
|
2900
|
-
(
|
|
2899
|
+
(_, D, L) => {
|
|
2901
2900
|
S.current && (S.current.abort(), S.current = null), l(!0), d(null), e.autoAppendAssistant !== !1 && h("");
|
|
2902
2901
|
const W = new AbortController();
|
|
2903
2902
|
return S.current = W, (async () => {
|
|
@@ -2935,7 +2934,7 @@ function lx(e = {}) {
|
|
|
2935
2934
|
console.debug(
|
|
2936
2935
|
"[use-chat] POST",
|
|
2937
2936
|
t + n,
|
|
2938
|
-
P(
|
|
2937
|
+
P(_)
|
|
2939
2938
|
);
|
|
2940
2939
|
const ee = await fetch(t + n, {
|
|
2941
2940
|
method: "POST",
|
|
@@ -2945,7 +2944,7 @@ function lx(e = {}) {
|
|
|
2945
2944
|
...ue,
|
|
2946
2945
|
...s.current
|
|
2947
2946
|
},
|
|
2948
|
-
body: JSON.stringify(
|
|
2947
|
+
body: JSON.stringify(_),
|
|
2949
2948
|
signal: W.signal,
|
|
2950
2949
|
credentials: i
|
|
2951
2950
|
});
|
|
@@ -3055,8 +3054,8 @@ function lx(e = {}) {
|
|
|
3055
3054
|
[t, n, r, e.autoAppendAssistant]
|
|
3056
3055
|
);
|
|
3057
3056
|
return ct(() => () => {
|
|
3058
|
-
var
|
|
3059
|
-
R.current = !1, (
|
|
3057
|
+
var _;
|
|
3058
|
+
R.current = !1, (_ = S.current) == null || _.abort();
|
|
3060
3059
|
}, []), {
|
|
3061
3060
|
isStreaming: a,
|
|
3062
3061
|
error: u,
|
|
@@ -3310,7 +3309,7 @@ function wx({
|
|
|
3310
3309
|
Gs(f, (b = l.getAuthToken) == null ? void 0 : b.call(l))
|
|
3311
3310
|
);
|
|
3312
3311
|
return Ys(E);
|
|
3313
|
-
}), k = at(() => Xs(C), [C]), [I, A] = xe(t), [
|
|
3312
|
+
}), k = at(() => Xs(C), [C]), [I, A] = xe(t), [_, D] = xe(!1), [L, W] = xe(!1), [P, Y] = xe(!1), [K, J] = xe(!1), [z, $] = xe(null), [F, B] = xe(void 0), [pe, ue] = xe(void 0), {
|
|
3314
3313
|
state: ee,
|
|
3315
3314
|
seed: Ie,
|
|
3316
3315
|
prepend: Ce,
|
|
@@ -3816,7 +3815,7 @@ function wx({
|
|
|
3816
3815
|
() => ({
|
|
3817
3816
|
threads: k,
|
|
3818
3817
|
currentThreadId: I,
|
|
3819
|
-
isLoadingThreads:
|
|
3818
|
+
isLoadingThreads: _,
|
|
3820
3819
|
isLoadingThread: L,
|
|
3821
3820
|
setCurrentThreadId: A,
|
|
3822
3821
|
createThread: bn,
|
|
@@ -3835,7 +3834,7 @@ function wx({
|
|
|
3835
3834
|
I,
|
|
3836
3835
|
yn,
|
|
3837
3836
|
L,
|
|
3838
|
-
|
|
3837
|
+
_,
|
|
3839
3838
|
ir,
|
|
3840
3839
|
Dt,
|
|
3841
3840
|
re,
|
|
@@ -4015,8 +4014,8 @@ function Sx({
|
|
|
4015
4014
|
const A = (h ?? "").trim();
|
|
4016
4015
|
!A && !f || v(() => {
|
|
4017
4016
|
try {
|
|
4018
|
-
const
|
|
4019
|
-
|
|
4017
|
+
const _ = i(A);
|
|
4018
|
+
_ && typeof _.then == "function" ? _.then(() => {
|
|
4020
4019
|
p(""), g.current && (g.current.style.height = "auto");
|
|
4021
4020
|
}).catch(() => {
|
|
4022
4021
|
}) : (p(""), g.current && (g.current.style.height = "auto"));
|
|
@@ -4115,7 +4114,7 @@ function rt(...e) {
|
|
|
4115
4114
|
function Ye(e, t) {
|
|
4116
4115
|
return e(Nn, t);
|
|
4117
4116
|
}
|
|
4118
|
-
function
|
|
4117
|
+
function je(e, t) {
|
|
4119
4118
|
e(cs, t);
|
|
4120
4119
|
}
|
|
4121
4120
|
function sa(e) {
|
|
@@ -4267,7 +4266,7 @@ function Be() {
|
|
|
4267
4266
|
}
|
|
4268
4267
|
};
|
|
4269
4268
|
}
|
|
4270
|
-
function
|
|
4269
|
+
function jt(e) {
|
|
4271
4270
|
return us(Be(), (t) => fe(e, t));
|
|
4272
4271
|
}
|
|
4273
4272
|
function Ve(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
@@ -4279,7 +4278,7 @@ function Ve(e, t = [], { singleton: n } = { singleton: !0 }) {
|
|
|
4279
4278
|
};
|
|
4280
4279
|
}
|
|
4281
4280
|
const Ax = () => Symbol();
|
|
4282
|
-
function
|
|
4281
|
+
function _x(e) {
|
|
4283
4282
|
const t = /* @__PURE__ */ new Map(), n = ({ constructor: r, dependencies: o, id: s, singleton: i }) => {
|
|
4284
4283
|
if (i && t.has(s))
|
|
4285
4284
|
return t.get(s);
|
|
@@ -4295,7 +4294,7 @@ function dt(...e) {
|
|
|
4295
4294
|
return e.forEach((s, i) => {
|
|
4296
4295
|
const a = Math.pow(2, i);
|
|
4297
4296
|
Ye(s, (l) => {
|
|
4298
|
-
n[i] = l, r = r | a, r === o &&
|
|
4297
|
+
n[i] = l, r = r | a, r === o && je(t, n);
|
|
4299
4298
|
});
|
|
4300
4299
|
}), function(s, i) {
|
|
4301
4300
|
switch (s) {
|
|
@@ -4322,7 +4321,7 @@ function Ii(...e) {
|
|
|
4322
4321
|
};
|
|
4323
4322
|
}
|
|
4324
4323
|
var Et = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e))(Et || {});
|
|
4325
|
-
const
|
|
4324
|
+
const jx = {
|
|
4326
4325
|
0: "debug",
|
|
4327
4326
|
3: "error",
|
|
4328
4327
|
1: "log",
|
|
@@ -4337,7 +4336,7 @@ const _x = {
|
|
|
4337
4336
|
log: Z((t, n, r = 1) => {
|
|
4338
4337
|
var o;
|
|
4339
4338
|
const s = (o = Px().VIRTUOSO_LOG_LEVEL) != null ? o : lt(e);
|
|
4340
|
-
r >= s && console[
|
|
4339
|
+
r >= s && console[jx[r]](
|
|
4341
4340
|
"%creact-virtuoso: %c%s %o",
|
|
4342
4341
|
"color: #0253b3; font-weight: bold",
|
|
4343
4342
|
"color: initial",
|
|
@@ -4525,8 +4524,8 @@ function Gt(e, t, n = "k") {
|
|
|
4525
4524
|
}
|
|
4526
4525
|
return Gt(e.l, t, n);
|
|
4527
4526
|
}
|
|
4528
|
-
function
|
|
4529
|
-
return Ze(e) ? Su(t, n, 1) : t === e.k ? ht(e, { k: t, v: n }) : t < e.k ? Nl(ht(e, { l:
|
|
4527
|
+
function _t(e, t, n) {
|
|
4528
|
+
return Ze(e) ? Su(t, n, 1) : t === e.k ? ht(e, { k: t, v: n }) : t < e.k ? Nl(ht(e, { l: _t(e.l, t, n) })) : Nl(ht(e, { r: _t(e.r, t, n) }));
|
|
4530
4529
|
}
|
|
4531
4530
|
function pr() {
|
|
4532
4531
|
return Br;
|
|
@@ -4580,7 +4579,7 @@ function Ro(e) {
|
|
|
4580
4579
|
throw new Error("Unexpected empty nodes");
|
|
4581
4580
|
} else {
|
|
4582
4581
|
if (Zs(e))
|
|
4583
|
-
return
|
|
4582
|
+
return _i(ht(e, { lvl: n - 1 }));
|
|
4584
4583
|
if (!Ze(r) && !Ze(r.l)) {
|
|
4585
4584
|
const o = r.l, s = Zs(o) ? r.lvl - 1 : r.lvl;
|
|
4586
4585
|
return ht(o, {
|
|
@@ -4589,7 +4588,7 @@ function Ro(e) {
|
|
|
4589
4588
|
r: o.l
|
|
4590
4589
|
}),
|
|
4591
4590
|
lvl: o.lvl + 1,
|
|
4592
|
-
r:
|
|
4591
|
+
r: _i(ht(r, { l: o.r, lvl: s }))
|
|
4593
4592
|
});
|
|
4594
4593
|
} else
|
|
4595
4594
|
throw new Error("Unexpected empty nodes");
|
|
@@ -4617,13 +4616,13 @@ function Su(e, t, n, r = Br, o = Br) {
|
|
|
4617
4616
|
return { k: e, l: r, lvl: n, r: o, v: t };
|
|
4618
4617
|
}
|
|
4619
4618
|
function Nl(e) {
|
|
4620
|
-
return
|
|
4619
|
+
return _i(Cu(e));
|
|
4621
4620
|
}
|
|
4622
4621
|
function Cu(e) {
|
|
4623
4622
|
const { l: t } = e;
|
|
4624
4623
|
return !Ze(t) && t.lvl === e.lvl ? ht(t, { r: ht(e, { l: t.r }) }) : e;
|
|
4625
4624
|
}
|
|
4626
|
-
function
|
|
4625
|
+
function _i(e) {
|
|
4627
4626
|
const { lvl: t, r: n } = e;
|
|
4628
4627
|
return !Ze(n) && !Ze(n.r) && n.lvl === t && n.r.lvl === t ? ht(n, { l: ht(e, { r: n.l }), lvl: t + 1 }) : e;
|
|
4629
4628
|
}
|
|
@@ -4691,7 +4690,7 @@ function Fx(e, t) {
|
|
|
4691
4690
|
for (const r of t) {
|
|
4692
4691
|
const { endIndex: o, size: s, startIndex: i } = r;
|
|
4693
4692
|
if (n = Math.min(n, i), Ze(e)) {
|
|
4694
|
-
e =
|
|
4693
|
+
e = _t(e, 0, s);
|
|
4695
4694
|
continue;
|
|
4696
4695
|
}
|
|
4697
4696
|
const a = ds(e, i - 1, o + 1);
|
|
@@ -4699,8 +4698,8 @@ function Fx(e, t) {
|
|
|
4699
4698
|
continue;
|
|
4700
4699
|
let l = !1, u = !1;
|
|
4701
4700
|
for (const { end: d, start: f, value: h } of a)
|
|
4702
|
-
l ? (o >= f || s === h) && (e = Ni(e, f)) : (u = h !== s, l = !0), d > o && o >= f && h !== s && (e =
|
|
4703
|
-
u && (e =
|
|
4701
|
+
l ? (o >= f || s === h) && (e = Ni(e, f)) : (u = h !== s, l = !0), d > o && o >= f && h !== s && (e = _t(e, o + 1, h));
|
|
4702
|
+
u && (e = _t(e, i, s));
|
|
4704
4703
|
}
|
|
4705
4704
|
return [e, n];
|
|
4706
4705
|
}
|
|
@@ -4742,15 +4741,15 @@ function Ux(e, [t, n, r, o]) {
|
|
|
4742
4741
|
let i = s, a = 0;
|
|
4743
4742
|
if (n.length > 0 && Ze(s) && t.length === 2) {
|
|
4744
4743
|
const h = t[0].size, p = t[1].size;
|
|
4745
|
-
i = n.reduce((w, v) =>
|
|
4744
|
+
i = n.reduce((w, v) => _t(_t(w, v, h), v + 1, p), i);
|
|
4746
4745
|
} else
|
|
4747
4746
|
[i, a] = Fx(i, t);
|
|
4748
4747
|
if (i === s)
|
|
4749
4748
|
return e;
|
|
4750
|
-
const { lastIndex: l, lastOffset: u, lastSize: d, offsetTree: f } =
|
|
4749
|
+
const { lastIndex: l, lastOffset: u, lastSize: d, offsetTree: f } = ji(e.offsetTree, a, i, o);
|
|
4751
4750
|
return {
|
|
4752
4751
|
groupIndices: n,
|
|
4753
|
-
groupOffsetTree: n.reduce((h, p) =>
|
|
4752
|
+
groupOffsetTree: n.reduce((h, p) => _t(h, p, Wr(p, f, o)), pr()),
|
|
4754
4753
|
lastIndex: l,
|
|
4755
4754
|
lastOffset: u,
|
|
4756
4755
|
lastSize: d,
|
|
@@ -4770,7 +4769,7 @@ function Al(e, t) {
|
|
|
4770
4769
|
n += t[r + 1] - t[r] - 1, r++;
|
|
4771
4770
|
return r - (n === e ? 0 : 1);
|
|
4772
4771
|
}
|
|
4773
|
-
function
|
|
4772
|
+
function ji(e, t, n, r) {
|
|
4774
4773
|
let o = e, s = 0, i = 0, a = 0, l = 0;
|
|
4775
4774
|
if (t !== 0) {
|
|
4776
4775
|
l = $o(o, t - 1, la), a = o[l].offset;
|
|
@@ -4826,7 +4825,7 @@ const qx = {
|
|
|
4826
4825
|
ke((C) => C.length > 0),
|
|
4827
4826
|
De(v, p),
|
|
4828
4827
|
oe(([C, T, k]) => {
|
|
4829
|
-
const I = C.reduce((A,
|
|
4828
|
+
const I = C.reduce((A, _, D) => _t(A, _, Wr(_, T.offsetTree, k) || D), pr());
|
|
4830
4829
|
return {
|
|
4831
4830
|
...T,
|
|
4832
4831
|
groupIndices: C,
|
|
@@ -4865,7 +4864,7 @@ const qx = {
|
|
|
4865
4864
|
),
|
|
4866
4865
|
n
|
|
4867
4866
|
);
|
|
4868
|
-
const y =
|
|
4867
|
+
const y = jt(
|
|
4869
4868
|
U(
|
|
4870
4869
|
n,
|
|
4871
4870
|
De(v),
|
|
@@ -4891,10 +4890,10 @@ const qx = {
|
|
|
4891
4890
|
(C) => {
|
|
4892
4891
|
const { groupIndices: T } = lt(v);
|
|
4893
4892
|
if (C > 0)
|
|
4894
|
-
|
|
4893
|
+
je(t, !0), je(s, C + Al(C, T));
|
|
4895
4894
|
else if (C < 0) {
|
|
4896
4895
|
const k = lt(g);
|
|
4897
|
-
k.length > 0 && (C -= Al(-C, k)),
|
|
4896
|
+
k.length > 0 && (C -= Al(-C, k)), je(i, C);
|
|
4898
4897
|
}
|
|
4899
4898
|
}
|
|
4900
4899
|
), Ye(U(a, De(e)), ([C, T]) => {
|
|
@@ -4904,7 +4903,7 @@ const qx = {
|
|
|
4904
4903
|
Et.ERROR
|
|
4905
4904
|
);
|
|
4906
4905
|
});
|
|
4907
|
-
const S =
|
|
4906
|
+
const S = jt(s);
|
|
4908
4907
|
fe(
|
|
4909
4908
|
U(
|
|
4910
4909
|
s,
|
|
@@ -4912,13 +4911,13 @@ const qx = {
|
|
|
4912
4911
|
oe(([C, T]) => {
|
|
4913
4912
|
const k = T.groupIndices.length > 0, I = [], A = T.lastSize;
|
|
4914
4913
|
if (k) {
|
|
4915
|
-
const
|
|
4914
|
+
const _ = Hr(T.sizeTree, 0);
|
|
4916
4915
|
let D = 0, L = 0;
|
|
4917
4916
|
for (; D < C; ) {
|
|
4918
4917
|
const P = T.groupIndices[L], Y = T.groupIndices.length === L + 1 ? 1 / 0 : T.groupIndices[L + 1] - P - 1;
|
|
4919
4918
|
I.push({
|
|
4920
4919
|
endIndex: P,
|
|
4921
|
-
size:
|
|
4920
|
+
size: _,
|
|
4922
4921
|
startIndex: P
|
|
4923
4922
|
}), I.push({
|
|
4924
4923
|
endIndex: P + 1 + Y - 1,
|
|
@@ -4951,10 +4950,10 @@ const qx = {
|
|
|
4951
4950
|
).ranges;
|
|
4952
4951
|
}
|
|
4953
4952
|
return Hn(T.sizeTree).reduce(
|
|
4954
|
-
(
|
|
4953
|
+
(_, { k: D, v: L }) => ({
|
|
4955
4954
|
prevIndex: D + C,
|
|
4956
4955
|
prevSize: L,
|
|
4957
|
-
ranges: [...
|
|
4956
|
+
ranges: [..._.ranges, { endIndex: D + C - 1, size: _.prevSize, startIndex: _.prevIndex }]
|
|
4958
4957
|
}),
|
|
4959
4958
|
{
|
|
4960
4959
|
prevIndex: 0,
|
|
@@ -4966,7 +4965,7 @@ const qx = {
|
|
|
4966
4965
|
),
|
|
4967
4966
|
n
|
|
4968
4967
|
);
|
|
4969
|
-
const R =
|
|
4968
|
+
const R = jt(
|
|
4970
4969
|
U(
|
|
4971
4970
|
i,
|
|
4972
4971
|
De(v, p),
|
|
@@ -4986,29 +4985,29 @@ const qx = {
|
|
|
4986
4985
|
return T;
|
|
4987
4986
|
let I = pr();
|
|
4988
4987
|
const A = lt(g);
|
|
4989
|
-
let
|
|
4990
|
-
for (;
|
|
4988
|
+
let _ = 0, D = 0, L = 0;
|
|
4989
|
+
for (; _ < -C; ) {
|
|
4991
4990
|
L = A[D];
|
|
4992
4991
|
const W = A[D + 1] - L - 1;
|
|
4993
|
-
D++,
|
|
4992
|
+
D++, _ += W + 1;
|
|
4994
4993
|
}
|
|
4995
|
-
if (I = Hn(T.sizeTree).reduce((W, { k: P, v: Y }) =>
|
|
4994
|
+
if (I = Hn(T.sizeTree).reduce((W, { k: P, v: Y }) => _t(W, Math.max(0, P + C), Y), I), _ !== -C) {
|
|
4996
4995
|
const W = Hr(T.sizeTree, L);
|
|
4997
|
-
I =
|
|
4996
|
+
I = _t(I, 0, W);
|
|
4998
4997
|
const P = Gt(T.sizeTree, -C + 1)[1];
|
|
4999
|
-
I =
|
|
4998
|
+
I = _t(I, 1, P);
|
|
5000
4999
|
}
|
|
5001
5000
|
return {
|
|
5002
5001
|
...T,
|
|
5003
5002
|
sizeTree: I,
|
|
5004
|
-
...
|
|
5003
|
+
...ji(T.offsetTree, 0, I, k)
|
|
5005
5004
|
};
|
|
5006
5005
|
} else {
|
|
5007
|
-
const I = Hn(T.sizeTree).reduce((A, { k:
|
|
5006
|
+
const I = Hn(T.sizeTree).reduce((A, { k: _, v: D }) => _t(A, Math.max(0, _ + C), D), pr());
|
|
5008
5007
|
return {
|
|
5009
5008
|
...T,
|
|
5010
5009
|
sizeTree: I,
|
|
5011
|
-
...
|
|
5010
|
+
...ji(T.offsetTree, 0, I, k)
|
|
5012
5011
|
};
|
|
5013
5012
|
}
|
|
5014
5013
|
})
|
|
@@ -5050,7 +5049,7 @@ function Gx(e) {
|
|
|
5050
5049
|
}
|
|
5051
5050
|
const Iu = Ve(
|
|
5052
5051
|
([{ groupIndices: e, sizes: t, totalCount: n }, { headerHeight: r, scrollTop: o }]) => {
|
|
5053
|
-
const s = Be(), i = Be(), a =
|
|
5052
|
+
const s = Be(), i = Be(), a = jt(U(s, oe(Gx)));
|
|
5054
5053
|
return fe(
|
|
5055
5054
|
U(
|
|
5056
5055
|
a,
|
|
@@ -5075,9 +5074,9 @@ const Iu = Ve(
|
|
|
5075
5074
|
), { groupCounts: s, topItemsIndexes: i };
|
|
5076
5075
|
},
|
|
5077
5076
|
rt(dn, Ct)
|
|
5078
|
-
),
|
|
5077
|
+
), _n = Ve(
|
|
5079
5078
|
([{ log: e }]) => {
|
|
5080
|
-
const t = Z(!1), n =
|
|
5079
|
+
const t = Z(!1), n = jt(
|
|
5081
5080
|
U(
|
|
5082
5081
|
t,
|
|
5083
5082
|
ke((r) => r),
|
|
@@ -5113,7 +5112,7 @@ const no = Ve(
|
|
|
5113
5112
|
const p = Be(), w = Be(), v = Z(0);
|
|
5114
5113
|
let g = null, x = null, y = null;
|
|
5115
5114
|
function S() {
|
|
5116
|
-
g && (g(), g = null), y && (y(), y = null), x && (clearTimeout(x), x = null),
|
|
5115
|
+
g && (g(), g = null), y && (y(), y = null), x && (clearTimeout(x), x = null), je(l, !1);
|
|
5117
5116
|
}
|
|
5118
5117
|
return fe(
|
|
5119
5118
|
U(
|
|
@@ -5122,16 +5121,16 @@ const no = Ve(
|
|
|
5122
5121
|
De(e, s, o),
|
|
5123
5122
|
oe(
|
|
5124
5123
|
([
|
|
5125
|
-
[R, C, T, k, I, A,
|
|
5124
|
+
[R, C, T, k, I, A, _, D],
|
|
5126
5125
|
L,
|
|
5127
5126
|
W,
|
|
5128
5127
|
P
|
|
5129
5128
|
]) => {
|
|
5130
5129
|
const Y = Nu(R), { align: K, behavior: J, offset: z } = Y, $ = k - 1, F = Eu(Y, C, $);
|
|
5131
5130
|
let B = Wr(F, C.offsetTree, L) + A;
|
|
5132
|
-
K === "end" ? (B += W + Gt(C.sizeTree, F)[1] - T + P, F === $ && (B +=
|
|
5131
|
+
K === "end" ? (B += W + Gt(C.sizeTree, F)[1] - T + P, F === $ && (B += _)) : K === "center" ? B += (W + Gt(C.sizeTree, F)[1] - T + P) / 2 : B -= I, z && (B += z);
|
|
5133
5132
|
const pe = (ue) => {
|
|
5134
|
-
S(), ue ? (D("retrying to scroll to", { location: R }, Et.DEBUG),
|
|
5133
|
+
S(), ue ? (D("retrying to scroll to", { location: R }, Et.DEBUG), je(p, R)) : (je(w, !0), D("list did not change, scroll successful", {}, Et.DEBUG));
|
|
5135
5134
|
};
|
|
5136
5135
|
if (S(), J === "smooth") {
|
|
5137
5136
|
let ue = !1;
|
|
@@ -5144,7 +5143,7 @@ const no = Ve(
|
|
|
5144
5143
|
g = qt(U(t, Xx(150)), pe);
|
|
5145
5144
|
return x = setTimeout(() => {
|
|
5146
5145
|
S();
|
|
5147
|
-
}, 1200),
|
|
5146
|
+
}, 1200), je(l, !0), D("scrolling from index to", { behavior: J, index: F, top: B }, Et.DEBUG), { behavior: J, top: B };
|
|
5148
5147
|
}
|
|
5149
5148
|
)
|
|
5150
5149
|
),
|
|
@@ -5205,11 +5204,11 @@ const ro = Ve(
|
|
|
5205
5204
|
),
|
|
5206
5205
|
([, d]) => {
|
|
5207
5206
|
qt(o, () => {
|
|
5208
|
-
|
|
5207
|
+
je(u, !0);
|
|
5209
5208
|
}), ca(4, () => {
|
|
5210
5209
|
qt(r, () => {
|
|
5211
|
-
|
|
5212
|
-
}),
|
|
5210
|
+
je(a, !0);
|
|
5211
|
+
}), je(s, d);
|
|
5213
5212
|
});
|
|
5214
5213
|
}
|
|
5215
5214
|
), {
|
|
@@ -5218,7 +5217,7 @@ const ro = Ve(
|
|
|
5218
5217
|
scrolledToInitialItem: a
|
|
5219
5218
|
};
|
|
5220
5219
|
},
|
|
5221
|
-
rt(dn, Ct, no,
|
|
5220
|
+
rt(dn, Ct, no, _n),
|
|
5222
5221
|
{ singleton: !0 }
|
|
5223
5222
|
);
|
|
5224
5223
|
function Au(e, t) {
|
|
@@ -5252,11 +5251,11 @@ const Vr = "up", Mr = "down", Jx = "none", Zx = {
|
|
|
5252
5251
|
),
|
|
5253
5252
|
a
|
|
5254
5253
|
), fe(U(a, mn(50)), u);
|
|
5255
|
-
const w =
|
|
5254
|
+
const w = jt(
|
|
5256
5255
|
U(
|
|
5257
5256
|
dt(r, Re(s), Re(t), Re(e), Re(d)),
|
|
5258
5257
|
sn((y, [{ scrollHeight: S, scrollTop: R }, C, T, k, I]) => {
|
|
5259
|
-
const A = R + C - S > -I,
|
|
5258
|
+
const A = R + C - S > -I, _ = {
|
|
5260
5259
|
scrollHeight: S,
|
|
5261
5260
|
scrollTop: R,
|
|
5262
5261
|
viewportHeight: C
|
|
@@ -5267,14 +5266,14 @@ const Vr = "up", Mr = "down", Jx = "none", Zx = {
|
|
|
5267
5266
|
atBottom: !0,
|
|
5268
5267
|
atBottomBecause: L,
|
|
5269
5268
|
scrollTopDelta: W,
|
|
5270
|
-
state:
|
|
5269
|
+
state: _
|
|
5271
5270
|
};
|
|
5272
5271
|
}
|
|
5273
5272
|
let D;
|
|
5274
|
-
return
|
|
5273
|
+
return _.scrollHeight > y.state.scrollHeight ? D = "SIZE_INCREASED" : C < y.state.viewportHeight ? D = "VIEWPORT_HEIGHT_DECREASING" : R < y.state.scrollTop ? D = "SCROLLING_UPWARDS" : D = "NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM", {
|
|
5275
5274
|
atBottom: !1,
|
|
5276
5275
|
notAtBottomBecause: D,
|
|
5277
|
-
state:
|
|
5276
|
+
state: _
|
|
5278
5277
|
};
|
|
5279
5278
|
}, Zx),
|
|
5280
5279
|
nt((y, S) => y && y.atBottom === S.atBottom)
|
|
@@ -5365,8 +5364,8 @@ const Vr = "up", Mr = "down", Jx = "none", Zx = {
|
|
|
5365
5364
|
scrollDirection: g,
|
|
5366
5365
|
scrollVelocity: x
|
|
5367
5366
|
};
|
|
5368
|
-
}, rt(Ct)), Fo = "top", zo = "bottom",
|
|
5369
|
-
function
|
|
5367
|
+
}, rt(Ct)), Fo = "top", zo = "bottom", _l = "none";
|
|
5368
|
+
function jl(e, t, n) {
|
|
5370
5369
|
return typeof e == "number" ? n === Vr && t === Fo || n === Mr && t === zo ? e : 0 : n === Vr ? t === Fo ? e.main : e.reverse : t === zo ? e.main : e.reverse;
|
|
5371
5370
|
}
|
|
5372
5371
|
function Pl(e, t) {
|
|
@@ -5401,11 +5400,11 @@ const da = Ve(
|
|
|
5401
5400
|
S
|
|
5402
5401
|
]) => {
|
|
5403
5402
|
const R = d - y, C = g + x, T = Math.max(h - R, 0);
|
|
5404
|
-
let k =
|
|
5403
|
+
let k = _l;
|
|
5405
5404
|
const I = Pl(S, Fo), A = Pl(S, zo);
|
|
5406
|
-
return p -= y, p += h + x, w += h + x, w -= y, p > d + C - I && (k = Vr), w < d - T + f + A && (k = Mr), k !==
|
|
5407
|
-
Math.max(R - h -
|
|
5408
|
-
R - T - x + f +
|
|
5405
|
+
return p -= y, p += h + x, w += h + x, w -= y, p > d + C - I && (k = Vr), w < d - T + f + A && (k = Mr), k !== _l ? [
|
|
5406
|
+
Math.max(R - h - jl(v, Fo, k) - I, 0),
|
|
5407
|
+
R - T - x + f + jl(v, zo, k) + A
|
|
5409
5408
|
] : null;
|
|
5410
5409
|
}
|
|
5411
5410
|
),
|
|
@@ -5469,7 +5468,7 @@ function ko(e, t, n, r, o, s) {
|
|
|
5469
5468
|
totalCount: n
|
|
5470
5469
|
};
|
|
5471
5470
|
}
|
|
5472
|
-
function
|
|
5471
|
+
function _u(e, t, n, r, o, s) {
|
|
5473
5472
|
let i = 0;
|
|
5474
5473
|
if (n.groupIndices.length > 0)
|
|
5475
5474
|
for (const d of n.groupIndices) {
|
|
@@ -5540,8 +5539,8 @@ const er = Ve(
|
|
|
5540
5539
|
e
|
|
5541
5540
|
),
|
|
5542
5541
|
ke(([T, k, , I, , , , , , , A]) => {
|
|
5543
|
-
const
|
|
5544
|
-
return T && !k && !
|
|
5542
|
+
const _ = A && A.length !== I;
|
|
5543
|
+
return T && !k && !_;
|
|
5545
5544
|
}),
|
|
5546
5545
|
oe(
|
|
5547
5546
|
([
|
|
@@ -5550,7 +5549,7 @@ const er = Ve(
|
|
|
5550
5549
|
[T, k],
|
|
5551
5550
|
I,
|
|
5552
5551
|
A,
|
|
5553
|
-
|
|
5552
|
+
_,
|
|
5554
5553
|
D,
|
|
5555
5554
|
L,
|
|
5556
5555
|
W,
|
|
@@ -5561,10 +5560,10 @@ const er = Ve(
|
|
|
5561
5560
|
if (I === 0)
|
|
5562
5561
|
return { ...Qs, totalCount: I };
|
|
5563
5562
|
if (T === 0 && k === 0)
|
|
5564
|
-
return $ === 0 ? { ...Qs, totalCount: I } :
|
|
5563
|
+
return $ === 0 ? { ...Qs, totalCount: I } : _u($, _, A, W, P, Y || []);
|
|
5565
5564
|
if (Ze(z))
|
|
5566
5565
|
return $ > 0 ? null : ko(
|
|
5567
|
-
ev(ua(
|
|
5566
|
+
ev(ua(_, I), K, Y),
|
|
5568
5567
|
[],
|
|
5569
5568
|
I,
|
|
5570
5569
|
P,
|
|
@@ -5637,7 +5636,7 @@ const er = Ve(
|
|
|
5637
5636
|
),
|
|
5638
5637
|
x
|
|
5639
5638
|
);
|
|
5640
|
-
const S =
|
|
5639
|
+
const S = jt(
|
|
5641
5640
|
U(
|
|
5642
5641
|
y,
|
|
5643
5642
|
ke(({ items: T }) => T.length > 0),
|
|
@@ -5647,7 +5646,7 @@ const er = Ve(
|
|
|
5647
5646
|
nt(Ur),
|
|
5648
5647
|
oe(([T]) => T)
|
|
5649
5648
|
)
|
|
5650
|
-
), R =
|
|
5649
|
+
), R = jt(
|
|
5651
5650
|
U(
|
|
5652
5651
|
y,
|
|
5653
5652
|
mn(200),
|
|
@@ -5655,7 +5654,7 @@ const er = Ve(
|
|
|
5655
5654
|
oe(({ items: T }) => T[0].index),
|
|
5656
5655
|
nt()
|
|
5657
5656
|
)
|
|
5658
|
-
), C =
|
|
5657
|
+
), C = jt(
|
|
5659
5658
|
U(
|
|
5660
5659
|
y,
|
|
5661
5660
|
ke(({ items: T }) => T.length > 0),
|
|
@@ -5682,11 +5681,11 @@ const er = Ve(
|
|
|
5682
5681
|
ro,
|
|
5683
5682
|
no,
|
|
5684
5683
|
oo,
|
|
5685
|
-
|
|
5684
|
+
_n,
|
|
5686
5685
|
aa
|
|
5687
5686
|
),
|
|
5688
5687
|
{ singleton: !0 }
|
|
5689
|
-
),
|
|
5688
|
+
), ju = Ve(
|
|
5690
5689
|
([{ fixedFooterHeight: e, fixedHeaderHeight: t, footerHeight: n, headerHeight: r }, { listState: o }]) => {
|
|
5691
5690
|
const s = Be(), i = yt(
|
|
5692
5691
|
U(
|
|
@@ -5713,7 +5712,7 @@ const er = Ve(
|
|
|
5713
5712
|
);
|
|
5714
5713
|
return { alignToBottom: n, paddingTopAddition: r };
|
|
5715
5714
|
},
|
|
5716
|
-
rt(Ct,
|
|
5715
|
+
rt(Ct, ju),
|
|
5717
5716
|
{ singleton: !0 }
|
|
5718
5717
|
), Pu = Ve(() => ({
|
|
5719
5718
|
context: Z(null)
|
|
@@ -5736,9 +5735,9 @@ const er = Ve(
|
|
|
5736
5735
|
De(t, l, n, s, o, r, a),
|
|
5737
5736
|
De(e),
|
|
5738
5737
|
oe(([[f, h, p, w, v, g, x, y], S]) => {
|
|
5739
|
-
const { align: R, behavior: C, calculateViewLocation: T = nv, done: k, ...I } = f, A = Eu(f, h, w - 1),
|
|
5738
|
+
const { align: R, behavior: C, calculateViewLocation: T = nv, done: k, ...I } = f, A = Eu(f, h, w - 1), _ = Wr(A, h.offsetTree, S) + v + g, D = _ + Gt(h.sizeTree, A)[1], L = y + g, W = y + p - x, P = T({
|
|
5740
5739
|
itemBottom: D,
|
|
5741
|
-
itemTop:
|
|
5740
|
+
itemTop: _,
|
|
5742
5741
|
locationParams: { align: R, behavior: C, ...I },
|
|
5743
5742
|
viewportBottom: W,
|
|
5744
5743
|
viewportTop: L
|
|
@@ -5782,7 +5781,7 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5782
5781
|
const w = Z(!1), v = Be();
|
|
5783
5782
|
let g = null;
|
|
5784
5783
|
function x(C) {
|
|
5785
|
-
|
|
5784
|
+
je(i, {
|
|
5786
5785
|
align: "end",
|
|
5787
5786
|
behavior: C,
|
|
5788
5787
|
index: "LAST"
|
|
@@ -5792,9 +5791,9 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5792
5791
|
U(
|
|
5793
5792
|
dt(U(Re(t), qn(1)), l),
|
|
5794
5793
|
De(Re(w), s, a, f),
|
|
5795
|
-
oe(([[C, T], k, I, A,
|
|
5794
|
+
oe(([[C, T], k, I, A, _]) => {
|
|
5796
5795
|
let D = T && A, L = "auto";
|
|
5797
|
-
return D && (L = rv(k, I ||
|
|
5796
|
+
return D && (L = rv(k, I || _), D = D && !!L), { followOutputBehavior: L, shouldFollow: D, totalCount: C };
|
|
5798
5797
|
}),
|
|
5799
5798
|
ke(({ shouldFollow: C }) => C)
|
|
5800
5799
|
),
|
|
@@ -5848,15 +5847,15 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5848
5847
|
U(
|
|
5849
5848
|
dt(U(R, qn(1)), l),
|
|
5850
5849
|
De(Re(S), a, f, h),
|
|
5851
|
-
oe(([[C, T], k, I, A,
|
|
5850
|
+
oe(([[C, T], k, I, A, _]) => T && I && (k == null ? void 0 : k({ context: _, totalCount: C, scrollingInProgress: A }))),
|
|
5852
5851
|
ke((C) => !!C),
|
|
5853
5852
|
mn(0)
|
|
5854
5853
|
),
|
|
5855
5854
|
(C) => {
|
|
5856
5855
|
g && (g(), g = null), lt(n) ? requestAnimationFrame(() => {
|
|
5857
|
-
lt(d)("scrolling into view", {}),
|
|
5856
|
+
lt(d)("scrolling into view", {}), je(p, C);
|
|
5858
5857
|
}) : g = qt(e, () => {
|
|
5859
|
-
lt(d)("scrolling into view", {}),
|
|
5858
|
+
lt(d)("scrolling into view", {}), je(p, C), g = null;
|
|
5860
5859
|
});
|
|
5861
5860
|
}
|
|
5862
5861
|
), { autoscrollToBottom: v, followOutput: w, scrollIntoViewOnChange: S };
|
|
@@ -5866,7 +5865,7 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5866
5865
|
oo,
|
|
5867
5866
|
no,
|
|
5868
5867
|
ro,
|
|
5869
|
-
|
|
5868
|
+
_n,
|
|
5870
5869
|
An,
|
|
5871
5870
|
Ct,
|
|
5872
5871
|
Pu,
|
|
@@ -5879,11 +5878,11 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5879
5878
|
De(s),
|
|
5880
5879
|
ke(([, l]) => l !== 0),
|
|
5881
5880
|
De(o, r, t, n, e),
|
|
5882
|
-
oe(([[, l], u, d, f, h, p = []]) =>
|
|
5881
|
+
oe(([[, l], u, d, f, h, p = []]) => _u(l, u, d, f, h, p))
|
|
5883
5882
|
),
|
|
5884
5883
|
i
|
|
5885
5884
|
), {}),
|
|
5886
|
-
rt(dn, ro, er,
|
|
5885
|
+
rt(dn, ro, er, _n),
|
|
5887
5886
|
{ singleton: !0 }
|
|
5888
5887
|
), iv = Ve(
|
|
5889
5888
|
([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
|
|
@@ -5904,7 +5903,7 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5904
5903
|
),
|
|
5905
5904
|
() => {
|
|
5906
5905
|
requestAnimationFrame(() => {
|
|
5907
|
-
|
|
5906
|
+
je(t, o);
|
|
5908
5907
|
});
|
|
5909
5908
|
}
|
|
5910
5909
|
);
|
|
@@ -5913,7 +5912,7 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
5913
5912
|
initialScrollTop: r
|
|
5914
5913
|
};
|
|
5915
5914
|
},
|
|
5916
|
-
rt(
|
|
5915
|
+
rt(_n, Ct, er),
|
|
5917
5916
|
{ singleton: !0 }
|
|
5918
5917
|
), Mu = Ve(
|
|
5919
5918
|
([{ scrollVelocity: e }]) => {
|
|
@@ -6008,7 +6007,7 @@ const rv = (e, t) => typeof e == "function" ? Ml(e(t)) : t && Ml(e), ov = Ve(
|
|
|
6008
6007
|
restoreStateFrom: d
|
|
6009
6008
|
};
|
|
6010
6009
|
},
|
|
6011
|
-
rt(dn, Ct, ro,
|
|
6010
|
+
rt(dn, Ct, ro, _n, fa)
|
|
6012
6011
|
);
|
|
6013
6012
|
function lv(e) {
|
|
6014
6013
|
return { align: "start", index: 0, offset: e.scrollTop };
|
|
@@ -6037,15 +6036,15 @@ const uv = Du(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6037
6036
|
{ log: p },
|
|
6038
6037
|
{ recalcInProgress: w }
|
|
6039
6038
|
]) => {
|
|
6040
|
-
const v =
|
|
6039
|
+
const v = jt(
|
|
6041
6040
|
U(
|
|
6042
6041
|
l,
|
|
6043
6042
|
De(i),
|
|
6044
6043
|
sn(
|
|
6045
6044
|
([, x, y, S], [{ bottom: R, items: C, offsetBottom: T, totalCount: k }, I]) => {
|
|
6046
6045
|
const A = R + T;
|
|
6047
|
-
let
|
|
6048
|
-
return y === k && x.length > 0 && C.length > 0 && (C[0].originalIndex === 0 && x[0].originalIndex === 0 || (
|
|
6046
|
+
let _ = 0;
|
|
6047
|
+
return y === k && x.length > 0 && C.length > 0 && (C[0].originalIndex === 0 && x[0].originalIndex === 0 || (_ = A - S, _ !== 0 && (_ += I))), [_, C, k, A];
|
|
6049
6048
|
},
|
|
6050
6049
|
[0, [], 0, 0]
|
|
6051
6050
|
),
|
|
@@ -6056,10 +6055,10 @@ const uv = Du(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6056
6055
|
)
|
|
6057
6056
|
);
|
|
6058
6057
|
function g(x) {
|
|
6059
|
-
x > 0 ? (
|
|
6058
|
+
x > 0 ? (je(t, { behavior: "auto", top: -x }), je(e, 0)) : (je(e, 0), je(t, { behavior: "auto", top: -x }));
|
|
6060
6059
|
}
|
|
6061
6060
|
return Ye(U(v, De(e, s)), ([x, y, S]) => {
|
|
6062
|
-
S && uv() ?
|
|
6061
|
+
S && uv() ? je(e, y - x) : g(-x);
|
|
6063
6062
|
}), Ye(
|
|
6064
6063
|
U(
|
|
6065
6064
|
dt(yt(s, !1), e, w),
|
|
@@ -6087,20 +6086,20 @@ const uv = Du(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6087
6086
|
{
|
|
6088
6087
|
let k = 0;
|
|
6089
6088
|
const I = Hr(R, 0);
|
|
6090
|
-
let A = 0,
|
|
6089
|
+
let A = 0, _ = 0;
|
|
6091
6090
|
for (; A < x; ) {
|
|
6092
6091
|
A++, k += I;
|
|
6093
|
-
let D = y.length ===
|
|
6094
|
-
A + D > x && (k -= I, D = x - A + 1), A += D, k += T(D),
|
|
6092
|
+
let D = y.length === _ + 1 ? 1 / 0 : y[_ + 1] - y[_] - 1;
|
|
6093
|
+
A + D > x && (k -= I, D = x - A + 1), A += D, k += T(D), _++;
|
|
6095
6094
|
}
|
|
6096
6095
|
return k;
|
|
6097
6096
|
}
|
|
6098
6097
|
})
|
|
6099
6098
|
),
|
|
6100
6099
|
(x) => {
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
|
|
6100
|
+
je(e, x), requestAnimationFrame(() => {
|
|
6101
|
+
je(t, { top: x }), requestAnimationFrame(() => {
|
|
6102
|
+
je(e, 0), je(w, !1);
|
|
6104
6103
|
});
|
|
6105
6104
|
});
|
|
6106
6105
|
}
|
|
@@ -6136,9 +6135,9 @@ const uv = Du(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6136
6135
|
rt(
|
|
6137
6136
|
da,
|
|
6138
6137
|
sv,
|
|
6139
|
-
|
|
6138
|
+
_n,
|
|
6140
6139
|
Mu,
|
|
6141
|
-
|
|
6140
|
+
ju,
|
|
6142
6141
|
iv,
|
|
6143
6142
|
tv,
|
|
6144
6143
|
fa,
|
|
@@ -6175,7 +6174,7 @@ const uv = Du(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
|
|
|
6175
6174
|
]) => (fe(R.rangeChanged, A.scrollSeekRangeChanged), fe(
|
|
6176
6175
|
U(
|
|
6177
6176
|
A.windowViewportRect,
|
|
6178
|
-
oe((
|
|
6177
|
+
oe((_) => _.visibleHeight)
|
|
6179
6178
|
),
|
|
6180
6179
|
v.viewportHeight
|
|
6181
6180
|
), {
|
|
@@ -6237,29 +6236,29 @@ const uo = typeof document < "u" ? V.useLayoutEffect : V.useEffect;
|
|
|
6237
6236
|
function $u(e, t, n) {
|
|
6238
6237
|
const r = Object.keys(t.required || {}), o = Object.keys(t.optional || {}), s = Object.keys(t.methods || {}), i = Object.keys(t.events || {}), a = V.createContext({});
|
|
6239
6238
|
function l(g, x) {
|
|
6240
|
-
g.propsReady &&
|
|
6239
|
+
g.propsReady && je(g.propsReady, !1);
|
|
6241
6240
|
for (const y of r) {
|
|
6242
6241
|
const S = g[t.required[y]];
|
|
6243
|
-
|
|
6242
|
+
je(S, x[y]);
|
|
6244
6243
|
}
|
|
6245
6244
|
for (const y of o)
|
|
6246
6245
|
if (y in x) {
|
|
6247
6246
|
const S = g[t.optional[y]];
|
|
6248
|
-
|
|
6247
|
+
je(S, x[y]);
|
|
6249
6248
|
}
|
|
6250
|
-
g.propsReady &&
|
|
6249
|
+
g.propsReady && je(g.propsReady, !0);
|
|
6251
6250
|
}
|
|
6252
6251
|
function u(g) {
|
|
6253
6252
|
return s.reduce((x, y) => (x[y] = (S) => {
|
|
6254
6253
|
const R = g[t.methods[y]];
|
|
6255
|
-
|
|
6254
|
+
je(R, S);
|
|
6256
6255
|
}, x), {});
|
|
6257
6256
|
}
|
|
6258
6257
|
function d(g) {
|
|
6259
6258
|
return i.reduce((x, y) => (x[y] = Nx(g[t.events[y]]), x), {});
|
|
6260
6259
|
}
|
|
6261
6260
|
const f = V.forwardRef((g, x) => {
|
|
6262
|
-
const { children: y, ...S } = g, [R] = V.useState(() => us(
|
|
6261
|
+
const { children: y, ...S } = g, [R] = V.useState(() => us(_x(e), (k) => {
|
|
6263
6262
|
l(k, S);
|
|
6264
6263
|
})), [C] = V.useState(kl(d, R));
|
|
6265
6264
|
uo(() => {
|
|
@@ -6277,7 +6276,7 @@ function $u(e, t, n) {
|
|
|
6277
6276
|
const x = V.useContext(a);
|
|
6278
6277
|
return V.useCallback(
|
|
6279
6278
|
(y) => {
|
|
6280
|
-
|
|
6279
|
+
je(x[g], y);
|
|
6281
6280
|
},
|
|
6282
6281
|
[x, g]
|
|
6283
6282
|
);
|
|
@@ -6421,7 +6420,7 @@ const mv = /* @__PURE__ */ Ve(() => {
|
|
|
6421
6420
|
ma("deviation", (P) => {
|
|
6422
6421
|
x !== P && y(P);
|
|
6423
6422
|
});
|
|
6424
|
-
const S = Ae("EmptyPlaceholder"), R = Ae("ScrollSeekPlaceholder") || xv, C = Ae("ListComponent"), T = Ae("ItemComponent"), k = Ae("GroupComponent"), I = Ae("computeItemKey"), A = Ae("isSeeking"),
|
|
6423
|
+
const S = Ae("EmptyPlaceholder"), R = Ae("ScrollSeekPlaceholder") || xv, C = Ae("ListComponent"), T = Ae("ItemComponent"), k = Ae("GroupComponent"), I = Ae("computeItemKey"), A = Ae("isSeeking"), _ = Ae("groupIndices").length > 0, D = Ae("alignToBottom"), L = Ae("initialItemFinalLocationReached"), W = e ? {} : {
|
|
6425
6424
|
boxSizing: "border-box",
|
|
6426
6425
|
...v ? {
|
|
6427
6426
|
display: "inline-block",
|
|
@@ -6479,7 +6478,7 @@ const mv = /* @__PURE__ */ Ve(() => {
|
|
|
6479
6478
|
key: K,
|
|
6480
6479
|
style: v ? wv : Uu
|
|
6481
6480
|
},
|
|
6482
|
-
|
|
6481
|
+
_ ? l(P.index, P.groupIndex, P.data, u) : l(P.index, P.data, u)
|
|
6483
6482
|
);
|
|
6484
6483
|
})
|
|
6485
6484
|
}
|
|
@@ -6612,7 +6611,7 @@ const kv = ({ children: e }) => {
|
|
|
6612
6611
|
return /* @__PURE__ */ c.jsx(t, { style: r, ...bt(t, o), children: e });
|
|
6613
6612
|
}, Nv = /* @__PURE__ */ V.memo(function(e) {
|
|
6614
6613
|
const t = Ae("useWindowScroll"), n = Ae("topItemsIndexes").length > 0, r = Ae("customScrollParent"), o = Ae("context");
|
|
6615
|
-
return /* @__PURE__ */ c.jsxs(r || t ?
|
|
6614
|
+
return /* @__PURE__ */ c.jsxs(r || t ? jv : _v, { ...e, context: o, children: [
|
|
6616
6615
|
n && /* @__PURE__ */ c.jsx(Iv, { children: /* @__PURE__ */ c.jsx(Ll, { showTopList: !0 }) }),
|
|
6617
6616
|
/* @__PURE__ */ c.jsxs(r || t ? Ev : kv, { children: [
|
|
6618
6617
|
/* @__PURE__ */ c.jsx(Tv, {}),
|
|
@@ -6684,7 +6683,7 @@ const kv = ({ children: e }) => {
|
|
|
6684
6683
|
}
|
|
6685
6684
|
},
|
|
6686
6685
|
Nv
|
|
6687
|
-
),
|
|
6686
|
+
), _v = /* @__PURE__ */ Wu({ useEmitter: ma, useEmitterValue: Ae, usePublisher: zt }), jv = /* @__PURE__ */ Vu({ useEmitter: ma, useEmitterValue: Ae, usePublisher: zt }), Pv = Av, Ov = /* @__PURE__ */ Ve(() => {
|
|
6688
6687
|
const e = Z((u) => /* @__PURE__ */ c.jsxs("td", { children: [
|
|
6689
6688
|
"Item $",
|
|
6690
6689
|
u
|
|
@@ -6764,7 +6763,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6764
6763
|
{ customScrollParent: g, useWindowScroll: x, windowScrollContainerState: y, windowScrollTo: S, windowViewportRect: R },
|
|
6765
6764
|
C
|
|
6766
6765
|
]) => {
|
|
6767
|
-
const T = Z(0), k = Z(0), I = Z($l), A = Z({ height: 0, width: 0 }),
|
|
6766
|
+
const T = Z(0), k = Z(0), I = Z($l), A = Z({ height: 0, width: 0 }), _ = Z({ height: 0, width: 0 }), D = Be(), L = Be(), W = Z(0), P = Z(null), Y = Z({ column: 0, row: 0 }), K = Be(), J = Be(), z = Z(!1), $ = Z(0), F = Z(!0), B = Z(!1), pe = Z(!1);
|
|
6768
6767
|
Ye(
|
|
6769
6768
|
U(
|
|
6770
6769
|
w,
|
|
@@ -6772,18 +6771,18 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6772
6771
|
ke(([O, Q]) => !!Q)
|
|
6773
6772
|
),
|
|
6774
6773
|
() => {
|
|
6775
|
-
|
|
6774
|
+
je(F, !1);
|
|
6776
6775
|
}
|
|
6777
6776
|
), Ye(
|
|
6778
6777
|
U(
|
|
6779
|
-
dt(w, F,
|
|
6778
|
+
dt(w, F, _, A, $, B),
|
|
6780
6779
|
ke(([O, Q, q, ce, , ie]) => O && !Q && q.height !== 0 && ce.height !== 0 && !ie)
|
|
6781
6780
|
),
|
|
6782
6781
|
([, , , , O]) => {
|
|
6783
|
-
|
|
6784
|
-
|
|
6782
|
+
je(B, !0), ca(1, () => {
|
|
6783
|
+
je(D, O);
|
|
6785
6784
|
}), qt(U(u), () => {
|
|
6786
|
-
|
|
6785
|
+
je(t, [0, 0]), je(F, !0);
|
|
6787
6786
|
});
|
|
6788
6787
|
}
|
|
6789
6788
|
), fe(
|
|
@@ -6800,9 +6799,9 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6800
6799
|
ke(([, O]) => O != null)
|
|
6801
6800
|
),
|
|
6802
6801
|
([, O]) => {
|
|
6803
|
-
O && (
|
|
6804
|
-
|
|
6805
|
-
}),
|
|
6802
|
+
O && (je(A, O.viewport), je(_, O.item), je(Y, O.gap), O.scrollTop > 0 && (je(z, !0), qt(U(u, qn(1)), (Q) => {
|
|
6803
|
+
je(z, !1);
|
|
6804
|
+
}), je(l, { top: O.scrollTop })));
|
|
6806
6805
|
}
|
|
6807
6806
|
), fe(
|
|
6808
6807
|
U(
|
|
@@ -6814,7 +6813,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6814
6813
|
U(
|
|
6815
6814
|
dt(
|
|
6816
6815
|
Re(A, fo),
|
|
6817
|
-
Re(
|
|
6816
|
+
Re(_, fo),
|
|
6818
6817
|
Re(Y, (O, Q) => O && O.column === Q.column && O.row === Q.row),
|
|
6819
6818
|
Re(u)
|
|
6820
6819
|
),
|
|
@@ -6832,7 +6831,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6832
6831
|
Re(T),
|
|
6833
6832
|
r,
|
|
6834
6833
|
Re(Y, Lv),
|
|
6835
|
-
Re(
|
|
6834
|
+
Re(_, fo),
|
|
6836
6835
|
Re(A, fo),
|
|
6837
6836
|
Re(P),
|
|
6838
6837
|
Re(k),
|
|
@@ -6879,7 +6878,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6879
6878
|
T
|
|
6880
6879
|
), fe(
|
|
6881
6880
|
U(
|
|
6882
|
-
dt(A,
|
|
6881
|
+
dt(A, _, I, Y),
|
|
6883
6882
|
ke(([O, Q, { items: q }]) => q.length > 0 && Q.height !== 0 && O.height !== 0),
|
|
6884
6883
|
oe(([O, Q, { items: q }, ce]) => {
|
|
6885
6884
|
const { bottom: ie, top: $e } = Hl(O, ce, Q, q);
|
|
@@ -6898,7 +6897,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6898
6897
|
),
|
|
6899
6898
|
ue
|
|
6900
6899
|
);
|
|
6901
|
-
const ee =
|
|
6900
|
+
const ee = jt(
|
|
6902
6901
|
U(
|
|
6903
6902
|
dt(I, T),
|
|
6904
6903
|
ke(([{ items: O }]) => O.length > 0),
|
|
@@ -6910,14 +6909,14 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6910
6909
|
oe(([[, O]]) => O - 1),
|
|
6911
6910
|
nt()
|
|
6912
6911
|
)
|
|
6913
|
-
), Ie =
|
|
6912
|
+
), Ie = jt(
|
|
6914
6913
|
U(
|
|
6915
6914
|
Re(I),
|
|
6916
6915
|
ke(({ items: O }) => O.length > 0 && O[0].index === 0),
|
|
6917
6916
|
rn(0),
|
|
6918
6917
|
nt()
|
|
6919
6918
|
)
|
|
6920
|
-
), Ce =
|
|
6919
|
+
), Ce = jt(
|
|
6921
6920
|
U(
|
|
6922
6921
|
Re(I),
|
|
6923
6922
|
De(z),
|
|
@@ -6933,7 +6932,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6933
6932
|
fe(Ce, p.scrollSeekRangeChanged), fe(
|
|
6934
6933
|
U(
|
|
6935
6934
|
D,
|
|
6936
|
-
De(A,
|
|
6935
|
+
De(A, _, T, Y),
|
|
6937
6936
|
oe(([O, Q, q, ce, ie]) => {
|
|
6938
6937
|
const $e = Nu(O), { align: Ke, behavior: We, offset: Te } = $e;
|
|
6939
6938
|
let Pe = $e.index;
|
|
@@ -6967,7 +6966,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6967
6966
|
headerHeight: s,
|
|
6968
6967
|
increaseViewportBy: e,
|
|
6969
6968
|
initialItemCount: k,
|
|
6970
|
-
itemDimensions:
|
|
6969
|
+
itemDimensions: _,
|
|
6971
6970
|
overscan: n,
|
|
6972
6971
|
restoreStateFrom: J,
|
|
6973
6972
|
scrollBy: i,
|
|
@@ -6999,7 +6998,7 @@ const $v = /* @__PURE__ */ Ve(
|
|
|
6999
6998
|
...C
|
|
7000
6999
|
};
|
|
7001
7000
|
},
|
|
7002
|
-
rt(da, Ct, oo, Mu,
|
|
7001
|
+
rt(da, Ct, oo, Mu, _n, fa, An)
|
|
7003
7002
|
);
|
|
7004
7003
|
function Ku(e, t, n) {
|
|
7005
7004
|
return Dr(1, Bo((e + n) / (Bo(t) + n)));
|
|
@@ -9221,7 +9220,7 @@ async function Aw(e, t = 50, n = 0) {
|
|
|
9221
9220
|
const r = { limit: t, offset: n };
|
|
9222
9221
|
return e && (r.thread_id = e), await Ft("/files", { params: r });
|
|
9223
9222
|
}
|
|
9224
|
-
const
|
|
9223
|
+
const _w = 1, jw = 1e6;
|
|
9225
9224
|
let ri = 0;
|
|
9226
9225
|
function Pw() {
|
|
9227
9226
|
return ri = (ri + 1) % Number.MAX_SAFE_INTEGER, ri.toString();
|
|
@@ -9234,14 +9233,14 @@ const oi = /* @__PURE__ */ new Map(), tc = (e) => {
|
|
|
9234
9233
|
type: "REMOVE_TOAST",
|
|
9235
9234
|
toastId: e
|
|
9236
9235
|
});
|
|
9237
|
-
},
|
|
9236
|
+
}, jw);
|
|
9238
9237
|
oi.set(e, t);
|
|
9239
9238
|
}, Ow = (e, t) => {
|
|
9240
9239
|
switch (t.type) {
|
|
9241
9240
|
case "ADD_TOAST":
|
|
9242
9241
|
return {
|
|
9243
9242
|
...e,
|
|
9244
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
9243
|
+
toasts: [t.toast, ...e.toasts].slice(0, _w)
|
|
9245
9244
|
};
|
|
9246
9245
|
case "UPDATE_TOAST":
|
|
9247
9246
|
return {
|
|
@@ -9345,11 +9344,11 @@ var Lw = "DismissableLayer", Mi = "dismissableLayer.update", $w = "dismissableLa
|
|
|
9345
9344
|
onDismiss: a,
|
|
9346
9345
|
...l
|
|
9347
9346
|
} = e, u = m.useContext(ld), [d, f] = m.useState(null), h = (d == null ? void 0 : d.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = m.useState({}), w = ze(t, (k) => f(k)), v = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = v.indexOf(g), y = d ? v.indexOf(d) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, R = y >= x, C = Hw((k) => {
|
|
9348
|
-
const I = k.target, A = [...u.branches].some((
|
|
9347
|
+
const I = k.target, A = [...u.branches].some((_) => _.contains(I));
|
|
9349
9348
|
!R || A || (o == null || o(k), i == null || i(k), k.defaultPrevented || a == null || a());
|
|
9350
9349
|
}, h), T = Uw((k) => {
|
|
9351
9350
|
const I = k.target;
|
|
9352
|
-
[...u.branches].some((
|
|
9351
|
+
[...u.branches].some((_) => _.contains(I)) || (s == null || s(k), i == null || i(k), k.defaultPrevented || a == null || a());
|
|
9353
9352
|
}, h);
|
|
9354
9353
|
return Dw((k) => {
|
|
9355
9354
|
y === u.layers.size - 1 && (r == null || r(k), !k.defaultPrevented && a && (k.preventDefault(), a()));
|
|
@@ -9618,7 +9617,7 @@ function Zw(e, t, n) {
|
|
|
9618
9617
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
9619
9618
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
9620
9619
|
}
|
|
9621
|
-
var
|
|
9620
|
+
var _o = "right-scroll-bar-position", jo = "width-before-scroll-bar", Qw = "with-scroll-bars-hidden", eb = "--removed-body-scroll-bar-size";
|
|
9622
9621
|
function li(e, t) {
|
|
9623
9622
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
9624
9623
|
}
|
|
@@ -9759,8 +9758,8 @@ vs.defaultProps = {
|
|
|
9759
9758
|
inert: !1
|
|
9760
9759
|
};
|
|
9761
9760
|
vs.classNames = {
|
|
9762
|
-
fullWidth:
|
|
9763
|
-
zeroRight:
|
|
9761
|
+
fullWidth: jo,
|
|
9762
|
+
zeroRight: _o
|
|
9764
9763
|
};
|
|
9765
9764
|
var lb = function() {
|
|
9766
9765
|
if (typeof __webpack_nonce__ < "u")
|
|
@@ -9850,19 +9849,19 @@ var fb = function() {
|
|
|
9850
9849
|
].filter(Boolean).join(""), `
|
|
9851
9850
|
}
|
|
9852
9851
|
|
|
9853
|
-
.`).concat(
|
|
9852
|
+
.`).concat(_o, ` {
|
|
9854
9853
|
right: `).concat(a, "px ").concat(r, `;
|
|
9855
9854
|
}
|
|
9856
9855
|
|
|
9857
|
-
.`).concat(
|
|
9856
|
+
.`).concat(jo, ` {
|
|
9858
9857
|
margin-right: `).concat(a, "px ").concat(r, `;
|
|
9859
9858
|
}
|
|
9860
9859
|
|
|
9861
|
-
.`).concat(
|
|
9860
|
+
.`).concat(_o, " .").concat(_o, ` {
|
|
9862
9861
|
right: 0 `).concat(r, `;
|
|
9863
9862
|
}
|
|
9864
9863
|
|
|
9865
|
-
.`).concat(
|
|
9864
|
+
.`).concat(jo, " .").concat(jo, ` {
|
|
9866
9865
|
margin-right: 0 `).concat(r, `;
|
|
9867
9866
|
}
|
|
9868
9867
|
|
|
@@ -9976,7 +9975,7 @@ var lr = Di ? { passive: !1 } : !1, yb = function(e) {
|
|
|
9976
9975
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
9977
9976
|
`);
|
|
9978
9977
|
}, Ab = 0, cr = [];
|
|
9979
|
-
function
|
|
9978
|
+
function _b(e) {
|
|
9980
9979
|
var t = m.useRef([]), n = m.useRef([0, 0]), r = m.useRef(), o = m.useState(Ab++)[0], s = m.useState(pd)[0], i = m.useRef(e);
|
|
9981
9980
|
m.useEffect(function() {
|
|
9982
9981
|
i.current = e;
|
|
@@ -10026,7 +10025,7 @@ function jb(e) {
|
|
|
10026
10025
|
}
|
|
10027
10026
|
}
|
|
10028
10027
|
}, []), u = m.useCallback(function(v, g, x, y) {
|
|
10029
|
-
var S = { name: v, delta: g, target: x, should: y, shadowParent:
|
|
10028
|
+
var S = { name: v, delta: g, target: x, should: y, shadowParent: jb(x) };
|
|
10030
10029
|
t.current.push(S), setTimeout(function() {
|
|
10031
10030
|
t.current = t.current.filter(function(R) {
|
|
10032
10031
|
return R !== S;
|
|
@@ -10058,12 +10057,12 @@ function jb(e) {
|
|
|
10058
10057
|
p ? m.createElement(bb, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
10059
10058
|
);
|
|
10060
10059
|
}
|
|
10061
|
-
function
|
|
10060
|
+
function jb(e) {
|
|
10062
10061
|
for (var t = null; e !== null; )
|
|
10063
10062
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
10064
10063
|
return t;
|
|
10065
10064
|
}
|
|
10066
|
-
const Pb = ab(hd,
|
|
10065
|
+
const Pb = ab(hd, _b);
|
|
10067
10066
|
var ws = m.forwardRef(function(e, t) {
|
|
10068
10067
|
return m.createElement(vs, on({}, e, { ref: t, sideCar: Pb }));
|
|
10069
10068
|
});
|
|
@@ -10303,9 +10302,9 @@ var Nd = "DialogDescription", Ad = m.forwardRef(
|
|
|
10303
10302
|
}
|
|
10304
10303
|
);
|
|
10305
10304
|
Ad.displayName = Nd;
|
|
10306
|
-
var
|
|
10305
|
+
var _d = "DialogClose", jd = m.forwardRef(
|
|
10307
10306
|
(e, t) => {
|
|
10308
|
-
const { __scopeDialog: n, ...r } = e, o = Zt(
|
|
10307
|
+
const { __scopeDialog: n, ...r } = e, o = Zt(_d, n);
|
|
10309
10308
|
return /* @__PURE__ */ c.jsx(
|
|
10310
10309
|
Ee.button,
|
|
10311
10310
|
{
|
|
@@ -10317,7 +10316,7 @@ var jd = "DialogClose", _d = m.forwardRef(
|
|
|
10317
10316
|
);
|
|
10318
10317
|
}
|
|
10319
10318
|
);
|
|
10320
|
-
|
|
10319
|
+
jd.displayName = _d;
|
|
10321
10320
|
function Ea(e) {
|
|
10322
10321
|
return e ? "open" : "closed";
|
|
10323
10322
|
}
|
|
@@ -10341,7 +10340,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
10341
10340
|
const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
|
|
10342
10341
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
10343
10342
|
}, [r, e, t]), null;
|
|
10344
|
-
}, Md = bd, Kb = Sd, Dd = Td, ys = Rd, Ss = kd, Wn = Id, Cs = Ad, Ld =
|
|
10343
|
+
}, Md = bd, Kb = Sd, Dd = Td, ys = Rd, Ss = kd, Wn = Id, Cs = Ad, Ld = jd;
|
|
10345
10344
|
const qb = Md, Gb = Dd, $d = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
10346
10345
|
ys,
|
|
10347
10346
|
{
|
|
@@ -10747,7 +10746,7 @@ const oy = V.memo(function({
|
|
|
10747
10746
|
onCancelEdit: g,
|
|
10748
10747
|
onCopy: x
|
|
10749
10748
|
}) {
|
|
10750
|
-
const [y, S] = xe(!1), [R, C] = xe("collapsed"), [T, k] = xe(!1), { currentThreadId: I } = ra(), { handleInterrupt: A } = hu(), { toast:
|
|
10749
|
+
const [y, S] = xe(!1), [R, C] = xe("collapsed"), [T, k] = xe(!1), { currentThreadId: I } = ra(), { handleInterrupt: A } = hu(), { toast: _ } = Sa(), [D, L] = xe({}), [W, P] = xe(!1), [Y, K] = xe(null), J = l === "phone" || l === "half-screen", z = t.role, $ = z === "tool", F = !(r && z !== "user"), B = V.useMemo(() => {
|
|
10751
10750
|
switch (z) {
|
|
10752
10751
|
case "user":
|
|
10753
10752
|
return "text-[hsl(var(--chat-bubble-user-text))]";
|
|
@@ -10816,7 +10815,7 @@ const oy = V.memo(function({
|
|
|
10816
10815
|
}
|
|
10817
10816
|
if (Ne.startsWith("data:")) {
|
|
10818
10817
|
ne.preventDefault(), L((Oe) => ({ ...Oe, [de]: !0 }));
|
|
10819
|
-
const me = `${ae.name}_${ae.size}_${Date.now()}`, He =
|
|
10818
|
+
const me = `${ae.name}_${ae.size}_${Date.now()}`, He = _({ title: "Fetching file...", description: "", open: !0 });
|
|
10820
10819
|
try {
|
|
10821
10820
|
const Oe = await Aw(I ?? void 0);
|
|
10822
10821
|
if (!Oe || !Array.isArray(Oe))
|
|
@@ -10834,7 +10833,7 @@ const oy = V.memo(function({
|
|
|
10834
10833
|
} catch (Oe) {
|
|
10835
10834
|
console.error("Failed to fetch server file:", Oe);
|
|
10836
10835
|
const ot = Oe instanceof Error ? Oe.message : "Unknown error occurred";
|
|
10837
|
-
He.update({ id: He.id, title: "Failed", description: ot }),
|
|
10836
|
+
He.update({ id: He.id, title: "Failed", description: ot }), _({
|
|
10838
10837
|
title: "Failed to fetch file",
|
|
10839
10838
|
description: ot,
|
|
10840
10839
|
open: !0
|
|
@@ -10846,7 +10845,7 @@ const oy = V.memo(function({
|
|
|
10846
10845
|
} catch (Ne) {
|
|
10847
10846
|
console.error("File click error:", Ne), L((he) => ({ ...he, [de]: !1 }));
|
|
10848
10847
|
}
|
|
10849
|
-
}, [F, D,
|
|
10848
|
+
}, [F, D, _, I]), $e = V.useCallback(() => {
|
|
10850
10849
|
const ae = te(J ? "h-3 w-3" : "h-4 w-4", "opacity-60 flex-shrink-0", B);
|
|
10851
10850
|
switch (z) {
|
|
10852
10851
|
case "user":
|
|
@@ -10931,7 +10930,7 @@ const oy = V.memo(function({
|
|
|
10931
10930
|
size: "sm",
|
|
10932
10931
|
className: "h-6 text-xs !text-[hsl(var(--chat-bubble-user-text))]",
|
|
10933
10932
|
children: T ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
10934
|
-
/* @__PURE__ */ c.jsx(
|
|
10933
|
+
/* @__PURE__ */ c.jsx(jr, { className: "h-3 w-3 mr-1" }),
|
|
10935
10934
|
" Show less"
|
|
10936
10935
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
10937
10936
|
/* @__PURE__ */ c.jsx(dr, { className: "h-3 w-3 mr-1" }),
|
|
@@ -11021,7 +11020,7 @@ const oy = V.memo(function({
|
|
|
11021
11020
|
/* @__PURE__ */ c.jsx("div", { className: "font-mono text-sm mt-1", children: /* @__PURE__ */ c.jsx("pre", { className: "whitespace-pre-wrap break-words", children: He ? me : me.slice(0, d) + (me.length > d ? "..." : "") }) }),
|
|
11022
11021
|
/* @__PURE__ */ c.jsx(Kl, { asChild: !0, children: /* @__PURE__ */ c.jsx(Ue, { variant: "ghost", size: "sm", className: "h-6 text-xs", children: He ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
11023
11022
|
" ",
|
|
11024
|
-
/* @__PURE__ */ c.jsx(
|
|
11023
|
+
/* @__PURE__ */ c.jsx(jr, { className: "h-3 w-3 mr-1" }),
|
|
11025
11024
|
" Show less"
|
|
11026
11025
|
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
11027
11026
|
/* @__PURE__ */ c.jsx(dr, { className: "h-3 w-3 mr-1" }),
|
|
@@ -11086,7 +11085,7 @@ const oy = V.memo(function({
|
|
|
11086
11085
|
onClick: () => C((ne) => ne === "collapsed" ? "preview" : "collapsed"),
|
|
11087
11086
|
children: [
|
|
11088
11087
|
/* @__PURE__ */ c.jsx("span", { children: ue.name }),
|
|
11089
|
-
/* @__PURE__ */ c.jsx("span", { className: "inline-flex items-center", children: R !== "collapsed" ? /* @__PURE__ */ c.jsx(
|
|
11088
|
+
/* @__PURE__ */ c.jsx("span", { className: "inline-flex items-center", children: R !== "collapsed" ? /* @__PURE__ */ c.jsx(jr, { className: "h-3 w-3" }) : /* @__PURE__ */ c.jsx(dr, { className: "h-3 w-3" }) })
|
|
11090
11089
|
]
|
|
11091
11090
|
}
|
|
11092
11091
|
),
|
|
@@ -11099,7 +11098,7 @@ const oy = V.memo(function({
|
|
|
11099
11098
|
onClick: () => C((ne) => ne === "collapsed" ? "preview" : "collapsed"),
|
|
11100
11099
|
children: /* @__PURE__ */ c.jsxs("span", { className: "text-xs flex items-center gap-1", children: [
|
|
11101
11100
|
"Tool Output ",
|
|
11102
|
-
R !== "collapsed" ? /* @__PURE__ */ c.jsx(
|
|
11101
|
+
R !== "collapsed" ? /* @__PURE__ */ c.jsx(jr, { className: "h-3 w-3" }) : /* @__PURE__ */ c.jsx(dr, { className: "h-3 w-3" })
|
|
11103
11102
|
] })
|
|
11104
11103
|
}
|
|
11105
11104
|
)
|
|
@@ -11408,7 +11407,7 @@ const gc = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Wd = V.forwa
|
|
|
11408
11407
|
}
|
|
11409
11408
|
}
|
|
11410
11409
|
};
|
|
11411
|
-
}, [a]),
|
|
11410
|
+
}, [a]), _ = at(() => !w || v ? !1 : T ? "auto" : !1, [T, w, v]);
|
|
11412
11411
|
return e.length === 0 ? /* @__PURE__ */ c.jsx("div", { className: f, style: h, children: /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center py-8 text-muted-foreground text-center max-w-md mx-auto", children: p || "No messages yet. Start a conversation!" }) }) : /* @__PURE__ */ c.jsx("div", { className: f, style: h, children: /* @__PURE__ */ c.jsx(
|
|
11413
11412
|
Pv,
|
|
11414
11413
|
{
|
|
@@ -11419,7 +11418,7 @@ const gc = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Wd = V.forwa
|
|
|
11419
11418
|
R.current = D instanceof HTMLDivElement ? D : null;
|
|
11420
11419
|
},
|
|
11421
11420
|
data: e,
|
|
11422
|
-
followOutput:
|
|
11421
|
+
followOutput: _,
|
|
11423
11422
|
overscan: 200,
|
|
11424
11423
|
increaseViewportBy: { top: 100, bottom: 200 },
|
|
11425
11424
|
defaultItemHeight: 80,
|
|
@@ -11586,12 +11585,12 @@ const xy = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
|
11586
11585
|
function an(e) {
|
|
11587
11586
|
return xy.has(vn(e)) ? "y" : "x";
|
|
11588
11587
|
}
|
|
11589
|
-
function
|
|
11588
|
+
function _a(e) {
|
|
11590
11589
|
return Na(an(e));
|
|
11591
11590
|
}
|
|
11592
11591
|
function vy(e, t, n) {
|
|
11593
11592
|
n === void 0 && (n = !1);
|
|
11594
|
-
const r = kr(e), o =
|
|
11593
|
+
const r = kr(e), o = _a(e), s = Aa(o);
|
|
11595
11594
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
11596
11595
|
return t.reference[s] > t.floating[s] && (i = Ko(i)), [i, Ko(i)];
|
|
11597
11596
|
}
|
|
@@ -11663,7 +11662,7 @@ function wc(e, t, n) {
|
|
|
11663
11662
|
reference: r,
|
|
11664
11663
|
floating: o
|
|
11665
11664
|
} = e;
|
|
11666
|
-
const s = an(t), i =
|
|
11665
|
+
const s = an(t), i = _a(t), a = Aa(i), l = vn(t), u = s === "y", d = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, h = r[a] / 2 - o[a] / 2;
|
|
11667
11666
|
let p;
|
|
11668
11667
|
switch (l) {
|
|
11669
11668
|
case "top":
|
|
@@ -11833,10 +11832,10 @@ const ky = (e) => ({
|
|
|
11833
11832
|
const f = Vd(d), h = {
|
|
11834
11833
|
x: n,
|
|
11835
11834
|
y: r
|
|
11836
|
-
}, p =
|
|
11835
|
+
}, p = _a(o), w = Aa(p), v = await i.getDimensions(u), g = p === "y", x = g ? "top" : "left", y = g ? "bottom" : "right", S = g ? "clientHeight" : "clientWidth", R = s.reference[w] + s.reference[p] - h[p] - s.floating[w], C = h[p] - s.reference[p], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
11837
11836
|
let k = T ? T[S] : 0;
|
|
11838
11837
|
(!k || !await (i.isElement == null ? void 0 : i.isElement(T))) && (k = a.floating[S] || s.floating[w]);
|
|
11839
|
-
const I = R / 2 - C / 2, A = k / 2 - v[w] / 2 - 1,
|
|
11838
|
+
const I = R / 2 - C / 2, A = k / 2 - v[w] / 2 - 1, _ = En(f[x], A), D = En(f[y], A), L = _, W = k - v[w] - D, P = k / 2 - v[w] / 2 + I, Y = $i(L, P, W), K = !l.arrow && kr(o) != null && P !== Y && s.reference[w] / 2 - (P < L ? _ : D) - v[w] / 2 < 0, J = K ? P < L ? P - L : P - W : 0;
|
|
11840
11839
|
return {
|
|
11841
11840
|
[p]: h[p] + J,
|
|
11842
11841
|
data: {
|
|
@@ -11876,12 +11875,12 @@ const ky = (e) => ({
|
|
|
11876
11875
|
const x = vn(o), y = an(a), S = vn(a) === a, R = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), C = h || (S || !v ? [Ko(a)] : wy(a)), T = w !== "none";
|
|
11877
11876
|
!h && T && C.push(...Cy(a, v, w, R));
|
|
11878
11877
|
const k = [a, ...C], I = await qr(t, g), A = [];
|
|
11879
|
-
let
|
|
11878
|
+
let _ = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
11880
11879
|
if (d && A.push(I[x]), f) {
|
|
11881
11880
|
const P = vy(o, i, R);
|
|
11882
11881
|
A.push(I[P[0]], I[P[1]]);
|
|
11883
11882
|
}
|
|
11884
|
-
if (
|
|
11883
|
+
if (_ = [..._, {
|
|
11885
11884
|
placement: o,
|
|
11886
11885
|
overflows: A
|
|
11887
11886
|
}], !A.every((P) => P <= 0)) {
|
|
@@ -11889,22 +11888,22 @@ const ky = (e) => ({
|
|
|
11889
11888
|
const P = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, Y = k[P];
|
|
11890
11889
|
if (Y && (!(f === "alignment" ? y !== an(Y) : !1) || // We leave the current main axis only if every placement on that axis
|
|
11891
11890
|
// overflows the main axis.
|
|
11892
|
-
|
|
11891
|
+
_.every((z) => an(z.placement) === y ? z.overflows[0] > 0 : !0)))
|
|
11893
11892
|
return {
|
|
11894
11893
|
data: {
|
|
11895
11894
|
index: P,
|
|
11896
|
-
overflows:
|
|
11895
|
+
overflows: _
|
|
11897
11896
|
},
|
|
11898
11897
|
reset: {
|
|
11899
11898
|
placement: Y
|
|
11900
11899
|
}
|
|
11901
11900
|
};
|
|
11902
|
-
let K = (L =
|
|
11901
|
+
let K = (L = _.filter((J) => J.overflows[0] <= 0).sort((J, z) => J.overflows[1] - z.overflows[1])[0]) == null ? void 0 : L.placement;
|
|
11903
11902
|
if (!K)
|
|
11904
11903
|
switch (p) {
|
|
11905
11904
|
case "bestFit": {
|
|
11906
11905
|
var W;
|
|
11907
|
-
const J = (W =
|
|
11906
|
+
const J = (W = _.filter((z) => {
|
|
11908
11907
|
if (T) {
|
|
11909
11908
|
const $ = an(z.placement);
|
|
11910
11909
|
return $ === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -12033,7 +12032,7 @@ const Ay = function(e) {
|
|
|
12033
12032
|
};
|
|
12034
12033
|
}
|
|
12035
12034
|
};
|
|
12036
|
-
},
|
|
12035
|
+
}, _y = function(e) {
|
|
12037
12036
|
return e === void 0 && (e = {}), {
|
|
12038
12037
|
name: "shift",
|
|
12039
12038
|
options: e,
|
|
@@ -12089,7 +12088,7 @@ const Ay = function(e) {
|
|
|
12089
12088
|
};
|
|
12090
12089
|
}
|
|
12091
12090
|
};
|
|
12092
|
-
},
|
|
12091
|
+
}, jy = function(e) {
|
|
12093
12092
|
return e === void 0 && (e = {}), {
|
|
12094
12093
|
options: e,
|
|
12095
12094
|
fn(t) {
|
|
@@ -12155,8 +12154,8 @@ const Ay = function(e) {
|
|
|
12155
12154
|
const y = v - d.top - d.bottom, S = w - d.left - d.right, R = En(v - d[g], y), C = En(w - d[x], S), T = !t.middlewareData.shift;
|
|
12156
12155
|
let k = R, I = C;
|
|
12157
12156
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (I = S), (r = t.middlewareData.shift) != null && r.enabled.y && (k = y), T && !h) {
|
|
12158
|
-
const
|
|
12159
|
-
p ? I = w - 2 * (
|
|
12157
|
+
const _ = At(d.left, 0), D = At(d.right, 0), L = At(d.top, 0), W = At(d.bottom, 0);
|
|
12158
|
+
p ? I = w - 2 * (_ !== 0 || D !== 0 ? _ + D : At(d.left, d.right)) : k = v - 2 * (L !== 0 || W !== 0 ? L + W : At(d.top, d.bottom));
|
|
12160
12159
|
}
|
|
12161
12160
|
await l({
|
|
12162
12161
|
...t,
|
|
@@ -12223,14 +12222,14 @@ function ks(e) {
|
|
|
12223
12222
|
});
|
|
12224
12223
|
}
|
|
12225
12224
|
const $y = ["transform", "translate", "scale", "rotate", "perspective"], Fy = ["transform", "translate", "scale", "rotate", "perspective", "filter"], zy = ["paint", "layout", "strict", "content"];
|
|
12226
|
-
function
|
|
12225
|
+
function ja(e) {
|
|
12227
12226
|
const t = Pa(), n = Yt(e) ? Xt(e) : e;
|
|
12228
12227
|
return $y.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) || Fy.some((r) => (n.willChange || "").includes(r)) || zy.some((r) => (n.contain || "").includes(r));
|
|
12229
12228
|
}
|
|
12230
12229
|
function By(e) {
|
|
12231
12230
|
let t = In(e);
|
|
12232
12231
|
for (; un(t) && !br(t); ) {
|
|
12233
|
-
if (
|
|
12232
|
+
if (ja(t))
|
|
12234
12233
|
return t;
|
|
12235
12234
|
if (ks(t))
|
|
12236
12235
|
return null;
|
|
@@ -12461,7 +12460,7 @@ function Jy(e, t) {
|
|
|
12461
12460
|
const s = Xt(e).position === "fixed";
|
|
12462
12461
|
let i = s ? In(e) : e;
|
|
12463
12462
|
for (; Yt(i) && !br(i); ) {
|
|
12464
|
-
const a = Xt(i), l =
|
|
12463
|
+
const a = Xt(i), l = ja(i);
|
|
12465
12464
|
!l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Yy.has(o.position) || so(i) && !l && Zd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = In(i);
|
|
12466
12465
|
}
|
|
12467
12466
|
return t.set(e, r), r;
|
|
@@ -12545,7 +12544,7 @@ function Qd(e, t) {
|
|
|
12545
12544
|
let r = Rc(e, t);
|
|
12546
12545
|
for (; r && Dy(r) && fi(r); )
|
|
12547
12546
|
r = Rc(r, t);
|
|
12548
|
-
return r && br(r) && fi(r) && !
|
|
12547
|
+
return r && br(r) && fi(r) && !ja(r) ? n : r || By(e) || n;
|
|
12549
12548
|
}
|
|
12550
12549
|
const t0 = async function(e) {
|
|
12551
12550
|
const t = this.getOffsetParent || Qd, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -12659,7 +12658,7 @@ function s0(e, t, n, r) {
|
|
|
12659
12658
|
}), f == null || f(), (x = p) == null || x.disconnect(), p = null, l && cancelAnimationFrame(w);
|
|
12660
12659
|
};
|
|
12661
12660
|
}
|
|
12662
|
-
const i0 = Ay, a0 =
|
|
12661
|
+
const i0 = Ay, a0 = _y, l0 = Ey, c0 = Py, u0 = Iy, kc = ky, d0 = jy, f0 = (e, t, n) => {
|
|
12663
12662
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
12664
12663
|
platform: r0,
|
|
12665
12664
|
...n
|
|
@@ -12744,7 +12743,7 @@ function m0(e) {
|
|
|
12744
12743
|
z !== T.current && (T.current = z, v(z));
|
|
12745
12744
|
}, []), S = m.useCallback((z) => {
|
|
12746
12745
|
z !== k.current && (k.current = z, x(z));
|
|
12747
|
-
}, []), R = s || w, C = i || g, T = m.useRef(null), k = m.useRef(null), I = m.useRef(d), A = l != null,
|
|
12746
|
+
}, []), R = s || w, C = i || g, T = m.useRef(null), k = m.useRef(null), I = m.useRef(d), A = l != null, _ = hi(l), D = hi(o), L = hi(u), W = m.useCallback(() => {
|
|
12748
12747
|
if (!T.current || !k.current)
|
|
12749
12748
|
return;
|
|
12750
12749
|
const z = {
|
|
@@ -12777,11 +12776,11 @@ function m0(e) {
|
|
|
12777
12776
|
P.current = !1;
|
|
12778
12777
|
}), []), Mo(() => {
|
|
12779
12778
|
if (R && (T.current = R), C && (k.current = C), R && C) {
|
|
12780
|
-
if (
|
|
12781
|
-
return
|
|
12779
|
+
if (_.current)
|
|
12780
|
+
return _.current(R, C, W);
|
|
12782
12781
|
W();
|
|
12783
12782
|
}
|
|
12784
|
-
}, [R, C, W,
|
|
12783
|
+
}, [R, C, W, _, A]);
|
|
12785
12784
|
const Y = m.useMemo(() => ({
|
|
12786
12785
|
reference: T,
|
|
12787
12786
|
floating: k,
|
|
@@ -12934,8 +12933,8 @@ var Da = "PopperContent", [E0, I0] = of(Da), uf = m.forwardRef(
|
|
|
12934
12933
|
updatePositionStrategy: p = "optimized",
|
|
12935
12934
|
onPlaced: w,
|
|
12936
12935
|
...v
|
|
12937
|
-
} = e, g = sf(Da, n), [x, y] = m.useState(null), S = ze(t, ($e) => y($e)), [R, C] = m.useState(null), T = rf(R), k = (T == null ? void 0 : T.width) ?? 0, I = (T == null ? void 0 : T.height) ?? 0, A = r + (s !== "center" ? "-" + s : ""),
|
|
12938
|
-
padding:
|
|
12936
|
+
} = e, g = sf(Da, n), [x, y] = m.useState(null), S = ze(t, ($e) => y($e)), [R, C] = m.useState(null), T = rf(R), k = (T == null ? void 0 : T.width) ?? 0, I = (T == null ? void 0 : T.height) ?? 0, A = r + (s !== "center" ? "-" + s : ""), _ = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, D = Array.isArray(u) ? u : [u], L = D.length > 0, W = {
|
|
12937
|
+
padding: _,
|
|
12939
12938
|
boundary: D.filter(A0),
|
|
12940
12939
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
12941
12940
|
altBoundary: L
|
|
@@ -12966,7 +12965,7 @@ var Da = "PopperContent", [E0, I0] = of(Da), uf = m.forwardRef(
|
|
|
12966
12965
|
}
|
|
12967
12966
|
}),
|
|
12968
12967
|
R && C0({ element: R, padding: a }),
|
|
12969
|
-
|
|
12968
|
+
_0({ arrowWidth: k, arrowHeight: I }),
|
|
12970
12969
|
h && S0({ strategy: "referenceHidden", ...W })
|
|
12971
12970
|
]
|
|
12972
12971
|
}), [$, F] = hf(K), B = mt(w);
|
|
@@ -13085,7 +13084,7 @@ ff.displayName = df;
|
|
|
13085
13084
|
function A0(e) {
|
|
13086
13085
|
return e !== null;
|
|
13087
13086
|
}
|
|
13088
|
-
var
|
|
13087
|
+
var _0 = (e) => ({
|
|
13089
13088
|
name: "transformOrigin",
|
|
13090
13089
|
options: e,
|
|
13091
13090
|
fn(t) {
|
|
@@ -13099,7 +13098,7 @@ function hf(e) {
|
|
|
13099
13098
|
const [t, n = "center"] = e.split("-");
|
|
13100
13099
|
return [t, n];
|
|
13101
13100
|
}
|
|
13102
|
-
var pf = af, mf = cf, gf = uf, xf = ff, pi = "rovingFocusGroup.onEntryFocus",
|
|
13101
|
+
var pf = af, mf = cf, gf = uf, xf = ff, pi = "rovingFocusGroup.onEntryFocus", j0 = { bubbles: !1, cancelable: !0 }, io = "RovingFocusGroup", [Bi, vf, P0] = Ia(io), [O0, wf] = fn(
|
|
13103
13102
|
io,
|
|
13104
13103
|
[P0]
|
|
13105
13104
|
), [M0, D0] = O0(io), bf = m.forwardRef(
|
|
@@ -13163,8 +13162,8 @@ var L0 = m.forwardRef((e, t) => {
|
|
|
13163
13162
|
onFocus: le(e.onFocus, (I) => {
|
|
13164
13163
|
const A = !C.current;
|
|
13165
13164
|
if (I.target === I.currentTarget && A && !x) {
|
|
13166
|
-
const
|
|
13167
|
-
if (I.currentTarget.dispatchEvent(
|
|
13165
|
+
const _ = new CustomEvent(pi, j0);
|
|
13166
|
+
if (I.currentTarget.dispatchEvent(_), !_.defaultPrevented) {
|
|
13168
13167
|
const D = R().filter((K) => K.focusable), L = D.find((K) => K.active), W = D.find((K) => K.id === v), Y = [L, W, ...D].filter(
|
|
13169
13168
|
Boolean
|
|
13170
13169
|
).map((K) => K.ref.current);
|
|
@@ -13377,11 +13376,11 @@ var Ht = "MenuContent", [eS, Fa] = nr(Ht), Af = m.forwardRef(
|
|
|
13377
13376
|
onDismiss: p,
|
|
13378
13377
|
disableOutsideScroll: w,
|
|
13379
13378
|
...v
|
|
13380
|
-
} = e, g = rr(Ht, n), x = lo(Ht, n), y = As(n), S = kf(n), R = G0(n), [C, T] = m.useState(null), k = m.useRef(null), I = ze(t, k, g.onContentChange), A = m.useRef(0),
|
|
13379
|
+
} = e, g = rr(Ht, n), x = lo(Ht, n), y = As(n), S = kf(n), R = G0(n), [C, T] = m.useState(null), k = m.useRef(null), I = ze(t, k, g.onContentChange), A = m.useRef(0), _ = m.useRef(""), D = m.useRef(0), L = m.useRef(null), W = m.useRef("right"), P = m.useRef(0), Y = w ? ws : m.Fragment, K = w ? { as: rS, allowPinchZoom: !0 } : void 0, J = ($) => {
|
|
13381
13380
|
var G, O;
|
|
13382
|
-
const F =
|
|
13381
|
+
const F = _.current + $, B = R().filter((Q) => !Q.disabled), pe = document.activeElement, ue = (G = B.find((Q) => Q.ref.current === pe)) == null ? void 0 : G.textValue, ee = B.map((Q) => Q.textValue), Ie = mS(ee, F, ue), Ce = (O = B.find((Q) => Q.textValue === Ie)) == null ? void 0 : O.ref.current;
|
|
13383
13382
|
(function Q(q) {
|
|
13384
|
-
|
|
13383
|
+
_.current = q, window.clearTimeout(A.current), q !== "" && (A.current = window.setTimeout(() => Q(""), 1e3));
|
|
13385
13384
|
})(F), Ce && setTimeout(() => Ce.focus());
|
|
13386
13385
|
};
|
|
13387
13386
|
m.useEffect(() => () => window.clearTimeout(A.current), []), Ca();
|
|
@@ -13393,7 +13392,7 @@ var Ht = "MenuContent", [eS, Fa] = nr(Ht), Af = m.forwardRef(
|
|
|
13393
13392
|
eS,
|
|
13394
13393
|
{
|
|
13395
13394
|
scope: n,
|
|
13396
|
-
searchRef:
|
|
13395
|
+
searchRef: _,
|
|
13397
13396
|
onItemEnter: m.useCallback(
|
|
13398
13397
|
($) => {
|
|
13399
13398
|
z($) && $.preventDefault();
|
|
@@ -13473,7 +13472,7 @@ var Ht = "MenuContent", [eS, Fa] = nr(Ht), Af = m.forwardRef(
|
|
|
13473
13472
|
Tf.includes($.key) && Ce.reverse(), hS(Ce);
|
|
13474
13473
|
}),
|
|
13475
13474
|
onBlur: le(e.onBlur, ($) => {
|
|
13476
|
-
$.currentTarget.contains($.target) || (window.clearTimeout(A.current),
|
|
13475
|
+
$.currentTarget.contains($.target) || (window.clearTimeout(A.current), _.current = "");
|
|
13477
13476
|
}),
|
|
13478
13477
|
onPointerMove: le(
|
|
13479
13478
|
e.onPointerMove,
|
|
@@ -13505,14 +13504,14 @@ var oS = "MenuGroup", Ba = m.forwardRef(
|
|
|
13505
13504
|
}
|
|
13506
13505
|
);
|
|
13507
13506
|
Ba.displayName = oS;
|
|
13508
|
-
var sS = "MenuLabel",
|
|
13507
|
+
var sS = "MenuLabel", _f = m.forwardRef(
|
|
13509
13508
|
(e, t) => {
|
|
13510
13509
|
const { __scopeMenu: n, ...r } = e;
|
|
13511
13510
|
return /* @__PURE__ */ c.jsx(Ee.div, { ...r, ref: t });
|
|
13512
13511
|
}
|
|
13513
13512
|
);
|
|
13514
|
-
|
|
13515
|
-
var Yo = "MenuItem", Ic = "menu.itemSelect",
|
|
13513
|
+
_f.displayName = sS;
|
|
13514
|
+
var Yo = "MenuItem", Ic = "menu.itemSelect", _s = m.forwardRef(
|
|
13516
13515
|
(e, t) => {
|
|
13517
13516
|
const { disabled: n = !1, onSelect: r, ...o } = e, s = m.useRef(null), i = lo(Yo, e.__scopeMenu), a = Fa(Yo, e.__scopeMenu), l = ze(t, s), u = m.useRef(!1), d = () => {
|
|
13518
13517
|
const f = s.current;
|
|
@@ -13522,7 +13521,7 @@ var Yo = "MenuItem", Ic = "menu.itemSelect", js = m.forwardRef(
|
|
|
13522
13521
|
}
|
|
13523
13522
|
};
|
|
13524
13523
|
return /* @__PURE__ */ c.jsx(
|
|
13525
|
-
|
|
13524
|
+
jf,
|
|
13526
13525
|
{
|
|
13527
13526
|
...o,
|
|
13528
13527
|
ref: l,
|
|
@@ -13544,8 +13543,8 @@ var Yo = "MenuItem", Ic = "menu.itemSelect", js = m.forwardRef(
|
|
|
13544
13543
|
);
|
|
13545
13544
|
}
|
|
13546
13545
|
);
|
|
13547
|
-
|
|
13548
|
-
var
|
|
13546
|
+
_s.displayName = Yo;
|
|
13547
|
+
var jf = m.forwardRef(
|
|
13549
13548
|
(e, t) => {
|
|
13550
13549
|
const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, i = Fa(Yo, n), a = kf(n), l = m.useRef(null), u = ze(t, l), [d, f] = m.useState(!1), [h, p] = m.useState("");
|
|
13551
13550
|
return m.useEffect(() => {
|
|
@@ -13587,7 +13586,7 @@ var _f = m.forwardRef(
|
|
|
13587
13586
|
(e, t) => {
|
|
13588
13587
|
const { checked: n = !1, onCheckedChange: r, ...o } = e;
|
|
13589
13588
|
return /* @__PURE__ */ c.jsx($f, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ c.jsx(
|
|
13590
|
-
|
|
13589
|
+
_s,
|
|
13591
13590
|
{
|
|
13592
13591
|
role: "menuitemcheckbox",
|
|
13593
13592
|
"aria-checked": Xo(n) ? "mixed" : n,
|
|
@@ -13619,7 +13618,7 @@ var Df = "MenuRadioItem", Lf = m.forwardRef(
|
|
|
13619
13618
|
(e, t) => {
|
|
13620
13619
|
const { value: n, ...r } = e, o = lS(Df, e.__scopeMenu), s = n === o.value;
|
|
13621
13620
|
return /* @__PURE__ */ c.jsx($f, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ c.jsx(
|
|
13622
|
-
|
|
13621
|
+
_s,
|
|
13623
13622
|
{
|
|
13624
13623
|
role: "menuitemradio",
|
|
13625
13624
|
"aria-checked": s,
|
|
@@ -13695,7 +13694,7 @@ var fS = "MenuSub", [qT, Hf] = nr(fS), Pr = "MenuSubTrigger", Uf = m.forwardRef(
|
|
|
13695
13694
|
window.clearTimeout(f), l(null);
|
|
13696
13695
|
};
|
|
13697
13696
|
}, [a, l]), /* @__PURE__ */ c.jsx(La, { asChild: !0, ...u, children: /* @__PURE__ */ c.jsx(
|
|
13698
|
-
|
|
13697
|
+
jf,
|
|
13699
13698
|
{
|
|
13700
13699
|
id: o.triggerId,
|
|
13701
13700
|
"aria-haspopup": "menu",
|
|
@@ -13834,10 +13833,10 @@ function xS(e, t) {
|
|
|
13834
13833
|
function Xr(e) {
|
|
13835
13834
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
13836
13835
|
}
|
|
13837
|
-
var vS = Ef, wS = La, bS = Nf, yS = Af, SS = Ba, CS =
|
|
13838
|
-
|
|
13836
|
+
var vS = Ef, wS = La, bS = Nf, yS = Af, SS = Ba, CS = _f, TS = _s, RS = Pf, kS = Mf, ES = Lf, IS = Ff, NS = zf, AS = Bf, _S = Uf, jS = Vf, js = "DropdownMenu", [PS, GT] = fn(
|
|
13837
|
+
js,
|
|
13839
13838
|
[Rf]
|
|
13840
|
-
), Tt = Rf(), [OS, qf] = PS(
|
|
13839
|
+
), Tt = Rf(), [OS, qf] = PS(js), Gf = (e) => {
|
|
13841
13840
|
const {
|
|
13842
13841
|
__scopeDropdownMenu: t,
|
|
13843
13842
|
children: n,
|
|
@@ -13850,7 +13849,7 @@ var vS = Ef, wS = La, bS = Nf, yS = Af, SS = Ba, CS = jf, TS = js, RS = Pf, kS =
|
|
|
13850
13849
|
prop: o,
|
|
13851
13850
|
defaultProp: s ?? !1,
|
|
13852
13851
|
onChange: i,
|
|
13853
|
-
caller:
|
|
13852
|
+
caller: js
|
|
13854
13853
|
});
|
|
13855
13854
|
return /* @__PURE__ */ c.jsx(
|
|
13856
13855
|
OS,
|
|
@@ -13867,7 +13866,7 @@ var vS = Ef, wS = La, bS = Nf, yS = Af, SS = Ba, CS = jf, TS = js, RS = Pf, kS =
|
|
|
13867
13866
|
}
|
|
13868
13867
|
);
|
|
13869
13868
|
};
|
|
13870
|
-
Gf.displayName =
|
|
13869
|
+
Gf.displayName = js;
|
|
13871
13870
|
var Yf = "DropdownMenuTrigger", Xf = m.forwardRef(
|
|
13872
13871
|
(e, t) => {
|
|
13873
13872
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = qf(Yf, n), i = Tt(n);
|
|
@@ -13987,13 +13986,13 @@ var KS = "DropdownMenuArrow", qS = m.forwardRef(
|
|
|
13987
13986
|
qS.displayName = KS;
|
|
13988
13987
|
var GS = "DropdownMenuSubTrigger", ih = m.forwardRef((e, t) => {
|
|
13989
13988
|
const { __scopeDropdownMenu: n, ...r } = e, o = Tt(n);
|
|
13990
|
-
return /* @__PURE__ */ c.jsx(
|
|
13989
|
+
return /* @__PURE__ */ c.jsx(_S, { ...o, ...r, ref: t });
|
|
13991
13990
|
});
|
|
13992
13991
|
ih.displayName = GS;
|
|
13993
13992
|
var YS = "DropdownMenuSubContent", ah = m.forwardRef((e, t) => {
|
|
13994
13993
|
const { __scopeDropdownMenu: n, ...r } = e, o = Tt(n);
|
|
13995
13994
|
return /* @__PURE__ */ c.jsx(
|
|
13996
|
-
|
|
13995
|
+
jS,
|
|
13997
13996
|
{
|
|
13998
13997
|
...o,
|
|
13999
13998
|
...r,
|
|
@@ -14151,7 +14150,7 @@ function mi({
|
|
|
14151
14150
|
stop: I,
|
|
14152
14151
|
loadOlderMessages: A
|
|
14153
14152
|
} = hu(), {
|
|
14154
|
-
isStreaming:
|
|
14153
|
+
isStreaming: _,
|
|
14155
14154
|
error: D,
|
|
14156
14155
|
streamingAssistantId: L,
|
|
14157
14156
|
lastCheckpointId: W,
|
|
@@ -14160,8 +14159,8 @@ function mi({
|
|
|
14160
14159
|
Ne.current && (Ne.current.value = ""), he.current && (he.current.value = ""), ee((re) => re + 1), Ce((re) => re + 1);
|
|
14161
14160
|
}, []), Oe = Ge(!1);
|
|
14162
14161
|
ct(() => {
|
|
14163
|
-
Oe.current && !
|
|
14164
|
-
}, [
|
|
14162
|
+
Oe.current && !_ && (pe([]), He()), Oe.current = _;
|
|
14163
|
+
}, [_, He]);
|
|
14165
14164
|
const [ot, gt] = xe("desktop");
|
|
14166
14165
|
ct(() => {
|
|
14167
14166
|
const re = () => {
|
|
@@ -14374,7 +14373,7 @@ function mi({
|
|
|
14374
14373
|
className: "h-full",
|
|
14375
14374
|
style: { height: "100%" },
|
|
14376
14375
|
messages: R,
|
|
14377
|
-
isStreaming:
|
|
14376
|
+
isStreaming: _,
|
|
14378
14377
|
streamingAssistantId: L,
|
|
14379
14378
|
streamingDebounceMs: typeof s == "number" ? s : o,
|
|
14380
14379
|
followNewMessages: i,
|
|
@@ -14473,7 +14472,7 @@ function mi({
|
|
|
14473
14472
|
type: "button",
|
|
14474
14473
|
size: "icon",
|
|
14475
14474
|
variant: "outline",
|
|
14476
|
-
disabled:
|
|
14475
|
+
disabled: _,
|
|
14477
14476
|
title: "More input actions",
|
|
14478
14477
|
className: d.moreButton || "",
|
|
14479
14478
|
children: /* @__PURE__ */ c.jsx(Jp, { size: 16 })
|
|
@@ -14509,7 +14508,7 @@ function mi({
|
|
|
14509
14508
|
initialValue: J,
|
|
14510
14509
|
editingMessageId: Y,
|
|
14511
14510
|
placeholder: Y ? "Edit your message..." : t,
|
|
14512
|
-
isStreaming:
|
|
14511
|
+
isStreaming: _,
|
|
14513
14512
|
disabled: !1,
|
|
14514
14513
|
maxLength: Oo,
|
|
14515
14514
|
onSend: On,
|
|
@@ -14552,13 +14551,13 @@ var Wa = "ScrollArea", [vh, YT] = fn(Wa), [lC, Wt] = vh(Wa), wh = m.forwardRef(
|
|
|
14552
14551
|
dir: o,
|
|
14553
14552
|
scrollHideDelay: s = 600,
|
|
14554
14553
|
...i
|
|
14555
|
-
} = e, [a, l] = m.useState(null), [u, d] = m.useState(null), [f, h] = m.useState(null), [p, w] = m.useState(null), [v, g] = m.useState(null), [x, y] = m.useState(0), [S, R] = m.useState(0), [C, T] = m.useState(!1), [k, I] = m.useState(!1), A = ze(t, (D) => l(D)),
|
|
14554
|
+
} = e, [a, l] = m.useState(null), [u, d] = m.useState(null), [f, h] = m.useState(null), [p, w] = m.useState(null), [v, g] = m.useState(null), [x, y] = m.useState(0), [S, R] = m.useState(0), [C, T] = m.useState(!1), [k, I] = m.useState(!1), A = ze(t, (D) => l(D)), _ = Ts(o);
|
|
14556
14555
|
return /* @__PURE__ */ c.jsx(
|
|
14557
14556
|
lC,
|
|
14558
14557
|
{
|
|
14559
14558
|
scope: n,
|
|
14560
14559
|
type: r,
|
|
14561
|
-
dir:
|
|
14560
|
+
dir: _,
|
|
14562
14561
|
scrollHideDelay: s,
|
|
14563
14562
|
scrollArea: a,
|
|
14564
14563
|
viewport: u,
|
|
@@ -14578,7 +14577,7 @@ var Wa = "ScrollArea", [vh, YT] = fn(Wa), [lC, Wt] = vh(Wa), wh = m.forwardRef(
|
|
|
14578
14577
|
children: /* @__PURE__ */ c.jsx(
|
|
14579
14578
|
Ee.div,
|
|
14580
14579
|
{
|
|
14581
|
-
dir:
|
|
14580
|
+
dir: _,
|
|
14582
14581
|
...i,
|
|
14583
14582
|
ref: A,
|
|
14584
14583
|
style: {
|
|
@@ -14877,14 +14876,14 @@ var cC = m.forwardRef((e, t) => {
|
|
|
14877
14876
|
} = e, p = Wt(pn, n), [w, v] = m.useState(null), g = ze(t, (A) => v(A)), x = m.useRef(null), y = m.useRef(""), S = p.viewport, R = r.content - r.viewport, C = mt(d), T = mt(l), k = Os(f, 10);
|
|
14878
14877
|
function I(A) {
|
|
14879
14878
|
if (x.current) {
|
|
14880
|
-
const
|
|
14881
|
-
u({ x:
|
|
14879
|
+
const _ = A.clientX - x.current.left, D = A.clientY - x.current.top;
|
|
14880
|
+
u({ x: _, y: D });
|
|
14882
14881
|
}
|
|
14883
14882
|
}
|
|
14884
14883
|
return m.useEffect(() => {
|
|
14885
|
-
const A = (
|
|
14886
|
-
const D =
|
|
14887
|
-
(w == null ? void 0 : w.contains(D)) && C(
|
|
14884
|
+
const A = (_) => {
|
|
14885
|
+
const D = _.target;
|
|
14886
|
+
(w == null ? void 0 : w.contains(D)) && C(_, R);
|
|
14888
14887
|
};
|
|
14889
14888
|
return document.addEventListener("wheel", A, { passive: !1 }), () => document.removeEventListener("wheel", A, { passive: !1 });
|
|
14890
14889
|
}, [S, w, R, C]), m.useEffect(T, [r, T]), yr(w, k), yr(p.content, k), /* @__PURE__ */ c.jsx(
|
|
@@ -14908,8 +14907,8 @@ var cC = m.forwardRef((e, t) => {
|
|
|
14908
14907
|
}),
|
|
14909
14908
|
onPointerMove: le(e.onPointerMove, I),
|
|
14910
14909
|
onPointerUp: le(e.onPointerUp, (A) => {
|
|
14911
|
-
const
|
|
14912
|
-
|
|
14910
|
+
const _ = A.target;
|
|
14911
|
+
_.hasPointerCapture(A.pointerId) && _.releasePointerCapture(A.pointerId), document.body.style.webkitUserSelect = y.current, p.viewport && (p.viewport.style.scrollBehavior = ""), x.current = null;
|
|
14913
14912
|
})
|
|
14914
14913
|
}
|
|
14915
14914
|
)
|
|
@@ -15052,7 +15051,7 @@ function yr(e, t) {
|
|
|
15052
15051
|
}, [e, n]);
|
|
15053
15052
|
}
|
|
15054
15053
|
var Ah = wh, vC = yh, wC = kh;
|
|
15055
|
-
const
|
|
15054
|
+
const _h = m.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
15056
15055
|
Ah,
|
|
15057
15056
|
{
|
|
15058
15057
|
ref: r,
|
|
@@ -15060,13 +15059,13 @@ const jh = m.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
15060
15059
|
...n,
|
|
15061
15060
|
children: [
|
|
15062
15061
|
/* @__PURE__ */ c.jsx(vC, { className: "h-full w-full rounded-[inherit] overflow-auto", children: t }),
|
|
15063
|
-
/* @__PURE__ */ c.jsx(
|
|
15062
|
+
/* @__PURE__ */ c.jsx(jh, {}),
|
|
15064
15063
|
/* @__PURE__ */ c.jsx(wC, {})
|
|
15065
15064
|
]
|
|
15066
15065
|
}
|
|
15067
15066
|
));
|
|
15068
|
-
|
|
15069
|
-
const
|
|
15067
|
+
_h.displayName = Ah.displayName;
|
|
15068
|
+
const jh = m.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ c.jsx(
|
|
15070
15069
|
Va,
|
|
15071
15070
|
{
|
|
15072
15071
|
ref: r,
|
|
@@ -15081,7 +15080,7 @@ const _h = m.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r)
|
|
|
15081
15080
|
children: /* @__PURE__ */ c.jsx(Rh, { className: "relative flex-1 rounded-full bg-border" })
|
|
15082
15081
|
}
|
|
15083
15082
|
));
|
|
15084
|
-
|
|
15083
|
+
jh.displayName = Va.displayName;
|
|
15085
15084
|
function Ac({
|
|
15086
15085
|
className: e = "",
|
|
15087
15086
|
showCreateButton: t = !0,
|
|
@@ -15103,7 +15102,7 @@ function Ac({
|
|
|
15103
15102
|
deleteThread: v,
|
|
15104
15103
|
renameThread: g,
|
|
15105
15104
|
isLoadingThreads: x
|
|
15106
|
-
} = ra(), [y, S] = xe(Array.isArray(h) ? h : []), R = Ge(y.length > 0), [C, T] = xe(null), [k, I] = xe(""), [A,
|
|
15105
|
+
} = ra(), [y, S] = xe(Array.isArray(h) ? h : []), R = Ge(y.length > 0), [C, T] = xe(null), [k, I] = xe(""), [A, _] = xe(!1);
|
|
15107
15106
|
ct(() => {
|
|
15108
15107
|
const F = Array.isArray(h) ? h : [];
|
|
15109
15108
|
if (F.length > 0) {
|
|
@@ -15120,13 +15119,13 @@ function Ac({
|
|
|
15120
15119
|
}
|
|
15121
15120
|
}, L = async () => {
|
|
15122
15121
|
try {
|
|
15123
|
-
|
|
15122
|
+
_(!0);
|
|
15124
15123
|
const F = await w();
|
|
15125
15124
|
u == null || u(F), a == null || a(F);
|
|
15126
15125
|
} catch (F) {
|
|
15127
15126
|
console.error("Failed to create thread:", F);
|
|
15128
15127
|
} finally {
|
|
15129
|
-
|
|
15128
|
+
_(!1);
|
|
15130
15129
|
}
|
|
15131
15130
|
}, W = async (F, B) => {
|
|
15132
15131
|
if (B.stopPropagation(), !!confirm("Delete this thread?"))
|
|
@@ -15171,7 +15170,7 @@ function Ac({
|
|
|
15171
15170
|
}
|
|
15172
15171
|
) }),
|
|
15173
15172
|
/* @__PURE__ */ c.jsx(
|
|
15174
|
-
|
|
15173
|
+
_h,
|
|
15175
15174
|
{
|
|
15176
15175
|
className: `flex-1 min-h-0 ${s.threadList || ""}`,
|
|
15177
15176
|
style: o ? { maxHeight: o } : void 0,
|
|
@@ -15471,7 +15470,7 @@ Uh.displayName = AC;
|
|
|
15471
15470
|
function Wh(e) {
|
|
15472
15471
|
return e ? "checked" : "unchecked";
|
|
15473
15472
|
}
|
|
15474
|
-
var Vh = zh,
|
|
15473
|
+
var Vh = zh, _C = Hh;
|
|
15475
15474
|
const Cn = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
15476
15475
|
Vh,
|
|
15477
15476
|
{
|
|
@@ -15482,7 +15481,7 @@ const Cn = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
15482
15481
|
...t,
|
|
15483
15482
|
ref: n,
|
|
15484
15483
|
children: /* @__PURE__ */ c.jsx(
|
|
15485
|
-
|
|
15484
|
+
_C,
|
|
15486
15485
|
{
|
|
15487
15486
|
className: te(
|
|
15488
15487
|
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
@@ -15504,7 +15503,7 @@ var Kh = Object.freeze({
|
|
|
15504
15503
|
clip: "rect(0, 0, 0, 0)",
|
|
15505
15504
|
whiteSpace: "nowrap",
|
|
15506
15505
|
wordWrap: "normal"
|
|
15507
|
-
}),
|
|
15506
|
+
}), jC = "VisuallyHidden", PC = m.forwardRef(
|
|
15508
15507
|
(e, t) => /* @__PURE__ */ c.jsx(
|
|
15509
15508
|
Ee.span,
|
|
15510
15509
|
{
|
|
@@ -15514,11 +15513,11 @@ var Kh = Object.freeze({
|
|
|
15514
15513
|
}
|
|
15515
15514
|
)
|
|
15516
15515
|
);
|
|
15517
|
-
PC.displayName =
|
|
15516
|
+
PC.displayName = jC;
|
|
15518
15517
|
var OC = [" ", "Enter", "ArrowUp", "ArrowDown"], MC = [" ", "Enter"], Jn = "Select", [Ds, Ls, DC] = Ia(Jn), [Ir, QT] = fn(Jn, [
|
|
15519
15518
|
DC,
|
|
15520
15519
|
Ns
|
|
15521
|
-
]), $s = Ns(), [LC,
|
|
15520
|
+
]), $s = Ns(), [LC, jn] = Ir(Jn), [$C, FC] = Ir(Jn), qh = (e) => {
|
|
15522
15521
|
const {
|
|
15523
15522
|
__scopeSelect: t,
|
|
15524
15523
|
children: n,
|
|
@@ -15539,7 +15538,7 @@ var OC = [" ", "Enter", "ArrowUp", "ArrowDown"], MC = [" ", "Enter"], Jn = "Sele
|
|
|
15539
15538
|
defaultProp: o ?? !1,
|
|
15540
15539
|
onChange: s,
|
|
15541
15540
|
caller: Jn
|
|
15542
|
-
}), [A,
|
|
15541
|
+
}), [A, _] = Gn({
|
|
15543
15542
|
prop: i,
|
|
15544
15543
|
defaultProp: a,
|
|
15545
15544
|
onChange: l,
|
|
@@ -15558,7 +15557,7 @@ var OC = [" ", "Enter", "ArrowUp", "ArrowDown"], MC = [" ", "Enter"], Jn = "Sele
|
|
|
15558
15557
|
onValueNodeHasChildrenChange: C,
|
|
15559
15558
|
contentId: ln(),
|
|
15560
15559
|
value: A,
|
|
15561
|
-
onValueChange:
|
|
15560
|
+
onValueChange: _,
|
|
15562
15561
|
open: k,
|
|
15563
15562
|
onOpenChange: I,
|
|
15564
15563
|
dir: T,
|
|
@@ -15590,7 +15589,7 @@ var OC = [" ", "Enter", "ArrowUp", "ArrowDown"], MC = [" ", "Enter"], Jn = "Sele
|
|
|
15590
15589
|
name: d,
|
|
15591
15590
|
autoComplete: f,
|
|
15592
15591
|
value: A,
|
|
15593
|
-
onChange: (K) =>
|
|
15592
|
+
onChange: (K) => _(K.target.value),
|
|
15594
15593
|
disabled: h,
|
|
15595
15594
|
form: w,
|
|
15596
15595
|
children: [
|
|
@@ -15607,7 +15606,7 @@ var OC = [" ", "Enter", "ArrowUp", "ArrowDown"], MC = [" ", "Enter"], Jn = "Sele
|
|
|
15607
15606
|
qh.displayName = Jn;
|
|
15608
15607
|
var Gh = "SelectTrigger", Yh = m.forwardRef(
|
|
15609
15608
|
(e, t) => {
|
|
15610
|
-
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = $s(n), i =
|
|
15609
|
+
const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = $s(n), i = jn(Gh, n), a = i.disabled || r, l = ze(t, i.onTriggerChange), u = Ls(n), d = m.useRef("touch"), [f, h, p] = wp((v) => {
|
|
15611
15610
|
const g = u().filter((S) => !S.disabled), x = g.find((S) => S.value === i.value), y = bp(g, v, x);
|
|
15612
15611
|
y !== void 0 && i.onValueChange(y.value);
|
|
15613
15612
|
}), w = (v) => {
|
|
@@ -15651,7 +15650,7 @@ var Gh = "SelectTrigger", Yh = m.forwardRef(
|
|
|
15651
15650
|
Yh.displayName = Gh;
|
|
15652
15651
|
var Xh = "SelectValue", Jh = m.forwardRef(
|
|
15653
15652
|
(e, t) => {
|
|
15654
|
-
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: i = "", ...a } = e, l =
|
|
15653
|
+
const { __scopeSelect: n, className: r, style: o, children: s, placeholder: i = "", ...a } = e, l = jn(Xh, n), { onValueNodeHasChildrenChange: u } = l, d = s !== void 0, f = ze(t, l.onValueNodeChange);
|
|
15655
15654
|
return pt(() => {
|
|
15656
15655
|
u(d);
|
|
15657
15656
|
}, [u, d]), /* @__PURE__ */ c.jsx(
|
|
@@ -15677,7 +15676,7 @@ var BC = "SelectPortal", Qh = (e) => /* @__PURE__ */ c.jsx(xs, { asChild: !0, ..
|
|
|
15677
15676
|
Qh.displayName = BC;
|
|
15678
15677
|
var Zn = "SelectContent", ep = m.forwardRef(
|
|
15679
15678
|
(e, t) => {
|
|
15680
|
-
const n =
|
|
15679
|
+
const n = jn(Zn, e.__scopeSelect), [r, o] = m.useState();
|
|
15681
15680
|
if (pt(() => {
|
|
15682
15681
|
o(new DocumentFragment());
|
|
15683
15682
|
}, []), !n.open) {
|
|
@@ -15713,7 +15712,7 @@ var Kt = 10, [tp, Pn] = Ir(Zn), HC = "SelectContentImpl", UC = vr("SelectContent
|
|
|
15713
15712
|
avoidCollisions: g,
|
|
15714
15713
|
//
|
|
15715
15714
|
...x
|
|
15716
|
-
} = e, y =
|
|
15715
|
+
} = e, y = jn(Zn, n), [S, R] = m.useState(null), [C, T] = m.useState(null), k = ze(t, (G) => R(G)), [I, A] = m.useState(null), [_, D] = m.useState(
|
|
15717
15716
|
null
|
|
15718
15717
|
), L = Ls(n), [W, P] = m.useState(!1), Y = m.useRef(!1);
|
|
15719
15718
|
m.useEffect(() => {
|
|
@@ -15795,7 +15794,7 @@ var Kt = 10, [tp, Pn] = Ir(Zn), HC = "SelectContentImpl", UC = vr("SelectContent
|
|
|
15795
15794
|
onItemLeave: ue,
|
|
15796
15795
|
itemTextRefCallback: ee,
|
|
15797
15796
|
focusSelectedItem: J,
|
|
15798
|
-
selectedItemText:
|
|
15797
|
+
selectedItemText: _,
|
|
15799
15798
|
position: r,
|
|
15800
15799
|
isPositioned: W,
|
|
15801
15800
|
searchRef: F,
|
|
@@ -15863,11 +15862,11 @@ var Kt = 10, [tp, Pn] = Ir(Zn), HC = "SelectContentImpl", UC = vr("SelectContent
|
|
|
15863
15862
|
);
|
|
15864
15863
|
np.displayName = HC;
|
|
15865
15864
|
var WC = "SelectItemAlignedPosition", rp = m.forwardRef((e, t) => {
|
|
15866
|
-
const { __scopeSelect: n, onPlaced: r, ...o } = e, s =
|
|
15865
|
+
const { __scopeSelect: n, onPlaced: r, ...o } = e, s = jn(Zn, n), i = Pn(Zn, n), [a, l] = m.useState(null), [u, d] = m.useState(null), f = ze(t, (k) => d(k)), h = Ls(n), p = m.useRef(!1), w = m.useRef(!0), { viewport: v, selectedItem: g, selectedItemText: x, focusSelectedItem: y } = i, S = m.useCallback(() => {
|
|
15867
15866
|
if (s.trigger && s.valueNode && a && u && v && g && x) {
|
|
15868
|
-
const k = s.trigger.getBoundingClientRect(), I = u.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(),
|
|
15867
|
+
const k = s.trigger.getBoundingClientRect(), I = u.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), _ = x.getBoundingClientRect();
|
|
15869
15868
|
if (s.dir !== "rtl") {
|
|
15870
|
-
const ce =
|
|
15869
|
+
const ce = _.left - I.left, ie = A.left - ce, $e = k.left - ie, Ke = k.width + $e, We = Math.max(Ke, I.width), Te = window.innerWidth - Kt, Pe = Wi(ie, [
|
|
15871
15870
|
Kt,
|
|
15872
15871
|
// Prevents the content from going off the starting edge of the
|
|
15873
15872
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -15878,7 +15877,7 @@ var WC = "SelectItemAlignedPosition", rp = m.forwardRef((e, t) => {
|
|
|
15878
15877
|
]);
|
|
15879
15878
|
a.style.minWidth = Ke + "px", a.style.left = Pe + "px";
|
|
15880
15879
|
} else {
|
|
15881
|
-
const ce = I.right -
|
|
15880
|
+
const ce = I.right - _.right, ie = window.innerWidth - A.right - ce, $e = window.innerWidth - k.right - ie, Ke = k.width + $e, We = Math.max(Ke, I.width), Te = window.innerWidth - Kt, Pe = Wi(ie, [
|
|
15882
15881
|
Kt,
|
|
15883
15882
|
Math.max(Kt, Te - We)
|
|
15884
15883
|
]);
|
|
@@ -16071,7 +16070,7 @@ var es = "SelectItem", [XC, lp] = Ir(es), cp = m.forwardRef(
|
|
|
16071
16070
|
disabled: o = !1,
|
|
16072
16071
|
textValue: s,
|
|
16073
16072
|
...i
|
|
16074
|
-
} = e, a =
|
|
16073
|
+
} = e, a = jn(es, n), l = Pn(es, n), u = a.value === r, [d, f] = m.useState(s ?? ""), [h, p] = m.useState(!1), w = ze(
|
|
16075
16074
|
t,
|
|
16076
16075
|
(y) => {
|
|
16077
16076
|
var S;
|
|
@@ -16149,7 +16148,7 @@ var es = "SelectItem", [XC, lp] = Ir(es), cp = m.forwardRef(
|
|
|
16149
16148
|
cp.displayName = es;
|
|
16150
16149
|
var Or = "SelectItemText", up = m.forwardRef(
|
|
16151
16150
|
(e, t) => {
|
|
16152
|
-
const { __scopeSelect: n, className: r, style: o, ...s } = e, i =
|
|
16151
|
+
const { __scopeSelect: n, className: r, style: o, ...s } = e, i = jn(Or, n), a = Pn(Or, n), l = lp(Or, n), u = FC(Or, n), [d, f] = m.useState(null), h = ze(
|
|
16153
16152
|
t,
|
|
16154
16153
|
(x) => f(x),
|
|
16155
16154
|
l.onItemTextChange,
|
|
@@ -16259,7 +16258,7 @@ var mp = m.forwardRef((e, t) => {
|
|
|
16259
16258
|
gp.displayName = JC;
|
|
16260
16259
|
var Yi = "SelectArrow", ZC = m.forwardRef(
|
|
16261
16260
|
(e, t) => {
|
|
16262
|
-
const { __scopeSelect: n, ...r } = e, o = $s(n), s =
|
|
16261
|
+
const { __scopeSelect: n, ...r } = e, o = $s(n), s = jn(Yi, n), i = Pn(Yi, n);
|
|
16263
16262
|
return s.open && i.position === "popper" ? /* @__PURE__ */ c.jsx(xf, { ...o, ...r, ref: t }) : null;
|
|
16264
16263
|
}
|
|
16265
16264
|
);
|
|
@@ -16320,7 +16319,7 @@ function eT(e, t) {
|
|
|
16320
16319
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
16321
16320
|
}
|
|
16322
16321
|
var tT = qh, yp = Yh, nT = Jh, rT = Zh, oT = Qh, Sp = ep, sT = op, Cp = ap, Tp = cp, iT = up, aT = fp, Rp = hp, kp = pp, Ep = gp;
|
|
16323
|
-
const
|
|
16322
|
+
const _c = tT, jc = nT, Xi = m.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
|
|
16324
16323
|
yp,
|
|
16325
16324
|
{
|
|
16326
16325
|
ref: r,
|
|
@@ -16345,7 +16344,7 @@ const Ip = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
|
16345
16344
|
e
|
|
16346
16345
|
),
|
|
16347
16346
|
...t,
|
|
16348
|
-
children: /* @__PURE__ */ c.jsx(
|
|
16347
|
+
children: /* @__PURE__ */ c.jsx(jr, { className: "h-4 w-4" })
|
|
16349
16348
|
}
|
|
16350
16349
|
));
|
|
16351
16350
|
Ip.displayName = Rp.displayName;
|
|
@@ -16440,10 +16439,10 @@ Ap.displayName = uT;
|
|
|
16440
16439
|
function fT(e) {
|
|
16441
16440
|
return dT.includes(e);
|
|
16442
16441
|
}
|
|
16443
|
-
var
|
|
16444
|
-
const
|
|
16442
|
+
var _p = Ap;
|
|
16443
|
+
const jp = m.forwardRef(
|
|
16445
16444
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ c.jsx(
|
|
16446
|
-
|
|
16445
|
+
_p,
|
|
16447
16446
|
{
|
|
16448
16447
|
ref: o,
|
|
16449
16448
|
decorative: n,
|
|
@@ -16457,7 +16456,7 @@ const _p = m.forwardRef(
|
|
|
16457
16456
|
}
|
|
16458
16457
|
)
|
|
16459
16458
|
);
|
|
16460
|
-
|
|
16459
|
+
jp.displayName = _p.displayName;
|
|
16461
16460
|
const hT = Md, pT = Kb, mT = Dd, Pp = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
|
|
16462
16461
|
ys,
|
|
16463
16462
|
{
|
|
@@ -16678,7 +16677,7 @@ function eR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
16678
16677
|
/* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
|
|
16679
16678
|
/* @__PURE__ */ c.jsx($t, { htmlFor: "layout", children: "Layout Style" }),
|
|
16680
16679
|
/* @__PURE__ */ c.jsxs(
|
|
16681
|
-
|
|
16680
|
+
_c,
|
|
16682
16681
|
{
|
|
16683
16682
|
value: a.ui.layout,
|
|
16684
16683
|
onValueChange: (g) => l((x) => ({
|
|
@@ -16686,7 +16685,7 @@ function eR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
16686
16685
|
ui: { ...x.ui, layout: g }
|
|
16687
16686
|
})),
|
|
16688
16687
|
children: [
|
|
16689
|
-
/* @__PURE__ */ c.jsx(Xi, { children: /* @__PURE__ */ c.jsx(
|
|
16688
|
+
/* @__PURE__ */ c.jsx(Xi, { children: /* @__PURE__ */ c.jsx(jc, {}) }),
|
|
16690
16689
|
/* @__PURE__ */ c.jsxs(Ji, { children: [
|
|
16691
16690
|
/* @__PURE__ */ c.jsx(zn, { value: "sidebar", children: "Sidebar Layout" }),
|
|
16692
16691
|
/* @__PURE__ */ c.jsx(zn, { value: "fullscreen", children: "Fullscreen" }),
|
|
@@ -16699,7 +16698,7 @@ function eR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
16699
16698
|
/* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
|
|
16700
16699
|
/* @__PURE__ */ c.jsx($t, { htmlFor: "theme", children: "Theme" }),
|
|
16701
16700
|
/* @__PURE__ */ c.jsxs(
|
|
16702
|
-
|
|
16701
|
+
_c,
|
|
16703
16702
|
{
|
|
16704
16703
|
value: a.ui.theme,
|
|
16705
16704
|
onValueChange: (g) => l((x) => ({
|
|
@@ -16707,7 +16706,7 @@ function eR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
16707
16706
|
ui: { ...x.ui, theme: g }
|
|
16708
16707
|
})),
|
|
16709
16708
|
children: [
|
|
16710
|
-
/* @__PURE__ */ c.jsx(Xi, { children: /* @__PURE__ */ c.jsx(
|
|
16709
|
+
/* @__PURE__ */ c.jsx(Xi, { children: /* @__PURE__ */ c.jsx(jc, {}) }),
|
|
16711
16710
|
/* @__PURE__ */ c.jsxs(Ji, { children: [
|
|
16712
16711
|
/* @__PURE__ */ c.jsx(zn, { value: "light", children: "Light" }),
|
|
16713
16712
|
/* @__PURE__ */ c.jsx(zn, { value: "dark", children: "Dark" }),
|
|
@@ -16717,7 +16716,7 @@ function eR({ settings: e, onSettingsChange: t, className: n = "" }) {
|
|
|
16717
16716
|
}
|
|
16718
16717
|
)
|
|
16719
16718
|
] }),
|
|
16720
|
-
/* @__PURE__ */ c.jsx(
|
|
16719
|
+
/* @__PURE__ */ c.jsx(jp, {}),
|
|
16721
16720
|
/* @__PURE__ */ c.jsxs("div", { className: "space-y-3", children: [
|
|
16722
16721
|
/* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
|
|
16723
16722
|
/* @__PURE__ */ c.jsx($t, { htmlFor: "show-timestamps", children: "Show Timestamps" }),
|