@versini/sassysaint 8.7.2 → 8.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.D97Aojcs.js → App.DK_N8qWv.js} +768 -775
- package/dist/chunks/{Chart.CEX-U81e.js → Chart.DiLZvOwu.js} +1 -1
- package/dist/chunks/{ChatBubbleAssistant.Rc6ePsRQ.js → ChatBubbleAssistant.DwOOcihI.js} +7 -7
- package/dist/chunks/{J3FDRF32.CKseBlF5.js → J3FDRF32.De_4OuxC.js} +1 -1
- package/dist/chunks/{index.Mu1_o3ck.js → index.B601DS2T.js} +1 -1
- package/dist/chunks/{index.Ca6Mve0V.js → index.B7GuwX5K.js} +3 -3
- package/dist/chunks/{index.Cs31ZTJ_.js → index.BFWC1e7q.js} +1 -1
- package/dist/chunks/{index.BbIzG4NZ.js → index.CAvOFSqR.js} +1 -1
- package/dist/chunks/{index.C8AWx_NS.js → index.CgQCuyd9.js} +3 -3
- package/dist/chunks/{index.CGmjp_R_.js → index.D6DL4UUi.js} +2 -2
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
@@ -1,15 +1,15 @@
|
|
1
|
-
var
|
1
|
+
var xn = (e) => {
|
2
2
|
throw TypeError(e);
|
3
3
|
};
|
4
|
-
var jr = (e, t, r) => t.has(e) ||
|
5
|
-
var O = (e, t, r) => (jr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), fe = (e, t, r) => t.has(e) ?
|
4
|
+
var jr = (e, t, r) => t.has(e) || xn("Cannot " + r);
|
5
|
+
var O = (e, t, r) => (jr(e, t, "read from private field"), r ? r.call(e) : t.get(e)), fe = (e, t, r) => t.has(e) ? xn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), re = (e, t, r, a) => (jr(e, t, "write to private field"), a ? a.call(e, r) : t.set(e, r), r), le = (e, t, r) => (jr(e, t, "access private method"), r);
|
6
6
|
import { jsx as c, jsxs as R, Fragment as ce } from "react/jsx-runtime";
|
7
|
-
import { Subscribable as
|
7
|
+
import { Subscribable as Ai, pendingThenable as Tn, resolveEnabled as Ve, shallowEqualObjects as da, resolveStaleTime as vr, noop as Oi, isServer as ua, isValidTimeout as En, focusManager as $i, fetchState as Li, replaceData as In, notifyManager as Do, timeUntilStale as Mi, useQueryClient as Di, I as ne, ACTION_SORT as fa, ACTION_SEARCH as Bo, ACTION_RESET_PROMPT as Po, ACTION_TOGGLE_PROMPT as zo, DEFAULT_AI_PROVIDER as Bi, isElectron as ha, isProbablyiPhone as ma, re as Se, DEFAULT_ICON_ACTION_SIZE as je, L as Sr, j as rt, C as Ft, LOCAL_STORAGE_PREFIX as ft, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Pi, un as Ne, PROVIDER_ANTHROPIC as _r, PROVIDER_OPENAI as pa, TOAST_PROVIDER_CHANGED as Vo, toastOptions as ga, LOCAL_STORAGE_REASONING_DISCLOSURE as zi, PROMPT_CLASSNAME as Vi, PROMPT_EDITABLE_AREA_CLASSNAME as Fi, ROLE_INTERNAL as Fo, ERROR_MESSAGE as Ui, CLIPBOARD_PROMPT as Cn, sn as Hi, INPUT_PLACEHOLDER_TEXT as Sn, GRANTS as Gi, FOOTER_DISCLAIMER as ji, S as Oe, CARDS as oe, renderDataAsList as xr, pluralize as Ut, isProbablyMobile as Xt, ABOUT_TITLE as Wi, INFINITE_SCROLL_LIMIT as Nn, INFINITE_SCROLL_THRESHOLD as Rn, LOCAL_STORAGE_SORT as Uo, findProvider as An, TOAST_CHAT_DELETED as qi, LOCAL_STORAGE_SEARCH as Ho, HISTORY_TITLE as Yi, fe as Ji, debounce as Ki, M as Qi, l as On, PROFILE_TITLE as Xi, LOCAL_STORAGE_CHAT_DETAILS as Zi, SETTINGS_TITLE as el, APP_NAME as tl, PROMPTS_DESCRIPTION as rl, getCurrentGeoLocation as al, USAGE_TITLE as nl, LOG_OUT as $n, ROLE_USER as ol, ROLE_ASSISTANT as Ln, getMessageContaintWrapperClass as sl, UI_FOOTER_BUFFER as Go, UI_BUTTON_SCROLL_BUFFER as il, Logo as ll, UI_DEFAULT_MAIN_HEIGHT as Mn, getMainPaddingClass as Dn, I$1 as cl } from "./index.B7GuwX5K.js";
|
8
8
|
import p from "clsx";
|
9
9
|
import * as te from "react";
|
10
|
-
import U, { useEffect as B, useRef as L, useState as F, useCallback as Y, useSyncExternalStore as
|
11
|
-
import { useMergeRefs as
|
12
|
-
var xe, j, Kt, be, ct, Et,
|
10
|
+
import U, { useEffect as B, useRef as L, useState as F, useCallback as Y, useSyncExternalStore as jo, useMemo as Ee, useId as Nr, useLayoutEffect as ge, useContext as X, createContext as Wo, useDebugValue as dl, forwardRef as qo, isValidElement as Rr, cloneElement as Za, Fragment as ul, useReducer as Pt, lazy as Yo, Suspense as Jo } from "react";
|
11
|
+
import { useMergeRefs as en, FloatingPortal as Ko, FloatingOverlay as fl, FloatingFocusManager as Qo, useFloating as Xo, useClick as Zo, useDismiss as es, useRole as ts, useInteractions as rs, useFloatingTree as as, useFloatingNodeId as hl, useListItem as ns, offset as ml, flip as pl, shift as gl, autoUpdate as yl, useListNavigation as bl, useTypeahead as vl, FloatingNode as _l, FloatingList as wl, FloatingTree as kl } from "@floating-ui/react";
|
12
|
+
var xe, j, Kt, be, ct, Et, Ze, ze, Qt, It, Ct, dt, ut, et, St, Z, zt, ya, ba, va, _a, wa, ka, xa, os, Mo, xl = (Mo = class extends Ai {
|
13
13
|
constructor(t, r) {
|
14
14
|
super();
|
15
15
|
fe(this, Z);
|
@@ -19,7 +19,7 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
19
19
|
fe(this, be);
|
20
20
|
fe(this, ct);
|
21
21
|
fe(this, Et);
|
22
|
-
fe(this,
|
22
|
+
fe(this, Ze);
|
23
23
|
fe(this, ze);
|
24
24
|
fe(this, Qt);
|
25
25
|
fe(this, It);
|
@@ -28,9 +28,9 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
28
28
|
fe(this, Ct);
|
29
29
|
fe(this, dt);
|
30
30
|
fe(this, ut);
|
31
|
-
fe(this,
|
31
|
+
fe(this, et);
|
32
32
|
fe(this, St, /* @__PURE__ */ new Set());
|
33
|
-
this.options = r, re(this, xe, t), re(this, ze, null), re(this,
|
33
|
+
this.options = r, re(this, xe, t), re(this, ze, null), re(this, Ze, Tn()), this.options.experimental_prefetchInRender || O(this, Ze).reject(
|
34
34
|
new Error("experimental_prefetchInRender feature flag is not enabled")
|
35
35
|
), this.bindMethods(), this.setOptions(r);
|
36
36
|
}
|
@@ -38,27 +38,27 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
38
38
|
this.refetch = this.refetch.bind(this);
|
39
39
|
}
|
40
40
|
onSubscribe() {
|
41
|
-
this.listeners.size === 1 && (O(this, j).addObserver(this),
|
41
|
+
this.listeners.size === 1 && (O(this, j).addObserver(this), Bn(O(this, j), this.options) ? le(this, Z, zt).call(this) : this.updateResult(), le(this, Z, _a).call(this));
|
42
42
|
}
|
43
43
|
onUnsubscribe() {
|
44
44
|
this.hasListeners() || this.destroy();
|
45
45
|
}
|
46
46
|
shouldFetchOnReconnect() {
|
47
|
-
return
|
47
|
+
return Ta(
|
48
48
|
O(this, j),
|
49
49
|
this.options,
|
50
50
|
this.options.refetchOnReconnect
|
51
51
|
);
|
52
52
|
}
|
53
53
|
shouldFetchOnWindowFocus() {
|
54
|
-
return
|
54
|
+
return Ta(
|
55
55
|
O(this, j),
|
56
56
|
this.options,
|
57
57
|
this.options.refetchOnWindowFocus
|
58
58
|
);
|
59
59
|
}
|
60
60
|
destroy() {
|
61
|
-
this.listeners = /* @__PURE__ */ new Set(), le(this, Z,
|
61
|
+
this.listeners = /* @__PURE__ */ new Set(), le(this, Z, wa).call(this), le(this, Z, ka).call(this), O(this, j).removeObserver(this);
|
62
62
|
}
|
63
63
|
setOptions(t, r) {
|
64
64
|
const a = this.options, n = O(this, j);
|
@@ -66,20 +66,20 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
66
66
|
throw new Error(
|
67
67
|
"Expected enabled to be a boolean or a callback that returns a boolean"
|
68
68
|
);
|
69
|
-
le(this, Z,
|
69
|
+
le(this, Z, xa).call(this), O(this, j).setOptions(this.options), a._defaulted && !da(this.options, a) && O(this, xe).getQueryCache().notify({
|
70
70
|
type: "observerOptionsUpdated",
|
71
71
|
query: O(this, j),
|
72
72
|
observer: this
|
73
73
|
});
|
74
74
|
const o = this.hasListeners();
|
75
|
-
o &&
|
75
|
+
o && Pn(
|
76
76
|
O(this, j),
|
77
77
|
n,
|
78
78
|
this.options,
|
79
79
|
a
|
80
|
-
) && le(this, Z, zt).call(this), this.updateResult(r), o && (O(this, j) !== n || Ve(this.options.enabled, O(this, j)) !== Ve(a.enabled, O(this, j)) || vr(this.options.staleTime, O(this, j)) !== vr(a.staleTime, O(this, j))) && le(this, Z,
|
81
|
-
const s = le(this, Z,
|
82
|
-
o && (O(this, j) !== n || Ve(this.options.enabled, O(this, j)) !== Ve(a.enabled, O(this, j)) || s !== O(this,
|
80
|
+
) && le(this, Z, zt).call(this), this.updateResult(r), o && (O(this, j) !== n || Ve(this.options.enabled, O(this, j)) !== Ve(a.enabled, O(this, j)) || vr(this.options.staleTime, O(this, j)) !== vr(a.staleTime, O(this, j))) && le(this, Z, ya).call(this);
|
81
|
+
const s = le(this, Z, ba).call(this);
|
82
|
+
o && (O(this, j) !== n || Ve(this.options.enabled, O(this, j)) !== Ve(a.enabled, O(this, j)) || s !== O(this, et)) && le(this, Z, va).call(this, s);
|
83
83
|
}
|
84
84
|
getOptimisticResult(t) {
|
85
85
|
const r = O(this, xe).getQueryCache().build(O(this, xe), t), a = this.createResult(r, t);
|
@@ -124,10 +124,10 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
124
124
|
const a = O(this, j), n = this.options, o = O(this, be), s = O(this, ct), l = O(this, Et), d = t !== a ? t.state : O(this, Kt), { state: f } = t;
|
125
125
|
let u = { ...f }, m = !1, h;
|
126
126
|
if (r._optimisticResults) {
|
127
|
-
const I = this.hasListeners(),
|
128
|
-
(
|
127
|
+
const I = this.hasListeners(), C = !I && Bn(t, r), S = I && Pn(t, a, r, n);
|
128
|
+
(C || S) && (u = {
|
129
129
|
...u,
|
130
|
-
...
|
130
|
+
...Li(f.data, t.options)
|
131
131
|
}), r._optimisticResults === "isRestoring" && (u.fetchStatus = "idle");
|
132
132
|
}
|
133
133
|
let { error: g, errorUpdatedAt: y, status: b } = u;
|
@@ -136,7 +136,7 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
136
136
|
h = O(this, It);
|
137
137
|
else
|
138
138
|
try {
|
139
|
-
re(this, Qt, r.select), h = r.select(u.data), h =
|
139
|
+
re(this, Qt, r.select), h = r.select(u.data), h = In(o == null ? void 0 : o.data, h, r), re(this, It, h), re(this, ze, null);
|
140
140
|
} catch (I) {
|
141
141
|
re(this, ze, I);
|
142
142
|
}
|
@@ -152,10 +152,10 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
152
152
|
) : r.placeholderData, r.select && I !== void 0)
|
153
153
|
try {
|
154
154
|
I = r.select(I), re(this, ze, null);
|
155
|
-
} catch (
|
156
|
-
re(this, ze,
|
155
|
+
} catch (C) {
|
156
|
+
re(this, ze, C);
|
157
157
|
}
|
158
|
-
I !== void 0 && (b = "success", h =
|
158
|
+
I !== void 0 && (b = "success", h = In(
|
159
159
|
o == null ? void 0 : o.data,
|
160
160
|
I,
|
161
161
|
r
|
@@ -185,26 +185,26 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
185
185
|
isPaused: u.fetchStatus === "paused",
|
186
186
|
isPlaceholderData: m,
|
187
187
|
isRefetchError: T && E,
|
188
|
-
isStale:
|
188
|
+
isStale: tn(t, r),
|
189
189
|
refetch: this.refetch,
|
190
|
-
promise: O(this,
|
190
|
+
promise: O(this, Ze)
|
191
191
|
};
|
192
192
|
if (this.options.experimental_prefetchInRender) {
|
193
193
|
const I = (A) => {
|
194
194
|
x.status === "error" ? A.reject(x.error) : x.data !== void 0 && A.resolve(x.data);
|
195
|
-
},
|
196
|
-
const A = re(this,
|
195
|
+
}, C = () => {
|
196
|
+
const A = re(this, Ze, x.promise = Tn());
|
197
197
|
I(A);
|
198
|
-
},
|
199
|
-
switch (
|
198
|
+
}, S = O(this, Ze);
|
199
|
+
switch (S.status) {
|
200
200
|
case "pending":
|
201
|
-
t.queryHash === a.queryHash && I(
|
201
|
+
t.queryHash === a.queryHash && I(S);
|
202
202
|
break;
|
203
203
|
case "fulfilled":
|
204
|
-
(x.status === "error" || x.data !==
|
204
|
+
(x.status === "error" || x.data !== S.value) && C();
|
205
205
|
break;
|
206
206
|
case "rejected":
|
207
|
-
(x.status !== "error" || x.error !==
|
207
|
+
(x.status !== "error" || x.error !== S.reason) && C();
|
208
208
|
break;
|
209
209
|
}
|
210
210
|
}
|
@@ -229,50 +229,50 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
229
229
|
return O(this, be)[f] !== r[f] && i.has(f);
|
230
230
|
});
|
231
231
|
};
|
232
|
-
(t == null ? void 0 : t.listeners) !== !1 && o() && (n.listeners = !0), le(this, Z,
|
232
|
+
(t == null ? void 0 : t.listeners) !== !1 && o() && (n.listeners = !0), le(this, Z, os).call(this, { ...n, ...t });
|
233
233
|
}
|
234
234
|
onQueryUpdate() {
|
235
|
-
this.updateResult(), this.hasListeners() && le(this, Z,
|
235
|
+
this.updateResult(), this.hasListeners() && le(this, Z, _a).call(this);
|
236
236
|
}
|
237
|
-
}, xe = new WeakMap(), j = new WeakMap(), Kt = new WeakMap(), be = new WeakMap(), ct = new WeakMap(), Et = new WeakMap(),
|
238
|
-
le(this, Z,
|
237
|
+
}, xe = new WeakMap(), j = new WeakMap(), Kt = new WeakMap(), be = new WeakMap(), ct = new WeakMap(), Et = new WeakMap(), Ze = new WeakMap(), ze = new WeakMap(), Qt = new WeakMap(), It = new WeakMap(), Ct = new WeakMap(), dt = new WeakMap(), ut = new WeakMap(), et = new WeakMap(), St = new WeakMap(), Z = new WeakSet(), zt = function(t) {
|
238
|
+
le(this, Z, xa).call(this);
|
239
239
|
let r = O(this, j).fetch(
|
240
240
|
this.options,
|
241
241
|
t
|
242
242
|
);
|
243
|
-
return t != null && t.throwOnError || (r = r.catch(
|
244
|
-
},
|
245
|
-
le(this, Z,
|
243
|
+
return t != null && t.throwOnError || (r = r.catch(Oi)), r;
|
244
|
+
}, ya = function() {
|
245
|
+
le(this, Z, wa).call(this);
|
246
246
|
const t = vr(
|
247
247
|
this.options.staleTime,
|
248
248
|
O(this, j)
|
249
249
|
);
|
250
|
-
if (ua || O(this, be).isStale || !
|
250
|
+
if (ua || O(this, be).isStale || !En(t))
|
251
251
|
return;
|
252
|
-
const a =
|
252
|
+
const a = Mi(O(this, be).dataUpdatedAt, t) + 1;
|
253
253
|
re(this, dt, setTimeout(() => {
|
254
254
|
O(this, be).isStale || this.updateResult();
|
255
255
|
}, a));
|
256
|
-
},
|
256
|
+
}, ba = function() {
|
257
257
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(O(this, j)) : this.options.refetchInterval) ?? !1;
|
258
|
-
},
|
259
|
-
le(this, Z,
|
260
|
-
(this.options.refetchIntervalInBackground ||
|
261
|
-
}, O(this,
|
258
|
+
}, va = function(t) {
|
259
|
+
le(this, Z, ka).call(this), re(this, et, t), !(ua || Ve(this.options.enabled, O(this, j)) === !1 || !En(O(this, et)) || O(this, et) === 0) && re(this, ut, setInterval(() => {
|
260
|
+
(this.options.refetchIntervalInBackground || $i.isFocused()) && le(this, Z, zt).call(this);
|
261
|
+
}, O(this, et)));
|
262
|
+
}, _a = function() {
|
263
|
+
le(this, Z, ya).call(this), le(this, Z, va).call(this, le(this, Z, ba).call(this));
|
262
264
|
}, wa = function() {
|
263
|
-
le(this, Z, ba).call(this), le(this, Z, _a).call(this, le(this, Z, va).call(this));
|
264
|
-
}, ka = function() {
|
265
265
|
O(this, dt) && (clearTimeout(O(this, dt)), re(this, dt, void 0));
|
266
|
-
},
|
266
|
+
}, ka = function() {
|
267
267
|
O(this, ut) && (clearInterval(O(this, ut)), re(this, ut, void 0));
|
268
|
-
},
|
268
|
+
}, xa = function() {
|
269
269
|
const t = O(this, xe).getQueryCache().build(O(this, xe), this.options);
|
270
270
|
if (t === O(this, j))
|
271
271
|
return;
|
272
272
|
const r = O(this, j);
|
273
273
|
re(this, j, t), re(this, Kt, t.state), this.hasListeners() && (r == null || r.removeObserver(this), t.addObserver(this));
|
274
|
-
},
|
275
|
-
|
274
|
+
}, os = function(t) {
|
275
|
+
Do.batch(() => {
|
276
276
|
t.listeners && this.listeners.forEach((r) => {
|
277
277
|
r(O(this, be));
|
278
278
|
}), O(this, xe).getQueryCache().notify({
|
@@ -280,24 +280,24 @@ var xe, j, Kt, be, ct, Et, et, ze, Qt, It, Ct, dt, ut, tt, St, Z, zt, ba, va, _a
|
|
280
280
|
type: "observerResultsUpdated"
|
281
281
|
});
|
282
282
|
});
|
283
|
-
},
|
283
|
+
}, Mo);
|
284
284
|
function Tl(e, t) {
|
285
285
|
return Ve(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
|
286
286
|
}
|
287
|
-
function
|
288
|
-
return Tl(e, t) || e.state.data !== void 0 &&
|
287
|
+
function Bn(e, t) {
|
288
|
+
return Tl(e, t) || e.state.data !== void 0 && Ta(e, t, t.refetchOnMount);
|
289
289
|
}
|
290
|
-
function
|
290
|
+
function Ta(e, t, r) {
|
291
291
|
if (Ve(t.enabled, e) !== !1) {
|
292
292
|
const a = typeof r == "function" ? r(e) : r;
|
293
|
-
return a === "always" || a !== !1 &&
|
293
|
+
return a === "always" || a !== !1 && tn(e, t);
|
294
294
|
}
|
295
295
|
return !1;
|
296
296
|
}
|
297
|
-
function
|
298
|
-
return (e !== t || Ve(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") &&
|
297
|
+
function Pn(e, t, r, a) {
|
298
|
+
return (e !== t || Ve(a.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && tn(e, r);
|
299
299
|
}
|
300
|
-
function
|
300
|
+
function tn(e, t) {
|
301
301
|
return Ve(t.enabled, e) !== !1 && e.isStaleByTime(vr(t.staleTime, e));
|
302
302
|
}
|
303
303
|
function El(e, t) {
|
@@ -320,7 +320,7 @@ var Nl = te.createContext(Sl()), Rl = () => te.useContext(Nl);
|
|
320
320
|
function Al(e, t) {
|
321
321
|
return typeof e == "function" ? e(...t) : !!e;
|
322
322
|
}
|
323
|
-
function
|
323
|
+
function zn() {
|
324
324
|
}
|
325
325
|
var Ol = (e, t) => {
|
326
326
|
(e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
|
@@ -337,7 +337,7 @@ var Ol = (e, t) => {
|
|
337
337
|
}) => e.isError && !t.isReset() && !e.isFetching && a && (n && e.data === void 0 || Al(r, [e.error, a])), Ml = (e) => {
|
338
338
|
const t = e.staleTime;
|
339
339
|
e.suspense && (e.staleTime = typeof t == "function" ? (...r) => Math.max(t(...r), 1e3) : Math.max(t ?? 1e3, 1e3), typeof e.gcTime == "number" && (e.gcTime = Math.max(e.gcTime, 1e3)));
|
340
|
-
}, Dl = (e, t) => e.isLoading && e.isFetching && !t, Bl = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending,
|
340
|
+
}, Dl = (e, t) => e.isLoading && e.isFetching && !t, Bl = (e, t) => (e == null ? void 0 : e.suspense) && t.isPending, Vn = (e, t, r) => t.fetchOptimistic(e).catch(() => {
|
341
341
|
r.clearReset();
|
342
342
|
});
|
343
343
|
function Pl(e, t, r) {
|
@@ -346,7 +346,7 @@ function Pl(e, t, r) {
|
|
346
346
|
throw new Error(
|
347
347
|
'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
|
348
348
|
);
|
349
|
-
const a =
|
349
|
+
const a = Di(r), n = Cl(), o = Rl(), s = a.defaultQueryOptions(e);
|
350
350
|
(m = (u = a.getDefaultOptions().queries) == null ? void 0 : u._experimental_beforeQuery) == null || m.call(
|
351
351
|
u,
|
352
352
|
s
|
@@ -362,7 +362,7 @@ function Pl(e, t, r) {
|
|
362
362
|
if (te.useSyncExternalStore(
|
363
363
|
te.useCallback(
|
364
364
|
(b) => {
|
365
|
-
const v = f ? i.subscribe(
|
365
|
+
const v = f ? i.subscribe(Do.batchCalls(b)) : zn;
|
366
366
|
return i.updateResult(), v;
|
367
367
|
},
|
368
368
|
[i, f]
|
@@ -372,7 +372,7 @@ function Pl(e, t, r) {
|
|
372
372
|
), te.useEffect(() => {
|
373
373
|
i.setOptions(s, { listeners: !1 });
|
374
374
|
}, [s, i]), Bl(s, d))
|
375
|
-
throw
|
375
|
+
throw Vn(s, i, o);
|
376
376
|
if (Ll({
|
377
377
|
result: d,
|
378
378
|
errorResetBoundary: o,
|
@@ -388,12 +388,12 @@ function Pl(e, t, r) {
|
|
388
388
|
), s.experimental_prefetchInRender && !ua && Dl(d, n)) {
|
389
389
|
const b = l ? (
|
390
390
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
391
|
-
|
391
|
+
Vn(s, i, o)
|
392
392
|
) : (
|
393
393
|
// subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
|
394
394
|
(y = a.getQueryCache().get(s.queryHash)) == null ? void 0 : y.promise
|
395
395
|
);
|
396
|
-
b == null || b.catch(
|
396
|
+
b == null || b.catch(zn).finally(() => {
|
397
397
|
i.updateResult();
|
398
398
|
});
|
399
399
|
}
|
@@ -402,7 +402,7 @@ function Pl(e, t, r) {
|
|
402
402
|
function Zt(e, t) {
|
403
403
|
return Pl(e, xl, t);
|
404
404
|
}
|
405
|
-
const
|
405
|
+
const Ea = ({
|
406
406
|
className: e,
|
407
407
|
viewBox: t,
|
408
408
|
title: r,
|
@@ -497,7 +497,7 @@ const Ia = ({
|
|
497
497
|
/* @__PURE__ */ c("path", { d: "M368 96c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48zM48 224c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48z" })
|
498
498
|
]
|
499
499
|
}
|
500
|
-
),
|
500
|
+
), ss = ({
|
501
501
|
className: e,
|
502
502
|
viewBox: t,
|
503
503
|
title: r,
|
@@ -728,7 +728,7 @@ const Ia = ({
|
|
728
728
|
/* @__PURE__ */ c("path", { d: "M419.2 227.2 316.7 124.7 46.1 395.4c-18.7 18.7-18.7 49.1 0 67.9l34.6 34.6c18.7 18.7 49.1 18.7 67.9 0z" })
|
729
729
|
]
|
730
730
|
}
|
731
|
-
),
|
731
|
+
), Ia = ({
|
732
732
|
className: e,
|
733
733
|
viewBox: t,
|
734
734
|
title: r,
|
@@ -1043,26 +1043,26 @@ function lc(e, t) {
|
|
1043
1043
|
return !1;
|
1044
1044
|
return s !== u ? !1 : !!(l && (m.toLowerCase() === l.toLowerCase() || t.code.replace("Key", "").toLowerCase() === l.toLowerCase()));
|
1045
1045
|
}
|
1046
|
-
function
|
1046
|
+
function is(e) {
|
1047
1047
|
return (t) => lc(ic(e), t);
|
1048
1048
|
}
|
1049
1049
|
function cc(e) {
|
1050
1050
|
return (t) => {
|
1051
1051
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
1052
1052
|
e.forEach(([a, n, o = { preventDefault: !0 }]) => {
|
1053
|
-
|
1053
|
+
is(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
|
1054
1054
|
});
|
1055
1055
|
};
|
1056
1056
|
}
|
1057
1057
|
function dc(e, t, r = !1) {
|
1058
1058
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
1059
1059
|
}
|
1060
|
-
function
|
1060
|
+
function ls(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
1061
1061
|
B(() => {
|
1062
1062
|
const a = (n) => {
|
1063
1063
|
e.forEach(
|
1064
1064
|
([o, s, l = { preventDefault: !0 }]) => {
|
1065
|
-
|
1065
|
+
is(o)(n) && dc(n, t, r) && (l.preventDefault && n.preventDefault(), s(n));
|
1066
1066
|
}
|
1067
1067
|
);
|
1068
1068
|
};
|
@@ -1084,26 +1084,26 @@ function fc() {
|
|
1084
1084
|
e.current = !1;
|
1085
1085
|
}), []), Y(() => e.current, []);
|
1086
1086
|
}
|
1087
|
-
function
|
1087
|
+
function cs(e, t) {
|
1088
1088
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
1089
1089
|
}
|
1090
|
-
const
|
1090
|
+
const Fn = (e, t) => {
|
1091
1091
|
const r = JSON.stringify(
|
1092
1092
|
typeof t == "function" ? t() : t
|
1093
1093
|
);
|
1094
|
-
window.localStorage.setItem(e, r),
|
1094
|
+
window.localStorage.setItem(e, r), cs(e, r);
|
1095
1095
|
}, hc = (e) => {
|
1096
|
-
window.localStorage.removeItem(e),
|
1097
|
-
},
|
1096
|
+
window.localStorage.removeItem(e), cs(e, null);
|
1097
|
+
}, Un = (e) => window.localStorage.getItem(e), mc = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
1098
1098
|
function ht({
|
1099
1099
|
key: e,
|
1100
1100
|
initialValue: t
|
1101
1101
|
}) {
|
1102
|
-
const r =
|
1102
|
+
const r = jo(mc, () => Un(e)), a = Y(
|
1103
1103
|
(s) => {
|
1104
1104
|
try {
|
1105
1105
|
const l = typeof s == "function" ? s(JSON.parse(r)) : s;
|
1106
|
-
l == null ? hc(e) :
|
1106
|
+
l == null ? hc(e) : Fn(e, l);
|
1107
1107
|
} catch (l) {
|
1108
1108
|
console.warn(l);
|
1109
1109
|
}
|
@@ -1116,7 +1116,7 @@ function ht({
|
|
1116
1116
|
}, [a]);
|
1117
1117
|
return B(() => {
|
1118
1118
|
try {
|
1119
|
-
|
1119
|
+
Un(e) === null && typeof t < "u" && Fn(e, t);
|
1120
1120
|
} catch (s) {
|
1121
1121
|
console.warn(s);
|
1122
1122
|
}
|
@@ -1132,7 +1132,7 @@ const pc = {
|
|
1132
1132
|
bottom: 0,
|
1133
1133
|
right: 0
|
1134
1134
|
};
|
1135
|
-
function
|
1135
|
+
function ds(e) {
|
1136
1136
|
const t = fc(), r = L(0), a = L(null), [n, o] = F(pc), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
1137
1137
|
const i = l[0];
|
1138
1138
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
@@ -1146,7 +1146,7 @@ function us(e) {
|
|
1146
1146
|
function Gt(e) {
|
1147
1147
|
return Nr();
|
1148
1148
|
}
|
1149
|
-
function
|
1149
|
+
function Hn(e, t) {
|
1150
1150
|
B(() => (window.addEventListener(e, t, {
|
1151
1151
|
passive: !0
|
1152
1152
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
@@ -1161,7 +1161,7 @@ function gc() {
|
|
1161
1161
|
height: window.innerHeight || 0
|
1162
1162
|
});
|
1163
1163
|
}, []);
|
1164
|
-
return
|
1164
|
+
return Hn("resize", r), Hn("orientationchange", r), B(r, []), e;
|
1165
1165
|
}
|
1166
1166
|
function yc() {
|
1167
1167
|
const [e, t] = F({
|
@@ -1195,7 +1195,7 @@ try {
|
|
1195
1195
|
});
|
1196
1196
|
} catch {
|
1197
1197
|
}
|
1198
|
-
const Ar = "thead",
|
1198
|
+
const Ar = "thead", rn = "tfoot", wt = "tbody", Ue = {
|
1199
1199
|
ASC: "asc",
|
1200
1200
|
DESC: "desc"
|
1201
1201
|
}, bc = ({
|
@@ -1263,7 +1263,7 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1263
1263
|
mode: e,
|
1264
1264
|
className: t,
|
1265
1265
|
cellWrapper: r
|
1266
|
-
}) => r === Ar || r ===
|
1266
|
+
}) => r === Ar || r === rn ? p(
|
1267
1267
|
{
|
1268
1268
|
"bg-table-head-dark": e === "dark" || e === "system",
|
1269
1269
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
@@ -1302,7 +1302,7 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1302
1302
|
"text-copy-dark": a === "light" || a === "alt-system",
|
1303
1303
|
"dark:text-copy-dark": a === "system",
|
1304
1304
|
"dark:text-copy-light": a === "alt-system",
|
1305
|
-
"px-4 py-3": !r && (e === Ar || e ===
|
1305
|
+
"px-4 py-3": !r && (e === Ar || e === rn),
|
1306
1306
|
"p-4": !r && e === wt,
|
1307
1307
|
"px-2 py-1.5": r
|
1308
1308
|
},
|
@@ -1310,7 +1310,7 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1310
1310
|
)
|
1311
1311
|
}), xc = ({
|
1312
1312
|
buttonClassName: e
|
1313
|
-
}) => p("rounded-none text-sm", e),
|
1313
|
+
}) => p("rounded-none text-sm", e), Gn = "av-button", Or = "icon", us = "button", Ca = "link", Tc = ({
|
1314
1314
|
type: e,
|
1315
1315
|
size: t,
|
1316
1316
|
labelRight: r,
|
@@ -1320,8 +1320,8 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1320
1320
|
}) => {
|
1321
1321
|
const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
|
1322
1322
|
switch (e) {
|
1323
|
-
case
|
1324
|
-
case
|
1323
|
+
case us:
|
1324
|
+
case Ca:
|
1325
1325
|
return p({
|
1326
1326
|
[s]: t === "small",
|
1327
1327
|
[l]: t === "medium",
|
@@ -1354,10 +1354,10 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1354
1354
|
}) => {
|
1355
1355
|
const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
|
1356
1356
|
switch (e) {
|
1357
|
-
case
|
1358
|
-
case
|
1357
|
+
case us:
|
1358
|
+
case Ca:
|
1359
1359
|
return p({
|
1360
|
-
"text-center": e ===
|
1360
|
+
"text-center": e === Ca,
|
1361
1361
|
[n]: t === "small",
|
1362
1362
|
[o]: t === "medium",
|
1363
1363
|
[s]: t === "large"
|
@@ -1572,8 +1572,8 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1572
1572
|
align: g,
|
1573
1573
|
radius: y,
|
1574
1574
|
animated: b
|
1575
|
-
}) => (m || (m = "primary"), r ? p(
|
1576
|
-
|
1575
|
+
}) => (m || (m = "primary"), r ? p(Gn, t) : p(
|
1576
|
+
Gn,
|
1577
1577
|
Ic({
|
1578
1578
|
mode: a,
|
1579
1579
|
variant: m,
|
@@ -1606,7 +1606,7 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1606
1606
|
)), Dc = (e, t, r) => {
|
1607
1607
|
var a;
|
1608
1608
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
1609
|
-
},
|
1609
|
+
}, fs = U.forwardRef((e, t) => {
|
1610
1610
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
1611
1611
|
return /* @__PURE__ */ c(
|
1612
1612
|
"button",
|
@@ -1619,7 +1619,7 @@ const Ar = "thead", an = "tfoot", wt = "tbody", Ue = {
|
|
1619
1619
|
}
|
1620
1620
|
);
|
1621
1621
|
});
|
1622
|
-
|
1622
|
+
fs.displayName = "BaseButton";
|
1623
1623
|
function Bc() {
|
1624
1624
|
const e = L(!1);
|
1625
1625
|
return B(() => (e.current = !0, () => {
|
@@ -1669,7 +1669,7 @@ const Vc = {
|
|
1669
1669
|
// px-3 x 2
|
1670
1670
|
large: 16 * 2
|
1671
1671
|
// px-4 x 2
|
1672
|
-
}, Uc = 2,
|
1672
|
+
}, Uc = 2, hs = U.forwardRef(
|
1673
1673
|
({
|
1674
1674
|
children: e,
|
1675
1675
|
disabled: t = !1,
|
@@ -1710,22 +1710,22 @@ const Vc = {
|
|
1710
1710
|
radius: b,
|
1711
1711
|
variant: v,
|
1712
1712
|
animated: T
|
1713
|
-
}), x = $c({ mode: r, raw: l, iconClassName: w }), k = Lc({ animated: T }), [I,
|
1713
|
+
}), x = $c({ mode: r, raw: l, iconClassName: w }), k = Lc({ animated: T }), [I, C] = Wr(), [S, A] = Wr(), [$, D] = Wr(), V = L(0), M = L(null), W = Pc([E, M]);
|
1714
1714
|
return ge(() => {
|
1715
1715
|
$ && $.current && T && (V.current = D.width + Fc[u] + (i ? 0 : Uc));
|
1716
1716
|
}, [D, $, u, i, T]), ge(() => {
|
1717
|
-
M && M.current && T && (m && I &&
|
1717
|
+
M && M.current && T && (m && I && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), M.current.style.width = `${C.width + V.current}px`) : h && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + V.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Vc[u]}px`));
|
1718
1718
|
}, [
|
1719
|
-
|
1719
|
+
C,
|
1720
1720
|
m,
|
1721
1721
|
I,
|
1722
1722
|
A,
|
1723
1723
|
h,
|
1724
|
-
|
1724
|
+
S,
|
1725
1725
|
u,
|
1726
1726
|
T
|
1727
1727
|
]), /* @__PURE__ */ R(
|
1728
|
-
|
1728
|
+
fs,
|
1729
1729
|
{
|
1730
1730
|
ref: W,
|
1731
1731
|
className: _,
|
@@ -1735,17 +1735,17 @@ const Vc = {
|
|
1735
1735
|
...N,
|
1736
1736
|
children: [
|
1737
1737
|
/* @__PURE__ */ c(
|
1738
|
-
|
1738
|
+
jn,
|
1739
1739
|
{
|
1740
1740
|
label: h,
|
1741
|
-
labelRef:
|
1741
|
+
labelRef: S,
|
1742
1742
|
labelClass: k,
|
1743
1743
|
labelInnerClass: "pr-2"
|
1744
1744
|
}
|
1745
1745
|
),
|
1746
1746
|
/* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
|
1747
1747
|
/* @__PURE__ */ c(
|
1748
|
-
|
1748
|
+
jn,
|
1749
1749
|
{
|
1750
1750
|
label: m,
|
1751
1751
|
labelRef: I,
|
@@ -1757,13 +1757,13 @@ const Vc = {
|
|
1757
1757
|
}
|
1758
1758
|
);
|
1759
1759
|
}
|
1760
|
-
),
|
1760
|
+
), jn = ({
|
1761
1761
|
labelRef: e,
|
1762
1762
|
labelClass: t,
|
1763
1763
|
label: r,
|
1764
1764
|
labelInnerClass: a
|
1765
1765
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
1766
|
-
|
1766
|
+
hs.displayName = "ButtonIcon";
|
1767
1767
|
/*!
|
1768
1768
|
@versini/ui-button v4.2.11
|
1769
1769
|
© 2025 gizmette.com
|
@@ -1777,7 +1777,7 @@ try {
|
|
1777
1777
|
});
|
1778
1778
|
} catch {
|
1779
1779
|
}
|
1780
|
-
const
|
1780
|
+
const ms = U.forwardRef(
|
1781
1781
|
({
|
1782
1782
|
children: e,
|
1783
1783
|
mode: t = "system",
|
@@ -1803,7 +1803,7 @@ const ps = U.forwardRef(
|
|
1803
1803
|
}
|
1804
1804
|
) : "";
|
1805
1805
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
1806
|
-
|
1806
|
+
hs,
|
1807
1807
|
{
|
1808
1808
|
className: p("justify-center", r),
|
1809
1809
|
ref: o,
|
@@ -1815,8 +1815,8 @@ const ps = U.forwardRef(
|
|
1815
1815
|
) });
|
1816
1816
|
}
|
1817
1817
|
);
|
1818
|
-
|
1819
|
-
const
|
1818
|
+
ms.displayName = "ButtonSort";
|
1819
|
+
const an = ({
|
1820
1820
|
children: e,
|
1821
1821
|
fill: t,
|
1822
1822
|
viewBox: r,
|
@@ -1866,7 +1866,7 @@ const Hc = ({
|
|
1866
1866
|
monotone: a,
|
1867
1867
|
...n
|
1868
1868
|
}) => /* @__PURE__ */ R(
|
1869
|
-
|
1869
|
+
an,
|
1870
1870
|
{
|
1871
1871
|
defaultViewBox: "0 0 576 512",
|
1872
1872
|
size: "size-5",
|
@@ -1892,7 +1892,7 @@ const Hc = ({
|
|
1892
1892
|
monotone: a,
|
1893
1893
|
...n
|
1894
1894
|
}) => /* @__PURE__ */ R(
|
1895
|
-
|
1895
|
+
an,
|
1896
1896
|
{
|
1897
1897
|
defaultViewBox: "0 0 576 512",
|
1898
1898
|
size: "size-5",
|
@@ -1918,7 +1918,7 @@ const Hc = ({
|
|
1918
1918
|
monotone: a,
|
1919
1919
|
...n
|
1920
1920
|
}) => /* @__PURE__ */ R(
|
1921
|
-
|
1921
|
+
an,
|
1922
1922
|
{
|
1923
1923
|
defaultViewBox: "0 0 576 512",
|
1924
1924
|
size: "size-5",
|
@@ -2015,7 +2015,7 @@ const $t = U.createContext({
|
|
2015
2015
|
...r
|
2016
2016
|
}) => {
|
2017
2017
|
const a = X($t);
|
2018
|
-
a.cellWrapper =
|
2018
|
+
a.cellWrapper = rn;
|
2019
2019
|
const n = _c({
|
2020
2020
|
className: t,
|
2021
2021
|
mode: a.mode,
|
@@ -2075,7 +2075,7 @@ const $t = U.createContext({
|
|
2075
2075
|
"aria-sort": i === Ue.ASC && d === f ? "ascending" : i === Ue.DESC && d === f ? "descending" : "other",
|
2076
2076
|
...u,
|
2077
2077
|
children: /* @__PURE__ */ c(
|
2078
|
-
|
2078
|
+
ms,
|
2079
2079
|
{
|
2080
2080
|
active: d === f,
|
2081
2081
|
className: m,
|
@@ -2107,18 +2107,18 @@ function Zc() {
|
|
2107
2107
|
}
|
2108
2108
|
return Yr(Xc);
|
2109
2109
|
}
|
2110
|
-
const ed = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
2111
|
-
function
|
2110
|
+
const ed = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Wn = { randomUUID: ed };
|
2111
|
+
function at(e, t, r) {
|
2112
2112
|
var n;
|
2113
|
-
if (
|
2114
|
-
return
|
2113
|
+
if (Wn.randomUUID && !e)
|
2114
|
+
return Wn.randomUUID();
|
2115
2115
|
e = e || {};
|
2116
2116
|
const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Zc();
|
2117
2117
|
if (a.length < 16)
|
2118
2118
|
throw new Error("Random bytes length must be >= 16");
|
2119
2119
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Qc(a);
|
2120
2120
|
}
|
2121
|
-
const Ht = "FOOTER_BOTTOM",
|
2121
|
+
const Ht = "FOOTER_BOTTOM", Sa = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", ps = "APP_SET_FOOTER_HEIGHT", td = (e, t) => {
|
2122
2122
|
switch (t.type) {
|
2123
2123
|
case wr:
|
2124
2124
|
return {
|
@@ -2126,7 +2126,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2126
2126
|
footerPosition: t.payload.footerPosition,
|
2127
2127
|
footerOffset: t.payload.footerOffset
|
2128
2128
|
};
|
2129
|
-
case
|
2129
|
+
case ps:
|
2130
2130
|
return {
|
2131
2131
|
...e,
|
2132
2132
|
footerHeight: t.payload.footerHeight
|
@@ -2134,10 +2134,10 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2134
2134
|
default:
|
2135
2135
|
return e;
|
2136
2136
|
}
|
2137
|
-
}, kt = "CHAT_SET_STATUS",
|
2137
|
+
}, kt = "CHAT_SET_STATUS", gs = "CHAT_SET_USAGE", nn = "CHAT_SET_PROVIDER", gt = "CHAT_RESET", rd = (e, t) => {
|
2138
2138
|
var r, a, n, o, s;
|
2139
2139
|
switch (t.type) {
|
2140
|
-
case
|
2140
|
+
case gs:
|
2141
2141
|
return {
|
2142
2142
|
...e,
|
2143
2143
|
usage: t.payload.usage
|
@@ -2154,7 +2154,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2154
2154
|
lastStreamingTimestamp: i ? Date.now() : e.lastStreamingTimestamp
|
2155
2155
|
};
|
2156
2156
|
}
|
2157
|
-
case
|
2157
|
+
case nn:
|
2158
2158
|
return {
|
2159
2159
|
...e,
|
2160
2160
|
provider: t.payload.provider
|
@@ -2178,7 +2178,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2178
2178
|
}
|
2179
2179
|
}, ad = (e, t) => {
|
2180
2180
|
switch (t == null ? void 0 : t.type) {
|
2181
|
-
case
|
2181
|
+
case Bo:
|
2182
2182
|
return {
|
2183
2183
|
searchString: t.payload.searchString,
|
2184
2184
|
sortedCell: e.sortedCell,
|
@@ -2195,12 +2195,12 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2195
2195
|
}
|
2196
2196
|
}, nd = (e, t) => {
|
2197
2197
|
switch (t == null ? void 0 : t.type) {
|
2198
|
-
case
|
2198
|
+
case zo:
|
2199
2199
|
return {
|
2200
2200
|
prompt: t.payload.prompt,
|
2201
2201
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
2202
2202
|
};
|
2203
|
-
case
|
2203
|
+
case Po:
|
2204
2204
|
return {
|
2205
2205
|
prompt: "",
|
2206
2206
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
@@ -2376,12 +2376,12 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2376
2376
|
schema: Pe.GET_USAGE,
|
2377
2377
|
method: "usage"
|
2378
2378
|
}
|
2379
|
-
},
|
2379
|
+
}, ys = process.env.PUBLIC_SASSY_API_SERVER_URL, Tr = async ({
|
2380
2380
|
query: e,
|
2381
2381
|
data: t,
|
2382
2382
|
headers: r = {},
|
2383
2383
|
...a
|
2384
|
-
}) => await fetch(`${
|
2384
|
+
}) => await fetch(`${ys}/graphql`, {
|
2385
2385
|
method: "POST",
|
2386
2386
|
credentials: "include",
|
2387
2387
|
headers: {
|
@@ -2425,7 +2425,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2425
2425
|
} catch (a) {
|
2426
2426
|
return console.error(a), { status: 500, data: [] };
|
2427
2427
|
}
|
2428
|
-
},
|
2428
|
+
}, bs = async ({
|
2429
2429
|
provider: e,
|
2430
2430
|
accessToken: t,
|
2431
2431
|
username: r
|
@@ -2441,7 +2441,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2441
2441
|
});
|
2442
2442
|
} catch {
|
2443
2443
|
}
|
2444
|
-
},
|
2444
|
+
}, vs = () => Zt({
|
2445
2445
|
queryKey: ["capabilities"],
|
2446
2446
|
queryFn: async () => await tr({
|
2447
2447
|
type: $e.GET_SERVER_CAPABILITIES,
|
@@ -2471,7 +2471,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2471
2471
|
type: $e.GET_CHATS_STATS,
|
2472
2472
|
getAccessToken: t
|
2473
2473
|
})
|
2474
|
-
}),
|
2474
|
+
}), _s = ({
|
2475
2475
|
user: e,
|
2476
2476
|
searchString: t,
|
2477
2477
|
sortDirection: r,
|
@@ -2548,7 +2548,7 @@ const Ht = "FOOTER_BOTTOM", Na = "FOOTER_TOP", wr = "APP_SET_FOOTER_POSITION", g
|
|
2548
2548
|
return Promise.reject(n);
|
2549
2549
|
}
|
2550
2550
|
};
|
2551
|
-
var
|
2551
|
+
var ws = "vercel.ai.error", id = Symbol.for(ws), ks, ld = class xs extends Error {
|
2552
2552
|
/**
|
2553
2553
|
* Creates an AI SDK Error.
|
2554
2554
|
*
|
@@ -2562,7 +2562,7 @@ var ks = "vercel.ai.error", id = Symbol.for(ks), xs, ld = class Ts extends Error
|
|
2562
2562
|
message: r,
|
2563
2563
|
cause: a
|
2564
2564
|
}) {
|
2565
|
-
super(r), this[
|
2565
|
+
super(r), this[ks] = !0, this.name = t, this.cause = a;
|
2566
2566
|
}
|
2567
2567
|
/**
|
2568
2568
|
* Checks if the given error is an AI SDK Error.
|
@@ -2570,56 +2570,56 @@ var ks = "vercel.ai.error", id = Symbol.for(ks), xs, ld = class Ts extends Error
|
|
2570
2570
|
* @returns {boolean} True if the error is an AI SDK Error, false otherwise.
|
2571
2571
|
*/
|
2572
2572
|
static isInstance(t) {
|
2573
|
-
return
|
2573
|
+
return xs.hasMarker(t, ws);
|
2574
2574
|
}
|
2575
2575
|
static hasMarker(t, r) {
|
2576
2576
|
const a = Symbol.for(r);
|
2577
2577
|
return t != null && typeof t == "object" && a in t && typeof t[a] == "boolean" && t[a] === !0;
|
2578
2578
|
}
|
2579
2579
|
};
|
2580
|
-
|
2580
|
+
ks = id;
|
2581
2581
|
var Rt = ld;
|
2582
|
-
function
|
2582
|
+
function Ts(e) {
|
2583
2583
|
return e == null ? "unknown error" : typeof e == "string" ? e : e instanceof Error ? e.message : JSON.stringify(e);
|
2584
2584
|
}
|
2585
|
-
var
|
2585
|
+
var Es = "AI_InvalidArgumentError", Is = `vercel.ai.error.${Es}`, cd = Symbol.for(Is), Cs, dd = class extends Rt {
|
2586
2586
|
constructor({
|
2587
2587
|
message: e,
|
2588
2588
|
cause: t,
|
2589
2589
|
argument: r
|
2590
2590
|
}) {
|
2591
|
-
super({ name:
|
2591
|
+
super({ name: Es, message: e, cause: t }), this[Cs] = !0, this.argument = r;
|
2592
2592
|
}
|
2593
2593
|
static isInstance(e) {
|
2594
|
-
return Rt.hasMarker(e,
|
2594
|
+
return Rt.hasMarker(e, Is);
|
2595
2595
|
}
|
2596
2596
|
};
|
2597
|
-
|
2598
|
-
var
|
2597
|
+
Cs = cd;
|
2598
|
+
var Ss = "AI_JSONParseError", Ns = `vercel.ai.error.${Ss}`, ud = Symbol.for(Ns), Rs, qn = class extends Rt {
|
2599
2599
|
constructor({ text: e, cause: t }) {
|
2600
2600
|
super({
|
2601
|
-
name:
|
2601
|
+
name: Ss,
|
2602
2602
|
message: `JSON parsing failed: Text: ${e}.
|
2603
|
-
Error message: ${
|
2603
|
+
Error message: ${Ts(t)}`,
|
2604
2604
|
cause: t
|
2605
|
-
}), this[
|
2605
|
+
}), this[Rs] = !0, this.text = e;
|
2606
2606
|
}
|
2607
2607
|
static isInstance(e) {
|
2608
|
-
return Rt.hasMarker(e,
|
2608
|
+
return Rt.hasMarker(e, Ns);
|
2609
2609
|
}
|
2610
2610
|
};
|
2611
|
-
|
2612
|
-
var
|
2611
|
+
Rs = ud;
|
2612
|
+
var As = "AI_TypeValidationError", Os = `vercel.ai.error.${As}`, fd = Symbol.for(Os), $s, hd = class Na extends Rt {
|
2613
2613
|
constructor({ value: t, cause: r }) {
|
2614
2614
|
super({
|
2615
|
-
name:
|
2615
|
+
name: As,
|
2616
2616
|
message: `Type validation failed: Value: ${JSON.stringify(t)}.
|
2617
|
-
Error message: ${
|
2617
|
+
Error message: ${Ts(r)}`,
|
2618
2618
|
cause: r
|
2619
|
-
}), this[
|
2619
|
+
}), this[$s] = !0, this.value = t;
|
2620
2620
|
}
|
2621
2621
|
static isInstance(t) {
|
2622
|
-
return Rt.hasMarker(t,
|
2622
|
+
return Rt.hasMarker(t, Os);
|
2623
2623
|
}
|
2624
2624
|
/**
|
2625
2625
|
* Wraps an error into a TypeValidationError.
|
@@ -2635,24 +2635,24 @@ Error message: ${Es(r)}`,
|
|
2635
2635
|
value: t,
|
2636
2636
|
cause: r
|
2637
2637
|
}) {
|
2638
|
-
return
|
2638
|
+
return Na.isInstance(r) && r.value === t ? r : new Na({ value: t, cause: r });
|
2639
2639
|
}
|
2640
2640
|
};
|
2641
|
-
|
2642
|
-
var
|
2641
|
+
$s = fd;
|
2642
|
+
var Yn = hd;
|
2643
2643
|
let md = (e, t = 21) => (r = t) => {
|
2644
2644
|
let a = "", n = r | 0;
|
2645
2645
|
for (; n--; )
|
2646
2646
|
a += e[Math.random() * e.length | 0];
|
2647
2647
|
return a;
|
2648
2648
|
};
|
2649
|
-
function
|
2649
|
+
function Ls(e) {
|
2650
2650
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
2651
2651
|
}
|
2652
|
-
var lt = { exports: {} },
|
2652
|
+
var lt = { exports: {} }, Jn;
|
2653
2653
|
function pd() {
|
2654
|
-
if (
|
2655
|
-
|
2654
|
+
if (Jn) return lt.exports;
|
2655
|
+
Jn = 1;
|
2656
2656
|
const e = typeof Buffer < "u", t = /"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/, r = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
|
2657
2657
|
function a(l, i, d) {
|
2658
2658
|
d == null && i !== null && typeof i == "object" && (d = i, i = void 0), e && Buffer.isBuffer(l) && (l = l.toString()), l && l.charCodeAt(0) === 65279 && (l = l.slice(1));
|
@@ -2723,7 +2723,7 @@ function pd() {
|
|
2723
2723
|
return lt.exports = o, lt.exports.default = o, lt.exports.parse = o, lt.exports.safeParse = s, lt.exports.scan = n, lt.exports;
|
2724
2724
|
}
|
2725
2725
|
var gd = /* @__PURE__ */ pd();
|
2726
|
-
const yd = /* @__PURE__ */
|
2726
|
+
const yd = /* @__PURE__ */ Ls(gd);
|
2727
2727
|
var bd = ({
|
2728
2728
|
prefix: e,
|
2729
2729
|
size: t = 16,
|
@@ -2739,12 +2739,12 @@ var bd = ({
|
|
2739
2739
|
message: `The separator "${a}" must not be part of the alphabet "${r}".`
|
2740
2740
|
});
|
2741
2741
|
return (o) => `${e}${a}${n(o)}`;
|
2742
|
-
},
|
2742
|
+
}, on = bd(), Ra = Symbol.for("vercel.ai.validator");
|
2743
2743
|
function vd(e) {
|
2744
|
-
return { [
|
2744
|
+
return { [Ra]: !0, validate: e };
|
2745
2745
|
}
|
2746
2746
|
function _d(e) {
|
2747
|
-
return typeof e == "object" && e !== null &&
|
2747
|
+
return typeof e == "object" && e !== null && Ra in e && e[Ra] === !0 && "validate" in e;
|
2748
2748
|
}
|
2749
2749
|
function wd(e) {
|
2750
2750
|
return _d(e) ? e : kd(e);
|
@@ -2766,16 +2766,16 @@ function xd({
|
|
2766
2766
|
const a = r.validate(e);
|
2767
2767
|
return a.success ? a : {
|
2768
2768
|
success: !1,
|
2769
|
-
error:
|
2769
|
+
error: Yn.wrap({ value: e, cause: a.error })
|
2770
2770
|
};
|
2771
2771
|
} catch (a) {
|
2772
2772
|
return {
|
2773
2773
|
success: !1,
|
2774
|
-
error:
|
2774
|
+
error: Yn.wrap({ value: e, cause: a })
|
2775
2775
|
};
|
2776
2776
|
}
|
2777
2777
|
}
|
2778
|
-
function
|
2778
|
+
function Kn({
|
2779
2779
|
text: e,
|
2780
2780
|
schema: t
|
2781
2781
|
}) {
|
@@ -2788,7 +2788,7 @@ function Xn({
|
|
2788
2788
|
} catch (r) {
|
2789
2789
|
return {
|
2790
2790
|
success: !1,
|
2791
|
-
error:
|
2791
|
+
error: qn.isInstance(r) ? r : new qn({ text: e, cause: r })
|
2792
2792
|
};
|
2793
2793
|
}
|
2794
2794
|
}
|
@@ -3053,8 +3053,8 @@ function Ed(e) {
|
|
3053
3053
|
function Id(e) {
|
3054
3054
|
if (e === void 0)
|
3055
3055
|
return { value: void 0, state: "undefined-input" };
|
3056
|
-
let t =
|
3057
|
-
return t.success ? { value: t.value, state: "successful-parse" } : (t =
|
3056
|
+
let t = Kn({ text: e });
|
3057
|
+
return t.success ? { value: t.value, state: "successful-parse" } : (t = Kn({ text: Ed(e) }), t.success ? { value: t.value, state: "repaired-parse" } : { value: void 0, state: "failed-parse" });
|
3058
3058
|
}
|
3059
3059
|
var Cd = {
|
3060
3060
|
code: "0",
|
@@ -3236,7 +3236,7 @@ var Cd = {
|
|
3236
3236
|
value: { signature: e.signature }
|
3237
3237
|
};
|
3238
3238
|
}
|
3239
|
-
},
|
3239
|
+
}, sn = [
|
3240
3240
|
Cd,
|
3241
3241
|
Sd,
|
3242
3242
|
Nd,
|
@@ -3253,12 +3253,12 @@ var Cd = {
|
|
3253
3253
|
Vd,
|
3254
3254
|
Fd
|
3255
3255
|
], Ud = Object.fromEntries(
|
3256
|
-
|
3256
|
+
sn.map((e) => [e.code, e])
|
3257
3257
|
);
|
3258
3258
|
Object.fromEntries(
|
3259
|
-
|
3259
|
+
sn.map((e) => [e.name, e.code])
|
3260
3260
|
);
|
3261
|
-
var Hd =
|
3261
|
+
var Hd = sn.map((e) => e.code), Gd = (e) => {
|
3262
3262
|
const t = e.indexOf(":");
|
3263
3263
|
if (t === -1)
|
3264
3264
|
throw new Error("Failed to parse stream string. No separator found.");
|
@@ -3364,7 +3364,7 @@ async function Yd({
|
|
3364
3364
|
update: t,
|
3365
3365
|
onToolCall: r,
|
3366
3366
|
onFinish: a,
|
3367
|
-
generateId: n =
|
3367
|
+
generateId: n = on,
|
3368
3368
|
getCurrentDate: o = () => /* @__PURE__ */ new Date(),
|
3369
3369
|
lastMessage: s
|
3370
3370
|
}) {
|
@@ -3507,7 +3507,7 @@ async function Yd({
|
|
3507
3507
|
if (x == null)
|
3508
3508
|
throw new Error("tool_result must be preceded by a tool_call");
|
3509
3509
|
const k = x.findIndex(
|
3510
|
-
(
|
3510
|
+
(C) => C.toolCallId === _.toolCallId
|
3511
3511
|
);
|
3512
3512
|
if (k === -1)
|
3513
3513
|
throw new Error(
|
@@ -3557,7 +3557,7 @@ async function Kd({
|
|
3557
3557
|
update: t,
|
3558
3558
|
onFinish: r,
|
3559
3559
|
getCurrentDate: a = () => /* @__PURE__ */ new Date(),
|
3560
|
-
generateId: n =
|
3560
|
+
generateId: n = on
|
3561
3561
|
}) {
|
3562
3562
|
const o = { type: "text", text: "" }, s = {
|
3563
3563
|
id: n(),
|
@@ -3651,13 +3651,13 @@ async function Xd({
|
|
3651
3651
|
}
|
3652
3652
|
}
|
3653
3653
|
}
|
3654
|
-
function
|
3654
|
+
function Aa(e) {
|
3655
3655
|
return e == null ? void 0 : e.reduce((t, r) => {
|
3656
3656
|
var a;
|
3657
3657
|
return Math.max(t, (a = r.step) != null ? a : 0);
|
3658
3658
|
}, 0);
|
3659
3659
|
}
|
3660
|
-
function
|
3660
|
+
function Ms(e) {
|
3661
3661
|
var t;
|
3662
3662
|
return (t = e.parts) != null ? t : [
|
3663
3663
|
...e.toolInvocations ? e.toolInvocations.map((r) => ({
|
@@ -3677,10 +3677,10 @@ function Ds(e) {
|
|
3677
3677
|
function Jr(e) {
|
3678
3678
|
return e.map((t) => ({
|
3679
3679
|
...t,
|
3680
|
-
parts:
|
3680
|
+
parts: Ms(t)
|
3681
3681
|
}));
|
3682
3682
|
}
|
3683
|
-
function
|
3683
|
+
function Oa(e, t) {
|
3684
3684
|
if (e === t)
|
3685
3685
|
return !0;
|
3686
3686
|
if (e == null || t == null)
|
@@ -3695,7 +3695,7 @@ function $a(e, t) {
|
|
3695
3695
|
if (e.length !== t.length)
|
3696
3696
|
return !1;
|
3697
3697
|
for (let n = 0; n < e.length; n++)
|
3698
|
-
if (
|
3698
|
+
if (!Oa(e[n], t[n]))
|
3699
3699
|
return !1;
|
3700
3700
|
return !0;
|
3701
3701
|
}
|
@@ -3703,11 +3703,11 @@ function $a(e, t) {
|
|
3703
3703
|
if (r.length !== a.length)
|
3704
3704
|
return !1;
|
3705
3705
|
for (const n of r)
|
3706
|
-
if (!a.includes(n) ||
|
3706
|
+
if (!a.includes(n) || !Oa(e[n], t[n]))
|
3707
3707
|
return !1;
|
3708
3708
|
return !0;
|
3709
3709
|
}
|
3710
|
-
async function
|
3710
|
+
async function Qn(e) {
|
3711
3711
|
if (!e)
|
3712
3712
|
return [];
|
3713
3713
|
if (e instanceof FileList)
|
@@ -3743,10 +3743,10 @@ function Zd({
|
|
3743
3743
|
// check if the feature is enabled:
|
3744
3744
|
r > 1 && // ensure there is a last message:
|
3745
3745
|
o != null && // ensure we actually have new steps (to prevent infinite loops in case of errors):
|
3746
|
-
(a.length > t ||
|
3747
|
-
|
3746
|
+
(a.length > t || Aa(o.toolInvocations) !== e) && // check that next step is possible:
|
3747
|
+
Ds(o) && // check that assistant has not answered yet:
|
3748
3748
|
!eu(o) && // limit the number of automatic steps:
|
3749
|
-
((n =
|
3749
|
+
((n = Aa(o.toolInvocations)) != null ? n : 0) < r
|
3750
3750
|
);
|
3751
3751
|
}
|
3752
3752
|
function eu(e) {
|
@@ -3755,7 +3755,7 @@ function eu(e) {
|
|
3755
3755
|
r.type === "text" && (t = !0), r.type === "tool-invocation" && (t = !1);
|
3756
3756
|
}), t;
|
3757
3757
|
}
|
3758
|
-
function
|
3758
|
+
function Ds(e) {
|
3759
3759
|
return e.role === "assistant" && e.parts.filter((t) => t.type === "tool-invocation").every((t) => "result" in t.toolInvocation);
|
3760
3760
|
}
|
3761
3761
|
function tu({
|
@@ -3788,10 +3788,10 @@ var dr = { exports: {} }, Kr = {};
|
|
3788
3788
|
* This source code is licensed under the MIT license found in the
|
3789
3789
|
* LICENSE file in the root directory of this source tree.
|
3790
3790
|
*/
|
3791
|
-
var
|
3791
|
+
var Xn;
|
3792
3792
|
function ru() {
|
3793
|
-
if (
|
3794
|
-
|
3793
|
+
if (Xn) return Kr;
|
3794
|
+
Xn = 1;
|
3795
3795
|
var e = U;
|
3796
3796
|
function t(u, m) {
|
3797
3797
|
return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
|
@@ -3839,9 +3839,9 @@ var Qr = {};
|
|
3839
3839
|
* This source code is licensed under the MIT license found in the
|
3840
3840
|
* LICENSE file in the root directory of this source tree.
|
3841
3841
|
*/
|
3842
|
-
var
|
3842
|
+
var Zn;
|
3843
3843
|
function au() {
|
3844
|
-
return
|
3844
|
+
return Zn || (Zn = 1, process.env.NODE_ENV !== "production" && function() {
|
3845
3845
|
function e(h, g) {
|
3846
3846
|
return h === g && (h !== 0 || 1 / h === 1 / g) || h !== h && g !== g;
|
3847
3847
|
}
|
@@ -3892,14 +3892,14 @@ function au() {
|
|
3892
3892
|
Qr.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
3893
3893
|
}()), Qr;
|
3894
3894
|
}
|
3895
|
-
var
|
3895
|
+
var eo;
|
3896
3896
|
function nu() {
|
3897
|
-
return
|
3897
|
+
return eo || (eo = 1, process.env.NODE_ENV === "production" ? dr.exports = /* @__PURE__ */ ru() : dr.exports = /* @__PURE__ */ au()), dr.exports;
|
3898
3898
|
}
|
3899
3899
|
var ou = /* @__PURE__ */ nu();
|
3900
|
-
const
|
3901
|
-
var
|
3902
|
-
function
|
3900
|
+
const Bs = 0, Ps = 1, zs = 2, to = 3;
|
3901
|
+
var ro = Object.prototype.hasOwnProperty;
|
3902
|
+
function $a(e, t) {
|
3903
3903
|
var r, a;
|
3904
3904
|
if (e === t) return !0;
|
3905
3905
|
if (e && t && (r = e.constructor) === t.constructor) {
|
@@ -3907,26 +3907,26 @@ function La(e, t) {
|
|
3907
3907
|
if (r === RegExp) return e.toString() === t.toString();
|
3908
3908
|
if (r === Array) {
|
3909
3909
|
if ((a = e.length) === t.length)
|
3910
|
-
for (; a-- &&
|
3910
|
+
for (; a-- && $a(e[a], t[a]); ) ;
|
3911
3911
|
return a === -1;
|
3912
3912
|
}
|
3913
3913
|
if (!r || typeof e == "object") {
|
3914
3914
|
a = 0;
|
3915
3915
|
for (r in e)
|
3916
|
-
if (
|
3916
|
+
if (ro.call(e, r) && ++a && !ro.call(t, r) || !(r in t) || !$a(e[r], t[r])) return !1;
|
3917
3917
|
return Object.keys(t).length === a;
|
3918
3918
|
}
|
3919
3919
|
}
|
3920
3920
|
return e !== e && t !== t;
|
3921
3921
|
}
|
3922
|
-
const Je = /* @__PURE__ */ new WeakMap(),
|
3922
|
+
const Je = /* @__PURE__ */ new WeakMap(), tt = () => {
|
3923
3923
|
}, ve = (
|
3924
3924
|
/*#__NOINLINE__*/
|
3925
|
-
|
3926
|
-
),
|
3925
|
+
tt()
|
3926
|
+
), La = Object, q = (e) => e === ve, He = (e) => typeof e == "function", nt = (e, t) => ({
|
3927
3927
|
...e,
|
3928
3928
|
...t
|
3929
|
-
}),
|
3929
|
+
}), Vs = (e) => He(e.then), Xr = {}, ur = {}, ln = "undefined", rr = typeof window != ln, Ma = typeof document != ln, su = rr && "Deno" in window, iu = () => rr && typeof window.requestAnimationFrame != ln, Fs = (e, t) => {
|
3930
3930
|
const r = Je.get(e);
|
3931
3931
|
return [
|
3932
3932
|
// Getter
|
@@ -3944,26 +3944,26 @@ const Je = /* @__PURE__ */ new WeakMap(), rt = () => {
|
|
3944
3944
|
() => !q(t) && t in ur ? ur[t] : !q(t) && e.get(t) || Xr
|
3945
3945
|
];
|
3946
3946
|
};
|
3947
|
-
let
|
3948
|
-
const lu = () =>
|
3947
|
+
let Da = !0;
|
3948
|
+
const lu = () => Da, [Ba, Pa] = rr && window.addEventListener ? [
|
3949
3949
|
window.addEventListener.bind(window),
|
3950
3950
|
window.removeEventListener.bind(window)
|
3951
3951
|
] : [
|
3952
|
-
|
3953
|
-
|
3952
|
+
tt,
|
3953
|
+
tt
|
3954
3954
|
], cu = () => {
|
3955
|
-
const e =
|
3955
|
+
const e = Ma && document.visibilityState;
|
3956
3956
|
return q(e) || e !== "hidden";
|
3957
|
-
}, du = (e) => (
|
3958
|
-
|
3957
|
+
}, du = (e) => (Ma && document.addEventListener("visibilitychange", e), Ba("focus", e), () => {
|
3958
|
+
Ma && document.removeEventListener("visibilitychange", e), Pa("focus", e);
|
3959
3959
|
}), uu = (e) => {
|
3960
3960
|
const t = () => {
|
3961
|
-
|
3961
|
+
Da = !0, e();
|
3962
3962
|
}, r = () => {
|
3963
|
-
|
3963
|
+
Da = !1;
|
3964
3964
|
};
|
3965
|
-
return
|
3966
|
-
|
3965
|
+
return Ba("online", t), Ba("offline", r), () => {
|
3966
|
+
Pa("online", t), Pa("offline", r);
|
3967
3967
|
};
|
3968
3968
|
}, fu = {
|
3969
3969
|
isOnline: lu,
|
@@ -3971,32 +3971,32 @@ const lu = () => Ba, [Pa, za] = rr && window.addEventListener ? [
|
|
3971
3971
|
}, hu = {
|
3972
3972
|
initFocus: du,
|
3973
3973
|
initReconnect: uu
|
3974
|
-
},
|
3974
|
+
}, ao = !U.useId, jt = !rr || su, mu = (e) => iu() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Zr = jt ? B : ge, ea = typeof navigator < "u" && navigator.connection, no = !jt && ea && ([
|
3975
3975
|
"slow-2g",
|
3976
3976
|
"2g"
|
3977
|
-
].includes(ea.effectiveType) || ea.saveData), fr = /* @__PURE__ */ new WeakMap(), ta = (e, t) =>
|
3977
|
+
].includes(ea.effectiveType) || ea.saveData), fr = /* @__PURE__ */ new WeakMap(), ta = (e, t) => La.prototype.toString.call(e) === `[object ${t}]`;
|
3978
3978
|
let pu = 0;
|
3979
|
-
const
|
3979
|
+
const za = (e) => {
|
3980
3980
|
const t = typeof e, r = ta(e, "Date"), a = ta(e, "RegExp"), n = ta(e, "Object");
|
3981
3981
|
let o, s;
|
3982
|
-
if (
|
3982
|
+
if (La(e) === e && !r && !a) {
|
3983
3983
|
if (o = fr.get(e), o) return o;
|
3984
3984
|
if (o = ++pu + "~", fr.set(e, o), Array.isArray(e)) {
|
3985
3985
|
for (o = "@", s = 0; s < e.length; s++)
|
3986
|
-
o +=
|
3986
|
+
o += za(e[s]) + ",";
|
3987
3987
|
fr.set(e, o);
|
3988
3988
|
}
|
3989
3989
|
if (n) {
|
3990
3990
|
o = "#";
|
3991
|
-
const l =
|
3991
|
+
const l = La.keys(e).sort();
|
3992
3992
|
for (; !q(s = l.pop()); )
|
3993
|
-
q(e[s]) || (o += s + ":" +
|
3993
|
+
q(e[s]) || (o += s + ":" + za(e[s]) + ",");
|
3994
3994
|
fr.set(e, o);
|
3995
3995
|
}
|
3996
3996
|
} else
|
3997
3997
|
o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
|
3998
3998
|
return o;
|
3999
|
-
},
|
3999
|
+
}, cn = (e) => {
|
4000
4000
|
if (He(e))
|
4001
4001
|
try {
|
4002
4002
|
e = e();
|
@@ -4004,14 +4004,14 @@ const Va = (e) => {
|
|
4004
4004
|
e = "";
|
4005
4005
|
}
|
4006
4006
|
const t = e;
|
4007
|
-
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ?
|
4007
|
+
return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? za(e) : "", [
|
4008
4008
|
e,
|
4009
4009
|
t
|
4010
4010
|
];
|
4011
4011
|
};
|
4012
4012
|
let gu = 0;
|
4013
|
-
const
|
4014
|
-
async function
|
4013
|
+
const Va = () => ++gu;
|
4014
|
+
async function Us(...e) {
|
4015
4015
|
const [t, r, a, n] = e, o = nt({
|
4016
4016
|
populateCache: !0,
|
4017
4017
|
throwOnError: !0
|
@@ -4031,22 +4031,22 @@ async function Hs(...e) {
|
|
4031
4031
|
}
|
4032
4032
|
return u(r);
|
4033
4033
|
async function u(m) {
|
4034
|
-
const [h] =
|
4034
|
+
const [h] = cn(m);
|
4035
4035
|
if (!h) return;
|
4036
|
-
const [g, y] =
|
4036
|
+
const [g, y] = Fs(t, h), [b, v, w, T] = Je.get(t), N = () => {
|
4037
4037
|
const $ = b[h];
|
4038
|
-
return (He(o.revalidate) ? o.revalidate(g().data, m) : o.revalidate !== !1) && (delete w[h], delete T[h], $ && $[0]) ? $[0](
|
4038
|
+
return (He(o.revalidate) ? o.revalidate(g().data, m) : o.revalidate !== !1) && (delete w[h], delete T[h], $ && $[0]) ? $[0](zs).then(() => g().data) : g().data;
|
4039
4039
|
};
|
4040
4040
|
if (e.length < 3)
|
4041
4041
|
return N();
|
4042
4042
|
let E = a, _;
|
4043
|
-
const x =
|
4043
|
+
const x = Va();
|
4044
4044
|
v[h] = [
|
4045
4045
|
x,
|
4046
4046
|
0
|
4047
4047
|
];
|
4048
|
-
const k = !q(i), I = g(),
|
4049
|
-
if (k && (i = He(i) ? i(A,
|
4048
|
+
const k = !q(i), I = g(), C = I.data, S = I._c, A = q(S) ? C : S;
|
4049
|
+
if (k && (i = He(i) ? i(A, C) : i, y({
|
4050
4050
|
data: i,
|
4051
4051
|
_c: A
|
4052
4052
|
})), He(E))
|
@@ -4055,7 +4055,7 @@ async function Hs(...e) {
|
|
4055
4055
|
} catch ($) {
|
4056
4056
|
_ = $;
|
4057
4057
|
}
|
4058
|
-
if (E &&
|
4058
|
+
if (E && Vs(E))
|
4059
4059
|
if (E = await E.catch(($) => {
|
4060
4060
|
_ = $;
|
4061
4061
|
}), x !== v[h][0]) {
|
@@ -4079,7 +4079,7 @@ async function Hs(...e) {
|
|
4079
4079
|
error: ve,
|
4080
4080
|
_c: ve
|
4081
4081
|
});
|
4082
|
-
if (v[h][1] =
|
4082
|
+
if (v[h][1] = Va(), Promise.resolve(N()).then(() => {
|
4083
4083
|
y({
|
4084
4084
|
_c: ve
|
4085
4085
|
});
|
@@ -4090,13 +4090,13 @@ async function Hs(...e) {
|
|
4090
4090
|
return E;
|
4091
4091
|
}
|
4092
4092
|
}
|
4093
|
-
const
|
4093
|
+
const oo = (e, t) => {
|
4094
4094
|
for (const r in e)
|
4095
4095
|
e[r][0] && e[r][0](t);
|
4096
4096
|
}, yu = (e, t) => {
|
4097
4097
|
if (!Je.has(e)) {
|
4098
|
-
const r = nt(hu, t), a = {}, n =
|
4099
|
-
let o =
|
4098
|
+
const r = nt(hu, t), a = {}, n = Us.bind(ve, e);
|
4099
|
+
let o = tt;
|
4100
4100
|
const s = {}, l = (f, u) => {
|
4101
4101
|
const m = s[f] || [];
|
4102
4102
|
return s[f] = m, m.push(u), () => m.splice(m.indexOf(u), 1);
|
@@ -4116,7 +4116,7 @@ const io = (e, t) => {
|
|
4116
4116
|
i,
|
4117
4117
|
l
|
4118
4118
|
]), !jt)) {
|
4119
|
-
const f = r.initFocus(setTimeout.bind(ve,
|
4119
|
+
const f = r.initFocus(setTimeout.bind(ve, oo.bind(ve, a, Bs))), u = r.initReconnect(setTimeout.bind(ve, oo.bind(ve, a, Ps)));
|
4120
4120
|
o = () => {
|
4121
4121
|
f && f(), u && u(), Je.delete(e);
|
4122
4122
|
};
|
@@ -4136,28 +4136,28 @@ const io = (e, t) => {
|
|
4136
4136
|
}, bu = (e, t, r, a, n) => {
|
4137
4137
|
const o = r.errorRetryCount, s = n.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
4138
4138
|
!q(o) && s > o || setTimeout(a, l, n);
|
4139
|
-
}, vu =
|
4139
|
+
}, vu = $a, [Hs, _u] = yu(/* @__PURE__ */ new Map()), wu = nt(
|
4140
4140
|
{
|
4141
4141
|
// events
|
4142
|
-
onLoadingSlow:
|
4143
|
-
onSuccess:
|
4144
|
-
onError:
|
4142
|
+
onLoadingSlow: tt,
|
4143
|
+
onSuccess: tt,
|
4144
|
+
onError: tt,
|
4145
4145
|
onErrorRetry: bu,
|
4146
|
-
onDiscarded:
|
4146
|
+
onDiscarded: tt,
|
4147
4147
|
// switches
|
4148
4148
|
revalidateOnFocus: !0,
|
4149
4149
|
revalidateOnReconnect: !0,
|
4150
4150
|
revalidateIfStale: !0,
|
4151
4151
|
shouldRetryOnError: !0,
|
4152
4152
|
// timeouts
|
4153
|
-
errorRetryInterval:
|
4153
|
+
errorRetryInterval: no ? 1e4 : 5e3,
|
4154
4154
|
focusThrottleInterval: 5 * 1e3,
|
4155
4155
|
dedupingInterval: 2 * 1e3,
|
4156
|
-
loadingTimeout:
|
4156
|
+
loadingTimeout: no ? 5e3 : 3e3,
|
4157
4157
|
// providers
|
4158
4158
|
compare: vu,
|
4159
4159
|
isPaused: () => !1,
|
4160
|
-
cache:
|
4160
|
+
cache: Hs,
|
4161
4161
|
mutate: _u,
|
4162
4162
|
fallback: {}
|
4163
4163
|
},
|
@@ -4170,8 +4170,8 @@ const io = (e, t) => {
|
|
4170
4170
|
a && o && (r.use = a.concat(o)), n && s && (r.fallback = nt(n, s));
|
4171
4171
|
}
|
4172
4172
|
return r;
|
4173
|
-
}, xu =
|
4174
|
-
|
4173
|
+
}, xu = Wo({}), Tu = "$inf$", Gs = rr && window.__SWR_DEVTOOLS_USE__, Eu = Gs ? window.__SWR_DEVTOOLS_USE__ : [], Iu = () => {
|
4174
|
+
Gs && (window.__SWR_DEVTOOLS_REACT__ = U);
|
4175
4175
|
}, Cu = (e) => He(e[1]) ? [
|
4176
4176
|
e[0],
|
4177
4177
|
e[1],
|
@@ -4181,7 +4181,7 @@ const io = (e, t) => {
|
|
4181
4181
|
null,
|
4182
4182
|
(e[1] === null ? e[2] : e[1]) || {}
|
4183
4183
|
], Su = () => nt(wu, X(xu)), Nu = (e) => (t, r, a) => e(t, r && ((...o) => {
|
4184
|
-
const [s] =
|
4184
|
+
const [s] = cn(t), [, , , l] = Je.get(Hs);
|
4185
4185
|
if (s.startsWith(Tu))
|
4186
4186
|
return r(...o);
|
4187
4187
|
const i = l[s];
|
@@ -4223,7 +4223,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4223
4223
|
}), aa = {
|
4224
4224
|
dedupe: !0
|
4225
4225
|
}, $u = (e, t, r) => {
|
4226
|
-
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: m } = r, [h, g, y, b] = Je.get(a), [v, w] =
|
4226
|
+
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: l, revalidateIfStale: i, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: u, keepPreviousData: m } = r, [h, g, y, b] = Je.get(a), [v, w] = cn(e), T = L(!1), N = L(!1), E = L(v), _ = L(t), x = L(r), k = () => x.current, I = () => k().isVisible() && k().isOnline(), [C, S, A, $] = Fs(a, v), D = L({}).current, V = q(s) ? q(r.fallback) ? ve : r.fallback[v] : s, M = (P, z) => {
|
4227
4227
|
for (const ee in D) {
|
4228
4228
|
const K = ee;
|
4229
4229
|
if (K === "data") {
|
@@ -4241,11 +4241,11 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4241
4241
|
isLoading: !0,
|
4242
4242
|
...Re
|
4243
4243
|
} : Re;
|
4244
|
-
}, ee =
|
4244
|
+
}, ee = C(), K = $(), ie = z(ee), pe = ee === K ? ie : z(K);
|
4245
4245
|
let ae = ie;
|
4246
4246
|
return [
|
4247
4247
|
() => {
|
4248
|
-
const ue = z(
|
4248
|
+
const ue = z(C());
|
4249
4249
|
return M(ue, ae) ? (ae.data = ue.data, ae.isLoading = ue.isLoading, ae.isValidating = ue.isValidating, ae.error = ue.error, ae) : (ae = ue, ue);
|
4250
4250
|
},
|
4251
4251
|
() => pe
|
@@ -4262,30 +4262,30 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4262
4262
|
a,
|
4263
4263
|
v
|
4264
4264
|
]
|
4265
|
-
), W[0], W[1]), J = !T.current, me = h[v] && h[v].length > 0, De = G.data, Ie = q(De) ? V &&
|
4265
|
+
), W[0], W[1]), J = !T.current, me = h[v] && h[v].length > 0, De = G.data, Ie = q(De) ? V && Vs(V) ? ra(V) : V : De, Xe = G.error, it = L(Ie), qe = m ? q(De) ? q(it.current) ? Ie : it.current : De : Ie, Be = me && !q(Xe) ? !1 : J && !q(l) ? l : k().isPaused() ? !1 : o ? q(Ie) ? !1 : i : q(Ie) || i, we = !!(v && t && J && Be), Ce = q(G.isValidating) ? we : G.isValidating, Dt = q(G.isLoading) ? we : G.isLoading, Ye = Y(
|
4266
4266
|
async (P) => {
|
4267
4267
|
const z = _.current;
|
4268
4268
|
if (!v || !z || N.current || k().isPaused())
|
4269
4269
|
return !1;
|
4270
4270
|
let ee, K, ie = !0;
|
4271
|
-
const pe = P || {}, ae = !y[v] || !pe.dedupe, ue = () =>
|
4271
|
+
const pe = P || {}, ae = !y[v] || !pe.dedupe, ue = () => ao ? !N.current && v === E.current && T.current : v === E.current, Re = {
|
4272
4272
|
isValidating: !1,
|
4273
4273
|
isLoading: !1
|
4274
4274
|
}, lr = () => {
|
4275
|
-
|
4275
|
+
S(Re);
|
4276
4276
|
}, Bt = () => {
|
4277
4277
|
const de = y[v];
|
4278
4278
|
de && de[1] === K && delete y[v];
|
4279
4279
|
}, bt = {
|
4280
4280
|
isValidating: !0
|
4281
4281
|
};
|
4282
|
-
q(
|
4282
|
+
q(C().data) && (bt.isLoading = !0);
|
4283
4283
|
try {
|
4284
|
-
if (ae && (
|
4284
|
+
if (ae && (S(bt), r.loadingTimeout && q(C().data) && setTimeout(() => {
|
4285
4285
|
ie && ue() && k().onLoadingSlow(v, r);
|
4286
4286
|
}, r.loadingTimeout), y[v] = [
|
4287
4287
|
z(w),
|
4288
|
-
|
4288
|
+
Va()
|
4289
4289
|
]), [ee, K] = y[v], ee = await ee, ae && setTimeout(Bt, r.dedupingInterval), !y[v] || y[v][1] !== K)
|
4290
4290
|
return ae && ue() && k().onDiscarded(v), !1;
|
4291
4291
|
Re.error = ve;
|
@@ -4295,14 +4295,14 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4295
4295
|
K <= de[1] || // case 3
|
4296
4296
|
de[1] === 0))
|
4297
4297
|
return lr(), ae && ue() && k().onDiscarded(v), !1;
|
4298
|
-
const ke =
|
4298
|
+
const ke = C().data;
|
4299
4299
|
Re.data = n(ke, ee) ? ke : ee, ae && ue() && k().onSuccess(ee, v, r);
|
4300
4300
|
} catch (de) {
|
4301
4301
|
Bt();
|
4302
4302
|
const ke = k(), { shouldRetryOnError: vt } = ke;
|
4303
4303
|
ke.isPaused() || (Re.error = de, ae && ue() && (ke.onError(de, v, ke), (vt === !0 || He(vt) && vt(de)) && (!k().revalidateOnFocus || !k().revalidateOnReconnect || I()) && ke.onErrorRetry(de, v, ke, (cr) => {
|
4304
4304
|
const _t = h[v];
|
4305
|
-
_t && _t[0] && _t[0](
|
4305
|
+
_t && _t[0] && _t[0](to, cr);
|
4306
4306
|
}, {
|
4307
4307
|
retryCount: (pe.retryCount || 0) + 1,
|
4308
4308
|
dedupe: !0
|
@@ -4327,7 +4327,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4327
4327
|
]
|
4328
4328
|
), H = Y(
|
4329
4329
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
4330
|
-
(...P) =>
|
4330
|
+
(...P) => Us(a, E.current, ...P),
|
4331
4331
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
4332
4332
|
[]
|
4333
4333
|
);
|
@@ -4338,19 +4338,19 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4338
4338
|
const P = Ye.bind(ve, aa);
|
4339
4339
|
let z = 0;
|
4340
4340
|
const K = Ou(v, h, (ie, pe = {}) => {
|
4341
|
-
if (ie ==
|
4341
|
+
if (ie == Bs) {
|
4342
4342
|
const ae = Date.now();
|
4343
4343
|
k().revalidateOnFocus && ae > z && I() && (z = ae + k().focusThrottleInterval, P());
|
4344
|
-
} else if (ie ==
|
4344
|
+
} else if (ie == Ps)
|
4345
4345
|
k().revalidateOnReconnect && I() && P();
|
4346
4346
|
else {
|
4347
|
-
if (ie ==
|
4347
|
+
if (ie == zs)
|
4348
4348
|
return Ye();
|
4349
|
-
if (ie ==
|
4349
|
+
if (ie == to)
|
4350
4350
|
return Ye(pe);
|
4351
4351
|
}
|
4352
4352
|
});
|
4353
|
-
return N.current = !1, E.current = v, T.current = !0,
|
4353
|
+
return N.current = !1, E.current = v, T.current = !0, S({
|
4354
4354
|
_k: w
|
4355
4355
|
}), Be && (q(Ie) || jt ? P() : mu(P)), () => {
|
4356
4356
|
N.current = !0, K();
|
@@ -4360,11 +4360,11 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4360
4360
|
]), Zr(() => {
|
4361
4361
|
let P;
|
4362
4362
|
function z() {
|
4363
|
-
const K = He(d) ? d(
|
4363
|
+
const K = He(d) ? d(C().data) : d;
|
4364
4364
|
K && P !== -1 && (P = setTimeout(ee, K));
|
4365
4365
|
}
|
4366
4366
|
function ee() {
|
4367
|
-
!
|
4367
|
+
!C().error && (f || k().isVisible()) && (u || k().isOnline()) ? Ye(aa).then(z) : z();
|
4368
4368
|
}
|
4369
4369
|
return z(), () => {
|
4370
4370
|
P && (clearTimeout(P), P = -1);
|
@@ -4375,7 +4375,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4375
4375
|
u,
|
4376
4376
|
v
|
4377
4377
|
]), dl(qe), o && q(Ie) && v) {
|
4378
|
-
if (!
|
4378
|
+
if (!ao && jt)
|
4379
4379
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
4380
4380
|
_.current = t, x.current = r, N.current = !1;
|
4381
4381
|
const P = b[v];
|
@@ -4383,11 +4383,11 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4383
4383
|
const z = H(P);
|
4384
4384
|
ra(z);
|
4385
4385
|
}
|
4386
|
-
if (q(
|
4386
|
+
if (q(Xe)) {
|
4387
4387
|
const z = Ye(aa);
|
4388
4388
|
q(qe) || (z.status = "fulfilled", z.value = !0), ra(z);
|
4389
4389
|
} else
|
4390
|
-
throw
|
4390
|
+
throw Xe;
|
4391
4391
|
}
|
4392
4392
|
return {
|
4393
4393
|
mutate: H,
|
@@ -4395,7 +4395,7 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4395
4395
|
return D.data = !0, qe;
|
4396
4396
|
},
|
4397
4397
|
get error() {
|
4398
|
-
return D.error = !0,
|
4398
|
+
return D.error = !0, Xe;
|
4399
4399
|
},
|
4400
4400
|
get isValidating() {
|
4401
4401
|
return D.isValidating = !0, Ce;
|
@@ -4405,10 +4405,10 @@ const ra = U.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
4405
4405
|
}
|
4406
4406
|
};
|
4407
4407
|
}, hr = Au($u);
|
4408
|
-
var na,
|
4408
|
+
var na, so;
|
4409
4409
|
function Lu() {
|
4410
|
-
if (
|
4411
|
-
|
4410
|
+
if (so) return na;
|
4411
|
+
so = 1;
|
4412
4412
|
function e(t, r) {
|
4413
4413
|
if (typeof t != "function")
|
4414
4414
|
throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof t}\`.`);
|
@@ -4424,14 +4424,14 @@ function Lu() {
|
|
4424
4424
|
return na = e, na;
|
4425
4425
|
}
|
4426
4426
|
var Mu = /* @__PURE__ */ Lu();
|
4427
|
-
const Du = /* @__PURE__ */
|
4428
|
-
function
|
4427
|
+
const Du = /* @__PURE__ */ Ls(Mu);
|
4428
|
+
function io(e, t) {
|
4429
4429
|
return t != null ? Du(e, t) : e;
|
4430
4430
|
}
|
4431
4431
|
function Bu(e) {
|
4432
4432
|
const [t, r] = F(e);
|
4433
4433
|
return B(() => {
|
4434
|
-
|
4434
|
+
Oa(e, t) || r(e);
|
4435
4435
|
}, [e, t]), t;
|
4436
4436
|
}
|
4437
4437
|
function Pu({
|
@@ -4450,7 +4450,7 @@ function Pu({
|
|
4450
4450
|
credentials: m,
|
4451
4451
|
headers: h,
|
4452
4452
|
body: g,
|
4453
|
-
generateId: y =
|
4453
|
+
generateId: y = on,
|
4454
4454
|
fetch: b,
|
4455
4455
|
keepLastMessageOnError: v = !0,
|
4456
4456
|
experimental_throttle: w
|
@@ -4462,14 +4462,14 @@ function Pu({
|
|
4462
4462
|
[E, "messages"],
|
4463
4463
|
null,
|
4464
4464
|
{ fallbackData: x }
|
4465
|
-
),
|
4465
|
+
), C = L(k || []);
|
4466
4466
|
B(() => {
|
4467
|
-
|
4467
|
+
C.current = k || [];
|
4468
4468
|
}, [k]);
|
4469
|
-
const { data:
|
4469
|
+
const { data: S, mutate: A } = hr([E, "streamData"], null), $ = L(S);
|
4470
4470
|
B(() => {
|
4471
|
-
$.current =
|
4472
|
-
}, [
|
4471
|
+
$.current = S;
|
4472
|
+
}, [S]);
|
4473
4473
|
const { data: D = "ready", mutate: V } = hr([E, "status"], null), { data: M = void 0, mutate: W } = hr([E, "error"], null), G = L(null), J = L({
|
4474
4474
|
credentials: m,
|
4475
4475
|
headers: h,
|
@@ -4486,16 +4486,16 @@ function Pu({
|
|
4486
4486
|
async (H) => {
|
4487
4487
|
var se, P;
|
4488
4488
|
V("submitted"), W(void 0);
|
4489
|
-
const z = Jr(H.messages), ee = z.length, K =
|
4489
|
+
const z = Jr(H.messages), ee = z.length, K = Aa(
|
4490
4490
|
(se = z[z.length - 1]) == null ? void 0 : se.toolInvocations
|
4491
4491
|
);
|
4492
4492
|
try {
|
4493
4493
|
const pe = new AbortController();
|
4494
4494
|
G.current = pe;
|
4495
|
-
const ae =
|
4495
|
+
const ae = io(I, w), ue = io(
|
4496
4496
|
A,
|
4497
4497
|
w
|
4498
|
-
), Re =
|
4498
|
+
), Re = C.current;
|
4499
4499
|
ae(z, !1);
|
4500
4500
|
const lr = n ? z : z.map(
|
4501
4501
|
({
|
@@ -4505,7 +4505,7 @@ function Pu({
|
|
4505
4505
|
data: vt,
|
4506
4506
|
annotations: cr,
|
4507
4507
|
toolInvocations: _t,
|
4508
|
-
parts:
|
4508
|
+
parts: kn
|
4509
4509
|
}) => ({
|
4510
4510
|
role: bt,
|
4511
4511
|
content: de,
|
@@ -4515,7 +4515,7 @@ function Pu({
|
|
4515
4515
|
...vt !== void 0 && { data: vt },
|
4516
4516
|
...cr !== void 0 && { annotations: cr },
|
4517
4517
|
..._t !== void 0 && { toolInvocations: _t },
|
4518
|
-
...
|
4518
|
+
...kn !== void 0 && { parts: kn }
|
4519
4519
|
})
|
4520
4520
|
), Bt = $.current;
|
4521
4521
|
await Xd({
|
@@ -4566,7 +4566,7 @@ function Pu({
|
|
4566
4566
|
return G.current = null, V("ready"), null;
|
4567
4567
|
u && pe instanceof Error && u(pe), W(pe), V("error");
|
4568
4568
|
}
|
4569
|
-
const ie =
|
4569
|
+
const ie = C.current;
|
4570
4570
|
Zd({
|
4571
4571
|
originalMaxToolInvocationStep: K,
|
4572
4572
|
originalMessageCount: ee,
|
@@ -4590,7 +4590,7 @@ function Pu({
|
|
4590
4590
|
s,
|
4591
4591
|
o,
|
4592
4592
|
l,
|
4593
|
-
|
4593
|
+
C,
|
4594
4594
|
G,
|
4595
4595
|
y,
|
4596
4596
|
b,
|
@@ -4606,21 +4606,21 @@ function Pu({
|
|
4606
4606
|
experimental_attachments: ee
|
4607
4607
|
} = {}) => {
|
4608
4608
|
var K, ie;
|
4609
|
-
const pe = await
|
4609
|
+
const pe = await Qn(
|
4610
4610
|
ee
|
4611
|
-
), ae =
|
4611
|
+
), ae = C.current.concat({
|
4612
4612
|
...H,
|
4613
4613
|
id: (K = H.id) != null ? K : y(),
|
4614
4614
|
createdAt: (ie = H.createdAt) != null ? ie : /* @__PURE__ */ new Date(),
|
4615
4615
|
experimental_attachments: pe.length > 0 ? pe : void 0,
|
4616
|
-
parts:
|
4616
|
+
parts: Ms(H)
|
4617
4617
|
});
|
4618
4618
|
return me({ messages: ae, headers: P, body: z, data: se });
|
4619
4619
|
},
|
4620
4620
|
[me, y]
|
4621
4621
|
), Ie = Y(
|
4622
4622
|
async ({ data: H, headers: se, body: P } = {}) => {
|
4623
|
-
const z =
|
4623
|
+
const z = C.current;
|
4624
4624
|
if (z.length === 0)
|
4625
4625
|
return null;
|
4626
4626
|
const ee = z[z.length - 1];
|
@@ -4632,13 +4632,13 @@ function Pu({
|
|
4632
4632
|
});
|
4633
4633
|
},
|
4634
4634
|
[me]
|
4635
|
-
),
|
4635
|
+
), Xe = Y(() => {
|
4636
4636
|
G.current && (G.current.abort(), G.current = null);
|
4637
4637
|
}, []), it = Y(
|
4638
4638
|
(H) => {
|
4639
|
-
typeof H == "function" && (H = H(
|
4639
|
+
typeof H == "function" && (H = H(C.current));
|
4640
4640
|
const se = Jr(H);
|
4641
|
-
I(se, !1),
|
4641
|
+
I(se, !1), C.current = se;
|
4642
4642
|
},
|
4643
4643
|
[I]
|
4644
4644
|
), qe = Y(
|
@@ -4655,10 +4655,10 @@ function Pu({
|
|
4655
4655
|
...J.current,
|
4656
4656
|
...P
|
4657
4657
|
});
|
4658
|
-
const ee = await
|
4658
|
+
const ee = await Qn(
|
4659
4659
|
se.experimental_attachments
|
4660
4660
|
), ie = {
|
4661
|
-
messages:
|
4661
|
+
messages: C.current.concat({
|
4662
4662
|
id: y(),
|
4663
4663
|
createdAt: /* @__PURE__ */ new Date(),
|
4664
4664
|
role: "user",
|
@@ -4677,14 +4677,14 @@ function Pu({
|
|
4677
4677
|
we(H.target.value);
|
4678
4678
|
}, Ye = Y(
|
4679
4679
|
({ toolCallId: H, result: se }) => {
|
4680
|
-
const P =
|
4680
|
+
const P = C.current;
|
4681
4681
|
tu({
|
4682
4682
|
messages: P,
|
4683
4683
|
toolCallId: H,
|
4684
4684
|
toolResult: se
|
4685
4685
|
}), I(P, !1);
|
4686
4686
|
const z = P[P.length - 1];
|
4687
|
-
|
4687
|
+
Ds(z) && me({ messages: P });
|
4688
4688
|
},
|
4689
4689
|
[I, me]
|
4690
4690
|
);
|
@@ -4692,12 +4692,12 @@ function Pu({
|
|
4692
4692
|
messages: k ?? [],
|
4693
4693
|
id: N,
|
4694
4694
|
setMessages: it,
|
4695
|
-
data:
|
4695
|
+
data: S,
|
4696
4696
|
setData: qe,
|
4697
4697
|
error: M,
|
4698
4698
|
append: De,
|
4699
4699
|
reload: Ie,
|
4700
|
-
stop:
|
4700
|
+
stop: Xe,
|
4701
4701
|
input: Be,
|
4702
4702
|
setInput: we,
|
4703
4703
|
handleInputChange: Dt,
|
@@ -4707,14 +4707,14 @@ function Pu({
|
|
4707
4707
|
addToolResult: Ye
|
4708
4708
|
};
|
4709
4709
|
}
|
4710
|
-
const
|
4710
|
+
const lo = () => ({
|
4711
4711
|
onFinish: /* @__PURE__ */ new Set(),
|
4712
4712
|
onError: /* @__PURE__ */ new Set(),
|
4713
4713
|
onResponse: /* @__PURE__ */ new Set(),
|
4714
4714
|
onToolCall: /* @__PURE__ */ new Set()
|
4715
|
-
}),
|
4715
|
+
}), js = Wo(null);
|
4716
4716
|
function yt(e = {}) {
|
4717
|
-
const t = X(
|
4717
|
+
const t = X(js);
|
4718
4718
|
if (!t)
|
4719
4719
|
throw new Error("useAiChat must be used within a AiChatProvider");
|
4720
4720
|
const r = L(e);
|
@@ -4731,9 +4731,9 @@ function zu({
|
|
4731
4731
|
children: e,
|
4732
4732
|
value: t
|
4733
4733
|
}) {
|
4734
|
-
const r = L(
|
4734
|
+
const r = L(lo());
|
4735
4735
|
B(() => {
|
4736
|
-
r.current =
|
4736
|
+
r.current = lo();
|
4737
4737
|
}, [t]);
|
4738
4738
|
const a = Y(
|
4739
4739
|
(...i) => {
|
@@ -4767,7 +4767,7 @@ function zu({
|
|
4767
4767
|
onToolCall: s
|
4768
4768
|
});
|
4769
4769
|
return /* @__PURE__ */ c(
|
4770
|
-
|
4770
|
+
js.Provider,
|
4771
4771
|
{
|
4772
4772
|
value: {
|
4773
4773
|
chat: l,
|
@@ -4781,13 +4781,13 @@ const Vu = "z-20", Fu = "z-10", $r = U.createContext({
|
|
4781
4781
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
4782
4782
|
dispatch: () => {
|
4783
4783
|
}
|
4784
|
-
}),
|
4784
|
+
}), dn = U.createContext({
|
4785
4785
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
4786
4786
|
dispatch: () => {
|
4787
4787
|
}
|
4788
4788
|
}), ye = U.createContext({
|
4789
4789
|
state: {
|
4790
|
-
provider:
|
4790
|
+
provider: Bi,
|
4791
4791
|
privateChat: !1,
|
4792
4792
|
reasoning: !1,
|
4793
4793
|
streaming: !1,
|
@@ -4803,9 +4803,9 @@ const Vu = "z-20", Fu = "z-10", $r = U.createContext({
|
|
4803
4803
|
},
|
4804
4804
|
setInitialMessages: () => {
|
4805
4805
|
}
|
4806
|
-
}),
|
4806
|
+
}), un = U.createContext({
|
4807
4807
|
state: {
|
4808
|
-
footerPosition:
|
4808
|
+
footerPosition: Sa,
|
4809
4809
|
footerHeight: 0,
|
4810
4810
|
footerOffset: 0
|
4811
4811
|
},
|
@@ -4837,7 +4837,7 @@ const Uu = "av-tooltip", Hu = "av-tooltip-arrow", Wt = Math.min, xt = Math.max,
|
|
4837
4837
|
start: "end",
|
4838
4838
|
end: "start"
|
4839
4839
|
};
|
4840
|
-
function
|
4840
|
+
function Fa(e, t, r) {
|
4841
4841
|
return xt(e, Wt(t, r));
|
4842
4842
|
}
|
4843
4843
|
function ar(e, t) {
|
@@ -4849,29 +4849,29 @@ function mt(e) {
|
|
4849
4849
|
function nr(e) {
|
4850
4850
|
return e.split("-")[1];
|
4851
4851
|
}
|
4852
|
-
function
|
4852
|
+
function Ws(e) {
|
4853
4853
|
return e === "x" ? "y" : "x";
|
4854
4854
|
}
|
4855
|
-
function
|
4855
|
+
function fn(e) {
|
4856
4856
|
return e === "y" ? "height" : "width";
|
4857
4857
|
}
|
4858
4858
|
function At(e) {
|
4859
4859
|
return ["top", "bottom"].includes(mt(e)) ? "y" : "x";
|
4860
4860
|
}
|
4861
|
-
function
|
4862
|
-
return
|
4861
|
+
function hn(e) {
|
4862
|
+
return Ws(At(e));
|
4863
4863
|
}
|
4864
4864
|
function Wu(e, t, r) {
|
4865
4865
|
r === void 0 && (r = !1);
|
4866
|
-
const a = nr(e), n =
|
4866
|
+
const a = nr(e), n = hn(e), o = fn(n);
|
4867
4867
|
let s = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
4868
4868
|
return t.reference[o] > t.floating[o] && (s = Ir(s)), [s, Ir(s)];
|
4869
4869
|
}
|
4870
4870
|
function qu(e) {
|
4871
4871
|
const t = Ir(e);
|
4872
|
-
return [
|
4872
|
+
return [Ua(e), t, Ua(t)];
|
4873
4873
|
}
|
4874
|
-
function
|
4874
|
+
function Ua(e) {
|
4875
4875
|
return e.replace(/start|end/g, (t) => ju[t]);
|
4876
4876
|
}
|
4877
4877
|
function Yu(e, t, r) {
|
@@ -4890,7 +4890,7 @@ function Yu(e, t, r) {
|
|
4890
4890
|
function Ju(e, t, r, a) {
|
4891
4891
|
const n = nr(e);
|
4892
4892
|
let o = Yu(mt(e), r === "start", a);
|
4893
|
-
return n && (o = o.map((s) => s + "-" + n), t && (o = o.concat(o.map(
|
4893
|
+
return n && (o = o.map((s) => s + "-" + n), t && (o = o.concat(o.map(Ua)))), o;
|
4894
4894
|
}
|
4895
4895
|
function Ir(e) {
|
4896
4896
|
return e.replace(/left|right|bottom|top/g, (t) => Gu[t]);
|
@@ -4904,7 +4904,7 @@ function Ku(e) {
|
|
4904
4904
|
...e
|
4905
4905
|
};
|
4906
4906
|
}
|
4907
|
-
function
|
4907
|
+
function qs(e) {
|
4908
4908
|
return typeof e != "number" ? Ku(e) : {
|
4909
4909
|
top: e,
|
4910
4910
|
right: e,
|
@@ -4930,12 +4930,12 @@ function Cr(e) {
|
|
4930
4930
|
y: r
|
4931
4931
|
};
|
4932
4932
|
}
|
4933
|
-
function
|
4933
|
+
function co(e, t, r) {
|
4934
4934
|
let {
|
4935
4935
|
reference: a,
|
4936
4936
|
floating: n
|
4937
4937
|
} = e;
|
4938
|
-
const o = At(t), s =
|
4938
|
+
const o = At(t), s = hn(t), l = fn(s), i = mt(t), d = o === "y", f = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, m = a[l] / 2 - n[l] / 2;
|
4939
4939
|
let h;
|
4940
4940
|
switch (i) {
|
4941
4941
|
case "top":
|
@@ -4992,7 +4992,7 @@ const Qu = async (e, t, r) => {
|
|
4992
4992
|
}), {
|
4993
4993
|
x: f,
|
4994
4994
|
y: u
|
4995
|
-
} =
|
4995
|
+
} = co(d, a, i), m = a, h = {}, g = 0;
|
4996
4996
|
for (let y = 0; y < l.length; y++) {
|
4997
4997
|
const {
|
4998
4998
|
name: b,
|
@@ -5029,7 +5029,7 @@ const Qu = async (e, t, r) => {
|
|
5029
5029
|
}) : E.rects), {
|
5030
5030
|
x: f,
|
5031
5031
|
y: u
|
5032
|
-
} =
|
5032
|
+
} = co(d, m, i)), y = -1);
|
5033
5033
|
}
|
5034
5034
|
return {
|
5035
5035
|
x: f,
|
@@ -5039,7 +5039,7 @@ const Qu = async (e, t, r) => {
|
|
5039
5039
|
middlewareData: h
|
5040
5040
|
};
|
5041
5041
|
};
|
5042
|
-
async function
|
5042
|
+
async function Ys(e, t) {
|
5043
5043
|
var r;
|
5044
5044
|
t === void 0 && (t = {});
|
5045
5045
|
const {
|
@@ -5055,7 +5055,7 @@ async function Js(e, t) {
|
|
5055
5055
|
elementContext: u = "floating",
|
5056
5056
|
altBoundary: m = !1,
|
5057
5057
|
padding: h = 0
|
5058
|
-
} = ar(t, e), g =
|
5058
|
+
} = ar(t, e), g = qs(h), y = l[m ? u === "floating" ? "reference" : "floating" : u], b = Cr(await o.getClippingRect({
|
5059
5059
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(y))) == null || r ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
5060
5060
|
boundary: d,
|
5061
5061
|
rootBoundary: f,
|
@@ -5102,13 +5102,13 @@ const Xu = (e) => ({
|
|
5102
5102
|
} = ar(e, t) || {};
|
5103
5103
|
if (d == null)
|
5104
5104
|
return {};
|
5105
|
-
const u =
|
5105
|
+
const u = qs(f), m = {
|
5106
5106
|
x: r,
|
5107
5107
|
y: a
|
5108
|
-
}, h =
|
5108
|
+
}, h = hn(n), g = fn(h), y = await s.getDimensions(d), b = h === "y", v = b ? "top" : "left", w = b ? "bottom" : "right", T = b ? "clientHeight" : "clientWidth", N = o.reference[g] + o.reference[h] - m[h] - o.floating[g], E = m[h] - o.reference[h], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
5109
5109
|
let x = _ ? _[T] : 0;
|
5110
5110
|
(!x || !await (s.isElement == null ? void 0 : s.isElement(_))) && (x = l.floating[T] || o.floating[g]);
|
5111
|
-
const k = N / 2 - E / 2, I = x / 2 - y[g] / 2 - 1,
|
5111
|
+
const k = N / 2 - E / 2, I = x / 2 - y[g] / 2 - 1, C = Wt(u[v], I), S = Wt(u[w], I), A = C, $ = x - y[g] - S, D = x / 2 - y[g] / 2 + k, V = Fa(A, D, $), M = !i.arrow && nr(n) != null && D !== V && o.reference[g] / 2 - (D < A ? C : S) - y[g] / 2 < 0, W = M ? D < A ? D - A : D - $ : 0;
|
5112
5112
|
return {
|
5113
5113
|
[h]: m[h] + W,
|
5114
5114
|
data: {
|
@@ -5147,34 +5147,34 @@ const Xu = (e) => ({
|
|
5147
5147
|
return {};
|
5148
5148
|
const v = mt(n), w = At(l), T = mt(l) === l, N = await (i.isRTL == null ? void 0 : i.isRTL(d.floating)), E = m || (T || !y ? [Ir(l)] : qu(l)), _ = g !== "none";
|
5149
5149
|
!m && _ && E.push(...Ju(l, y, g, N));
|
5150
|
-
const x = [l, ...E], k = await
|
5151
|
-
let
|
5150
|
+
const x = [l, ...E], k = await Ys(t, b), I = [];
|
5151
|
+
let C = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
5152
5152
|
if (f && I.push(k[v]), u) {
|
5153
5153
|
const D = Wu(n, s, N);
|
5154
5154
|
I.push(k[D[0]], k[D[1]]);
|
5155
5155
|
}
|
5156
|
-
if (
|
5156
|
+
if (C = [...C, {
|
5157
5157
|
placement: n,
|
5158
5158
|
overflows: I
|
5159
5159
|
}], !I.every((D) => D <= 0)) {
|
5160
|
-
var
|
5161
|
-
const D = (((
|
5160
|
+
var S, A;
|
5161
|
+
const D = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, V = x[D];
|
5162
5162
|
if (V)
|
5163
5163
|
return {
|
5164
5164
|
data: {
|
5165
5165
|
index: D,
|
5166
|
-
overflows:
|
5166
|
+
overflows: C
|
5167
5167
|
},
|
5168
5168
|
reset: {
|
5169
5169
|
placement: V
|
5170
5170
|
}
|
5171
5171
|
};
|
5172
|
-
let M = (A =
|
5172
|
+
let M = (A = C.filter((W) => W.overflows[0] <= 0).sort((W, G) => W.overflows[1] - G.overflows[1])[0]) == null ? void 0 : A.placement;
|
5173
5173
|
if (!M)
|
5174
5174
|
switch (h) {
|
5175
5175
|
case "bestFit": {
|
5176
5176
|
var $;
|
5177
|
-
const W = ($ =
|
5177
|
+
const W = ($ = C.filter((G) => {
|
5178
5178
|
if (_) {
|
5179
5179
|
const J = At(G.placement);
|
5180
5180
|
return J === w || // Create a bias to the `y` side axis due to horizontal
|
@@ -5278,15 +5278,15 @@ const tf = function(e) {
|
|
5278
5278
|
} = ar(e, t), d = {
|
5279
5279
|
x: r,
|
5280
5280
|
y: a
|
5281
|
-
}, f = await
|
5281
|
+
}, f = await Ys(t, i), u = At(mt(n)), m = Ws(u);
|
5282
5282
|
let h = d[m], g = d[u];
|
5283
5283
|
if (o) {
|
5284
5284
|
const b = m === "y" ? "top" : "left", v = m === "y" ? "bottom" : "right", w = h + f[b], T = h - f[v];
|
5285
|
-
h =
|
5285
|
+
h = Fa(w, h, T);
|
5286
5286
|
}
|
5287
5287
|
if (s) {
|
5288
5288
|
const b = u === "y" ? "top" : "left", v = u === "y" ? "bottom" : "right", w = g + f[b], T = g - f[v];
|
5289
|
-
g =
|
5289
|
+
g = Fa(w, g, T);
|
5290
5290
|
}
|
5291
5291
|
const y = l.fn({
|
5292
5292
|
...t,
|
@@ -5311,17 +5311,17 @@ function Lr() {
|
|
5311
5311
|
return typeof window < "u";
|
5312
5312
|
}
|
5313
5313
|
function Lt(e) {
|
5314
|
-
return
|
5314
|
+
return Js(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
5315
5315
|
}
|
5316
5316
|
function Te(e) {
|
5317
5317
|
var t;
|
5318
5318
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
5319
5319
|
}
|
5320
|
-
function
|
5320
|
+
function Qe(e) {
|
5321
5321
|
var t;
|
5322
|
-
return (t = (
|
5322
|
+
return (t = (Js(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
5323
5323
|
}
|
5324
|
-
function
|
5324
|
+
function Js(e) {
|
5325
5325
|
return Lr() ? e instanceof Node || e instanceof Te(e).Node : !1;
|
5326
5326
|
}
|
5327
5327
|
function Le(e) {
|
@@ -5330,7 +5330,7 @@ function Le(e) {
|
|
5330
5330
|
function We(e) {
|
5331
5331
|
return Lr() ? e instanceof HTMLElement || e instanceof Te(e).HTMLElement : !1;
|
5332
5332
|
}
|
5333
|
-
function
|
5333
|
+
function uo(e) {
|
5334
5334
|
return !Lr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Te(e).ShadowRoot;
|
5335
5335
|
}
|
5336
5336
|
function or(e) {
|
@@ -5354,14 +5354,14 @@ function Mr(e) {
|
|
5354
5354
|
}
|
5355
5355
|
});
|
5356
5356
|
}
|
5357
|
-
function
|
5358
|
-
const t =
|
5357
|
+
function mn(e) {
|
5358
|
+
const t = pn(), r = Le(e) ? Me(e) : e;
|
5359
5359
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
|
5360
5360
|
}
|
5361
5361
|
function nf(e) {
|
5362
5362
|
let t = ot(e);
|
5363
5363
|
for (; We(t) && !Ot(t); ) {
|
5364
|
-
if (
|
5364
|
+
if (mn(t))
|
5365
5365
|
return t;
|
5366
5366
|
if (Mr(t))
|
5367
5367
|
return null;
|
@@ -5369,7 +5369,7 @@ function nf(e) {
|
|
5369
5369
|
}
|
5370
5370
|
return null;
|
5371
5371
|
}
|
5372
|
-
function
|
5372
|
+
function pn() {
|
5373
5373
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
5374
5374
|
}
|
5375
5375
|
function Ot(e) {
|
@@ -5394,25 +5394,25 @@ function ot(e) {
|
|
5394
5394
|
// Step into the shadow DOM of the parent of a slotted node.
|
5395
5395
|
e.assignedSlot || // DOM Element detected.
|
5396
5396
|
e.parentNode || // ShadowRoot detected.
|
5397
|
-
|
5398
|
-
|
5397
|
+
uo(e) && e.host || // Fallback.
|
5398
|
+
Qe(e)
|
5399
5399
|
);
|
5400
|
-
return
|
5400
|
+
return uo(t) ? t.host : t;
|
5401
5401
|
}
|
5402
|
-
function
|
5402
|
+
function Ks(e) {
|
5403
5403
|
const t = ot(e);
|
5404
|
-
return Ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : We(t) && or(t) ? t :
|
5404
|
+
return Ot(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : We(t) && or(t) ? t : Ks(t);
|
5405
5405
|
}
|
5406
|
-
function
|
5406
|
+
function Qs(e, t, r) {
|
5407
5407
|
var a;
|
5408
5408
|
t === void 0 && (t = []);
|
5409
|
-
const n =
|
5410
|
-
return o ? t.concat(s, s.visualViewport || [], or(n) ? n : [], []) : t.concat(n,
|
5409
|
+
const n = Ks(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), s = Te(n);
|
5410
|
+
return o ? t.concat(s, s.visualViewport || [], or(n) ? n : [], []) : t.concat(n, Qs(n, []));
|
5411
5411
|
}
|
5412
|
-
function
|
5412
|
+
function fo(e) {
|
5413
5413
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
5414
5414
|
}
|
5415
|
-
function
|
5415
|
+
function Xs(e) {
|
5416
5416
|
const t = Me(e);
|
5417
5417
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
5418
5418
|
const n = We(e), o = n ? e.offsetWidth : r, s = n ? e.offsetHeight : a, l = Er(r) !== o || Er(a) !== s;
|
@@ -5422,18 +5422,18 @@ function Zs(e) {
|
|
5422
5422
|
$: l
|
5423
5423
|
};
|
5424
5424
|
}
|
5425
|
-
function
|
5425
|
+
function Zs(e) {
|
5426
5426
|
return Le(e) ? e : e.contextElement;
|
5427
5427
|
}
|
5428
5428
|
function Tt(e) {
|
5429
|
-
const t =
|
5429
|
+
const t = Zs(e);
|
5430
5430
|
if (!We(t))
|
5431
5431
|
return Ge(1);
|
5432
5432
|
const r = t.getBoundingClientRect(), {
|
5433
5433
|
width: a,
|
5434
5434
|
height: n,
|
5435
5435
|
$: o
|
5436
|
-
} =
|
5436
|
+
} = Xs(t);
|
5437
5437
|
let s = (o ? Er(r.width) : r.width) / a, l = (o ? Er(r.height) : r.height) / n;
|
5438
5438
|
return (!s || !Number.isFinite(s)) && (s = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
5439
5439
|
x: s,
|
@@ -5441,9 +5441,9 @@ function Tt(e) {
|
|
5441
5441
|
};
|
5442
5442
|
}
|
5443
5443
|
const of = /* @__PURE__ */ Ge(0);
|
5444
|
-
function
|
5444
|
+
function ei(e) {
|
5445
5445
|
const t = Te(e);
|
5446
|
-
return !
|
5446
|
+
return !pn() || !t.visualViewport ? of : {
|
5447
5447
|
x: t.visualViewport.offsetLeft,
|
5448
5448
|
y: t.visualViewport.offsetTop
|
5449
5449
|
};
|
@@ -5453,17 +5453,17 @@ function sf(e, t, r) {
|
|
5453
5453
|
}
|
5454
5454
|
function qt(e, t, r, a) {
|
5455
5455
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
5456
|
-
const n = e.getBoundingClientRect(), o =
|
5456
|
+
const n = e.getBoundingClientRect(), o = Zs(e);
|
5457
5457
|
let s = Ge(1);
|
5458
5458
|
t && (a ? Le(a) && (s = Tt(a)) : s = Tt(e));
|
5459
|
-
const l = sf(o, r, a) ?
|
5459
|
+
const l = sf(o, r, a) ? ei(o) : Ge(0);
|
5460
5460
|
let i = (n.left + l.x) / s.x, d = (n.top + l.y) / s.y, f = n.width / s.x, u = n.height / s.y;
|
5461
5461
|
if (o) {
|
5462
5462
|
const m = Te(o), h = a && Le(a) ? Te(a) : a;
|
5463
|
-
let g = m, y =
|
5463
|
+
let g = m, y = fo(g);
|
5464
5464
|
for (; y && a && h !== g; ) {
|
5465
5465
|
const b = Tt(y), v = y.getBoundingClientRect(), w = Me(y), T = v.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, N = v.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
|
5466
|
-
i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += T, d += N, g = Te(y), y =
|
5466
|
+
i *= b.x, d *= b.y, f *= b.x, u *= b.y, i += T, d += N, g = Te(y), y = fo(g);
|
5467
5467
|
}
|
5468
5468
|
}
|
5469
5469
|
return Cr({
|
@@ -5473,15 +5473,15 @@ function qt(e, t, r, a) {
|
|
5473
5473
|
y: d
|
5474
5474
|
});
|
5475
5475
|
}
|
5476
|
-
function
|
5476
|
+
function gn(e, t) {
|
5477
5477
|
const r = Dr(e).scrollLeft;
|
5478
|
-
return t ? t.left + r : qt(
|
5478
|
+
return t ? t.left + r : qt(Qe(e)).left + r;
|
5479
5479
|
}
|
5480
|
-
function
|
5480
|
+
function ti(e, t, r) {
|
5481
5481
|
r === void 0 && (r = !1);
|
5482
5482
|
const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
|
5483
5483
|
// RTL <body> scrollbar.
|
5484
|
-
|
5484
|
+
gn(e, a)
|
5485
5485
|
)), o = a.top + t.scrollTop;
|
5486
5486
|
return {
|
5487
5487
|
x: n,
|
@@ -5495,7 +5495,7 @@ function lf(e) {
|
|
5495
5495
|
offsetParent: a,
|
5496
5496
|
strategy: n
|
5497
5497
|
} = e;
|
5498
|
-
const o = n === "fixed", s =
|
5498
|
+
const o = n === "fixed", s = Qe(a), l = t ? Mr(t.floating) : !1;
|
5499
5499
|
if (a === s || l && o)
|
5500
5500
|
return r;
|
5501
5501
|
let i = {
|
@@ -5507,7 +5507,7 @@ function lf(e) {
|
|
5507
5507
|
const h = qt(a);
|
5508
5508
|
d = Tt(a), f.x = h.x + a.clientLeft, f.y = h.y + a.clientTop;
|
5509
5509
|
}
|
5510
|
-
const m = s && !u && !o ?
|
5510
|
+
const m = s && !u && !o ? ti(s, i, !0) : Ge(0);
|
5511
5511
|
return {
|
5512
5512
|
width: r.width * d.x,
|
5513
5513
|
height: r.height * d.y,
|
@@ -5519,8 +5519,8 @@ function cf(e) {
|
|
5519
5519
|
return Array.from(e.getClientRects());
|
5520
5520
|
}
|
5521
5521
|
function df(e) {
|
5522
|
-
const t =
|
5523
|
-
let s = -r.scrollLeft +
|
5522
|
+
const t = Qe(e), r = Dr(e), a = e.ownerDocument.body, n = xt(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = xt(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
5523
|
+
let s = -r.scrollLeft + gn(e);
|
5524
5524
|
const l = -r.scrollTop;
|
5525
5525
|
return Me(a).direction === "rtl" && (s += xt(t.clientWidth, a.clientWidth) - n), {
|
5526
5526
|
width: n,
|
@@ -5530,11 +5530,11 @@ function df(e) {
|
|
5530
5530
|
};
|
5531
5531
|
}
|
5532
5532
|
function uf(e, t) {
|
5533
|
-
const r = Te(e), a =
|
5533
|
+
const r = Te(e), a = Qe(e), n = r.visualViewport;
|
5534
5534
|
let o = a.clientWidth, s = a.clientHeight, l = 0, i = 0;
|
5535
5535
|
if (n) {
|
5536
5536
|
o = n.width, s = n.height;
|
5537
|
-
const d =
|
5537
|
+
const d = pn();
|
5538
5538
|
(!d || d && t === "fixed") && (l = n.offsetLeft, i = n.offsetTop);
|
5539
5539
|
}
|
5540
5540
|
return {
|
@@ -5553,16 +5553,16 @@ function ff(e, t) {
|
|
5553
5553
|
y: d
|
5554
5554
|
};
|
5555
5555
|
}
|
5556
|
-
function
|
5556
|
+
function ho(e, t, r) {
|
5557
5557
|
let a;
|
5558
5558
|
if (t === "viewport")
|
5559
5559
|
a = uf(e, r);
|
5560
5560
|
else if (t === "document")
|
5561
|
-
a = df(
|
5561
|
+
a = df(Qe(e));
|
5562
5562
|
else if (Le(t))
|
5563
5563
|
a = ff(t, r);
|
5564
5564
|
else {
|
5565
|
-
const n =
|
5565
|
+
const n = ei(e);
|
5566
5566
|
a = {
|
5567
5567
|
x: t.x - n.x,
|
5568
5568
|
y: t.y - n.y,
|
@@ -5572,20 +5572,20 @@ function po(e, t, r) {
|
|
5572
5572
|
}
|
5573
5573
|
return Cr(a);
|
5574
5574
|
}
|
5575
|
-
function
|
5575
|
+
function ri(e, t) {
|
5576
5576
|
const r = ot(e);
|
5577
|
-
return r === t || !Le(r) || Ot(r) ? !1 : Me(r).position === "fixed" ||
|
5577
|
+
return r === t || !Le(r) || Ot(r) ? !1 : Me(r).position === "fixed" || ri(r, t);
|
5578
5578
|
}
|
5579
5579
|
function hf(e, t) {
|
5580
5580
|
const r = t.get(e);
|
5581
5581
|
if (r)
|
5582
5582
|
return r;
|
5583
|
-
let a =
|
5583
|
+
let a = Qs(e, []).filter((l) => Le(l) && Lt(l) !== "body"), n = null;
|
5584
5584
|
const o = Me(e).position === "fixed";
|
5585
5585
|
let s = o ? ot(e) : e;
|
5586
5586
|
for (; Le(s) && !Ot(s); ) {
|
5587
|
-
const l = Me(s), i =
|
5588
|
-
!i && l.position === "fixed" && (n = null), (o ? !i && !n : !i && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || or(s) && !i &&
|
5587
|
+
const l = Me(s), i = mn(s);
|
5588
|
+
!i && l.position === "fixed" && (n = null), (o ? !i && !n : !i && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || or(s) && !i && ri(e, s)) ? a = a.filter((d) => d !== s) : n = l, s = ot(s);
|
5589
5589
|
}
|
5590
5590
|
return t.set(e, a), a;
|
5591
5591
|
}
|
@@ -5597,9 +5597,9 @@ function mf(e) {
|
|
5597
5597
|
strategy: n
|
5598
5598
|
} = e;
|
5599
5599
|
const o = [...r === "clippingAncestors" ? Mr(t) ? [] : hf(t, this._c) : [].concat(r), a], s = o[0], l = o.reduce((i, d) => {
|
5600
|
-
const f =
|
5600
|
+
const f = ho(t, d, n);
|
5601
5601
|
return i.top = xt(f.top, i.top), i.right = Wt(f.right, i.right), i.bottom = Wt(f.bottom, i.bottom), i.left = xt(f.left, i.left), i;
|
5602
|
-
},
|
5602
|
+
}, ho(t, s, n));
|
5603
5603
|
return {
|
5604
5604
|
width: l.right - l.left,
|
5605
5605
|
height: l.bottom - l.top,
|
@@ -5611,14 +5611,14 @@ function pf(e) {
|
|
5611
5611
|
const {
|
5612
5612
|
width: t,
|
5613
5613
|
height: r
|
5614
|
-
} =
|
5614
|
+
} = Xs(e);
|
5615
5615
|
return {
|
5616
5616
|
width: t,
|
5617
5617
|
height: r
|
5618
5618
|
};
|
5619
5619
|
}
|
5620
5620
|
function gf(e, t, r) {
|
5621
|
-
const a = We(t), n =
|
5621
|
+
const a = We(t), n = Qe(t), o = r === "fixed", s = qt(e, !0, o, t);
|
5622
5622
|
let l = {
|
5623
5623
|
scrollLeft: 0,
|
5624
5624
|
scrollTop: 0
|
@@ -5628,8 +5628,8 @@ function gf(e, t, r) {
|
|
5628
5628
|
if ((Lt(t) !== "body" || or(n)) && (l = Dr(t)), a) {
|
5629
5629
|
const m = qt(t, !0, o, t);
|
5630
5630
|
i.x = m.x + t.clientLeft, i.y = m.y + t.clientTop;
|
5631
|
-
} else n && (i.x =
|
5632
|
-
const d = n && !a && !o ?
|
5631
|
+
} else n && (i.x = gn(n));
|
5632
|
+
const d = n && !a && !o ? ti(n, l) : Ge(0), f = s.left + l.scrollLeft - i.x - d.x, u = s.top + l.scrollTop - i.y - d.y;
|
5633
5633
|
return {
|
5634
5634
|
x: f,
|
5635
5635
|
y: u,
|
@@ -5640,15 +5640,15 @@ function gf(e, t, r) {
|
|
5640
5640
|
function oa(e) {
|
5641
5641
|
return Me(e).position === "static";
|
5642
5642
|
}
|
5643
|
-
function
|
5643
|
+
function mo(e, t) {
|
5644
5644
|
if (!We(e) || Me(e).position === "fixed")
|
5645
5645
|
return null;
|
5646
5646
|
if (t)
|
5647
5647
|
return t(e);
|
5648
5648
|
let r = e.offsetParent;
|
5649
|
-
return
|
5649
|
+
return Qe(e) === r && (r = r.ownerDocument.body), r;
|
5650
5650
|
}
|
5651
|
-
function
|
5651
|
+
function ai(e, t) {
|
5652
5652
|
const r = Te(e);
|
5653
5653
|
if (Mr(e))
|
5654
5654
|
return r;
|
@@ -5661,13 +5661,13 @@ function ni(e, t) {
|
|
5661
5661
|
}
|
5662
5662
|
return r;
|
5663
5663
|
}
|
5664
|
-
let a =
|
5664
|
+
let a = mo(e, t);
|
5665
5665
|
for (; a && af(a) && oa(a); )
|
5666
|
-
a =
|
5667
|
-
return a && Ot(a) && oa(a) && !
|
5666
|
+
a = mo(a, t);
|
5667
|
+
return a && Ot(a) && oa(a) && !mn(a) ? r : a || nf(e) || r;
|
5668
5668
|
}
|
5669
5669
|
const yf = async function(e) {
|
5670
|
-
const t = this.getOffsetParent ||
|
5670
|
+
const t = this.getOffsetParent || ai, r = this.getDimensions, a = await r(e.floating);
|
5671
5671
|
return {
|
5672
5672
|
reference: gf(e.reference, await t(e.floating), e.strategy),
|
5673
5673
|
floating: {
|
@@ -5683,9 +5683,9 @@ function bf(e) {
|
|
5683
5683
|
}
|
5684
5684
|
const vf = {
|
5685
5685
|
convertOffsetParentRelativeRectToViewportRelativeRect: lf,
|
5686
|
-
getDocumentElement:
|
5686
|
+
getDocumentElement: Qe,
|
5687
5687
|
getClippingRect: mf,
|
5688
|
-
getOffsetParent:
|
5688
|
+
getOffsetParent: ai,
|
5689
5689
|
getElementRects: yf,
|
5690
5690
|
getClientRects: cf,
|
5691
5691
|
getDimensions: pf,
|
@@ -5704,7 +5704,7 @@ const vf = {
|
|
5704
5704
|
...n,
|
5705
5705
|
platform: o
|
5706
5706
|
});
|
5707
|
-
},
|
5707
|
+
}, po = ["mousedown", "touchstart"];
|
5708
5708
|
function Ef(e, t, r) {
|
5709
5709
|
const a = L(null);
|
5710
5710
|
return B(() => {
|
@@ -5717,10 +5717,10 @@ function Ef(e, t, r) {
|
|
5717
5717
|
) && !l && e();
|
5718
5718
|
} else a.current && !a.current.contains(s) && e();
|
5719
5719
|
};
|
5720
|
-
return
|
5720
|
+
return po.forEach(
|
5721
5721
|
(o) => document.addEventListener(o, n)
|
5722
5722
|
), () => {
|
5723
|
-
|
5723
|
+
po.forEach(
|
5724
5724
|
(o) => document.removeEventListener(o, n)
|
5725
5725
|
);
|
5726
5726
|
};
|
@@ -5734,7 +5734,7 @@ function If(e, t) {
|
|
5734
5734
|
}, []);
|
5735
5735
|
return B(() => (o.current = e, r && s(), l), [e, r, s, l]), { start: s, stop: l, active: r };
|
5736
5736
|
}
|
5737
|
-
const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"),
|
5737
|
+
const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), go = ({
|
5738
5738
|
mode: e
|
5739
5739
|
}) => p({
|
5740
5740
|
"bg-surface-darker": e === "dark" || e === "system",
|
@@ -5757,13 +5757,13 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5757
5757
|
const n = p("relative inline-block", t), o = p(
|
5758
5758
|
Uu,
|
5759
5759
|
Cf(),
|
5760
|
-
|
5760
|
+
go({ mode: e }),
|
5761
5761
|
Sf({ mode: e }),
|
5762
5762
|
r
|
5763
5763
|
), s = p(
|
5764
5764
|
Hu,
|
5765
5765
|
Nf(),
|
5766
|
-
|
5766
|
+
go({ mode: e }),
|
5767
5767
|
a
|
5768
5768
|
);
|
5769
5769
|
return { tooltip: o, arrow: s, wrapper: n };
|
@@ -5792,8 +5792,8 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5792
5792
|
var _, x, k, I;
|
5793
5793
|
if (i.current && d.current && f.current) {
|
5794
5794
|
const {
|
5795
|
-
x:
|
5796
|
-
y:
|
5795
|
+
x: C,
|
5796
|
+
y: S,
|
5797
5797
|
middlewareData: A,
|
5798
5798
|
placement: $
|
5799
5799
|
} = await Tf(i.current, d.current, {
|
@@ -5809,8 +5809,8 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5809
5809
|
]
|
5810
5810
|
});
|
5811
5811
|
(_ = d == null ? void 0 : d.current) != null && _.style && Object.assign(d.current.style, {
|
5812
|
-
left: mr(
|
5813
|
-
top: mr(
|
5812
|
+
left: mr(C),
|
5813
|
+
top: mr(S),
|
5814
5814
|
...v
|
5815
5815
|
});
|
5816
5816
|
const D = {
|
@@ -5872,7 +5872,7 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5872
5872
|
setChatId: n,
|
5873
5873
|
setInitialMessages: o
|
5874
5874
|
} = X(ye), { setInput: s, stop: l } = yt(), i = L(null), d = L(!1), f = () => {
|
5875
|
-
n(
|
5875
|
+
n(at()), o([]), s(""), a({
|
5876
5876
|
type: gt,
|
5877
5877
|
payload: {
|
5878
5878
|
privateChat: !1,
|
@@ -5880,7 +5880,7 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5880
5880
|
}
|
5881
5881
|
});
|
5882
5882
|
};
|
5883
|
-
|
5883
|
+
ls(
|
5884
5884
|
[
|
5885
5885
|
[
|
5886
5886
|
"mod+N",
|
@@ -5925,7 +5925,7 @@ const mr = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Cf = (
|
|
5925
5925
|
label: "New Chat",
|
5926
5926
|
ref: i,
|
5927
5927
|
onClick: t || r ? u : m,
|
5928
|
-
children: t || r ? /* @__PURE__ */ c(
|
5928
|
+
children: t || r ? /* @__PURE__ */ c(ss, { size: je, monotone: !0 }) : /* @__PURE__ */ c(Gl, { size: je })
|
5929
5929
|
}
|
5930
5930
|
)
|
5931
5931
|
}
|
@@ -5944,7 +5944,7 @@ try {
|
|
5944
5944
|
});
|
5945
5945
|
} catch {
|
5946
5946
|
}
|
5947
|
-
const
|
5947
|
+
const yo = "av-messagebox", bo = "av-panel", vo = "av-button", Br = "icon", ni = "button", Ha = "link", Lf = ({
|
5948
5948
|
type: e,
|
5949
5949
|
size: t,
|
5950
5950
|
labelRight: r,
|
@@ -5954,8 +5954,8 @@ const vo = "av-messagebox", _o = "av-panel", wo = "av-button", Br = "icon", oi =
|
|
5954
5954
|
}) => {
|
5955
5955
|
const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
|
5956
5956
|
switch (e) {
|
5957
|
-
case
|
5958
|
-
case
|
5957
|
+
case ni:
|
5958
|
+
case Ha:
|
5959
5959
|
return p({
|
5960
5960
|
[s]: t === "small",
|
5961
5961
|
[l]: t === "medium",
|
@@ -5988,10 +5988,10 @@ const vo = "av-messagebox", _o = "av-panel", wo = "av-button", Br = "icon", oi =
|
|
5988
5988
|
}) => {
|
5989
5989
|
const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
|
5990
5990
|
switch (e) {
|
5991
|
-
case
|
5992
|
-
case
|
5991
|
+
case ni:
|
5992
|
+
case Ha:
|
5993
5993
|
return p({
|
5994
|
-
"text-center": e ===
|
5994
|
+
"text-center": e === Ha,
|
5995
5995
|
[n]: t === "small",
|
5996
5996
|
[o]: t === "medium",
|
5997
5997
|
[s]: t === "large"
|
@@ -6206,8 +6206,8 @@ const vo = "av-messagebox", _o = "av-panel", wo = "av-button", Br = "icon", oi =
|
|
6206
6206
|
align: g,
|
6207
6207
|
radius: y,
|
6208
6208
|
animated: b
|
6209
|
-
}) => (m || (m = "primary"), r ? p(
|
6210
|
-
|
6209
|
+
}) => (m || (m = "primary"), r ? p(vo, t) : p(
|
6210
|
+
vo,
|
6211
6211
|
Df({
|
6212
6212
|
mode: a,
|
6213
6213
|
variant: m,
|
@@ -6240,7 +6240,7 @@ const vo = "av-messagebox", _o = "av-panel", wo = "av-button", Br = "icon", oi =
|
|
6240
6240
|
)), Wf = (e, t, r) => {
|
6241
6241
|
var a;
|
6242
6242
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
6243
|
-
},
|
6243
|
+
}, oi = U.forwardRef((e, t) => {
|
6244
6244
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
6245
6245
|
return /* @__PURE__ */ c(
|
6246
6246
|
"button",
|
@@ -6253,7 +6253,7 @@ const vo = "av-messagebox", _o = "av-panel", wo = "av-button", Br = "icon", oi =
|
|
6253
6253
|
}
|
6254
6254
|
);
|
6255
6255
|
});
|
6256
|
-
|
6256
|
+
oi.displayName = "BaseButton";
|
6257
6257
|
function qf() {
|
6258
6258
|
const e = L(!1);
|
6259
6259
|
return B(() => (e.current = !0, () => {
|
@@ -6303,7 +6303,7 @@ const Kf = {
|
|
6303
6303
|
// px-3 x 2
|
6304
6304
|
large: 16 * 2
|
6305
6305
|
// px-4 x 2
|
6306
|
-
}, Xf = 2,
|
6306
|
+
}, Xf = 2, yn = U.forwardRef(
|
6307
6307
|
({
|
6308
6308
|
children: e,
|
6309
6309
|
disabled: t = !1,
|
@@ -6344,22 +6344,22 @@ const Kf = {
|
|
6344
6344
|
radius: b,
|
6345
6345
|
variant: v,
|
6346
6346
|
animated: T
|
6347
|
-
}), x = Hf({ mode: r, raw: l, iconClassName: w }), k = Gf({ animated: T }), [I,
|
6347
|
+
}), x = Hf({ mode: r, raw: l, iconClassName: w }), k = Gf({ animated: T }), [I, C] = sa(), [S, A] = sa(), [$, D] = sa(), V = L(0), M = L(null), W = Yf([E, M]);
|
6348
6348
|
return ge(() => {
|
6349
6349
|
$ && $.current && T && (V.current = D.width + Qf[u] + (i ? 0 : Xf));
|
6350
6350
|
}, [D, $, u, i, T]), ge(() => {
|
6351
|
-
M && M.current && T && (m && I &&
|
6351
|
+
M && M.current && T && (m && I && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), M.current.style.width = `${C.width + V.current}px`) : h && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + V.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Kf[u]}px`));
|
6352
6352
|
}, [
|
6353
|
-
|
6353
|
+
C,
|
6354
6354
|
m,
|
6355
6355
|
I,
|
6356
6356
|
A,
|
6357
6357
|
h,
|
6358
|
-
|
6358
|
+
S,
|
6359
6359
|
u,
|
6360
6360
|
T
|
6361
6361
|
]), /* @__PURE__ */ R(
|
6362
|
-
|
6362
|
+
oi,
|
6363
6363
|
{
|
6364
6364
|
ref: W,
|
6365
6365
|
className: _,
|
@@ -6369,17 +6369,17 @@ const Kf = {
|
|
6369
6369
|
...N,
|
6370
6370
|
children: [
|
6371
6371
|
/* @__PURE__ */ c(
|
6372
|
-
|
6372
|
+
_o,
|
6373
6373
|
{
|
6374
6374
|
label: h,
|
6375
|
-
labelRef:
|
6375
|
+
labelRef: S,
|
6376
6376
|
labelClass: k,
|
6377
6377
|
labelInnerClass: "pr-2"
|
6378
6378
|
}
|
6379
6379
|
),
|
6380
6380
|
/* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
|
6381
6381
|
/* @__PURE__ */ c(
|
6382
|
-
|
6382
|
+
_o,
|
6383
6383
|
{
|
6384
6384
|
label: m,
|
6385
6385
|
labelRef: I,
|
@@ -6391,13 +6391,13 @@ const Kf = {
|
|
6391
6391
|
}
|
6392
6392
|
);
|
6393
6393
|
}
|
6394
|
-
),
|
6394
|
+
), _o = ({
|
6395
6395
|
labelRef: e,
|
6396
6396
|
labelClass: t,
|
6397
6397
|
label: r,
|
6398
6398
|
labelInnerClass: a
|
6399
6399
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
6400
|
-
|
6400
|
+
yn.displayName = "ButtonIcon";
|
6401
6401
|
/*!
|
6402
6402
|
@versini/ui-button v4.2.11
|
6403
6403
|
© 2025 gizmette.com
|
@@ -6437,7 +6437,7 @@ const Zf = U.forwardRef(
|
|
6437
6437
|
}
|
6438
6438
|
) : "";
|
6439
6439
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
6440
|
-
|
6440
|
+
yn,
|
6441
6441
|
{
|
6442
6442
|
className: p("justify-center", r),
|
6443
6443
|
ref: o,
|
@@ -6530,21 +6530,21 @@ try {
|
|
6530
6530
|
});
|
6531
6531
|
} catch {
|
6532
6532
|
}
|
6533
|
-
const
|
6533
|
+
const si = te.createContext(null);
|
6534
6534
|
function rh({
|
6535
6535
|
initialOpen: e = !1,
|
6536
6536
|
open: t,
|
6537
6537
|
onOpenChange: r
|
6538
6538
|
} = {}) {
|
6539
|
-
const [a, n] = te.useState(e), [o, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? n, u =
|
6539
|
+
const [a, n] = te.useState(e), [o, s] = te.useState(), [l, i] = te.useState(), d = t ?? a, f = r ?? n, u = Xo({
|
6540
6540
|
open: d,
|
6541
6541
|
onOpenChange: f
|
6542
|
-
}), m = u.context, h =
|
6542
|
+
}), m = u.context, h = Zo(m, {
|
6543
6543
|
enabled: t == null
|
6544
|
-
}), g =
|
6544
|
+
}), g = es(m, {
|
6545
6545
|
outsidePress: !1,
|
6546
6546
|
outsidePressEvent: "mousedown"
|
6547
|
-
}), y =
|
6547
|
+
}), y = ts(m), b = rs([h, g, y]);
|
6548
6548
|
return te.useMemo(
|
6549
6549
|
() => ({
|
6550
6550
|
open: d,
|
@@ -6560,7 +6560,7 @@ function rh({
|
|
6560
6560
|
);
|
6561
6561
|
}
|
6562
6562
|
const Pr = () => {
|
6563
|
-
const e = te.useContext(
|
6563
|
+
const e = te.useContext(si);
|
6564
6564
|
if (e == null)
|
6565
6565
|
throw new Error("Modal components must be wrapped in <Modal />");
|
6566
6566
|
return e;
|
@@ -6570,17 +6570,17 @@ function ah({
|
|
6570
6570
|
...t
|
6571
6571
|
}) {
|
6572
6572
|
const r = rh(t);
|
6573
|
-
return /* @__PURE__ */ c(
|
6573
|
+
return /* @__PURE__ */ c(si.Provider, { value: r, children: e });
|
6574
6574
|
}
|
6575
6575
|
const nh = te.forwardRef(function(e, t) {
|
6576
|
-
const { context: r, ...a } = Pr(), n =
|
6576
|
+
const { context: r, ...a } = Pr(), n = en([a.refs.setFloating, t]);
|
6577
6577
|
if (!r.open)
|
6578
6578
|
return null;
|
6579
6579
|
const { overlayBackground: o, ...s } = e, l = p("grid place-items-center", {
|
6580
6580
|
[`${o}`]: o,
|
6581
6581
|
"bg-black sm:bg-black/[.8]": !o
|
6582
6582
|
});
|
6583
|
-
return /* @__PURE__ */ c(
|
6583
|
+
return /* @__PURE__ */ c(Ko, { children: /* @__PURE__ */ c(fl, { className: l, lockScroll: !0, children: /* @__PURE__ */ c(Qo, { context: r, children: /* @__PURE__ */ c(
|
6584
6584
|
"div",
|
6585
6585
|
{
|
6586
6586
|
ref: n,
|
@@ -6625,10 +6625,10 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6625
6625
|
}) => ({
|
6626
6626
|
main: p("prose prose-lighter flex flex-col bg-surface-medium", {
|
6627
6627
|
"duration-200 ease-out": a,
|
6628
|
-
[`${
|
6629
|
-
[`${
|
6630
|
-
[`${
|
6631
|
-
[`${
|
6628
|
+
[`${bo} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Vt,
|
6629
|
+
[`${bo} w-full sm:w-[95%] md:max-w-2xl`]: t === Vt && !e,
|
6630
|
+
[`${yo} rounded-lg border-2`]: t === pr,
|
6631
|
+
[`${yo} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === pr && !e,
|
6632
6632
|
[`${e}`]: !!e,
|
6633
6633
|
"sm:border-border-dark": r === "dark" && t === Vt,
|
6634
6634
|
"sm:border-border-accent": r === "light" && t === Vt,
|
@@ -6639,7 +6639,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6639
6639
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
6640
6640
|
header: "sm:p-4 mb-0 p-2",
|
6641
6641
|
close: "sm:p-4 p-2"
|
6642
|
-
}), ch = "slide",
|
6642
|
+
}), ch = "slide", wo = "fade", Mt = ({
|
6643
6643
|
open: e,
|
6644
6644
|
onOpenChange: t,
|
6645
6645
|
title: r,
|
@@ -6652,7 +6652,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6652
6652
|
animationType: d = ch
|
6653
6653
|
}) => {
|
6654
6654
|
const f = L(""), [u, m] = F(
|
6655
|
-
i ? d ===
|
6655
|
+
i ? d === wo ? { opacity: 0 } : {
|
6656
6656
|
transform: "translateY(-100vh)"
|
6657
6657
|
} : {}
|
6658
6658
|
), h = lh({
|
@@ -6666,7 +6666,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6666
6666
|
}), [r, e]), B(() => {
|
6667
6667
|
if (i && e) {
|
6668
6668
|
m(
|
6669
|
-
i ? d ===
|
6669
|
+
i ? d === wo ? { opacity: 0 } : {
|
6670
6670
|
transform: "translateY(-666vh)"
|
6671
6671
|
} : {}
|
6672
6672
|
);
|
@@ -6686,7 +6686,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6686
6686
|
{
|
6687
6687
|
className: h.close,
|
6688
6688
|
trigger: /* @__PURE__ */ c(
|
6689
|
-
|
6689
|
+
yn,
|
6690
6690
|
{
|
6691
6691
|
mode: "dark",
|
6692
6692
|
focusMode: "light",
|
@@ -6716,7 +6716,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6716
6716
|
onOpenChange: t,
|
6717
6717
|
title: n.title,
|
6718
6718
|
footer: /* @__PURE__ */ R(Sr, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
6719
|
-
/* @__PURE__ */ c(
|
6719
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
6720
6720
|
Ft,
|
6721
6721
|
{
|
6722
6722
|
mode: "dark",
|
@@ -6728,7 +6728,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6728
6728
|
children: n.cancelAction
|
6729
6729
|
}
|
6730
6730
|
) }),
|
6731
|
-
/* @__PURE__ */ c(
|
6731
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
6732
6732
|
Ft,
|
6733
6733
|
{
|
6734
6734
|
mode: "dark",
|
@@ -6752,10 +6752,10 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6752
6752
|
setChatId: a,
|
6753
6753
|
setInitialMessages: n
|
6754
6754
|
} = X(ye), [o, s] = F(!1), [l, i] = ht({
|
6755
|
-
key: ft +
|
6755
|
+
key: ft + Pi,
|
6756
6756
|
initialValue: ""
|
6757
6757
|
}), d = () => {
|
6758
|
-
a(
|
6758
|
+
a(at()), n([]), r({
|
6759
6759
|
type: gt,
|
6760
6760
|
payload: {
|
6761
6761
|
privateChat: !t
|
@@ -6807,7 +6807,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6807
6807
|
}
|
6808
6808
|
)
|
6809
6809
|
] });
|
6810
|
-
},
|
6810
|
+
}, Ga = te.createContext({
|
6811
6811
|
getItemProps: () => ({}),
|
6812
6812
|
activeIndex: null,
|
6813
6813
|
/* v8 ignore next 2 */
|
@@ -6816,7 +6816,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6816
6816
|
setHasFocusInside: () => {
|
6817
6817
|
},
|
6818
6818
|
isOpen: !1
|
6819
|
-
}),
|
6819
|
+
}), ko = (e) => {
|
6820
6820
|
if (typeof e == "string")
|
6821
6821
|
return e;
|
6822
6822
|
if (typeof e == "function")
|
@@ -6827,7 +6827,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6827
6827
|
return t.displayName || t.name || "Component";
|
6828
6828
|
}
|
6829
6829
|
return "Element";
|
6830
|
-
},
|
6830
|
+
}, ii = qo(
|
6831
6831
|
({
|
6832
6832
|
trigger: e,
|
6833
6833
|
children: t,
|
@@ -6838,7 +6838,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6838
6838
|
focusMode: s = "system",
|
6839
6839
|
...l
|
6840
6840
|
}, i) => {
|
6841
|
-
const [d, f] = F(!1), [u, m] = F(!1), [h, g] = F(null), y = L([]), b = L([]), v = X(
|
6841
|
+
const [d, f] = F(!1), [u, m] = F(!1), [h, g] = F(null), y = L([]), b = L([]), v = X(Ga), w = as(), T = hl(), N = ns(), { floatingStyles: E, refs: _, context: x } = Xo({
|
6842
6842
|
nodeId: T,
|
6843
6843
|
open: d,
|
6844
6844
|
onOpenChange: (J) => {
|
@@ -6848,11 +6848,11 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6848
6848
|
strategy: "fixed",
|
6849
6849
|
middleware: [ml({ mainAxis: 10 }), pl(), gl()],
|
6850
6850
|
whileElementsMounted: yl
|
6851
|
-
}), k =
|
6851
|
+
}), k = Zo(x, {
|
6852
6852
|
event: "mousedown",
|
6853
6853
|
toggle: !0,
|
6854
6854
|
ignoreMouse: !1
|
6855
|
-
}), I =
|
6855
|
+
}), I = ts(x, { role: "menu" }), C = es(x, { bubbles: !0 }), S = bl(x, {
|
6856
6856
|
listRef: y,
|
6857
6857
|
activeIndex: h,
|
6858
6858
|
nested: !1,
|
@@ -6862,7 +6862,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6862
6862
|
listRef: b,
|
6863
6863
|
onMatch: d ? g : void 0,
|
6864
6864
|
activeIndex: h
|
6865
|
-
}), { getReferenceProps: $, getFloatingProps: D, getItemProps: V } =
|
6865
|
+
}), { getReferenceProps: $, getFloatingProps: D, getItemProps: V } = rs([k, I, C, S, A]), M = ko(e) === "Button" || ko(e) === "ButtonIcon", W = M ? {
|
6866
6866
|
noInternalClick: M,
|
6867
6867
|
focusMode: s,
|
6868
6868
|
mode: o
|
@@ -6873,7 +6873,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6873
6873
|
"aria-label": r,
|
6874
6874
|
"data-open": d ? "" : void 0,
|
6875
6875
|
"data-focus-inside": u ? "" : void 0,
|
6876
|
-
ref:
|
6876
|
+
ref: en([_.setReference, N.ref, i]),
|
6877
6877
|
...$(
|
6878
6878
|
v.getItemProps({
|
6879
6879
|
...l
|
@@ -6895,7 +6895,7 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6895
6895
|
}, [w, d, T]), /* @__PURE__ */ R(_l, { id: T, children: [
|
6896
6896
|
G,
|
6897
6897
|
/* @__PURE__ */ c(
|
6898
|
-
|
6898
|
+
Ga.Provider,
|
6899
6899
|
{
|
6900
6900
|
value: {
|
6901
6901
|
activeIndex: h,
|
@@ -6904,8 +6904,8 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6904
6904
|
setHasFocusInside: m,
|
6905
6905
|
isOpen: d
|
6906
6906
|
},
|
6907
|
-
children: /* @__PURE__ */ c(wl, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ c(
|
6908
|
-
|
6907
|
+
children: /* @__PURE__ */ c(wl, { elementsRef: y, labelsRef: b, children: d && /* @__PURE__ */ c(Ko, { children: /* @__PURE__ */ c(
|
6908
|
+
Qo,
|
6909
6909
|
{
|
6910
6910
|
context: x,
|
6911
6911
|
modal: !1,
|
@@ -6927,9 +6927,9 @@ const Vt = "panel", pr = "messagebox", lh = ({
|
|
6927
6927
|
)
|
6928
6928
|
] });
|
6929
6929
|
}
|
6930
|
-
), zr =
|
6930
|
+
), zr = qo((e, t) => /* @__PURE__ */ c(kl, { children: /* @__PURE__ */ c(ii, { ...e, ref: t }) }));
|
6931
6931
|
zr.displayName = "Menu";
|
6932
|
-
|
6932
|
+
ii.displayName = "MenuComponent";
|
6933
6933
|
const uh = ({
|
6934
6934
|
children: e,
|
6935
6935
|
fill: t,
|
@@ -7025,7 +7025,7 @@ const Fe = te.forwardRef(
|
|
7025
7025
|
...l
|
7026
7026
|
}, i) => {
|
7027
7027
|
let d = "";
|
7028
|
-
const f = te.useContext(
|
7028
|
+
const f = te.useContext(Ga), u = ns({ label: t ? null : e }), m = as(), h = en([u.ref, i]);
|
7029
7029
|
if (a && n)
|
7030
7030
|
return /* @__PURE__ */ c(
|
7031
7031
|
"div",
|
@@ -7080,7 +7080,7 @@ Fe.displayName = "MenuItem";
|
|
7080
7080
|
const hh = ({ className: e, ...t }) => {
|
7081
7081
|
const r = p(e, "my-1 border-t border-border-medium");
|
7082
7082
|
return /* @__PURE__ */ c("div", { className: r, ...t });
|
7083
|
-
},
|
7083
|
+
}, li = ({
|
7084
7084
|
className: e,
|
7085
7085
|
...t
|
7086
7086
|
}) => {
|
@@ -7112,17 +7112,17 @@ const mh = (e) => {
|
|
7112
7112
|
className: e,
|
7113
7113
|
defaultPlacement: t = "top-start"
|
7114
7114
|
}) => {
|
7115
|
-
const { dispatch: r, setChatId: a, setInitialMessages: n } = X(ye), { dispatch: o } = X(
|
7115
|
+
const { dispatch: r, setChatId: a, setInitialMessages: n } = X(ye), { dispatch: o } = X(dn), { getAccessToken: s, user: l } = Ne(), { data: i, isSuccess: d } = er({
|
7116
7116
|
user: l == null ? void 0 : l.username,
|
7117
7117
|
getAccessToken: s
|
7118
7118
|
}), f = (u, m, h) => {
|
7119
|
-
u.preventDefault(), a(
|
7119
|
+
u.preventDefault(), a(at()), n([]), r({
|
7120
7120
|
type: gt,
|
7121
7121
|
payload: {
|
7122
7122
|
privateChat: h
|
7123
7123
|
}
|
7124
7124
|
}), o({
|
7125
|
-
type:
|
7125
|
+
type: zo,
|
7126
7126
|
payload: {
|
7127
7127
|
prompt: m
|
7128
7128
|
}
|
@@ -7142,7 +7142,7 @@ const mh = (e) => {
|
|
7142
7142
|
trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ c(Vl, { size: je }) }),
|
7143
7143
|
defaultPlacement: t,
|
7144
7144
|
children: [
|
7145
|
-
/* @__PURE__ */ c(
|
7145
|
+
/* @__PURE__ */ c(li, { children: "Prompts" }),
|
7146
7146
|
i && i.tags && i.tags.map((u) => {
|
7147
7147
|
let m = null;
|
7148
7148
|
switch (u.slot) {
|
@@ -7302,7 +7302,7 @@ function vh(e) {
|
|
7302
7302
|
}
|
7303
7303
|
vh(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
7304
7304
|
`);
|
7305
|
-
var sr = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "string",
|
7305
|
+
var sr = (e) => typeof e == "number" && !isNaN(e), pt = (e) => typeof e == "string", Ke = (e) => typeof e == "function", _h = (e) => pt(e) || sr(e), ja = (e) => pt(e) || Ke(e) ? e : null, wh = (e, t) => e === !1 || sr(e) && e > 0 ? e : t, Wa = (e) => Rr(e) || pt(e) || Ke(e) || sr(e);
|
7306
7306
|
function kh(e, t, r = 300) {
|
7307
7307
|
let { scrollHeight: a, style: n } = e;
|
7308
7308
|
requestAnimationFrame(() => {
|
@@ -7311,7 +7311,7 @@ function kh(e, t, r = 300) {
|
|
7311
7311
|
});
|
7312
7312
|
});
|
7313
7313
|
}
|
7314
|
-
function
|
7314
|
+
function ci({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, collapseDuration: n = 300 }) {
|
7315
7315
|
return function({ children: o, position: s, preventExitTransition: l, done: i, nodeRef: d, isIn: f, playToast: u }) {
|
7316
7316
|
let m = r ? `${e}--${s}` : e, h = r ? `${t}--${s}` : t, g = L(0);
|
7317
7317
|
return ge(() => {
|
@@ -7327,11 +7327,11 @@ function di({ enter: e, exit: t, appendPosition: r = !1, collapse: a = !0, colla
|
|
7327
7327
|
}, [f]), U.createElement(U.Fragment, null, o);
|
7328
7328
|
};
|
7329
7329
|
}
|
7330
|
-
function
|
7331
|
-
return { content:
|
7330
|
+
function xo(e, t) {
|
7331
|
+
return { content: di(e.content, e.props), containerId: e.props.containerId, id: e.props.toastId, theme: e.props.theme, type: e.props.type, data: e.props.data || {}, isLoading: e.props.isLoading, icon: e.props.icon, reason: e.removalReason, status: t };
|
7332
7332
|
}
|
7333
|
-
function
|
7334
|
-
return Rr(e) && !pt(e.type) ?
|
7333
|
+
function di(e, t, r = !1) {
|
7334
|
+
return Rr(e) && !pt(e.type) ? Za(e, { closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : Ke(e) ? e({ closeToast: t.closeToast, toastProps: t, data: t.data, isPaused: r }) : e;
|
7335
7335
|
}
|
7336
7336
|
function xh({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
7337
7337
|
return U.createElement("button", { className: `Toastify__close-button Toastify__close-button--${t}`, type: "button", onClick: (a) => {
|
@@ -7341,12 +7341,12 @@ function xh({ closeToast: e, theme: t, ariaLabel: r = "close" }) {
|
|
7341
7341
|
function Th({ delay: e, isRunning: t, closeToast: r, type: a = "default", hide: n, className: o, controlledProgress: s, progress: l, rtl: i, isIn: d, theme: f }) {
|
7342
7342
|
let u = n || s && l === 0, m = { animationDuration: `${e}ms`, animationPlayState: t ? "running" : "paused" };
|
7343
7343
|
s && (m.transform = `scaleX(${l})`);
|
7344
|
-
let h = p("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), g =
|
7344
|
+
let h = p("Toastify__progress-bar", s ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${f}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": i }), g = Ke(o) ? o({ rtl: i, type: a, defaultClassName: h }) : p(h, o), y = { [s && l >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: s && l < 1 ? null : () => {
|
7345
7345
|
d && r();
|
7346
7346
|
} };
|
7347
7347
|
return U.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": u }, U.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${f} Toastify__progress-bar--${a}` }), U.createElement("div", { role: "progressbar", "aria-hidden": u ? "true" : "false", "aria-label": "notification timer", className: g, style: m, ...y }));
|
7348
7348
|
}
|
7349
|
-
var Eh = 1,
|
7349
|
+
var Eh = 1, ui = () => `${Eh++}`;
|
7350
7350
|
function Ih(e, t, r) {
|
7351
7351
|
let a = 1, n = 0, o = [], s = [], l = t, i = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set(), f = (w) => (d.add(w), () => d.delete(w)), u = () => {
|
7352
7352
|
s = Array.from(i.values()), d.forEach((w) => w());
|
@@ -7373,29 +7373,29 @@ function Ih(e, t, r) {
|
|
7373
7373
|
}, v = (w) => {
|
7374
7374
|
var T, N;
|
7375
7375
|
let { toastId: E, updateId: _ } = w.props, x = _ == null;
|
7376
|
-
w.staleId && i.delete(w.staleId), w.isActive = !0, i.set(E, w), u(), r(
|
7376
|
+
w.staleId && i.delete(w.staleId), w.isActive = !0, i.set(E, w), u(), r(xo(w, x ? "added" : "updated")), x && ((N = (T = w.props).onOpen) == null || N.call(T));
|
7377
7377
|
};
|
7378
7378
|
return { id: e, props: l, observe: f, toggle: h, removeToast: y, toasts: i, clearQueue: b, buildToast: (w, T) => {
|
7379
7379
|
if (m(T)) return;
|
7380
7380
|
let { toastId: N, updateId: E, data: _, staleId: x, delay: k } = T, I = E == null;
|
7381
7381
|
I && n++;
|
7382
|
-
let
|
7382
|
+
let C = { ...l, style: l.toastStyle, key: a++, ...Object.fromEntries(Object.entries(T).filter(([A, $]) => $ != null)), toastId: N, updateId: E, data: _, isIn: !1, className: ja(T.className || l.toastClassName), progressClassName: ja(T.progressClassName || l.progressClassName), autoClose: T.isLoading ? !1 : wh(T.autoClose, l.autoClose), closeToast(A) {
|
7383
7383
|
i.get(N).removalReason = A, y(N);
|
7384
7384
|
}, deleteToast() {
|
7385
7385
|
let A = i.get(N);
|
7386
7386
|
if (A != null) {
|
7387
|
-
if (r(
|
7387
|
+
if (r(xo(A, "removed")), i.delete(N), n--, n < 0 && (n = 0), o.length > 0) {
|
7388
7388
|
v(o.shift());
|
7389
7389
|
return;
|
7390
7390
|
}
|
7391
7391
|
u();
|
7392
7392
|
}
|
7393
7393
|
} };
|
7394
|
-
|
7395
|
-
let
|
7396
|
-
l.limit && l.limit > 0 && n > l.limit && I ? o.push(
|
7397
|
-
v(
|
7398
|
-
}, k) : v(
|
7394
|
+
C.closeButton = l.closeButton, T.closeButton === !1 || Wa(T.closeButton) ? C.closeButton = T.closeButton : T.closeButton === !0 && (C.closeButton = Wa(l.closeButton) ? l.closeButton : !0);
|
7395
|
+
let S = { content: w, props: C, staleId: x };
|
7396
|
+
l.limit && l.limit > 0 && n > l.limit && I ? o.push(S) : sr(k) ? setTimeout(() => {
|
7397
|
+
v(S);
|
7398
|
+
}, k) : v(S);
|
7399
7399
|
}, setProps(w) {
|
7400
7400
|
l = w;
|
7401
7401
|
}, setToggle: (w, T) => {
|
@@ -7406,15 +7406,15 @@ function Ih(e, t, r) {
|
|
7406
7406
|
return (T = i.get(w)) == null ? void 0 : T.isActive;
|
7407
7407
|
}, getSnapshot: () => s };
|
7408
7408
|
}
|
7409
|
-
var _e = /* @__PURE__ */ new Map(), Jt = [],
|
7409
|
+
var _e = /* @__PURE__ */ new Map(), Jt = [], qa = /* @__PURE__ */ new Set(), Ch = (e) => qa.forEach((t) => t(e)), fi = () => _e.size > 0;
|
7410
7410
|
function Sh() {
|
7411
|
-
Jt.forEach((e) =>
|
7411
|
+
Jt.forEach((e) => mi(e.content, e.options)), Jt = [];
|
7412
7412
|
}
|
7413
7413
|
var Nh = (e, { containerId: t }) => {
|
7414
7414
|
var r;
|
7415
7415
|
return (r = _e.get(t || 1)) == null ? void 0 : r.toasts.get(e);
|
7416
7416
|
};
|
7417
|
-
function
|
7417
|
+
function hi(e, t) {
|
7418
7418
|
var r;
|
7419
7419
|
if (t) return !!((r = _e.get(t)) != null && r.isToastActive(e));
|
7420
7420
|
let a = !1;
|
@@ -7423,7 +7423,7 @@ function mi(e, t) {
|
|
7423
7423
|
}), a;
|
7424
7424
|
}
|
7425
7425
|
function Rh(e) {
|
7426
|
-
if (!
|
7426
|
+
if (!fi()) {
|
7427
7427
|
Jt = Jt.filter((t) => e != null && t.options.toastId !== e);
|
7428
7428
|
return;
|
7429
7429
|
}
|
@@ -7442,8 +7442,8 @@ var Ah = (e = {}) => {
|
|
7442
7442
|
t.props.limit && (!e.containerId || t.id === e.containerId) && t.clearQueue();
|
7443
7443
|
});
|
7444
7444
|
};
|
7445
|
-
function
|
7446
|
-
|
7445
|
+
function mi(e, t) {
|
7446
|
+
Wa(e) && (fi() || Jt.push({ content: e, options: t }), _e.forEach((r) => {
|
7447
7447
|
r.buildToast(e, t);
|
7448
7448
|
}));
|
7449
7449
|
}
|
@@ -7451,7 +7451,7 @@ function Oh(e) {
|
|
7451
7451
|
var t;
|
7452
7452
|
(t = _e.get(e.containerId || 1)) == null || t.setToggle(e.id, e.fn);
|
7453
7453
|
}
|
7454
|
-
function
|
7454
|
+
function pi(e, t) {
|
7455
7455
|
_e.forEach((r) => {
|
7456
7456
|
(t == null || !(t != null && t.containerId) || (t == null ? void 0 : t.containerId) === r.id) && r.toggle(e, t == null ? void 0 : t.id);
|
7457
7457
|
});
|
@@ -7474,15 +7474,15 @@ function $h(e) {
|
|
7474
7474
|
} };
|
7475
7475
|
}
|
7476
7476
|
function Lh(e) {
|
7477
|
-
return
|
7478
|
-
|
7477
|
+
return qa.add(e), () => {
|
7478
|
+
qa.delete(e);
|
7479
7479
|
};
|
7480
7480
|
}
|
7481
7481
|
function Mh(e) {
|
7482
|
-
return e && (pt(e.toastId) || sr(e.toastId)) ? e.toastId :
|
7482
|
+
return e && (pt(e.toastId) || sr(e.toastId)) ? e.toastId : ui();
|
7483
7483
|
}
|
7484
7484
|
function ir(e, t) {
|
7485
|
-
return
|
7485
|
+
return mi(e, t), t.toastId;
|
7486
7486
|
}
|
7487
7487
|
function Vr(e, t) {
|
7488
7488
|
return { ...t, type: t && t.type || e, toastId: Mh(t) };
|
@@ -7504,7 +7504,7 @@ function Dh(e, { pending: t, error: r, success: a }, n) {
|
|
7504
7504
|
}
|
7505
7505
|
let m = { type: d, ...s, ...n, data: u }, h = pt(f) ? { render: f } : f;
|
7506
7506
|
return o ? Q.update(o, { ...m, ...h }) : Q(h.render, { ...m, ...h }), u;
|
7507
|
-
}, i =
|
7507
|
+
}, i = Ke(e) ? e() : e;
|
7508
7508
|
return i.then((d) => l("success", a, d)).catch((d) => l("error", r, d)), i;
|
7509
7509
|
}
|
7510
7510
|
Q.promise = Dh;
|
@@ -7519,11 +7519,11 @@ function Bh(e) {
|
|
7519
7519
|
}
|
7520
7520
|
Q.dismiss = Bh;
|
7521
7521
|
Q.clearWaitingQueue = Ah;
|
7522
|
-
Q.isActive =
|
7522
|
+
Q.isActive = hi;
|
7523
7523
|
Q.update = (e, t = {}) => {
|
7524
7524
|
let r = Nh(e, t);
|
7525
7525
|
if (r) {
|
7526
|
-
let { props: a, content: n } = r, o = { delay: 100, ...a, ...t, toastId: t.toastId || e, updateId:
|
7526
|
+
let { props: a, content: n } = r, o = { delay: 100, ...a, ...t, toastId: t.toastId || e, updateId: ui() };
|
7527
7527
|
o.toastId !== e && (o.staleId = e);
|
7528
7528
|
let s = o.render || n;
|
7529
7529
|
delete o.render, ir(s, o);
|
@@ -7533,13 +7533,13 @@ Q.done = (e) => {
|
|
7533
7533
|
Q.update(e, { progress: 1 });
|
7534
7534
|
};
|
7535
7535
|
Q.onChange = Lh;
|
7536
|
-
Q.play = (e) =>
|
7537
|
-
Q.pause = (e) =>
|
7536
|
+
Q.play = (e) => pi(!0, e);
|
7537
|
+
Q.pause = (e) => pi(!1, e);
|
7538
7538
|
function Ph(e) {
|
7539
7539
|
var t;
|
7540
7540
|
let { subscribe: r, getSnapshot: a, setProps: n } = L($h(e)).current;
|
7541
7541
|
n(e);
|
7542
|
-
let o = (t =
|
7542
|
+
let o = (t = jo(r, a, a)) == null ? void 0 : t.slice();
|
7543
7543
|
function s(l) {
|
7544
7544
|
if (!o) return [];
|
7545
7545
|
let i = /* @__PURE__ */ new Map();
|
@@ -7548,7 +7548,7 @@ function Ph(e) {
|
|
7548
7548
|
i.has(f) || i.set(f, []), i.get(f).push(d);
|
7549
7549
|
}), Array.from(i, (d) => l(d[0], d[1]));
|
7550
7550
|
}
|
7551
|
-
return { getToastToRender: s, isToastActive:
|
7551
|
+
return { getToastToRender: s, isToastActive: hi, count: o == null ? void 0 : o.length };
|
7552
7552
|
}
|
7553
7553
|
function zh(e) {
|
7554
7554
|
let [t, r] = F(!1), [a, n] = F(!1), o = L(null), s = L({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: l, pauseOnHover: i, closeToast: d, onClick: f, closeOnClick: u } = e;
|
@@ -7571,8 +7571,8 @@ function zh(e) {
|
|
7571
7571
|
}
|
7572
7572
|
}
|
7573
7573
|
function y(x) {
|
7574
|
-
let { top: k, bottom: I, left:
|
7575
|
-
x.nativeEvent.type !== "touchend" && e.pauseOnHover && x.clientX >=
|
7574
|
+
let { top: k, bottom: I, left: C, right: S } = o.current.getBoundingClientRect();
|
7575
|
+
x.nativeEvent.type !== "touchend" && e.pauseOnHover && x.clientX >= C && x.clientX <= S && x.clientY >= k && x.clientY <= I ? v() : b();
|
7576
7576
|
}
|
7577
7577
|
function b() {
|
7578
7578
|
r(!0);
|
@@ -7626,20 +7626,20 @@ function Gh(e) {
|
|
7626
7626
|
function jh() {
|
7627
7627
|
return U.createElement("div", { className: "Toastify__spinner" });
|
7628
7628
|
}
|
7629
|
-
var
|
7629
|
+
var Ya = { info: Uh, warning: Fh, success: Hh, error: Gh, spinner: jh }, Wh = (e) => e in Ya;
|
7630
7630
|
function qh({ theme: e, type: t, isLoading: r, icon: a }) {
|
7631
7631
|
let n = null, o = { theme: e, type: t };
|
7632
|
-
return a === !1 || (
|
7632
|
+
return a === !1 || (Ke(a) ? n = a({ ...o, isLoading: r }) : Rr(a) ? n = Za(a, o) : r ? n = Ya.spinner() : Wh(t) && (n = Ya[t](o))), n;
|
7633
7633
|
}
|
7634
7634
|
var Yh = (e) => {
|
7635
|
-
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: n, playToast: o } = zh(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: m, transition: h, position: g, className: y, style: b, progressClassName: v, updateId: w, role: T, progress: N, rtl: E, toastId: _, deleteToast: x, isIn: k, isLoading: I, closeOnClick:
|
7636
|
-
return s === !1 || (
|
7637
|
-
},
|
7638
|
-
function
|
7635
|
+
let { isRunning: t, preventExitTransition: r, toastRef: a, eventHandlers: n, playToast: o } = zh(e), { closeButton: s, children: l, autoClose: i, onClick: d, type: f, hideProgressBar: u, closeToast: m, transition: h, position: g, className: y, style: b, progressClassName: v, updateId: w, role: T, progress: N, rtl: E, toastId: _, deleteToast: x, isIn: k, isLoading: I, closeOnClick: C, theme: S, ariaLabel: A } = e, $ = p("Toastify__toast", `Toastify__toast-theme--${S}`, `Toastify__toast--${f}`, { "Toastify__toast--rtl": E }, { "Toastify__toast--close-on-click": C }), D = Ke(y) ? y({ rtl: E, position: g, type: f, defaultClassName: $ }) : p($, y), V = qh(e), M = !!N || !i, W = { closeToast: m, type: f, theme: S }, G = null;
|
7636
|
+
return s === !1 || (Ke(s) ? G = s(W) : Rr(s) ? G = Za(s, W) : G = xh(W)), U.createElement(h, { isIn: k, done: x, position: g, preventExitTransition: r, nodeRef: a, playToast: o }, U.createElement("div", { id: _, tabIndex: 0, onClick: d, "data-in": k, className: D, ...n, style: b, ref: a, ...k && { role: T, "aria-label": A } }, V != null && U.createElement("div", { className: p("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !I }) }, V), di(l, e, !t), G, !e.customProgressBar && U.createElement(Th, { ...w && !M ? { key: `p-${w}` } : {}, rtl: E, theme: S, delay: i, isRunning: t, isIn: k, closeToast: m, hide: u, type: f, className: v, controlledProgress: M, progress: N || 0 })));
|
7637
|
+
}, gi = (e, t = !1) => ({ enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t }), Jh = ci(gi("bounce", !0)), Ja = ci(gi("slide", !0)), Kh = { position: "top-right", transition: Jh, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light", "aria-label": "Notifications Alt+T", hotKeys: (e) => e.altKey && e.code === "KeyT" };
|
7638
|
+
function yi(e) {
|
7639
7639
|
let t = { ...Kh, ...e }, r = e.stacked, [a, n] = F(!0), o = L(null), { getToastToRender: s, isToastActive: l, count: i } = Ph(t), { className: d, style: f, rtl: u, containerId: m, hotKeys: h } = t;
|
7640
7640
|
function g(b) {
|
7641
7641
|
let v = p("Toastify__toast-container", `Toastify__toast-container--${b}`, { "Toastify__toast-container--rtl": u });
|
7642
|
-
return
|
7642
|
+
return Ke(d) ? d({ position: b, rtl: u, defaultClassName: v }) : p(v, ja(d));
|
7643
7643
|
}
|
7644
7644
|
function y() {
|
7645
7645
|
r && (n(!0), Q.play());
|
@@ -7684,15 +7684,15 @@ const Qh = ({
|
|
7684
7684
|
getAccessToken: o
|
7685
7685
|
}), u = async (m) => {
|
7686
7686
|
try {
|
7687
|
-
a(
|
7687
|
+
a(at()), n([]), m !== (f == null ? void 0 : f.provider) && (await bs({
|
7688
7688
|
provider: m,
|
7689
7689
|
accessToken: await o(),
|
7690
7690
|
username: (s == null ? void 0 : s.username) || ""
|
7691
7691
|
}), d(), Q.success(
|
7692
|
-
`${
|
7692
|
+
`${Vo} ${m}`,
|
7693
7693
|
ga({
|
7694
7694
|
containerId: "toggle-provider",
|
7695
|
-
transition:
|
7695
|
+
transition: Ja
|
7696
7696
|
})
|
7697
7697
|
)), t({
|
7698
7698
|
type: gt,
|
@@ -7704,7 +7704,7 @@ const Qh = ({
|
|
7704
7704
|
}
|
7705
7705
|
};
|
7706
7706
|
return i ? /* @__PURE__ */ R(ce, { children: [
|
7707
|
-
/* @__PURE__ */ c(
|
7707
|
+
/* @__PURE__ */ c(yi, { containerId: "toggle-provider" }),
|
7708
7708
|
/* @__PURE__ */ c(
|
7709
7709
|
st,
|
7710
7710
|
{
|
@@ -7718,13 +7718,13 @@ const Qh = ({
|
|
7718
7718
|
mode: "dark",
|
7719
7719
|
focusMode: "light",
|
7720
7720
|
trigger: /* @__PURE__ */ c(Se, { noBorder: !0, label: "Providers", children: f.provider === _r ? /* @__PURE__ */ c(ce, { children: /* @__PURE__ */ c(
|
7721
|
-
|
7721
|
+
Ea,
|
7722
7722
|
{
|
7723
7723
|
className: l === "streaming" ? "av-pulsate-icon" : "",
|
7724
7724
|
size: je
|
7725
7725
|
}
|
7726
7726
|
) }) : /* @__PURE__ */ c(
|
7727
|
-
|
7727
|
+
Ia,
|
7728
7728
|
{
|
7729
7729
|
className: l === "streaming" ? "av-pulsate-icon" : "",
|
7730
7730
|
size: je
|
@@ -7732,13 +7732,13 @@ const Qh = ({
|
|
7732
7732
|
) }),
|
7733
7733
|
defaultPlacement: "top-start",
|
7734
7734
|
children: [
|
7735
|
-
/* @__PURE__ */ c(
|
7735
|
+
/* @__PURE__ */ c(li, { children: "Providers" }),
|
7736
7736
|
/* @__PURE__ */ c(
|
7737
7737
|
Fe,
|
7738
7738
|
{
|
7739
7739
|
selected: f.provider === _r,
|
7740
7740
|
label: "Anthropic",
|
7741
|
-
icon: /* @__PURE__ */ c(
|
7741
|
+
icon: /* @__PURE__ */ c(Ea, {}),
|
7742
7742
|
onClick: () => u(_r)
|
7743
7743
|
}
|
7744
7744
|
),
|
@@ -7747,7 +7747,7 @@ const Qh = ({
|
|
7747
7747
|
{
|
7748
7748
|
selected: f.provider === pa,
|
7749
7749
|
label: "OpenAI",
|
7750
|
-
icon: /* @__PURE__ */ c(
|
7750
|
+
icon: /* @__PURE__ */ c(Ia, {}),
|
7751
7751
|
onClick: () => u(pa)
|
7752
7752
|
}
|
7753
7753
|
)
|
@@ -7766,10 +7766,10 @@ const Qh = ({
|
|
7766
7766
|
setChatId: n,
|
7767
7767
|
setInitialMessages: o
|
7768
7768
|
} = X(ye), [s, l] = F(!1), [i, d] = F(!1), [f, u] = ht({
|
7769
|
-
key: ft +
|
7769
|
+
key: ft + zi,
|
7770
7770
|
initialValue: ""
|
7771
7771
|
}), m = () => {
|
7772
|
-
n(
|
7772
|
+
n(at()), o([]), a({
|
7773
7773
|
type: gt,
|
7774
7774
|
payload: {
|
7775
7775
|
reasoning: !t
|
@@ -7837,7 +7837,7 @@ const Qh = ({
|
|
7837
7837
|
] });
|
7838
7838
|
}, Zh = () => p(
|
7839
7839
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
7840
|
-
),
|
7840
|
+
), To = () => p("bg-surface-darker"), em = () => p("text-copy-lighter caret-copy-light"), tm = () => p(
|
7841
7841
|
"has-[.av-prompt-editable:focus]:outline",
|
7842
7842
|
"has-[.av-prompt-editable:focus]:outline-2",
|
7843
7843
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
@@ -7848,27 +7848,27 @@ const Qh = ({
|
|
7848
7848
|
"h-6 pr-2 pl-4"
|
7849
7849
|
), am = ({ className: e }) => {
|
7850
7850
|
const t = p(
|
7851
|
-
|
7851
|
+
Vi,
|
7852
7852
|
Zh(),
|
7853
|
-
|
7853
|
+
To(),
|
7854
7854
|
em(),
|
7855
7855
|
tm(),
|
7856
7856
|
e
|
7857
7857
|
), r = p(
|
7858
|
-
|
7858
|
+
Fi,
|
7859
7859
|
rm(),
|
7860
|
-
|
7860
|
+
To()
|
7861
7861
|
);
|
7862
7862
|
return {
|
7863
7863
|
wrapper: t,
|
7864
7864
|
textArea: r
|
7865
7865
|
};
|
7866
|
-
},
|
7866
|
+
}, bi = 24, nm = 500, vi = 2, om = 5, sm = bi * vi, Eo = om * bi, gr = (e) => {
|
7867
7867
|
e.current && (e.current.style.height = `${sm}px`);
|
7868
7868
|
}, im = () => {
|
7869
7869
|
const { user: e, getAccessToken: t } = Ne(), [r, a] = F(!1), {
|
7870
7870
|
state: { streaming: n, lastResetTimestamp: o }
|
7871
|
-
} = X(ye), { state: s, dispatch: l } = X(
|
7871
|
+
} = X(ye), { state: s, dispatch: l } = X(dn), { state: i } = X($r), { refetch: d } = _s({
|
7872
7872
|
enabled: !1,
|
7873
7873
|
user: (e == null ? void 0 : e.username) || "",
|
7874
7874
|
searchString: i.searchString,
|
@@ -7882,23 +7882,13 @@ const Qh = ({
|
|
7882
7882
|
setMessages: g,
|
7883
7883
|
status: y
|
7884
7884
|
} = yt({
|
7885
|
-
onFinish: (
|
7885
|
+
onFinish: (S, { usage: A }) => {
|
7886
7886
|
d(), b({
|
7887
|
-
type:
|
7887
|
+
type: gs,
|
7888
7888
|
payload: {
|
7889
7889
|
usage: A.totalTokens
|
7890
7890
|
}
|
7891
7891
|
});
|
7892
|
-
},
|
7893
|
-
onError: () => {
|
7894
|
-
g((C) => [
|
7895
|
-
...C,
|
7896
|
-
{
|
7897
|
-
id: Ke(),
|
7898
|
-
role: ya,
|
7899
|
-
content: Sn
|
7900
|
-
}
|
7901
|
-
]);
|
7902
7892
|
}
|
7903
7893
|
});
|
7904
7894
|
B(() => {
|
@@ -7931,20 +7921,22 @@ const Qh = ({
|
|
7931
7921
|
});
|
7932
7922
|
break;
|
7933
7923
|
case "error":
|
7934
|
-
|
7935
|
-
|
7936
|
-
|
7937
|
-
|
7938
|
-
|
7939
|
-
|
7940
|
-
|
7941
|
-
|
7942
|
-
|
7943
|
-
|
7944
|
-
|
7945
|
-
|
7946
|
-
|
7947
|
-
|
7924
|
+
setTimeout(() => {
|
7925
|
+
b({
|
7926
|
+
type: kt,
|
7927
|
+
payload: {
|
7928
|
+
loading: !1,
|
7929
|
+
streaming: !1
|
7930
|
+
}
|
7931
|
+
}), g((S) => [
|
7932
|
+
...S,
|
7933
|
+
{
|
7934
|
+
id: at(),
|
7935
|
+
role: Fo,
|
7936
|
+
content: Ui
|
7937
|
+
}
|
7938
|
+
]);
|
7939
|
+
}, 1e3);
|
7948
7940
|
break;
|
7949
7941
|
}
|
7950
7942
|
}, [y, g]);
|
@@ -7957,16 +7949,16 @@ const Qh = ({
|
|
7957
7949
|
if (!E.current)
|
7958
7950
|
return;
|
7959
7951
|
E.current.style.height = "auto";
|
7960
|
-
const
|
7961
|
-
if (
|
7962
|
-
E.current.style.height = `${
|
7952
|
+
const S = E.current.scrollHeight;
|
7953
|
+
if (S > Eo) {
|
7954
|
+
E.current.style.height = `${Eo}px`, E.current.style.overflowY = "scroll";
|
7963
7955
|
return;
|
7964
7956
|
}
|
7965
|
-
E.current.style.height = `${
|
7966
|
-
}, []), I = async (
|
7967
|
-
|
7957
|
+
E.current.style.height = `${S}px`, E.current.style.overflowY = "hidden";
|
7958
|
+
}, []), I = async (S) => {
|
7959
|
+
S.preventDefault(), gr(E);
|
7968
7960
|
const A = await t();
|
7969
|
-
h(
|
7961
|
+
h(S, {
|
7970
7962
|
headers: {
|
7971
7963
|
"Content-Type": "application/json",
|
7972
7964
|
authorization: `Bearer ${A}`
|
@@ -7975,10 +7967,10 @@ const Qh = ({
|
|
7975
7967
|
reasoning: v
|
7976
7968
|
}
|
7977
7969
|
});
|
7978
|
-
},
|
7979
|
-
k(), m(
|
7970
|
+
}, C = (S) => {
|
7971
|
+
k(), m(S);
|
7980
7972
|
};
|
7981
|
-
return
|
7973
|
+
return ls([
|
7982
7974
|
[
|
7983
7975
|
"mod+K",
|
7984
7976
|
() => {
|
@@ -7987,11 +7979,11 @@ const Qh = ({
|
|
7987
7979
|
]
|
7988
7980
|
]), B(() => {
|
7989
7981
|
if (s.prompt !== "") {
|
7990
|
-
const
|
7991
|
-
|
7992
|
-
u(
|
7993
|
-
}) : u(
|
7994
|
-
type:
|
7982
|
+
const S = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
|
7983
|
+
S.indexOf(Cn) !== -1 ? navigator.clipboard.readText().then(($) => {
|
7984
|
+
u(S.replace(Cn, $));
|
7985
|
+
}) : u(S), !ma() && E.current && E.current.focus(), l({
|
7986
|
+
type: Po
|
7995
7987
|
});
|
7996
7988
|
}
|
7997
7989
|
}, [s, l, u]), B(() => {
|
@@ -8008,20 +8000,20 @@ const Qh = ({
|
|
8008
8000
|
}, 100);
|
8009
8001
|
}, [s.lastTriggeredTimestamp, k]), B(() => {
|
8010
8002
|
(async () => {
|
8011
|
-
const
|
8003
|
+
const S = await t(), A = await Hi(S, [Gi.REASONING]);
|
8012
8004
|
a(A);
|
8013
8005
|
})();
|
8014
8006
|
}, [t]), /* @__PURE__ */ c("div", { className: x.wrapper, ref: N, children: /* @__PURE__ */ R("form", { onSubmit: I, children: [
|
8015
|
-
/* @__PURE__ */ c("div", { id: _, className: "sr-only", children:
|
8007
|
+
/* @__PURE__ */ c("div", { id: _, className: "sr-only", children: Sn }),
|
8016
8008
|
/* @__PURE__ */ c("div", { className: "relative", children: /* @__PURE__ */ c(
|
8017
8009
|
"textarea",
|
8018
8010
|
{
|
8019
8011
|
required: !0,
|
8020
|
-
rows:
|
8012
|
+
rows: vi,
|
8021
8013
|
ref: E,
|
8022
|
-
placeholder:
|
8014
|
+
placeholder: Sn,
|
8023
8015
|
translate: "no",
|
8024
|
-
onChange:
|
8016
|
+
onChange: C,
|
8025
8017
|
value: f,
|
8026
8018
|
onKeyDown: cc([["mod+Enter", I]]),
|
8027
8019
|
className: x.textArea,
|
@@ -8037,16 +8029,16 @@ const Qh = ({
|
|
8037
8029
|
/* @__PURE__ */ c(gh, { className: "order-5" })
|
8038
8030
|
] })
|
8039
8031
|
] }) });
|
8040
|
-
}, yr = "--sassy-bottom",
|
8032
|
+
}, yr = "--sassy-bottom", Io = 16, Co = 76, lm = ({ isComponent: e }) => {
|
8041
8033
|
const {
|
8042
8034
|
state: { loading: t, streaming: r, restoring: a }
|
8043
8035
|
} = X(ye), {
|
8044
8036
|
state: { footerHeight: n, footerPosition: o },
|
8045
8037
|
dispatch: s
|
8046
|
-
} = X(
|
8038
|
+
} = X(un), { messages: l } = yt(), { height: i } = gc(), { height: d } = yc(), [f, u] = ds();
|
8047
8039
|
return B(() => {
|
8048
8040
|
n !== u.height && s({
|
8049
|
-
type:
|
8041
|
+
type: ps,
|
8050
8042
|
payload: {
|
8051
8043
|
footerHeight: u.height
|
8052
8044
|
}
|
@@ -8056,8 +8048,8 @@ const Qh = ({
|
|
8056
8048
|
if (!f || !f.current)
|
8057
8049
|
return;
|
8058
8050
|
const m = i - d, h = (g = f == null ? void 0 : f.current) == null ? void 0 : g.style.getPropertyValue(yr);
|
8059
|
-
if (o ===
|
8060
|
-
const w = m > 0 && m < 100 ?
|
8051
|
+
if (o === Sa && (t && !r || a)) {
|
8052
|
+
const w = m > 0 && m < 100 ? Co : Io;
|
8061
8053
|
h !== `${w}px` && (s({
|
8062
8054
|
type: wr,
|
8063
8055
|
payload: {
|
@@ -8067,7 +8059,7 @@ const Qh = ({
|
|
8067
8059
|
}), (y = f == null ? void 0 : f.current) == null || y.style.setProperty(yr, `${w}px`));
|
8068
8060
|
}
|
8069
8061
|
if (o === Ht) {
|
8070
|
-
const w = m > 0 && m < 100 ?
|
8062
|
+
const w = m > 0 && m < 100 ? Co : Io;
|
8071
8063
|
h !== `${w}px` && (s({
|
8072
8064
|
type: wr,
|
8073
8065
|
payload: {
|
@@ -8081,7 +8073,7 @@ const Qh = ({
|
|
8081
8073
|
h !== `${w}px` && Number(w) > 0 && (s({
|
8082
8074
|
type: wr,
|
8083
8075
|
payload: {
|
8084
|
-
footerPosition:
|
8076
|
+
footerPosition: Sa,
|
8085
8077
|
footerOffset: Number(w)
|
8086
8078
|
}
|
8087
8079
|
}), (v = f == null ? void 0 : f.current) == null || v.style.setProperty(
|
@@ -8119,7 +8111,7 @@ const Qh = ({
|
|
8119
8111
|
}
|
8120
8112
|
);
|
8121
8113
|
}, cm = () => {
|
8122
|
-
const e = Gt(), t = Gt(), { data: r, isSuccess: a } =
|
8114
|
+
const e = Gt(), t = Gt(), { data: r, isSuccess: a } = vs(), n = (r == null ? void 0 : r.version) || "", o = (r == null ? void 0 : r.models) || [];
|
8123
8115
|
return /* @__PURE__ */ R(ce, { children: [
|
8124
8116
|
/* @__PURE__ */ c("div", { className: "mb-4", children: /* @__PURE__ */ c(
|
8125
8117
|
Oe,
|
@@ -8127,8 +8119,8 @@ const Qh = ({
|
|
8127
8119
|
header: oe.ABOUT.TITLE_CLIENT,
|
8128
8120
|
className: "prose-dark dark:prose-lighter",
|
8129
8121
|
children: xr(e, {
|
8130
|
-
[oe.ABOUT.VERSION]: "8.7.
|
8131
|
-
[oe.ABOUT.BUILD_TIMESTAMP]: "03/
|
8122
|
+
[oe.ABOUT.VERSION]: "8.7.3",
|
8123
|
+
[oe.ABOUT.BUILD_TIMESTAMP]: "03/17/2025 02:29 PM EDT"
|
8132
8124
|
})
|
8133
8125
|
}
|
8134
8126
|
) }),
|
@@ -8163,29 +8155,29 @@ const Qh = ({
|
|
8163
8155
|
mutate: a
|
8164
8156
|
}) => {
|
8165
8157
|
var I;
|
8166
|
-
const { user: n, getAccessToken: o } = Ne(), { data: s } =
|
8158
|
+
const { user: n, getAccessToken: o } = Ne(), { data: s } = vs(), l = L(null), i = L({
|
8167
8159
|
id: "",
|
8168
8160
|
timestamp: "",
|
8169
8161
|
message: ""
|
8170
8162
|
}), [d, f] = F(!1), [u, m] = F(
|
8171
|
-
|
8163
|
+
Nn + Rn
|
8172
8164
|
), { state: h, dispatch: g } = X($r), {
|
8173
8165
|
state: { provider: y },
|
8174
8166
|
setChatId: b,
|
8175
8167
|
setInitialMessages: v
|
8176
8168
|
} = X(ye), { setInput: w } = yt(), [, T] = ht({
|
8177
|
-
key: ft +
|
8169
|
+
key: ft + Uo,
|
8178
8170
|
initialValue: h.sortDirection
|
8179
8171
|
}), { refetch: N } = er({
|
8180
8172
|
user: n == null ? void 0 : n.username,
|
8181
8173
|
getAccessToken: o
|
8182
|
-
}), E = (
|
8174
|
+
}), E = (C) => {
|
8183
8175
|
switch (h.sortDirection) {
|
8184
8176
|
case Ue.ASC:
|
8185
8177
|
T(Ue.DESC), g({
|
8186
8178
|
type: fa,
|
8187
8179
|
payload: {
|
8188
|
-
sortedCell:
|
8180
|
+
sortedCell: C,
|
8189
8181
|
sortDirection: Ue.DESC
|
8190
8182
|
}
|
8191
8183
|
});
|
@@ -8194,73 +8186,73 @@ const Qh = ({
|
|
8194
8186
|
T(Ue.ASC), g({
|
8195
8187
|
type: fa,
|
8196
8188
|
payload: {
|
8197
|
-
sortedCell:
|
8189
|
+
sortedCell: C,
|
8198
8190
|
sortDirection: Ue.ASC
|
8199
8191
|
}
|
8200
8192
|
});
|
8201
8193
|
break;
|
8202
8194
|
}
|
8203
8195
|
}, _ = async () => {
|
8204
|
-
const
|
8196
|
+
const C = i.current;
|
8205
8197
|
try {
|
8206
8198
|
await Nt({
|
8207
8199
|
accessToken: await o(),
|
8208
8200
|
type: $e.DELETE_CHAT,
|
8209
8201
|
params: {
|
8210
8202
|
userId: (n == null ? void 0 : n.username) || "",
|
8211
|
-
id:
|
8203
|
+
id: C.id
|
8212
8204
|
}
|
8213
8205
|
}), a(""), Q.error(
|
8214
8206
|
qi,
|
8215
8207
|
ga({
|
8216
8208
|
autoClose: 2e3,
|
8217
8209
|
containerId: "history-table",
|
8218
|
-
transition:
|
8210
|
+
transition: Ja
|
8219
8211
|
})
|
8220
8212
|
);
|
8221
8213
|
} catch {
|
8222
8214
|
}
|
8223
|
-
}, x = async (
|
8215
|
+
}, x = async (C, S, A, $, D, V) => {
|
8224
8216
|
try {
|
8225
8217
|
const M = await Nt({
|
8226
8218
|
accessToken: $,
|
8227
8219
|
type: $e.GET_CHAT,
|
8228
8220
|
params: {
|
8229
|
-
id:
|
8221
|
+
id: C.id
|
8230
8222
|
}
|
8231
8223
|
});
|
8232
|
-
M.status === 200 && (M.data.provider !== V && (await
|
8224
|
+
M.status === 200 && (M.data.provider !== V && (await bs({
|
8233
8225
|
provider: M.data.provider,
|
8234
8226
|
accessToken: $,
|
8235
8227
|
username: D
|
8236
|
-
}),
|
8237
|
-
type:
|
8228
|
+
}), S({
|
8229
|
+
type: nn,
|
8238
8230
|
payload: {
|
8239
8231
|
provider: M.data.provider
|
8240
8232
|
}
|
8241
8233
|
}), N(), Q.success(
|
8242
|
-
`${
|
8234
|
+
`${Vo} ${M.data.provider}`,
|
8243
8235
|
ga({
|
8244
8236
|
containerId: "toggle-provider",
|
8245
|
-
transition:
|
8237
|
+
transition: Ja
|
8246
8238
|
})
|
8247
|
-
)),
|
8239
|
+
)), S({
|
8248
8240
|
type: kt,
|
8249
8241
|
payload: {
|
8250
8242
|
restoring: !0
|
8251
8243
|
}
|
8252
|
-
}), w(""), b(
|
8244
|
+
}), w(""), b(C.id), v(M.data.messages), A(!1));
|
8253
8245
|
} catch {
|
8254
8246
|
}
|
8255
|
-
}, k = Y((
|
8256
|
-
|
8247
|
+
}, k = Y((C) => {
|
8248
|
+
C[0].isIntersecting && m((A) => A + Nn);
|
8257
8249
|
}, []);
|
8258
8250
|
return B(() => {
|
8259
|
-
const
|
8251
|
+
const C = {
|
8260
8252
|
// root: null,
|
8261
8253
|
rootMargin: "20px"
|
8262
|
-
},
|
8263
|
-
l.current &&
|
8254
|
+
}, S = new IntersectionObserver(k, C);
|
8255
|
+
l.current && S.observe(l.current);
|
8264
8256
|
}), /* @__PURE__ */ R(ce, { children: [
|
8265
8257
|
/* @__PURE__ */ R(
|
8266
8258
|
Yt,
|
@@ -8290,7 +8282,7 @@ const Qh = ({
|
|
8290
8282
|
]
|
8291
8283
|
}
|
8292
8284
|
),
|
8293
|
-
/* @__PURE__ */ c(
|
8285
|
+
/* @__PURE__ */ c(yi, { containerId: "history-table" }),
|
8294
8286
|
/* @__PURE__ */ R(Wc, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
8295
8287
|
/* @__PURE__ */ c(qc, { children: /* @__PURE__ */ R(qr, { children: [
|
8296
8288
|
/* @__PURE__ */ c(Ae, { className: "sr-only", children: "Row" }),
|
@@ -8312,20 +8304,20 @@ const Qh = ({
|
|
8312
8304
|
/* @__PURE__ */ c(Ae, { className: "text-xs sm:text-sm", children: "Provider" }),
|
8313
8305
|
/* @__PURE__ */ c(Ae, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
8314
8306
|
] }) }),
|
8315
|
-
/* @__PURE__ */ c(Jc, { children: e.slice(0, u).map((
|
8307
|
+
/* @__PURE__ */ c(Jc, { children: e.slice(0, u).map((C, S) => {
|
8316
8308
|
var $, D;
|
8317
|
-
const A =
|
8318
|
-
return ((D =
|
8319
|
-
|
8309
|
+
const A = C.summary || (C.messages.length > 0 ? ($ = C.messages[0]) == null ? void 0 : $.content : "");
|
8310
|
+
return ((D = C == null ? void 0 : C.messages) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ R(ul, { children: [
|
8311
|
+
S === u - Rn && /* @__PURE__ */ c("tr", { ref: l }),
|
8320
8312
|
/* @__PURE__ */ R(qr, { children: [
|
8321
|
-
/* @__PURE__ */ c(Ae, { children:
|
8313
|
+
/* @__PURE__ */ c(Ae, { children: S + 1 }),
|
8322
8314
|
/* @__PURE__ */ c(
|
8323
8315
|
Ae,
|
8324
8316
|
{
|
8325
8317
|
component: "th",
|
8326
8318
|
scope: "row",
|
8327
8319
|
className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
|
8328
|
-
children:
|
8320
|
+
children: C.timestamp.split(",")[0]
|
8329
8321
|
}
|
8330
8322
|
),
|
8331
8323
|
/* @__PURE__ */ c(
|
@@ -8346,14 +8338,14 @@ const Qh = ({
|
|
8346
8338
|
className: "text-gray-400",
|
8347
8339
|
align: "center",
|
8348
8340
|
children: [
|
8349
|
-
|
8341
|
+
C.model && s && An(
|
8350
8342
|
s.modelsPerProvider,
|
8351
|
-
|
8352
|
-
) === _r && /* @__PURE__ */ c(
|
8353
|
-
|
8343
|
+
C.model
|
8344
|
+
) === _r && /* @__PURE__ */ c(Ea, { size: "size-4 sm:size-5", semantic: !0 }),
|
8345
|
+
C.model && s && An(
|
8354
8346
|
s.modelsPerProvider,
|
8355
|
-
|
8356
|
-
) === pa && /* @__PURE__ */ c(
|
8347
|
+
C.model
|
8348
|
+
) === pa && /* @__PURE__ */ c(Ia, { size: "size-4 sm:size-5", semantic: !0 })
|
8357
8349
|
]
|
8358
8350
|
}
|
8359
8351
|
),
|
@@ -8368,7 +8360,7 @@ const Qh = ({
|
|
8368
8360
|
onClick: async () => {
|
8369
8361
|
const V = await o();
|
8370
8362
|
x(
|
8371
|
-
|
8363
|
+
C,
|
8372
8364
|
t,
|
8373
8365
|
r,
|
8374
8366
|
V,
|
@@ -8388,9 +8380,9 @@ const Qh = ({
|
|
8388
8380
|
onClick: () => {
|
8389
8381
|
var V;
|
8390
8382
|
i.current = {
|
8391
|
-
id:
|
8392
|
-
timestamp:
|
8393
|
-
message:
|
8383
|
+
id: C.id,
|
8384
|
+
timestamp: C.timestamp,
|
8385
|
+
message: C.messages.length > 0 ? (V = C.messages[0]) == null ? void 0 : V.content : ""
|
8394
8386
|
}, f(!d);
|
8395
8387
|
},
|
8396
8388
|
children: /* @__PURE__ */ c("div", { className: "text-red-400", children: /* @__PURE__ */ c(Ul, { size: "size-3", monotone: !0 }) })
|
@@ -8398,7 +8390,7 @@ const Qh = ({
|
|
8398
8390
|
)
|
8399
8391
|
] })
|
8400
8392
|
] })
|
8401
|
-
] }, `${oe.HISTORY.TITLE}-${
|
8393
|
+
] }, `${oe.HISTORY.TITLE}-${C.id}-${S}`) : null;
|
8402
8394
|
}) }),
|
8403
8395
|
/* @__PURE__ */ c(Yc, { children: /* @__PURE__ */ c(qr, { children: /* @__PURE__ */ c(Ae, { colSpan: 1e3, children: /* @__PURE__ */ c("div", { children: Ut(
|
8404
8396
|
`${e.length} chat`,
|
@@ -8412,14 +8404,14 @@ const Qh = ({
|
|
8412
8404
|
}) => {
|
8413
8405
|
const { getAccessToken: r, user: a } = Ne(), { dispatch: n } = X(ye), [o, s] = F([]), l = L(null), { state: i, dispatch: d } = X($r), [f, u] = F(
|
8414
8406
|
i.sortDirection
|
8415
|
-
), { data: m, refetch: h } =
|
8407
|
+
), { data: m, refetch: h } = _s({
|
8416
8408
|
enabled: e,
|
8417
8409
|
user: (a == null ? void 0 : a.username) || "",
|
8418
8410
|
searchString: i.searchString,
|
8419
8411
|
sortDirection: f,
|
8420
8412
|
getAccessToken: r
|
8421
8413
|
}), [, g] = ht({
|
8422
|
-
key: ft +
|
8414
|
+
key: ft + Ho,
|
8423
8415
|
initialValue: i.searchString
|
8424
8416
|
});
|
8425
8417
|
B(() => {
|
@@ -8429,7 +8421,7 @@ const Qh = ({
|
|
8429
8421
|
}, [m]);
|
8430
8422
|
const y = async (w) => {
|
8431
8423
|
g(w), d({
|
8432
|
-
type:
|
8424
|
+
type: Bo,
|
8433
8425
|
payload: { searchString: w }
|
8434
8426
|
});
|
8435
8427
|
}, b = Ki((w) => {
|
@@ -8474,7 +8466,7 @@ const Qh = ({
|
|
8474
8466
|
y(""), (w = l.current) != null && w.value && (l.current.value = "", l.current.focus());
|
8475
8467
|
},
|
8476
8468
|
disabled: i.searchString === "",
|
8477
|
-
children: i.searchString !== "" ? /* @__PURE__ */ c(
|
8469
|
+
children: i.searchString !== "" ? /* @__PURE__ */ c(ss, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ c(ec, { monotone: !0, size: "size-3" })
|
8478
8470
|
}
|
8479
8471
|
) })
|
8480
8472
|
}
|
@@ -8510,8 +8502,8 @@ const Qh = ({
|
|
8510
8502
|
{
|
8511
8503
|
className: "prose-dark dark:prose-lighter mt-4",
|
8512
8504
|
header: /* @__PURE__ */ c("h2", { className: "m-0", children: /* @__PURE__ */ R(Sr, { columnGap: 3, alignVertical: "center", children: [
|
8513
|
-
/* @__PURE__ */ c(
|
8514
|
-
/* @__PURE__ */ c(
|
8505
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(On, { size: "size-8" }) }),
|
8506
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c("div", { children: oe.PREFERENCES.PASSKEY_TITLE }) })
|
8515
8507
|
] }) }),
|
8516
8508
|
children: [
|
8517
8509
|
/* @__PURE__ */ c("p", { children: oe.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
@@ -8522,7 +8514,7 @@ const Qh = ({
|
|
8522
8514
|
className: "mt-2",
|
8523
8515
|
onClick: r,
|
8524
8516
|
labelLeft: oe.PREFERENCES.PASSKEY_BUTTON,
|
8525
|
-
children: /* @__PURE__ */ c(
|
8517
|
+
children: /* @__PURE__ */ c(On, { size: "size-5", monotone: !0 })
|
8526
8518
|
}
|
8527
8519
|
)
|
8528
8520
|
]
|
@@ -8555,7 +8547,7 @@ try {
|
|
8555
8547
|
});
|
8556
8548
|
} catch {
|
8557
8549
|
}
|
8558
|
-
const
|
8550
|
+
const _i = "av-text-area", pm = "av-text-area-wrapper", ia = "av-text-area-helper-text", gm = "av-text-area__control--right", ym = "av-text-area__control--left";
|
8559
8551
|
function bm() {
|
8560
8552
|
const e = L(!1);
|
8561
8553
|
return B(() => (e.current = !0, () => {
|
@@ -8580,7 +8572,7 @@ const _m = {
|
|
8580
8572
|
bottom: 0,
|
8581
8573
|
right: 0
|
8582
8574
|
};
|
8583
|
-
function
|
8575
|
+
function So(e) {
|
8584
8576
|
const t = bm(), r = L(0), a = L(null), [n, o] = F(_m), s = Ee(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
8585
8577
|
const i = l[0];
|
8586
8578
|
i && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
@@ -8621,7 +8613,7 @@ function km(e) {
|
|
8621
8613
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
8622
8614
|
}
|
8623
8615
|
}
|
8624
|
-
const
|
8616
|
+
const wi = "SET_ANNOUNCEMENT", ki = "CLEAR_ANNOUNCEMENT", xm = {
|
8625
8617
|
alert: null,
|
8626
8618
|
alertdialog: null,
|
8627
8619
|
log: "polite",
|
@@ -8631,12 +8623,12 @@ const ki = "SET_ANNOUNCEMENT", xi = "CLEAR_ANNOUNCEMENT", xm = {
|
|
8631
8623
|
timer: "assertive"
|
8632
8624
|
}, Tm = (e, t) => {
|
8633
8625
|
switch (t == null ? void 0 : t.type) {
|
8634
|
-
case
|
8626
|
+
case wi:
|
8635
8627
|
return {
|
8636
8628
|
...e,
|
8637
8629
|
announcement: t.payload
|
8638
8630
|
};
|
8639
|
-
case
|
8631
|
+
case ki:
|
8640
8632
|
return {
|
8641
8633
|
...e,
|
8642
8634
|
announcement: null
|
@@ -8649,9 +8641,9 @@ const ki = "SET_ANNOUNCEMENT", xi = "CLEAR_ANNOUNCEMENT", xm = {
|
|
8649
8641
|
dispatch: t
|
8650
8642
|
}) => {
|
8651
8643
|
t({
|
8652
|
-
type:
|
8644
|
+
type: ki
|
8653
8645
|
}), typeof e == "function" && e();
|
8654
|
-
},
|
8646
|
+
}, No = ({
|
8655
8647
|
children: e,
|
8656
8648
|
clearAnnouncementDelay: t,
|
8657
8649
|
clearAnnouncementTimeoutRef: r,
|
@@ -8659,7 +8651,7 @@ const ki = "SET_ANNOUNCEMENT", xi = "CLEAR_ANNOUNCEMENT", xm = {
|
|
8659
8651
|
dispatch: n
|
8660
8652
|
}) => {
|
8661
8653
|
clearTimeout(r.current), e !== null && n({
|
8662
|
-
type:
|
8654
|
+
type: wi,
|
8663
8655
|
payload: e
|
8664
8656
|
}), t && (r.current = setTimeout(
|
8665
8657
|
() => Em({
|
@@ -8677,13 +8669,13 @@ const ki = "SET_ANNOUNCEMENT", xi = "CLEAR_ANNOUNCEMENT", xm = {
|
|
8677
8669
|
onAnnouncementClear: o,
|
8678
8670
|
dispatch: s
|
8679
8671
|
}) => {
|
8680
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
8672
|
+
clearTimeout(t.current), r ? t.current = setTimeout(No, r, {
|
8681
8673
|
children: e,
|
8682
8674
|
clearAnnouncementDelay: a,
|
8683
8675
|
clearAnnouncementTimeoutRef: n,
|
8684
8676
|
onAnnouncementClear: o,
|
8685
8677
|
dispatch: s
|
8686
|
-
}) :
|
8678
|
+
}) : No({
|
8687
8679
|
children: e,
|
8688
8680
|
clearAnnouncementDelay: a,
|
8689
8681
|
clearAnnouncementTimeoutRef: n,
|
@@ -8852,7 +8844,7 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8852
8844
|
pm,
|
8853
8845
|
e
|
8854
8846
|
), u = r ? p(t) : p(
|
8855
|
-
|
8847
|
+
_i,
|
8856
8848
|
t,
|
8857
8849
|
Sm(),
|
8858
8850
|
Nm({ mode: l }),
|
@@ -8902,7 +8894,7 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8902
8894
|
helperTextOffset: o,
|
8903
8895
|
scrollHeight: e
|
8904
8896
|
};
|
8905
|
-
},
|
8897
|
+
}, Ka = U.forwardRef(
|
8906
8898
|
({
|
8907
8899
|
id: e,
|
8908
8900
|
name: t,
|
@@ -8928,7 +8920,7 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8928
8920
|
...E
|
8929
8921
|
}, _) => {
|
8930
8922
|
var x;
|
8931
|
-
const k = L(null), I = vm([_, k]), [
|
8923
|
+
const k = L(null), I = vm([_, k]), [C, S] = So(), [A, $] = So(), D = L(80), V = L(-25), M = L(null), W = L(30), G = L(null), J = km({ id: e, prefix: `${_i}-` }), [me, De] = F(0), [Ie, Xe] = F(0), [it, qe] = F(
|
8932
8924
|
!!(!y && g)
|
8933
8925
|
), Be = `${t} error, ${g}`, we = Lm({
|
8934
8926
|
className: o,
|
@@ -8960,9 +8952,9 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
8960
8952
|
y && g && !Ce && qe(!1), N && N(P);
|
8961
8953
|
};
|
8962
8954
|
return ge(() => {
|
8963
|
-
|
8964
|
-
}, [
|
8965
|
-
$ && $.width &&
|
8955
|
+
S && S.width && De(S.width + 18 + 10);
|
8956
|
+
}, [S]), ge(() => {
|
8957
|
+
$ && $.width && Xe($.width + 18 + 10);
|
8966
8958
|
}, [$]), ge(() => {
|
8967
8959
|
n || k && k.current && Ce !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
|
8968
8960
|
}, [Ce, n]), ge(() => {
|
@@ -9060,7 +9052,7 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9060
9052
|
b && /* @__PURE__ */ c(
|
9061
9053
|
"div",
|
9062
9054
|
{
|
9063
|
-
ref:
|
9055
|
+
ref: C,
|
9064
9056
|
className: we.rightElement,
|
9065
9057
|
children: b
|
9066
9058
|
}
|
@@ -9069,7 +9061,7 @@ const Sm = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
9069
9061
|
] });
|
9070
9062
|
}
|
9071
9063
|
);
|
9072
|
-
|
9064
|
+
Ka.displayName = "TextArea";
|
9073
9065
|
/*!
|
9074
9066
|
@versini/ui-toggle v3.0.12
|
9075
9067
|
© 2025 gizmette.com
|
@@ -9236,9 +9228,9 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9236
9228
|
latitude: x.latitude,
|
9237
9229
|
longitude: x.longitude
|
9238
9230
|
}
|
9239
|
-
}),
|
9240
|
-
if (
|
9241
|
-
const { city:
|
9231
|
+
}), C = Date.now() - _;
|
9232
|
+
if (C < 2e3 && await new Promise((S) => setTimeout(S, 2e3 - C)), k.status === 200) {
|
9233
|
+
const { city: S, state: A, country: $, displayName: D } = k.data, V = S && A && $ ? `${S}, ${A}, ${$}` : D;
|
9242
9234
|
i({
|
9243
9235
|
loadingLocation: !1
|
9244
9236
|
}), g(V);
|
@@ -9256,21 +9248,21 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9256
9248
|
clipboardAccess: k = !1,
|
9257
9249
|
...I
|
9258
9250
|
}) => {
|
9259
|
-
f((
|
9260
|
-
const
|
9251
|
+
f((C) => {
|
9252
|
+
const S = C.prompts, A = {
|
9261
9253
|
...I,
|
9262
9254
|
enabled: _,
|
9263
9255
|
privateChat: x,
|
9264
9256
|
clipboardAccess: k
|
9265
9257
|
};
|
9266
9258
|
k ? A.content = A.content + " {{clipboard}}" : A.content = A.content.replace("{{clipboard}}", "");
|
9267
|
-
const $ =
|
9259
|
+
const $ = S.findIndex((D) => D.slot === I.slot);
|
9268
9260
|
return $ === -1 ? {
|
9269
|
-
...
|
9270
|
-
prompts: [...
|
9271
|
-
} : (
|
9272
|
-
...
|
9273
|
-
prompts: [...
|
9261
|
+
...C,
|
9262
|
+
prompts: [...S, { ...A }]
|
9263
|
+
} : (S[$] = A, {
|
9264
|
+
...C,
|
9265
|
+
prompts: [...S]
|
9274
9266
|
});
|
9275
9267
|
});
|
9276
9268
|
};
|
@@ -9290,7 +9282,7 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9290
9282
|
alignHorizontal: "flex-end",
|
9291
9283
|
className: "pb-8 sm:pb-0",
|
9292
9284
|
children: [
|
9293
|
-
/* @__PURE__ */ c(
|
9285
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
9294
9286
|
Ft,
|
9295
9287
|
{
|
9296
9288
|
mode: "dark",
|
@@ -9300,7 +9292,7 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9300
9292
|
children: "Cancel"
|
9301
9293
|
}
|
9302
9294
|
) }),
|
9303
|
-
/* @__PURE__ */ c(
|
9295
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
9304
9296
|
Ft,
|
9305
9297
|
{
|
9306
9298
|
mode: "dark",
|
@@ -9349,7 +9341,7 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9349
9341
|
" to know about you to provide better responses?"
|
9350
9342
|
] }),
|
9351
9343
|
/* @__PURE__ */ c(
|
9352
|
-
|
9344
|
+
Ka,
|
9353
9345
|
{
|
9354
9346
|
mode: "alt-system",
|
9355
9347
|
autoCapitalize: "off",
|
@@ -9375,7 +9367,7 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9375
9367
|
children: [
|
9376
9368
|
/* @__PURE__ */ c("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
9377
9369
|
/* @__PURE__ */ c(
|
9378
|
-
|
9370
|
+
Ka,
|
9379
9371
|
{
|
9380
9372
|
mode: "alt-system",
|
9381
9373
|
name: "location",
|
@@ -9478,9 +9470,9 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9478
9470
|
] })
|
9479
9471
|
}
|
9480
9472
|
) : null;
|
9481
|
-
}, Wm =
|
9473
|
+
}, Wm = Yo(() => import(
|
9482
9474
|
/* webpackChunkName: "LazyChart" */
|
9483
|
-
"./Chart.
|
9475
|
+
"./Chart.DiLZvOwu.js"
|
9484
9476
|
)), qm = ({
|
9485
9477
|
open: e,
|
9486
9478
|
onOpenChange: t
|
@@ -9523,7 +9515,7 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9523
9515
|
{
|
9524
9516
|
header: oe.MAIN_STATISTICS.USAGE,
|
9525
9517
|
className: "prose-dark dark:prose-lighter mt-4",
|
9526
|
-
children: /* @__PURE__ */ R(
|
9518
|
+
children: /* @__PURE__ */ R(Jo, { fallback: /* @__PURE__ */ c("div", {}), children: [
|
9527
9519
|
/* @__PURE__ */ c("div", { className: "pt-4" }),
|
9528
9520
|
/* @__PURE__ */ c(Wm, { usage: l.usage.series })
|
9529
9521
|
] })
|
@@ -9544,9 +9536,9 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9544
9536
|
setShowConfirmation: h,
|
9545
9537
|
action: t,
|
9546
9538
|
customStrings: {
|
9547
|
-
confirmAction:
|
9539
|
+
confirmAction: $n,
|
9548
9540
|
cancelAction: "Cancel",
|
9549
|
-
title:
|
9541
|
+
title: $n
|
9550
9542
|
},
|
9551
9543
|
children: /* @__PURE__ */ c("p", { children: "Are you sure you want to log out?" })
|
9552
9544
|
}
|
@@ -9557,8 +9549,8 @@ const Dm = "av-toggle", Bm = () => p("peer", "h-6", "w-11", "rounded-full"), Pm
|
|
9557
9549
|
i && /* @__PURE__ */ c(dm, { open: i, onOpenChange: d }),
|
9558
9550
|
f && /* @__PURE__ */ c(qm, { open: f, onOpenChange: u }),
|
9559
9551
|
/* @__PURE__ */ c("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ R(Sr, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
9560
|
-
/* @__PURE__ */ c(
|
9561
|
-
/* @__PURE__ */ c(
|
9552
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(Qh, {}) }),
|
9553
|
+
/* @__PURE__ */ c(rt, { children: /* @__PURE__ */ c(
|
9562
9554
|
st,
|
9563
9555
|
{
|
9564
9556
|
label: "Profile, Settings, etc.",
|
@@ -9656,7 +9648,7 @@ try {
|
|
9656
9648
|
});
|
9657
9649
|
} catch {
|
9658
9650
|
}
|
9659
|
-
const kr = "av-bubble",
|
9651
|
+
const kr = "av-bubble", Ro = "av-button", Hr = "icon", xi = "button", Qa = "link", Jm = ({
|
9660
9652
|
type: e,
|
9661
9653
|
size: t,
|
9662
9654
|
labelRight: r,
|
@@ -9666,8 +9658,8 @@ const kr = "av-bubble", Oo = "av-button", Hr = "icon", Ti = "button", Xa = "link
|
|
9666
9658
|
}) => {
|
9667
9659
|
const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
|
9668
9660
|
switch (e) {
|
9669
|
-
case
|
9670
|
-
case
|
9661
|
+
case xi:
|
9662
|
+
case Qa:
|
9671
9663
|
return p({
|
9672
9664
|
[s]: t === "small",
|
9673
9665
|
[l]: t === "medium",
|
@@ -9700,10 +9692,10 @@ const kr = "av-bubble", Oo = "av-button", Hr = "icon", Ti = "button", Xa = "link
|
|
9700
9692
|
}) => {
|
9701
9693
|
const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
|
9702
9694
|
switch (e) {
|
9703
|
-
case
|
9704
|
-
case
|
9695
|
+
case xi:
|
9696
|
+
case Qa:
|
9705
9697
|
return p({
|
9706
|
-
"text-center": e ===
|
9698
|
+
"text-center": e === Qa,
|
9707
9699
|
[n]: t === "small",
|
9708
9700
|
[o]: t === "medium",
|
9709
9701
|
[s]: t === "large"
|
@@ -9918,8 +9910,8 @@ const kr = "av-bubble", Oo = "av-button", Hr = "icon", Ti = "button", Xa = "link
|
|
9918
9910
|
align: g,
|
9919
9911
|
radius: y,
|
9920
9912
|
animated: b
|
9921
|
-
}) => (m || (m = "primary"), r ? p(
|
9922
|
-
|
9913
|
+
}) => (m || (m = "primary"), r ? p(Ro, t) : p(
|
9914
|
+
Ro,
|
9923
9915
|
Qm({
|
9924
9916
|
mode: a,
|
9925
9917
|
variant: m,
|
@@ -9952,7 +9944,7 @@ const kr = "av-bubble", Oo = "av-button", Hr = "icon", Ti = "button", Xa = "link
|
|
9952
9944
|
)), ip = (e, t, r) => {
|
9953
9945
|
var a;
|
9954
9946
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
9955
|
-
},
|
9947
|
+
}, Ti = U.forwardRef((e, t) => {
|
9956
9948
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
9957
9949
|
return /* @__PURE__ */ c(
|
9958
9950
|
"button",
|
@@ -9965,7 +9957,7 @@ const kr = "av-bubble", Oo = "av-button", Hr = "icon", Ti = "button", Xa = "link
|
|
9965
9957
|
}
|
9966
9958
|
);
|
9967
9959
|
});
|
9968
|
-
|
9960
|
+
Ti.displayName = "BaseButton";
|
9969
9961
|
function lp() {
|
9970
9962
|
const e = L(!1);
|
9971
9963
|
return B(() => (e.current = !0, () => {
|
@@ -10015,7 +10007,7 @@ const up = {
|
|
10015
10007
|
// px-3 x 2
|
10016
10008
|
large: 16 * 2
|
10017
10009
|
// px-4 x 2
|
10018
|
-
}, hp = 2,
|
10010
|
+
}, hp = 2, bn = U.forwardRef(
|
10019
10011
|
({
|
10020
10012
|
children: e,
|
10021
10013
|
disabled: t = !1,
|
@@ -10056,22 +10048,22 @@ const up = {
|
|
10056
10048
|
radius: b,
|
10057
10049
|
variant: v,
|
10058
10050
|
animated: T
|
10059
|
-
}), x = np({ mode: r, raw: l, iconClassName: w }), k = op({ animated: T }), [I,
|
10051
|
+
}), x = np({ mode: r, raw: l, iconClassName: w }), k = op({ animated: T }), [I, C] = la(), [S, A] = la(), [$, D] = la(), V = L(0), M = L(null), W = cp([E, M]);
|
10060
10052
|
return ge(() => {
|
10061
10053
|
$ && $.current && T && (V.current = D.width + fp[u] + (i ? 0 : hp));
|
10062
10054
|
}, [D, $, u, i, T]), ge(() => {
|
10063
|
-
M && M.current && T && (m && I &&
|
10055
|
+
M && M.current && T && (m && I && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), M.current.style.width = `${C.width + V.current}px`) : h && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + V.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${up[u]}px`));
|
10064
10056
|
}, [
|
10065
|
-
|
10057
|
+
C,
|
10066
10058
|
m,
|
10067
10059
|
I,
|
10068
10060
|
A,
|
10069
10061
|
h,
|
10070
|
-
|
10062
|
+
S,
|
10071
10063
|
u,
|
10072
10064
|
T
|
10073
10065
|
]), /* @__PURE__ */ R(
|
10074
|
-
|
10066
|
+
Ti,
|
10075
10067
|
{
|
10076
10068
|
ref: W,
|
10077
10069
|
className: _,
|
@@ -10081,17 +10073,17 @@ const up = {
|
|
10081
10073
|
...N,
|
10082
10074
|
children: [
|
10083
10075
|
/* @__PURE__ */ c(
|
10084
|
-
|
10076
|
+
Ao,
|
10085
10077
|
{
|
10086
10078
|
label: h,
|
10087
|
-
labelRef:
|
10079
|
+
labelRef: S,
|
10088
10080
|
labelClass: k,
|
10089
10081
|
labelInnerClass: "pr-2"
|
10090
10082
|
}
|
10091
10083
|
),
|
10092
10084
|
/* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
|
10093
10085
|
/* @__PURE__ */ c(
|
10094
|
-
|
10086
|
+
Ao,
|
10095
10087
|
{
|
10096
10088
|
label: m,
|
10097
10089
|
labelRef: I,
|
@@ -10103,13 +10095,13 @@ const up = {
|
|
10103
10095
|
}
|
10104
10096
|
);
|
10105
10097
|
}
|
10106
|
-
),
|
10098
|
+
), Ao = ({
|
10107
10099
|
labelRef: e,
|
10108
10100
|
labelClass: t,
|
10109
10101
|
label: r,
|
10110
10102
|
labelInnerClass: a
|
10111
10103
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
10112
|
-
|
10104
|
+
bn.displayName = "ButtonIcon";
|
10113
10105
|
/*!
|
10114
10106
|
@versini/ui-button v4.2.11
|
10115
10107
|
© 2025 gizmette.com
|
@@ -10149,7 +10141,7 @@ const mp = U.forwardRef(
|
|
10149
10141
|
}
|
10150
10142
|
) : "";
|
10151
10143
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
10152
|
-
|
10144
|
+
bn,
|
10153
10145
|
{
|
10154
10146
|
className: p("justify-center", r),
|
10155
10147
|
ref: o,
|
@@ -10162,7 +10154,7 @@ const mp = U.forwardRef(
|
|
10162
10154
|
}
|
10163
10155
|
);
|
10164
10156
|
mp.displayName = "ButtonSort";
|
10165
|
-
const
|
10157
|
+
const Ei = ({
|
10166
10158
|
children: e,
|
10167
10159
|
fill: t,
|
10168
10160
|
viewBox: r,
|
@@ -10212,7 +10204,7 @@ const pp = ({
|
|
10212
10204
|
monotone: a,
|
10213
10205
|
...n
|
10214
10206
|
}) => /* @__PURE__ */ R(
|
10215
|
-
|
10207
|
+
Ei,
|
10216
10208
|
{
|
10217
10209
|
defaultViewBox: "0 0 448 512",
|
10218
10210
|
size: "size-5",
|
@@ -10238,7 +10230,7 @@ const pp = ({
|
|
10238
10230
|
monotone: a,
|
10239
10231
|
...n
|
10240
10232
|
}) => /* @__PURE__ */ c(
|
10241
|
-
|
10233
|
+
Ei,
|
10242
10234
|
{
|
10243
10235
|
defaultViewBox: "0 0 512 512",
|
10244
10236
|
size: "size-5",
|
@@ -10332,7 +10324,7 @@ const yp = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10332
10324
|
footer: l,
|
10333
10325
|
copyButton: i
|
10334
10326
|
};
|
10335
|
-
},
|
10327
|
+
}, vn = ({
|
10336
10328
|
children: e,
|
10337
10329
|
kind: t = "left",
|
10338
10330
|
className: r,
|
@@ -10372,7 +10364,7 @@ const yp = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
|
|
10372
10364
|
o && o
|
10373
10365
|
] }),
|
10374
10366
|
g && /* @__PURE__ */ c("div", { className: h.copyButton, children: /* @__PURE__ */ c(
|
10375
|
-
|
10367
|
+
bn,
|
10376
10368
|
{
|
10377
10369
|
noBorder: !0,
|
10378
10370
|
noBackground: !0,
|
@@ -10400,14 +10392,14 @@ try {
|
|
10400
10392
|
});
|
10401
10393
|
} catch {
|
10402
10394
|
}
|
10403
|
-
const
|
10395
|
+
const Oo = "av-spinner", Ii = ({
|
10404
10396
|
spinnerRef: e,
|
10405
10397
|
mode: t = "system",
|
10406
10398
|
type: r = "circle",
|
10407
10399
|
className: a
|
10408
10400
|
}) => {
|
10409
10401
|
const n = r === "circle" ? p(
|
10410
|
-
|
10402
|
+
Oo,
|
10411
10403
|
"h-8 w-8",
|
10412
10404
|
"align-[-0.125em]",
|
10413
10405
|
"border-4",
|
@@ -10419,7 +10411,7 @@ const Lo = "av-spinner", Ci = ({
|
|
10419
10411
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
10420
10412
|
},
|
10421
10413
|
a
|
10422
|
-
) : p(
|
10414
|
+
) : p(Oo, a), o = p("av-spinner__dot", {
|
10423
10415
|
"fill-copy-dark": t === "dark",
|
10424
10416
|
"fill-copy-accent": t === "light",
|
10425
10417
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
@@ -10433,7 +10425,7 @@ const Lo = "av-spinner", Ci = ({
|
|
10433
10425
|
] }),
|
10434
10426
|
/* @__PURE__ */ c("span", { className: "sr-only", children: "Loading..." })
|
10435
10427
|
] });
|
10436
|
-
},
|
10428
|
+
}, $o = "av-button", Gr = "icon", _n = "button", Xa = "link", kp = ({
|
10437
10429
|
type: e,
|
10438
10430
|
size: t,
|
10439
10431
|
labelRight: r,
|
@@ -10443,8 +10435,8 @@ const Lo = "av-spinner", Ci = ({
|
|
10443
10435
|
}) => {
|
10444
10436
|
const s = "max-h-8 py-0 px-2", l = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
|
10445
10437
|
switch (e) {
|
10446
|
-
case
|
10447
|
-
case
|
10438
|
+
case _n:
|
10439
|
+
case Xa:
|
10448
10440
|
return p({
|
10449
10441
|
[s]: t === "small",
|
10450
10442
|
[l]: t === "medium",
|
@@ -10477,10 +10469,10 @@ const Lo = "av-spinner", Ci = ({
|
|
10477
10469
|
}) => {
|
10478
10470
|
const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
|
10479
10471
|
switch (e) {
|
10480
|
-
case
|
10481
|
-
case
|
10472
|
+
case _n:
|
10473
|
+
case Xa:
|
10482
10474
|
return p({
|
10483
|
-
"text-center": e ===
|
10475
|
+
"text-center": e === Xa,
|
10484
10476
|
[n]: t === "small",
|
10485
10477
|
[o]: t === "medium",
|
10486
10478
|
[s]: t === "large"
|
@@ -10677,7 +10669,7 @@ const Lo = "av-spinner", Ci = ({
|
|
10677
10669
|
animated: e
|
10678
10670
|
}) => p({
|
10679
10671
|
"transition-opacity duration-300 ease-in": e
|
10680
|
-
}),
|
10672
|
+
}), Ci = ({
|
10681
10673
|
type: e,
|
10682
10674
|
className: t,
|
10683
10675
|
raw: r,
|
@@ -10695,8 +10687,8 @@ const Lo = "av-spinner", Ci = ({
|
|
10695
10687
|
align: g,
|
10696
10688
|
radius: y,
|
10697
10689
|
animated: b
|
10698
|
-
}) => (m || (m = "primary"), r ? p(
|
10699
|
-
|
10690
|
+
}) => (m || (m = "primary"), r ? p($o, t) : p(
|
10691
|
+
$o,
|
10700
10692
|
Tp({
|
10701
10693
|
mode: a,
|
10702
10694
|
variant: m,
|
@@ -10729,7 +10721,7 @@ const Lo = "av-spinner", Ci = ({
|
|
10729
10721
|
)), $p = (e, t, r) => {
|
10730
10722
|
var a;
|
10731
10723
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
10732
|
-
},
|
10724
|
+
}, wn = U.forwardRef((e, t) => {
|
10733
10725
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
10734
10726
|
return /* @__PURE__ */ c(
|
10735
10727
|
"button",
|
@@ -10742,8 +10734,8 @@ const Lo = "av-spinner", Ci = ({
|
|
10742
10734
|
}
|
10743
10735
|
);
|
10744
10736
|
});
|
10745
|
-
|
10746
|
-
const
|
10737
|
+
wn.displayName = "BaseButton";
|
10738
|
+
const Si = U.forwardRef(
|
10747
10739
|
({
|
10748
10740
|
children: e,
|
10749
10741
|
disabled: t = !1,
|
@@ -10759,8 +10751,8 @@ const Ni = U.forwardRef(
|
|
10759
10751
|
radius: u = "large",
|
10760
10752
|
...m
|
10761
10753
|
}, h) => {
|
10762
|
-
const g =
|
10763
|
-
type:
|
10754
|
+
const g = Ci({
|
10755
|
+
type: _n,
|
10764
10756
|
mode: r,
|
10765
10757
|
focusMode: a,
|
10766
10758
|
fullWidth: n,
|
@@ -10774,7 +10766,7 @@ const Ni = U.forwardRef(
|
|
10774
10766
|
radius: u
|
10775
10767
|
});
|
10776
10768
|
return /* @__PURE__ */ c(
|
10777
|
-
|
10769
|
+
wn,
|
10778
10770
|
{
|
10779
10771
|
ref: h,
|
10780
10772
|
className: g,
|
@@ -10785,7 +10777,7 @@ const Ni = U.forwardRef(
|
|
10785
10777
|
);
|
10786
10778
|
}
|
10787
10779
|
);
|
10788
|
-
|
10780
|
+
Si.displayName = "Button";
|
10789
10781
|
function Lp() {
|
10790
10782
|
const e = L(!1);
|
10791
10783
|
return B(() => (e.current = !0, () => {
|
@@ -10835,7 +10827,7 @@ const Bp = {
|
|
10835
10827
|
// px-3 x 2
|
10836
10828
|
large: 16 * 2
|
10837
10829
|
// px-4 x 2
|
10838
|
-
}, zp = 2,
|
10830
|
+
}, zp = 2, Ni = U.forwardRef(
|
10839
10831
|
({
|
10840
10832
|
children: e,
|
10841
10833
|
disabled: t = !1,
|
@@ -10859,7 +10851,7 @@ const Bp = {
|
|
10859
10851
|
animated: T = !1,
|
10860
10852
|
...N
|
10861
10853
|
}, E) => {
|
10862
|
-
const _ =
|
10854
|
+
const _ = Ci({
|
10863
10855
|
type: Gr,
|
10864
10856
|
mode: r,
|
10865
10857
|
focusMode: a,
|
@@ -10876,22 +10868,22 @@ const Bp = {
|
|
10876
10868
|
radius: b,
|
10877
10869
|
variant: v,
|
10878
10870
|
animated: T
|
10879
|
-
}), x = Ap({ mode: r, raw: l, iconClassName: w }), k = Op({ animated: T }), [I,
|
10871
|
+
}), x = Ap({ mode: r, raw: l, iconClassName: w }), k = Op({ animated: T }), [I, C] = ca(), [S, A] = ca(), [$, D] = ca(), V = L(0), M = L(null), W = Mp([E, M]);
|
10880
10872
|
return ge(() => {
|
10881
10873
|
$ && $.current && T && (V.current = D.width + Pp[u] + (i ? 0 : zp));
|
10882
10874
|
}, [D, $, u, i, T]), ge(() => {
|
10883
|
-
M && M.current && T && (m && I &&
|
10875
|
+
M && M.current && T && (m && I && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), M.current.style.width = `${C.width + V.current}px`) : h && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), M.current.style.width = `${A.width + V.current}px`) : (I.current && (I.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), M.current.style.width = `${Bp[u]}px`));
|
10884
10876
|
}, [
|
10885
|
-
|
10877
|
+
C,
|
10886
10878
|
m,
|
10887
10879
|
I,
|
10888
10880
|
A,
|
10889
10881
|
h,
|
10890
|
-
|
10882
|
+
S,
|
10891
10883
|
u,
|
10892
10884
|
T
|
10893
10885
|
]), /* @__PURE__ */ R(
|
10894
|
-
|
10886
|
+
wn,
|
10895
10887
|
{
|
10896
10888
|
ref: W,
|
10897
10889
|
className: _,
|
@@ -10901,17 +10893,17 @@ const Bp = {
|
|
10901
10893
|
...N,
|
10902
10894
|
children: [
|
10903
10895
|
/* @__PURE__ */ c(
|
10904
|
-
|
10896
|
+
Lo,
|
10905
10897
|
{
|
10906
10898
|
label: h,
|
10907
|
-
labelRef:
|
10899
|
+
labelRef: S,
|
10908
10900
|
labelClass: k,
|
10909
10901
|
labelInnerClass: "pr-2"
|
10910
10902
|
}
|
10911
10903
|
),
|
10912
10904
|
/* @__PURE__ */ c("span", { ref: $, className: x, children: e }),
|
10913
10905
|
/* @__PURE__ */ c(
|
10914
|
-
|
10906
|
+
Lo,
|
10915
10907
|
{
|
10916
10908
|
label: m,
|
10917
10909
|
labelRef: I,
|
@@ -10923,13 +10915,13 @@ const Bp = {
|
|
10923
10915
|
}
|
10924
10916
|
);
|
10925
10917
|
}
|
10926
|
-
),
|
10918
|
+
), Lo = ({
|
10927
10919
|
labelRef: e,
|
10928
10920
|
labelClass: t,
|
10929
10921
|
label: r,
|
10930
10922
|
labelInnerClass: a
|
10931
10923
|
}) => /* @__PURE__ */ c("span", { ref: e, className: t, children: r && /* @__PURE__ */ c("span", { className: a, children: r }) });
|
10932
|
-
|
10924
|
+
Ni.displayName = "ButtonIcon";
|
10933
10925
|
/*!
|
10934
10926
|
@versini/ui-button v4.2.11
|
10935
10927
|
© 2025 gizmette.com
|
@@ -10969,7 +10961,7 @@ const Vp = U.forwardRef(
|
|
10969
10961
|
}
|
10970
10962
|
) : "";
|
10971
10963
|
return /* @__PURE__ */ c("div", { className: s, children: /* @__PURE__ */ c(
|
10972
|
-
|
10964
|
+
Ni,
|
10973
10965
|
{
|
10974
10966
|
className: p("justify-center", r),
|
10975
10967
|
ref: o,
|
@@ -11011,7 +11003,7 @@ const Fp = 200, Up = ({
|
|
11011
11003
|
return /* @__PURE__ */ R("span", { style: { wordBreak: "break-word" }, children: [
|
11012
11004
|
n ? e : s,
|
11013
11005
|
l && /* @__PURE__ */ c(
|
11014
|
-
|
11006
|
+
Si,
|
11015
11007
|
{
|
11016
11008
|
mode: r,
|
11017
11009
|
focusMode: a,
|
@@ -11039,7 +11031,7 @@ try {
|
|
11039
11031
|
} catch {
|
11040
11032
|
}
|
11041
11033
|
const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
11042
|
-
|
11034
|
+
vn,
|
11043
11035
|
{
|
11044
11036
|
tail: !0,
|
11045
11037
|
kind: "right",
|
@@ -11048,10 +11040,10 @@ const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
|
11048
11040
|
className: "mt-3",
|
11049
11041
|
children: /* @__PURE__ */ c(Hp, { mode: "light", focusMode: "light", children: e })
|
11050
11042
|
}
|
11051
|
-
), jp =
|
11043
|
+
), jp = Yo(
|
11052
11044
|
() => import(
|
11053
11045
|
/* webpackChunkName: "LazyMessageAssistant" */
|
11054
|
-
"./ChatBubbleAssistant.
|
11046
|
+
"./ChatBubbleAssistant.DwOOcihI.js"
|
11055
11047
|
).then((e) => e.ChatBubbleAssistant)
|
11056
11048
|
), Wp = U.memo(
|
11057
11049
|
({
|
@@ -11063,15 +11055,16 @@ const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
|
11063
11055
|
const {
|
11064
11056
|
state: { restoring: n }
|
11065
11057
|
} = X(ye);
|
11066
|
-
return e === ol && t ? /* @__PURE__ */ c(Gp, { content: t }) : (e ===
|
11058
|
+
return e === ol && t ? /* @__PURE__ */ c(Gp, { content: t }) : (e === Ln || e === Fo) && t ? /* @__PURE__ */ c(Jo, { fallback: /* @__PURE__ */ c("span", {}), children: /* @__PURE__ */ c(
|
11067
11059
|
jp,
|
11068
11060
|
{
|
11061
|
+
role: e,
|
11069
11062
|
content: t,
|
11070
11063
|
annotations: r,
|
11071
11064
|
toolName: a,
|
11072
11065
|
smooth: !n
|
11073
11066
|
}
|
11074
|
-
) }) : e ===
|
11067
|
+
) }) : e === Ln && !t ? /* @__PURE__ */ c(vn, { tail: !0, children: /* @__PURE__ */ c(Ii, { type: "dots" }) }) : null;
|
11075
11068
|
}
|
11076
11069
|
), qp = () => {
|
11077
11070
|
const {
|
@@ -11102,12 +11095,12 @@ const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
|
11102
11095
|
o
|
11103
11096
|
);
|
11104
11097
|
}),
|
11105
|
-
e && /* @__PURE__ */ c(
|
11098
|
+
e && /* @__PURE__ */ c(vn, { tail: !0, children: /* @__PURE__ */ c(Ii, { type: "dots" }) })
|
11106
11099
|
] }) : null;
|
11107
11100
|
}, Yp = () => {
|
11108
11101
|
const { isAuthenticated: e } = Ne(), { ref: t, inViewport: r } = uc(), a = L(null), n = L(null), {
|
11109
11102
|
state: { footerPosition: o, footerHeight: s, footerOffset: l }
|
11110
|
-
} = X(
|
11103
|
+
} = X(un), {
|
11111
11104
|
state: { loading: i }
|
11112
11105
|
} = X(ye), d = L(0), f = sl({
|
11113
11106
|
isAuthenticated: e,
|
@@ -11121,7 +11114,7 @@ const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
|
11121
11114
|
return B(() => {
|
11122
11115
|
i && u();
|
11123
11116
|
}, [i, u]), B(() => {
|
11124
|
-
d.current = o === Ht ? s + l +
|
11117
|
+
d.current = o === Ht ? s + l + Go + il : 0;
|
11125
11118
|
}, [o, s, l]), /* @__PURE__ */ R(ce, { children: [
|
11126
11119
|
/* @__PURE__ */ R("div", { className: f, ref: a, children: [
|
11127
11120
|
/* @__PURE__ */ c(ll, {}),
|
@@ -11139,15 +11132,15 @@ const Gp = ({ content: e }) => /* @__PURE__ */ c(
|
|
11139
11132
|
)
|
11140
11133
|
] });
|
11141
11134
|
};
|
11142
|
-
function
|
11135
|
+
function Ri({
|
11143
11136
|
isComponent: e = !1,
|
11144
11137
|
headerHeight: t = 0
|
11145
11138
|
}) {
|
11146
|
-
const { user: r, getAccessToken: a } = Ne(), [n, o] = F(`${
|
11147
|
-
key: ft +
|
11139
|
+
const { user: r, getAccessToken: a } = Ne(), [n, o] = F(`${Mn}px`), [s, l] = ds(), [i, d] = F(at()), [f, u] = F([]), [m] = ht({
|
11140
|
+
key: ft + Ho,
|
11148
11141
|
initialValue: ""
|
11149
11142
|
}), [h] = ht({
|
11150
|
-
key: ft +
|
11143
|
+
key: ft + Uo,
|
11151
11144
|
initialValue: Ue.ASC
|
11152
11145
|
}), [g, y] = Pt(td, {
|
11153
11146
|
footerPosition: "FOOTER_TOP",
|
@@ -11183,7 +11176,7 @@ function Ai({
|
|
11183
11176
|
}, 500);
|
11184
11177
|
}), B(() => {
|
11185
11178
|
_ && _.provider && E({
|
11186
|
-
type:
|
11179
|
+
type: nn,
|
11187
11180
|
payload: {
|
11188
11181
|
provider: _.provider
|
11189
11182
|
}
|
@@ -11192,10 +11185,10 @@ function Ai({
|
|
11192
11185
|
if (g.footerPosition === "FOOTER_BOTTOM") {
|
11193
11186
|
const x = `calc(${l.height}px + 20px)`;
|
11194
11187
|
o(
|
11195
|
-
`calc(100svh - ${t}px - ${x} - ${g.footerHeight}px - ${g.footerOffset}px - ${
|
11188
|
+
`calc(100svh - ${t}px - ${x} - ${g.footerHeight}px - ${g.footerOffset}px - ${Go}px)`
|
11196
11189
|
);
|
11197
11190
|
} else
|
11198
|
-
o(`${
|
11191
|
+
o(`${Mn}px`);
|
11199
11192
|
}, [g, l, t]), /* @__PURE__ */ c(
|
11200
11193
|
$r.Provider,
|
11201
11194
|
{
|
@@ -11203,8 +11196,8 @@ function Ai({
|
|
11203
11196
|
state: b,
|
11204
11197
|
dispatch: v
|
11205
11198
|
},
|
11206
|
-
children: /* @__PURE__ */ c(
|
11207
|
-
|
11199
|
+
children: /* @__PURE__ */ c(un.Provider, { value: { state: g, dispatch: y }, children: /* @__PURE__ */ c(
|
11200
|
+
dn.Provider,
|
11208
11201
|
{
|
11209
11202
|
value: { state: w, dispatch: T },
|
11210
11203
|
children: /* @__PURE__ */ c(
|
@@ -11221,7 +11214,7 @@ function Ai({
|
|
11221
11214
|
{
|
11222
11215
|
value: {
|
11223
11216
|
id: i,
|
11224
|
-
api: `${
|
11217
|
+
api: `${ys}/api/generate`,
|
11225
11218
|
initialMessages: f,
|
11226
11219
|
experimental_throttle: 300,
|
11227
11220
|
sendExtraMessageFields: !1,
|
@@ -11231,7 +11224,7 @@ function Ai({
|
|
11231
11224
|
username: r == null ? void 0 : r.username
|
11232
11225
|
},
|
11233
11226
|
generateId() {
|
11234
|
-
return
|
11227
|
+
return at();
|
11235
11228
|
}
|
11236
11229
|
},
|
11237
11230
|
children: [
|
@@ -11243,7 +11236,7 @@ function Ai({
|
|
11243
11236
|
noMargin: !0,
|
11244
11237
|
noPadding: !0,
|
11245
11238
|
noBorder: !0,
|
11246
|
-
className:
|
11239
|
+
className: Dn({
|
11247
11240
|
extraClass: "mt-5"
|
11248
11241
|
}),
|
11249
11242
|
children: /* @__PURE__ */ c(Ym, { isComponent: e })
|
@@ -11252,7 +11245,7 @@ function Ai({
|
|
11252
11245
|
/* @__PURE__ */ c(
|
11253
11246
|
cl,
|
11254
11247
|
{
|
11255
|
-
className:
|
11248
|
+
className: Dn({
|
11256
11249
|
extraClass: "transition-all ease-in-out duration-500"
|
11257
11250
|
}),
|
11258
11251
|
noMargin: !0,
|
@@ -11274,12 +11267,12 @@ function Ai({
|
|
11274
11267
|
}
|
11275
11268
|
);
|
11276
11269
|
}
|
11277
|
-
|
11278
|
-
const tg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default:
|
11270
|
+
Ri.displayName = "App";
|
11271
|
+
const tg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Ri }, Symbol.toStringTag, { value: "Module" }));
|
11279
11272
|
export {
|
11280
11273
|
tg as App,
|
11281
11274
|
ye as ChatContext,
|
11282
11275
|
ht as E,
|
11283
|
-
|
11284
|
-
|
11276
|
+
vn as Re,
|
11277
|
+
Ls as getDefaultExportFromCjs
|
11285
11278
|
};
|