@versini/sassysaint 8.41.0 → 8.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.B9Cl6qRR.js → AboutChangelog.C1AHC86T.js} +2 -2
- package/dist/chunks/{AboutEntry.CnOyba9d.js → AboutEntry.BTvmlghL.js} +6 -6
- package/dist/chunks/{App.BmLoQVGE.js → App.D2WHcogN.js} +215 -217
- package/dist/chunks/{Chart.r7wSt0XQ.js → Chart.5S9Fn3n9.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CDCOa3VH.js → ChatBubbleAssistant.BJXuHM4I.js} +3 -3
- package/dist/chunks/{HistoryEntry.DsWMmTea.js → HistoryEntry.B2ilKBrK.js} +8 -8
- package/dist/chunks/{LNWAZHJI.RixWG9MX.js → LNWAZHJI.C9XhDaDp.js} +1 -1
- package/dist/chunks/{ProfileEntry.Dmjt-qvx.js → ProfileEntry.CdMgYW2A.js} +2 -2
- package/dist/chunks/{SettingsEntry.99fzeW_g.js → SettingsEntry.CipQGiZN.js} +2 -2
- package/dist/chunks/{UsageEntry.D6lZF8U-.js → UsageEntry.B5wxsMP6.js} +3 -3
- package/dist/chunks/{index.CFV5SN1z.js → index.0TR3rglu.js} +139 -139
- package/dist/chunks/{index.EfX1soBk.js → index.BlYckyAF.js} +1 -1
- package/dist/chunks/{index.Yrz50QRq.js → index.Ch8cACzl.js} +1 -1
- package/dist/chunks/{index.-q7pWxMH.js → index.CjUeFxPM.js} +1 -1
- package/dist/chunks/{index.AHmpbrZI.js → index.DuDf8lDK.js} +3 -3
- package/dist/chunks/{index.BBOgJ4dc.js → index.xk-gvDkE.js} +2 -2
- package/dist/chunks/{useMarkdown.D0g7JEnd.js → useMarkdown.C13Ikwtc.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import { jsx as u, jsxs as x, Fragment as Ee } from "react/jsx-runtime";
|
2
|
-
import { Subscribable as dc, pendingThenable as pn, resolveEnabled as Oe, shallowEqualObjects as ua, resolveStaleTime as jt, noop as da, isServer as ha, isValidTimeout as mn, focusManager as hc, fetchState as pc, replaceData as fn, notifyManager as Oo, timeUntilStale as mc, shouldThrowError as fc, useQueryClient as gc, I as se, ACTION_SORT as yc, ACTION_SEARCH as vc, ACTION_RESET_PROMPT as Po, ACTION_TOGGLE_PROMPT as zo, isProbablyiPhone as Pe, ne as bc, ue as Le, DEFAULT_ICON_ACTION_SIZE as De, isTauri as Er, n as et, L as Mo, j as Ft, C as gn, LOCAL_STORAGE_PREFIX as gt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as _c, LOCAL_STORAGE_REASONING_DISCLOSURE as wc, TOAST_CHAT_SAVED as kc, PROMPT_CLASSNAME as Ec, PROMPT_EDITABLE_AREA_CLASSNAME as Sc, ERROR_MESSAGE as xc, c as Ht, CLIPBOARD_PROMPT as yn, isProbablyMobile as it, Ee as Do, INPUT_PLACEHOLDER_TEXT_MOBILE as vn, INPUT_PLACEHOLDER_TEXT_ENTER as bn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as _n, ye as Tc, FOOTER_DISCLAIMERS as wn, INPUT_BOTTOM_OFFSET_EXTRA as Ic, INPUT_BOTTOM_OFFSET_IPHONE as Cc, INPUT_BOTTOM_OFFSET as Lo, a as Ac, i as Nc, E as $c, TOAST_PROVIDER_CHANGED as Rc, LOG_OUT as kn, s as Bo, re as En, getMessageContaintWrapperClass as Oc, UI_FOOTER_BUFFER as Uo, UI_BUTTON_SCROLL_BUFFER as Pc, Logo as zc, UI_DEFAULT_MAIN_HEIGHT as Sn, APP_CLASSNAME as Mc, getMainPaddingClass as xn, r as Dc, ue$1 as Tn, Ae as Lc, LOCAL_STORAGE_SORT as Bc, LOCAL_STORAGE_SEARCH as Uc, LOCAL_STORAGE_SORT_TIMESTAMP as Zc, LOCAL_STORAGE_SORT_TOKEN_USAGE as jc } from "./index.
|
2
|
+
import { Subscribable as dc, pendingThenable as pn, resolveEnabled as Oe, shallowEqualObjects as ua, resolveStaleTime as jt, noop as da, isServer as ha, isValidTimeout as mn, focusManager as hc, fetchState as pc, replaceData as fn, notifyManager as Oo, timeUntilStale as mc, shouldThrowError as fc, useQueryClient as gc, I as se, ACTION_SORT as yc, ACTION_SEARCH as vc, ACTION_RESET_PROMPT as Po, ACTION_TOGGLE_PROMPT as zo, isProbablyiPhone as Pe, ne as bc, ue as Le, DEFAULT_ICON_ACTION_SIZE as De, isTauri as Er, n as et, L as Mo, j as Ft, C as gn, LOCAL_STORAGE_PREFIX as gt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as _c, LOCAL_STORAGE_REASONING_DISCLOSURE as wc, TOAST_CHAT_SAVED as kc, PROMPT_CLASSNAME as Ec, PROMPT_EDITABLE_AREA_CLASSNAME as Sc, ERROR_MESSAGE as xc, c as Ht, CLIPBOARD_PROMPT as yn, isProbablyMobile as it, Ee as Do, INPUT_PLACEHOLDER_TEXT_MOBILE as vn, INPUT_PLACEHOLDER_TEXT_ENTER as bn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as _n, ye as Tc, FOOTER_DISCLAIMERS as wn, INPUT_BOTTOM_OFFSET_EXTRA as Ic, INPUT_BOTTOM_OFFSET_IPHONE as Cc, INPUT_BOTTOM_OFFSET as Lo, a as Ac, i as Nc, E as $c, TOAST_PROVIDER_CHANGED as Rc, LOG_OUT as kn, s as Bo, re as En, getMessageContaintWrapperClass as Oc, UI_FOOTER_BUFFER as Uo, UI_BUTTON_SCROLL_BUFFER as Pc, Logo as zc, UI_DEFAULT_MAIN_HEIGHT as Sn, APP_CLASSNAME as Mc, getMainPaddingClass as xn, r as Dc, ue$1 as Tn, Ae as Lc, LOCAL_STORAGE_SORT as Bc, LOCAL_STORAGE_SEARCH as Uc, LOCAL_STORAGE_SORT_TIMESTAMP as Zc, LOCAL_STORAGE_SORT_TOKEN_USAGE as jc } from "./index.0TR3rglu.js";
|
3
3
|
import * as Y from "react";
|
4
4
|
import he, { useEffect as N, useRef as $, useState as L, useCallback as V, useSyncExternalStore as gr, useMemo as Te, useId as Na, useContext as ae, useLayoutEffect as Ge, createContext as Zo, forwardRef as jo, Suspense as Fo, lazy as At, useReducer as tr } from "react";
|
5
5
|
import y from "clsx";
|
@@ -181,12 +181,12 @@ var Xc = class extends dc {
|
|
181
181
|
this.#n = R;
|
182
182
|
}
|
183
183
|
this.#n && (f = this.#n, m = this.#d, p = Date.now(), g = "error");
|
184
|
-
const
|
184
|
+
const E = h.fetchStatus === "fetching", w = g === "pending", S = g === "error", _ = w && E, P = m !== void 0, T = {
|
185
185
|
status: g,
|
186
186
|
fetchStatus: h.fetchStatus,
|
187
187
|
isPending: w,
|
188
188
|
isSuccess: g === "success",
|
189
|
-
isError:
|
189
|
+
isError: S,
|
190
190
|
isInitialLoading: _,
|
191
191
|
isLoading: _,
|
192
192
|
data: m,
|
@@ -198,12 +198,12 @@ var Xc = class extends dc {
|
|
198
198
|
errorUpdateCount: h.errorUpdateCount,
|
199
199
|
isFetched: h.dataUpdateCount > 0 || h.errorUpdateCount > 0,
|
200
200
|
isFetchedAfterMount: h.dataUpdateCount > c.dataUpdateCount || h.errorUpdateCount > c.errorUpdateCount,
|
201
|
-
isFetching:
|
202
|
-
isRefetching:
|
203
|
-
isLoadingError:
|
201
|
+
isFetching: E,
|
202
|
+
isRefetching: E && !w,
|
203
|
+
isLoadingError: S && !P,
|
204
204
|
isPaused: h.fetchStatus === "paused",
|
205
205
|
isPlaceholderData: d,
|
206
|
-
isRefetchError:
|
206
|
+
isRefetchError: S && P,
|
207
207
|
isStale: Ra(e, t),
|
208
208
|
refetch: this.refetch,
|
209
209
|
promise: this.#a,
|
@@ -1540,12 +1540,12 @@ const rr = {
|
|
1540
1540
|
noBackground: p = !1,
|
1541
1541
|
align: g = "center",
|
1542
1542
|
radius: v = "large",
|
1543
|
-
variant:
|
1543
|
+
variant: E = "secondary",
|
1544
1544
|
iconClassName: w,
|
1545
|
-
animated:
|
1545
|
+
animated: S = !1,
|
1546
1546
|
..._
|
1547
1547
|
}, P) => {
|
1548
|
-
const
|
1548
|
+
const B = cu({
|
1549
1549
|
type: Pa,
|
1550
1550
|
mode: r,
|
1551
1551
|
focusMode: a,
|
@@ -1560,15 +1560,15 @@ const rr = {
|
|
1560
1560
|
noBackground: p,
|
1561
1561
|
align: g,
|
1562
1562
|
radius: v,
|
1563
|
-
variant:
|
1564
|
-
animated:
|
1565
|
-
}), T = su({ mode: r, raw: i, iconClassName: w, variant:
|
1563
|
+
variant: E,
|
1564
|
+
animated: S
|
1565
|
+
}), T = su({ mode: r, raw: i, iconClassName: w, variant: E }), R = iu({ animated: S }), Z = "flex items-center justify-center relative w-full h-full overflow-hidden", [A, G] = Jr(), [z, M] = Jr(), [re, be] = Jr(), le = $(0), U = $(null), W = $(null), _e = du([P, U]);
|
1566
1566
|
return Ge(() => {
|
1567
|
-
re && re.current &&
|
1568
|
-
}, [be, re, d, c,
|
1569
|
-
if (
|
1567
|
+
re && re.current && S && (le.current = be.width + pu[d] + (c ? 0 : mu), U.current && !U.current.style.width && (U.current.style.width = `${rr[d]}px`));
|
1568
|
+
}, [be, re, d, c, S]), Ge(() => {
|
1569
|
+
if (U && U.current && S) {
|
1570
1570
|
let j = rr[d];
|
1571
|
-
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(
|
1571
|
+
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(U.current.style.width || "0", 10) && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"), U.current.style.width = `${j}px`, j > rr[d] && (W.current = setTimeout(() => {
|
1572
1572
|
A.current && m && (A.current.style.opacity = "1"), z.current && f && (z.current.style.opacity = "1"), W.current = null;
|
1573
1573
|
}, fu * 0.8))), j === rr[d] && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"));
|
1574
1574
|
}
|
@@ -1580,14 +1580,14 @@ const rr = {
|
|
1580
1580
|
f,
|
1581
1581
|
z,
|
1582
1582
|
d,
|
1583
|
-
|
1583
|
+
S
|
1584
1584
|
]), N(() => () => {
|
1585
1585
|
W.current && clearTimeout(W.current);
|
1586
1586
|
}, []), /* @__PURE__ */ u(
|
1587
1587
|
ss,
|
1588
1588
|
{
|
1589
1589
|
ref: _e,
|
1590
|
-
className:
|
1590
|
+
className: B,
|
1591
1591
|
disabled: t,
|
1592
1592
|
type: s,
|
1593
1593
|
"aria-label": l || h,
|
@@ -1600,7 +1600,7 @@ const rr = {
|
|
1600
1600
|
labelRef: z,
|
1601
1601
|
labelClass: R,
|
1602
1602
|
labelInnerClass: "pr-2",
|
1603
|
-
initiallyHidden:
|
1603
|
+
initiallyHidden: S
|
1604
1604
|
}
|
1605
1605
|
),
|
1606
1606
|
/* @__PURE__ */ u("span", { ref: re, className: T, children: e }),
|
@@ -1611,7 +1611,7 @@ const rr = {
|
|
1611
1611
|
labelRef: A,
|
1612
1612
|
labelClass: R,
|
1613
1613
|
labelInnerClass: "pl-2",
|
1614
|
-
initiallyHidden:
|
1614
|
+
initiallyHidden: S
|
1615
1615
|
}
|
1616
1616
|
)
|
1617
1617
|
] })
|
@@ -2199,9 +2199,9 @@ function Ou(e) {
|
|
2199
2199
|
const { onEvent: t = Gr, onError: r = Gr, onRetry: a = Gr, onComment: n } = e;
|
2200
2200
|
let o = "", s = !0, i, c = "", l = "";
|
2201
2201
|
function h(g) {
|
2202
|
-
const v = s ? g.replace(/^\xEF\xBB\xBF/, "") : g, [
|
2203
|
-
for (const
|
2204
|
-
d(
|
2202
|
+
const v = s ? g.replace(/^\xEF\xBB\xBF/, "") : g, [E, w] = Pu(`${o}${v}`);
|
2203
|
+
for (const S of E)
|
2204
|
+
d(S);
|
2205
2205
|
o = w, s = !1;
|
2206
2206
|
}
|
2207
2207
|
function d(g) {
|
@@ -2215,13 +2215,13 @@ function Ou(e) {
|
|
2215
2215
|
}
|
2216
2216
|
const v = g.indexOf(":");
|
2217
2217
|
if (v !== -1) {
|
2218
|
-
const
|
2219
|
-
m(
|
2218
|
+
const E = g.slice(0, v), w = g[v + 1] === " " ? 2 : 1, S = g.slice(v + w);
|
2219
|
+
m(E, S, g);
|
2220
2220
|
return;
|
2221
2221
|
}
|
2222
2222
|
m(g, "", g);
|
2223
2223
|
}
|
2224
|
-
function m(g, v,
|
2224
|
+
function m(g, v, E) {
|
2225
2225
|
switch (g) {
|
2226
2226
|
case "event":
|
2227
2227
|
l = v;
|
@@ -2238,7 +2238,7 @@ function Ou(e) {
|
|
2238
2238
|
new Mn(`Invalid \`retry\` value: "${v}"`, {
|
2239
2239
|
type: "invalid-retry",
|
2240
2240
|
value: v,
|
2241
|
-
line:
|
2241
|
+
line: E
|
2242
2242
|
})
|
2243
2243
|
);
|
2244
2244
|
break;
|
@@ -2246,7 +2246,7 @@ function Ou(e) {
|
|
2246
2246
|
r(
|
2247
2247
|
new Mn(
|
2248
2248
|
`Unknown field "${g.length > 20 ? `${g.slice(0, 20)}…` : g}"`,
|
2249
|
-
{ type: "unknown-field", field: g, value: v, line:
|
2249
|
+
{ type: "unknown-field", field: g, value: v, line: E }
|
2250
2250
|
)
|
2251
2251
|
);
|
2252
2252
|
break;
|
@@ -3042,7 +3042,7 @@ class Wd {
|
|
3042
3042
|
const Kd = {
|
3043
3043
|
major: 4,
|
3044
3044
|
minor: 1,
|
3045
|
-
patch:
|
3045
|
+
patch: 3
|
3046
3046
|
}, te = /* @__PURE__ */ b("$ZodType", (e, t) => {
|
3047
3047
|
var r;
|
3048
3048
|
e ?? (e = {}), e._zod.def = t, e._zod.bag = e._zod.bag || {}, e._zod.version = Kd;
|
@@ -3480,19 +3480,19 @@ const xh = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
3480
3480
|
}), Th = /* @__PURE__ */ b("$ZodObjectJIT", (e, t) => {
|
3481
3481
|
xh.init(e, t);
|
3482
3482
|
const r = e._zod.parse, a = zr(() => Ls(t)), n = (m) => {
|
3483
|
-
const f = new Wd(["shape", "payload", "ctx"]), p = a.value, g = (
|
3484
|
-
const _ = Ln(
|
3483
|
+
const f = new Wd(["shape", "payload", "ctx"]), p = a.value, g = (S) => {
|
3484
|
+
const _ = Ln(S);
|
3485
3485
|
return `shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`;
|
3486
3486
|
};
|
3487
3487
|
f.write("const input = payload.value;");
|
3488
3488
|
const v = /* @__PURE__ */ Object.create(null);
|
3489
|
-
let
|
3490
|
-
for (const
|
3491
|
-
v[
|
3489
|
+
let E = 0;
|
3490
|
+
for (const S of p.keys)
|
3491
|
+
v[S] = `key_${E++}`;
|
3492
3492
|
f.write("const newResult = {}");
|
3493
|
-
for (const
|
3494
|
-
const _ = v[
|
3495
|
-
f.write(`const ${_} = ${g(
|
3493
|
+
for (const S of p.keys) {
|
3494
|
+
const _ = v[S], P = Ln(S);
|
3495
|
+
f.write(`const ${_} = ${g(S)};`), f.write(`
|
3496
3496
|
if (${_}.issues.length) {
|
3497
3497
|
payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
|
3498
3498
|
...iss,
|
@@ -3511,7 +3511,7 @@ const xh = /* @__PURE__ */ b("$ZodObject", (e, t) => {
|
|
3511
3511
|
}
|
3512
3512
|
f.write("payload.value = newResult;"), f.write("return payload;");
|
3513
3513
|
const w = f.compile();
|
3514
|
-
return (
|
3514
|
+
return (S, _) => w(m, S, _);
|
3515
3515
|
};
|
3516
3516
|
let o;
|
3517
3517
|
const s = Wt, i = !Es.jitless, l = i && Du.value, h = t.catchall;
|
@@ -4407,8 +4407,8 @@ class Qn {
|
|
4407
4407
|
case "string": {
|
4408
4408
|
const p = f;
|
4409
4409
|
p.type = "string";
|
4410
|
-
const { minimum: g, maximum: v, format:
|
4411
|
-
if (typeof g == "number" && (p.minLength = g), typeof v == "number" && (p.maxLength = v),
|
4410
|
+
const { minimum: g, maximum: v, format: E, patterns: w, contentEncoding: S } = t._zod.bag;
|
4411
|
+
if (typeof g == "number" && (p.minLength = g), typeof v == "number" && (p.maxLength = v), E && (p.format = o[E] ?? E, p.format === "" && delete p.format), S && (p.contentEncoding = S), w && w.size > 0) {
|
4412
4412
|
const _ = [...w];
|
4413
4413
|
_.length === 1 ? p.pattern = _[0].source : _.length > 1 && (i.schema.allOf = [
|
4414
4414
|
..._.map((P) => ({
|
@@ -4420,8 +4420,8 @@ class Qn {
|
|
4420
4420
|
break;
|
4421
4421
|
}
|
4422
4422
|
case "number": {
|
4423
|
-
const p = f, { minimum: g, maximum: v, format:
|
4424
|
-
typeof
|
4423
|
+
const p = f, { minimum: g, maximum: v, format: E, multipleOf: w, exclusiveMaximum: S, exclusiveMinimum: _ } = t._zod.bag;
|
4424
|
+
typeof E == "string" && E.includes("int") ? p.type = "integer" : p.type = "number", typeof _ == "number" && (this.target === "draft-4" || this.target === "openapi-3.0" ? (p.minimum = _, p.exclusiveMinimum = !0) : p.exclusiveMinimum = _), typeof g == "number" && (p.minimum = g, typeof _ == "number" && this.target !== "draft-4" && (_ >= g ? delete p.minimum : delete p.exclusiveMinimum)), typeof S == "number" && (this.target === "draft-4" || this.target === "openapi-3.0" ? (p.maximum = S, p.exclusiveMaximum = !0) : p.exclusiveMaximum = S), typeof v == "number" && (p.maximum = v, typeof S == "number" && this.target !== "draft-4" && (S <= v ? delete p.maximum : delete p.exclusiveMaximum)), typeof w == "number" && (p.multipleOf = w);
|
4425
4425
|
break;
|
4426
4426
|
}
|
4427
4427
|
case "boolean": {
|
@@ -4480,24 +4480,24 @@ class Qn {
|
|
4480
4480
|
...d,
|
4481
4481
|
path: [...d.path, "properties", w]
|
4482
4482
|
});
|
4483
|
-
const v = new Set(Object.keys(g)),
|
4484
|
-
const
|
4485
|
-
return this.io === "input" ?
|
4483
|
+
const v = new Set(Object.keys(g)), E = new Set([...v].filter((w) => {
|
4484
|
+
const S = n.shape[w]._zod;
|
4485
|
+
return this.io === "input" ? S.optin === void 0 : S.optout === void 0;
|
4486
4486
|
}));
|
4487
|
-
|
4487
|
+
E.size > 0 && (p.required = Array.from(E)), n.catchall?._zod.def.type === "never" ? p.additionalProperties = !1 : n.catchall ? n.catchall && (p.additionalProperties = this.process(n.catchall, {
|
4488
4488
|
...d,
|
4489
4489
|
path: [...d.path, "additionalProperties"]
|
4490
4490
|
})) : this.io === "output" && (p.additionalProperties = !1);
|
4491
4491
|
break;
|
4492
4492
|
}
|
4493
4493
|
case "union": {
|
4494
|
-
const p = f, g = n.options.map((v,
|
4494
|
+
const p = f, g = n.options.map((v, E) => this.process(v, {
|
4495
4495
|
...d,
|
4496
|
-
path: [...d.path, "anyOf",
|
4496
|
+
path: [...d.path, "anyOf", E]
|
4497
4497
|
}));
|
4498
4498
|
if (this.target === "openapi-3.0") {
|
4499
|
-
const v = g.filter((w) => w.type !== "null"),
|
4500
|
-
v.length === 1 ? Object.assign(p, v[0]) : p.anyOf = v,
|
4499
|
+
const v = g.filter((w) => w.type !== "null"), E = v.length !== g.length;
|
4500
|
+
v.length === 1 ? Object.assign(p, v[0]) : p.anyOf = v, E && (p.nullable = !0);
|
4501
4501
|
} else
|
4502
4502
|
p.anyOf = g;
|
4503
4503
|
break;
|
@@ -4509,9 +4509,9 @@ class Qn {
|
|
4509
4509
|
}), v = this.process(n.right, {
|
4510
4510
|
...d,
|
4511
4511
|
path: [...d.path, "allOf", 1]
|
4512
|
-
}),
|
4513
|
-
...
|
4514
|
-
...
|
4512
|
+
}), E = (S) => "allOf" in S && Object.keys(S).length === 1, w = [
|
4513
|
+
...E(g) ? g.allOf : [g],
|
4514
|
+
...E(v) ? v.allOf : [v]
|
4515
4515
|
];
|
4516
4516
|
p.allOf = w;
|
4517
4517
|
break;
|
@@ -4519,25 +4519,23 @@ class Qn {
|
|
4519
4519
|
case "tuple": {
|
4520
4520
|
const p = f;
|
4521
4521
|
p.type = "array";
|
4522
|
-
const g =
|
4523
|
-
if (this.target === "draft-2020-12" ? p.prefixItems = g : p.items = g, n.rest) {
|
4524
|
-
const w = this.process(n.rest, {
|
4525
|
-
...d,
|
4526
|
-
path: [...d.path, "items"]
|
4527
|
-
});
|
4528
|
-
this.target === "draft-2020-12" ? p.items = w : p.additionalItems = w;
|
4529
|
-
}
|
4530
|
-
n.rest && (p.items = this.process(n.rest, {
|
4522
|
+
const g = this.target === "draft-2020-12" ? "prefixItems" : "items", v = this.target === "draft-2020-12" || this.target === "openapi-3.0" ? "items" : "additionalItems", E = n.items.map((P, B) => this.process(P, {
|
4531
4523
|
...d,
|
4532
|
-
path: [...d.path,
|
4533
|
-
}))
|
4534
|
-
|
4535
|
-
|
4524
|
+
path: [...d.path, g, B]
|
4525
|
+
})), w = n.rest ? this.process(n.rest, {
|
4526
|
+
...d,
|
4527
|
+
path: [...d.path, v, ...this.target === "openapi-3.0" ? [n.items.length] : []]
|
4528
|
+
}) : null;
|
4529
|
+
this.target === "draft-2020-12" ? (p.prefixItems = E, w && (p.items = w)) : this.target === "openapi-3.0" ? (p.items = {
|
4530
|
+
anyOf: [...E]
|
4531
|
+
}, w && p.items.anyOf.push(w), p.minItems = E.length, w || (p.maxItems = E.length)) : (p.items = E, w && (p.additionalItems = w));
|
4532
|
+
const { minimum: S, maximum: _ } = t._zod.bag;
|
4533
|
+
typeof S == "number" && (p.minItems = S), typeof _ == "number" && (p.maxItems = _);
|
4536
4534
|
break;
|
4537
4535
|
}
|
4538
4536
|
case "record": {
|
4539
4537
|
const p = f;
|
4540
|
-
p.type = "object", this.target
|
4538
|
+
p.type = "object", (this.target === "draft-7" || this.target === "draft-2020-12") && (p.propertyNames = this.process(n.keyType, {
|
4541
4539
|
...d,
|
4542
4540
|
path: [...d.path, "propertyNames"]
|
4543
4541
|
})), p.additionalProperties = this.process(n.valueType, {
|
@@ -4585,8 +4583,8 @@ class Qn {
|
|
4585
4583
|
type: "string",
|
4586
4584
|
format: "binary",
|
4587
4585
|
contentEncoding: "binary"
|
4588
|
-
}, { minimum: v, maximum:
|
4589
|
-
v !== void 0 && (g.minLength = v),
|
4586
|
+
}, { minimum: v, maximum: E, mime: w } = t._zod.bag;
|
4587
|
+
v !== void 0 && (g.minLength = v), E !== void 0 && (g.maxLength = E), w ? w.length === 1 ? (g.contentMediaType = w[0], Object.assign(p, g)) : p.anyOf = w.map((S) => ({ ...g, contentMediaType: S })) : Object.assign(p, g);
|
4590
4588
|
break;
|
4591
4589
|
}
|
4592
4590
|
case "transform": {
|
@@ -4694,8 +4692,8 @@ class Qn {
|
|
4694
4692
|
const g = a.external.registry.get(h[0])?.id, v = a.external.uri ?? ((w) => w);
|
4695
4693
|
if (g)
|
4696
4694
|
return { ref: v(g) };
|
4697
|
-
const
|
4698
|
-
return h[1].defId =
|
4695
|
+
const E = h[1].defId ?? h[1].schema.id ?? `schema${this.counter++}`;
|
4696
|
+
return h[1].defId = E, { defId: E, ref: `${v("__shared")}#/${d}/${E}` };
|
4699
4697
|
}
|
4700
4698
|
if (h[1] === n)
|
4701
4699
|
return { ref: "#" };
|
@@ -7062,33 +7060,33 @@ function mg({
|
|
7062
7060
|
await a(async ({ state: l, write: h }) => {
|
7063
7061
|
var d, m, f, p;
|
7064
7062
|
function g(_) {
|
7065
|
-
const
|
7063
|
+
const B = l.message.parts.filter(Vt).find(
|
7066
7064
|
(T) => T.toolCallId === _
|
7067
7065
|
);
|
7068
|
-
if (
|
7066
|
+
if (B == null)
|
7069
7067
|
throw new Error(
|
7070
7068
|
"tool-output-error must be preceded by a tool-input-available"
|
7071
7069
|
);
|
7072
|
-
return
|
7070
|
+
return B;
|
7073
7071
|
}
|
7074
7072
|
function v(_) {
|
7075
|
-
const
|
7073
|
+
const B = l.message.parts.filter(
|
7076
7074
|
(T) => T.type === "dynamic-tool"
|
7077
7075
|
).find(
|
7078
7076
|
(T) => T.toolCallId === _
|
7079
7077
|
);
|
7080
|
-
if (
|
7078
|
+
if (B == null)
|
7081
7079
|
throw new Error(
|
7082
7080
|
"tool-output-error must be preceded by a tool-input-available"
|
7083
7081
|
);
|
7084
|
-
return
|
7082
|
+
return B;
|
7085
7083
|
}
|
7086
|
-
function
|
7084
|
+
function E(_) {
|
7087
7085
|
var P;
|
7088
|
-
const
|
7086
|
+
const B = l.message.parts.find(
|
7089
7087
|
(Z) => Vt(Z) && Z.toolCallId === _.toolCallId
|
7090
|
-
), T = _, R =
|
7091
|
-
|
7088
|
+
), T = _, R = B;
|
7089
|
+
B != null ? (B.state = _.state, R.input = T.input, R.output = T.output, R.errorText = T.errorText, R.rawInput = T.rawInput, R.preliminary = T.preliminary, R.providerExecuted = (P = T.providerExecuted) != null ? P : B.providerExecuted, T.providerMetadata != null && B.state === "input-available" && (B.callProviderMetadata = T.providerMetadata)) : l.message.parts.push({
|
7092
7090
|
type: `tool-${_.toolName}`,
|
7093
7091
|
toolCallId: _.toolCallId,
|
7094
7092
|
state: _.state,
|
@@ -7103,10 +7101,10 @@ function mg({
|
|
7103
7101
|
}
|
7104
7102
|
function w(_) {
|
7105
7103
|
var P;
|
7106
|
-
const
|
7104
|
+
const B = l.message.parts.find(
|
7107
7105
|
(Z) => Z.type === "dynamic-tool" && Z.toolCallId === _.toolCallId
|
7108
|
-
), T = _, R =
|
7109
|
-
|
7106
|
+
), T = _, R = B;
|
7107
|
+
B != null ? (B.state = _.state, R.toolName = _.toolName, R.input = T.input, R.output = T.output, R.errorText = T.errorText, R.rawInput = (P = T.rawInput) != null ? P : R.rawInput, R.preliminary = T.preliminary, T.providerMetadata != null && B.state === "input-available" && (B.callProviderMetadata = T.providerMetadata)) : l.message.parts.push({
|
7110
7108
|
type: "dynamic-tool",
|
7111
7109
|
toolName: _.toolName,
|
7112
7110
|
toolCallId: _.toolCallId,
|
@@ -7118,7 +7116,7 @@ function mg({
|
|
7118
7116
|
...T.providerMetadata != null ? { callProviderMetadata: T.providerMetadata } : {}
|
7119
7117
|
});
|
7120
7118
|
}
|
7121
|
-
async function
|
7119
|
+
async function S(_) {
|
7122
7120
|
if (_ != null) {
|
7123
7121
|
const P = l.message.metadata != null ? hi(l.message.metadata, _) : _;
|
7124
7122
|
t != null && await so({
|
@@ -7209,7 +7207,7 @@ function mg({
|
|
7209
7207
|
toolName: i.toolName,
|
7210
7208
|
state: "input-streaming",
|
7211
7209
|
input: void 0
|
7212
|
-
}) :
|
7210
|
+
}) : E({
|
7213
7211
|
toolCallId: i.toolCallId,
|
7214
7212
|
toolName: i.toolName,
|
7215
7213
|
state: "input-streaming",
|
@@ -7229,7 +7227,7 @@ function mg({
|
|
7229
7227
|
toolName: _.toolName,
|
7230
7228
|
state: "input-streaming",
|
7231
7229
|
input: P
|
7232
|
-
}) :
|
7230
|
+
}) : E({
|
7233
7231
|
toolCallId: i.toolCallId,
|
7234
7232
|
toolName: _.toolName,
|
7235
7233
|
state: "input-streaming",
|
@@ -7244,7 +7242,7 @@ function mg({
|
|
7244
7242
|
state: "input-available",
|
7245
7243
|
input: i.input,
|
7246
7244
|
providerMetadata: i.providerMetadata
|
7247
|
-
}) :
|
7245
|
+
}) : E({
|
7248
7246
|
toolCallId: i.toolCallId,
|
7249
7247
|
toolName: i.toolName,
|
7250
7248
|
state: "input-available",
|
@@ -7264,7 +7262,7 @@ function mg({
|
|
7264
7262
|
input: i.input,
|
7265
7263
|
errorText: i.errorText,
|
7266
7264
|
providerMetadata: i.providerMetadata
|
7267
|
-
}) :
|
7265
|
+
}) : E({
|
7268
7266
|
toolCallId: i.toolCallId,
|
7269
7267
|
toolName: i.toolName,
|
7270
7268
|
state: "output-error",
|
@@ -7291,7 +7289,7 @@ function mg({
|
|
7291
7289
|
});
|
7292
7290
|
} else {
|
7293
7291
|
const _ = g(i.toolCallId);
|
7294
|
-
|
7292
|
+
E({
|
7295
7293
|
toolCallId: i.toolCallId,
|
7296
7294
|
toolName: co(_),
|
7297
7295
|
state: "output-available",
|
@@ -7318,7 +7316,7 @@ function mg({
|
|
7318
7316
|
});
|
7319
7317
|
} else {
|
7320
7318
|
const _ = g(i.toolCallId);
|
7321
|
-
|
7319
|
+
E({
|
7322
7320
|
toolCallId: i.toolCallId,
|
7323
7321
|
toolName: co(_),
|
7324
7322
|
state: "output-error",
|
@@ -7339,15 +7337,15 @@ function mg({
|
|
7339
7337
|
break;
|
7340
7338
|
}
|
7341
7339
|
case "start": {
|
7342
|
-
i.messageId != null && (l.message.id = i.messageId), await
|
7340
|
+
i.messageId != null && (l.message.id = i.messageId), await S(i.messageMetadata), (i.messageId != null || i.messageMetadata != null) && h();
|
7343
7341
|
break;
|
7344
7342
|
}
|
7345
7343
|
case "finish": {
|
7346
|
-
await
|
7344
|
+
await S(i.messageMetadata), i.messageMetadata != null && h();
|
7347
7345
|
break;
|
7348
7346
|
}
|
7349
7347
|
case "message-metadata": {
|
7350
|
-
await
|
7348
|
+
await S(i.messageMetadata), i.messageMetadata != null && h();
|
7351
7349
|
break;
|
7352
7350
|
}
|
7353
7351
|
case "error": {
|
@@ -7366,7 +7364,7 @@ function mg({
|
|
7366
7364
|
break;
|
7367
7365
|
}
|
7368
7366
|
const P = _.id != null ? l.message.parts.find(
|
7369
|
-
(
|
7367
|
+
(B) => _.type === B.type && _.id === B.id
|
7370
7368
|
) : void 0;
|
7371
7369
|
P != null ? P.data = _.data : l.message.parts.push(_), s?.(_), h();
|
7372
7370
|
}
|
@@ -7743,15 +7741,15 @@ var zg = class {
|
|
7743
7741
|
});
|
7744
7742
|
return;
|
7745
7743
|
}
|
7746
|
-
let
|
7747
|
-
if ("text" in d || "files" in d ?
|
7744
|
+
let E;
|
7745
|
+
if ("text" in d || "files" in d ? E = {
|
7748
7746
|
parts: [
|
7749
7747
|
...Array.isArray(d.files) ? d.files : await Pg(d.files),
|
7750
7748
|
..."text" in d && d.text != null ? [{ type: "text", text: d.text }] : []
|
7751
7749
|
]
|
7752
|
-
} :
|
7750
|
+
} : E = d, d.messageId != null) {
|
7753
7751
|
const w = this.state.messages.findIndex(
|
7754
|
-
(
|
7752
|
+
(S) => S.id === d.messageId
|
7755
7753
|
);
|
7756
7754
|
if (w === -1)
|
7757
7755
|
throw new Error(`message with id ${d.messageId} not found`);
|
@@ -7760,16 +7758,16 @@ var zg = class {
|
|
7760
7758
|
`message with id ${d.messageId} is not a user message`
|
7761
7759
|
);
|
7762
7760
|
this.state.messages = this.state.messages.slice(0, w + 1), this.state.replaceMessage(w, {
|
7763
|
-
...
|
7761
|
+
...E,
|
7764
7762
|
id: d.messageId,
|
7765
|
-
role: (p =
|
7763
|
+
role: (p = E.role) != null ? p : "user",
|
7766
7764
|
metadata: d.metadata
|
7767
7765
|
});
|
7768
7766
|
} else
|
7769
7767
|
this.state.pushMessage({
|
7770
|
-
...
|
7771
|
-
id: (g =
|
7772
|
-
role: (v =
|
7768
|
+
...E,
|
7769
|
+
id: (g = E.id) != null ? g : this.generateId(),
|
7770
|
+
role: (v = E.role) != null ? v : "user",
|
7773
7771
|
metadata: d.metadata
|
7774
7772
|
});
|
7775
7773
|
await this.makeRequest({
|
@@ -7803,10 +7801,10 @@ var zg = class {
|
|
7803
7801
|
output: f
|
7804
7802
|
}) => this.jobExecutor.run(async () => {
|
7805
7803
|
var p, g;
|
7806
|
-
const v = this.state.messages,
|
7804
|
+
const v = this.state.messages, E = v[v.length - 1];
|
7807
7805
|
this.state.replaceMessage(v.length - 1, {
|
7808
|
-
...
|
7809
|
-
parts:
|
7806
|
+
...E,
|
7807
|
+
parts: E.parts.map(
|
7810
7808
|
(w) => Vt(w) && w.toolCallId === m ? { ...w, state: "output-available", output: f } : w
|
7811
7809
|
)
|
7812
7810
|
}), this.activeResponse && (this.activeResponse.state.message.parts = this.activeResponse.state.message.parts.map(
|
@@ -9851,10 +9849,10 @@ const cr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, o1 = (
|
|
9851
9849
|
className: o,
|
9852
9850
|
tooltipClassName: s,
|
9853
9851
|
arrowClassName: i
|
9854
|
-
}),
|
9852
|
+
}), E = l1({ delay: n }), w = V(async () => {
|
9855
9853
|
if (c.current && l.current && h.current) {
|
9856
9854
|
const {
|
9857
|
-
x:
|
9855
|
+
x: B,
|
9858
9856
|
y: T,
|
9859
9857
|
middlewareData: R,
|
9860
9858
|
placement: Z
|
@@ -9871,9 +9869,9 @@ const cr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, o1 = (
|
|
9871
9869
|
]
|
9872
9870
|
});
|
9873
9871
|
l?.current?.style && Object.assign(l.current.style, {
|
9874
|
-
left: cr(
|
9872
|
+
left: cr(B),
|
9875
9873
|
top: cr(T),
|
9876
|
-
...
|
9874
|
+
...E
|
9877
9875
|
});
|
9878
9876
|
const A = {
|
9879
9877
|
top: "bottom",
|
@@ -9889,11 +9887,11 @@ const cr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, o1 = (
|
|
9889
9887
|
[A]: "-4px"
|
9890
9888
|
});
|
9891
9889
|
}
|
9892
|
-
}, [r,
|
9890
|
+
}, [r, E, c]);
|
9893
9891
|
N(() => {
|
9894
9892
|
(async () => d && await w())();
|
9895
9893
|
}, [w, d]);
|
9896
|
-
const
|
9894
|
+
const S = () => {
|
9897
9895
|
m(!1), p(!0), g.start();
|
9898
9896
|
}, _ = () => {
|
9899
9897
|
f || m(!0);
|
@@ -9907,7 +9905,7 @@ const cr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, o1 = (
|
|
9907
9905
|
ref: c,
|
9908
9906
|
onMouseEnter: _,
|
9909
9907
|
onMouseLeave: P,
|
9910
|
-
onClick:
|
9908
|
+
onClick: S,
|
9911
9909
|
children: [
|
9912
9910
|
e,
|
9913
9911
|
d && /* @__PURE__ */ x(
|
@@ -10472,12 +10470,12 @@ const ur = {
|
|
10472
10470
|
noBackground: p = !1,
|
10473
10471
|
align: g = "center",
|
10474
10472
|
radius: v = "large",
|
10475
|
-
variant:
|
10473
|
+
variant: E = "secondary",
|
10476
10474
|
iconClassName: w,
|
10477
|
-
animated:
|
10475
|
+
animated: S = !1,
|
10478
10476
|
..._
|
10479
10477
|
}, P) => {
|
10480
|
-
const
|
10478
|
+
const B = S1({
|
10481
10479
|
type: an,
|
10482
10480
|
mode: r,
|
10483
10481
|
focusMode: a,
|
@@ -10492,15 +10490,15 @@ const ur = {
|
|
10492
10490
|
noBackground: p,
|
10493
10491
|
align: g,
|
10494
10492
|
radius: v,
|
10495
|
-
variant:
|
10496
|
-
animated:
|
10497
|
-
}), T = k1({ mode: r, raw: i, iconClassName: w, variant:
|
10493
|
+
variant: E,
|
10494
|
+
animated: S
|
10495
|
+
}), T = k1({ mode: r, raw: i, iconClassName: w, variant: E }), R = E1({ animated: S }), Z = "flex items-center justify-center relative w-full h-full overflow-hidden", [A, G] = na(), [z, M] = na(), [re, be] = na(), le = $(0), U = $(null), W = $(null), _e = I1([P, U]);
|
10498
10496
|
return Ge(() => {
|
10499
|
-
re && re.current &&
|
10500
|
-
}, [be, re, d, c,
|
10501
|
-
if (
|
10497
|
+
re && re.current && S && (le.current = be.width + A1[d] + (c ? 0 : N1), U.current && !U.current.style.width && (U.current.style.width = `${ur[d]}px`));
|
10498
|
+
}, [be, re, d, c, S]), Ge(() => {
|
10499
|
+
if (U && U.current && S) {
|
10502
10500
|
let j = ur[d];
|
10503
|
-
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(
|
10501
|
+
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(U.current.style.width || "0", 10) && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"), U.current.style.width = `${j}px`, j > ur[d] && (W.current = setTimeout(() => {
|
10504
10502
|
A.current && m && (A.current.style.opacity = "1"), z.current && f && (z.current.style.opacity = "1"), W.current = null;
|
10505
10503
|
}, $1 * 0.8))), j === ur[d] && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"));
|
10506
10504
|
}
|
@@ -10512,14 +10510,14 @@ const ur = {
|
|
10512
10510
|
f,
|
10513
10511
|
z,
|
10514
10512
|
d,
|
10515
|
-
|
10513
|
+
S
|
10516
10514
|
]), N(() => () => {
|
10517
10515
|
W.current && clearTimeout(W.current);
|
10518
10516
|
}, []), /* @__PURE__ */ u(
|
10519
10517
|
Mi,
|
10520
10518
|
{
|
10521
10519
|
ref: _e,
|
10522
|
-
className:
|
10520
|
+
className: B,
|
10523
10521
|
disabled: t,
|
10524
10522
|
type: s,
|
10525
10523
|
"aria-label": l || h,
|
@@ -10532,7 +10530,7 @@ const ur = {
|
|
10532
10530
|
labelRef: z,
|
10533
10531
|
labelClass: R,
|
10534
10532
|
labelInnerClass: "pr-2",
|
10535
|
-
initiallyHidden:
|
10533
|
+
initiallyHidden: S
|
10536
10534
|
}
|
10537
10535
|
),
|
10538
10536
|
/* @__PURE__ */ u("span", { ref: re, className: T, children: e }),
|
@@ -10543,7 +10541,7 @@ const ur = {
|
|
10543
10541
|
labelRef: A,
|
10544
10542
|
labelClass: R,
|
10545
10543
|
labelInnerClass: "pl-2",
|
10546
|
-
initiallyHidden:
|
10544
|
+
initiallyHidden: S
|
10547
10545
|
}
|
10548
10546
|
)
|
10549
10547
|
] })
|
@@ -11055,8 +11053,8 @@ const lt = ({
|
|
11055
11053
|
focusMode: s = "system",
|
11056
11054
|
...i
|
11057
11055
|
}, c) => {
|
11058
|
-
const [l, h] = L(!1), [d, m] = L(!1), [f, p] = L(null), g = $([]), v = $([]),
|
11059
|
-
nodeId:
|
11056
|
+
const [l, h] = L(!1), [d, m] = L(!1), [f, p] = L(null), g = $([]), v = $([]), E = ae(Ta), w = es(), S = Kc(), _ = ts(), { floatingStyles: P, refs: B, context: T } = Go({
|
11057
|
+
nodeId: S,
|
11060
11058
|
open: l,
|
11061
11059
|
onOpenChange: (_e) => {
|
11062
11060
|
h(_e), n?.(_e);
|
@@ -11079,20 +11077,20 @@ const lt = ({
|
|
11079
11077
|
listRef: v,
|
11080
11078
|
onMatch: l ? p : void 0,
|
11081
11079
|
activeIndex: f
|
11082
|
-
}), { getReferenceProps: M, getFloatingProps: re, getItemProps: be } = Xo([R, Z, A, G, z]), le = So(e) === "Button" || So(e) === "ButtonIcon",
|
11080
|
+
}), { getReferenceProps: M, getFloatingProps: re, getItemProps: be } = Xo([R, Z, A, G, z]), le = So(e) === "Button" || So(e) === "ButtonIcon", U = le ? {
|
11083
11081
|
noInternalClick: le,
|
11084
11082
|
focusMode: s,
|
11085
11083
|
mode: o
|
11086
11084
|
} : {}, W = he.cloneElement(
|
11087
11085
|
e,
|
11088
11086
|
{
|
11089
|
-
...
|
11087
|
+
...U,
|
11090
11088
|
"aria-label": r,
|
11091
11089
|
"data-open": l ? "" : void 0,
|
11092
11090
|
"data-focus-inside": d ? "" : void 0,
|
11093
|
-
ref: $a([
|
11091
|
+
ref: $a([B.setReference, _.ref, c]),
|
11094
11092
|
...M(
|
11095
|
-
|
11093
|
+
E.getItemProps({
|
11096
11094
|
...i
|
11097
11095
|
})
|
11098
11096
|
)
|
@@ -11108,8 +11106,8 @@ const lt = ({
|
|
11108
11106
|
w.events.off("click", _e);
|
11109
11107
|
};
|
11110
11108
|
}, [w, n]), N(() => {
|
11111
|
-
l && w && w.events.emit("menuopen", { nodeId:
|
11112
|
-
}, [w, l,
|
11109
|
+
l && w && w.events.emit("menuopen", { nodeId: S });
|
11110
|
+
}, [w, l, S]), /* @__PURE__ */ x(Yc, { id: S, children: [
|
11113
11111
|
W,
|
11114
11112
|
/* @__PURE__ */ u(
|
11115
11113
|
Ta.Provider,
|
@@ -11131,7 +11129,7 @@ const lt = ({
|
|
11131
11129
|
children: /* @__PURE__ */ u(
|
11132
11130
|
"div",
|
11133
11131
|
{
|
11134
|
-
ref:
|
11132
|
+
ref: B.setFloating,
|
11135
11133
|
className: "rounded-md bg-surface-light shadow-sm shadow-border-dark outline-hidden p-4 sm:p-2",
|
11136
11134
|
style: P,
|
11137
11135
|
...re(),
|
@@ -11483,7 +11481,7 @@ const K1 = (e) => {
|
|
11483
11481
|
] });
|
11484
11482
|
};
|
11485
11483
|
let oa = null, sa = null;
|
11486
|
-
const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = async () => (sa || (sa = import("./index.
|
11484
|
+
const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = async () => (sa || (sa = import("./index.0TR3rglu.js").then((e) => e.utilities)), sa), G1 = async () => {
|
11487
11485
|
try {
|
11488
11486
|
await Promise.all([ji(), Fi()]);
|
11489
11487
|
} catch {
|
@@ -11520,12 +11518,12 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11520
11518
|
}), [d, m] = L(!1), [f, p] = L(!1), g = async () => {
|
11521
11519
|
try {
|
11522
11520
|
if (c && i && o) {
|
11523
|
-
const
|
11524
|
-
(
|
11521
|
+
const E = i.filter((w) => w.parts && w.parts.length > 0 ? w.parts.some(
|
11522
|
+
(S) => S.type === "text" && S.text?.trim()
|
11525
11523
|
) : !1).map((w) => ({
|
11526
11524
|
role: w.role,
|
11527
11525
|
// Convert v5 parts array to v4-style content string for storage.
|
11528
|
-
content: w.parts?.filter((
|
11526
|
+
content: w.parts?.filter((S) => S.type === "text").map((S) => S.text).join("") || "",
|
11529
11527
|
id: w.id
|
11530
11528
|
}));
|
11531
11529
|
await vi({
|
@@ -11534,7 +11532,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11534
11532
|
params: {
|
11535
11533
|
userId: t?.username || "",
|
11536
11534
|
id: c,
|
11537
|
-
messages:
|
11535
|
+
messages: E,
|
11538
11536
|
provider: o,
|
11539
11537
|
tokenUsage: n
|
11540
11538
|
}
|
@@ -11550,8 +11548,8 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11550
11548
|
}
|
11551
11549
|
} catch {
|
11552
11550
|
}
|
11553
|
-
}, v = (
|
11554
|
-
|
11551
|
+
}, v = (E) => {
|
11552
|
+
E && E.preventDefault(), n > 0 ? p(!f) : g();
|
11555
11553
|
};
|
11556
11554
|
return N(() => {
|
11557
11555
|
s && i?.length > 0 ? m(!0) : m(!1);
|
@@ -11728,10 +11726,10 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11728
11726
|
aborted: p,
|
11729
11727
|
lastResetTimestamp: g,
|
11730
11728
|
attachments: v,
|
11731
|
-
provider:
|
11729
|
+
provider: E,
|
11732
11730
|
privateChat: w
|
11733
11731
|
}
|
11734
|
-
} = ae(ze), { state:
|
11732
|
+
} = ae(ze), { state: S, dispatch: _ } = ae(Qa), { state: P } = ae(Ya), { refetch: B } = Ei({
|
11735
11733
|
enabled: !1,
|
11736
11734
|
user: e?.username || "",
|
11737
11735
|
searchString: P.searchString,
|
@@ -11743,9 +11741,9 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11743
11741
|
getAccessToken: t
|
11744
11742
|
}), R = $(null), Z = $(null), A = $(!1), G = $(0), z = $(null), M = $(null), re = Jl(), be = nv({
|
11745
11743
|
className: ""
|
11746
|
-
}), { setMessages: le, status:
|
11744
|
+
}), { setMessages: le, status: U, id: W, sendMessage: _e, input: j, setInput: nt } = dt({
|
11747
11745
|
onFinish: (K) => {
|
11748
|
-
|
11746
|
+
B();
|
11749
11747
|
const ye = K.message?.metadata;
|
11750
11748
|
ye?.tokenUsage && d({
|
11751
11749
|
type: gi,
|
@@ -11767,7 +11765,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11767
11765
|
* Include dynamic values that change during runtime. Static values like
|
11768
11766
|
* `username` were set at initialization - see App.tsx.
|
11769
11767
|
*/
|
11770
|
-
provider:
|
11768
|
+
provider: E,
|
11771
11769
|
privateChat: w,
|
11772
11770
|
...pe?.body
|
11773
11771
|
};
|
@@ -11785,7 +11783,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11785
11783
|
), nt("");
|
11786
11784
|
}
|
11787
11785
|
},
|
11788
|
-
[j, _e, nt,
|
11786
|
+
[j, _e, nt, E, w]
|
11789
11787
|
), dn = V(
|
11790
11788
|
async (K) => {
|
11791
11789
|
K === uv && d({
|
@@ -11826,8 +11824,8 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11826
11824
|
[d, le, p]
|
11827
11825
|
);
|
11828
11826
|
N(() => {
|
11829
|
-
|
11830
|
-
}, [
|
11827
|
+
U && dn(U);
|
11828
|
+
}, [U, dn]), N(() => {
|
11831
11829
|
T?.sendOnEnter !== void 0 && h(T.sendOnEnter);
|
11832
11830
|
}, [T]);
|
11833
11831
|
const Hr = V(() => {
|
@@ -11920,8 +11918,8 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11920
11918
|
}
|
11921
11919
|
]
|
11922
11920
|
]), N(() => {
|
11923
|
-
if (
|
11924
|
-
const K =
|
11921
|
+
if (S.prompt !== "") {
|
11922
|
+
const K = S.prompt.endsWith(":") && !S.prompt.endsWith(": ") ? S.prompt + " " : S.prompt;
|
11925
11923
|
K.indexOf(yn) !== -1 ? navigator.clipboard.readText().then((ye) => {
|
11926
11924
|
const ot = ye.startsWith("http://") || ye.startsWith("https://") ? ye : `"""${ye}"""`;
|
11927
11925
|
nt(K.replace(yn, ot));
|
@@ -11929,7 +11927,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11929
11927
|
type: Po
|
11930
11928
|
});
|
11931
11929
|
}
|
11932
|
-
}, [
|
11930
|
+
}, [S, _, nt]), N(() => {
|
11933
11931
|
if (A.current === !1) {
|
11934
11932
|
A.current = !0, !j && hr(M);
|
11935
11933
|
return;
|
@@ -11938,10 +11936,10 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
11938
11936
|
M.current && (!j && hr(M), M.current.focus());
|
11939
11937
|
}, iv)) : f === !1 && !j && (hr(M), !Pe() && M.current && M.current.focus());
|
11940
11938
|
}, [g, f, j]), N(() => {
|
11941
|
-
|
11939
|
+
S.lastTriggeredTimestamp && setTimeout(() => {
|
11942
11940
|
Hr();
|
11943
11941
|
}, 100);
|
11944
|
-
}, [
|
11942
|
+
}, [S.lastTriggeredTimestamp, Hr]), N(() => {
|
11945
11943
|
(async () => {
|
11946
11944
|
if (it())
|
11947
11945
|
return;
|
@@ -12081,16 +12079,16 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12081
12079
|
Mt,
|
12082
12080
|
`${g}px`
|
12083
12081
|
)), !t && !r && !a && c.length === 0 && l > 0 && m.height > 0) {
|
12084
|
-
const
|
12085
|
-
v !== `${
|
12082
|
+
const E = `${l - m.height - (e ? 300 : 245)}`;
|
12083
|
+
v !== `${E}px` && Number(E) > 0 && (s({
|
12086
12084
|
type: Lt,
|
12087
12085
|
payload: {
|
12088
12086
|
footerPosition: $r,
|
12089
|
-
footerOffset: Number(
|
12087
|
+
footerOffset: Number(E)
|
12090
12088
|
}
|
12091
12089
|
}), d?.current?.style.setProperty(
|
12092
12090
|
Mt,
|
12093
|
-
`${
|
12091
|
+
`${E}px`
|
12094
12092
|
));
|
12095
12093
|
}
|
12096
12094
|
}, [
|
@@ -12166,7 +12164,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12166
12164
|
});
|
12167
12165
|
} catch {
|
12168
12166
|
}
|
12169
|
-
}, g = f && d, v = g && pr.find((w) => f.provider === w.id)?.icon || pr[0].icon,
|
12167
|
+
}, g = f && d, v = g && pr.find((w) => f.provider === w.id)?.icon || pr[0].icon, E = /* @__PURE__ */ x(
|
12170
12168
|
Fr,
|
12171
12169
|
{
|
12172
12170
|
mode: "dark",
|
@@ -12212,25 +12210,25 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12212
12210
|
mode: "light",
|
12213
12211
|
placement: "right",
|
12214
12212
|
className: e,
|
12215
|
-
trigger:
|
12213
|
+
trigger: E
|
12216
12214
|
}
|
12217
|
-
) : /* @__PURE__ */ u("div", { className: e, children:
|
12215
|
+
) : /* @__PURE__ */ u("div", { className: e, children: E });
|
12218
12216
|
}, yv = At(
|
12219
|
-
() => import("./ProfileEntry.
|
12217
|
+
() => import("./ProfileEntry.CdMgYW2A.js").then((e) => ({
|
12220
12218
|
default: e.Profile
|
12221
12219
|
}))
|
12222
12220
|
), vv = At(
|
12223
|
-
() => import("./SettingsEntry.
|
12221
|
+
() => import("./SettingsEntry.CipQGiZN.js").then((e) => ({
|
12224
12222
|
default: e.SettingsPanel
|
12225
12223
|
}))
|
12226
12224
|
), bv = At(
|
12227
|
-
() => import("./HistoryEntry.
|
12225
|
+
() => import("./HistoryEntry.B2ilKBrK.js").then((e) => ({
|
12228
12226
|
default: e.HistoryPanel
|
12229
12227
|
}))
|
12230
12228
|
), _v = At(
|
12231
|
-
() => import("./AboutEntry.
|
12229
|
+
() => import("./AboutEntry.BTvmlghL.js").then((e) => ({ default: e.About }))
|
12232
12230
|
), wv = At(
|
12233
|
-
() => import("./UsageEntry.
|
12231
|
+
() => import("./UsageEntry.B5wxsMP6.js").then((e) => ({ default: e.Usage }))
|
12234
12232
|
), kv = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ u(Fo, { fallback: /* @__PURE__ */ u("div", {}), children: (() => {
|
12235
12233
|
switch (e) {
|
12236
12234
|
case "profile":
|
@@ -12250,7 +12248,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12250
12248
|
isComponent: e = !1
|
12251
12249
|
}) => {
|
12252
12250
|
const { logout: t, getAccessToken: r } = et(), [a, n] = L(null), [o, s] = L(!1), [i, c] = L(!1), [l, h] = L(!1), d = V(() => {
|
12253
|
-
l || (import("./ProfileEntry.
|
12251
|
+
l || (import("./ProfileEntry.CdMgYW2A.js"), import("./SettingsEntry.CipQGiZN.js"), import("./HistoryEntry.B2ilKBrK.js"), import("./AboutEntry.BTvmlghL.js"), import("./UsageEntry.B5wxsMP6.js"), h(!0));
|
12254
12252
|
}, [l]), m = V((v) => {
|
12255
12253
|
n(v);
|
12256
12254
|
}, []), f = V(() => {
|
@@ -12266,8 +12264,8 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12266
12264
|
(async () => {
|
12267
12265
|
if (!it())
|
12268
12266
|
return;
|
12269
|
-
const v = await r(),
|
12270
|
-
s(
|
12267
|
+
const v = await r(), E = await Oi(v, [Do.REASONING]);
|
12268
|
+
s(E);
|
12271
12269
|
})();
|
12272
12270
|
}, [r]), Oa(
|
12273
12271
|
[
|
@@ -12369,7 +12367,7 @@ const ji = async () => (oa || (oa = import("./index.B8EJY2WR.js")), oa), Fi = as
|
|
12369
12367
|
icon: /* @__PURE__ */ u(Sl, {})
|
12370
12368
|
}
|
12371
12369
|
),
|
12372
|
-
/* @__PURE__ */ u(
|
12370
|
+
!e && /* @__PURE__ */ u(
|
12373
12371
|
je,
|
12374
12372
|
{
|
12375
12373
|
label: "Usage",
|
@@ -12858,12 +12856,12 @@ const mr = {
|
|
12858
12856
|
noBackground: p = !1,
|
12859
12857
|
align: g = "center",
|
12860
12858
|
radius: v = "large",
|
12861
|
-
variant:
|
12859
|
+
variant: E = "secondary",
|
12862
12860
|
iconClassName: w,
|
12863
|
-
animated:
|
12861
|
+
animated: S = !1,
|
12864
12862
|
..._
|
12865
12863
|
}, P) => {
|
12866
|
-
const
|
12864
|
+
const B = Mv({
|
12867
12865
|
type: on,
|
12868
12866
|
mode: r,
|
12869
12867
|
focusMode: a,
|
@@ -12878,15 +12876,15 @@ const mr = {
|
|
12878
12876
|
noBackground: p,
|
12879
12877
|
align: g,
|
12880
12878
|
radius: v,
|
12881
|
-
variant:
|
12882
|
-
animated:
|
12883
|
-
}), T = Pv({ mode: r, raw: i, iconClassName: w, variant:
|
12879
|
+
variant: E,
|
12880
|
+
animated: S
|
12881
|
+
}), T = Pv({ mode: r, raw: i, iconClassName: w, variant: E }), R = zv({ animated: S }), Z = "flex items-center justify-center relative w-full h-full overflow-hidden", [A, G] = ca(), [z, M] = ca(), [re, be] = ca(), le = $(0), U = $(null), W = $(null), _e = Bv([P, U]);
|
12884
12882
|
return Ge(() => {
|
12885
|
-
re && re.current &&
|
12886
|
-
}, [be, re, d, c,
|
12887
|
-
if (
|
12883
|
+
re && re.current && S && (le.current = be.width + Zv[d] + (c ? 0 : jv), U.current && !U.current.style.width && (U.current.style.width = `${mr[d]}px`));
|
12884
|
+
}, [be, re, d, c, S]), Ge(() => {
|
12885
|
+
if (U && U.current && S) {
|
12888
12886
|
let j = mr[d];
|
12889
|
-
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(
|
12887
|
+
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(U.current.style.width || "0", 10) && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"), U.current.style.width = `${j}px`, j > mr[d] && (W.current = setTimeout(() => {
|
12890
12888
|
A.current && m && (A.current.style.opacity = "1"), z.current && f && (z.current.style.opacity = "1"), W.current = null;
|
12891
12889
|
}, Fv * 0.8))), j === mr[d] && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"));
|
12892
12890
|
}
|
@@ -12898,14 +12896,14 @@ const mr = {
|
|
12898
12896
|
f,
|
12899
12897
|
z,
|
12900
12898
|
d,
|
12901
|
-
|
12899
|
+
S
|
12902
12900
|
]), N(() => () => {
|
12903
12901
|
W.current && clearTimeout(W.current);
|
12904
12902
|
}, []), /* @__PURE__ */ u(
|
12905
12903
|
Yi,
|
12906
12904
|
{
|
12907
12905
|
ref: _e,
|
12908
|
-
className:
|
12906
|
+
className: B,
|
12909
12907
|
disabled: t,
|
12910
12908
|
type: s,
|
12911
12909
|
"aria-label": l || h,
|
@@ -12918,7 +12916,7 @@ const mr = {
|
|
12918
12916
|
labelRef: z,
|
12919
12917
|
labelClass: R,
|
12920
12918
|
labelInnerClass: "pr-2",
|
12921
|
-
initiallyHidden:
|
12919
|
+
initiallyHidden: S
|
12922
12920
|
}
|
12923
12921
|
),
|
12924
12922
|
/* @__PURE__ */ u("span", { ref: re, className: T, children: e }),
|
@@ -12929,7 +12927,7 @@ const mr = {
|
|
12929
12927
|
labelRef: A,
|
12930
12928
|
labelClass: R,
|
12931
12929
|
labelInnerClass: "pl-2",
|
12932
|
-
initiallyHidden:
|
12930
|
+
initiallyHidden: S
|
12933
12931
|
}
|
12934
12932
|
)
|
12935
12933
|
] })
|
@@ -13207,13 +13205,13 @@ const Kv = ({ kind: e, noMaxWidth: t }) => y("px-4 py-2", {
|
|
13207
13205
|
}, [d]), /* @__PURE__ */ x("div", { className: f.wrapper, children: [
|
13208
13206
|
/* @__PURE__ */ x("div", { children: [
|
13209
13207
|
/* @__PURE__ */ u("div", { className: f.main, children: e }),
|
13210
|
-
n && Object.keys(n).map((v,
|
13208
|
+
n && Object.keys(n).map((v, E) => {
|
13211
13209
|
const w = n[v];
|
13212
|
-
return w === Qv ? /* @__PURE__ */ u("div", { className: "prose-p:m-0", children: /* @__PURE__ */ u("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ u("span", { className: "invisible", children: " " }) }) }, `${v}-${
|
13210
|
+
return w === Qv ? /* @__PURE__ */ u("div", { className: "prose-p:m-0", children: /* @__PURE__ */ u("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ u("span", { className: "invisible", children: " " }) }) }, `${v}-${E}`) : w ? /* @__PURE__ */ u("div", { className: "prose-p:m-0", children: /* @__PURE__ */ x("p", { className: f.footer, children: [
|
13213
13211
|
v,
|
13214
13212
|
": ",
|
13215
13213
|
w
|
13216
|
-
] }) }, `${v}-${
|
13214
|
+
] }) }, `${v}-${E}`) : null;
|
13217
13215
|
}),
|
13218
13216
|
o && o
|
13219
13217
|
] }),
|
@@ -13744,12 +13742,12 @@ const fr = {
|
|
13744
13742
|
noBackground: p = !1,
|
13745
13743
|
align: g = "center",
|
13746
13744
|
radius: v = "large",
|
13747
|
-
variant:
|
13745
|
+
variant: E = "secondary",
|
13748
13746
|
iconClassName: w,
|
13749
|
-
animated:
|
13747
|
+
animated: S = !1,
|
13750
13748
|
..._
|
13751
13749
|
}, P) => {
|
13752
|
-
const
|
13750
|
+
const B = ec({
|
13753
13751
|
type: Vr,
|
13754
13752
|
mode: r,
|
13755
13753
|
focusMode: a,
|
@@ -13764,15 +13762,15 @@ const fr = {
|
|
13764
13762
|
noBackground: p,
|
13765
13763
|
align: g,
|
13766
13764
|
radius: v,
|
13767
|
-
variant:
|
13768
|
-
animated:
|
13769
|
-
}), T = cb({ mode: r, raw: i, iconClassName: w, variant:
|
13765
|
+
variant: E,
|
13766
|
+
animated: S
|
13767
|
+
}), T = cb({ mode: r, raw: i, iconClassName: w, variant: E }), R = lb({ animated: S }), Z = "flex items-center justify-center relative w-full h-full overflow-hidden", [A, G] = la(), [z, M] = la(), [re, be] = la(), le = $(0), U = $(null), W = $(null), _e = hb([P, U]);
|
13770
13768
|
return Ge(() => {
|
13771
|
-
re && re.current &&
|
13772
|
-
}, [be, re, d, c,
|
13773
|
-
if (
|
13769
|
+
re && re.current && S && (le.current = be.width + mb[d] + (c ? 0 : fb), U.current && !U.current.style.width && (U.current.style.width = `${fr[d]}px`));
|
13770
|
+
}, [be, re, d, c, S]), Ge(() => {
|
13771
|
+
if (U && U.current && S) {
|
13774
13772
|
let j = fr[d];
|
13775
|
-
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(
|
13773
|
+
m && A && G.width > 0 ? j = G.width + le.current : f && z && M.width > 0 && (j = M.width + le.current), W.current && clearTimeout(W.current), j !== parseInt(U.current.style.width || "0", 10) && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"), U.current.style.width = `${j}px`, j > fr[d] && (W.current = setTimeout(() => {
|
13776
13774
|
A.current && m && (A.current.style.opacity = "1"), z.current && f && (z.current.style.opacity = "1"), W.current = null;
|
13777
13775
|
}, gb * 0.8))), j === fr[d] && (A.current && (A.current.style.opacity = "0"), z.current && (z.current.style.opacity = "0"));
|
13778
13776
|
}
|
@@ -13784,14 +13782,14 @@ const fr = {
|
|
13784
13782
|
f,
|
13785
13783
|
z,
|
13786
13784
|
d,
|
13787
|
-
|
13785
|
+
S
|
13788
13786
|
]), N(() => () => {
|
13789
13787
|
W.current && clearTimeout(W.current);
|
13790
13788
|
}, []), /* @__PURE__ */ u(
|
13791
13789
|
un,
|
13792
13790
|
{
|
13793
13791
|
ref: _e,
|
13794
|
-
className:
|
13792
|
+
className: B,
|
13795
13793
|
disabled: t,
|
13796
13794
|
type: s,
|
13797
13795
|
"aria-label": l || h,
|
@@ -13804,7 +13802,7 @@ const fr = {
|
|
13804
13802
|
labelRef: z,
|
13805
13803
|
labelClass: R,
|
13806
13804
|
labelInnerClass: "pr-2",
|
13807
|
-
initiallyHidden:
|
13805
|
+
initiallyHidden: S
|
13808
13806
|
}
|
13809
13807
|
),
|
13810
13808
|
/* @__PURE__ */ u("span", { ref: re, className: T, children: e }),
|
@@ -13815,7 +13813,7 @@ const fr = {
|
|
13815
13813
|
labelRef: A,
|
13816
13814
|
labelClass: R,
|
13817
13815
|
labelInnerClass: "pl-2",
|
13818
|
-
initiallyHidden:
|
13816
|
+
initiallyHidden: S
|
13819
13817
|
}
|
13820
13818
|
)
|
13821
13819
|
] })
|
@@ -13962,7 +13960,7 @@ const wb = ({ content: e }) => /* @__PURE__ */ u(
|
|
13962
13960
|
), Ro = 1, kb = 150, Eb = At(
|
13963
13961
|
() => import(
|
13964
13962
|
/* webpackChunkName: "LazyMessageAssistant" */
|
13965
|
-
"./ChatBubbleAssistant.
|
13963
|
+
"./ChatBubbleAssistant.BJXuHM4I.js"
|
13966
13964
|
)
|
13967
13965
|
), Sb = he.memo(
|
13968
13966
|
({
|
@@ -14104,7 +14102,7 @@ function ac({
|
|
14104
14102
|
footerHeight: 0,
|
14105
14103
|
footerOffset: M ? Lo : 0
|
14106
14104
|
};
|
14107
|
-
}, []), [
|
14105
|
+
}, []), [E, w] = tr(qg, v), _ = {
|
14108
14106
|
searchString: m,
|
14109
14107
|
sortedCell: f,
|
14110
14108
|
sortDirection: (() => {
|
@@ -14116,7 +14114,7 @@ function ac({
|
|
14116
14114
|
return p;
|
14117
14115
|
}
|
14118
14116
|
})()
|
14119
|
-
}, [P,
|
14117
|
+
}, [P, B] = tr(
|
14120
14118
|
Qg,
|
14121
14119
|
_
|
14122
14120
|
), [T, R] = tr(Xg, {
|
@@ -14155,21 +14153,21 @@ function ac({
|
|
14155
14153
|
}
|
14156
14154
|
});
|
14157
14155
|
}, [G]), N(() => {
|
14158
|
-
if (
|
14156
|
+
if (E.footerPosition === "FOOTER_BOTTOM") {
|
14159
14157
|
const M = `calc(${i.height}px + 20px)`;
|
14160
14158
|
o(
|
14161
|
-
`calc(100svh - ${t}px - ${M} - ${
|
14159
|
+
`calc(100svh - ${t}px - ${M} - ${E.footerHeight}px - ${E.footerOffset}px - ${Uo}px)`
|
14162
14160
|
);
|
14163
14161
|
} else
|
14164
14162
|
o(`${Sn}px`);
|
14165
|
-
}, [
|
14163
|
+
}, [E, i, t]), /* @__PURE__ */ u(uy, { children: /* @__PURE__ */ u(
|
14166
14164
|
Ya.Provider,
|
14167
14165
|
{
|
14168
14166
|
value: {
|
14169
14167
|
state: P,
|
14170
|
-
dispatch:
|
14168
|
+
dispatch: B
|
14171
14169
|
},
|
14172
|
-
children: /* @__PURE__ */ u(Xa.Provider, { value: { state:
|
14170
|
+
children: /* @__PURE__ */ u(Xa.Provider, { value: { state: E, dispatch: w }, children: /* @__PURE__ */ u(
|
14173
14171
|
Qa.Provider,
|
14174
14172
|
{
|
14175
14173
|
value: { state: T, dispatch: R },
|
@@ -14260,14 +14258,13 @@ export {
|
|
14260
14258
|
xu as Pe,
|
14261
14259
|
rt as SERVICE_TYPES,
|
14262
14260
|
Ub as Ye,
|
14263
|
-
|
14264
|
-
bl as a$1,
|
14261
|
+
bl as a,
|
14265
14262
|
ty as getDefaultExportFromCjs,
|
14266
14263
|
Jl as i,
|
14267
14264
|
vi as mutateCall,
|
14268
14265
|
Hb as nt,
|
14269
14266
|
Fl as p,
|
14270
|
-
|
14267
|
+
El as p$1,
|
14271
14268
|
fl as p$2,
|
14272
14269
|
Bb as qe,
|
14273
14270
|
ey as setNewProvider,
|
@@ -14281,5 +14278,6 @@ export {
|
|
14281
14278
|
Vb as useChatsUsage,
|
14282
14279
|
Zb as useServerCapabilities,
|
14283
14280
|
Fb as useUserChatStats,
|
14284
|
-
Zr as useUserPreferences
|
14281
|
+
Zr as useUserPreferences,
|
14282
|
+
Al as z
|
14285
14283
|
};
|